You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
1.5 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// opentimestamps v.0.4.9
function _get(e,t,r){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){e=_superPropBase(e,t);if(e){t=Object.getOwnPropertyDescriptor(e,t);return t.get?t.get.call(r):t.value}})(e,t,r||e)}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _createSuper(r){var i=_isNativeReflectConstruct();return function(){var e,t=_getPrototypeOf(r);return _possibleConstructorReturn(this,i?(e=_getPrototypeOf(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _classCallCheck2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass2(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _construct(e,t,r){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,r){var i=[null];i.push.apply(i,t);i=new(Function.bind.apply(e,i));return r&&_setPrototypeOf(i,r.prototype),i}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createForOfIteratorHelper(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,t=function(){};return{s:t,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,n=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw n}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).OpenTimestamps=e()}(function(){var B,e,t;return function i(n,a,o){function s(t,e){if(!a[t]){if(!n[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(u)return u(t,!0);throw(r=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",r}r=a[t]={exports:{}},n[t][0].call(r.exports,function(e){return s(n[t][1][e]||e)},r,r.exports,i,n,a,o)}return a[t].exports}for(var u="function"==typeof require&&require,e=0;e<o.length;e++)s(o[e]);return s}({1:[function(e,t,r){var i=e("./src/open-timestamps.js");i.DetachedTimestampFile=e("./src/detached-timestamp-file.js"),i.Ops=e("./src/ops.js"),i.Context=e("./src/context.js"),i.Timestamp=e("./src/timestamp.js"),i.Calendar=e("./src/calendar.js"),i.Utils=e("./src/utils.js"),i.Notary=e("./src/notary.js"),t.exports=i},{"./src/calendar.js":488,"./src/context.js":489,"./src/detached-timestamp-file.js":490,"./src/notary.js":494,"./src/open-timestamps.js":495,"./src/ops.js":496,"./src/timestamp.js":497,"./src/utils.js":498}],2:[function(i,e,t){"use strict";var o=i("./compile"),u=i("./compile/resolve"),n=i("./cache"),c=i("./compile/schema_obj"),a=i("fast-json-stable-stringify"),s=i("./compile/formats"),f=i("./compile/rules"),p=i("./data"),l=i("./compile/util");(e.exports=g).prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{e=this._addSchema(e);r=e.validate||this._compile(e)}t=r(t);!0!==r.$async&&(this.errors=r.errors);return t},g.prototype.compile=function(e,t){t=this._addSchema(e,void 0,t);return t.validate||this._compile(t)},g.prototype.addSchema=function(e,t,r,i){if(Array.isArray(e)){for(var n=0;n<e.length;n++)this.addSchema(e[n],void 0,r,i);return this}var a=this._getId(e);if(void 0!==a&&"string"!=typeof a)throw new Error("schema id must be string");return w(this,t=u.normalizeId(t||a)),this._schemas[t]=this._addSchema(e,r,i,!0),this},g.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},g.prototype.validateSchema=function(e,t){var r=e.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(!(r=r||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==_typeof(t)?e._getId(t)||t:e.getSchema(h)?h:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),!(this.errors=null);e=this.validate(r,e);if(!e&&t){t="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(t);this.logger.error(t)}return e},g.prototype.getSchema=function(e){var t=r(this,e);switch(_typeof(t)){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var r=u.schema.call(e,{schema:{}},t);if(r){var i=r.schema,n=r.root,a=r.baseId,r=o.call(e,i,n,void 0,a);return e._fragments[t]=new c({ref:t,fragment:!0,schema:i,root:n,baseId:a,validate:r}),r}}(this,e)}},g.prototype.removeSchema=function(e){if(e instanceof RegExp)return b(this,this._schemas,e),b(this,this._refs,e),this;switch(_typeof(e)){case"undefined":return b(this,this._schemas),b(this,this._refs),this._cache.clear(),this;case"string":var t=r(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":t=this._opts.serialize,t=t?t(e):e;this._cache.del(t);t=this._getId(e);t&&(t=u.normalizeId(t),delete this._schemas[t],delete this._refs[t])}return this},g.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},g.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,i=void 0===t.dataVar?"data":t.dataVar,n="",a=0;a<e.length;a++){var o=e[a];o&&(n+=i+o.dataPath+" "+o.message+r)}return n.slice(0,-r.length)},g.prototype._addSchema=function(e,t,r,i){if("object"!=_typeof(e)&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var n=this._opts.serialize,a=n?n(e):e,o=this._cache.get(a);if(o)return o;i=i||!1!==this._opts.addUsedSchema;n=u.normalizeId(this._getId(e));n&&i&&w(this,n);var s,o=!1!==this._opts.validateSchema&&!t;o&&!(s=n&&n==u.normalizeId(e.$schema))&&this.validateSchema(e,!0);t=u.ids.call(this,e),r=new c({id:n,schema:e,localRefs:t,cacheKey:a,meta:r});"#"!=n[0]&&i&&(this._refs[n]=r);this._cache.put(a,r),o&&s&&this.validateSchema(e,!0);return r},g.prototype._compile=function(r,e){if(r.compiling)return(r.validate=n).schema=r.schema,n.errors=null,n.root=e||n,!0===r.schema.$async&&(n.$async=!0),n;var t,i;r.compiling=!0,r.meta&&(t=this._opts,this._opts=this._metaOpts);try{i=o.call(this,r.schema,e,r.localRefs)}catch(e){throw delete r.validate,e}finally{r.compiling=!1,r.meta&&(this._opts=t)}return r.validate=i,r.refs=i.refs,r.refVal=i.refVal,r.root=i.root,i;function n(){var e=r.validate,t=e.apply(this,arguments);return n.errors=e.errors,t}},g.prototype.compileAsync=i("./compile/async");e=i("./keyword");g.prototype.addKeyword=e.add,g.prototype.getKeyword=e.get,g.prototype.removeKeyword=e.remove,g.prototype.validateKeyword=e.validate;e=i("./compile/error_classes");g.ValidationError=e.Validation,g.MissingRefError=e.MissingRef,g.$dataMetaSchema=p;var h="http://json-schema.org/draft-07/schema",d=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],m=["/properties"];function g(e){if(!(this instanceof g))return new g(e);var t,r;e=this._opts=l.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:k,warn:k,error:k};else{if(!("object"==_typeof(t=void 0===t?console:t)&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=s(e.format),this._cache=e.cache||new n,this._loadingSchemas={},this._compilations=[],this.RULES=f(),this._getId=function(e){switch(e.schemaId){case"auto":return _;case"id":return y;default:return v}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=a),this._metaOpts=function(e){for(var t=l.copy(e._opts),r=0;r<d.length;r++)delete t[d[r]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var r=e._opts.formats[t];e.addFormat(t,r)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var r=e._opts.keywords[t];e.addKeyword(t,r)}}(this),(t=this)._opts.$data&&(r=i("./refs/data.json"),t.addMetaSchema(r,r.$id,!0)),!1!==t._opts.meta&&(r=i("./refs/json-schema-draft-07.json"),t._opts.$data&&(r=p(r,m)),t.addMetaSchema(r,h,!0),t._refs["http://json-schema.org/schema"]=h),"object"==_typeof(e.meta)&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(t)if(Array.isArray(t))e.addSchema(t);else for(var r in t)e.addSchema(t[r],r)}(this)}function r(e,t){return t=u.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function b(e,t,r){for(var i in t){var n=t[i];n.meta||r&&!r.test(i)||(e._cache.del(n.cacheKey),delete t[i])}}function y(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function v(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function _(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function w(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function k(){}},{"./cache":3,"./compile":7,"./compile/async":4,"./compile/error_classes":5,"./compile/formats":6,"./compile/resolve":8,"./compile/rules":9,"./compile/schema_obj":10,"./compile/util":12,"./data":13,"./keyword":41,"./refs/data.json":42,"./refs/json-schema-draft-07.json":44,"fast-json-stable-stringify":234}],3:[function(e,t,r){"use strict";t=t.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},{}],4:[function(e,t,r){"use strict";var i=e("./error_classes").MissingRef;function n(t,o,r){var s=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof o&&(r=o,o=void 0);var e=u(t).then(function(){var e=s._addSchema(t,void 0,o);return e.validate||function n(a){try{return s._compile(a)}catch(e){if(e instanceof i)return t(e);throw e}function t(e){var t=e.missingSchema;if(i(t))throw new Error("Schema "+t+" is loaded but "+e.missingRef+" cannot be resolved");var e=s._loadingSchemas[t];return e||(e=s._loadingSchemas[t]=s._opts.loadSchema(t)).then(r,r),e.then(function(e){if(!i(t))return u(e).then(function(){i(t)||s.addSchema(e,t,void 0,o)})}).then(function(){return n(a)});function r(){delete s._loadingSchemas[t]}function i(e){return s._refs[e]||s._schemas[e]}}}(e)});return r&&e.then(function(e){r(null,e)},r),e;function u(e){e=e.$schema;return e&&!s.getSchema(e)?n.call(s,{$ref:e},!0):Promise.resolve()}}t.exports=n},{"./error_classes":5}],5:[function(e,t,r){"use strict";var i=e("./resolve");function n(e,t,r){this.message=r||n.message(e,t),this.missingRef=i.url(e,t),this.missingSchema=i.normalizeId(i.fullPath(this.missingRef))}function a(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}t.exports={Validation:a(function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0}),MissingRef:a(n)},n.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},{"./resolve":8}],6:[function(e,t,r){"use strict";var i=e("./util"),n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,a=[0,31,28,31,30,31,30,31,31,30,31,30,31],o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,u=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,f=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,p=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,l=/^(?:\/(?:[^~/]|~0|~1)*)*$/,h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,e=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function d(e){return e="full"==e?"full":"fast",i.copy(d[e])}function m(e){var t=e.match(n);if(!t)return!1;var r=+t[1],e=+t[2],t=+t[3];return 1<=e&&e<=12&&1<=t&&t<=(2!=e||((r=r)%4!=0||r%100==0&&r%400!=0)?a[e]:29)}function g(e,t){var r=e.match(o);if(!r)return!1;var i=r[1],n=r[2],e=r[3],r=r[5];return(i<=23&&n<=59&&e<=59||23==i&&59==n&&60==e)&&(!t||r)}(t.exports=d).fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:f,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:_,uuid:p,"json-pointer":l,"json-pointer-uri-fragment":h,"relative-json-pointer":e},d.full={date:m,time:g,"date-time":function(e){e=e.split(b);return 2==e.length&&m(e[0])&&g(e[1],!0)},uri:function(e){return y.test(e)&&u.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":c,url:f,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:_,uuid:p,"json-pointer":l,"json-pointer-uri-fragment":h,"relative-json-pointer":e};var b=/t|\s/i;var y=/\/|:/;var v=/[^\\]\\Z/;function _(e){if(v.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},{"./util":12}],7:[function(e,t,r){"use strict";var A=e("./resolve"),P=e("./util"),I=e("./error_classes"),T=e("fast-json-stable-stringify"),O=e("../dotjs/validate"),C=P.ucs2length,R=e("fast-deep-equal"),B=I.Validation;function F(e,s,u,t){var c=this,f=this._opts,p=[void 0],l={},h=[],r={},d=[],i={},m=[],n=function(e,t,r){var i=M.call(this,e,t,r);return 0<=i?{index:i,compiling:!0}:(i=this._compilations.length,this._compilations[i]={schema:e,root:t,baseId:r},{index:i,compiling:!1})}.call(this,e,s=s||{schema:e,refVal:p,refs:l},t),a=this._compilations[n.index];if(n.compiling)return a.callValidate=v;var g=this._formats,b=this.RULES;try{var o=_(e,s,u,t);a.validate=o;var y=a.callValidate;return y&&(y.schema=o.schema,y.errors=null,y.refs=o.refs,y.refVal=o.refVal,y.root=o.root,y.$async=o.$async,f.sourceCode&&(y.source=o.source)),o}finally{(function(e,t,r){r=M.call(this,e,t,r);0<=r&&this._compilations.splice(r,1)}).call(this,e,s,t)}function v(){var e=a.validate,t=e.apply(this,arguments);return v.errors=e.errors,t}function _(e,t,r,i){var n=!t||t&&t.schema==e;if(t.schema!=s.schema)return F.call(c,e,t,r,i);var r=!0===e.$async,a=O({isTop:!0,schema:e,isRoot:n,baseId:i,root:t,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:I.MissingRef,RULES:b,validate:O,util:P,resolve:A,resolveRef:w,usePattern:S,useDefault:j,useCustomRule:E,opts:f,formats:g,logger:c.logger,self:c}),a=q(p,D)+q(h,z)+q(d,N)+q(m,L)+a;f.processCode&&(a=f.processCode(a,e));try{var o=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",a)(c,b,g,s,p,d,m,R,C,B);p[0]=o}catch(e){throw c.logger.error("Error compiling schema, function code:",a),e}return o.schema=e,o.errors=null,o.refs=l,o.refVal=p,o.root=n?o:t,r&&(o.$async=!0),!0===f.sourceCode&&(o.source={code:a,patterns:h,defaults:d}),o}function w(e,t,r){t=A.url(e,t);var i,n=l[t];if(void 0!==n)return x(o=p[n],i="refVal["+n+"]");if(!r&&s.refs){var a=s.refs[t];if(void 0!==a)return x(o=s.refVal[a],i=k(t,o))}i=k(t);var o,a=A.call(c,_,s,t);if(void 0!==a||(o=u&&u[t])&&(a=A.inlineRef(o,f.inlineRefs)?o:F.call(c,o,s,u,e)),void 0!==a)return e=l[e=t],x(p[e]=a,i);delete l[t]}function k(e,t){var r=p.length;return p[r]=t,"refVal"+(l[e]=r)}function x(e,t){return"object"==_typeof(e)||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function S(e){var t=r[e];return void 0===t&&(t=r[e]=h.length,h[t]=e),"pattern"+t}function j(e){switch(_typeof(e)){case"boolean":case"number":return""+e;case"string":return P.toQuotedString(e);case"object":if(null===e)return"null";var t=T(e),r=i[t];return void 0===r&&(r=i[t]=d.length,d[r]=e),"default"+r}}function E(e,t,r,i){if(!1!==c._opts.validateSchema){var n=e.definition.dependencies;if(n&&!n.every(function(e){return Object.prototype.hasOwnProperty.call(r,e)}))throw new Error("parent schema must have all required keywords: "+n.join(","));var a=e.definition.validateSchema;if(a)if(!a(t)){var o="keyword schema is invalid: "+c.errorsText(a.errors);if("log"!=c._opts.validateSchema)throw new Error(o);c.logger.error(o)}}var s,n=e.definition.compile,a=e.definition.inline,o=e.definition.macro;if(n)s=n.call(c,t,r,i);else if(o)s=o.call(c,t,r,i),!1!==f.validateSchema&&c.validateSchema(s,!0);else if(a)s=a.call(c,i,e.keyword,t,r);else if(!(s=e.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+e.keyword+'"failed to compile');e=m.length;return{code:"customRule"+e,validate:m[e]=s}}}function M(e,t,r){for(var i=0;i<this._compilations.length;i++){var n=this._compilations[i];if(n.schema==e&&n.root==t&&n.baseId==r)return i}return-1}function z(e,t){return"var pattern"+e+" = new RegExp("+P.toQuotedString(t[e])+");"}function N(e){return"var default"+e+" = defaults["+e+"];"}function D(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function L(e){return"var customRule"+e+" = customRules["+e+"];"}function q(e,t){if(!e.length)return"";for(var r="",i=0;i<e.length;i++)r+=t(i,e);return r}t.exports=F},{"../dotjs/validate":40,"./error_classes":5,"./resolve":8,"./util":12,"fast-deep-equal":233,"fast-json-stable-stringify":234}],8:[function(e,t,r){"use strict";var h=e("uri-js"),d=e("fast-deep-equal"),m=e("./util"),s=e("./schema_obj"),i=e("json-schema-traverse");function u(e,t,r){var i=this._refs[r];if("string"==typeof i){if(!this._refs[i])return u.call(this,e,t,i);i=this._refs[i]}if((i=i||this._schemas[r])instanceof s)return l(i.schema,this._opts.inlineRefs)?i.schema:i.validate||this._compile(i);var n,a,o,r=c.call(this,t,r);return r&&(n=r.schema,t=r.root,o=r.baseId),n instanceof s?a=n.validate||e.call(this,n.schema,t,void 0,o):void 0!==n&&(a=l(n,this._opts.inlineRefs)?n:e.call(this,n,t,void 0,o)),a}function c(e,t){var r=h.parse(t),i=b(r),n=g(this._getId(e.schema));if(0===Object.keys(e.schema).length||i!==n){var a=y(i),i=this._refs[a];if("string"==typeof i)return function(e,t,r){var i=c.call(this,e,t);if(i){var n=i.schema,t=i.baseId;e=i.root;i=this._getId(n);return i&&(t=v(t,i)),o.call(this,r,t,n,e)}}.call(this,e,i,r);if(i instanceof s)i.validate||this._compile(i),e=i;else{if(!((i=this._schemas[a])instanceof s))return;if(i.validate||this._compile(i),a==y(t))return{schema:i,root:e,baseId:n};e=i}if(!e.schema)return;n=g(this._getId(e.schema))}return o.call(this,r,n,e.schema,e)}(t.exports=u).normalizeId=y,u.fullPath=g,u.url=v,u.ids=function(e){var t=y(this._getId(e)),c={"":t},f={"":g(t,!1)},p={},l=this;return i(e,{allKeys:!0},function(e,t,r,i,n,a,o){if(""!==t){var s=l._getId(e),u=c[i],n=f[i]+"/"+n;if(void 0!==o&&(n+="/"+("number"==typeof o?o:m.escapeFragment(o))),"string"==typeof s){s=u=y(u?h.resolve(u,s):s);o=l._refs[s];if((o="string"==typeof o?l._refs[o]:o)&&o.schema){if(!d(e,o.schema))throw new Error('id "'+s+'" resolves to more than one schema')}else if(s!=y(n))if("#"==s[0]){if(p[s]&&!d(e,p[s]))throw new Error('id "'+s+'" resolves to more than one schema');p[s]=e}else l._refs[s]=n}c[t]=u,f[t]=n}}),p},u.inlineRef=l,u.schema=c;var f=m.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function o(e,t,r,i){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var n=e.fragment.split("/"),a=1;a<n.length;a++){var o=n[a];if(o){if(void 0===(r=r[o=m.unescapeFragment(o)]))break;f[o]||((o=this._getId(r))&&(t=v(t,o)),r.$ref&&(o=v(t,r.$ref),(o=c.call(this,i,o))&&(r=o.schema,i=o.root,t=o.baseId)))}}return void 0!==r&&r!==i.schema?{schema:r,root:i,baseId:t}:void 0}}var p=m.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function l(e,t){return!1!==t&&(void 0===t||!0===t?function e(t){var r;if(Array.isArray(t)){for(var i=0;i<t.length;i++)if("object"==_typeof(r=t[i])&&!e(r))return!1}else for(var n in t){if("$ref"==n)return!1;if("object"==_typeof(r=t[n])&&!e(r))return!1}return!0}(e):t?function e(t){var r,i=0;if(Array.isArray(t)){for(var n=0;n<t.length;n++)if("object"==_typeof(r=t[n])&&(i+=e(r)),i==1/0)return 1/0}else for(var a in t){if("$ref"==a)return 1/0;if(p[a])i++;else if("object"==_typeof(r=t[a])&&(i+=e(r)+1),i==1/0)return 1/0}return i}(e)<=t:void 0)}function g(e,t){return!1!==t&&(e=y(e)),b(h.parse(e))}function b(e){return h.serialize(e).split("#")[0]+"#"}var n=/#\/?$/;function y(e){return e?e.replace(n,""):""}function v(e,t){return t=y(t),h.resolve(e,t)}},{"./schema_obj":10,"./util":12,"fast-deep-equal":233,"json-schema-traverse":302,"uri-js":475}],9:[function(e,t,r){"use strict";var a=e("../dotjs"),o=e("./util").toHash;t.exports=function(){var i=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],n=["type","$comment"];return i.all=o(n),i.types=o(["number","integer","string","array","object","boolean","null"]),i.forEach(function(e){e.rules=e.rules.map(function(e){var t,r;return"object"==_typeof(e)&&(r=e[t=Object.keys(e)[0]],e=t,r.forEach(function(e){n.push(e),i.all[e]=!0})),n.push(e),i.all[e]={keyword:e,code:a[e],implements:r}}),i.all.$comment={keyword:"$comment",code:a.$comment},e.type&&(i.types[e.type]=e)}),i.keywords=o(n.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),i.custom={},i}},{"../dotjs":29,"./util":12}],10:[function(e,t,r){"use strict";var i=e("./util");t.exports=function(e){i.copy(e,this)}},{"./util":12}],11:[function(e,t,r){"use strict";t.exports=function(e){for(var t,r=0,i=e.length,n=0;n<i;)r++,55296<=(t=e.charCodeAt(n++))&&t<=56319&&n<i&&56320==(64512&(t=e.charCodeAt(n)))&&n++;return r}},{}],12:[function(e,t,r){"use strict";function a(e,t,r,i){var n=i?" !== ":" === ",a=i?" || ":" && ",o=i?"!":"",s=i?"":"!";switch(e){case"null":return t+n+"null";case"array":return o+"Array.isArray("+t+")";case"object":return"("+o+t+a+"typeof "+t+n+'"object"'+a+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+n+'"number"'+a+s+"("+t+" % 1)"+a+t+n+t+(r?a+o+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+n+'"'+e+'"'+(r?a+o+"isFinite("+t+")":"")+")";default:return"typeof "+t+n+'"'+e+'"'}}t.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:a,checkDataTypes:function(e,t,r){{if(1===e.length)return a(e[0],t,r,!0);var i,n="",e=s(e);for(i in e.array&&e.object&&(n=e.null?"(":"(!"+t+" || ",n+="typeof "+t+' !== "object")',delete e.null,delete e.array,delete e.object),e.number&&delete e.integer,e)n+=(n?" && ":"")+a(i,t,r,!0);return n}},coerceToTypes:function(e,t){{if(!Array.isArray(t))return o[t]?[t]:"array"===e&&"array"===t?["array"]:void 0;for(var r=[],i=0;i<t.length;i++){var n=t[i];(o[n]||"array"===e&&"array"===n)&&(r[r.length]=n)}if(r.length)return r}},toHash:s,getProperty:f,escapeQuotes:u,equal:e("fast-deep-equal"),ucs2length:e("./ucs2length"),varOccurences:function(e,t){t+="[^0-9]";t=e.match(new RegExp(t,"g"));return t?t.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var i in e)if(i!=r&&t[i])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var r in e)if(!t[r])return r},toQuotedString:c,getPathExpr:function(e,t,r,i){return h(e,r?"'/' + "+t+(i?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):i?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){t=c(r?"/"+d(t):f(t));return h(e,t)},getData:function(e,t,r){var i,n,a;if(""===e)return"rootData";if("/"==e[0]){if(!p.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,n="rootData"}else{if(!(a=e.match(l)))throw new Error("Invalid JSON-pointer: "+e);if(e=+a[1],"#"==(i=a[2])){if(t<=e)throw new Error("Cannot access property/index "+e+" levels up, current level is "+t);return r[t-e]}if(t<e)throw new Error("Cannot access data "+e+" levels up, current level is "+t);if(n="data"+(t-e||""),!i)return n}for(var o=n,s=i.split("/"),u=0;u<s.length;u++){var c=s[u];c&&(n+=f(m(c)),o+=" && "+n)}return o},unescapeFragment:function(e){return m(decodeURIComponent(e))},unescapeJsonPointer:m,escapeFragment:function(e){return encodeURIComponent(d(e))},escapeJsonPointer:d};var o=s(["string","number","integer","boolean","null"]);function s(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var i=/^[a-z$_][a-z$_0-9]*$/i,n=/'|\\/g;function f(e){return"number"==typeof e?"["+e+"]":i.test(e)?"."+e:"['"+u(e)+"']"}function u(e){return e.replace(n,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function c(e){return"'"+u(e)+"'"}var p=/^\/(?:[^~]|~0|~1)*$/,l=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function h(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function d(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function m(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},{"./ucs2length":11,"fast-deep-equal":233}],13:[function(e,t,r){"use strict";var u=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];t.exports=function(e,t){for(var r=0;r<t.length;r++){e=JSON.parse(JSON.stringify(e));for(var i=t[r].split("/"),n=e,a=1;a<i.length;a++)n=n[i[a]];for(a=0;a<u.length;a++){var o=u[a],s=n[o];s&&(n[o]={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},{}],14:[function(e,t,r){"use strict";e=e("./refs/json-schema-draft-07.json");t.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:e.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:e.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},{"./refs/json-schema-draft-07.json":44}],15:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i,n,a,o,s,u,c=" ",f=e.level,p=e.dataLevel,l=e.schema[t],h=e.schemaPath+e.util.getProperty(t),d=e.errSchemaPath+"/"+t,m=!e.opts.allErrors,g="data"+(p||""),b=e.opts.$data&&l&&l.$data,y=b?(c+=" var schema"+f+" = "+e.util.getData(l.$data,p,e.dataPathArr)+"; ","schema"+f):l,v="maximum"==t,_=v?"exclusiveMaximum":"exclusiveMinimum",w=e.schema[_],k=e.opts.$data&&w&&w.$data,x=v?"<":">",S=v?">":"<",j=void 0;if(!b&&"number"!=typeof l&&void 0!==l)throw new Error(t+" must be number");if(!k&&void 0!==w&&"number"!=typeof w&&"boolean"!=typeof w)throw new Error(_+" must be number or boolean");k?(a="exclIsNumber"+f,o="' + "+(s="op"+f)+" + '",c+=" var schemaExcl"+f+" = "+(i=e.util.getData(w.$data,p,e.dataPathArr))+"; ",j=_,(u=u||[]).push(c+=" var "+(n="exclusive"+f)+"; var "+(p="exclType"+f)+" = typeof "+(i="schemaExcl"+f)+"; if ("+p+" != 'boolean' && "+p+" != 'undefined' && "+p+" != 'number') { "),c="",!1!==e.createErrors?(c+=" { keyword: '"+(j||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",!1!==e.opts.messages&&(c+=" , message: '"+_+" should be boolean' "),e.opts.verbose&&(c+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),c+=" } "):c+=" {} ",E=c,c=u.pop(),!e.compositeRule&&m?e.async?c+=" throw new ValidationError(["+E+"]); ":c+=" validate.errors = ["+E+"]; return false; ":c+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c+=" } else if ( ",b&&(c+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),c+=" "+p+" == 'number' ? ( ("+n+" = "+y+" === undefined || "+i+" "+x+"= "+y+") ? "+g+" "+S+"= "+i+" : "+g+" "+S+" "+y+" ) : ( ("+n+" = "+i+" === true) ? "+g+" "+S+"= "+y+" : "+g+" "+S+" "+y+" ) || "+g+" !== "+g+") { var op"+f+" = "+n+" ? '"+x+"' : '"+x+"='; ",void 0===l&&(j=_,d=e.errSchemaPath+"/"+_,y=i,b=k)):(o=x,(a="number"==typeof w)&&b?(s="'"+o+"'",c+=" if ( ",b&&(c+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),c+=" ( "+y+" === undefined || "+w+" "+x+"= "+y+" ? "+g+" "+S+"= "+w+" : "+g+" "+S+" "+y+" ) || "+g+" !== "+g+") { "):(a&&void 0===l?(n=!0,j=_,d=e.errSchemaPath+"/"+_,y=w,S+="="):(a&&(y=Math[v?"min":"max"](w,l)),w===(!a||y)?(n=!0,j=_,d=e.errSchemaPath+"/"+_,S+="="):(n=!1,o+="=")),s="'"+o+"'",c+=" if ( ",b&&(c+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),c+=" "+g+" "+S+" "+y+" || "+g+" !== "+g+") { ")),j=j||t,(u=u||[]).push(c),c="",!1!==e.createErrors?(c+=" { keyword: '"+(j||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { comparison: "+s+", limit: "+y+", exclusive: "+n+" } ",!1!==e.opts.messages&&(c+=" , message: 'should be "+o+" ",c+=b?"' + "+y:y+"'"),e.opts.verbose&&(c+=" , schema: ",c+=b?"validate.schema"+h:""+l,c+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),c+=" } "):c+=" {} ";var E=c;return c=u.pop(),!e.compositeRule&&m?e.async?c+=" throw new ValidationError(["+E+"]); ":c+=" validate.errors = ["+E+"]; return false; ":c+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c+=" } ",m&&(c+=" else { "),c}},{}],16:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),p=e.opts.$data&&o&&o.$data,a=p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ","schema"+n):o;if(!p&&"number"!=typeof o)throw new Error(t+" must be number");i+="if ( ",p&&(i+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),i+=" "+f+".length "+("maxItems"==t?">":"<")+" "+a+") { ";var n=t,l=l||[];l.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(n||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+a+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==t?"more":"fewer",i+=" than ",i+=p?"' + "+a+" + '":""+o,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+s:""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";f=i,i=l.pop();return!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+f+"]); ":i+=" validate.errors = ["+f+"]; return false; ":i+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},{}],17:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),p=e.opts.$data&&o&&o.$data,a=p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ","schema"+n):o;if(!p&&"number"!=typeof o)throw new Error(t+" must be number");var n="maxLength"==t?">":"<";i+="if ( ",p&&(i+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),!1===e.opts.unicode?i+=" "+f+".length ":i+=" ucs2length("+f+") ",i+=" "+n+" "+a+") { ";var n=t,l=l||[];l.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(n||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+a+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==t?"longer":"shorter",i+=" than ",i+=p?"' + "+a+" + '":""+o,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+s:""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";f=i,i=l.pop();return!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+f+"]); ":i+=" validate.errors = ["+f+"]; return false; ":i+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},{}],18:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),p=e.opts.$data&&o&&o.$data,a=p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ","schema"+n):o;if(!p&&"number"!=typeof o)throw new Error(t+" must be number");i+="if ( ",p&&(i+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),i+=" Object.keys("+f+").length "+("maxProperties"==t?">":"<")+" "+a+") { ";var n=t,l=l||[];l.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(n||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+a+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==t?"more":"fewer",i+=" than ",i+=p?"' + "+a+" + '":""+o,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+s:""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";f=i,i=l.pop();return!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+f+"]); ":i+=" validate.errors = ["+f+"]; return false; ":i+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},{}],19:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.schema[t],a=e.schemaPath+e.util.getProperty(t),o=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,u=e.util.copy(e),c="";u.level++;var f="valid"+u.level,p=u.baseId,l=!0,h=n;if(h)for(var d,m=-1,g=h.length-1;m<g;)d=h[m+=1],(e.opts.strictKeywords?"object"==_typeof(d)&&0<Object.keys(d).length||!1===d:e.util.schemaHasRules(d,e.RULES.all))&&(l=!1,u.schema=d,u.schemaPath=a+"["+m+"]",u.errSchemaPath=o+"/"+m,i+=" "+e.validate(u)+" ",u.baseId=p,s&&(i+=" if ("+f+") { ",c+="}"));return s&&(i+=l?" if (true) { ":" "+c.slice(0,-1)+" "),i}},{}],20:[function(e,t,r){"use strict";t.exports=function(t,e,r){var i=" ",n=t.level,a=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,e="data"+(a||""),f="valid"+n,a="errs__"+n,p=t.util.copy(t),l="";p.level++;var h="valid"+p.level;if(o.every(function(e){return t.opts.strictKeywords?"object"==_typeof(e)&&0<Object.keys(e).length||!1===e:t.util.schemaHasRules(e,t.RULES.all)})){var d=p.baseId;i+=" var "+a+" = errors; var "+f+" = false; ";n=t.compositeRule;t.compositeRule=p.compositeRule=!0;var m=o;if(m)for(var g,b=-1,y=m.length-1;b<y;)g=m[b+=1],p.schema=g,p.schemaPath=s+"["+b+"]",p.errSchemaPath=u+"/"+b,i+=" "+t.validate(p)+" ",p.baseId=d,i+=" "+f+" = "+f+" || "+h+"; if (!"+f+") { ",l+="}";t.compositeRule=p.compositeRule=n,i+=" "+l+" if (!"+f+") { var err = ",!1!==t.createErrors?(i+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",!1!==t.opts.messages&&(i+=" , message: 'should match some schema in anyOf' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+e+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&c&&(t.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } else { errors = "+a+"; if (vErrors !== null) { if ("+a+") vErrors.length = "+a+"; else vErrors = null; } ",t.opts.allErrors&&(i+=" } ")}else c&&(i+=" if (true) { ");return i}},{}],21:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.schema[t],t=e.errSchemaPath+"/"+t,n=(e.opts.allErrors,e.util.toQuotedString(n));return!0===e.opts.$comment?i+=" console.log("+n+");":"function"==typeof e.opts.$comment&&(i+=" self._opts.$comment("+n+", "+e.util.toQuotedString(t)+", validate.root.schema);"),i}},{}],22:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),p="valid"+n,t=e.opts.$data&&o&&o.$data;t&&(i+=" var schema"+n+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ");t||(i+=" var schema"+n+" = validate.schema"+s+";"),i+="var "+p+" = equal("+f+", schema"+n+"); if (!"+p+") { ";var l=l||[];l.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValue: schema"+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be equal to constant' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";f=i,i=l.pop();return!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+f+"]); ":i+=" validate.errors = ["+f+"]; return false; ":i+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",c&&(i+=" else { "),i}},{}],23:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),p="valid"+n,l="errs__"+n,h=e.util.copy(e);h.level++;var d="valid"+h.level,m="i"+n,g=h.dataLevel=e.dataLevel+1,t="data"+g,a=e.baseId,n=e.opts.strictKeywords?"object"==_typeof(o)&&0<Object.keys(o).length||!1===o:e.util.schemaHasRules(o,e.RULES.all);i+="var "+l+" = errors;var "+p+";",n?(p=e.compositeRule,e.compositeRule=h.compositeRule=!0,h.schema=o,h.schemaPath=s,h.errSchemaPath=u,i+=" var "+d+" = false; for (var "+m+" = 0; "+m+" < "+f+".length; "+m+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0),o=f+"["+m+"]",h.dataPathArr[g]=m,m=e.validate(h),h.baseId=a,e.util.varOccurences(m,t)<2?i+=" "+e.util.varReplace(m,t,o)+" ":i+=" var "+t+" = "+o+"; "+m+" ",i+=" if ("+d+") break; } ",e.compositeRule=h.compositeRule=p,i+=" if (!"+d+") {"):i+=" if ("+f+".length == 0) {";var b=b||[];b.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(i+=" , message: 'should contain a valid item' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";f=i,i=b.pop();return!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+f+"]); ":i+=" validate.errors = ["+f+"]; return false; ":i+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { ",n&&(i+=" errors = "+l+"; if (vErrors !== null) { if ("+l+") vErrors.length = "+l+"; else vErrors = null; } "),e.opts.allErrors&&(i+=" } "),i}},{}],24:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i,n,a,o,s=" ",u=e.level,c=e.dataLevel,f=e.schema[t],p=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,d="data"+(c||""),m="valid"+u,g="errs__"+u,b=e.opts.$data&&f&&f.$data,y=b?(s+=" var schema"+u+" = "+e.util.getData(f.$data,c,e.dataPathArr)+"; ","schema"+u):f,v=this,_="definition"+u,w=v.definition,k="";if(b&&w.$data){o="keywordValidate"+u;var x=w.validateSchema;s+=" var "+_+" = RULES.custom['"+t+"'].definition; var "+o+" = "+_+".validate;"}else{if(!(j=e.useCustomRule(v,f,e.schema,e)))return;y="validate.schema"+p,o=j.code,i=w.compile,n=w.inline,a=w.macro}var S,j,E,A,P,I=o+".errors",T="i"+u,t="ruleErr"+u,f=w.async;if(f&&!e.async)throw new Error("async keyword in sync schema");return n||a||(s+=I+" = null;"),s+="var "+g+" = errors;var "+m+";",b&&w.$data&&(k+="}",s+=" if ("+y+" === undefined) { "+m+" = true; } else { ",x&&(k+="}",s+=" "+m+" = "+_+".validateSchema("+y+"); if ("+m+") { ")),n?w.statements?s+=" "+j.validate+" ":s+=" "+m+" = "+j.validate+"; ":a?(k="",(x=e.util.copy(e)).level++,S="valid"+x.level,x.schema=j.validate,x.schemaPath="",_=e.compositeRule,e.compositeRule=x.compositeRule=!0,j=e.validate(x).replace(/validate\.schema/g,o),e.compositeRule=x.compositeRule=_,s+=" "+j):((P=P||[]).push(s),s="",s+=" "+o+".call( ",e.opts.passContext?s+="this":s+="self",i||!1===w.schema?s+=" , "+d+" ":s+=" , "+y+" , "+d+" , validate.schema"+e.schemaPath+" ",s+=" , (dataPath || '')",'""'!=e.errorPath&&(s+=" + "+e.errorPath),c=s+=" , "+(E=c?"data"+(c-1||""):"parentData")+" , "+(A=c?e.dataPathArr[c]:"parentDataProperty")+" , rootData ) ",s=P.pop(),!1===w.errors?(s+=" "+m+" = ",f&&(s+="await "),s+=c+"; "):s+=f?" var "+(I="customErrors"+u)+" = null; try { "+m+" = await "+c+"; } catch (e) { "+m+" = false; if (e instanceof ValidationError) "+I+" = e.errors; else throw e; } ":" "+I+" = null; "+m+" = "+c+"; "),w.modifying&&(s+=" if ("+E+") "+d+" = "+E+"["+A+"];"),s+=""+k,w.valid?h&&(s+=" if (true) { "):(s+=" if ( ",void 0===w.valid?(s+=" !",s+=a?""+S:m):s+=" "+!w.valid+" ",s+=") { ",S=v.keyword,(P=P||[]).push(s),(P=P||[]).push(s=""),s="",!1!==e.createErrors?(s+=" { keyword: '"+(S||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+v.keyword+"' } ",!1!==e.opts.messages&&(s+=" , message: 'should pass \""+v.keyword+"\" keyword validation' "),e.opts.verbose&&(s+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",m=s,s=P.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+m+"]); ":s+=" validate.errors = ["+m+"]; return false; ":s+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m=s,s=P.pop(),n?w.errors?"full"!=w.errors&&(s+=" for (var "+T+"="+g+"; "+T+"<errors; "+T+"++) { var "+t+" = vErrors["+T+"]; if ("+t+".dataPath === undefined) "+t+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+t+".schemaPath === undefined) { "+t+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(s+=" "+t+".schema = "+y+"; "+t+".data = "+d+"; "),s+=" } "):!1===w.errors?s+=" "+m+" ":(s+=" if ("+g+" == errors) { "+m+" } else { for (var "+T+"="+g+"; "+T+"<errors; "+T+"++) { var "+t+" = vErrors["+T+"]; if ("+t+".dataPath === undefined) "+t+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+t+".schemaPath === undefined) { "+t+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(s+=" "+t+".schema = "+y+"; "+t+".data = "+d+"; "),s+=" } } "):a?(s+=" var err = ",!1!==e.createErrors?(s+=" { keyword: '"+(S||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+v.keyword+"' } ",!1!==e.opts.messages&&(s+=" , message: 'should pass \""+v.keyword+"\" keyword validation' "),e.opts.verbose&&(s+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&h&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; ")):!1===w.errors?s+=" "+m+" ":(s+=" if (Array.isArray("+I+")) { if (vErrors === null) vErrors = "+I+"; else vErrors = vErrors.concat("+I+"); errors = vErrors.length; for (var "+T+"="+g+"; "+T+"<errors; "+T+"++) { var "+t+" = vErrors["+T+"]; if ("+t+".dataPath === undefined) "+t+".dataPath = (dataPath || '') + "+e.errorPath+"; "+t+'.schemaPath = "'+l+'"; ',e.opts.verbose&&(s+=" "+t+".schema = "+y+"; "+t+".data = "+d+"; "),s+=" } } else { "+m+" } "),s+=" } ",h&&(s+=" else { ")),s}},{}],25:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),a="errs__"+n,p=e.util.copy(e),l="";p.level++;var h,d="valid"+p.level,m={},g={},b=e.opts.ownProperties;for(O in o)"__proto__"!=O&&(R=o[O],(h=Array.isArray(R)?g:m)[O]=R);i+="var "+a+" = errors;";var y=e.errorPath;for(O in i+="var missing"+n+";",g)if((h=g[O]).length){if(i+=" if ( "+f+e.util.getProperty(O)+" !== undefined ",b&&(i+=" && Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(O)+"') "),c){i+=" && ( ";var v=h;if(v)for(var _=-1,w=v.length-1;_<w;)E=v[_+=1],_&&(i+=" || "),i+=" ( ( "+(T=f+(I=e.util.getProperty(E)))+" === undefined ",b&&(i+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(E)+"') "),i+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?E:I)+") ) ";i+=")) { ";var k="missing"+n,x="' + "+k+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(y,k,!0):y+" + "+k);var S=S||[];S.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(O)+"', missingProperty: '"+x+"', depsCount: "+h.length+", deps: '"+e.util.escapeQuotes(1==h.length?h[0]:h.join(", "))+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should have ",1==h.length?i+="property "+e.util.escapeQuotes(h[0]):i+="properties "+e.util.escapeQuotes(h.join(", ")),i+=" when property "+e.util.escapeQuotes(O)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";k=i,i=S.pop();!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+k+"]); ":i+=" validate.errors = ["+k+"]; return false; ":i+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{i+=" ) { ";var j=h;if(j)for(var E,A=-1,P=j.length-1;A<P;){E=j[A+=1];var I=e.util.getProperty(E),x=e.util.escapeQuotes(E),T=f+I;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(y,E,e.opts.jsonPointers)),i+=" if ( "+T+" === undefined ",b&&(i+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(E)+"') "),i+=") { var err = ",!1!==e.createErrors?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(O)+"', missingProperty: '"+x+"', depsCount: "+h.length+", deps: '"+e.util.escapeQuotes(1==h.length?h[0]:h.join(", "))+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should have ",1==h.length?i+="property "+e.util.escapeQuotes(h[0]):i+="properties "+e.util.escapeQuotes(h.join(", ")),i+=" when property "+e.util.escapeQuotes(O)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}i+=" } ",c&&(l+="}",i+=" else { ")}e.errorPath=y;var O,C=p.baseId;for(O in m){var R=m[O];(e.opts.strictKeywords?"object"==_typeof(R)&&0<Object.keys(R).length||!1===R:e.util.schemaHasRules(R,e.RULES.all))&&(i+=" "+d+" = true; if ( "+f+e.util.getProperty(O)+" !== undefined ",b&&(i+=" && Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(O)+"') "),i+=") { ",p.schema=R,p.schemaPath=s+e.util.getProperty(O),p.errSchemaPath=u+"/"+e.util.escapeFragment(O),i+=" "+e.validate(p)+" ",p.baseId=C,i+=" } ",c&&(i+=" if ("+d+") { ",l+="}"))}return c&&(i+=" "+l+" if ("+a+" == errors) {"),i}},{}],26:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),p="valid"+n,t=e.opts.$data&&o&&o.$data,a=(t&&(i+=" var schema"+n+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; "),"i"+n),o="schema"+n;t||(i+=" var "+o+" = validate.schema"+s+";"),i+="var "+p+";",t&&(i+=" if (schema"+n+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+n+")) "+p+" = false; else {"),i+=p+" = false;for (var "+a+"=0; "+a+"<"+o+".length; "+a+"++) if (equal("+f+", "+o+"["+a+"])) { "+p+" = true; break; }",t&&(i+=" } "),i+=" if (!"+p+") { ";var l=l||[];l.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";f=i,i=l.pop();return!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+f+"]); ":i+=" validate.errors = ["+f+"]; return false; ":i+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",c&&(i+=" else { "),i}},{}],27:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||"");if(!1===e.opts.format)return c&&(i+=" if (true) { "),i;var p,l=e.opts.$data&&o&&o.$data,h=l?(i+=" var schema"+n+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ","schema"+n):o,t=e.opts.unknownFormats,a=Array.isArray(t);if(l)i+=" var "+(p="format"+n)+" = formats["+h+"]; var "+(d="isObject"+n)+" = typeof "+p+" == 'object' && !("+p+" instanceof RegExp) && "+p+".validate; var "+(g="formatType"+n)+" = "+d+" && "+p+".type || 'string'; if ("+d+") { ",e.async&&(i+=" var async"+n+" = "+p+".async; "),i+=" "+p+" = "+p+".validate; } if ( ",l&&(i+=" ("+h+" !== undefined && typeof "+h+" != 'string') || "),i+=" (","ignore"!=t&&(i+=" ("+h+" && !"+p+" ",a&&(i+=" && self._opts.unknownFormats.indexOf("+h+") == -1 "),i+=") || "),i+=" ("+p+" && "+g+" == '"+r+"' && !(typeof "+p+" == 'function' ? ",e.async?i+=" (async"+n+" ? await "+p+"("+f+") : "+p+"("+f+")) ":i+=" "+p+"("+f+") ",i+=" : "+p+".test("+f+"))))) {";else{if(!(p=e.formats[o])){if("ignore"==t)return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(i+=" if (true) { "),i;if(a&&0<=t.indexOf(o))return c&&(i+=" if (true) { "),i;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var d,m,g=(d="object"==_typeof(p)&&!(p instanceof RegExp)&&p.validate)&&p.type||"string";if(d&&(m=!0===p.async,p=p.validate),g!=r)return c&&(i+=" if (true) { "),i;if(m){if(!e.async)throw new Error("async format in sync schema");i+=" if (!(await "+(b="formats"+e.util.getProperty(o)+".validate")+"("+f+"))) { "}else{i+=" if (! ";var b="formats"+e.util.getProperty(o);d&&(b+=".validate"),i+="function"==typeof p?" "+b+"("+f+") ":" "+b+".test("+f+") ",i+=") { "}}var y=y||[];y.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ",i+=l?""+h:""+e.util.toQuotedString(o),i+=" } ",!1!==e.opts.messages&&(i+=" , message: 'should match format \"",i+=l?"' + "+h+" + '":""+e.util.escapeQuotes(o),i+="\"' "),e.opts.verbose&&(i+=" , schema: ",i+=l?"validate.schema"+s:""+e.util.toQuotedString(o),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";f=i,i=y.pop();return!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+f+"]); ":i+=" validate.errors = ["+f+"]; return false; ":i+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",c&&(i+=" else { "),i}},{}],28:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),p="valid"+n,l="errs__"+n,h=e.util.copy(e);h.level++;var d,m="valid"+h.level,g=e.schema.then,t=e.schema.else,a=void 0!==g&&(e.opts.strictKeywords?"object"==_typeof(g)&&0<Object.keys(g).length||!1===g:e.util.schemaHasRules(g,e.RULES.all)),g=void 0!==t&&(e.opts.strictKeywords?"object"==_typeof(t)&&0<Object.keys(t).length||!1===t:e.util.schemaHasRules(t,e.RULES.all)),t=h.baseId;return a||g?(h.createErrors=!1,h.schema=o,h.schemaPath=s,h.errSchemaPath=u,i+=" var "+l+" = errors; var "+p+" = true; ",o=e.compositeRule,e.compositeRule=h.compositeRule=!0,i+=" "+e.validate(h)+" ",h.baseId=t,h.createErrors=!0,i+=" errors = "+l+"; if (vErrors !== null) { if ("+l+") vErrors.length = "+l+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=o,a?(i+=" if ("+m+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",i+=" "+e.validate(h)+" ",h.baseId=t,i+=" "+p+" = "+m+"; ",a&&g?i+=" var "+(d="ifClause"+n)+" = 'then'; ":d="'then'",i+=" } ",g&&(i+=" else { ")):i+=" if (!"+m+") { ",g&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",i+=" "+e.validate(h)+" ",h.baseId=t,i+=" "+p+" = "+m+"; ",a&&g?i+=" var "+(d="ifClause"+n)+" = 'else'; ":d="'else'",i+=" } "),i+=" if (!"+p+") { var err = ",!1!==e.createErrors?(i+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+d+" } ",!1!==e.opts.messages&&(i+=" , message: 'should match \"' + "+d+" + '\" schema' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } ",c&&(i+=" else { ")):c&&(i+=" if (true) { "),i}},{}],29:[function(e,t,r){"use strict";t.exports={$ref:e("./ref"),allOf:e("./allOf"),anyOf:e("./anyOf"),$comment:e("./comment"),const:e("./const"),contains:e("./contains"),dependencies:e("./dependencies"),enum:e("./enum"),format:e("./format"),if:e("./if"),items:e("./items"),maximum:e("./_limit"),minimum:e("./_limit"),maxItems:e("./_limitItems"),minItems:e("./_limitItems"),maxLength:e("./_limitLength"),minLength:e("./_limitLength"),maxProperties:e("./_limitProperties"),minProperties:e("./_limitProperties"),multipleOf:e("./multipleOf"),not:e("./not"),oneOf:e("./oneOf"),pattern:e("./pattern"),properties:e("./properties"),propertyNames:e("./propertyNames"),required:e("./required"),uniqueItems:e("./uniqueItems"),validate:e("./validate")}},{"./_limit":15,"./_limitItems":16,"./_limitLength":17,"./_limitProperties":18,"./allOf":19,"./anyOf":20,"./comment":21,"./const":22,"./contains":23,"./dependencies":25,"./enum":26,"./format":27,"./if":28,"./items":30,"./multipleOf":31,"./not":32,"./oneOf":33,"./pattern":34,"./properties":35,"./propertyNames":36,"./ref":37,"./required":38,"./uniqueItems":39,"./validate":40}],30:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),p="valid"+n,l="errs__"+n,h=e.util.copy(e),d="";h.level++;var m="valid"+h.level,t="i"+n,g=h.dataLevel=e.dataLevel+1,b="data"+g,y=e.baseId;if(i+="var "+l+" = errors;var "+p+";",Array.isArray(o)){var v,a=e.schema.additionalItems;!1===a&&(i+=" "+p+" = "+f+".length <= "+o.length+"; ",n=u,u=e.errSchemaPath+"/additionalItems",(v=v||[]).push(i+=" if (!"+p+") { "),i="",!1!==e.createErrors?(i+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+o.length+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",p=i,i=v.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+p+"]); ":i+=" validate.errors = ["+p+"]; return false; ":i+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u=n,c&&(d+="}",i+=" else { "));var _=o;if(_)for(var w=-1,k=_.length-1;w<k;){var x,S,j=_[w+=1];(e.opts.strictKeywords?"object"==_typeof(j)&&0<Object.keys(j).length||!1===j:e.util.schemaHasRules(j,e.RULES.all))&&(i+=" "+m+" = true; if ("+f+".length > "+w+") { ",x=f+"["+w+"]",h.schema=j,h.schemaPath=s+"["+w+"]",h.errSchemaPath=u+"/"+w,h.errorPath=e.util.getPathExpr(e.errorPath,w,e.opts.jsonPointers,!0),h.dataPathArr[g]=w,S=e.validate(h),h.baseId=y,e.util.varOccurences(S,b)<2?i+=" "+e.util.varReplace(S,b,x)+" ":i+=" var "+b+" = "+x+"; "+S+" ",i+=" } ",c&&(i+=" if ("+m+") { ",d+="}"))}"object"==_typeof(a)&&(e.opts.strictKeywords?"object"==_typeof(a)&&0<Object.keys(a).length||!1===a:e.util.schemaHasRules(a,e.RULES.all))&&(h.schema=a,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",i+=" "+m+" = true; if ("+f+".length > "+o.length+") { for (var "+t+" = "+o.length+"; "+t+" < "+f+".length; "+t+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,t,e.opts.jsonPointers,!0),x=f+"["+t+"]",h.dataPathArr[g]=t,S=e.validate(h),h.baseId=y,e.util.varOccurences(S,b)<2?i+=" "+e.util.varReplace(S,b,x)+" ":i+=" var "+b+" = "+x+"; "+S+" ",c&&(i+=" if (!"+m+") break; "),i+=" } } ",c&&(i+=" if ("+m+") { ",d+="}"))}else(e.opts.strictKeywords?"object"==_typeof(o)&&0<Object.keys(o).length||!1===o:e.util.schemaHasRules(o,e.RULES.all))&&(h.schema=o,h.schemaPath=s,h.errSchemaPath=u,i+=" for (var "+t+" = 0; "+t+" < "+f+".length; "+t+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,t,e.opts.jsonPointers,!0),x=f+"["+t+"]",h.dataPathArr[g]=t,S=e.validate(h),h.baseId=y,e.util.varOccurences(S,b)<2?i+=" "+e.util.varReplace(S,b,x)+" ":i+=" var "+b+" = "+x+"; "+S+" ",c&&(i+=" if (!"+m+") break; "),i+=" }");return c&&(i+=" "+d+" if ("+l+" == errors) {"),i}},{}],31:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),p=e.opts.$data&&o&&o.$data,a=p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ","schema"+n):o;if(!p&&"number"!=typeof o)throw new Error(t+" must be number");i+="var division"+n+";if (",p&&(i+=" "+a+" !== undefined && ( typeof "+a+" != 'number' || "),i+=" (division"+n+" = "+f+" / "+a+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+n+") - division"+n+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+n+" !== parseInt(division"+n+") ",i+=" ) ",p&&(i+=" ) "),i+=" ) { ";var l=l||[];l.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+a+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be multiple of ",i+=p?"' + "+a:a+"'"),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+s:""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";f=i,i=l.pop();return!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+f+"]); ":i+=" validate.errors = ["+f+"]; return false; ":i+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},{}],32:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),t="errs__"+n,a=e.util.copy(e);a.level++;var p,l,n="valid"+a.level;return(e.opts.strictKeywords?"object"==_typeof(o)&&0<Object.keys(o).length||!1===o:e.util.schemaHasRules(o,e.RULES.all))?(a.schema=o,a.schemaPath=s,a.errSchemaPath=u,i+=" var "+t+" = errors; ",o=e.compositeRule,e.compositeRule=a.compositeRule=!0,a.createErrors=!1,a.opts.allErrors&&(p=a.opts.allErrors,a.opts.allErrors=!1),i+=" "+e.validate(a)+" ",a.createErrors=!0,p&&(a.opts.allErrors=p),e.compositeRule=a.compositeRule=o,(l=l||[]).push(i+=" if ("+n+") { "),i="",!1!==e.createErrors?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",n=i,i=l.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+n+"]); ":i+=" validate.errors = ["+n+"]; return false; ":i+=" var err = "+n+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { errors = "+t+"; if (vErrors !== null) { if ("+t+") vErrors.length = "+t+"; else vErrors = null; } ",e.opts.allErrors&&(i+=" } ")):(i+=" var err = ",!1!==e.createErrors?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(i+=" if (false) { ")),i}},{}],33:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,t="data"+(a||""),f="valid"+n,a="errs__"+n,p=e.util.copy(e),l="";p.level++;var h="valid"+p.level,d=p.baseId,m="prevValid"+n,g="passingSchemas"+n;i+="var "+a+" = errors , "+m+" = false , "+f+" = false , "+g+" = null; ";n=e.compositeRule;e.compositeRule=p.compositeRule=!0;var b=o;if(b)for(var y,v=-1,_=b.length-1;v<_;)y=b[v+=1],(e.opts.strictKeywords?"object"==_typeof(y)&&0<Object.keys(y).length||!1===y:e.util.schemaHasRules(y,e.RULES.all))?(p.schema=y,p.schemaPath=s+"["+v+"]",p.errSchemaPath=u+"/"+v,i+=" "+e.validate(p)+" ",p.baseId=d):i+=" var "+h+" = true; ",v&&(i+=" if ("+h+" && "+m+") { "+f+" = false; "+g+" = ["+g+", "+v+"]; } else { ",l+="}"),i+=" if ("+h+") { "+f+" = "+m+" = true; "+g+" = "+v+"; }";return e.compositeRule=p.compositeRule=n,i+=l+"if (!"+f+") { var err = ",!1!==e.createErrors?(i+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+g+" } ",!1!==e.opts.messages&&(i+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+t+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+="} else { errors = "+a+"; if (vErrors !== null) { if ("+a+") vErrors.length = "+a+"; else vErrors = null; }",e.opts.allErrors&&(i+=" } "),i}},{}],34:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),t=e.opts.$data&&o&&o.$data,n=t?(i+=" var schema"+n+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ","schema"+n):o;i+="if ( ",t&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),i+=" !"+(t?"(new RegExp("+n+"))":e.usePattern(o))+".test("+f+") ) { ";var p=p||[];p.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",i+=t?""+n:""+e.util.toQuotedString(o),i+=" } ",!1!==e.opts.messages&&(i+=" , message: 'should match pattern \"",i+=t?"' + "+n+" + '":""+e.util.escapeQuotes(o),i+="\"' "),e.opts.verbose&&(i+=" , schema: ",i+=t?"validate.schema"+s:""+e.util.toQuotedString(o),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";f=i,i=p.pop();return!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+f+"]); ":i+=" validate.errors = ["+f+"]; return false; ":i+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},{}],35:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),p="errs__"+n,l=e.util.copy(e),h="";l.level++;var d,m="valid"+l.level,g="key"+n,b="idx"+n,y=l.dataLevel=e.dataLevel+1,v="data"+y,_="dataProperties"+n,w=Object.keys(o||{}).filter(O),k=e.schema.patternProperties||{},x=Object.keys(k).filter(O),S=e.schema.additionalProperties,j=w.length||x.length,E=!1===S,A="object"==_typeof(S)&&Object.keys(S).length,P=e.opts.removeAdditional,t=E||A||P,I=e.opts.ownProperties,T=e.baseId,a=e.schema.required;function O(e){return"__proto__"!==e}if(a&&(!e.opts.$data||!a.$data)&&a.length<e.opts.loopRequired&&(d=e.util.toHash(a)),i+="var "+p+" = errors;var "+m+" = true;",I&&(i+=" var "+_+" = undefined;"),t){if(i+=I?" "+_+" = "+_+" || Object.keys("+f+"); for (var "+b+"=0; "+b+"<"+_+".length; "+b+"++) { var "+g+" = "+_+"["+b+"]; ":" for (var "+g+" in "+f+") { ",j){if(i+=" var isAdditional"+n+" = !(false ",w.length)if(8<w.length)i+=" || validate.schema"+s+".hasOwnProperty("+g+") ";else{var C=w;if(C)for(var R=-1,B=C.length-1;R<B;)L=C[R+=1],i+=" || "+g+" == "+e.util.toQuotedString(L)+" "}if(x.length){var F=x;if(F)for(var M=-1,z=F.length-1;M<z;)X=F[M+=1],i+=" || "+e.usePattern(X)+".test("+g+") "}i+=" ); if (isAdditional"+n+") { "}"all"==P?i+=" delete "+f+"["+g+"]; ":(V=e.errorPath,n="' + "+g+" + '",e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers)),E?P?i+=" delete "+f+"["+g+"]; ":(i+=" "+m+" = false; ",$=u,u=e.errSchemaPath+"/additionalProperties",(W=W||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { additionalProperty: '"+n+"' } ",!1!==e.opts.messages&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is an invalid additional property":i+="should NOT have additional properties",i+="' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",Z=i,i=W.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+Z+"]); ":i+=" validate.errors = ["+Z+"]; return false; ":i+=" var err = "+Z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=$,c&&(i+=" break; ")):A&&("failing"==P?(i+=" var "+p+" = errors; ",P=e.compositeRule,e.compositeRule=l.compositeRule=!0,l.schema=S,l.schemaPath=e.schemaPath+".additionalProperties",l.errSchemaPath=e.errSchemaPath+"/additionalProperties",l.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers),te=f+"["+g+"]",l.dataPathArr[y]=g,re=e.validate(l),l.baseId=T,e.util.varOccurences(re,v)<2?i+=" "+e.util.varReplace(re,v,te)+" ":i+=" var "+v+" = "+te+"; "+re+" ",i+=" if (!"+m+") { errors = "+p+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+f+"["+g+"]; } ",e.compositeRule=l.compositeRule=P):(l.schema=S,l.schemaPath=e.schemaPath+".additionalProperties",l.errSchemaPath=e.errSchemaPath+"/additionalProperties",l.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers),te=f+"["+g+"]",l.dataPathArr[y]=g,re=e.validate(l),l.baseId=T,e.util.varOccurences(re,v)<2?i+=" "+e.util.varReplace(re,v,te)+" ":i+=" var "+v+" = "+te+"; "+re+" ",c&&(i+=" if (!"+m+") break; "))),e.errorPath=V),j&&(i+=" } "),i+=" } ",c&&(i+=" if ("+m+") { ",h+="}")}var N=e.opts.useDefaults&&!e.compositeRule;if(w.length){var D=w;if(D)for(var L,q=-1,U=D.length-1;q<U;){var H,K,V,$,G,W,Z,Y=o[L=D[q+=1]];(e.opts.strictKeywords?"object"==_typeof(Y)&&0<Object.keys(Y).length||!1===Y:e.util.schemaHasRules(Y,e.RULES.all))&&(te=f+(H=e.util.getProperty(L)),G=N&&void 0!==Y.default,l.schema=Y,l.schemaPath=s+H,l.errSchemaPath=u+"/"+e.util.escapeFragment(L),l.errorPath=e.util.getPath(e.errorPath,L,e.opts.jsonPointers),l.dataPathArr[y]=e.util.toQuotedString(L),re=e.validate(l),l.baseId=T,e.util.varOccurences(re,v)<2?(re=e.util.varReplace(re,v,te),K=te):i+=" var "+(K=v)+" = "+te+"; ",G?i+=" "+re+" ":(d&&d[L]?(i+=" if ( "+K+" === undefined ",I&&(i+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(L)+"') "),i+=") { "+m+" = false; ",V=e.errorPath,$=u,G=e.util.escapeQuotes(L),e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(V,L,e.opts.jsonPointers)),u=e.errSchemaPath+"/required",(W=W||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+G+"' } ",!1!==e.opts.messages&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+G+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",Z=i,i=W.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+Z+"]); ":i+=" validate.errors = ["+Z+"]; return false; ":i+=" var err = "+Z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=$,e.errorPath=V,i+=" } else { "):c?(i+=" if ( "+K+" === undefined ",I&&(i+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(L)+"') "),i+=") { "+m+" = true; } else { "):(i+=" if ("+K+" !== undefined ",I&&(i+=" && Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(L)+"') "),i+=" ) { "),i+=" "+re+" } ")),c&&(i+=" if ("+m+") { ",h+="}")}}if(x.length){var Q=x;if(Q)for(var X,J=-1,ee=Q.length-1;J<ee;){var te,re,Y=k[X=Q[J+=1]];(e.opts.strictKeywords?"object"==_typeof(Y)&&0<Object.keys(Y).length||!1===Y:e.util.schemaHasRules(Y,e.RULES.all))&&(l.schema=Y,l.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(X),l.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(X),i+=I?" "+_+" = "+_+" || Object.keys("+f+"); for (var "+b+"=0; "+b+"<"+_+".length; "+b+"++) { var "+g+" = "+_+"["+b+"]; ":" for (var "+g+" in "+f+") { ",i+=" if ("+e.usePattern(X)+".test("+g+")) { ",l.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers),te=f+"["+g+"]",l.dataPathArr[y]=g,re=e.validate(l),l.baseId=T,e.util.varOccurences(re,v)<2?i+=" "+e.util.varReplace(re,v,te)+" ":i+=" var "+v+" = "+te+"; "+re+" ",c&&(i+=" if (!"+m+") break; "),i+=" } ",c&&(i+=" else "+m+" = true; "),i+=" } ",c&&(i+=" if ("+m+") { ",h+="}"))}}return c&&(i+=" "+h+" if ("+p+" == errors) {"),i}},{}],36:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),p="errs__"+n,l=e.util.copy(e);l.level++;var h,d,m,g,b,y="valid"+l.level;return i+="var "+p+" = errors;",(e.opts.strictKeywords?"object"==_typeof(o)&&0<Object.keys(o).length||!1===o:e.util.schemaHasRules(o,e.RULES.all))&&(l.schema=o,l.schemaPath=s,l.errSchemaPath=u,b="idx"+n,d="i"+n,m="' + "+(h="key"+n)+" + '",g="data"+(l.dataLevel=e.dataLevel+1),t="dataProperties"+n,a=e.opts.ownProperties,o=e.baseId,a&&(i+=" var "+t+" = undefined; "),i+=a?" "+t+" = "+t+" || Object.keys("+f+"); for (var "+b+"=0; "+b+"<"+t+".length; "+b+"++) { var "+h+" = "+t+"["+b+"]; ":" for (var "+h+" in "+f+") { ",i+=" var startErrs"+n+" = errors; ",a=h,t=e.compositeRule,e.compositeRule=l.compositeRule=!0,b=e.validate(l),l.baseId=o,e.util.varOccurences(b,g)<2?i+=" "+e.util.varReplace(b,g,a)+" ":i+=" var "+g+" = "+a+"; "+b+" ",e.compositeRule=l.compositeRule=t,i+=" if (!"+y+") { for (var "+d+"=startErrs"+n+"; "+d+"<errors; "+d+"++) { vErrors["+d+"].propertyName = "+h+"; } var err = ",!1!==e.createErrors?(i+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { propertyName: '"+m+"' } ",!1!==e.opts.messages&&(i+=" , message: 'property name \\'"+m+"\\' is invalid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),c&&(i+=" break; "),i+=" } }"),c&&(i+=" if ("+p+" == errors) {"),i}},{}],37:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i,n,a=" ",o=e.level,s=e.dataLevel,u=e.schema[t],c=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,p="data"+(s||""),t="valid"+o;if("#"==u||"#/"==u)n=e.isRoot?(i=e.async,"validate"):(i=!0===e.root.schema.$async,"root.refVal[0]");else{o=e.resolveRef(e.baseId,u,e.isRoot);if(void 0===o){var l,h=e.MissingRefError.message(e.baseId,u);if("fail"==e.opts.missingRefs){e.logger.error(h),(l=l||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { ref: '"+e.util.escapeQuotes(u)+"' } ",!1!==e.opts.messages&&(a+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(u)+"' "),e.opts.verbose&&(a+=" , schema: "+e.util.toQuotedString(u)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),a+=" } "):a+=" {} ";var d=a,a=l.pop();!e.compositeRule&&f?e.async?a+=" throw new ValidationError(["+d+"]); ":a+=" validate.errors = ["+d+"]; return false; ":a+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",f&&(a+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,u,h);e.logger.warn(h),f&&(a+=" if (true) { ")}}else o.inline?((d=e.util.copy(e)).level++,h="valid"+d.level,d.schema=o.schema,d.schemaPath="",d.errSchemaPath=u,a+=" "+e.validate(d).replace(/validate\.schema/g,o.code)+" ",f&&(a+=" if ("+h+") { ")):(i=!0===o.$async||e.async&&!1!==o.$async,n=o.code)}if(n){(l=l||[]).push(a),a="",e.opts.passContext?a+=" "+n+".call(this, ":a+=" "+n+"( ",a+=" "+p+", (dataPath || '')",'""'!=e.errorPath&&(a+=" + "+e.errorPath);s=a+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(a=l.pop(),i){if(!e.async)throw new Error("async schema referenced by sync schema");f&&(a+=" var "+t+"; "),a+=" try { await "+s+"; ",f&&(a+=" "+t+" = true; "),a+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",f&&(a+=" "+t+" = false; "),a+=" } ",f&&(a+=" if ("+t+") { ")}else a+=" if (!"+s+") { if (vErrors === null) vErrors = "+n+".errors; else vErrors = vErrors.concat("+n+".errors); errors = vErrors.length; } ",f&&(a+=" else { ")}return a}},{}],38:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i=" ",n=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),p="valid"+n,t=e.opts.$data&&o&&o.$data,a=(t&&(i+=" var schema"+n+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; "),"schema"+n);if(!t)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var l=[],h=o;if(h)for(var d,m=-1,g=h.length-1;m<g;){d=h[m+=1];var b=e.schema.properties[d];b&&(e.opts.strictKeywords?"object"==_typeof(b)&&0<Object.keys(b).length||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(l[l.length]=d)}}else l=o;if(t||l.length){var y=e.errorPath,o=t||l.length>=e.opts.loopRequired,v=e.opts.ownProperties;if(c)if(i+=" var missing"+n+"; ",o){t||(i+=" var "+a+" = validate.schema"+s+"; ");var _="' + "+(E="schema"+n+"["+(x="i"+n)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(y,E,e.opts.jsonPointers)),i+=" var "+p+" = true; ",t&&(i+=" if (schema"+n+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+n+")) "+p+" = false; else {"),i+=" for (var "+x+" = 0; "+x+" < "+a+".length; "+x+"++) { "+p+" = "+f+"["+a+"["+x+"]] !== undefined ",v&&(i+=" && Object.prototype.hasOwnProperty.call("+f+", "+a+"["+x+"]) "),i+="; if (!"+p+") break; } ",t&&(i+=" } "),(j=j||[]).push(i+=" if (!"+p+") { "),i="",!1!==e.createErrors?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+_+"' } ",!1!==e.opts.messages&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+_+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var w=i,i=j.pop();!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+w+"]); ":i+=" validate.errors = ["+w+"]; return false; ":i+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else{i+=" if ( ";var k=l;if(k)for(var x=-1,S=k.length-1;x<S;)P=k[x+=1],x&&(i+=" || "),i+=" ( ( "+(C=f+(O=e.util.getProperty(P)))+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(P)+"') "),i+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?P:O)+") ) ";i+=") { ";var j,_="' + "+(E="missing"+n)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(y,E,!0):y+" + "+E),(j=j||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+_+"' } ",!1!==e.opts.messages&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+_+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";w=i;i=j.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+w+"]); ":i+=" validate.errors = ["+w+"]; return false; ":i+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else if(o){t||(i+=" var "+a+" = validate.schema"+s+"; ");var E,_="' + "+(E="schema"+n+"["+(x="i"+n)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(y,E,e.opts.jsonPointers)),t&&(i+=" if ("+a+" && !Array.isArray("+a+")) { var err = ",!1!==e.createErrors?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+_+"' } ",!1!==e.opts.messages&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+_+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+a+" !== undefined) { "),i+=" for (var "+x+" = 0; "+x+" < "+a+".length; "+x+"++) { if ("+f+"["+a+"["+x+"]] === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+f+", "+a+"["+x+"]) "),i+=") { var err = ",!1!==e.createErrors?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+_+"' } ",!1!==e.opts.messages&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+_+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",t&&(i+=" } ")}else{var A=l;if(A)for(var P,I=-1,T=A.length-1;I<T;){P=A[I+=1];var O=e.util.getProperty(P),_=e.util.escapeQuotes(P),C=f+O;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(y,P,e.opts.jsonPointers)),i+=" if ( "+C+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(P)+"') "),i+=") { var err = ",!1!==e.createErrors?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+_+"' } ",!1!==e.opts.messages&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+_+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=y}else c&&(i+=" if (true) {");return i}},{}],39:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i,n=" ",a=e.level,o=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,p="data"+(o||""),l="valid"+a,h=e.opts.$data&&s&&s.$data,t=h?(n+=" var schema"+a+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ","schema"+a):s;return(s||h)&&!1!==e.opts.uniqueItems?(h&&(n+=" var "+l+"; if ("+t+" === false || "+t+" === undefined) "+l+" = true; else if (typeof "+t+" != 'boolean') "+l+" = false; else { "),n+=" var i = "+p+".length , "+l+" = true , j; if (i > 1) { ",o=e.schema.items&&e.schema.items.type,a=Array.isArray(o),!o||"object"==o||"array"==o||a&&(0<=o.indexOf("object")||0<=o.indexOf("array"))?n+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+l+" = false; break outer; } } } ":(n+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ",t="checkDataType"+(a?"s":""),n+=" if ("+e.util[t](o,"item",e.opts.strictNumbers,!0)+") continue; ",a&&(n+=" if (typeof item == 'string') item = '\"' + item; "),n+=" if (typeof itemIndices[item] == 'number') { "+l+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "),n+=" } ",h&&(n+=" } "),(i=i||[]).push(n+=" if (!"+l+") { "),n="",!1!==e.createErrors?(n+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(n+=" , schema: ",n+=h?"validate.schema"+u:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",p=n,n=i.pop(),!e.compositeRule&&f?e.async?n+=" throw new ValidationError(["+p+"]); ":n+=" validate.errors = ["+p+"]; return false; ":n+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",f&&(n+=" else { ")):f&&(n+=" if (true) { "),n}},{}],40:[function(e,t,r){"use strict";t.exports=function(i,e,t){var r="",n=!0===i.schema.$async,a=i.util.schemaHasRulesExcept(i.schema,i.RULES.all,"$ref"),o=i.self._getId(i.schema);if(i.opts.strictKeywords){var s=i.util.schemaUnknownRules(i.schema,i.RULES.keywords);if(s){s="unknown keyword: "+s;if("log"!==i.opts.strictKeywords)throw new Error(s);i.logger.warn(s)}}if(i.isTop&&(r+=" var validate = ",n&&(i.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(i.opts.sourceCode||i.opts.processCode)&&(r+=" /*# sourceURL="+o+" */ ")),"boolean"==typeof i.schema||!a&&!i.schema.$ref){var e="false schema",u=i.level,c=i.dataLevel,f=i.schema[e],p=i.schemaPath+i.util.getProperty(e),l=i.errSchemaPath+"/"+e,h=!i.opts.allErrors,d="data"+(c||""),m="valid"+u;return!1===i.schema?(i.isTop?h=!0:r+=" var "+m+" = false; ",(U=U||[]).push(r),r="",!1!==i.createErrors?(r+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+i.errorPath+" , schemaPath: "+i.util.toQuotedString(l)+" , params: {} ",!1!==i.opts.messages&&(r+=" , message: 'boolean schema is false' "),i.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+i.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",T=r,r=U.pop(),!i.compositeRule&&h?i.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "):i.isTop?r+=n?" return data; ":" validate.errors = null; return true; ":r+=" var "+m+" = true; ",i.isTop&&(r+=" }; return validate; "),r}if(i.isTop){var g=i.isTop,u=i.level=0,c=i.dataLevel=0,d="data";if(i.rootId=i.resolve.fullPath(i.self._getId(i.root.schema)),i.baseId=i.baseId||i.rootId,delete i.isTop,i.dataPathArr=[""],void 0!==i.schema.default&&i.opts.useDefaults&&i.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==i.opts.strictDefaults)throw new Error(b);i.logger.warn(b)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{u=i.level,d="data"+((c=i.dataLevel)||"");if(o&&(i.baseId=i.resolve.url(i.baseId,o)),n&&!i.async)throw new Error("async schema in sync schema");r+=" var errs_"+u+" = errors;"}var y,m="valid"+u,h=!i.opts.allErrors,v="",_="",w=i.schema.type,k=Array.isArray(w);if(w&&i.opts.nullable&&!0===i.schema.nullable&&(k?-1==w.indexOf("null")&&(w=w.concat("null")):"null"!=w&&(w=[w,"null"],k=!0)),k&&1==w.length&&(w=w[0],k=!1),i.schema.$ref&&a){if("fail"==i.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+i.errSchemaPath+'" (see option extendRefs)');!0!==i.opts.extendRefs&&(a=!1,i.logger.warn('$ref: keywords ignored in schema at path "'+i.errSchemaPath+'"'))}if(i.schema.$comment&&i.opts.$comment&&(r+=" "+i.RULES.all.$comment.code(i,"$comment")),w){i.opts.coerceTypes&&(y=i.util.coerceToTypes(i.opts.coerceTypes,w));var x=i.RULES.types[w];if(y||k||!0===x||x&&!G(x)){p=i.schemaPath+".type",l=i.errSchemaPath+"/type",p=i.schemaPath+".type",l=i.errSchemaPath+"/type",o=k?"checkDataTypes":"checkDataType";if(r+=" if ("+i.util[o](w,d,i.opts.strictNumbers,!0)+") { ",y){var S="dataType"+u,j="coerced"+u;r+=" var "+S+" = typeof "+d+"; var "+j+" = undefined; ","array"==i.opts.coerceTypes&&(r+=" if ("+S+" == 'object' && Array.isArray("+d+") && "+d+".length == 1) { "+d+" = "+d+"[0]; "+S+" = typeof "+d+"; if ("+i.util.checkDataType(i.schema.type,d,i.opts.strictNumbers)+") "+j+" = "+d+"; } "),r+=" if ("+j+" !== undefined) ; ";var E=y;if(E)for(var A,P=-1,I=E.length-1;P<I;)"string"==(A=E[P+=1])?r+=" else if ("+S+" == 'number' || "+S+" == 'boolean') "+j+" = '' + "+d+"; else if ("+d+" === null) "+j+" = ''; ":"number"==A||"integer"==A?(r+=" else if ("+S+" == 'boolean' || "+d+" === null || ("+S+" == 'string' && "+d+" && "+d+" == +"+d+" ","integer"==A&&(r+=" && !("+d+" % 1)"),r+=")) "+j+" = +"+d+"; "):"boolean"==A?r+=" else if ("+d+" === 'false' || "+d+" === 0 || "+d+" === null) "+j+" = false; else if ("+d+" === 'true' || "+d+" === 1) "+j+" = true; ":"null"==A?r+=" else if ("+d+" === '' || "+d+" === 0 || "+d+" === false) "+j+" = null; ":"array"==i.opts.coerceTypes&&"array"==A&&(r+=" else if ("+S+" == 'string' || "+S+" == 'number' || "+S+" == 'boolean' || "+d+" == null) "+j+" = ["+d+"]; ");(U=U||[]).push(r+=" else { "),r="",!1!==i.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+i.errorPath+" , schemaPath: "+i.util.toQuotedString(l)+" , params: { type: '",r+=k?""+w.join(","):""+w,r+="' } ",!1!==i.opts.messages&&(r+=" , message: 'should be ",r+=k?""+w.join(","):""+w,r+="' "),i.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+i.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var T=r;r=U.pop(),!i.compositeRule&&h?i.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } if ("+j+" !== undefined) { ";o=c?"data"+(c-1||""):"parentData";r+=" "+d+" = "+j+"; ",c||(r+="if ("+o+" !== undefined)"),r+=" "+o+"["+(c?i.dataPathArr[c]:"parentDataProperty")+"] = "+j+"; } "}else{(U=U||[]).push(r),r="",!1!==i.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+i.errorPath+" , schemaPath: "+i.util.toQuotedString(l)+" , params: { type: '",r+=k?""+w.join(","):""+w,r+="' } ",!1!==i.opts.messages&&(r+=" , message: 'should be ",r+=k?""+w.join(","):""+w,r+="' "),i.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+i.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";T=r;r=U.pop(),!i.compositeRule&&h?i.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(i.schema.$ref&&!a)r+=" "+i.RULES.all.$ref.code(i,"$ref")+" ",h&&(r+=" } if (errors === ",r+=g?"0":"errs_"+u,r+=") { ",_+="}");else{var O=i.RULES;if(O)for(var C=-1,R=O.length-1;C<R;)if(G(x=O[C+=1])){if(x.type&&(r+=" if ("+i.util.checkDataType(x.type,d,i.opts.strictNumbers)+") { "),i.opts.useDefaults)if("object"==x.type&&i.schema.properties){var f=i.schema.properties,B=Object.keys(f);if(B)for(var F,M=-1,z=B.length-1;M<z;)if(void 0!==(L=f[F=B[M+=1]]).default){var N=d+i.util.getProperty(F);if(i.compositeRule){if(i.opts.strictDefaults){b="default is ignored for: "+N;if("log"!==i.opts.strictDefaults)throw new Error(b);i.logger.warn(b)}}else r+=" if ("+N+" === undefined ","empty"==i.opts.useDefaults&&(r+=" || "+N+" === null || "+N+" === '' "),r+=" ) "+N+" = ","shared"==i.opts.useDefaults?r+=" "+i.useDefault(L.default)+" ":r+=" "+JSON.stringify(L.default)+" ",r+="; "}}else if("array"==x.type&&Array.isArray(i.schema.items)){var D=i.schema.items;if(D)for(var L,P=-1,q=D.length-1;P<q;)if(void 0!==(L=D[P+=1]).default){N=d+"["+P+"]";if(i.compositeRule){if(i.opts.strictDefaults){b="default is ignored for: "+N;if("log"!==i.opts.strictDefaults)throw new Error(b);i.logger.warn(b)}}else r+=" if ("+N+" === undefined ","empty"==i.opts.useDefaults&&(r+=" || "+N+" === null || "+N+" === '' "),r+=" ) "+N+" = ","shared"==i.opts.useDefaults?r+=" "+i.useDefault(L.default)+" ":r+=" "+JSON.stringify(L.default)+" ",r+="; "}}var U,H=x.rules;if(H)for(var K,V=-1,$=H.length-1;V<$;)!W(K=H[V+=1])||(K=K.code(i,K.keyword,x.type))&&(r+=" "+K+" ",h&&(v+="}"));h&&(r+=" "+v+" ",v=""),x.type&&(r+=" } ",w&&w===x.type&&!y&&(r+=" else { ",p=i.schemaPath+".type",l=i.errSchemaPath+"/type",(U=U||[]).push(r),r="",!1!==i.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+i.errorPath+" , schemaPath: "+i.util.toQuotedString(l)+" , params: { type: '",r+=k?""+w.join(","):""+w,r+="' } ",!1!==i.opts.messages&&(r+=" , message: 'should be ",r+=k?""+w.join(","):""+w,r+="' "),i.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+i.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",T=r,r=U.pop(),!i.compositeRule&&h?i.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ")),h&&(r+=" if (errors === ",r+=g?"0":"errs_"+u,r+=") { ",_+="}")}}function G(e){for(var t=e.rules,r=0;r<t.length;r++)if(W(t[r]))return 1}function W(e){return void 0!==i.schema[e.keyword]||e.implements&&function(e){for(var t=e.implements,r=0;r<t.length;r++)if(void 0!==i.schema[t[r]])return 1}(e)}return h&&(r+=" "+_+" "),g?(n?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+m+" = errors === errs_"+u+";",r}},{}],41:[function(e,t,r){"use strict";var s=/^[a-z_$][a-z0-9_$-]*$/i,u=e("./dotjs/custom"),i=e("./definition_schema");function n(e,t){n.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(i,!0);if(r(e))return!0;if(n.errors=r.errors,t)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}t.exports={add:function(e,t){var o=this.RULES;if(o.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!s.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var r=t.type;if(Array.isArray(r))for(var i=0;i<r.length;i++)a(e,r[i],t);else a(e,r,t);var n=t.metaSchema;n&&(t.$data&&this._opts.$data&&(n={anyOf:[n,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(n,!0))}function a(e,t,r){for(var i,n=0;n<o.length;n++){var a=o[n];if(a.type==t){i=a;break}}i||(i={type:t,rules:[]},o.push(i));r={keyword:e,definition:r,custom:!0,code:u,implements:r.implements};i.rules.push(r),o.custom[e]=r}return o.keywords[e]=o.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var i=t[r].rules,n=0;n<i.length;n++)if(i[n].keyword==e){i.splice(n,1);break}return this},validate:n}},{"./definition_schema":14,"./dotjs/custom":24}],42:[function(e,t,r){t.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}},{}],43:[function(e,t,r){t.exports={$schema:"http://json-schema.org/draft-06/schema#",$id:"http://json-schema.org/draft-06/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},title:{type:"string"},description:{type:"string"},default:{},examples:{type:"array",items:{}},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:{},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:{}}},{}],44:[function(e,t,r){t.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}},{}],45:[function(e,t,r){"use strict";var i=e("./raw"),n=[],a=[],o=i.makeRequestCallFromTimer(function(){if(a.length)throw a.shift()});function s(e){var t=n.length?n.pop():new u;t.task=e,i(t)}function u(){this.task=null}t.exports=s,u.prototype.call=function(){try{this.task.call()}catch(e){s.onerror?s.onerror(e):(a.push(e),o())}finally{this.task=null,n[n.length]=this}}},{"./raw":46}],46:[function(e,l,t){(function(p){(function(){"use strict";function e(e){i.length||(t(),0),i[i.length]=e}l.exports=e;var t,i=[],n=0;function r(){for(;n<i.length;){var e=n;if(n+=1,i[e].call(),1024<n){for(var t=0,r=i.length-n;t<r;t++)i[t]=i[t+n];i.length-=n,n=0}}i.length=0,n=0,0}var a,o,s,u=void 0!==p?p:self,c=u.MutationObserver||u.WebKitMutationObserver;function f(i){return function(){var e=setTimeout(r,0),t=setInterval(r,50);function r(){clearTimeout(e),clearInterval(t),i()}}}t="function"==typeof c?(o=1,a=new c(a=r),s=document.createTextNode(""),a.observe(s,{characterData:!0}),function(){o=-o,s.data=o}):f(r),e.requestFlush=t,e.makeRequestCallFromTimer=f}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],47:[function(e,t,r){"use strict";r.bignum=e("bn.js"),r.define=e("./asn1/api").define,r.base=e("./asn1/base"),r.constants=e("./asn1/constants"),r.decoders=e("./asn1/decoders"),r.encoders=e("./asn1/encoders")},{"./asn1/api":48,"./asn1/base":50,"./asn1/constants":54,"./asn1/decoders":56,"./asn1/encoders":59,"bn.js":129}],48:[function(e,t,r){"use strict";var i=e("./encoders"),n=e("./decoders"),a=e("inherits");function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}r.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(r){var t=this.name;function e(e){this._initNamed(e,t)}return a(e,r),e.prototype._initNamed=function(e,t){r.call(this,e,t)},new e(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(i[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},{"./decoders":56,"./encoders":59,inherits:296}],49:[function(e,t,r){"use strict";var i=e("inherits"),n=e("../base/reporter").Reporter,a=e("safer-buffer").Buffer;function o(e,t){n.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return s.isEncoderBuffer(e)||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+_typeof(e));this.value=e,this.length=e.length}}i(o,n),(r.DecoderBuffer=o).isDecoderBuffer=function(e){return e instanceof o||"object"===_typeof(e)&&a.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},o.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},o.prototype.restore=function(e){var t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,n.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");t=new o(this.base);return t._reporterState=this._reporterState,t.offset=this.offset,t.length=this.offset+e,this.offset+=e,t},o.prototype.raw=function(e){return this.base.slice((e||this).offset,this.length)},(r.EncoderBuffer=s).isEncoderBuffer=function(e){return e instanceof s||"object"===_typeof(e)&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},s.prototype.join=function(t,r){return t=t||a.alloc(this.length),r=r||0,0===this.length||(Array.isArray(this.value)?this.value.forEach(function(e){e.join(t,r),r+=e.length}):("number"==typeof this.value?t[r]=this.value:"string"==typeof this.value?t.write(this.value,r):a.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t}},{"../base/reporter":52,inherits:296,"safer-buffer":422}],50:[function(e,t,r){"use strict";r.Reporter=e("./reporter").Reporter,r.DecoderBuffer=e("./buffer").DecoderBuffer,r.EncoderBuffer=e("./buffer").EncoderBuffer,r.Node=e("./node")},{"./buffer":49,"./node":51,"./reporter":52}],51:[function(e,t,r){"use strict";var u=e("../base/reporter").Reporter,i=e("../base/buffer").EncoderBuffer,p=e("../base/buffer").DecoderBuffer,n=e("minimalistic-assert"),e=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],a=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(e);function o(e,t,r){var i={};(this._baseState=i).name=r,i.enc=e,i.parent=t||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}t.exports=o;var s=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];o.prototype.clone=function(){var t=this._baseState,r={};s.forEach(function(e){r[e]=t[e]});var e=new this.constructor(r.parent);return e._baseState=r,e},o.prototype._wrap=function(){var r=this._baseState;a.forEach(function(t){this[t]=function(){var e=new this.constructor(this);return r.children.push(e),e[t].apply(e,arguments)}},this)},o.prototype._init=function(e){var t=this._baseState;n(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),n.equal(t.children.length,1,"Root node can have only one child")},o.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(n(null===t.children),(t.children=r).forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(n(null===t.args),t.args=e,t.reverseArgs=e.map(function(r){if("object"!==_typeof(r)||r.constructor!==Object)return r;var i={};return Object.keys(r).forEach(function(e){e==(0|e)&&(e|=0);var t=r[e];i[t]=e}),i}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(t){o.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}}),e.forEach(function(r){o.prototype[r]=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return n(null===e.tag),e.tag=r,this._useArgs(t),this}}),o.prototype.use=function(e){n(e);var t=this._baseState;return n(null===t.use),t.use=e,this},o.prototype.optional=function(){return this._baseState.optional=!0,this},o.prototype.def=function(e){var t=this._baseState;return n(null===t.default),t.default=e,t.optional=!0,this},o.prototype.explicit=function(e){var t=this._baseState;return n(null===t.explicit&&null===t.implicit),t.explicit=e,this},o.prototype.implicit=function(e){var t=this._baseState;return n(null===t.explicit&&null===t.implicit),t.implicit=e,this},o.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},o.prototype.key=function(e){var t=this._baseState;return n(null===t.key),t.key=e,this},o.prototype.any=function(){return this._baseState.any=!0,this},o.prototype.choice=function(t){var e=this._baseState;return n(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},o.prototype.contains=function(e){var t=this._baseState;return n(null===t.use),t.contains=e,this},o.prototype._decode=function(t,r){var e=this._baseState;if(null===e.parent)return t.wrapResult(e.children[0]._decode(t,r));var i,n=e.default,a=!0,o=null;if(null!==e.key&&(o=t.enterKey(e.key)),e.optional){var s=null;if(null!==e.explicit?s=e.explicit:null!==e.implicit?s=e.implicit:null!==e.tag&&(s=e.tag),null!==s||e.any){if(a=this._peekTag(t,s,e.any),t.isError(a))return a}else{var u=t.save();try{null===e.choice?this._decodeGeneric(e.tag,t,r):this._decodeChoice(t,r),a=!0}catch(e){a=!1}t.restore(u)}}if(e.obj&&a&&(i=t.enterObject()),a){if(null!==e.explicit){var c=this._decodeTag(t,e.explicit);if(t.isError(c))return c;t=c}var f,u=t.offset;if(null===e.use&&null===e.choice){e.any&&(f=t.save());c=this._decodeTag(t,null!==e.implicit?e.implicit:e.tag,e.any);if(t.isError(c))return c;e.any?n=t.raw(f):t=c}if(r&&r.track&&null!==e.tag&&r.track(t.path(),u,t.length,"tagged"),r&&r.track&&null!==e.tag&&r.track(t.path(),t.offset,t.length,"content"),e.any||(n=null===e.choice?this._decodeGeneric(e.tag,t,r):this._decodeChoice(t,r)),t.isError(n))return n;e.any||null!==e.choice||null===e.children||e.children.forEach(function(e){e._decode(t,r)}),!e.contains||"octstr"!==e.tag&&"bitstr"!==e.tag||(u=new p(n),n=this._getUse(e.contains,t._reporterState.obj)._decode(u,r))}return e.obj&&a&&(n=t.leaveObject(i)),null===e.key||null===n&&!0!==a?null!==o&&t.exitKey(o):t.leaveKey(o,e.key,n),n},o.prototype._decodeGeneric=function(e,t,r){var i=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,i.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&i.args?this._decodeObjid(t,i.args[0],i.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,i.args&&i.args[0],r):null!==i.use?this._getUse(i.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},o.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),n(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},o.prototype._decodeChoice=function(n,a){var o=this._baseState,s=null,u=!1;return Object.keys(o.choice).some(function(e){var t=n.save(),r=o.choice[e];try{var i=r._decode(n,a);if(n.isError(i))return!1;s={type:e,value:i},u=!0}catch(e){return n.restore(t),!1}return!0},this),u?s:n.error("Choice not matched")},o.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},o.prototype._encode=function(e,t,r){var i=this._baseState;if(null===i.default||i.default!==e){e=this._encodeValue(e,t,r);if(void 0!==e&&!this._skipDefault(e,t,r))return e}},o.prototype._encodeValue=function(r,i,e){var t=this._baseState;if(null===t.parent)return t.children[0]._encode(r,i||new u);var n=null;if(this.reporter=i,t.optional&&void 0===r){if(null===t.default)return;r=t.default}var a=null,o=!1;if(t.any)n=this._createEncoderBuffer(r);else if(t.choice)n=this._encodeChoice(r,i);else if(t.contains)a=this._getUse(t.contains,e)._encode(r,i),o=!0;else if(t.children)a=t.children.map(function(e){if("null_"===e._baseState.tag)return e._encode(null,i,r);if(null===e._baseState.key)return i.error("Child should have a key");var t=i.enterKey(e._baseState.key);if("object"!==_typeof(r))return i.error("Child expected, but input is not object");e=e._encode(r[e._baseState.key],i,r);return i.leaveKey(t),e},this).filter(function(e){return e}),a=this._createEncoderBuffer(a);else if("seqof"===t.tag||"setof"===t.tag){if(!t.args||1!==t.args.length)return i.error("Too many args for : "+t.tag);if(!Array.isArray(r))return i.error("seqof/setof, but data is not Array");var s=this.clone();s._baseState.implicit=null,a=this._createEncoderBuffer(r.map(function(e){var t=this._baseState;return this._getUse(t.args[0],r)._encode(e,i)},s))}else null!==t.use?n=this._getUse(t.use,e)._encode(r,i):(a=this._encodePrimitive(t.tag,r),o=!0);return t.any||null!==t.choice||(s=null!==t.implicit?t.implicit:t.tag,e=null===t.implicit?"universal":"context",null===s?null===t.use&&i.error("Tag could be omitted only for .use()"):null===t.use&&(n=this._encodeComposite(s,o,e,a))),n=null!==t.explicit?this._encodeComposite(t.explicit,!1,"context",n):n},o.prototype._encodeChoice=function(e,t){var r=this._baseState,i=r.choice[e.type];return i||n(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),i._encode(e.value,t)},o.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},o.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},o.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":49,"../base/reporter":52,"minimalistic-assert":324}],52:[function(e,t,r){"use strict";e=e("inherits");function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function n(e,t){this.path=e,this.rethrow(t)}(r.Reporter=i).prototype.isError=function(e){return e instanceof n},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var i=this._reporterState;this.exitKey(e),null!==i.obj&&(i.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t=this._reporterState,r=e instanceof n,e=r?e:new n(t.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack);if(!t.options.partial)throw e;return r||t.errors.push(e),e},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},e(n,Error),n.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,n),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:296}],53:[function(e,t,r){"use strict";function i(r){var i={};return Object.keys(r).forEach(function(e){(0|e)==e&&(e|=0);var t=r[e];i[t]=e}),i}r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=i(r.tagClass),r.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r.tagByName=i(r.tag)},{}],54:[function(e,t,r){"use strict";r._reverse=function(r){var i={};return Object.keys(r).forEach(function(e){(0|e)==e&&(e|=0);var t=r[e];i[t]=e}),i},r.der=e("./der")},{"./der":53}],55:[function(e,t,r){"use strict";var i=e("inherits"),n=e("bn.js"),a=e("../base/buffer").DecoderBuffer,o=e("../base/node"),s=e("../constants/der");function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.call(this,"der",e)}function f(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var i=s.tagClass[r>>6],n=0==(32&r);if(31==(31&r))for(var a=r,r=0;128==(128&a);){if(a=e.readUInt8(t),e.isError(a))return a;r<<=7,r|=127&a}else r&=31;return{cls:i,primitive:n,tag:r,tagStr:s.tag[r]}}function p(e,t,r){var i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&128===i)return null;if(0==(128&i))return i;var n=127&i;if(4<n)return e.error("length octect is too long");for(var a=i=0;a<n;a++){i<<=8;var o=e.readUInt8(r);if(e.isError(o))return o;i|=o}return i}(t.exports=u).prototype.decode=function(e,t){return a.isDecoderBuffer(e)||(e=new a(e,t)),this.tree._decode(e,t)},i(c,o),c.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var i=e.save(),n=f(e,'Failed to peek tag: "'+t+'"');return e.isError(n)?n:(e.restore(i),n.tag===t||n.tagStr===t||n.tagStr+"of"===t||r)},c.prototype._decodeTag=function(e,t,r){var i=f(e,'Failed to decode tag of "'+t+'"');if(e.isError(i))return i;var n=p(e,i.primitive,'Failed to get length of "'+t+'"');if(e.isError(n))return n;if(!r&&i.tag!==t&&i.tagStr!==t&&i.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(i.primitive||null!==n)return e.skip(n,'Failed to match body of: "'+t+'"');r=e.save(),i=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(i)?i:(n=e.offset-r.offset,e.restore(r),e.skip(n,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var r=f(e,t);if(e.isError(r))return r;var i=p(e,r.primitive,t);if(e.isError(i))return i;var n=void 0,n=r.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t);if(e.isError(n))return n;if("end"===r.tagStr)break}},c.prototype._decodeList=function(e,t,r,i){for(var n=[];!e.isEmpty();){var a=this._peekTag(e,"end");if(e.isError(a))return a;var o=r.decode(e,"der",i);if(e.isError(o)&&a)break;n.push(o)}return n},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var i=e.raw();if(i.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var n="",a=0;a<i.length/2;a++)n+=String.fromCharCode(i.readUInt16BE(2*a));return n}if("numstr"===t){r=e.raw().toString("ascii");return this._isNumstr(r)?r:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"!==t)return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported");t=e.raw().toString("ascii");return this._isPrintstr(t)?t:e.error("Decoding of string type: printstr unsupported characters")},c.prototype._decodeObjid=function(e,t,r){for(var i=[],n=0,a=0;!e.isEmpty();)n<<=7,n|=127&(a=e.readUInt8()),0==(128&a)&&(i.push(n),n=0);128&a&&i.push(n);var o=i[0]/40|0,s=i[0]%40,o=r?i:[o,s].concat(i.slice(1));return!t||void 0!==(s=void 0===(s=t[o.join(" ")])?t[o.join(".")]:s)&&(o=s),o},c.prototype._decodeTime=function(e,t){var r,i,n,a,o,s,u=e.raw().toString();if("gentime"===t)r=0|u.slice(0,4),i=0|u.slice(4,6),n=0|u.slice(6,8),a=0|u.slice(8,10),o=0|u.slice(10,12),s=0|u.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|u.slice(0,2),i=0|u.slice(2,4),n=0|u.slice(4,6),a=0|u.slice(6,8),o=0|u.slice(8,10),s=0|u.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,n,a,o,s,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){e=e.raw(),e=new n(e);return e=t?t[e.toString(10)]||e:e},c.prototype._use=function(e,t){return(e="function"==typeof e?e(t):e)._getDecoder("der").tree}},{"../base/buffer":49,"../base/node":51,"../constants/der":53,"bn.js":129,inherits:296}],56:[function(e,t,r){"use strict";r.der=e("./der"),r.pem=e("./pem")},{"./der":55,"./pem":57}],57:[function(e,t,r){"use strict";var i=e("inherits"),c=e("safer-buffer").Buffer,f=e("./der");function n(e){f.call(this,e),this.enc="pem"}i(n,f),(t.exports=n).prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),i=t.label.toUpperCase(),n=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,o=-1,s=0;s<r.length;s++){var u=r[s].match(n);if(null!==u&&u[2]===i){if(-1!==a){if("END"!==u[1])break;o=s;break}if("BEGIN"!==u[1])break;a=s}}if(-1===a||-1===o)throw new Error("PEM section not found for: "+i);e=r.slice(a+1,o).join("");e.replace(/[^a-z0-9+/=]+/gi,"");e=c.from(e,"base64");return f.prototype.decode.call(this,e,t)}},{"./der":55,inherits:296,"safer-buffer":422}],58:[function(e,t,r){"use strict";var i=e("inherits"),l=e("safer-buffer").Buffer,n=e("../base/node"),c=e("../constants/der");function a(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new o,this.tree._init(e.body)}function o(e){n.call(this,"der",e)}function s(e){return e<10?"0"+e:e}(t.exports=a).prototype.encode=function(e,t){return this.tree._encode(e,t).join()},i(o,n),o.prototype._encodeComposite=function(e,t,r,i){t=function(e,t,r,i){var n;"seqof"===e?e="seq":"setof"===e&&(e="set");if(c.tagByName.hasOwnProperty(e))n=c.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return i.error("Unknown tag: "+e);n=e}if(31<=n)return i.error("Multi-octet tag encoding unsupported");t||(n|=32);return n|=c.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(i.length<128){r=l.alloc(2);return r[0]=t,r[1]=i.length,this._createEncoderBuffer([r,i])}for(var n=1,a=i.length;256<=a;a>>=8)n++;var o=l.alloc(2+n);o[0]=t,o[1]=128|n;for(var s=1+n,u=i.length;0<u;s--,u>>=8)o[s]=255&u;return this._createEncoderBuffer([o,i])},o.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"!==t)return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported");for(var r=l.alloc(2*e.length),i=0;i<e.length;i++)r.writeUInt16BE(e.charCodeAt(i),2*i);return this._createEncoderBuffer(r)},o.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(var i=0;i<e.length;i++)e[i]|=0}else if(Array.isArray(e)){e=e.slice();for(var n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(40<=e[1])return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var a=0,o=0;o<e.length;o++){var s=e[o];for(a++;128<=s;s>>=7)a++}for(var u=l.alloc(a),c=u.length-1,f=e.length-1;0<=f;f--){var p=e[f];for(u[c--]=127&p;0<(p>>=7);)u[c--]=128|127&p}return this._createEncoderBuffer(u)},o.prototype._encodeTime=function(e,t){var r,e=new Date(e);return"gentime"===t?r=[s(e.getUTCFullYear()),s(e.getUTCMonth()+1),s(e.getUTCDate()),s(e.getUTCHours()),s(e.getUTCMinutes()),s(e.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[s(e.getUTCFullYear()%100),s(e.getUTCMonth()+1),s(e.getUTCDate()),s(e.getUTCHours()),s(e.getUTCMinutes()),s(e.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},o.prototype._encodeNull=function(){return this._createEncoderBuffer("")},o.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"==typeof e||l.isBuffer(e)||(r=e.toArray(),!e.sign&&128&r[0]&&r.unshift(0),e=l.from(r)),l.isBuffer(e)){var r=e.length;0===e.length&&r++;r=l.alloc(r);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var i=1,n=e;256<=n;n>>=8)i++;for(var a=new Array(i),o=a.length-1;0<=o;o--)a[o]=255&e,e>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(l.from(a))},o.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},o.prototype._use=function(e,t){return(e="function"==typeof e?e(t):e)._getEncoder("der").tree},o.prototype._skipDefault=function(e,t,r){var i,n=this._baseState;if(null===n.default)return!1;var a=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),a.length!==n.defaultBuffer.length)return!1;for(i=0;i<a.length;i++)if(a[i]!==n.defaultBuffer[i])return!1;return!0}},{"../base/node":51,"../constants/der":53,inherits:296,"safer-buffer":422}],59:[function(e,t,r){"use strict";r.der=e("./der"),r.pem=e("./pem")},{"./der":58,"./pem":60}],60:[function(e,t,r){"use strict";var i=e("inherits"),a=e("./der");function n(e){a.call(this,e),this.enc="pem"}i(n,a),(t.exports=n).prototype.encode=function(e,t){for(var r=a.prototype.encode.call(this,e).toString("base64"),i=["-----BEGIN "+t.label+"-----"],n=0;n<r.length;n+=64)i.push(r.slice(n,n+64));return i.push("-----END "+t.label+"-----"),i.join("\n")}},{"./der":58,inherits:296}],61:[function(e,t,r){t.exports={newInvalidAsn1Error:function(e){var t=new Error;return t.name="InvalidAsn1Error",t.message=e||"",t}}},{}],62:[function(e,t,r){var i,n,a=e("./errors"),o=e("./types"),s=e("./reader"),e=e("./writer");for(i in t.exports={Reader:s,Writer:e},o)o.hasOwnProperty(i)&&(t.exports[i]=o[i]);for(n in a)a.hasOwnProperty(n)&&(t.exports[n]=a[n])},{"./errors":61,"./reader":63,"./types":64,"./writer":65}],63:[function(e,t,r){var n=e("assert"),i=e("safer-buffer").Buffer,o=e("./types"),a=e("./errors").newInvalidAsn1Error;function s(e){if(!e||!i.isBuffer(e))throw new TypeError("data must be a node Buffer");this._buf=e,this._size=e.length,this._len=0,this._offset=0}Object.defineProperty(s.prototype,"length",{enumerable:!0,get:function(){return this._len}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){return this._offset}}),Object.defineProperty(s.prototype,"remain",{get:function(){return this._size-this._offset}}),Object.defineProperty(s.prototype,"buffer",{get:function(){return this._buf.slice(this._offset)}}),s.prototype.readByte=function(e){if(this._size-this._offset<1)return null;var t=255&this._buf[this._offset];return e||(this._offset+=1),t},s.prototype.peek=function(){return this.readByte(!0)},s.prototype.readLength=function(e){if((e=void 0===e?this._offset:e)>=this._size)return null;var t=255&this._buf[e++];if(null===t)return null;if(128==(128&t)){if(0===(t&=127))throw a("Indefinite length not supported");if(4<t)throw a("encoding too long");if(this._size-e<t)return null;for(var r=this._len=0;r<t;r++)this._len=(this._len<<8)+(255&this._buf[e++])}else this._len=t;return e},s.prototype.readSequence=function(e){var t=this.peek();if(null===t)return null;if(void 0!==e&&e!==t)throw a("Expected 0x"+e.toString(16)+": got 0x"+t.toString(16));e=this.readLength(this._offset+1);return null===e?null:(this._offset=e,t)},s.prototype.readInt=function(){return this._readTag(o.Integer)},s.prototype.readBoolean=function(){return 0!==this._readTag(o.Boolean)},s.prototype.readEnumeration=function(){return this._readTag(o.Enumeration)},s.prototype.readString=function(e,t){e=e||o.OctetString;var r=this.peek();if(null===r)return null;if(r!==e)throw a("Expected 0x"+e.toString(16)+": got 0x"+r.toString(16));r=this.readLength(this._offset+1);if(null===r)return null;if(this.length>this._size-r)return null;if(this._offset=r,0===this.length)return t?i.alloc(0):"";r=this._buf.slice(this._offset,this._offset+this.length);return this._offset+=this.length,t?r:r.toString("utf8")},s.prototype.readOID=function(e){e=e||o.OID;var t=this.readString(e,!0);if(null===t)return null;for(var r=[],i=0,n=0;n<t.length;n++){var a=255&t[n];i<<=7,i+=127&a,0==(128&a)&&(r.push(i),i=0)}return i=r.shift(),r.unshift(i%40),r.unshift(i/40>>0),r.join(".")},s.prototype._readTag=function(e){n.ok(void 0!==e);var t=this.peek();if(null===t)return null;if(t!==e)throw a("Expected 0x"+e.toString(16)+": got 0x"+t.toString(16));t=this.readLength(this._offset+1);if(null===t)return null;if(4<this.length)throw a("Integer too long: "+this.length);if(this.length>this._size-t)return null;this._offset=t;for(var t=this._buf[this._offset],r=0,i=0;i<this.length;i++)r<<=8,r|=255&this._buf[this._offset++];return 128==(128&t)&&4!==i&&(r-=1<<8*i),r>>0},t.exports=s},{"./errors":61,"./types":64,assert:68,"safer-buffer":422}],64:[function(e,t,r){t.exports={EOC:0,Boolean:1,Integer:2,BitString:3,OctetString:4,Null:5,OID:6,ObjectDescriptor:7,External:8,Real:9,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}},{}],65:[function(e,t,r){var n=e("assert"),a=e("safer-buffer").Buffer,o=e("./types"),i=e("./errors").newInvalidAsn1Error,s={size:1024,growthFactor:8};function u(e){var r,i;r=s,i=e||{},n.ok(r),n.equal(_typeof(r),"object"),n.ok(i),n.equal(_typeof(i),"object"),Object.getOwnPropertyNames(r).forEach(function(e){var t;i[e]||(t=Object.getOwnPropertyDescriptor(r,e),Object.defineProperty(i,e,t))}),e=i,this._buf=a.alloc(e.size||1024),this._size=this._buf.length,this._offset=0,this._options=e,this._seq=[]}Object.defineProperty(u.prototype,"buffer",{get:function(){if(this._seq.length)throw i(this._seq.length+" unended sequence(s)");return this._buf.slice(0,this._offset)}}),u.prototype.writeByte=function(e){if("number"!=typeof e)throw new TypeError("argument must be a Number");this._ensure(1),this._buf[this._offset++]=e},u.prototype.writeInt=function(e,t){if("number"!=typeof e)throw new TypeError("argument must be a Number");"number"!=typeof t&&(t=o.Integer);for(var r=4;(0==(4286578688&e)||-8388608==(4286578688&e))&&1<r;)r--,e<<=8;if(4<r)throw i("BER ints cannot be > 0xffffffff");for(this._ensure(2+r),this._buf[this._offset++]=t,this._buf[this._offset++]=r;0<r--;)this._buf[this._offset++]=(4278190080&e)>>>24,e<<=8},u.prototype.writeNull=function(){this.writeByte(o.Null),this.writeByte(0)},u.prototype.writeEnumeration=function(e,t){if("number"!=typeof e)throw new TypeError("argument must be a Number");return"number"!=typeof t&&(t=o.Enumeration),this.writeInt(e,t)},u.prototype.writeBoolean=function(e,t){if("boolean"!=typeof e)throw new TypeError("argument must be a Boolean");"number"!=typeof t&&(t=o.Boolean),this._ensure(3),this._buf[this._offset++]=t,this._buf[this._offset++]=1,this._buf[this._offset++]=e?255:0},u.prototype.writeString=function(e,t){if("string"!=typeof e)throw new TypeError("argument must be a string (was: "+_typeof(e)+")");"number"!=typeof t&&(t=o.OctetString);var r=a.byteLength(e);this.writeByte(t),this.writeLength(r),r&&(this._ensure(r),this._buf.write(e,this._offset),this._offset+=r)},u.prototype.writeBuffer=function(e,t){if("number"!=typeof t)throw new TypeError("tag must be a number");if(!a.isBuffer(e))throw new TypeError("argument must be a buffer");this.writeByte(t),this.writeLength(e.length),this._ensure(e.length),e.copy(this._buf,this._offset,0,e.length),this._offset+=e.length},u.prototype.writeStringArray=function(e){if(!e instanceof Array)throw new TypeError("argument must be an Array[String]");var t=this;e.forEach(function(e){t.writeString(e)})},u.prototype.writeOID=function(e,t){if("string"!=typeof e)throw new TypeError("argument must be a string");if("number"!=typeof t&&(t=o.OID),!/^([0-9]+\.){3,}[0-9]+$/.test(e))throw new Error("argument is not a valid OID string");var e=e.split("."),r=[];r.push(40*parseInt(e[0],10)+parseInt(e[1],10)),e.slice(2).forEach(function(e){var t;t=r,(e=parseInt(e,10))<128?t.push(e):(e<16384?t.push(e>>>7|128):(e<2097152?t.push(e>>>14|128):(e<268435456?t.push(e>>>21|128):(t.push(255&(e>>>28|128)),t.push(255&(e>>>21|128))),t.push(255&(e>>>14|128))),t.push(255&(e>>>7|128))),t.push(127&e))});var i=this;this._ensure(2+r.length),this.writeByte(t),this.writeLength(r.length),r.forEach(function(e){i.writeByte(e)})},u.prototype.writeLength=function(e){if("number"!=typeof e)throw new TypeError("argument must be a Number");if(this._ensure(4),e<=127)this._buf[this._offset++]=e;else if(e<=255)this._buf[this._offset++]=129,this._buf[this._offset++]=e;else if(e<=65535)this._buf[this._offset++]=130,this._buf[this._offset++]=e>>8,this._buf[this._offset++]=e;else{if(!(e<=16777215))throw i("Length too long (> 4 bytes)");this._buf[this._offset++]=131,this._buf[this._offset++]=e>>16,this._buf[this._offset++]=e>>8,this._buf[this._offset++]=e}},u.prototype.startSequence=function(e){"number"!=typeof e&&(e=o.Sequence|o.Constructor),this.writeByte(e),this._seq.push(this._offset),this._ensure(3),this._offset+=3},u.prototype.endSequence=function(){var e=this._seq.pop(),t=e+3,r=this._offset-t;if(r<=127)this._shift(t,r,-2),this._buf[e]=r;else if(r<=255)this._shift(t,r,-1),this._buf[e]=129,this._buf[e+1]=r;else if(r<=65535)this._buf[e]=130,this._buf[e+1]=r>>8,this._buf[e+2]=r;else{if(!(r<=16777215))throw i("Sequence too long");this._shift(t,r,1),this._buf[e]=131,this._buf[e+1]=r>>16,this._buf[e+2]=r>>8,this._buf[e+3]=r}},u.prototype._shift=function(e,t,r){n.ok(void 0!==e),n.ok(void 0!==t),n.ok(r),this._buf.copy(this._buf,e+r,e,e+t),this._offset+=r},u.prototype._ensure=function(e){var t;n.ok(e),this._size-this._offset<e&&((t=this._size*this._options.growthFactor)-this._offset<e&&(t+=e),e=a.alloc(t),this._buf.copy(e,0,0,this._offset),this._buf=e,this._size=t)},t.exports=u},{"./errors":61,"./types":64,assert:68,"safer-buffer":422}],66:[function(e,t,r){e=e("./ber/index");t.exports={Ber:e,BerReader:e.Reader,BerWriter:e.Writer}},{"./ber/index":62}],67:[function(o,l,e){(function(i,n){(function(){var s=o("assert"),t=o("stream").Stream,a=o("util"),r=/^[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}$/;function u(e){return e.charAt(0).toUpperCase()+e.slice(1)}function c(e,t,r,i,n){throw new s.AssertionError({message:a.format("%s (%s) is required",e,t),actual:(void 0===n?_typeof:n)(i),expected:t,operator:r||"===",stackStartFunction:c.caller})}function e(e){return Object.prototype.toString.call(e).slice(8,-1)}function f(){}var p={bool:{check:function(e){return"boolean"==typeof e}},func:{check:function(e){return"function"==typeof e}},string:{check:function(e){return"string"==typeof e}},object:{check:function(e){return"object"===_typeof(e)&&null!==e}},number:{check:function(e){return"number"==typeof e&&!isNaN(e)}},finite:{check:function(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},buffer:{check:function(e){return i.isBuffer(e)},operator:"Buffer.isBuffer"},array:{check:function(e){return Array.isArray(e)},operator:"Array.isArray"},stream:{check:function(e){return e instanceof t},operator:"instanceof",actual:e},date:{check:function(e){return e instanceof Date},operator:"instanceof",actual:e},regexp:{check:function(e){return e instanceof RegExp},operator:"instanceof",actual:e},uuid:{check:function(e){return"string"==typeof e&&r.test(e)},operator:"isUUID"}};l.exports=function e(a){var t=Object.keys(p),o=n.env.NODE_NDEBUG?f:function(e,t){e||c(t,"true",e)};return t.forEach(function(r){var i;a?o[r]=f:(i=p[r],o[r]=function(e,t){i.check(e)||c(t,r,i.operator,e,i.actual)})}),t.forEach(function(r){var i,e="optional"+u(r);a?o[e]=f:(i=p[r],o[e]=function(e,t){null!=e&&(i.check(e)||c(t,r,i.operator,e,i.actual))})}),t.forEach(function(e){var i,n,t="arrayOf"+u(e);a?o[t]=f:(i=p[e],n="["+e+"]",o[t]=function(e,t){var r;for(Array.isArray(e)||c(t,n,i.operator,e,i.actual),r=0;r<e.length;r++)i.check(e[r])||c(t,n,i.operator,e,i.actual)})}),t.forEach(function(e){var i,n,t="optionalArrayOf"+u(e);a?o[t]=f:(i=p[e],n="["+e+"]",o[t]=function(e,t){var r;if(null!=e)for(Array.isArray(e)||c(t,n,i.operator,e,i.actual),r=0;r<e.length;r++)i.check(e[r])||c(t,n,i.operator,e,i.actual)})}),Object.keys(s).forEach(function(e){o[e]="AssertionError"!==e&&a?f:s[e]}),o._setExports=e,o}(n.env.NODE_NDEBUG)}).call(this)}).call(this,{isBuffer:o("../is-buffer/index.js")},o("_process"))},{"../is-buffer/index.js":297,_process:354,assert:68,stream:457,util:481}],68:[function(e,t,r){var u=e("util/"),c=Array.prototype.slice,i=Object.prototype.hasOwnProperty,a=t.exports=f;function n(e,t){return u.isUndefined(t)?""+t:u.isNumber(t)&&!isFinite(t)||u.isFunction(t)||u.isRegExp(t)?t.toString():t}function o(e,t){return!u.isString(e)||e.length<t?e:e.slice(0,t)}function s(e,t,r,i,n){throw new a.AssertionError({message:r,actual:e,expected:t,operator:i,stackStartFunction:n})}function f(e,t){e||s(e,!0,t,"==",a.ok)}function p(e,t){if(e===t)return!0;if(u.isBuffer(e)&&u.isBuffer(t)){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return u.isDate(e)&&u.isDate(t)?e.getTime()===t.getTime():u.isRegExp(e)&&u.isRegExp(t)?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:u.isObject(e)||u.isObject(t)?function(e,t){if(u.isNullOrUndefined(e)||u.isNullOrUndefined(t))return!1;if(e.prototype!==t.prototype)return!1;if(u.isPrimitive(e)||u.isPrimitive(t))return e===t;var r=l(e),i=l(t);if(r&&!i||!r&&i)return!1;if(r)return e=c.call(e),t=c.call(t),p(e,t);var n,a,o=m(e),s=m(t);if(o.length!=s.length)return!1;for(o.sort(),s.sort(),a=o.length-1;0<=a;a--)if(o[a]!=s[a])return!1;for(a=o.length-1;0<=a;a--)if(n=o[a],!p(e[n],t[n]))return!1;return!0}(e,t):e==t}function l(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function h(e,t){return e&&t&&("[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t||!0===t.call({},e))}function d(e,t,r,i){var n;u.isString(r)&&(i=r,r=null);try{t()}catch(e){n=e}if(i=(r&&r.name?" ("+r.name+").":".")+(i?" "+i:"."),e&&!n&&s(n,r,"Missing expected exception"+i),!e&&h(n,r)&&s(n,r,"Got unwanted exception"+i),e&&n&&r&&!h(n,r)||!e&&n)throw n}a.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=(t=this,o(JSON.stringify(t.actual,n),128)+" "+t.operator+" "+o(JSON.stringify(t.expected,n),128)),this.generatedMessage=!0);var t=e.stackStartFunction||s;Error.captureStackTrace?Error.captureStackTrace(this,t):(e=new Error).stack&&(e=e.stack,t=t.name,0<=(t=e.indexOf("\n"+t))&&(t=e.indexOf("\n",t+1),e=e.substring(t+1)),this.stack=e)},u.inherits(a.AssertionError,Error),a.fail=s,a.ok=f,a.equal=function(e,t,r){e!=t&&s(e,t,r,"==",a.equal)},a.notEqual=function(e,t,r){e==t&&s(e,t,r,"!=",a.notEqual)},a.deepEqual=function(e,t,r){p(e,t)||s(e,t,r,"deepEqual",a.deepEqual)},a.notDeepEqual=function(e,t,r){p(e,t)&&s(e,t,r,"notDeepEqual",a.notDeepEqual)},a.strictEqual=function(e,t,r){e!==t&&s(e,t,r,"===",a.strictEqual)},a.notStrictEqual=function(e,t,r){e===t&&s(e,t,r,"!==",a.notStrictEqual)},a.throws=function(e,t,r){d.apply(this,[!0].concat(c.call(arguments)))},a.doesNotThrow=function(e,t){d.apply(this,[!1].concat(c.call(arguments)))},a.ifError=function(e){if(e)throw e};var m=Object.keys||function(e){var t,r=[];for(t in e)i.call(e,t)&&r.push(t);return r}},{"util/":70}],69:[function(e,t,r){t.exports=function(e){return e&&"object"===_typeof(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],70:[function(E,e,A){(function(S,j){(function(){var s=/%[sdj%]/g;A.format=function(e){if(!g(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(u(arguments[r]));return t.join(" ")}for(var r=1,i=arguments,n=i.length,a=String(e).replace(s,function(e){if("%%"===e)return"%";if(n<=r)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}}),o=i[r];r<n;o=i[++r])d(o)||!v(o)?a+=" "+o:a+=" "+u(o);return a},A.deprecate=function(e,t){if(b(j.process))return function(){return A.deprecate(e,t).apply(this,arguments)};if(!0===S.noDeprecation)return e;var r=!1;return function(){if(!r){if(S.throwDeprecation)throw new Error(t);S.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}};var e,i={};function u(e,t){var r={seen:[],stylize:a};return 3<=arguments.length&&(r.depth=arguments[2]),4<=arguments.length&&(r.colors=arguments[3]),h(t)?r.showHidden=t:t&&A._extend(r,t),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=n),c(r,e,r.depth)}function n(e,t){t=u.styles[t];return t?"["+u.colors[t][0]+"m"+e+"["+u.colors[t][1]+"m":e}function a(e,t){return e}function c(t,r,i){if(t.customInspect&&r&&k(r.inspect)&&r.inspect!==A.inspect&&(!r.constructor||r.constructor.prototype!==r)){var e=r.inspect(i,t);return e=!g(e)?c(t,e,i):e}var n=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(m(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(d(t))return e.stylize("null","null")}(t,r);if(n)return n;var a,e=Object.keys(r),o=(a={},e.forEach(function(e,t){a[e]=!0}),a);if(t.showHidden&&(e=Object.getOwnPropertyNames(r)),w(r)&&(0<=e.indexOf("message")||0<=e.indexOf("description")))return f(r);if(0===e.length){if(k(r)){var s=r.name?": "+r.name:"";return t.stylize("[Function"+s+"]","special")}if(y(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return t.stylize(Date.prototype.toString.call(r),"date");if(w(r))return f(r)}var n="",u=!1,s=["{","}"];return l(r)&&(u=!0,s=["[","]"]),k(r)&&(n=" [Function"+(r.name?": "+r.name:"")+"]"),y(r)&&(n=" "+RegExp.prototype.toString.call(r)),_(r)&&(n=" "+Date.prototype.toUTCString.call(r)),w(r)&&(n=" "+f(r)),0!==e.length||u&&0!=r.length?i<0?y(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),e=u?function(t,r,i,n,e){for(var a=[],o=0,s=r.length;o<s;++o)x(r,String(o))?a.push(p(t,r,i,n,String(o),!0)):a.push("");return e.forEach(function(e){e.match(/^\d+$/)||a.push(p(t,r,i,n,e,!0))}),a}(t,r,i,o,e):e.map(function(e){return p(t,r,i,o,e,u)}),t.seen.pop(),function(e,t,r){if(60<e.reduce(function(e,t){return 0<=t.indexOf("\n")&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0))return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(e,n,s)):s[0]+n+s[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,r,i,n,a){var o,s,t=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]};if(t.get?s=t.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):t.set&&(s=e.stylize("[Setter]","special")),x(i,n)||(o="["+n+"]"),s||(e.seen.indexOf(t.value)<0?-1<(s=d(r)?c(e,t.value,null):c(e,t.value,r-1)).indexOf("\n")&&(s=a?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),b(o)){if(a&&n.match(/^\d+$/))return s;o=(o=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),e.stylize(o,"string"))}return o+": "+s}function l(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function d(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function b(e){return void 0===e}function y(e){return v(e)&&"[object RegExp]"===t(e)}function v(e){return"object"===_typeof(e)&&null!==e}function _(e){return v(e)&&"[object Date]"===t(e)}function w(e){return v(e)&&("[object Error]"===t(e)||e instanceof Error)}function k(e){return"function"==typeof e}function t(e){return Object.prototype.toString.call(e)}function r(e){return e<10?"0"+e.toString(10):e.toString(10)}A.debuglog=function(t){var r;return b(e)&&(e=S.env.NODE_DEBUG||""),t=t.toUpperCase(),i[t]||(new RegExp("\\b"+t+"\\b","i").test(e)?(r=S.pid,i[t]=function(){var e=A.format.apply(A,arguments);console.error("%s %d: %s",t,r,e)}):i[t]=function(){}),i[t]},(A.inspect=u).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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},A.isArray=l,A.isBoolean=h,A.isNull=d,A.isNullOrUndefined=function(e){return null==e},A.isNumber=m,A.isString=g,A.isSymbol=function(e){return"symbol"===_typeof(e)},A.isUndefined=b,A.isRegExp=y,A.isObject=v,A.isDate=_,A.isError=w,A.isFunction=k,A.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===_typeof(e)||void 0===e},A.isBuffer=E("./support/isBuffer");var o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}A.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[r(e.getHours()),r(e.getMinutes()),r(e.getSeconds())].join(":"),[e.getDate(),o[e.getMonth()],t].join(" ")),A.format.apply(A,arguments))},A.inherits=E("inherits"),A._extend=function(e,t){if(!t||!v(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e}}).call(this)}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":69,_process:354,inherits:296}],71:[function(e,t,r){var i=e("crypto"),n=e("url").parse,a=["acl","location","logging","notification","partNumber","policy","requestPayment","torrent","uploadId","uploads","versionId","versioning","versions","website"];function o(e){return"AWS "+e.key+":"+u(e)}function s(e){return i.createHmac("sha1",e.secret).update(e.message).digest("base64")}function u(e){return e.message=c(e),s(e)}function c(e){var t=e.amazonHeaders||"";return t&&(t+="\n"),[e.verb,e.md5,e.contentType,e.date?e.date.toUTCString():"",t+e.resource].join("\n")}function f(e){return"GET\n\n\n"+e.date+"\n"+e.resource}t.exports=o,t.exports.authorization=o,t.exports.hmacSha1=s,t.exports.sign=u,t.exports.signQuery=function(e){return e.message=f(e),s(e)},t.exports.stringToSign=c,t.exports.queryStringToSign=f,t.exports.canonicalizeHeaders=function(e){for(var t=[],r=Object.keys(e),i=0,n=r.length;i<n;++i){var a=r[i],o=e[a];0===(a=a.toLowerCase()).indexOf("x-amz")&&t.push(a+":"+o)}return t.sort().join("\n")},t.exports.canonicalizeResource=function(e){var r=n(e,!0),e=r.pathname,i=[];return Object.keys(r.query).forEach(function(e){var t;~a.indexOf(e)&&(t=""==r.query[e]?"":"="+encodeURIComponent(r.query[e]),i.push(e+t))}),e+(i.length?"?"+i.sort().join("&"):"")}},{crypto:198,url:476}],72:[function(h,e,d){(function(t,l){(function(){var e=d,n=h("url"),i=h("querystring"),a=h("crypto"),o=h("./lru")(1e3);function s(e,t,r){return a.createHmac("sha256",e).update(t,"utf8").digest(r)}function f(e,t){return a.createHash("sha256").update(e,"utf8").digest(t)}function r(e){return e.replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function p(e){return r(encodeURIComponent(e))}var u={authorization:!0,connection:!0,"x-amzn-trace-id":!0,"user-agent":!0,expect:!0,"presigned-expires":!0,range:!0};function c(e,t){var r=(e="string"==typeof e?n.parse(e):e).headers=e.headers||{},i=(!this.service||!this.region)&&this.matchHost(e.hostname||e.host||r.Host||r.host);this.request=e,this.credentials=t||this.defaultCredentials(),this.service=e.service||i[0]||"",this.region=e.region||i[1]||"us-east-1","email"===this.service&&(this.service="ses"),!e.method&&e.body&&(e.method="POST"),r.Host||r.host||(r.Host=e.hostname||e.host||this.createHost(),e.port&&(r.Host+=":"+e.port)),e.hostname||e.host||(e.hostname=r.Host||r.host),this.isCodeCommitGit="codecommit"===this.service&&"GIT"===e.method}c.prototype.matchHost=function(e){var t=((e||"").match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(\.cn)?$/)||[]).slice(1,3);if("s3"==(t="es"===t[1]?t.reverse():t)[1])t[0]="s3",t[1]="us-east-1";else for(var r=0;r<2;r++)if(/^s3-/.test(t[r])){t[1]=t[r].slice(3),t[0]="s3";break}return t},c.prototype.isSingleRegion=function(){return 0<=["s3","sdb"].indexOf(this.service)&&"us-east-1"===this.region||0<=["cloudfront","ls","route53","iam","importexport","sts"].indexOf(this.service)},c.prototype.createHost=function(){var e=this.isSingleRegion()?"":"."+this.region;return("ses"===this.service?"email":this.service)+e+".amazonaws.com"},c.prototype.prepareRequest=function(){this.parsePath();var e,t=this.request,r=t.headers;t.signQuery?(this.parsedPath.query=e=this.parsedPath.query||{},this.credentials.sessionToken&&(e["X-Amz-Security-Token"]=this.credentials.sessionToken),"s3"!==this.service||e["X-Amz-Expires"]||(e["X-Amz-Expires"]=86400),e["X-Amz-Date"]?this.datetime=e["X-Amz-Date"]:e["X-Amz-Date"]=this.getDateTime(),e["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",e["X-Amz-Credential"]=this.credentials.accessKeyId+"/"+this.credentialString(),e["X-Amz-SignedHeaders"]=this.signedHeaders()):(t.doNotModifyHeaders||this.isCodeCommitGit||(!t.body||r["Content-Type"]||r["content-type"]||(r["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8"),!t.body||r["Content-Length"]||r["content-length"]||(r["Content-Length"]=l.byteLength(t.body)),!this.credentials.sessionToken||r["X-Amz-Security-Token"]||r["x-amz-security-token"]||(r["X-Amz-Security-Token"]=this.credentials.sessionToken),"s3"!==this.service||r["X-Amz-Content-Sha256"]||r["x-amz-content-sha256"]||(r["X-Amz-Content-Sha256"]=f(this.request.body||"","hex")),r["X-Amz-Date"]||r["x-amz-date"]?this.datetime=r["X-Amz-Date"]||r["x-amz-date"]:r["X-Amz-Date"]=this.getDateTime()),delete r.Authorization,delete r.authorization)},c.prototype.sign=function(){return this.parsedPath||this.prepareRequest(),this.request.signQuery?this.parsedPath.query["X-Amz-Signature"]=this.signature():this.request.headers.Authorization=this.authHeader(),this.request.path=this.formatPath(),this.request},c.prototype.getDateTime=function(){var e;return this.datetime||(e=this.request.headers,e=new Date(e.Date||e.date||new Date),this.datetime=e.toISOString().replace(/[:\-]|\.\d{3}/g,""),this.isCodeCommitGit&&(this.datetime=this.datetime.slice(0,-1))),this.datetime},c.prototype.getDate=function(){return this.getDateTime().substr(0,8)},c.prototype.authHeader=function(){return["AWS4-HMAC-SHA256 Credential="+this.credentials.accessKeyId+"/"+this.credentialString(),"SignedHeaders="+this.signedHeaders(),"Signature="+this.signature()].join(", ")},c.prototype.signature=function(){var e=this.getDate(),t=[this.credentials.secretAccessKey,e,this.region,this.service].join(),r=o.get(t);return r||(e=s("AWS4"+this.credentials.secretAccessKey,e),e=s(e,this.region),e=s(e,this.service),r=s(e,"aws4_request"),o.set(t,r)),s(r,this.stringToSign(),"hex")},c.prototype.stringToSign=function(){return["AWS4-HMAC-SHA256",this.getDateTime(),this.credentialString(),f(this.canonicalString(),"hex")].join("\n")},c.prototype.canonicalString=function(){this.parsedPath||this.prepareRequest();var e,r,t=this.parsedPath.path,i=this.parsedPath.query,n=this.request.headers,a="",o="s3"!==this.service,s="s3"===this.service||this.request.doNotEncodePath,u="s3"===this.service,c="s3"===this.service,n="s3"===this.service&&this.request.signQuery?"UNSIGNED-PAYLOAD":this.isCodeCommitGit?"":n["X-Amz-Content-Sha256"]||n["x-amz-content-sha256"]||f(this.request.body||"","hex");return i&&(e=Object.keys(i).reduce(function(e,t){return t&&(e[p(t)]=Array.isArray(i[t])&&c?i[t][0]:i[t]),e},{}),r=[],Object.keys(e).sort().forEach(function(t){Array.isArray(e[t])?e[t].map(p).sort().forEach(function(e){r.push(t+"="+e)}):r.push(t+"="+p(e[t]))}),a=r.join("&")),"/"!==t&&("/"!==(t=(t=o?t.replace(/\/{2,}/g,"/"):t).split("/").reduce(function(e,t){return o&&".."===t?e.pop():o&&"."===t||(s&&(t=decodeURIComponent(t.replace(/\+/g," "))),e.push(p(t))),e},[]).join("/"))[0]&&(t="/"+t),u&&(t=t.replace(/%2F/g,"/"))),[this.request.method||"GET",t,a,this.canonicalHeaders()+"\n",this.signedHeaders(),n].join("\n")},c.prototype.canonicalHeaders=function(){var t=this.request.headers;return Object.keys(t).filter(function(e){return null==u[e.toLowerCase()]}).sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1}).map(function(e){return e.toLowerCase()+":"+t[e].toString().trim().replace(/\s+/g," ")}).join("\n")},c.prototype.signedHeaders=function(){return Object.keys(this.request.headers).map(function(e){return e.toLowerCase()}).filter(function(e){return null==u[e]}).sort().join(";")},c.prototype.credentialString=function(){return[this.getDate(),this.region,this.service,"aws4_request"].join("/")},c.prototype.defaultCredentials=function(){var e=t.env;return{accessKeyId:e.AWS_ACCESS_KEY_ID||e.AWS_ACCESS_KEY,secretAccessKey:e.AWS_SECRET_ACCESS_KEY||e.AWS_SECRET_KEY,sessionToken:e.AWS_SESSION_TOKEN}},c.prototype.parsePath=function(){var e=this.request.path||"/",t=(e=/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(e)?encodeURI(decodeURI(e)):e).indexOf("?"),r=null;0<=t&&(r=i.parse(e.slice(t+1)),e=e.slice(0,t)),this.parsedPath={path:e,query:r}},c.prototype.formatPath=function(){var e=this.parsedPath.path,t=this.parsedPath.query;return t?(null!=t[""]&&delete t[""],e+"?"+r(i.stringify(t))):e},e.RequestSigner=c,e.sign=function(e,t){return new c(e,t).sign()}}).call(this)}).call(this,h("_process"),h("buffer").Buffer)},{"./lru":73,_process:354,buffer:186,crypto:198,querystring:385,url:476}],73:[function(e,t,r){function i(e){this.capacity=0|e,this.map=Object.create(null),this.list=new n}function n(){this.firstNode=null,this.lastNode=null}function a(e,t){this.key=e,this.val=t,this.prev=null,this.next=null}t.exports=function(e){return new i(e)},i.prototype.get=function(e){e=this.map[e];if(null!=e)return this.used(e),e.val},i.prototype.set=function(e,t){var r=this.map[e];if(null!=r)r.val=t;else{if(this.capacity||this.prune(),!this.capacity)return!1;r=new a(e,t),this.map[e]=r,this.capacity--}return this.used(r),!0},i.prototype.used=function(e){this.list.moveToFront(e)},i.prototype.prune=function(){var e=this.list.pop();null!=e&&(delete this.map[e.key],this.capacity++)},n.prototype.moveToFront=function(e){this.firstNode!=e&&(this.remove(e),null==this.firstNode?(this.firstNode=e,(this.lastNode=e).prev=null,e.next=null):(e.prev=null,e.next=this.firstNode,e.next.prev=e,this.firstNode=e))},n.prototype.pop=function(){var e=this.lastNode;return null!=e&&this.remove(e),e},n.prototype.remove=function(e){this.firstNode==e?this.firstNode=e.next:null!=e.prev&&(e.prev.next=e.next),this.lastNode==e?this.lastNode=e.prev:null!=e.next&&(e.next.prev=e.prev)}},{}],74:[function(e,t,r){"use strict";function i(e,t,r){var i=a(e=e instanceof RegExp?n(e,r):e,t=t instanceof RegExp?n(t,r):t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function n(e,t){e=t.match(e);return e?e[0]:null}function a(e,t,r){var i,n,a,o,s,u=r.indexOf(e),c=r.indexOf(t,u+1),f=u;if(0<=u&&0<c){for(i=[],a=r.length;0<=f&&!s;)f==u?(i.push(f),u=r.indexOf(e,f+1)):1==i.length?s=[i.pop(),c]:((n=i.pop())<a&&(a=n,o=c),c=r.indexOf(t,f+1)),f=u<c&&0<=u?u:c;i.length&&(s=[a,o])}return s}(t.exports=i).range=a},{}],75:[function(e,t,r){"use strict";var y=e("safe-buffer").Buffer;t.exports=function(l){if(255<=l.length)throw new TypeError("Alphabet too long");for(var h=new Uint8Array(256),e=0;e<h.length;e++)h[e]=255;for(var t=0;t<l.length;t++){var r=l.charAt(t),i=r.charCodeAt(0);if(255!==h[i])throw new TypeError(r+" is ambiguous");h[i]=t}var d=l.length,m=l.charAt(0),g=Math.log(d)/Math.log(256),b=Math.log(256)/Math.log(d);function n(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return y.alloc(0);var t=0;if(" "!==e[t]){for(var r=0,i=0;e[t]===m;)r++,t++;for(var n=(e.length-t)*g+1>>>0,a=new Uint8Array(n);e[t];){var o=h[e.charCodeAt(t)];if(255===o)return;for(var s=0,u=n-1;(0!==o||s<i)&&-1!==u;u--,s++)o+=d*a[u]>>>0,a[u]=o%256>>>0,o=o/256>>>0;if(0!==o)throw new Error("Non-zero carry");i=s,t++}if(" "!==e[t]){for(var c=n-i;c!==n&&0===a[c];)c++;var f=y.allocUnsafe(r+(n-c));f.fill(0,0,r);for(var p=r;c!==n;)f[p++]=a[c++];return f}}}return{encode:function(e){if((Array.isArray(e)||e instanceof Uint8Array)&&(e=y.from(e)),!y.isBuffer(e))throw new TypeError("Expected Buffer");if(0===e.length)return"";for(var t=0,r=0,i=0,n=e.length;i!==n&&0===e[i];)i++,t++;for(var a=(n-i)*b+1>>>0,o=new Uint8Array(a);i!==n;){for(var s=e[i],u=0,c=a-1;(0!==s||u<r)&&-1!==c;c--,u++)s+=256*o[c]>>>0,o[c]=s%d>>>0,s=s/d>>>0;if(0!==s)throw new Error("Non-zero carry");r=u,i++}for(var f=a-r;f!==a&&0===o[f];)f++;for(var p=m.repeat(t);f<a;++f)p+=l.charAt(o[f]);return p},decodeUnsafe:n,decode:function(e){if(e=n(e))return e;throw new Error("Non-base"+d+" character")}}}},{"safe-buffer":421}],76:[function(e,t,r){"use strict";r.byteLength=function(e){var t=f(e),e=t[0],t=t[1];return 3*(e+t)/4-t},r.toByteArray=function(e){var t,r,i=f(e),n=i[0],i=i[1],a=new c(function(e,t){return 3*(e+t)/4-t}(n,i)),o=0,s=0<i?n-4:n;for(r=0;r<s;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=255&t;2===i&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[o++]=255&t);1===i&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[o++]=t>>8&255,a[o++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],a=0,o=r-i;a<o;a+=16383)n.push(function(e,t,r){for(var i,n=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),n.push(function(e){return s[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e]}(i));return n.join("")}(e,a,o<a+16383?o:a+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+"==")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"="));return n.join("")};for(var s=[],u=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,a=i.length;n<a;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function f(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");e=e.indexOf("=");return[e=-1===e?t:e,e===t?0:4-e%4]}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},{}],77:[function(e,t,r){"use strict";var v=e("tweetnacl").lowlevel.crypto_hash,s=0,u=function(){this.S=[new Uint32Array([3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946]),new Uint32Array([1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055]),new Uint32Array([3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504]),new Uint32Array([976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462])],this.P=new Uint32Array([608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731])};function n(e,t,r){return(e[0][t[r+3]]+e[1][t[r+2]]^e[2][t[r+1]])+e[3][t[r]]}function c(e,t){for(var r=0,i=0;i<4;i++,s++)r=r<<8|e[s=t<=s?0:s];return r}u.prototype.encipher=function(e,t){void 0===t&&(t=new Uint8Array(e.buffer),0!==e.byteOffset&&(t=t.subarray(e.byteOffset))),e[0]^=this.P[0];for(var r=1;r<16;r+=2)e[1]^=n(this.S,t,0)^this.P[r],e[0]^=n(this.S,t,4)^this.P[r+1];var i=e[0];e[0]=e[1]^this.P[17],e[1]=i},u.prototype.decipher=function(e){var t=new Uint8Array(e.buffer);0!==e.byteOffset&&(t=t.subarray(e.byteOffset)),e[0]^=this.P[17];for(var r=16;0<r;r-=2)e[1]^=n(this.S,t,0)^this.P[r],e[0]^=n(this.S,t,4)^this.P[r-1];var i=e[0];e[0]=e[1]^this.P[0],e[1]=i},u.prototype.expand0state=function(e,t){var r,i=new Uint32Array(2),n=new Uint8Array(i.buffer),a=0;for(s=0;a<18;a++)this.P[a]^=c(e,t);for(a=s=0;a<18;a+=2)this.encipher(i,n),this.P[a]=i[0],this.P[a+1]=i[1];for(a=0;a<4;a++)for(r=0;r<256;r+=2)this.encipher(i,n),this.S[a][r]=i[0],this.S[a][r+1]=i[1]},u.prototype.expandstate=function(e,t,r,i){var n,a=new Uint32Array(2),o=0;for(s=0;o<18;o++)this.P[o]^=c(r,i);for(s=o=0;o<18;o+=2)a[0]^=c(e,t),a[1]^=c(e,t),this.encipher(a),this.P[o]=a[0],this.P[o+1]=a[1];for(o=0;o<4;o++)for(n=0;n<256;n+=2)a[0]^=c(e,t),a[1]^=c(e,t),this.encipher(a),this.S[o][n]=a[0],this.S[o][n+1]=a[1];s=0},u.prototype.enc=function(e,t){for(var r=0;r<t;r++)this.encipher(e.subarray(2*r))},u.prototype.dec=function(e,t){for(var r=0;r<t;r++)this.decipher(e.subarray(2*r))};var f=8;function _(e,t,r){var i,n=new u,a=new Uint32Array(f),o=new Uint8Array([79,120,121,99,104,114,111,109,97,116,105,99,66,108,111,119,102,105,115,104,83,119,97,116,68,121,110,97,109,105,116,101]);for(n.expandstate(t,64,e,64),i=0;i<64;i++)n.expand0state(t,64),n.expand0state(e,64);for(i=0;i<f;i++)a[i]=c(o,o.byteLength);for(i=0;i<64;i++)n.enc(a,a.byteLength/8);for(i=0;i<f;i++)r[4*i+3]=a[i]>>>24,r[4*i+2]=a[i]>>>16,r[4*i+1]=a[i]>>>8,r[4*i+0]=a[i]}t.exports={BLOCKS:f,HASHSIZE:32,hash:_,pbkdf:function(e,t,r,i,n,a,o){var s,u,c,f,p,l,h=new Uint8Array(64),d=new Uint8Array(64),m=new Uint8Array(32),g=new Uint8Array(32),b=new Uint8Array(i+4),y=a;if(o<1)return-1;if(0===t||0===i||0===a||a>m.byteLength*m.byteLength||1<<20<i)return-1;for(f=Math.floor((a+m.byteLength-1)/m.byteLength),c=Math.floor((a+f-1)/f),s=0;s<i;s++)b[s]=r[s];for(v(h,e,t),l=1;0<a;l++){for(b[i+0]=l>>>24,b[i+1]=l>>>16,b[i+2]=l>>>8,b[i+3]=l,v(d,b,i+4),_(h,d,g),s=m.byteLength;s--;)m[s]=g[s];for(s=1;s<o;s++)for(v(d,g,g.byteLength),_(h,d,g),u=0;u<m.byteLength;u++)m[u]^=g[u];for(c=Math.min(c,a),s=0;s<c&&!(y<=(p=s*f+(l-1)));s++)n[p]=m[s];a-=s}return 0}}},{tweetnacl:474}],78:[function(e,t,r){"use strict";for(var s="qpzry9x8gf2tvdw0s3jn54khce6mua7l",c={},i=0;i<s.length;i++){var n=s.charAt(i);if(void 0!==c[n])throw new TypeError(n+" is ambiguous");c[n]=i}function f(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function p(e){for(var t=1,r=0;r<e.length;++r){var i=e.charCodeAt(r);if(i<33||126<i)throw new Error("Invalid prefix ("+e+")");t=f(t)^i>>5}for(t=f(t),r=0;r<e.length;++r)var n=e.charCodeAt(r),t=f(t)^31&n;return t}function a(e,t,r,i){for(var n=0,a=0,o=(1<<r)-1,s=[],u=0;u<e.length;++u)for(n=n<<t|e[u],a+=t;r<=a;)a-=r,s.push(n>>a&o);if(i)0<a&&s.push(n<<r-a&o);else{if(t<=a)throw new Error("Excess padding");if(n<<r-a&o)throw new Error("Non-zero padding")}return s}t.exports={decode:function(e,t){if(t=t||90,e.length<8)throw new TypeError(e+" too short");if(e.length>t)throw new TypeError("Exceeds length limit");var r=e.toLowerCase(),t=e.toUpperCase();if(e!==r&&e!==t)throw new Error("Mixed-case string "+e);if(-1===(t=(e=r).lastIndexOf("1")))throw new Error("No separator character for "+e);if(0===t)throw new Error("Missing prefix for "+e);var r=e.slice(0,t),i=e.slice(t+1);if(i.length<6)throw new Error("Data too short");for(var n=p(r),a=[],o=0;o<i.length;++o){var s=i.charAt(o),u=c[s];if(void 0===u)throw new Error("Unknown character "+s);n=f(n)^u,o+6>=i.length||a.push(u)}if(1!==n)throw new Error("Invalid checksum for "+e);return{prefix:r,words:a}},encode:function(e,t,r){if(r=r||90,e.length+7+t.length>r)throw new TypeError("Exceeds length limit");for(var i=p(e=e.toLowerCase()),n=e+"1",a=0;a<t.length;++a){var o=t[a];if(o>>5!=0)throw new Error("Non 5-bit word");i=f(i)^o,n+=s.charAt(o)}for(a=0;a<6;++a)i=f(i);for(i^=1,a=0;a<6;++a)n+=s.charAt(i>>5*(5-a)&31);return n},toWords:function(e){return a(e,8,5,!0)},fromWords:function(e){return a(e,5,8,!1)}}},{}],79:[function(i,n,e){(function(t,r){(function(){"use strict";var e=n.exports;e.version="v"+i("./package.json").version,e.versionGuard=function(e){if(void 0!==e)throw new Error("More than one instance of bitcore-lib found. Please make sure to require bitcore-lib and check that submodules do not also include their own bitcore-lib dependency.")},e.versionGuard(t._bitcore),t._bitcore=e.version,e.crypto={},e.crypto.BN=i("./lib/crypto/bn"),e.crypto.ECDSA=i("./lib/crypto/ecdsa"),e.crypto.Hash=i("./lib/crypto/hash"),e.crypto.Random=i("./lib/crypto/random"),e.crypto.Point=i("./lib/crypto/point"),e.crypto.Signature=i("./lib/crypto/signature"),e.encoding={},e.encoding.Base58=i("./lib/encoding/base58"),e.encoding.Base58Check=i("./lib/encoding/base58check"),e.encoding.BufferReader=i("./lib/encoding/bufferreader"),e.encoding.BufferWriter=i("./lib/encoding/bufferwriter"),e.encoding.Varint=i("./lib/encoding/varint"),e.util={},e.util.buffer=i("./lib/util/buffer"),e.util.js=i("./lib/util/js"),e.util.preconditions=i("./lib/util/preconditions"),e.errors=i("./lib/errors"),e.Address=i("./lib/address"),e.Block=i("./lib/block"),e.MerkleBlock=i("./lib/block/merkleblock"),e.BlockHeader=i("./lib/block/blockheader"),e.HDPrivateKey=i("./lib/hdprivatekey.js"),e.HDPublicKey=i("./lib/hdpublickey.js"),e.Message=i("./lib/message"),e.Networks=i("./lib/networks"),e.Opcode=i("./lib/opcode"),e.PrivateKey=i("./lib/privatekey"),e.PublicKey=i("./lib/publickey"),e.Script=i("./lib/script"),e.Transaction=i("./lib/transaction"),e.URI=i("./lib/uri"),e.Unit=i("./lib/unit"),e.deps={},e.deps.bnjs=i("bn.js"),e.deps.bs58=i("bs58"),e.deps.Buffer=r,e.deps.elliptic=i("elliptic"),e.deps._=i("lodash"),e.Transaction.sighash=i("./lib/transaction/sighash")}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},i("buffer").Buffer)},{"./lib/address":80,"./lib/block":83,"./lib/block/blockheader":82,"./lib/block/merkleblock":84,"./lib/crypto/bn":85,"./lib/crypto/ecdsa":86,"./lib/crypto/hash":87,"./lib/crypto/point":88,"./lib/crypto/random":89,"./lib/crypto/signature":90,"./lib/encoding/base58":91,"./lib/encoding/base58check":92,"./lib/encoding/bufferreader":94,"./lib/encoding/bufferwriter":95,"./lib/encoding/varint":96,"./lib/errors":97,"./lib/hdprivatekey.js":99,"./lib/hdpublickey.js":100,"./lib/message":101,"./lib/networks":102,"./lib/opcode":103,"./lib/privatekey":104,"./lib/publickey":105,"./lib/script":106,"./lib/transaction":109,"./lib/transaction/sighash":117,"./lib/unit":122,"./lib/uri":123,"./lib/util/buffer":124,"./lib/util/js":125,"./lib/util/preconditions":126,"./package.json":127,"bn.js":129,bs58:183,buffer:186,elliptic:213,lodash:318}],80:[function(e,t,r){(function(d){(function(){"use strict";var o=e("lodash"),n=e("./util/preconditions"),r=e("./errors"),a=e("./encoding/base58check"),s=e("./encoding/bech32"),u=e("./networks"),c=e("./crypto/hash"),f=e("./util/js"),p=e("./publickey");function l(e,t,r,i){if(!(this instanceof l))return new l(e,t,r);if(o.isArray(e)&&o.isNumber(t))return l.createMultisig(e,t,r,!1,i);if(e instanceof l)return e;if(n.checkArgument(e,"First argument is required, please include address data.","guide/address.html"),t&&!u.get(t))throw new TypeError('Second argument must be "livenet" or "testnet".');if(r&&r!==l.PayToPublicKeyHash&&r!==l.PayToScriptHash&&r!==l.PayToWitnessPublicKeyHash&&r!==l.PayToWitnessScriptHash)throw new TypeError('Third argument must be "pubkeyhash", "scripthash", "witnesspubkeyhash", or "witnessscripthash".');e=this._classifyArguments(e,t,r);return e.network=e.network||u.get(t)||u.defaultNetwork,e.type=e.type||r||l.PayToPublicKeyHash,f.defineImmutable(this,{hashBuffer:e.hashBuffer,network:e.network,type:e.type}),this}l.prototype._classifyArguments=function(e,t,r){if(!(e instanceof d||e instanceof Uint8Array)||20!==e.length&&32!==e.length){if((e instanceof d||e instanceof Uint8Array)&&21<=e.length)return l._transformBuffer(e,t,r);if(e instanceof p)return l._transformPublicKey(e,t,r);if(e instanceof h)return l._transformScript(e,t);if("string"==typeof e)return l._transformString(e,t,r);if(o.isObject(e))return l._transformObject(e);throw new TypeError("First argument is an unrecognized data format.")}return l._transformHash(e,t,r)},l.PayToPublicKeyHash="pubkeyhash",l.PayToScriptHash="scripthash",l.PayToWitnessPublicKeyHash="witnesspubkeyhash",l.PayToWitnessScriptHash="witnessscripthash",l._transformHash=function(e,t,r){var i={};if(!(e instanceof d||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(20!==e.length&&32!==e.length)throw new TypeError("Address hashbuffers must be either 20 or 32 bytes.");return i.hashBuffer=e,i.network=u.get(t)||u.defaultNetwork,i.type=r,i},l._transformObject=function(e){return n.checkArgument(e.hash||e.hashBuffer,"Must provide a `hash` or `hashBuffer` property"),n.checkArgument(e.type,"Must provide a `type` property"),{hashBuffer:e.hash?d.from(e.hash,"hex"):e.hashBuffer,network:u.get(e.network)||u.defaultNetwork,type:e.type}},l._classifyFromVersion=function(e){var t={};if(21<e.length){var r=s.decode(e.toString("utf8"));if(0!==r.version)throw new TypeError("Only witness v0 addresses are supported.");if(20===r.data.length)t.type=l.PayToWitnessPublicKeyHash;else{if(32!==r.data.length)throw new TypeError("Witness data must be either 20 or 32 bytes.");t.type=l.PayToWitnessScriptHash}t.network=u.get(r.prefix,"bech32prefix")}else{r=u.get(e[0],"pubkeyhash"),e=u.get(e[0],"scripthash");r?(t.network=r,t.type=l.PayToPublicKeyHash):e&&(t.network=e,t.type=l.PayToScriptHash)}return t},l._transformBuffer=function(e,t,r){var i={};if(!(e instanceof d||e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(e.length<21)throw new TypeError("Address buffer is incorrect length.");var n=u.get(t),a=l._classifyFromVersion(e);if(t&&!n)throw new TypeError("Unknown network");if(!a.network||n&&n.xpubkey!==a.network.xpubkey)throw new TypeError("Address has mismatched network type.");if(!a.type||r&&r!==a.type)throw new TypeError("Address has mismatched type.");return 21<e.length?i.hashBuffer=s.decode(e.toString("utf8")).data:i.hashBuffer=e.slice(1),i.network=a.network,i.type=a.type,i},l._transformPublicKey=function(e,t,r){var i={};if(!(e instanceof p))throw new TypeError("Address must be an instance of PublicKey.");if(r&&r!==l.PayToScriptHash&&r!==l.PayToWitnessPublicKeyHash&&r!==l.PayToPublicKeyHash)throw new TypeError("Type must be either pubkeyhash, witnesspubkeyhash, or scripthash to transform public key.");if(!e.compressed&&(r===l.PayToScriptHash||r===l.PayToWitnessPublicKeyHash))throw new TypeError("Witness addresses must use compressed public keys.");return r===l.PayToScriptHash?i.hashBuffer=c.sha256ripemd160(h.buildWitnessV0Out(e).toBuffer()):i.hashBuffer=c.sha256ripemd160(e.toBuffer()),i.type=r||l.PayToPublicKeyHash,i},l._transformScript=function(e,t){n.checkArgument(e instanceof h,"script must be a Script instance");t=e.getAddressInfo(t);if(!t)throw new r.Script.CantDeriveAddress(e);return t},l.createMultisig=function(e,t,r,i,n){if(r=r||e[0].network||u.defaultNetwork,n&&n!==l.PayToScriptHash&&n!==l.PayToWitnessScriptHash)throw new TypeError("Type must be either scripthash or witnessscripthash to create multisig.");if(i||n===l.PayToWitnessScriptHash){e=o.map(e,p);for(var a=0;a<e.length;a++)if(!e[a].compressed)throw new TypeError("Witness addresses must use compressed public keys.")}t=h.buildMultisigOut(e,t);return i?l.payingTo(h.buildWitnessMultisigOutFromScript(t),r):l.payingTo(t,r,n)},l._transformString=function(e,t,r){if("string"!=typeof e)throw new TypeError("data parameter supplied is not a string.");if(100<e.length)throw new TypeError("address string is too long");if(t&&!u.get(t))throw new TypeError("Unknown network");e=e.trim();try{return l._transformBuffer(d.from(e,"utf8"),t,r)}catch(e){if(r===l.PayToWitnessPublicKeyHash||r===l.PayToWitnessScriptHash)throw e}var i=a.decode(e);return l._transformBuffer(i,t,r)},l.fromPublicKey=function(e,t,r){r=l._transformPublicKey(e,t,r);return t=t||u.defaultNetwork,new l(r.hashBuffer,t,r.type)},l.fromPublicKeyHash=function(e,t){e=l._transformHash(e);return new l(e.hashBuffer,t,l.PayToPublicKeyHash)},l.fromScriptHash=function(e,t,r){n.checkArgument(e,"hash parameter is required");var i=l._transformHash(e);if(r===l.PayToWitnessScriptHash&&32!==e.length)throw new TypeError("Address hashbuffer must be exactly 32 bytes for v0 witness script hash.");r=r||l.PayToScriptHash;return new l(i.hashBuffer,t,r)},l.payingTo=function(e,t,r){n.checkArgument(e,"script is required"),n.checkArgument(e instanceof h,"script must be instance of Script"),e=r===l.PayToWitnessScriptHash?c.sha256(e.toBuffer()):c.sha256ripemd160(e.toBuffer());r=r||l.PayToScriptHash;return l.fromScriptHash(e,t,r)},l.fromScript=function(e,t){n.checkArgument(e instanceof h,"script must be a Script instance");e=l._transformScript(e,t);return new l(e.hashBuffer,t,e.type)},l.fromBuffer=function(e,t,r){r=l._transformBuffer(e,t,r);return new l(r.hashBuffer,r.network,r.type)},l.fromString=function(e,t,r){r=l._transformString(e,t,r);return new l(r.hashBuffer,r.network,r.type)},l.fromObject=function(e){return n.checkState(f.isHexa(e.hash),'Unexpected hash property, "'+e.hash+'", expected to be hex.'),new l(d.from(e.hash,"hex"),e.network,e.type)},l.getValidationError=function(e,t,r){var i;try{new l(e,t,r)}catch(e){i=e}return i},l.isValid=function(e,t,r){return!l.getValidationError(e,t,r)},l.prototype.isPayToPublicKeyHash=function(){return this.type===l.PayToPublicKeyHash},l.prototype.isPayToScriptHash=function(){return this.type===l.PayToScriptHash},l.prototype.isPayToWitnessPublicKeyHash=function(){return this.type===l.PayToWitnessPublicKeyHash},l.prototype.isPayToWitnessScriptHash=function(){return this.type===l.PayToWitnessScriptHash},l.prototype.toBuffer=function(){if(this.isPayToWitnessPublicKeyHash()||this.isPayToWitnessScriptHash())return d.from(this.toString(),"utf8");var e=d.from([this.network[this.type]]);return d.concat([e,this.hashBuffer])},l.prototype.toObject=l.prototype.toJSON=function(){return{hash:this.hashBuffer.toString("hex"),type:this.type,network:this.network.toString()}},l.prototype.toString=function(){if(this.isPayToWitnessPublicKeyHash()||this.isPayToWitnessScriptHash()){var e=this.network.bech32prefix;return s.encode(e,0,this.hashBuffer)}return a.encode(this.toBuffer())},l.prototype.inspect=function(){return"<Address: "+this.toString()+", type: "+this.type+", network: "+this.network+">"},t.exports=l;var h=e("./script")}).call(this)}).call(this,e("buffer").Buffer)},{"./crypto/hash":87,"./encoding/base58check":92,"./encoding/bech32":93,"./errors":97,"./networks":102,"./publickey":105,"./script":106,"./util/js":125,"./util/preconditions":126,buffer:186,lodash:318}],81:[function(t,h,e){(function(l){(function(){"use strict";var r=t("lodash"),n=t("./blockheader"),i=t("../crypto/bn"),a=t("../util/buffer"),o=t("../encoding/bufferreader"),s=t("../encoding/bufferwriter"),u=t("../crypto/hash"),c=t("../transaction"),f=t("../util/preconditions");function p(e){return this instanceof p?(r.extend(this,p._from(e)),this):new p(e)}p.MAX_BLOCK_SIZE=1e6,p._from=function(e){var t={};if(a.isBuffer(e))t=p._fromBufferReader(o(e));else{if(!r.isObject(e))throw new TypeError("Unrecognized argument for Block");t=p._fromObject(e)}return t},p._fromObject=function(e){var t=[];return e.transactions.forEach(function(e){e instanceof c?t.push(e):t.push(c().fromObject(e))}),{header:n.fromObject(e.header),transactions:t}},p.fromObject=function(e){e=p._fromObject(e);return new p(e)},p._fromBufferReader=function(e){var t={};f.checkState(!e.finished(),"No block data received"),t.header=n.fromBufferReader(e);var r=e.readVarintNum();t.transactions=[];for(var i=0;i<r;i++)t.transactions.push(c().fromBufferReader(e));return t},p.fromBufferReader=function(e){f.checkArgument(e,"br is required");e=p._fromBufferReader(e);return new p(e)},p.fromBuffer=function(e){return p.fromBufferReader(new o(e))},p.fromString=function(e){e=l.from(e,"hex");return p.fromBuffer(e)},p.fromRawBlock=function(e){a.isBuffer(e)||(e=l.from(e,"binary"));e=o(e);e.pos=p.Values.START_OF_BLOCK;e=p._fromBufferReader(e);return new p(e)},p.prototype.toObject=p.prototype.toJSON=function(){var t=[];return this.transactions.forEach(function(e){t.push(e.toObject())}),{header:this.header.toObject(),transactions:t}},p.prototype.toBuffer=function(){return this.toBufferWriter().concat()},p.prototype.toString=function(){return this.toBuffer().toString("hex")},p.prototype.toBufferWriter=function(e){(e=e||new s).write(this.header.toBuffer()),e.writeVarintNum(this.transactions.length);for(var t=0;t<this.transactions.length;t++)this.transactions[t].toBufferWriter(e);return e},p.prototype.getTransactionHashes=function(){var e=[];if(0===this.transactions.length)return[p.Values.NULL_HASH];for(var t=0;t<this.transactions.length;t++)e.push(this.transactions[t]._getHash());return e},p.prototype.getMerkleTree=function(){for(var e=this.getTransactionHashes(),t=0,r=this.transactions.length;1<r;r=Math.floor((r+1)/2)){for(var i=0;i<r;i+=2){var n=Math.min(i+1,r-1),n=l.concat([e[t+i],e[t+n]]);e.push(u.sha256sha256(n))}t+=r}return e},p.prototype.getMerkleRoot=function(){var e=this.getMerkleTree();return e[e.length-1]},p.prototype.validMerkleRoot=function(){var e=new i(this.header.merkleRoot.toString("hex"),"hex"),t=new i(this.getMerkleRoot().toString("hex"),"hex");return 0===e.cmp(t)};var e={configurable:!(p.prototype._getHash=function(){return this.header._getHash()}),enumerable:!0,get:function(){return this._id||(this._id=this.header.id),this._id},set:r.noop};Object.defineProperty(p.prototype,"id",e),Object.defineProperty(p.prototype,"hash",e),p.prototype.inspect=function(){return"<Block "+this.id+">"},p.Values={START_OF_BLOCK:8,NULL_HASH:l.from("0000000000000000000000000000000000000000000000000000000000000000","hex")},h.exports=p}).call(this)}).call(this,t("buffer").Buffer)},{"../crypto/bn":85,"../crypto/hash":87,"../encoding/bufferreader":94,"../encoding/bufferwriter":95,"../transaction":109,"../util/buffer":124,"../util/preconditions":126,"./blockheader":82,buffer:186,lodash:318}],82:[function(f,p,e){(function(c){(function(){"use strict";function r(e){return this instanceof r?(e=r._from(e),this.version=e.version,this.prevHash=e.prevHash,this.merkleRoot=e.merkleRoot,this.time=e.time,this.timestamp=e.time,this.bits=e.bits,this.nonce=e.nonce,e.hash&&u.checkState(this.hash===e.hash,"Argument object hash property does not match block hash."),this):new r(e)}var i=f("lodash"),n=f("../crypto/bn"),a=f("../util/buffer"),o=f("../encoding/bufferreader"),t=f("../encoding/bufferwriter"),s=f("../crypto/hash"),u=(f("../util/js"),f("../util/preconditions"));r._from=function(e){var t={};if(a.isBuffer(e))t=r._fromBufferReader(o(e));else{if(!i.isObject(e))throw new TypeError("Unrecognized argument for BlockHeader");t=r._fromObject(e)}return t},r._fromObject=function(e){u.checkArgument(e,"data is required");var t=e.prevHash,r=e.merkleRoot;return i.isString(e.prevHash)&&(t=a.reverse(c.from(e.prevHash,"hex"))),i.isString(e.merkleRoot)&&(r=a.reverse(c.from(e.merkleRoot,"hex"))),{hash:e.hash,version:e.version,prevHash:t,merkleRoot:r,time:e.time,timestamp:e.time,bits:e.bits,nonce:e.nonce}},r.fromObject=function(e){e=r._fromObject(e);return new r(e)},r.fromRawBlock=function(e){a.isBuffer(e)||(e=c.from(e,"binary"));e=o(e);e.pos=r.Constants.START_OF_HEADER;e=r._fromBufferReader(e);return new r(e)},r.fromBuffer=function(e){e=r._fromBufferReader(o(e));return new r(e)},r.fromString=function(e){e=c.from(e,"hex");return r.fromBuffer(e)},r._fromBufferReader=function(e){var t={};return t.version=e.readInt32LE(),t.prevHash=e.read(32),t.merkleRoot=e.read(32),t.time=e.readUInt32LE(),t.bits=e.readUInt32LE(),t.nonce=e.readUInt32LE(),t},r.fromBufferReader=function(e){e=r._fromBufferReader(e);return new r(e)},r.prototype.toObject=r.prototype.toJSON=function(){return{hash:this.hash,version:this.version,prevHash:a.reverse(this.prevHash).toString("hex"),merkleRoot:a.reverse(this.merkleRoot).toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}},r.prototype.toBuffer=function(){return this.toBufferWriter().concat()},r.prototype.toString=function(){return this.toBuffer().toString("hex")},r.prototype.toBufferWriter=function(e){return(e=e||new t).writeInt32LE(this.version),e.write(this.prevHash),e.write(this.merkleRoot),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e},r.prototype.getTargetDifficulty=function(e){e=e||this.bits;for(var t=new n(16777215&e),r=8*((e>>>24)-3);0<r--;)t=t.mul(new n(2));return t},r.prototype.getDifficulty=function(){var e=this.getTargetDifficulty(486604799).mul(new n(Math.pow(10,8))),t=this.getTargetDifficulty(),t=(e=e.div(t).toString(10)).length-8,e=e.slice(0,t)+"."+e.slice(t);return parseFloat(e)};var e={configurable:!(r.prototype._getHash=function(){var e=this.toBuffer();return s.sha256sha256(e)}),enumerable:!0,get:function(){return this._id||(this._id=o(this._getHash()).readReverse().toString("hex")),this._id},set:i.noop};Object.defineProperty(r.prototype,"id",e),Object.defineProperty(r.prototype,"hash",e),r.prototype.validTimestamp=function(){var e=Math.round((new Date).getTime()/1e3);return!(this.time>e+r.Constants.MAX_TIME_OFFSET)},r.prototype.validProofOfWork=function(){var e=new n(this.id,"hex"),t=this.getTargetDifficulty();return!(0<e.cmp(t))},r.prototype.inspect=function(){return"<BlockHeader "+this.id+">"},r.Constants={START_OF_HEADER:8,MAX_TIME_OFFSET:7200,LARGEST_HASH:new n("10000000000000000000000000000000000000000000000000000000000000000","hex")},p.exports=r}).call(this)}).call(this,f("buffer").Buffer)},{"../crypto/bn":85,"../crypto/hash":87,"../encoding/bufferreader":94,"../encoding/bufferwriter":95,"../util/buffer":124,"../util/js":125,"../util/preconditions":126,buffer:186,lodash:318}],83:[function(e,t,r){t.exports=e("./block"),t.exports.BlockHeader=e("./blockheader"),t.exports.MerkleBlock=e("./merkleblock")},{"./block":81,"./blockheader":82,"./merkleblock":84}],84:[function(e,t,r){(function(l){(function(){"use strict";var i=e("lodash"),a=e("./blockheader"),n=e("../util/buffer"),o=e("../encoding/bufferreader"),r=e("../encoding/bufferwriter"),s=e("../crypto/hash"),u=(e("../util/js"),e("../transaction")),c=e("../errors"),f=e("../util/preconditions");function p(e){if(!(this instanceof p))return new p(e);var t={};if(n.isBuffer(e))t=p._fromBufferReader(o(e));else{if(!i.isObject(e))throw new TypeError("Unrecognized argument for MerkleBlock");var r=e.header instanceof a?e.header:a.fromObject(e.header),t={header:r,numTransactions:e.numTransactions,hashes:e.hashes,flags:e.flags}}return i.extend(this,t),this._flagBitsUsed=0,this._hashesUsed=0,this}p.fromBuffer=function(e){return p.fromBufferReader(o(e))},p.fromBufferReader=function(e){return new p(p._fromBufferReader(e))},p.prototype.toBuffer=function(){return this.toBufferWriter().concat()},p.prototype.toBufferWriter=function(e){(e=e||new r).write(this.header.toBuffer()),e.writeUInt32LE(this.numTransactions),e.writeVarintNum(this.hashes.length);for(var t=0;t<this.hashes.length;t++)e.write(l.from(this.hashes[t],"hex"));for(e.writeVarintNum(this.flags.length),t=0;t<this.flags.length;t++)e.writeUInt8(this.flags[t]);return e},p.prototype.toObject=p.prototype.toJSON=function(){return{header:this.header.toObject(),numTransactions:this.numTransactions,hashes:this.hashes,flags:this.flags}},p.prototype.validMerkleTree=function(){if(f.checkState(i.isArray(this.flags),"MerkleBlock flags is not an array"),f.checkState(i.isArray(this.hashes),"MerkleBlock hashes is not an array"),this.hashes.length>this.numTransactions)return!1;if(8*this.flags.length<this.hashes.length)return!1;var e=this._calcTreeHeight(),t={hashesUsed:0,flagBitsUsed:0},e=this._traverseMerkleTree(e,0,t);return t.hashesUsed===this.hashes.length&&n.equals(e,this.header.merkleRoot)},p.prototype.filterdTxsHash=function(){if(f.checkState(i.isArray(this.flags),"MerkleBlock flags is not an array"),f.checkState(i.isArray(this.hashes),"MerkleBlock hashes is not an array"),this.hashes.length>this.numTransactions)throw new c.MerkleBlock.InvalidMerkleTree;if(8*this.flags.length<this.hashes.length)throw new c.MerkleBlock.InvalidMerkleTree;if(1===this.hashes.length)return[];var e=this._calcTreeHeight(),t={hashesUsed:0,flagBitsUsed:0},e=this._traverseMerkleTree(e,0,t,!0);if(t.hashesUsed!==this.hashes.length)throw new c.MerkleBlock.InvalidMerkleTree;return e},p.prototype._traverseMerkleTree=function(e,t,r,i){(r=r||{}).txs=r.txs||[],r.flagBitsUsed=r.flagBitsUsed||0,r.hashesUsed=r.hashesUsed||0;i=i||!1;if(r.flagBitsUsed>8*this.flags.length)return null;var n=this.flags[r.flagBitsUsed>>3]>>>(7&r.flagBitsUsed++)&1;if(0!==e&&n){var a=this._traverseMerkleTree(e-1,2*t,r),o=a;return 2*t+1<this._calcTreeWidth(e-1)&&(o=this._traverseMerkleTree(e-1,2*t+1,r)),i?r.txs:s.sha256sha256(new l.concat([a,o]))}if(r.hashesUsed>=this.hashes.length)return null;o=this.hashes[r.hashesUsed++];return 0===e&&n&&r.txs.push(o),l.from(o,"hex")},p.prototype._calcTreeWidth=function(e){return this.numTransactions+(1<<e)-1>>e},p.prototype._calcTreeHeight=function(){for(var e=0;1<this._calcTreeWidth(e);)e++;return e},p.prototype.hasTransaction=function(e){f.checkArgument(!i.isUndefined(e),"tx cannot be undefined"),f.checkArgument(e instanceof u||"string"==typeof e,'Invalid tx given, tx must be a "string" or "Transaction"');var t=e;e instanceof u&&(t=n.reverse(l.from(e.id,"hex")).toString("hex"));var r=[],e=this._calcTreeHeight();return this._traverseMerkleTree(e,0,{txs:r}),-1!==r.indexOf(t)},p._fromBufferReader=function(e){f.checkState(!e.finished(),"No merkleblock data received");var t={};t.header=a.fromBufferReader(e),t.numTransactions=e.readUInt32LE();var r=e.readVarintNum();t.hashes=[];for(var i=0;i<r;i++)t.hashes.push(e.read(32).toString("hex"));var n=e.readVarintNum();for(t.flags=[],i=0;i<n;i++)t.flags.push(e.readUInt8());return t},p.fromObject=function(e){return new p(e)},t.exports=p}).call(this)}).call(this,e("buffer").Buffer)},{"../crypto/hash":87,"../encoding/bufferreader":94,"../encoding/bufferwriter":95,"../errors":97,"../transaction":109,"../util/buffer":124,"../util/js":125,"../util/preconditions":126,"./blockheader":82,buffer:186,lodash:318}],85:[function(e,t,r){(function(o){(function(){"use strict";function n(e){for(var t=o.alloc(e.length),r=0;r<e.length;r++)t[r]=e[e.length-1-r];return t}var a=e("bn.js"),i=e("../util/preconditions"),r=e("lodash");a.Zero=new a(0),a.One=new a(1),a.Minus1=new a(-1),a.fromNumber=function(e){return i.checkArgument(r.isNumber(e)),new a(e)},a.fromString=function(e,t){return i.checkArgument(r.isString(e)),new a(e,t)},a.fromBuffer=function(e,t){e=(e=void 0!==t&&"little"===t.endian?n(e):e).toString("hex");return new a(e,16)},a.fromSM=function(e,t){var r;if(0===e.length)return a.fromBuffer(o.from([0]));var i="big";return 128&(e="little"===(i=t?t.endian:i)?n(e):e)[0]?(e[0]=127&e[0],(r=a.fromBuffer(e)).neg().copy(r)):r=a.fromBuffer(e),r},a.prototype.toNumber=function(){return parseInt(this.toString(10),10)},a.prototype.toBuffer=function(e){var t,r,i;return e&&e.size?(r=(t=this.toString(16,2)).length/2,i=o.from(t,"hex"),r===e.size||(r>e.size?i=a.trim(i,r):r<e.size&&(i=a.pad(i,r,e.size)))):(t=this.toString(16,2),i=o.from(t,"hex")),i=void 0!==e&&"little"===e.endian?n(i):i},a.prototype.toSMBigEndian=function(){var e;return-1===this.cmp(a.Zero)?128&(e=this.neg().toBuffer())[0]?e=o.concat([o.from([128]),e]):e[0]=128|e[0]:128&(e=this.toBuffer())[0]&&(e=o.concat([o.from([0]),e])),e=1===e.length&0===e[0]?o.from([]):e},a.prototype.toSM=function(e){var t=e?e.endian:"big",e=this.toSMBigEndian();return e="little"===t?n(e):e},a.fromScriptNumBuffer=function(e,t,r){r=r||4;if(i.checkArgument(e.length<=r,new Error("script number overflow")),t&&0<e.length&&0==(127&e[e.length-1])&&(e.length<=1||0==(128&e[e.length-2])))throw new Error("non-minimally encoded script number");return a.fromSM(e,{endian:"little"})},a.prototype.toScriptNumBuffer=function(){return this.toSM({endian:"little"})},a.trim=function(e,t){return e.slice(t-e.length,e.length)},a.pad=function(e,t,r){for(var i=o.alloc(r),n=0;n<e.length;n++)i[i.length-1-n]=e[e.length-1-n];for(n=0;n<r-t;n++)i[n]=0;return i},t.exports=a}).call(this)}).call(this,e("buffer").Buffer)},{"../util/preconditions":126,"bn.js":129,buffer:186,lodash:318}],86:[function(e,t,r){(function(m){(function(){"use strict";function u(e){if(!(this instanceof u))return new u(e);e&&this.set(e)}var c=e("./bn"),f=e("./point"),i=e("./signature"),s=e("../publickey"),r=e("./random"),p=e("./hash"),l=e("../util/buffer"),h=e("lodash"),d=e("../util/preconditions");u.prototype.set=function(e){return this.hashbuf=e.hashbuf||this.hashbuf,this.endian=e.endian||this.endian,this.privkey=e.privkey||this.privkey,this.pubkey=e.pubkey||(this.privkey?this.privkey.publicKey:this.pubkey),this.sig=e.sig||this.sig,this.k=e.k||this.k,this.verified=e.verified||this.verified,this},u.prototype.privkey2pubkey=function(){this.pubkey=this.privkey.toPublicKey()},u.prototype.calci=function(){for(var e,t=0;t<4;t++){this.sig.i=t;try{e=this.toPublicKey()}catch(e){console.error(e);continue}if(e.point.eq(this.pubkey.point))return this.sig.compressed=this.pubkey.compressed,this}throw this.sig.i=void 0,new Error("Unable to find valid recovery factor")},u.fromString=function(e){e=JSON.parse(e);return new u(e)},u.prototype.randomK=function(){for(var e,t=f.getN();e=c.fromBuffer(r.getRandomBuffer(32)),!e.lt(t)||!e.gt(c.Zero););return this.k=e,this},u.prototype.deterministicK=function(e){h.isUndefined(e)&&(e=0),(n=m.alloc(32)).fill(1),(i=m.alloc(32)).fill(0);var t=this.privkey.bn.toBuffer({size:32}),r="little"===this.endian?l.reverse(this.hashbuf):this.hashbuf,i=p.sha256hmac(m.concat([n,m.from([0]),t,r]),i),n=p.sha256hmac(n,i);i=p.sha256hmac(m.concat([n,m.from([1]),t,r]),i),n=p.sha256hmac(n,i),n=p.sha256hmac(n,i);for(var a=c.fromBuffer(n),o=f.getN(),s=0;s<e||!a.lt(o)||!a.gt(c.Zero);s++)i=p.sha256hmac(m.concat([n,m.from([0])]),i),n=p.sha256hmac(n,i),n=p.sha256hmac(n,i),a=c.fromBuffer(n);return this.k=a,this},u.prototype.toPublicKey=function(){var e=this.sig.i;d.checkArgument(0===e||1===e||2===e||3===e,new Error("i must be equal to 0, 1, 2, or 3"));var t=c.fromBuffer(this.hashbuf),r=this.sig.r,i=this.sig.s,n=1&e,a=e>>1,o=f.getN(),e=f.getG(),a=a?r.add(o):r,a=f.fromX(n,a);if(!a.mul(o).isInfinity())throw new Error("nR is not a valid curve point");t=t.neg().umod(o),o=r.invm(o),o=a.mul(i).add(e.mul(t)).mul(o);return s.fromPoint(o,this.sig.compressed)},u.prototype.sigError=function(){if(!l.isBuffer(this.hashbuf)||32!==this.hashbuf.length)return"hashbuf must be a 32 byte buffer";var e=this.sig.r,t=this.sig.s;if(!(e.gt(c.Zero)&&e.lt(f.getN())&&t.gt(c.Zero)&&t.lt(f.getN())))return"r and s not in range";var r=c.fromBuffer(this.hashbuf,this.endian?{endian:this.endian}:void 0),i=f.getN(),t=t.invm(i),r=t.mul(r).umod(i),t=t.mul(e).umod(i),t=f.getG().mulAdd(r,this.pubkey.point,t);return t.isInfinity()?"p is infinity":0!==t.getX().umod(i).cmp(e)&&"Invalid signature"},u.toLowS=function(e){return e=e.gt(c.fromBuffer(m.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))?f.getN().sub(e):e},u.prototype._findSignature=function(e,t){for(var r,i,n,a=f.getN(),o=f.getG(),s=0;(!this.k||0<s)&&this.deterministicK(s),s++,r=this.k,i=o.mul(r).x.umod(a),n=r.invm(a).mul(t.add(e.mul(i))).umod(a),i.cmp(c.Zero)<=0||n.cmp(c.Zero)<=0;);return{s:n=u.toLowS(n),r:i}},u.prototype.sign=function(){var e=this.hashbuf,t=this.privkey,r=t.bn;d.checkState(e&&t&&r,new Error("invalid parameters")),d.checkState(l.isBuffer(e)&&32===e.length,new Error("hashbuf must be a 32 byte buffer"));e=c.fromBuffer(e,this.endian?{endian:this.endian}:void 0),e=this._findSignature(r,e);return e.compressed=this.pubkey.compressed,this.sig=new i(e),this},u.prototype.signRandomK=function(){return this.randomK(),this.sign()},u.prototype.toString=function(){var e={};return this.hashbuf&&(e.hashbuf=this.hashbuf.toString("hex")),this.privkey&&(e.privkey=this.privkey.toString()),this.pubkey&&(e.pubkey=this.pubkey.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)},u.prototype.verify=function(){return this.sigError()?this.verified=!1:this.verified=!0,this},u.sign=function(e,t,r){return u().set({hashbuf:e,endian:r,privkey:t}).sign().sig},u.verify=function(e,t,r,i){return u().set({hashbuf:e,endian:i,sig:t,pubkey:r}).verify().verified},t.exports=u}).call(this)}).call(this,e("buffer").Buffer)},{"../publickey":105,"../util/buffer":124,"../util/preconditions":126,"./bn":85,"./hash":87,"./point":88,"./random":89,"./signature":90,buffer:186,lodash:318}],87:[function(e,i,t){(function(l){(function(){"use strict";var t=e("crypto"),f=e("../util/buffer"),p=e("../util/preconditions"),r=i.exports;r.sha1=function(e){return p.checkArgument(f.isBuffer(e)),t.createHash("sha1").update(e).digest()},r.sha1.blocksize=512,r.sha256=function(e){return p.checkArgument(f.isBuffer(e)),t.createHash("sha256").update(e).digest()},r.sha256.blocksize=512,r.sha256sha256=function(e){return p.checkArgument(f.isBuffer(e)),r.sha256(r.sha256(e))},r.ripemd160=function(e){return p.checkArgument(f.isBuffer(e)),t.createHash("ripemd160").update(e).digest()},r.sha256ripemd160=function(e){return p.checkArgument(f.isBuffer(e)),r.ripemd160(r.sha256(e))},r.sha512=function(e){return p.checkArgument(f.isBuffer(e)),t.createHash("sha512").update(e).digest()},r.sha512.blocksize=1024,r.hmac=function(e,t,r){p.checkArgument(f.isBuffer(t)),p.checkArgument(f.isBuffer(r)),p.checkArgument(e.blocksize);var i,n=e.blocksize/8;r.length>n?r=e(r):r<n&&((i=l.alloc(n)).fill(0),r.copy(i),r=i);var a=l.alloc(n);a.fill(92);var o=l.alloc(n);o.fill(54);for(var s=l.alloc(n),u=l.alloc(n),c=0;c<n;c++)s[c]=a[c]^r[c],u[c]=o[c]^r[c];return e(l.concat([s,e(l.concat([u,t]))]))},r.sha256hmac=function(e,t){return r.hmac(r.sha256,e,t)},r.sha512hmac=function(e,t){return r.hmac(r.sha512,e,t)}}).call(this)}).call(this,e("buffer").Buffer)},{"../util/buffer":124,"../util/preconditions":126,buffer:186,crypto:198}],88:[function(s,u,e){(function(o){(function(){"use strict";function t(e,t,r){try{var i=n(e,t,r)}catch(e){throw new Error("Invalid Point")}return i.validate(),i}var e=s("./bn"),r=s("../util/buffer"),i=new(s("elliptic").ec)("secp256k1"),n=i.curve.point.bind(i.curve),a=i.curve.pointFromX.bind(i.curve);t.prototype=Object.getPrototypeOf(i.curve.point()),t.fromX=function(e,t){try{var r=a(t,e)}catch(e){throw new Error("Invalid X")}return r.validate(),r},t.getG=function(){return i.curve.g},t.getN=function(){return new e(i.curve.n.toArray())},t.prototype._getX=t.prototype.getX,t.prototype.getX=function(){return new e(this._getX().toArray())},t.prototype._getY=t.prototype.getY,t.prototype.getY=function(){return new e(this._getY().toArray())},t.prototype.validate=function(){if(this.isInfinity())throw new Error("Point cannot be equal to Infinity");var e;try{e=a(this.getX(),this.getY().isOdd())}catch(e){throw new Error("Point does not lie on the curve")}if(0!==e.y.cmp(this.y))throw new Error("Invalid y value for curve.");if(!this.mul(t.getN()).isInfinity())throw new Error("Point times N must be infinity");return this},t.pointToCompressed=function(e){var t=e.getX().toBuffer({size:32}),e=e.getY().toBuffer({size:32}),e=e[e.length-1]%2?o.from([3]):o.from([2]);return r.concat([e,t])},u.exports=t}).call(this)}).call(this,s("buffer").Buffer)},{"../util/buffer":124,"./bn":85,buffer:186,elliptic:213}],89:[function(i,e,t){(function(r,n){(function(){"use strict";function t(){}t.getRandomBuffer=function(e){return r.browser?t.getRandomBufferBrowser(e):t.getRandomBufferNode(e)},t.getRandomBufferNode=function(e){return i("crypto").randomBytes(e)},t.getRandomBufferBrowser=function(e){if(!window.crypto&&!window.msCrypto)throw new Error("window.crypto not available");if(window.crypto&&window.crypto.getRandomValues)var t=window.crypto;else{if(!window.msCrypto||!window.msCrypto.getRandomValues)throw new Error("window.crypto.getRandomValues not available");t=window.msCrypto}e=new Uint8Array(e);return t.getRandomValues(e),n.from(e)},t.getPseudoRandomBuffer=function(e){for(var t,r=n.alloc(e),i=0;i<=e;i++)0==i-4*Math.floor(i/4)?(t=4294967296*Math.random(),r[i]=255&t):r[i]=255&(t>>>=8);return r},e.exports=t}).call(this)}).call(this,i("_process"),i("buffer").Buffer)},{_process:354,buffer:186,crypto:198}],90:[function(e,r,t){(function(o){(function(){"use strict";function a(e,t){if(!(this instanceof a))return new a(e,t);e instanceof h?this.set({r:e,s:t}):e&&this.set(e)}var h=e("./bn"),d=e("lodash"),m=e("../util/preconditions"),g=e("../util/buffer"),t=e("../util/js");a.prototype.set=function(e){return this.r=e.r||this.r||void 0,this.s=e.s||this.s||void 0,this.i=(void 0!==e.i?e:this).i,this.compressed=(void 0!==e.compressed?e:this).compressed,this.nhashtype=e.nhashtype||this.nhashtype||void 0,this},a.fromCompact=function(e){m.checkArgument(g.isBuffer(e),"Argument is expected to be a Buffer");var t=new a,r=!0,i=e.slice(0,1)[0]-27-4;i<0&&(r=!1,i+=4);var n=e.slice(1,33),e=e.slice(33,65);return m.checkArgument(0===i||1===i||2===i||3===i,new Error("i must be 0, 1, 2, or 3")),m.checkArgument(32===n.length,new Error("r must be 32 bytes")),m.checkArgument(32===e.length,new Error("s must be 32 bytes")),t.compressed=r,t.i=i,t.r=h.fromBuffer(n),t.s=h.fromBuffer(e),t},a.fromDER=a.fromBuffer=function(e,t){e=a.parseDER(e,t),t=new a;return t.r=e.r,t.s=e.s,t},a.fromTxFormat=function(e){var t=e.readUInt8(e.length-1),e=e.slice(0,e.length-1),e=new a.fromDER(e,!1);return e.nhashtype=t,e},a.fromString=function(e){e=o.from(e,"hex");return a.fromDER(e)},a.parseDER=function(e,t){m.checkArgument(g.isBuffer(e),new Error("DER formatted signature should be a buffer")),d.isUndefined(t)&&(t=!0);var r=e[0];m.checkArgument(48===r,new Error("Header byte should be 0x30"));var i=e[1],n=e.slice(2).length;m.checkArgument(!t||i===n,new Error("Length byte should length of what follows")),i=i<n?i:n;var a=e[2];m.checkArgument(2===a,new Error("Integer byte for r should be 0x02"));var o=e[3],s=e.slice(4,4+o),u=h.fromBuffer(s),c=0===e[4];m.checkArgument(o===s.length,new Error("Length of r incorrect"));var f=e[4+o+0];m.checkArgument(2===f,new Error("Integer byte for s should be 0x02"));var p=e[4+o+1],l=e.slice(4+o+2,4+o+2+p),t=h.fromBuffer(l),n=0===e[4+o+2+2];m.checkArgument(p===l.length,new Error("Length of s incorrect"));e=4+o+2+p;return m.checkArgument(i===e-2,new Error("Length of signature incorrect")),{header:r,length:i,rheader:a,rlength:o,rneg:c,rbuf:s,r:u,sheader:f,slength:p,sneg:n,sbuf:l,s:t}},a.prototype.toCompact=function(e,t){if(e="number"==typeof e?e:this.i,t="boolean"==typeof t?t:this.compressed,0!==e&&1!==e&&2!==e&&3!==e)throw new Error("i must be equal to 0, 1, 2, or 3");var r=e+27+4;!1===t&&(r-=4);e=o.from([r]),t=this.r.toBuffer({size:32}),r=this.s.toBuffer({size:32});return o.concat([e,t,r])},a.prototype.toBuffer=a.prototype.toDER=function(){var e=this.r.toBuffer(),t=this.s.toBuffer(),r=!!(128&e[0]),i=!!(128&t[0]),n=r?o.concat([o.from([0]),e]):e,r=i?o.concat([o.from([0]),t]):t,e=n.length,i=r.length,t=2+e+2+i;return o.concat([o.from([48,t,2,e]),n,o.from([2,i]),r])},a.prototype.toString=function(){return this.toDER().toString("hex")},a.isTxDER=function(e){if(e.length<9)return!1;if(73<e.length)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-3)return!1;var t=e[3];if(5+t>=e.length)return!1;var r=e[5+t];if(t+r+7!==e.length)return!1;var i=e.slice(4);if(2!==e[2])return!1;if(0===t)return!1;if(128&i[0])return!1;if(1<t&&0===i[0]&&!(128&i[1]))return!1;i=e.slice(6+t);return 2===e[6+t-2]&&(0!==r&&(!(128&i[0])&&!(1<r&&0===i[0]&&!(128&i[1]))))},a.prototype.hasLowS=function(){return!this.s.lt(new h(1))&&!this.s.gt(new h("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))},a.prototype.hasDefinedHashtype=function(){if(!t.isNaturalNumber(this.nhashtype))return!1;var e=this.nhashtype&~a.SIGHASH_ANYONECANPAY;return!(e<a.SIGHASH_ALL||a.SIGHASH_SINGLE<e)},a.prototype.toTxFormat=function(){var e=this.toDER(),t=o.alloc(1);return t.writeUInt8(this.nhashtype,0),o.concat([e,t])},a.SIGHASH_ALL=1,a.SIGHASH_NONE=2,a.SIGHASH_SINGLE=3,a.SIGHASH_ANYONECANPAY=128,r.exports=a}).call(this)}).call(this,e("buffer").Buffer)},{"../util/buffer":124,"../util/js":125,"../util/preconditions":126,"./bn":85,buffer:186,lodash:318}],91:[function(e,s,t){(function(o){(function(){"use strict";function t(e){if(!(this instanceof t))return new t(e);o.isBuffer(e)?this.fromBuffer(e):"string"==typeof e?this.fromString(e):e&&this.set(e)}var r=e("lodash"),i=e("bs58"),n=e("buffer"),a="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split("");t.validCharacters=function(e){return n.Buffer.isBuffer(e)&&(e=e.toString()),r.every(r.map(e,function(e){return r.includes(a,e)}))},t.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this},t.encode=function(e){if(!n.Buffer.isBuffer(e))throw new Error("Input should be a buffer");return i.encode(e)},t.decode=function(e){if("string"!=typeof e)throw new Error("Input should be a string");return o.from(i.decode(e))},t.prototype.fromBuffer=function(e){return this.buf=e,this},t.prototype.fromString=function(e){e=t.decode(e);return this.buf=e,this},t.prototype.toBuffer=function(){return this.buf},t.prototype.toString=function(){return t.encode(this.buf)},s.exports=t}).call(this)}).call(this,e("buffer").Buffer)},{bs58:183,buffer:186,lodash:318}],92:[function(e,t,r){(function(o){(function(){"use strict";function i(e){if(!(this instanceof i))return new i(e);o.isBuffer(e)?this.fromBuffer(e):"string"==typeof e?this.fromString(e):e&&this.set(e)}var r=e("lodash"),n=e("./base58"),a=(e("buffer"),e("../crypto/hash").sha256sha256);i.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this},i.validChecksum=function(e,t){return r.isString(e)&&(e=o.from(n.decode(e))),(t=r.isString(t)?o.from(n.decode(t)):t)||(t=e.slice(-4),e=e.slice(0,-4)),i.checksum(e).toString("hex")===t.toString("hex")},i.decode=function(e){if("string"!=typeof e)throw new Error("Input must be a string");var t=o.from(n.decode(e));if(t.length<4)throw new Error("Input string too short");var r=t.slice(0,-4),e=t.slice(-4),t=a(r).slice(0,4);if(e.toString("hex")!==t.toString("hex"))throw new Error("Checksum mismatch");return r},i.checksum=function(e){return a(e).slice(0,4)},i.encode=function(e){if(!o.isBuffer(e))throw new Error("Input must be a buffer");var t=o.alloc(e.length+4),r=i.checksum(e);return e.copy(t),r.copy(t,e.length),n.encode(t)},i.prototype.fromBuffer=function(e){return this.buf=e,this},i.prototype.fromString=function(e){e=i.decode(e);return this.buf=e,this},i.prototype.toBuffer=function(){return this.buf},i.prototype.toString=function(){return i.encode(this.buf)},t.exports=i}).call(this)}).call(this,e("buffer").Buffer)},{"../crypto/hash":87,"./base58":91,buffer:186,lodash:318}],93:[function(e,r,t){(function(t){(function(){"use strict";var i=e("bech32");r.exports={decode:function(e){if("string"!=typeof e)throw new Error("Input should be a string");e=i.decode(e);return{prefix:e.prefix,data:t.from(i.fromWords(e.words.slice(1))),version:e.words[0]}},encode:function(e,t,r){if("string"!=typeof e)throw new Error("Prefix should be a string");if("number"!=typeof t)throw new Error("version should be a number");r=i.toWords(r);return r.unshift(t),i.encode(e,r)}}}).call(this)}).call(this,e("buffer").Buffer)},{bech32:78,buffer:186}],94:[function(e,s,t){(function(o){(function(){"use strict";function t(e){if(!(this instanceof t))return new t(e);if(!r.isUndefined(e))if(o.isBuffer(e))this.set({buf:e});else if(r.isString(e))this.set({buf:o.from(e,"hex")});else{if(!r.isObject(e))throw new TypeError("Unrecognized argument for BufferReader");this.set(e)}}var r=e("lodash"),i=e("../util/preconditions"),n=e("../util/buffer"),a=e("../crypto/bn");t.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this},t.prototype.finished=t.prototype.eof=function(){return!this.buf||this.pos>=this.buf.length},t.prototype.read=function(e){i.checkArgument(!r.isUndefined(e),"Must specify a length");var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t},t.prototype.readAll=function(){var e=this.buf.slice(this.pos,this.buf.length);return this.pos=this.buf.length,e},t.prototype.readUInt8=function(){var e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e},t.prototype.readUInt16BE=function(){var e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e},t.prototype.readUInt16LE=function(){var e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e},t.prototype.readUInt32BE=function(){var e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e},t.prototype.readUInt32LE=function(){var e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e},t.prototype.readInt32LE=function(){var e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e},t.prototype.readUInt64BEBN=function(){var e=this.buf.slice(this.pos,this.pos+8),e=a.fromBuffer(e);return this.pos=this.pos+8,e},t.prototype.readUInt64LEBN=function(){var e,t=this.buf.readUInt32LE(this.pos),t=4294967296*this.buf.readUInt32LE(this.pos+4)+t;return e=t<=9007199254740991?new a(t):(e=Array.prototype.slice.call(this.buf,this.pos,this.pos+8),new a(e,10,"le")),this.pos=this.pos+8,e},t.prototype.readVarintNum=function(){var e=this.readUInt8();switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:var t=this.readUInt64LEBN().toNumber();if(t<=Math.pow(2,53))return t;throw new Error("number too large to retain precision - use readVarintBN");default:return e}},t.prototype.readVarLengthBuffer=function(){var e=this.readVarintNum(),t=this.read(e);return i.checkState(t.length===e,"Invalid length while reading varlength buffer. Expected to read: "+e+" and read "+t.length),t},t.prototype.readVarintBuf=function(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}},t.prototype.readVarintBN=function(){var e=this.readUInt8();switch(e){case 253:return new a(this.readUInt16LE());case 254:return new a(this.readUInt32LE());case 255:return this.readUInt64LEBN();default:return new a(e)}},t.prototype.reverse=function(){for(var e=o.alloc(this.buf.length),t=0;t<e.length;t++)e[t]=this.buf[this.buf.length-1-t];return this.buf=e,this},t.prototype.readReverse=function(e){r.isUndefined(e)&&(e=this.buf.length);var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,n.reverse(t)},s.exports=t}).call(this)}).call(this,e("buffer").Buffer)},{"../crypto/bn":85,"../util/buffer":124,"../util/preconditions":126,buffer:186,lodash:318}],95:[function(e,a,t){(function(n){(function(){"use strict";function i(e){if(!(this instanceof i))return new i(e);this.bufLen=0,e?this.set(e):this.bufs=[]}var t=e("../util/buffer"),r=e("assert");i.prototype.set=function(e){return this.bufs=e.bufs||this.bufs||[],this.bufLen=this.bufs.reduce(function(e,t){return e+t.length},0),this},i.prototype.toBuffer=function(){return this.concat()},i.prototype.concat=function(){return n.concat(this.bufs,this.bufLen)},i.prototype.write=function(e){return r(t.isBuffer(e)),this.bufs.push(e),this.bufLen+=e.length,this},i.prototype.writeReverse=function(e){return r(t.isBuffer(e)),this.bufs.push(t.reverse(e)),this.bufLen+=e.length,this},i.prototype.writeUInt8=function(e){var t=n.alloc(1);return t.writeUInt8(e,0),this.write(t),this},i.prototype.writeUInt16BE=function(e){var t=n.alloc(2);return t.writeUInt16BE(e,0),this.write(t),this},i.prototype.writeUInt16LE=function(e){var t=n.alloc(2);return t.writeUInt16LE(e,0),this.write(t),this},i.prototype.writeUInt32BE=function(e){var t=n.alloc(4);return t.writeUInt32BE(e,0),this.write(t),this},i.prototype.writeInt32LE=function(e){var t=n.alloc(4);return t.writeInt32LE(e,0),this.write(t),this},i.prototype.writeUInt32LE=function(e){var t=n.alloc(4);return t.writeUInt32LE(e,0),this.write(t),this},i.prototype.writeUInt64BEBN=function(e){e=e.toBuffer({size:8});return this.write(e),this},i.prototype.writeUInt64LEBN=function(e){e=e.toBuffer({size:8});return this.writeReverse(e),this},i.prototype.writeVarintNum=function(e){e=i.varintBufNum(e);return this.write(e),this},i.prototype.writeVarintBN=function(e){e=i.varintBufBN(e);return this.write(e),this},i.varintBufNum=function(e){var t=void 0;return e<253?(t=n.alloc(1)).writeUInt8(e,0):e<65536?((t=n.alloc(3)).writeUInt8(253,0),t.writeUInt16LE(e,1)):e<4294967296?((t=n.alloc(5)).writeUInt8(254,0),t.writeUInt32LE(e,1)):((t=n.alloc(9)).writeUInt8(255,0),t.writeInt32LE(-1&e,1),t.writeUInt32LE(Math.floor(e/4294967296),5)),t},i.varintBufBN=function(e){var t=void 0,r=e.toNumber();return r<253?(t=n.alloc(1)).writeUInt8(r,0):r<65536?((t=n.alloc(3)).writeUInt8(253,0),t.writeUInt16LE(r,1)):r<4294967296?((t=n.alloc(5)).writeUInt8(254,0),t.writeUInt32LE(r,1)):((r=new i).writeUInt8(255),r.writeUInt64LEBN(e),t=r.concat()),t},a.exports=i}).call(this)}).call(this,e("buffer").Buffer)},{"../util/buffer":124,assert:68,buffer:186}],96:[function(a,o,e){(function(n){(function(){"use strict";function t(e){if(!(this instanceof t))return new t(e);n.isBuffer(e)?this.buf=e:"number"==typeof e?this.fromNumber(e):e instanceof i?this.fromBN(e):e&&this.set(e)}var r=a("./bufferwriter"),e=a("./bufferreader"),i=a("../crypto/bn");t.prototype.set=function(e){return this.buf=e.buf||this.buf,this},t.prototype.fromString=function(e){return this.set({buf:n.from(e,"hex")}),this},t.prototype.toString=function(){return this.buf.toString("hex")},t.prototype.fromBuffer=function(e){return this.buf=e,this},t.prototype.fromBufferReader=function(e){return this.buf=e.readVarintBuf(),this},t.prototype.fromBN=function(e){return this.buf=r().writeVarintBN(e).concat(),this},t.prototype.fromNumber=function(e){return this.buf=r().writeVarintNum(e).concat(),this},t.prototype.toBuffer=function(){return this.buf},t.prototype.toBN=function(){return e(this.buf).readVarintBN()},t.prototype.toNumber=function(){return e(this.buf).readVarintNum()},o.exports=t}).call(this)}).call(this,a("buffer").Buffer)},{"../crypto/bn":85,"./bufferreader":94,"./bufferwriter":95,buffer:186}],97:[function(e,t,r){"use strict";var i=e("lodash");function n(e,r){function t(){if(i.isString(r.message))this.message=(e=r.message,t=arguments,e.replace("{0}",t[0]).replace("{1}",t[1]).replace("{2}",t[2]));else{if(!i.isFunction(r.message))throw new Error("Invalid error definition for "+r.name);this.message=r.message.apply(null,arguments)}var e,t;this.stack=this.message+"\n"+(new Error).stack}return(t.prototype=Object.create(e.prototype)).name=e.prototype.name+r.name,e[r.name]=t,r.errors&&a(t,r.errors),t}var a=function(t,e){i.each(e,function(e){n(t,e)})},o={Error:function(){this.message="Internal error",this.stack=this.message+"\n"+(new Error).stack}};o.Error.prototype=Object.create(Error.prototype),o.Error.prototype.name="bitcore.Error";var s,u=e("./spec");s=o.Error,a(s,u),t.exports=o.Error,t.exports.extend=function(e){return n(o.Error,e)}},{"./spec":98,lodash:318}],98:[function(e,t,r){"use strict";t.exports=[{name:"InvalidB58Char",message:"Invalid Base58 character: {0} in {1}"},{name:"InvalidB58Checksum",message:"Invalid Base58 checksum for {0}"},{name:"InvalidNetwork",message:"Invalid version for network: got {0}"},{name:"InvalidState",message:"Invalid state: {0}"},{name:"NotImplemented",message:"Function {0} was not implemented yet"},{name:"InvalidNetworkArgument",message:'Invalid network: must be "livenet" or "testnet", got {0}'},{name:"InvalidArgument",message:function(){return"Invalid Argument"+(arguments[0]?": "+arguments[0]:"")+(arguments[1]?" Documentation: http://bitcore.io/"+arguments[1]:"")}},{name:"AbstractMethodInvoked",message:"Abstract Method Invocation: {0}"},{name:"InvalidArgumentType",message:function(){return"Invalid Argument for "+arguments[2]+", expected "+arguments[1]+" but got "+_typeof(arguments[0])}},{name:"Unit",message:"Internal Error on Unit {0}",errors:[{name:"UnknownCode",message:"Unrecognized unit code: {0}"},{name:"InvalidRate",message:"Invalid exchange rate: {0}"}]},{name:"MerkleBlock",message:"Internal Error on MerkleBlock {0}",errors:[{name:"InvalidMerkleTree",message:"This MerkleBlock contain an invalid Merkle Tree"}]},{name:"Transaction",message:"Internal Error on Transaction {0}",errors:[{name:"Input",message:"Internal Error on Input {0}",errors:[{name:"MissingScript",message:"Need a script to create an input"},{name:"UnsupportedScript",message:"Unsupported input script type: {0}"},{name:"MissingPreviousOutput",message:"No previous output information."},{name:"BlockHeightOutOfRange",message:"Block Height can only be between 0 and 65535"},{name:"LockTimeRange",message:"Seconds needs to be more that 0 and less that 33553920"}]},{name:"NeedMoreInfo",message:"{0}"},{name:"InvalidSorting",message:"The sorting function provided did not return the change output as one of the array elements"},{name:"InvalidOutputAmountSum",message:"{0}"},{name:"MissingSignatures",message:"Some inputs have not been fully signed"},{name:"InvalidIndex",message:"Invalid index: {0} is not between 0, {1}"},{name:"UnableToVerifySignature",message:"Unable to verify signature: {0}"},{name:"DustOutputs",message:"Dust amount detected in one output"},{name:"InvalidSatoshis",message:"Output satoshis are invalid"},{name:"FeeError",message:"Internal Error on Fee {0}",errors:[{name:"TooSmall",message:"Fee is too small: {0}"},{name:"TooLarge",message:"Fee is too large: {0}"},{name:"Different",message:"Unspent value is different from specified fee: {0}"}]},{name:"ChangeAddressMissing",message:"Change address is missing"},{name:"BlockHeightTooHigh",message:"Block Height can be at most 2^32 -1"},{name:"NLockTimeOutOfRange",message:"Block Height can only be between 0 and 499 999 999"},{name:"LockTimeTooEarly",message:"Lock Time can't be earlier than UNIX date 500 000 000"}]},{name:"Script",message:"Internal Error on Script {0}",errors:[{name:"UnrecognizedAddress",message:"Expected argument {0} to be an address"},{name:"CantDeriveAddress",message:"Can't derive address associated with script {0}, needs to be p2pkh in, p2pkh out, p2sh in, or p2sh out."},{name:"InvalidBuffer",message:"Invalid script buffer: can't parse valid script from given buffer {0}"}]},{name:"HDPrivateKey",message:"Internal Error on HDPrivateKey {0}",errors:[{name:"InvalidDerivationArgument",message:"Invalid derivation argument {0}, expected string, or number and boolean"},{name:"InvalidEntropyArgument",message:"Invalid entropy: must be an hexa string or binary buffer, got {0}",errors:[{name:"TooMuchEntropy",message:'Invalid entropy: more than 512 bits is non standard, got "{0}"'},{name:"NotEnoughEntropy",message:'Invalid entropy: at least 128 bits needed, got "{0}"'}]},{name:"InvalidLength",message:"Invalid length for xprivkey string in {0}"},{name:"InvalidPath",message:"Invalid derivation path: {0}"},{name:"UnrecognizedArgument",message:'Invalid argument: creating a HDPrivateKey requires a string, buffer, json or object, got "{0}"'}]},{name:"HDPublicKey",message:"Internal Error on HDPublicKey {0}",errors:[{name:"ArgumentIsPrivateExtended",message:"Argument is an extended private key: {0}"},{name:"InvalidDerivationArgument",message:"Invalid derivation argument: got {0}"},{name:"InvalidLength",message:'Invalid length for xpubkey: got "{0}"'},{name:"InvalidPath",message:'Invalid derivation path, it should look like: "m/1/100", got "{0}"'},{name:"InvalidIndexCantDeriveHardened",message:"Invalid argument: creating a hardened path requires an HDPrivateKey"},{name:"MustSupplyArgument",message:"Must supply an argument to create a HDPublicKey"},{name:"UnrecognizedArgument",message:"Invalid argument for creation, must be string, json, buffer, or object"}]}]},{}],99:[function(a,e,t){(function(v){(function(){"use strict";var o=a("assert"),s=a("buffer"),i=a("lodash"),t=a("./util/preconditions"),u=a("./crypto/bn"),r=a("./encoding/base58"),c=a("./encoding/base58check"),f=a("./crypto/hash"),p=a("./networks"),l=a("./crypto/point"),h=a("./privatekey"),n=a("./crypto/random"),d=a("./errors"),m=d.HDPrivateKey,g=a("./util/buffer"),b=a("./util/js");function y(e){if(e instanceof y)return e;if(!(this instanceof y))return new y(e);if(!e)return this._generateRandomly();if(p.get(e))return this._generateRandomly(e);if(i.isString(e)||g.isBuffer(e))if(y.isValidSerialized(e))this._buildFromSerialized(e);else if(b.isValidJSON(e))this._buildFromJSON(e);else{if(!g.isBuffer(e)||!y.isValidSerialized(e.toString()))throw y.getSerializedError(e);this._buildFromSerialized(e.toString())}else{if(!i.isObject(e))throw new m.UnrecognizedArgument(e);this._buildFromObject(e)}}y.isValidPath=function(e,t){if(i.isString(e)){var r=y._getDerivationIndexes(e);return null!==r&&i.every(r,y.isValidPath)}return!!i.isNumber(e)&&(e<y.Hardened&&!0===t&&(e+=y.Hardened),0<=e&&e<y.MaxIndex)},y._getDerivationIndexes=function(e){var t=e.split("/");if(i.includes(y.RootElementAlias,e))return[];if(!i.includes(y.RootElementAlias,t[0]))return null;t=t.slice(1).map(function(e){var t="'"===e.slice(-1);if(!(e=t?e.slice(0,-1):e)||"-"===e[0])return NaN;e=+e;return t&&(e+=y.Hardened),e});return i.some(t,isNaN)?null:t},y.prototype.derive=function(e,t){return this.deriveNonCompliantChild(e,t)},y.prototype.deriveChild=function(e,t){if(i.isNumber(e))return this._deriveWithNumber(e,t);if(i.isString(e))return this._deriveFromString(e);throw new m.InvalidDerivationArgument(e)},y.prototype.deriveNonCompliantChild=function(e,t){if(i.isNumber(e))return this._deriveWithNumber(e,t,!0);if(i.isString(e))return this._deriveFromString(e,!0);throw new m.InvalidDerivationArgument(e)},y.prototype._deriveWithNumber=function(e,t,r){if(!y.isValidPath(e,t))throw new m.InvalidPath(e);t=e>=y.Hardened||t,e<y.Hardened&&!0===t&&(e+=y.Hardened);var i,n=g.integerAsBuffer(e);a=t&&r?(i=this.privateKey.bn.toBuffer(),g.concat([v.from([0]),i,n])):t?(a=this.privateKey.bn.toBuffer({size:32}),o(32===a.length,"length of private key buffer is expected to be 32 bytes"),g.concat([v.from([0]),a,n])):g.concat([this.publicKey.toBuffer(),n]);var n=f.sha512hmac(a,this._buffers.chainCode),a=u.fromBuffer(n.slice(0,32),{size:32}),n=n.slice(32,64),a=a.add(this.privateKey.toBigNumber()).umod(l.getN()).toBuffer({size:32});return h.isValid(a)?new y({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:e,chainCode:n,privateKey:a}):this._deriveWithNumber(e+1,null,r)},y.prototype._deriveFromString=function(e,r){if(!y.isValidPath(e))throw new m.InvalidPath(e);return y._getDerivationIndexes(e).reduce(function(e,t){return e._deriveWithNumber(t,null,r)},this)},y.isValidSerialized=function(e,t){return!y.getSerializedError(e,t)},y.getSerializedError=function(t,e){if(!i.isString(t)&&!g.isBuffer(t))return new m.UnrecognizedArgument("Expected string or buffer");if(!r.validCharacters(t))return new d.InvalidB58Char("(unknown)",t);try{t=c.decode(t)}catch(e){return new d.InvalidB58Checksum(t)}if(t.length!==y.DataLength)return new m.InvalidLength(t);if(!i.isUndefined(e)){e=y._validateNetwork(t,e);if(e)return e}return null},y._validateNetwork=function(e,t){var r=p.get(t);if(!r)return new d.InvalidNetworkArgument(t);e=e.slice(0,4);return g.integerFromBuffer(e)!==r.xprivkey?new d.InvalidNetwork(e):null},y.fromString=function(e){return t.checkArgument(i.isString(e),"No valid string was provided"),new y(e)},y.fromObject=function(e){return t.checkArgument(i.isObject(e),"No valid argument was provided"),new y(e)},y.prototype._buildFromJSON=function(e){return this._buildFromObject(JSON.parse(e))},y.prototype._buildFromObject=function(e){e={version:e.network?g.integerAsBuffer(p.get(e.network).xprivkey):e.version,depth:i.isNumber(e.depth)?g.integerAsSingleByteBuffer(e.depth):e.depth,parentFingerPrint:i.isNumber(e.parentFingerPrint)?g.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:i.isNumber(e.childIndex)?g.integerAsBuffer(e.childIndex):e.childIndex,chainCode:i.isString(e.chainCode)?v.from(e.chainCode,"hex"):e.chainCode,privateKey:i.isString(e.privateKey)&&b.isHexa(e.privateKey)?v.from(e.privateKey,"hex"):e.privateKey,checksum:e.checksum?e.checksum.length?e.checksum:g.integerAsBuffer(e.checksum):void 0};return this._buildFromBuffers(e)},y.prototype._buildFromSerialized=function(e){var t=c.decode(e),e={version:t.slice(y.VersionStart,y.VersionEnd),depth:t.slice(y.DepthStart,y.DepthEnd),parentFingerPrint:t.slice(y.ParentFingerPrintStart,y.ParentFingerPrintEnd),childIndex:t.slice(y.ChildIndexStart,y.ChildIndexEnd),chainCode:t.slice(y.ChainCodeStart,y.ChainCodeEnd),privateKey:t.slice(y.PrivateKeyStart,y.PrivateKeyEnd),checksum:t.slice(y.ChecksumStart,y.ChecksumEnd),xprivkey:e};return this._buildFromBuffers(e)},y.prototype._generateRandomly=function(e){return y.fromSeed(n.getRandomBuffer(64),e)},y.fromSeed=function(e,t){if(b.isHexaString(e)&&(e=v.from(e,"hex")),!v.isBuffer(e))throw new m.InvalidEntropyArgument(e);if(e.length<16)throw new m.InvalidEntropyArgument.NotEnoughEntropy(e);if(64<e.length)throw new m.InvalidEntropyArgument.TooMuchEntropy(e);e=f.sha512hmac(e,v.from("Bitcoin seed"));return new y({network:p.get(t)||p.defaultNetwork,depth:0,parentFingerPrint:0,childIndex:0,privateKey:e.slice(0,32),chainCode:e.slice(32,64)})},y.prototype._calcHDPublicKey=function(){var e;this._hdPublicKey||(e=a("./hdpublickey"),this._hdPublicKey=new e(this))},y.prototype._buildFromBuffers=function(e){y._validateBufferArguments(e),b.defineImmutable(this,{_buffers:e});var t=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,g.emptyBuffer(1),e.privateKey],r=s.Buffer.concat(t);if(e.checksum&&e.checksum.length){if(e.checksum.toString()!==c.checksum(r).toString())throw new d.InvalidB58Checksum(r)}else e.checksum=c.checksum(r);var i=p.get(g.integerFromBuffer(e.version)),n=c.encode(s.Buffer.concat(t));e.xprivkey=v.from(n);var a=new h(u.fromBuffer(e.privateKey),i),r=a.toPublicKey(),t=y.ParentFingerPrintSize,t=f.sha256ripemd160(r.toBuffer()).slice(0,t);return b.defineImmutable(this,{xprivkey:n,network:i,depth:g.integerFromSingleByteBuffer(e.depth),privateKey:a,publicKey:r,fingerPrint:t}),this._hdPublicKey=null,Object.defineProperty(this,"hdPublicKey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey}}),Object.defineProperty(this,"xpubkey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey.xpubkey}}),this},y._validateBufferArguments=function(i){function e(e,t){var r=i[e];o(g.isBuffer(r),e+" argument is not a buffer"),o(r.length===t,e+" has not the expected size: found "+r.length+", expected "+t)}e("version",y.VersionSize),e("depth",y.DepthSize),e("parentFingerPrint",y.ParentFingerPrintSize),e("childIndex",y.ChildIndexSize),e("chainCode",y.ChainCodeSize),e("privateKey",y.PrivateKeySize),i.checksum&&i.checksum.length&&e("checksum",y.CheckSumSize)},y.prototype.toString=function(){return this.xprivkey},y.prototype.inspect=function(){return"<HDPrivateKey: "+this.xprivkey+">"},y.prototype.toObject=y.prototype.toJSON=function(){return{network:p.get(g.integerFromBuffer(this._buffers.version),"xprivkey").name,depth:g.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:g.integerFromBuffer(this.fingerPrint),parentFingerPrint:g.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:g.integerFromBuffer(this._buffers.childIndex),chainCode:g.bufferToHex(this._buffers.chainCode),privateKey:this.privateKey.toBuffer().toString("hex"),checksum:g.integerFromBuffer(this._buffers.checksum),xprivkey:this.xprivkey}},y.fromBuffer=function(e){return new y(e.toString())},y.prototype.toBuffer=function(){return g.copy(this._buffers.xprivkey)},y.DefaultDepth=0,y.DefaultFingerprint=0,y.DefaultChildIndex=0,y.Hardened=2147483648,y.MaxIndex=2*y.Hardened,y.RootElementAlias=["m","M","m'","M'"],y.VersionSize=4,y.DepthSize=1,y.ParentFingerPrintSize=4,y.ChildIndexSize=4,y.ChainCodeSize=32,y.PrivateKeySize=32,y.CheckSumSize=4,y.DataLength=78,y.SerializedByteSize=82,y.VersionStart=0,y.VersionEnd=y.VersionStart+y.VersionSize,y.DepthStart=y.VersionEnd,y.DepthEnd=y.DepthStart+y.DepthSize,y.ParentFingerPrintStart=y.DepthEnd,y.ParentFingerPrintEnd=y.ParentFingerPrintStart+y.ParentFingerPrintSize,y.ChildIndexStart=y.ParentFingerPrintEnd,y.ChildIndexEnd=y.ChildIndexStart+y.ChildIndexSize,y.ChainCodeStart=y.ChildIndexEnd,y.ChainCodeEnd=y.ChainCodeStart+y.ChainCodeSize,y.PrivateKeyStart=y.ChainCodeEnd+1,y.PrivateKeyEnd=y.PrivateKeyStart+y.PrivateKeySize,y.ChecksumStart=y.PrivateKeyEnd,y.ChecksumEnd=y.ChecksumStart+y.CheckSumSize,o(y.ChecksumEnd===y.SerializedByteSize),e.exports=y}).call(this)}).call(this,a("buffer").Buffer)},{"./crypto/bn":85,"./crypto/hash":87,"./crypto/point":88,"./crypto/random":89,"./encoding/base58":91,"./encoding/base58check":92,"./errors":97,"./hdpublickey":100,"./networks":102,"./privatekey":104,"./util/buffer":124,"./util/js":125,"./util/preconditions":126,assert:68,buffer:186,lodash:318}],100:[function(y,v,e){(function(b){(function(){"use strict";var i=y("lodash"),t=y("./util/preconditions"),n=y("./crypto/bn"),a=y("./encoding/base58"),o=y("./encoding/base58check"),s=y("./crypto/hash"),r=y("./hdprivatekey"),u=y("./networks"),c=y("./crypto/point"),f=y("./publickey"),e=y("./errors"),p=e,l=e.HDPublicKey,h=y("assert"),d=y("./util/js"),m=y("./util/buffer");function g(e){if(e instanceof g)return e;if(!(this instanceof g))return new g(e);if(e){if(i.isString(e)||m.isBuffer(e)){var t=g.getSerializedError(e);if(t){if(m.isBuffer(e)&&!g.getSerializedError(e.toString()))return this._buildFromSerialized(e.toString());if(t instanceof l.ArgumentIsPrivateExtended)return new r(e).hdPublicKey;throw t}return this._buildFromSerialized(e)}if(i.isObject(e))return e instanceof r?this._buildFromPrivate(e):this._buildFromObject(e);throw new l.UnrecognizedArgument(e)}throw new l.MustSupplyArgument}g.isValidPath=function(e){if(i.isString(e)){var t=r._getDerivationIndexes(e);return null!==t&&i.every(t,g.isValidPath)}return!!i.isNumber(e)&&(0<=e&&e<g.Hardened)},g.prototype.derive=function(e,t){return this.deriveChild(e,t)},g.prototype.deriveChild=function(e,t){if(i.isNumber(e))return this._deriveWithNumber(e,t);if(i.isString(e))return this._deriveFromString(e);throw new l.InvalidDerivationArgument(e)},g.prototype._deriveWithNumber=function(t,e){if(t>=g.Hardened||e)throw new l.InvalidIndexCantDeriveHardened;if(t<0)throw new l.InvalidPath(t);var r,e=m.integerAsBuffer(t),e=m.concat([this.publicKey.toBuffer(),e]),e=s.sha512hmac(e,this._buffers.chainCode),i=n.fromBuffer(e.slice(0,32),{size:32}),e=e.slice(32,64);try{r=f.fromPoint(c.getG().mul(i).add(this.publicKey.point))}catch(e){return this._deriveWithNumber(t+1)}return new g({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:t,chainCode:e,publicKey:r})},g.prototype._deriveFromString=function(e){if(i.includes(e,"'"))throw new l.InvalidIndexCantDeriveHardened;if(!g.isValidPath(e))throw new l.InvalidPath(e);return r._getDerivationIndexes(e).reduce(function(e,t){return e._deriveWithNumber(t)},this)},g.isValidSerialized=function(e,t){return i.isNull(g.getSerializedError(e,t))},g.getSerializedError=function(t,e){if(!i.isString(t)&&!m.isBuffer(t))return new l.UnrecognizedArgument("expected buffer or string");if(!a.validCharacters(t))return new p.InvalidB58Char("(unknown)",t);try{t=o.decode(t)}catch(e){return new p.InvalidB58Checksum(t)}if(t.length!==g.DataSize)return new l.InvalidLength(t);if(!i.isUndefined(e)){var r=g._validateNetwork(t,e);if(r)return r}r=m.integerFromBuffer(t.slice(0,4));return r===u.livenet.xprivkey||r===u.testnet.xprivkey?new l.ArgumentIsPrivateExtended:null},g._validateNetwork=function(e,t){var r=u.get(t);if(!r)return new p.InvalidNetworkArgument(t);e=e.slice(g.VersionStart,g.VersionEnd);return m.integerFromBuffer(e)!==r.xpubkey?new p.InvalidNetwork(e):null},g.prototype._buildFromPrivate=function(e){var t=i.clone(e._buffers),e=c.getG().mul(n.fromBuffer(t.privateKey));return t.publicKey=c.pointToCompressed(e),t.version=m.integerAsBuffer(u.get(m.integerFromBuffer(t.version)).xpubkey),t.privateKey=void 0,t.checksum=void 0,t.xprivkey=void 0,this._buildFromBuffers(t)},g.prototype._buildFromObject=function(e){e={version:e.network?m.integerAsBuffer(u.get(e.network).xpubkey):e.version,depth:i.isNumber(e.depth)?m.integerAsSingleByteBuffer(e.depth):e.depth,parentFingerPrint:i.isNumber(e.parentFingerPrint)?m.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:i.isNumber(e.childIndex)?m.integerAsBuffer(e.childIndex):e.childIndex,chainCode:i.isString(e.chainCode)?b.from(e.chainCode,"hex"):e.chainCode,publicKey:i.isString(e.publicKey)?b.from(e.publicKey,"hex"):m.isBuffer(e.publicKey)?e.publicKey:e.publicKey.toBuffer(),checksum:i.isNumber(e.checksum)?m.integerAsBuffer(e.checksum):e.checksum};return this._buildFromBuffers(e)},g.prototype._buildFromSerialized=function(e){var t=o.decode(e),e={version:t.slice(g.VersionStart,g.VersionEnd),depth:t.slice(g.DepthStart,g.DepthEnd),parentFingerPrint:t.slice(g.ParentFingerPrintStart,g.ParentFingerPrintEnd),childIndex:t.slice(g.ChildIndexStart,g.ChildIndexEnd),chainCode:t.slice(g.ChainCodeStart,g.ChainCodeEnd),publicKey:t.slice(g.PublicKeyStart,g.PublicKeyEnd),checksum:t.slice(g.ChecksumStart,g.ChecksumEnd),xpubkey:e};return this._buildFromBuffers(e)},g.prototype._buildFromBuffers=function(e){g._validateBufferArguments(e),d.defineImmutable(this,{_buffers:e});var t=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,e.publicKey],r=m.concat(t),i=o.checksum(r);if(e.checksum&&e.checksum.length){if(e.checksum.toString("hex")!==i.toString("hex"))throw new p.InvalidB58Checksum(r,i)}else e.checksum=i;var n=u.get(m.integerFromBuffer(e.version)),r=o.encode(m.concat(t));e.xpubkey=b.from(r);i=new f(e.publicKey,{network:n}),t=g.ParentFingerPrintSize,t=s.sha256ripemd160(i.toBuffer()).slice(0,t);return d.defineImmutable(this,{xpubkey:r,network:n,depth:m.integerFromSingleByteBuffer(e.depth),publicKey:i,fingerPrint:t}),this},g._validateBufferArguments=function(i){function e(e,t){var r=i[e];h(m.isBuffer(r),e+" argument is not a buffer, it's "+_typeof(r)),h(r.length===t,e+" has not the expected size: found "+r.length+", expected "+t)}e("version",g.VersionSize),e("depth",g.DepthSize),e("parentFingerPrint",g.ParentFingerPrintSize),e("childIndex",g.ChildIndexSize),e("chainCode",g.ChainCodeSize),e("publicKey",g.PublicKeySize),i.checksum&&i.checksum.length&&e("checksum",g.CheckSumSize)},g.fromString=function(e){return t.checkArgument(i.isString(e),"No valid string was provided"),new g(e)},g.fromObject=function(e){return t.checkArgument(i.isObject(e),"No valid argument was provided"),new g(e)},g.prototype.toString=function(){return this.xpubkey},g.prototype.inspect=function(){return"<HDPublicKey: "+this.xpubkey+">"},g.prototype.toObject=g.prototype.toJSON=function(){return{network:u.get(m.integerFromBuffer(this._buffers.version)).name,depth:m.integerFromSingleByteBuffer(this._buffers.depth),fingerPrint:m.integerFromBuffer(this.fingerPrint),parentFingerPrint:m.integerFromBuffer(this._buffers.parentFingerPrint),childIndex:m.integerFromBuffer(this._buffers.childIndex),chainCode:m.bufferToHex(this._buffers.chainCode),publicKey:this.publicKey.toString(),checksum:m.integerFromBuffer(this._buffers.checksum),xpubkey:this.xpubkey}},g.fromBuffer=function(e){return new g(e)},g.prototype.toBuffer=function(){return m.copy(this._buffers.xpubkey)},g.Hardened=2147483648,g.RootElementAlias=["m","M"],g.VersionSize=4,g.DepthSize=1,g.ParentFingerPrintSize=4,g.ChildIndexSize=4,g.ChainCodeSize=32,g.PublicKeySize=33,g.CheckSumSize=4,g.DataSize=78,g.SerializedByteSize=82,g.VersionStart=0,g.VersionEnd=g.VersionStart+g.VersionSize,g.DepthStart=g.VersionEnd,g.DepthEnd=g.DepthStart+g.DepthSize,g.ParentFingerPrintStart=g.DepthEnd,g.ParentFingerPrintEnd=g.ParentFingerPrintStart+g.ParentFingerPrintSize,g.ChildIndexStart=g.ParentFingerPrintEnd,g.ChildIndexEnd=g.ChildIndexStart+g.ChildIndexSize,g.ChainCodeStart=g.ChildIndexEnd,g.ChainCodeEnd=g.ChainCodeStart+g.ChainCodeSize,g.PublicKeyStart=g.ChainCodeEnd,g.PublicKeyEnd=g.PublicKeyStart+g.PublicKeySize,g.ChecksumStart=g.PublicKeyEnd,g.ChecksumEnd=g.ChecksumStart+g.CheckSumSize,h(g.PublicKeyEnd===g.DataSize),h(g.ChecksumEnd===g.SerializedByteSize),v.exports=g}).call(this)}).call(this,y("buffer").Buffer)},{"./crypto/bn":85,"./crypto/hash":87,"./crypto/point":88,"./encoding/base58":91,"./encoding/base58check":92,"./errors":97,"./hdprivatekey":99,"./networks":102,"./publickey":105,"./util/buffer":124,"./util/js":125,"./util/preconditions":126,assert:68,buffer:186,lodash:318}],101:[function(e,r,t){(function(h){(function(){"use strict";var n=e("lodash"),i=e("./privatekey"),a=e("./publickey"),o=e("./address"),s=e("./encoding/bufferwriter"),u=e("./crypto/ecdsa"),c=e("./crypto/signature"),f=e("./crypto/hash").sha256sha256,t=e("./util/js"),p=e("./util/preconditions");function l(e){return this instanceof l?(p.checkArgument(n.isString(e),"First argument should be a string"),this.message=e,this):new l(e)}l.MAGIC_BYTES=h.from("Bitcoin Signed Message:\n"),l.prototype.magicHash=function(){var e=s.varintBufNum(l.MAGIC_BYTES.length),t=h.from(this.message),r=s.varintBufNum(t.length),t=h.concat([e,l.MAGIC_BYTES,r,t]);return f(t)},l.prototype._sign=function(e){p.checkArgument(e instanceof i,"First argument should be an instance of PrivateKey");var t=this.magicHash(),r=new u;return r.hashbuf=t,r.privkey=e,r.pubkey=e.toPublicKey(),r.signRandomK(),r.calci(),r.sig},l.prototype.sign=function(e){return this._sign(e).toCompact().toString("base64")},l.prototype._verify=function(e,t){p.checkArgument(e instanceof a,"First argument should be an instance of PublicKey"),p.checkArgument(t instanceof c,"Second argument should be an instance of Signature");var r=this.magicHash(),e=u.verify(r,t,e);return e||(this.error="The signature was invalid"),e},l.prototype.verify=function(e,t){p.checkArgument(e),p.checkArgument(t&&n.isString(t)),n.isString(e)&&(e=o.fromString(e));var r=c.fromCompact(h.from(t,"base64")),i=new u;i.hashbuf=this.magicHash(),i.sig=r;t=i.toPublicKey(),i=o.fromPublicKey(t,e.network);return e.toString()!==i.toString()?!(this.error="The signature did not match the message digest"):this._verify(t,r)},l.prototype.recoverPublicKey=function(e,t){p.checkArgument(e),p.checkArgument(t&&n.isString(t)),n.isString(e)&&(e=o.fromString(e));var r=c.fromCompact(h.from(t,"base64")),t=new u;t.hashbuf=this.magicHash(),t.sig=r;r=t.toPublicKey(),t=o.fromPublicKey(r,e.network);return e.toString()!==t.toString()&&(this.error="The signature did not match the message digest"),r.toString()},l.fromString=function(e){return new l(e)},l.fromJSON=function(e){return new l((e=t.isValidJSON(e)?JSON.parse(e):e).message)},l.prototype.toObject=function(){return{message:this.message}},l.prototype.toJSON=function(){return JSON.stringify(this.toObject())},l.prototype.toString=function(){return this.message},l.prototype.inspect=function(){return"<Message: "+this.toString()+">"},r.exports=l;e("./script")}).call(this)}).call(this,e("buffer").Buffer)},{"./address":80,"./crypto/ecdsa":86,"./crypto/hash":87,"./crypto/signature":90,"./encoding/bufferwriter":95,"./privatekey":104,"./publickey":105,"./script":106,"./util/js":125,"./util/preconditions":126,buffer:186,lodash:318}],102:[function(e,t,r){"use strict";var n=e("lodash"),i=e("./util/buffer"),a=e("./util/js"),o=[],s={};function u(){}function c(t,e){if(~o.indexOf(t))return t;if(!e)return s[t]&&1<=s[t].length?s[t][0]:s[t];n.isArray(e)||(e=[e]);function r(e){return o[i][e]===t}for(var i in o)if(n.some(e,r))return o[i]}function f(e){var t=new u;return a.defineImmutable(t,{name:e.name,alias:e.alias,pubkeyhash:e.pubkeyhash,privatekey:e.privatekey,scripthash:e.scripthash,bech32prefix:e.bech32prefix,xpubkey:e.xpubkey,xprivkey:e.xprivkey}),e.networkMagic&&a.defineImmutable(t,{networkMagic:i.integerAsBuffer(e.networkMagic)}),e.port&&a.defineImmutable(t,{port:e.port}),e.dnsSeeds&&a.defineImmutable(t,{dnsSeeds:e.dnsSeeds}),n.each(t,function(e){n.isUndefined(e)||n.isObject(e)||(s[e]||(s[e]=[]),s[e].push(t))}),o.push(t),t}u.prototype.toString=function(){return this.name},f({name:"livenet",alias:"mainnet",pubkeyhash:0,privatekey:128,scripthash:5,bech32prefix:"bc",xpubkey:76067358,xprivkey:76066276,networkMagic:4190024921,port:8333,dnsSeeds:["seed.bitcoin.sipa.be","dnsseed.bluematt.me","dnsseed.bitcoin.dashjr.org","seed.bitcoinstats.com","seed.bitnodes.io","bitseed.xf2.org"]});var p=c("livenet");f({name:"testnet",alias:"test",pubkeyhash:111,privatekey:239,scripthash:196,bech32prefix:"tb",xpubkey:70617039,xprivkey:70615956,networkMagic:185665799,port:18333,dnsSeeds:["testnet-seed.bitcoin.petertodd.org","testnet-seed.bluematt.me","testnet-seed.alexykot.me","testnet-seed.bitcoin.schildbach.de"]});var l=c("testnet");f({name:"regtest",alias:"dev",pubkeyhash:111,privatekey:239,scripthash:196,bech32prefix:"bcrt",xpubkey:70617039,xprivkey:70615956,networkMagic:4206867930,port:18444,dnsSeeds:[]});e=c("regtest");t.exports={add:f,remove:function(e){for(var t,r=0;r<o.length;r++)o[r]===e&&o.splice(r,1);for(t in s){var i=s[t].indexOf(e);0<=i&&delete s[t][i]}},defaultNetwork:p,livenet:p,mainnet:p,testnet:l,regtest:e,get:c,enableRegtest:function(){l.regtestEnabled=!0},disableRegtest:function(){l.regtestEnabled=!1}}},{"./util/buffer":124,"./util/js":125,lodash:318}],103:[function(s,u,e){(function(o){(function(){"use strict";var e,r=s("lodash"),t=s("./util/preconditions"),i=s("./util/buffer"),n=s("./util/js");function a(e){if(!(this instanceof a))return new a(e);var t;if(r.isNumber(e))t=e;else{if(!r.isString(e))throw new TypeError('Unrecognized num type: "'+_typeof(e)+'" for Opcode');t=a.map[e]}return n.defineImmutable(this,{num:t}),this}for(e in a.fromBuffer=function(e){return t.checkArgument(i.isBuffer(e)),new a(Number("0x"+e.toString("hex")))},a.fromNumber=function(e){return t.checkArgument(r.isNumber(e)),new a(e)},a.fromString=function(e){t.checkArgument(r.isString(e));e=a.map[e];if(void 0===e)throw new TypeError("Invalid opcodestr");return new a(e)},a.prototype.toHex=function(){return this.num.toString(16)},a.prototype.toBuffer=function(){return o.from(this.toHex(),"hex")},a.prototype.toNumber=function(){return this.num},a.prototype.toString=function(){var e=a.reverseMap[this.num];if(void 0===e)throw new Error("Opcode does not have a string representation");return e},a.smallInt=function(e){return t.checkArgument(r.isNumber(e),"Invalid Argument: n should be number"),t.checkArgument(0<=e&&e<=16,"Invalid Argument: n must be between 0 and 16"),0===e?a("OP_0"):new a(a.map.OP_1+e-1)},a.map={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_CHECKLOCKTIMEVERIFY:177,OP_CHECKSEQUENCEVERIFY:178,OP_NOP1:176,OP_NOP2:177,OP_NOP3:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255},a.reverseMap=[],a.map)a.reverseMap[a.map[e]]=e;r.extend(a,a.map),a.isSmallIntOp=function(e){return(e=e instanceof a?e.toNumber():e)===a.map.OP_0||e>=a.map.OP_1&&e<=a.map.OP_16},a.prototype.inspect=function(){return"<Opcode: "+this.toString()+", hex: "+this.toHex()+", decimal: "+this.num+">"},u.exports=a}).call(this)}).call(this,s("buffer").Buffer)},{"./util/buffer":124,"./util/js":125,"./util/preconditions":126,buffer:186,lodash:318}],104:[function(l,h,e){(function(p){(function(){"use strict";var i=l("lodash"),n=l("./address"),r=l("./encoding/base58check"),a=l("./crypto/bn"),o=l("./util/js"),s=l("./networks"),u=l("./crypto/point"),e=l("./publickey"),c=l("./crypto/random"),t=l("./util/preconditions");function f(e,t){if(!(this instanceof f))return new f(e,t);if(e instanceof f)return e;t=this._classifyArguments(e,t);if(!t.bn||0===t.bn.cmp(new a(0)))throw new TypeError("Number can not be equal to zero, undefined, null or false");if(!t.bn.lt(u.getN()))throw new TypeError("Number must be less than N");if(void 0===t.network)throw new TypeError('Must specify the network ("livenet" or "testnet")');return o.defineImmutable(this,{bn:t.bn,compressed:t.compressed,network:t.network}),Object.defineProperty(this,"publicKey",{configurable:!1,enumerable:!0,get:this.toPublicKey.bind(this)}),this}f.prototype._classifyArguments=function(e,t){var r={compressed:!0,network:t?s.get(t):s.defaultNetwork};if(i.isUndefined(e)||i.isNull(e))r.bn=f._getRandomBN();else if(e instanceof a)r.bn=e;else if(e instanceof p||e instanceof Uint8Array)r=f._transformBuffer(e,t);else if(e.bn&&e.network)r=f._transformObject(e);else if(!t&&s.get(e))r.bn=f._getRandomBN(),r.network=s.get(e);else{if("string"!=typeof e)throw new TypeError("First argument is an unrecognized data type.");o.isHexa(e)?r.bn=new a(p.from(e,"hex")):r=f._transformWIF(e,t)}return r},f._getRandomBN=function(){do{var e,t=c.getRandomBuffer(32),t=(e=a.fromBuffer(t)).lt(u.getN())}while(!t);return e},f._transformBuffer=function(e,t){var r={};if(32===e.length)return f._transformBNBuffer(e,t);if(r.network=s.get(e[0],"privatekey"),!r.network)throw new Error("Invalid network");if(t&&r.network!==s.get(t))throw new TypeError("Private key network mismatch");if(34===e.length&&1===e[33])r.compressed=!0;else{if(33!==e.length)throw new Error("Length of buffer must be 33 (uncompressed) or 34 (compressed)");r.compressed=!1}return r.bn=a.fromBuffer(e.slice(1,33)),r},f._transformBNBuffer=function(e,t){var r={};return r.network=s.get(t)||s.defaultNetwork,r.bn=a.fromBuffer(e),r.compressed=!1,r},f._transformWIF=function(e,t){return f._transformBuffer(r.decode(e),t)},f.fromBuffer=function(e,t){return new f(e,t)},f._transformObject=function(e){return{bn:new a(e.bn,"hex"),network:s.get(e.network),compressed:e.compressed}},f.fromString=f.fromWIF=function(e){return t.checkArgument(i.isString(e),"First argument is expected to be a string."),new f(e)},f.fromObject=function(e){return t.checkArgument(i.isObject(e),"First argument is expected to be an object."),new f(e)},f.fromRandom=function(e){var t=f._getRandomBN();return new f(t,e)},f.getValidationError=function(e,t){var r;try{new f(e,t)}catch(e){r=e}return r},f.isValid=function(e,t){return!!e&&!f.getValidationError(e,t)},f.prototype.toString=function(){return this.toBuffer().toString("hex")},f.prototype.toWIF=function(){var e=this.network,e=this.compressed?p.concat([p.from([e.privatekey]),this.bn.toBuffer({size:32}),p.from([1])]):p.concat([p.from([e.privatekey]),this.bn.toBuffer({size:32})]);return r.encode(e)},f.prototype.toBigNumber=function(){return this.bn},f.prototype.toBuffer=function(){return this.bn.toBuffer({size:32})},f.prototype.toBufferNoPadding=function(){return this.bn.toBuffer()},f.prototype.toPublicKey=function(){return this._pubkey||(this._pubkey=e.fromPrivateKey(this)),this._pubkey},f.prototype.toAddress=function(e,t){var r=this.toPublicKey();return n.fromPublicKey(r,e||this.network,t)},f.prototype.toObject=f.prototype.toJSON=function(){return{bn:this.bn.toString("hex"),compressed:this.compressed,network:this.network.toString()}},f.prototype.inspect=function(){var e=this.compressed?"":", uncompressed";return"<PrivateKey: "+this.toString()+", network: "+this.network+e+">"},h.exports=f}).call(this)}).call(this,l("buffer").Buffer)},{"./address":80,"./crypto/bn":85,"./crypto/point":88,"./crypto/random":89,"./encoding/base58check":92,"./networks":102,"./publickey":105,"./util/js":125,"./util/preconditions":126,buffer:186,lodash:318}],105:[function(f,t,e){(function(n){(function(){"use strict";var a=f("./crypto/bn"),o=f("./crypto/point"),e=f("./crypto/hash"),r=f("./util/js"),i=f("./networks"),s=f("lodash"),u=f("./util/preconditions");function c(e,t){if(!(this instanceof c))return new c(e,t);if(u.checkArgument(e,"First argument is required, please include public key data."),e instanceof c)return e;t=t||{};t=this._classifyArgs(e,t);return t.point.validate(),r.defineImmutable(this,{point:t.point,compressed:t.compressed,network:t.network||i.defaultNetwork}),this}c.prototype._classifyArgs=function(e,t){var r={compressed:s.isUndefined(t.compressed)||t.compressed};if(e instanceof o)r.point=e;else if(e.x&&e.y)r=c._transformObject(e);else if("string"==typeof e)r=c._transformDER(n.from(e,"hex"));else if(c._isBuffer(e))r=c._transformDER(e);else{if(!c._isPrivateKey(e))throw new TypeError("First argument is an unrecognized data format.");r=c._transformPrivateKey(e)}return r.network||(r.network=s.isUndefined(t.network)?void 0:i.get(t.network)),r},c._isPrivateKey=function(e){return e instanceof f("./privatekey")},c._isBuffer=function(e){return e instanceof n||e instanceof Uint8Array},c._transformPrivateKey=function(e){u.checkArgument(c._isPrivateKey(e),"Must be an instance of PrivateKey");var t={};return t.point=o.getG().mul(e.bn),t.compressed=e.compressed,t.network=e.network,t},c._transformDER=function(e,t){u.checkArgument(c._isBuffer(e),"Must be a hex buffer of DER encoded public key");var r,i,n={};if(t=!!s.isUndefined(t)||t,4!==e[0]&&(t||6!==e[0]&&7!==e[0]))if(3===e[0])i=e.slice(1),r=new a(i),(n=c._transformX(!0,r)).compressed=!0;else{if(2!==e[0])throw new TypeError("Invalid DER format public key");i=e.slice(1),r=new a(i),(n=c._transformX(!1,r)).compressed=!0}else{if(i=e.slice(1,33),t=e.slice(33,65),32!==i.length||32!==t.length||65!==e.length)throw new TypeError("Length of x and y must be 32 bytes");r=new a(i),t=new a(t),n.point=new o(r,t),n.compressed=!1}return n},c._transformX=function(e,t){u.checkArgument("boolean"==typeof e,"Must specify whether y is odd or not (true or false)");var r={};return r.point=o.fromX(e,t),r},c._transformObject=function(e){var t=new a(e.x,"hex"),r=new a(e.y,"hex");return new c(new o(t,r),{compressed:e.compressed})},c.fromPrivateKey=function(e){u.checkArgument(c._isPrivateKey(e),"Must be an instance of PrivateKey");e=c._transformPrivateKey(e);return new c(e.point,{compressed:e.compressed,network:e.network})},c.fromDER=c.fromBuffer=function(e,t){u.checkArgument(c._isBuffer(e),"Must be a hex buffer of DER encoded public key");t=c._transformDER(e,t);return new c(t.point,{compressed:t.compressed})},c.fromPoint=function(e,t){return u.checkArgument(e instanceof o,"First argument must be an instance of Point."),new c(e,{compressed:t})},c.fromString=function(e,t){t=n.from(e,t||"hex"),t=c._transformDER(t);return new c(t.point,{compressed:t.compressed})},c.fromX=function(e,t){t=c._transformX(e,t);return new c(t.point,{compressed:t.compressed})},c.getValidationError=function(e){var t;try{new c(e)}catch(e){t=e}return t},c.isValid=function(e){return!c.getValidationError(e)},c.prototype.toObject=c.prototype.toJSON=function(){return{x:this.point.getX().toString("hex",2),y:this.point.getY().toString("hex",2),compressed:this.compressed}},c.prototype.toBuffer=c.prototype.toDER=function(){var e=this.point.getX(),t=this.point.getY(),e=e.toBuffer({size:32}),t=t.toBuffer({size:32});if(this.compressed){var r=t[t.length-1]%2?n.from([3]):n.from([2]);return n.concat([r,e])}return r=n.from([4]),n.concat([r,e,t])},c.prototype._getID=function(){return e.sha256ripemd160(this.toBuffer())},c.prototype.toAddress=function(e,t){return f("./address").fromPublicKey(this,e||this.network,t)},c.prototype.toString=function(){return this.toDER().toString("hex")},c.prototype.inspect=function(){return"<PublicKey: "+this.toString()+(this.compressed?"":", uncompressed")+">"},t.exports=c}).call(this)}).call(this,f("buffer").Buffer)},{"./address":80,"./crypto/bn":85,"./crypto/hash":87,"./crypto/point":88,"./networks":102,"./privatekey":104,"./util/js":125,"./util/preconditions":126,buffer:186,lodash:318}],106:[function(e,t,r){t.exports=e("./script"),t.exports.Interpreter=e("./interpreter")},{"./interpreter":107,"./script":108}],107:[function(p,t,e){(function(e){(function(){"use strict";function R(e){if(!(this instanceof R))return new R(e);e?(this.initialize(),this.set(e)):this.initialize()}var B=p("lodash"),F=p("./script"),M=p("../opcode"),z=p("../crypto/bn"),N=p("../crypto/hash"),D=p("../crypto/signature"),L=p("../publickey");R.prototype.verifyWitnessProgram=function(e,t,r,i,n){var a=new F,o=[];if(0!==e)return!(n&R.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM)||!(this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM");if(32===t.length){if(0===r.length)return!(this.errstr="SCRIPT_ERR_WITNESS_PROGRAM_WITNESS_EMPTY");e=r[r.length-1],a=new F(e);if(N.sha256(e).toString("hex")!==t.toString("hex"))return!(this.errstr="SCRIPT_ERR_WITNESS_PROGRAM_MISMATCH");o=r.slice(0,-1)}else{if(20!==t.length)return!(this.errstr="SCRIPT_ERR_WITNESS_PROGRAM_WRONG_LENGTH");if(2!==r.length)return!(this.errstr="SCRIPT_ERR_WITNESS_PROGRAM_MISMATCH");a.add(M.OP_DUP),a.add(M.OP_HASH160),a.add(t),a.add(M.OP_EQUALVERIFY),a.add(M.OP_CHECKSIG),o=r}if(this.initialize(),this.set({script:a,stack:o,sigversion:1,satoshis:i,flags:n}),!this.evaluate())return!1;if(1!==this.stack.length)return!(this.errstr="SCRIPT_ERR_EVAL_FALSE");n=this.stack[this.stack.length-1];return!!R.castToBool(n)||!(this.errstr="SCRIPT_ERR_EVAL_FALSE_IN_STACK")},R.prototype.verify=function(e,t,r,i,n,a,o){var s,u=p("../transaction");if(B.isUndefined(r)&&(r=new u),B.isUndefined(i)&&(i=0),B.isUndefined(n)&&(n=0),B.isUndefined(a)&&(a=null),B.isUndefined(o)&&(o=0),this.set({script:e,tx:r,nin:i,sigversion:0,satoshis:0,flags:n}),0!=(n&R.SCRIPT_VERIFY_SIGPUSHONLY)&&!e.isPushOnly())return!(this.errstr="SCRIPT_ERR_SIG_PUSHONLY");if(!this.evaluate())return!1;n&R.SCRIPT_VERIFY_P2SH&&(s=this.stack.slice());var c=this.stack;if(this.initialize(),this.set({script:t,stack:c,tx:r,nin:i,flags:n}),!this.evaluate())return!1;if(0===this.stack.length)return!(this.errstr="SCRIPT_ERR_EVAL_FALSE_NO_RESULT");var f=this.stack[this.stack.length-1];if(!R.castToBool(f))return!(this.errstr="SCRIPT_ERR_EVAL_FALSE_IN_STACK");u=!1;if(n&R.SCRIPT_VERIFY_WITNESS){f={};if(t.isWitnessProgram(f)){if(u=!0,0!==e.toBuffer().length)return!1;if(!this.verifyWitnessProgram(f.version,f.program,a,o,this.flags))return!1}}if(n&R.SCRIPT_VERIFY_P2SH&&t.isScriptHashOut()){if(!e.isPushOnly())return!(this.errstr="SCRIPT_ERR_SIG_PUSHONLY");if(0===s.length)throw new Error("internal error - stack copy empty");t=s[s.length-1],t=F.fromBuffer(t);if(s.pop(),this.initialize(),this.set({script:t,stack:s,tx:r,nin:i,flags:n}),!this.evaluate())return!1;if(0===s.length)return!(this.errstr="SCRIPT_ERR_EVAL_FALSE_NO_P2SH_STACK");if(!R.castToBool(s[s.length-1]))return!(this.errstr="SCRIPT_ERR_EVAL_FALSE_IN_P2SH_STACK");if(n&R.SCRIPT_VERIFY_WITNESS){i={};if(t.isWitnessProgram(i)){u=!0;n=new F;if(n.add(t.toBuffer()),e.toHex()!==n.toHex())return!(this.errstr="SCRIPT_ERR_WITNESS_MALLEATED_P2SH");if(!this.verifyWitnessProgram(i.version,i.program,a,o,this.flags))return!1;c[0]}}}if(0!=(this.flags&R.SCRIPT_VERIFY_CLEANSTACK)){if(0==(this.flags&R.SCRIPT_VERIFY_P2SH))throw"flags & SCRIPT_VERIFY_P2SH";if(1!=s.length)return!(this.errstr="SCRIPT_ERR_CLEANSTACK")}return!(this.flags&R.SCRIPT_VERIFY_WITNESS&&!u&&0<a.length)||!(this.errstr="SCRIPT_ERR_WITNESS_UNEXPECTED")},(t.exports=R).prototype.initialize=function(e){this.stack=[],this.altstack=[],this.pc=0,this.satoshis=0,this.sigversion=0,this.pbegincodehash=0,this.nOpCount=0,this.vfExec=[],this.errstr="",this.flags=0},R.prototype.set=function(e){this.script=e.script||this.script,this.tx=e.tx||this.tx,this.nin=(void 0!==e.nin?e:this).nin,this.stack=e.stack||this.stack,this.altstack=e.altack||this.altstack,this.pc=(void 0!==e.pc?e:this).pc,this.pbegincodehash=(void 0!==e.pbegincodehash?e:this).pbegincodehash,this.sigversion=(void 0!==e.sigversion?e:this).sigversion,this.satoshis=(void 0!==e.satoshis?e:this).satoshis,this.nOpCount=(void 0!==e.nOpCount?e:this).nOpCount,this.vfExec=e.vfExec||this.vfExec,this.errstr=e.errstr||this.errstr,this.flags=(void 0!==e.flags?e:this).flags},R.true=e.from([1]),R.false=e.from([]),R.MAX_SCRIPT_ELEMENT_SIZE=520,R.LOCKTIME_THRESHOLD_BN=new z(R.LOCKTIME_THRESHOLD=5e8),R.SCRIPT_VERIFY_NONE=0,R.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM=4096,R.SCRIPT_VERIFY_P2SH=1,R.SCRIPT_VERIFY_STRICTENC=2,R.SCRIPT_VERIFY_DERSIG=4,R.SCRIPT_VERIFY_LOW_S=8,R.SCRIPT_VERIFY_NULLDUMMY=16,R.SCRIPT_VERIFY_SIGPUSHONLY=32,R.SCRIPT_VERIFY_MINIMALDATA=64,R.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,R.SCRIPT_VERIFY_CLEANSTACK=256,R.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,R.SCRIPT_VERIFY_WITNESS=1024,R.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=2048,R.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY=1024,R.SCRIPT_VERIFY_MINIMALIF=8192,R.SCRIPT_VERIFY_NULLFAIL=16384,R.SCRIPT_VERIFY_WITNESS_PUBKEYTYPE=32768,R.SCRIPT_ENABLE_SIGHASH_FORKID=65536,R.SCRIPT_ENABLE_REPLAY_PROTECTION=1<<17,R.SCRIPT_ENABLE_MONOLITH_OPCODES=1<<18,R.SEQUENCE_LOCKTIME_DISABLE_FLAG=1<<31,R.SEQUENCE_LOCKTIME_TYPE_FLAG=1<<22,R.SEQUENCE_LOCKTIME_MASK=65535,R.castToBool=function(e){for(var t=0;t<e.length;t++)if(0!==e[t])return t!==e.length-1||128!==e[t];return!1},R.prototype.checkSignatureEncoding=function(e){if(0==e.length)return!0;if(0!=(this.flags&(R.SCRIPT_VERIFY_DERSIG|R.SCRIPT_VERIFY_LOW_S|R.SCRIPT_VERIFY_STRICTENC))&&!D.isTxDER(e))return!(this.errstr="SCRIPT_ERR_SIG_DER_INVALID_FORMAT");if(0!=(this.flags&R.SCRIPT_VERIFY_LOW_S)){if(!D.fromTxFormat(e).hasLowS())return!(this.errstr="SCRIPT_ERR_SIG_DER_HIGH_S")}else if(0!=(this.flags&R.SCRIPT_VERIFY_STRICTENC)&&!D.fromTxFormat(e).hasDefinedHashtype())return!(this.errstr="SCRIPT_ERR_SIG_HASHTYPE");return!0},R.prototype.checkPubkeyEncoding=function(e){return 0==(this.flags&R.SCRIPT_VERIFY_STRICTENC)||L.isValid(e)?!(0!=(this.flags&R.SCRIPT_VERIFY_WITNESS_PUBKEYTYPE)&&1==this.sigversion&&!L.fromBuffer(e).compressed)||!(this.errstr="SCRIPT_ERR_WITNESS_PUBKEYTYPE"):!(this.errstr="SCRIPT_ERR_PUBKEYTYPE")},R.prototype.evaluate=function(){if(1e4<this.script.toBuffer().length)return!(this.errstr="SCRIPT_ERR_SCRIPT_SIZE");try{for(;this.pc<this.script.chunks.length;)if(!this.step())return!1;if(1e3<this.stack.length+this.altstack.length)return!(this.errstr="SCRIPT_ERR_STACK_SIZE")}catch(e){return this.errstr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,!1}return!(0<this.vfExec.length)||!(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL")},R.prototype.checkLockTime=function(e){return!!(this.tx.nLockTime<R.LOCKTIME_THRESHOLD&&e.lt(R.LOCKTIME_THRESHOLD_BN)||this.tx.nLockTime>=R.LOCKTIME_THRESHOLD&&e.gte(R.LOCKTIME_THRESHOLD_BN))&&(!e.gt(new z(this.tx.nLockTime))&&!!this.tx.inputs[this.nin].isFinal())},R.prototype.checkSequence=function(e){var t=this.tx.inputs[this.nin].sequenceNumber;if(this.tx.version<2)return!1;if(t&SEQUENCE_LOCKTIME_DISABLE_FLAG)return!1;var r=R.SEQUENCE_LOCKTIME_TYPE_FLAG|R.SEQUENCE_LOCKTIME_MASK,t=new z(t&r),e=e.and(r),r=new z(R.SEQUENCE_LOCKTIME_TYPE_FLAG);return!!(t.lt(r)&&e.lt(r)||t.gte(r)&&e.gte(r))&&!e.gt(t)},R.prototype.step=function(){var e,t,r,i,n,a,o,s,u,c,f,p,l,h,d=0!=(this.flags&R.SCRIPT_VERIFY_MINIMALDATA),m=-1===this.vfExec.indexOf(!1),g=this.script.chunks[this.pc];this.pc++;var b=g.opcodenum;if(B.isUndefined(b))return!(this.errstr="SCRIPT_ERR_UNDEFINED_OPCODE");if(g.buf&&g.buf.length>R.MAX_SCRIPT_ELEMENT_SIZE)return!(this.errstr="SCRIPT_ERR_PUSH_SIZE");if(b>M.OP_16&&201<++this.nOpCount)return!(this.errstr="SCRIPT_ERR_OP_COUNT");if(b===M.OP_CAT||b===M.OP_SUBSTR||b===M.OP_LEFT||b===M.OP_RIGHT||b===M.OP_INVERT||b===M.OP_AND||b===M.OP_OR||b===M.OP_XOR||b===M.OP_2MUL||b===M.OP_2DIV||b===M.OP_MUL||b===M.OP_DIV||b===M.OP_MOD||b===M.OP_LSHIFT||b===M.OP_RSHIFT)return!(this.errstr="SCRIPT_ERR_DISABLED_OPCODE");if(m&&0<=b&&b<=M.OP_PUSHDATA4){if(d&&!this.script.checkMinimalPush(this.pc-1))return!(this.errstr="SCRIPT_ERR_MINIMALDATA");if(g.buf){if(g.len!==g.buf.length)throw new Error("Length of push value not equal to length of data");this.stack.push(g.buf)}else this.stack.push(R.false)}else if(m||M.OP_IF<=b&&b<=M.OP_ENDIF)switch(b){case M.OP_1NEGATE:case M.OP_1:case M.OP_2:case M.OP_3:case M.OP_4:case M.OP_5:case M.OP_6:case M.OP_7:case M.OP_8:case M.OP_9:case M.OP_10:case M.OP_11:case M.OP_12:case M.OP_13:case M.OP_14:case M.OP_15:case M.OP_16:_=b-(M.OP_1-1),x=new z(_).toScriptNumBuffer(),this.stack.push(x);break;case M.OP_NOP:break;case M.OP_NOP2:case M.OP_CHECKLOCKTIMEVERIFY:if(!(this.flags&R.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&R.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return!(this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS");break}if(this.stack.length<1)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");var y=z.fromScriptNumBuffer(this.stack[this.stack.length-1],d,5);if(y.lt(new z(0)))return!(this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME");if(!this.checkLockTime(y))return!(this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME");break;case M.OP_NOP3:case M.OP_CHECKSEQUENCEVERIFY:if(!(this.flags&R.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY)){if(this.flags&R.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return!(this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS");break}if(this.stack.length<1)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");var v=z.fromScriptNumBuffer(this.stack[this.stack.length-1],d,5);if(v.lt(new z(0)))return!(this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME");if(0!=(v&R.SEQUENCE_LOCKTIME_DISABLE_FLAG))break;if(!this.checkSequence(v))return!(this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME");break;case M.OP_NOP1:case M.OP_NOP4:case M.OP_NOP5:case M.OP_NOP6:case M.OP_NOP7:case M.OP_NOP8:case M.OP_NOP9:case M.OP_NOP10:if(this.flags&R.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return!(this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS");break;case M.OP_IF:case M.OP_NOTIF:if(k=!1,m){if(this.stack.length<1)return!(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL");if(x=this.stack[this.stack.length-1],this.flags&R.SCRIPT_VERIFY_MINIMALIF){if(1<(x=this.stack[this.stack.length-1]).length)return!(this.errstr="SCRIPT_ERR_MINIMALIF");if(1==x.length&&1!=x[0])return!(this.errstr="SCRIPT_ERR_MINIMALIF")}k=R.castToBool(x),b===M.OP_NOTIF&&(k=!k),this.stack.pop()}this.vfExec.push(k);break;case M.OP_ELSE:if(0===this.vfExec.length)return!(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL");this.vfExec[this.vfExec.length-1]=!this.vfExec[this.vfExec.length-1];break;case M.OP_ENDIF:if(0===this.vfExec.length)return!(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL");this.vfExec.pop();break;case M.OP_VERIFY:if(this.stack.length<1)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");if(x=this.stack[this.stack.length-1],!(k=R.castToBool(x)))return!(this.errstr="SCRIPT_ERR_VERIFY");this.stack.pop();break;case M.OP_RETURN:return!(this.errstr="SCRIPT_ERR_OP_RETURN");case M.OP_TOALTSTACK:if(this.stack.length<1)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");this.altstack.push(this.stack.pop());break;case M.OP_FROMALTSTACK:if(this.altstack.length<1)return!(this.errstr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION");this.stack.push(this.altstack.pop());break;case M.OP_2DROP:if(this.stack.length<2)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");this.stack.pop(),this.stack.pop();break;case M.OP_2DUP:if(this.stack.length<2)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");e=this.stack[this.stack.length-2],t=this.stack[this.stack.length-1],this.stack.push(e),this.stack.push(t);break;case M.OP_3DUP:if(this.stack.length<3)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");e=this.stack[this.stack.length-3],t=this.stack[this.stack.length-2];v=this.stack[this.stack.length-1];this.stack.push(e),this.stack.push(t),this.stack.push(v);break;case M.OP_2OVER:if(this.stack.length<4)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");e=this.stack[this.stack.length-4],t=this.stack[this.stack.length-3],this.stack.push(e),this.stack.push(t);break;case M.OP_2ROT:if(this.stack.length<6)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");r=this.stack.splice(this.stack.length-6,2),this.stack.push(r[0]),this.stack.push(r[1]);break;case M.OP_2SWAP:if(this.stack.length<4)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");r=this.stack.splice(this.stack.length-4,2),this.stack.push(r[0]),this.stack.push(r[1]);break;case M.OP_IFDUP:if(this.stack.length<1)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");x=this.stack[this.stack.length-1],(k=R.castToBool(x))&&this.stack.push(x);break;case M.OP_DEPTH:x=new z(this.stack.length).toScriptNumBuffer(),this.stack.push(x);break;case M.OP_DROP:if(this.stack.length<1)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");this.stack.pop();break;case M.OP_DUP:if(this.stack.length<1)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");this.stack.push(this.stack[this.stack.length-1]);break;case M.OP_NIP:if(this.stack.length<2)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");this.stack.splice(this.stack.length-2,1);break;case M.OP_OVER:if(this.stack.length<2)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");this.stack.push(this.stack[this.stack.length-2]);break;case M.OP_PICK:case M.OP_ROLL:if(this.stack.length<2)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");if(x=this.stack[this.stack.length-1],_=(a=z.fromScriptNumBuffer(x,d)).toNumber(),this.stack.pop(),_<0||_>=this.stack.length)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");x=this.stack[this.stack.length-_-1],b===M.OP_ROLL&&this.stack.splice(this.stack.length-_-1,1),this.stack.push(x);break;case M.OP_ROT:if(this.stack.length<3)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");i=this.stack[this.stack.length-3],n=this.stack[this.stack.length-2];var _=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=n,this.stack[this.stack.length-2]=_,this.stack[this.stack.length-1]=i;break;case M.OP_SWAP:if(this.stack.length<2)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");i=this.stack[this.stack.length-2],n=this.stack[this.stack.length-1],this.stack[this.stack.length-2]=n,this.stack[this.stack.length-1]=i;break;case M.OP_TUCK:if(this.stack.length<2)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case M.OP_SIZE:if(this.stack.length<1)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");a=new z(this.stack[this.stack.length-1].length),this.stack.push(a.toScriptNumBuffer());break;case M.OP_EQUAL:case M.OP_EQUALVERIFY:if(this.stack.length<2)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");e=this.stack[this.stack.length-2],t=this.stack[this.stack.length-1];var w=e.toString("hex")===t.toString("hex");if(this.stack.pop(),this.stack.pop(),this.stack.push(w?R.true:R.false),b===M.OP_EQUALVERIFY){if(!w)return!(this.errstr="SCRIPT_ERR_EQUALVERIFY");this.stack.pop()}break;case M.OP_1ADD:case M.OP_1SUB:case M.OP_NEGATE:case M.OP_ABS:case M.OP_NOT:case M.OP_0NOTEQUAL:if(this.stack.length<1)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");switch(x=this.stack[this.stack.length-1],a=z.fromScriptNumBuffer(x,d),b){case M.OP_1ADD:a=a.add(z.One);break;case M.OP_1SUB:a=a.sub(z.One);break;case M.OP_NEGATE:a=a.neg();break;case M.OP_ABS:a.cmp(z.Zero)<0&&(a=a.neg());break;case M.OP_NOT:a=new z(+(0===a.cmp(z.Zero)));break;case M.OP_0NOTEQUAL:a=new z(+(0!==a.cmp(z.Zero)))}this.stack.pop(),this.stack.push(a.toScriptNumBuffer());break;case M.OP_ADD:case M.OP_SUB:case M.OP_BOOLAND:case M.OP_BOOLOR:case M.OP_NUMEQUAL:case M.OP_NUMEQUALVERIFY:case M.OP_NUMNOTEQUAL:case M.OP_LESSTHAN:case M.OP_GREATERTHAN:case M.OP_LESSTHANOREQUAL:case M.OP_GREATERTHANOREQUAL:case M.OP_MIN:case M.OP_MAX:if(this.stack.length<2)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");switch(o=z.fromScriptNumBuffer(this.stack[this.stack.length-2],d),s=z.fromScriptNumBuffer(this.stack[this.stack.length-1],d),a=new z(0),b){case M.OP_ADD:a=o.add(s);break;case M.OP_SUB:a=o.sub(s);break;case M.OP_BOOLAND:a=new z(+(0!==o.cmp(z.Zero)&&0!==s.cmp(z.Zero)));break;case M.OP_BOOLOR:a=new z(+(0!==o.cmp(z.Zero)||0!==s.cmp(z.Zero)));break;case M.OP_NUMEQUAL:case M.OP_NUMEQUALVERIFY:a=new z(+(0===o.cmp(s)));break;case M.OP_NUMNOTEQUAL:a=new z(+(0!==o.cmp(s)));break;case M.OP_LESSTHAN:a=new z(+(o.cmp(s)<0));break;case M.OP_GREATERTHAN:a=new z(+(0<o.cmp(s)));break;case M.OP_LESSTHANOREQUAL:a=new z(+(o.cmp(s)<=0));break;case M.OP_GREATERTHANOREQUAL:a=new z(+(0<=o.cmp(s)));break;case M.OP_MIN:a=o.cmp(s)<0?o:s;break;case M.OP_MAX:a=0<o.cmp(s)?o:s}if(this.stack.pop(),this.stack.pop(),this.stack.push(a.toScriptNumBuffer()),b===M.OP_NUMEQUALVERIFY){if(!R.castToBool(this.stack[this.stack.length-1]))return!(this.errstr="SCRIPT_ERR_NUMEQUALVERIFY");this.stack.pop()}break;case M.OP_WITHIN:if(this.stack.length<3)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");o=z.fromScriptNumBuffer(this.stack[this.stack.length-3],d),s=z.fromScriptNumBuffer(this.stack[this.stack.length-2],d);var w=z.fromScriptNumBuffer(this.stack[this.stack.length-1],d),k=s.cmp(o)<=0&&o.cmp(w)<0;this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(k?R.true:R.false);break;case M.OP_RIPEMD160:case M.OP_SHA1:case M.OP_SHA256:case M.OP_HASH160:case M.OP_HASH256:if(this.stack.length<1)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");var x=this.stack[this.stack.length-1];b===M.OP_RIPEMD160?S=N.ripemd160(x):b===M.OP_SHA1?S=N.sha1(x):b===M.OP_SHA256?S=N.sha256(x):b===M.OP_HASH160?S=N.sha256ripemd160(x):b===M.OP_HASH256&&(S=N.sha256sha256(x)),this.stack.pop(),this.stack.push(S);break;case M.OP_CODESEPARATOR:this.pbegincodehash=this.pc;break;case M.OP_CHECKSIG:case M.OP_CHECKSIGVERIFY:if(this.stack.length<2)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");if(u=this.stack[this.stack.length-2],c=this.stack[this.stack.length-1],!this.checkSignatureEncoding(u)||!this.checkPubkeyEncoding(c))return!1;f=(new F).set({chunks:this.script.chunks.slice(this.pbegincodehash)});var S=(new F).add(u);f.findAndDelete(S);try{p=D.fromTxFormat(u),l=L.fromBuffer(c,!1),h=this.tx.verifySignature(p,l,this.nin,f,this.sigversion,this.satoshis)}catch(e){h=!1}if(!h&&this.flags&R.SCRIPT_VERIFY_NULLFAIL&&u.length)return!(this.errstr="SCRIPT_ERR_NULLFAIL");if(this.stack.pop(),this.stack.pop(),this.stack.push(h?R.true:R.false),b===M.OP_CHECKSIGVERIFY){if(!h)return!(this.errstr="SCRIPT_ERR_CHECKSIGVERIFY");this.stack.pop()}break;case M.OP_CHECKMULTISIG:case M.OP_CHECKMULTISIGVERIFY:var j=1;if(this.stack.length<j)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");var E=z.fromScriptNumBuffer(this.stack[this.stack.length-j],d).toNumber();if(E<0||20<E)return!(this.errstr="SCRIPT_ERR_PUBKEY_COUNT");if(this.nOpCount+=E,201<this.nOpCount)return!(this.errstr="SCRIPT_ERR_OP_COUNT");var A=++j;j+=E;var P=E+2;if(this.stack.length<j)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");var I=z.fromScriptNumBuffer(this.stack[this.stack.length-j],d).toNumber();if(I<0||E<I)return!(this.errstr="SCRIPT_ERR_SIG_COUNT");var T=++j;if(j+=I,this.stack.length<j)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");f=(new F).set({chunks:this.script.chunks.slice(this.pbegincodehash)});for(var O,C=0;C<I;C++)u=this.stack[this.stack.length-T-C],f.findAndDelete((new F).add(u));for(h=!0;h&&0<I;){if(u=this.stack[this.stack.length-T],c=this.stack[this.stack.length-A],!this.checkSignatureEncoding(u)||!this.checkPubkeyEncoding(c))return!1;try{p=D.fromTxFormat(u),l=L.fromBuffer(c,!1),O=this.tx.verifySignature(p,l,this.nin,f,this.sigversion,this.satoshis)}catch(e){O=!1}O&&(T++,I--),A++,--E<I&&(h=!1)}for(;1<j--;){if(!h&&this.flags&R.SCRIPT_VERIFY_NULLFAIL&&!P&&this.stack[this.stack.length-1].length)return!(this.errstr="SCRIPT_ERR_NULLFAIL");0<P&&P--,this.stack.pop()}if(this.stack.length<1)return!(this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION");if(this.flags&R.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return!(this.errstr="SCRIPT_ERR_SIG_NULLDUMMY");if(this.stack.pop(),this.stack.push(h?R.true:R.false),b===M.OP_CHECKMULTISIGVERIFY){if(!h)return!(this.errstr="SCRIPT_ERR_CHECKMULTISIGVERIFY");this.stack.pop()}break;default:return!(this.errstr="SCRIPT_ERR_BAD_OPCODE")}return!0}}).call(this)}).call(this,p("buffer").Buffer)},{"../crypto/bn":85,"../crypto/hash":87,"../crypto/signature":90,"../opcode":103,"../publickey":105,"../transaction":109,"./script":108,buffer:186,lodash:318}],108:[function(e,t,r){(function(g){(function(){"use strict";function s(e){return this instanceof s?(this.chunks=[],d.isBuffer(e)?s.fromBuffer(e):e instanceof r?s.fromAddress(e):e instanceof s?s.fromBuffer(e.toBuffer()):l.isString(e)?s.fromString(e):void(l.isObject(e)&&l.isArray(e.chunks)&&this.set(e))):new s(e)}var r=e("../address"),o=e("../encoding/bufferreader"),n=e("../encoding/bufferwriter"),i=e("../crypto/hash"),u=e("../opcode"),c=e("../publickey"),a=e("../crypto/signature"),f=e("../networks"),p=e("../util/preconditions"),l=e("lodash"),h=e("../errors"),d=(e("buffer"),e("../util/buffer")),m=e("../util/js");s.prototype.set=function(e){return p.checkArgument(l.isObject(e)),p.checkArgument(l.isArray(e.chunks)),this.chunks=e.chunks,this},s.fromBuffer=function(t){var e=new s;e.chunks=[];for(var r=new o(t);!r.finished();)try{var i,n,a=r.readUInt8();0<a&&a<u.OP_PUSHDATA1?(i=a,e.chunks.push({buf:r.read(i),len:i,opcodenum:a})):a===u.OP_PUSHDATA1?(i=r.readUInt8(),n=r.read(i),e.chunks.push({buf:n,len:i,opcodenum:a})):a===u.OP_PUSHDATA2?(i=r.readUInt16LE(),n=r.read(i),e.chunks.push({buf:n,len:i,opcodenum:a})):a===u.OP_PUSHDATA4?(i=r.readUInt32LE(),n=r.read(i),e.chunks.push({buf:n,len:i,opcodenum:a})):e.chunks.push({opcodenum:a})}catch(e){if(e instanceof RangeError)throw new h.Script.InvalidBuffer(t.toString("hex"));throw e}return e},s.prototype.toBuffer=function(){for(var e=new n,t=0;t<this.chunks.length;t++){var r=this.chunks[t],i=r.opcodenum;e.writeUInt8(r.opcodenum),r.buf&&(i<u.OP_PUSHDATA1?e.write(r.buf):i===u.OP_PUSHDATA1?(e.writeUInt8(r.len),e.write(r.buf)):i===u.OP_PUSHDATA2?(e.writeUInt16LE(r.len),e.write(r.buf)):i===u.OP_PUSHDATA4&&(e.writeUInt32LE(r.len),e.write(r.buf)))}return e.concat()},s.fromASM=function(e){var t=new s;t.chunks=[];for(var r=e.split(" "),i=0;i<r.length;){var n=r[i],a=u(n).toNumber();l.isUndefined(a)?(n=g.from(r[i],"hex"),t.chunks.push({buf:n,len:n.length,opcodenum:n.length}),i+=1):a===u.OP_PUSHDATA1||a===u.OP_PUSHDATA2||a===u.OP_PUSHDATA4?(t.chunks.push({buf:g.from(r[i+2],"hex"),len:parseInt(r[i+1]),opcodenum:a}),i+=3):(t.chunks.push({opcodenum:a}),i+=1)}return t},s.fromHex=function(e){return new s(g.from(e,"hex"))},s.fromString=function(e){if(m.isHexa(e)||0===e.length)return new s(g.from(e,"hex"));var t=new s;t.chunks=[];for(var r=e.split(" "),i=0;i<r.length;){var n=r[i],a=u(n).toNumber();if(l.isUndefined(a)){if(!(0<(a=parseInt(n))&&a<u.OP_PUSHDATA1))throw new Error("Invalid script: "+JSON.stringify(e));t.chunks.push({buf:g.from(r[i+1].slice(2),"hex"),len:a,opcodenum:a}),i+=2}else if(a===u.OP_PUSHDATA1||a===u.OP_PUSHDATA2||a===u.OP_PUSHDATA4){if("0x"!==r[i+2].slice(0,2))throw new Error("Pushdata data must start with 0x");t.chunks.push({buf:g.from(r[i+2].slice(2),"hex"),len:parseInt(r[i+1]),opcodenum:a}),i+=3}else t.chunks.push({opcodenum:a}),i+=1}return t},s.prototype._chunkToString=function(e,t){var r=e.opcodenum,i="asm"===t,t="";return e.buf?((i||r!==u.OP_PUSHDATA1)&&r!==u.OP_PUSHDATA2&&r!==u.OP_PUSHDATA4||(t=t+" "+u(r).toString()),0<e.len&&(t=i?t+" "+e.buf.toString("hex"):t+" "+e.len+" 0x"+e.buf.toString("hex"))):void 0!==u.reverseMap[r]?i?0===r?t+=" 0":79===r?t+=" -1":t=t+" "+u(r).toString():t=t+" "+u(r).toString():((r=r.toString(16)).length%2!=0&&(r="0"+r),t=i?t+" "+r:t+" 0x"+r),t},s.prototype.toASM=function(){for(var e="",t=0;t<this.chunks.length;t++){var r=this.chunks[t];e+=this._chunkToString(r,"asm")}return e.substr(1)},s.prototype.toString=function(){for(var e="",t=0;t<this.chunks.length;t++){var r=this.chunks[t];e+=this._chunkToString(r)}return e.substr(1)},s.prototype.toHex=function(){return this.toBuffer().toString("hex")},s.prototype.inspect=function(){return"<Script: "+this.toString()+">"},s.prototype.isPublicKeyHashOut=function(){return!(5!==this.chunks.length||this.chunks[0].opcodenum!==u.OP_DUP||this.chunks[1].opcodenum!==u.OP_HASH160||!this.chunks[2].buf||20!==this.chunks[2].buf.length||this.chunks[3].opcodenum!==u.OP_EQUALVERIFY||this.chunks[4].opcodenum!==u.OP_CHECKSIG)},s.prototype.isPublicKeyHashIn=function(){if(2===this.chunks.length){var e=this.chunks[0].buf,t=this.chunks[1].buf;if(e&&e.length&&48===e[0]&&t&&t.length){e=t[0];if((4===e||6===e||7===e)&&65===t.length)return!0;if((3===e||2===e)&&33===t.length)return!0}}return!1},s.prototype.getPublicKey=function(){return p.checkState(this.isPublicKeyOut(),"Can't retrieve PublicKey from a non-PK output"),this.chunks[0].buf},s.prototype.getPublicKeyHash=function(){if(this.isPublicKeyHashOut())return this.chunks[2].buf;if(this.isWitnessPublicKeyHashOut())return this.chunks[1].buf;throw new Error("Can't retrieve PublicKeyHash from a non-PKH output")},s.prototype.isPublicKeyOut=function(){if(2===this.chunks.length&&this.chunks[0].buf&&this.chunks[0].buf.length&&this.chunks[1].opcodenum===u.OP_CHECKSIG){var e=this.chunks[0].buf,t=e[0],r=!1;if(r=(4===t||6===t||7===t)&&65===e.length||(3===t||2===t)&&33===e.length?!0:r)return c.isValid(e)}return!1},s.prototype.isPublicKeyIn=function(){if(1===this.chunks.length){var e=this.chunks[0].buf;if(e&&e.length&&48===e[0])return!0}return!1},s.prototype.isScriptHashOut=function(){var e=this.toBuffer();return 23===e.length&&e[0]===u.OP_HASH160&&20===e[1]&&e[e.length-1]===u.OP_EQUAL},s.prototype.isWitnessScriptHashOut=function(){var e=this.toBuffer();return 34===e.length&&0===e[0]&&32===e[1]},s.prototype.isWitnessPublicKeyHashOut=function(){var e=this.toBuffer();return 22===e.length&&0===e[0]&&20===e[1]},s.prototype.isWitnessProgram=function(e){e=e||{};var t=this.toBuffer();return!(t.length<4||42<t.length)&&((t[0]===u.OP_0||t[0]>=u.OP_1&&t[0]<=u.OP_16)&&(t.length===t[1]+2&&(e.version=t[0],e.program=t.slice(2,t.length),!0)))},s.prototype.isScriptHashIn=function(){if(this.chunks.length<=1)return!1;var e,t=this.chunks[this.chunks.length-1].buf;if(!t)return!1;try{e=s.fromBuffer(t)}catch(e){if(e instanceof h.Script.InvalidBuffer)return!1;throw e}return e.classify()!==s.types.UNKNOWN},s.prototype.isMultisigOut=function(){return 3<this.chunks.length&&u.isSmallIntOp(this.chunks[0].opcodenum)&&this.chunks.slice(1,this.chunks.length-2).every(function(e){return e.buf&&d.isBuffer(e.buf)})&&u.isSmallIntOp(this.chunks[this.chunks.length-2].opcodenum)&&this.chunks[this.chunks.length-1].opcodenum===u.OP_CHECKMULTISIG},s.prototype.isMultisigIn=function(){return 2<=this.chunks.length&&0===this.chunks[0].opcodenum&&this.chunks.slice(1,this.chunks.length).every(function(e){return e.buf&&d.isBuffer(e.buf)&&a.isTxDER(e.buf)})},s.prototype.isDataOut=function(){return 1<=this.chunks.length&&this.chunks[0].opcodenum===u.OP_RETURN&&(1===this.chunks.length||2===this.chunks.length&&this.chunks[1].buf&&this.chunks[1].buf.length<=s.OP_RETURN_STANDARD_SIZE&&this.chunks[1].length===this.chunks.len)},s.prototype.getData=function(){if(this.isDataOut()||this.isScriptHashOut()||this.isWitnessScriptHashOut()||this.isWitnessPublicKeyHashOut())return l.isUndefined(this.chunks[1])?g.alloc(0):g.from(this.chunks[1].buf);if(this.isPublicKeyHashOut())return g.from(this.chunks[2].buf);throw new Error("Unrecognized script type to get data from")},s.prototype.isPushOnly=function(){return l.every(this.chunks,function(e){return e.opcodenum<=u.OP_16})},(s.types={}).UNKNOWN="Unknown",s.types.PUBKEY_OUT="Pay to public key",s.types.PUBKEY_IN="Spend from public key",s.types.PUBKEYHASH_OUT="Pay to public key hash",s.types.PUBKEYHASH_IN="Spend from public key hash",s.types.SCRIPTHASH_OUT="Pay to script hash",s.types.SCRIPTHASH_IN="Spend from script hash",s.types.MULTISIG_OUT="Pay to multisig",s.types.MULTISIG_IN="Spend from multisig",s.types.DATA_OUT="Data push",s.OP_RETURN_STANDARD_SIZE=80,s.prototype.classify=function(){if(this._isInput)return this.classifyInput();if(this._isOutput)return this.classifyOutput();var e=this.classifyOutput();return e!=s.types.UNKNOWN?e:this.classifyInput()},(s.outputIdentifiers={}).PUBKEY_OUT=s.prototype.isPublicKeyOut,s.outputIdentifiers.PUBKEYHASH_OUT=s.prototype.isPublicKeyHashOut,s.outputIdentifiers.MULTISIG_OUT=s.prototype.isMultisigOut,s.outputIdentifiers.SCRIPTHASH_OUT=s.prototype.isScriptHashOut,s.outputIdentifiers.DATA_OUT=s.prototype.isDataOut,s.prototype.classifyOutput=function(){for(var e in s.outputIdentifiers)if(s.outputIdentifiers[e].bind(this)())return s.types[e];return s.types.UNKNOWN},(s.inputIdentifiers={}).PUBKEY_IN=s.prototype.isPublicKeyIn,s.inputIdentifiers.PUBKEYHASH_IN=s.prototype.isPublicKeyHashIn,s.inputIdentifiers.MULTISIG_IN=s.prototype.isMultisigIn,s.inputIdentifiers.SCRIPTHASH_IN=s.prototype.isScriptHashIn,s.prototype.classifyInput=function(){for(var e in s.inputIdentifiers)if(s.inputIdentifiers[e].bind(this)())return s.types[e];return s.types.UNKNOWN},s.prototype.isStandard=function(){return this.classify()!==s.types.UNKNOWN},s.prototype.prepend=function(e){return this._addByType(e,!0),this},s.prototype.equals=function(e){if(p.checkState(e instanceof s,"Must provide another script"),this.chunks.length!==e.chunks.length)return!1;for(var t=0;t<this.chunks.length;t++){if(d.isBuffer(this.chunks[t].buf)&&!d.isBuffer(e.chunks[t].buf))return!1;if(d.isBuffer(this.chunks[t].buf)&&!d.equals(this.chunks[t].buf,e.chunks[t].buf))return!1;if(this.chunks[t].opcodenum!==e.chunks[t].opcodenum)return!1}return!0},s.prototype.add=function(e){return this._addByType(e,!1),this},s.prototype._addByType=function(e,t){if("string"==typeof e)this._addOpcode(e,t);else if("number"==typeof e)this._addOpcode(e,t);else if(e instanceof u)this._addOpcode(e,t);else if(d.isBuffer(e))this._addBuffer(e,t);else if(e instanceof s)this.chunks=this.chunks.concat(e.chunks);else{if("object"!==_typeof(e))throw new Error("Invalid script chunk");this._insertAtPosition(e,t)}},s.prototype._insertAtPosition=function(e,t){t?this.chunks.unshift(e):this.chunks.push(e)},s.prototype._addOpcode=function(e,t){e="number"==typeof e?e:(e instanceof u?e:u(e)).toNumber();return this._insertAtPosition({opcodenum:e},t),this},s.prototype._addBuffer=function(e,t){var r,i=e.length;if(0<=i&&i<u.OP_PUSHDATA1)r=i;else if(i<Math.pow(2,8))r=u.OP_PUSHDATA1;else if(i<Math.pow(2,16))r=u.OP_PUSHDATA2;else{if(!(i<Math.pow(2,32)))throw new Error("You can't push that much data");r=u.OP_PUSHDATA4}return this._insertAtPosition({buf:e,len:i,opcodenum:r},t),this},s.prototype.hasCodeseparators=function(){for(var e=0;e<this.chunks.length;e++)if(this.chunks[e].opcodenum===u.OP_CODESEPARATOR)return!0;return!1},s.prototype.removeCodeseparators=function(){for(var e=[],t=0;t<this.chunks.length;t++)this.chunks[t].opcodenum!==u.OP_CODESEPARATOR&&e.push(this.chunks[t]);return this.chunks=e,this},s.buildMultisigOut=function(e,t,r){p.checkArgument(t<=e.length,"Number of required signatures must be less than or equal to the number of public keys"),r=r||{};var i=new s;i.add(u.smallInt(t));var n=e=l.map(e,c);r.noSorting||(n=l.sortBy(e,function(e){return e.toString("hex")}));for(var a=0;a<n.length;a++){var o=n[a];i.add(o.toBuffer())}return i.add(u.smallInt(e.length)),i.add(u.OP_CHECKMULTISIG),i},s.buildWitnessMultisigOutFromScript=function(e){if(e instanceof s){var t=new s;return t.add(u.OP_0),t.add(i.sha256(e.toBuffer())),t}throw new TypeError("First argument is expected to be a p2sh script")},s.buildMultisigIn=function(e,t,r,i){p.checkArgument(l.isArray(e)),p.checkArgument(l.isNumber(t)),p.checkArgument(l.isArray(r));var n=new s;return n.add(u.OP_0),l.each(r,function(e){p.checkArgument(d.isBuffer(e),"Signatures must be an array of Buffers"),n.add(e)}),n},s.buildP2SHMultisigIn=function(e,t,r,i){p.checkArgument(l.isArray(e)),p.checkArgument(l.isNumber(t)),p.checkArgument(l.isArray(r)),i=i||{};var n=new s;return n.add(u.OP_0),l.each(r,function(e){p.checkArgument(d.isBuffer(e),"Signatures must be an array of Buffers"),n.add(e)}),n.add((i.cachedMultisig||s.buildMultisigOut(e,t,i)).toBuffer()),n},s.buildPublicKeyHashOut=function(e){p.checkArgument(!l.isUndefined(e)),p.checkArgument(e instanceof c||e instanceof r||l.isString(e)),e instanceof c?e=e.toAddress():l.isString(e)&&(e=new r(e));var t=new s;return t.add(u.OP_DUP).add(u.OP_HASH160).add(e.hashBuffer).add(u.OP_EQUALVERIFY).add(u.OP_CHECKSIG),t._network=e.network,t},s.buildWitnessV0Out=function(e){p.checkArgument(!l.isUndefined(e)),p.checkArgument(e instanceof c||e instanceof r||l.isString(e)),e instanceof c?e=e.toAddress(null,r.PayToWitnessPublicKeyHash):l.isString(e)&&(e=new r(e));var t=new s;return t.add(u.OP_0).add(e.hashBuffer),t._network=e.network,t},s.buildPublicKeyOut=function(e){p.checkArgument(e instanceof c);var t=new s;return t.add(e.toBuffer()).add(u.OP_CHECKSIG),t},s.buildDataOut=function(e,t){p.checkArgument(l.isUndefined(e)||l.isString(e)||d.isBuffer(e)),l.isString(e)&&(e=g.from(e,t));t=new s;return t.add(u.OP_RETURN),l.isUndefined(e)||t.add(e),t},s.buildScriptHashOut=function(e){p.checkArgument(e instanceof s||e instanceof r&&e.isPayToScriptHash());var t=new s;return t.add(u.OP_HASH160).add(e instanceof r?e.hashBuffer:i.sha256ripemd160(e.toBuffer())).add(u.OP_EQUAL),t._network=e._network||e.network,t},s.buildPublicKeyIn=function(e,t){p.checkArgument(e instanceof a||d.isBuffer(e)),p.checkArgument(l.isUndefined(t)||l.isNumber(t)),e instanceof a&&(e=e.toBuffer());var r=new s;return r.add(d.concat([e,d.integerAsSingleByteBuffer(t||a.SIGHASH_ALL)])),r},s.buildPublicKeyHashIn=function(e,t,r){return p.checkArgument(t instanceof a||d.isBuffer(t)),p.checkArgument(l.isUndefined(r)||l.isNumber(r)),t instanceof a&&(t=t.toBuffer()),(new s).add(d.concat([t,d.integerAsSingleByteBuffer(r||a.SIGHASH_ALL)])).add(new c(e).toBuffer())},s.empty=function(){return new s},s.prototype.toScriptHashOut=function(){return s.buildScriptHashOut(this)},s.fromAddress=function(e){if((e=r(e)).isPayToScriptHash())return s.buildScriptHashOut(e);if(e.isPayToPublicKeyHash())return s.buildPublicKeyHashOut(e);if(e.isPayToWitnessPublicKeyHash())return s.buildWitnessV0Out(e);if(e.isPayToWitnessScriptHash())return s.buildWitnessV0Out(e);throw new h.Script.UnrecognizedAddress(e)},s.prototype.getAddressInfo=function(e){if(this._isInput)return this._getInputAddressInfo();if(this._isOutput)return this._getOutputAddressInfo();var t=this._getOutputAddressInfo();return t||this._getInputAddressInfo()},s.prototype._getOutputAddressInfo=function(){var e={};if(this.isScriptHashOut())e.hashBuffer=this.getData(),e.type=r.PayToScriptHash;else if(this.isPublicKeyHashOut())e.hashBuffer=this.getData(),e.type=r.PayToPublicKeyHash;else if(this.isWitnessScriptHashOut())e.hashBuffer=this.getData(),e.type=r.PayToWitnessScriptHash;else{if(!this.isWitnessPublicKeyHashOut())return!1;e.hashBuffer=this.getData(),e.type=r.PayToWitnessPublicKeyHash}return e},s.prototype._getInputAddressInfo=function(){var e={};if(this.isPublicKeyHashIn())e.hashBuffer=i.sha256ripemd160(this.chunks[1].buf),e.type=r.PayToPublicKeyHash;else{if(!this.isScriptHashIn())return!1;e.hashBuffer=i.sha256ripemd160(this.chunks[this.chunks.length-1].buf),e.type=r.PayToScriptHash}return e},s.prototype.toAddress=function(e){var t=this.getAddressInfo();return!!t&&(t.network=f.get(e)||this._network||f.defaultNetwork,new r(t))},s.prototype.findAndDelete=function(e){for(var t=e.toBuffer().toString("hex"),r=0;r<this.chunks.length;r++)t===s({chunks:[this.chunks[r]]}).toBuffer().toString("hex")&&this.chunks.splice(r,1);return this},s.prototype.checkMinimalPush=function(e){var t=this.chunks[e],e=t.buf,t=t.opcodenum;return!e||(0===e.length?t===u.OP_0:1===e.length&&1<=e[0]&&e[0]<=16?t===u.OP_1+(e[0]-1):1===e.length&&129===e[0]?t===u.OP_1NEGATE:e.length<=75?t===e.length:e.length<=255?t===u.OP_PUSHDATA1:!(e.length<=65535)||t===u.OP_PUSHDATA2)},s.prototype._decodeOP_N=function(e){if(e===u.OP_0)return 0;if(e>=u.OP_1&&e<=u.OP_16)return e-(u.OP_1-1);throw new Error("Invalid opcode: "+JSON.stringify(e))},s.prototype.getSignatureOperationsCount=function(t){t=!!l.isUndefined(t)||t;var r=this,i=0,n=u.OP_INVALIDOPCODE;return l.each(r.chunks,function(e){e=e.opcodenum;e==u.OP_CHECKSIG||e==u.OP_CHECKSIGVERIFY?i++:e!=u.OP_CHECKMULTISIG&&e!=u.OP_CHECKMULTISIGVERIFY||(t&&n>=u.OP_1&&n<=u.OP_16?i+=r._decodeOP_N(n):i+=20),n=e}),i},t.exports=s}).call(this)}).call(this,e("buffer").Buffer)},{"../address":80,"../crypto/hash":87,"../crypto/signature":90,"../encoding/bufferreader":94,"../encoding/bufferwriter":95,"../errors":97,"../networks":102,"../opcode":103,"../publickey":105,"../util/buffer":124,"../util/js":125,"../util/preconditions":126,buffer:186,lodash:318}],109:[function(e,t,r){t.exports=e("./transaction"),t.exports.Input=e("./input"),t.exports.Output=e("./output"),t.exports.UnspentOutput=e("./unspentoutput"),t.exports.Signature=e("./signature"),t.exports.Sighash=e("./sighash"),t.exports.SighashWitness=e("./sighashwitness")},{"./input":110,"./output":116,"./sighash":117,"./sighashwitness":118,"./signature":119,"./transaction":120,"./unspentoutput":121}],110:[function(e,t,r){t.exports=e("./input"),t.exports.PublicKey=e("./publickey"),t.exports.PublicKeyHash=e("./publickeyhash"),t.exports.MultiSig=e("./multisig.js"),t.exports.MultiSigScriptHash=e("./multisigscripthash.js")},{"./input":111,"./multisig.js":112,"./multisigscripthash.js":113,"./publickey":114,"./publickeyhash":115}],111:[function(m,g,e){(function(d){(function(){"use strict";var r=m("lodash"),t=m("../../util/preconditions"),i=m("../../errors"),n=m("../../encoding/bufferwriter"),a=(m("buffer"),m("../../util/buffer")),o=m("../../util/js"),s=m("../../script"),u=m("../sighash"),c=m("../output"),e=4294967295,f=Math.pow(2,31),p=Math.pow(2,22),l=Math.pow(2,16)-1;function h(e){return this instanceof h?e?this._fromObject(e):void 0:new h(e)}h.MAXINT=e,h.DEFAULT_SEQNUMBER=4294967295,h.DEFAULT_LOCKTIME_SEQNUMBER=4294967294,h.DEFAULT_RBF_SEQNUMBER=4294967293,h.SEQUENCE_LOCKTIME_TYPE_FLAG=p,Object.defineProperty(h.prototype,"script",{configurable:!1,enumerable:!0,get:function(){return this.isNull()?null:(this._script||(this._script=new s(this._scriptBuffer),this._script._isInput=!0),this._script)}}),h.fromObject=function(e){return t.checkArgument(r.isObject(e)),(new h)._fromObject(e)},h.prototype._fromObject=function(e){var t=r.isString(e.prevTxId)&&o.isHexa(e.prevTxId)?d.from(e.prevTxId,"hex"):e.prevTxId;if(this.witnesses=[],this.output=e.output?e.output instanceof c?e.output:new c(e.output):void 0,this.prevTxId=t||e.txidbuf,this.outputIndex=r.isUndefined(e.outputIndex)?e.txoutnum:e.outputIndex,this.sequenceNumber=r.isUndefined(e.sequenceNumber)?r.isUndefined(e.seqnum)?4294967295:e.seqnum:e.sequenceNumber,r.isUndefined(e.script)&&r.isUndefined(e.scriptBuffer))throw new i.Transaction.Input.MissingScript;return this.setScript(e.scriptBuffer||e.script),this},h.prototype.toObject=h.prototype.toJSON=function(){var e={prevTxId:this.prevTxId.toString("hex"),outputIndex:this.outputIndex,sequenceNumber:this.sequenceNumber,script:this._scriptBuffer.toString("hex")};return this.script&&(e.scriptString=this.script.toString()),this.output&&(e.output=this.output.toObject()),e},h.fromBufferReader=function(e){var t=new h;return t.prevTxId=e.readReverse(32),t.outputIndex=e.readUInt32LE(),t._scriptBuffer=e.readVarLengthBuffer(),t.sequenceNumber=e.readUInt32LE(),t},h.prototype.toBufferWriter=function(e){(e=e||new n).writeReverse(this.prevTxId),e.writeUInt32LE(this.outputIndex);var t=this._scriptBuffer;return e.writeVarintNum(t.length),e.write(t),e.writeUInt32LE(this.sequenceNumber),e},h.prototype.setScript=function(e){if(this._script=null,e instanceof s)this._script=e,this._script._isInput=!0,this._scriptBuffer=e.toBuffer();else if(o.isHexa(e))this._scriptBuffer=d.from(e,"hex");else if(r.isString(e))this._script=new s(e),this._script._isInput=!0,this._scriptBuffer=this._script.toBuffer();else{if(!a.isBuffer(e))throw new TypeError("Invalid argument type: script");this._scriptBuffer=d.from(e)}return this},h.prototype.getSignatures=function(){throw new i.AbstractMethodInvoked("Trying to sign unsupported output type (only P2PKH and P2SH multisig inputs are supported) for input: "+JSON.stringify(this))},h.prototype.getSatoshisBuffer=function(){return t.checkState(this.output instanceof c),t.checkState(this.output._satoshisBN),(new n).writeUInt64LEBN(this.output._satoshisBN).toBuffer()},h.prototype.isFullySigned=function(){throw new i.AbstractMethodInvoked("Input#isFullySigned")},h.prototype.isFinal=function(){return this.sequenceNumber!==h.MAXINT},h.prototype.addSignature=function(){throw new i.AbstractMethodInvoked("Input#addSignature")},h.prototype.clearSignatures=function(){throw new i.AbstractMethodInvoked("Input#clearSignatures")},h.prototype.hasWitnesses=function(){return!!(this.witnesses&&0<this.witnesses.length)},h.prototype.getWitnesses=function(){return this.witnesses},h.prototype.setWitnesses=function(e){this.witnesses=e},h.prototype.isValidSignature=function(e,t,r){return r=r||"ecdsa",t.signature.nhashtype=t.sigtype,u.verify(e,t.signature,t.publicKey,t.inputIndex,this.output.script,r)},h.prototype.isNull=function(){return"0000000000000000000000000000000000000000000000000000000000000000"===this.prevTxId.toString("hex")&&4294967295===this.outputIndex},h.prototype._estimateSize=function(){return this.toBufferWriter().toBuffer().length},h.prototype.lockForSeconds=function(e){if(t.checkArgument(r.isNumber(e)),e<0||33553920<=e)throw new i.Transaction.Input.LockTimeRange;return e=parseInt(Math.floor(e/512)),this.sequenceNumber=e|p,this},h.prototype.lockUntilBlockHeight=function(e){if(t.checkArgument(r.isNumber(e)),e<0||l<=e)throw new i.Transaction.Input.BlockHeightOutOfRange;return this.sequenceNumber=e,this},h.prototype.getLockTime=function(){return this.sequenceNumber&f?null:this.sequenceNumber&p?512*(65535&this.sequenceNumber):65535&this.sequenceNumber},g.exports=h}).call(this)}).call(this,m("buffer").Buffer)},{"../../encoding/bufferwriter":95,"../../errors":97,"../../script":106,"../../util/buffer":124,"../../util/js":125,"../../util/preconditions":126,"../output":116,"../sighash":117,buffer:186,lodash:318}],112:[function(e,t,r){"use strict";var u=e("lodash"),i=e("inherits"),o=(e("../transaction"),e("./input")),c=e("../output"),f=e("../../util/preconditions"),s=e("../../script"),p=e("../../crypto/signature"),l=e("../sighash"),n=(e("../../publickey"),e("../../util/buffer")),h=e("../signature");function a(e,t,r,i,n){n=n||{},o.apply(this,arguments);var a=this;t=t||e.publicKeys,r=r||e.threshold,i=i||e.signatures,n.noSorting?this.publicKeys=t:this.publicKeys=u.sortBy(t,function(e){return e.toString("hex")}),f.checkState(s.buildMultisigOut(this.publicKeys,r).equals(this.output.script),"Provided public keys don't match to the provided output script"),this.publicKeyIndex={},u.each(this.publicKeys,function(e,t){a.publicKeyIndex[e.toString()]=t}),this.threshold=r,this.signatures=i?this._deserializeSignatures(i):new Array(this.publicKeys.length)}i(a,o),a.prototype.toObject=function(){var e=o.prototype.toObject.apply(this,arguments);return e.threshold=this.threshold,e.publicKeys=u.map(this.publicKeys,function(e){return e.toString()}),e.signatures=this._serializeSignatures(),e},a.prototype._deserializeSignatures=function(e){return u.map(e,function(e){if(e)return new h(e)})},a.prototype._serializeSignatures=function(){return u.map(this.signatures,function(e){if(e)return e.toObject()})},a.prototype.getSignatures=function(t,r,i,n,e,a){f.checkState(this.output instanceof c),n=n||p.SIGHASH_ALL,a=a||"ecdsa";var o=this,s=[];return u.each(this.publicKeys,function(e){e.toString()===r.publicKey.toString()&&s.push(new h({publicKey:r.publicKey,prevTxId:o.prevTxId,outputIndex:o.outputIndex,inputIndex:i,signature:l.sign(t,r,n,i,o.output.script,a),sigtype:n}))}),s},a.prototype.addSignature=function(e,t,r){return f.checkState(!this.isFullySigned(),"All needed signatures have already been added"),f.checkArgument(!u.isUndefined(this.publicKeyIndex[t.publicKey.toString()],"Signature Undefined"),"Signature has no matching public key"),f.checkState(this.isValidSignature(e,t,r),"Invalid Signature"),this.signatures[this.publicKeyIndex[t.publicKey.toString()]]=t,this._updateScript(),this},a.prototype._updateScript=function(){return this.setScript(s.buildMultisigIn(this.publicKeys,this.threshold,this._createSignatures())),this},a.prototype._createSignatures=function(){return u.map(u.filter(this.signatures,function(e){return!u.isUndefined(e)}),function(e){return n.concat([e.signature.toDER(),n.integerAsSingleByteBuffer(e.sigtype)])})},a.prototype.clearSignatures=function(){this.signatures=new Array(this.publicKeys.length),this._updateScript()},a.prototype.isFullySigned=function(){return this.countSignatures()===this.threshold},a.prototype.countMissingSignatures=function(){return this.threshold-this.countSignatures()},a.prototype.countSignatures=function(){return u.reduce(this.signatures,function(e,t){return e+!!t},0)},a.prototype.publicKeysWithoutSignature=function(){var t=this;return u.filter(this.publicKeys,function(e){return!t.signatures[t.publicKeyIndex[e.toString()]]})},a.prototype.isValidSignature=function(e,t,r){return t.signature.nhashtype=t.sigtype,l.verify(e,t.signature,t.publicKey,t.inputIndex,this.output.script,r)},a.normalizeSignatures=function(i,n,a,e,t,o){return t.map(function(t){var r=null;return e=e.filter(function(e){if(r)return!0;e=new h({signature:p.fromTxFormat(e),publicKey:t,prevTxId:n.prevTxId,outputIndex:n.outputIndex,inputIndex:a,sigtype:p.SIGHASH_ALL});return e.signature.nhashtype=e.sigtype,!l.verify(i,e.signature,e.publicKey,e.inputIndex,n.output.script,o)||(r=e,!1)}),r||null})},a.OPCODES_SIZE=1,a.SIGNATURE_SIZE=73,a.prototype._estimateSize=function(){return a.OPCODES_SIZE+this.threshold*a.SIGNATURE_SIZE},t.exports=a},{"../../crypto/signature":90,"../../publickey":105,"../../script":106,"../../util/buffer":124,"../../util/preconditions":126,"../output":116,"../sighash":117,"../signature":119,"../transaction":120,"./input":111,inherits:296,lodash:318}],113:[function(u,g,e){(function(a){(function(){"use strict";var c=u("lodash"),e=u("inherits"),o=u("./input"),t=u("../output"),f=u("../../util/preconditions"),p=u("../../address"),s=u("../../script"),l=u("../../crypto/signature"),h=u("../sighash"),d=u("../sighashwitness"),r=u("../../encoding/bufferwriter"),i=u("../../util/buffer"),m=u("../signature");function n(e,t,r,i,n){n=n||{},o.apply(this,arguments);var a=this;t=t||e.publicKeys,r=r||e.threshold,i=i||e.signatures,n.noSorting?this.publicKeys=t:this.publicKeys=c.sortBy(t,function(e){return e.toString("hex")}),this.redeemScript=s.buildMultisigOut(this.publicKeys,r,n);t=s.buildWitnessMultisigOutFromScript(this.redeemScript);if(t.equals(this.output.script))this.nestedWitness=!1,this.type=p.PayToWitnessScriptHash;else if(s.buildScriptHashOut(t).equals(this.output.script))this.nestedWitness=!0,this.type=p.PayToScriptHash;else{if(!s.buildScriptHashOut(this.redeemScript).equals(this.output.script))throw new Error("Provided public keys don't hash to the provided output");this.nestedWitness=!1,this.type=p.PayToScriptHash}this.nestedWitness&&((n=new s).add(t.toBuffer()),this.setScript(n)),this.publicKeyIndex={},c.each(this.publicKeys,function(e,t){a.publicKeyIndex[e.toString()]=t}),this.threshold=r,this.signatures=i?this._deserializeSignatures(i):new Array(this.publicKeys.length)}e(n,o),n.prototype.toObject=function(){var e=o.prototype.toObject.apply(this,arguments);return e.threshold=this.threshold,e.publicKeys=c.map(this.publicKeys,function(e){return e.toString()}),e.signatures=this._serializeSignatures(),e},n.prototype._deserializeSignatures=function(e){return c.map(e,function(e){if(e)return new m(e)})},n.prototype._serializeSignatures=function(){return c.map(this.signatures,function(e){if(e)return e.toObject()})},n.prototype.getScriptCode=function(){var e=new r;if(this.redeemScript.hasCodeseparators())throw new Error("@TODO");var t=this.redeemScript.toBuffer();return e.writeVarintNum(t.length),e.write(t),e.toBuffer()},n.prototype.getSighash=function(e,t,r,i){var n,a;return this.nestedWitness||this.type===p.PayToWitnessScriptHash?(n=this.getScriptCode(),a=this.getSatoshisBuffer(),d.sighash(e,i,r,n,a)):h.sighash(e,i,r,this.redeemScript)},n.prototype.getSignatures=function(r,i,n,a,e,o){f.checkState(this.output instanceof t),a=a||l.SIGHASH_ALL,o=o||"ecdsa";var s=this,u=[];return c.each(this.publicKeys,function(e){var t;e.toString()===i.publicKey.toString()&&(t=s.nestedWitness||s.type===p.PayToWitnessScriptHash?(e=s.getScriptCode(),t=s.getSatoshisBuffer(),d.sign(r,i,a,n,e,t,o)):h.sign(r,i,a,n,s.redeemScript,o),u.push(new m({publicKey:i.publicKey,prevTxId:s.prevTxId,outputIndex:s.outputIndex,inputIndex:n,signature:t,sigtype:a})))}),u},n.prototype.addSignature=function(e,t,r){return f.checkState(!this.isFullySigned(),"All needed signatures have already been added"),f.checkArgument(!c.isUndefined(this.publicKeyIndex[t.publicKey.toString()]),"Signature has no matching public key"),f.checkState(this.isValidSignature(e,t,r),"Invalid Signature!"),this.signatures[this.publicKeyIndex[t.publicKey.toString()]]=t,this._updateScript(),this},n.prototype._updateScript=function(){if(this.nestedWitness||this.type===p.PayToWitnessScriptHash){for(var e=[a.alloc(0)],t=this._createSignatures(),r=0;r<t.length;r++)e.push(t[r]);e.push(this.redeemScript.toBuffer()),this.setWitnesses(e)}else{var i=s.buildP2SHMultisigIn(this.publicKeys,this.threshold,this._createSignatures(),{cachedMultisig:this.redeemScript});this.setScript(i)}return this},n.prototype._createSignatures=function(){return c.map(c.filter(this.signatures,function(e){return!c.isUndefined(e)}),function(e){return i.concat([e.signature.toDER(),i.integerAsSingleByteBuffer(e.sigtype)])})},n.prototype.clearSignatures=function(){this.signatures=new Array(this.publicKeys.length),this._updateScript()},n.prototype.isFullySigned=function(){return this.countSignatures()===this.threshold},n.prototype.countMissingSignatures=function(){return this.threshold-this.countSignatures()},n.prototype.countSignatures=function(){return c.reduce(this.signatures,function(e,t){return e+!!t},0)},n.prototype.publicKeysWithoutSignature=function(){var t=this;return c.filter(this.publicKeys,function(e){return!t.signatures[t.publicKeyIndex[e.toString()]]})},n.prototype.isValidSignature=function(e,t,r){if(r=r||"ecdsa",this.nestedWitness||this.type===p.PayToWitnessScriptHash){t.signature.nhashtype=t.sigtype;var i=this.getScriptCode(),n=this.getSatoshisBuffer();return d.verify(e,t.signature,t.publicKey,t.inputIndex,i,n,r)}return t.signature.nhashtype=t.sigtype,h.verify(e,t.signature,t.publicKey,t.inputIndex,this.redeemScript,r)},n.OPCODES_SIZE=7,n.SIGNATURE_SIZE=74,n.PUBKEY_SIZE=34,n.REDEEM_SCRIPT_SIZE=34,n.prototype._estimateSize=function(){var e=n.OPCODES_SIZE+this.threshold*n.SIGNATURE_SIZE+this.publicKeys.length*n.PUBKEY_SIZE;return this.type===p.PayToWitnessScriptHash?e/4:this.nestedWitness?e/4+n.REDEEM_SCRIPT_SIZE:e},g.exports=n}).call(this)}).call(this,u("buffer").Buffer)},{"../../address":80,"../../crypto/signature":90,"../../encoding/bufferwriter":95,"../../script":106,"../../util/buffer":124,"../../util/preconditions":126,"../output":116,"../sighash":117,"../sighashwitness":118,"../signature":119,"./input":111,buffer:186,inherits:296,lodash:318}],114:[function(e,t,r){"use strict";var i=e("inherits"),s=e("../../util/preconditions"),n=(e("../../util/buffer"),e("./input")),u=e("../output"),c=e("../sighash"),a=e("../../script"),f=e("../../crypto/signature"),p=e("../signature");function o(){n.apply(this,arguments)}i(o,n),o.prototype.getSignatures=function(e,t,r,i,n,a){s.checkState(this.output instanceof u),i=i||f.SIGHASH_ALL;var o=t.toPublicKey();return o.toString()===this.output.script.getPublicKey().toString("hex")?[new p({publicKey:o,prevTxId:this.prevTxId,outputIndex:this.outputIndex,inputIndex:r,signature:c.sign(e,t,i,r,this.output.script,a),sigtype:i})]:[]},o.prototype.addSignature=function(e,t,r){return s.checkState(this.isValidSignature(e,t,r),"Signature is invalid"),this.setScript(a.buildPublicKeyIn(t.signature.toDER(),t.sigtype)),this},o.prototype.clearSignatures=function(){return this.setScript(a.empty()),this},o.prototype.isFullySigned=function(){return this.script.isPublicKeyIn()},o.SCRIPT_MAX_SIZE=73,o.prototype._estimateSize=function(){return o.SCRIPT_MAX_SIZE},t.exports=o},{"../../crypto/signature":90,"../../script":106,"../../util/buffer":124,"../../util/preconditions":126,"../output":116,"../sighash":117,"../signature":119,"./input":111,inherits:296}],115:[function(e,t,r){"use strict";var i=e("inherits"),s=e("../../util/preconditions"),u=e("../../util/buffer"),c=(e("../../address"),e("../../crypto/hash")),n=e("./input"),f=e("../output"),p=e("../sighash"),l=e("../sighashwitness"),a=e("../../encoding/bufferwriter"),u=e("../../util/buffer"),o=e("../../script"),h=e("../../crypto/signature"),d=e("../signature");function m(){n.apply(this,arguments)}i(m,n),m.prototype.getRedeemScript=function(e){var t;return this.redeemScript||(t=o.buildWitnessV0Out(e),o.buildScriptHashOut(t).equals(this.output.script)&&((e=new o).add(t.toBuffer()),this.setScript(e),this.redeemScript=t)),this.redeemScript},m.prototype.getScriptCode=function(e){var t=new a,e=this.output.script.isScriptHashOut()?this.getRedeemScript(e):this.output.script,e=o.buildPublicKeyHashOut(e.toAddress()).toBuffer();return t.writeVarintNum(e.length),t.write(e),t.toBuffer()},m.prototype.getSighash=function(e,t,r,i){var n=this.getScriptCode(t),t=this.getSatoshisBuffer();return l.sighash(e,i,r,n,t)},m.prototype.getSignatures=function(e,t,r,i,n,a){var o;return s.checkState(this.output instanceof f),n=n||c.sha256ripemd160(t.publicKey.toBuffer()),i=i||h.SIGHASH_ALL,a=a||"ecdsa",(o=this.output.script.isScriptHashOut()?this.getRedeemScript(t.publicKey):this.output.script)&&u.equals(n,o.getPublicKeyHash())?(a=o.isWitnessPublicKeyHashOut()?(n=this.getSatoshisBuffer(),o=this.getScriptCode(t.publicKey),l.sign(e,t,i,r,o,n,a)):p.sign(e,t,i,r,this.output.script,a),[new d({publicKey:t.publicKey,prevTxId:this.prevTxId,outputIndex:this.outputIndex,inputIndex:r,signature:a,sigtype:i})]):[]},m.prototype.addSignature=function(e,t,r){return s.checkState(this.isValidSignature(e,t,r),"Signature is invalid"),this.output.script.isWitnessPublicKeyHashOut()||this.output.script.isScriptHashOut()?this.setWitnesses([u.concat([t.signature.toDER(),u.integerAsSingleByteBuffer(t.sigtype)]),t.publicKey.toBuffer()]):this.setScript(o.buildPublicKeyHashIn(t.publicKey,t.signature.toDER(),t.sigtype)),this},m.prototype.clearSignatures=function(){return this.setScript(o.empty()),this.setWitnesses([]),this},m.prototype.isFullySigned=function(){return this.script.isPublicKeyHashIn()||this.hasWitnesses()},m.prototype.isValidSignature=function(e,t,r){if(t.signature.nhashtype=t.sigtype,this.output.script.isWitnessPublicKeyHashOut()||this.output.script.isScriptHashOut()){var i=this.getScriptCode(),n=this.getSatoshisBuffer();return l.verify(e,t.signature,t.publicKey,t.inputIndex,i,n,r)}return p.verify(e,t.signature,t.publicKey,t.inputIndex,this.output.script,r)},m.SCRIPT_MAX_SIZE=107,m.REDEEM_SCRIPT_SIZE=22,m.prototype._estimateSize=function(){var e=m.SCRIPT_MAX_SIZE/4;return this.output.script.isWitnessPublicKeyHashOut()?e:this.output.script.isScriptHashOut()?e+m.REDEEM_SCRIPT_SIZE:m.SCRIPT_MAX_SIZE},t.exports=m},{"../../address":80,"../../crypto/hash":87,"../../crypto/signature":90,"../../encoding/bufferwriter":95,"../../script":106,"../../util/buffer":124,"../../util/preconditions":126,"../output":116,"../sighash":117,"../sighashwitness":118,"../signature":119,"./input":111,inherits:296}],116:[function(e,p,t){(function(f){(function(){"use strict";var t=e("lodash"),r=e("../crypto/bn"),i=(e("buffer"),e("../util/buffer")),n=e("../util/js"),a=e("../encoding/bufferwriter"),o=e("../script"),s=e("../util/preconditions"),u=e("../errors");function c(e){if(!(this instanceof c))return new c(e);if(!t.isObject(e))throw new TypeError("Unrecognized argument for Output");this.satoshis=e.satoshis,i.isBuffer(e.script)?this._scriptBuffer=e.script:(e=t.isString(e.script)&&n.isHexa(e.script)?f.from(e.script,"hex"):e.script,this.setScript(e))}Object.defineProperty(c.prototype,"script",{configurable:!1,enumerable:!0,get:function(){return this._script||(this.setScriptFromBuffer(this._scriptBuffer),this._script)}}),Object.defineProperty(c.prototype,"satoshis",{configurable:!1,enumerable:!0,get:function(){return this._satoshis},set:function(e){e instanceof r?(this._satoshisBN=e,this._satoshis=e.toNumber()):t.isString(e)?(this._satoshis=parseInt(e),this._satoshisBN=r.fromNumber(this._satoshis)):(s.checkArgument(n.isNaturalNumber(e),"Output satoshis is not a natural number"),this._satoshisBN=r.fromNumber(e),this._satoshis=e),s.checkState(n.isNaturalNumber(this._satoshis),"Output satoshis is not a natural number")}}),c.prototype.invalidSatoshis=function(){return 9007199254740991<this._satoshis?"transaction txout satoshis greater than max safe integer":this._satoshis!==this._satoshisBN.toNumber()?"transaction txout satoshis has corrupted value":this._satoshis<0&&"transaction txout negative"},c.prototype.toObject=c.prototype.toJSON=function(){var e={satoshis:this.satoshis};return e.script=this._scriptBuffer.toString("hex"),e},c.fromObject=function(e){return new c(e)},c.prototype.setScriptFromBuffer=function(e){this._scriptBuffer=e;try{this._script=o.fromBuffer(this._scriptBuffer),this._script._isOutput=!0}catch(e){if(!(e instanceof u.Script.InvalidBuffer))throw e;this._script=null}},c.prototype.setScript=function(e){if(e instanceof o)this._scriptBuffer=e.toBuffer(),this._script=e,this._script._isOutput=!0;else if(t.isString(e))this._script=o.fromString(e),this._scriptBuffer=this._script.toBuffer(),this._script._isOutput=!0;else{if(!i.isBuffer(e))throw new TypeError("Invalid argument type: script");this.setScriptFromBuffer(e)}return this},c.prototype.inspect=function(){var e=this.script?this.script.inspect():this._scriptBuffer.toString("hex");return"<Output ("+this.satoshis+" sats) "+e+">"},c.fromBufferReader=function(e){var t={};t.satoshis=e.readUInt64LEBN();var r=e.readVarintNum();return t.script=0!==r?e.read(r):f.from([]),new c(t)},c.prototype.toBufferWriter=function(e){(e=e||new a).writeUInt64LEBN(this._satoshisBN);var t=this._scriptBuffer;return e.writeVarintNum(t.length),e.write(t),e},p.exports=c}).call(this)}).call(this,e("buffer").Buffer)},{"../crypto/bn":85,"../encoding/bufferwriter":95,"../errors":97,"../script":106,"../util/buffer":124,"../util/js":125,"../util/preconditions":126,buffer:186,lodash:318}],117:[function(y,e,t){(function(b){(function(){"use strict";y("buffer");function o(e,t,r,i){var n,a=y("./transaction"),o=y("./input"),s=a.shallowCopy(e);for((i=new c(i)).removeCodeseparators(),n=0;n<s.inputs.length;n++)s.inputs[n]=new o(s.inputs[n]).setScript(c.empty());if(s.inputs[r]=new o(s.inputs[r]).setScript(i),(31&t)===u.SIGHASH_NONE||(31&t)===u.SIGHASH_SINGLE)for(n=0;n<s.inputs.length;n++)n!==r&&(s.inputs[n].sequenceNumber=0);if((31&t)===u.SIGHASH_NONE)s.outputs=[];else if((31&t)===u.SIGHASH_SINGLE){if(r>=s.outputs.length)return b.from("0000000000000000000000000000000000000000000000000000000000000001","hex");for(s.outputs.length=r+1,n=0;n<r;n++)s.outputs[n]=new f({satoshis:h.fromBuffer(b.from("ffffffffffffffff","hex")),script:c.empty()})}return t&u.SIGHASH_ANYONECANPAY&&(s.inputs=[s.inputs[r]]),t=(new l).write(s.toBuffer()).writeInt32LE(t).toBuffer(),t=d.sha256sha256(t),t=new p(t).readReverse()}var u=y("../crypto/signature"),c=y("../script"),f=y("./output"),p=y("../encoding/bufferreader"),l=y("../encoding/bufferwriter"),h=y("../crypto/bn"),d=y("../crypto/hash"),s=y("../crypto/ecdsa"),m=y("../util/preconditions"),g=y("lodash");e.exports={sighash:o,sign:function(e,t,r,i,n,a){if("ecdsa"!==(a=a||"ecdsa"))throw new Error("signingMethod not supported ",a);return n=o(e,r,i,n),s.sign(n,t,"little").set({nhashtype:r})},verify:function(e,t,r,i,n,a){if(m.checkArgument(!g.isUndefined(e),"Transaction Undefined"),m.checkArgument(!g.isUndefined(t)&&!g.isUndefined(t.nhashtype),"Signature Undefined"),"ecdsa"!==(a=a||"ecdsa"))throw new Error("signingMethod not supported ",a);return n=o(e,t.nhashtype,i,n),s.verify(n,t,r,"little")}}}).call(this)}).call(this,y("buffer").Buffer)},{"../crypto/bn":85,"../crypto/ecdsa":86,"../crypto/hash":87,"../crypto/signature":90,"../encoding/bufferreader":94,"../encoding/bufferwriter":95,"../script":106,"../util/preconditions":126,"./input":110,"./output":116,"./transaction":120,buffer:186,lodash:318}],118:[function(e,t,r){(function(k){(function(){"use strict";function s(e,t,r,i,n){var a,o;if(!(t&y.SIGHASH_ANYONECANPAY)){for(var s=[],u=0;u<e.inputs.length;u++){var c=e.inputs[u],f=new v(c.prevTxId).readReverse();s.push(f);f=k.alloc(4);f.writeUInt32LE(c.outputIndex,0),s.push(f)}a=w.sha256sha256(k.concat(s))}if(!(t&y.SIGHASH_ANYONECANPAY)&&(31&t)!==y.SIGHASH_SINGLE&&(31&t)!==y.SIGHASH_NONE){for(var p=[],l=0;l<e.inputs.length;l++){var h=k.alloc(4);h.writeUInt32LE(e.inputs[l].sequenceNumber,0),p.push(h)}b=w.sha256sha256(k.concat(p))}var d=new _;if((31&t)!==y.SIGHASH_SINGLE&&(31&t)!==y.SIGHASH_NONE){for(var m=0;m<e.outputs.length;m++)e.outputs[m].toBufferWriter(d);o=w.sha256sha256(d.toBuffer())}else(31&t)===y.SIGHASH_SINGLE&&r<e.outputs.length&&(e.outputs[r].toBufferWriter(d),o=w.sha256sha256(d.toBuffer()));var g=new _;g.writeUInt32LE(e.version),g.write(a),g.write(b);var b=new v(e.inputs[r].prevTxId).readReverse();return g.write(b),g.writeUInt32LE(e.inputs[r].outputIndex),g.write(i),g.write(n),g.writeUInt32LE(e.inputs[r].sequenceNumber),g.write(o),g.writeUInt32LE(e.nLockTime),g.writeInt32LE(t),w.sha256sha256(g.toBuffer())}var y=e("../crypto/signature"),v=(e("../script"),e("./output"),e("../encoding/bufferreader")),_=e("../encoding/bufferwriter"),w=(e("../crypto/bn"),e("../crypto/hash")),u=e("../crypto/ecdsa"),c=e("../util/preconditions"),f=e("lodash");t.exports={sighash:s,sign:function(e,t,r,i,n,a,o){if("ecdsa"!==(o=o||"ecdsa"))throw new Error("signingMethod not supported ",o);return a=s(e,r,i,n,a),u.sign(a,t).set({nhashtype:r})},verify:function(e,t,r,i,n,a,o){if(c.checkArgument(!f.isUndefined(e)),c.checkArgument(!f.isUndefined(t)&&!f.isUndefined(t.nhashtype)),"ecdsa"!==(o=o||"ecdsa"))throw new Error("signingMethod not supported ",o);return a=s(e,t.nhashtype,i,n,a),u.verify(a,t,r)}}}).call(this)}).call(this,e("buffer").Buffer)},{"../crypto/bn":85,"../crypto/ecdsa":86,"../crypto/hash":87,"../crypto/signature":90,"../encoding/bufferreader":94,"../encoding/bufferwriter":95,"../script":106,"../util/preconditions":126,"./output":116,buffer:186,lodash:318}],119:[function(f,p,e){(function(c){(function(){"use strict";var t=f("lodash"),r=f("../util/preconditions"),e=f("inherits"),i=f("../util/buffer"),n=f("../util/js"),a=f("../publickey"),o=f("../errors"),s=f("../crypto/signature");function u(e){if(!(this instanceof u))return new u(e);if(e instanceof u)return e;if(t.isObject(e))return this._fromObject(e);throw new o.InvalidArgument("TransactionSignatures must be instantiated from an object")}e(u,s),u.prototype._fromObject=function(e){return this._checkObjectArgs(e),this.publicKey=new a(e.publicKey),this.prevTxId=i.isBuffer(e.prevTxId)?e.prevTxId:c.from(e.prevTxId,"hex"),this.outputIndex=e.outputIndex,this.inputIndex=e.inputIndex,this.signature=e.signature instanceof s?e.signature:i.isBuffer(e.signature)?s.fromBuffer(e.signature):s.fromString(e.signature),this.sigtype=e.sigtype,this},u.prototype._checkObjectArgs=function(e){r.checkArgument(a(e.publicKey),"publicKey"),r.checkArgument(!t.isUndefined(e.inputIndex),"inputIndex"),r.checkArgument(!t.isUndefined(e.outputIndex),"outputIndex"),r.checkState(t.isNumber(e.inputIndex),"inputIndex must be a number"),r.checkState(t.isNumber(e.outputIndex),"outputIndex must be a number"),r.checkArgument(e.signature,"signature"),r.checkArgument(e.prevTxId,"prevTxId"),r.checkState(e.signature instanceof s||i.isBuffer(e.signature)||n.isHexa(e.signature),"signature must be a buffer or hexa value"),r.checkState(i.isBuffer(e.prevTxId)||n.isHexa(e.prevTxId),"prevTxId must be a buffer or hexa value"),r.checkArgument(e.sigtype,"sigtype"),r.checkState(t.isNumber(e.sigtype),"sigtype must be a number")},u.prototype.toObject=u.prototype.toJSON=function(){return{publicKey:this.publicKey.toString(),prevTxId:this.prevTxId.toString("hex"),outputIndex:this.outputIndex,inputIndex:this.inputIndex,signature:this.signature.toString(),sigtype:this.sigtype}},u.fromObject=function(e){return r.checkArgument(e),new u(e)},p.exports=u}).call(this)}).call(this,f("buffer").Buffer)},{"../crypto/signature":90,"../errors":97,"../publickey":105,"../util/buffer":124,"../util/js":125,"../util/preconditions":126,buffer:186,inherits:296,lodash:318}],120:[function(P,I,e){(function(A){(function(){"use strict";var u=P("lodash"),l=P("../util/preconditions"),t=P("buffer"),r=A.compare||P("buffer-compare"),a=P("../errors"),i=P("../util/buffer"),s=P("../util/js"),n=P("../encoding/bufferreader"),c=P("../encoding/bufferwriter"),e=P("../crypto/hash"),f=P("../crypto/signature"),p=P("./sighash"),h=P("./sighashwitness"),o=P("../address"),d=P("./unspentoutput"),m=P("./input"),g=m.PublicKeyHash,b=m.PublicKey,y=m.MultiSigScriptHash,v=m.MultiSig,_=P("./output"),w=P("../script"),k=P("../privatekey"),x=P("../crypto/bn");function S(e,t){if(!(this instanceof S))return new S(e);if(this.inputs=[],this.outputs=[],this._inputAmount=void 0,this._outputAmount=void 0,e){if(e instanceof S)return S.shallowCopy(e);if(s.isHexa(e))this.fromString(e);else if(i.isBuffer(e))this.fromBuffer(e);else{if(!u.isObject(e))throw new a.InvalidArgument("Must provide an object or string to deserialize a transaction");this.fromObject(e,t)}}else this._newTransaction()}S.DUST_AMOUNT=546,S.FEE_SECURITY_MARGIN=150,S.MAX_MONEY=21e14,S.NLOCKTIME_BLOCKHEIGHT_LIMIT=5e8,S.NLOCKTIME_MAX_VALUE=4294967295,S.FEE_PER_KB=1e5,S.CHANGE_OUTPUT_MAX_SIZE=62,S.MAXIMUM_EXTRA_SIZE=26;var j={configurable:!(S.shallowCopy=function(e){return new S(e.toBuffer())}),enumerable:!0,get:function(){return this._hash=new n(this._getHash()).readReverse().toString("hex"),this._hash}},E={configurable:!1,enumerable:!0,get:function(){return new n(this._getWitnessHash()).readReverse().toString("hex")}};Object.defineProperty(S.prototype,"witnessHash",E),Object.defineProperty(S.prototype,"hash",j),Object.defineProperty(S.prototype,"id",j);j={configurable:!1,enumerable:!0,get:function(){return this._getInputAmount()}};Object.defineProperty(S.prototype,"inputAmount",j),j.get=function(){return this._getOutputAmount()},Object.defineProperty(S.prototype,"outputAmount",j),S.prototype._getHash=function(){return e.sha256sha256(this.toBuffer(!0))},S.prototype._getWitnessHash=function(){return e.sha256sha256(this.toBuffer(!1))},S.prototype.serialize=function(e){return!0===e||e&&e.disableAll?this.uncheckedSerialize():this.checkedSerialize(e)},S.prototype.uncheckedSerialize=S.prototype.toString=function(){return this.toBuffer().toString("hex")},S.prototype.checkedSerialize=function(e){e=this.getSerializationError(e);if(e)throw e.message+=" - For more information please see: https://bitcore.io/api/lib/transaction#serialization-checks",e;return this.uncheckedSerialize()},S.prototype.invalidSatoshis=function(){for(var e=!1,t=0;t<this.outputs.length;t++)this.outputs[t].invalidSatoshis()&&(e=!0);return e},S.prototype.getSerializationError=function(e){if(e=e||{},this.invalidSatoshis())return new a.Transaction.InvalidSatoshis;var t,r=this._getUnspentValue();return r<0?e.disableMoreOutputThanInput||(t=new a.Transaction.InvalidOutputAmountSum):t=this._hasFeeError(e,r),t||this._hasDustOutputs(e)||this._isMissingSignatures(e)},S.prototype._hasFeeError=function(e,t){if(!u.isUndefined(this._fee)&&this._fee!==t)return new a.Transaction.FeeError.Different("Unspent value is "+t+" but specified fee is "+this._fee);if(!e.disableLargeFees){var r=Math.floor(S.FEE_SECURITY_MARGIN*this._estimateFee());if(r<t)return this._missingChange()?new a.Transaction.ChangeAddressMissing("Fee is too large and no change address was provided"):new a.Transaction.FeeError.TooLarge("expected less than "+r+" but got "+t)}if(!e.disableSmallFees){e=Math.ceil(this._estimateFee()/S.FEE_SECURITY_MARGIN);if(t<e)return new a.Transaction.FeeError.TooSmall("expected more than "+e+" but got "+t)}},S.prototype._missingChange=function(){return!this._changeScript},S.prototype._hasDustOutputs=function(e){var t,r;if(!e.disableDustOutputs)for(t in this.outputs)if((r=this.outputs[t]).satoshis<S.DUST_AMOUNT&&!r.script.isDataOut())return new a.Transaction.DustOutputs},S.prototype._isMissingSignatures=function(e){if(!e.disableIsFullySigned)return this.isFullySigned()?void 0:new a.Transaction.MissingSignatures},S.prototype.inspect=function(){return"<Transaction: "+this.uncheckedSerialize()+">"},S.prototype.toBuffer=function(e){var t=new c;return this.toBufferWriter(t,e).toBuffer()},S.prototype.hasWitnesses=function(){for(var e=0;e<this.inputs.length;e++)if(this.inputs[e].hasWitnesses())return!0;return!1},S.prototype.toBufferWriter=function(i,e){i.writeInt32LE(this.version);var t=this.hasWitnesses();return t&&!e&&i.write(A.from("0001","hex")),i.writeVarintNum(this.inputs.length),u.each(this.inputs,function(e){e.toBufferWriter(i)}),i.writeVarintNum(this.outputs.length),u.each(this.outputs,function(e){e.toBufferWriter(i)}),t&&!e&&u.each(this.inputs,function(e){var t=e.getWitnesses();i.writeVarintNum(t.length);for(var r=0;r<t.length;r++)i.writeVarintNum(t[r].length),i.write(t[r])}),i.writeUInt32LE(this.nLockTime),i},S.prototype.fromBuffer=function(e){e=new n(e);return this.fromBufferReader(e)},S.prototype.fromBufferReader=function(e){l.checkArgument(!e.finished(),"No transaction data received"),this.version=e.readInt32LE();var t=e.readVarintNum(),r=!1;0===t&&0!==e.buf[e.pos]&&(e.pos+=1,r=!0,t=e.readVarintNum());for(var i=0;i<t;i++){var n=m.fromBufferReader(e);this.inputs.push(n)}for(var a=e.readVarintNum(),o=0;o<a;o++)this.outputs.push(_.fromBufferReader(e));if(r)for(var s=0;s<t;s++){for(var u=e.readVarintNum(),c=[],f=0;f<u;f++){var p=e.readVarintNum(),p=e.read(p);c.push(p)}this.inputs[s].setWitnesses(c)}return this.nLockTime=e.readUInt32LE(),this},S.prototype.toObject=S.prototype.toJSON=function(){var t=[];this.inputs.forEach(function(e){t.push(e.toObject())});var r=[];this.outputs.forEach(function(e){r.push(e.toObject())});var e={hash:this.hash,version:this.version,inputs:t,outputs:r,nLockTime:this.nLockTime};return this._changeScript&&(e.changeScript=this._changeScript.toString()),u.isUndefined(this._changeIndex)||(e.changeIndex=this._changeIndex),u.isUndefined(this._fee)||(e.fee=this._fee),e},S.prototype.fromObject=function(e,i){l.checkArgument(u.isObject(e)||e instanceof S);var n=this,t=e instanceof S?t.toObject():e;return u.each(t.inputs,function(e){if(e.output&&e.output.script){var t,r=new w(e.output.script);if((r.isScriptHashOut()||r.isWitnessScriptHashOut())&&e.publicKeys&&e.threshold)t=new m.MultiSigScriptHash(e,e.publicKeys,e.threshold,e.signatures,i);else if(r.isPublicKeyHashOut()||r.isWitnessPublicKeyHashOut()||r.isScriptHashOut())t=new m.PublicKeyHash(e);else{if(!r.isPublicKeyOut())throw new a.Transaction.Input.UnsupportedScript(e.output.script);t=new m.PublicKey(e)}n.addInput(t)}else n.uncheckedAddInput(new m(e))}),u.each(t.outputs,function(e){n.addOutput(new _(e))}),t.changeIndex&&(this._changeIndex=t.changeIndex),t.changeScript&&(this._changeScript=new w(t.changeScript)),t.fee&&(this._fee=t.fee),this.nLockTime=t.nLockTime,this.version=t.version,this._checkConsistency(e),this},S.prototype._checkConsistency=function(e){u.isUndefined(this._changeIndex)||(l.checkState(this._changeScript,"Change script is expected."),l.checkState(this.outputs[this._changeIndex],"Change index points to undefined output."),l.checkState(this.outputs[this._changeIndex].script.toString()===this._changeScript.toString(),"Change output has an unexpected script.")),e&&e.hash&&l.checkState(e.hash===this.hash,"Hash in object does not match transaction hash.")},S.prototype.lockUntilDate=function(e){if(l.checkArgument(e),u.isNumber(e)&&e<S.NLOCKTIME_BLOCKHEIGHT_LIMIT)throw new a.Transaction.LockTimeTooEarly;u.isDate(e)&&(e=e.getTime()/1e3);for(var t=0;t<this.inputs.length;t++)this.inputs[t].sequenceNumber===m.DEFAULT_SEQNUMBER&&(this.inputs[t].sequenceNumber=m.DEFAULT_LOCKTIME_SEQNUMBER);return this.nLockTime=e,this},S.prototype.lockUntilBlockHeight=function(e){if(l.checkArgument(u.isNumber(e)),e>=S.NLOCKTIME_BLOCKHEIGHT_LIMIT)throw new a.Transaction.BlockHeightTooHigh;if(e<0)throw new a.Transaction.NLockTimeOutOfRange;for(var t=0;t<this.inputs.length;t++)this.inputs[t].sequenceNumber===m.DEFAULT_SEQNUMBER&&(this.inputs[t].sequenceNumber=m.DEFAULT_LOCKTIME_SEQNUMBER);return this.nLockTime=e,this},S.prototype.getLockTime=function(){return this.nLockTime?this.nLockTime<S.NLOCKTIME_BLOCKHEIGHT_LIMIT?this.nLockTime:new Date(1e3*this.nLockTime):null},S.prototype.fromString=function(e){this.fromBuffer(t.Buffer.from(e,"hex"))},S.prototype._newTransaction=function(){this.version=2,this.nLockTime=0},S.prototype.from=function(t,r,i,n){if(u.isArray(t)){var a=this;return u.each(t,function(e){a.from(e,r,i,n)}),this}return u.some(this.inputs,function(e){return e.prevTxId.toString("hex")===t.txId&&e.outputIndex===t.outputIndex})||(r&&i?this._fromMultisigUtxo(t,r,i,n):this._fromNonP2SH(t)),this},S.prototype.associateInputs=function(e,r,i,n){var a,o=this,s=[],t=_createForOfIteratorHelper(e);try{for(t.s();!(a=t.n()).done;)!function(){var t=a.value,e=o.inputs.findIndex(function(e){return e.prevTxId.toString("hex")===t.txId&&e.outputIndex===t.outputIndex});s.push(e),0<=e&&(o.inputs[e]=o._getInputFrom(t,r,i,n))}()}catch(e){t.e(e)}finally{t.f()}return s},S.prototype._selectInputType=function(e,t,r){var i;return e=new d(e),t&&r?e.script.isMultisigOut()?i=v:(e.script.isScriptHashOut()||e.script.isWitnessScriptHashOut())&&(i=y):i=e.script.isPublicKeyHashOut()||e.script.isWitnessPublicKeyHashOut()||e.script.isScriptHashOut()?g:e.script.isPublicKeyOut()?b:m,i},S.prototype._getInputFrom=function(e,t,r,i){return e=new d(e),_construct(this._selectInputType(e,t,r),[{output:new _({script:e.script,satoshis:e.satoshis}),prevTxId:e.txId,outputIndex:e.outputIndex,sequenceNumber:e.sequenceNumber,script:w.empty()}].concat(t&&r?[t,r,!1,i]:[]))},S.prototype._fromNonP2SH=function(e){e=this._getInputFrom(e);this.addInput(e)},S.prototype._fromMultisigUtxo=function(e,t,r,i){l.checkArgument(r<=t.length,"Number of required signatures must be greater than the number of public keys");i=this._getInputFrom(e,t,r,i);this.addInput(i)},S.prototype.addInput=function(e,t,r){if(l.checkArgumentType(e,m,"input"),!e.output&&(u.isUndefined(t)||u.isUndefined(r)))throw new a.Transaction.NeedMoreInfo("Need information about the UTXO script and satoshis");return e.output||!t||u.isUndefined(r)||(t=t instanceof w?t:new w(t),l.checkArgumentType(r,"number","satoshis"),e.output=new _({script:t,satoshis:r})),this.uncheckedAddInput(e)},S.prototype.uncheckedAddInput=function(e){return l.checkArgumentType(e,m,"input"),this.inputs.push(e),this._inputAmount=void 0,this._updateChangeOutput(),this},S.prototype.hasAllUtxoInfo=function(){return u.every(this.inputs.map(function(e){return!!e.output}))},S.prototype.fee=function(e){return l.checkArgument(u.isNumber(e),"amount must be a number"),this._fee=e,this._updateChangeOutput(),this},S.prototype.feePerKb=function(e){return l.checkArgument(u.isNumber(e),"amount must be a number"),this._feePerKb=e,this._updateChangeOutput(),this},S.prototype.feePerByte=function(e){return l.checkArgument(u.isNumber(e),"amount must be a number"),this._feePerByte=e,this._updateChangeOutput(),this},S.prototype.change=function(e){return l.checkArgument(e,"address is required"),this._changeScript=w.fromAddress(e),this._updateChangeOutput(),this},S.prototype.getChangeOutput=function(){return u.isUndefined(this._changeIndex)?null:this.outputs[this._changeIndex]},S.prototype.to=function(e,t){if(u.isArray(e)){var r=this;return u.each(e,function(e){r.to(e.address,e.satoshis)}),this}return l.checkArgument(s.isNaturalNumber(t),"Amount is expected to be a positive integer"),this.addOutput(new _({script:w(new o(e)),satoshis:t})),this},S.prototype.addData=function(e){return this.addOutput(new _({script:w.buildDataOut(e),satoshis:0})),this},S.prototype.addOutput=function(e){return l.checkArgumentType(e,_,"output"),this._addOutput(e),this._updateChangeOutput(),this},S.prototype.clearOutputs=function(){return this.outputs=[],this._clearSignatures(),this._outputAmount=void 0,this._changeIndex=void 0,this._updateChangeOutput(),this},S.prototype._addOutput=function(e){this.outputs.push(e),this._outputAmount=void 0},S.prototype._getOutputAmount=function(){var t;return u.isUndefined(this._outputAmount)&&((t=this)._outputAmount=0,u.each(this.outputs,function(e){t._outputAmount+=e.satoshis})),this._outputAmount},S.prototype._getInputAmount=function(){return u.isUndefined(this._inputAmount)&&(this._inputAmount=u.sumBy(this.inputs,function(e){if(u.isUndefined(e.output))throw new a.Transaction.Input.MissingPreviousOutput;return e.output.satoshis})),this._inputAmount},S.prototype._updateChangeOutput=function(){var e;this._changeScript&&(this._clearSignatures(),u.isUndefined(this._changeIndex)||this._removeOutput(this._changeIndex),0<(e=this._getUnspentValue()-this.getFee())?(this._changeIndex=this.outputs.length,this._addOutput(new _({script:this._changeScript,satoshis:e}))):this._changeIndex=void 0)},S.prototype.getFee=function(){return this.isCoinbase()?0:u.isUndefined(this._fee)?this._changeScript?this._estimateFee():this._getUnspentValue():this._fee},S.prototype._estimateFee=function(){var e=this._estimateSize(),t=this._getUnspentValue(),r=this._feePerByte||(this._feePerKb||S.FEE_PER_KB)/1e3;function i(e){return e*r}var n=Math.ceil(e*r),e=Math.ceil(e*r+i(S.CHANGE_OUTPUT_MAX_SIZE));return!this._changeScript||t<=e?n:e},S.prototype._getUnspentValue=function(){return this._getInputAmount()-this._getOutputAmount()},S.prototype._clearSignatures=function(){u.each(this.inputs,function(e){e.clearSignatures()})},S.prototype._estimateSize=function(){var t=S.MAXIMUM_EXTRA_SIZE;return u.each(this.inputs,function(e){t+=36,t+=e._estimateSize()}),u.each(this.outputs,function(e){t+=e.script.toBuffer().length+9}),Math.ceil(t)},S.prototype._removeOutput=function(e){e=this.outputs[e];this.outputs=u.without(this.outputs,e),this._outputAmount=void 0},S.prototype.removeOutput=function(e){this._removeOutput(e),this._updateChangeOutput()},S.prototype.sort=function(){return this.sortInputs(function(e){var e=Array.prototype.concat.apply([],e),t=0;return e.forEach(function(e){e.i=t++}),e.sort(function(e,t){return r(e.prevTxId,t.prevTxId)||e.outputIndex-t.outputIndex||e.i-t.i}),e}),this.sortOutputs(function(e){var e=Array.prototype.concat.apply([],e),t=0;return e.forEach(function(e){e.i=t++}),e.sort(function(e,t){return e.satoshis-t.satoshis||r(e.script.toBuffer(),t.script.toBuffer())||e.i-t.i}),e}),this},S.prototype.shuffleOutputs=function(){return this.sortOutputs(u.shuffle)},S.prototype.sortOutputs=function(e){e=e(this.outputs);return this._newOutputOrder(e)},S.prototype.sortInputs=function(e){return this.inputs=e(this.inputs),this._clearSignatures(),this},S.prototype._newOutputOrder=function(e){var t;if(this.outputs.length!==e.length||0!==u.difference(this.outputs,e).length)throw new a.Transaction.InvalidSorting;return u.isUndefined(this._changeIndex)||(t=this.outputs[this._changeIndex],this._changeIndex=u.findIndex(e,t)),this.outputs=e,this},S.prototype.removeInput=function(t,r){var e=!r&&u.isNumber(t)?t:u.findIndex(this.inputs,function(e){return e.prevTxId.toString("hex")===t&&e.outputIndex===r});if(e<0||e>=this.inputs.length)throw new a.Transaction.InvalidIndex(e,this.inputs.length);e=this.inputs[e];this.inputs=u.without(this.inputs,e),this._inputAmount=void 0,this._updateChangeOutput()},S.prototype.sign=function(e,t,r){l.checkState(this.hasAllUtxoInfo(),"Not all utxo information is available to sign the transaction.");var i=this;return u.isArray(e)?u.each(e,function(e){i.sign(e,t,r)}):u.each(this.getSignatures(e,t,r),function(e){i.applySignature(e,r)}),this},S.prototype.getSignatures=function(r,i,n){r=new k(r),i=i||f.SIGHASH_ALL;var a=this,o=[],s=e.sha256ripemd160(r.publicKey.toBuffer());return u.each(this.inputs,function(e,t){u.each(e.getSignatures(a,r,t,i,s,n),function(e){o.push(e)})}),o},S.prototype.applySignature=function(e,t){return this.inputs[e.inputIndex].addSignature(this,e,t),this},S.prototype.isFullySigned=function(){return u.each(this.inputs,function(e){if(e.isFullySigned===m.prototype.isFullySigned)throw new a.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction")}),u.every(u.map(this.inputs,function(e){return e.isFullySigned()}))},S.prototype.isValidSignature=function(e,t){if(this.inputs[e.inputIndex].isValidSignature===m.prototype.isValidSignature)throw new a.Transaction.UnableToVerifySignature("Unrecognized script kind, or not enough information to execute script.This usually happens when creating a transaction from a serialized transaction");return this.inputs[e.inputIndex].isValidSignature(this,e,t)},S.prototype.verifySignature=function(e,t,r,i,n,a,o){if(1!==(n=u.isUndefined(n)?0:n))return p.verify(this,e,t,r,i,o);n=i.toBuffer(),i=new c;return i.writeVarintNum(n.length),i.write(n),a=a?(l.checkState(s.isNaturalNumber(a)),(new c).writeUInt64LEBN(new x(a)).toBuffer()):this.inputs[r].getSatoshisBuffer(),h.verify(this,e,t,r,i.toBuffer(),a,o)},S.prototype.verify=function(){if(0===this.inputs.length)return"transaction txins empty";if(0===this.outputs.length)return"transaction txouts empty";for(var e=new x(0),t=0;t<this.outputs.length;t++){var r=this.outputs[t];if(r.invalidSatoshis())return"transaction txout "+t+" satoshis is invalid";if(r._satoshisBN.gt(new x(S.MAX_MONEY,10)))return"transaction txout "+t+" greater than MAX_MONEY";if((e=e.add(r._satoshisBN)).gt(new x(S.MAX_MONEY)))return"transaction txout "+t+" total output greater than MAX_MONEY"}if(1e6<this.toBuffer().length)return"transaction over the maximum block size";for(var i={},t=0;t<this.inputs.length;t++){var n=this.inputs[t],n=n.prevTxId+":"+n.outputIndex;if(!u.isUndefined(i[n]))return"transaction input "+t+" duplicate input";i[n]=!0}if(this.isCoinbase()){var a=this.inputs[0]._scriptBuffer;if(a.length<2||100<a.length)return"coinbase transaction script size invalid"}else for(t=0;t<this.inputs.length;t++)if(this.inputs[t].isNull())return"transaction input "+t+" has null input";return!0},S.prototype.isCoinbase=function(){return 1===this.inputs.length&&this.inputs[0].isNull()},S.prototype.isRBF=function(){for(var e=0;e<this.inputs.length;e++)if(this.inputs[e].sequenceNumber<m.MAXINT-1)return!0;return!1},S.prototype.enableRBF=function(){for(var e=0;e<this.inputs.length;e++){var t=this.inputs[e];t.sequenceNumber>=m.MAXINT-1&&(t.sequenceNumber=m.DEFAULT_RBF_SEQNUMBER)}return this},S.prototype.setVersion=function(e){return l.checkArgument(s.isNaturalNumber(e)&&e<=2,"Wrong version number"),this.version=e,this},I.exports=S}).call(this)}).call(this,P("buffer").Buffer)},{"../address":80,"../crypto/bn":85,"../crypto/hash":87,"../crypto/signature":90,"../encoding/bufferreader":94,"../encoding/bufferwriter":95,"../errors":97,"../privatekey":104,"../script":106,"../util/buffer":124,"../util/js":125,"../util/preconditions":126,"./input":110,"./output":116,"./sighash":117,"./sighashwitness":118,"./unspentoutput":121,buffer:186,"buffer-compare":184,lodash:318}],121:[function(e,t,r){"use strict";var a=e("lodash"),o=e("../util/preconditions"),s=e("../util/js"),u=e("../script"),c=e("../address"),f=e("../unit");function p(e){if(!(this instanceof p))return new p(e);o.checkArgument(a.isObject(e),"Must provide an object from where to extract data");var t=e.address?new c(e.address):void 0,r=e.txid||e.txId;if(!r||!s.isHexaString(r)||64<r.length)throw new Error("Invalid TXID in object",e);var i=a.isUndefined(e.vout)?e.outputIndex:e.vout;if(!a.isNumber(i))throw new Error("Invalid outputIndex, received "+i);o.checkArgument(!a.isUndefined(e.scriptPubKey)||!a.isUndefined(e.script),"Must provide the scriptPubKey for that output!");var n=new u(e.scriptPubKey||e.script);o.checkArgument(!a.isUndefined(e.amount)||!a.isUndefined(e.satoshis),"Must provide an amount for the output");e=a.isUndefined(e.amount)?e.satoshis:new f.fromBTC(e.amount).toSatoshis();o.checkArgument(a.isNumber(e),"Amount must be a number"),s.defineImmutable(this,{address:t,txId:r,outputIndex:i,script:n,satoshis:e})}p.prototype.inspect=function(){return"<UnspentOutput: "+this.txId+":"+this.outputIndex+", satoshis: "+this.satoshis+", address: "+this.address+">"},p.prototype.toString=function(){return this.txId+":"+this.outputIndex},p.fromObject=function(e){return new p(e)},p.prototype.toObject=p.prototype.toJSON=function(){return{address:this.address?this.address.toString():void 0,txid:this.txId,vout:this.outputIndex,scriptPubKey:this.script.toBuffer().toString("hex"),amount:f.fromSatoshis(this.satoshis).toBTC()}},t.exports=p},{"../address":80,"../script":106,"../unit":122,"../util/js":125,"../util/preconditions":126,lodash:318}],122:[function(e,t,r){"use strict";var i=e("lodash"),n=e("./errors"),a=e("./util/preconditions"),o={BTC:[1e8,8],mBTC:[1e5,5],uBTC:[100,2],bits:[100,2],satoshis:[1,0]};function s(e,t){if(!(this instanceof s))return new s(e,t);if(i.isNumber(t)){if(t<=0)throw new n.Unit.InvalidRate(t);e/=t,t=s.BTC}this._value=this._from(e,t);var r=this;Object.keys(o).forEach(function(e){Object.defineProperty(r,e,{get:function(){return r.to(e)},enumerable:!0})})}Object.keys(o).forEach(function(e){s[e]=e}),s.fromObject=function(e){return a.checkArgument(i.isObject(e),"Argument is expected to be an object"),new s(e.amount,e.code)},s.fromBTC=function(e){return new s(e,s.BTC)},s.fromMillis=s.fromMilis=function(e){return new s(e,s.mBTC)},s.fromMicros=s.fromBits=function(e){return new s(e,s.bits)},s.fromSatoshis=function(e){return new s(e,s.satoshis)},s.fromFiat=function(e,t){return new s(e,t)},s.prototype._from=function(e,t){if(!o[t])throw new n.Unit.UnknownCode(t);return parseInt((e*o[t][0]).toFixed())},s.prototype.to=function(e){if(i.isNumber(e)){if(e<=0)throw new n.Unit.InvalidRate(e);return parseFloat((this.BTC*e).toFixed(2))}if(!o[e])throw new n.Unit.UnknownCode(e);var t=this._value/o[e][0];return parseFloat(t.toFixed(o[e][1]))},s.prototype.toBTC=function(){return this.to(s.BTC)},s.prototype.toMillis=s.prototype.toMilis=function(){return this.to(s.mBTC)},s.prototype.toMicros=s.prototype.toBits=function(){return this.to(s.bits)},s.prototype.toSatoshis=function(){return this.to(s.satoshis)},s.prototype.atRate=function(e){return this.to(e)},s.prototype.toString=function(){return this.satoshis+" satoshis"},s.prototype.toObject=s.prototype.toJSON=function(){return{amount:this.BTC,code:s.BTC}},s.prototype.inspect=function(){return"<Unit: "+this.toString()+">"},t.exports=s},{"./errors":97,"./util/preconditions":126,lodash:318}],123:[function(e,t,r){"use strict";function i(e,t){if(!(this instanceof i))return new i(e,t);if(this.extras={},this.knownParams=t||[],this.address=this.network=this.amount=this.message=null,"string"==typeof e){t=i.parse(e);t.amount&&(t.amount=this._parseAmount(t.amount)),this._fromObject(t)}else{if("object"!==_typeof(e))throw new TypeError("Unrecognized data format.");this._fromObject(e)}}var n=e("lodash"),a=e("url"),o=e("./address"),s=e("./unit");i.fromString=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return new i(e)},i.fromObject=function(e){return new i(e)},i.isValid=function(e,t){try{new i(e,t)}catch(e){return!1}return!0},i.parse=function(e){var t=a.parse(e,!0);if("bitcoin:"!==t.protocol)throw new TypeError("Invalid bitcoin URI");e=/[^:]*:\/?\/?([^?]*)/.exec(e);return t.query.address=e&&e[1]||void 0,t.query},i.Members=["address","amount","message","label","r"],i.prototype._fromObject=function(e){if(!o.isValid(e.address))throw new TypeError("Invalid bitcoin address");for(var t in this.address=new o(e.address),this.network=this.address.network,this.amount=e.amount,e)if("address"!==t&&"amount"!==t){if(/^req-/.exec(t)&&-1===this.knownParams.indexOf(t))throw Error("Unknown required argument "+t);(-1<i.Members.indexOf(t)?this:this.extras)[t]=e[t]}},i.prototype._parseAmount=function(e){if(e=Number(e),isNaN(e))throw new TypeError("Invalid amount");return s.fromBTC(e).toSatoshis()},i.prototype.toObject=i.prototype.toJSON=function(){for(var e={},t=0;t<i.Members.length;t++){var r=i.Members[t];this.hasOwnProperty(r)&&void 0!==this[r]&&(e[r]=this[r].toString())}return n.extend(e,this.extras),e},i.prototype.toString=function(){var e={};return this.amount&&(e.amount=s.fromSatoshis(this.amount).toBTC()),this.message&&(e.message=this.message),this.label&&(e.label=this.label),this.r&&(e.r=this.r),n.extend(e,this.extras),a.format({protocol:"bitcoin:",host:this.address,query:e})},i.prototype.inspect=function(){return"<URI: "+this.toString()+">"},t.exports=i},{"./address":80,"./unit":122,lodash:318,url:476}],124:[function(r,a,e){(function(i){(function(){"use strict";var t=r("buffer"),n=(r("assert"),r("./js"),r("./preconditions"));function e(e,t){if(e.length!==t.length)return!1;for(var r=e.length,i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}a.exports={fill:function(e,t){n.checkArgumentType(e,"Buffer","buffer"),n.checkArgumentType(t,"number","value");for(var r=e.length,i=0;i<r;i++)e[i]=t;return e},copy:function(e){var t=i.alloc(e.length);return e.copy(t),t},isBuffer:function(e){return t.Buffer.isBuffer(e)||e instanceof Uint8Array},emptyBuffer:function(e){n.checkArgumentType(e,"number","bytes");for(var t=i.alloc(e),r=0;r<e;r++)t.write("\0",r);return t},concat:t.Buffer.concat,equals:e,equal:e,integerAsSingleByteBuffer:function(e){return n.checkArgumentType(e,"number","integer"),i.from([255&e])},integerAsBuffer:function(e){n.checkArgumentType(e,"number","integer");var t=[];return t.push(e>>24&255),t.push(e>>16&255),t.push(e>>8&255),t.push(255&e),i.from(t)},integerFromBuffer:function(e){return n.checkArgumentType(e,"Buffer","buffer"),e[0]<<24|e[1]<<16|e[2]<<8|e[3]},integerFromSingleByteBuffer:function(e){return n.checkArgumentType(e,"Buffer","buffer"),e[0]},bufferToHex:function(e){return n.checkArgumentType(e,"Buffer","buffer"),e.toString("hex")},reverse:function(e){return i.from(e).reverse()}},a.exports.NULL_HASH=a.exports.fill(i.alloc(32),0),a.exports.EMPTY_BUFFER=i.alloc(0)}).call(this)}).call(this,r("buffer").Buffer)},{"./js":125,"./preconditions":126,assert:68,buffer:186}],125:[function(e,t,r){"use strict";var i=e("lodash"),e=function(e){return!!i.isString(e)&&/^[0-9a-fA-F]+$/.test(e)};t.exports={isValidJSON:function(e){var t;if(!i.isString(e))return!1;try{t=JSON.parse(e)}catch(e){return!1}return"object"===_typeof(t)},isHexa:e,isHexaString:e,cloneArray:function(e){return[].concat(e)},defineImmutable:function(t,r){return Object.keys(r).forEach(function(e){Object.defineProperty(t,e,{configurable:!1,enumerable:!0,value:r[e]})}),t},isNaturalNumber:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&0<=e}}},{lodash:318}],126:[function(i,e,t){"use strict";var n=i("../errors"),a=i("lodash");e.exports={checkState:function(e,t){if(!e)throw new n.InvalidState(t)},checkArgument:function(e,t,r,i){if(!e)throw new n.InvalidArgument(t,r,i)},checkArgumentType:function(e,t,r){if(r=r||"(unknown name)",a.isString(t)){if("Buffer"===t){if(!i("buffer").Buffer.isBuffer(e))throw new n.InvalidArgumentType(e,t,r)}else if(_typeof(e)!==t)throw new n.InvalidArgumentType(e,t,r)}else if(!(e instanceof t))throw new n.InvalidArgumentType(e,t.name,r)}}},{"../errors":97,buffer:186,lodash:318}],127:[function(e,t,r){t.exports={_from:"bitcore-lib@^8.14.4",_id:"bitcore-lib@8.24.2",_inBundle:!1,_integrity:"sha512-jujnK/wsLs4ARe3VEfZmbzNrPRgLoirz7PYJn4uRVk2vP7zeiN8pStnbYUNSB0ZgNnB7lcB1F3ZnSBk2y1By/Q==",_location:"/bitcore-lib",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"bitcore-lib@^8.14.4",name:"bitcore-lib",escapedName:"bitcore-lib",rawSpec:"^8.14.4",saveSpec:null,fetchSpec:"^8.14.4"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/bitcore-lib/-/bitcore-lib-8.24.2.tgz",_shasum:"62d2b5dd6622c1ce6c3edc8945bcee462544ee17",_spec:"bitcore-lib@^8.14.4",_where:"/home/runner/work/javascript-opentimestamps/javascript-opentimestamps",author:{name:"BitPay",email:"dev@bitpay.com"},browser:{request:"browser-request"},bundleDependencies:!1,dependencies:{bech32:"=1.1.3","bn.js":"=4.11.8",bs58:"^4.0.1","buffer-compare":"=1.1.1",elliptic:"^6.5.3",inherits:"=2.0.1",lodash:"^4.17.20"},deprecated:!1,description:"A pure and powerful JavaScript Bitcoin library.",devDependencies:{"bitcore-build":"^8.24.2",brfs:"^2.0.1",chai:"^4.2.0",gulp:"^4.0.0",sinon:"^7.1.1"},gitHead:"012cc0216a9bc6b195035855bd17149bad41acd1",keywords:["bitcoin","transaction","address","p2p","ecies","cryptocurrency","blockchain","payment","bip21","bip32","bip37","bip69","bip70","multisig"],license:"MIT",main:"index.js",name:"bitcore-lib",repository:{type:"git",url:"https://github.com/bitpay/bitcore/tree/master/packages/bitcore-lib"},scripts:{build:"gulp",coverage:"gulp coverage",pub:"npm run build && npm publish",test:"gulp test","test:ci":"npm run test"},version:"8.24.2"}},{}],128:[function(e,r,i){(function(ne,H,s){(function(){var e,t;e=function(){var e,t,r;return function i(n,a,o){function s(r,e){if(!a[r]){if(!n[r]){var t="function"==typeof _dereq_&&_dereq_;if(!e&&t)return t(r,!0);if(u)return u(r,!0);t=new Error("Cannot find module '"+r+"'");throw t.code="MODULE_NOT_FOUND",t}t=a[r]={exports:{}};n[r][0].call(t.exports,function(e){var t=n[r][1][e];return s(t||e)},t,t.exports,i,n,a,o)}return a[r].exports}for(var u="function"==typeof _dereq_&&_dereq_,e=0;e<o.length;e++)s(o[e]);return s}({1:[function(e,t,r){"use strict";t.exports=function(e){var r=e._SomePromiseArray;function t(e){var t=new r(e),e=t.promise();return t.setHowMany(1),t.setUnwrap(),t.init(),e}e.any=t,e.prototype.any=function(){return t(this)}}},{}],2:[function(e,t,r){"use strict";var i;try{throw new Error}catch(e){i=e}var n=e("./schedule"),a=e("./queue");function o(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new a(16),this._normalQueue=new a(16),this._haveDrainedQueues=!1;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=n}function s(e){for(;0<e.length();)i=r=void 0,!void("function"!=typeof(i=(t=e).shift())?i._settlePromises():(r=t.shift(),t=t.shift(),i.call(r,t)));var t,r,i}o.prototype.setScheduler=function(e){var t=this._schedule;return this._schedule=e,this._customScheduler=!0,t},o.prototype.hasCustomScheduler=function(){return this._customScheduler},o.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},o.prototype.fatalError=function(e,t){t?(ne.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n"),ne.exit(2)):this.throwLater(e)},o.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!=typeof setTimeout)setTimeout(function(){e(t)},0);else try{this._schedule(function(){e(t)})}catch(e){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},o.prototype.invokeLater=function(e,t,r){this._lateQueue.push(e,t,r),this._queueTick()},o.prototype.invoke=function(e,t,r){this._normalQueue.push(e,t,r),this._queueTick()},o.prototype.settlePromises=function(e){this._normalQueue._pushOne(e),this._queueTick()},o.prototype._drainQueues=function(){s(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,s(this._lateQueue)},o.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},o.prototype._reset=function(){this._isTickUsed=!1},t.exports=o,t.exports.firstLineError=i},{"./queue":26,"./schedule":29}],3:[function(e,t,r){"use strict";t.exports=function(n,a,o,s){function r(e,t){this._reject(t)}function u(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(r,r,null,this,e)}function c(e,t){0==(50397184&this._bitField)&&this._resolveCallback(t.target)}function f(e,t){t.promiseRejectionQueued||this._reject(e)}var p=!1;n.prototype.bind=function(e){p||(p=!0,n.prototype._propagateFrom=s.propagateFromFunction(),n.prototype._boundValue=s.boundValueFunction());var t=o(e),r=new n(a);r._propagateFrom(this,1);var i=this._target();return r._setBoundTo(t),t instanceof n?(e={promiseRejectionQueued:!1,promise:r,target:i,bindingPromise:t},i._then(a,u,void 0,r,e),t._then(c,f,void 0,r,e),r._setOnCancel(t)):r._resolveCallback(i),r},n.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},n.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},n.bind=function(e,t){return n.resolve(t).bind(e)}}},{}],4:[function(e,t,r){"use strict";var i;"undefined"!=typeof Promise&&(i=Promise);var n=e("./promise")();n.noConflict=function(){try{Promise===n&&(Promise=i)}catch(e){}return n},t.exports=n},{"./promise":22}],5:[function(e,t,r){"use strict";var i,n=Object.create;n&&(i=n(null),n=n(null),i[" size"]=n[" size"]=0),t.exports=function(i){var r,n=e("./util"),a=n.canEvaluate;n.isIdentifier;function t(e,t){var r;if("function"==typeof(r=null!=e?e[t]:r))return r;t="Object "+n.classString(e)+" has no method '"+n.toString(t)+"'";throw new i.TypeError(t)}function o(e){return t(e,this.pop()).apply(e,this)}function s(e){return e[this]}function u(e){var t=+this;return e[t=t<0?Math.max(0,t+e.length):t]}i.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(o,void 0,void 0,t,void 0)},i.prototype.get=function(e){var t;return t="number"==typeof e?u:a&&null!==(t=r(e))?t:s,this._then(t,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(u,e,t){"use strict";e.exports=function(e,t,r,i){var n=u("./util"),a=n.tryCatch,o=n.errorObj,s=e._async;e.prototype.break=e.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var r=e._cancellationParent;if(null==r||!r._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=r}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),s.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){0<this._length()&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(e,t){var r;if(n.isArray(e))for(var i=0;i<e.length;++i)this._doInvokeOnCancel(e[i],t);else void 0!==e&&("function"==typeof e?t||(r=a(e).call(this._boundValue()))===o&&(this._attachExtraTrace(r.e),s.throwLater(r.e)):e._resultCancelled(this))},e.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),s.invoke(this._doInvokeOnCancel,this,e)},e.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(e,t,r){"use strict";t.exports=function(p){var l=e("./util"),h=e("./es5").keys,d=l.tryCatch,m=l.errorObj;return function(u,c,f){return function(e){var t=f._boundValue();e:for(var r=0;r<u.length;++r){var i=u[r];if(i===Error||null!=i&&i.prototype instanceof Error){if(e instanceof i)return d(c).call(t,e)}else if("function"==typeof i){var n=d(i).call(t,e);if(n===m)return n;if(n)return d(c).call(t,e)}else if(l.isObject(e)){for(var a=h(i),o=0;o<a.length;++o){var s=a[o];if(i[s]!=e[s])continue e}return d(c).call(t,e)}}return p}}}},{"./es5":13,"./util":36}],8:[function(e,t,r){"use strict";t.exports=function(a){var o=!1,r=[];function s(){this._trace=new s.CapturedTrace(u())}function u(){var e=r.length-1;if(0<=e)return r[e]}return a.prototype._promiseCreated=function(){},a.prototype._pushContext=function(){},a.prototype._popContext=function(){return null},a._peekContext=a.prototype._peekContext=function(){},s.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,r.push(this._trace))},s.prototype._popContext=function(){if(void 0===this._trace)return null;var e=r.pop(),t=e._promiseCreated;return e._promiseCreated=null,t},s.CapturedTrace=null,s.create=function(){if(o)return new s},s.deactivateLongStackTraces=function(){},s.activateLongStackTraces=function(){var e=a.prototype._pushContext,t=a.prototype._popContext,r=a._peekContext,i=a.prototype._peekContext,n=a.prototype._promiseCreated;s.deactivateLongStackTraces=function(){a.prototype._pushContext=e,a.prototype._popContext=t,a._peekContext=r,a.prototype._peekContext=i,a.prototype._promiseCreated=n,o=!1},o=!0,a.prototype._pushContext=s.prototype._pushContext,a.prototype._popContext=s.prototype._popContext,a._peekContext=a.prototype._peekContext=u,a.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},s}},{}],9:[function(ie,e,t){"use strict";e.exports=function(n,i,r,a){var o,s,u,e,t,c=n._async,f=ie("./errors").Warning,p=ie("./util"),l=ie("./es5"),h=p.canAttachTrace,d=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,m=/\((?:timers\.js):\d+:\d+\)/,g=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,b=null,y=null,v=!1,_=!(0==p.env("BLUEBIRD_DEBUG")),w=!(0==p.env("BLUEBIRD_WARNINGS")||!_&&!p.env("BLUEBIRD_WARNINGS")),_=!(0==p.env("BLUEBIRD_LONG_STACK_TRACES")||!_&&!p.env("BLUEBIRD_LONG_STACK_TRACES")),k=0!=p.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(w||!!p.env("BLUEBIRD_W_FORGOTTEN_RETURN"));function x(){for(var e=0;e<t.length;++e)t[e]._notifyUnhandledRejection();S()}function S(){t.length=0}t=[],e=function(e){t.push(e),setTimeout(x,1)},l.defineProperty(n,"_unhandledRejectionCheck",{value:x}),l.defineProperty(n,"_unhandledRejectionClear",{value:S}),n.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},n.prototype._ensurePossibleRejectionHandled=function(){0==(524288&this._bitField)&&(this._setRejectionIsUnhandled(),e(this))},n.prototype._notifyUnhandledRejectionIsHandled=function(){W("rejectionHandled",o,void 0,this)},n.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},n.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},n.prototype._notifyUnhandledRejection=function(){var e;this._isRejectionUnhandled()&&(e=this._settledValue(),this._setUnhandledRejectionIsNotified(),W("unhandledRejection",s,e,this))},n.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},n.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},n.prototype._isUnhandledRejectionNotified=function(){return 0<(262144&this._bitField)},n.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},n.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},n.prototype._isRejectionUnhandled=function(){return 0<(1048576&this._bitField)},n.prototype._warn=function(e,t,r){return K(e,t,r||this)},n.onPossiblyUnhandledRejection=function(e){var t=n._getContext();s=p.contextBind(t,e)},n.onUnhandledRejectionHandled=function(e){var t=n._getContext();o=p.contextBind(t,e)};var j=function(){};n.longStackTraces=function(){if(c.haveItemsQueued()&&!re.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");var e,t,r;!re.longStackTraces&&Y()&&(e=n.prototype._captureStackTrace,t=n.prototype._attachExtraTrace,r=n.prototype._dereferenceTrace,re.longStackTraces=!0,j=function(){if(c.haveItemsQueued()&&!re.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");n.prototype._captureStackTrace=e,n.prototype._attachExtraTrace=t,n.prototype._dereferenceTrace=r,i.deactivateLongStackTraces(),re.longStackTraces=!1},n.prototype._captureStackTrace=q,n.prototype._attachExtraTrace=U,n.prototype._dereferenceTrace=H,i.activateLongStackTraces())},n.hasLongStackTraces=function(){return re.longStackTraces&&Y()};var E={unhandledrejection:{before:function(){var e=p.global.onunhandledrejection;return p.global.onunhandledrejection=null,e},after:function(e){p.global.onunhandledrejection=e}},rejectionhandled:{before:function(){var e=p.global.onrejectionhandled;return p.global.onrejectionhandled=null,e},after:function(e){p.global.onrejectionhandled=e}}},A=function(){function i(e,t){if(!e)return!p.global.dispatchEvent(t);var r;try{return r=e.before(),!p.global.dispatchEvent(t)}finally{e.after(r)}}try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return p.global.dispatchEvent(e),function(e,t){e=e.toLowerCase();var r=new CustomEvent(e,{detail:t,cancelable:!0});return l.defineProperty(r,"promise",{value:t.promise}),l.defineProperty(r,"reason",{value:t.reason}),i(E[e],r)}}if("function"!=typeof Event)return(e=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),p.global.dispatchEvent(e),function(e,t){e=e.toLowerCase();var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,!1,!0,t),i(E[e],r)};var e=new Event("CustomEvent");return p.global.dispatchEvent(e),function(e,t){e=e.toLowerCase();var r=new Event(e,{cancelable:!0});return r.detail=t,l.defineProperty(r,"promise",{value:t.promise}),l.defineProperty(r,"reason",{value:t.reason}),i(E[e],r)}}catch(e){}return function(){return!1}}(),P=p.isNode?function(){return ne.emit.apply(ne,arguments)}:p.global?function(e){e="on"+e.toLowerCase(),e=p.global[e];return!!e&&(e.apply(p.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function I(e,t){return{promise:t}}var T={promiseCreated:I,promiseFulfilled:I,promiseRejected:I,promiseResolved:I,promiseCancelled:I,promiseChained:function(e,t,r){return{promise:t,child:r}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,r){return{reason:t,promise:r}},rejectionHandled:I},O=function(e){var t=!1;try{t=P.apply(null,arguments)}catch(e){c.throwLater(e),t=!0}var r=!1;try{r=A(e,T[e].apply(null,arguments))}catch(e){c.throwLater(e),r=!0}return r||t};function C(){return!1}function R(e,t,r){var i=this;try{e(t,r,function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+p.toString(e));i._attachCancellationCallback(e)})}catch(e){return e}}function B(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?p.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function F(){return this._onCancelField}function M(e){this._onCancelField=e}function z(){this._cancellationParent=void 0,this._onCancelField=void 0}function N(e,t){var r;0!=(1&t)&&(void 0===(r=(this._cancellationParent=e)._branchesRemainingToCancel)&&(r=0),e._branchesRemainingToCancel=r+1),0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}n.config=function(e){var t;if("longStackTraces"in(e=Object(e))&&(e.longStackTraces?n.longStackTraces():!e.longStackTraces&&n.hasLongStackTraces()&&j()),"warnings"in e&&(t=e.warnings,re.warnings=!!t,k=re.warnings,p.isObject(t)&&"wForgottenReturn"in t&&(k=!!t.wForgottenReturn)),"cancellation"in e&&e.cancellation&&!re.cancellation){if(c.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");n.prototype._clearCancellationData=z,n.prototype._propagateFrom=N,n.prototype._onCancel=F,n.prototype._setOnCancel=M,n.prototype._attachCancellationCallback=B,n.prototype._execute=R,D=N,re.cancellation=!0}return"monitoring"in e&&(e.monitoring&&!re.monitoring?(re.monitoring=!0,n.prototype._fireEvent=O):!e.monitoring&&re.monitoring&&(re.monitoring=!1,n.prototype._fireEvent=C)),"asyncHooks"in e&&p.nodeSupportsAsyncResource&&(re.asyncHooks!==(e=!!e.asyncHooks)&&((re.asyncHooks=e)?r:a)()),n},n.prototype._fireEvent=C,n.prototype._execute=function(e,t,r){try{e(t,r)}catch(e){return e}},n.prototype._onCancel=function(){},n.prototype._setOnCancel=function(e){},n.prototype._attachCancellationCallback=function(e){},n.prototype._captureStackTrace=function(){},n.prototype._attachExtraTrace=function(){},n.prototype._dereferenceTrace=function(){},n.prototype._clearCancellationData=function(){},n.prototype._propagateFrom=function(e,t){};var D=function(e,t){0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)};function L(){var e=this._boundTo;return void 0!==e&&e instanceof n?e.isFulfilled()?e.value():void 0:e}function q(){this._trace=new ee(this._peekContext())}function U(e,t){var r;h(e)&&(void 0!==(r=void 0!==(r=this._trace)&&t?r._parent:r)?r.attachExtraTrace(e):e.__stackCleaned__||(r=$(e),p.notEnumerableProp(e,"stack",r.message+"\n"+r.stack.join("\n")),p.notEnumerableProp(e,"__stackCleaned__",!0)))}function H(){this._trace=void 0}function K(e,t,r){var i;re.warnings&&(e=new f(e),t?r._attachExtraTrace(e):re.longStackTraces&&(i=n._peekContext())?i.attachExtraTrace(e):(i=$(e),e.stack=i.message+"\n"+i.stack.join("\n")),O("warning",e)||G(e,"",!0))}function V(e){for(var t=[],r=0;r<e.length;++r){var i=e[r],n=" (No stack trace)"===i||b.test(i),a=n&&Q(i);n&&!a&&(v&&" "!==i.charAt(0)&&(i=" "+i),t.push(i))}return t}function $(e){var t=e.stack,r=e.toString(),t="string"==typeof t&&0<t.length?function(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),r=0;r<t.length;++r){var i=t[r];if(" (No stack trace)"===i||b.test(i))break}return t=0<r&&"SyntaxError"!=e.name?t.slice(r):t}(e):[" (No stack trace)"];return{message:r,stack:"SyntaxError"==e.name?t:V(t)}}function G(e,t,r){var i;"undefined"!=typeof console&&(e=p.isObject(e)?(i=e.stack,t+y(i,e)):t+String(e),"function"==typeof u?u(e,r):"function"!=typeof console.log&&"object"!==_typeof(console.log)||console.log(e))}function W(e,t,r,i){var n=!1;try{"function"==typeof t&&(n=!0,"rejectionHandled"===e?t(i):t(r,i))}catch(e){c.throwLater(e)}"unhandledRejection"===e?O(e,r,i)||n||G(r,"Unhandled rejection "):O(e,i)}function Z(e){if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{t=e&&"function"==typeof e.toString?e.toString():p.toString(e);if(/\[object [a-zA-Z0-9$_]+\]/.test(t))try{var t=JSON.stringify(e)}catch(e){}0===t.length&&(t="(empty array)")}return"(<"+function(e){if(e.length<41)return e;return e.substr(0,38)+"..."}(t)+">, no stack trace)"}function Y(){return"function"==typeof te}var Q=function(){return!1},X=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function J(e){e=e.match(X);if(e)return{fileName:e[1],line:parseInt(e[2],10)}}function ee(e){this._parent=e,this._promisesCreated=0;e=this._length=1+(void 0===e?0:e._length);te(this,ee),32<e&&this.uncycle()}p.inherits(ee,Error),(i.CapturedTrace=ee).prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],r={},i=0,n=this;void 0!==n;++i)t.push(n),n=n._parent;for(i=(e=this._length=i)-1;0<=i;--i){var a=t[i].stack;void 0===r[a]&&(r[a]=i)}for(i=0;i<e;++i){var o=r[t[i].stack];if(void 0!==o&&o!==i){0<o&&(t[o-1]._parent=void 0,t[o-1]._length=1),t[i]._parent=void 0,t[i]._length=1;var s=0<i?t[i-1]:this;o<e-1?(s._parent=t[o+1],s._parent.uncycle(),s._length=s._parent._length+1):(s._parent=void 0,s._length=1);for(var u=s._length+1,c=i-2;0<=c;--c)t[c]._length=u,u++;return}}}},ee.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=$(e),r=t.message,i=[t.stack],n=this;void 0!==n;)i.push(V(n.stack.split("\n"))),n=n._parent;!function(e){for(var t=e[0],r=1;r<e.length;++r){for(var i=e[r],n=t.length-1,a=t[n],o=-1,s=i.length-1;0<=s;--s)if(i[s]===a){o=s;break}for(s=o;0<=s;--s){var u=i[s];if(t[n]!==u)break;t.pop(),n--}t=i}}(i),function(e){for(var t=0;t<e.length;++t)(0===e[t].length||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}(i),p.notEnumerableProp(e,"stack",function(e,t){for(var r=0;r<t.length-1;++r)t[r].push("From previous event:"),t[r]=t[r].join("\n");return r<t.length&&(t[r]=t[r].join("\n")),e+"\n"+t.join("\n")}(r,i)),p.notEnumerableProp(e,"__stackCleaned__",!0)}};var te=function(){function e(e,t){return"string"==typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():Z(t)}var t=/^\s*at\s*/;if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,b=t,y=e;var r=Error.captureStackTrace;return Q=function(e){return d.test(e)},function(e,t){Error.stackTraceLimit+=6,r(e,t),Error.stackTraceLimit-=6}}var i,n=new Error;if("string"==typeof n.stack&&0<=n.stack.split("\n")[0].indexOf("stackDetection@"))return b=/@/,y=e,v=!0,function(e){e.stack=(new Error).stack};try{throw new Error}catch(e){i="stack"in e}return"stack"in n||!i||"number"!=typeof Error.stackTraceLimit?(y=function(e,t){return"string"==typeof e?e:"object"!==_typeof(t)&&"function"!=typeof t||void 0===t.name||void 0===t.message?Z(t):t.toString()},null):(b=t,y=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(u=function(e){console.warn(e)},p.isNode&&ne.stderr.isTTY?u=function(e,t){t=t?"":"";console.warn(t+e+"\n")}:p.isNode||"string"!=typeof(new Error).stack||(u=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var re={warnings:w,longStackTraces:!1,cancellation:!1,monitoring:!1,asyncHooks:!1};return _&&n.longStackTraces(),{asyncHooks:function(){return re.asyncHooks},longStackTraces:function(){return re.longStackTraces},warnings:function(){return re.warnings},cancellation:function(){return re.cancellation},monitoring:function(){return re.monitoring},propagateFromFunction:function(){return D},boundValueFunction:function(){return L},checkForgottenReturns:function(e,t,r,i,n){if(void 0===e&&null!==t&&k&&(void 0===n||!n._returnedNonUndefined())&&0!=(65535&i._bitField)){r&&(r+=" ");var a="",o="";if(t._trace){for(var s=t._trace.stack.split("\n"),u=V(s),c=u.length-1;0<=c;--c){var f=u[c];if(!m.test(f)){f=f.match(g);f&&(a="at "+f[1]+":"+f[2]+":"+f[3]+" ");break}}if(0<u.length)for(var p=u[0],c=0;c<s.length;++c)if(s[c]===p){0<c&&(o="\n"+s[c-1]);break}}r="a promise was created in a "+r+"handler "+a+"but was not returned from it, see http://goo.gl/rRqMUw"+o;i._warn(r,!0,t)}},setBounds:function(e,t){if(Y()){for(var r,i,n=(e.stack||"").split("\n"),a=(t.stack||"").split("\n"),o=-1,s=-1,u=0;u<n.length;++u)if(c=J(n[u])){r=c.fileName,o=c.line;break}for(var c,u=0;u<a.length;++u)if(c=J(a[u])){i=c.fileName,s=c.line;break}o<0||s<0||!r||!i||r!==i||s<=o||(Q=function(e){if(d.test(e))return!0;e=J(e);return!!(e&&e.fileName===r&&o<=e.line&&e.line<=s)})}},warn:K,deprecated:function(e,t){return e+=" is deprecated and will be removed in a future version.",t&&(e+=" Use "+t+" instead."),K(e)},CapturedTrace:ee,fireDomEvent:A,fireGlobalEvent:P}}},{"./errors":12,"./es5":13,"./util":36}],10:[function(e,t,r){"use strict";t.exports=function(r){function i(){return this.value}function n(){throw this.reason}r.prototype.return=r.prototype.thenReturn=function(e){return e instanceof r&&e.suppressUnhandledRejections(),this._then(i,void 0,void 0,{value:e},void 0)},r.prototype.throw=r.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},r.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1];return this.caught(e,function(){throw t})},r.prototype.catchReturn=function(e){if(arguments.length<=1)return e instanceof r&&e.suppressUnhandledRejections(),this._then(void 0,i,void 0,{value:e},void 0);var t=arguments[1];t instanceof r&&t.suppressUnhandledRejections();return this.caught(e,function(){return t})}}},{}],11:[function(e,t,r){"use strict";t.exports=function(e,r){var i=e.reduce,t=e.all;function n(){return t(this)}e.prototype.each=function(e){return i(this,e,r,0)._then(n,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return i(this,e,r,r)},e.each=function(e,t){return i(e,t,r,0)._then(n,void 0,void 0,e,void 0)},e.mapSeries=function(e,t){return i(e,t,r,r)}}},{}],12:[function(e,t,r){"use strict";var i,n,a=e("./es5"),o=a.freeze,s=e("./util"),u=s.inherits,c=s.notEnumerableProp;function f(t,r){function i(e){if(!(this instanceof i))return new i(e);c(this,"message","string"==typeof e?e:r),c(this,"name",t),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return u(i,Error),i}var p=f("Warning","warning"),l=f("CancellationError","cancellation error"),e=f("TimeoutError","timeout error"),h=f("AggregateError","aggregate error");try{i=TypeError,n=RangeError}catch(e){i=f("TypeError","type error"),n=f("RangeError","range error")}for(var d="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),m=0;m<d.length;++m)"function"==typeof Array.prototype[d[m]]&&(h.prototype[d[m]]=Array.prototype[d[m]]);a.defineProperty(h.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),h.prototype.isOperational=!0;var g=0;function b(e){if(!(this instanceof b))return new b(e);c(this,"name","OperationalError"),c(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof Error?(c(this,"message",e.message),c(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}h.prototype.toString=function(){var e=Array(4*g+1).join(" "),t="\n"+e+"AggregateError of:\n";g++,e=Array(4*g+1).join(" ");for(var r=0;r<this.length;++r){for(var i=this[r]===this?"[Circular AggregateError]":this[r]+"",n=i.split("\n"),a=0;a<n.length;++a)n[a]=e+n[a];t+=(i=n.join("\n"))+"\n"}return g--,t},u(b,Error);s=Error.__BluebirdErrorTypes__;s||(s=o({CancellationError:l,TimeoutError:e,OperationalError:b,RejectionError:b,AggregateError:h}),a.defineProperty(Error,"__BluebirdErrorTypes__",{value:s,writable:!1,enumerable:!1,configurable:!1})),t.exports={Error:Error,TypeError:i,RangeError:n,CancellationError:s.CancellationError,OperationalError:s.OperationalError,TimeoutError:s.TimeoutError,AggregateError:s.AggregateError,Warning:p}},{"./es5":13,"./util":36}],13:[function(e,t,r){var i,n,a,o,s=function(){"use strict";return void 0===this}();s?t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:s,propertyIsWritable:function(e,t){t=Object.getOwnPropertyDescriptor(e,t);return!(t&&!t.writable&&!t.set)}}:(i={}.hasOwnProperty,n={}.toString,a={}.constructor.prototype,o=function(e){var t,r=[];for(t in e)i.call(e,t)&&r.push(t);return r},t.exports={isArray:function(e){try{return"[object Array]"===n.call(e)}catch(e){return!1}},keys:o,names:o,defineProperty:function(e,t,r){return e[t]=r.value,e},getDescriptor:function(e,t){return{value:e[t]}},freeze:function(e){return e},getPrototypeOf:function(e){try{return Object(e).constructor.prototype}catch(e){return a}},isES5:s,propertyIsWritable:function(){return!0}})},{}],14:[function(e,t,r){"use strict";t.exports=function(e,i){var n=e.map;e.prototype.filter=function(e,t){return n(this,e,t,i)},e.filter=function(e,t,r){return n(e,t,r,i)}}},{}],15:[function(e,t,r){"use strict";t.exports=function(o,n,a){var s=e("./util"),u=o.CancellationError,c=s.errorObj,f=e("./catch_filter")(a);function p(e,t,r){this.promise=e,this.type=t,this.handler=r,this.called=!1,this.cancelPromise=null}function l(e){this.finallyHandler=e}function h(e,t){return null!=e.cancelPromise&&(1<arguments.length?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,1)}function d(){return g.call(this,this.promise._target()._settledValue())}function m(e){if(!h(this,e))return c.e=e,c}function g(e){var t=this.promise,r=this.handler;if(!this.called){this.called=!0;var i=this.isFinallyHandler()?r.call(t._boundValue()):r.call(t._boundValue(),e);if(i===a)return i;if(void 0!==i){t._setReturnedNonUndefined();r=n(i,t);if(r instanceof o){if(null!=this.cancelPromise){if(r._isCancelled()){i=new u("late cancellation observer");return t._attachExtraTrace(i),c.e=i,c}r.isPending()&&r._attachCancellationCallback(new l(this))}return r._then(d,m,void 0,this,void 0)}}}return t.isRejected()?(h(this),c.e=e,c):(h(this),e)}return p.prototype.isFinallyHandler=function(){return 0===this.type},l.prototype._resultCancelled=function(){h(this.finallyHandler)},o.prototype._passThrough=function(e,t,r,i){return"function"!=typeof e?this.then():this._then(r,i,void 0,new p(this,t,e),void 0)},o.prototype.lastly=o.prototype.finally=function(e){return this._passThrough(e,0,g,g)},o.prototype.tap=function(e){return this._passThrough(e,1,g)},o.prototype.tapCatch=function(e){var t=arguments.length;if(1===t)return this._passThrough(e,1,void 0,g);for(var r=new Array(t-1),i=0,n=0;n<t-1;++n){var a=arguments[n];if(!s.isObject(a))return o.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+s.classString(a)));r[i++]=a}r.length=i;e=arguments[n];return this._passThrough(f(r,e,this),1,void 0,g)},p}},{"./catch_filter":7,"./util":36}],16:[function(i,e,t){"use strict";e.exports=function(o,r,s,u,e,c){var f=i("./errors").TypeError,t=i("./util"),p=t.errorObj,l=t.tryCatch,h=[];function d(e,t,r,i){var n,a;c.cancellation()?(n=new o(s),a=this._finallyPromise=new o(s),this._promise=n.lastly(function(){return a}),n._captureStackTrace(),n._setOnCancel(this)):(this._promise=new o(s))._captureStackTrace(),this._stack=i,this._generatorFunction=e,this._receiver=t,this._generator=void 0,this._yieldHandlers="function"==typeof r?[r].concat(h):h,this._yieldedPromise=null,this._cancellationPhase=!1}t.inherits(d,e),d.prototype._isResolved=function(){return null===this._promise},d.prototype._cleanup=function(){this._promise=this._generator=null,c.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},d.prototype._promiseCancelled=function(){var e;this._isResolved()||(e=void 0!==this._generator.return?(this._promise._pushContext(),l(this._generator.return).call(this._generator,void 0)):(e=new o.CancellationError("generator .return() sentinel"),o.coroutine.returnSentinel=e,this._promise._attachExtraTrace(e),this._promise._pushContext(),l(this._generator.throw).call(this._generator,e)),this._promise._popContext(),this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(e))},d.prototype._promiseFulfilled=function(e){this._yieldedPromise=null,this._promise._pushContext();e=l(this._generator.next).call(this._generator,e);this._promise._popContext(),this._continue(e)},d.prototype._promiseRejected=function(e){this._yieldedPromise=null,this._promise._attachExtraTrace(e),this._promise._pushContext();e=l(this._generator.throw).call(this._generator,e);this._promise._popContext(),this._continue(e)},d.prototype._resultCancelled=function(){var e;this._yieldedPromise instanceof o&&(e=this._yieldedPromise,this._yieldedPromise=null,e.cancel())},d.prototype.promise=function(){return this._promise},d.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},d.prototype._continue=function(e){var t=this._promise;if(e===p)return this._cleanup(),this._cancellationPhase?t.cancel():t._rejectCallback(e.e,!1);var r=e.value;if(!0===e.done)return this._cleanup(),this._cancellationPhase?t.cancel():t._resolveCallback(r);e=u(r,this._promise);e instanceof o||null!==(e=function(e,t,r){for(var i=0;i<t.length;++i){r._pushContext();var n=l(t[i])(e);if(r._popContext(),n===p){r._pushContext();var a=o.reject(p.e);return r._popContext(),a}n=u(n,r);if(n instanceof o)return n}return null}(e,this._yieldHandlers,this._promise))?0==(50397184&(t=(e=e._target())._bitField))?(this._yieldedPromise=e)._proxy(this,null):0!=(33554432&t)?o._async.invoke(this._promiseFulfilled,this,e._value()):0!=(16777216&t)?o._async.invoke(this._promiseRejected,this,e._reason()):this._promiseCancelled():this._promiseRejected(new f("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",String(r))+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")))},o.coroutine=function(i,e){if("function"!=typeof i)throw new f("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=Object(e).yieldHandler,a=d,o=(new Error).stack;return function(){var e=i.apply(this,arguments),t=new a(void 0,void 0,n,o),r=t.promise();return t._generator=e,t._promiseFulfilled(void 0),r}},o.coroutine.addYieldHandler=function(e){if("function"!=typeof e)throw new f("expecting a function but got "+t.classString(e));h.push(e)},o.spawn=function(e){if(c.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof e)return r("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var t=new d(e,this),e=t.promise();return t._run(o.spawn),e}}},{"./errors":12,"./util":36}],17:[function(o,e,t){"use strict";e.exports=function(e,r,t,i,n){var a=o("./util");a.canEvaluate,a.tryCatch,a.errorObj;e.join=function(){var e,t=arguments.length-1;0<t&&"function"==typeof arguments[t]&&(e=arguments[t]);var t=[].slice.call(arguments);e&&t.pop();t=new r(t).promise();return void 0!==e?t.spread(e):t}}},{"./util":36}],18:[function(t,e,r){"use strict";e.exports=function(c,e,a,f,s,p){var u=t("./util"),l=u.tryCatch,h=u.errorObj,d=c._async;function o(e,t,r,i){this.constructor$(e),this._promise._captureStackTrace();var n=c._getContext();if(this._callback=u.contextBind(n,t),this._preservedValues=i===s?new Array(this.length()):null,this._limit=r,this._inFlight=0,this._queue=[],d.invoke(this._asyncInit,this,void 0),u.isArray(e))for(var a=0;a<e.length;++a){var o=e[a];o instanceof c&&o.suppressUnhandledRejections()}}function r(e,t,r,i){if("function"!=typeof t)return a("expecting a function but got "+u.classString(t));var n=0;if(void 0!==r){if("object"!==_typeof(r)||null===r)return c.reject(new TypeError("options argument must be an object but it is "+u.classString(r)));if("number"!=typeof r.concurrency)return c.reject(new TypeError("'concurrency' must be a number but it is "+u.classString(r.concurrency)));n=r.concurrency}return new o(e,t,n="number"==typeof n&&isFinite(n)&&1<=n?n:0,i).promise()}u.inherits(o,e),o.prototype._asyncInit=function(){this._init$(void 0,-2)},o.prototype._init=function(){},o.prototype._promiseFulfilled=function(e,t){var r=this._values,i=this.length(),n=this._preservedValues,a=this._limit;if(t<0){if(t=-1*t-1,r[t]=e,1<=a&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(1<=a&&this._inFlight>=a)return r[t]=e,this._queue.push(t),!1;null!==n&&(n[t]=e);var o=this._promise,s=this._callback,u=o._boundValue();o._pushContext();u=l(s).call(u,e,t,i),e=o._popContext();if(p.checkForgottenReturns(u,e,null!==n?"Promise.filter":"Promise.map",o),u===h)return this._reject(u.e),!0;e=f(u,this._promise);if(e instanceof c){o=(e=e._target())._bitField;if(0==(50397184&o))return 1<=a&&this._inFlight++,(r[t]=e)._proxy(this,-1*(t+1)),!1;if(0==(33554432&o))return 0!=(16777216&o)?this._reject(e._reason()):this._cancel(),!0;u=e._value()}r[t]=u}return i<=++this._totalResolved&&(null!==n?this._filter(r,n):this._resolve(r),!0)},o.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,r=this._values;0<e.length&&this._inFlight<t;){if(this._isResolved())return;var i=e.pop();this._promiseFulfilled(r[i],i)}},o.prototype._filter=function(e,t){for(var r=t.length,i=new Array(r),n=0,a=0;a<r;++a)e[a]&&(i[n++]=t[a]);i.length=n,this._resolve(i)},o.prototype.preservedValues=function(){return this._preservedValues},c.prototype.map=function(e,t){return r(this,e,t,null)},c.map=r}},{"./util":36}],19:[function(t,e,r){"use strict";e.exports=function(n,a,e,o,s){var u=t("./util"),c=u.tryCatch;n.method=function(i){if("function"!=typeof i)throw new n.TypeError("expecting a function but got "+u.classString(i));return function(){var e=new n(a);e._captureStackTrace(),e._pushContext();var t=c(i).apply(this,arguments),r=e._popContext();return s.checkForgottenReturns(t,r,"Promise.method",e),e._resolveFromSyncValue(t),e}},n.attempt=n.try=function(e){if("function"!=typeof e)return o("expecting a function but got "+u.classString(e));var t,r,i=new n(a);i._captureStackTrace(),i._pushContext(),r=1<arguments.length?(s.deprecated("calling Promise.try with more than 1 argument"),r=arguments[1],t=arguments[2],u.isArray(r)?c(e).apply(t,r):c(e).call(t,r)):c(e)();e=i._popContext();return s.checkForgottenReturns(r,e,"Promise.try",i),i._resolveFromSyncValue(r),i},n.prototype._resolveFromSyncValue=function(e){e===u.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,r){"use strict";var o=e("./util"),a=o.maybeWrapAsError,s=e("./errors").OperationalError,u=e("./es5");var c=/^(?:name|message|stack|cause)$/;function f(e){var t,r;if((r=e)instanceof Error&&u.getPrototypeOf(r)===Error.prototype){(t=new s(e)).name=e.name,t.message=e.message,t.stack=e.stack;for(var i=u.keys(e),n=0;n<i.length;++n){var a=i[n];c.test(a)||(t[a]=e[a])}return t}return o.markAsOriginatingFromRejection(e),e}t.exports=function(i,n){return function(e,t){var r;null!==i&&(e?(r=f(a(e)),i._attachExtraTrace(r),i._reject(r)):n?(r=[].slice.call(arguments,1),i._fulfill(r)):i._fulfill(t),i=null)}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(t,e,r){"use strict";e.exports=function(e){var r=t("./util"),i=e._async,n=r.tryCatch,a=r.errorObj;function o(e,t){if(!r.isArray(e))return s.call(this,e,t);e=n(t).apply(this._boundValue(),[null].concat(e));e===a&&i.throwLater(e.e)}function s(e,t){var r=this._boundValue(),e=void 0===e?n(t).call(r,null):n(t).call(r,null,e);e===a&&i.throwLater(e.e)}function u(e,t){var r;e||((r=new Error(e+"")).cause=e,e=r);e=n(t).call(this._boundValue(),e);e===a&&i.throwLater(e.e)}e.prototype.asCallback=e.prototype.nodeify=function(e,t){var r;return"function"==typeof e&&(r=s,void 0!==t&&Object(t).spread&&(r=o),this._then(r,u,void 0,this,e)),this}}},{"./util":36}],22:[function(R,B,e){"use strict";B.exports=function(){function o(){return new m("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")}function s(){return new I.PromiseInspection(this._target())}function u(e){return I.reject(new m(e))}function c(){}var a={},p=R("./util");p.setReflectHandler(s);function e(){var e=ne.domain;return void 0===e?null:e}function t(){return{domain:e(),async:null}}function r(){return{domain:e(),async:new i("Bluebird::Promise")}}var i=p.isNode&&p.nodeSupportsAsyncResource?R("async_hooks").AsyncResource:null,l=p.isNode?t:function(){return null};p.notEnumerableProp(I,"_getContext",l);var n=R("./es5"),f=R("./async"),h=new f;n.defineProperty(I,"_async",{value:h});var d=R("./errors"),m=I.TypeError=d.TypeError;I.RangeError=d.RangeError;var g=I.CancellationError=d.CancellationError;I.TimeoutError=d.TimeoutError,I.OperationalError=d.OperationalError,I.RejectionError=d.OperationalError,I.AggregateError=d.AggregateError;var b=function(){},y={},v={},_=R("./thenables")(I,b),w=R("./promise_array")(I,b,_,u,c),k=R("./context")(I),d=k.create,x=R("./debuggability")(I,k,function(){l=r,p.notEnumerableProp(I,"_getContext",r)},function(){l=t,p.notEnumerableProp(I,"_getContext",t)}),S=(x.CapturedTrace,R("./finally")(I,_,v)),j=R("./catch_filter")(v),E=R("./nodeback"),A=p.errorObj,P=p.tryCatch;function I(e){e!==b&&function(e,t){if(null==e||e.constructor!==I)throw new m("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n");if("function"!=typeof t)throw new m("expecting a function but got "+p.classString(t))}(this,e),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(e),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function T(e){this.promise._resolveCallback(e)}function O(e){this.promise._rejectCallback(e,!1)}function C(e){var t=new I(b);t._fulfillmentHandler0=e,t._rejectionHandler0=e,t._promise0=e,t._receiver0=e}return I.prototype.toString=function(){return"[object Promise]"},I.prototype.caught=I.prototype.catch=function(e){var t=arguments.length;if(1<t){for(var r=new Array(t-1),i=0,n=0;n<t-1;++n){var a=arguments[n];if(!p.isObject(a))return u("Catch statement predicate: expecting an object but got "+p.classString(a));r[i++]=a}if(r.length=i,"function"!=typeof(e=arguments[n]))throw new m("The last argument to .catch() must be a function, got "+p.toString(e));return this.then(void 0,j(r,e,this))}return this.then(void 0,e)},I.prototype.reflect=function(){return this._then(s,s,void 0,this,void 0)},I.prototype.then=function(e,t){var r;return x.warnings()&&0<arguments.length&&"function"!=typeof e&&"function"!=typeof t&&(r=".then() only accepts functions but was passed: "+p.classString(e),1<arguments.length&&(r+=", "+p.classString(t)),this._warn(r)),this._then(e,t,void 0,void 0,void 0)},I.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},I.prototype.spread=function(e){return"function"!=typeof e?u("expecting a function but got "+p.classString(e)):this.all()._then(e,void 0,void 0,y,void 0)},I.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},I.prototype.all=function(){return 0<arguments.length&&this._warn(".all() was passed arguments but it does not take any"),new w(this).promise()},I.prototype.error=function(e){return this.caught(p.originatesFromRejection,e)},I.getNewLibraryCopy=B.exports,I.is=function(e){return e instanceof I},I.fromNode=I.fromCallback=function(e){var t=new I(b);t._captureStackTrace();var r=1<arguments.length&&!!Object(arguments[1]).multiArgs,r=P(e)(E(t,r));return r===A&&t._rejectCallback(r.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},I.all=function(e){return new w(e).promise()},I.resolve=I.fulfilled=I.cast=function(e){var t=_(e);return t instanceof I||((t=new I(b))._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},I.reject=I.rejected=function(e){var t=new I(b);return t._captureStackTrace(),t._rejectCallback(e,!0),t},I.setScheduler=function(e){if("function"!=typeof e)throw new m("expecting a function but got "+p.classString(e));return h.setScheduler(e)},I.prototype._then=function(e,t,r,i,n){var a=void 0!==n,o=a?n:new I(b),s=this._target(),u=s._bitField;a||(o._propagateFrom(this,3),o._captureStackTrace(),void 0===i&&0!=(2097152&this._bitField)&&(i=0!=(50397184&u)?this._boundValue():s===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,o));var c,f,n=l();return 0!=(50397184&u)?(a=s._settlePromiseCtx,0!=(33554432&u)?(f=s._rejectionHandler0,c=e):0!=(16777216&u)?(f=s._fulfillmentHandler0,c=t,s._unsetRejectionIsUnhandled()):(a=s._settlePromiseLateCancellationObserver,f=new g("late cancellation observer"),s._attachExtraTrace(f),c=t),h.invoke(a,s,{handler:p.contextBind(n,c),promise:o,receiver:i,value:f})):s._addCallbacks(e,t,o,i,n),o},I.prototype._length=function(){return 65535&this._bitField},I.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},I.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},I.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},I.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},I.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},I.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},I.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},I.prototype._isFinal=function(){return 0<(4194304&this._bitField)},I.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},I.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},I.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},I.prototype._setAsyncGuaranteed=function(){var e;h.hasCustomScheduler()||(e=this._bitField,this._bitField=e|(536870912&e)>>2^134217728)},I.prototype._setNoAsyncGuarantee=function(){this._bitField=-134217729&(536870912|this._bitField)},I.prototype._receiverAt=function(e){e=0===e?this._receiver0:this[4*e-4+3];if(e!==a)return void 0===e&&this._isBound()?this._boundValue():e},I.prototype._promiseAt=function(e){return this[4*e-4+2]},I.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4]},I.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},I.prototype._boundValue=function(){},I.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,r=e._rejectionHandler0,i=e._promise0,e=e._receiverAt(0);void 0===e&&(e=a),this._addCallbacks(t,r,i,e,null)},I.prototype._migrateCallbackAt=function(e,t){var r=e._fulfillmentHandlerAt(t),i=e._rejectionHandlerAt(t),n=e._promiseAt(t),t=e._receiverAt(t);void 0===t&&(t=a),this._addCallbacks(r,i,n,t,null)},I.prototype._addCallbacks=function(e,t,r,i,n){var a,o=this._length();return 65531<=o&&(o=0,this._setLength(0)),0===o?(this._promise0=r,this._receiver0=i,"function"==typeof e&&(this._fulfillmentHandler0=p.contextBind(n,e)),"function"==typeof t&&(this._rejectionHandler0=p.contextBind(n,t))):(this[2+(a=4*o-4)]=r,this[3+a]=i,"function"==typeof e&&(this[a]=p.contextBind(n,e)),"function"==typeof t&&(this[1+a]=p.contextBind(n,t))),this._setLength(o+1),o},I.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},I.prototype._resolveCallback=function(e,t){if(0==(117506048&this._bitField)){if(e===this)return this._rejectCallback(o(),!1);var r=_(e,this);if(!(r instanceof I))return this._fulfill(e);t&&this._propagateFrom(r,2);var i=r._target();if(i!==this){t=i._bitField;if(0==(50397184&t)){var n=this._length();0<n&&i._migrateCallback0(this);for(var a=1;a<n;++a)i._migrateCallbackAt(this,a);this._setFollowing(),this._setLength(0),this._setFollowee(r)}else 0!=(33554432&t)?this._fulfill(i._value()):0!=(16777216&t)?this._reject(i._reason()):(t=new g("late cancellation observer"),i._attachExtraTrace(t),this._reject(t))}else this._reject(o())}},I.prototype._rejectCallback=function(e,t,r){var i=p.ensureErrorObject(e),n=i===e;n||r||!x.warnings()||(r="a promise was rejected with a non-error: "+p.classString(e),this._warn(r,!0)),this._attachExtraTrace(i,!!t&&n),this._reject(e)},I.prototype._resolveFromExecutor=function(e){var t,r;e!==b&&((t=this)._captureStackTrace(),this._pushContext(),r=!0,e=this._execute(e,function(e){t._resolveCallback(e)},function(e){t._rejectCallback(e,r)}),r=!1,this._popContext(),void 0!==e&&t._rejectCallback(e,!0))},I.prototype._settlePromiseFromHandler=function(e,t,r,i){var n;0==(65536&i._bitField)&&(i._pushContext(),t===y?r&&"number"==typeof r.length?n=P(e).apply(this._boundValue(),r):(n=A).e=new m("cannot .spread() a non-array: "+p.classString(r)):n=P(e).call(t,r),t=i._popContext(),0==(65536&i._bitField)&&(n===v?i._reject(r):n===A?i._rejectCallback(n.e,!1):(x.checkForgottenReturns(n,t,"",i,this),i._resolveCallback(n))))},I.prototype._target=function(){for(var e=this;e._isFollowing();)e=e._followee();return e},I.prototype._followee=function(){return this._rejectionHandler0},I.prototype._setFollowee=function(e){this._rejectionHandler0=e},I.prototype._settlePromise=function(e,t,r,i){var n=e instanceof I,a=this._bitField,o=0!=(134217728&a);0!=(65536&a)?(n&&e._invokeInternalOnCancel(),r instanceof S&&r.isFinallyHandler()?(r.cancelPromise=e,P(t).call(r,i)===A&&e._reject(A.e)):t===s?e._fulfill(s.call(r)):r instanceof c?r._promiseCancelled(e):n||e instanceof w?e._cancel():r.cancel()):"function"==typeof t?n?(o&&e._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,r,i,e)):t.call(r,i,e):r instanceof c?r._isResolved()||(0!=(33554432&a)?r._promiseFulfilled(i,e):r._promiseRejected(i,e)):n&&(o&&e._setAsyncGuaranteed(),0!=(33554432&a)?e._fulfill(i):e._reject(i))},I.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler,r=e.promise,i=e.receiver,e=e.value;"function"==typeof t?r instanceof I?this._settlePromiseFromHandler(t,i,e,r):t.call(i,e,r):r instanceof I&&r._reject(e)},I.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},I.prototype._settlePromise0=function(e,t,r){var i=this._promise0,n=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(i,e,n,t)},I.prototype._clearCallbackDataAtIndex=function(e){e=4*e-4;this[2+e]=this[3+e]=this[e]=this[1+e]=void 0},I.prototype._fulfill=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(e===this){var r=o();return this._attachExtraTrace(r),this._reject(r)}this._setFulfilled(),this._rejectionHandler0=e,0<(65535&t)&&(0!=(134217728&t)?this._settlePromises():h.settlePromises(this),this._dereferenceTrace())}},I.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return h.fatalError(e,p.isNode);0<(65535&t)?h.settlePromises(this):this._ensurePossibleRejectionHandled()}},I.prototype._fulfillPromises=function(e,t){for(var r=1;r<e;r++){var i=this._fulfillmentHandlerAt(r),n=this._promiseAt(r),a=this._receiverAt(r);this._clearCallbackDataAtIndex(r),this._settlePromise(n,i,a,t)}},I.prototype._rejectPromises=function(e,t){for(var r=1;r<e;r++){var i=this._rejectionHandlerAt(r),n=this._promiseAt(r),a=this._receiverAt(r);this._clearCallbackDataAtIndex(r),this._settlePromise(n,i,a,t)}},I.prototype._settlePromises=function(){var e,t=this._bitField,r=65535&t;0<r&&(0!=(16842752&t)?(e=this._fulfillmentHandler0,this._settlePromise0(this._rejectionHandler0,e,t),this._rejectPromises(r,e)):(e=this._rejectionHandler0,this._settlePromise0(this._fulfillmentHandler0,e,t),this._fulfillPromises(r,e)),this._setLength(0)),this._clearCancellationData()},I.prototype._settledValue=function(){var e=this._bitField;return 0!=(33554432&e)?this._rejectionHandler0:0!=(16777216&e)?this._fulfillmentHandler0:void 0},"undefined"!=typeof Symbol&&Symbol.toStringTag&&n.defineProperty(I.prototype,Symbol.toStringTag,{get:function(){return"Object"}}),I.defer=I.pending=function(){return x.deprecated("Promise.defer","new Promise"),{promise:new I(b),resolve:T,reject:O}},p.notEnumerableProp(I,"_makeSelfResolutionError",o),R("./method")(I,b,_,u,x),R("./bind")(I,b,_,x),R("./cancel")(I,w,u,x),R("./direct_resolve")(I),R("./synchronous_inspection")(I),R("./join")(I,w,_,b,h),(I.Promise=I).version="3.7.2",R("./call_get.js")(I),R("./generators.js")(I,u,b,_,c,x),R("./map.js")(I,w,u,_,b,x),R("./nodeify.js")(I),R("./promisify.js")(I,b),R("./props.js")(I,w,_,u),R("./race.js")(I,b,_,u),R("./reduce.js")(I,w,u,_,b,x),R("./settle.js")(I,w,x),R("./some.js")(I,w,u),R("./timers.js")(I,b,x),R("./using.js")(I,u,_,d,b,x),R("./any.js")(I),R("./each.js")(I,b),R("./filter.js")(I,b),p.toFastProperties(I),p.toFastProperties(I.prototype),C({a:1}),C({b:2}),C({c:3}),C(1),C(function(){}),C(void 0),C(!1),C(new I(b)),x.setBounds(f.firstLineError,p.lastLineError),I}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36,async_hooks:void 0}],23:[function(i,e,t){"use strict";e.exports=function(s,r,u,a,e){var o=i("./util");o.isArray;function t(e){var t=this._promise=new s(r);e instanceof s&&(t._propagateFrom(e,3),e.suppressUnhandledRejections()),t._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return o.inherits(t,e),t.prototype.length=function(){return this._length},t.prototype.promise=function(){return this._promise},t.prototype._init=function e(t,r){var i=u(this._values,this._promise);if(i instanceof s){var n=(i=i._target())._bitField;if(this._values=i,0==(50397184&n))return this._promise._setAsyncGuaranteed(),i._then(e,this._reject,void 0,this,r);if(0==(33554432&n))return 0!=(16777216&n)?this._reject(i._reason()):this._cancel();i=i._value()}null!==(i=o.asArray(i))?0!==i.length?this._iterate(i):-5===r?this._resolveEmptyArray():this._resolve(function(e){switch(e){case-2:return[];case-3:return{};case-6:return new Map}}(r)):(i=a("expecting an array or an iterable object but got "+o.classString(i)).reason(),this._promise._rejectCallback(i,!1))},t.prototype._iterate=function(e){var t=this.getActualLength(e.length);this._length=t,this._values=this.shouldCopyValues()?new Array(t):this._values;for(var r=this._promise,i=!1,n=null,a=0;a<t;++a){var o=u(e[a],r),n=o instanceof s?(o=o._target())._bitField:null;i?null!==n&&o.suppressUnhandledRejections():null!==n?0==(50397184&n)?(o._proxy(this,a),this._values[a]=o):i=0!=(33554432&n)?this._promiseFulfilled(o._value(),a):0!=(16777216&n)?this._promiseRejected(o._reason(),a):this._promiseCancelled(a):i=this._promiseFulfilled(o,a)}i||r._setAsyncGuaranteed()},t.prototype._isResolved=function(){return null===this._values},t.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},t.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},t.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},t.prototype._promiseFulfilled=function(e,t){return this._values[t]=e,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},t.prototype._promiseCancelled=function(){return this._cancel(),!0},t.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},t.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof s)e.cancel();else for(var t=0;t<e.length;++t)e[t]instanceof s&&e[t].cancel()}},t.prototype.shouldCopyValues=function(){return!0},t.prototype.getActualLength=function(e){return e},t}},{"./util":36}],24:[function(i,e,t){"use strict";e.exports=function(c,f){var h={},d=i("./util"),p=i("./nodeback"),l=d.withAppended,m=d.maybeWrapAsError,e=d.canEvaluate,g=i("./errors").TypeError,b={__isPromisified__:!0},t=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),y=function(e){return d.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e};function n(e){return!t.test(e)}function v(e){try{return!0===e.__isPromisified__}catch(e){return!1}}function _(e,t,r,i){for(var n,a,o,s=d.inheritedDataKeys(e),u=[],c=0;c<s.length;++c){var f=s[c],p=e[f],l=i===y||y(f,p,e);"function"!=typeof p||v(p)||(n=e,a=f,o=t,(o=d.getDataPropertyOrDefault(n,a+o,b))&&v(o))||!i(f,p,e,l)||u.push(f,p)}return function(e,t,r){for(var i=0;i<e.length;i+=2){var n=e[i];if(r.test(n))for(var a=n.replace(r,""),o=0;o<e.length;o+=2)if(e[o]===a)throw new g("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",t))}}(u,t,r),u}var r,w=function(e){return e.replace(/([$])/,"\\$")};var k=e?r:function(n,a,e,t,r,o){var s=function(){return this}(),u=n;function i(){var e=a;a===h&&(e=this);var t=new c(f);t._captureStackTrace();var r="string"==typeof u&&this!==s?this[u]:n,i=p(t,o);try{r.apply(e,l(arguments,i))}catch(e){t._rejectCallback(m(e),!0,!0)}return t._isFateSealed()||t._setAsyncGuaranteed(),t}return"string"==typeof u&&(n=t),d.notEnumerableProp(i,"__isPromisified__",!0),i};function x(e,t,r,i,n){for(var a=new RegExp(w(t)+"$"),o=_(e,t,a,r),s=0,u=o.length;s<u;s+=2){var c,f=o[s],p=o[s+1],l=f+t;i===k?e[l]=k(f,h,f,p,t,n):(c=i(p,function(){return k(f,h,f,p,t,n)}),d.notEnumerableProp(c,"__isPromisified__",!0),e[l]=c)}return d.toFastProperties(e),e}c.promisify=function(e,t){if("function"!=typeof e)throw new g("expecting a function but got "+d.classString(e));if(v(e))return e;var r=void 0===(t=Object(t)).context?h:t.context,i=!!t.multiArgs,i=k(t=e,r,void 0,t,null,i);return d.copyDescriptors(e,i,n),i},c.promisifyAll=function(e,t){if("function"!=typeof e&&"object"!==_typeof(e))throw new g("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");var r=!!(t=Object(t)).multiArgs,i=t.suffix;"string"!=typeof i&&(i="Async");var n=t.filter;"function"!=typeof n&&(n=y);var a=t.promisifier;if("function"!=typeof a&&(a=k),!d.isIdentifier(i))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var o=d.inheritedDataKeys(e),s=0;s<o.length;++s){var u=e[o[s]];"constructor"!==o[s]&&d.isClass(u)&&(x(u.prototype,i,n,a,r),x(u,i,n,a,r))}return x(e,i,n,a,r)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(d,e,t){"use strict";e.exports=function(r,e,i,n){var s,t=d("./util"),a=t.isObject,u=d("./es5");"function"==typeof Map&&(s=Map);var o,c,f=(c=0,function(e){o=e.size,c=0;var t=new Array(2*e.size);return e.forEach(p,t),t});function p(e,t){this[c]=e,this[c+o]=t,c++}function l(e){var t=!1;if(void 0!==s&&e instanceof s)n=f(e),t=!0;else for(var r=u.keys(e),i=r.length,n=new Array(2*i),a=0;a<i;++a){var o=r[a];n[a]=e[o],n[a+i]=o}this.constructor$(n),this._isMap=t,this._init$(void 0,t?-6:-3)}function h(e){var t=i(e);return a(t)?(e=t instanceof r?t._then(r.props,void 0,void 0,void 0,void 0):new l(t).promise(),t instanceof r&&e._propagateFrom(t,2),e):n("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}t.inherits(l,e),l.prototype._init=function(){},l.prototype._promiseFulfilled=function(e,t){var r;if(this._values[t]=e,++this._totalResolved>=this._length){if(this._isMap)r=function(e){for(var t=new s,r=e.length/2|0,i=0;i<r;++i){var n=e[r+i],a=e[i];t.set(n,a)}return t}(this._values);else{r={};for(var i=this.length(),n=0,a=this.length();n<a;++n)r[this._values[n+i]]=this._values[n]}return this._resolve(r),!0}return!1},l.prototype.shouldCopyValues=function(){return!1},l.prototype.getActualLength=function(e){return e>>1},r.prototype.props=function(){return h(this)},r.props=h}},{"./es5":13,"./util":36}],26:[function(e,t,r){"use strict";function i(e){this._capacity=e,this._length=0,this._front=0}i.prototype._willBeOverCapacity=function(e){return this._capacity<e},i.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1),this[this._front+t&this._capacity-1]=e,this._length=t+1},i.prototype.push=function(e,t,r){var i=this.length()+3;if(this._willBeOverCapacity(i))return this._pushOne(e),this._pushOne(t),void this._pushOne(r);var n=this._front+i-3;this._checkCapacity(i);var a=this._capacity-1;this[n&a]=e,this[1+n&a]=t,this[2+n&a]=r,this._length=i},i.prototype.shift=function(){var e=this._front,t=this[e];return this[e]=void 0,this._front=e+1&this._capacity-1,this._length--,t},i.prototype.length=function(){return this._length},i.prototype._checkCapacity=function(e){this._capacity<e&&this._resizeTo(this._capacity<<1)},i.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e,function(e,t,r,i,n){for(var a=0;a<n;++a)r[a+i]=e[a+t],e[a+t]=void 0}(this,0,this,t,this._front+this._length&t-1)},t.exports=i},{}],27:[function(e,t,r){"use strict";t.exports=function(c,f,p,l){var h=e("./util"),d=function(t){return t.then(function(e){return r(e,t)})};function r(e,t){var r=p(e);if(r instanceof c)return d(r);if(null===(e=h.asArray(e)))return l("expecting an array or an iterable object but got "+h.classString(e));var i=new c(f);void 0!==t&&i._propagateFrom(t,3);for(var n=i._fulfill,a=i._reject,o=0,s=e.length;o<s;++o){var u=e[o];(void 0!==u||o in e)&&c.cast(u)._then(n,a,void 0,i,null)}return i}c.race=function(e){return r(e,void 0)},c.prototype.race=function(){return r(this,void 0)}}},{"./util":36}],28:[function(h,e,t){"use strict";e.exports=function(s,e,n,t,a,o){var u=h("./util"),c=u.tryCatch;function f(e,t,r,i){this.constructor$(e);e=s._getContext();this._fn=u.contextBind(e,t),void 0!==r&&(r=s.resolve(r))._attachCancellationCallback(this),this._initialValue=r,this._currentCancellable=null,this._eachValues=i===a?Array(this._length):0===i?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function p(e,t){this.isFulfilled()?t._resolve(e):t._reject(e)}function r(e,t,r,i){return"function"!=typeof t?n("expecting a function but got "+u.classString(t)):new f(e,t,r,i).promise()}function l(e){this.accum=e,this.array._gotAccum(e);e=t(this.value,this.array._promise);return e instanceof s?(this.array._currentCancellable=e)._then(i,void 0,void 0,this,void 0):i.call(this,e)}function i(e){var t=this.array,r=t._promise,i=c(t._fn);r._pushContext(),(i=void 0!==t._eachValues?i.call(r._boundValue(),e,this.index,this.length):i.call(r._boundValue(),this.accum,e,this.index,this.length))instanceof s&&(t._currentCancellable=i);e=r._popContext();return o.checkForgottenReturns(i,e,void 0!==t._eachValues?"Promise.each":"Promise.reduce",r),i}u.inherits(f,e),f.prototype._gotAccum=function(e){void 0!==this._eachValues&&null!==this._eachValues&&e!==a&&this._eachValues.push(e)},f.prototype._eachComplete=function(e){return null!==this._eachValues&&this._eachValues.push(e),this._eachValues},f.prototype._init=function(){},f.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},f.prototype.shouldCopyValues=function(){return!1},f.prototype._resolve=function(e){this._promise._resolveCallback(e),this._values=null},f.prototype._resultCancelled=function(e){if(e===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof s&&this._currentCancellable.cancel(),this._initialValue instanceof s&&this._initialValue.cancel())},f.prototype._iterate=function(e){var t=(this._values=e).length,r=void 0!==this._initialValue?(o=this._initialValue,0):(o=s.resolve(e[0]),1);this._currentCancellable=o;for(var i=r;i<t;++i){var n=e[i];n instanceof s&&n.suppressUnhandledRejections()}if(!o.isRejected())for(;r<t;++r){var a={accum:null,value:e[r],index:r,length:t,array:this},o=o._then(l,void 0,void 0,a,void 0);0==(127&r)&&o._setNoAsyncGuarantee()}(o=void 0!==this._eachValues?o._then(this._eachComplete,void 0,void 0,this,void 0):o)._then(p,p,void 0,o,this)},s.prototype.reduce=function(e,t){return r(this,e,t,null)},s.reduce=r}},{"./util":36}],29:[function(e,t,r){"use strict";var i,n,a,o=e("./util"),e=o.getNativePromise();e=o.isNode&&"undefined"==typeof MutationObserver?(i=H.setImmediate,n=ne.nextTick,o.isRecentNode?function(e){i.call(H,e)}:function(e){n.call(ne,e)}):"function"==typeof e&&"function"==typeof e.resolve?(a=e.resolve(),function(e){a.then(e)}):"undefined"!=typeof MutationObserver&&("undefined"==typeof window||!window.navigator||!window.navigator.standalone&&!window.cordova)&&"classList"in document.documentElement?function(){var r=document.createElement("div"),i={attributes:!0},n=!1,a=document.createElement("div");new MutationObserver(function(){r.classList.toggle("foo"),n=!1}).observe(a,i);return function(e){var t=new MutationObserver(function(){t.disconnect(),e()});t.observe(r,i),n||(n=!0,a.classList.toggle("foo"))}}():void 0!==s?function(e){s(e)}:"undefined"!=typeof setTimeout?function(e){setTimeout(e,0)}:function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")},t.exports=e},{"./util":36}],30:[function(a,e,t){"use strict";e.exports=function(e,t,r){var i=e.PromiseInspection;function n(e){this.constructor$(e)}a("./util").inherits(n,t),n.prototype._promiseResolved=function(e,t){return this._values[e]=t,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},n.prototype._promiseFulfilled=function(e,t){var r=new i;return r._bitField=33554432,r._settledValueField=e,this._promiseResolved(t,r)},n.prototype._promiseRejected=function(e,t){var r=new i;return r._bitField=16777216,r._settledValueField=e,this._promiseResolved(t,r)},e.settle=function(e){return r.deprecated(".settle()",".reflect()"),new n(e).promise()},e.allSettled=function(e){return new n(e).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(f,e,t){"use strict";e.exports=function(e,t,i){var r=f("./util"),n=f("./errors").RangeError,a=f("./errors").AggregateError,o=r.isArray,s={};function u(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function c(e,t){if((0|t)!==t||t<0)return i("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var r=new u(e),e=r.promise();return r.setHowMany(t),r.init(),e}r.inherits(u,t),u.prototype._init=function(){var e;this._initialized&&(0!==this._howMany?(this._init$(void 0,-5),e=o(this._values),!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))):this._resolve([]))},u.prototype.init=function(){this._initialized=!0,this._init()},u.prototype.setUnwrap=function(){this._unwrap=!0},u.prototype.howMany=function(){return this._howMany},u.prototype.setHowMany=function(e){this._howMany=e},u.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},u.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},u.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(s),this._checkOutcome())},u.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new a,t=this.length();t<this._values.length;++t)this._values[t]!==s&&e.push(this._values[t]);return 0<e.length?this._reject(e):this._cancel(),!0}return!1},u.prototype._fulfilled=function(){return this._totalResolved},u.prototype._rejected=function(){return this._values.length-this.length()},u.prototype._addRejected=function(e){this._values.push(e)},u.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},u.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},u.prototype._getRangeError=function(e){e="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new n(e)},u.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=c,e.prototype.some=function(e){return c(this,e)},e._SomePromiseArray=u}},{"./errors":12,"./util":36}],32:[function(e,t,r){"use strict";t.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var r=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},n=t.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},a=t.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},o=t.prototype.isPending=function(){return 0==(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},e.prototype.isPending=function(){return o.call(this._target())},e.prototype.isRejected=function(){return a.call(this._target())},e.prototype.isFulfilled=function(){return n.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return r.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),i.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,r){"use strict";t.exports=function(o,s){var u=e("./util"),c=u.errorObj,n=u.isObject;var a={}.hasOwnProperty;return function(e,t){if(n(e)){if(e instanceof o)return e;var r=function(e){try{return e.then}catch(e){return c.e=e,c}}(e);if(r===c){t&&t._pushContext();var i=o.reject(r.e);return t&&t._popContext(),i}if("function"==typeof r){if(function(e){try{return a.call(e,"_promise0")}catch(e){return!1}}(e)){i=new o(s);return e._then(i._fulfill,i._reject,void 0,i,null),i}return function(e,t,r){var i=new o(s),n=i;r&&r._pushContext();i._captureStackTrace(),r&&r._popContext();var a=!0,e=u.tryCatch(t).call(e,function(e){if(!i)return;i._resolveCallback(e),i=null},function(e){if(!i)return;i._rejectCallback(e,a,!0),i=null});a=!1,i&&e===c&&(i._rejectCallback(e.e,!0,!0),i=null);return n}(e,r,t)}}return e}}},{"./util":36}],34:[function(e,t,r){"use strict";t.exports=function(i,n,o){var s=e("./util"),u=i.TimeoutError;function c(e){this.handle=e}c.prototype._resultCancelled=function(){clearTimeout(this.handle)};function a(e){return t(+this).thenReturn(e)}var t=i.delay=function(e,t){var r;return void 0!==t?(r=i.resolve(t)._then(a,null,null,e,void 0),o.cancellation()&&t instanceof i&&r._setOnCancel(t)):(r=new i(n),e=setTimeout(function(){r._fulfill()},+e),o.cancellation()&&r._setOnCancel(new c(e)),r._captureStackTrace()),r._setAsyncGuaranteed(),r};i.prototype.delay=function(e){return t(e,this)};function r(e){return clearTimeout(this.handle),e}function f(e){throw clearTimeout(this.handle),e}i.prototype.timeout=function(e,i){var n,a;e=+e;e=new c(setTimeout(function(){var e,t,r;n.isPending()&&(e=n,r=a,t="string"!=typeof(t=i)?t instanceof Error?t:new u("operation timed out"):new u(t),s.markAsOriginatingFromRejection(t),e._attachExtraTrace(t),e._reject(t),null!=r&&r.cancel())},e));return o.cancellation()?(a=this.then(),(n=a._then(r,f,void 0,e,void 0))._setOnCancel(e)):n=this._then(r,f,void 0,e,void 0),n}}},{"./util":36}],35:[function(o,e,t){"use strict";e.exports=function(p,l,h,t,e,d){var m=o("./util"),r=o("./errors").TypeError,i=o("./util").inherits,g=m.errorObj,b=m.tryCatch,n={};function c(e){setTimeout(function(){throw e},0)}function y(n,a){var o=0,s=n.length,u=new p(e);return function e(){if(s<=o)return u._fulfill();var t,r,i=(t=n[o++],(r=h(t))!==t&&"function"==typeof t._isDisposable&&"function"==typeof t._getDisposer&&t._isDisposable()&&r._setDisposable(t._getDisposer()),r);if(i instanceof p&&i._isDisposable()){try{i=h(i._getDisposer().tryDispose(a),n.promise)}catch(e){return c(e)}if(i instanceof p)return i._then(e,c,null,null,null)}e()}(),u}function v(e,t,r){this._data=e,this._promise=t,this._context=r}function a(e,t,r){this.constructor$(e,t,r)}function _(e){return v.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function w(e){this.length=e,this.promise=null,this[e-1]=null}v.prototype.data=function(){return this._data},v.prototype.promise=function(){return this._promise},v.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():n},v.prototype.tryDispose=function(e){var t=this.resource(),r=this._context;void 0!==r&&r._pushContext();e=t!==n?this.doDispose(t,e):null;return void 0!==r&&r._popContext(),this._promise._unsetDisposable(),this._data=null,e},v.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},i(a,v),a.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},w.prototype._resultCancelled=function(){for(var e=this.length,t=0;t<e;++t){var r=this[t];r instanceof p&&r.cancel()}},p.using=function(){var e=arguments.length;if(e<2)return l("you must pass at least 2 arguments to Promise.using");var t,a=arguments[e-1];if("function"!=typeof a)return l("expecting a function but got "+m.classString(a));var o=!0;2===e&&Array.isArray(arguments[0])?(e=(t=arguments[0]).length,o=!1):(t=arguments,e--);for(var r=new w(e),i=0;i<e;++i){var n,s=t[i];v.isDisposer(s)?(s=(n=s).promise())._setDisposable(n):(n=h(s))instanceof p&&(s=n._then(_,null,null,{resources:r,index:i},void 0)),r[i]=s}for(var u=new Array(r.length),i=0;i<u.length;++i)u[i]=p.resolve(r[i]).reflect();var c=p.all(u).then(function(e){for(var t=0;t<e.length;++t){var r=e[t];if(r.isRejected())return g.e=r.error(),g;if(!r.isFulfilled())return void c.cancel();e[t]=r.value()}f._pushContext(),a=b(a);var i=o?a.apply(void 0,e):a(e),n=f._popContext();return d.checkForgottenReturns(i,n,"Promise.using",f),i}),f=c.lastly(function(){var e=new p.PromiseInspection(c);return y(r,e)});return(r.promise=f)._setOnCancel(r),f},p.prototype._setDisposable=function(e){this._bitField=131072|this._bitField,this._disposer=e},p.prototype._isDisposable=function(){return 0<(131072&this._bitField)},p.prototype._getDisposer=function(){return this._disposer},p.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},p.prototype.disposer=function(e){if("function"==typeof e)return new a(e,this,t());throw new r}}},{"./errors":12,"./util":36}],36:[function(e,t,r){"use strict";var c=e("./es5"),i="undefined"==typeof navigator,n={e:{}},a,o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==H?H:void 0!==this?this:null;function s(){try{var e=a;return a=null,e.apply(this,arguments)}catch(e){return n.e=e,n}}function u(e){return a=e,s}var f=function(t,r){var i={}.hasOwnProperty;function e(){for(var e in this.constructor=t,(this.constructor$=r).prototype)i.call(r.prototype,e)&&"$"!==e.charAt(e.length-1)&&(this[e+"$"]=r.prototype[e])}return e.prototype=r.prototype,t.prototype=new e,t.prototype};function p(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function l(e){return"function"==typeof e||"object"===_typeof(e)&&null!==e}function h(e){return p(e)?new Error(j(e)):e}function d(e,t){for(var r=e.length,i=new Array(r+1),n=0;n<r;++n)i[n]=e[n];return i[n]=t,i}function m(e,t,r){if(!c.isES5)return{}.hasOwnProperty.call(e,t)?e[t]:void 0;t=Object.getOwnPropertyDescriptor(e,t);return null!=t?null==t.get&&null==t.set?t.value:r:void 0}function g(e,t,r){if(p(e))return e;r={value:r,configurable:!0,enumerable:!1,writable:!0};return c.defineProperty(e,t,r),e}function b(e){throw e}var y=function(){function s(e){for(var t=0;t<n.length;++t)if(n[t]===e)return 1}var n=[Array.prototype,Object.prototype,Function.prototype];if(c.isES5){var u=Object.getOwnPropertyNames;return function(e){for(var t,r=[],i=Object.create(null);null!=e&&!s(e);){try{t=u(e)}catch(e){return r}for(var n=0;n<t.length;++n){var a,o=t[n];i[o]||(i[o]=!0,null!=(a=Object.getOwnPropertyDescriptor(e,o))&&null==a.get&&null==a.set&&r.push(o))}e=c.getPrototypeOf(e)}return r}}var a={}.hasOwnProperty;return function(e){if(s(e))return[];var t=[];e:for(var r in e)if(a.call(e,r))t.push(r);else{for(var i=0;i<n.length;++i)if(a.call(n[i],r))continue e;t.push(r)}return t}}(),v=/this\s*\.\s*\S+\s*=/;function _(e){try{if("function"==typeof e){var t=c.names(e.prototype),r=c.isES5&&1<t.length,i=0<t.length&&!(1===t.length&&"constructor"===t[0]),t=v.test(e+"")&&0<c.names(e).length;if(r||i||t)return!0}return!1}catch(e){return!1}}function w(e){function t(){}t.prototype=e;var r=new t;function i(){return _typeof(r.foo)}return i(),i(),e}var k=/^[a-z$_][a-z$_0-9]*$/i;function x(e){return k.test(e)}function S(e,t,r){for(var i=new Array(e),n=0;n<e;++n)i[n]=t+n+r;return i}function j(e){try{return e+""}catch(e){return"[no string representation]"}}function E(e){return e instanceof Error||null!==e&&"object"===_typeof(e)&&"string"==typeof e.message&&"string"==typeof e.name}function A(e){try{g(e,"isOperational",!0)}catch(e){}}function P(e){return null!=e&&(e instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===e.isOperational)}function I(e){return E(e)&&c.propertyIsWritable(e,"stack")}var T="stack"in new Error?function(e){return I(e)?e:new Error(j(e))}:function(e){if(I(e))return e;try{throw new Error(j(e))}catch(e){return e}};function O(e){return{}.toString.call(e)}function C(e,t,r){for(var i=c.names(e),n=0;n<i.length;++n){var a=i[n];if(r(a))try{c.defineProperty(t,a,c.getDescriptor(e,a))}catch(e){}}}var R=function(e){return c.isArray(e)?e:null},B,R;"undefined"!=typeof Symbol&&Symbol.iterator&&(B="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){for(var t,r=[],i=e[Symbol.iterator]();!(t=i.next()).done;)r.push(t.value);return r},R=function(e){return c.isArray(e)?e:null!=e&&"function"==typeof e[Symbol.iterator]?B(e):null});var F=void 0!==ne&&"[object process]"===O(ne).toLowerCase(),M=void 0!==ne&&void 0!==ne.env,z;function N(e){return M?ne.env[e]:void 0}function D(){if("function"==typeof Promise)try{if("[object Promise]"===O(new Promise(function(){})))return Promise}catch(e){}}function L(e,t){if(null===e||"function"!=typeof t||t===z)return t;null!==e.domain&&(t=e.domain.bind(t));var r,i=e.async;return null!==i&&(r=t,t=function(){var e=new Array(2).concat([].slice.call(arguments));return e[0]=r,e[1]=this,i.runInAsyncScope.apply(i,e)}),t}var q={setReflectHandler:function(e){z=e},isClass:_,isIdentifier:x,inheritedDataKeys:y,getDataPropertyOrDefault:m,thrower:b,isArray:c.isArray,asArray:R,notEnumerableProp:g,isPrimitive:p,isObject:l,isError:E,canEvaluate:i,errorObj:n,tryCatch:u,inherits:f,withAppended:d,maybeWrapAsError:h,toFastProperties:w,filledRange:S,toString:j,canAttachTrace:I,ensureErrorObject:T,originatesFromRejection:P,markAsOriginatingFromRejection:A,classString:O,copyDescriptors:C,isNode:F,hasEnvVariables:M,env:N,global:o,getNativePromise:D,contextBind:L},U;q.isRecentNode=q.isNode&&(ne.versions&&ne.versions.node?U=ne.versions.node.split(".").map(Number):ne.version&&(U=ne.version.split(".").map(Number)),0===U[0]&&10<U[1]||0<U[0]),q.nodeSupportsAsyncResource=q.isNode&&function(){var t=!1;try{t="function"==typeof e("async_hooks").AsyncResource.prototype.runInAsyncScope}catch(e){t=!1}return t}(),q.isNode&&q.toFastProperties(ne);try{throw new Error}catch(e){q.lastLineError=e}t.exports=q},{"./es5":13,async_hooks:void 0}]},{},[4])(4)},"object"==_typeof(i)&&void 0!==r?r.exports=e():"function"==typeof B&&B.amd?B([],e):("undefined"!=typeof window?t=window:void 0!==H?t=H:"undefined"!=typeof self&&(t=self),t.Promise=e()),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{_process:354,timers:464}],129:[function(x,e,t){!function(e,t){"use strict";function m(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function g(e,t,r){if(g.isBN(e))return e;this.negative=0,this.words=null,this.length=0,(this.red=null)!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var i;"object"===_typeof(e)?e.exports=g:t.BN=g,(g.BN=g).wordSize=26;try{i=x("buffer").Buffer}catch(e){}function o(e,t,r){for(var i=0,n=Math.min(e.length,r),a=t;a<n;a++){var o=e.charCodeAt(a)-48;i<<=4,i|=49<=o&&o<=54?o-49+10:17<=o&&o<=22?o-17+10:15&o}return i}function p(e,t,r,i){for(var n=0,a=Math.min(e.length,r),o=t;o<a;o++){var s=e.charCodeAt(o)-48;n*=i,n+=49<=s?s-49+10:17<=s?s-17+10:s}return n}g.isBN=function(e){return e instanceof g||null!==e&&"object"===_typeof(e)&&e.constructor.wordSize===g.wordSize&&Array.isArray(e.words)},g.max=function(e,t){return 0<e.cmp(t)?e:t},g.min=function(e,t){return e.cmp(t)<0?e:t},g.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"===_typeof(e))return this._initArray(e,t,r);m((t="hex"===t?16:t)===(0|t)&&2<=t&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},g.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(m(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},g.prototype._initArray=function(e,t,r){if(m("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i,n,a=0;a<this.length;a++)this.words[a]=0;var o=0;if("be"===r)for(a=e.length-1,i=0;0<=a;a-=3)n=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=n<<o&67108863,this.words[i+1]=n>>>26-o&67108863,26<=(o+=24)&&(o-=26,i++);else if("le"===r)for(i=a=0;a<e.length;a+=3)n=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=n<<o&67108863,this.words[i+1]=n>>>26-o&67108863,26<=(o+=24)&&(o-=26,i++);return this.strip()},g.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r,i=0;i<this.length;i++)this.words[i]=0;for(var n=0,i=e.length-6,a=0;t<=i;i-=6)r=o(e,i,i+6),this.words[a]|=r<<n&67108863,this.words[a+1]|=r>>>26-n&4194303,26<=(n+=24)&&(n-=26,a++);i+6!==t&&(r=o(e,t,i+6),this.words[a]|=r<<n&67108863,this.words[a+1]|=r>>>26-n&4194303),this.strip()},g.prototype._parseBase=function(e,t,r){this.words=[0];for(var i=0,n=this.length=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,o=a%i,s=Math.min(a,a-o)+r,u=0,c=r;c<s;c+=i)u=p(e,c,c+i,t),this.imuln(n),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!=o){for(var f=1,u=p(e,c,e.length,t),c=0;c<o;c++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},g.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},g.prototype.clone=function(){var e=new g(null);return this.copy(e),e},g.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},g.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},g.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},g.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","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"],h=[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],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function n(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0,i=(r.length=i)-1|0,n=67108863&(p=(0|e.words[0])*(0|t.words[0])),a=p/67108864|0;r.words[0]=n;for(var o=1;o<i;o++){for(var s=a>>>26,u=67108863&a,c=Math.min(o,t.length-1),f=Math.max(0,o-e.length+1);f<=c;f++){var p,l=o-f|0;s+=(p=(0|e.words[l])*(0|t.words[f])+u)/67108864|0,u=67108863&p}r.words[o]=0|u,a=0|s}return 0!==a?r.words[o]=0|a:r.length--,r.strip()}g.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){s="";for(var r=0,i=0,n=0;n<this.length;n++){var a=this.words[n],o=(16777215&(a<<r|i)).toString(16),s=0!==(i=a>>>24-r&16777215)||n!==this.length-1?l[6-o.length]+o+s:o+s;26<=(r+=2)&&(r-=26,n--)}for(0!==i&&(s=i.toString(16)+s);s.length%t!=0;)s="0"+s;return s=0!==this.negative?"-"+s:s}if(e===(0|e)&&2<=e&&e<=36){var u=h[e],c=d[e];for(s="",(f=this.clone()).negative=0;!f.isZero();){var f,p=f.modn(c).toString(e);s=(f=f.idivn(c)).isZero()?p+s:l[u-p.length]+p+s}for(this.isZero()&&(s="0"+s);s.length%t!=0;)s="0"+s;return s=0!==this.negative?"-"+s:s}m(!1,"Base should be between 2 and 36")},g.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:2<this.length&&m(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},g.prototype.toJSON=function(){return this.toString(16)},g.prototype.toBuffer=function(e,t){return m(void 0!==i),this.toArrayLike(i,e,t)},g.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},g.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),n=r||Math.max(1,i);m(i<=n,"byte array longer than desired length"),m(0<n,"Requested array length <= 0"),this.strip();var a,o,t="le"===t,s=new e(n),u=this.clone();if(t){for(o=0;!u.isZero();o++)a=u.andln(255),u.iushrn(8),s[o]=a;for(;o<n;o++)s[o]=0}else{for(o=0;o<n-i;o++)s[o]=0;for(o=0;!u.isZero();o++)a=u.andln(255),u.iushrn(8),s[n-o-1]=a}return s},Math.clz32?g.prototype._countBits=function(e){return 32-Math.clz32(e)}:g.prototype._countBits=function(e){var t=e,e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},g.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},g.prototype.bitLength=function(){var e=this.words[this.length-1],e=this._countBits(e);return 26*(this.length-1)+e},g.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},g.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},g.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},g.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},g.prototype.isNeg=function(){return 0!==this.negative},g.prototype.neg=function(){return this.clone().ineg()},g.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},g.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},g.prototype.ior=function(e){return m(0==(this.negative|e.negative)),this.iuor(e)},g.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},g.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},g.prototype.iuand=function(e){for(var t=this.length>e.length?e:this,r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},g.prototype.iand=function(e){return m(0==(this.negative|e.negative)),this.iuand(e)},g.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},g.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},g.prototype.iuxor=function(e){for(var t,r=this.length>e.length?(t=this,e):(t=e,this),i=0;i<r.length;i++)this.words[i]=t.words[i]^r.words[i];if(this!==t)for(;i<t.length;i++)this.words[i]=t.words[i];return this.length=t.length,this.strip()},g.prototype.ixor=function(e){return m(0==(this.negative|e.negative)),this.iuxor(e)},g.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},g.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},g.prototype.inotn=function(e){m("number"==typeof e&&0<=e);var t=0|Math.ceil(e/26),e=e%26;this._expand(t),0<e&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return 0<e&&(this.words[r]=~this.words[r]&67108863>>26-e),this.strip()},g.prototype.notn=function(e){return this.clone().inotn(e)},g.prototype.setn=function(e,t){m("number"==typeof e&&0<=e);var r=e/26|0,e=e%26;return this._expand(1+r),this.words[r]=t?this.words[r]|1<<e:this.words[r]&~(1<<e),this.strip()},g.prototype.iadd=function(e){var t,r,i;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();i=this.length>e.length?(r=this,e):(r=e,this);for(var n=0,a=0;a<i.length;a++)t=(0|r.words[a])+(0|i.words[a])+n,this.words[a]=67108863&t,n=t>>>26;for(;0!==n&&a<r.length;a++)t=(0|r.words[a])+n,this.words[a]=67108863&t,n=t>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},g.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},g.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,i,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;i=0<n?(r=this,e):(r=e,this);for(var a=0,o=0;o<i.length;o++)a=(t=(0|r.words[o])-(0|i.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<r.length;o++)a=(t=(0|r.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this.strip()},g.prototype.sub=function(e){return this.clone().isub(e)};var a=function(e,t,r){var i=e.words,n=t.words,a=r.words,o=0|i[0],s=8191&o,u=o>>>13,c=0|i[1],f=8191&c,p=c>>>13,l=0|i[2],h=8191&l,d=l>>>13,m=0|i[3],g=8191&m,b=m>>>13,y=0|i[4],v=8191&y,_=y>>>13,w=0|i[5],k=8191&w,x=w>>>13,S=0|i[6],j=8191&S,E=S>>>13,A=0|i[7],P=8191&A,I=A>>>13,T=0|i[8],O=8191&T,C=T>>>13,R=0|i[9],B=8191&R,F=R>>>13,M=0|n[0],z=8191&M,N=M>>>13,D=0|n[1],L=8191&D,q=D>>>13,U=0|n[2],H=8191&U,K=U>>>13,V=0|n[3],$=8191&V,G=V>>>13,W=0|n[4],Z=8191&W,Y=W>>>13,Q=0|n[5],X=8191&Q,J=Q>>>13,o=0|n[6],c=8191&o,l=o>>>13,m=0|n[7],y=8191&m,w=m>>>13,S=0|n[8],A=8191&S,T=S>>>13,i=0|n[9],R=8191&i,M=i>>>13;r.negative=e.negative^t.negative,r.length=19;var V=(0+Math.imul(s,z)|0)+((8191&(U=Math.imul(s,N)+Math.imul(u,z)|0))<<13)|0,ee=(Math.imul(u,N)+(U>>>13)|0)+(V>>>26)|0;V&=67108863,D=Math.imul(f,z),U=Math.imul(f,N)+Math.imul(p,z)|0,W=Math.imul(p,N);Q=(ee+(D+Math.imul(s,L)|0)|0)+((8191&(U=(U+Math.imul(s,q)|0)+Math.imul(u,L)|0))<<13)|0;ee=((W+Math.imul(u,q)|0)+(U>>>13)|0)+(Q>>>26)|0,Q&=67108863,D=Math.imul(h,z),U=Math.imul(h,N)+Math.imul(d,z)|0,W=Math.imul(d,N),D=D+Math.imul(f,L)|0,U=(U+Math.imul(f,q)|0)+Math.imul(p,L)|0,W=W+Math.imul(p,q)|0;o=(ee+(D+Math.imul(s,H)|0)|0)+((8191&(U=(U+Math.imul(s,K)|0)+Math.imul(u,H)|0))<<13)|0;ee=((W+Math.imul(u,K)|0)+(U>>>13)|0)+(o>>>26)|0,o&=67108863,D=Math.imul(g,z),U=Math.imul(g,N)+Math.imul(b,z)|0,W=Math.imul(b,N),D=D+Math.imul(h,L)|0,U=(U+Math.imul(h,q)|0)+Math.imul(d,L)|0,W=W+Math.imul(d,q)|0,D=D+Math.imul(f,H)|0,U=(U+Math.imul(f,K)|0)+Math.imul(p,H)|0,W=W+Math.imul(p,K)|0;m=(ee+(D+Math.imul(s,$)|0)|0)+((8191&(U=(U+Math.imul(s,G)|0)+Math.imul(u,$)|0))<<13)|0;ee=((W+Math.imul(u,G)|0)+(U>>>13)|0)+(m>>>26)|0,m&=67108863,D=Math.imul(v,z),U=Math.imul(v,N)+Math.imul(_,z)|0,W=Math.imul(_,N),D=D+Math.imul(g,L)|0,U=(U+Math.imul(g,q)|0)+Math.imul(b,L)|0,W=W+Math.imul(b,q)|0,D=D+Math.imul(h,H)|0,U=(U+Math.imul(h,K)|0)+Math.imul(d,H)|0,W=W+Math.imul(d,K)|0,D=D+Math.imul(f,$)|0,U=(U+Math.imul(f,G)|0)+Math.imul(p,$)|0,W=W+Math.imul(p,G)|0;S=(ee+(D+Math.imul(s,Z)|0)|0)+((8191&(U=(U+Math.imul(s,Y)|0)+Math.imul(u,Z)|0))<<13)|0;ee=((W+Math.imul(u,Y)|0)+(U>>>13)|0)+(S>>>26)|0,S&=67108863,D=Math.imul(k,z),U=Math.imul(k,N)+Math.imul(x,z)|0,W=Math.imul(x,N),D=D+Math.imul(v,L)|0,U=(U+Math.imul(v,q)|0)+Math.imul(_,L)|0,W=W+Math.imul(_,q)|0,D=D+Math.imul(g,H)|0,U=(U+Math.imul(g,K)|0)+Math.imul(b,H)|0,W=W+Math.imul(b,K)|0,D=D+Math.imul(h,$)|0,U=(U+Math.imul(h,G)|0)+Math.imul(d,$)|0,W=W+Math.imul(d,G)|0,D=D+Math.imul(f,Z)|0,U=(U+Math.imul(f,Y)|0)+Math.imul(p,Z)|0,W=W+Math.imul(p,Y)|0;n=(ee+(D+Math.imul(s,X)|0)|0)+((8191&(U=(U+Math.imul(s,J)|0)+Math.imul(u,X)|0))<<13)|0;ee=((W+Math.imul(u,J)|0)+(U>>>13)|0)+(n>>>26)|0,n&=67108863,D=Math.imul(j,z),U=Math.imul(j,N)+Math.imul(E,z)|0,W=Math.imul(E,N),D=D+Math.imul(k,L)|0,U=(U+Math.imul(k,q)|0)+Math.imul(x,L)|0,W=W+Math.imul(x,q)|0,D=D+Math.imul(v,H)|0,U=(U+Math.imul(v,K)|0)+Math.imul(_,H)|0,W=W+Math.imul(_,K)|0,D=D+Math.imul(g,$)|0,U=(U+Math.imul(g,G)|0)+Math.imul(b,$)|0,W=W+Math.imul(b,G)|0,D=D+Math.imul(h,Z)|0,U=(U+Math.imul(h,Y)|0)+Math.imul(d,Z)|0,W=W+Math.imul(d,Y)|0,D=D+Math.imul(f,X)|0,U=(U+Math.imul(f,J)|0)+Math.imul(p,X)|0,W=W+Math.imul(p,J)|0;i=(ee+(D+Math.imul(s,c)|0)|0)+((8191&(U=(U+Math.imul(s,l)|0)+Math.imul(u,c)|0))<<13)|0;ee=((W+Math.imul(u,l)|0)+(U>>>13)|0)+(i>>>26)|0,i&=67108863,D=Math.imul(P,z),U=Math.imul(P,N)+Math.imul(I,z)|0,W=Math.imul(I,N),D=D+Math.imul(j,L)|0,U=(U+Math.imul(j,q)|0)+Math.imul(E,L)|0,W=W+Math.imul(E,q)|0,D=D+Math.imul(k,H)|0,U=(U+Math.imul(k,K)|0)+Math.imul(x,H)|0,W=W+Math.imul(x,K)|0,D=D+Math.imul(v,$)|0,U=(U+Math.imul(v,G)|0)+Math.imul(_,$)|0,W=W+Math.imul(_,G)|0,D=D+Math.imul(g,Z)|0,U=(U+Math.imul(g,Y)|0)+Math.imul(b,Z)|0,W=W+Math.imul(b,Y)|0,D=D+Math.imul(h,X)|0,U=(U+Math.imul(h,J)|0)+Math.imul(d,X)|0,W=W+Math.imul(d,J)|0,D=D+Math.imul(f,c)|0,U=(U+Math.imul(f,l)|0)+Math.imul(p,c)|0,W=W+Math.imul(p,l)|0;e=(ee+(D+Math.imul(s,y)|0)|0)+((8191&(U=(U+Math.imul(s,w)|0)+Math.imul(u,y)|0))<<13)|0;ee=((W+Math.imul(u,w)|0)+(U>>>13)|0)+(e>>>26)|0,e&=67108863,D=Math.imul(O,z),U=Math.imul(O,N)+Math.imul(C,z)|0,W=Math.imul(C,N),D=D+Math.imul(P,L)|0,U=(U+Math.imul(P,q)|0)+Math.imul(I,L)|0,W=W+Math.imul(I,q)|0,D=D+Math.imul(j,H)|0,U=(U+Math.imul(j,K)|0)+Math.imul(E,H)|0,W=W+Math.imul(E,K)|0,D=D+Math.imul(k,$)|0,U=(U+Math.imul(k,G)|0)+Math.imul(x,$)|0,W=W+Math.imul(x,G)|0,D=D+Math.imul(v,Z)|0,U=(U+Math.imul(v,Y)|0)+Math.imul(_,Z)|0,W=W+Math.imul(_,Y)|0,D=D+Math.imul(g,X)|0,U=(U+Math.imul(g,J)|0)+Math.imul(b,X)|0,W=W+Math.imul(b,J)|0,D=D+Math.imul(h,c)|0,U=(U+Math.imul(h,l)|0)+Math.imul(d,c)|0,W=W+Math.imul(d,l)|0,D=D+Math.imul(f,y)|0,U=(U+Math.imul(f,w)|0)+Math.imul(p,y)|0,W=W+Math.imul(p,w)|0;t=(ee+(D+Math.imul(s,A)|0)|0)+((8191&(U=(U+Math.imul(s,T)|0)+Math.imul(u,A)|0))<<13)|0;ee=((W+Math.imul(u,T)|0)+(U>>>13)|0)+(t>>>26)|0,t&=67108863,D=Math.imul(B,z),U=Math.imul(B,N)+Math.imul(F,z)|0,W=Math.imul(F,N),D=D+Math.imul(O,L)|0,U=(U+Math.imul(O,q)|0)+Math.imul(C,L)|0,W=W+Math.imul(C,q)|0,D=D+Math.imul(P,H)|0,U=(U+Math.imul(P,K)|0)+Math.imul(I,H)|0,W=W+Math.imul(I,K)|0,D=D+Math.imul(j,$)|0,U=(U+Math.imul(j,G)|0)+Math.imul(E,$)|0,W=W+Math.imul(E,G)|0,D=D+Math.imul(k,Z)|0,U=(U+Math.imul(k,Y)|0)+Math.imul(x,Z)|0,W=W+Math.imul(x,Y)|0,D=D+Math.imul(v,X)|0,U=(U+Math.imul(v,J)|0)+Math.imul(_,X)|0,W=W+Math.imul(_,J)|0,D=D+Math.imul(g,c)|0,U=(U+Math.imul(g,l)|0)+Math.imul(b,c)|0,W=W+Math.imul(b,l)|0,D=D+Math.imul(h,y)|0,U=(U+Math.imul(h,w)|0)+Math.imul(d,y)|0,W=W+Math.imul(d,w)|0,D=D+Math.imul(f,A)|0,U=(U+Math.imul(f,T)|0)+Math.imul(p,A)|0,W=W+Math.imul(p,T)|0;s=(ee+(D+Math.imul(s,R)|0)|0)+((8191&(U=(U+Math.imul(s,M)|0)+Math.imul(u,R)|0))<<13)|0;ee=((W+Math.imul(u,M)|0)+(U>>>13)|0)+(s>>>26)|0,s&=67108863,D=Math.imul(B,L),U=Math.imul(B,q)+Math.imul(F,L)|0,W=Math.imul(F,q),D=D+Math.imul(O,H)|0,U=(U+Math.imul(O,K)|0)+Math.imul(C,H)|0,W=W+Math.imul(C,K)|0,D=D+Math.imul(P,$)|0,U=(U+Math.imul(P,G)|0)+Math.imul(I,$)|0,W=W+Math.imul(I,G)|0,D=D+Math.imul(j,Z)|0,U=(U+Math.imul(j,Y)|0)+Math.imul(E,Z)|0,W=W+Math.imul(E,Y)|0,D=D+Math.imul(k,X)|0,U=(U+Math.imul(k,J)|0)+Math.imul(x,X)|0,W=W+Math.imul(x,J)|0,D=D+Math.imul(v,c)|0,U=(U+Math.imul(v,l)|0)+Math.imul(_,c)|0,W=W+Math.imul(_,l)|0,D=D+Math.imul(g,y)|0,U=(U+Math.imul(g,w)|0)+Math.imul(b,y)|0,W=W+Math.imul(b,w)|0,D=D+Math.imul(h,A)|0,U=(U+Math.imul(h,T)|0)+Math.imul(d,A)|0,W=W+Math.imul(d,T)|0;f=(ee+(D+Math.imul(f,R)|0)|0)+((8191&(U=(U+Math.imul(f,M)|0)+Math.imul(p,R)|0))<<13)|0;ee=((W+Math.imul(p,M)|0)+(U>>>13)|0)+(f>>>26)|0,f&=67108863,D=Math.imul(B,H),U=Math.imul(B,K)+Math.imul(F,H)|0,W=Math.imul(F,K),D=D+Math.imul(O,$)|0,U=(U+Math.imul(O,G)|0)+Math.imul(C,$)|0,W=W+Math.imul(C,G)|0,D=D+Math.imul(P,Z)|0,U=(U+Math.imul(P,Y)|0)+Math.imul(I,Z)|0,W=W+Math.imul(I,Y)|0,D=D+Math.imul(j,X)|0,U=(U+Math.imul(j,J)|0)+Math.imul(E,X)|0,W=W+Math.imul(E,J)|0,D=D+Math.imul(k,c)|0,U=(U+Math.imul(k,l)|0)+Math.imul(x,c)|0,W=W+Math.imul(x,l)|0,D=D+Math.imul(v,y)|0,U=(U+Math.imul(v,w)|0)+Math.imul(_,y)|0,W=W+Math.imul(_,w)|0,D=D+Math.imul(g,A)|0,U=(U+Math.imul(g,T)|0)+Math.imul(b,A)|0,W=W+Math.imul(b,T)|0;h=(ee+(D+Math.imul(h,R)|0)|0)+((8191&(U=(U+Math.imul(h,M)|0)+Math.imul(d,R)|0))<<13)|0;ee=((W+Math.imul(d,M)|0)+(U>>>13)|0)+(h>>>26)|0,h&=67108863,D=Math.imul(B,$),U=Math.imul(B,G)+Math.imul(F,$)|0,W=Math.imul(F,G),D=D+Math.imul(O,Z)|0,U=(U+Math.imul(O,Y)|0)+Math.imul(C,Z)|0,W=W+Math.imul(C,Y)|0,D=D+Math.imul(P,X)|0,U=(U+Math.imul(P,J)|0)+Math.imul(I,X)|0,W=W+Math.imul(I,J)|0,D=D+Math.imul(j,c)|0,U=(U+Math.imul(j,l)|0)+Math.imul(E,c)|0,W=W+Math.imul(E,l)|0,D=D+Math.imul(k,y)|0,U=(U+Math.imul(k,w)|0)+Math.imul(x,y)|0,W=W+Math.imul(x,w)|0,D=D+Math.imul(v,A)|0,U=(U+Math.imul(v,T)|0)+Math.imul(_,A)|0,W=W+Math.imul(_,T)|0;g=(ee+(D+Math.imul(g,R)|0)|0)+((8191&(U=(U+Math.imul(g,M)|0)+Math.imul(b,R)|0))<<13)|0;ee=((W+Math.imul(b,M)|0)+(U>>>13)|0)+(g>>>26)|0,g&=67108863,D=Math.imul(B,Z),U=Math.imul(B,Y)+Math.imul(F,Z)|0,W=Math.imul(F,Y),D=D+Math.imul(O,X)|0,U=(U+Math.imul(O,J)|0)+Math.imul(C,X)|0,W=W+Math.imul(C,J)|0,D=D+Math.imul(P,c)|0,U=(U+Math.imul(P,l)|0)+Math.imul(I,c)|0,W=W+Math.imul(I,l)|0,D=D+Math.imul(j,y)|0,U=(U+Math.imul(j,w)|0)+Math.imul(E,y)|0,W=W+Math.imul(E,w)|0,D=D+Math.imul(k,A)|0,U=(U+Math.imul(k,T)|0)+Math.imul(x,A)|0,W=W+Math.imul(x,T)|0;v=(ee+(D+Math.imul(v,R)|0)|0)+((8191&(U=(U+Math.imul(v,M)|0)+Math.imul(_,R)|0))<<13)|0;ee=((W+Math.imul(_,M)|0)+(U>>>13)|0)+(v>>>26)|0,v&=67108863,D=Math.imul(B,X),U=Math.imul(B,J)+Math.imul(F,X)|0,W=Math.imul(F,J),D=D+Math.imul(O,c)|0,U=(U+Math.imul(O,l)|0)+Math.imul(C,c)|0,W=W+Math.imul(C,l)|0,D=D+Math.imul(P,y)|0,U=(U+Math.imul(P,w)|0)+Math.imul(I,y)|0,W=W+Math.imul(I,w)|0,D=D+Math.imul(j,A)|0,U=(U+Math.imul(j,T)|0)+Math.imul(E,A)|0,W=W+Math.imul(E,T)|0;k=(ee+(D+Math.imul(k,R)|0)|0)+((8191&(U=(U+Math.imul(k,M)|0)+Math.imul(x,R)|0))<<13)|0;ee=((W+Math.imul(x,M)|0)+(U>>>13)|0)+(k>>>26)|0,k&=67108863,D=Math.imul(B,c),U=Math.imul(B,l)+Math.imul(F,c)|0,W=Math.imul(F,l),D=D+Math.imul(O,y)|0,U=(U+Math.imul(O,w)|0)+Math.imul(C,y)|0,W=W+Math.imul(C,w)|0,D=D+Math.imul(P,A)|0,U=(U+Math.imul(P,T)|0)+Math.imul(I,A)|0,W=W+Math.imul(I,T)|0;j=(ee+(D+Math.imul(j,R)|0)|0)+((8191&(U=(U+Math.imul(j,M)|0)+Math.imul(E,R)|0))<<13)|0;ee=((W+Math.imul(E,M)|0)+(U>>>13)|0)+(j>>>26)|0,j&=67108863,D=Math.imul(B,y),U=Math.imul(B,w)+Math.imul(F,y)|0,W=Math.imul(F,w),D=D+Math.imul(O,A)|0,U=(U+Math.imul(O,T)|0)+Math.imul(C,A)|0,W=W+Math.imul(C,T)|0;P=(ee+(D+Math.imul(P,R)|0)|0)+((8191&(U=(U+Math.imul(P,M)|0)+Math.imul(I,R)|0))<<13)|0;ee=((W+Math.imul(I,M)|0)+(U>>>13)|0)+(P>>>26)|0,P&=67108863,D=Math.imul(B,A),U=Math.imul(B,T)+Math.imul(F,A)|0,W=Math.imul(F,T);O=(ee+(D+Math.imul(O,R)|0)|0)+((8191&(U=(U+Math.imul(O,M)|0)+Math.imul(C,R)|0))<<13)|0;ee=((W+Math.imul(C,M)|0)+(U>>>13)|0)+(O>>>26)|0,O&=67108863;R=(ee+Math.imul(B,R)|0)+((8191&(U=Math.imul(B,M)+Math.imul(F,R)|0))<<13)|0;return ee=(Math.imul(F,M)+(U>>>13)|0)+(R>>>26)|0,R&=67108863,a[0]=V,a[1]=Q,a[2]=o,a[3]=m,a[4]=S,a[5]=n,a[6]=i,a[7]=e,a[8]=t,a[9]=s,a[10]=f,a[11]=h,a[12]=g,a[13]=v,a[14]=k,a[15]=j,a[16]=P,a[17]=O,a[18]=R,0!=ee&&(a[19]=ee,r.length++),r};function s(e,t,r){return(new u).mulp(e,t,r)}function u(e,t){this.x=e,this.y=t}Math.imul||(a=n),g.prototype.mulTo=function(e,t){var r=this.length+e.length,t=(10===this.length&&10===e.length?a:r<63?n:r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,a=0;a<r.length-1;a++){for(var o=n,n=0,s=67108863&i,u=Math.min(a,t.length-1),c=Math.max(0,a-e.length+1);c<=u;c++){var f=a-c,p=(0|e.words[f])*(0|t.words[c]),f=67108863&p,s=67108863&(f=f+s|0);n+=(o=(o=o+(p/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}r.words[a]=s,i=o,o=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}:s)(this,e,t);return t},u.prototype.makeRBT=function(e){for(var t=new Array(e),r=g.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,r,e);return t},u.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var i=0,n=0;n<t;n++)i|=(1&e)<<t-n-1,e>>=1;return i},u.prototype.permute=function(e,t,r,i,n,a){for(var o=0;o<a;o++)i[o]=t[e[o]],n[o]=r[e[o]]},u.prototype.transform=function(e,t,r,i,n,a){this.permute(a,e,t,r,i,n);for(var o=1;o<n;o<<=1)for(var s=o<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<n;f+=s)for(var p=u,l=c,h=0;h<o;h++){var d=r[f+h],m=i[f+h],g=p*(y=r[f+h+o])-l*(b=i[f+h+o]),b=p*b+l*y,y=g;r[f+h]=d+y,i[f+h]=m+b,r[f+h+o]=d-y,i[f+h+o]=m-b,h!==s&&(g=u*p-c*l,l=u*l+c*p,p=g)}},u.prototype.guessLen13b=function(e,t){for(var e=1&(i=1|Math.max(t,e)),r=0,i=i/2|0;i;i>>>=1)r++;return 1<<r+1+e},u.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=e[i];e[i]=e[r-i-1],e[r-i-1]=n,n=t[i],t[i]=-t[r-i-1],t[r-i-1]=-n}},u.prototype.normalize13b=function(e,t){for(var r=0,i=0;i<t/2;i++){var n=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+r;e[i]=67108863&n,r=n<67108864?0:n/67108864|0}return e},u.prototype.convert13b=function(e,t,r,i){for(var n=0,a=0;a<t;a++)n+=0|e[a],r[2*a]=8191&n,n>>>=13,r[2*a+1]=8191&n,n>>>=13;for(a=2*t;a<i;++a)r[a]=0;m(0===n),m(0==(-8192&n))},u.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},u.prototype.mulp=function(e,t,r){var i=2*this.guessLen13b(e.length,t.length),n=this.makeRBT(i),a=this.stub(i),o=new Array(i),s=new Array(i),u=new Array(i),c=new Array(i),f=new Array(i),p=new Array(i),l=r.words;l.length=i,this.convert13b(e.words,e.length,o,i),this.convert13b(t.words,t.length,c,i),this.transform(o,a,s,u,i,n),this.transform(c,a,f,p,i,n);for(var h=0;h<i;h++){var d=s[h]*f[h]-u[h]*p[h];u[h]=s[h]*p[h]+u[h]*f[h],s[h]=d}return this.conjugate(s,u,i),this.transform(s,u,l,a,i,n),this.conjugate(l,a,i),this.normalize13b(l,i),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},g.prototype.mul=function(e){var t=new g(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},g.prototype.mulf=function(e){var t=new g(null);return t.words=new Array(this.length+e.length),s(this,e,t)},g.prototype.imul=function(e){return this.clone().mulTo(e,this)},g.prototype.imuln=function(e){m("number"==typeof e),m(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,n=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=n>>>26,this.words[r]=67108863&n}return 0!==t&&(this.words[r]=t,this.length++),this},g.prototype.muln=function(e){return this.clone().imuln(e)},g.prototype.sqr=function(){return this.mul(this)},g.prototype.isqr=function(){return this.imul(this.clone())},g.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var i=r/26|0,n=r%26;t[r]=(e.words[i]&1<<n)>>>n}return t}(e);if(0===t.length)return new g(1);for(var r=this,i=0;i<t.length&&0===t[i];i++,r=r.sqr());if(++i<t.length)for(var n=r.sqr();i<t.length;i++,n=n.sqr())0!==t[i]&&(r=r.mul(n));return r},g.prototype.iushln=function(e){m("number"==typeof e&&0<=e);var t=e%26,r=(e-t)/26,i=67108863>>>26-t<<26-t;if(0!=t){for(var n=0,a=0;a<this.length;a++){var o=this.words[a]&i,s=(0|this.words[a])-o<<t;this.words[a]=s|n,n=o>>>26-t}n&&(this.words[a]=n,this.length++)}if(0!=r){for(a=this.length-1;0<=a;a--)this.words[a+r]=this.words[a];for(a=0;a<r;a++)this.words[a]=0;this.length+=r}return this.strip()},g.prototype.ishln=function(e){return m(0===this.negative),this.iushln(e)},g.prototype.iushrn=function(e,t,r){var i;m("number"==typeof e&&0<=e),i=t?(t-t%26)/26:0;var n=e%26,a=Math.min((e-n)/26,this.length),o=67108863^67108863>>>n<<n,s=r;if(i-=a,i=Math.max(0,i),s){for(var u=0;u<a;u++)s.words[u]=this.words[u];s.length=a}if(0!==a)if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;for(var c=0,u=this.length-1;0<=u&&(0!==c||i<=u);u--){var f=0|this.words[u];this.words[u]=c<<26-n|f>>>n,c=f&o}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},g.prototype.ishrn=function(e,t,r){return m(0===this.negative),this.iushrn(e,t,r)},g.prototype.shln=function(e){return this.clone().ishln(e)},g.prototype.ushln=function(e){return this.clone().iushln(e)},g.prototype.shrn=function(e){return this.clone().ishrn(e)},g.prototype.ushrn=function(e){return this.clone().iushrn(e)},g.prototype.testn=function(e){m("number"==typeof e&&0<=e);var t=e%26,e=(e-t)/26,t=1<<t;return!(this.length<=e)&&!!(this.words[e]&t)},g.prototype.imaskn=function(e){m("number"==typeof e&&0<=e);var t=e%26,e=(e-t)/26;return m(0===this.negative,"imaskn works only with positive numbers"),this.length<=e?this:(0!=t&&e++,this.length=Math.min(e,this.length),0!=t&&(t=67108863^67108863>>>t<<t,this.words[this.length-1]&=t),this.strip())},g.prototype.maskn=function(e){return this.clone().imaskn(e)},g.prototype.iaddn=function(e){return m("number"==typeof e),m(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},g.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},g.prototype.isubn=function(e){if(m("number"==typeof e),m(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},g.prototype.addn=function(e){return this.clone().iaddn(e)},g.prototype.subn=function(e){return this.clone().isubn(e)},g.prototype.iabs=function(){return this.negative=0,this},g.prototype.abs=function(){return this.clone().iabs()},g.prototype._ishlnsubmul=function(e,t,r){var i,n=e.length+r;this._expand(n);for(var a=0,o=0;o<e.length;o++){i=(0|this.words[o+r])+a;var s=(0|e.words[o])*t,a=((i-=67108863&s)>>26)-(s/67108864|0);this.words[o+r]=67108863&i}for(;o<this.length-r;o++)a=(i=(0|this.words[o+r])+a)>>26,this.words[o+r]=67108863&i;if(0===a)return this.strip();for(m(-1===a),o=a=0;o<this.length;o++)a=(i=-(0|this.words[o])+a)>>26,this.words[o]=67108863&i;return this.negative=1,this.strip()},g.prototype._wordDiv=function(e,t){var r=this.length-e.length,i=this.clone(),n=e,a=0|n.words[n.length-1];0!=(r=26-this._countBits(a))&&(n=n.ushln(r),i.iushln(r),a=0|n.words[n.length-1]);var o,s=i.length-n.length;if("mod"!==t){(o=new g(null)).length=1+s,o.words=new Array(o.length);for(var u=0;u<o.length;u++)o.words[u]=0}e=i.clone()._ishlnsubmul(n,1,s);0===e.negative&&(i=e,o&&(o.words[s]=1));for(var c=s-1;0<=c;c--){var f=67108864*(0|i.words[n.length+c])+(0|i.words[n.length+c-1]),f=Math.min(f/a|0,67108863);for(i._ishlnsubmul(n,f,c);0!==i.negative;)f--,i.negative=0,i._ishlnsubmul(n,1,c),i.isZero()||(i.negative^=1);o&&(o.words[c]=f)}return o&&o.strip(),i.strip(),"div"!==t&&0!=r&&i.iushrn(r),{div:o||null,mod:i}},g.prototype.divmod=function(e,t,r){return m(!e.isZero()),this.isZero()?{div:new g(0),mod:new g(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(n=a.mod.neg(),r&&0!==n.negative&&n.iadd(e)),{div:i,mod:n}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),{div:i="mod"!==t?a.div.neg():i,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(n=a.mod.neg(),r&&0!==n.negative&&n.isub(e)),{div:a.div,mod:n}):e.length>this.length||this.cmp(e)<0?{div:new g(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new g(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new g(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,n,a},g.prototype.div=function(e){return this.divmod(e,"div",!1).div},g.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},g.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},g.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),e=e.andln(1),i=r.cmp(i);return i<0||1===e&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},g.prototype.modn=function(e){m(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;0<=i;i--)r=(t*r+(0|this.words[i]))%e;return r},g.prototype.idivn=function(e){m(e<=67108863);for(var t=0,r=this.length-1;0<=r;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},g.prototype.divn=function(e){return this.clone().idivn(e)},g.prototype.egcd=function(e){m(0===e.negative),m(!e.isZero());for(var t=this,r=e.clone(),t=0!==t.negative?t.umod(e):t.clone(),i=new g(1),n=new g(0),a=new g(0),o=new g(1),s=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++s;for(var u=r.clone(),c=t.clone();!t.isZero();){for(var f=0,p=1;0==(t.words[0]&p)&&f<26;++f,p<<=1);if(0<f)for(t.iushrn(f);0<f--;)(i.isOdd()||n.isOdd())&&(i.iadd(u),n.isub(c)),i.iushrn(1),n.iushrn(1);for(var l=0,h=1;0==(r.words[0]&h)&&l<26;++l,h<<=1);if(0<l)for(r.iushrn(l);0<l--;)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(c)),a.iushrn(1),o.iushrn(1);0<=t.cmp(r)?(t.isub(r),i.isub(a),n.isub(o)):(r.isub(t),a.isub(i),o.isub(n))}return{a:a,b:o,gcd:r.iushln(s)}},g.prototype._invmp=function(e){m(0===e.negative),m(!e.isZero());for(var t,r=this,i=e.clone(),r=0!==r.negative?r.umod(e):r.clone(),n=new g(1),a=new g(0),o=i.clone();0<r.cmpn(1)&&0<i.cmpn(1);){for(var s=0,u=1;0==(r.words[0]&u)&&s<26;++s,u<<=1);if(0<s)for(r.iushrn(s);0<s--;)n.isOdd()&&n.iadd(o),n.iushrn(1);for(var c=0,f=1;0==(i.words[0]&f)&&c<26;++c,f<<=1);if(0<c)for(i.iushrn(c);0<c--;)a.isOdd()&&a.iadd(o),a.iushrn(1);0<=r.cmp(i)?(r.isub(i),n.isub(a)):(i.isub(r),a.isub(n))}return(t=0===r.cmpn(1)?n:a).cmpn(0)<0&&t.iadd(e),t},g.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0;for(var i=r.negative=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0)var a=t,t=r,r=a;else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},g.prototype.invm=function(e){return this.egcd(e).a.umod(e)},g.prototype.isEven=function(){return 0==(1&this.words[0])},g.prototype.isOdd=function(){return 1==(1&this.words[0])},g.prototype.andln=function(e){return this.words[0]&e},g.prototype.bincn=function(e){m("number"==typeof e);var t=e%26,e=(e-t)/26,t=1<<t;if(this.length<=e)return this._expand(1+e),this.words[e]|=t,this;for(var r=t,i=e;0!==r&&i<this.length;i++){var n=0|this.words[i],r=(n+=r)>>>26;n&=67108863,this.words[i]=n}return 0!==r&&(this.words[i]=r,this.length++),this},g.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},g.prototype.cmpn=function(e){var t=e<0;return 0===this.negative||t?0===this.negative&&t?1:(this.strip(),e=1<this.length?1:(m((e=t?-e:e)<=67108863,"Number is too big"),(t=0|this.words[0])===e?0:t<e?-1:1),0!==this.negative?0|-e:e):-1},g.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;e=this.ucmp(e);return 0!==this.negative?0|-e:e},g.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;0<=r;r--){var i=0|this.words[r],n=0|e.words[r];if(i!=n){i<n?t=-1:n<i&&(t=1);break}}return t},g.prototype.gtn=function(e){return 1===this.cmpn(e)},g.prototype.gt=function(e){return 1===this.cmp(e)},g.prototype.gten=function(e){return 0<=this.cmpn(e)},g.prototype.gte=function(e){return 0<=this.cmp(e)},g.prototype.ltn=function(e){return-1===this.cmpn(e)},g.prototype.lt=function(e){return-1===this.cmp(e)},g.prototype.lten=function(e){return this.cmpn(e)<=0},g.prototype.lte=function(e){return this.cmp(e)<=0},g.prototype.eqn=function(e){return 0===this.cmpn(e)},g.prototype.eq=function(e){return 0===this.cmp(e)},g.red=function(e){return new w(e)},g.prototype.toRed=function(e){return m(!this.red,"Already a number in reduction context"),m(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},g.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},g.prototype._forceRed=function(e){return this.red=e,this},g.prototype.forceRed=function(e){return m(!this.red,"Already a number in reduction context"),this._forceRed(e)},g.prototype.redAdd=function(e){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},g.prototype.redIAdd=function(e){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},g.prototype.redSub=function(e){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},g.prototype.redISub=function(e){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},g.prototype.redShl=function(e){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},g.prototype.redMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},g.prototype.redIMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},g.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},g.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},g.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},g.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},g.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},g.prototype.redPow=function(e){return m(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var c={k256:null,p224:null,p192:null,p25519:null};function f(e,t){this.name=e,this.p=new g(t,16),this.n=this.p.bitLength(),this.k=new g(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function w(e){var t;"string"==typeof e?(t=g._prime(e),this.m=t.p,this.prime=t):(m(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null)}function k(e){w.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new g(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)}f.prototype._tmp=function(){var e=new g(null);return e.words=new Array(Math.ceil(this.n/13)),e},f.prototype.ireduce=function(e){for(var t,r=e;this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength(),t>this.n;);e=t<this.n?-1:r.ucmp(this.p);return 0===e?(r.words[0]=0,r.length=1):0<e?r.isub(this.p):r.strip(),r},f.prototype.split=function(e,t){e.iushrn(this.n,0,t)},f.prototype.imulK=function(e){return e.imul(this.k)},r(b,f),b.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var n=e.words[9];for(t.words[t.length++]=4194303&n,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(4194303&a)<<4|n>>>22,n=a}n>>>=22,0===(e.words[i-10]=n)&&10<e.length?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var i=0|e.words[r];t+=977*i,e.words[r]=67108863&t,t=64*i+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(y,f),r(v,f),r(_,f),_.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var i=19*(0|e.words[r])+t,n=67108863&i;i>>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},g._prime=function(e){if(c[e])return c[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new y;else if("p192"===e)t=new v;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return c[e]=t},w.prototype._verify1=function(e){m(0===e.negative,"red works only with positives"),m(e.red,"red works only with red numbers")},w.prototype._verify2=function(e,t){m(0==(e.negative|t.negative),"red works only with positives"),m(e.red&&e.red===t.red,"red works only with red numbers")},w.prototype.imod=function(e){return(this.prime?this.prime.ireduce(e):e.umod(this.m))._forceRed(this)},w.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},w.prototype.add=function(e,t){this._verify2(e,t);t=e.add(t);return 0<=t.cmp(this.m)&&t.isub(this.m),t._forceRed(this)},w.prototype.iadd=function(e,t){this._verify2(e,t);t=e.iadd(t);return 0<=t.cmp(this.m)&&t.isub(this.m),t},w.prototype.sub=function(e,t){this._verify2(e,t);t=e.sub(t);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},w.prototype.isub=function(e,t){this._verify2(e,t);t=e.isub(t);return t.cmpn(0)<0&&t.iadd(this.m),t},w.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},w.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},w.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},w.prototype.isqr=function(e){return this.imul(e,e.clone())},w.prototype.sqr=function(e){return this.mul(e,e)},w.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(m(t%2==1),3===t){t=this.m.add(new g(1)).iushrn(2);return this.pow(e,t)}for(var r=this.m.subn(1),i=0;!r.isZero()&&0===r.andln(1);)i++,r.iushrn(1);m(!r.isZero());for(var n=new g(1).toRed(this),a=n.redNeg(),o=this.m.subn(1).iushrn(1),s=new g(2*(s=this.m.bitLength())*s).toRed(this);0!==this.pow(s,o).cmp(a);)s.redIAdd(a);for(var u=this.pow(s,r),c=this.pow(e,r.addn(1).iushrn(1)),f=this.pow(e,r),p=i;0!==f.cmp(n);){for(var l=f,h=0;0!==l.cmp(n);h++)l=l.redSqr();m(h<p);var d=this.pow(u,new g(1).iushln(p-h-1)),c=c.redMul(d),u=d.redSqr(),f=f.redMul(u),p=h}return c},w.prototype.invm=function(e){e=e._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},w.prototype.pow=function(e,t){if(t.isZero())return new g(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new g(1).toRed(this),r[1]=e;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],e);var n=r[0],a=0,o=0,s=t.bitLength()%26;for(0===s&&(s=26),i=t.length-1;0<=i;i--){for(var u=t.words[i],c=s-1;0<=c;c--){var f=u>>c&1;n!==r[0]&&(n=this.sqr(n)),0!=f||0!==a?(a<<=1,a|=f,(4===++o||0===i&&0===c)&&(n=this.mul(n,r[a]),a=o=0)):o=0}s=26}return n},w.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},w.prototype.convertFrom=function(e){e=e.clone();return e.red=null,e},g.mont=function(e){return new k(e)},r(k,w),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){e=this.imod(e.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;e=e.imul(t),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=e.isub(t).iushrn(this.shift),t=e;return 0<=e.cmp(this.m)?t=e.isub(this.m):e.cmpn(0)<0&&(t=e.iadd(this.m)),t._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new g(0)._forceRed(this);e=e.mul(t),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=e.isub(t).iushrn(this.shift),t=e;return 0<=e.cmp(this.m)?t=e.isub(this.m):e.cmpn(0)<0&&(t=e.iadd(this.m)),t._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{buffer:132}],130:[function(e,t,r){var x=e("concat-map"),S=e("balanced-match");t.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function t(e,r){var i=[];var n=S("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body);var o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body);var s=a||o;a=0<=n.body.indexOf(",");if(!s&&!a)return n.post.match(/,.*\}/)?(e=n.pre+"{"+n.body+j+n.post,t(e)):[e];var u;if(s)u=n.body.split(/\.\./);else if(u=A(n.body),1===u.length&&1===(u=t(u[0],!1).map(P)).length){var c=n.post.length?t(n.post,!1):[""];return c.map(function(e){return n.pre+u[0]+e})}var f=n.pre;var c=n.post.length?t(n.post,!1):[""];var p;if(s){var a=E(u[0]),l=E(u[1]),h=Math.max(u[0].length,u[1].length),d=3==u.length?Math.abs(E(u[2])):1,m=T,e=l<a;e&&(d*=-1,m=O);var g=u.some(I);p=[];for(var b,y,v=a;m(v,l);v+=d)o?"\\"===(b=String.fromCharCode(v))&&(b=""):(b=String(v),!g||0<(y=h-b.length)&&(y=new Array(1+y).join("0"),b=v<0?"-"+y+b.slice(1):y+b)),p.push(b)}else p=x(u,function(e){return t(e,!1)});for(var _=0;_<p.length;_++)for(var w=0;w<c.length;w++){var k=f+p[_]+c[w];r&&!s&&!k||i.push(k)}return i}(function(e){return e.split("\\\\").join(i).split("\\{").join(n).split("\\}").join(j).split("\\,").join(a).split("\\.").join(o)}(e),!0).map(s)};var i="\0SLASH"+Math.random()+"\0",n="\0OPEN"+Math.random()+"\0",j="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",o="\0PERIOD"+Math.random()+"\0";function E(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function s(e){return e.split(i).join("\\").split(n).join("{").split(j).join("}").split(a).join(",").split(o).join(".")}function A(e){if(!e)return[""];var t=[],r=S("{","}",e);if(!r)return e.split(",");var i=r.pre,e=r.body,r=r.post,i=i.split(",");i[i.length-1]+="{"+e+"}";e=A(r);return r.length&&(i[i.length-1]+=e.shift(),i.push.apply(i,e)),t.push.apply(t,i),t}function P(e){return"{"+e+"}"}function I(e){return/^-?0\d/.test(e)}function T(e,t){return e<=t}function O(e,t){return t<=e}},{"balanced-match":74,"concat-map":191}],131:[function(e,t,r){var i;function n(e){this.rand=e}if(t.exports=function(e){return(i=i||new n(null)).generate(e)},(t.exports.Rand=n).prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"===("undefined"==typeof self?"undefined":_typeof(self)))self.crypto&&self.crypto.getRandomValues?n.prototype._rand=function(e){e=new Uint8Array(e);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?n.prototype._rand=function(e){e=new Uint8Array(e);return self.msCrypto.getRandomValues(e),e}:"object"===("undefined"==typeof window?"undefined":_typeof(window))&&(n.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=e("crypto");if("function"!=typeof a.randomBytes)throw new Error("Not supported");n.prototype._rand=function(e){return a.randomBytes(e)}}catch(e){}},{crypto:132}],132:[function(e,t,r){},{}],133:[function(e,t,r){var n=e("safe-buffer").Buffer;function i(e){for(var t=(e=!n.isBuffer(e)?n.from(e):e).length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function a(e){for(;0<e.length;e++)e[0]=0}function o(e,t,r,i,n){for(var a,o,s,u,c=r[0],f=r[1],p=r[2],l=r[3],h=e[0]^t[0],d=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],b=4,y=1;y<n;y++)a=c[h>>>24]^f[d>>>16&255]^p[m>>>8&255]^l[255&g]^t[b++],o=c[d>>>24]^f[m>>>16&255]^p[g>>>8&255]^l[255&h]^t[b++],s=c[m>>>24]^f[g>>>16&255]^p[h>>>8&255]^l[255&d]^t[b++],u=c[g>>>24]^f[h>>>16&255]^p[d>>>8&255]^l[255&m]^t[b++],h=a,d=o,m=s,g=u;return a=(i[h>>>24]<<24|i[d>>>16&255]<<16|i[m>>>8&255]<<8|i[255&g])^t[b++],o=(i[d>>>24]<<24|i[m>>>16&255]<<16|i[g>>>8&255]<<8|i[255&h])^t[b++],s=(i[m>>>24]<<24|i[g>>>16&255]<<16|i[h>>>8&255]<<8|i[255&d])^t[b++],u=(i[g>>>24]<<24|i[h>>>16&255]<<16|i[d>>>8&255]<<8|i[255&m])^t[b++],[a>>>=0,o>>>=0,s>>>=0,u>>>=0]}var p=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,u=0;u<256;++u){var c=(c=s^s<<1^s<<2^s<<3^s<<4)>>>8^255&c^99,f=e[i[r[o]=c]=o],p=e[f],l=e[p],h=257*e[c]^16843008*c;n[0][o]=h<<24|h>>>8,n[1][o]=h<<16|h>>>16,n[2][o]=h<<8|h>>>24,n[3][o]=h,h=16843009*l^65537*p^257*f^16843008*o,a[0][c]=h<<24|h>>>8,a[1][c]=h<<16|h>>>16,a[2][c]=h<<8|h>>>24,a[3][c]=h,0===o?o=s=1:(o=f^e[e[e[l^f]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:a}}();function s(e){this._key=i(e),this._reset()}s.blockSize=16,s.keySize=32,s.prototype.blockSize=s.blockSize,s.prototype.keySize=s.keySize,s.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,i=4*(r+1),n=[],a=0;a<t;a++)n[a]=e[a];for(a=t;a<i;a++){var o=n[a-1];a%t==0?(o=o<<8|o>>>24,o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o],o^=p[a/t|0]<<24):6<t&&a%t==4&&(o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o]),n[a]=n[a-t]^o}for(var s=[],u=0;u<i;u++){var c=i-u,f=n[c-(u%4?0:4)];s[u]=u<4||c<=4?f:l.INV_SUB_MIX[0][l.SBOX[f>>>24]]^l.INV_SUB_MIX[1][l.SBOX[f>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[f>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&f]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=s},s.prototype.encryptBlockRaw=function(e){return o(e=i(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},s.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),e=n.allocUnsafe(16);return e.writeUInt32BE(t[0],0),e.writeUInt32BE(t[1],4),e.writeUInt32BE(t[2],8),e.writeUInt32BE(t[3],12),e},s.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;t=o(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),e=n.allocUnsafe(16);return e.writeUInt32BE(t[0],0),e.writeUInt32BE(t[3],4),e.writeUInt32BE(t[2],8),e.writeUInt32BE(t[1],12),e},s.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},t.exports.AES=s},{"safe-buffer":421}],134:[function(e,t,r){var a=e("./aes"),o=e("safe-buffer").Buffer,s=e("cipher-base"),i=e("inherits"),u=e("./ghash"),n=e("buffer-xor"),c=e("./incr32");function f(e,t,r,i){s.call(this);var n=o.alloc(4,0);this._cipher=new a.AES(t);n=this._cipher.encryptBlock(n);this._ghash=new u(n),r=function(e,t,r){if(12===t.length)return e._finID=o.concat([t,o.from([0,0,0,1])]),o.concat([t,o.from([0,0,0,2])]);var i=new u(r),n=t.length,r=n%16;return i.update(t),r&&(r=16-r,i.update(o.alloc(r,0))),i.update(o.alloc(8,0)),r=8*n,(n=o.alloc(8)).writeUIntBE(r,0,8),i.update(n),e._finID=i.state,e=o.from(e._finID),c(e),e}(this,r,n),this._prev=o.from(r),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=i,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}i(f,s),f.prototype._update=function(e){this._called||!this._alen||(t=16-this._alen%16)<16&&(t=o.alloc(t,0),this._ghash.update(t)),this._called=!0;var t=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(t),this._len+=e.length,t},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=n(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var i=Math.min(e.length,t.length),n=0;n<i;++n)r+=e[n]^t[n];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},f.prototype.getAuthTag=function(){if(this._decrypt||!o.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},f.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},f.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=f},{"./aes":133,"./ghash":138,"./incr32":139,"buffer-xor":185,"cipher-base":189,inherits:296,"safe-buffer":421}],135:[function(e,t,r){var i=e("./encrypter"),n=e("./decrypter"),a=e("./modes/list.json");r.createCipher=r.Cipher=i.createCipher,r.createCipheriv=r.Cipheriv=i.createCipheriv,r.createDecipher=r.Decipher=n.createDecipher,r.createDecipheriv=r.Decipheriv=n.createDecipheriv,r.listCiphers=r.getCiphers=function(){return Object.keys(a)}},{"./decrypter":136,"./encrypter":137,"./modes/list.json":147}],136:[function(e,t,r){var i=e("./authCipher"),n=e("safe-buffer").Buffer,a=e("./modes"),o=e("./streamCipher"),s=e("cipher-base"),u=e("./aes"),c=e("evp_bytestokey");function f(e,t,r){s.call(this),this._cache=new p,this._last=void 0,this._cipher=new u.AES(t),this._prev=n.from(r),this._mode=e,this._autopadding=!0}function p(){this.cache=n.allocUnsafe(0)}function l(e,t,r){e=a[e.toLowerCase()];if(!e)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=n.from(r)),"GCM"!==e.mode&&r.length!==e.iv)throw new TypeError("invalid iv length "+r.length);if((t="string"==typeof t?n.from(t):t).length!==e.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===e.type?new o(e.module,t,r,!0):"auth"===e.type?new i(e.module,t,r,!0):new f(e.module,t,r)}e("inherits")(f,s),f.prototype._update=function(e){var t;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)t=this._mode.decrypt(this,t),r.push(t);return n.concat(r)},f.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||16<t)throw new Error("unable to decrypt data");var r=-1;for(;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");return 16===t?void 0:e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},p.prototype.add=function(e){this.cache=n.concat([this.cache,e])},p.prototype.get=function(e){var t;if(e){if(16<this.cache.length)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(16<=this.cache.length)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},p.prototype.flush=function(){if(this.cache.length)return this.cache},r.createDecipher=function(e,t){var r=a[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");return r=c(t,!1,r.key,r.iv),l(e,r.key,r.iv)},r.createDecipheriv=l},{"./aes":133,"./authCipher":134,"./modes":146,"./streamCipher":149,"cipher-base":189,evp_bytestokey:230,inherits:296,"safe-buffer":421}],137:[function(e,t,r){var i=e("./modes"),n=e("./authCipher"),a=e("safe-buffer").Buffer,o=e("./streamCipher"),s=e("cipher-base"),u=e("./aes"),c=e("evp_bytestokey");function f(e,t,r){s.call(this),this._cache=new l,this._cipher=new u.AES(t),this._prev=a.from(r),this._mode=e,this._autopadding=!0}e("inherits")(f,s),f.prototype._update=function(e){var t;this._cache.add(e);for(var r=[];t=this._cache.get();)t=this._mode.encrypt(this,t),r.push(t);return a.concat(r)};var p=a.alloc(16,16);function l(){this.cache=a.allocUnsafe(0)}function h(e,t,r){e=i[e.toLowerCase()];if(!e)throw new TypeError("invalid suite type");if((t="string"==typeof t?a.from(t):t).length!==e.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=a.from(r)),"GCM"!==e.mode&&r.length!==e.iv)throw new TypeError("invalid iv length "+r.length);return new("stream"===e.type?o:"auth"===e.type?n:f)(e.module,t,r)}f.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(p))throw this._cipher.scrub(),new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},l.prototype.add=function(e){this.cache=a.concat([this.cache,e])},l.prototype.get=function(){if(15<this.cache.length){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},l.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return a.concat([this.cache,t])},r.createCipheriv=h,r.createCipher=function(e,t){var r=i[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");return r=c(t,!1,r.key,r.iv),h(e,r.key,r.iv)}},{"./aes":133,"./authCipher":134,"./modes":146,"./streamCipher":149,"cipher-base":189,evp_bytestokey:230,inherits:296,"safe-buffer":421}],138:[function(e,t,r){var i=e("safe-buffer").Buffer,n=i.alloc(16,0);function o(e){var t=i.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},a.prototype._multiply=function(){for(var e,t,r,i=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],n=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(n[0]^=i[0],n[1]^=i[1],n[2]^=i[2],n[3]^=i[3]),r=0!=(1&i[3]),t=3;0<t;t--)i[t]=i[t]>>>1|(1&i[t-1])<<31;i[0]=i[0]>>>1,r&&(i[0]=i[0]^225<<24)}this.state=o(n)},a.prototype.update=function(e){var t;for(this.cache=i.concat([this.cache,e]);16<=this.cache.length;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(i.concat([this.cache,n],16)),this.ghash(o([0,e,0,t])),this.state},t.exports=a},{"safe-buffer":421}],139:[function(e,t,r){t.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},{}],140:[function(e,t,r){var i=e("buffer-xor");r.encrypt=function(e,t){t=i(t,e._prev);return e._prev=e._cipher.encryptBlock(t),e._prev},r.decrypt=function(e,t){var r=e._prev;e._prev=t;t=e._cipher.decryptBlock(t);return i(t,r)}},{"buffer-xor":185}],141:[function(e,t,r){var a=e("safe-buffer").Buffer,o=e("buffer-xor");function s(e,t,r){var i=t.length,n=o(t,e._cache);return e._cache=e._cache.slice(i),e._prev=a.concat([e._prev,r?t:n]),n}r.encrypt=function(e,t,r){for(var i,n=a.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=a.allocUnsafe(0)),!(e._cache.length<=t.length)){n=a.concat([n,s(e,t,r)]);break}i=e._cache.length,n=a.concat([n,s(e,t.slice(0,i),r)]),t=t.slice(i)}return n}},{"buffer-xor":185,"safe-buffer":421}],142:[function(e,t,r){var s=e("safe-buffer").Buffer;function o(e,t,r){for(var i,n,a=-1,o=0;++a<8;)i=t&1<<7-a?128:0,o+=(128&(n=e._cipher.encryptBlock(e._prev)[0]^i))>>a%8,e._prev=function(e,t){var r=e.length,i=-1,n=s.allocUnsafe(e.length);e=s.concat([e,s.from([t])]);for(;++i<r;)n[i]=e[i]<<1|e[i+1]>>7;return n}(e._prev,r?i:n);return o}r.encrypt=function(e,t,r){for(var i=t.length,n=s.allocUnsafe(i),a=-1;++a<i;)n[a]=o(e,t[a],r);return n}},{"safe-buffer":421}],143:[function(e,t,r){var f=e("safe-buffer").Buffer;r.encrypt=function(e,t,r){for(var i,n,a,o,s=t.length,u=f.allocUnsafe(s),c=-1;++c<s;)u[c]=(i=e,n=t[c],a=r,o=void 0,o=i._cipher.encryptBlock(i._prev)[0]^n,i._prev=f.concat([i._prev.slice(1),f.from([a?n:o])]),o);return u}},{"safe-buffer":421}],144:[function(e,t,r){var u=e("buffer-xor"),c=e("safe-buffer").Buffer,f=e("../incr32");r.encrypt=function(e,t){var r=Math.ceil(t.length/16),i=e._cache.length;e._cache=c.concat([e._cache,c.allocUnsafe(16*r)]);for(var n=0;n<r;n++){var a=(o=void 0,o=(a=e)._cipher.encryptBlockRaw(a._prev),f(a._prev),o),o=i+16*n;e._cache.writeUInt32BE(a[0],o+0),e._cache.writeUInt32BE(a[1],o+4),e._cache.writeUInt32BE(a[2],o+8),e._cache.writeUInt32BE(a[3],o+12)}var s=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),u(t,s)}},{"../incr32":139,"buffer-xor":185,"safe-buffer":421}],145:[function(e,t,r){r.encrypt=function(e,t){return e._cipher.encryptBlock(t)},r.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],146:[function(e,t,r){var i,n={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},a=e("./list.json");for(i in a)a[i].module=n[a[i].mode];t.exports=a},{"./cbc":140,"./cfb":141,"./cfb1":142,"./cfb8":143,"./ctr":144,"./ecb":145,"./list.json":147,"./ofb":148}],147:[function(e,t,r){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],148:[function(e,t,r){(function(a){(function(){var n=e("buffer-xor");r.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=a.concat([e._cache,((r=e)._prev=r._cipher.encryptBlock(r._prev),r._prev)]);var r,i=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,i)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:186,"buffer-xor":185}],149:[function(e,t,r){var n=e("./aes"),a=e("safe-buffer").Buffer,o=e("cipher-base");function i(e,t,r,i){o.call(this),this._cipher=new n.AES(t),this._prev=a.from(r),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=i,this._mode=e}e("inherits")(i,o),i.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},i.prototype._final=function(){this._cipher.scrub()},t.exports=i},{"./aes":133,"cipher-base":189,inherits:296,"safe-buffer":421}],150:[function(e,t,r){var i=e("browserify-des"),n=e("browserify-aes/browser"),a=e("browserify-aes/modes"),o=e("browserify-des/modes"),s=e("evp_bytestokey");function u(e,t,r){if(e=e.toLowerCase(),a[e])return n.createCipheriv(e,t,r);if(o[e])return new i({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function c(e,t,r){if(e=e.toLowerCase(),a[e])return n.createDecipheriv(e,t,r);if(o[e])return new i({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}r.createCipher=r.Cipher=function(e,t){var r;if(e=e.toLowerCase(),a[e])r=a[e].key,i=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");r=8*o[e].key,i=o[e].iv}var i=s(t,!1,r,i);return u(e,i.key,i.iv)},r.createCipheriv=r.Cipheriv=u,r.createDecipher=r.Decipher=function(e,t){var r;if(e=e.toLowerCase(),a[e])r=a[e].key,i=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");r=8*o[e].key,i=o[e].iv}var i=s(t,!1,r,i);return c(e,i.key,i.iv)},r.createDecipheriv=r.Decipheriv=c,r.listCiphers=r.getCiphers=function(){return Object.keys(o).concat(n.getCiphers())}},{"browserify-aes/browser":135,"browserify-aes/modes":146,"browserify-des":151,"browserify-des/modes":152,evp_bytestokey:230}],151:[function(e,t,r){var a=e("cipher-base"),i=e("des.js"),n=e("inherits"),o=e("safe-buffer").Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(e){a.call(this);var t=e.mode.toLowerCase(),r=s[t],i=e.decrypt?"decrypt":"encrypt",n=e.key;o.isBuffer(n)||(n=o.from(n)),"des-ede"!==t&&"des-ede-cbc"!==t||(n=o.concat([n,n.slice(0,8)]));e=e.iv;o.isBuffer(e)||(e=o.from(e)),this._des=r.create({key:n,iv:e,type:i})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],n(t.exports=u,a),u.prototype._update=function(e){return o.from(this._des.update(e))},u.prototype._final=function(){return o.from(this._des.final())}},{"cipher-base":189,"des.js":200,inherits:296,"safe-buffer":421}],152:[function(e,t,r){r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}},{}],153:[function(t,r,e){(function(f){(function(){var u=t("bn.js"),i=t("randombytes");function c(e){for(var t,r=e.modulus.byteLength();t=new u(i(r)),0<=t.cmp(e.modulus)||!t.umod(e.prime1)||!t.umod(e.prime2););return t}function e(e,t){var r={blinder:(o=c(s=t)).toRed(u.mont(s.modulus)).redPow(new u(s.publicExponent)).fromRed(),unblinder:o.invm(s.modulus)},i=t.modulus.byteLength(),n=new u(e).mul(r.blinder).umod(t.modulus),a=n.toRed(u.mont(t.prime1)),o=n.toRed(u.mont(t.prime2)),s=t.coefficient,e=t.prime1,n=t.prime2,a=a.redPow(t.exponent1).fromRed(),o=o.redPow(t.exponent2).fromRed(),n=a.isub(o).imul(s).umod(e).imul(n);return o.iadd(n).imul(r.unblinder).umod(t.modulus).toArrayLike(f,"be",i)}e.getr=c,r.exports=e}).call(this)}).call(this,t("buffer").Buffer)},{"bn.js":154,buffer:186,randombytes:386}],154:[function(j,e,t){!function(e,t){"use strict";function m(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function g(e,t,r){if(g.isBN(e))return e;this.negative=0,this.words=null,this.length=0,(this.red=null)!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var i;"object"===_typeof(e)?e.exports=g:t.BN=g,(g.BN=g).wordSize=26;try{i=j("buffer").Buffer}catch(e){}function o(e,t,r){for(var i=0,n=Math.min(e.length,r),a=0,o=t;o<n;o++){var s=e.charCodeAt(o)-48;i<<=4,i|=s=49<=s&&s<=54?s-49+10:17<=s&&s<=22?s-17+10:s,a|=s}return m(!(240&a),"Invalid character in "+e),i}function p(e,t,r,i){for(var n=0,a=0,o=Math.min(e.length,r),s=t;s<o;s++){var u=e.charCodeAt(s)-48;n*=i,a=49<=u?u-49+10:17<=u?u-17+10:u,m(0<=u&&a<i,"Invalid character"),n+=a}return n}function n(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(g.isBN=function(e){return e instanceof g||null!==e&&"object"===_typeof(e)&&e.constructor.wordSize===g.wordSize&&Array.isArray(e.words)},g.max=function(e,t){return 0<e.cmp(t)?e:t},g.min=function(e,t){return e.cmp(t)<0?e:t},g.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"===_typeof(e))return this._initArray(e,t,r);m((t="hex"===t?16:t)===(0|t)&&2<=t&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this._strip(),"le"===r&&this._initArray(this.toArray(),t,r)},g.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(m(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},g.prototype._initArray=function(e,t,r){if(m("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i,n,a=0;a<this.length;a++)this.words[a]=0;var o=0;if("be"===r)for(a=e.length-1,i=0;0<=a;a-=3)n=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=n<<o&67108863,this.words[i+1]=n>>>26-o&67108863,26<=(o+=24)&&(o-=26,i++);else if("le"===r)for(i=a=0;a<e.length;a+=3)n=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=n<<o&67108863,this.words[i+1]=n>>>26-o&67108863,26<=(o+=24)&&(o-=26,i++);return this._strip()},g.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r,i=0;i<this.length;i++)this.words[i]=0;for(var n=0,i=e.length-6,a=0;t<=i;i-=6)r=o(e,i,i+6),this.words[a]|=r<<n&67108863,this.words[a+1]|=r>>>26-n&4194303,26<=(n+=24)&&(n-=26,a++);i+6!==t&&(r=o(e,t,i+6),this.words[a]|=r<<n&67108863,this.words[a+1]|=r>>>26-n&4194303),this._strip()},g.prototype._parseBase=function(e,t,r){this.words=[0];for(var i=0,n=this.length=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,o=a%i,s=Math.min(a,a-o)+r,u=0,c=r;c<s;c+=i)u=p(e,c,c+i,t),this.imuln(n),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!=o){for(var f=1,u=p(e,c,e.length,t),c=0;c<o;c++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},g.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},g.prototype._move=function(e){n(e,this)},g.prototype.clone=function(){var e=new g(null);return this.copy(e),e},g.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},g.prototype._strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},g.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{g.prototype[Symbol.for("nodejs.util.inspect.custom")]=a}catch(e){g.prototype.inspect=a}else g.prototype.inspect=a;function a(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var l=["","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"],h=[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],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function s(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0,i=(r.length=i)-1|0,n=67108863&(p=(0|e.words[0])*(0|t.words[0])),a=p/67108864|0;r.words[0]=n;for(var o=1;o<i;o++){for(var s=a>>>26,u=67108863&a,c=Math.min(o,t.length-1),f=Math.max(0,o-e.length+1);f<=c;f++){var p,l=o-f|0;s+=(p=(0|e.words[l])*(0|t.words[f])+u)/67108864|0,u=67108863&p}r.words[o]=0|u,a=0|s}return 0!==a?r.words[o]=0|a:r.length--,r._strip()}g.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){s="";for(var r=0,i=0,n=0;n<this.length;n++){var a=this.words[n],o=(16777215&(a<<r|i)).toString(16),s=0!==(i=a>>>24-r&16777215)||n!==this.length-1?l[6-o.length]+o+s:o+s;26<=(r+=2)&&(r-=26,n--)}for(0!==i&&(s=i.toString(16)+s);s.length%t!=0;)s="0"+s;return s=0!==this.negative?"-"+s:s}if(e===(0|e)&&2<=e&&e<=36){var u=h[e],c=d[e];for(s="",(f=this.clone()).negative=0;!f.isZero();){var f,p=f.modrn(c).toString(e);s=(f=f.idivn(c)).isZero()?p+s:l[u-p.length]+p+s}for(this.isZero()&&(s="0"+s);s.length%t!=0;)s="0"+s;return s=0!==this.negative?"-"+s:s}m(!1,"Base should be between 2 and 36")},g.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:2<this.length&&m(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},g.prototype.toJSON=function(){return this.toString(16,2)},i&&(g.prototype.toBuffer=function(e,t){return this.toArrayLike(i,e,t)}),g.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},g.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),r=r||Math.max(1,i);m(i<=r,"byte array longer than desired length"),m(0<r,"Requested array length <= 0");r=r,r=(e=e).allocUnsafe?e.allocUnsafe(r):new e(r);return this["_toArrayLike"+("le"===t?"LE":"BE")](r,i),r},g.prototype._toArrayLikeLE=function(e,t){for(var r=0,i=0,n=0,a=0;n<this.length;n++){var o=this.words[n]<<a|i;e[r++]=255&o,r<e.length&&(e[r++]=o>>8&255),r<e.length&&(e[r++]=o>>16&255),6===a?(r<e.length&&(e[r++]=o>>24&255),a=i=0):(i=o>>>24,a+=2)}if(r<e.length)for(e[r++]=i;r<e.length;)e[r++]=0},g.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,i=0,n=0,a=0;n<this.length;n++){var o=this.words[n]<<a|i;e[r--]=255&o,0<=r&&(e[r--]=o>>8&255),0<=r&&(e[r--]=o>>16&255),6===a?(0<=r&&(e[r--]=o>>24&255),a=i=0):(i=o>>>24,a+=2)}if(0<=r)for(e[r--]=i;0<=r;)e[r--]=0},Math.clz32?g.prototype._countBits=function(e){return 32-Math.clz32(e)}:g.prototype._countBits=function(e){var t=e,e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},g.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},g.prototype.bitLength=function(){var e=this.words[this.length-1],e=this._countBits(e);return 26*(this.length-1)+e},g.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},g.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},g.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},g.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},g.prototype.isNeg=function(){return 0!==this.negative},g.prototype.neg=function(){return this.clone().ineg()},g.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},g.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},g.prototype.ior=function(e){return m(0==(this.negative|e.negative)),this.iuor(e)},g.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},g.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},g.prototype.iuand=function(e){for(var t=this.length>e.length?e:this,r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},g.prototype.iand=function(e){return m(0==(this.negative|e.negative)),this.iuand(e)},g.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},g.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},g.prototype.iuxor=function(e){for(var t,r=this.length>e.length?(t=this,e):(t=e,this),i=0;i<r.length;i++)this.words[i]=t.words[i]^r.words[i];if(this!==t)for(;i<t.length;i++)this.words[i]=t.words[i];return this.length=t.length,this._strip()},g.prototype.ixor=function(e){return m(0==(this.negative|e.negative)),this.iuxor(e)},g.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},g.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},g.prototype.inotn=function(e){m("number"==typeof e&&0<=e);var t=0|Math.ceil(e/26),e=e%26;this._expand(t),0<e&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return 0<e&&(this.words[r]=~this.words[r]&67108863>>26-e),this._strip()},g.prototype.notn=function(e){return this.clone().inotn(e)},g.prototype.setn=function(e,t){m("number"==typeof e&&0<=e);var r=e/26|0,e=e%26;return this._expand(1+r),this.words[r]=t?this.words[r]|1<<e:this.words[r]&~(1<<e),this._strip()},g.prototype.iadd=function(e){var t,r,i;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();i=this.length>e.length?(r=this,e):(r=e,this);for(var n=0,a=0;a<i.length;a++)t=(0|r.words[a])+(0|i.words[a])+n,this.words[a]=67108863&t,n=t>>>26;for(;0!==n&&a<r.length;a++)t=(0|r.words[a])+n,this.words[a]=67108863&t,n=t>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},g.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},g.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,i,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;i=0<n?(r=this,e):(r=e,this);for(var a=0,o=0;o<i.length;o++)a=(t=(0|r.words[o])-(0|i.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<r.length;o++)a=(t=(0|r.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this._strip()},g.prototype.sub=function(e){return this.clone().isub(e)};var u=function(e,t,r){var i=e.words,n=t.words,a=r.words,o=0|i[0],s=8191&o,u=o>>>13,c=0|i[1],f=8191&c,p=c>>>13,l=0|i[2],h=8191&l,d=l>>>13,m=0|i[3],g=8191&m,b=m>>>13,y=0|i[4],v=8191&y,_=y>>>13,w=0|i[5],k=8191&w,x=w>>>13,S=0|i[6],j=8191&S,E=S>>>13,A=0|i[7],P=8191&A,I=A>>>13,T=0|i[8],O=8191&T,C=T>>>13,R=0|i[9],B=8191&R,F=R>>>13,M=0|n[0],z=8191&M,N=M>>>13,D=0|n[1],L=8191&D,q=D>>>13,U=0|n[2],H=8191&U,K=U>>>13,V=0|n[3],$=8191&V,G=V>>>13,W=0|n[4],Z=8191&W,Y=W>>>13,Q=0|n[5],X=8191&Q,J=Q>>>13,o=0|n[6],c=8191&o,l=o>>>13,m=0|n[7],y=8191&m,w=m>>>13,S=0|n[8],A=8191&S,T=S>>>13,i=0|n[9],R=8191&i,M=i>>>13;r.negative=e.negative^t.negative,r.length=19;var V=(0+Math.imul(s,z)|0)+((8191&(U=Math.imul(s,N)+Math.imul(u,z)|0))<<13)|0,ee=(Math.imul(u,N)+(U>>>13)|0)+(V>>>26)|0;V&=67108863,D=Math.imul(f,z),U=Math.imul(f,N)+Math.imul(p,z)|0,W=Math.imul(p,N);Q=(ee+(D+Math.imul(s,L)|0)|0)+((8191&(U=(U+Math.imul(s,q)|0)+Math.imul(u,L)|0))<<13)|0;ee=((W+Math.imul(u,q)|0)+(U>>>13)|0)+(Q>>>26)|0,Q&=67108863,D=Math.imul(h,z),U=Math.imul(h,N)+Math.imul(d,z)|0,W=Math.imul(d,N),D=D+Math.imul(f,L)|0,U=(U+Math.imul(f,q)|0)+Math.imul(p,L)|0,W=W+Math.imul(p,q)|0;o=(ee+(D+Math.imul(s,H)|0)|0)+((8191&(U=(U+Math.imul(s,K)|0)+Math.imul(u,H)|0))<<13)|0;ee=((W+Math.imul(u,K)|0)+(U>>>13)|0)+(o>>>26)|0,o&=67108863,D=Math.imul(g,z),U=Math.imul(g,N)+Math.imul(b,z)|0,W=Math.imul(b,N),D=D+Math.imul(h,L)|0,U=(U+Math.imul(h,q)|0)+Math.imul(d,L)|0,W=W+Math.imul(d,q)|0,D=D+Math.imul(f,H)|0,U=(U+Math.imul(f,K)|0)+Math.imul(p,H)|0,W=W+Math.imul(p,K)|0;m=(ee+(D+Math.imul(s,$)|0)|0)+((8191&(U=(U+Math.imul(s,G)|0)+Math.imul(u,$)|0))<<13)|0;ee=((W+Math.imul(u,G)|0)+(U>>>13)|0)+(m>>>26)|0,m&=67108863,D=Math.imul(v,z),U=Math.imul(v,N)+Math.imul(_,z)|0,W=Math.imul(_,N),D=D+Math.imul(g,L)|0,U=(U+Math.imul(g,q)|0)+Math.imul(b,L)|0,W=W+Math.imul(b,q)|0,D=D+Math.imul(h,H)|0,U=(U+Math.imul(h,K)|0)+Math.imul(d,H)|0,W=W+Math.imul(d,K)|0,D=D+Math.imul(f,$)|0,U=(U+Math.imul(f,G)|0)+Math.imul(p,$)|0,W=W+Math.imul(p,G)|0;S=(ee+(D+Math.imul(s,Z)|0)|0)+((8191&(U=(U+Math.imul(s,Y)|0)+Math.imul(u,Z)|0))<<13)|0;ee=((W+Math.imul(u,Y)|0)+(U>>>13)|0)+(S>>>26)|0,S&=67108863,D=Math.imul(k,z),U=Math.imul(k,N)+Math.imul(x,z)|0,W=Math.imul(x,N),D=D+Math.imul(v,L)|0,U=(U+Math.imul(v,q)|0)+Math.imul(_,L)|0,W=W+Math.imul(_,q)|0,D=D+Math.imul(g,H)|0,U=(U+Math.imul(g,K)|0)+Math.imul(b,H)|0,W=W+Math.imul(b,K)|0,D=D+Math.imul(h,$)|0,U=(U+Math.imul(h,G)|0)+Math.imul(d,$)|0,W=W+Math.imul(d,G)|0,D=D+Math.imul(f,Z)|0,U=(U+Math.imul(f,Y)|0)+Math.imul(p,Z)|0,W=W+Math.imul(p,Y)|0;n=(ee+(D+Math.imul(s,X)|0)|0)+((8191&(U=(U+Math.imul(s,J)|0)+Math.imul(u,X)|0))<<13)|0;ee=((W+Math.imul(u,J)|0)+(U>>>13)|0)+(n>>>26)|0,n&=67108863,D=Math.imul(j,z),U=Math.imul(j,N)+Math.imul(E,z)|0,W=Math.imul(E,N),D=D+Math.imul(k,L)|0,U=(U+Math.imul(k,q)|0)+Math.imul(x,L)|0,W=W+Math.imul(x,q)|0,D=D+Math.imul(v,H)|0,U=(U+Math.imul(v,K)|0)+Math.imul(_,H)|0,W=W+Math.imul(_,K)|0,D=D+Math.imul(g,$)|0,U=(U+Math.imul(g,G)|0)+Math.imul(b,$)|0,W=W+Math.imul(b,G)|0,D=D+Math.imul(h,Z)|0,U=(U+Math.imul(h,Y)|0)+Math.imul(d,Z)|0,W=W+Math.imul(d,Y)|0,D=D+Math.imul(f,X)|0,U=(U+Math.imul(f,J)|0)+Math.imul(p,X)|0,W=W+Math.imul(p,J)|0;i=(ee+(D+Math.imul(s,c)|0)|0)+((8191&(U=(U+Math.imul(s,l)|0)+Math.imul(u,c)|0))<<13)|0;ee=((W+Math.imul(u,l)|0)+(U>>>13)|0)+(i>>>26)|0,i&=67108863,D=Math.imul(P,z),U=Math.imul(P,N)+Math.imul(I,z)|0,W=Math.imul(I,N),D=D+Math.imul(j,L)|0,U=(U+Math.imul(j,q)|0)+Math.imul(E,L)|0,W=W+Math.imul(E,q)|0,D=D+Math.imul(k,H)|0,U=(U+Math.imul(k,K)|0)+Math.imul(x,H)|0,W=W+Math.imul(x,K)|0,D=D+Math.imul(v,$)|0,U=(U+Math.imul(v,G)|0)+Math.imul(_,$)|0,W=W+Math.imul(_,G)|0,D=D+Math.imul(g,Z)|0,U=(U+Math.imul(g,Y)|0)+Math.imul(b,Z)|0,W=W+Math.imul(b,Y)|0,D=D+Math.imul(h,X)|0,U=(U+Math.imul(h,J)|0)+Math.imul(d,X)|0,W=W+Math.imul(d,J)|0,D=D+Math.imul(f,c)|0,U=(U+Math.imul(f,l)|0)+Math.imul(p,c)|0,W=W+Math.imul(p,l)|0;e=(ee+(D+Math.imul(s,y)|0)|0)+((8191&(U=(U+Math.imul(s,w)|0)+Math.imul(u,y)|0))<<13)|0;ee=((W+Math.imul(u,w)|0)+(U>>>13)|0)+(e>>>26)|0,e&=67108863,D=Math.imul(O,z),U=Math.imul(O,N)+Math.imul(C,z)|0,W=Math.imul(C,N),D=D+Math.imul(P,L)|0,U=(U+Math.imul(P,q)|0)+Math.imul(I,L)|0,W=W+Math.imul(I,q)|0,D=D+Math.imul(j,H)|0,U=(U+Math.imul(j,K)|0)+Math.imul(E,H)|0,W=W+Math.imul(E,K)|0,D=D+Math.imul(k,$)|0,U=(U+Math.imul(k,G)|0)+Math.imul(x,$)|0,W=W+Math.imul(x,G)|0,D=D+Math.imul(v,Z)|0,U=(U+Math.imul(v,Y)|0)+Math.imul(_,Z)|0,W=W+Math.imul(_,Y)|0,D=D+Math.imul(g,X)|0,U=(U+Math.imul(g,J)|0)+Math.imul(b,X)|0,W=W+Math.imul(b,J)|0,D=D+Math.imul(h,c)|0,U=(U+Math.imul(h,l)|0)+Math.imul(d,c)|0,W=W+Math.imul(d,l)|0,D=D+Math.imul(f,y)|0,U=(U+Math.imul(f,w)|0)+Math.imul(p,y)|0,W=W+Math.imul(p,w)|0;t=(ee+(D+Math.imul(s,A)|0)|0)+((8191&(U=(U+Math.imul(s,T)|0)+Math.imul(u,A)|0))<<13)|0;ee=((W+Math.imul(u,T)|0)+(U>>>13)|0)+(t>>>26)|0,t&=67108863,D=Math.imul(B,z),U=Math.imul(B,N)+Math.imul(F,z)|0,W=Math.imul(F,N),D=D+Math.imul(O,L)|0,U=(U+Math.imul(O,q)|0)+Math.imul(C,L)|0,W=W+Math.imul(C,q)|0,D=D+Math.imul(P,H)|0,U=(U+Math.imul(P,K)|0)+Math.imul(I,H)|0,W=W+Math.imul(I,K)|0,D=D+Math.imul(j,$)|0,U=(U+Math.imul(j,G)|0)+Math.imul(E,$)|0,W=W+Math.imul(E,G)|0,D=D+Math.imul(k,Z)|0,U=(U+Math.imul(k,Y)|0)+Math.imul(x,Z)|0,W=W+Math.imul(x,Y)|0,D=D+Math.imul(v,X)|0,U=(U+Math.imul(v,J)|0)+Math.imul(_,X)|0,W=W+Math.imul(_,J)|0,D=D+Math.imul(g,c)|0,U=(U+Math.imul(g,l)|0)+Math.imul(b,c)|0,W=W+Math.imul(b,l)|0,D=D+Math.imul(h,y)|0,U=(U+Math.imul(h,w)|0)+Math.imul(d,y)|0,W=W+Math.imul(d,w)|0,D=D+Math.imul(f,A)|0,U=(U+Math.imul(f,T)|0)+Math.imul(p,A)|0,W=W+Math.imul(p,T)|0;s=(ee+(D+Math.imul(s,R)|0)|0)+((8191&(U=(U+Math.imul(s,M)|0)+Math.imul(u,R)|0))<<13)|0;ee=((W+Math.imul(u,M)|0)+(U>>>13)|0)+(s>>>26)|0,s&=67108863,D=Math.imul(B,L),U=Math.imul(B,q)+Math.imul(F,L)|0,W=Math.imul(F,q),D=D+Math.imul(O,H)|0,U=(U+Math.imul(O,K)|0)+Math.imul(C,H)|0,W=W+Math.imul(C,K)|0,D=D+Math.imul(P,$)|0,U=(U+Math.imul(P,G)|0)+Math.imul(I,$)|0,W=W+Math.imul(I,G)|0,D=D+Math.imul(j,Z)|0,U=(U+Math.imul(j,Y)|0)+Math.imul(E,Z)|0,W=W+Math.imul(E,Y)|0,D=D+Math.imul(k,X)|0,U=(U+Math.imul(k,J)|0)+Math.imul(x,X)|0,W=W+Math.imul(x,J)|0,D=D+Math.imul(v,c)|0,U=(U+Math.imul(v,l)|0)+Math.imul(_,c)|0,W=W+Math.imul(_,l)|0,D=D+Math.imul(g,y)|0,U=(U+Math.imul(g,w)|0)+Math.imul(b,y)|0,W=W+Math.imul(b,w)|0,D=D+Math.imul(h,A)|0,U=(U+Math.imul(h,T)|0)+Math.imul(d,A)|0,W=W+Math.imul(d,T)|0;f=(ee+(D+Math.imul(f,R)|0)|0)+((8191&(U=(U+Math.imul(f,M)|0)+Math.imul(p,R)|0))<<13)|0;ee=((W+Math.imul(p,M)|0)+(U>>>13)|0)+(f>>>26)|0,f&=67108863,D=Math.imul(B,H),U=Math.imul(B,K)+Math.imul(F,H)|0,W=Math.imul(F,K),D=D+Math.imul(O,$)|0,U=(U+Math.imul(O,G)|0)+Math.imul(C,$)|0,W=W+Math.imul(C,G)|0,D=D+Math.imul(P,Z)|0,U=(U+Math.imul(P,Y)|0)+Math.imul(I,Z)|0,W=W+Math.imul(I,Y)|0,D=D+Math.imul(j,X)|0,U=(U+Math.imul(j,J)|0)+Math.imul(E,X)|0,W=W+Math.imul(E,J)|0,D=D+Math.imul(k,c)|0,U=(U+Math.imul(k,l)|0)+Math.imul(x,c)|0,W=W+Math.imul(x,l)|0,D=D+Math.imul(v,y)|0,U=(U+Math.imul(v,w)|0)+Math.imul(_,y)|0,W=W+Math.imul(_,w)|0,D=D+Math.imul(g,A)|0,U=(U+Math.imul(g,T)|0)+Math.imul(b,A)|0,W=W+Math.imul(b,T)|0;h=(ee+(D+Math.imul(h,R)|0)|0)+((8191&(U=(U+Math.imul(h,M)|0)+Math.imul(d,R)|0))<<13)|0;ee=((W+Math.imul(d,M)|0)+(U>>>13)|0)+(h>>>26)|0,h&=67108863,D=Math.imul(B,$),U=Math.imul(B,G)+Math.imul(F,$)|0,W=Math.imul(F,G),D=D+Math.imul(O,Z)|0,U=(U+Math.imul(O,Y)|0)+Math.imul(C,Z)|0,W=W+Math.imul(C,Y)|0,D=D+Math.imul(P,X)|0,U=(U+Math.imul(P,J)|0)+Math.imul(I,X)|0,W=W+Math.imul(I,J)|0,D=D+Math.imul(j,c)|0,U=(U+Math.imul(j,l)|0)+Math.imul(E,c)|0,W=W+Math.imul(E,l)|0,D=D+Math.imul(k,y)|0,U=(U+Math.imul(k,w)|0)+Math.imul(x,y)|0,W=W+Math.imul(x,w)|0,D=D+Math.imul(v,A)|0,U=(U+Math.imul(v,T)|0)+Math.imul(_,A)|0,W=W+Math.imul(_,T)|0;g=(ee+(D+Math.imul(g,R)|0)|0)+((8191&(U=(U+Math.imul(g,M)|0)+Math.imul(b,R)|0))<<13)|0;ee=((W+Math.imul(b,M)|0)+(U>>>13)|0)+(g>>>26)|0,g&=67108863,D=Math.imul(B,Z),U=Math.imul(B,Y)+Math.imul(F,Z)|0,W=Math.imul(F,Y),D=D+Math.imul(O,X)|0,U=(U+Math.imul(O,J)|0)+Math.imul(C,X)|0,W=W+Math.imul(C,J)|0,D=D+Math.imul(P,c)|0,U=(U+Math.imul(P,l)|0)+Math.imul(I,c)|0,W=W+Math.imul(I,l)|0,D=D+Math.imul(j,y)|0,U=(U+Math.imul(j,w)|0)+Math.imul(E,y)|0,W=W+Math.imul(E,w)|0,D=D+Math.imul(k,A)|0,U=(U+Math.imul(k,T)|0)+Math.imul(x,A)|0,W=W+Math.imul(x,T)|0;v=(ee+(D+Math.imul(v,R)|0)|0)+((8191&(U=(U+Math.imul(v,M)|0)+Math.imul(_,R)|0))<<13)|0;ee=((W+Math.imul(_,M)|0)+(U>>>13)|0)+(v>>>26)|0,v&=67108863,D=Math.imul(B,X),U=Math.imul(B,J)+Math.imul(F,X)|0,W=Math.imul(F,J),D=D+Math.imul(O,c)|0,U=(U+Math.imul(O,l)|0)+Math.imul(C,c)|0,W=W+Math.imul(C,l)|0,D=D+Math.imul(P,y)|0,U=(U+Math.imul(P,w)|0)+Math.imul(I,y)|0,W=W+Math.imul(I,w)|0,D=D+Math.imul(j,A)|0,U=(U+Math.imul(j,T)|0)+Math.imul(E,A)|0,W=W+Math.imul(E,T)|0;k=(ee+(D+Math.imul(k,R)|0)|0)+((8191&(U=(U+Math.imul(k,M)|0)+Math.imul(x,R)|0))<<13)|0;ee=((W+Math.imul(x,M)|0)+(U>>>13)|0)+(k>>>26)|0,k&=67108863,D=Math.imul(B,c),U=Math.imul(B,l)+Math.imul(F,c)|0,W=Math.imul(F,l),D=D+Math.imul(O,y)|0,U=(U+Math.imul(O,w)|0)+Math.imul(C,y)|0,W=W+Math.imul(C,w)|0,D=D+Math.imul(P,A)|0,U=(U+Math.imul(P,T)|0)+Math.imul(I,A)|0,W=W+Math.imul(I,T)|0;j=(ee+(D+Math.imul(j,R)|0)|0)+((8191&(U=(U+Math.imul(j,M)|0)+Math.imul(E,R)|0))<<13)|0;ee=((W+Math.imul(E,M)|0)+(U>>>13)|0)+(j>>>26)|0,j&=67108863,D=Math.imul(B,y),U=Math.imul(B,w)+Math.imul(F,y)|0,W=Math.imul(F,w),D=D+Math.imul(O,A)|0,U=(U+Math.imul(O,T)|0)+Math.imul(C,A)|0,W=W+Math.imul(C,T)|0;P=(ee+(D+Math.imul(P,R)|0)|0)+((8191&(U=(U+Math.imul(P,M)|0)+Math.imul(I,R)|0))<<13)|0;ee=((W+Math.imul(I,M)|0)+(U>>>13)|0)+(P>>>26)|0,P&=67108863,D=Math.imul(B,A),U=Math.imul(B,T)+Math.imul(F,A)|0,W=Math.imul(F,T);O=(ee+(D+Math.imul(O,R)|0)|0)+((8191&(U=(U+Math.imul(O,M)|0)+Math.imul(C,R)|0))<<13)|0;ee=((W+Math.imul(C,M)|0)+(U>>>13)|0)+(O>>>26)|0,O&=67108863;R=(ee+Math.imul(B,R)|0)+((8191&(U=Math.imul(B,M)+Math.imul(F,R)|0))<<13)|0;return ee=(Math.imul(F,M)+(U>>>13)|0)+(R>>>26)|0,R&=67108863,a[0]=V,a[1]=Q,a[2]=o,a[3]=m,a[4]=S,a[5]=n,a[6]=i,a[7]=e,a[8]=t,a[9]=s,a[10]=f,a[11]=h,a[12]=g,a[13]=v,a[14]=k,a[15]=j,a[16]=P,a[17]=O,a[18]=R,0!=ee&&(a[19]=ee,r.length++),r};function c(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,a=0;a<r.length-1;a++){for(var o=n,n=0,s=67108863&i,u=Math.min(a,t.length-1),c=Math.max(0,a-e.length+1);c<=u;c++){var f=a-c,p=(0|e.words[f])*(0|t.words[c]),f=67108863&p,s=67108863&(f=f+s|0);n+=(o=(o=o+(p/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}r.words[a]=s,i=o,o=n}return 0!==i?r.words[a]=i:r.length--,r._strip()}function f(e,t,r){return c(e,t,r)}Math.imul||(u=s),g.prototype.mulTo=function(e,t){var r=this.length+e.length,t=(10===this.length&&10===e.length?u:r<63?s:r<1024?c:f)(this,e,t);return t},g.prototype.mul=function(e){var t=new g(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},g.prototype.mulf=function(e){var t=new g(null);return t.words=new Array(this.length+e.length),f(this,e,t)},g.prototype.imul=function(e){return this.clone().mulTo(e,this)},g.prototype.imuln=function(e){var t=e<0;m("number"==typeof(e=t?-e:e)),m(e<67108864);for(var r=0,i=0;i<this.length;i++){var n=(0|this.words[i])*e,a=(67108863&n)+(67108863&r);r>>=26,r+=n/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},g.prototype.muln=function(e){return this.clone().imuln(e)},g.prototype.sqr=function(){return this.mul(this)},g.prototype.isqr=function(){return this.imul(this.clone())},g.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var i=r/26|0,n=r%26;t[r]=e.words[i]>>>n&1}return t}(e);if(0===t.length)return new g(1);for(var r=this,i=0;i<t.length&&0===t[i];i++,r=r.sqr());if(++i<t.length)for(var n=r.sqr();i<t.length;i++,n=n.sqr())0!==t[i]&&(r=r.mul(n));return r},g.prototype.iushln=function(e){m("number"==typeof e&&0<=e);var t=e%26,r=(e-t)/26,i=67108863>>>26-t<<26-t;if(0!=t){for(var n=0,a=0;a<this.length;a++){var o=this.words[a]&i,s=(0|this.words[a])-o<<t;this.words[a]=s|n,n=o>>>26-t}n&&(this.words[a]=n,this.length++)}if(0!=r){for(a=this.length-1;0<=a;a--)this.words[a+r]=this.words[a];for(a=0;a<r;a++)this.words[a]=0;this.length+=r}return this._strip()},g.prototype.ishln=function(e){return m(0===this.negative),this.iushln(e)},g.prototype.iushrn=function(e,t,r){var i;m("number"==typeof e&&0<=e),i=t?(t-t%26)/26:0;var n=e%26,a=Math.min((e-n)/26,this.length),o=67108863^67108863>>>n<<n,s=r;if(i-=a,i=Math.max(0,i),s){for(var u=0;u<a;u++)s.words[u]=this.words[u];s.length=a}if(0!==a)if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;for(var c=0,u=this.length-1;0<=u&&(0!==c||i<=u);u--){var f=0|this.words[u];this.words[u]=c<<26-n|f>>>n,c=f&o}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},g.prototype.ishrn=function(e,t,r){return m(0===this.negative),this.iushrn(e,t,r)},g.prototype.shln=function(e){return this.clone().ishln(e)},g.prototype.ushln=function(e){return this.clone().iushln(e)},g.prototype.shrn=function(e){return this.clone().ishrn(e)},g.prototype.ushrn=function(e){return this.clone().iushrn(e)},g.prototype.testn=function(e){m("number"==typeof e&&0<=e);var t=e%26,e=(e-t)/26,t=1<<t;return!(this.length<=e)&&!!(this.words[e]&t)},g.prototype.imaskn=function(e){m("number"==typeof e&&0<=e);var t=e%26,e=(e-t)/26;return m(0===this.negative,"imaskn works only with positive numbers"),this.length<=e?this:(0!=t&&e++,this.length=Math.min(e,this.length),0!=t&&(t=67108863^67108863>>>t<<t,this.words[this.length-1]&=t),this._strip())},g.prototype.maskn=function(e){return this.clone().imaskn(e)},g.prototype.iaddn=function(e){return m("number"==typeof e),m(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},g.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},g.prototype.isubn=function(e){if(m("number"==typeof e),m(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,--this.words[t+1];return this._strip()},g.prototype.addn=function(e){return this.clone().iaddn(e)},g.prototype.subn=function(e){return this.clone().isubn(e)},g.prototype.iabs=function(){return this.negative=0,this},g.prototype.abs=function(){return this.clone().iabs()},g.prototype._ishlnsubmul=function(e,t,r){var i,n=e.length+r;this._expand(n);for(var a=0,o=0;o<e.length;o++){i=(0|this.words[o+r])+a;var s=(0|e.words[o])*t,a=((i-=67108863&s)>>26)-(s/67108864|0);this.words[o+r]=67108863&i}for(;o<this.length-r;o++)a=(i=(0|this.words[o+r])+a)>>26,this.words[o+r]=67108863&i;if(0===a)return this._strip();for(m(-1===a),o=a=0;o<this.length;o++)a=(i=-(0|this.words[o])+a)>>26,this.words[o]=67108863&i;return this.negative=1,this._strip()},g.prototype._wordDiv=function(e,t){var r=this.length-e.length,i=this.clone(),n=e,a=0|n.words[n.length-1];0!=(r=26-this._countBits(a))&&(n=n.ushln(r),i.iushln(r),a=0|n.words[n.length-1]);var o,s=i.length-n.length;if("mod"!==t){(o=new g(null)).length=1+s,o.words=new Array(o.length);for(var u=0;u<o.length;u++)o.words[u]=0}e=i.clone()._ishlnsubmul(n,1,s);0===e.negative&&(i=e,o&&(o.words[s]=1));for(var c=s-1;0<=c;c--){var f=67108864*(0|i.words[n.length+c])+(0|i.words[n.length+c-1]),f=Math.min(f/a|0,67108863);for(i._ishlnsubmul(n,f,c);0!==i.negative;)f--,i.negative=0,i._ishlnsubmul(n,1,c),i.isZero()||(i.negative^=1);o&&(o.words[c]=f)}return o&&o._strip(),i._strip(),"div"!==t&&0!=r&&i.iushrn(r),{div:o||null,mod:i}},g.prototype.divmod=function(e,t,r){return m(!e.isZero()),this.isZero()?{div:new g(0),mod:new g(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(n=a.mod.neg(),r&&0!==n.negative&&n.iadd(e)),{div:i,mod:n}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),{div:i="mod"!==t?a.div.neg():i,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(n=a.mod.neg(),r&&0!==n.negative&&n.isub(e)),{div:a.div,mod:n}):e.length>this.length||this.cmp(e)<0?{div:new g(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new g(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new g(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,n,a},g.prototype.div=function(e){return this.divmod(e,"div",!1).div},g.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},g.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},g.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),e=e.andln(1),i=r.cmp(i);return i<0||1===e&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},g.prototype.modrn=function(e){var t=e<0;m((e=t?-e:e)<=67108863);for(var r=(1<<26)%e,i=0,n=this.length-1;0<=n;n--)i=(r*i+(0|this.words[n]))%e;return t?-i:i},g.prototype.modn=function(e){return this.modrn(e)},g.prototype.idivn=function(e){var t=e<0;m((e=t?-e:e)<=67108863);for(var r=0,i=this.length-1;0<=i;i--){var n=(0|this.words[i])+67108864*r;this.words[i]=n/e|0,r=n%e}return this._strip(),t?this.ineg():this},g.prototype.divn=function(e){return this.clone().idivn(e)},g.prototype.egcd=function(e){m(0===e.negative),m(!e.isZero());for(var t=this,r=e.clone(),t=0!==t.negative?t.umod(e):t.clone(),i=new g(1),n=new g(0),a=new g(0),o=new g(1),s=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++s;for(var u=r.clone(),c=t.clone();!t.isZero();){for(var f=0,p=1;0==(t.words[0]&p)&&f<26;++f,p<<=1);if(0<f)for(t.iushrn(f);0<f--;)(i.isOdd()||n.isOdd())&&(i.iadd(u),n.isub(c)),i.iushrn(1),n.iushrn(1);for(var l=0,h=1;0==(r.words[0]&h)&&l<26;++l,h<<=1);if(0<l)for(r.iushrn(l);0<l--;)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(c)),a.iushrn(1),o.iushrn(1);0<=t.cmp(r)?(t.isub(r),i.isub(a),n.isub(o)):(r.isub(t),a.isub(i),o.isub(n))}return{a:a,b:o,gcd:r.iushln(s)}},g.prototype._invmp=function(e){m(0===e.negative),m(!e.isZero());for(var t,r=this,i=e.clone(),r=0!==r.negative?r.umod(e):r.clone(),n=new g(1),a=new g(0),o=i.clone();0<r.cmpn(1)&&0<i.cmpn(1);){for(var s=0,u=1;0==(r.words[0]&u)&&s<26;++s,u<<=1);if(0<s)for(r.iushrn(s);0<s--;)n.isOdd()&&n.iadd(o),n.iushrn(1);for(var c=0,f=1;0==(i.words[0]&f)&&c<26;++c,f<<=1);if(0<c)for(i.iushrn(c);0<c--;)a.isOdd()&&a.iadd(o),a.iushrn(1);0<=r.cmp(i)?(r.isub(i),n.isub(a)):(i.isub(r),a.isub(n))}return(t=0===r.cmpn(1)?n:a).cmpn(0)<0&&t.iadd(e),t},g.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0;for(var i=r.negative=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0)var a=t,t=r,r=a;else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},g.prototype.invm=function(e){return this.egcd(e).a.umod(e)},g.prototype.isEven=function(){return 0==(1&this.words[0])},g.prototype.isOdd=function(){return 1==(1&this.words[0])},g.prototype.andln=function(e){return this.words[0]&e},g.prototype.bincn=function(e){m("number"==typeof e);var t=e%26,e=(e-t)/26,t=1<<t;if(this.length<=e)return this._expand(1+e),this.words[e]|=t,this;for(var r=t,i=e;0!==r&&i<this.length;i++){var n=0|this.words[i],r=(n+=r)>>>26;n&=67108863,this.words[i]=n}return 0!==r&&(this.words[i]=r,this.length++),this},g.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},g.prototype.cmpn=function(e){var t=e<0;return 0===this.negative||t?0===this.negative&&t?1:(this._strip(),e=1<this.length?1:(m((e=t?-e:e)<=67108863,"Number is too big"),(t=0|this.words[0])===e?0:t<e?-1:1),0!==this.negative?0|-e:e):-1},g.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;e=this.ucmp(e);return 0!==this.negative?0|-e:e},g.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;0<=r;r--){var i=0|this.words[r],n=0|e.words[r];if(i!=n){i<n?t=-1:n<i&&(t=1);break}}return t},g.prototype.gtn=function(e){return 1===this.cmpn(e)},g.prototype.gt=function(e){return 1===this.cmp(e)},g.prototype.gten=function(e){return 0<=this.cmpn(e)},g.prototype.gte=function(e){return 0<=this.cmp(e)},g.prototype.ltn=function(e){return-1===this.cmpn(e)},g.prototype.lt=function(e){return-1===this.cmp(e)},g.prototype.lten=function(e){return this.cmpn(e)<=0},g.prototype.lte=function(e){return this.cmp(e)<=0},g.prototype.eqn=function(e){return 0===this.cmpn(e)},g.prototype.eq=function(e){return 0===this.cmp(e)},g.red=function(e){return new x(e)},g.prototype.toRed=function(e){return m(!this.red,"Already a number in reduction context"),m(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},g.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},g.prototype._forceRed=function(e){return this.red=e,this},g.prototype.forceRed=function(e){return m(!this.red,"Already a number in reduction context"),this._forceRed(e)},g.prototype.redAdd=function(e){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},g.prototype.redIAdd=function(e){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},g.prototype.redSub=function(e){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},g.prototype.redISub=function(e){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},g.prototype.redShl=function(e){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},g.prototype.redMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},g.prototype.redIMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},g.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},g.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},g.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},g.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},g.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},g.prototype.redPow=function(e){return m(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new g(t,16),this.n=this.p.bitLength(),this.k=new g(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){var t;"string"==typeof e?(t=g._prime(e),this.m=t.p,this.prime=t):(m(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null)}function S(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new g(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)}y.prototype._tmp=function(){var e=new g(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){for(var t,r=e;this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength(),t>this.n;);e=t<this.n?-1:r.ucmp(this.p);return 0===e?(r.words[0]=0,r.length=1):0<e?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},r(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var n=e.words[9];for(t.words[t.length++]=4194303&n,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(4194303&a)<<4|n>>>22,n=a}n>>>=22,0===(e.words[i-10]=n)&&10<e.length?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var i=0|e.words[r];t+=977*i,e.words[r]=67108863&t,t=64*i+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(_,y),r(w,y),r(k,y),k.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var i=19*(0|e.words[r])+t,n=67108863&i;i>>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},g._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new _;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new k}return b[e]=t},x.prototype._verify1=function(e){m(0===e.negative,"red works only with positives"),m(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){m(0==(e.negative|t.negative),"red works only with positives"),m(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(n(e,e.umod(this.m)._forceRed(this)),e)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);t=e.add(t);return 0<=t.cmp(this.m)&&t.isub(this.m),t._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);t=e.iadd(t);return 0<=t.cmp(this.m)&&t.isub(this.m),t},x.prototype.sub=function(e,t){this._verify2(e,t);t=e.sub(t);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);t=e.isub(t);return t.cmpn(0)<0&&t.iadd(this.m),t},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(m(t%2==1),3===t){t=this.m.add(new g(1)).iushrn(2);return this.pow(e,t)}for(var r=this.m.subn(1),i=0;!r.isZero()&&0===r.andln(1);)i++,r.iushrn(1);m(!r.isZero());for(var n=new g(1).toRed(this),a=n.redNeg(),o=this.m.subn(1).iushrn(1),s=new g(2*(s=this.m.bitLength())*s).toRed(this);0!==this.pow(s,o).cmp(a);)s.redIAdd(a);for(var u=this.pow(s,r),c=this.pow(e,r.addn(1).iushrn(1)),f=this.pow(e,r),p=i;0!==f.cmp(n);){for(var l=f,h=0;0!==l.cmp(n);h++)l=l.redSqr();m(h<p);var d=this.pow(u,new g(1).iushln(p-h-1)),c=c.redMul(d),u=d.redSqr(),f=f.redMul(u),p=h}return c},x.prototype.invm=function(e){e=e._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(e,t){if(t.isZero())return new g(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new g(1).toRed(this),r[1]=e;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],e);var n=r[0],a=0,o=0,s=t.bitLength()%26;for(0===s&&(s=26),i=t.length-1;0<=i;i--){for(var u=t.words[i],c=s-1;0<=c;c--){var f=u>>c&1;n!==r[0]&&(n=this.sqr(n)),0!=f||0!==a?(a<<=1,a|=f,(4===++o||0===i&&0===c)&&(n=this.mul(n,r[a]),a=o=0)):o=0}s=26}return n},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){e=e.clone();return e.red=null,e},g.mont=function(e){return new S(e)},r(S,x),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){e=this.imod(e.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;e=e.imul(t),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=e.isub(t).iushrn(this.shift),t=e;return 0<=e.cmp(this.m)?t=e.isub(this.m):e.cmpn(0)<0&&(t=e.iadd(this.m)),t._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new g(0)._forceRed(this);e=e.mul(t),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=e.isub(t).iushrn(this.shift),t=e;return 0<=e.cmp(this.m)?t=e.isub(this.m):e.cmpn(0)<0&&(t=e.iadd(this.m)),t._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{buffer:132}],155:[function(e,t,r){t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":156}],156:[function(e,t,r){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],157:[function(e,t,r){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],158:[function(e,t,r){var i=e("safe-buffer").Buffer,n=e("create-hash"),a=e("readable-stream"),o=e("inherits"),s=e("./sign"),u=e("./verify"),c=e("./algorithms.json");function f(e){a.Writable.call(this);e=c[e];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=n(e.hash),this._tag=e.id,this._signType=e.sign}function p(e){a.Writable.call(this);e=c[e];if(!e)throw new Error("Unknown message digest");this._hash=n(e.hash),this._tag=e.id,this._signType=e.sign}function l(e){return new f(e)}function h(e){return new p(e)}Object.keys(c).forEach(function(e){c[e].id=i.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]}),o(f,a.Writable),f.prototype._write=function(e,t,r){this._hash.update(e),r()},f.prototype.update=function(e,t){return"string"==typeof e&&(e=i.from(e,t)),this._hash.update(e),this},f.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),e=s(r,e,this._hashType,this._signType,this._tag);return t?e.toString(t):e},o(p,a.Writable),p.prototype._write=function(e,t,r){this._hash.update(e),r()},p.prototype.update=function(e,t){return"string"==typeof e&&(e=i.from(e,t)),this._hash.update(e),this},p.prototype.verify=function(e,t,r){"string"==typeof t&&(t=i.from(t,r)),this.end();r=this._hash.digest();return u(t,r,e,this._signType,this._tag)},t.exports={Sign:l,Verify:h,createSign:l,createVerify:h}},{"./algorithms.json":156,"./sign":159,"./verify":160,"create-hash":194,inherits:162,"readable-stream":177,"safe-buffer":421}],159:[function(e,t,r){var l=e("safe-buffer").Buffer,a=e("create-hmac"),u=e("browserify-rsa"),c=e("elliptic").ec,h=e("bn.js"),f=e("parse-asn1"),p=e("./curves.json");function d(e,t,r,i){(e=l.from(e.toArray())).length<t.byteLength()&&(n=l.alloc(t.byteLength()-e.length),e=l.concat([n,e]));var n=r.length,r=function(e,t){e=(e=m(e,t)).mod(t);e=l.from(e.toArray());e.length<t.byteLength()&&(t=l.alloc(t.byteLength()-e.length),e=l.concat([t,e]));return e}(r,t);(t=l.alloc(n)).fill(1);n=l.alloc(n),n=a(i,n).update(t).update(l.from([0])).update(e).update(r).digest(),t=a(i,n).update(t).digest();return{k:n=a(i,n).update(t).update(l.from([1])).update(e).update(r).digest(),v:t=a(i,n).update(t).digest()}}function m(e,t){var r=new h(e),t=(e.length<<3)-t.bitLength();return 0<t&&r.ishrn(t),r}function g(e,t,r){var i,n;do{for(i=l.alloc(0);8*i.length<e.bitLength();)t.v=a(r,t.k).update(t.v).digest(),i=l.concat([i,t.v])}while(n=m(i,e),t.k=a(r,t.k).update(t.v).update(l.from([0])).digest(),t.v=a(r,t.k).update(t.v).digest(),-1!==n.cmp(e));return n}t.exports=function(e,t,r,i,n){if((t=f(t)).curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var r=p[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));e=new c(r).keyFromPrivate(t.privateKey).sign(e);return l.from(e.toDER())}(e,t)}if("dsa"===t.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,r){var i,n=t.params.priv_key,a=t.params.p,o=t.params.q,s=t.params.g,u=new h(0),c=m(e,o).mod(o),f=!1,p=d(n,o,e,r);for(;!1===f;)i=g(o,p,r),u=function(e,t,r,i){return e.toRed(h.mont(r)).redPow(t).fromRed().mod(i)}(s,i,a,o),0===(f=i.invm(o).imul(c.add(n.mul(u))).mod(o)).cmpn(0)&&(f=!1,u=new h(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e));128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),l.from(r)}(u,f)}(e,t,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");e=l.concat([n,e]);for(var a=t.modulus.byteLength(),o=[0,1];e.length+o.length+1<a;)o.push(255);o.push(0);for(var s=-1;++s<e.length;)o.push(e[s]);return u(o,t)},t.exports.getKey=d,t.exports.makeKey=g},{"./curves.json":157,"bn.js":161,"browserify-rsa":153,"create-hmac":196,elliptic:213,"parse-asn1":344,"safe-buffer":421}],160:[function(e,t,r){var f=e("safe-buffer").Buffer,p=e("bn.js"),l=e("elliptic").ec,h=e("parse-asn1"),d=e("./curves.json");function m(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}t.exports=function(e,t,r,i,n){if("ec"===(r=h(r)).type){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong public key type");return function(e,t,r){var i=d[r.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));i=new l(i),r=r.data.subjectPrivateKey.data;return i.verify(t,e,r)}(e,t,r)}if("dsa"===r.type){if("dsa"!==i)throw new Error("wrong public key type");return function(e,t,r){var i=r.data.p,n=r.data.q,a=r.data.g,o=r.data.pub_key,s=h.signature.decode(e,"der"),r=s.s,e=s.r;m(r,n),m(e,n);s=p.mont(i),r=r.invm(n);return 0===a.toRed(s).redPow(new p(t).mul(r).mod(n)).fromRed().mul(o.toRed(s).redPow(e.mul(r).mod(n)).fromRed()).mod(i).mod(n).cmp(e)}(e,t,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong public key type");t=f.concat([n,t]);for(var a=r.modulus.byteLength(),o=[1],s=0;t.length+o.length+2<a;)o.push(255),s++;o.push(0);for(var u=-1;++u<t.length;)o.push(t[u]);o=f.from(o),n=p.mont(r.modulus),e=(e=new p(e).toRed(n)).redPow(new p(r.publicExponent)),e=f.from(e.fromRed().toArray());var c=s<8?1:0,a=Math.min(e.length,o.length);for(e.length!==o.length&&(c=1),u=-1;++u<a;)c|=e[u]^o[u];return 0===c}},{"./curves.json":157,"bn.js":161,elliptic:213,"parse-asn1":344,"safe-buffer":421}],161:[function(e,t,r){arguments[4][154][0].apply(r,arguments)},{buffer:132,dup:154}],162:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){var r;t&&(e.super_=t,(r=function(){}).prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e)}},{}],163:[function(e,t,r){"use strict";var i={};function n(e,n,t){var r=function(i){var e,t;function r(e,t,r){return i.call(this,(e=e,t=t,r=r,"string"==typeof n?n:n(e,t,r)))||this}return t=i,(e=r).prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t,r}(t=t||Error);r.prototype.name=t.name,r.prototype.code=e,i[e]=r}function u(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),2<r?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,r){var i,n,a,o,s;return"string"==typeof t&&(o="not ",t.substr(!a||a<0?0:+a,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",a=e,o=" argument",(void 0===s||s>a.length)&&(s=a.length),t=a.substring(s-o.length,s)===o?"The ".concat(e," ").concat(i," ").concat(u(t,"type")):(n=((n="number"!=typeof n?0:n)+(s=".").length>(o=e).length?void 0:-1!==o.indexOf(s,n))?"property":"argument",'The "'.concat(e,'" ').concat(n," ").concat(i," ").concat(u(t,"type"))),t+=". Received type ".concat(_typeof(r))},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},{}],164:[function(f,p,e){(function(c){(function(){"use strict";var e=Object.keys||function(e){var t,r=[];for(t in e)r.push(t);return r};p.exports=o;var t=f("./_stream_readable"),r=f("./_stream_writable");f("inherits")(o,t);for(var i=e(r.prototype),n=0;n<i.length;n++){var a=i[n];o.prototype[a]||(o.prototype[a]=r.prototype[a])}function o(e){if(!(this instanceof o))return new o(e);t.call(this,e),r.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",s)))}function s(){this._writableState.ended||c.nextTick(u,this)}function u(e){e.end()}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,f("_process"))},{"./_stream_readable":166,"./_stream_writable":168,_process:354,inherits:162}],165:[function(e,t,r){"use strict";t.exports=n;var i=e("./_stream_transform");function n(e){if(!(this instanceof n))return new n(e);i.call(this,e)}e("inherits")(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":167,inherits:162}],166:[function(D,L,e){(function(z,N){(function(){"use strict";var i;(L.exports=_).ReadableState=v;function g(e,t){return e.listeners(t).length}D("events").EventEmitter;var n=D("./internal/streams/stream"),f=D("buffer").Buffer,p=N.Uint8Array||function(){};var a,e,r,t=D("util"),b=t&&t.debuglog?t.debuglog("stream"):function(){},o=D("./internal/streams/buffer_list"),s=D("./internal/streams/destroy"),u=D("./internal/streams/state").getHighWaterMark,t=D("../errors").codes,l=t.ERR_INVALID_ARG_TYPE,h=t.ERR_STREAM_PUSH_AFTER_EOF,c=t.ERR_METHOD_NOT_IMPLEMENTED,d=t.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;D("inherits")(_,n);var y=s.errorOrDestroy,m=["error","close","destroy","pause","resume"];function v(e,t,r){i=i||D("./_stream_duplex"),e=e||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=u(this,e,"readableHighWaterMark",r),this.buffer=new o,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(a=a||D("string_decoder/").StringDecoder,this.decoder=new a(e.encoding),this.encoding=e.encoding)}function _(e){if(i=i||D("./_stream_duplex"),!(this instanceof _))return new _(e);var t=this instanceof i;this._readableState=new v(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),n.call(this)}function w(e,t,r,i,n){b("readableAddChunk",t);var a,o,s,u,c=e._readableState;if(null===t)c.reading=!1,o=e,s=c,b("onEofChunk"),s.ended||(!s.decoder||(u=s.decoder.end())&&u.length&&(s.buffer.push(u),s.length+=s.objectMode?1:u.length),s.ended=!0,s.sync?j(o):(s.needReadable=!1,s.emittedReadable||(s.emittedReadable=!0,E(o))));else if(a=!n?function(e,t){var r;(function(e){return f.isBuffer(e)||e instanceof p})(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new l("chunk",["string","Buffer","Uint8Array"],t));return r}(c,t):a)y(e,a);else if(c.objectMode||t&&0<t.length)if("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===f.prototype||(a=t,t=f.from(a)),i)c.endEmitted?y(e,new d):k(e,c,t,!0);else if(c.ended)y(e,new h);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!r?(t=c.decoder.write(t),c.objectMode||0!==t.length?k(e,c,t,!1):A(e,c)):k(e,c,t,!1)}else i||(c.reading=!1,A(e,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function k(e,t,r,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&j(e)),A(e,t)}Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),_.prototype.destroy=s.destroy,_.prototype._undestroy=s.undestroy,_.prototype._destroy=function(e,t){t(e)},_.prototype.push=function(e,t){var r,i=this._readableState;return i.objectMode?r=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=f.from(e,t),t=""),r=!0),w(this,e,t,!1,r)},_.prototype.unshift=function(e){return w(this,e,null,!0,!1)},_.prototype.isPaused=function(){return!1===this._readableState.flowing},_.prototype.setEncoding=function(e){var t=new(a=a||D("string_decoder/").StringDecoder)(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var x=1073741824;function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?(t.flowing&&t.length?t.buffer.head.data:t).length:(e>t.highWaterMark&&(t.highWaterMark=(x<=(r=e)?r=x:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function j(e){var t=e._readableState;b("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(b("emitReadable",t.flowing),t.emittedReadable=!0,z.nextTick(E,e))}function E(e){var t=e._readableState;b("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,C(e)}function A(e,t){t.readingMore||(t.readingMore=!0,z.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(b("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=0<e.listenerCount("readable"),t.resumeScheduled&&!t.paused?t.flowing=!0:0<e.listenerCount("data")&&e.resume()}function T(e){b("readable nexttick read 0"),e.read(0)}function O(e,t){b("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),C(e),t.flowing&&!t.reading&&e.read(0)}function C(e){var t=e._readableState;for(b("flow",t.flowing);t.flowing&&null!==e.read(););}function R(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function B(e){var t=e._readableState;b("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,z.nextTick(F,t,e))}function F(e,t){b("endReadableNT",e.endEmitted,e.length),e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"),!e.autoDestroy||(!(e=t._writableState)||e.autoDestroy&&e.finished)&&t.destroy())}function M(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}_.prototype.read=function(e){b("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:0<t.length)||t.ended))return b("read: emitReadable",t.length,t.ended),(0===t.length&&t.ended?B:j)(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&B(this),null;var i=t.needReadable;return b("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&b("length less than watermark",i=!0),t.ended||t.reading?b("reading or ended",i=!1):i&&(b("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(r,t))),null===(i=0<e?R(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&B(this)),null!==i&&this.emit("data",i),i},_.prototype._read=function(e){y(this,new c("_read()"))},_.prototype.pipe=function(r,e){var i=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=r;break;case 1:n.pipes=[n.pipes,r];break;default:n.pipes.push(r)}n.pipesCount+=1,b("pipe count=%d opts=%j",n.pipesCount,e);var t=(!e||!1!==e.end)&&r!==z.stdout&&r!==z.stderr?o:m;function a(e,t){b("onunpipe"),e===i&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,b("cleanup"),r.removeListener("close",h),r.removeListener("finish",d),r.removeListener("drain",u),r.removeListener("error",l),r.removeListener("unpipe",a),i.removeListener("end",o),i.removeListener("end",m),i.removeListener("data",p),f=!0,!n.awaitDrain||r._writableState&&!r._writableState.needDrain||u())}function o(){b("onend"),r.end()}n.endEmitted?z.nextTick(t):i.once("end",t),r.on("unpipe",a);var s,u=(s=i,function(){var e=s._readableState;b("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&g(s,"data")&&(e.flowing=!0,C(s))});r.on("drain",u);var c,f=!1;function p(e){b("ondata");e=r.write(e);b("dest.write",e),!1===e&&((1===n.pipesCount&&n.pipes===r||1<n.pipesCount&&-1!==M(n.pipes,r))&&!f&&(b("false write response, pause",n.awaitDrain),n.awaitDrain++),i.pause())}function l(e){b("onerror",e),m(),r.removeListener("error",l),0===g(r,"error")&&y(r,e)}function h(){r.removeListener("finish",d),m()}function d(){b("onfinish"),r.removeListener("close",h),m()}function m(){b("unpipe"),i.unpipe(r)}return i.on("data",p),c="error",e=l,"function"==typeof(t=r).prependListener?t.prependListener(c,e):t._events&&t._events[c]?Array.isArray(t._events[c])?t._events[c].unshift(e):t._events[c]=[e,t._events[c]]:t.on(c,e),r.once("close",h),r.once("finish",d),r.emit("pipe",i),n.flowing||(b("pipe resume"),i.resume()),r},_.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=M(t.pipes,e);return-1===o||(t.pipes.splice(o,1),--t.pipesCount,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},_.prototype.addListener=_.prototype.on=function(e,t){var r=n.prototype.on.call(this,e,t),t=this._readableState;return"data"===e?(t.readableListening=0<this.listenerCount("readable"),!1!==t.flowing&&this.resume()):"readable"===e&&(t.endEmitted||t.readableListening||(t.readableListening=t.needReadable=!0,t.flowing=!1,t.emittedReadable=!1,b("on readable",t.length,t.reading),t.length?j(this):t.reading||z.nextTick(T,this))),r},_.prototype.removeListener=function(e,t){t=n.prototype.removeListener.call(this,e,t);return"readable"===e&&z.nextTick(I,this),t},_.prototype.removeAllListeners=function(e){var t=n.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||z.nextTick(I,this),t},_.prototype.resume=function(){var e,t,r=this._readableState;return r.flowing||(b("resume"),r.flowing=!r.readableListening,e=this,(t=r).resumeScheduled||(t.resumeScheduled=!0,z.nextTick(O,e,t))),r.paused=!1,this},_.prototype.pause=function(){return b("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(b("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},_.prototype.wrap=function(t){var e,r=this,i=this._readableState,n=!1;for(e in t.on("end",function(){var e;b("wrapped end"),!i.decoder||i.ended||(e=i.decoder.end())&&e.length&&r.push(e),r.push(null)}),t.on("data",function(e){b("wrapped data"),i.decoder&&(e=i.decoder.write(e)),i.objectMode&&null==e||(i.objectMode||e&&e.length)&&(r.push(e)||(n=!0,t.pause()))}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var a=0;a<m.length;a++)t.on(m[a],this.emit.bind(this,m[a]));return this._read=function(e){b("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(_.prototype[Symbol.asyncIterator]=function(){return(e=void 0===e?D("./internal/streams/async_iterator"):e)(this)}),Object.defineProperty(_.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(_.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(_.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),_._fromList=R,Object.defineProperty(_.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(_.from=function(e,t){return(r=void 0===r?D("./internal/streams/from"):r)(_,e,t)})}).call(this)}).call(this,D("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":163,"./_stream_duplex":164,"./internal/streams/async_iterator":169,"./internal/streams/buffer_list":170,"./internal/streams/destroy":171,"./internal/streams/from":173,"./internal/streams/state":175,"./internal/streams/stream":176,_process:354,buffer:186,events:229,inherits:162,"string_decoder/":462,util:132}],167:[function(e,t,r){"use strict";t.exports=u;var t=e("../errors").codes,i=t.ERR_METHOD_NOT_IMPLEMENTED,n=t.ERR_MULTIPLE_CALLBACK,a=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=t.ERR_TRANSFORM_WITH_LENGTH_0,s=e("./_stream_duplex");function u(e){if(!(this instanceof u))return new u(e);s.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new n);r.writechunk=null,(r.writecb=null)!=t&&this.push(t),i(e),(e=this._readableState).reading=!1,(e.needReadable||e.length<e.highWaterMark)&&this._read(e.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",c)}function c(){var r=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush(function(e,t){f(r,e,t)})}function f(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new o;if(e._transformState.transforming)throw new a;return e.push(null)}e("inherits")(u,s),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new i("_transform()"))},u.prototype._write=function(e,t,r){var i=this._transformState;i.writecb=r,i.writechunk=e,i.writeencoding=t,i.transforming||(t=this._readableState,(i.needTransform||t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark))},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,function(e){t(e)})}},{"../errors":163,"./_stream_duplex":164,inherits:162}],168:[function(T,O,e){(function(P,I){(function(){"use strict";function f(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}(t,e)}}var i;(O.exports=w).WritableState=_;var e={deprecate:T("util-deprecate")},r=T("./internal/streams/stream"),p=T("buffer").Buffer,l=I.Uint8Array||function(){};var n,t=T("./internal/streams/destroy"),a=T("./internal/streams/state").getHighWaterMark,o=T("../errors").codes,h=o.ERR_INVALID_ARG_TYPE,s=o.ERR_METHOD_NOT_IMPLEMENTED,u=o.ERR_MULTIPLE_CALLBACK,c=o.ERR_STREAM_CANNOT_PIPE,d=o.ERR_STREAM_DESTROYED,m=o.ERR_STREAM_NULL_VALUES,g=o.ERR_STREAM_WRITE_AFTER_END,b=o.ERR_UNKNOWN_ENCODING,y=t.errorOrDestroy;function v(){}function _(e,t,r){i=i||T("./_stream_duplex"),e=e||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=a(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;r=(this.destroyed=!1)===e.decodeStrings;this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if("function"!=typeof n)throw new u;(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0})(r),t?function(e,t,r,i,n){--t.pendingcb,r?(P.nextTick(n,i),P.nextTick(A,e,t),e._writableState.errorEmitted=!0,y(e,i)):(n(i),e._writableState.errorEmitted=!0,y(e,i),A(e,t))}(e,r,i,t,n):((t=j(r)||e.destroyed)||r.corked||r.bufferProcessing||!r.bufferedRequest||S(e,r),i?P.nextTick(x,e,r,t,n):x(e,r,t,n))}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new f(this)}function w(e){var t=this instanceof(i=i||T("./_stream_duplex"));if(!t&&!n.call(w,this))return new w(e);this._writableState=new _(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),r.call(this)}function k(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new d("write")):r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function x(e,t,r,i){var n;r||(n=e,0===(r=t).length&&r.needDrain&&(r.needDrain=!1,n.emit("drain"))),t.pendingcb--,i(),A(e,t)}function S(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),i=t.corkedRequestsFree;i.entry=r;for(var a=0,o=!0;r;)(n[a]=r).isBuf||(o=!1),r=r.next,a+=1;n.allBuffers=o,k(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new f(t),t.bufferedRequestCount=0}else{for(;r;){var s=r.chunk,u=r.encoding,c=r.callback;if(k(e,t,!1,t.objectMode?1:s.length,s,u,c),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function j(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(t,r){t._final(function(e){r.pendingcb--,e&&y(t,e),r.prefinished=!0,t.emit("prefinish"),A(t,r)})}function A(e,t){var r,i,n=j(t);return n&&(r=e,(i=t).prefinished||i.finalCalled||("function"!=typeof r._final||i.destroyed?(i.prefinished=!0,r.emit("prefinish")):(i.pendingcb++,i.finalCalled=!0,P.nextTick(E,r,i))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),!t.autoDestroy||(!(t=e._readableState)||t.autoDestroy&&t.endEmitted)&&e.destroy())),n}T("inherits")(w,r),_.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(_.prototype,"buffer",{get:e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(e){return!!n.call(this,e)||this===w&&(e&&e._writableState instanceof _)}})):n=function(e){return e instanceof this},w.prototype.pipe=function(){y(this,new c)},w.prototype.write=function(e,t,r){var i,n,a,o,s,u,c=this._writableState,f=!1,i=!c.objectMode&&(i=e,p.isBuffer(i)||i instanceof l);return i&&!p.isBuffer(e)&&(n=e,e=p.from(n)),"function"==typeof t&&(r=t,t=null),t=i?"buffer":t||c.defaultEncoding,"function"!=typeof r&&(r=v),c.ending?(o=this,s=r,u=new g,y(o,u),P.nextTick(s,u)):(i||(n=this,o=c,s=r,null===(u=e)?a=new m:"string"==typeof u||o.objectMode||(a=new h("chunk",["string","Buffer"],u)),a?(y(n,a),void P.nextTick(s,a)):1))&&(c.pendingcb++,f=function(e,t,r,i,n,a){r||(u=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,r));return t}(t,i,n),i!==u&&(r=!0,n="buffer",i=u));var o=t.objectMode?1:i.length;t.length+=o;var s=t.length<t.highWaterMark;s||(t.needDrain=!0);{var u;t.writing||t.corked?(u=t.lastBufferedRequest,t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1):k(e,t,!1,o,i,n,a)}return s}(this,c,i,e,t,r)),f},w.prototype.cork=function(){this._writableState.corked++},w.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||S(this,e))},w.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(w.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(e,t,r){r(new s("_write()"))},w.prototype._writev=null,w.prototype.end=function(e,t,r){var i=this._writableState;return"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||(t=this,r=r,(i=i).ending=!0,A(t,i),r&&(i.finished?P.nextTick(r):t.once("finish",r)),i.ended=!0,t.writable=!1),this},Object.defineProperty(w.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),w.prototype.destroy=t.destroy,w.prototype._undestroy=t.undestroy,w.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,T("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":163,"./_stream_duplex":164,"./internal/streams/destroy":171,"./internal/streams/state":175,"./internal/streams/stream":176,_process:354,buffer:186,inherits:162,"util-deprecate":478}],169:[function(i,g,e){(function(m){(function(){"use strict";var e;function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var n=i("./end-of-stream"),a=Symbol("lastResolve"),o=Symbol("lastReject"),s=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),p=Symbol("stream");function l(e,t){return{value:e,done:t}}function h(e){var t,r=e[a];null===r||null!==(t=e[p].read())&&(e[c]=null,e[a]=null,e[o]=null,r(l(t,!1)))}var t=Object.getPrototypeOf(function(){}),d=Object.setPrototypeOf((r(e={get stream(){return this[p]},next:function(){var r=this,e=this[s];if(null!==e)return Promise.reject(e);if(this[u])return Promise.resolve(l(void 0,!0));if(this[p].destroyed)return new Promise(function(e,t){m.nextTick(function(){r[s]?t(r[s]):e(l(void 0,!0))})});var t,i,n,e=this[c];if(e)t=new Promise((i=e,n=this,function(e,t){i.then(function(){n[u]?e(l(void 0,!0)):n[f](e,t)},t)}));else{e=this[p].read();if(null!==e)return Promise.resolve(l(e,!1));t=new Promise(this[f])}return this[c]=t}},Symbol.asyncIterator,function(){return this}),r(e,"return",function(){var e=this;return new Promise(function(t,r){e[p].destroy(null,function(e){e?r(e):t(l(void 0,!0))})})}),e),t);g.exports=function(e){var t,i=Object.create(d,(r(t={},p,{value:e,writable:!0}),r(t,a,{value:null,writable:!0}),r(t,o,{value:null,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=i[p].read();r?(i[c]=null,i[a]=null,i[o]=null,e(l(r,!1))):(i[a]=e,i[o]=t)},writable:!0}),t));return i[c]=null,n(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=i[o];return null!==t&&(i[c]=null,i[a]=null,i[o]=null,t(e)),void(i[s]=e)}e=i[a];null!==e&&(i[c]=null,i[a]=null,e(l(void 0,!(i[o]=null)))),i[u]=!0}),e.on("readable",function(e){m.nextTick(h,e)}.bind(null,i)),i}}).call(this)}).call(this,i("_process"))},{"./end-of-stream":172,_process:354}],170:[function(e,t,r){"use strict";function a(t,e){var r,i=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,r)),i}function n(i){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){var t,r;t=i,e=n[r=e],r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(n,e))})}return i}function o(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=e("buffer").Buffer,u=e("util").inspect,c=u&&u.custom||"inspect";t.exports=function(){function t(){!function(e){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),this.head=null,this.tail=null,this.length=0}var e,r,i;return e=t,(r=[{key:"push",value:function(e){e={data:e,next:null};0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(e){e={data:e,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,r,i,n=s.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=a.data,r=n,i=o,s.prototype.copy.call(t,r,i),o+=a.data.length,a=a.next;return n}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,i=t.data;for(e-=i.length;t=t.next;){var n=t.data,a=e>n.length?n.length:e;if(a===n.length?i+=n:i+=n.slice(0,e),0===(e-=a)){a===n.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t).data=n.slice(a);break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var n=r.data,a=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,a),0===(e-=a)){a===n.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r).data=n.slice(a);break}++i}return this.length-=i,t}},{key:c,value:function(e,t){return u(this,n({},t,{depth:0,customInspect:!1}))}}])&&o(e.prototype,r),i&&o(e,i),t}()},{buffer:186,util:132}],171:[function(e,t,r){(function(u){(function(){"use strict";function a(e,t){s(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function s(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,u.nextTick(s,this,e)):u.nextTick(s,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted?u.nextTick(o,r):(r._writableState.errorEmitted=!0,u.nextTick(a,r,e)):u.nextTick(a,r,e):t?(u.nextTick(o,r),t(e)):u.nextTick(o,r)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))},{_process:354}],172:[function(e,t,r){"use strict";var b=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function y(){}t.exports=function e(t,r,i){if("function"==typeof r)return e(t,null,r);var n,a;n=i||y,a=!1,i=function(){if(!a){a=!0;for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.apply(this,t)}};function o(){t.writable||m()}function s(){g=!(l=!1),h||i.call(t)}function u(e){i.call(t,e)}function c(){var e;return l&&!g?(t._readableState&&t._readableState.ended||(e=new b),i.call(t,e)):h&&!d?(t._writableState&&t._writableState.ended||(e=new b),i.call(t,e)):void 0}function f(){t.req.on("finish",m)}var p,l=(r=r||{}).readable||!1!==r.readable&&t.readable,h=r.writable||!1!==r.writable&&t.writable,d=t._writableState&&t._writableState.finished,m=function(){d=!(h=!1),l||i.call(t)},g=t._readableState&&t._readableState.endEmitted;return(p=t).setHeader&&"function"==typeof p.abort?(t.on("complete",m),t.on("abort",c),t.req?f():t.on("request",f)):h&&!t._writableState&&(t.on("end",o),t.on("close",o)),t.on("end",s),t.on("finish",m),!1!==r.error&&t.on("error",u),t.on("close",c),function(){t.removeListener("complete",m),t.removeListener("abort",c),t.removeListener("request",f),t.req&&t.req.removeListener("finish",m),t.removeListener("end",o),t.removeListener("close",o),t.removeListener("finish",m),t.removeListener("end",s),t.removeListener("error",u),t.removeListener("close",c)}}},{"../../../errors":163}],173:[function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],174:[function(u,e,t){"use strict";var c;var r=u("../../../errors").codes,s=r.ERR_MISSING_ARGS,f=r.ERR_STREAM_DESTROYED;function p(e){if(e)throw e}function l(r,e,t,i){var n,a;n=i,a=!1;var o=!(i=function(){a||(a=!0,n.apply(void 0,arguments))});r.on("close",function(){o=!0}),(c=void 0===c?u("./end-of-stream"):c)(r,{readable:e,writable:t},function(e){return e?i(e):(o=!0,void i())});var s=!1;return function(e){var t;if(!o&&!s)return s=!0,(t=r).setHeader&&"function"==typeof t.abort?r.abort():"function"==typeof r.destroy?r.destroy():void i(e||new f("pipe"))}}function h(e){e()}function d(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];var r,n,a=!(r=i).length||"function"!=typeof r[r.length-1]?p:r.pop();if((i=Array.isArray(i[0])?i[0]:i).length<2)throw new s("streams");var o=i.map(function(e,t){var r=t<i.length-1;return l(e,r,0<t,function(e){n=n||e,e&&o.forEach(h),r||(o.forEach(h),a(n))})});return i.reduce(d)}},{"../../../errors":163,"./end-of-stream":172}],175:[function(e,t,r){"use strict";var o=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,i){var n,a=(n=i,a=r,null!=(t=t).highWaterMark?t.highWaterMark:n?t[a]:null);if(null==a)return e.objectMode?16:16384;if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new o(i?r:"highWaterMark",a);return Math.floor(a)}}},{"../../../errors":163}],176:[function(e,t,r){t.exports=e("events").EventEmitter},{events:229}],177:[function(e,t,r){(((r=t.exports=e("./lib/_stream_readable.js")).Stream=r).Readable=r).Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":164,"./lib/_stream_passthrough.js":165,"./lib/_stream_readable.js":166,"./lib/_stream_transform.js":167,"./lib/_stream_writable.js":168,"./lib/internal/streams/end-of-stream.js":172,"./lib/internal/streams/pipeline.js":174}],178:[function(n,e,d){(function(l,h){(function(){var e,t=n("pako/lib/zlib/messages"),o=n("pako/lib/zlib/zstream"),c=n("pako/lib/zlib/deflate.js"),f=n("pako/lib/zlib/inflate.js"),r=n("pako/lib/zlib/constants");for(e in r)d[e]=r[e];function i(e){if(e<d.DEFLATE||e>d.UNZIP)throw new TypeError("Bad argument");this.mode=e,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function p(e,t){for(var r=0;r<e.length;r++)this[t+r]=e[r]}d.NONE=0,d.DEFLATE=1,d.INFLATE=2,d.GZIP=3,d.GUNZIP=4,d.DEFLATERAW=5,d.INFLATERAW=6,d.UNZIP=7,i.prototype.init=function(e,t,r,i,n){switch(this.windowBits=e,this.level=t,this.memLevel=r,this.strategy=i,this.mode!==d.GZIP&&this.mode!==d.GUNZIP||(this.windowBits+=16),this.mode===d.UNZIP&&(this.windowBits+=32),this.mode!==d.DEFLATERAW&&this.mode!==d.INFLATERAW||(this.windowBits=-this.windowBits),this.strm=new o,this.mode){case d.DEFLATE:case d.GZIP:case d.DEFLATERAW:var a=c.deflateInit2(this.strm,this.level,d.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case d.INFLATE:case d.GUNZIP:case d.INFLATERAW:case d.UNZIP:a=f.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}a===d.Z_OK?(this.write_in_progress=!1,this.init_done=!0):this._error(a)},i.prototype.params=function(){throw new Error("deflateParams Not supported")},i.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(this.mode===d.NONE)throw new Error("already finalized");if(this.write_in_progress)throw new Error("write already in progress");if(this.pending_close)throw new Error("close is pending")},i.prototype.write=function(t,r,i,n,a,o,s){this._writeCheck(),this.write_in_progress=!0;var u=this;return l.nextTick(function(){u.write_in_progress=!1;var e=u._write(t,r,i,n,a,o,s);u.callback(e[0],e[1]),u.pending_close&&u.close()}),this},i.prototype.writeSync=function(e,t,r,i,n,a,o){return this._writeCheck(),this._write(e,t,r,i,n,a,o)},i.prototype._write=function(e,t,r,i,n,a,o){if(this.write_in_progress=!0,e!==d.Z_NO_FLUSH&&e!==d.Z_PARTIAL_FLUSH&&e!==d.Z_SYNC_FLUSH&&e!==d.Z_FULL_FLUSH&&e!==d.Z_FINISH&&e!==d.Z_BLOCK)throw new Error("Invalid flush value");null==t&&(t=new h(0),r=i=0),n._set?n.set=n._set:n.set=p;var s=this.strm;switch(s.avail_in=i,s.input=t,s.next_in=r,s.avail_out=o,s.output=n,s.next_out=a,this.mode){case d.DEFLATE:case d.GZIP:case d.DEFLATERAW:var u=c.deflate(s,e);break;case d.UNZIP:case d.INFLATE:case d.GUNZIP:case d.INFLATERAW:u=f.inflate(s,e);break;default:throw new Error("Unknown mode "+this.mode)}return u!==d.Z_STREAM_END&&u!==d.Z_OK&&this._error(u),this.write_in_progress=!1,[s.avail_in,s.avail_out]},i.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,this.mode===d.DEFLATE||this.mode===d.GZIP||this.mode===d.DEFLATERAW?c.deflateEnd(this.strm):f.inflateEnd(this.strm),this.mode=d.NONE)},i.prototype.reset=function(){switch(this.mode){case d.DEFLATE:case d.DEFLATERAW:var e=c.deflateReset(this.strm);break;case d.INFLATE:case d.INFLATERAW:e=f.inflateReset(this.strm)}e!==d.Z_OK&&this._error(e)},i.prototype._error=function(e){this.onerror(t[e]+": "+this.strm.msg,e),this.write_in_progress=!1,this.pending_close&&this.close()},d.Zlib=i}).call(this)}).call(this,n("_process"),n("buffer").Buffer)},{_process:354,buffer:186,"pako/lib/zlib/constants":331,"pako/lib/zlib/deflate.js":333,"pako/lib/zlib/inflate.js":335,"pako/lib/zlib/messages":337,"pako/lib/zlib/zstream":339}],179:[function(d,e,b){(function(h,g){(function(){var n=d("_stream_transform"),o=d("./binding"),e=d("util"),m=d("assert").ok;function i(t,e,r){var i=[],n=0;function a(){for(var e;null!==(e=t.read());)i.push(e),n+=e.length;t.once("readable",a)}function o(){var e=g.concat(i,n);i=[],r(null,e),t.close()}t.on("error",function(e){t.removeListener("end",o),t.removeListener("readable",a),r(e)}),t.on("end",o),t.end(e),a()}function r(e,t){if("string"==typeof t&&(t=new g(t)),!g.isBuffer(t))throw new TypeError("Not a string or buffer");var r=o.Z_FINISH;return e._processChunk(t,r)}function a(e){if(!(this instanceof a))return new a(e);t.call(this,e,o.DEFLATE)}function s(e){if(!(this instanceof s))return new s(e);t.call(this,e,o.INFLATE)}function u(e){if(!(this instanceof u))return new u(e);t.call(this,e,o.GZIP)}function c(e){if(!(this instanceof c))return new c(e);t.call(this,e,o.GUNZIP)}function f(e){if(!(this instanceof f))return new f(e);t.call(this,e,o.DEFLATERAW)}function p(e){if(!(this instanceof p))return new p(e);t.call(this,e,o.INFLATERAW)}function l(e){if(!(this instanceof l))return new l(e);t.call(this,e,o.UNZIP)}function t(e,t){if(this._opts=e=e||{},this._chunkSize=e.chunkSize||b.Z_DEFAULT_CHUNK,n.call(this,e),e.flush&&e.flush!==o.Z_NO_FLUSH&&e.flush!==o.Z_PARTIAL_FLUSH&&e.flush!==o.Z_SYNC_FLUSH&&e.flush!==o.Z_FULL_FLUSH&&e.flush!==o.Z_FINISH&&e.flush!==o.Z_BLOCK)throw new Error("Invalid flush flag: "+e.flush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,e.chunkSize&&(e.chunkSize<b.Z_MIN_CHUNK||e.chunkSize>b.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<b.Z_MIN_WINDOWBITS||e.windowBits>b.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<b.Z_MIN_LEVEL||e.level>b.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<b.Z_MIN_MEMLEVEL||e.memLevel>b.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=b.Z_FILTERED&&e.strategy!=b.Z_HUFFMAN_ONLY&&e.strategy!=b.Z_RLE&&e.strategy!=b.Z_FIXED&&e.strategy!=b.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!g.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new o.Zlib(t);var r=this;this._hadError=!1,this._binding.onerror=function(e,t){r._binding=null,r._hadError=!0;e=new Error(e);e.errno=t,e.code=b.codes[t],r.emit("error",e)};var i=b.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(i=e.level);t=b.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(t=e.strategy),this._binding.init(e.windowBits||b.Z_DEFAULT_WINDOWBITS,i,e.memLevel||b.Z_DEFAULT_MEMLEVEL,t,e.dictionary),this._buffer=new g(this._chunkSize),this._offset=0,this._closed=!1,this._level=i,this._strategy=t,this.once("end",this.close)}o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION,Object.keys(o).forEach(function(e){e.match(/^Z/)&&(b[e]=o[e])}),b.codes={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},Object.keys(b.codes).forEach(function(e){b.codes[b.codes[e]]=e}),b.Deflate=a,b.Inflate=s,b.Gzip=u,b.Gunzip=c,b.DeflateRaw=f,b.InflateRaw=p,b.Unzip=l,b.createDeflate=function(e){return new a(e)},b.createInflate=function(e){return new s(e)},b.createDeflateRaw=function(e){return new f(e)},b.createInflateRaw=function(e){return new p(e)},b.createGzip=function(e){return new u(e)},b.createGunzip=function(e){return new c(e)},b.createUnzip=function(e){return new l(e)},b.deflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),i(new a(t),e,r)},b.deflateSync=function(e,t){return r(new a(t),e)},b.gzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),i(new u(t),e,r)},b.gzipSync=function(e,t){return r(new u(t),e)},b.deflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),i(new f(t),e,r)},b.deflateRawSync=function(e,t){return r(new f(t),e)},b.unzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),i(new l(t),e,r)},b.unzipSync=function(e,t){return r(new l(t),e)},b.inflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),i(new s(t),e,r)},b.inflateSync=function(e,t){return r(new s(t),e)},b.gunzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),i(new c(t),e,r)},b.gunzipSync=function(e,t){return r(new c(t),e)},b.inflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),i(new p(t),e,r)},b.inflateRawSync=function(e,t){return r(new p(t),e)},e.inherits(t,n),t.prototype.params=function(e,t,r){if(e<b.Z_MIN_LEVEL||e>b.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=b.Z_FILTERED&&t!=b.Z_HUFFMAN_ONLY&&t!=b.Z_RLE&&t!=b.Z_FIXED&&t!=b.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);var i;this._level!==e||this._strategy!==t?(i=this).flush(o.Z_SYNC_FLUSH,function(){i._binding.params(e,t),i._hadError||(i._level=e,i._strategy=t,r&&r())}):h.nextTick(r)},t.prototype.reset=function(){return this._binding.reset()},t.prototype._flush=function(e){this._transform(new g(0),"",e)},t.prototype.flush=function(e,t){var r,i=this._writableState;"function"!=typeof e&&(void 0!==e||t)||(t=e,e=o.Z_FULL_FLUSH),i.ended?t&&h.nextTick(t):i.ending?t&&this.once("end",t):i.needDrain?(r=this).once("drain",function(){r.flush(t)}):(this._flushFlag=e,this.write(new g(0),"",t))},t.prototype.close=function(e){var t;e&&h.nextTick(e),this._closed||(this._closed=!0,this._binding.close(),t=this,h.nextTick(function(){t.emit("close")}))},t.prototype._transform=function(e,t,r){var i,n=this._writableState,a=(n.ending||n.ended)&&(!e||n.length===e.length);if(null===!e&&!g.isBuffer(e))return r(new Error("invalid input"));a?i=o.Z_FINISH:(i=this._flushFlag,e.length>=n.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH));this._processChunk(e,i,r)},t.prototype._processChunk=function(n,a,o){var s=n&&n.length,u=this._chunkSize-this._offset,c=0,f=this,p="function"==typeof o;if(!p){var t,l=[],h=0;this.on("error",function(e){t=e});do{var e=this._binding.writeSync(a,n,c,s,this._buffer,this._offset,u)}while(!this._hadError&&d(e[0],e[1]));if(this._hadError)throw t;var r=g.concat(l,h);return this.close(),r}r=this._binding.write(a,n,c,s,this._buffer,this._offset,u);function d(e,t){if(!f._hadError){var r,i=u-t;if(m(0<=i,"have should not go down"),0<i&&(r=f._buffer.slice(f._offset,f._offset+i),f._offset+=i,p?f.push(r):(l.push(r),h+=r.length)),(0===t||f._offset>=f._chunkSize)&&(u=f._chunkSize,f._offset=0,f._buffer=new g(f._chunkSize)),0===t){if(c+=s-e,s=e,!p)return!0;e=f._binding.write(a,n,c,s,f._buffer,f._offset,f._chunkSize);return e.callback=d,void(e.buffer=n)}if(!p)return!1;o()}}r.buffer=n,r.callback=d},e.inherits(a,t),e.inherits(s,t),e.inherits(u,t),e.inherits(c,t),e.inherits(f,t),e.inherits(p,t),e.inherits(l,t)}).call(this)}).call(this,d("_process"),d("buffer").Buffer)},{"./binding":178,_process:354,_stream_transform:401,assert:68,buffer:186,util:481}],180:[function(e,t,r){arguments[4][132][0].apply(r,arguments)},{dup:132}],181:[function(e,C,R){(function(O){(function(){!function(e){var t="object"==_typeof(R)&&R&&!R.nodeType&&R,r="object"==_typeof(C)&&C&&!C.nodeType&&C,i="object"==_typeof(O)&&O;i.global!==i&&i.window!==i&&i.self!==i||(e=i);var n,a,b=2147483647,y=36,v=1,_=26,o=38,s=700,w=72,k=128,x="-",u=/^xn--/,c=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},l=y-v,S=Math.floor,j=String.fromCharCode;function E(e){throw new RangeError(p[e])}function h(e,t){for(var r=e.length,i=[];r--;)i[r]=t(e[r]);return i}function d(e,t){var r=e.split("@"),i="";return 1<r.length&&(i=r[0]+"@",e=r[1]),i+h((e=e.replace(f,".")).split("."),t).join(".")}function A(e){for(var t,r,i=[],n=0,a=e.length;n<a;)55296<=(t=e.charCodeAt(n++))&&t<=56319&&n<a?56320==(64512&(r=e.charCodeAt(n++)))?i.push(((1023&t)<<10)+(1023&r)+65536):(i.push(t),n--):i.push(t);return i}function m(e){return h(e,function(e){var t="";return 65535<e&&(t+=j((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=j(e)}).join("")}function P(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function I(e,t,r){var i=0;for(e=r?S(e/s):e>>1,e+=S(e/t);l*_>>1<e;i+=y)e=S(e/l);return S(i+(l+1)*e/(e+o))}function g(e){var t,r,i,n,a,o,s,u=[],c=e.length,f=0,p=k,l=w,h=e.lastIndexOf(x);for(h<0&&(h=0),r=0;r<h;++r)128<=e.charCodeAt(r)&&E("not-basic"),u.push(e.charCodeAt(r));for(i=0<h?h+1:0;i<c;){for(n=f,a=1,o=y;c<=i&&E("invalid-input"),s=e.charCodeAt(i++),(y<=(s=s-48<10?s-22:s-65<26?s-65:s-97<26?s-97:y)||s>S((b-f)/a))&&E("overflow"),f+=s*a,!(s<(s=o<=l?v:l+_<=o?_:o-l));o+=y)a>S(b/(s=y-s))&&E("overflow"),a*=s;l=I(f-n,t=u.length+1,0==n),S(f/t)>b-p&&E("overflow"),p+=S(f/t),f%=t,u.splice(f++,0,p)}return m(u)}function T(e){for(var t,r,i,n,a,o,s,u,c,f,p,l=[],h=(e=A(e)).length,d=k,m=w,g=t=0;g<h;++g)(u=e[g])<128&&l.push(j(u));for(r=i=l.length,i&&l.push(x);r<h;){for(n=b,g=0;g<h;++g)d<=(u=e[g])&&u<n&&(n=u);for(n-d>S((b-t)/(c=r+1))&&E("overflow"),t+=(n-d)*c,d=n,g=0;g<h;++g)if((u=e[g])<d&&++t>b&&E("overflow"),u==d){for(a=t,o=y;!(a<(s=o<=m?v:m+_<=o?_:o-m));o+=y)p=a-s,f=y-s,l.push(j(P(s+p%f,0))),a=S(p/f);l.push(j(P(a,0))),m=I(t,c,r==i),t=0,++r}++t,++d}return l.join("")}if(n={version:"1.4.1",ucs2:{decode:A,encode:m},decode:g,encode:T,toASCII:function(e){return d(e,function(e){return c.test(e)?"xn--"+T(e):e})},toUnicode:function(e){return d(e,function(e){return u.test(e)?g(e.slice(4).toLowerCase()):e})}},"function"==typeof B&&"object"==_typeof(B.amd)&&B.amd)B("punycode",function(){return n});else if(t&&r)if(C.exports==t)r.exports=n;else for(a in n)n.hasOwnProperty(a)&&(t[a]=n[a]);else e.punycode=n}(this)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],182:[function(e,t,r){var i=e("buffer").Buffer,n=i.isEncoding||function(e){switch(e&&e.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!0;default:return!1}};r=r.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!n(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=s;break;default:return void(this.write=a)}this.charBuffer=new i(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function o(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function s(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}r.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!(55296<=(n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))&&n<=56319)){if((this.charReceived=this.charLength=0)===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived);var n,i=(t+=e.toString(this.encoding,0,i)).length-1;if(55296<=(n=t.charCodeAt(i))&&n<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),e.copy(this.charBuffer,0,0,a),t.substring(0,i)}return t},r.prototype.detectIncompleteChar=function(e){for(var t=3<=e.length?3:e.length;0<t;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},r.prototype.end=function(e){var t,r,i="";return e&&e.length&&(i=this.write(e)),this.charReceived&&(t=this.charReceived,r=this.charBuffer,e=this.encoding,i+=r.slice(0,t).toString(e)),i}},{buffer:186}],183:[function(e,t,r){e=e("base-x");t.exports=e("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},{"base-x":75}],184:[function(e,t,r){t.exports=function(e,t){if("function"==typeof e.compare)return e.compare(t);if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n<a&&e[n]===t[n];)++n;return n!==a&&(r=e[n],i=t[n]),r<i?-1:i<r?1:0}},{}],185:[function(e,t,r){(function(a){(function(){t.exports=function(e,t){for(var r=Math.min(e.length,t.length),i=new a(r),n=0;n<r;++n)i[n]=e[n]^t[n];return i}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:186}],186:[function(C,e,R){(function(e,t){(function(){"use strict";var s=C("base64-js"),a=C("ieee754"),o=C("isarray");function r(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function n(e,t){if(r()<t)throw new RangeError("Invalid typed array length");return p.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=p.prototype:(e=null===e?new p(t):e).length=t,e}function p(e,t,r){if(!(p.TYPED_ARRAY_SUPPORT||this instanceof p))return new p(e,t,r);if("number"!=typeof e)return i(this,e,t,r);if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return c(this,e)}function i(e,t,r,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,i){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,r):new Uint8Array(t,r,i);p.TYPED_ARRAY_SUPPORT?(e=t).__proto__=p.prototype:e=f(e,t);return e}(e,t,r,i):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!p.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var i=0|h(t,r),r=(e=n(e,i)).write(t,r);r!==i&&(e=e.slice(0,r));return e}(e,t,r):function(e,t){if(p.isBuffer(t)){var r=0|l(t.length);return 0===(e=n(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?n(e,0):f(e,t);if("Buffer"===t.type&&o(t.data))return f(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function c(e,t){if(u(t),e=n(e,t<0?0:0|l(t)),!p.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function f(e,t){var r=t.length<0?0:0|l(t.length);e=n(e,r);for(var i=0;i<r;i+=1)e[i]=255&t[i];return e}function l(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function h(e,t){if(p.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;var r=(e="string"!=typeof e?""+e:e).length;if(0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return I(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(e).length;default:if(i)return I(e).length;t=(""+t).toLowerCase(),i=!0}}function t(e,t,r){var i,n,a,o=!1;if((t=void 0===t||t<0?0:t)>this.length)return"";if((r=void 0===r||r>this.length?this.length:r)<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return function(e,t,r){var i=e.length;(!t||t<0)&&(t=0);(!r||r<0||i<r)&&(r=i);for(var n="",a=t;a<r;++a)n+=function(e){return e<16?"0"+e.toString(16):e.toString(16)}(e[a]);return n}(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}(this,t,r);case"latin1":case"binary":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}(this,t,r);case"base64":return i=this,a=r,0===(n=t)&&a===i.length?s.fromByteArray(i):s.fromByteArray(i.slice(n,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var i=e.slice(t,r),n="",a=0;a<i.length;a+=2)n+=String.fromCharCode(i[a]+256*i[a+1]);return n}(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function m(e,t,r,i,n){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,(r=(r=isNaN(r)?n?0:e.length-1:r)<0?e.length+r:r)>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=p.from(t,i)),p.isBuffer(t))return 0===t.length?-1:g(e,t,r,i,n);if("number"==typeof t)return t&=255,p.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(n?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(e,t,r):g(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,i,n){var a=1,o=e.length,s=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o/=a=2,s/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n)for(var c=-1,f=r;f<o;f++)if(u(e,f)===u(t,-1===c?0:f-c)){if(f-(c=-1===c?f:c)+1===s)return c*a}else-1!==c&&(f-=f-c),c=-1;else for(f=r=o<r+s?o-s:r;0<=f;f--){for(var p=!0,l=0;l<s;l++)if(u(e,f+l)!==u(t,l)){p=!1;break}if(p)return f}return-1}function b(e,t,r,i){return O(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return O(function(e,t){for(var r,i,n=[],a=0;a<e.length&&!((t-=2)<0);++a)i=e.charCodeAt(a),r=i>>8,i=i%256,n.push(i),n.push(r);return n}(t,e.length-r),e,r,i)}function v(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var a,o,s,u,c=e[n],f=null,p=239<c?4:223<c?3:191<c?2:1;if(n+p<=r)switch(p){case 1:c<128&&(f=c);break;case 2:128==(192&(a=e[n+1]))&&127<(u=(31&c)<<6|63&a)&&(f=u);break;case 3:a=e[n+1],o=e[n+2],128==(192&a)&&128==(192&o)&&2047<(u=(15&c)<<12|(63&a)<<6|63&o)&&(u<55296||57343<u)&&(f=u);break;case 4:a=e[n+1],o=e[n+2],s=e[n+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&65535<(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)&&u<1114112&&(f=u)}null===f?(f=65533,p=1):65535<f&&(f-=65536,i.push(f>>>10&1023|55296),f=56320|1023&f),i.push(f),n+=p}return function(e){var t=e.length;if(t<=_)return String.fromCharCode.apply(String,e);var r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=_));return r}(i)}R.Buffer=p,R.SlowBuffer=function(e){+e!=e&&(e=0);return p.alloc(+e)},R.INSPECT_MAX_BYTES=50,p.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),R.kMaxLength=r(),p.poolSize=8192,p._augment=function(e){return e.__proto__=p.prototype,e},p.from=function(e,t,r){return i(null,e,t,r)},p.TYPED_ARRAY_SUPPORT&&(p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&p[Symbol.species]===p&&Object.defineProperty(p,Symbol.species,{value:null,configurable:!0})),p.alloc=function(e,t,r){return i=null,t=t,r=r,u(e=e),!(e<=0)&&void 0!==t?"string"==typeof r?n(i,e).fill(t,r):n(i,e).fill(t):n(i,e);var i},p.allocUnsafe=function(e){return c(null,e)},p.allocUnsafeSlow=function(e){return c(null,e)},p.isBuffer=function(e){return!(null==e||!e._isBuffer)},p.compare=function(e,t){if(!p.isBuffer(e)||!p.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n<a;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},p.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return p.alloc(0);if(void 0===t)for(n=t=0;n<e.length;++n)t+=e[n].length;for(var r=p.allocUnsafe(t),i=0,n=0;n<e.length;++n){var a=e[n];if(!p.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},p.byteLength=h,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},p.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},p.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},p.prototype.toString=function(){var e=0|this.length;return 0==e?"":0===arguments.length?v(this,0,e):t.apply(this,arguments)},p.prototype.equals=function(e){if(!p.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===p.compare(this,e)},p.prototype.inspect=function(){var e="",t=R.INSPECT_MAX_BYTES;return 0<this.length&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},p.prototype.compare=function(e,t,r,i,n){if(!p.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var a=(n>>>=0)-(i>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(i,n),c=e.slice(t,r),f=0;f<s;++f)if(u[f]!==c[f]){a=u[f],o=c[f];break}return a<o?-1:o<a?1:0},p.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},p.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},p.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},p.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i=i||"utf8";for(var a,o,s,u=!1;;)switch(i){case"hex":return function(e,t,r,i){r=Number(r)||0;var n=e.length-r;if((!i||n<(i=Number(i)))&&(i=n),(n=t.length)%2!=0)throw new TypeError("Invalid hex string");n/2<i&&(i=n/2);for(var a=0;a<i;++a){var o=parseInt(t.substr(2*a,2),16);if(isNaN(o))return a;e[r+a]=o}return a}(this,e,t,r);case"utf8":case"utf-8":return o=t,s=r,O(I(e,(a=this).length-o),a,o,s);case"ascii":return b(this,e,t,r);case"latin1":case"binary":return b(this,e,t,r);case"base64":return a=this,o=t,s=r,O(T(e),a,o,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y(this,e,t,r);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;function w(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(r<e+t)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,r,i,n,a){if(!p.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n<t||t<a)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}function x(e,t,r,i){t<0&&(t=65535+t+1);for(var n=0,a=Math.min(e.length-r,2);n<a;++n)e[r+n]=(t&255<<8*(i?n:1-n))>>>8*(i?n:1-n)}function S(e,t,r,i){t<0&&(t=4294967295+t+1);for(var n=0,a=Math.min(e.length-r,4);n<a;++n)e[r+n]=t>>>8*(i?n:3-n)&255}function j(e,t,r,i){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function E(e,t,r,i,n){return n||j(e,0,r,4),a.write(e,t,r,i,23,4),r+4}function A(e,t,r,i,n){return n||j(e,0,r,8),a.write(e,t,r,i,52,8),r+8}p.prototype.slice=function(e,t){var r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e),p.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=p.prototype;else for(var i=t-e,n=new p(i,void 0),a=0;a<i;++a)n[a]=this[a+e];return n},p.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||w(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i},p.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||w(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},p.prototype.readUInt8=function(e,t){return t||w(e,1,this.length),this[e]},p.prototype.readUInt16LE=function(e,t){return t||w(e,2,this.length),this[e]|this[e+1]<<8},p.prototype.readUInt16BE=function(e,t){return t||w(e,2,this.length),this[e]<<8|this[e+1]},p.prototype.readUInt32LE=function(e,t){return t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},p.prototype.readUInt32BE=function(e,t){return t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},p.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||w(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},p.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||w(e,t,this.length);for(var i=t,n=1,a=this[e+--i];0<i&&(n*=256);)a+=this[e+--i]*n;return(n*=128)<=a&&(a-=Math.pow(2,8*t)),a},p.prototype.readInt8=function(e,t){return t||w(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},p.prototype.readInt16LE=function(e,t){t||w(e,2,this.length);e=this[e]|this[e+1]<<8;return 32768&e?4294901760|e:e},p.prototype.readInt16BE=function(e,t){t||w(e,2,this.length);e=this[e+1]|this[e]<<8;return 32768&e?4294901760|e:e},p.prototype.readInt32LE=function(e,t){return t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},p.prototype.readInt32BE=function(e,t){return t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},p.prototype.readFloatLE=function(e,t){return t||w(e,4,this.length),a.read(this,e,!0,23,4)},p.prototype.readFloatBE=function(e,t){return t||w(e,4,this.length),a.read(this,e,!1,23,4)},p.prototype.readDoubleLE=function(e,t){return t||w(e,8,this.length),a.read(this,e,!0,52,8)},p.prototype.readDoubleBE=function(e,t){return t||w(e,8,this.length),a.read(this,e,!1,52,8)},p.prototype.writeUIntLE=function(e,t,r,i){e=+e,t|=0,r|=0,i||k(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,a=0;for(this[t]=255&e;++a<r&&(n*=256);)this[t+a]=e/n&255;return t+r},p.prototype.writeUIntBE=function(e,t,r,i){e=+e,t|=0,r|=0,i||k(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,a=1;for(this[t+n]=255&e;0<=--n&&(a*=256);)this[t+n]=e/a&255;return t+r},p.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,1,255,0),p.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},p.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},p.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},p.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):S(this,e,t,!0),t+4},p.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):S(this,e,t,!1),t+4},p.prototype.writeIntLE=function(e,t,r,i){e=+e,t|=0,i||k(this,e,t,r,(i=Math.pow(2,8*r-1))-1,-i);var n=0,a=1,o=0;for(this[t]=255&e;++n<r&&(a*=256);)e<0&&0===o&&0!==this[t+n-1]&&(o=1),this[t+n]=(e/a>>0)-o&255;return t+r},p.prototype.writeIntBE=function(e,t,r,i){e=+e,t|=0,i||k(this,e,t,r,(i=Math.pow(2,8*r-1))-1,-i);var n=r-1,a=1,o=0;for(this[t+n]=255&e;0<=--n&&(a*=256);)e<0&&0===o&&0!==this[t+n+1]&&(o=1),this[t+n]=(e/a>>0)-o&255;return t+r},p.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,1,127,-128),(e=!p.TYPED_ARRAY_SUPPORT?Math.floor(e):e)<0&&(e=255+e+1),this[t]=255&e,t+1},p.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},p.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},p.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):S(this,e,t,!0),t+4},p.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),p.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):S(this,e,t,!1),t+4},p.prototype.writeFloatLE=function(e,t,r){return E(this,e,t,!0,r)},p.prototype.writeFloatBE=function(e,t,r){return E(this,e,t,!1,r)},p.prototype.writeDoubleLE=function(e,t,r){return A(this,e,t,!0,r)},p.prototype.writeDoubleBE=function(e,t,r){return A(this,e,t,!1,r)},p.prototype.copy=function(e,t,r,i){if(r=r||0,i||0===i||(i=this.length),t=(t=t>=e.length?e.length:t)||0,(i=0<i&&i<r?r:i)===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length);var n,a=(i=e.length-t<i-r?e.length-t+r:i)-r;if(this===e&&r<t&&t<i)for(n=a-1;0<=n;--n)e[n+t]=this[n+r];else if(a<1e3||!p.TYPED_ARRAY_SUPPORT)for(n=0;n<a;++n)e[n+t]=this[n+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},p.prototype.fill=function(e,t,r,i){if("string"==typeof e){var n;if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),1!==e.length||(n=e.charCodeAt(0))<256&&(e=n),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!p.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(e=e||0))for(s=t;s<r;++s)this[s]=e;else for(var a=p.isBuffer(e)?e:I(new p(e,i).toString()),o=a.length,s=0;s<r-t;++s)this[s+t]=a[s%o];return this};var P=/[^+\/0-9A-Za-z-_]/g;function I(e,t){var r;t=t||1/0;for(var i=e.length,n=null,a=[],o=0;o<i;++o){if(55295<(r=e.charCodeAt(o))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&a.push(239,191,189);continue}if(o+1===i){-1<(t-=3)&&a.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&a.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&a.push(239,191,189);if(n=null,r<128){if(--t<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function T(e){return s.toByteArray(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(P,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},C("buffer").Buffer)},{"base64-js":76,buffer:186,ieee754:295,isarray:299}],187:[function(e,t,r){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],188:[function(e,t,r){function n(e){this.dict=e||{}}n.prototype.set=function(e,t,r){if("object"!==_typeof(e)){void 0===r&&(r=!0);var i=this.has(e);return!r&&i?this.dict[i]=this.dict[i]+","+t:this.dict[i||e]=t,i}for(var n in e)this.set(n,e[n],t)},n.prototype.has=function(e){for(var t=Object.keys(this.dict),e=e.toLowerCase(),r=0;r<t.length;r++)if(t[r].toLowerCase()===e)return t[r];return!1},n.prototype.get=function(t){var r,i;t=t.toLowerCase();var n=this.dict;return Object.keys(n).forEach(function(e){i=e.toLowerCase(),t===i&&(r=n[e])}),r},n.prototype.swap=function(e){var t=this.has(e);if(t!==e){if(!t)throw new Error('There is no header than matches "'+e+'"');this.dict[e]=this.dict[t],delete this.dict[t]}},n.prototype.del=function(e){var t=this.has(e);return delete this.dict[t||e]},t.exports=function(e){return new n(e)},t.exports.httpify=function(e,t){var i=new n(t);return e.setHeader=function(e,t,r){if(void 0!==t)return i.set(e,t,r)},e.hasHeader=function(e){return i.has(e)},e.getHeader=function(e){return i.get(e)},e.removeHeader=function(e){return i.del(e)},e.headers=i.dict,i}},{}],189:[function(e,t,r){var i=e("safe-buffer").Buffer,n=e("stream").Transform,a=e("string_decoder").StringDecoder;function o(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(o,n),o.prototype.update=function(e,t,r){"string"==typeof e&&(e=i.from(e,t));e=this._update(e);return this.hashMode?this:r?this._toString(e,r):e},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){i=e}finally{r(i)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return t=e?this._toString(t,e,!0):t},o.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");e=this._decoder.write(e);return r&&(e+=this._decoder.end()),e},t.exports=o},{inherits:296,"safe-buffer":421,stream:457,string_decoder:182}],190:[function(a,o,e){(function(t){(function(){var e=a("util"),r=a("stream").Stream,i=a("delayed-stream");function n(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}o.exports=n,e.inherits(n,r),n.create=function(e){var t,r=new this;for(t in e=e||{})r[t]=e[t];return r},n.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!t.isBuffer(e)},n.prototype.append=function(e){var t;return n.isStreamLike(e)&&(e instanceof i||(t=i.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams}),e.on("data",this._checkDataSize.bind(this)),e=t),this._handleErrors(e),this.pauseStreams&&e.pause()),this._streams.push(e),this},n.prototype.pipe=function(e,t){return r.prototype.pipe.call(this,e,t),this.resume(),e},n.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{for(;this._pendingNext=!1,this._realGetNext(),this._pendingNext;);}finally{this._insideLoop=!1}}},n.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){n.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},n.prototype._pipeNext=function(e){if(this._currentStream=e,n.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});this.write(e),this._getNext()},n.prototype._handleErrors=function(e){var t=this;e.on("error",function(e){t._emitError(e)})},n.prototype.write=function(e){this.emit("data",e)},n.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},n.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},n.prototype.end=function(){this._reset(),this.emit("end")},n.prototype.destroy=function(){this._reset(),this.emit("close")},n.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},n.prototype._checkDataSize=function(){var e;this._updateDataSize(),this.dataSize<=this.maxDataSize||(e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.",this._emitError(new Error(e)))},n.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},n.prototype._emitError=function(e){this._reset(),this.emit("error",e)}}).call(this)}).call(this,{isBuffer:a("../../is-buffer/index.js")})},{"../../is-buffer/index.js":297,"delayed-stream":199,stream:457,util:481}],191:[function(e,t,r){t.exports=function(e,t){for(var r=[],i=0;i<e.length;i++){var n=t(e[i],i);a(n)?r.push.apply(r,n):r.push(n)}return r};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],192:[function(e,t,r){(function(e){(function(){function t(e){return Object.prototype.toString.call(e)}r.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},r.isBoolean=function(e){return"boolean"==typeof e},r.isNull=function(e){return null===e},r.isNullOrUndefined=function(e){return null==e},r.isNumber=function(e){return"number"==typeof e},r.isString=function(e){return"string"==typeof e},r.isSymbol=function(e){return"symbol"===_typeof(e)},r.isUndefined=function(e){return void 0===e},r.isRegExp=function(e){return"[object RegExp]"===t(e)},r.isObject=function(e){return"object"===_typeof(e)&&null!==e},r.isDate=function(e){return"[object Date]"===t(e)},r.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},r.isFunction=function(e){return"function"==typeof e},r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===_typeof(e)||void 0===e},r.isBuffer=e.isBuffer}).call(this)}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":297}],193:[function(e,s,t){(function(o){(function(){var t=e("elliptic"),r=e("bn.js");s.exports=function(e){return new n(e)};var i={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function n(e){this.curveType=i[e],this.curveType||(this.curveType={name:e}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function a(e,t,r){Array.isArray(e)||(e=e.toArray());e=new o(e);return r&&e.length<r&&((r=new o(r-e.length)).fill(0),e=o.concat([r,e])),t?e.toString(t):e}i.p224=i.secp224r1,i.p256=i.secp256r1=i.prime256v1,i.p192=i.secp192r1=i.prime192v1,i.p384=i.secp384r1,i.p521=i.secp521r1,n.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},n.prototype.computeSecret=function(e,t,r){return t=t||"utf8",o.isBuffer(e)||(e=new o(e,t)),a(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},n.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),a(r,e)},n.prototype.getPrivateKey=function(e){return a(this.keys.getPrivate(),e)},n.prototype.setPublicKey=function(e,t){return t=t||"utf8",o.isBuffer(e)||(e=new o(e,t)),this.keys._importPublic(e),this},n.prototype.setPrivateKey=function(e,t){t=t||"utf8",o.isBuffer(e)||(e=new o(e,t));e=(e=new r(e)).toString(16);return this.keys=this.curve.genKeyPair(),this.keys._importPrivate(e),this}}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":129,buffer:186,elliptic:213}],194:[function(e,t,r){"use strict";var i=e("inherits"),n=e("md5.js"),a=e("ripemd160"),o=e("sha.js"),s=e("cipher-base");function u(e){s.call(this,"digest"),this._hash=e}i(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new n:"rmd160"===e||"ripemd160"===e?new a:new u(o(e))}},{"cipher-base":189,inherits:296,"md5.js":319,ripemd160:420,"sha.js":424}],195:[function(e,t,r){var i=e("md5.js");t.exports=function(e){return(new i).update(e).digest()}},{"md5.js":319}],196:[function(e,t,r){"use strict";var i=e("inherits"),n=e("./legacy"),o=e("cipher-base"),s=e("safe-buffer").Buffer,a=e("create-hash/md5"),u=e("ripemd160"),c=e("sha.js"),f=s.alloc(128);function p(e,t){o.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,(this._key=t).length>r?t=("rmd160"===e?new u:c(e)).update(t).digest():t.length<r&&(t=s.concat([t,f],r));for(var i=this._ipad=s.allocUnsafe(r),n=this._opad=s.allocUnsafe(r),a=0;a<r;a++)i[a]=54^t[a],n[a]=92^t[a];this._hash="rmd160"===e?new u:c(e),this._hash.update(i)}i(p,o),p.prototype._update=function(e){this._hash.update(e)},p.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new u:c(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new p("rmd160",t):"md5"===e?new n(a,t):new p(e,t)}},{"./legacy":197,"cipher-base":189,"create-hash/md5":195,inherits:296,ripemd160:420,"safe-buffer":421,"sha.js":424}],197:[function(e,t,r){"use strict";var i=e("inherits"),a=e("safe-buffer").Buffer,o=e("cipher-base"),s=a.alloc(128);function n(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t)),this._alg=e,64<(this._key=t).length?t=e(t):t.length<64&&(t=a.concat([t,s],64));for(var r=this._ipad=a.allocUnsafe(64),i=this._opad=a.allocUnsafe(64),n=0;n<64;n++)r[n]=54^t[n],i[n]=92^t[n];this._hash=[r]}i(n,o),n.prototype._update=function(e){this._hash.push(e)},n.prototype._final=function(){var e=this._alg(a.concat(this._hash));return this._alg(a.concat([this._opad,e]))},t.exports=n},{"cipher-base":189,inherits:296,"safe-buffer":421}],198:[function(e,t,r){"use strict";r.randomBytes=r.rng=r.pseudoRandomBytes=r.prng=e("randombytes"),r.createHash=r.Hash=e("create-hash"),r.createHmac=r.Hmac=e("create-hmac");var i=e("browserify-sign/algos"),i=Object.keys(i),n=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);r.getHashes=function(){return n};i=e("pbkdf2");r.pbkdf2=i.pbkdf2,r.pbkdf2Sync=i.pbkdf2Sync;i=e("browserify-cipher");r.Cipher=i.Cipher,r.createCipher=i.createCipher,r.Cipheriv=i.Cipheriv,r.createCipheriv=i.createCipheriv,r.Decipher=i.Decipher,r.createDecipher=i.createDecipher,r.Decipheriv=i.Decipheriv,r.createDecipheriv=i.createDecipheriv,r.getCiphers=i.getCiphers,r.listCiphers=i.listCiphers;i=e("diffie-hellman");r.DiffieHellmanGroup=i.DiffieHellmanGroup,r.createDiffieHellmanGroup=i.createDiffieHellmanGroup,r.getDiffieHellman=i.getDiffieHellman,r.createDiffieHellman=i.createDiffieHellman,r.DiffieHellman=i.DiffieHellman;i=e("browserify-sign");r.createSign=i.createSign,r.Sign=i.Sign,r.createVerify=i.createVerify,r.Verify=i.Verify,r.createECDH=e("create-ecdh");i=e("public-encrypt");r.publicEncrypt=i.publicEncrypt,r.privateEncrypt=i.privateEncrypt,r.publicDecrypt=i.publicDecrypt,r.privateDecrypt=i.privateDecrypt;e=e("randomfill");r.randomFill=e.randomFill,r.randomFillSync=e.randomFillSync,r.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},r.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":150,"browserify-sign":158,"browserify-sign/algos":155,"create-ecdh":193,"create-hash":194,"create-hmac":196,"diffie-hellman":206,pbkdf2:346,"public-encrypt":372,randombytes:386,randomfill:387}],199:[function(e,t,r){var i=e("stream").Stream,e=e("util");function n(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}t.exports=n,e.inherits(n,i),n.create=function(e,t){var r,i=new this;for(r in t=t||{})i[r]=t[r];var n=(i.source=e).emit;return e.emit=function(){return i._handleEmit(arguments),n.apply(e,arguments)},e.on("error",function(){}),i.pauseStream&&e.pause(),i},Object.defineProperty(n.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),n.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},n.prototype.resume=function(){this._released||this.release(),this.source.resume()},n.prototype.pause=function(){this.source.pause()},n.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},n.prototype.pipe=function(){var e=i.prototype.pipe.apply(this,arguments);return this.resume(),e},n.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},n.prototype._checkIfMaxDataSizeExceeded=function(){var e;this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize||(this._maxDataSizeExceeded=!0,e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.",this.emit("error",new Error(e)))}},{stream:457,util:481}],200:[function(e,t,r){"use strict";r.utils=e("./des/utils"),r.Cipher=e("./des/cipher"),r.DES=e("./des/des"),r.CBC=e("./des/cbc"),r.EDE=e("./des/ede")},{"./des/cbc":201,"./des/cipher":202,"./des/des":203,"./des/ede":204,"./des/utils":205}],201:[function(e,t,r){"use strict";var i=e("minimalistic-assert"),a=e("inherits"),o={};function n(e){i.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}r.instantiate=function(t){function r(e){t.call(this,e),this._cbcInit()}a(r,t);for(var e=Object.keys(o),i=0;i<e.length;i++){var n=e[i];r.prototype[n]=o[n]}return r.create=function(e){return new r(e)},r},o._cbcInit=function(){var e=new n(this.options.iv);this._cbcState=e},o._update=function(e,t,r,i){var n=this._cbcState,a=this.constructor.super_.prototype,o=n.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];a._update.call(this,o,0,r,i);for(s=0;s<this.blockSize;s++)o[s]=r[i+s]}else{a._update.call(this,e,t,r,i);for(s=0;s<this.blockSize;s++)r[i+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},{inherits:296,"minimalistic-assert":324}],202:[function(e,t,r){"use strict";var i=e("minimalistic-assert");function n(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}(t.exports=n).prototype._init=function(){},n.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},n.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),i=0;i<r;i++)this.buffer[this.bufferOff+i]=e[t+i];return this.bufferOff+=r,r},n.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},n.prototype._updateEncrypt=function(e){var t=0,r=0,i=(this.bufferOff+e.length)/this.blockSize|0,n=new Array(i*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(n,r)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,n,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return n},n.prototype._updateDecrypt=function(e){for(var t=0,r=0,i=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,n=new Array(i*this.blockSize);0<i;i--)t+=this._buffer(e,t),r+=this._flushBuffer(n,r);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t;return e&&(t=this.update(e)),e="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(e):e},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},n.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},n.prototype._unpad=function(e){return e},n.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":324}],203:[function(e,t,r){"use strict";var o=e("minimalistic-assert"),i=e("inherits"),f=e("./utils"),n=e("./cipher");function a(){this.tmp=new Array(2),this.keys=null}function s(e){n.call(this,e);var t=new a;this._desState=t,this.deriveKeys(t,e.key)}i(s,n),(t.exports=s).create=function(e){return new s(e)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];s.prototype.deriveKeys=function(e,t){e.keys=new Array(32),o.equal(t.length,this.blockSize,"Invalid key length");var r=f.readUInt32BE(t,0),i=f.readUInt32BE(t,4);f.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var n=0;n<e.keys.length;n+=2){var a=u[n>>>1],r=f.r28shl(r,a),i=f.r28shl(i,a);f.pc2(r,i,e.keys,n)}},s.prototype._update=function(e,t,r,i){var n=this._desState,a=f.readUInt32BE(e,t),t=f.readUInt32BE(e,t+4);f.ip(a,t,n.tmp,0),a=n.tmp[0],t=n.tmp[1],"encrypt"===this.type?this._encrypt(n,a,t,n.tmp,0):this._decrypt(n,a,t,n.tmp,0),a=n.tmp[0],t=n.tmp[1],f.writeUInt32BE(r,a,i),f.writeUInt32BE(r,t,i+4)},s.prototype._pad=function(e,t){for(var r=e.length-t,i=t;i<e.length;i++)e[i]=r;return!0},s.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)o.equal(e[r],t);return e.slice(0,e.length-t)},s.prototype._encrypt=function(e,t,r,i,n){for(var a=t,o=r,s=0;s<e.keys.length;s+=2){var u=e.keys[s],c=e.keys[s+1];f.expand(o,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];u=f.substitute(u,c),c=o,o=(a^f.permute(u))>>>0,a=c}f.rip(o,a,i,n)},s.prototype._decrypt=function(e,t,r,i,n){for(var a=r,o=t,s=e.keys.length-2;0<=s;s-=2){var u=e.keys[s],c=e.keys[s+1];f.expand(a,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];u=f.substitute(u,c),c=a,a=(o^f.permute(u))>>>0,o=c}f.rip(a,o,i,n)}},{"./cipher":202,"./utils":205,inherits:296,"minimalistic-assert":324}],204:[function(e,t,r){"use strict";var n=e("minimalistic-assert"),i=e("inherits"),a=e("./cipher"),o=e("./des");function s(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),t=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:r}),o.create({type:"decrypt",key:i}),o.create({type:"encrypt",key:t})]:[o.create({type:"decrypt",key:t}),o.create({type:"encrypt",key:i}),o.create({type:"decrypt",key:r})]}function u(e){a.call(this,e);e=new s(this.type,this.options.key);this._edeState=e}i(u,a),(t.exports=u).create=function(e){return new u(e)},u.prototype._update=function(e,t,r,i){var n=this._edeState;n.ciphers[0]._update(e,t,r,i),n.ciphers[1]._update(r,i,r,i),n.ciphers[2]._update(r,i,r,i)},u.prototype._pad=o.prototype._pad,u.prototype._unpad=o.prototype._unpad},{"./cipher":202,"./des":203,inherits:296,"minimalistic-assert":324}],205:[function(e,t,r){"use strict";r.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},r.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},r.ip=function(e,t,r,i){for(var n=0,a=0,o=6;0<=o;o-=2){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>>s+o&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>>s+o&1}for(o=6;0<=o;o-=2){for(s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}r[i+0]=n>>>0,r[i+1]=a>>>0},r.rip=function(e,t,r,i){for(var n=0,a=0,o=0;o<4;o++)for(var s=24;0<=s;s-=8)n<<=1,n|=t>>>s+o&1,n<<=1,n|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;0<=s;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;r[i+0]=n>>>0,r[i+1]=a>>>0},r.pc1=function(e,t,r,i){for(var n=0,a=0,o=7;5<=o;o--){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>s+o&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>s+o&1}for(s=0;s<=24;s+=8)n<<=1,n|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;r[i+0]=n>>>0,r[i+1]=a>>>0},r.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var u=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];r.pc2=function(e,t,r,i){for(var n=0,a=0,o=u.length>>>1,s=0;s<o;s++)n<<=1,n|=e>>>u[s]&1;for(s=o;s<u.length;s++)a<<=1,a|=t>>>u[s]&1;r[i+0]=n>>>0,r[i+1]=a>>>0},r.expand=function(e,t,r){for(var i=0,n=0,i=(1&e)<<5|e>>>27,a=23;15<=a;a-=4)i<<=6,i|=e>>>a&63;for(a=11;3<=a;a-=4)n|=e>>>a&63,n<<=6;n|=(31&e)<<1|e>>>31,t[r+0]=i>>>0,t[r+1]=n>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];r.substitute=function(e,t){for(var r=0,i=0;i<4;i++)r<<=4,r|=n[64*i+(e>>>18-6*i&63)];for(i=0;i<4;i++)r<<=4,r|=n[256+64*i+(t>>>18-6*i&63)];return r>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];r.permute=function(e){for(var t=0,r=0;r<i.length;r++)t<<=1,t|=e>>>i[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var i=e.toString(2);i.length<t;)i="0"+i;for(var n=[],a=0;a<t;a+=r)n.push(i.slice(a,a+r));return n.join(" ")}},{}],206:[function(e,t,i){(function(u){(function(){var a=e("./lib/generatePrime"),r=e("./lib/primes.json"),o=e("./lib/dh");var s={binary:!0,hex:!0,base64:!0};i.DiffieHellmanGroup=i.createDiffieHellmanGroup=i.getDiffieHellman=function(e){var t=new u(r[e].prime,"hex"),e=new u(r[e].gen,"hex");return new o(t,e)},i.createDiffieHellman=i.DiffieHellman=function e(t,r,i,n){return u.isBuffer(r)||void 0===s[r]?e(t,"binary",r,i):(r=r||"binary",n=n||"binary",i=i||new u([2]),u.isBuffer(i)||(i=new u(i,n)),"number"==typeof t?new o(a(t,i),i,!0):(u.isBuffer(t)||(t=new u(t,r)),new o(t,i,!0)))}}).call(this)}).call(this,e("buffer").Buffer)},{"./lib/dh":207,"./lib/generatePrime":208,"./lib/primes.json":209,buffer:186}],207:[function(m,g,e){(function(d){(function(){var i=m("bn.js"),a=new(m("miller-rabin")),o=new i(24),s=new i(11),u=new i(10),c=new i(3),f=new i(7),p=m("./generatePrime"),e=m("randombytes");function n(e,t){return t=t||"utf8",d.isBuffer(e)||(e=new d(e,t)),this._pub=new i(e),this}function l(e,t){return t=t||"utf8",d.isBuffer(e)||(e=new d(e,t)),this._priv=new i(e),this}g.exports=t;var h={};function t(e,t,r){this.setGenerator(t),this.__prime=new i(e),this._prime=i.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=n,this.setPrivateKey=l):this._primeCode=8}function r(e,t){e=new d(e.toArray());return t?e.toString(t):e}Object.defineProperty(t.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex");if((t=[r,e.toString(16)].join("_"))in h)return h[t];var i,n=0;if(e.isEven()||!p.simpleSieve||!p.fermatTest(e)||!a.test(e))return n+=1,n+="02"===r||"05"===r?8:4,h[t]=n;switch(a.test(e.shrn(1))||(n+=2),r){case"02":e.mod(o).cmp(s)&&(n+=8);break;case"05":(i=e.mod(u)).cmp(c)&&i.cmp(f)&&(n+=8);break;default:n+=4}return h[t]=n}(this.__prime,this.__gen)),this._primeCode}}),t.prototype.generateKeys=function(){return this._priv||(this._priv=new i(e(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},t.prototype.computeSecret=function(e){var t=(e=(e=new i(e)).toRed(this._prime)).redPow(this._priv).fromRed(),e=new d(t.toArray()),t=this.getPrime();return e.length<t.length&&((t=new d(t.length-e.length)).fill(0),e=d.concat([t,e])),e},t.prototype.getPublicKey=function(e){return r(this._pub,e)},t.prototype.getPrivateKey=function(e){return r(this._priv,e)},t.prototype.getPrime=function(e){return r(this.__prime,e)},t.prototype.getGenerator=function(e){return r(this._gen,e)},t.prototype.setGenerator=function(e,t){return t=t||"utf8",d.isBuffer(e)||(e=new d(e,t)),this.__gen=e,this._gen=new i(e),this}}).call(this)}).call(this,m("buffer").Buffer)},{"./generatePrime":208,"bn.js":129,buffer:186,"miller-rabin":320,randombytes:386}],208:[function(e,t,r){var n=e("randombytes");(t.exports=i).simpleSieve=g,i.fermatTest=b;var a=e("bn.js"),o=new a(24),s=new(e("miller-rabin")),u=new a(1),c=new a(2),f=new a(5),p=(new a(16),new a(8),new a(10)),l=new a(3),h=(new a(7),new a(11)),d=new a(4),m=(new a(12),null);function g(e){for(var t=function(){if(null!==m)return m;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var i=Math.ceil(Math.sqrt(r)),n=0;n<t&&e[n]<=i&&r%e[n]!=0;n++);t!==n&&e[n]<=i||(e[t++]=r)}return m=e}(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function b(e){var t=a.mont(e);return 0===c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function i(e,t){if(e<16)return new a(2===t||5===t?[140,123]:[140,39]);var r,i;for(t=new a(t);;){for(r=new a(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(u),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(f))for(;r.mod(p).cmp(l);)r.iadd(d)}else for(;r.mod(o).cmp(h);)r.iadd(d);if(g(i=r.shrn(1))&&g(r)&&b(i)&&b(r)&&s.test(i)&&s.test(r))return r}}},{"bn.js":129,"miller-rabin":320,randombytes:386}],209:[function(e,t,r){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],210:[function(e,t,r){var s=e("crypto"),u=e("jsbn").BigInteger,c=(e("./lib/ec.js").ECPointFp,e("safer-buffer").Buffer);function f(e,t){return e.length>=t?e:f("0"+e,t)}r.ECCurves=e("./lib/sec.js"),r.ECKey=function(e,t,r){var i=e(),n=i.getN(),a=Math.floor(n.bitLength()/8);if(t)if(r){e=i.getCurve();this.P=e.decodePointHex(t.toString("hex"))}else{if(t.length!=a)return!1;o=new u(t.toString("hex"),16)}else{var t=n.subtract(u.ONE),o=new u(s.randomBytes(n.bitLength())).mod(t).add(u.ONE);this.P=i.getG().multiply(o)}this.P&&(this.PublicKey=c.from(i.getCurve().encodeCompressedPointHex(this.P),"hex")),o&&(this.PrivateKey=c.from(f(o.toString(16),2*a),"hex"),this.deriveSharedSecret=function(e){if(!e||!e.P)return!1;e=e.P.multiply(o);return c.from(f(e.getX().toBigInteger().toString(16),2*a),"hex")})}},{"./lib/ec.js":211,"./lib/sec.js":212,crypto:198,jsbn:301,"safer-buffer":422}],211:[function(e,t,r){var p=e("jsbn").BigInteger,i=p.prototype.Barrett;function c(e,t){this.x=t,this.q=e}function u(e,t,r,i){this.curve=e,this.x=t,this.y=r,this.z=null==i?p.ONE:i,this.zinv=null}function n(e,t,r){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(r),this.infinity=new u(this,null,null),this.reducer=new i(this.q)}c.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)},c.prototype.toBigInteger=function(){return this.x},c.prototype.negate=function(){return new c(this.q,this.x.negate().mod(this.q))},c.prototype.add=function(e){return new c(this.q,this.x.add(e.toBigInteger()).mod(this.q))},c.prototype.subtract=function(e){return new c(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))},c.prototype.multiply=function(e){return new c(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))},c.prototype.square=function(){return new c(this.q,this.x.square().mod(this.q))},c.prototype.divide=function(e){return new c(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))},u.prototype.getX=function(){null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q));var e=this.x.toBigInteger().multiply(this.zinv);return this.curve.reduce(e),this.curve.fromBigInteger(e)},u.prototype.getY=function(){null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q));var e=this.y.toBigInteger().multiply(this.zinv);return this.curve.reduce(e),this.curve.fromBigInteger(e)},u.prototype.equals=function(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():!!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(p.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(p.ZERO))},u.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(p.ZERO)&&!this.y.toBigInteger().equals(p.ZERO)},u.prototype.negate=function(){return new u(this.curve,this.x,this.y.negate(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),r=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(p.ZERO.equals(r))return p.ZERO.equals(t)?this.twice():this.curve.getInfinity();var i=new p("3"),n=this.x.toBigInteger(),a=this.y.toBigInteger(),o=(e.x.toBigInteger(),e.y.toBigInteger(),r.square()),s=o.multiply(r),n=n.multiply(o),r=(o=t.square().multiply(this.z)).subtract(n.shiftLeft(1)).multiply(e.z).subtract(s).multiply(r).mod(this.curve.q),t=n.multiply(i).multiply(t).subtract(a.multiply(s)).subtract(o.multiply(t)).multiply(e.z).add(t.multiply(s)).mod(this.curve.q),e=s.multiply(this.z).multiply(e.z).mod(this.curve.q);return new u(this.curve,this.curve.fromBigInteger(r),this.curve.fromBigInteger(t),e)},u.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=new p("3"),t=this.x.toBigInteger(),r=this.y.toBigInteger(),i=(a=r.multiply(this.z)).multiply(r).mod(this.curve.q),n=this.curve.a.toBigInteger(),r=t.square().multiply(e),n=(r=(r=!p.ZERO.equals(n)?r.add(this.z.square().multiply(n)):r).mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(a).mod(this.curve.q),r=r.multiply(e).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(r.square().multiply(r)).mod(this.curve.q),a=a.square().multiply(a).shiftLeft(3).mod(this.curve.q);return new u(this.curve,this.curve.fromBigInteger(n),this.curve.fromBigInteger(r),a)},u.prototype.multiply=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();for(var t=e,r=t.multiply(new p("3")),i=this.negate(),n=this,a=r.bitLength()-2;0<a;--a){n=n.twice();var o=r.testBit(a);o!=t.testBit(a)&&(n=n.add(o?this:i))}return n},u.prototype.multiplyTwo=function(e,t,r){for(var i=e.bitLength()>r.bitLength()?e.bitLength()-1:r.bitLength()-1,n=this.curve.getInfinity(),a=this.add(t);0<=i;)n=n.twice(),e.testBit(i)?n=r.testBit(i)?n.add(a):n.add(this):r.testBit(i)&&(n=n.add(t)),--i;return n},n.prototype.getQ=function(){return this.q},n.prototype.getA=function(){return this.a},n.prototype.getB=function(){return this.b},n.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},n.prototype.getInfinity=function(){return this.infinity},n.prototype.fromBigInteger=function(e){return new c(this.q,e)},n.prototype.reduce=function(e){this.reducer.reduce(e)},n.prototype.encodePointHex=function(e){if(e.isInfinity())return"00";var t=e.getX().toBigInteger().toString(16),r=e.getY().toBigInteger().toString(16),i=this.getQ().toString(16).length;for(i%2!=0&&i++;t.length<i;)t="0"+t;for(;r.length<i;)r="0"+r;return"04"+t+r},n.prototype.decodePointHex=function(e){var t;switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:t=!1;case 3:null==t&&(t=!0);var r=e.length-2,i=e.substr(2,r),n=this.fromBigInteger(new p(i,16)),a=n.multiply(n.square().add(this.getA())).add(this.getB()).sqrt();if(null==a)throw"Invalid point compression";var o=a.toBigInteger();return o.testBit(0)!=t&&(a=this.fromBigInteger(this.getQ().subtract(o))),new u(this,n,a);case 4:case 6:case 7:r=(e.length-2)/2,i=e.substr(2,r),r=e.substr(r+2,r);return new u(this,this.fromBigInteger(new p(i,16)),this.fromBigInteger(new p(r,16)));default:return null}},n.prototype.encodeCompressedPointHex=function(e){if(e.isInfinity())return"00";var t=e.getX().toBigInteger().toString(16),r=this.getQ().toString(16).length;for(r%2!=0&&r++;t.length<r;)t="0"+t;return(e.getY().toBigInteger().isEven()?"02":"03")+t},c.prototype.getR=function(){if(null!=this.r)return this.r;this.r=null;var e=this.q.bitLength();return 128<e&&-1==this.q.shiftRight(e-64).intValue()&&(this.r=p.ONE.shiftLeft(e).subtract(this.q)),this.r},c.prototype.modMult=function(e,t){return this.modReduce(e.multiply(t))},c.prototype.modReduce=function(e){if(null!=this.getR()){for(var t=q.bitLength();e.bitLength()>t+1;){var r=e.shiftRight(t),i=e.subtract(r.shiftLeft(t));e=(r=!this.getR().equals(p.ONE)?r.multiply(this.getR()):r).add(i)}for(;0<=e.compareTo(q);)e=e.subtract(q)}else e=e.mod(q);return e},c.prototype.sqrt=function(){if(!this.q.testBit(0))throw"unsupported";if(this.q.testBit(1)){var e=new c(this.q,this.x.modPow(this.q.shiftRight(2).add(p.ONE),this.q));return e.square().equals(this)?e:null}var t=this.q.subtract(p.ONE),r=t.shiftRight(1);if(!this.x.modPow(r,this.q).equals(p.ONE))return null;var i,n=t.shiftRight(2).shiftLeft(1).add(p.ONE),a=this.x,o=modDouble(modDouble(a));do{for(;i=new p(this.q.bitLength(),new SecureRandom),0<=i.compareTo(this.q)||!i.multiply(i).subtract(o).modPow(r,this.q).equals(t););var s=this.lucasSequence(i,a,n),u=s[0],s=s[1];if(this.modMult(s,s).equals(o))return s=(s=s.testBit(0)?s.add(q):s).shiftRight(1),new c(q,s)}while(u.equals(p.ONE)||u.equals(t));return null},c.prototype.lucasSequence=function(e,t,r){for(var i=r.bitLength(),n=r.getLowestSetBit(),a=p.ONE,o=p.TWO,s=e,u=p.ONE,c=p.ONE,f=i-1;n+1<=f;--f)u=this.modMult(u,c),r.testBit(f)?(c=this.modMult(u,t),a=this.modMult(a,s),o=this.modReduce(s.multiply(o).subtract(e.multiply(u))),s=this.modReduce(s.multiply(s).subtract(c.shiftLeft(1)))):(c=u,a=this.modReduce(a.multiply(o).subtract(u)),s=this.modReduce(s.multiply(o).subtract(e.multiply(u))),o=this.modReduce(o.multiply(o).subtract(u.shiftLeft(1))));u=this.modMult(u,c),c=this.modMult(u,t),a=this.modReduce(a.multiply(o).subtract(u)),o=this.modReduce(s.multiply(o).subtract(e.multiply(u))),u=this.modMult(u,c);for(f=1;f<=n;++f)a=this.modMult(a,o),o=this.modReduce(o.multiply(o).subtract(u.shiftLeft(1))),u=this.modMult(u,u);return[a,o]};r={ECCurveFp:n,ECPointFp:u,ECFieldElementFp:c};t.exports=r},{jsbn:301}],212:[function(e,t,r){var a=e("jsbn").BigInteger,o=e("./ec.js").ECCurveFp;function s(e,t,r,i){this.curve=e,this.g=t,this.n=r,this.h=i}function u(e){return new a(e,16)}function i(){var e=u("FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF"),t=u("FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC"),r=u("E87579C11079F43DD824993C2CEE5ED3"),i=u("FFFFFFFE0000000075A30D1B9038A115"),n=a.ONE,t=new o(e,t,r),r=t.decodePointHex("04161FF7528B899B2D0C28607CA52C5B86CF5AC8395BAFEB13C02DA292DDED7A83");return new s(t,r,i,n)}function n(){var e=u("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73"),t=a.ZERO,r=u("7"),i=u("0100000000000000000001B8FA16DFAB9ACA16B6B3"),n=a.ONE,t=new o(e,t,r),r=t.decodePointHex("043B4C382CE37AA192A4019E763036F4F5DD4D7EBB938CF935318FDCED6BC28286531733C3F03C4FEE");return new s(t,r,i,n)}function c(){var e=u("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF"),t=u("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC"),r=u("1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45"),i=u("0100000000000000000001F4C8F927AED3CA752257"),n=a.ONE,t=new o(e,t,r),r=t.decodePointHex("044A96B5688EF573284664698968C38BB913CBFC8223A628553168947D59DCC912042351377AC5FB32");return new s(t,r,i,n)}function f(){var e=u("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37"),t=a.ZERO,r=u("3"),i=u("FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D"),n=a.ONE,t=new o(e,t,r),r=t.decodePointHex("04DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D");return new s(t,r,i,n)}function p(){var e=u("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF"),t=u("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC"),r=u("64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1"),i=u("FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831"),n=a.ONE,t=new o(e,t,r),r=t.decodePointHex("04188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF101207192B95FFC8DA78631011ED6B24CDD573F977A11E794811");return new s(t,r,i,n)}function l(){var e=u("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001"),t=u("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE"),r=u("B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4"),i=u("FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D"),n=a.ONE,t=new o(e,t,r),r=t.decodePointHex("04B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34");return new s(t,r,i,n)}function h(){var e=u("FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF"),t=u("FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC"),r=u("5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B"),i=u("FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551"),n=a.ONE,t=new o(e,t,r),r=t.decodePointHex("046B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C2964FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5");return new s(t,r,i,n)}s.prototype.getCurve=function(){return this.curve},s.prototype.getG=function(){return this.g},s.prototype.getN=function(){return this.n},s.prototype.getH=function(){return this.h},t.exports={secp128r1:i,secp160k1:n,secp160r1:c,secp192k1:f,secp192r1:p,secp224r1:l,secp256r1:h}},{"./ec.js":211,jsbn:301}],213:[function(e,t,r){"use strict";r.version=e("../package.json").version,r.utils=e("./elliptic/utils"),r.rand=e("brorand"),r.curve=e("./elliptic/curve"),r.curves=e("./elliptic/curves"),r.ec=e("./elliptic/ec"),r.eddsa=e("./elliptic/eddsa")},{"../package.json":228,"./elliptic/curve":216,"./elliptic/curves":219,"./elliptic/ec":220,"./elliptic/eddsa":223,"./elliptic/utils":227,brorand:131}],214:[function(e,t,r){"use strict";var i=e("bn.js"),n=e("../utils"),j=n.getNAF,E=n.getJSF,f=n.assert;function a(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;t=this.n&&this.p.div(this.n);!t||0<t.cmpn(100)?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function o(e,t){this.curve=e,this.type=t,this.precomputed=null}(t.exports=a).prototype.point=function(){throw new Error("Not implemented")},a.prototype.validate=function(){throw new Error("Not implemented")},a.prototype._fixedNafMul=function(e,t){f(e.precomputed);var r=e._getDoubles(),i=j(t,1,this._bitLength),e=(1<<r.step+1)-(r.step%2==0?2:1);e/=3;for(var n=[],a=0;a<i.length;a+=r.step){for(var o=0,t=a+r.step-1;a<=t;t--)o=(o<<1)+i[t];n.push(o)}for(var s=this.jpoint(null,null,null),u=this.jpoint(null,null,null),c=e;0<c;c--){for(a=0;a<n.length;a++)(o=n[a])===c?u=u.mixedAdd(r.points[a]):o===-c&&(u=u.mixedAdd(r.points[a].neg()));s=s.add(u)}return s.toP()},a.prototype._wnafMul=function(e,t){for(var r=e._getNAFPoints(4),i=r.wnd,n=r.points,a=j(t,i,this._bitLength),o=this.jpoint(null,null,null),s=a.length-1;0<=s;s--){for(t=0;0<=s&&0===a[s];s--)t++;if(0<=s&&t++,o=o.dblp(t),s<0)break;var u=a[s];f(0!==u),o="affine"===e.type?0<u?o.mixedAdd(n[u-1>>1]):o.mixedAdd(n[-u-1>>1].neg()):0<u?o.add(n[u-1>>1]):o.add(n[-u-1>>1].neg())}return"affine"===e.type?o.toP():o},a.prototype._wnafMulAdd=function(e,t,r,i,n){for(var a=this._wnafT1,o=this._wnafT2,s=this._wnafT3,u=0,c=0;c<i;c++){var f=(x=t[c])._getNAFPoints(e);a[c]=f.wnd,o[c]=f.points}for(c=i-1;1<=c;c-=2){var p=c-1,l=c;if(1===a[p]&&1===a[l]){var h=[t[p],null,null,t[l]];0===t[p].y.cmp(t[l].y)?(h[1]=t[p].add(t[l]),h[2]=t[p].toJ().mixedAdd(t[l].neg())):0===t[p].y.cmp(t[l].y.redNeg())?(h[1]=t[p].toJ().mixedAdd(t[l]),h[2]=t[p].add(t[l].neg())):(h[1]=t[p].toJ().mixedAdd(t[l]),h[2]=t[p].toJ().mixedAdd(t[l].neg()));var d=[-3,-1,-5,-7,0,7,5,1,3],m=E(r[p],r[l]),u=Math.max(m[0].length,u);s[p]=new Array(u),s[l]=new Array(u);for(var g=0;g<u;g++){var b=0|m[0][g],y=0|m[1][g];s[p][g]=d[3*(1+b)+(1+y)],s[l][g]=0,o[p]=h}}else s[p]=j(r[p],a[p],this._bitLength),s[l]=j(r[l],a[l],this._bitLength),u=Math.max(s[p].length,u),u=Math.max(s[l].length,u)}for(var v=this.jpoint(null,null,null),_=this._wnafT4,c=u;0<=c;c--){for(var w=0;0<=c;){for(var k=!0,g=0;g<i;g++)_[g]=0|s[g][c],0!==_[g]&&(k=!1);if(!k)break;w++,c--}if(0<=c&&w++,v=v.dblp(w),c<0)break;for(g=0;g<i;g++){var x,S=_[g];0!==S&&(0<S?x=o[g][S-1>>1]:S<0&&(x=o[g][-S-1>>1].neg()),v="affine"===x.type?v.mixedAdd(x):v.add(x))}}for(c=0;c<i;c++)o[c]=null;return n?v:v.toP()},(a.BasePoint=o).prototype.eq=function(){throw new Error("Not implemented")},o.prototype.validate=function(){return this.curve.validate(this)},a.prototype.decodePoint=function(e,t){e=n.toArray(e,t);t=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*t)return 6===e[0]?f(e[e.length-1]%2==0):7===e[0]&&f(e[e.length-1]%2==1),this.point(e.slice(1,1+t),e.slice(1+t,1+2*t));if((2===e[0]||3===e[0])&&e.length-1===t)return this.pointFromX(e.slice(1,1+t),3===e[0]);throw new Error("Unknown point format")},o.prototype.encodeCompressed=function(e){return this.encode(e,!0)},o.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},o.prototype.encode=function(e,t){return n.encode(this._encode(t),e)},o.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},o.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},o.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;n<t;n+=e){for(var a=0;a<e;a++)i=i.dbl();r.push(i)}return{step:e,points:r}},o.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,i=1==r?null:this.dbl(),n=1;n<r;n++)t[n]=t[n-1].add(i);return{wnd:e,points:t}},o.prototype._getBeta=function(){return null},o.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},{"../utils":227,"bn.js":129}],215:[function(e,t,r){"use strict";var i=e("../utils"),a=e("bn.js"),n=e("inherits"),o=e("./base"),s=i.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new a(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new a(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new a(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,i,n){o.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new a(t,16),this.y=new a(r,16),this.z=i?new a(i,16):this.curve.one,this.t=n&&new a(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}n(u,o),(t.exports=u).prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},u.prototype.pointFromX=function(e,t){var r=(e=!(e=new a(e,16)).red?e.toRed(this.red):e).redSqr(),i=this.c2.redSub(this.a.redMul(r)),r=this.one.redSub(this.c2.redMul(this.d).redMul(r)),i=i.redMul(r.redInvm()),r=i.redSqrt();if(0!==r.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},u.prototype.pointFromY=function(e,t){var r=(e=!(e=new a(e,16)).red?e.toRed(this.red):e).redSqr(),i=r.redSub(this.c2),r=r.redMul(this.d).redMul(this.c2).redSub(this.a),i=i.redMul(r.redInvm());if(0===i.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}r=i.redSqrt();if(0!==r.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");return r.fromRed().isOdd()!==t&&(r=r.redNeg()),this.point(r,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),e=t.redMul(this.a).redAdd(r),r=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===e.cmp(r)},n(c,o.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,i){return new c(this,e,t,r,i)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=(r=this.z.redSqr()).redIAdd(r),i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=i.redAdd(t),e=a.redSub(r),r=i.redSub(t),i=n.redMul(e),t=a.redMul(r),r=n.redMul(r),a=e.redMul(a);return this.curve.point(i,t,a,r)},c.prototype._projDbl=function(){var e,t,r,i,n,a,o=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),u=this.y.redSqr();return a=this.curve.twisted?(e=(i=this.curve._mulA(s)).redAdd(u),this.zOne?(t=o.redSub(s).redSub(u).redMul(e.redSub(this.curve.two)),r=e.redMul(i.redSub(u)),e.redSqr().redSub(e).redSub(e)):(n=this.z.redSqr(),a=e.redSub(n).redISub(n),t=o.redSub(s).redISub(u).redMul(a),r=e.redMul(i.redSub(u)),e.redMul(a))):(i=s.redAdd(u),n=this.curve._mulC(this.z).redSqr(),a=i.redSub(n).redSub(n),t=this.curve._mulC(o.redISub(i)).redMul(a),r=this.curve._mulC(i).redMul(s.redISub(u)),i.redMul(a)),this.curve.point(t,r,a)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),e=n.redSub(i),n=n.redAdd(i),i=r.redAdd(t),r=a.redMul(e),t=n.redMul(i),i=a.redMul(i),n=e.redMul(n);return this.curve.point(r,t,n,i)},c.prototype._projAdd=function(e){var t,r=this.z.redMul(e.z),i=r.redSqr(),n=this.x.redMul(e.x),a=this.y.redMul(e.y),o=this.curve.d.redMul(n).redMul(a),s=i.redSub(o),o=i.redAdd(o),e=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(n).redISub(a),e=r.redMul(s).redMul(e),o=this.curve.twisted?(t=r.redMul(o).redMul(a.redSub(this.curve._mulA(n))),s.redMul(o)):(t=r.redMul(o).redMul(a.redSub(n)),this.curve._mulC(s).redMul(o));return this.curve.point(e,t,o)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),0<=r.cmp(this.curve.p))return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},{"../utils":227,"./base":214,"bn.js":129,inherits:296}],216:[function(e,t,r){"use strict";r.base=e("./base"),r.short=e("./short"),r.mont=e("./mont"),r.edwards=e("./edwards")},{"./base":214,"./edwards":215,"./mont":217,"./short":218}],217:[function(e,t,r){"use strict";var i=e("bn.js"),n=e("inherits"),a=e("./base"),o=e("../utils");function s(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(s,a),(t.exports=s).prototype.validate=function(e){var t=e.normalize().x,e=t.redSqr(),t=e.redMul(t).redAdd(e.redMul(this.a)).redAdd(t);return 0===t.redSqrt().redSqr().cmp(t)},n(u,a.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new u(this,e,t)},s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),e=e.redMul(t),r=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(e,r)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),r=e.x.redSub(e.z).redMul(r),n=n.redMul(i),i=t.z.redMul(r.redAdd(n).redSqr()),n=t.x.redMul(r.redISub(n).redSqr());return this.curve.point(i,n)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var a=n.length-1;0<=a;a--)0===n[a]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":227,"./base":214,"bn.js":129,inherits:296}],218:[function(e,t,r){"use strict";var i=e("../utils"),v=e("bn.js"),n=e("inherits"),a=e("./base"),o=i.assert;function s(e){a.call(this,"short",e),this.a=new v(e.a,16).toRed(this.red),this.b=new v(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(e,t,r,i){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new v(t,16),this.y=new v(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function c(e,t,r,i){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new v(0)):(this.x=new v(t,16),this.y=new v(r,16),this.z=new v(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}n(s,a),(t.exports=s).prototype._getEndomorphism=function(e){var t,r,i;if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3))return r=(e.beta?new v(e.beta,16):r=(i=this._getEndoRoots(this.p))[0].cmp(i[1])<0?i[0]:i[1]).toRed(this.red),e.lambda?t=new v(e.lambda,16):(i=this._getEndoRoots(this.n),0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(r))?t=i[0]:(t=i[1],o(0===this.g.mul(t).x.cmp(this.g.x.redMul(r))))),{beta:r,lambda:t,basis:e.basis?e.basis.map(function(e){return{a:new v(e.a,16),b:new v(e.b,16)}}):this._getEndoBasis(t)}},s.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:v.mont(e),r=new v(2).toRed(t).redInvm(),e=r.redNeg(),r=new v(3).toRed(t).redNeg().redSqrt().redMul(r);return[e.redAdd(r).fromRed(),e.redSub(r).fromRed()]},s.prototype._getEndoBasis=function(e){for(var t,r,i,n,a,o,s,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),c=e,f=this.n.clone(),p=new v(1),l=new v(0),h=new v(0),d=new v(1),m=0;0!==c.cmpn(0);){var g=f.div(c),b=f.sub(g.mul(c)),y=h.sub(g.mul(p)),g=d.sub(g.mul(l));if(!i&&b.cmp(u)<0)t=s.neg(),r=p,i=b.neg(),n=y;else if(i&&2==++m)break;f=c,c=s=b,h=p,p=y,d=l,l=g}a=b.neg(),o=y;e=i.sqr().add(n.sqr());return 0<=a.sqr().add(o.sqr()).cmp(e)&&(a=t,o=r),i.negative&&(i=i.neg(),n=n.neg()),a.negative&&(a=a.neg(),o=o.neg()),[{a:i,b:n},{a:a,b:o}]},s.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),o=n.mul(r.a),t=a.mul(i.a),r=n.mul(r.b),i=a.mul(i.b);return{k1:e.sub(o).sub(t),k2:r.add(i).neg()}},s.prototype.pointFromX=function(e,t){var r=(e=!(e=new v(e,16)).red?e.toRed(this.red):e).redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");r=i.fromRed().isOdd();return(t&&!r||!t&&r)&&(i=i.redNeg()),this.point(e,i)},s.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,e=this.a.redMul(t),e=t.redSqr().redMul(t).redIAdd(e).redIAdd(this.b);return 0===r.redSqr().redISub(e).cmpn(0)},s.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],u=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),u=u.neg(!0)),i[2*a]=s,i[2*a+1]=u,n[2*a]=o.k1,n[2*a+1]=o.k2}for(var r=this._wnafMulAdd(1,i,n,2*a,r),c=0;c<2*a;c++)i[c]=null,n[c]=null;return r},n(u,a.BasePoint),s.prototype.point=function(e,t,r){return new u(this,e,t,r)},s.prototype.pointFromJSON=function(e,t){return u.fromJSON(this,e,t)},u.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t,r,i=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);return e&&(t=this.curve,r=function(e){return t.point(e.x.redMul(t.endo.beta),e.y)},(e.beta=i).precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}),i}},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var i=t.point(e[0],e[1],r);if(!e[2])return i;function n(e){return t.point(e[0],e[1],r)}e=e[2];return i.precomputed={beta:null,doubles:e.doubles&&{step:e.doubles.step,points:[i].concat(e.doubles.points.map(n))},naf:e.naf&&{wnd:e.naf.wnd,points:[i].concat(e.naf.points.map(n))}},i},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y),e=(t=0!==t.cmpn(0)?t.redMul(this.x.redSub(e.x).redInvm()):t).redSqr().redISub(this.x).redISub(e.x),t=t.redMul(this.x.redSub(e)).redISub(this.y);return this.curve.point(e,t)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),e=e.redInvm(),t=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(e),e=t.redSqr().redISub(this.x.redAdd(this.x)),t=t.redMul(this.x.redSub(e)).redISub(this.y);return this.curve.point(e,t)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new v(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){t=[this,t],r=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(t,r):this.curve._wnafMulAdd(1,t,r,2)},u.prototype.jmulAdd=function(e,t,r){t=[this,t],r=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(t,r,!0):this.curve._wnafMulAdd(1,t,r,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t,r=this.curve.point(this.x,this.y.redNeg());return e&&this.precomputed&&(t=this.precomputed,e=function(e){return e.neg()},r.precomputed={naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(e)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(e)}}),r},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},n(c,a.BasePoint),s.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),e=this.y.redMul(t).redMul(e);return this.curve.point(r,e)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),t=i.redSub(n),r=a.redSub(o);if(0===t.cmpn(0))return 0!==r.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();n=t.redSqr(),o=n.redMul(t),i=i.redMul(n),n=r.redSqr().redIAdd(o).redISub(i).redISub(i),o=r.redMul(i.redISub(n)).redISub(a.redMul(o)),t=this.z.redMul(e.z).redMul(t);return this.curve.jpoint(n,o,t)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,a=e.y.redMul(t).redMul(this.z),e=r.redSub(i),t=n.redSub(a);if(0===e.cmpn(0))return 0!==t.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();i=e.redSqr(),a=i.redMul(e),r=r.redMul(i),i=t.redSqr().redIAdd(a).redISub(r).redISub(r),a=t.redMul(r.redISub(i)).redISub(n.redMul(a)),e=this.z.redMul(e);return this.curve.jpoint(i,a,e)},c.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}for(var i=this.curve.a,n=this.curve.tinv,a=this.x,o=this.y,s=this.z,u=s.redSqr().redSqr(),c=o.redAdd(o),r=0;r<e;r++){var f=a.redSqr(),p=c.redSqr(),l=p.redSqr(),h=f.redAdd(f).redIAdd(f).redIAdd(i.redMul(u)),f=a.redMul(p),p=h.redSqr().redISub(f.redAdd(f)),f=f.redISub(p),h=(h=h.redMul(f)).redIAdd(h).redISub(l),f=c.redMul(s);r+1<e&&(u=u.redMul(l)),a=p,s=f,c=h}return this.curve.jpoint(a,c.redMul(n),s)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},c.prototype._zeroDbl=function(){var e,t,r,i,n,a=this.zOne?(r=this.x.redSqr(),e=(i=this.y.redSqr()).redSqr(),n=(n=this.x.redAdd(i).redSqr().redISub(r).redISub(e)).redIAdd(n),i=(t=r.redAdd(r).redIAdd(r)).redSqr().redISub(n).redISub(n),r=(r=(r=e.redIAdd(e)).redIAdd(r)).redIAdd(r),e=i,t=t.redMul(n.redISub(i)).redISub(r),this.y.redAdd(this.y)):(n=this.x.redSqr(),a=(i=this.y.redSqr()).redSqr(),r=(r=this.x.redAdd(i).redSqr().redISub(n).redISub(a)).redIAdd(r),n=(i=n.redAdd(n).redIAdd(n)).redSqr(),a=(a=(a=a.redIAdd(a)).redIAdd(a)).redIAdd(a),e=n.redISub(r).redISub(r),t=i.redMul(r.redISub(e)).redISub(a),(a=this.y.redMul(this.z)).redIAdd(a));return this.curve.jpoint(e,t,a)},c.prototype._threeDbl=function(){var e,t,r,i,n,a,o,s;return this.zOne?(e=this.x.redSqr(),i=(t=this.y.redSqr()).redSqr(),o=(o=this.x.redAdd(t).redSqr().redISub(e).redISub(i)).redIAdd(o),r=n=(s=e.redAdd(e).redIAdd(e).redIAdd(this.curve.a)).redSqr().redISub(o).redISub(o),a=(a=(a=i.redIAdd(i)).redIAdd(a)).redIAdd(a),t=s.redMul(o.redISub(n)).redISub(a),e=this.y.redAdd(this.y)):(i=this.z.redSqr(),s=this.y.redSqr(),o=this.x.redMul(s),n=(n=this.x.redSub(i).redMul(this.x.redAdd(i))).redAdd(n).redIAdd(n),o=(a=(a=o.redIAdd(o)).redIAdd(a)).redAdd(a),r=n.redSqr().redISub(o),e=this.y.redAdd(this.z).redSqr().redISub(s).redISub(i),s=(s=(s=(s=s.redSqr()).redIAdd(s)).redIAdd(s)).redIAdd(s),t=n.redMul(a.redISub(r)).redISub(s)),this.curve.jpoint(r,t,e)},c.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,i=this.z,n=i.redSqr().redSqr(),a=t.redSqr(),o=r.redSqr(),e=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(n)),n=t.redAdd(t),t=(n=n.redIAdd(n)).redMul(o),n=e.redSqr().redISub(t.redAdd(t)),t=t.redISub(n),o=o.redSqr();o=(o=(o=o.redIAdd(o)).redIAdd(o)).redIAdd(o);o=e.redMul(t).redISub(o),i=r.redAdd(r).redMul(i);return this.curve.jpoint(n,o,i)},c.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),i=t.redSqr(),n=e.redAdd(e).redIAdd(e),a=n.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(i),e=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),i=i.redIAdd(i);i=(i=(i=i.redIAdd(i)).redIAdd(i)).redIAdd(i);a=n.redIAdd(o).redSqr().redISub(a).redISub(e).redISub(i),t=t.redMul(a);t=(t=t.redIAdd(t)).redIAdd(t);t=this.x.redMul(e).redISub(t);t=(t=t.redIAdd(t)).redIAdd(t);a=this.y.redMul(a.redMul(i.redISub(a)).redISub(o.redMul(e)));a=(a=(a=a.redIAdd(a)).redIAdd(a)).redIAdd(a);e=this.z.redAdd(o).redSqr().redISub(r).redISub(e);return this.curve.jpoint(t,a,e)},c.prototype.mul=function(e,t){return e=new v(e,t),this.curve._wnafMul(this,e)},c.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;t=t.redMul(this.z),r=r.redMul(e.z);return 0===this.y.redMul(r).redISub(e.y.redMul(t)).cmpn(0)},c.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var i=e.clone(),n=this.curve.redN.redMul(t);;){if(i.iadd(this.curve.n),0<=i.cmp(this.curve.p))return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":227,"./base":214,"bn.js":129,inherits:296}],219:[function(e,t,r){"use strict";var i,n=r,r=e("hash.js"),a=e("./curve"),o=e("./utils").assert;function s(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(t,r){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var e=new s(r);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:e}),e}})}n.PresetCurve=s,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:r.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:r.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=e("./precomputed/secp256k1")}catch(e){i=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},{"./curve":216,"./precomputed/secp256k1":226,"./utils":227,"hash.js":275}],220:[function(e,t,r){"use strict";var l=e("bn.js"),h=e("hmac-drbg"),i=e("../utils"),n=e("../curves"),a=e("brorand"),s=i.assert,o=e("./key"),d=e("./signature");function u(e){if(!(this instanceof u))return new u(e);"string"==typeof e&&(s(n.hasOwnProperty(e),"Unknown curve "+e),e=n[e]),e instanceof n.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}(t.exports=u).prototype.keyPair=function(e){return new o(this,e)},u.prototype.keyFromPrivate=function(e,t){return o.fromPrivate(this,e,t)},u.prototype.keyFromPublic=function(e,t){return o.fromPublic(this,e,t)},u.prototype.genKeyPair=function(e){e=e||{};for(var t=new h({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new l(2));;){var n=new l(t.generate(r));if(!(0<n.cmp(i)))return n.iaddn(1),this.keyFromPrivate(n)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return 0<r&&(e=e.ushrn(r)),!t&&0<=e.cmp(this.n)?e.sub(this.n):e},u.prototype.sign=function(e,t,r,i){"object"===_typeof(r)&&(i=r,r=null),i=i||{},t=this.keyFromPrivate(t,r),e=this._truncateToN(new l(e,16));for(var n=this.n.byteLength(),r=t.getPrivate().toArray("be",n),n=e.toArray("be",n),a=new h({hash:this.hash,entropy:r,nonce:n,pers:i.pers,persEnc:i.persEnc||"utf8"}),o=this.n.sub(new l(1)),s=0;;s++){var u=i.k?i.k(s):new l(a.generate(this.n.byteLength()));if(!((u=this._truncateToN(u,!0)).cmpn(1)<=0||0<=u.cmp(o))){var c=this.g.mul(u);if(!c.isInfinity()){var f=c.getX(),p=f.umod(this.n);if(0!==p.cmpn(0)){u=u.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(u=u.umod(this.n)).cmpn(0)){f=(c.getY().isOdd()?1:0)|(0!==f.cmp(p)?2:0);return i.canonical&&0<u.cmp(this.nh)&&(u=this.n.sub(u),f^=1),new d({r:p,s:u,recoveryParam:f})}}}}}},u.prototype.verify=function(e,t,r,i){e=this._truncateToN(new l(e,16)),r=this.keyFromPublic(r,i);i=(t=new d(t,"hex")).r,t=t.s;if(i.cmpn(1)<0||0<=i.cmp(this.n))return!1;if(t.cmpn(1)<0||0<=t.cmp(this.n))return!1;var n,t=t.invm(this.n),e=t.mul(e).umod(this.n),t=t.mul(i).umod(this.n);return this.curve._maxwellTrick?!(n=this.g.jmulAdd(e,r.getPublic(),t)).isInfinity()&&n.eqXToP(i):!(n=this.g.mulAdd(e,r.getPublic(),t)).isInfinity()&&0===n.getX().umod(this.n).cmp(i)},u.prototype.recoverPubKey=function(e,t,r,i){s((3&r)===r,"The recovery param is more than two bits"),t=new d(t,i);var n=this.n,a=new l(e),o=t.r,i=t.s,e=1&r,r=r>>1;if(0<=o.cmp(this.curve.p.umod(this.curve.n))&&r)throw new Error("Unable to find sencond key candinate");o=r?this.curve.pointFromX(o.add(this.curve.n),e):this.curve.pointFromX(o,e);t=t.r.invm(n),a=n.sub(a).mul(t).umod(n),n=i.mul(t).umod(n);return this.g.mulAdd(a,o,n)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new d(t,i)).recoveryParam)return t.recoveryParam;for(var n,a=0;a<4;a++){try{n=this.recoverPubKey(e,t,a)}catch(e){continue}if(n.eq(r))return a}throw new Error("Unable to find valid recovery factor")}},{"../curves":219,"../utils":227,"./key":221,"./signature":222,"bn.js":129,brorand:131,"hmac-drbg":288}],221:[function(e,t,r){"use strict";var i=e("bn.js"),n=e("../utils").assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}(t.exports=a).fromPublic=function(e,t,r){return t instanceof a?t:new a(e,{pub:t,pubEnc:r})},a.fromPrivate=function(e,t,r){return t instanceof a?t:new a(e,{priv:t,privEnc:r})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new i(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?n(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||n(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.mul(this.priv).getX()},a.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":227,"bn.js":129}],222:[function(e,t,r){"use strict";var n=e("bn.js"),a=e("../utils"),i=a.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(i(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;var i=15&r;if(0==i||4<i)return!1;for(var n=0,a=0,o=t.place;a<i;a++,o++)n<<=8,n|=e[o],n>>>=0;return!(n<=127)&&(t.place=o,n)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function f(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}(t.exports=o).prototype._importDER=function(e,t){e=a.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var i=u(e,r);if(!1===i)return!1;if(i+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;t=u(e,r);if(!1===t)return!1;i=e.slice(r.place,t+r.place);if(r.place+=t,2!==e[r.place++])return!1;t=u(e,r);if(!1===t)return!1;if(e.length!==t+r.place)return!1;r=e.slice(r.place,t+r.place);if(0===i[0]){if(!(128&i[1]))return!1;i=i.slice(1)}if(0===r[0]){if(!(128&r[1]))return!1;r=r.slice(1)}return this.r=new n(i),this.s=new n(r),!(this.recoveryParam=null)},o.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];f(i,t.length),(i=i.concat(t)).push(2),f(i,r.length);t=i.concat(r),i=[48];return f(i,t.length),i=i.concat(t),a.encode(i,e)}},{"../utils":227,"bn.js":129}],223:[function(e,t,r){"use strict";var i=e("hash.js"),n=e("../curves"),a=e("../utils"),o=a.assert,s=a.parseBytes,u=e("./key"),c=e("./signature");function f(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);e=n[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=i.sha512}(t.exports=f).prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),t=this.encodePoint(n),r=this.hashInt(t,r.pubBytes(),e).mul(r.priv()),r=i.add(r).umod(this.curve.n);return this.makeSignature({R:n,S:r,Rencoded:t})},f.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),r=this.hashInt(t.Rencoded(),i.pubBytes(),e),e=this.g.mul(t.S());return t.R().add(i.pub().mul(r)).eq(e)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},f.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},f.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},f.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},f.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),t=0!=(128&e[t]),r=a.intFromLE(r);return this.curve.pointFromY(r,t)},f.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(e){return a.intFromLE(e)},f.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../curves":219,"../utils":227,"./key":224,"./signature":225,"hash.js":275}],224:[function(e,t,r){"use strict";var i=e("../utils"),n=i.assert,a=i.parseBytes,e=i.cachedProperty;function o(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}o.fromPublic=function(e,t){return t instanceof o?t:new o(e,{pub:t})},o.fromSecret=function(e,t){return t instanceof o?t:new o(e,{secret:t})},o.prototype.secret=function(){return this._secret},e(o,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),e(o,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),e(o,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,e=t.slice(0,e.encodingLength);return e[0]&=248,e[r]&=127,e[r]|=64,e}),e(o,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),e(o,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),e(o,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),o.prototype.sign=function(e){return n(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},o.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},o.prototype.getSecret=function(e){return n(this._secret,"KeyPair is public only"),i.encode(this.secret(),e)},o.prototype.getPublic=function(e){return i.encode(this.pubBytes(),e)},t.exports=o},{"../utils":227}],225:[function(e,t,r){"use strict";var i=e("bn.js"),n=e("../utils"),a=n.assert,e=n.cachedProperty,o=n.parseBytes;function s(e,t){this.eddsa=e,"object"!==_typeof(t)&&(t=o(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}e(s,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),e(s,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),e(s,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),e(s,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),s.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},s.prototype.toHex=function(){return n.encode(this.toBytes(),"hex").toUpperCase()},t.exports=s},{"../utils":227,"bn.js":129}],226:[function(e,t,r){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],227:[function(e,t,r){"use strict";var i=r,n=e("bn.js"),r=e("minimalistic-assert"),e=e("minimalistic-crypto-utils");i.assert=r,i.toArray=e.toArray,i.zero2=e.zero2,i.toHex=e.toHex,i.encode=e.encode,i.getNAF=function(e,t,r){var i=new Array(Math.max(e.bitLength(),r)+1);i.fill(0);for(var n=1<<t+1,a=e.clone(),o=0;o<i.length;o++){var s,u=a.andln(n-1);a.isOdd()?(s=(n>>1)-1<u?(n>>1)-u:u,a.isubn(s)):s=0,i[o]=s,a.iushrn(1)}return i},i.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0;0<e.cmpn(-i)||0<t.cmpn(-n);){var a,o,s=e.andln(3)+i&3,u=t.andln(3)+n&3;3===u&&(u=-1),a=0==(1&(s=3===s?-1:s))?0:3!==(o=e.andln(7)+i&7)&&5!==o||2!==u?s:-s,r[0].push(a),u=0==(1&u)?0:3!==(o=t.andln(7)+n&7)&&5!==o||2!==s?u:-u,r[1].push(u),2*i===a+1&&(i=1-i),2*n===u+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=function(e){return"string"==typeof e?i.toArray(e,"hex"):e},i.intFromLE=function(e){return new n(e,"hex","le")}},{"bn.js":129,"minimalistic-assert":324,"minimalistic-crypto-utils":325}],228:[function(e,t,r){t.exports={_from:"elliptic@^6.5.3",_id:"elliptic@6.5.3",_inBundle:!1,_integrity:"sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==",_location:"/elliptic",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"elliptic@^6.5.3",name:"elliptic",escapedName:"elliptic",rawSpec:"^6.5.3",saveSpec:null,fetchSpec:"^6.5.3"},_requiredBy:["/bitcore-lib","/browserify-sign","/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz",_shasum:"cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6",_spec:"elliptic@^6.5.3",_where:"/home/runner/work/javascript-opentimestamps/javascript-opentimestamps/node_modules/bitcore-lib",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},bundleDependencies:!1,dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},deprecated:!1,description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^3.0.8",grunt:"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.2",jscs:"^3.0.7",jshint:"^2.10.3",mocha:"^6.2.2"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.5.3"}},{}],229:[function(e,t,r){function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function u(e){return"function"==typeof e}function c(e){return"object"===_typeof(e)&&null!==e}function f(e){return void 0===e}((t.exports=i).EventEmitter=i).prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},i.prototype.emit=function(e){var t,r,i,n,a,o;if(this._events||(this._events={}),"error"===e&&(!this._events.error||c(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var s=new Error('Uncaught, unspecified "error" event. ('+t+")");throw s.context=t,s}if(f(r=this._events[e]))return!1;if(u(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:n=Array.prototype.slice.call(arguments,1),r.apply(this,n)}else if(c(r))for(n=Array.prototype.slice.call(arguments,1),i=(o=r.slice()).length,a=0;a<i;a++)o[a].apply(this,n);return!0},i.prototype.on=i.prototype.addListener=function(e,t){var r;if(!u(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,u(t.listener)?t.listener:t),this._events[e]?c(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,c(this._events[e])&&!this._events[e].warned&&(r=f(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&0<r&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.once=function(e,t){if(!u(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},i.prototype.removeListener=function(e,t){var r,i,n,a;if(!u(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=(r=this._events[e]).length,i=-1,r===t||u(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(c(r)){for(a=n;0<a--;)if(r[a]===t||r[a].listener&&r[a].listener===t){i=a;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},i.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(u(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},i.prototype.listeners=function(e){e=this._events&&this._events[e]?u(this._events[e])?[this._events[e]]:this._events[e].slice():[];return e},i.prototype.listenerCount=function(e){if(this._events){e=this._events[e];if(u(e))return 1;if(e)return e.length}return 0},i.listenerCount=function(e,t){return e.listenerCount(t)}},{}],230:[function(e,t,r){var p=e("safe-buffer").Buffer,l=e("md5.js");t.exports=function(e,t,r,i){if(p.isBuffer(e)||(e=p.from(e,"binary")),t&&8!==(t=!p.isBuffer(t)?p.from(t,"binary"):t).length)throw new RangeError("salt should be Buffer with 8 byte length");for(var n=r/8,a=p.alloc(n),o=p.alloc(i||0),s=p.alloc(0);0<n||0<i;){var u=new l;u.update(s),u.update(e),t&&u.update(t),s=u.digest();var c,f=0;0<n&&(c=a.length-n,f=Math.min(n,s.length),s.copy(a,c,0,f),n-=f),f<s.length&&0<i&&(u=o.length-i,c=Math.min(i,s.length-f),s.copy(o,u,f,f+c),i-=c)}return s.fill(0),{key:a,iv:o}}},{"md5.js":319,"safe-buffer":421}],231:[function(e,t,r){"use strict";function f(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)}function p(e){if(e&&"[object Object]"===a.call(e)){var t,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(!e.constructor||r||i){for(t in e);return void 0===t||n.call(e,t)}}}function l(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue}function h(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]}var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor;t.exports=function e(){var t,r,i,n,a,o=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[1]||{},s=2),(null==o||"object"!==_typeof(o)&&"function"!=typeof o)&&(o={});s<u;++s)if(null!=(t=arguments[s]))for(r in t)a=h(o,r),o!==(i=h(t,r))&&(c&&i&&(p(i)||(n=f(i)))?(a=n?(n=!1,a&&f(a)?a:[]):a&&p(a)?a:{},l(o,{name:r,newValue:e(c,a,i)})):void 0!==i&&l(o,{name:r,newValue:i}));return o}},{}],232:[function(e,t,i){(function(r){(function(){var m=e("assert"),g=e("util");function b(e){var t,r,i,n,a,o,s,u,c,f=["([^%]*)","%","(['\\-+ #0]*?)","([1-9]\\d*)?","(\\.([1-9]\\d*))?","[lhjztL]*?","([diouxXfFeEgGaAcCsSp%jr])"].join(""),p=new RegExp(f),l=Array.prototype.slice.call(arguments,1),h="",d=1;for(m.equal("string",_typeof(e));null!==(c=p.exec(e));)if(h+=c[1],e=e.substring(c[0].length),t=c[2]||"",r=c[3]||0,i=c[4]||"",s=a=!1,o=" ","%"!=(n=c[6])){if(0===l.length)throw new Error("too few args to sprintf");if(u=l.shift(),d++,t.match(/[\' #]/))throw new Error("unsupported flags: "+t);if(0<i.length)throw new Error("non-zero precision not supported");switch(t.match(/-/)&&(a=!0),t.match(/0/)&&(o="0"),t.match(/\+/)&&(s=!0),n){case"s":if(null==u)throw new Error("argument "+d+": attempted to print undefined or null as a string");h+=y(o,r,a,u.toString());break;case"d":u=Math.floor(u);case"f":h+=(s=s&&0<u?"+":"")+y(o,r,a,u.toString());break;case"x":h+=y(o,r,a,u.toString(16));break;case"j":0===r&&(r=10),h+=g.inspect(u,!1,r);break;case"r":h+=function e(t){var r;if(!(t instanceof Error))throw new Error(b("invalid type for %%r: %j",t));r="EXCEPTION: "+t.constructor.name+": "+t.stack;!t.cause||"function"!=typeof t.cause||(t=t.cause())&&(r+="\nCaused by: "+e(t));return r}(u);break;default:throw new Error("unsupported conversion: "+n)}}else h+="%";return h+=e}function t(e){var t=Array.prototype.slice.call(arguments,1);return e.write(b.apply(this,t))}function y(e,t,r,i){for(var n=i;n.length<t;)r?n+=e:n=e+n;return n}i.sprintf=b,i.printf=function(){var e=Array.prototype.slice.call(arguments);e.unshift(r.stdout),t.apply(null,e)},i.fprintf=t}).call(this)}).call(this,e("_process"))},{_process:354,assert:68,util:481}],233:[function(e,t,r){"use strict";t.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==_typeof(t)&&"object"==_typeof(r)){if(t.constructor!==r.constructor)return!1;var i,n,a;if(Array.isArray(t)){if((i=t.length)!=r.length)return!1;for(n=i;0!=n--;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((i=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=i;0!=n--;){var o=a[n];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}},{}],234:[function(e,t,r){"use strict";t.exports=function(e,t){var i,u="boolean"==typeof(t="function"==typeof(t=t||{})?{cmp:t}:t).cycles&&t.cycles,c=t.cmp&&(i=t.cmp,function(r){return function(e,t){e={key:e,value:r[e]},t={key:t,value:r[t]};return i(e,t)}}),f=[];return function e(t){if(void 0!==(t=t&&t.toJSON&&"function"==typeof t.toJSON?t.toJSON():t)){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!==_typeof(t))return JSON.stringify(t);if(Array.isArray(t)){for(n="[",a=0;a<t.length;a++)a&&(n+=","),n+=e(t[a])||"null";return n+"]"}if(null===t)return"null";if(-1!==f.indexOf(t)){if(u)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}for(var r=f.push(t)-1,i=Object.keys(t).sort(c&&c(t)),n="",a=0;a<i.length;a++){var o=i[a],s=e(t[o]);s&&(n&&(n+=","),n+=JSON.stringify(o)+":"+s)}return f.splice(r,1),"{"+n+"}"}}(e)}},{}],235:[function(e,t,r){(t.exports=s).SSL=u;var i=e("util"),n=e("http").Agent,t=e("net"),a=e("tls"),e=e("https").Agent;function o(e,t){return"string"==typeof e?e+":"+t:e.host+":"+e.port+":"+(e.localAddress?e.localAddress+":":":")}function s(e){var i=this;i.options=e||{},i.requests={},i.sockets={},i.freeSockets={},i.maxSockets=i.options.maxSockets||n.defaultMaxSockets,i.minSockets=i.options.minSockets||s.defaultMinSockets,i.on("free",function(e,t,r){r=o(t,r);i.requests[r]&&i.requests[r].length?i.requests[r].shift().onSocket(e):i.sockets[r].length<i.minSockets?(i.freeSockets[r]||(i.freeSockets[r]=[]),i.freeSockets[r].push(e),r=function(){e.destroy()},e._onIdleError=r,e.on("error",r)):e.destroy()})}function u(e){s.call(this,e)}i.inherits(s,n),s.defaultMinSockets=5,s.prototype.createConnection=t.createConnection,s.prototype.addRequestNoreuse=n.prototype.addRequest,s.prototype.addRequest=function(e,t,r){var i=o(t,r);"string"!=typeof t&&(r=t.port,t=t.host),this.freeSockets[i]&&0<this.freeSockets[i].length&&!e.useChunkedEncodingByDefault?((i=this.freeSockets[i].pop()).removeListener("error",i._onIdleError),delete i._onIdleError,e._reusedSocket=!0,e.onSocket(i)):this.addRequestNoreuse(e,t,r)},s.prototype.removeSocket=function(e,t,r,i){var n;this.sockets[t]?-1!==(n=this.sockets[t].indexOf(e))&&this.sockets[t].splice(n,1):this.sockets[t]&&0===this.sockets[t].length&&(delete this.sockets[t],delete this.requests[t]),this.freeSockets[t]&&-1!==(n=this.freeSockets[t].indexOf(e))&&(this.freeSockets[t].splice(n,1),0===this.freeSockets[t].length&&delete this.freeSockets[t]),this.requests[t]&&this.requests[t].length&&this.createSocket(t,r,i).emit("free")},i.inherits(u,s),u.prototype.createConnection=function(e,t,r){"object"===_typeof(e)?r=e:"object"===_typeof(t)?r=t:"object"===_typeof(r)||(r={});"number"==typeof e&&(r.port=e);"string"==typeof t&&(r.host=t);return a.connect(r)},u.prototype.addRequestNoreuse=e.prototype.addRequest},{http:458,https:294,net:180,tls:180,util:481}],236:[function(e,t,r){t.exports=("object"==("undefined"==typeof self?"undefined":_typeof(self))?self:window).FormData},{}],237:[function(e,t,r){t.exports={$id:"afterRequest.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",optional:!0,required:["lastAccess","eTag","hitCount"],properties:{expires:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},lastAccess:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},eTag:{type:"string"},hitCount:{type:"integer"},comment:{type:"string"}}}},{}],238:[function(e,t,r){t.exports={$id:"beforeRequest.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",optional:!0,required:["lastAccess","eTag","hitCount"],properties:{expires:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},lastAccess:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},eTag:{type:"string"},hitCount:{type:"integer"},comment:{type:"string"}}}},{}],239:[function(e,t,r){t.exports={$id:"browser.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","version"],properties:{name:{type:"string"},version:{type:"string"},comment:{type:"string"}}}},{}],240:[function(e,t,r){t.exports={$id:"cache.json#",$schema:"http://json-schema.org/draft-06/schema#",properties:{beforeRequest:{oneOf:[{type:"null"},{$ref:"beforeRequest.json#"}]},afterRequest:{oneOf:[{type:"null"},{$ref:"afterRequest.json#"}]},comment:{type:"string"}}}},{}],241:[function(e,t,r){t.exports={$id:"content.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["size","mimeType"],properties:{size:{type:"integer"},compression:{type:"integer"},mimeType:{type:"string"},text:{type:"string"},encoding:{type:"string"},comment:{type:"string"}}}},{}],242:[function(e,t,r){t.exports={$id:"cookie.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","value"],properties:{name:{type:"string"},value:{type:"string"},path:{type:"string"},domain:{type:"string"},expires:{type:["string","null"],format:"date-time"},httpOnly:{type:"boolean"},secure:{type:"boolean"},comment:{type:"string"}}}},{}],243:[function(e,t,r){t.exports={$id:"creator.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","version"],properties:{name:{type:"string"},version:{type:"string"},comment:{type:"string"}}}},{}],244:[function(e,t,r){t.exports={$id:"entry.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",optional:!0,required:["startedDateTime","time","request","response","cache","timings"],properties:{pageref:{type:"string"},startedDateTime:{type:"string",format:"date-time",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))"},time:{type:"number",min:0},request:{$ref:"request.json#"},response:{$ref:"response.json#"},cache:{$ref:"cache.json#"},timings:{$ref:"timings.json#"},serverIPAddress:{type:"string",oneOf:[{format:"ipv4"},{format:"ipv6"}]},connection:{type:"string"},comment:{type:"string"}}}},{}],245:[function(e,t,r){t.exports={$id:"har.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["log"],properties:{log:{$ref:"log.json#"}}}},{}],246:[function(e,t,r){t.exports={$id:"header.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","value"],properties:{name:{type:"string"},value:{type:"string"},comment:{type:"string"}}}},{}],247:[function(e,t,r){"use strict";t.exports={afterRequest:e("./afterRequest.json"),beforeRequest:e("./beforeRequest.json"),browser:e("./browser.json"),cache:e("./cache.json"),content:e("./content.json"),cookie:e("./cookie.json"),creator:e("./creator.json"),entry:e("./entry.json"),har:e("./har.json"),header:e("./header.json"),log:e("./log.json"),page:e("./page.json"),pageTimings:e("./pageTimings.json"),postData:e("./postData.json"),query:e("./query.json"),request:e("./request.json"),response:e("./response.json"),timings:e("./timings.json")}},{"./afterRequest.json":237,"./beforeRequest.json":238,"./browser.json":239,"./cache.json":240,"./content.json":241,"./cookie.json":242,"./creator.json":243,"./entry.json":244,"./har.json":245,"./header.json":246,"./log.json":248,"./page.json":249,"./pageTimings.json":250,"./postData.json":251,"./query.json":252,"./request.json":253,"./response.json":254,"./timings.json":255}],248:[function(e,t,r){t.exports={$id:"log.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["version","creator","entries"],properties:{version:{type:"string"},creator:{$ref:"creator.json#"},browser:{$ref:"browser.json#"},pages:{type:"array",items:{$ref:"page.json#"}},entries:{type:"array",items:{$ref:"entry.json#"}},comment:{type:"string"}}}},{}],249:[function(e,t,r){t.exports={$id:"page.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",optional:!0,required:["startedDateTime","id","title","pageTimings"],properties:{startedDateTime:{type:"string",format:"date-time",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))"},id:{type:"string",unique:!0},title:{type:"string"},pageTimings:{$ref:"pageTimings.json#"},comment:{type:"string"}}}},{}],250:[function(e,t,r){t.exports={$id:"pageTimings.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",properties:{onContentLoad:{type:"number",min:-1},onLoad:{type:"number",min:-1},comment:{type:"string"}}}},{}],251:[function(e,t,r){t.exports={$id:"postData.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",optional:!0,required:["mimeType"],properties:{mimeType:{type:"string"},text:{type:"string"},params:{type:"array",required:["name"],properties:{name:{type:"string"},value:{type:"string"},fileName:{type:"string"},contentType:{type:"string"},comment:{type:"string"}}},comment:{type:"string"}}}},{}],252:[function(e,t,r){t.exports={$id:"query.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","value"],properties:{name:{type:"string"},value:{type:"string"},comment:{type:"string"}}}},{}],253:[function(e,t,r){t.exports={$id:"request.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["method","url","httpVersion","cookies","headers","queryString","headersSize","bodySize"],properties:{method:{type:"string"},url:{type:"string",format:"uri"},httpVersion:{type:"string"},cookies:{type:"array",items:{$ref:"cookie.json#"}},headers:{type:"array",items:{$ref:"header.json#"}},queryString:{type:"array",items:{$ref:"query.json#"}},postData:{$ref:"postData.json#"},headersSize:{type:"integer"},bodySize:{type:"integer"},comment:{type:"string"}}}},{}],254:[function(e,t,r){t.exports={$id:"response.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["status","statusText","httpVersion","cookies","headers","content","redirectURL","headersSize","bodySize"],properties:{status:{type:"integer"},statusText:{type:"string"},httpVersion:{type:"string"},cookies:{type:"array",items:{$ref:"cookie.json#"}},headers:{type:"array",items:{$ref:"header.json#"}},content:{$ref:"content.json#"},redirectURL:{type:"string"},headersSize:{type:"integer"},bodySize:{type:"integer"},comment:{type:"string"}}}},{}],255:[function(e,t,r){t.exports={$id:"timings.json#",$schema:"http://json-schema.org/draft-06/schema#",required:["send","wait","receive"],properties:{dns:{type:"number",min:-1},connect:{type:"number",min:-1},blocked:{type:"number",min:-1},send:{type:"number",min:-1},wait:{type:"number",min:-1},receive:{type:"number",min:-1},ssl:{type:"number",min:-1},comment:{type:"string"}}}},{}],256:[function(e,t,r){function i(e){var t="validation failed";this.name="HARError",this.message=t,this.errors=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack}i.prototype=Error.prototype,t.exports=i},{}],257:[function(n,e,t){var a,o=n("ajv"),s=n("./error"),u=n("har-schema");function r(e,r){var t;r=r||{};var i=(a=a||((t=new o({allErrors:!0})).addMetaSchema(n("ajv/lib/refs/json-schema-draft-06.json")),t.addSchema(u),t)).getSchema(e+".json");return new Promise(function(e,t){i(r)?e(r):t(new s(i.errors))})}t.afterRequest=function(e){return r("afterRequest",e)},t.beforeRequest=function(e){return r("beforeRequest",e)},t.browser=function(e){return r("browser",e)},t.cache=function(e){return r("cache",e)},t.content=function(e){return r("content",e)},t.cookie=function(e){return r("cookie",e)},t.creator=function(e){return r("creator",e)},t.entry=function(e){return r("entry",e)},t.har=function(e){return r("har",e)},t.header=function(e){return r("header",e)},t.log=function(e){return r("log",e)},t.page=function(e){return r("page",e)},t.pageTimings=function(e){return r("pageTimings",e)},t.postData=function(e){return r("postData",e)},t.query=function(e){return r("query",e)},t.request=function(e){return r("request",e)},t.response=function(e){return r("response",e)},t.timings=function(e){return r("timings",e)}},{"./error":256,ajv:2,"ajv/lib/refs/json-schema-draft-06.json":43,"har-schema":247}],258:[function(e,t,r){"use strict";var s=e("safe-buffer").Buffer,i=e("readable-stream").Transform;function n(e){i.call(this),this._block=s.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(n,i),n.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(e){i=e}r(i)},n.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},n.prototype.update=function(e,t){if(!function(e,t){if(!s.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");s.isBuffer(e)||(e=s.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)r[n++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var a=0,o=8*e.length;0<o;++a)this._length[a]+=o,0<(o=this._length[a]/4294967296|0)&&(this._length[a]-=4294967296*o);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0);for(var r=this._blockOffset=0;r<4;++r)this._length[r]=0;return t},n.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=n},{inherits:259,"readable-stream":274,"safe-buffer":421}],259:[function(e,t,r){arguments[4][162][0].apply(r,arguments)},{dup:162}],260:[function(e,t,r){arguments[4][163][0].apply(r,arguments)},{dup:163}],261:[function(e,t,r){arguments[4][164][0].apply(r,arguments)},{"./_stream_readable":263,"./_stream_writable":265,_process:354,dup:164,inherits:259}],262:[function(e,t,r){arguments[4][165][0].apply(r,arguments)},{"./_stream_transform":264,dup:165,inherits:259}],263:[function(e,t,r){arguments[4][166][0].apply(r,arguments)},{"../errors":260,"./_stream_duplex":261,"./internal/streams/async_iterator":266,"./internal/streams/buffer_list":267,"./internal/streams/destroy":268,"./internal/streams/from":270,"./internal/streams/state":272,"./internal/streams/stream":273,_process:354,buffer:186,dup:166,events:229,inherits:259,"string_decoder/":462,util:132}],264:[function(e,t,r){arguments[4][167][0].apply(r,arguments)},{"../errors":260,"./_stream_duplex":261,dup:167,inherits:259}],265:[function(e,t,r){arguments[4][168][0].apply(r,arguments)},{"../errors":260,"./_stream_duplex":261,"./internal/streams/destroy":268,"./internal/streams/state":272,"./internal/streams/stream":273,_process:354,buffer:186,dup:168,inherits:259,"util-deprecate":478}],266:[function(e,t,r){arguments[4][169][0].apply(r,arguments)},{"./end-of-stream":269,_process:354,dup:169}],267:[function(e,t,r){arguments[4][170][0].apply(r,arguments)},{buffer:186,dup:170,util:132}],268:[function(e,t,r){arguments[4][171][0].apply(r,arguments)},{_process:354,dup:171}],269:[function(e,t,r){arguments[4][172][0].apply(r,arguments)},{"../../../errors":260,dup:172}],270:[function(e,t,r){arguments[4][173][0].apply(r,arguments)},{dup:173}],271:[function(e,t,r){arguments[4][174][0].apply(r,arguments)},{"../../../errors":260,"./end-of-stream":269,dup:174}],272:[function(e,t,r){arguments[4][175][0].apply(r,arguments)},{"../../../errors":260,dup:175}],273:[function(e,t,r){arguments[4][176][0].apply(r,arguments)},{dup:176,events:229}],274:[function(e,t,r){arguments[4][177][0].apply(r,arguments)},{"./lib/_stream_duplex.js":261,"./lib/_stream_passthrough.js":262,"./lib/_stream_readable.js":263,"./lib/_stream_transform.js":264,"./lib/_stream_writable.js":265,"./lib/internal/streams/end-of-stream.js":269,"./lib/internal/streams/pipeline.js":271,dup:177}],275:[function(e,t,r){r.utils=e("./hash/utils"),r.common=e("./hash/common"),r.sha=e("./hash/sha"),r.ripemd=e("./hash/ripemd"),r.hmac=e("./hash/hmac"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"./hash/common":276,"./hash/hmac":277,"./hash/ripemd":278,"./hash/sha":279,"./hash/utils":286}],276:[function(e,t,r){"use strict";var i=e("./utils"),n=e("minimalistic-assert");function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}(r.BlockHash=a).prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){t=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-t,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-t,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),n(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,i=new Array(r+this.padLength);i[0]=128;for(var n=1;n<r;n++)i[n]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)i[n++]=0;i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=e>>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,a=8;a<this.padLength;a++)i[n++]=0;return i}},{"./utils":286,"minimalistic-assert":324}],277:[function(e,t,r){"use strict";var i=e("./utils"),n=e("minimalistic-assert");function a(e,t,r){if(!(this instanceof a))return new a(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(t,r))}(t.exports=a).prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":286,"minimalistic-assert":324}],278:[function(e,t,r){"use strict";var i=e("./utils"),e=e("./common"),m=i.rotl32,g=i.sum32,b=i.sum32_3,y=i.sum32_4,n=e.BlockHash;function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function v(e,t,r,i){return e<=15?t^r^i:e<=31?t&r|~t&i:e<=47?(t|~r)^i:e<=63?t&i|r&~i:t^(r|~i)}i.inherits(a,n),(r.ripemd160=a).blockSize=512,a.outSize=160,a.hmacStrength=192,a.padLength=64,a.prototype._update=function(e,t){for(var r,i=f=this.h[0],n=d=this.h[1],a=h=this.h[2],o=l=this.h[3],s=p=this.h[4],u=0;u<80;u++)var c=g(m(y(f,v(u,d,h,l),e[_[u]+t],(r=u)<=15?0:r<=31?1518500249:r<=47?1859775393:r<=63?2400959708:2840853838),k[u]),p),f=p,p=l,l=m(h,10),h=d,d=c,c=g(m(y(i,v(79-u,n,a,o),e[w[u]+t],(r=u)<=15?1352829926:r<=31?1548603684:r<=47?1836072691:r<=63?2053994217:0),x[u]),s),i=s,s=o,o=m(a,10),a=n,n=c;c=b(this.h[1],h,o),this.h[1]=b(this.h[2],l,s),this.h[2]=b(this.h[3],p,i),this.h[3]=b(this.h[4],f,n),this.h[4]=b(this.h[0],d,a),this.h[0]=c},a.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"little"):i.split32(this.h,"little")};var _=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],w=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],k=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],x=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":276,"./utils":286}],279:[function(e,t,r){"use strict";r.sha1=e("./sha/1"),r.sha224=e("./sha/224"),r.sha256=e("./sha/256"),r.sha384=e("./sha/384"),r.sha512=e("./sha/512")},{"./sha/1":280,"./sha/224":281,"./sha/256":282,"./sha/384":283,"./sha/512":284}],280:[function(e,t,r){"use strict";var i=e("../utils"),n=e("../common"),e=e("./common"),f=i.rotl32,p=i.sum32,l=i.sum32_5,h=e.ft_1,a=n.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(o,a),(t.exports=o).blockSize=512,o.outSize=160,o.hmacStrength=80,o.padLength=64,o.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=f(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);for(var n=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],u=this.h[4],i=0;i<r.length;i++)var c=~~(i/20),c=l(f(n,5),h(c,a,o,s),u,r[i],d[c]),u=s,s=o,o=f(a,30),a=n,n=c;this.h[0]=p(this.h[0],n),this.h[1]=p(this.h[1],a),this.h[2]=p(this.h[2],o),this.h[3]=p(this.h[3],s),this.h[4]=p(this.h[4],u)},o.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},{"../common":276,"../utils":286,"./common":285}],281:[function(e,t,r){"use strict";var i=e("../utils"),n=e("./256");function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}i.inherits(a,n),(t.exports=a).blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},{"../utils":286,"./256":282}],282:[function(e,t,r){"use strict";var i=e("../utils"),n=e("../common"),a=e("./common"),d=e("minimalistic-assert"),m=i.sum32,g=i.sum32_4,b=i.sum32_5,y=a.ch32,v=a.maj32,_=a.s0_256,w=a.s1_256,k=a.g0_256,x=a.g1_256,o=n.BlockHash,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function u(){if(!(this instanceof u))return new u;o.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=s,this.W=new Array(64)}i.inherits(u,o),(t.exports=u).blockSize=512,u.outSize=256,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=g(x(r[i-2]),r[i-7],k(r[i-15]),r[i-16]);var n=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],u=this.h[4],c=this.h[5],f=this.h[6],p=this.h[7];for(d(this.k.length===r.length),i=0;i<r.length;i++)var l=b(p,w(u),y(u,c,f),this.k[i],r[i]),h=m(_(n),v(n,a,o)),p=f,f=c,c=u,u=m(s,l),s=o,o=a,a=n,n=m(l,h);this.h[0]=m(this.h[0],n),this.h[1]=m(this.h[1],a),this.h[2]=m(this.h[2],o),this.h[3]=m(this.h[3],s),this.h[4]=m(this.h[4],u),this.h[5]=m(this.h[5],c),this.h[6]=m(this.h[6],f),this.h[7]=m(this.h[7],p)},u.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},{"../common":276,"../utils":286,"./common":285,"minimalistic-assert":324}],283:[function(e,t,r){"use strict";var i=e("../utils"),n=e("./512");function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}i.inherits(a,n),(t.exports=a).blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},{"../utils":286,"./512":284}],284:[function(e,t,r){"use strict";var i=e("../utils"),n=e("../common"),O=e("minimalistic-assert"),C=i.rotr64_hi,R=i.rotr64_lo,l=i.shr64_hi,h=i.shr64_lo,B=i.sum64,F=i.sum64_hi,M=i.sum64_lo,d=i.sum64_4_hi,m=i.sum64_4_lo,z=i.sum64_5_hi,N=i.sum64_5_lo,a=n.BlockHash,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function s(){if(!(this instanceof s))return new s;a.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=o,this.W=new Array(160)}i.inherits(s,a),(t.exports=s).blockSize=1024,s.outSize=512,s.hmacStrength=192,s.padLength=128,s.prototype._prepareBlock=function(e,t){for(var r=this.W,i=0;i<32;i++)r[i]=e[t+i];for(;i<r.length;i+=2){var n=function(e,t){var r=C(e,t,19),i=C(t,e,29),t=l(e,t,6),t=r^i^t;t<0&&(t+=4294967296);return t}(r[i-4],r[i-3]),a=function(e,t){var r=R(e,t,19),i=R(t,e,29),t=h(e,t,6),t=r^i^t;t<0&&(t+=4294967296);return t}(r[i-4],r[i-3]),o=r[i-14],s=r[i-13],u=function(e,t){var r=C(e,t,1),i=C(e,t,8),t=l(e,t,7),t=r^i^t;t<0&&(t+=4294967296);return t}(r[i-30],r[i-29]),c=function(e,t){var r=R(e,t,1),i=R(e,t,8),t=h(e,t,7),t=r^i^t;t<0&&(t+=4294967296);return t}(r[i-30],r[i-29]),f=r[i-32],p=r[i-31];r[i]=d(n,a,o,s,u,c,f,p),r[i+1]=m(n,a,o,s,u,c,f,p)}},s.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,i=this.h[0],n=this.h[1],a=this.h[2],o=this.h[3],s=this.h[4],u=this.h[5],c=this.h[6],f=this.h[7],p=this.h[8],l=this.h[9],h=this.h[10],d=this.h[11],m=this.h[12],g=this.h[13],b=this.h[14],y=this.h[15];O(this.k.length===r.length);for(var v=0;v<r.length;v+=2)var _=b,w=y,k=function(e,t){var r=C(e,t,14),i=C(e,t,18),e=C(t,e,9),e=r^i^e;e<0&&(e+=4294967296);return e}(p,l),x=function(e,t){var r=R(e,t,14),i=R(e,t,18),e=R(t,e,9),e=r^i^e;e<0&&(e+=4294967296);return e}(p,l),S=function(e,t,r){r=e&t^~e&r;r<0&&(r+=4294967296);return r}(p,h,m),j=function(e,t,r){r=e&t^~e&r;r<0&&(r+=4294967296);return r}(l,d,g),E=this.k[v],A=this.k[v+1],P=r[v],I=r[v+1],T=z(_,w,k,x,S,j,E,A,P,I),P=N(_,w,k,x,S,j,E,A,P,I),_=function(e,t){var r=C(e,t,28),i=C(t,e,2),e=C(t,e,7),e=r^i^e;e<0&&(e+=4294967296);return e}(i,n),w=function(e,t){var r=R(e,t,28),i=R(t,e,2),e=R(t,e,7),e=r^i^e;e<0&&(e+=4294967296);return e}(i,n),k=function(e,t,r){r=e&t^e&r^t&r;r<0&&(r+=4294967296);return r}(i,a,s),x=function(e,t,r){r=e&t^e&r^t&r;r<0&&(r+=4294967296);return r}(n,o,u),I=F(_,w,k,x),x=M(_,w,k,x),b=m,y=g,m=h,g=d,h=p,d=l,p=F(c,f,T,P),l=M(f,f,T,P),c=s,f=u,s=a,u=o,a=i,o=n,i=F(T,P,I,x),n=M(T,P,I,x);B(this.h,0,i,n),B(this.h,2,a,o),B(this.h,4,s,u),B(this.h,6,c,f),B(this.h,8,p,l),B(this.h,10,h,d),B(this.h,12,m,g),B(this.h,14,b,y)},s.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},{"../common":276,"../utils":286,"minimalistic-assert":324}],285:[function(e,t,r){"use strict";var i=e("../utils").rotr32;function n(e,t,r){return e&t^~e&r}function a(e,t,r){return e&t^e&r^t&r}function o(e,t,r){return e^t^r}r.ft_1=function(e,t,r,i){return 0===e?n(t,r,i):1===e||3===e?t^r^i:2===e?a(t,r,i):void 0},r.ch32=n,r.maj32=a,r.p32=o,r.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},r.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},r.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},r.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},{"../utils":286}],286:[function(e,t,r){"use strict";var u=e("minimalistic-assert"),e=e("inherits");function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function i(e){return 1===e.length?"0"+e:e}function o(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}r.inherits=e,r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r,i,n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var a=0,o=0;o<e.length;o++){var s=e.charCodeAt(o);s<128?n[a++]=s:s<2048?(n[a++]=s>>6|192,n[a++]=63&s|128):(i=o,55296!=(64512&(r=e).charCodeAt(i))||i<0||i+1>=r.length||56320!=(64512&r.charCodeAt(i+1))?n[a++]=s>>12|224:(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++o)),n[a++]=s>>18|240,n[a++]=s>>12&63|128),n[a++]=s>>6&63|128,n[a++]=63&s|128)}else for(o=0;o<e.length;o++)n[o]=0|e[o];return n},r.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t},r.htonl=a,r.toHex32=function(e,t){for(var r="",i=0;i<e.length;i++){var n=e[i];r+=o((n="little"===t?a(n):n).toString(16))}return r},r.zero2=i,r.zero8=o,r.join32=function(e,t,r,i){u((r-=t)%4==0);for(var n=new Array(r/4),a=0,o=t;a<n.length;a++,o+=4){var s="big"===i?e[o]<<24|e[o+1]<<16|e[o+2]<<8|e[o+3]:e[o+3]<<24|e[o+2]<<16|e[o+1]<<8|e[o];n[a]=s>>>0}return n},r.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i<e.length;i++,n+=4){var a=e[i];"big"===t?(r[n]=a>>>24,r[n+1]=a>>>16&255,r[n+2]=a>>>8&255,r[n+3]=255&a):(r[n+3]=a>>>24,r[n+2]=a>>>16&255,r[n+1]=a>>>8&255,r[n]=255&a)}return r},r.rotr32=function(e,t){return e>>>t|e<<32-t},r.rotl32=function(e,t){return e<<t|e>>>32-t},r.sum32=function(e,t){return e+t>>>0},r.sum32_3=function(e,t,r){return e+t+r>>>0},r.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},r.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},r.sum64=function(e,t,r,i){var n=e[t],a=i+e[t+1]>>>0,n=(a<i?1:0)+r+n;e[t]=n>>>0,e[t+1]=a},r.sum64_hi=function(e,t,r,i){return(t+i>>>0<t?1:0)+e+r>>>0},r.sum64_lo=function(e,t,r,i){return t+i>>>0},r.sum64_4_hi=function(e,t,r,i,n,a,o,s){var u=0,c=t;return u+=(c=c+i>>>0)<t?1:0,u+=(c=c+a>>>0)<a?1:0,e+r+n+o+(u+=(c=c+s>>>0)<s?1:0)>>>0},r.sum64_4_lo=function(e,t,r,i,n,a,o,s){return t+i+a+s>>>0},r.sum64_5_hi=function(e,t,r,i,n,a,o,s,u,c){var f=0,p=t;return f+=(p=p+i>>>0)<t?1:0,f+=(p=p+a>>>0)<a?1:0,f+=(p=p+s>>>0)<s?1:0,e+r+n+o+u+(f+=(p=p+c>>>0)<c?1:0)>>>0},r.sum64_5_lo=function(e,t,r,i,n,a,o,s,u,c){return t+i+a+s+c>>>0},r.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},r.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},r.shr64_hi=function(e,t,r){return e>>>r},r.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},{inherits:287,"minimalistic-assert":324}],287:[function(e,t,r){arguments[4][162][0].apply(r,arguments)},{dup:162}],288:[function(e,t,r){"use strict";var i=e("hash.js"),a=e("minimalistic-crypto-utils"),n=e("minimalistic-assert");function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=a.toArray(e.entropy,e.entropyEnc||"hex"),r=a.toArray(e.nonce,e.nonceEnc||"hex"),e=a.toArray(e.pers,e.persEnc||"hex");n(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,e)}(t.exports=o).prototype._init=function(e,t,r){r=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,r,i){"string"!=typeof t&&(i=r,r=t,t=null),e=a.toArray(e,t),r=a.toArray(r,i),n(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},o.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=a.toArray(r,i||"hex"),this._update(r));for(var n=[];n.length<e;)this.V=this._hmac().update(this.V).digest(),n=n.concat(this.V);i=n.slice(0,e);return this._update(r),this._reseed++,a.encode(i,t)}},{"hash.js":275,"minimalistic-assert":324,"minimalistic-crypto-utils":325}],289:[function(e,t,r){var i=e("./parser"),n=e("./signer"),a=e("./verify"),e=e("./utils");t.exports={parse:i.parseRequest,parseRequest:i.parseRequest,sign:n.signRequest,signRequest:n.signRequest,createSigner:n.createSigner,isSigner:n.isSigner,sshKeyToPEM:e.sshKeyToPEM,sshKeyFingerprint:e.fingerprint,pemToRsaSSHKey:e.pemToRsaSSHKey,verify:a.verifySignature,verifySignature:a.verifySignature,verifyHMAC:a.verifyHMAC}},{"./parser":290,"./signer":291,"./utils":292,"./verify":293}],290:[function(e,t,r){var m=e("assert-plus"),i=e("util"),e=e("./utils"),n=(e.HASH_ALGOS,e.PK_ALGOS,e.HttpSignatureError),g=e.InvalidAlgorithmError,b=e.validateAlgorithm,y=0,v=1,_=0,w=1,k=2,x=3;function S(e){n.call(this,e,S)}function j(e){n.call(this,e,j)}function E(e){n.call(this,e,E)}function A(e){n.call(this,e,A)}function P(e){n.call(this,e,P)}i.inherits(S,n),i.inherits(j,n),i.inherits(E,n),i.inherits(A,n),i.inherits(P,n),t.exports={parseRequest:function(e,t){m.object(e,"request"),m.object(e.headers,"request.headers"),void 0===(t=void 0===t?{}:t).headers&&(t.headers=[e.headers["x-date"]?"x-date":"date"]),m.object(t,"options"),m.arrayOfString(t.headers,"options.headers"),m.optionalFinite(t.clockSkew,"options.clockSkew");var r=t.authorizationHeaderName||"authorization";if(!e.headers[r])throw new A("no "+r+" header present in the request");t.clockSkew=t.clockSkew||300;for(var i=0,n=y,a=_,o="",s="",u={scheme:"",params:{},signingString:""},c=e.headers[r],i=0;i<c.length;i++){var f=c.charAt(i);switch(Number(n)){case y:" "!==f?u.scheme+=f:n=v;break;case v:switch(Number(a)){case _:var p=f.charCodeAt(0);if(65<=p&&p<=90||97<=p&&p<=122)o+=f;else{if("="!==f)throw new j("bad param format");if(0===o.length)throw new j("bad param format");a=w}break;case w:if('"'!==f)throw new j("bad param format");s="",a=k;break;case k:'"'===f?(u.params[o]=s,a=x):s+=f;break;case x:if(","!==f)throw new j("bad param format");o="",a=_;break;default:throw new Error("Invalid substate")}break;default:throw new Error("Invalid substate")}}if(u.params.headers&&""!==u.params.headers?u.params.headers=u.params.headers.split(" "):e.headers["x-date"]?u.params.headers=["x-date"]:u.params.headers=["date"],!u.scheme||"Signature"!==u.scheme)throw new j('scheme was not "Signature"');if(!u.params.keyId)throw new j("keyId was not specified");if(!u.params.algorithm)throw new j("algorithm was not specified");if(!u.params.signature)throw new j("signature was not specified");u.params.algorithm=u.params.algorithm.toLowerCase();try{b(u.params.algorithm)}catch(e){throw e instanceof g?new E(u.params.algorithm+" is not supported"):e}for(i=0;i<u.params.headers.length;i++){var l=u.params.headers[i].toLowerCase();if("request-line"===(u.params.headers[i]=l)){if(t.strict)throw new P("request-line is not a valid header with strict parsing enabled.");u.signingString+=e.method+" "+e.url+" HTTP/"+e.httpVersion}else if("(request-target)"===l)u.signingString+="(request-target): "+e.method.toLowerCase()+" "+e.url;else{var h=e.headers[l];if(void 0===h)throw new A(l+" was not in the request");u.signingString+=l+": "+h}i+1<u.params.headers.length&&(u.signingString+="\n")}if(e.headers.date||e.headers["x-date"]){d=e.headers["x-date"]?new Date(e.headers["x-date"]):new Date(e.headers.date);var r=new Date,d=Math.abs(r.getTime()-d.getTime());if(d>1e3*t.clockSkew)throw new S("clock skew of "+d/1e3+"s was greater than "+t.clockSkew+"s")}if(t.headers.forEach(function(e){if(u.params.headers.indexOf(e.toLowerCase())<0)throw new A(e+" was not a signed header")}),t.algorithms&&-1===t.algorithms.indexOf(u.params.algorithm))throw new E(u.params.algorithm+" is not a supported algorithm");return u.algorithm=u.params.algorithm.toUpperCase(),u.keyId=u.params.keyId,u}}},{"./utils":292,"assert-plus":67,util:481}],291:[function(n,a,e){(function(k){(function(){var f=n("assert-plus"),p=n("crypto"),e=(n("http"),n("util")),l=n("sshpk"),h=n("jsprim"),t=n("./utils"),d=n("util").format,m=t.HASH_ALGOS,g=t.PK_ALGOS,b=t.InvalidAlgorithmError,r=t.HttpSignatureError,y=t.validateAlgorithm,v='Signature keyId="%s",algorithm="%s",headers="%s",signature="%s"';function _(e){r.call(this,e,_)}function w(e){r.call(this,e,w)}function i(e){f.object(e,"options");var t=[];if(void 0!==e.algorithm&&(f.string(e.algorithm,"options.algorithm"),t=y(e.algorithm)),this.rs_alg=t,void 0!==e.sign)f.func(e.sign,"options.sign"),this.rs_signFunc=e.sign;else if("hmac"===t[0]&&void 0!==e.key){if(f.string(e.keyId,"options.keyId"),this.rs_keyId=e.keyId,"string"!=typeof e.key&&!k.isBuffer(e.key))throw new TypeError("options.key for HMAC must be a string or Buffer");this.rs_signer=p.createHmac(t[1].toUpperCase(),e.key),this.rs_signer.sign=function(){var e=this.digest("base64");return{hashAlgorithm:t[1],toString:function(){return e}}}}else{if(void 0===e.key)throw new TypeError("options.sign (func) or options.key is required");var r=e.key;if("string"!=typeof r&&!k.isBuffer(r)||(r=l.parsePrivateKey(r)),f.ok(l.PrivateKey.isPrivateKey(r,[1,2]),"options.key must be a sshpk.PrivateKey"),this.rs_key=r,f.string(e.keyId,"options.keyId"),this.rs_keyId=e.keyId,!g[r.type])throw new b(r.type.toUpperCase()+" type keys are not supported");if(void 0!==t[0]&&r.type!==t[0])throw new b("options.key must be a "+t[0].toUpperCase()+" key, was given a "+r.type.toUpperCase()+" key instead");this.rs_signer=r.createSign(t[1])}this.rs_headers=[],this.rs_lines=[]}e.inherits(_,r),e.inherits(w,r),i.prototype.writeHeader=function(e,t){return f.string(e,"header"),e=e.toLowerCase(),f.string(t,"value"),this.rs_headers.push(e),this.rs_signFunc?this.rs_lines.push(e+": "+t):(e=e+": "+t,0<this.rs_headers.length&&(e="\n"+e),this.rs_signer.update(e)),t},i.prototype.writeDateHeader=function(){return this.writeHeader("date",h.rfc1123(new Date))},i.prototype.writeTarget=function(e,t){f.string(e,"method"),f.string(t,"path"),e=e.toLowerCase(),this.writeHeader("(request-target)",e+" "+t)},i.prototype.sign=function(r){if(f.func(r,"callback"),this.rs_headers.length<1)throw new Error("At least one header must be signed");var i;if(this.rs_signFunc){var e=this.rs_lines.join("\n"),n=this;this.rs_signFunc(e,function(e,t){if(e)r(e);else{try{f.object(t,"signature"),f.string(t.keyId,"signature.keyId"),f.string(t.algorithm,"signature.algorithm"),f.string(t.signature,"signature.signature"),i=y(t.algorithm),a=d(v,t.keyId,t.algorithm,n.rs_headers.join(" "),t.signature)}catch(e){return void r(e)}r(null,a)}})}else{try{var t=this.rs_signer.sign()}catch(e){return void r(e)}i=(this.rs_alg[0]||this.rs_key.type)+"-"+t.hashAlgorithm;var e=t.toString(),a=d(v,this.rs_keyId,i,this.rs_headers.join(" "),e);r(null,a)}},a.exports={isSigner:function(e){return"object"===_typeof(e)&&e instanceof i},createSigner:function(e){return new i(e)},signRequest:function(e,t){f.object(e,"request"),f.object(t,"options"),f.optionalString(t.algorithm,"options.algorithm"),f.string(t.keyId,"options.keyId"),f.optionalArrayOfString(t.headers,"options.headers"),f.optionalString(t.httpVersion,"options.httpVersion"),e.getHeader("Date")||e.setHeader("Date",h.rfc1123(new Date)),t.headers||(t.headers=["date"]),t.httpVersion||(t.httpVersion="1.1");var r=[];t.algorithm&&(t.algorithm=t.algorithm.toLowerCase(),r=y(t.algorithm));for(var i,n="",a=0;a<t.headers.length;a++){if("string"!=typeof t.headers[a])throw new TypeError("options.headers must be an array of Strings");var o=t.headers[a].toLowerCase();if("request-line"===o){if(t.strict)throw new w("request-line is not a valid header with strict parsing enabled.");n+=e.method+" "+e.path+" HTTP/"+t.httpVersion}else if("(request-target)"===o)n+="(request-target): "+e.method.toLowerCase()+" "+e.path;else{var s=e.getHeader(o);if(void 0===s||""===s)throw new _(o+" was not in the request");n+=o+": "+s}a+1<t.headers.length&&(n+="\n")}if(e.hasOwnProperty("_stringToSign")&&(e._stringToSign=n),"hmac"===r[0]){if("string"!=typeof t.key&&!k.isBuffer(t.key))throw new TypeError("options.key must be a string or Buffer");var u=p.createHmac(r[1].toUpperCase(),t.key);u.update(n),i=u.digest("base64")}else{u=t.key;if("string"!=typeof u&&!k.isBuffer(u)||(u=l.parsePrivateKey(t.key)),f.ok(l.PrivateKey.isPrivateKey(u,[1,2]),"options.key must be a sshpk.PrivateKey"),!g[u.type])throw new b(u.type.toUpperCase()+" type keys are not supported");if(void 0!==r[0]&&u.type!==r[0])throw new b("options.key must be a "+r[0].toUpperCase()+" key, was given a "+u.type.toUpperCase()+" key instead");var c=u.createSign(r[1]);c.update(n);c=c.sign();if(!m[c.hashAlgorithm])throw new b(c.hashAlgorithm.toUpperCase()+" is not a supported hash algorithm");t.algorithm=u.type+"-"+c.hashAlgorithm,i=c.toString(),f.notStrictEqual(i,"","empty signature produced")}c=t.authorizationHeaderName||"Authorization";return e.setHeader(c,d(v,t.keyId,t.algorithm,t.headers.join(" "),i)),!0}}}).call(this)}).call(this,{isBuffer:n("../../is-buffer/index.js")})},{"../../is-buffer/index.js":297,"./utils":292,"assert-plus":67,crypto:198,http:458,jsprim:305,sshpk:450,util:481}],292:[function(e,t,r){var i=e("assert-plus"),n=e("sshpk"),e=e("util"),a={sha1:!0,sha256:!0,sha512:!0},o={rsa:!0,dsa:!0,ecdsa:!0};function s(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,t||s),this.message=e,this.name=t.name}function u(e){s.call(this,e,u)}e.inherits(s,Error),e.inherits(u,s),t.exports={HASH_ALGOS:a,PK_ALGOS:o,HttpSignatureError:s,InvalidAlgorithmError:u,validateAlgorithm:function(e){if(2!==(e=e.toLowerCase().split("-")).length)throw new u(e[0].toUpperCase()+" is not a valid algorithm");if("hmac"!==e[0]&&!o[e[0]])throw new u(e[0].toUpperCase()+" type keys are not supported");if(!a[e[1]])throw new u(e[1].toUpperCase()+" is not a supported hash algorithm");return e},sshKeyToPEM:function(e){return i.string(e,"ssh_key"),n.parseKey(e,"ssh").toString("pem")},fingerprint:function(e){return i.string(e,"ssh_key"),n.parseKey(e,"ssh").fingerprint("md5").toString("hex")},pemToRsaSSHKey:function(e,t){i.equal("string",_typeof(e),"typeof pem");e=n.parseKey(e,"pem");return e.comment=t,e.toString("ssh")}}},{"assert-plus":67,sshpk:450,util:481}],293:[function(t,r,e){(function(u){(function(){var a=t("assert-plus"),o=t("crypto"),i=t("sshpk"),e=t("./utils"),s=(e.HASH_ALGOS,e.PK_ALGOS,e.InvalidAlgorithmError,e.HttpSignatureError,e.validateAlgorithm);r.exports={verifySignature:function(e,t){a.object(e,"parsedSignature"),"string"!=typeof t&&!u.isBuffer(t)||(t=i.parseKey(t)),a.ok(i.Key.isKey(t,[1,1]),"pubkey must be a sshpk.Key");var r=s(e.algorithm);if("hmac"===r[0]||r[0]!==t.type)return!1;r=t.createVerify(r[1]);return r.update(e.signingString),r.verify(e.params.signature,"base64")},verifyHMAC:function(e,t){a.object(e,"parsedHMAC"),a.string(t,"secret");var r=s(e.algorithm);if("hmac"!==r[0])return!1;var i=r[1].toUpperCase(),n=o.createHmac(i,t);n.update(e.signingString);r=o.createHmac(i,t);r.update(n.digest()),r=r.digest();t=o.createHmac(i,t);return t.update(new u(e.params.signature,"base64")),t=t.digest(),"string"==typeof r?r===t:u.isBuffer(r)&&!r.equals?r.toString("binary")===t.toString("binary"):r.equals(t)}}}).call(this)}).call(this,t("buffer").Buffer)},{"./utils":292,"assert-plus":67,buffer:186,crypto:198,sshpk:450}],294:[function(e,t,r){var i,n=e("http"),a=t.exports;for(i in n)n.hasOwnProperty(i)&&(a[i]=n[i]);a.request=function(e,t){return(e=e||{}).scheme="https",e.protocol="https:",n.request.call(this,e,t)}},{http:458}],295:[function(e,t,r){r.read=function(e,t,r,i,n){var a,o,s=8*n-i-1,u=(1<<s)-1,c=u>>1,f=-7,p=r?n-1:0,l=r?-1:1,r=e[t+p];for(p+=l,a=r&(1<<-f)-1,r>>=-f,f+=s;0<f;a=256*a+e[t+p],p+=l,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=i;0<f;o=256*o+e[t+p],p+=l,f-=8);if(0===a)a=1-c;else{if(a===u)return o?NaN:1/0*(r?-1:1);o+=Math.pow(2,i),a-=c}return(r?-1:1)*o*Math.pow(2,a-i)},r.write=function(e,t,r,i,n,a){var o,s,u=8*a-n-1,c=(1<<u)-1,f=c>>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,l=i?0:a-1,h=i?1:-1,a=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(i=Math.pow(2,-o))<1&&(o--,i*=2),2<=(t+=1<=o+f?p/i:p*Math.pow(2,1-f))*i&&(o++,i/=2),c<=o+f?(s=0,o=c):1<=o+f?(s=(t*i-1)*Math.pow(2,n),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,n),o=0));8<=n;e[r+l]=255&s,l+=h,s/=256,n-=8);for(o=o<<n|s,u+=n;0<u;e[r+l]=255&o,l+=h,o/=256,u-=8);e[r+l-h]|=128*a}},{}],296:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],297:[function(e,t,r){function i(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(i(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&i(t.slice(0,0))||!!e._isBuffer);var t}},{}],298:[function(e,t,r){(t.exports=a).strict=o,a.loose=s;var i=Object.prototype.toString,n={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function a(e){return o(e)||s(e)}function o(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function s(e){return n[i.call(e)]}},{}],299:[function(e,t,r){var i={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},{}],300:[function(e,t,r){var i=e("stream");function n(e){return e instanceof i.Stream}function a(e){return n(e)&&"function"==typeof e._read&&"object"==_typeof(e._readableState)}function o(e){return n(e)&&"function"==typeof e._write&&"object"==_typeof(e._writableState)}t.exports=n,t.exports.isReadable=a,t.exports.isWritable=o,t.exports.isDuplex=function(e){return a(e)&&o(e)}},{stream:457}],301:[function(e,R,B){(function(){function b(e,t,r){null!=e&&("number"==typeof e?this.fromNumber(e,t,r):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function y(){return new b(null)}var e="undefined"!=typeof navigator,e=e&&"Microsoft Internet Explorer"==navigator.appName?(b.prototype.am=function(e,t,r,i,n,a){for(var o=32767&t,s=t>>15;0<=--a;){var u=32767&this[e],c=this[e++]>>15,f=s*u+c*o;n=((u=o*u+((32767&f)<<15)+r[i]+(1073741823&n))>>>30)+(f>>>15)+s*c+(n>>>30),r[i++]=1073741823&u}return n},30):e&&"Netscape"!=navigator.appName?(b.prototype.am=function(e,t,r,i,n,a){for(;0<=--a;){var o=t*this[e++]+r[i]+n;n=Math.floor(o/67108864),r[i++]=67108863&o}return n},26):(b.prototype.am=function(e,t,r,i,n,a){for(var o=16383&t,s=t>>14;0<=--a;){var u=16383&this[e],c=this[e++]>>14,f=s*u+c*o;n=((u=o*u+((16383&f)<<14)+r[i]+n)>>28)+(f>>14)+s*c,r[i++]=268435455&u}return n},28);b.prototype.DB=e,b.prototype.DM=(1<<e)-1,b.prototype.DV=1<<e;b.prototype.FV=Math.pow(2,52),b.prototype.F1=52-e,b.prototype.F2=2*e-52;for(var t="0123456789abcdefghijklmnopqrstuvwxyz",r=new Array,i="0".charCodeAt(0),n=0;n<=9;++n)r[i++]=n;for(i="a".charCodeAt(0),n=10;n<36;++n)r[i++]=n;for(i="A".charCodeAt(0),n=10;n<36;++n)r[i++]=n;function u(e){return t.charAt(e)}function c(e,t){t=r[e.charCodeAt(t)];return null==t?-1:t}function g(e){var t=y();return t.fromInt(e),t}function v(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function _(e){this.m=e}function w(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function a(e,t){return e&t}function o(e,t){return e|t}function s(e,t){return e^t}function f(e,t){return e&~t}function p(){}function l(e){return e}function k(e){this.r2=y(),this.q3=y(),b.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}_.prototype.convert=function(e){return e.s<0||0<=e.compareTo(this.m)?e.mod(this.m):e},_.prototype.revert=function(e){return e},_.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},_.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},_.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},w.prototype.convert=function(e){var t=y();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&0<t.compareTo(b.ZERO)&&this.m.subTo(t,t),t},w.prototype.revert=function(e){var t=y();return e.copyTo(t),this.reduce(t),t},w.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e[t],i=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,i,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),0<=e.compareTo(this.m)&&e.subTo(this.m,e)},w.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},w.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},b.prototype.copyTo=function(e){for(var t=this.t-1;0<=t;--t)e[t]=this[t];e.t=this.t,e.s=this.s},b.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,0<e?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},b.prototype.fromString=function(e,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(256==t)r=8;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return void this.fromRadix(e,t);r=2}this.t=0,this.s=0;for(var i=e.length,n=!1,a=0;0<=--i;){var o=8==r?255&e[i]:c(e,i);o<0?"-"==e.charAt(i)&&(n=!0):(n=!1,0==a?this[this.t++]=o:a+r>this.DB?(this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a,this[this.t++]=o>>this.DB-a):this[this.t-1]|=o<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&0!=(128&e[0])&&(this.s=-1,0<a&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),n&&b.ZERO.subTo(this,this)},b.prototype.clamp=function(){for(var e=this.s&this.DM;0<this.t&&this[this.t-1]==e;)--this.t},b.prototype.dlShiftTo=function(e,t){for(var r=this.t-1;0<=r;--r)t[r+e]=this[r];for(r=e-1;0<=r;--r)t[r]=0;t.t=this.t+e,t.s=this.s},b.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},b.prototype.lShiftTo=function(e,t){for(var r=e%this.DB,i=this.DB-r,n=(1<<i)-1,a=Math.floor(e/this.DB),o=this.s<<r&this.DM,s=this.t-1;0<=s;--s)t[s+a+1]=this[s]>>i|o,o=(this[s]&n)<<r;for(s=a-1;0<=s;--s)t[s]=0;t[a]=o,t.t=this.t+a+1,t.s=this.s,t.clamp()},b.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var i=e%this.DB,n=this.DB-i,a=(1<<i)-1;t[0]=this[r]>>i;for(var o=r+1;o<this.t;++o)t[o-r-1]|=(this[o]&a)<<n,t[o-r]=this[o]>>i;0<i&&(t[this.t-r-1]|=(this.s&a)<<n),t.t=this.t-r,t.clamp()}},b.prototype.subTo=function(e,t){for(var r=0,i=0,n=Math.min(e.t,this.t);r<n;)i+=this[r]-e[r],t[r++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i-=e.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<e.t;)i-=e[r],t[r++]=i&this.DM,i>>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[r++]=this.DV+i:0<i&&(t[r++]=i),t.t=r,t.clamp()},b.prototype.multiplyTo=function(e,t){var r=this.abs(),i=e.abs(),n=r.t;for(t.t=n+i.t;0<=--n;)t[n]=0;for(n=0;n<i.t;++n)t[n+r.t]=r.am(0,i[n],t,n,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&b.ZERO.subTo(t,t)},b.prototype.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;0<=--r;)e[r]=0;for(r=0;r<t.t-1;++r){var i=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,i,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}0<e.t&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},b.prototype.divRemTo=function(e,t,r){var i=e.abs();if(!(i.t<=0)){var n=this.abs();if(n.t<i.t)return null!=t&&t.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=y());var a=y(),o=this.s,s=e.s,e=this.DB-v(i[i.t-1]);0<e?(i.lShiftTo(e,a),n.lShiftTo(e,r)):(i.copyTo(a),n.copyTo(r));var u=a.t,c=a[u-1];if(0!=c){var n=c*(1<<this.F1)+(1<u?a[u-2]>>this.F2:0),f=this.FV/n,p=(1<<this.F1)/n,l=1<<this.F2,h=r.t,d=h-u,m=null==t?y():t;for(a.dlShiftTo(d,m),0<=r.compareTo(m)&&(r[r.t++]=1,r.subTo(m,r)),b.ONE.dlShiftTo(u,m),m.subTo(a,a);a.t<u;)a[a.t++]=0;for(;0<=--d;){var g=r[--h]==c?this.DM:Math.floor(r[h]*f+(r[h-1]+l)*p);if((r[h]+=a.am(0,g,r,d,0,u))<g)for(a.dlShiftTo(d,m),r.subTo(m,r);r[h]<--g;)r.subTo(m,r)}null!=t&&(r.drShiftTo(u,t),o!=s&&b.ZERO.subTo(t,t)),r.t=u,r.clamp(),0<e&&r.rShiftTo(e,r),o<0&&b.ZERO.subTo(r,r)}}},b.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return 0<(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)?this.DV-t:-t},b.prototype.isEven=function(){return 0==(0<this.t?1&this[0]:this.s)},b.prototype.exp=function(e,t){if(4294967295<e||e<1)return b.ONE;var r,i=y(),n=y(),a=t.convert(this),o=v(e)-1;for(a.copyTo(i);0<=--o;)t.sqrTo(i,n),0<(e&1<<o)?t.mulTo(n,a,i):(r=i,i=n,n=r);return t.revert(i)},b.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var r,i=(1<<t)-1,n=!1,a="",o=this.t,s=this.DB-o*this.DB%t;if(0<o--)for(s<this.DB&&0<(r=this[o]>>s)&&(n=!0,a=u(r));0<=o;)s<t?(r=(this[o]&(1<<s)-1)<<t-s,r|=this[--o]>>(s+=this.DB-t)):(r=this[o]>>(s-=t)&i,s<=0&&(s+=this.DB,--o)),(n=0<r?!0:n)&&(a+=u(r));return n?a:"0"},b.prototype.negate=function(){var e=y();return b.ZERO.subTo(this,e),e},b.prototype.abs=function(){return this.s<0?this.negate():this},b.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;0<=--r;)if(0!=(t=this[r]-e[r]))return t;return 0},b.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+v(this[this.t-1]^this.s&this.DM)},b.prototype.mod=function(e){var t=y();return this.abs().divRemTo(e,null,t),this.s<0&&0<t.compareTo(b.ZERO)&&e.subTo(t,t),t},b.prototype.modPowInt=function(e,t){return t=new(e<256||t.isEven()?_:w)(t),this.exp(e,t)},b.ZERO=g(0),b.ONE=g(1),p.prototype.convert=l,p.prototype.revert=l,p.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},p.prototype.sqrTo=function(e,t){e.squareTo(t)},k.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=y();return e.copyTo(t),this.reduce(t),t},k.prototype.revert=function(e){return e},k.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);0<=e.compareTo(this.m);)e.subTo(this.m,e)},k.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},k.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var h,d=[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],m=(1<<26)/d[d.length-1];function x(){var e;e=(new Date).getTime(),S[j++]^=255&e,S[j++]^=e>>8&255,S[j++]^=e>>16&255,S[j++]^=e>>24&255,C<=j&&(j-=C)}if(b.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},b.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||36<e)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),i=g(r),n=y(),a=y(),o="";for(this.divRemTo(i,n,a);0<n.signum();)o=(r+a.intValue()).toString(e).substr(1)+o,n.divRemTo(i,n,a);return a.intValue().toString(e)+o},b.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var r=this.chunkSize(t),i=Math.pow(t,r),n=!1,a=0,o=0,s=0;s<e.length;++s){var u=c(e,s);u<0?"-"==e.charAt(s)&&0==this.signum()&&(n=!0):(o=t*o+u,++a>=r&&(this.dMultiply(i),this.dAddOffset(o,0),o=a=0))}0<a&&(this.dMultiply(Math.pow(t,a)),this.dAddOffset(o,0)),n&&b.ZERO.subTo(this,this)},b.prototype.fromNumber=function(e,t,r){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(b.ONE.shiftLeft(e-1),o,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(b.ONE.shiftLeft(e-1),this);else{var i=new Array,r=7&e;i.length=1+(e>>3),t.nextBytes(i),0<r?i[0]&=(1<<r)-1:i[0]=0,this.fromString(i,256)}},b.prototype.bitwiseTo=function(e,t,r){for(var i,n=Math.min(e.t,this.t),a=0;a<n;++a)r[a]=t(this[a],e[a]);if(e.t<this.t){for(i=e.s&this.DM,a=n;a<this.t;++a)r[a]=t(this[a],i);r.t=this.t}else{for(i=this.s&this.DM,a=n;a<e.t;++a)r[a]=t(i,e[a]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()},b.prototype.changeBit=function(e,t){return e=b.ONE.shiftLeft(e),this.bitwiseTo(e,t,e),e},b.prototype.addTo=function(e,t){for(var r=0,i=0,n=Math.min(e.t,this.t);r<n;)i+=this[r]+e[r],t[r++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i+=e.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<e.t;)i+=e[r],t[r++]=i&this.DM,i>>=this.DB;i+=e.s}t.s=i<0?-1:0,0<i?t[r++]=i:i<-1&&(t[r++]=this.DV+i),t.t=r,t.clamp()},b.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},b.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},b.prototype.multiplyLowerTo=function(e,t,r){var i,n=Math.min(this.t+e.t,t);for(r.s=0,r.t=n;0<n;)r[--n]=0;for(i=r.t-this.t;n<i;++n)r[n+this.t]=this.am(0,e[n],r,n,0,this.t);for(i=Math.min(e.t,t);n<i;++n)this.am(0,e[n],r,n,0,t-n);r.clamp()},b.prototype.multiplyUpperTo=function(e,t,r){--t;var i=r.t=this.t+e.t-t;for(r.s=0;0<=--i;)r[i]=0;for(i=Math.max(t-this.t,0);i<e.t;++i)r[this.t+i-t]=this.am(t-i,e[i],r,0,0,this.t+i-t);r.clamp(),r.drShiftTo(1,r)},b.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(0<this.t)if(0==t)r=this[0]%e;else for(var i=this.t-1;0<=i;--i)r=(t*r+this[i])%e;return r},b.prototype.millerRabin=function(e){var t=this.subtract(b.ONE),r=t.getLowestSetBit();if(r<=0)return!1;var i=t.shiftRight(r);(e=e+1>>1)>d.length&&(e=d.length);for(var n=y(),a=0;a<e;++a){n.fromInt(d[Math.floor(Math.random()*d.length)]);var o=n.modPow(i,this);if(0!=o.compareTo(b.ONE)&&0!=o.compareTo(t)){for(var s=1;s++<r&&0!=o.compareTo(t);)if(0==(o=o.modPowInt(2,this)).compareTo(b.ONE))return!1;if(0!=o.compareTo(t))return!1}}return!0},b.prototype.clone=function(){var e=y();return this.copyTo(e),e},b.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},b.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},b.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},b.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},b.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var r,i=this.DB-e*this.DB%8,n=0;if(0<e--)for(i<this.DB&&(r=this[e]>>i)!=(this.s&this.DM)>>i&&(t[n++]=r|this.s<<this.DB-i);0<=e;)i<8?(r=(this[e]&(1<<i)-1)<<8-i,r|=this[--e]>>(i+=this.DB-8)):(r=this[e]>>(i-=8)&255,i<=0&&(i+=this.DB,--e)),0!=(128&r)&&(r|=-256),0==n&&(128&this.s)!=(128&r)&&++n,(0<n||r!=this.s)&&(t[n++]=r);return t},b.prototype.equals=function(e){return 0==this.compareTo(e)},b.prototype.min=function(e){return this.compareTo(e)<0?this:e},b.prototype.max=function(e){return 0<this.compareTo(e)?this:e},b.prototype.and=function(e){var t=y();return this.bitwiseTo(e,a,t),t},b.prototype.or=function(e){var t=y();return this.bitwiseTo(e,o,t),t},b.prototype.xor=function(e){var t=y();return this.bitwiseTo(e,s,t),t},b.prototype.andNot=function(e){var t=y();return this.bitwiseTo(e,f,t),t},b.prototype.not=function(){for(var e=y(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},b.prototype.shiftLeft=function(e){var t=y();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},b.prototype.shiftRight=function(e){var t=y();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},b.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+function(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}(this[e]);return this.s<0?this.t*this.DB:-1},b.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=function(e){for(var t=0;0!=e;)e&=e-1,++t;return t}(this[r]^t);return e},b.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},b.prototype.setBit=function(e){return this.changeBit(e,o)},b.prototype.clearBit=function(e){return this.changeBit(e,f)},b.prototype.flipBit=function(e){return this.changeBit(e,s)},b.prototype.add=function(e){var t=y();return this.addTo(e,t),t},b.prototype.subtract=function(e){var t=y();return this.subTo(e,t),t},b.prototype.multiply=function(e){var t=y();return this.multiplyTo(e,t),t},b.prototype.divide=function(e){var t=y();return this.divRemTo(e,t,null),t},b.prototype.remainder=function(e){var t=y();return this.divRemTo(e,null,t),t},b.prototype.divideAndRemainder=function(e){var t=y(),r=y();return this.divRemTo(e,t,r),new Array(t,r)},b.prototype.modPow=function(e,t){var r,i,n=e.bitLength(),a=g(1);if(n<=0)return a;r=n<18?1:n<48?3:n<144?4:n<768?5:6,i=new(n<8?_:t.isEven()?k:w)(t);var o=new Array,s=3,u=r-1,c=(1<<r)-1;if(o[1]=i.convert(this),1<r){var f=y();for(i.sqrTo(o[1],f);s<=c;)o[s]=y(),i.mulTo(f,o[s-2],o[s]),s+=2}for(var p,l,h=e.t-1,d=!0,m=y(),n=v(e[h])-1;0<=h;){for(u<=n?p=e[h]>>n-u&c:(p=(e[h]&(1<<n+1)-1)<<u-n,0<h&&(p|=e[h-1]>>this.DB+n-u)),s=r;0==(1&p);)p>>=1,--s;if((n-=s)<0&&(n+=this.DB,--h),d)o[p].copyTo(a),d=!1;else{for(;1<s;)i.sqrTo(a,m),i.sqrTo(m,a),s-=2;0<s?i.sqrTo(a,m):(l=a,a=m,m=l),i.mulTo(m,o[p],a)}for(;0<=h&&0==(e[h]&1<<n);)i.sqrTo(a,m),l=a,a=m,m=l,--n<0&&(n=this.DB-1,--h)}return i.revert(a)},b.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return b.ZERO;for(var r=e.clone(),i=this.clone(),n=g(1),a=g(0),o=g(0),s=g(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),t?(n.isEven()&&a.isEven()||(n.addTo(this,n),a.subTo(e,a)),n.rShiftTo(1,n)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),t?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(e,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);0<=r.compareTo(i)?(r.subTo(i,r),t&&n.subTo(o,n),a.subTo(s,a)):(i.subTo(r,i),t&&o.subTo(n,o),s.subTo(a,s))}return 0!=i.compareTo(b.ONE)?b.ZERO:0<=s.compareTo(e)?s.subtract(e):s.signum()<0?(s.addTo(e,s),s.signum()<0?s.add(e):s):s},b.prototype.pow=function(e){return this.exp(e,new p)},b.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();t.compareTo(r)<0&&(n=t,t=r,r=n);var i=t.getLowestSetBit(),n=r.getLowestSetBit();if(n<0)return t;for(0<(n=i<n?i:n)&&(t.rShiftTo(n,t),r.rShiftTo(n,r));0<t.signum();)0<(i=t.getLowestSetBit())&&t.rShiftTo(i,t),0<(i=r.getLowestSetBit())&&r.rShiftTo(i,r),0<=t.compareTo(r)?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return 0<n&&r.lShiftTo(n,r),r},b.prototype.isProbablePrime=function(e){var t,r=this.abs();if(1==r.t&&r[0]<=d[d.length-1]){for(t=0;t<d.length;++t)if(r[0]==d[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<d.length;){for(var i=d[t],n=t+1;n<d.length&&i<m;)i*=d[n++];for(i=r.modInt(i);t<n;)if(i%d[t++]==0)return!1}return r.millerRabin(e)},b.prototype.square=function(){var e=y();return this.squareTo(e),e},b.prototype.Barrett=k,null==S){var S=new Array,j=0;if("undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var E=new Uint8Array(32);for(window.crypto.getRandomValues(E),P=0;P<32;++P)S[j++]=E[P]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5")for(var A=window.crypto.random(32),P=0;P<A.length;++P)S[j++]=255&A.charCodeAt(P);for(;j<C;)P=Math.floor(65536*Math.random()),S[j++]=P>>>8,S[j++]=255&P;j=0,x()}function I(){if(null==h){for(x(),(h=new O).init(S),j=0;j<S.length;++j)S[j]=0;j=0}return h.next()}function T(){}function O(){this.i=0,this.j=0,this.S=new Array}T.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=I()},O.prototype.init=function(e){for(var t,r,i=0;i<256;++i)this.S[i]=i;for(i=t=0;i<256;++i)t=t+this.S[i]+e[i%e.length]&255,r=this.S[i],this.S[i]=this.S[t],this.S[t]=r;this.i=0,this.j=0},O.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]};var C=256;b.SecureRandom=T,b.BigInteger=b,void 0!==B?B=R.exports=b:(this.BigInteger=b,this.SecureRandom=T)}).call(this)},{}],302:[function(e,t,r){"use strict";var m=t.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),function e(t,r,i,n,a,o,s,u,c,f){if(n&&"object"==_typeof(n)&&!Array.isArray(n)){for(var p in r(n,a,o,s,u,c,f),n){var l=n[p];if(Array.isArray(l)){if(p in m.arrayKeywords)for(var h=0;h<l.length;h++)e(t,r,i,l[h],a+"/"+p+"/"+h,o,a,p,n,h)}else if(p in m.propsKeywords){if(l&&"object"==_typeof(l))for(var d in l)e(t,r,i,l[d],a+"/"+p+"/"+g(d),o,a,p,n,d)}else(p in m.keywords||t.allKeys&&!(p in m.skipKeywords))&&e(t,r,i,l,a+"/"+p,o,a,p,n)}i(n,a,o,s,u,c,f)}}(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function g(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}m.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},m.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},m.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},m.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},{}],303:[function(e,t,r){var i,n;i=this,n=function(){var e=i;e.Integer={type:"integer"};var r={String:String,Boolean:Boolean,Number:Number,Object:Object,Array:Array,Date:Date};function i(e,t){return i(e,t,{changing:!1})}e.validate=i,e.checkPropertyChange=function(e,t,r){return i(e,t,{changing:r||"property"})};var i=e._validate=function(e,t,l){var h=(l=l||{}).changing;function d(e){return e.type||r[e.name]==e&&e.name.toLowerCase()}var m=[];function g(e,t,o,r){function i(e){m.push({property:o,message:e})}if(o+=o?"number"==typeof r?"["+r+"]":void 0===r?"":"."+r:r,("object"!=_typeof(t)||t instanceof Array)&&(o||"function"!=typeof t)&&(!t||!d(t)))return"function"==typeof t?e instanceof t||i("is not an instance of the class/constructor "+t.name):t&&i("Invalid schema/property definition "+t),null;function s(e,t){if(e){if(!("string"!=typeof e||"any"==e||("null"==e?null===t:_typeof(t)==e)||t instanceof Array&&"array"==e||t instanceof Date&&"date"==e||"integer"==e&&t%1==0))return[{property:o,message:_typeof(t)+" value found, but a "+e+" is required"}];if(e instanceof Array){for(var r=[],i=0;i<e.length&&(r=s(e[i],t)).length;i++);if(r.length)return r}else if("object"==_typeof(e)){var n=m;m=[],g(t,e,o);var a=m;return m=n,a}}return[]}if(h&&t.readonly&&i("is a readonly field, it can not be changed"),t.extends&&g(e,t.extends,o,r),void 0===e)t.required&&i("is missing and it is required");else if(m=m.concat(s(d(t),e)),t.disallow&&!s(t.disallow,e).length&&i(" disallowed value was matched"),null!==e){if(e instanceof Array){if(t.items){var n=t.items instanceof Array,a=t.items;for(r=0,f=e.length;r<f;r+=1)n&&(a=t.items[r]),l.coerce&&(e[r]=l.coerce(e[r],a)),m.concat(g(e[r],a,o,r))}t.minItems&&e.length<t.minItems&&i("There must be a minimum of "+t.minItems+" in the array"),t.maxItems&&e.length>t.maxItems&&i("There must be a maximum of "+t.maxItems+" in the array")}else(t.properties||t.additionalProperties)&&m.concat(function(e,t,r,i){if("object"==_typeof(t))for(var n in("object"!=_typeof(e)||e instanceof Array)&&m.push({property:r,message:"an object is required"}),t){var a,o;t.hasOwnProperty(n)&&(void 0===(a=e[n])&&l.existingOnly||(o=t[n],void 0===a&&o.default&&(a=e[n]=o.default),g(a=l.coerce&&n in e?e[n]=l.coerce(a,o):a,o,r,n)))}for(n in e){if(e.hasOwnProperty(n)&&("_"!=n.charAt(0)||"_"!=n.charAt(1))&&t&&!t[n]&&!1===i){if(l.filter){delete e[n];continue}m.push({property:r,message:_typeof(a)+"The property "+n+" is not defined in the schema and the schema does not allow additional properties"})}var s=t&&t[n]&&t[n].requires;!s||s in e||m.push({property:r,message:"the presence of the property "+n+" requires that "+s+" also be present"}),a=e[n],!i||t&&"object"==_typeof(t)&&n in t||g(a=l.coerce?e[n]=l.coerce(a,i):a,i,r,n),!h&&a&&a.$schema&&(m=m.concat(g(a,a.$schema,r,n)))}return m}(e,t.properties,o,t.additionalProperties));if(t.pattern&&"string"==typeof e&&!e.match(t.pattern)&&i("does not match the regex pattern "+t.pattern),t.maxLength&&"string"==typeof e&&e.length>t.maxLength&&i("may only be "+t.maxLength+" characters long"),t.minLength&&"string"==typeof e&&e.length<t.minLength&&i("must be at least "+t.minLength+" characters long"),void 0!==_typeof(t.minimum)&&_typeof(e)==_typeof(t.minimum)&&t.minimum>e&&i("must have a minimum value of "+t.minimum),void 0!==_typeof(t.maximum)&&_typeof(e)==_typeof(t.maximum)&&t.maximum<e&&i("must have a maximum value of "+t.maximum),t.enum){for(var u,c=t.enum,f=c.length,p=0;p<f;p++)if(c[p]===e){u=1;break}u||i("does not have a value in the enumeration "+c.join(", "))}"number"==typeof t.maxDecimal&&e.toString().match(new RegExp("\\.[0-9]{"+(t.maxDecimal+1)+",}"))&&i("may only have "+t.maxDecimal+" digits of decimal places")}return null}return t&&g(e,t,"",h||""),!h&&e&&e.$schema&&g(e,e.$schema,"",""),{valid:!m.length,errors:m}};return e.mustBeValid=function(e){if(!e.valid)throw new TypeError(e.errors.map(function(e){return"for property "+e.property+": "+e.message}).join(", \n"))},e},"function"==typeof B&&B.amd?B([],n):"object"===_typeof(t)&&t.exports?t.exports=n():i.jsonSchema=n()},{}],304:[function(e,t,r){function n(i,n){var a=[],o=[];return null==n&&(n=function(e,t){return a[0]===t?"[Circular ~]":"[Circular ~."+o.slice(0,a.indexOf(t)).join(".")+"]"}),function(e,t){var r;return 0<a.length?(~(r=a.indexOf(this))?a.splice(r+1):a.push(this),~r?o.splice(r,1/0,e):o.push(e),~a.indexOf(t)&&(t=n.call(this,e,t))):a.push(t),null==i?t:i.call(this,e,t)}}(t.exports=function(e,t,r,i){return JSON.stringify(e,n(t,i),r)}).getSerialize=n},{}],305:[function(e,t,r){var f=e("assert-plus"),i=(e("util"),e("extsprintf")),a=e("verror"),o=e("json-schema");function p(e,t){return f.equal(_typeof(t),"string"),Object.prototype.hasOwnProperty.call(e,t)}r.deepCopy=function e(t){var r,i;var n="__deepCopy";if(t&&t[n])throw new Error("attempted deep copy of cyclic object");if(t&&t.constructor==Object){for(i in r={},t[n]=!0,t)i!=n&&(r[i]=e(t[i]));return delete t[n],r}if(t&&t.constructor==Array){for(r=[],t[n]=!0,i=0;i<t.length;i++)r.push(e(t[i]));return delete t[n],r}return t},r.deepEqual=function e(t,r){if(_typeof(t)!=_typeof(r))return!1;if(null===t||null===r||"object"!=_typeof(t))return t===r;if(t.constructor!=r.constructor)return!1;for(var i in t){if(!r.hasOwnProperty(i))return!1;if(!e(t[i],r[i]))return!1}for(i in r)if(!t.hasOwnProperty(i))return!1;return!0},r.isEmpty=function(e){for(var t in e)return!1;return!0},r.hasKey=p,r.forEachKey=function(e,t){for(var r in e)p(e,r)&&t(r,e[r])},r.pluck=function(e,t){return f.equal(_typeof(t),"string"),function e(t,r){if(null===t||"object"!==_typeof(t))return;if(t.hasOwnProperty(r))return t[r];var i=r.indexOf(".");if(-1==i)return;var n=r.substr(0,i);if(!t.hasOwnProperty(n))return;return e(t[n],r.substr(i+1))}(e,t)},r.flattenObject=function e(t,r){if(0===r)return[t];f.ok(null!==t);f.equal(_typeof(t),"object");f.equal(_typeof(r),"number");f.ok(0<=r);var i=[];for(var n in t)e(t[n],r-1).forEach(function(e){i.push([n].concat(e))});return i},r.flattenIter=function(e,t,r){!function e(t,r,i,n){var a;if(0===r)return(a=i.slice(0)).push(t),void n(a);f.ok(null!==t);f.equal(_typeof(t),"object");f.equal(_typeof(r),"number");f.ok(0<=r);for(var o in t)(a=i.slice(0)).push(o),e(t[o],r-1,a,n)}(e,t,[],r)},r.validateJsonObject=u,r.validateJsonObjectJS=u,r.randElt=function(e){return f.ok(Array.isArray(e)&&0<e.length,"randElt argument must be a non-empty array"),e[Math.floor(Math.random()*e.length)]},r.extraProperties=function(e,t){f.ok("object"===_typeof(e)&&null!==e,"obj argument must be a non-null object"),f.ok(Array.isArray(t),"allowed argument must be an array of strings");for(var r=0;r<t.length;r++)f.ok("string"==typeof t[r],"allowed argument must be an array of strings");return Object.keys(e).filter(function(e){return-1===t.indexOf(e)})},r.mergeObjects=F,r.startsWith=function(e,t){return e.substr(0,t.length)==t},r.endsWith=function(e,t){return e.substr(e.length-t.length,t.length)==t},r.parseInteger=function(e,t){f.string(e,"str"),f.optionalObject(t,"options");var r,i=!1,n=d;t&&(i=p(t,"base"),n=F(n,t),f.number(n.base,"options.base"),f.ok(2<=n.base,"options.base >= 2"),f.ok(n.base<=36,"options.base <= 36"),f.bool(n.allowSign,"options.allowSign"),f.bool(n.allowPrefix,"options.allowPrefix"),f.bool(n.allowTrailing,"options.allowTrailing"),f.bool(n.allowImprecise,"options.allowImprecise"),f.bool(n.trimWhitespace,"options.trimWhitespace"),f.bool(n.leadingZeroIsOctal,"options.leadingZeroIsOctal"),n.leadingZeroIsOctal&&f.ok(!i,'"base" and "leadingZeroIsOctal" are mutually exclusive'));var a=-1,o=n.base,t=1,s=0,u=0,c=e.length;if(n.trimWhitespace)for(;u<c&&C(e.charCodeAt(u));)++u;n.allowSign&&("-"===e[u]?(u+=1,t=-1):"+"===e[u]&&(u+=1));"0"===e[u]&&(n.allowPrefix&&(-1===(a=function(e){return e===S||e===y?2:e===j||e===v?8:e===E||e===_?10:e===A||e===w?16:-1}(e.charCodeAt(u+1)))||i&&a!==o||(o=a,u+=2)),-1===a&&n.leadingZeroIsOctal&&(o=8));for(a=u;u<c&&(-1!==(r=function(e){return m<=e&&e<=g?e-I:b<=e&&e<=k?e-T:x<=e&&e<=P?e-O:-1}(e.charCodeAt(u)))&&r<o);++u)s*=o,s+=r;if(a===u)return new Error("invalid number: "+JSON.stringify(e));if(n.trimWhitespace)for(;u<c&&C(e.charCodeAt(u));)++u;if(u<c&&!n.allowTrailing)return new Error("trailing characters after number: "+JSON.stringify(e.slice(u)));if(0===s)return 0;t*=s;return n.allowImprecise||!(l<s||t<h)?t:new Error("number is outside of the supported range: "+JSON.stringify(e.slice(a,u)))},r.iso8601=function(e){"number"==typeof e&&(e=new Date(e));return f.ok(e.constructor===Date),i.sprintf("%4d-%02d-%02dT%02d:%02d:%02d.%03dZ",e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())},r.rfc1123=function(e){return i.sprintf("%s, %02d %s %04d %02d:%02d:%02d GMT",s[e.getUTCDay()],e.getUTCDate(),n[e.getUTCMonth()],e.getUTCFullYear(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())},r.parseDateTime=function(e){var t=+e;return isNaN(t)?new Date(e):new Date(t)},r.hrtimediff=R,r.hrtimeDiff=R,r.hrtimeAccum=B,r.hrtimeAdd=function(e,t){return c(e),B([e[0],e[1]],t)},r.hrtimeNanosec=function(e){return c(e),Math.floor(1e9*e[0]+e[1])},r.hrtimeMicrosec=function(e){return c(e),Math.floor(1e6*e[0]+e[1]/1e3)},r.hrtimeMillisec=function(e){return c(e),Math.floor(1e3*e[0]+e[1]/1e6)};var n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var l=Number.MAX_SAFE_INTEGER||9007199254740991,h=Number.MIN_SAFE_INTEGER||-9007199254740991,d={base:10,allowSign:!0,allowPrefix:!1,allowTrailing:!1,allowImprecise:!1,trimWhitespace:!1,leadingZeroIsOctal:!1},m=48,g=57,b=65,y=66,v=79,_=84,w=88,k=90,x=97,S=98,j=111,E=116,A=120,P=122,I=48,T=55,O=87;function C(e){return 32===e||9<=e&&e<=13||160===e||5760===e||6158===e||8192<=e&&e<=8202||8232===e||8233===e||8239===e||8287===e||12288===e||65279===e}function u(e,t){var r=o.validate(t,e);if(0===r.errors.length)return null;var i,n=r.errors[0],t=n.property,e=n.message.toLowerCase();-1!=(r=e.indexOf("the property "))&&-1!=(i=e.indexOf(" is not defined in the schema and the schema does not allow additional properties"))&&(r+="the property ".length,t=""===t?e.substr(r,i-r):t+"."+e.substr(r,i-r),e="unsupported property");e=new a.VError('property "%s": %s',t,e);return e.jsv_details=n,e}function c(e){f.ok(0<=e[0]&&0<=e[1],"negative numbers not allowed in hrtimes"),f.ok(e[1]<1e9,"nanoseconds column overflow")}function R(e,t){c(e),c(t),f.ok(e[0]>t[0]||e[0]==t[0]&&e[1]>=t[1],"negative differences not allowed");var r=[e[0]-t[0],0];return e[1]>=t[1]?r[1]=e[1]-t[1]:(r[0]--,r[1]=1e9-(t[1]-e[1])),r}function B(e,t){return c(e),c(t),e[1]+=t[1],1e9<=e[1]&&(e[0]++,e[1]-=1e9),e[0]+=t[0],e}function F(e,t,r){var i,n={};if(r)for(i in r)n[i]=r[i];if(e)for(i in e)n[i]=e[i];if(t)for(i in t)n[i]=t[i];return n}},{"assert-plus":67,extsprintf:232,"json-schema":303,util:481,verror:485}],306:[function(e,t,r){e=e("./_root").Symbol;t.exports=e},{"./_root":311}],307:[function(e,t,r){var i=e("./_Symbol"),n=e("./_getRawTag"),a=e("./_objectToString"),o=i?i.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(o&&o in Object(e)?n:a)(e)}},{"./_Symbol":306,"./_getRawTag":309,"./_objectToString":310}],308:[function(e,r,t){(function(t){(function(){var e="object"==_typeof(t)&&t&&t.Object===Object&&t;r.exports=e}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],309:[function(e,t,r){var i=e("./_Symbol"),e=Object.prototype,a=e.hasOwnProperty,o=e.toString,s=i?i.toStringTag:void 0;t.exports=function(e){var t=a.call(e,s),r=e[s];try{var i=!(e[s]=void 0)}catch(e){}var n=o.call(e);return i&&(t?e[s]=r:delete e[s]),n}},{"./_Symbol":306}],310:[function(e,t,r){var i=Object.prototype.toString;t.exports=function(e){return i.call(e)}},{}],311:[function(e,t,r){var i=e("./_freeGlobal"),e="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,e=i||e||Function("return this")();t.exports=e},{"./_freeGlobal":308}],312:[function(e,t,r){var i=Array.isArray;t.exports=i},{}],313:[function(e,t,r){var i=e("./_baseGetTag"),n=e("./isObject");t.exports=function(e){return!!n(e)&&("[object Function]"==(e=i(e))||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e)}},{"./_baseGetTag":307,"./isObject":314}],314:[function(e,t,r){t.exports=function(e){var t=_typeof(e);return null!=e&&("object"==t||"function"==t)}},{}],315:[function(e,t,r){t.exports=function(e){return null!=e&&"object"==_typeof(e)}},{}],316:[function(e,t,r){var i=e("./_baseGetTag"),n=e("./isArray"),a=e("./isObjectLike");t.exports=function(e){return"string"==typeof e||!n(e)&&a(e)&&"[object String]"==i(e)}},{"./_baseGetTag":307,"./isArray":312,"./isObjectLike":315}],317:[function(e,t,r){t.exports=function(e){return void 0===e}},{}],318:[function(e,P,I){(function(A){(function(){(function(){var qa,Ua="Expected a function",Ha="__lodash_hash_undefined__",Ka="__lodash_placeholder__",Va=9007199254740991,$a=NaN,Ga=4294967295,Wa=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],Za="[object Arguments]",Ya="[object Array]",Qa="[object Boolean]",Xa="[object Date]",Ja="[object Error]",eo="[object Function]",to="[object GeneratorFunction]",ro="[object Map]",io="[object Number]",no="[object Object]",ao="[object Promise]",oo="[object RegExp]",so="[object Set]",uo="[object String]",co="[object Symbol]",fo="[object WeakMap]",po="[object ArrayBuffer]",lo="[object DataView]",ho="[object Float32Array]",mo="[object Float64Array]",go="[object Int8Array]",bo="[object Int16Array]",yo="[object Int32Array]",vo="[object Uint8Array]",_o="[object Uint8ClampedArray]",wo="[object Uint16Array]",ko="[object Uint32Array]",xo=/\b__p \+= '';/g,So=/\b(__p \+=) '' \+/g,jo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Eo=/&(?:amp|lt|gt|quot|#39);/g,Ao=/[&<>"']/g,Po=RegExp(Eo.source),Io=RegExp(Ao.source),To=/<%-([\s\S]+?)%>/g,Oo=/<%([\s\S]+?)%>/g,Co=/<%=([\s\S]+?)%>/g,Ro=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bo=/^\w*$/,Fo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mo=/[\\^$.*+?()[\]{}|]/g,zo=RegExp(Mo.source),No=/^\s+|\s+$/g,Do=/^\s+/,Lo=/\s+$/,qo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Uo=/\{\n\/\* \[wrapped with (.+)\] \*/,Ho=/,? & /,Ko=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vo=/\\(\\)?/g,$o=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Go=/\w*$/,Wo=/^[-+]0x[0-9a-f]+$/i,Zo=/^0b[01]+$/i,Yo=/^\[object .+?Constructor\]$/,Qo=/^0o[0-7]+$/i,Xo=/^(?:0|[1-9]\d*)$/,Jo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,es=/($^)/,ts=/['\n\r\u2028\u2029\\]/g,e="\\ud800-\\udfff",t="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",r="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",n="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\ufe0e\\ufe0f",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="["+e+"]",u="["+o+"]",c="["+t+"]",f="\\d+",p="["+r+"]",l="["+i+"]",h="[^"+e+o+f+r+i+n+"]",d="\\ud83c[\\udffb-\\udfff]",m="[^"+e+"]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",y="["+n+"]",v="(?:"+l+"|"+h+")",o="(?:"+y+"|"+h+")",r="(?:['](?:d|ll|m|re|s|t|ve))?",i="(?:['](?:D|LL|M|RE|S|T|VE))?",n="(?:"+c+"|"+d+")"+"?",h="["+a+"]?",n=h+n+("(?:\\u200d(?:"+[m,g,b].join("|")+")"+h+n+")*"),p="(?:"+[p,g,b].join("|")+")"+n,s="(?:"+[m+c+"?",c,g,b,s].join("|")+")",rs=RegExp("[']","g"),is=RegExp(c,"g"),_=RegExp(d+"(?="+d+")|"+s+n,"g"),ns=RegExp([y+"?"+l+"+"+r+"(?="+[u,y,"$"].join("|")+")",o+"+"+i+"(?="+[u,y+v,"$"].join("|")+")",y+"?"+v+"+"+r,y+"+"+i,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",f,p].join("|"),"g"),w=RegExp("[\\u200d"+e+t+a+"]"),as=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,os=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ss=-1,us={};us[ho]=us[mo]=us[go]=us[bo]=us[yo]=us[vo]=us[_o]=us[wo]=us[ko]=!0,us[Za]=us[Ya]=us[po]=us[Qa]=us[lo]=us[Xa]=us[Ja]=us[eo]=us[ro]=us[io]=us[no]=us[oo]=us[so]=us[uo]=us[fo]=!1;var cs={};cs[Za]=cs[Ya]=cs[po]=cs[lo]=cs[Qa]=cs[Xa]=cs[ho]=cs[mo]=cs[go]=cs[bo]=cs[yo]=cs[ro]=cs[io]=cs[no]=cs[oo]=cs[so]=cs[uo]=cs[co]=cs[vo]=cs[_o]=cs[wo]=cs[ko]=!0,cs[Ja]=cs[eo]=cs[fo]=!1;var k={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fs=parseFloat,ps=parseInt,t="object"==_typeof(A)&&A&&A.Object===Object&&A,a="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,ls=t||a||Function("return this")(),a="object"==_typeof(I)&&I&&!I.nodeType&&I,x=a&&"object"==_typeof(P)&&P&&!P.nodeType&&P,hs=x&&x.exports===a,S=hs&&t.process,t=function(){try{var e=x&&x.require&&x.require("util").types;return e?e:S&&S.binding&&S.binding("util")}catch(e){}}(),ds=t&&t.isArrayBuffer,ms=t&&t.isDate,gs=t&&t.isMap,bs=t&&t.isRegExp,ys=t&&t.isSet,vs=t&&t.isTypedArray;function _s(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function ws(e,t,r,i){for(var n=-1,a=null==e?0:e.length;++n<a;){var o=e[n];t(i,o,r(o),e)}return i}function ks(e,t){for(var r=-1,i=null==e?0:e.length;++r<i&&!1!==t(e[r],r,e););return e}function xs(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Ss(e,t){for(var r=-1,i=null==e?0:e.length;++r<i;)if(!t(e[r],r,e))return!1;return!0}function js(e,t){for(var r=-1,i=null==e?0:e.length,n=0,a=[];++r<i;){var o=e[r];t(o,r,e)&&(a[n++]=o)}return a}function Es(e,t){return!!(null==e?0:e.length)&&-1<Fs(e,t,0)}function As(e,t,r){for(var i=-1,n=null==e?0:e.length;++i<n;)if(r(t,e[i]))return!0;return!1}function Ps(e,t){for(var r=-1,i=null==e?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}function Is(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}function Ts(e,t,r,i){var n=-1,a=null==e?0:e.length;for(i&&a&&(r=e[++n]);++n<a;)r=t(r,e[n],n,e);return r}function Os(e,t,r,i){var n=null==e?0:e.length;for(i&&n&&(r=e[--n]);n--;)r=t(r,e[n],n,e);return r}function Cs(e,t){for(var r=-1,i=null==e?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}var j=Ds("length");function Rs(e,i,t){var n;return t(e,function(e,t,r){if(i(e,t,r))return n=t,!1}),n}function Bs(e,t,r,i){for(var n=e.length,a=r+(i?1:-1);i?a--:++a<n;)if(t(e[a],a,e))return a;return-1}function Fs(e,t,r){return t==t?function(e,t,r){var i=r-1,n=e.length;for(;++i<n;)if(e[i]===t)return i;return-1}(e,t,r):Bs(e,zs,r)}function Ms(e,t,r,i){for(var n=r-1,a=e.length;++n<a;)if(i(e[n],t))return n;return-1}function zs(e){return e!=e}function Ns(e,t){var r=null==e?0:e.length;return r?qs(e,t)/r:$a}function Ds(t){return function(e){return null==e?qa:e[t]}}function E(t){return function(e){return null==t?qa:t[e]}}function Ls(e,i,n,a,t){return t(e,function(e,t,r){n=a?(a=!1,e):i(n,e,t,r)}),n}function qs(e,t){for(var r,i=-1,n=e.length;++i<n;){var a=t(e[i]);a!==qa&&(r=r===qa?a:r+a)}return r}function Us(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}function Hs(t){return function(e){return t(e)}}function Ks(t,e){return Ps(e,function(e){return t[e]})}function Vs(e,t){return e.has(t)}function $s(e,t){for(var r=-1,i=e.length;++r<i&&-1<Fs(t,e[r],0););return r}function Gs(e,t){for(var r=e.length;r--&&-1<Fs(t,e[r],0););return r}var Ws=E({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Zs=E({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Ys(e){return"\\"+k[e]}function Qs(e){return w.test(e)}function Xs(e){var r=-1,i=Array(e.size);return e.forEach(function(e,t){i[++r]=[t,e]}),i}function Js(t,r){return function(e){return t(r(e))}}function eu(e,t){for(var r=-1,i=e.length,n=0,a=[];++r<i;){var o=e[r];o!==t&&o!==Ka||(e[r]=Ka,a[n++]=r)}return a}function tu(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function ru(e){return(Qs(e)?function(e){var t=_.lastIndex=0;for(;_.test(e);)++t;return t}:j)(e)}function iu(e){return Qs(e)?e.match(_)||[]:e.split("")}var nu=E({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var au=function e(t){var x=(t=null==t?ls:au.defaults(ls.Object(),t,au.pick(ls,os))).Array,r=t.Date,i=t.Error,p=t.Function,n=t.Math,m=t.Object,l=t.RegExp,f=t.String,k=t.TypeError,a=x.prototype,o=p.prototype,h=m.prototype,s=t["__core-js_shared__"],u=o.toString,y=h.hasOwnProperty,c=0,d=(Ca=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+Ca:"",g=h.toString,b=u.call(m),v=ls._,_=l("^"+u.call(y).replace(Mo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=hs?t.Buffer:qa,S=t.Symbol,j=t.Uint8Array,E=w?w.allocUnsafe:qa,A=Js(m.getPrototypeOf,m),P=m.create,I=h.propertyIsEnumerable,T=a.splice,O=S?S.isConcatSpreadable:qa,C=S?S.iterator:qa,R=S?S.toStringTag:qa,B=function(){try{var e=qr(m,"defineProperty");return e({},"",{}),e}catch(e){}}(),F=t.clearTimeout!==ls.clearTimeout&&t.clearTimeout,M=r&&r.now!==ls.Date.now&&r.now,z=t.setTimeout!==ls.setTimeout&&t.setTimeout,N=n.ceil,D=n.floor,L=m.getOwnPropertySymbols,q=w?w.isBuffer:qa,U=t.isFinite,H=a.join,K=Js(m.keys,m),V=n.max,$=n.min,G=r.now,W=t.parseInt,Z=n.random,Y=a.reverse,Q=qr(t,"DataView"),X=qr(t,"Map"),J=qr(t,"Promise"),ee=qr(t,"Set"),te=qr(t,"WeakMap"),re=qr(m,"create"),ie=te&&new te,ne={},ae=mi(Q),oe=mi(X),se=mi(J),ue=mi(ee),ce=mi(te),fe=S?S.prototype:qa,pe=fe?fe.valueOf:qa,le=fe?fe.toString:qa;function he(e){if(Rn(e)&&!kn(e)&&!(e instanceof ye)){if(e instanceof be)return e;if(y.call(e,"__wrapped__"))return gi(e)}return new be(e)}var de=function(e){if(!Cn(e))return{};if(P)return P(e);me.prototype=e;e=new me;return me.prototype=qa,e};function me(){}function ge(){}function be(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=qa}function ye(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ga,this.__views__=[]}function ve(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function _e(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function we(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function ke(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new we;++t<r;)this.add(e[t])}function xe(e){e=this.__data__=new _e(e);this.size=e.size}function Se(e,t){var r,i=kn(e),n=!i&&wn(e),a=!i&&!n&&En(e),o=!i&&!n&&!a&&qn(e),s=i||n||a||o,u=s?Us(e.length,f):[],c=u.length;for(r in e)!t&&!y.call(e,r)||s&&("length"==r||a&&("offset"==r||"parent"==r)||o&&("buffer"==r||"byteLength"==r||"byteOffset"==r)||Wr(r,c))||u.push(r);return u}function je(e){var t=e.length;return t?e[kt(0,t-1)]:qa}function Ee(e,t){return fi(ir(e),Fe(t,0,e.length))}function Ae(e){return fi(ir(e))}function Pe(e,t,r){(r===qa||yn(e[t],r))&&(r!==qa||t in e)||Re(e,t,r)}function Ie(e,t,r){var i=e[t];y.call(e,t)&&yn(i,r)&&(r!==qa||t in e)||Re(e,t,r)}function Te(e,t){for(var r=e.length;r--;)if(yn(e[r][0],t))return r;return-1}function Oe(e,i,n,a){return Le(e,function(e,t,r){i(a,e,n(e),r)}),a}function Ce(e,t){return e&&nr(t,ca(t),e)}function Re(e,t,r){"__proto__"==t&&B?B(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Be(e,t){for(var r=-1,i=t.length,n=x(i),a=null==e;++r<i;)n[r]=a?qa:na(e,t[r]);return n}function Fe(e,t,r){return e==e&&(r!==qa&&(e=e<=r?e:r),t!==qa&&(e=t<=e?e:t)),e}function Me(r,i,n,e,t,a){var o,s=1&i,u=2&i,c=4&i;if((o=n?t?n(r,e,t,a):n(r):o)!==qa)return o;if(!Cn(r))return r;var f,p,l=kn(r);if(l){if(o=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&y.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(r),!s)return ir(r,o)}else{var h=Kr(r),e=h==eo||h==to;if(En(r))return Qt(r,s);if(h==no||h==Za||e&&!t){if(o=u||e?{}:$r(r),!s)return u?(e=f=r,p=(p=o)&&nr(e,fa(e),p),nr(f,Hr(f),p)):(p=Ce(o,f=r),nr(f,Ur(f),p))}else{if(!cs[h])return t?r:{};o=function(e,t,r){var i=e.constructor;switch(t){case po:return Xt(e);case Qa:case Xa:return new i(+e);case lo:return function(e,t){t=t?Xt(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}(e,r);case ho:case mo:case go:case bo:case yo:case vo:case _o:case wo:case ko:return Jt(e,r);case ro:return new i;case io:case uo:return new i(e);case oo:return function(e){var t=new e.constructor(e.source,Go.exec(e));return t.lastIndex=e.lastIndex,t}(e);case so:return new i;case co:return function(e){return pe?m(pe.call(e)):{}}(e)}}(r,h,s)}}s=(a=a||new xe).get(r);if(s)return s;a.set(r,o),Nn(r)?r.forEach(function(e){o.add(Me(e,i,n,e,r,a))}):Bn(r)&&r.forEach(function(e,t){o.set(t,Me(e,i,n,t,r,a))});var d=l?qa:(c?u?Br:Rr:u?fa:ca)(r);return ks(d||r,function(e,t){d&&(e=r[t=e]),Ie(o,t,Me(e,i,n,t,r,a))}),o}function ze(e,t,r){var i=r.length;if(null==e)return!i;for(e=m(e);i--;){var n=r[i],a=t[n],o=e[n];if(o===qa&&!(n in e)||!a(o))return!1}return!0}function Ne(e,t,r){if("function"!=typeof e)throw new k(Ua);return oi(function(){e.apply(qa,r)},t)}function De(e,t,r,i){var n=-1,a=Es,o=!0,s=e.length,u=[],c=t.length;if(!s)return u;r&&(t=Ps(t,Hs(r))),i?(a=As,o=!1):200<=t.length&&(a=Vs,o=!1,t=new ke(t));e:for(;++n<s;){var f=e[n],p=null==r?f:r(f),f=i||0!==f?f:0;if(o&&p==p){for(var l=c;l--;)if(t[l]===p)continue e;u.push(f)}else a(t,p,i)||u.push(f)}return u}he.templateSettings={escape:To,evaluate:Oo,interpolate:Co,variable:"",imports:{_:he}},(he.prototype=ge.prototype).constructor=he,(be.prototype=de(ge.prototype)).constructor=be,(ye.prototype=de(ge.prototype)).constructor=ye,ve.prototype.clear=function(){this.__data__=re?re(null):{},this.size=0},ve.prototype.delete=function(e){return e=this.has(e)&&delete this.__data__[e],this.size-=e?1:0,e},ve.prototype.get=function(e){var t=this.__data__;if(re){var r=t[e];return r===Ha?qa:r}return y.call(t,e)?t[e]:qa},ve.prototype.has=function(e){var t=this.__data__;return re?t[e]!==qa:y.call(t,e)},ve.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=re&&t===qa?Ha:t,this},_e.prototype.clear=function(){this.__data__=[],this.size=0},_e.prototype.delete=function(e){var t=this.__data__;return!((e=Te(t,e))<0)&&(e==t.length-1?t.pop():T.call(t,e,1),--this.size,!0)},_e.prototype.get=function(e){var t=this.__data__;return(e=Te(t,e))<0?qa:t[e][1]},_e.prototype.has=function(e){return-1<Te(this.__data__,e)},_e.prototype.set=function(e,t){var r=this.__data__,i=Te(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},we.prototype.clear=function(){this.size=0,this.__data__={hash:new ve,map:new(X||_e),string:new ve}},we.prototype.delete=function(e){return e=Dr(this,e).delete(e),this.size-=e?1:0,e},we.prototype.get=function(e){return Dr(this,e).get(e)},we.prototype.has=function(e){return Dr(this,e).has(e)},we.prototype.set=function(e,t){var r=Dr(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},ke.prototype.add=ke.prototype.push=function(e){return this.__data__.set(e,Ha),this},ke.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new _e,this.size=0},xe.prototype.delete=function(e){var t=this.__data__,e=t.delete(e);return this.size=t.size,e},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof _e){var i=r.__data__;if(!X||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new we(i)}return r.set(e,t),this.size=r.size,this};var Le=sr(We),qe=sr(Ze,!0);function Ue(e,i){var n=!0;return Le(e,function(e,t,r){return n=!!i(e,t,r)}),n}function He(e,t,r){for(var i=-1,n=e.length;++i<n;){var a,o,s=e[i],u=t(s);null!=u&&(a===qa?u==u&&!Ln(u):r(u,a))&&(a=u,o=s)}return o}function Ke(e,i){var n=[];return Le(e,function(e,t,r){i(e,t,r)&&n.push(e)}),n}function Ve(e,t,r,i,n){var a=-1,o=e.length;for(r=r||Gr,n=n||[];++a<o;){var s=e[a];0<t&&r(s)?1<t?Ve(s,t-1,r,i,n):Is(n,s):i||(n[n.length]=s)}return n}var $e=ur(),Ge=ur(!0);function We(e,t){return e&&$e(e,t,ca)}function Ze(e,t){return e&&Ge(e,t,ca)}function Ye(t,e){return js(e,function(e){return In(t[e])})}function Qe(e,t){for(var r=0,i=(t=Gt(t,e)).length;null!=e&&r<i;)e=e[di(t[r++])];return r&&r==i?e:qa}function Xe(e,t,r){t=t(e);return kn(e)?t:Is(t,r(e))}function Je(e){return null==e?e===qa?"[object Undefined]":"[object Null]":R&&R in m(e)?function(e){var t=y.call(e,R),r=e[R];try{e[R]=qa;var i=!0}catch(e){}var n=g.call(e);i&&(t?e[R]=r:delete e[R]);return n}(e):(e=e,g.call(e))}function et(e,t){return t<e}function tt(e,t){return null!=e&&y.call(e,t)}function rt(e,t){return null!=e&&t in m(e)}function it(e,t,r){for(var i=r?As:Es,n=e[0].length,a=e.length,o=a,s=x(a),u=1/0,c=[];o--;){var f=e[o];o&&t&&(f=Ps(f,Hs(t))),u=$(f.length,u),s[o]=!r&&(t||120<=n&&120<=f.length)?new ke(o&&f):qa}f=e[0];var p=-1,l=s[0];e:for(;++p<n&&c.length<u;){var h=f[p],d=t?t(h):h,h=r||0!==h?h:0;if(!(l?Vs(l,d):i(c,d,r))){for(o=a;--o;){var m=s[o];if(!(m?Vs(m,d):i(e[o],d,r)))continue e}l&&l.push(d),c.push(h)}}return c}function nt(e,t,r){t=null==(e=ii(e,t=Gt(t,e)))?e:e[di(Ai(t))];return null==t?qa:_s(t,e,r)}function at(e){return Rn(e)&&Je(e)==Za}function ot(e,t,r,i,n){return e===t||(null==e||null==t||!Rn(e)&&!Rn(t)?e!=e&&t!=t:function(e,t,r,i,n,a){var o=kn(e),s=kn(t),u=o?Ya:Kr(e),c=s?Ya:Kr(t),f=(u=u==Za?no:u)==no,s=(c=c==Za?no:c)==no,c=u==c;if(c&&En(e)){if(!En(t))return!1;f=!(o=!0)}if(c&&!f)return a=a||new xe,o||qn(e)?Or(e,t,r,i,n,a):function(e,t,r,i,n,a,o){switch(r){case lo:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case po:return e.byteLength==t.byteLength&&a(new j(e),new j(t))?!0:!1;case Qa:case Xa:case io:return yn(+e,+t);case Ja:return e.name==t.name&&e.message==t.message;case oo:case uo:return e==t+"";case ro:var s=Xs;case so:var u=1&i;if(s=s||tu,e.size!=t.size&&!u)return!1;u=o.get(e);if(u)return u==t;i|=2,o.set(e,t);s=Or(s(e),s(t),i,n,a,o);return o.delete(e),s;case co:if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,u,r,i,n,a);if(!(1&r)){f=f&&y.call(e,"__wrapped__"),s=s&&y.call(t,"__wrapped__");if(f||s){f=f?e.value():e,s=s?t.value():t;return a=a||new xe,n(f,s,r,i,a)}}return c&&(a=a||new xe,function(e,t,r,i,n,a){var o=1&r,s=Rr(e),u=s.length,c=Rr(t).length;if(u!=c&&!o)return!1;var f=u;for(;f--;){var p=s[f];if(!(o?p in t:y.call(t,p)))return!1}var l=a.get(e),c=a.get(t);if(l&&c)return l==t&&c==e;var h=!0;a.set(e,t),a.set(t,e);var d=o;for(;++f<u;){p=s[f];var m,g=e[p],b=t[p];if(!((m=i?o?i(b,g,p,t,e,a):i(g,b,p,e,t,a):m)===qa?g===b||n(g,b,r,i,a):m)){h=!1;break}d=d||"constructor"==p}h&&!d&&(l=e.constructor,c=t.constructor,l!=c&&"constructor"in e&&"constructor"in t&&!("function"==typeof l&&l instanceof l&&"function"==typeof c&&c instanceof c)&&(h=!1));return a.delete(e),a.delete(t),h}(e,t,r,i,n,a))}(e,t,r,i,ot,n))}function st(e,t,r,i){var n=r.length,a=n,o=!i;if(null==e)return!a;for(e=m(e);n--;){var s=r[n];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++n<a;){var u=(s=r[n])[0],c=e[u],f=s[1];if(o&&s[2]){if(c===qa&&!(u in e))return!1}else{var p,l=new xe;if(!((p=i?i(c,f,u,e,t,l):p)===qa?ot(f,c,3,i,l):p))return!1}}return!0}function ut(e){return!(!Cn(e)||(t=e,d&&d in t))&&(In(e)?_:Yo).test(mi(e));var t}function ct(e){return"function"==typeof e?e:null==e?Ra:"object"==_typeof(e)?kn(e)?mt(e[0],e[1]):dt(e):za(e)}function ft(e){if(!Jr(e))return K(e);var t,r=[];for(t in m(e))y.call(e,t)&&"constructor"!=t&&r.push(t);return r}function pt(e){if(!Cn(e))return function(e){var t=[];if(null!=e)for(var r in m(e))t.push(r);return t}(e);var t,r=Jr(e),i=[];for(t in e)("constructor"!=t||!r&&y.call(e,t))&&i.push(t);return i}function lt(e,t){return e<t}function ht(e,i){var n=-1,a=Sn(e)?x(e.length):[];return Le(e,function(e,t,r){a[++n]=i(e,t,r)}),a}function dt(t){var r=Lr(t);return 1==r.length&&r[0][2]?ti(r[0][0],r[0][1]):function(e){return e===t||st(e,t,r)}}function mt(r,i){return Yr(r)&&ei(i)?ti(di(r),i):function(e){var t=na(e,r);return t===qa&&t===i?aa(e,r):ot(i,t,3)}}function gt(i,n,a,o,s){i!==n&&$e(n,function(e,t){var r;s=s||new xe,Cn(e)?function(e,t,r,i,n,a,o){var s=ni(e,r),u=ni(t,r),c=o.get(u);if(c)return Pe(e,r,c);var f,p=a?a(s,u,r+"",e,t,o):qa,l=p===qa;l&&(f=kn(u),c=!f&&En(u),t=!f&&!c&&qn(u),p=u,f||c||t?p=kn(s)?s:jn(s)?ir(s):c?Qt(u,!(l=!1)):t?Jt(u,!(l=!1)):[]:Mn(u)||wn(u)?wn(p=s)?p=Zn(s):Cn(s)&&!In(s)||(p=$r(u)):l=!1),l&&(o.set(u,p),n(p,u,i,a,o),o.delete(u)),Pe(e,r,p)}(i,n,t,a,gt,o,s):(r=o?o(ni(i,t),e,t+"",i,n,s):qa,Pe(i,t,r=r===qa?e:r))},fa)}function bt(e,t){var r=e.length;if(r)return Wr(t+=t<0?r:0,r)?e[t]:qa}function yt(e,i,r){i=i.length?Ps(i,function(t){return kn(t)?function(e){return Qe(e,1===t.length?t[0]:t)}:t}):[Ra];var n=-1;return i=Ps(i,Hs(Nr())),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(ht(e,function(t,e,r){return{criteria:Ps(i,function(e){return e(t)}),index:++n,value:t}}),function(e,t){return function(e,t,r){var i=-1,n=e.criteria,a=t.criteria,o=n.length,s=r.length;for(;++i<o;){var u=er(n[i],a[i]);if(u){if(s<=i)return u;var c=r[i];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,r)})}function vt(e,t,r){for(var i=-1,n=t.length,a={};++i<n;){var o=t[i],s=Qe(e,o);r(s,o)&&At(a,Gt(o,e),s)}return a}function _t(e,t,r,i){var n=i?Ms:Fs,a=-1,o=t.length,s=e;for(e===t&&(t=ir(t)),r&&(s=Ps(e,Hs(r)));++a<o;)for(var u=0,c=t[a],f=r?r(c):c;-1<(u=n(s,f,u,i));)s!==e&&T.call(s,u,1),T.call(e,u,1);return e}function wt(e,t){for(var r=e?t.length:0,i=r-1;r--;){var n,a=t[r];r!=i&&a===n||(Wr(n=a)?T.call(e,a,1):Dt(e,a))}return e}function kt(e,t){return e+D(Z()*(t-e+1))}function xt(e,t){var r="";if(!e||t<1||Va<t)return r;for(;t%2&&(r+=e),(t=D(t/2))&&(e+=e),t;);return r}function St(e,t){return si(ri(e,t,Ra),e+"")}function jt(e){return je(ya(e))}function Et(e,t){e=ya(e);return fi(e,Fe(t,0,e.length))}function At(e,t,r,i){if(!Cn(e))return e;for(var n=-1,a=(t=Gt(t,e)).length,o=a-1,s=e;null!=s&&++n<a;){var u,c=di(t[n]),f=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;n!=o&&(u=s[c],(f=i?i(u,c,s):qa)===qa&&(f=Cn(u)?u:Wr(t[n+1])?[]:{})),Ie(s,c,f),s=s[c]}return e}var Pt=ie?function(e,t){return ie.set(e,t),e}:Ra,It=B?function(e,t){return B(e,"toString",{configurable:!0,enumerable:!1,value:Oa(t),writable:!0})}:Ra;function Tt(e){return fi(ya(e))}function Ot(e,t,r){var i=-1,n=e.length;(r=n<r?n:r)<0&&(r+=n),n=r<(t=t<0?n<-t?0:n+t:t)?0:r-t>>>0,t>>>=0;for(var a=x(n);++i<n;)a[i]=e[i+t];return a}function Ct(e,i){var n;return Le(e,function(e,t,r){return!(n=i(e,t,r))}),!!n}function Rt(e,t,r){var i=0,n=null==e?i:e.length;if("number"==typeof t&&t==t&&n<=2147483647){for(;i<n;){var a=i+n>>>1,o=e[a];null!==o&&!Ln(o)&&(r?o<=t:o<t)?i=1+a:n=a}return n}return Bt(e,t,Ra,r)}function Bt(e,t,r,i){var n=0,a=null==e?0:e.length;if(0===a)return 0;for(var o=(t=r(t))!=t,s=null===t,u=Ln(t),c=t===qa;n<a;){var f=D((n+a)/2),p=r(e[f]),l=p!==qa,h=null===p,d=p==p,m=Ln(p),p=o?i||d:c?d&&(i||l):s?d&&l&&(i||!h):u?d&&l&&!h&&(i||!m):!h&&!m&&(i?p<=t:p<t);p?n=f+1:a=f}return $(a,4294967294)}function Ft(e,t){for(var r=-1,i=e.length,n=0,a=[];++r<i;){var o,s=e[r],u=t?t(s):s;r&&yn(u,o)||(o=u,a[n++]=0===s?0:s)}return a}function Mt(e){return"number"==typeof e?e:Ln(e)?$a:+e}function zt(e){if("string"==typeof e)return e;if(kn(e))return Ps(e,zt)+"";if(Ln(e))return le?le.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Nt(e,t,r){var i=-1,n=Es,a=e.length,o=!0,s=[],u=s;if(r)o=!1,n=As;else if(200<=a){var c=t?null:jr(e);if(c)return tu(c);o=!1,n=Vs,u=new ke}else u=t?[]:s;e:for(;++i<a;){var f=e[i],p=t?t(f):f,f=r||0!==f?f:0;if(o&&p==p){for(var l=u.length;l--;)if(u[l]===p)continue e;t&&u.push(p),s.push(f)}else n(u,p,r)||(u!==s&&u.push(p),s.push(f))}return s}function Dt(e,t){return null==(e=ii(e,t=Gt(t,e)))||delete e[di(Ai(t))]}function Lt(e,t,r,i){return At(e,t,r(Qe(e,t)),i)}function qt(e,t,r,i){for(var n=e.length,a=i?n:-1;(i?a--:++a<n)&&t(e[a],a,e););return r?Ot(e,i?0:a,i?a+1:n):Ot(e,i?a+1:0,i?n:a)}function Ut(e,t){return Ts(t,function(e,t){return t.func.apply(t.thisArg,Is([e],t.args))},e=e instanceof ye?e.value():e)}function Ht(e,t,r){var i=e.length;if(i<2)return i?Nt(e[0]):[];for(var n=-1,a=x(i);++n<i;)for(var o=e[n],s=-1;++s<i;)s!=n&&(a[n]=De(a[n]||o,e[s],t,r));return Nt(Ve(a,1),t,r)}function Kt(e,t,r){for(var i=-1,n=e.length,a=t.length,o={};++i<n;){var s=i<a?t[i]:qa;r(o,e[i],s)}return o}function Vt(e){return jn(e)?e:[]}function $t(e){return"function"==typeof e?e:Ra}function Gt(e,t){return kn(e)?e:Yr(e,t)?[e]:hi(Yn(e))}var Wt=St;function Zt(e,t,r){var i=e.length;return r=r===qa?i:r,!t&&i<=r?e:Ot(e,t,r)}var Yt=F||function(e){return ls.clearTimeout(e)};function Qt(e,t){if(t)return e.slice();t=e.length,t=E?E(t):new e.constructor(t);return e.copy(t),t}function Xt(e){var t=new e.constructor(e.byteLength);return new j(t).set(new j(e)),t}function Jt(e,t){t=t?Xt(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function er(e,t){if(e!==t){var r=e!==qa,i=null===e,n=e==e,a=Ln(e),o=t!==qa,s=null===t,u=t==t,c=Ln(t);if(!s&&!c&&!a&&t<e||a&&o&&u&&!s&&!c||i&&o&&u||!r&&u||!n)return 1;if(!i&&!a&&!c&&e<t||c&&r&&n&&!i&&!a||s&&r&&n||!o&&n||!u)return-1}return 0}function tr(e,t,r,i){for(var n=-1,a=e.length,o=r.length,s=-1,u=t.length,c=V(a-o,0),f=x(u+c),p=!i;++s<u;)f[s]=t[s];for(;++n<o;)(p||n<a)&&(f[r[n]]=e[n]);for(;c--;)f[s++]=e[n++];return f}function rr(e,t,r,i){for(var n=-1,a=e.length,o=-1,s=r.length,u=-1,c=t.length,f=V(a-s,0),p=x(f+c),l=!i;++n<f;)p[n]=e[n];for(var h=n;++u<c;)p[h+u]=t[u];for(;++o<s;)(l||n<a)&&(p[h+r[o]]=e[n++]);return p}function ir(e,t){var r=-1,i=e.length;for(t=t||x(i);++r<i;)t[r]=e[r];return t}function nr(e,t,r,i){var n=!r;r=r||{};for(var a=-1,o=t.length;++a<o;){var s=t[a],u=i?i(r[s],e[s],s,r,e):qa;(n?Re:Ie)(r,s,u=u===qa?e[s]:u)}return r}function ar(n,a){return function(e,t){var r=kn(e)?ws:Oe,i=a?a():{};return r(e,n,Nr(t,2),i)}}function or(s){return St(function(e,t){var r=-1,i=t.length,n=1<i?t[i-1]:qa,a=2<i?t[2]:qa,n=3<s.length&&"function"==typeof n?(i--,n):qa;for(a&&Zr(t[0],t[1],a)&&(n=i<3?qa:n,i=1),e=m(e);++r<i;){var o=t[r];o&&s(e,o,r,n)}return e})}function sr(a,o){return function(e,t){if(null==e)return e;if(!Sn(e))return a(e,t);for(var r=e.length,i=o?r:-1,n=m(e);(o?i--:++i<r)&&!1!==t(n[i],i,n););return e}}function ur(u){return function(e,t,r){for(var i=-1,n=m(e),a=r(e),o=a.length;o--;){var s=a[u?o:++i];if(!1===t(n[s],s,n))break}return e}}function cr(i){return function(e){var t=Qs(e=Yn(e))?iu(e):qa,r=t?t[0]:e.charAt(0),e=t?Zt(t,1).join(""):e.slice(1);return r[i]()+e}}function fr(t){return function(e){return Ts(Ia(wa(e).replace(rs,"")),t,"")}}function pr(i){return function(){var e=arguments;switch(e.length){case 0:return new i;case 1:return new i(e[0]);case 2:return new i(e[0],e[1]);case 3:return new i(e[0],e[1],e[2]);case 4:return new i(e[0],e[1],e[2],e[3]);case 5:return new i(e[0],e[1],e[2],e[3],e[4]);case 6:return new i(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new i(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=de(i.prototype),r=i.apply(t,e);return Cn(r)?r:t}}function lr(a,o,s){var u=pr(a);return function e(){for(var t=arguments.length,r=x(t),i=t,n=zr(e);i--;)r[i]=arguments[i];n=t<3&&r[0]!==n&&r[t-1]!==n?[]:eu(r,n);return(t-=n.length)<s?xr(a,o,mr,e.placeholder,qa,r,n,qa,qa,s-t):_s(this&&this!==ls&&this instanceof e?u:a,this,r)}}function hr(a){return function(e,t,r){var i,n=m(e);Sn(e)||(i=Nr(t,3),e=ca(e),t=function(e){return i(n[e],e,n)});r=a(e,t,r);return-1<r?n[i?e[r]:r]:qa}}function dr(u){return Cr(function(n){var a=n.length,e=a,t=be.prototype.thru;for(u&&n.reverse();e--;){var r=n[e];if("function"!=typeof r)throw new k(Ua);t&&!s&&"wrapper"==Mr(r)&&(s=new be([],!0))}for(e=s?e:a;++e<a;)var i=Mr(r=n[e]),o="wrapper"==i?Fr(r):qa,s=o&&Qr(o[0])&&424==o[1]&&!o[4].length&&1==o[9]?s[Mr(o[0])].apply(s,o[3]):1==r.length&&Qr(r)?s[i]():s.thru(r);return function(){var e=arguments,t=e[0];if(s&&1==e.length&&kn(t))return s.plant(t).value();for(var r=0,i=a?n[r].apply(this,e):t;++r<a;)i=n[r].call(this,i);return i}})}function mr(s,u,c,f,p,l,h,d,m,g){var b=128&u,y=1&u,v=2&u,_=24&u,w=512&u,k=v?qa:pr(s);return function e(){for(var t,r=x(o=arguments.length),i=o;i--;)r[i]=arguments[i];if(_&&(t=function(e,t){for(var r=e.length,i=0;r--;)e[r]===t&&++i;return i}(r,a=zr(e))),f&&(r=tr(r,f,p,_)),l&&(r=rr(r,l,h,_)),o-=t,_&&o<g){var n=eu(r,a);return xr(s,u,mr,e.placeholder,c,r,n,d,m,g-o)}var a=y?c:this,n=v?a[s]:s,o=r.length;return d?r=function(e,t){for(var r=e.length,i=$(t.length,r),n=ir(e);i--;){var a=t[i];e[i]=Wr(a,r)?n[a]:qa}return e}(r,d):w&&1<o&&r.reverse(),b&&m<o&&(r.length=m),(n=this&&this!==ls&&this instanceof e?k||pr(n):n).apply(a,r)}}function gr(r,o){return function(e,t){return e=e,i=r,n=o(t),a={},We(e,function(e,t,r){i(a,n(e),t,r)}),a;var i,n,a}}function br(i,n){return function(e,t){var r;if(e===qa&&t===qa)return n;if(e!==qa&&(r=e),t!==qa){if(r===qa)return t;t="string"==typeof e||"string"==typeof t?(e=zt(e),zt(t)):(e=Mt(e),Mt(t)),r=i(e,t)}return r}}function yr(i){return Cr(function(e){return e=Ps(e,Hs(Nr())),St(function(t){var r=this;return i(e,function(e){return _s(e,r,t)})})})}function vr(e,t){var r=(t=t===qa?" ":zt(t)).length;if(r<2)return r?xt(t,e):t;r=xt(t,N(e/ru(t)));return Qs(t)?Zt(iu(r),0,e).join(""):r.slice(0,e)}function _r(s,e,u,c){var f=1&e,p=pr(s);return function e(){for(var t=-1,r=arguments.length,i=-1,n=c.length,a=x(n+r),o=this&&this!==ls&&this instanceof e?p:s;++i<n;)a[i]=c[i];for(;r--;)a[i++]=arguments[++t];return _s(o,f?u:this,a)}}function wr(i){return function(e,t,r){return r&&"number"!=typeof r&&Zr(e,t,r)&&(t=r=qa),e=Vn(e),t===qa?(t=e,e=0):t=Vn(t),function(e,t,r,i){for(var n=-1,a=V(N((t-e)/(r||1)),0),o=x(a);a--;)o[i?a:++n]=e,e+=r;return o}(e,t,r=r===qa?e<t?1:-1:Vn(r),i)}}function kr(r){return function(e,t){return"string"==typeof e&&"string"==typeof t||(e=Wn(e),t=Wn(t)),r(e,t)}}function xr(e,t,r,i,n,a,o,s,u,c){var f=8&t;t|=f?32:64,4&(t&=~(f?64:32))||(t&=-4);c=[e,t,n,f?a:qa,f?o:qa,f?qa:a,f?qa:o,s,u,c],r=r.apply(qa,c);return Qr(e)&&ai(r,c),r.placeholder=i,ui(r,e,t)}function Sr(e){var i=n[e];return function(e,t){if(e=Wn(e),(t=null==t?0:$($n(t),292))&&U(e)){var r=(Yn(e)+"e").split("e");return+((r=(Yn(i(r[0]+"e"+(+r[1]+t)))+"e").split("e"))[0]+"e"+(+r[1]-t))}return i(e)}}var jr=ee&&1/tu(new ee([,-0]))[1]==1/0?function(e){return new ee(e)}:Ma;function Er(a){return function(e){var t,r,i,n=Kr(e);return n==ro?Xs(e):n==so?(n=e,t=-1,r=Array(n.size),n.forEach(function(e){r[++t]=[e,e]}),r):Ps(a(i=e),function(e){return[e,i[e]]})}}function Ar(e,t,r,i,n,a,o,s){var u=2&t;if(!u&&"function"!=typeof e)throw new k(Ua);var c=i?i.length:0;c||(t&=-97,i=n=qa),o=o===qa?o:V($n(o),0),s=s===qa?s:$n(s),c-=n?n.length:0,64&t&&(d=i,m=n,i=n=qa);var f,p,l,h,d,m,g,b,y,v,_=u?qa:Fr(e),w=[e,t,r,i,n,d,m,a,o,s];return _&&(p=_,h=(f=w)[1],d=p[1],a=(m=h|d)<131,o=128==d&&8==h||128==d&&256==h&&f[7].length<=p[8]||384==d&&p[7].length<=p[8]&&8==h,(a||o)&&(1&d&&(f[2]=p[2],m|=1&h?0:4),(h=p[3])&&(l=f[3],f[3]=l?tr(l,h,p[4]):h,f[4]=l?eu(f[3],Ka):p[4]),(h=p[5])&&(l=f[5],f[5]=l?rr(l,h,p[6]):h,f[6]=l?eu(f[5],Ka):p[6]),(h=p[7])&&(f[7]=h),128&d&&(f[8]=null==f[8]?p[8]:$(f[8],p[8])),null==f[9]&&(f[9]=p[9]),f[0]=p[0],f[1]=m)),e=w[0],t=w[1],r=w[2],i=w[3],n=w[4],!(s=w[9]=w[9]===qa?u?0:e.length:V(w[9]-c,0))&&24&t&&(t&=-25),r=t&&1!=t?8==t||16==t?lr(e,t,s):32!=t&&33!=t||n.length?mr.apply(qa,w):_r(e,t,r,i):(b=r,y=1&t,v=pr(g=e),function e(){return(this&&this!==ls&&this instanceof e?v:g).apply(y?b:this,arguments)}),ui((_?Pt:ai)(r,w),e,t)}function Pr(e,t,r,i){return e===qa||yn(e,h[r])&&!y.call(i,r)?t:e}function Ir(e,t,r,i,n,a){return Cn(e)&&Cn(t)&&(a.set(t,e),gt(e,t,qa,Ir,a),a.delete(t)),e}function Tr(e){return Mn(e)?qa:e}function Or(e,t,r,i,n,a){var o=1&r,s=e.length,u=t.length;if(s!=u&&!(o&&s<u))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,l=2&r?new ke:qa;for(a.set(e,t),a.set(t,e);++f<s;){var h,d=e[f],m=t[f];if((h=i?o?i(m,d,f,t,e,a):i(d,m,f,e,t,a):h)!==qa){if(h)continue;p=!1;break}if(l){if(!Cs(t,function(e,t){return!Vs(l,t)&&(d===e||n(d,e,r,i,a))&&l.push(t)})){p=!1;break}}else if(d!==m&&!n(d,m,r,i,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function Cr(e){return si(ri(e,qa,ki),e+"")}function Rr(e){return Xe(e,ca,Ur)}function Br(e){return Xe(e,fa,Hr)}var Fr=ie?function(e){return ie.get(e)}:Ma;function Mr(e){for(var t=e.name+"",r=ne[t],i=y.call(ne,t)?r.length:0;i--;){var n=r[i],a=n.func;if(null==a||a==e)return n.name}return t}function zr(e){return(y.call(he,"placeholder")?he:e).placeholder}function Nr(){var e=(e=he.iteratee||Ba)===Ba?ct:e;return arguments.length?e(arguments[0],arguments[1]):e}function Dr(e,t){var r,i=e.__data__;return("string"==(e=_typeof(r=t))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function Lr(e){for(var t=ca(e),r=t.length;r--;){var i=t[r],n=e[i];t[r]=[i,n,ei(n)]}return t}function qr(e,t){t=t,t=null==(e=e)?qa:e[t];return ut(t)?t:qa}var Ur=L?function(t){return null==t?[]:(t=m(t),js(L(t),function(e){return I.call(t,e)}))}:Na,Hr=L?function(e){for(var t=[];e;)Is(t,Ur(e)),e=A(e);return t}:Na,Kr=Je;function Vr(e,t,r){for(var i=-1,n=(t=Gt(t,e)).length,a=!1;++i<n;){var o=di(t[i]);if(!(a=null!=e&&r(e,o)))break;e=e[o]}return a||++i!=n?a:!!(n=null==e?0:e.length)&&On(n)&&Wr(o,n)&&(kn(e)||wn(e))}function $r(e){return"function"!=typeof e.constructor||Jr(e)?{}:de(A(e))}function Gr(e){return kn(e)||wn(e)||!!(O&&e&&e[O])}function Wr(e,t){var r=_typeof(e);return!!(t=null==t?Va:t)&&("number"==r||"symbol"!=r&&Xo.test(e))&&-1<e&&e%1==0&&e<t}function Zr(e,t,r){if(Cn(r)){var i=_typeof(t);return("number"==i?Sn(r)&&Wr(t,r.length):"string"==i&&t in r)&&yn(r[t],e)}}function Yr(e,t){if(!kn(e)){var r=_typeof(e);return"number"==r||"symbol"==r||"boolean"==r||null==e||Ln(e)||(Bo.test(e)||!Ro.test(e)||null!=t&&e in m(t))}}function Qr(e){var t=Mr(e),r=he[t];if("function"==typeof r&&t in ye.prototype){if(e===r)return 1;r=Fr(r);return r&&e===r[0]}}(Q&&Kr(new Q(new ArrayBuffer(1)))!=lo||X&&Kr(new X)!=ro||J&&Kr(J.resolve())!=ao||ee&&Kr(new ee)!=so||te&&Kr(new te)!=fo)&&(Kr=function(e){var t=Je(e),e=t==no?e.constructor:qa,e=e?mi(e):"";if(e)switch(e){case ae:return lo;case oe:return ro;case se:return ao;case ue:return so;case ce:return fo}return t});var Xr=s?In:Da;function Jr(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||h)}function ei(e){return e==e&&!Cn(e)}function ti(t,r){return function(e){return null!=e&&(e[t]===r&&(r!==qa||t in m(e)))}}function ri(a,o,s){return o=V(o===qa?a.length-1:o,0),function(){for(var e=arguments,t=-1,r=V(e.length-o,0),i=x(r);++t<r;)i[t]=e[o+t];t=-1;for(var n=x(o+1);++t<o;)n[t]=e[t];return n[o]=s(i),_s(a,this,n)}}function ii(e,t){return t.length<2?e:Qe(e,Ot(t,0,-1))}function ni(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ai=ci(Pt),oi=z||function(e,t){return ls.setTimeout(e,t)},si=ci(It);function ui(e,t,r){var i,n,t=t+"";return si(e,function(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(1<r?"& ":"")+t[i],t=t.join(2<r?", ":" "),e.replace(qo,"{\n/* [wrapped with "+t+"] */\n")}(t,(i=(t=(t=t).match(Uo))?t[1].split(Ho):[],n=r,ks(Wa,function(e){var t="_."+e[0];n&e[1]&&!Es(i,t)&&i.push(t)}),i.sort())))}function ci(r){var i=0,n=0;return function(){var e=G(),t=16-(e-n);if(n=e,0<t){if(800<=++i)return arguments[0]}else i=0;return r.apply(qa,arguments)}}function fi(e,t){var r=-1,i=e.length,n=i-1;for(t=t===qa?i:t;++r<t;){var a=kt(r,n),o=e[a];e[a]=e[r],e[r]=o}return e.length=t,e}var pi,li,hi=(li=(pi=ln(pi=function(e){var n=[];return 46===e.charCodeAt(0)&&n.push(""),e.replace(Fo,function(e,t,r,i){n.push(r?i.replace(Vo,"$1"):t||e)}),n},function(e){return 500===li.size&&li.clear(),e})).cache,pi);function di(e){if("string"==typeof e||Ln(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function mi(e){if(null!=e){try{return u.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function gi(e){if(e instanceof ye)return e.clone();var t=new be(e.__wrapped__,e.__chain__);return t.__actions__=ir(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var bi=St(function(e,t){return jn(e)?De(e,Ve(t,1,jn,!0)):[]}),yi=St(function(e,t){var r=Ai(t);return jn(r)&&(r=qa),jn(e)?De(e,Ve(t,1,jn,!0),Nr(r,2)):[]}),vi=St(function(e,t){var r=Ai(t);return jn(r)&&(r=qa),jn(e)?De(e,Ve(t,1,jn,!0),qa,r):[]});function _i(e,t,r){var i=null==e?0:e.length;if(!i)return-1;r=null==r?0:$n(r);return r<0&&(r=V(i+r,0)),Bs(e,Nr(t,3),r)}function wi(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=i-1;return r!==qa&&(n=$n(r),n=r<0?V(i+n,0):$(n,i-1)),Bs(e,Nr(t,3),n,!0)}function ki(e){return(null==e?0:e.length)?Ve(e,1):[]}function xi(e){return e&&e.length?e[0]:qa}var Si=St(function(e){var t=Ps(e,Vt);return t.length&&t[0]===e[0]?it(t):[]}),ji=St(function(e){var t=Ai(e),r=Ps(e,Vt);return t===Ai(r)?t=qa:r.pop(),r.length&&r[0]===e[0]?it(r,Nr(t,2)):[]}),Ei=St(function(e){var t=Ai(e),r=Ps(e,Vt);return(t="function"==typeof t?t:qa)&&r.pop(),r.length&&r[0]===e[0]?it(r,qa,t):[]});function Ai(e){var t=null==e?0:e.length;return t?e[t-1]:qa}var Pi=St(Ii);function Ii(e,t){return e&&e.length&&t&&t.length?_t(e,t):e}var Ti=Cr(function(e,t){var r=null==e?0:e.length,i=Be(e,t);return wt(e,Ps(t,function(e){return Wr(e,r)?+e:e}).sort(er)),i});function Oi(e){return null==e?e:Y.call(e)}var Ci=St(function(e){return Nt(Ve(e,1,jn,!0))}),Ri=St(function(e){var t=Ai(e);return jn(t)&&(t=qa),Nt(Ve(e,1,jn,!0),Nr(t,2))}),Bi=St(function(e){var t="function"==typeof(t=Ai(e))?t:qa;return Nt(Ve(e,1,jn,!0),qa,t)});function Fi(t){if(!t||!t.length)return[];var r=0;return t=js(t,function(e){return jn(e)&&(r=V(e.length,r),1)}),Us(r,function(e){return Ps(t,Ds(e))})}function Mi(e,t){if(!e||!e.length)return[];e=Fi(e);return null==t?e:Ps(e,function(e){return _s(t,qa,e)})}var zi=St(function(e,t){return jn(e)?De(e,t):[]}),Ni=St(function(e){return Ht(js(e,jn))}),Di=St(function(e){var t=Ai(e);return jn(t)&&(t=qa),Ht(js(e,jn),Nr(t,2))}),Li=St(function(e){var t="function"==typeof(t=Ai(e))?t:qa;return Ht(js(e,jn),qa,t)}),qi=St(Fi);var Ui=St(function(e){var t=e.length,t="function"==typeof(t=1<t?e[t-1]:qa)?(e.pop(),t):qa;return Mi(e,t)});function Hi(e){e=he(e);return e.__chain__=!0,e}function Ki(e,t){return t(e)}var Vi=Cr(function(t){function e(e){return Be(e,t)}var r=t.length,i=r?t[0]:0,n=this.__wrapped__;return!(1<r||this.__actions__.length)&&n instanceof ye&&Wr(i)?((n=n.slice(i,+i+(r?1:0))).__actions__.push({func:Ki,args:[e],thisArg:qa}),new be(n,this.__chain__).thru(function(e){return r&&!e.length&&e.push(qa),e})):this.thru(e)});var $i=ar(function(e,t,r){y.call(e,r)?++e[r]:Re(e,r,1)});var Gi=hr(_i),Wi=hr(wi);function Zi(e,t){return(kn(e)?ks:Le)(e,Nr(t,3))}function Yi(e,t){return(kn(e)?xs:qe)(e,Nr(t,3))}var Qi=ar(function(e,t,r){y.call(e,r)?e[r].push(t):Re(e,r,[t])});var Xi=St(function(e,t,r){var i=-1,n="function"==typeof t,a=Sn(e)?x(e.length):[];return Le(e,function(e){a[++i]=n?_s(t,e,r):nt(e,t,r)}),a}),Ji=ar(function(e,t,r){Re(e,r,t)});function en(e,t){return(kn(e)?Ps:ht)(e,Nr(t,3))}var tn=ar(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var rn=St(function(e,t){if(null==e)return[];var r=t.length;return 1<r&&Zr(e,t[0],t[1])?t=[]:2<r&&Zr(t[0],t[1],t[2])&&(t=[t[0]]),yt(e,Ve(t,1),[])}),nn=M||function(){return ls.Date.now()};function an(e,t,r){return t=r?qa:t,t=e&&null==t?e.length:t,Ar(e,128,qa,qa,qa,qa,t)}function on(e,t){var r;if("function"!=typeof t)throw new k(Ua);return e=$n(e),function(){return 0<--e&&(r=t.apply(this,arguments)),e<=1&&(t=qa),r}}var sn=St(function(e,t,r){var i,n=1;return r.length&&(i=eu(r,zr(sn)),n|=32),Ar(e,n,t,r,i)}),un=St(function(e,t,r){var i,n=3;return r.length&&(i=eu(r,zr(un)),n|=32),Ar(t,n,e,r,i)});function cn(i,r,e){var n,a,o,s,u,c,f=0,p=!1,l=!1,t=!0;if("function"!=typeof i)throw new k(Ua);function h(e){var t=n,r=a;return n=a=qa,f=e,s=i.apply(r,t)}function d(e){var t=e-c;return c===qa||r<=t||t<0||l&&o<=e-f}function m(){var e,t=nn();if(d(t))return g(t);u=oi(m,(t=r-((e=t)-c),l?$(t,o-(e-f)):t))}function g(e){return u=qa,t&&n?h(e):(n=a=qa,s)}function b(){var e=nn(),t=d(e);if(n=arguments,a=this,c=e,t){if(u===qa)return f=t=c,u=oi(m,r),p?h(t):s;if(l)return Yt(u),u=oi(m,r),h(c)}return u===qa&&(u=oi(m,r)),s}return r=Wn(r)||0,Cn(e)&&(p=!!e.leading,l="maxWait"in e,o=l?V(Wn(e.maxWait)||0,r):o,t="trailing"in e?!!e.trailing:t),b.cancel=function(){u!==qa&&Yt(u),f=0,n=c=a=u=qa},b.flush=function(){return u===qa?s:g(nn())},b}var fn=St(function(e,t){return Ne(e,1,t)}),pn=St(function(e,t,r){return Ne(e,Wn(t)||0,r)});function ln(i,n){if("function"!=typeof i||null!=n&&"function"!=typeof n)throw new k(Ua);function a(){var e=arguments,t=n?n.apply(this,e):e[0],r=a.cache;return r.has(t)?r.get(t):(e=i.apply(this,e),a.cache=r.set(t,e)||r,e)}return a.cache=new(ln.Cache||we),a}function hn(t){if("function"!=typeof t)throw new k(Ua);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}ln.Cache=we;var dn=Wt(function(i,n){var a=(n=1==n.length&&kn(n[0])?Ps(n[0],Hs(Nr())):Ps(Ve(n,1),Hs(Nr()))).length;return St(function(e){for(var t=-1,r=$(e.length,a);++t<r;)e[t]=n[t].call(this,e[t]);return _s(i,this,e)})}),mn=St(function(e,t){var r=eu(t,zr(mn));return Ar(e,32,qa,t,r)}),gn=St(function(e,t){var r=eu(t,zr(gn));return Ar(e,64,qa,t,r)}),bn=Cr(function(e,t){return Ar(e,256,qa,qa,qa,t)});function yn(e,t){return e===t||e!=e&&t!=t}var vn=kr(et),_n=kr(function(e,t){return t<=e}),wn=at(function(){return arguments}())?at:function(e){return Rn(e)&&y.call(e,"callee")&&!I.call(e,"callee")},kn=x.isArray,xn=ds?Hs(ds):function(e){return Rn(e)&&Je(e)==po};function Sn(e){return null!=e&&On(e.length)&&!In(e)}function jn(e){return Rn(e)&&Sn(e)}var En=q||Da,An=ms?Hs(ms):function(e){return Rn(e)&&Je(e)==Xa};function Pn(e){if(!Rn(e))return!1;var t=Je(e);return t==Ja||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Mn(e)}function In(e){if(!Cn(e))return!1;e=Je(e);return e==eo||e==to||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Tn(e){return"number"==typeof e&&e==$n(e)}function On(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=Va}function Cn(e){var t=_typeof(e);return null!=e&&("object"==t||"function"==t)}function Rn(e){return null!=e&&"object"==_typeof(e)}var Bn=gs?Hs(gs):function(e){return Rn(e)&&Kr(e)==ro};function Fn(e){return"number"==typeof e||Rn(e)&&Je(e)==io}function Mn(e){if(!Rn(e)||Je(e)!=no)return!1;e=A(e);if(null===e)return!0;e=y.call(e,"constructor")&&e.constructor;return"function"==typeof e&&e instanceof e&&u.call(e)==b}var zn=bs?Hs(bs):function(e){return Rn(e)&&Je(e)==oo};var Nn=ys?Hs(ys):function(e){return Rn(e)&&Kr(e)==so};function Dn(e){return"string"==typeof e||!kn(e)&&Rn(e)&&Je(e)==uo}function Ln(e){return"symbol"==_typeof(e)||Rn(e)&&Je(e)==co}var qn=vs?Hs(vs):function(e){return Rn(e)&&On(e.length)&&!!us[Je(e)]};var Un=kr(lt),Hn=kr(function(e,t){return e<=t});function Kn(e){if(!e)return[];if(Sn(e))return(Dn(e)?iu:ir)(e);if(C&&e[C])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[C]());var t=Kr(e);return(t==ro?Xs:t==so?tu:ya)(e)}function Vn(e){return e?(e=Wn(e))!==1/0&&e!==-1/0?e==e?e:0:17976931348623157e292*(e<0?-1:1):0===e?e:0}function $n(e){var t=Vn(e),e=t%1;return t==t?e?t-e:t:0}function Gn(e){return e?Fe($n(e),0,Ga):0}function Wn(e){if("number"==typeof e)return e;if(Ln(e))return $a;if("string"!=typeof(e=Cn(e)?Cn(t="function"==typeof e.valueOf?e.valueOf():e)?t+"":t:e))return 0===e?e:+e;e=e.replace(No,"");var t=Zo.test(e);return t||Qo.test(e)?ps(e.slice(2),t?2:8):Wo.test(e)?$a:+e}function Zn(e){return nr(e,fa(e))}function Yn(e){return null==e?"":zt(e)}var Qn=or(function(e,t){if(Jr(t)||Sn(t))nr(t,ca(t),e);else for(var r in t)y.call(t,r)&&Ie(e,r,t[r])}),Xn=or(function(e,t){nr(t,fa(t),e)}),Jn=or(function(e,t,r,i){nr(t,fa(t),e,i)}),ea=or(function(e,t,r,i){nr(t,ca(t),e,i)}),ta=Cr(Be);var ra=St(function(e,t){e=m(e);var r=-1,i=t.length,n=2<i?t[2]:qa;for(n&&Zr(t[0],t[1],n)&&(i=1);++r<i;)for(var a=t[r],o=fa(a),s=-1,u=o.length;++s<u;){var c=o[s],f=e[c];(f===qa||yn(f,h[c])&&!y.call(e,c))&&(e[c]=a[c])}return e}),ia=St(function(e){return e.push(qa,Ir),_s(la,qa,e)});function na(e,t,r){t=null==e?qa:Qe(e,t);return t===qa?r:t}function aa(e,t){return null!=e&&Vr(e,t,rt)}var oa=gr(function(e,t,r){e[t=null!=t&&"function"!=typeof t.toString?g.call(t):t]=r},Oa(Ra)),sa=gr(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=g.call(t)),y.call(e,t)?e[t].push(r):e[t]=[r]},Nr),ua=St(nt);function ca(e){return(Sn(e)?Se:ft)(e)}function fa(e){return Sn(e)?Se(e,!0):pt(e)}var pa=or(function(e,t,r){gt(e,t,r)}),la=or(function(e,t,r,i){gt(e,t,r,i)}),ha=Cr(function(t,e){var r={};if(null==t)return r;var i=!1;e=Ps(e,function(e){return e=Gt(e,t),i=i||1<e.length,e}),nr(t,Br(t),r),i&&(r=Me(r,7,Tr));for(var n=e.length;n--;)Dt(r,e[n]);return r});var da=Cr(function(e,t){return null==e?{}:vt(r=e,t,function(e,t){return aa(r,t)});var r});function ma(e,r){if(null==e)return{};var t=Ps(Br(e),function(e){return[e]});return r=Nr(r),vt(e,t,function(e,t){return r(e,t[0])})}var ga=Er(ca),ba=Er(fa);function ya(e){return null==e?[]:Ks(e,ca(e))}var va=fr(function(e,t,r){return t=t.toLowerCase(),e+(r?_a(t):t)});function _a(e){return Pa(Yn(e).toLowerCase())}function wa(e){return(e=Yn(e))&&e.replace(Jo,Ws).replace(is,"")}var ka=fr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),xa=fr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Sa=cr("toLowerCase");var ja=fr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var Ea=fr(function(e,t,r){return e+(r?" ":"")+Pa(t)});var Aa=fr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Pa=cr("toUpperCase");function Ia(e,t,r){return e=Yn(e),(t=r?qa:t)===qa?(r=e,as.test(r)?e.match(ns)||[]:e.match(Ko)||[]):e.match(t)||[]}var Ta=St(function(e,t){try{return _s(e,qa,t)}catch(e){return Pn(e)?e:new i(e)}}),o=Cr(function(t,e){return ks(e,function(e){e=di(e),Re(t,e,sn(t[e],t))}),t});function Oa(e){return function(){return e}}var Ca=dr(),w=dr(!0);function Ra(e){return e}function Ba(e){return ct("function"==typeof e?e:Me(e,1))}r=St(function(t,r){return function(e){return nt(e,t,r)}}),t=St(function(t,r){return function(e){return nt(t,e,r)}});function Fa(i,t,e){var r=ca(t),n=Ye(t,r);null!=e||Cn(t)&&(n.length||!r.length)||(e=t,t=i,i=this,n=Ye(t,ca(t)));var a=!(Cn(e)&&"chain"in e&&!e.chain),o=In(i);return ks(n,function(e){var r=t[e];i[e]=r,o&&(i.prototype[e]=function(){var e=this.__chain__;if(a||e){var t=i(this.__wrapped__);return(t.__actions__=ir(this.__actions__)).push({func:r,args:arguments,thisArg:i}),t.__chain__=e,t}return r.apply(i,Is([this.value()],arguments))})}),i}function Ma(){}S=yr(Ps),fe=yr(Ss),F=yr(Cs);function za(e){return Yr(e)?Ds(di(e)):(t=e,function(e){return Qe(e,t)});var t}Q=wr(),J=wr(!0);function Na(){return[]}function Da(){return!1}te=br(function(e,t){return e+t},0),s=Sr("ceil"),z=br(function(e,t){return e/t},1),It=Sr("floor");var La,M=br(function(e,t){return e*t},1),Wt=Sr("round"),q=br(function(e,t){return e-t},0);return he.after=function(e,t){if("function"!=typeof t)throw new k(Ua);return e=$n(e),function(){if(--e<1)return t.apply(this,arguments)}},he.ary=an,he.assign=Qn,he.assignIn=Xn,he.assignInWith=Jn,he.assignWith=ea,he.at=ta,he.before=on,he.bind=sn,he.bindAll=o,he.bindKey=un,he.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return kn(e)?e:[e]},he.chain=Hi,he.chunk=function(e,t,r){t=(r?Zr(e,t,r):t===qa)?1:V($n(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var n=0,a=0,o=x(N(i/t));n<i;)o[a++]=Ot(e,n,n+=t);return o},he.compact=function(e){for(var t=-1,r=null==e?0:e.length,i=0,n=[];++t<r;){var a=e[t];a&&(n[i++]=a)}return n},he.concat=function(){var e=arguments.length;if(!e)return[];for(var t=x(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Is(kn(r)?ir(r):[r],Ve(t,1))},he.cond=function(i){var n=null==i?0:i.length,t=Nr();return i=n?Ps(i,function(e){if("function"!=typeof e[1])throw new k(Ua);return[t(e[0]),e[1]]}):[],St(function(e){for(var t=-1;++t<n;){var r=i[t];if(_s(r[0],this,e))return _s(r[1],this,e)}})},he.conforms=function(e){return t=Me(e,1),r=ca(t),function(e){return ze(e,t,r)};var t,r},he.constant=Oa,he.countBy=$i,he.create=function(e,t){return e=de(e),null==t?e:Ce(e,t)},he.curry=function e(t,r,i){r=Ar(t,8,qa,qa,qa,qa,qa,r=i?qa:r);return r.placeholder=e.placeholder,r},he.curryRight=function e(t,r,i){r=Ar(t,16,qa,qa,qa,qa,qa,r=i?qa:r);return r.placeholder=e.placeholder,r},he.debounce=cn,he.defaults=ra,he.defaultsDeep=ia,he.defer=fn,he.delay=pn,he.difference=bi,he.differenceBy=yi,he.differenceWith=vi,he.drop=function(e,t,r){var i=null==e?0:e.length;return i?Ot(e,(t=r||t===qa?1:$n(t))<0?0:t,i):[]},he.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?Ot(e,0,(t=i-(t=r||t===qa?1:$n(t)))<0?0:t):[]},he.dropRightWhile=function(e,t){return e&&e.length?qt(e,Nr(t,3),!0,!0):[]},he.dropWhile=function(e,t){return e&&e.length?qt(e,Nr(t,3),!0):[]},he.fill=function(e,t,r,i){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&Zr(e,t,r)&&(r=0,i=n),function(e,t,r,i){var n=e.length;for((r=$n(r))<0&&(r=n<-r?0:n+r),(i=i===qa||n<i?n:$n(i))<0&&(i+=n),i=i<r?0:Gn(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},he.filter=function(e,t){return(kn(e)?js:Ke)(e,Nr(t,3))},he.flatMap=function(e,t){return Ve(en(e,t),1)},he.flatMapDeep=function(e,t){return Ve(en(e,t),1/0)},he.flatMapDepth=function(e,t,r){return r=r===qa?1:$n(r),Ve(en(e,t),r)},he.flatten=ki,he.flattenDeep=function(e){return(null==e?0:e.length)?Ve(e,1/0):[]},he.flattenDepth=function(e,t){return(null==e?0:e.length)?Ve(e,t=t===qa?1:$n(t)):[]},he.flip=function(e){return Ar(e,512)},he.flow=Ca,he.flowRight=w,he.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,i={};++t<r;){var n=e[t];i[n[0]]=n[1]}return i},he.functions=function(e){return null==e?[]:Ye(e,ca(e))},he.functionsIn=function(e){return null==e?[]:Ye(e,fa(e))},he.groupBy=Qi,he.initial=function(e){return(null==e?0:e.length)?Ot(e,0,-1):[]},he.intersection=Si,he.intersectionBy=ji,he.intersectionWith=Ei,he.invert=oa,he.invertBy=sa,he.invokeMap=Xi,he.iteratee=Ba,he.keyBy=Ji,he.keys=ca,he.keysIn=fa,he.map=en,he.mapKeys=function(e,i){var n={};return i=Nr(i,3),We(e,function(e,t,r){Re(n,i(e,t,r),e)}),n},he.mapValues=function(e,i){var n={};return i=Nr(i,3),We(e,function(e,t,r){Re(n,t,i(e,t,r))}),n},he.matches=function(e){return dt(Me(e,1))},he.matchesProperty=function(e,t){return mt(e,Me(t,1))},he.memoize=ln,he.merge=pa,he.mergeWith=la,he.method=r,he.methodOf=t,he.mixin=Fa,he.negate=hn,he.nthArg=function(t){return t=$n(t),St(function(e){return bt(e,t)})},he.omit=ha,he.omitBy=function(e,t){return ma(e,hn(Nr(t)))},he.once=function(e){return on(2,e)},he.orderBy=function(e,t,r,i){return null==e?[]:yt(e,t=!kn(t)?null==t?[]:[t]:t,r=!kn(r=i?qa:r)?null==r?[]:[r]:r)},he.over=S,he.overArgs=dn,he.overEvery=fe,he.overSome=F,he.partial=mn,he.partialRight=gn,he.partition=tn,he.pick=da,he.pickBy=ma,he.property=za,he.propertyOf=function(t){return function(e){return null==t?qa:Qe(t,e)}},he.pull=Pi,he.pullAll=Ii,he.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?_t(e,t,Nr(r,2)):e},he.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?_t(e,t,qa,r):e},he.pullAt=Ti,he.range=Q,he.rangeRight=J,he.rearg=bn,he.reject=function(e,t){return(kn(e)?js:Ke)(e,hn(Nr(t,3)))},he.remove=function(e,t){var r=[];if(!e||!e.length)return r;var i=-1,n=[],a=e.length;for(t=Nr(t,3);++i<a;){var o=e[i];t(o,i,e)&&(r.push(o),n.push(i))}return wt(e,n),r},he.rest=function(e,t){if("function"!=typeof e)throw new k(Ua);return St(e,t=t===qa?t:$n(t))},he.reverse=Oi,he.sampleSize=function(e,t,r){return t=(r?Zr(e,t,r):t===qa)?1:$n(t),(kn(e)?Ee:Et)(e,t)},he.set=function(e,t,r){return null==e?e:At(e,t,r)},he.setWith=function(e,t,r,i){return i="function"==typeof i?i:qa,null==e?e:At(e,t,r,i)},he.shuffle=function(e){return(kn(e)?Ae:Tt)(e)},he.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r=r&&"number"!=typeof r&&Zr(e,t,r)?(t=0,i):(t=null==t?0:$n(t),r===qa?i:$n(r)),Ot(e,t,r)):[]},he.sortBy=rn,he.sortedUniq=function(e){return e&&e.length?Ft(e):[]},he.sortedUniqBy=function(e,t){return e&&e.length?Ft(e,Nr(t,2)):[]},he.split=function(e,t,r){return r&&"number"!=typeof r&&Zr(e,t,r)&&(t=r=qa),(r=r===qa?Ga:r>>>0)?(e=Yn(e))&&("string"==typeof t||null!=t&&!zn(t))&&!(t=zt(t))&&Qs(e)?Zt(iu(e),0,r):e.split(t,r):[]},he.spread=function(r,i){if("function"!=typeof r)throw new k(Ua);return i=null==i?0:V($n(i),0),St(function(e){var t=e[i],e=Zt(e,0,i);return t&&Is(e,t),_s(r,this,e)})},he.tail=function(e){var t=null==e?0:e.length;return t?Ot(e,1,t):[]},he.take=function(e,t,r){return e&&e.length?Ot(e,0,(t=r||t===qa?1:$n(t))<0?0:t):[]},he.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?Ot(e,(t=i-(t=r||t===qa?1:$n(t)))<0?0:t,i):[]},he.takeRightWhile=function(e,t){return e&&e.length?qt(e,Nr(t,3),!1,!0):[]},he.takeWhile=function(e,t){return e&&e.length?qt(e,Nr(t,3)):[]},he.tap=function(e,t){return t(e),e},he.throttle=function(e,t,r){var i=!0,n=!0;if("function"!=typeof e)throw new k(Ua);return Cn(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),cn(e,t,{leading:i,maxWait:t,trailing:n})},he.thru=Ki,he.toArray=Kn,he.toPairs=ga,he.toPairsIn=ba,he.toPath=function(e){return kn(e)?Ps(e,di):Ln(e)?[e]:ir(hi(Yn(e)))},he.toPlainObject=Zn,he.transform=function(e,i,n){var t,r=kn(e),a=r||En(e)||qn(e);return i=Nr(i,4),null==n&&(t=e&&e.constructor,n=a?r?new t:[]:Cn(e)&&In(t)?de(A(e)):{}),(a?ks:We)(e,function(e,t,r){return i(n,e,t,r)}),n},he.unary=function(e){return an(e,1)},he.union=Ci,he.unionBy=Ri,he.unionWith=Bi,he.uniq=function(e){return e&&e.length?Nt(e):[]},he.uniqBy=function(e,t){return e&&e.length?Nt(e,Nr(t,2)):[]},he.uniqWith=function(e,t){return t="function"==typeof t?t:qa,e&&e.length?Nt(e,qa,t):[]},he.unset=function(e,t){return null==e||Dt(e,t)},he.unzip=Fi,he.unzipWith=Mi,he.update=function(e,t,r){return null==e?e:Lt(e,t,$t(r))},he.updateWith=function(e,t,r,i){return i="function"==typeof i?i:qa,null==e?e:Lt(e,t,$t(r),i)},he.values=ya,he.valuesIn=function(e){return null==e?[]:Ks(e,fa(e))},he.without=zi,he.words=Ia,he.wrap=function(e,t){return mn($t(t),e)},he.xor=Ni,he.xorBy=Di,he.xorWith=Li,he.zip=qi,he.zipObject=function(e,t){return Kt(e||[],t||[],Ie)},he.zipObjectDeep=function(e,t){return Kt(e||[],t||[],At)},he.zipWith=Ui,he.entries=ga,he.entriesIn=ba,he.extend=Xn,he.extendWith=Jn,Fa(he,he),he.add=te,he.attempt=Ta,he.camelCase=va,he.capitalize=_a,he.ceil=s,he.clamp=function(e,t,r){return r===qa&&(r=t,t=qa),r!==qa&&(r=(r=Wn(r))==r?r:0),t!==qa&&(t=(t=Wn(t))==t?t:0),Fe(Wn(e),t,r)},he.clone=function(e){return Me(e,4)},he.cloneDeep=function(e){return Me(e,5)},he.cloneDeepWith=function(e,t){return Me(e,5,t="function"==typeof t?t:qa)},he.cloneWith=function(e,t){return Me(e,4,t="function"==typeof t?t:qa)},he.conformsTo=function(e,t){return null==t||ze(e,t,ca(t))},he.deburr=wa,he.defaultTo=function(e,t){return null==e||e!=e?t:e},he.divide=z,he.endsWith=function(e,t,r){e=Yn(e),t=zt(t);var i=e.length,i=r=r===qa?i:Fe($n(r),0,i);return 0<=(r-=t.length)&&e.slice(r,i)==t},he.eq=yn,he.escape=function(e){return(e=Yn(e))&&Io.test(e)?e.replace(Ao,Zs):e},he.escapeRegExp=function(e){return(e=Yn(e))&&zo.test(e)?e.replace(Mo,"\\$&"):e},he.every=function(e,t,r){return(kn(e)?Ss:Ue)(e,Nr(t=r&&Zr(e,t,r)?qa:t,3))},he.find=Gi,he.findIndex=_i,he.findKey=function(e,t){return Rs(e,Nr(t,3),We)},he.findLast=Wi,he.findLastIndex=wi,he.findLastKey=function(e,t){return Rs(e,Nr(t,3),Ze)},he.floor=It,he.forEach=Zi,he.forEachRight=Yi,he.forIn=function(e,t){return null==e?e:$e(e,Nr(t,3),fa)},he.forInRight=function(e,t){return null==e?e:Ge(e,Nr(t,3),fa)},he.forOwn=function(e,t){return e&&We(e,Nr(t,3))},he.forOwnRight=function(e,t){return e&&Ze(e,Nr(t,3))},he.get=na,he.gt=vn,he.gte=_n,he.has=function(e,t){return null!=e&&Vr(e,t,tt)},he.hasIn=aa,he.head=xi,he.identity=Ra,he.includes=function(e,t,r,i){return e=Sn(e)?e:ya(e),r=r&&!i?$n(r):0,i=e.length,r<0&&(r=V(i+r,0)),Dn(e)?r<=i&&-1<e.indexOf(t,r):!!i&&-1<Fs(e,t,r)},he.indexOf=function(e,t,r){var i=null==e?0:e.length;return i?(r=null==r?0:$n(r),Fs(e,t,r=r<0?V(i+r,0):r)):-1},he.inRange=function(e,t,r){return t=Vn(t),r===qa?(r=t,t=0):r=Vn(r),(e=e=Wn(e))>=$(t=t,r=r)&&e<V(t,r)},he.invoke=ua,he.isArguments=wn,he.isArray=kn,he.isArrayBuffer=xn,he.isArrayLike=Sn,he.isArrayLikeObject=jn,he.isBoolean=function(e){return!0===e||!1===e||Rn(e)&&Je(e)==Qa},he.isBuffer=En,he.isDate=An,he.isElement=function(e){return Rn(e)&&1===e.nodeType&&!Mn(e)},he.isEmpty=function(e){if(null==e)return!0;if(Sn(e)&&(kn(e)||"string"==typeof e||"function"==typeof e.splice||En(e)||qn(e)||wn(e)))return!e.length;var t,r=Kr(e);if(r==ro||r==so)return!e.size;if(Jr(e))return!ft(e).length;for(t in e)if(y.call(e,t))return!1;return!0},he.isEqual=function(e,t){return ot(e,t)},he.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:qa)?r(e,t):qa;return i===qa?ot(e,t,qa,r):!!i},he.isError=Pn,he.isFinite=function(e){return"number"==typeof e&&U(e)},he.isFunction=In,he.isInteger=Tn,he.isLength=On,he.isMap=Bn,he.isMatch=function(e,t){return e===t||st(e,t,Lr(t))},he.isMatchWith=function(e,t,r){return r="function"==typeof r?r:qa,st(e,t,Lr(t),r)},he.isNaN=function(e){return Fn(e)&&e!=+e},he.isNative=function(e){if(Xr(e))throw new i("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ut(e)},he.isNil=function(e){return null==e},he.isNull=function(e){return null===e},he.isNumber=Fn,he.isObject=Cn,he.isObjectLike=Rn,he.isPlainObject=Mn,he.isRegExp=zn,he.isSafeInteger=function(e){return Tn(e)&&-Va<=e&&e<=Va},he.isSet=Nn,he.isString=Dn,he.isSymbol=Ln,he.isTypedArray=qn,he.isUndefined=function(e){return e===qa},he.isWeakMap=function(e){return Rn(e)&&Kr(e)==fo},he.isWeakSet=function(e){return Rn(e)&&"[object WeakSet]"==Je(e)},he.join=function(e,t){return null==e?"":H.call(e,t)},he.kebabCase=ka,he.last=Ai,he.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=i;return r!==qa&&(n=(n=$n(r))<0?V(i+n,0):$(n,i-1)),t==t?function(e,t,r){for(var i=r+1;i--;)if(e[i]===t)return i;return i}(e,t,n):Bs(e,zs,n,!0)},he.lowerCase=xa,he.lowerFirst=Sa,he.lt=Un,he.lte=Hn,he.max=function(e){return e&&e.length?He(e,Ra,et):qa},he.maxBy=function(e,t){return e&&e.length?He(e,Nr(t,2),et):qa},he.mean=function(e){return Ns(e,Ra)},he.meanBy=function(e,t){return Ns(e,Nr(t,2))},he.min=function(e){return e&&e.length?He(e,Ra,lt):qa},he.minBy=function(e,t){return e&&e.length?He(e,Nr(t,2),lt):qa},he.stubArray=Na,he.stubFalse=Da,he.stubObject=function(){return{}},he.stubString=function(){return""},he.stubTrue=function(){return!0},he.multiply=M,he.nth=function(e,t){return e&&e.length?bt(e,$n(t)):qa},he.noConflict=function(){return ls._===this&&(ls._=v),this},he.noop=Ma,he.now=nn,he.pad=function(e,t,r){e=Yn(e);var i=(t=$n(t))?ru(e):0;return!t||t<=i?e:vr(D(i=(t-i)/2),r)+e+vr(N(i),r)},he.padEnd=function(e,t,r){e=Yn(e);var i=(t=$n(t))?ru(e):0;return t&&i<t?e+vr(t-i,r):e},he.padStart=function(e,t,r){e=Yn(e);var i=(t=$n(t))?ru(e):0;return t&&i<t?vr(t-i,r)+e:e},he.parseInt=function(e,t,r){return t=r||null==t?0:t&&+t,W(Yn(e).replace(Do,""),t||0)},he.random=function(e,t,r){var i;if(r&&"boolean"!=typeof r&&Zr(e,t,r)&&(t=r=qa),r===qa&&("boolean"==typeof t?(r=t,t=qa):"boolean"==typeof e&&(r=e,e=qa)),e===qa&&t===qa?(e=0,t=1):(e=Vn(e),t===qa?(t=e,e=0):t=Vn(t)),t<e&&(i=e,e=t,t=i),r||e%1||t%1){r=Z();return $(e+r*(t-e+fs("1e-"+((r+"").length-1))),t)}return kt(e,t)},he.reduce=function(e,t,r){var i=kn(e)?Ts:Ls,n=arguments.length<3;return i(e,Nr(t,4),r,n,Le)},he.reduceRight=function(e,t,r){var i=kn(e)?Os:Ls,n=arguments.length<3;return i(e,Nr(t,4),r,n,qe)},he.repeat=function(e,t,r){return t=(r?Zr(e,t,r):t===qa)?1:$n(t),xt(Yn(e),t)},he.replace=function(){var e=arguments,t=Yn(e[0]);return e.length<3?t:t.replace(e[1],e[2])},he.result=function(e,t,r){var i=-1,n=(t=Gt(t,e)).length;for(n||(n=1,e=qa);++i<n;){var a=null==e?qa:e[di(t[i])];a===qa&&(i=n,a=r),e=In(a)?a.call(e):a}return e},he.round=Wt,he.runInContext=e,he.sample=function(e){return(kn(e)?je:jt)(e)},he.size=function(e){if(null==e)return 0;if(Sn(e))return Dn(e)?ru(e):e.length;var t=Kr(e);return t==ro||t==so?e.size:ft(e).length},he.snakeCase=ja,he.some=function(e,t,r){return(kn(e)?Cs:Ct)(e,Nr(t=r&&Zr(e,t,r)?qa:t,3))},he.sortedIndex=function(e,t){return Rt(e,t)},he.sortedIndexBy=function(e,t,r){return Bt(e,t,Nr(r,2))},he.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var i=Rt(e,t);if(i<r&&yn(e[i],t))return i}return-1},he.sortedLastIndex=function(e,t){return Rt(e,t,!0)},he.sortedLastIndexBy=function(e,t,r){return Bt(e,t,Nr(r,2),!0)},he.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=Rt(e,t,!0)-1;if(yn(e[r],t))return r}return-1},he.startCase=Ea,he.startsWith=function(e,t,r){return e=Yn(e),r=null==r?0:Fe($n(r),0,e.length),t=zt(t),e.slice(r,r+t.length)==t},he.subtract=q,he.sum=function(e){return e&&e.length?qs(e,Ra):0},he.sumBy=function(e,t){return e&&e.length?qs(e,Nr(t,2)):0},he.template=function(o,e,t){var r=he.templateSettings;t&&Zr(o,e,t)&&(e=qa),o=Yn(o),e=Jn({},e,r,Pr);var s,u,i=ca(r=Jn({},e.imports,r.imports,Pr)),n=Ks(r,i),c=0,r=e.interpolate||es,f="__p += '",r=l((e.escape||es).source+"|"+r.source+"|"+(r===Co?$o:es).source+"|"+(e.evaluate||es).source+"|$","g"),a="//# sourceURL="+(y.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ss+"]")+"\n";if(o.replace(r,function(e,t,r,i,n,a){return r=r||i,f+=o.slice(c,a).replace(ts,Ys),t&&(s=!0,f+="' +\n__e("+t+") +\n'"),n&&(u=!0,f+="';\n"+n+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=a+e.length,e}),f+="';\n",(e=y.call(e,"variable")&&e.variable)||(f="with (obj) {\n"+f+"\n}\n"),f=(u?f.replace(xo,""):f).replace(So,"$1").replace(jo,"$1;"),f="function("+(e||"obj")+") {\n"+(e?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}",(e=Ta(function(){return p(i,a+"return "+f).apply(qa,n)})).source=f,Pn(e))throw e;return e},he.times=function(e,t){if((e=$n(e))<1||Va<e)return[];var r=Ga,i=$(e,Ga);for(t=Nr(t),e-=Ga,i=Us(i,t);++r<e;)t(r);return i},he.toFinite=Vn,he.toInteger=$n,he.toLength=Gn,he.toLower=function(e){return Yn(e).toLowerCase()},he.toNumber=Wn,he.toSafeInteger=function(e){return e?Fe($n(e),-Va,Va):0===e?e:0},he.toString=Yn,he.toUpper=function(e){return Yn(e).toUpperCase()},he.trim=function(e,t,r){return(e=Yn(e))&&(r||t===qa)?e.replace(No,""):e&&(t=zt(t))?(e=iu(e),t=iu(t),Zt(e,$s(e,t),Gs(e,t)+1).join("")):e},he.trimEnd=function(e,t,r){return(e=Yn(e))&&(r||t===qa)?e.replace(Lo,""):e&&(t=zt(t))?Zt(e=iu(e),0,Gs(e,iu(t))+1).join(""):e},he.trimStart=function(e,t,r){return(e=Yn(e))&&(r||t===qa)?e.replace(Do,""):e&&(t=zt(t))?Zt(e=iu(e),$s(e,iu(t))).join(""):e},he.truncate=function(e,t){var r,i=30,n="...";Cn(t)&&(r="separator"in t?t.separator:r,i="length"in t?$n(t.length):i,n="omission"in t?zt(t.omission):n);var a,t=(e=Yn(e)).length;if((t=Qs(e)?(a=iu(e)).length:t)<=i)return e;if((t=i-ru(n))<1)return n;if(i=a?Zt(a,0,t).join(""):e.slice(0,t),r===qa)return i+n;if(a&&(t+=i.length-t),zn(r)){if(e.slice(t).search(r)){var o,s=i;for((r=!r.global?l(r.source,Yn(Go.exec(r))+"g"):r).lastIndex=0;o=r.exec(s);)var u=o.index;i=i.slice(0,u===qa?t:u)}}else e.indexOf(zt(r),t)==t||-1<(t=i.lastIndexOf(r))&&(i=i.slice(0,t));return i+n},he.unescape=function(e){return(e=Yn(e))&&Po.test(e)?e.replace(Eo,nu):e},he.uniqueId=function(e){var t=++c;return Yn(e)+t},he.upperCase=Aa,he.upperFirst=Pa,he.each=Zi,he.eachRight=Yi,he.first=xi,Fa(he,(La={},We(he,function(e,t){y.call(he.prototype,t)||(La[t]=e)}),La),{chain:!1}),he.VERSION="4.17.20",ks(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){he[e].placeholder=he}),ks(["drop","take"],function(r,i){ye.prototype[r]=function(e){e=e===qa?1:V($n(e),0);var t=this.__filtered__&&!i?new ye(this):this.clone();return t.__filtered__?t.__takeCount__=$(e,t.__takeCount__):t.__views__.push({size:$(e,Ga),type:r+(t.__dir__<0?"Right":"")}),t},ye.prototype[r+"Right"]=function(e){return this.reverse()[r](e).reverse()}}),ks(["filter","map","takeWhile"],function(e,t){var r=t+1,i=1==r||3==r;ye.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Nr(e,3),type:r}),t.__filtered__=t.__filtered__||i,t}}),ks(["head","last"],function(e,t){var r="take"+(t?"Right":"");ye.prototype[e]=function(){return this[r](1).value()[0]}}),ks(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");ye.prototype[e]=function(){return this.__filtered__?new ye(this):this[r](1)}}),ye.prototype.compact=function(){return this.filter(Ra)},ye.prototype.find=function(e){return this.filter(e).head()},ye.prototype.findLast=function(e){return this.reverse().find(e)},ye.prototype.invokeMap=St(function(t,r){return"function"==typeof t?new ye(this):this.map(function(e){return nt(e,t,r)})}),ye.prototype.reject=function(e){return this.filter(hn(Nr(e)))},ye.prototype.slice=function(e,t){e=$n(e);var r=this;return r.__filtered__&&(0<e||t<0)?new ye(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),r=t!==qa?(t=$n(t))<0?r.dropRight(-t):r.take(t-e):r)},ye.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ye.prototype.toArray=function(){return this.take(Ga)},We(ye.prototype,function(c,e){var f=/^(?:filter|find|map|reject)|While$/.test(e),p=/^(?:head|last)$/.test(e),l=he[p?"take"+("last"==e?"Right":""):e],h=p||/^find/.test(e);l&&(he.prototype[e]=function(){function e(e){return e=l.apply(he,Is([e],r)),p&&o?e[0]:e}var t=this.__wrapped__,r=p?[1]:arguments,i=t instanceof ye,n=r[0],a=i||kn(t);a&&f&&"function"==typeof n&&1!=n.length&&(i=a=!1);var o=this.__chain__,s=!!this.__actions__.length,n=h&&!o,s=i&&!s;if(h||!a)return n&&s?c.apply(this,r):(u=this.thru(e),n?p?u.value()[0]:u.value():u);t=s?t:new ye(this);var u=c.apply(t,r);return u.__actions__.push({func:Ki,args:[e],thisArg:qa}),new be(u,o)})}),ks(["pop","push","shift","sort","splice","unshift"],function(e){var r=a[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);he.prototype[e]=function(){var t=arguments;if(!n||this.__chain__)return this[i](function(e){return r.apply(kn(e)?e:[],t)});var e=this.value();return r.apply(kn(e)?e:[],t)}}),We(ye.prototype,function(e,t){var r,i=he[t];i&&(r=i.name+"",y.call(ne,r)||(ne[r]=[]),ne[r].push({name:t,func:i}))}),ne[mr(qa,2).name]=[{name:"wrapper",func:qa}],ye.prototype.clone=function(){var e=new ye(this.__wrapped__);return e.__actions__=ir(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ir(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ir(this.__views__),e},ye.prototype.reverse=function(){var e;return this.__filtered__?((e=new ye(this)).__dir__=-1,e.__filtered__=!0):(e=this.clone()).__dir__*=-1,e},ye.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=kn(e),i=t<0,n=r?e.length:0,a=function(e,t,r){var i=-1,n=r.length;for(;++i<n;){var a=r[i],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=$(t,e+o);break;case"takeRight":e=V(e,t-o)}}return{start:e,end:t}}(0,n,this.__views__),o=a.start,s=(a=a.end)-o,u=i?a:o-1,c=this.__iteratees__,f=c.length,p=0,l=$(s,this.__takeCount__);if(!r||!i&&n==s&&l==s)return Ut(e,this.__actions__);var h=[];e:for(;s--&&p<l;){for(var d=-1,m=e[u+=t];++d<f;){var g=c[d],b=g.iteratee,g=g.type,b=b(m);if(2==g)m=b;else if(!b){if(1==g)continue e;break e}}h[p++]=m}return h},he.prototype.at=Vi,he.prototype.chain=function(){return Hi(this)},he.prototype.commit=function(){return new be(this.value(),this.__chain__)},he.prototype.next=function(){this.__values__===qa&&(this.__values__=Kn(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?qa:this.__values__[this.__index__++]}},he.prototype.plant=function(e){for(var t,r=this;r instanceof ge;){var i=gi(r);i.__index__=0,i.__values__=qa,t?n.__wrapped__=i:t=i;var n=i,r=r.__wrapped__}return n.__wrapped__=e,t},he.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ye){e=e;return(e=(e=this.__actions__.length?new ye(this):e).reverse()).__actions__.push({func:Ki,args:[Oi],thisArg:qa}),new be(e,this.__chain__)}return this.thru(Oi)},he.prototype.toJSON=he.prototype.valueOf=he.prototype.value=function(){return Ut(this.__wrapped__,this.__actions__)},he.prototype.first=he.prototype.head,C&&(he.prototype[C]=function(){return this}),he}();"function"==typeof B&&"object"==_typeof(B.amd)&&B.amd?(ls._=au,B(function(){return au})):x?((x.exports=au)._=au,a._=au):ls._=au}).call(this)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],319:[function(e,t,r){"use strict";var i=e("inherits"),n=e("hash-base"),a=e("safe-buffer").Buffer,o=new Array(16);function s(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<<t|e>>>32-t}function c(e,t,r,i,n,a,o){return u(e+(t&r|~t&i)+n+a|0,o)+t|0}function f(e,t,r,i,n,a,o){return u(e+(t&i|r&~i)+n+a|0,o)+t|0}function p(e,t,r,i,n,a,o){return u(e+(t^r^i)+n+a|0,o)+t|0}function l(e,t,r,i,n,a,o){return u(e+(r^(t|~i))+n+a|0,o)+t|0}i(s,n),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=c(r=this._a,a=this._b,n=this._c,i=this._d,e[0],3614090360,7),i=c(i,r,a,n,e[1],3905402710,12),n=c(n,i,r,a,e[2],606105819,17),a=c(a,n,i,r,e[3],3250441966,22);r=c(r,a,n,i,e[4],4118548399,7),i=c(i,r,a,n,e[5],1200080426,12),n=c(n,i,r,a,e[6],2821735955,17),a=c(a,n,i,r,e[7],4249261313,22),r=c(r,a,n,i,e[8],1770035416,7),i=c(i,r,a,n,e[9],2336552879,12),n=c(n,i,r,a,e[10],4294925233,17),a=c(a,n,i,r,e[11],2304563134,22),r=c(r,a,n,i,e[12],1804603682,7),i=c(i,r,a,n,e[13],4254626195,12),n=c(n,i,r,a,e[14],2792965006,17),r=f(r,a=c(a,n,i,r,e[15],1236535329,22),n,i,e[1],4129170786,5),i=f(i,r,a,n,e[6],3225465664,9),n=f(n,i,r,a,e[11],643717713,14),a=f(a,n,i,r,e[0],3921069994,20),r=f(r,a,n,i,e[5],3593408605,5),i=f(i,r,a,n,e[10],38016083,9),n=f(n,i,r,a,e[15],3634488961,14),a=f(a,n,i,r,e[4],3889429448,20),r=f(r,a,n,i,e[9],568446438,5),i=f(i,r,a,n,e[14],3275163606,9),n=f(n,i,r,a,e[3],4107603335,14),a=f(a,n,i,r,e[8],1163531501,20),r=f(r,a,n,i,e[13],2850285829,5),i=f(i,r,a,n,e[2],4243563512,9),n=f(n,i,r,a,e[7],1735328473,14),r=p(r,a=f(a,n,i,r,e[12],2368359562,20),n,i,e[5],4294588738,4),i=p(i,r,a,n,e[8],2272392833,11),n=p(n,i,r,a,e[11],1839030562,16),a=p(a,n,i,r,e[14],4259657740,23),r=p(r,a,n,i,e[1],2763975236,4),i=p(i,r,a,n,e[4],1272893353,11),n=p(n,i,r,a,e[7],4139469664,16),a=p(a,n,i,r,e[10],3200236656,23),r=p(r,a,n,i,e[13],681279174,4),i=p(i,r,a,n,e[0],3936430074,11),n=p(n,i,r,a,e[3],3572445317,16),a=p(a,n,i,r,e[6],76029189,23),r=p(r,a,n,i,e[9],3654602809,4),i=p(i,r,a,n,e[12],3873151461,11),n=p(n,i,r,a,e[15],530742520,16),r=l(r,a=p(a,n,i,r,e[2],3299628645,23),n,i,e[0],4096336452,6),i=l(i,r,a,n,e[7],1126891415,10),n=l(n,i,r,a,e[14],2878612391,15),a=l(a,n,i,r,e[5],4237533241,21),r=l(r,a,n,i,e[12],1700485571,6),i=l(i,r,a,n,e[3],2399980690,10),n=l(n,i,r,a,e[10],4293915773,15),a=l(a,n,i,r,e[1],2240044497,21),r=l(r,a,n,i,e[8],1873313359,6),i=l(i,r,a,n,e[15],4264355552,10),n=l(n,i,r,a,e[6],2734768916,15),a=l(a,n,i,r,e[13],1309151649,21),r=l(r,a,n,i,e[4],4149444226,6),i=l(i,r,a,n,e[11],3174756917,10),n=l(n,i,r,a,e[2],718787259,15),a=l(a,n,i,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+a|0,this._c=this._c+n|0,this._d=this._d+i|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=s},{"hash-base":258,inherits:296,"safe-buffer":421}],320:[function(e,t,r){var h=e("bn.js"),i=e("brorand");function n(e){this.rand=e||new i.Rand}(t.exports=n).create=function(e){return new n(e)},n.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new h(this.rand.generate(r))}while(0<=i.cmp(e));return i},n.prototype._randrange=function(e,t){t=t.sub(e);return e.add(this._randbelow(t))},n.prototype.test=function(e,t,r){var i=e.bitLength(),n=h.mont(e),a=new h(1).toRed(n);t=t||Math.max(1,i/48|0);for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var u=e.shrn(s),c=o.toRed(n);0<t;t--){var f=this._randrange(new h(2),o);r&&r(f);var p=f.toRed(n).redPow(u);if(0!==p.cmp(a)&&0!==p.cmp(c)){for(var l=1;l<s;l++){if(0===(p=p.redSqr()).cmp(a))return!1;if(0===p.cmp(c))break}if(l===s)return!1}}return!0},n.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=h.mont(e),n=new h(1).toRed(i);t=t||Math.max(1,r/48|0);for(var a=e.subn(1),o=0;!a.testn(o);o++);for(var s=e.shrn(o),u=a.toRed(i);0<t;t--){var c=this._randrange(new h(2),a),f=e.gcd(c);if(0!==f.cmpn(1))return f;var p=c.toRed(i).redPow(s);if(0!==p.cmp(n)&&0!==p.cmp(u)){for(var l=1;l<o;l++){if(0===(p=p.redSqr()).cmp(n))return p.fromRed().subn(1).gcd(e);if(0===p.cmp(u))break}if(l===o)return(p=p.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":129,brorand:131}],321:[function(e,t,r){t.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["ecma","es"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/mrb-publish+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana"},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana"},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana"},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana"},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana"},"image/avcs":{source:"iana"},"image/avif":{compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana"},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}},{}],322:[function(e,t,r){t.exports=e("./db.json")},{"./db.json":321}],323:[function(e,t,r){"use strict";var s,u,c,f=e("mime-db"),i=e("path").extname,n=/^\s*([^;\s]*)(?:;|\s|$)/,a=/^text\//i;function o(e){if(!e||"string"!=typeof e)return!1;var t=n.exec(e),e=t&&f[t[1].toLowerCase()];return e&&e.charset?e.charset:!(!t||!a.test(t[1]))&&"UTF-8"}r.charset=o,r.charsets={lookup:o},r.contentType=function(e){if(!e||"string"!=typeof e)return!1;var t=-1===e.indexOf("/")?r.lookup(e):e;if(!t)return!1;-1!==t.indexOf("charset")||(e=r.charset(t))&&(t+="; charset="+e.toLowerCase());return t},r.extension=function(e){if(!e||"string"!=typeof e)return!1;e=n.exec(e),e=e&&r.extensions[e[1].toLowerCase()];return!(!e||!e.length)&&e[0]},r.extensions=Object.create(null),r.lookup=function(e){if(!e||"string"!=typeof e)return!1;e=i("x."+e).toLowerCase().substr(1);return e&&r.types[e]||!1},r.types=Object.create(null),s=r.extensions,u=r.types,c=["nginx","apache",void 0,"iana"],Object.keys(f).forEach(function(e){var t=f[e],r=t.extensions;if(r&&r.length){s[e]=r;for(var i=0;i<r.length;i++){var n=r[i];if(u[n]){var a=c.indexOf(f[u[n]].source),o=c.indexOf(t.source);if("application/octet-stream"!==u[n]&&(o<a||a===o&&"application/"===u[n].substr(0,12)))continue}u[n]=e}}})},{"mime-db":322,path:345}],324:[function(e,t,r){function i(e,t){if(!e)throw new Error(t||"Assertion failed")}(t.exports=i).equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},{}],325:[function(e,t,r){"use strict";function i(e){return 1===e.length?"0"+e:e}function n(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var i=0;i<e.length;i++)r[i]=0|e[i];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(i=0;i<e.length;i++){var n=e.charCodeAt(i),a=n>>8,n=255&n;a?r.push(a,n):r.push(n)}return r},r.zero2=i,r.toHex=n,r.encode=function(e,t){return"hex"===t?n(e):e}},{}],326:[function(e,t,r){(t.exports=o).Minimatch=n;var u={sep:"/"};try{u=e("path")}catch(e){}var B=o.GLOBSTAR=n.GLOBSTAR={},i=e("brace-expansion"),F={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},M="[^/]*?",z="().*{}+?[]^$\\!".split("").reduce(function(e,t){return e[t]=!0,e},{});var c=/\/+/;function a(t,r){t=t||{},r=r||{};var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),Object.keys(t).forEach(function(e){i[e]=t[e]}),i}function o(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return!(!(r=r||{}).nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new n(t,r).match(e))}function n(e,t){if(!(this instanceof n))return new n(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t=t||{},e=e.trim(),"/"!==u.sep&&(e=e.split(u.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function s(e,t){if(t=t||(this instanceof n?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:i(e)}o.filter=function(i,n){return n=n||{},function(e,t,r){return o(e,i,n)}},o.defaults=function(i){if(!i||!Object.keys(i).length)return o;function e(e,t,r){return n.minimatch(e,t,a(i,r))}var n=o;return e.Minimatch=function(e,t){return new n.Minimatch(e,a(i,t))},e},n.defaults=function(e){return e&&Object.keys(e).length?o.defaults(e).Minimatch:n},n.prototype.debug=function(){},n.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();e=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,e),e=this.globParts=e.map(function(e){return e.split(c)}),this.debug(this.pattern,e),e=e.map(function(e,t,r){return e.map(this.parse,this)},this),this.debug(this.pattern,e),e=e.filter(function(e){return-1===e.indexOf(!1)}),this.debug(this.pattern,e),this.set=e},n.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=this.options,i=0;if(r.nonegate)return;for(var n=0,a=e.length;n<a&&"!"===e.charAt(n);n++)t=!t,i++;i&&(this.pattern=e.substr(i));this.negate=t},o.braceExpand=function(e,t){return s(e,t)},n.prototype.braceExpand=s,n.prototype.parse=function(e,t){if(65536<e.length)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return B;if(""===e)return"";var i,n="",a=!!r.nocase,o=!1,s=[],u=[],c=!1,f=-1,p=-1,l="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",h=this;function d(){if(i){switch(i){case"*":n+=M,a=!0;break;case"?":n+="[^/]",a=!0;break;default:n+="\\"+i}h.debug("clearStateChar %j %j",i,n),i=!1}}for(var m,g=0,b=e.length;g<b&&(m=e.charAt(g));g++)if(this.debug("%s\t%s %s %j",e,g,n,m),o&&z[m])n+="\\"+m,o=!1;else switch(m){case"/":return!1;case"\\":d(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,g,n,m),c){this.debug(" in class"),n+=m="!"===m&&g===p+1?"^":m;continue}h.debug("call clearStateChar %j",i),d(),i=m,r.noext&&d();continue;case"(":if(c){n+="(";continue}if(!i){n+="\\(";continue}s.push({type:i,start:g-1,reStart:n.length,open:F[i].open,close:F[i].close}),n+="!"===i?"(?:(?!(?:":"(?:",this.debug("plType %j %j",i,n),i=!1;continue;case")":if(c||!s.length){n+="\\)";continue}d(),a=!0;var y=s.pop();n+=y.close,"!"===y.type&&u.push(y),y.reEnd=n.length;continue;case"|":if(c||!s.length||o){n+="\\|",o=!1;continue}d(),n+="|";continue;case"[":if(d(),c){n+="\\"+m;continue}c=!0,p=g,f=n.length,n+=m;continue;case"]":if(g===p+1||!c){n+="\\"+m,o=!1;continue}if(c){var v=e.substring(p+1,g);try{RegExp("["+v+"]")}catch(e){var _=this.parse(v,N);n=n.substr(0,f)+"\\["+_[0]+"\\]",a=a||_[1],c=!1;continue}}c=!(a=!0),n+=m;continue;default:d(),o?o=!1:!z[m]||"^"===m&&c||(n+="\\"),n+=m}c&&(v=e.substr(p+1),_=this.parse(v,N),n=n.substr(0,f)+"\\["+_[0],a=a||_[1]);for(y=s.pop();y;y=s.pop()){var w=n.slice(y.reStart+y.open.length);this.debug("setting tail",n,y),w=w.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(e,t,r){return t+t+(r=r||"\\")+"|"}),this.debug("tail=%j\n %s",w,w,y,n);var k="*"===y.type?M:"?"===y.type?"[^/]":"\\"+y.type;a=!0,n=n.slice(0,y.reStart)+k+"\\("+w}d(),o&&(n+="\\\\");var x=!1;switch(n.charAt(0)){case".":case"[":case"(":x=!0}for(var S=u.length-1;-1<S;S--){var j=u[S],E=n.slice(0,j.reStart),A=n.slice(j.reStart,j.reEnd-8),P=n.slice(j.reEnd-8,j.reEnd),I=n.slice(j.reEnd);P+=I;var T=E.split("(").length-1,O=I;for(g=0;g<T;g++)O=O.replace(/\)[+*?]?/,"");j="";n=E+A+(I=O)+(j=""===I&&t!==N?"$":j)+P}""!==n&&a&&(n="(?=.)"+n);x&&(n=l+n);if(t===N)return[n,a];if(!a)return e.replace(/\\(.)/g,"$1");var C=r.nocase?"i":"";try{var R=new RegExp("^"+n+"$",C)}catch(e){return new RegExp("$.")}return R._glob=e,R._src=n,R};var N={};o.makeRe=function(e,t){return new n(e,t||{}).makeRe()},n.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?M:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=t.nocase?"i":"",n=e.map(function(e){return e.map(function(e){return e===B?r:"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,i)}catch(e){this.regexp=!1}return this.regexp},o.match=function(e,t,r){var i=new n(t,r=r||{});return e=e.filter(function(e){return i.match(e)}),i.options.nonull&&!e.length&&e.push(t),e},n.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==u.sep&&(e=e.split(u.sep).join("/"));e=e.split(c),this.debug(this.pattern,"split",e);var i,n,a=this.set;for(this.debug(this.pattern,"set",a),n=e.length-1;0<=n&&!(i=e[n]);n--);for(n=0;n<a.length;n++){var o=a[n],s=e;if(r.matchBase&&1===o.length&&(s=[i]),this.matchOne(s,o,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},n.prototype.matchOne=function(e,t,r){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var n=0,a=0,o=e.length,s=t.length;n<o&&a<s;n++,a++){this.debug("matchOne loop");var u,c=t[a],f=e[n];if(this.debug(t,c,f),!1===c)return!1;if(c===B){this.debug("GLOBSTAR",[t,c,f]);var p=n,l=a+1;if(l===s){for(this.debug("** at the end");n<o;n++)if("."===e[n]||".."===e[n]||!i.dot&&"."===e[n].charAt(0))return!1;return!0}for(;p<o;){var h=e[p];if(this.debug("\nglobstar while",e,p,t,l,h),this.matchOne(e.slice(p),t.slice(l),r))return this.debug("globstar found match!",p,o,h),!0;if("."===h||".."===h||!i.dot&&"."===h.charAt(0)){this.debug("dot detected!",e,p,t,l);break}this.debug("globstar swallow a segment, and continue"),p++}return r&&(this.debug("\n>>> no match, partial?",e,p,t,l),p===o)?!0:!1}if("string"==typeof c?(u=i.nocase?f.toLowerCase()===c.toLowerCase():f===c,this.debug("string match",c,f,u)):(u=f.match(c),this.debug("pattern match",c,f,u)),!u)return!1}if(n===o&&a===s)return!0;if(n===o)return r;if(a===s)return n===o-1&&""===e[n];throw new Error("wtf?")}},{"brace-expansion":130,path:345}],327:[function(e,t,r){var a=e("crypto");function o(e,t,r){return a.createHmac(r,e).update(t).digest("base64")}function s(e){return encodeURIComponent(e).replace(/!/g,"%21").replace(/\*/g,"%2A").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}function i(e,t){return t<e?1:e<t?-1:0}function u(e,t,r){r=function(e){var t,r,i=[];for(t in e)if(r=e[t],Array.isArray(r))for(var n=0;n<r.length;n++)i.push([t,r[n]]);else if("object"===_typeof(r))for(var a in r)i.push([t+"["+a+"]",r[a]]);else i.push([t,r]);return i}(r).map(function(e){return[s(e[0]),s(e[1]||"")]}).sort(function(e,t){return i(e[0],t[0])||i(e[1],t[1])}).map(function(e){return e.join("=")}).join("&");return[s(e?e.toUpperCase():"GET"),s(t),s(r)].join("&")}function c(e,t,r,i,n){r=u(e,t,r);return o([i||"",n||""].map(s).join("&"),r,"sha1")}function f(e,t,r,i,n){r=u(e,t,r);return o([i||"",n||""].map(s).join("&"),r,"sha256")}function p(e,t,r,i,n){r=u(e,t,r);return i=i||"",r=r,a.createSign("RSA-SHA1").update(r).sign(i,"base64")}function l(e,t){return[e||"",t||""].map(s).join("&")}r.hmacsign=c,r.hmacsign256=f,r.rsasign=p,r.plaintext=l,r.sign=function(e,t,r,i,n,a){var o,s=1;switch(e){case"RSA-SHA1":o=p;break;case"HMAC-SHA1":o=c;break;case"HMAC-SHA256":o=f;break;case"PLAINTEXT":o=l,s=4;break;default:throw new Error("Signature method not supported: "+e)}return o.apply(null,[].slice.call(arguments,s))},r.rfc3986=s,r.generateBase=u},{crypto:198}],328:[function(e,t,r){r.endianness=function(){return"LE"},r.hostname=function(){return"undefined"!=typeof location?location.hostname:""},r.loadavg=function(){return[]},r.uptime=function(){return 0},r.freemem=function(){return Number.MAX_VALUE},r.totalmem=function(){return Number.MAX_VALUE},r.cpus=function(){return[]},r.type=function(){return"Browser"},r.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},r.networkInterfaces=r.getNetworkInterfaces=function(){return{}},r.arch=function(){return"javascript"},r.platform=function(){return"browser"},r.tmpdir=r.tmpDir=function(){return"/tmp"},r.EOL="\n"},{}],329:[function(e,t,r){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!==_typeof(r))throw new TypeError(r+"must be non-object");for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var n={arraySet:function(e,t,r,i,n){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+i),n);else for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){for(var t,r,i,n=0,a=0,o=e.length;a<o;a++)n+=e[a].length;for(i=new Uint8Array(n),a=t=0,o=e.length;a<o;a++)r=e[a],i.set(r,t),t+=r.length;return i}},a={arraySet:function(e,t,r,i,n){for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,n)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,a))},r.setTyped(i)},{}],330:[function(e,t,r){"use strict";t.exports=function(e,t,r,i){for(var n=65535&e|0,a=e>>>16&65535|0,o=0;0!==r;){for(o=2e3<r?2e3:r,r-=o;a=a+(n=n+t[i++]|0)|0,--o;);n%=65521,a%=65521}return n|a<<16|0}},{}],331:[function(e,t,r){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],332:[function(e,t,r){"use strict";var s=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var n=s,a=i+r;e^=-1;for(var o=i;o<a;o++)e=e>>>8^n[255&(e^t[o])];return-1^e}},{}],333:[function(e,t,r){"use strict";var s,p=e("../utils/common"),u=e("./trees"),l=e("./adler32"),h=e("./crc32"),i=e("./messages"),c=0,f=4,d=0,m=-2,g=-1,b=4,n=2,y=8,v=9,a=286,o=30,_=19,w=2*a+1,k=15,x=3,S=258,j=S+x+1,E=42,A=113,P=1,I=2,T=3,O=4;function C(e,t){return e.msg=i[t],t}function R(e){return(e<<1)-(4<e?9:0)}function B(e){for(var t=e.length;0<=--t;)e[t]=0}function F(e){var t=e.state,r=t.pending;0!==(r=r>e.avail_out?e.avail_out:r)&&(p.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function M(e,t){u._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,F(e.strm)}function z(e,t){e.pending_buf[e.pending++]=t}function N(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function D(e,t){var r,i,n=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-j?e.strstart-(e.w_size-j):0,c=e.window,f=e.w_mask,p=e.prev,l=e.strstart+S,h=c[a+o-1],d=c[a+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(r=t)+o]===d&&c[r+o-1]===h&&c[r]===c[a]&&c[++r]===c[a+1]){for(a+=2,r++;c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&a<l;);if(i=S-(l-a),a=l-S,o<i){if(e.match_start=t,s<=(o=i))break;h=c[a+o-1],d=c[a+o]}}}while((t=p[t&f])>u&&0!=--n);return o<=e.lookahead?o:e.lookahead}function L(e){var t,r,i,n,a,o,s,u,c,f=e.w_size;do{if(c=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-j)){for(p.arraySet(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,r=e.hash_size,t=r;i=e.head[--t],e.head[t]=f<=i?i-f:0,--r;);for(r=f,t=r;i=e.prev[--t],e.prev[t]=f<=i?i-f:0,--r;);c+=f}if(0===e.strm.avail_in)break;if(a=e.strm,o=e.window,s=e.strstart+e.lookahead,u=c,c=void 0,c=a.avail_in,r=0===(c=u<c?u:c)?0:(a.avail_in-=c,p.arraySet(o,a.input,a.next_in,c,s),1===a.state.wrap?a.adler=l(a.adler,o,c,s):2===a.state.wrap&&(a.adler=h(a.adler,o,c,s)),a.next_in+=c,a.total_in+=c,c),e.lookahead+=r,e.lookahead+e.insert>=x)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+x-1])&e.hash_mask,e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert<x)););}while(e.lookahead<j&&0!==e.strm.avail_in)}function q(e,t){for(var r,i;;){if(e.lookahead<j){if(L(e),e.lookahead<j&&t===c)return P;if(0===e.lookahead)break}if(r=0,e.lookahead>=x&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-j&&(e.match_length=D(e,r)),e.match_length>=x)if(i=u._tr_tally(e,e.strstart-e.match_start,e.match_length-x),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=x){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(M(e,!1),0===e.strm.avail_out))return P}return e.insert=e.strstart<x-1?e.strstart:x-1,t===f?(M(e,!0),0===e.strm.avail_out?T:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?P:I}function U(e,t){for(var r,i,n;;){if(e.lookahead<j){if(L(e),e.lookahead<j&&t===c)return P;if(0===e.lookahead)break}if(r=0,e.lookahead>=x&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=x-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-j&&(e.match_length=D(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===x&&4096<e.strstart-e.match_start)&&(e.match_length=x-1)),e.prev_length>=x&&e.match_length<=e.prev_length){for(n=e.strstart+e.lookahead-x,i=u._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-x),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=x-1,e.strstart++,i&&(M(e,!1),0===e.strm.avail_out))return P}else if(e.match_available){if((i=u._tr_tally(e,0,e.window[e.strstart-1]))&&M(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return P}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=u._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<x-1?e.strstart:x-1,t===f?(M(e,!0),0===e.strm.avail_out?T:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?P:I}function H(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}function K(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new p.Buf16(2*w),this.dyn_dtree=new p.Buf16(2*(2*o+1)),this.bl_tree=new p.Buf16(2*(2*_+1)),B(this.dyn_ltree),B(this.dyn_dtree),B(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new p.Buf16(k+1),this.heap=new p.Buf16(2*a+1),B(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new p.Buf16(2*a+1),B(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function V(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=n,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?E:A,e.adler=2===t.wrap?0:1,t.last_flush=c,u._tr_init(t),d):C(e,m)}function $(e){var t=V(e);return t===d&&((e=e.state).window_size=2*e.w_size,B(e.head),e.max_lazy_match=s[e.level].max_lazy,e.good_match=s[e.level].good_length,e.nice_match=s[e.level].nice_length,e.max_chain_length=s[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=x-1,e.match_available=0,e.ins_h=0),t}function G(e,t,r,i,n,a){if(!e)return m;var o=1;if(t===g&&(t=6),i<0?(o=0,i=-i):15<i&&(o=2,i-=16),n<1||v<n||r!==y||i<8||15<i||t<0||9<t||a<0||b<a)return C(e,m);8===i&&(i=9);var s=new K;return(e.state=s).strm=e,s.wrap=o,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=n+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+x-1)/x),s.window=new p.Buf8(2*s.w_size),s.head=new p.Buf16(s.hash_size),s.prev=new p.Buf16(s.w_size),s.lit_bufsize=1<<n+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new p.Buf8(s.pending_buf_size),s.d_buf=+s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=r,$(e)}s=[new H(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(L(e),0===e.lookahead&&t===c)return P;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,M(e,!1),0===e.strm.avail_out))return P;if(e.strstart-e.block_start>=e.w_size-j&&(M(e,!1),0===e.strm.avail_out))return P}return e.insert=0,t===f?(M(e,!0),0===e.strm.avail_out?T:O):(e.strstart>e.block_start&&(M(e,!1),e.strm.avail_out),P)}),new H(4,4,8,4,q),new H(4,5,16,8,q),new H(4,6,32,32,q),new H(4,4,16,16,U),new H(8,16,32,32,U),new H(8,16,128,128,U),new H(8,32,128,256,U),new H(32,128,258,1024,U),new H(32,258,258,4096,U)],r.deflateInit=function(e,t){return G(e,t,y,15,8,0)},r.deflateInit2=G,r.deflateReset=$,r.deflateResetKeep=V,r.deflateSetHeader=function(e,t){return!e||!e.state||2!==e.state.wrap?m:(e.state.gzhead=t,d)},r.deflate=function(e,t){var r,i,n,a;if(!e||!e.state||5<t||t<0)return e?C(e,m):m;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||666===r.status&&t!==f)return C(e,0===e.avail_out?-5:m);if(r.strm=e,o=r.last_flush,r.last_flush=t,r.status===E&&(2===r.wrap?(e.adler=0,z(r,31),z(r,139),z(r,8),r.gzhead?(z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),z(r,255&r.gzhead.time),z(r,r.gzhead.time>>8&255),z(r,r.gzhead.time>>16&255),z(r,r.gzhead.time>>24&255),z(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),z(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(z(r,255&r.gzhead.extra.length),z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=h(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(z(r,0),z(r,0),z(r,0),z(r,0),z(r,0),z(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),z(r,3),r.status=A)):(a=y+(r.w_bits-8<<4)<<8,a|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=A,N(r,a),0!==r.strstart&&(N(r,e.adler>>>16),N(r,65535&e.adler)),e.adler=1)),69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(e.adler=h(e.adler,r.pending_buf,r.pending-i,i)),F(e),i=r.pending,r.pending!==r.pending_buf_size));)z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(e.adler=h(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=h(e.adler,r.pending_buf,r.pending-i,i)),F(e),i=r.pending,r.pending===r.pending_buf_size)){n=1;break}}while(n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,z(r,n),0!==n);r.gzhead.hcrc&&r.pending>i&&(e.adler=h(e.adler,r.pending_buf,r.pending-i,i)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=h(e.adler,r.pending_buf,r.pending-i,i)),F(e),i=r.pending,r.pending===r.pending_buf_size)){n=1;break}}while(n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,z(r,n),0!==n);r.gzhead.hcrc&&r.pending>i&&(e.adler=h(e.adler,r.pending_buf,r.pending-i,i)),0===n&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&F(e),r.pending+2<=r.pending_buf_size&&(z(r,255&e.adler),z(r,e.adler>>8&255),e.adler=0,r.status=A)):r.status=A),0!==r.pending){if(F(e),0===e.avail_out)return r.last_flush=-1,d}else if(0===e.avail_in&&R(t)<=R(o)&&t!==f)return C(e,-5);if(666===r.status&&0!==e.avail_in)return C(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==c&&666!==r.status){var o=2===r.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(L(e),0===e.lookahead)){if(t===c)return P;break}if(e.match_length=0,r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(M(e,!1),0===e.strm.avail_out))return P}return e.insert=0,t===f?(M(e,!0),0===e.strm.avail_out?T:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?P:I}(r,t):3===r.strategy?function(e,t){for(var r,i,n,a,o=e.window;;){if(e.lookahead<=S){if(L(e),e.lookahead<=S&&t===c)return P;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=x&&0<e.strstart&&(i=o[n=e.strstart-1])===o[++n]&&i===o[++n]&&i===o[++n]){for(a=e.strstart+S;i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&n<a;);e.match_length=S-(a-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=x?(r=u._tr_tally(e,1,e.match_length-x),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(M(e,!1),0===e.strm.avail_out))return P}return e.insert=0,t===f?(M(e,!0),0===e.strm.avail_out?T:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?P:I}(r,t):s[r.level].func(r,t);if(o!==T&&o!==O||(r.status=666),o===P||o===T)return 0===e.avail_out&&(r.last_flush=-1),d;if(o===I&&(1===t?u._tr_align(r):5!==t&&(u._tr_stored_block(r,0,0,!1),3===t&&(B(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),F(e),0===e.avail_out))return r.last_flush=-1,d}return t!==f?d:r.wrap<=0?1:(2===r.wrap?(z(r,255&e.adler),z(r,e.adler>>8&255),z(r,e.adler>>16&255),z(r,e.adler>>24&255),z(r,255&e.total_in),z(r,e.total_in>>8&255),z(r,e.total_in>>16&255),z(r,e.total_in>>24&255)):(N(r,e.adler>>>16),N(r,65535&e.adler)),F(e),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?d:1)},r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==E&&69!==t&&73!==t&&91!==t&&103!==t&&t!==A&&666!==t?C(e,m):(e.state=null,t===A?C(e,-3):d):m},r.deflateSetDictionary=function(e,t){var r,i,n,a,o,s,u,c=t.length;if(!e||!e.state)return m;if(2===(a=(r=e.state).wrap)||1===a&&r.status!==E||r.lookahead)return m;for(1===a&&(e.adler=l(e.adler,t,c,0)),r.wrap=0,c>=r.w_size&&(0===a&&(B(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new p.Buf8(r.w_size),p.arraySet(u,t,c-r.w_size,r.w_size,0),t=u,c=r.w_size),o=e.avail_in,s=e.next_in,u=e.input,e.avail_in=c,e.next_in=0,e.input=t,L(r);r.lookahead>=x;){for(i=r.strstart,n=r.lookahead-(x-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[i+x-1])&r.hash_mask,r.prev[i&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=i,i++,--n;);r.strstart=i,r.lookahead=x-1,L(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=x-1,r.match_available=0,e.next_in=s,e.input=u,e.avail_in=o,r.wrap=a,d},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":329,"./adler32":330,"./crc32":332,"./messages":337,"./trees":338}],334:[function(e,t,r){"use strict";t.exports=function(e,t){var r,i,n,a,o,s,u=e.state,c=e.next_in,f=e.input,p=c+(e.avail_in-5),l=e.next_out,h=e.output,d=l-(t-e.avail_out),m=l+(e.avail_out-257),g=u.dmax,b=u.wsize,y=u.whave,v=u.wnext,_=u.window,w=u.hold,k=u.bits,x=u.lencode,S=u.distcode,j=(1<<u.lenbits)-1,E=(1<<u.distbits)-1;e:do{k<15&&(w+=f[c++]<<k,k+=8,w+=f[c++]<<k,k+=8),r=x[w&j];t:for(;;){if(w>>>=i=r>>>24,k-=i,0===(i=r>>>16&255))h[l++]=65535&r;else{if(!(16&i)){if(0==(64&i)){r=x[(65535&r)+(w&(1<<i)-1)];continue t}if(32&i){u.mode=12;break e}e.msg="invalid literal/length code",u.mode=30;break e}n=65535&r,(i&=15)&&(k<i&&(w+=f[c++]<<k,k+=8),n+=w&(1<<i)-1,w>>>=i,k-=i),k<15&&(w+=f[c++]<<k,k+=8,w+=f[c++]<<k,k+=8),r=S[w&E];r:for(;;){if(w>>>=i=r>>>24,k-=i,!(16&(i=r>>>16&255))){if(0==(64&i)){r=S[(65535&r)+(w&(1<<i)-1)];continue r}e.msg="invalid distance code",u.mode=30;break e}if(a=65535&r,k<(i&=15)&&(w+=f[c++]<<k,(k+=8)<i&&(w+=f[c++]<<k,k+=8)),g<(a+=w&(1<<i)-1)){e.msg="invalid distance too far back",u.mode=30;break e}if(w>>>=i,k-=i,(i=l-d)<a){if(i=a-i,y<i&&u.sane){e.msg="invalid distance too far back",u.mode=30;break e}if(s=_,(o=0)===v){if(o+=b-i,i<n){for(n-=i;h[l++]=_[o++],--i;);o=l-a,s=h}}else if(v<i){if(o+=b+v-i,(i-=v)<n){for(n-=i;h[l++]=_[o++],--i;);if(o=0,v<n){for(i=v,n-=i;h[l++]=_[o++],--i;);o=l-a,s=h}}}else if(o+=v-i,i<n){for(n-=i;h[l++]=_[o++],--i;);o=l-a,s=h}for(;2<n;)h[l++]=s[o++],h[l++]=s[o++],h[l++]=s[o++],n-=3;n&&(h[l++]=s[o++],1<n&&(h[l++]=s[o++]))}else{for(o=l-a;h[l++]=h[o++],h[l++]=h[o++],h[l++]=h[o++],n-=3,2<n;);n&&(h[l++]=h[o++],1<n&&(h[l++]=h[o++]))}break}}break}}while(c<p&&l<m);c-=n=k>>3,w&=(1<<(k-=n<<3))-1,e.next_in=c,e.next_out=l,e.avail_in=c<p?p-c+5:5-(c-p),e.avail_out=l<m?m-l+257:257-(l-m),u.hold=w,u.bits=k}},{}],335:[function(e,t,r){"use strict";var I=e("../utils/common"),T=e("./adler32"),O=e("./crc32"),C=e("./inffast"),R=e("./inftrees"),B=1,F=2,M=0,z=-2,N=1,i=852,n=592;function D(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function a(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new I.Buf16(320),this.work=new I.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function o(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=N,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new I.Buf32(i),t.distcode=t.distdyn=new I.Buf32(n),t.sane=1,t.back=-1,M):z}function s(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,o(e)):z}function u(e,t){var r,i;return e&&e.state?(i=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?z:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,s(e))):z}function c(e,t){var r;return e?(r=new a,(e.state=r).window=null,(t=u(e,t))!==M&&(e.state=null),t):z}var L,q,U=!0;function H(e,t,r,i){var n=e.state;return null===n.window&&(n.wsize=1<<n.wbits,n.wnext=0,n.whave=0,n.window=new I.Buf8(n.wsize)),i>=n.wsize?(I.arraySet(n.window,t,r-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(i<(e=n.wsize-n.wnext)&&(e=i),I.arraySet(n.window,t,r-i,e,n.wnext),(i-=e)?(I.arraySet(n.window,t,r-i,i,0),n.wnext=i,n.whave=n.wsize):(n.wnext+=e,n.wnext===n.wsize&&(n.wnext=0),n.whave<n.wsize&&(n.whave+=e))),0}r.inflateReset=s,r.inflateReset2=u,r.inflateResetKeep=o,r.inflateInit=function(e){return c(e,15)},r.inflateInit2=c,r.inflate=function(e,t){var r,i,n,a,o,s,u,c,f,p,l,h,d,m,g,b,y,v,_,w,k,x,S,j,E=0,A=new I.Buf8(4),P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return z;12===(r=e.state).mode&&(r.mode=13),o=e.next_out,n=e.output,u=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,c=r.hold,f=r.bits,p=s,l=u,x=M;e:for(;;)switch(r.mode){case N:if(0===r.wrap){r.mode=13;break}for(;f<16;){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}if(2&r.wrap&&35615===c){A[r.check=0]=255&c,A[1]=c>>>8&255,r.check=O(r.check,A,2,0),f=c=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&c)){e.msg="unknown compression method",r.mode=30;break}if(f-=4,k=8+(15&(c>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<k,e.adler=r.check=1,r.mode=512&c?10:12,f=c=0;break;case 2:for(;f<16;){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}if(r.flags=c,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=c>>8&1),512&r.flags&&(A[0]=255&c,A[1]=c>>>8&255,r.check=O(r.check,A,2,0)),f=c=0,r.mode=3;case 3:for(;f<32;){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}r.head&&(r.head.time=c),512&r.flags&&(A[0]=255&c,A[1]=c>>>8&255,A[2]=c>>>16&255,A[3]=c>>>24&255,r.check=O(r.check,A,4,0)),f=c=0,r.mode=4;case 4:for(;f<16;){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}r.head&&(r.head.xflags=255&c,r.head.os=c>>8),512&r.flags&&(A[0]=255&c,A[1]=c>>>8&255,r.check=O(r.check,A,2,0)),f=c=0,r.mode=5;case 5:if(1024&r.flags){for(;f<16;){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}r.length=c,r.head&&(r.head.extra_len=c),512&r.flags&&(A[0]=255&c,A[1]=c>>>8&255,r.check=O(r.check,A,2,0)),f=c=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((h=s<(h=r.length)?s:h)&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),I.arraySet(r.head.extra,i,a,h,k)),512&r.flags&&(r.check=O(r.check,i,h,a)),s-=h,a+=h,r.length-=h),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break e;for(h=0;k=i[a+h++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k)),k&&h<s;);if(512&r.flags&&(r.check=O(r.check,i,h,a)),s-=h,a+=h,k)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===s)break e;for(h=0;k=i[a+h++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k)),k&&h<s;);if(512&r.flags&&(r.check=O(r.check,i,h,a)),s-=h,a+=h,k)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;f<16;){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}if(c!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}f=c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;f<32;){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}e.adler=r.check=D(c),f=c=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=o,e.avail_out=u,e.next_in=a,e.avail_in=s,r.hold=c,r.bits=f,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){c>>>=7&f,f-=7&f,r.mode=27;break}for(;f<3;){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}switch(r.last=1&c,--f,3&(c>>>=1)){case 0:r.mode=14;break;case 1:if(!function(e){if(U){var t;for(L=new I.Buf32(512),q=new I.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(R(B,e.lens,0,288,L,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;R(F,e.lens,0,32,q,0,e.work,{bits:5}),U=!1}e.lencode=L,e.lenbits=9,e.distcode=q,e.distbits=5}(r),r.mode=20,6!==t)break;c>>>=2,f-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}c>>>=2,f-=2;break;case 14:for(c>>>=7&f,f-=7&f;f<32;){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}if((65535&c)!=(c>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&c,f=c=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(h=r.length){if(0===(h=u<(h=s<h?s:h)?u:h))break e;I.arraySet(n,i,a,h,o),s-=h,a+=h,u-=h,o+=h,r.length-=h;break}r.mode=12;break;case 17:for(;f<14;){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}if(r.nlen=257+(31&c),c>>>=5,f-=5,r.ndist=1+(31&c),c>>>=5,f-=5,r.ncode=4+(15&c),c>>>=4,f-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;f<3;){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}r.lens[P[r.have++]]=7&c,c>>>=3,f-=3}for(;r.have<19;)r.lens[P[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},x=R(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,x){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;b=(E=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,y=65535&E,!((g=E>>>24)<=f);){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}if(y<16)c>>>=g,f-=g,r.lens[r.have++]=y;else{if(16===y){for(j=g+2;f<j;){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}if(c>>>=g,f-=g,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}k=r.lens[r.have-1],h=3+(3&c),c>>>=2,f-=2}else if(17===y){for(j=g+3;f<j;){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}f-=g,k=0,h=3+(7&(c>>>=g)),c>>>=3,f-=3}else{for(j=g+7;f<j;){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}f-=g,k=0,h=11+(127&(c>>>=g)),c>>>=7,f-=7}if(r.have+h>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;h--;)r.lens[r.have++]=k}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,S={bits:r.lenbits},x=R(B,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,x){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},x=R(F,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,x){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=s&&258<=u){e.next_out=o,e.avail_out=u,e.next_in=a,e.avail_in=s,r.hold=c,r.bits=f,C(e,l),o=e.next_out,n=e.output,u=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,c=r.hold,f=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;b=(E=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,y=65535&E,!((g=E>>>24)<=f);){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}if(b&&0==(240&b)){for(v=g,_=b,w=y;b=(E=r.lencode[w+((c&(1<<v+_)-1)>>v)])>>>16&255,y=65535&E,!(v+(g=E>>>24)<=f);){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}c>>>=v,f-=v,r.back+=v}if(c>>>=g,f-=g,r.back+=g,r.length=y,0===b){r.mode=26;break}if(32&b){r.back=-1,r.mode=12;break}if(64&b){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&b,r.mode=22;case 22:if(r.extra){for(j=r.extra;f<j;){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;b=(E=r.distcode[c&(1<<r.distbits)-1])>>>16&255,y=65535&E,!((g=E>>>24)<=f);){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}if(0==(240&b)){for(v=g,_=b,w=y;b=(E=r.distcode[w+((c&(1<<v+_)-1)>>v)])>>>16&255,y=65535&E,!(v+(g=E>>>24)<=f);){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}c>>>=v,f-=v,r.back+=v}if(c>>>=g,f-=g,r.back+=g,64&b){e.msg="invalid distance code",r.mode=30;break}r.offset=y,r.extra=15&b,r.mode=24;case 24:if(r.extra){for(j=r.extra;f<j;){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===u)break e;if(h=l-u,r.offset>h){if(h=r.offset-h,h>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}d=h>r.wnext?(h-=r.wnext,r.wsize-h):r.wnext-h,h>r.length&&(h=r.length),m=r.window}else m=n,d=o-r.offset,h=r.length;for(u<h&&(h=u),u-=h,r.length-=h;n[o++]=m[d++],--h;);0===r.length&&(r.mode=21);break;case 26:if(0===u)break e;n[o++]=r.length,u--,r.mode=21;break;case 27:if(r.wrap){for(;f<32;){if(0===s)break e;s--,c|=i[a++]<<f,f+=8}if(l-=u,e.total_out+=l,r.total+=l,l&&(e.adler=r.check=(r.flags?O:T)(r.check,n,l,o-l)),l=u,(r.flags?c:D(c))!==r.check){e.msg="incorrect data check",r.mode=30;break}f=c=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;f<32;){if(0===s)break e;s--,c+=i[a++]<<f,f+=8}if(c!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}f=c=0}r.mode=29;case 29:x=1;break e;case 30:x=-3;break e;case 31:return-4;case 32:default:return z}return e.next_out=o,e.avail_out=u,e.next_in=a,e.avail_in=s,r.hold=c,r.bits=f,(r.wsize||l!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&H(e,e.output,e.next_out,l-e.avail_out)?(r.mode=31,-4):(p-=e.avail_in,l-=e.avail_out,e.total_in+=p,e.total_out+=l,r.total+=l,r.wrap&&l&&(e.adler=r.check=(r.flags?O:T)(r.check,n,l,e.next_out-l)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),x=(0==p&&0===l||4===t)&&x===M?-5:x)},r.inflateEnd=function(e){if(!e||!e.state)return z;var t=e.state;return t.window&&(t.window=null),e.state=null,M},r.inflateGetHeader=function(e,t){return!e||!e.state||0==(2&(e=e.state).wrap)?z:((e.head=t).done=!1,M)},r.inflateSetDictionary=function(e,t){var r,i=t.length;return!e||!e.state||0!==(r=e.state).wrap&&11!==r.mode?z:11===r.mode&&T(1,t,i,0)!==r.check?-3:H(e,t,i,i)?(r.mode=31,-4):(r.havedict=1,M)},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":329,"./adler32":330,"./crc32":332,"./inffast":334,"./inftrees":336}],336:[function(e,t,r){"use strict";var B=e("../utils/common"),F=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],M=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],z=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],N=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,r,i,n,a,o,s){for(var u,c,f,p,l,h,d,m,g,b=s.bits,y=0,v=0,_=0,w=0,k=0,x=0,S=0,j=0,E=0,A=0,P=null,I=0,T=new B.Buf16(16),O=new B.Buf16(16),C=null,R=0,y=0;y<=15;y++)T[y]=0;for(v=0;v<i;v++)T[t[r+v]]++;for(k=b,w=15;1<=w&&0===T[w];w--);if(w<k&&(k=w),0===w)return n[a++]=20971520,n[a++]=20971520,s.bits=1,0;for(_=1;_<w&&0===T[_];_++);for(k<_&&(k=_),y=j=1;y<=15;y++)if(j<<=1,(j-=T[y])<0)return-1;if(0<j&&(0===e||1!==w))return-1;for(O[1]=0,y=1;y<15;y++)O[y+1]=O[y]+T[y];for(v=0;v<i;v++)0!==t[r+v]&&(o[O[t[r+v]]++]=v);if(h=0===e?(P=C=o,19):1===e?(P=F,I-=257,C=M,R-=257,256):(P=z,C=N,-1),y=_,l=a,f=-1,p=(E=1<<(x=k))-1,1===e&&852<E||2===e&&592<E)return 1;for(S=v=A=0;;){for(d=y-S,g=o[v]<h?(m=0,o[v]):o[v]>h?(m=C[R+o[v]],P[I+o[v]]):(m=96,0),u=1<<y-S,c=1<<x,_=c;n[l+(A>>S)+(c-=u)]=d<<24|m<<16|g|0,0!==c;);for(u=1<<y-1;A&u;)u>>=1;if(0!==u?(A&=u-1,A+=u):A=0,v++,0==--T[y]){if(y===w)break;y=t[r+o[v]]}if(k<y&&(A&p)!==f){for(l+=_,j=1<<(x=y-(S=0===S?k:S));x+S<w&&!((j-=T[x+S])<=0);)x++,j<<=1;if(E+=1<<x,1===e&&852<E||2===e&&592<E)return 1;n[f=A&p]=k<<24|x<<16|l-a|0}}return 0!==A&&(n[l+A]=y-S<<24|64<<16|0),s.bits=k,0}},{"../utils/common":329}],337:[function(e,t,r){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],338:[function(e,t,r){"use strict";var n=e("../utils/common"),s=0,u=1;function i(e){for(var t=e.length;0<=--t;)e[t]=0}var a=0,o=29,c=256,f=c+1+o,p=30,l=19,g=2*f+1,b=15,h=16,d=7,m=256,y=16,v=17,_=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],k=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=new Array(2*(f+2));i(j);var E=new Array(2*p);i(E);var A=new Array(512);i(A);var P=new Array(256);i(P);var I=new Array(o);i(I);var T,O,C,R=new Array(p);function B(e,t,r,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}function F(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function M(e){return e<256?A[e]:A[256+(e>>>7)]}function z(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function N(e,t,r){e.bi_valid>h-r?(e.bi_buf|=t<<e.bi_valid&65535,z(e,e.bi_buf),e.bi_buf=t>>h-e.bi_valid,e.bi_valid+=r-h):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function D(e,t,r){N(e,r[2*t],r[2*t+1])}function L(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function q(e,t,r){for(var i,n=new Array(b+1),a=0,o=1;o<=b;o++)n[o]=a=a+r[o-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=L(n[s]++,s))}}function U(e){for(var t=0;t<f;t++)e.dyn_ltree[2*t]=0;for(t=0;t<p;t++)e.dyn_dtree[2*t]=0;for(t=0;t<l;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*m]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function H(e){8<e.bi_valid?z(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function K(e,t,r,i){var n=2*t,a=2*r;return e[n]<e[a]||e[n]===e[a]&&i[t]<=i[r]}function V(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&K(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!K(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}function $(e,t,r){var i,n,a,o,s=0;if(0!==e.last_lit)for(;i=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],n=e.pending_buf[e.l_buf+s],s++,0==i?D(e,n,t):(D(e,(a=P[n])+c+1,t),0!==(o=w[a])&&N(e,n-=I[a],o),D(e,a=M(--i),r),0!==(o=k[a])&&N(e,i-=R[a],o)),s<e.last_lit;);D(e,m,t)}function G(e,m){var t,r,i,n=m.dyn_tree,a=m.stat_desc.static_tree,o=m.stat_desc.has_stree,s=m.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=g,t=0;t<s;t++)0!==n[2*t]?(e.heap[++e.heap_len]=u=t,e.depth[t]=0):n[2*t+1]=0;for(;e.heap_len<2;)n[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,o&&(e.static_len-=a[2*i+1]);for(m.max_code=u,t=e.heap_len>>1;1<=t;t--)V(e,n,t);for(i=s;t=e.heap[1],e.heap[1]=e.heap[e.heap_len--],V(e,n,1),r=e.heap[1],e.heap[--e.heap_max]=t,e.heap[--e.heap_max]=r,n[2*i]=n[2*t]+n[2*r],e.depth[i]=(e.depth[t]>=e.depth[r]?e.depth[t]:e.depth[r])+1,n[2*t+1]=n[2*r+1]=i,e.heap[1]=i++,V(e,n,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e){for(var t,r,i,n,a,o=m.dyn_tree,s=m.max_code,u=m.stat_desc.static_tree,c=m.stat_desc.has_stree,f=m.stat_desc.extra_bits,p=m.stat_desc.extra_base,l=m.stat_desc.max_length,h=0,d=0;d<=b;d++)e.bl_count[d]=0;for(o[2*e.heap[e.heap_max]+1]=0,t=e.heap_max+1;t<g;t++)l<(d=o[2*o[2*(r=e.heap[t])+1]+1]+1)&&(d=l,h++),o[2*r+1]=d,s<r||(e.bl_count[d]++,n=0,p<=r&&(n=f[r-p]),a=o[2*r],e.opt_len+=a*(d+n),c&&(e.static_len+=a*(u[2*r+1]+n)));if(0!==h){do{for(d=l-1;0===e.bl_count[d];)d--}while(e.bl_count[d]--,e.bl_count[d+1]+=2,e.bl_count[l]--,0<(h-=2));for(d=l;0!==d;d--)for(r=e.bl_count[d];0!==r;)s<(i=e.heap[--t])||(o[2*i+1]!==d&&(e.opt_len+=(d-o[2*i+1])*o[2*i],o[2*i+1]=d),r--)}}(e),q(n,u,e.bl_count)}function W(e,t,r){var i,n,a=-1,o=t[1],s=0,u=7,c=4;for(0===o&&(u=138,c=3),t[2*(r+1)+1]=65535,i=0;i<=r;i++)n=o,o=t[2*(i+1)+1],++s<u&&n===o||(s<c?e.bl_tree[2*n]+=s:0!==n?(n!==a&&e.bl_tree[2*n]++,e.bl_tree[2*y]++):s<=10?e.bl_tree[2*v]++:e.bl_tree[2*_]++,a=n,c=(s=0)===o?(u=138,3):n===o?(u=6,3):(u=7,4))}function Z(e,t,r){var i,n,a=-1,o=t[1],s=0,u=7,c=4;for(0===o&&(u=138,c=3),i=0;i<=r;i++)if(n=o,o=t[2*(i+1)+1],!(++s<u&&n===o)){if(s<c)for(;D(e,n,e.bl_tree),0!=--s;);else 0!==n?(n!==a&&(D(e,n,e.bl_tree),s--),D(e,y,e.bl_tree),N(e,s-3,2)):s<=10?(D(e,v,e.bl_tree),N(e,s-3,3)):(D(e,_,e.bl_tree),N(e,s-11,7));a=n,c=(s=0)===o?(u=138,3):n===o?(u=6,3):(u=7,4)}}i(R);var Y=!1;function Q(e,t,r,i){N(e,(a<<1)+(i?1:0),3),i=t,t=r,r=!0,H(e=e),r&&(z(e,t),z(e,~t)),n.arraySet(e.pending_buf,e.window,i,t,e.pending),e.pending+=t}r._tr_init=function(e){Y||(function(){for(var e,t,r,i=new Array(b+1),n=0,a=0;a<o-1;a++)for(I[a]=n,e=0;e<1<<w[a];e++)P[n++]=a;for(P[n-1]=a,a=r=0;a<16;a++)for(R[a]=r,e=0;e<1<<k[a];e++)A[r++]=a;for(r>>=7;a<p;a++)for(R[a]=r<<7,e=0;e<1<<k[a]-7;e++)A[256+r++]=a;for(t=0;t<=b;t++)i[t]=0;for(e=0;e<=143;)j[2*e+1]=8,e++,i[8]++;for(;e<=255;)j[2*e+1]=9,e++,i[9]++;for(;e<=279;)j[2*e+1]=7,e++,i[7]++;for(;e<=287;)j[2*e+1]=8,e++,i[8]++;for(q(j,f+1,i),e=0;e<p;e++)E[2*e+1]=5,E[2*e]=L(e,5);T=new B(j,w,c+1,f,b),O=new B(E,k,0,p,b),C=new B(new Array(0),x,0,l,d)}(),Y=!0),e.l_desc=new F(e.dyn_ltree,T),e.d_desc=new F(e.dyn_dtree,O),e.bl_desc=new F(e.bl_tree,C),e.bi_buf=0,e.bi_valid=0,U(e)},r._tr_stored_block=Q,r._tr_flush_block=function(e,t,r,i){var n,a,o=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){for(var t=4093624447,r=0;r<=31;r++,t>>>=1)if(1&t&&0!==e.dyn_ltree[2*r])return s;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return u;for(r=32;r<c;r++)if(0!==e.dyn_ltree[2*r])return u;return s}(e)),G(e,e.l_desc),G(e,e.d_desc),o=function(e){var t;for(W(e,e.dyn_ltree,e.l_desc.max_code),W(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=l-1;3<=t&&0===e.bl_tree[2*S[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),n=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=n&&(n=a)):n=a=r+5,r+4<=n&&-1!==t?Q(e,t,r,i):4===e.strategy||a===n?(N(e,2+(i?1:0),3),$(e,j,E)):(N(e,4+(i?1:0),3),function(e,t,r,i){var n;for(N(e,t-257,5),N(e,r-1,5),N(e,i-4,4),n=0;n<i;n++)N(e,e.bl_tree[2*S[n]+1],3);Z(e,e.dyn_ltree,t-1),Z(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),$(e,e.dyn_ltree,e.dyn_dtree)),U(e),i&&H(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(P[r]+c+1)]++,e.dyn_dtree[2*M(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){N(e,2,3),D(e,m,j),16===(e=e).bi_valid?(z(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":329}],339:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],340:[function(e,t,r){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],341:[function(e,t,r){"use strict";var i=e("asn1.js");r.certificate=e("./certificate");e=i.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});r.RSAPrivateKey=e;e=i.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});r.RSAPublicKey=e;e=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(n),this.key("subjectPublicKey").bitstr())});r.PublicKey=e;var n=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),e=i.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(n),this.key("subjectPrivateKey").octstr())});r.PrivateKey=e;e=i.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});r.EncryptedPrivateKey=e;e=i.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});r.DSAPrivateKey=e,r.DSAparam=i.define("DSAparam",function(){this.int()});e=i.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(a),this.key("publicKey").optional().explicit(1).bitstr())});r.ECPrivateKey=e;var a=i.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});r.signature=i.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":342,"asn1.js":47}],342:[function(e,t,r){"use strict";var e=e("asn1.js"),i=e.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),n=e.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),o=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),s=e.define("RelativeDistinguishedName",function(){this.setof(n)}),u=e.define("RDNSequence",function(){this.seqof(s)}),c=e.define("Name",function(){this.choice({rdnSequence:this.use(u)})}),f=e.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),p=e.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),l=e.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(c),this.key("validity").use(f),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(o),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(p).optional())}),e=e.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(l),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())});t.exports=e},{"asn1.js":47}],343:[function(e,t,r){var s=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,u=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,c=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,f=e("evp_bytestokey"),p=e("browserify-aes"),l=e("safe-buffer").Buffer;t.exports=function(e,t){var r,i,n,a=e.toString(),o=a.match(s);return n=o?(r="aes"+o[1],i=l.from(o[2],"hex"),e=l.from(o[3].replace(/[\r\n]/g,""),"base64"),t=f(t,i.slice(0,8),parseInt(o[1],10)).key,o=[],i=p.createDecipheriv(r,t,i),o.push(i.update(e)),o.push(i.final()),l.concat(o)):(n=a.match(c),l.from(n[2].replace(/[\r\n]/g,""),"base64")),{tag:a.match(u)[1],data:n}}},{"browserify-aes":135,evp_bytestokey:230,"safe-buffer":421}],344:[function(e,t,r){var h=e("./asn1"),d=e("./aesid.json"),m=e("./fixProc"),g=e("browserify-aes"),b=e("pbkdf2"),y=e("safe-buffer").Buffer;function i(e){var t;"object"!==_typeof(e)||y.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=y.from(e));var r,i,n,a,o,s,u,c,f,e=m(e,t),p=e.tag,l=e.data;switch(p){case"CERTIFICATE":i=h.certificate.decode(l,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(r=(i=i||h.PublicKey.decode(l,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return h.RSAPublicKey.decode(i.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return i.subjectPrivateKey=i.subjectPublicKey,{type:"ec",data:i};case"1.2.840.10040.4.1":return i.algorithm.params.pub_key=h.DSAparam.decode(i.subjectPublicKey.data,"der"),{type:"dsa",data:i.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":l=h.EncryptedPrivateKey.decode(l,"der"),a=t,o=(n=l).algorithm.decrypt.kde.kdeparams.salt,s=parseInt(n.algorithm.decrypt.kde.kdeparams.iters.toString(),10),u=d[n.algorithm.decrypt.cipher.algo.join(".")],c=n.algorithm.decrypt.cipher.iv,f=n.subjectPrivateKey,n=parseInt(u.split("-")[1],10)/8,n=b.pbkdf2Sync(a,o,s,n,"sha1"),n=g.createDecipheriv(u,n,c),(c=[]).push(n.update(f)),c.push(n.final()),l=y.concat(c);case"PRIVATE KEY":switch(r=(i=h.PrivateKey.decode(l,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return h.RSAPrivateKey.decode(i.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:i.algorithm.curve,privateKey:h.ECPrivateKey.decode(i.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return i.algorithm.params.priv_key=h.DSAparam.decode(i.subjectPrivateKey,"der"),{type:"dsa",params:i.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return h.RSAPublicKey.decode(l,"der");case"RSA PRIVATE KEY":return h.RSAPrivateKey.decode(l,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:h.DSAPrivateKey.decode(l,"der")};case"EC PRIVATE KEY":return{curve:(l=h.ECPrivateKey.decode(l,"der")).parameters.value,privateKey:l.privateKey};default:throw new Error("unknown key type "+p)}}(t.exports=i).signature=h.signature},{"./aesid.json":340,"./asn1":341,"./fixProc":343,"browserify-aes":135,pbkdf2:346,"safe-buffer":421}],345:[function(e,t,c){(function(o){(function(){function n(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];"."===n?e.splice(i,1):".."===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift("..");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}c.resolve=function(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:o.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(e=i+"/"+e,t="/"===i.charAt(0))}return(t?"/":"")+(e=n(a(e.split("/"),function(e){return!!e}),!t).join("/"))||"."},c.normalize=function(e){var t=c.isAbsolute(e),r="/"===i(e,-1);return(e=!(e=n(a(e.split("/"),function(e){return!!e}),!t).join("/"))&&!t?".":e)&&r&&(e+="/"),(t?"/":"")+e},c.isAbsolute=function(e){return"/"===e.charAt(0)},c.join=function(){var e=Array.prototype.slice.call(arguments,0);return c.normalize(a(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},c.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;0<=r&&""===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=c.resolve(e).substr(1),t=c.resolve(t).substr(1);for(var i=r(e.split("/")),n=r(t.split("/")),a=Math.min(i.length,n.length),o=a,s=0;s<a;s++)if(i[s]!==n[s]){o=s;break}for(var u=[],s=o;s<i.length;s++)u.push("..");return(u=u.concat(n.slice(o))).join("/")},c.sep="/",c.delimiter=":",c.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,a=e.length-1;1<=a;--a)if(47===e.charCodeAt(a)){if(!n){i=a;break}}else n=!1;return-1===i?r?"/":".":r&&1===i?"/":e.slice(0,i)},c.basename=function(e,t){e=function(e){"string"!=typeof e&&(e+="");for(var t=0,r=-1,i=!0,n=e.length-1;0<=n;--n)if(47===e.charCodeAt(n)){if(!i){t=n+1;break}}else-1===r&&(i=!1,r=n+1);return-1===r?"":e.slice(t,r)}(e);return e=t&&e.substr(-1*t.length)===t?e.substr(0,e.length-t.length):e},c.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,r=0,i=-1,n=!0,a=0,o=e.length-1;0<=o;--o){var s=e.charCodeAt(o);if(47===s){if(n)continue;r=o+1;break}-1===i&&(n=!1,i=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1)}return-1===t||-1===i||0===a||1===a&&t===i-1&&t===r+1?"":e.slice(t,i)};var i="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this)}).call(this,e("_process"))},{_process:354}],346:[function(e,t,r){r.pbkdf2=e("./lib/async"),r.pbkdf2Sync=e("./lib/sync")},{"./lib/async":347,"./lib/sync":350}],347:[function(e,t,r){(function(v,_){(function(){var c,f=e("safe-buffer").Buffer,p=e("./precondition"),l=e("./default-encoding"),h=e("./sync"),d=e("./to-buffer"),m=_.crypto&&_.crypto.subtle,g={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},b=[];function y(e,t,r,i,n){return m.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return m.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:n}},e,i<<3)}).then(function(e){return f.from(e)})}t.exports=function(t,r,i,n,a,o){"function"==typeof a&&(o=a,a=void 0);var e,s,u=g[(a=a||"sha1").toLowerCase()];if(!u||"function"!=typeof _.Promise)return v.nextTick(function(){var e;try{e=h(t,r,i,n,a)}catch(e){return o(e)}o(null,e)});if(p(i,n),t=d(t,l,"Password"),r=d(r,l,"Salt"),"function"!=typeof o)throw new Error("No callback provided to pbkdf2");e=function(e){if(_.process&&!_.process.browser)return Promise.resolve(!1);if(!m||!m.importKey||!m.deriveBits)return Promise.resolve(!1);if(void 0!==b[e])return b[e];var t=y(c=c||f.alloc(8),c,10,128,e).then(function(){return!0}).catch(function(){return!1});return b[e]=t}(u).then(function(e){return e?y(t,r,i,n,u):h(t,r,i,n,a)}),s=o,e.then(function(e){v.nextTick(function(){s(null,e)})},function(e){v.nextTick(function(){s(e)})})}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":348,"./precondition":349,"./sync":350,"./to-buffer":351,_process:354,"safe-buffer":421}],348:[function(e,r,t){(function(t){(function(){var e;e=t.browser||!t.version||6<=parseInt(t.version.split(".")[0].slice(1),10)?"utf-8":"binary",r.exports=e}).call(this)}).call(this,e("_process"))},{_process:354}],349:[function(e,t,r){var i=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||i<t||t!=t)throw new TypeError("Bad key length")}},{}],350:[function(e,t,r){var c=e("create-hash/md5"),f=e("ripemd160"),p=e("sha.js"),g=e("safe-buffer").Buffer,b=e("./precondition"),y=e("./default-encoding"),v=e("./to-buffer"),l=g.alloc(128),_={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function w(e,t,r){var i,n="rmd160"===(i=e)||"ripemd160"===i?function(e){return(new f).update(e).digest()}:"md5"===i?c:function(e){return p(i).update(e).digest()},a="sha512"===e||"sha384"===e?128:64;t.length>a?t=n(t):t.length<a&&(t=g.concat([t,l],a));for(var o=g.allocUnsafe(a+_[e]),s=g.allocUnsafe(a+_[e]),u=0;u<a;u++)o[u]=54^t[u],s[u]=92^t[u];r=g.allocUnsafe(a+r+4);o.copy(r,0,0,a),this.ipad1=r,this.ipad2=o,this.opad=s,this.alg=e,this.blocksize=a,this.hash=n,this.size=_[e]}w.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(e,t,r,i,n){b(r,i);var a=new w(n=n||"sha1",e=v(e,y,"Password"),(t=v(t,y,"Salt")).length),o=g.allocUnsafe(i),s=g.allocUnsafe(t.length+4);t.copy(s,0,0,t.length);for(var u=0,c=_[n],f=Math.ceil(i/c),p=1;p<=f;p++){s.writeUInt32BE(p,t.length);for(var l=a.run(s,a.ipad1),h=l,d=1;d<r;d++){h=a.run(h,a.ipad2);for(var m=0;m<c;m++)l[m]^=h[m]}l.copy(o,u),u+=c}return o}},{"./default-encoding":348,"./precondition":349,"./to-buffer":351,"create-hash/md5":195,ripemd160:420,"safe-buffer":421,"sha.js":424}],351:[function(e,t,r){var i=e("safe-buffer").Buffer;t.exports=function(e,t,r){if(i.isBuffer(e))return e;if("string"==typeof e)return i.from(e,t);if(ArrayBuffer.isView(e))return i.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":421}],352:[function(e,s,t){(function(o){(function(){(function(){var e,t,r,i,n,a;"undefined"!=typeof performance&&null!==performance&&performance.now?s.exports=function(){return performance.now()}:null!=o&&o.hrtime?(s.exports=function(){return(e()-n)/1e6},t=o.hrtime,i=(e=function(){var e=t();return 1e9*e[0]+e[1]})(),a=1e9*o.uptime(),n=i-a):r=Date.now?(s.exports=function(){return Date.now()-r},Date.now()):(s.exports=function(){return(new Date).getTime()-r},(new Date).getTime())}).call(this)}).call(this)}).call(this,e("_process"))},{_process:354}],353:[function(e,t,r){(function(s){(function(){"use strict";void 0===s||!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?t.exports={nextTick:function(e,t,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var n,a,o=arguments.length;switch(o){case 0:case 1:return s.nextTick(e);case 2:return s.nextTick(function(){e.call(null,t)});case 3:return s.nextTick(function(){e.call(null,t,r)});case 4:return s.nextTick(function(){e.call(null,t,r,i)});default:for(n=new Array(o-1),a=0;a<n.length;)n[a++]=arguments[a];return s.nextTick(function(){e.apply(null,n)})}}}:t.exports=s}).call(this)}).call(this,e("_process"))},{_process:354}],354:[function(e,t,r){var i,n,t=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var u,c=[],f=!1,p=-1;function l(){f&&u&&(f=!1,u.length?c=u.concat(c):p=-1,c.length&&h())}function h(){if(!f){var e=s(l);f=!0;for(var t=c.length;t;){for(u=c,c=[];++p<t;)u&&u[p].run();p=-1,t=c.length}u=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function m(){}t.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new d(e,t)),1!==c.length||f||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=m,t.addListener=m,t.once=m,t.off=m,t.removeListener=m,t.removeAllListeners=m,t.emit=m,t.prependListener=m,t.prependOnceListener=m,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{}],355:[function(e,t,r){"use strict";t.exports=e("./lib")},{"./lib":360}],356:[function(e,t,r){"use strict";var n=e("asap/raw");function o(){}var a=null,s={};function u(e){if("object"!==_typeof(this))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("Promise constructor's argument is not a function");this._40=0,this._65=0,this._55=null,this._72=null,e!==o&&h(e,this)}function c(e,t){for(;3===e._65;)e=e._55;if(u._37&&u._37(e),0===e._65)return 0===e._40?(e._40=1,void(e._72=t)):1===e._40?(e._40=2,void(e._72=[e._72,t])):void e._72.push(t);var r,i;r=e,i=t,n(function(){var e=1===r._65?i.onFulfilled:i.onRejected;null!==e?(e=function(e,t){try{return e(t)}catch(e){return a=e,s}}(e,r._55))===s?p(i.promise,a):f(i.promise,e):(1===r._65?f:p)(i.promise,r._55)})}function f(e,t){if(t===e)return p(e,new TypeError("A promise cannot be resolved with itself.")),0;if(t&&("object"===_typeof(t)||"function"==typeof t)){var r=function(e){try{return e.then}catch(e){return a=e,s}}(t);if(r===s)return p(e,a),0;if(r===e.then&&t instanceof u)return e._65=3,e._55=t,void i(e);if("function"==typeof r)return void h(r.bind(t),e)}e._65=1,e._55=t,i(e)}function p(e,t){e._65=2,e._55=t,u._87&&u._87(e,t),i(e)}function i(e){if(1===e._40&&(c(e,e._72),e._72=null),2===e._40){for(var t=0;t<e._72.length;t++)c(e,e._72[t]);e._72=null}}function l(e,t,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=r}function h(e,t){var r=!1,e=function(e,t,r){try{e(t,r)}catch(e){return a=e,s}}(e,function(e){r||(r=!0,f(t,e))},function(e){r||(r=!0,p(t,e))});r||e!==s||(r=!0,p(t,a))}(t.exports=u)._37=null,u._87=null,u._61=o,u.prototype.then=function(e,t){if(this.constructor!==u)return n=e,a=t,new(i=this).constructor(function(e,t){var r=new u(o);r.then(e,t),c(i,new l(n,a,r))});var i,n,a,r=new u(o);return c(this,new l(e,t,r)),r}},{"asap/raw":46}],357:[function(e,t,r){"use strict";e=e("./core.js");(t.exports=e).prototype.done=function(e,t){(arguments.length?this.then.apply(this,arguments):this).then(null,function(e){setTimeout(function(){throw e},0)})}},{"./core.js":356}],358:[function(e,t,r){"use strict";var u=e("./core.js");t.exports=u;var i=f(!0),n=f(!1),a=f(null),o=f(void 0),s=f(0),c=f("");function f(e){var t=new u(u._61);return t._65=1,t._55=e,t}u.resolve=function(e){if(e instanceof u)return e;if(null===e)return a;if(void 0===e)return o;if(!0===e)return i;if(!1===e)return n;if(0===e)return s;if(""===e)return c;if("object"===_typeof(e)||"function"==typeof e)try{var t=e.then;if("function"==typeof t)return new u(t.bind(e))}catch(r){return new u(function(e,t){t(r)})}return f(e)},u.all=function(e){var s=Array.prototype.slice.call(e);return new u(function(n,a){if(0===s.length)return n([]);var o=s.length;for(var e=0;e<s.length;e++)!function t(r,e){if(e&&("object"===_typeof(e)||"function"==typeof e)){if(e instanceof u&&e.then===u.prototype.then){for(;3===e._65;)e=e._55;return 1===e._65?t(r,e._55):(2===e._65&&a(e._55),void e.then(function(e){t(r,e)},a))}var i=e.then;if("function"==typeof i)return void new u(i.bind(e)).then(function(e){t(r,e)},a)}s[r]=e,0==--o&&n(s)}(e,s[e])})},u.reject=function(r){return new u(function(e,t){t(r)})},u.race=function(e){return new u(function(t,r){e.forEach(function(e){u.resolve(e).then(t,r)})})},u.prototype.catch=function(e){return this.then(null,e)}},{"./core.js":356}],359:[function(e,t,r){"use strict";var i=e("./core.js");(t.exports=i).prototype.finally=function(t){return this.then(function(e){return i.resolve(t()).then(function(){return e})},function(e){return i.resolve(t()).then(function(){throw e})})}},{"./core.js":356}],360:[function(e,t,r){"use strict";t.exports=e("./core.js"),e("./done.js"),e("./finally.js"),e("./es6-extensions.js"),e("./node-extensions.js"),e("./synchronous.js")},{"./core.js":356,"./done.js":357,"./es6-extensions.js":358,"./finally.js":359,"./node-extensions.js":361,"./synchronous.js":362}],361:[function(e,t,r){"use strict";var a=e("./core.js"),n=e("asap");(t.exports=a).denodeify=function(e,t){return"number"==typeof t&&t!==1/0?function(e,t){for(var r=[],i=0;i<t;i++)r.push("a"+i);var n=["return function ("+r.join(",")+") {","var self = this;","return new Promise(function (rs, rj) {","var res = fn.call(",["self"].concat(r).concat([o]).join(","),");","if (res &&",'(typeof res === "object" || typeof res === "function") &&','typeof res.then === "function"',") {rs(res);}","});","};"].join("");return Function(["Promise","fn"],n)(a,e)}(e,t):function(e){for(var t=Math.max(e.length-1,3),r=[],i=0;i<t;i++)r.push("a"+i);var n=["return function ("+r.join(",")+") {","var self = this;","var args;","var argLength = arguments.length;","if (arguments.length > "+t+") {","args = new Array(arguments.length + 1);","for (var i = 0; i < arguments.length; i++) {","args[i] = arguments[i];","}","}","return new Promise(function (rs, rj) {","var cb = "+o+";","var res;","switch (argLength) {",r.concat(["extra"]).map(function(e,t){return"case "+t+":res = fn.call("+["self"].concat(r.slice(0,t)).concat("cb").join(",")+");break;"}).join(""),"default:","args[argLength] = cb;","res = fn.apply(self, args);","}","if (res &&",'(typeof res === "object" || typeof res === "function") &&','typeof res.then === "function"',") {rs(res);}","});","};"].join("");return Function(["Promise","fn"],n)(a,e)}(e)};var o="function (err, res) {if (err) { rj(err); } else { rs(res); }}";a.nodeify=function(r){return function(){var e=Array.prototype.slice.call(arguments),t="function"==typeof e[e.length-1]?e.pop():null,i=this;try{return r.apply(this,arguments).nodeify(t,i)}catch(r){if(null==t)return new a(function(e,t){t(r)});n(function(){t.call(i,r)})}}},a.prototype.nodeify=function(t,r){if("function"!=typeof t)return this;this.then(function(e){n(function(){t.call(r,null,e)})},function(e){n(function(){t.call(r,e)})})}},{"./core.js":356,asap:45}],362:[function(e,t,r){"use strict";var i=e("./core.js");(t.exports=i).enableSynchronous=function(){i.prototype.isPending=function(){return 0==this.getState()},i.prototype.isFulfilled=function(){return 1==this.getState()},i.prototype.isRejected=function(){return 2==this.getState()},i.prototype.getValue=function(){if(3===this._65)return this._55.getValue();if(!this.isFulfilled())throw new Error("Cannot get a value of an unfulfilled promise.");return this._55},i.prototype.getReason=function(){if(3===this._65)return this._55.getReason();if(!this.isRejected())throw new Error("Cannot get a rejection reason of a non-rejected promise.");return this._55},i.prototype.getState=function(){return 3===this._65?this._55.getState():-1===this._65||-2===this._65?0:this._65}},i.disableSynchronous=function(){i.prototype.isPending=void 0,i.prototype.isFulfilled=void 0,i.prototype.isRejected=void 0,i.prototype.getValue=void 0,i.prototype.getReason=void 0,i.prototype.getState=void 0}},{"./core.js":356}],363:[function(e,t,r){"use strict";function n(e){for(var t=e.toString(16);4!==t.length;)t="0"+t;return"\\u"+t}t.exports=function(e,t,r,i){return!r.key||61!==t&&58!==t&&t!==r.separator?31<t&&t<127?32===t&&r.whitespace?"\\ ":92===t?"\\\\":e:9===t?r.comment?e:"\\t":10===t?"\\n":12===t?r.comment?e:"\\f":13===t?r.comment?e:"\\r":t<160||!(t<256)&&i.unicode?n(t):e:"\\"+e}},{}],364:[function(e,t,r){"use strict";var i=e("./stringifier");t.exports={parse:e("./read"),stringify:e("./write"),createStringifier:function(){return new i}}},{"./read":366,"./stringifier":367,"./write":369}],365:[function(e,t,r){"use strict";t.exports=function(e,t,r,i){for(var n,a,o,s,u,c,f,p,l,h,d,m,g,b,y=!0,v=!0,_=!0,w="",k="",x=function(){(w||k||m)&&(r.line(w,k),k=w="",m=!1)},S=function(e,t,r){return h&&l?(p=(p<<4)+function(e){switch(e){case"0":return 0;case"1":return 1;case"2":return 2;case"3":return 3;case"4":return 4;case"5":return 5;case"6":return 6;case"7":return 7;case"8":return 8;case"9":return 9;case"a":case"A":return 10;case"b":case"B":return 11;case"c":case"C":return 12;case"d":case"D":return 13;case"e":case"E":return 14;case"f":case"F":return 15}}(t),--l?e:(h=o=!1,e+String.fromCharCode(p))):117===r?(h=!(p=0),l=4,e):(o=!1,116===r?e+"\t":114===r?e+"\r":110===r?e+"\n":102===r?e+"\f":e+t)},j=t._strict?(b=function(e,t,r){return r._comments[e]},function(e,t,r){return r._separators[e]}):(b=function(e,t,r){return 35===t||33===t||r._comments[e]},function(e,t,r){return 61===t||58===t||r._separators[e]}),E=~~i.resume;E<e.length;E++){if(i.abort)return;if(i.pause)return void(i.resume=E);if(n=e[E],13!==(a=e.charCodeAt(E)))if(s)10===a&&(y=v=!(s=!1));else if(u&&93===a)r.section(f),g=!0;else{if(y){if(32===a||9===a||12===a)continue;if(!c&&10===a){v=!(d=!(_=!0)),x();continue}c=y=!1}if(v){if(v=!1,b(n,a,t)){s=!0;continue}if(t.sections&&91===a){u=!(f=""),i.skipSection=!1;continue}}if(10!==a){if(!i.skipSection&&!g)if(u||o||!_||!j(n,a,t))if(92===a){if(o){if(h)continue;d&&(_=d=!1),u?f+="\\":_?w+="\\":k+="\\"}o=!o}else d&&(_=d=!1),u?o?f=S(f,n,a):f+=n:_?o?w=S(w,n,a):32!==a&&9!==a&&12!==a?w+=n:y=d=!0:o?k=S(k,n,a):k+=n;else y=!(d=_=!(m=!0))}else if(o)h||(o=!1),c=y=!0;else{if(u){if(u=!1,!g)return void(i.error=new Error('The section line "'+f+'" must end with "]"'));g=!1}_=y=v=!0,x()}}}i.parsed=!0,!u||g?x():i.error=new Error('The section line "'+f+'" must endwith "]"')}},{}],366:[function(e,t,r){"use strict";function y(e){if(null===e||"null"===e)return null;if("undefined"!==e){if("true"===e)return!0;if("false"===e)return!1;var t=Number(e);return isNaN(t)?e:t}}function v(e,t,r,i){if(!r.variables||!t)return i(null,t);for(var n,a,o,s,u=[],c="",f=null,p=0;p<t.length;p++)if(n=t[p],"$"!==a||"{"!==n){if(u.length){if(r.sections&&"|"===n){f=c,c="";continue}if("}"===n){if(!(s=null!==f?l(e,f,!0):e))return i(new Error('The section "'+f+'" does not exist'));if(o=r.namespaces?l(s,c):s[c],void 0===o&&void 0===(o=r.namespaces?l(r._vars,c):r._vars[c]))return i(new Error('The property "'+c+'" does not exist'));f=(s=u.pop()).section,c=s.key+(null===o?"":o);continue}}c+=a=n}else c=c.substring(0,c.length-1),u.push({key:c,section:f}),c="",f=null;if(0!==u.length)return i(new Error("Malformed variable: "+t));i(null,c)}function _(e,t,r){for(var i,n=t.split("."),a=0;a<n.length-1;a++){if(void 0===e[i=n[a]])e[i]={};else if("object"!==_typeof(e[i]))throw new Error("Invalid namespace chain in the property name '"+t+"' ('"+i+"' has already a value)");e=e[i]}e[n[n.length-1]]=r}function w(e,t){for(var r,i=t.split("."),n=0;n<i.length;n++){if(void 0===e[r=i[n]])e[r]={};else if("object"!==_typeof(e[r]))throw new Error("Invalid namespace chain in the section name '"+t+"' ('"+r+"' has already a value)");e=e[r]}return e}function k(t,r){for(var i in r)try{t[i].constructor===Object?t[i]=k(t[i],r[i]):t[i]=r[i]}catch(e){t[i]=r[i]}return t}function s(r,i,t,n){var a,o={};i.namespaces&&(a={});var s,u,c={abort:!1,skipSection:!1};if(i.include&&(s=0,u=function(e){if(null!==p)return h(new Error("Cannot include files from inside a section: "+p));e=x.resolve(t,e);i._included[e]||(i._included[e]=!0,s++,c.pause=!0,E(e,i,function(e,t){return e?h(e):(s--,k(i.namespaces?a:o,t),c.pause=!1,!c.parsed&&(S(r,i,d,c),c.error)?h(c.error):void(s||n(null,i.namespaces?a:o)))}))}),!r)return n?n(null,o):o;var f,p=null,l=null,h=function(e){if(c.abort=!0,n)return n(e);throw e},d={},m={assert:function(){return!this.isProperty||g.value}},g={},b=i.reviver?i.sections?function(e,t){if(i.include&&e===j)return u(t);if(g.value=t,m.isProperty=!0,m.isSection=!1,void 0!==(t=i.reviver.call(m,e,t,l)))if(i.namespaces)try{_(null===p?a:p,e,t)}catch(e){h(e)}else null===p?o[e]=t:p[e]=t}:function(e,t){if(i.include&&e===j)return u(t);if(g.value=t,m.isProperty=!0,m.isSection=!1,void 0!==(t=i.reviver.call(m,e,t)))if(i.namespaces)try{_(a,e,t)}catch(e){h(e)}else o[e]=t}:i.sections?function(e,t){if(i.include&&e===j)return u(t);if(i.namespaces)try{_(null===p?a:p,e,t)}catch(e){h(e)}else null===p?o[e]=t:p[e]=t}:function(e,t){if(i.include&&e===j)return u(t);if(i.namespaces)try{_(a,e,t)}catch(e){h(e)}else o[e]=t};return i.sections&&(f=i.reviver?function(e){if(l=e,g.section=e,m.isProperty=!1,m.isSection=!0,i.reviver.call(m,null,null,e))if(i.namespaces)try{p=w(a,e)}catch(e){h(e)}else p=o[e]={};else c.skipSection=!0}:function(e){if(l=e,i.namespaces)try{p=w(a,e)}catch(e){h(e)}else p=o[e]={}}),i.variables?(d.line=function(e,t){v(i.namespaces?a:o,e,i,function(e,r){return e?h(e):void v(i.namespaces?a:o,t,i,function(e,t){return e?h(e):void b(r,y(t||null))})})},i.sections&&(d.section=function(e){v(i.namespaces?a:o,e,i,function(e,t){return e?h(e):void f(t)})})):(d.line=function(e,t){b(e,y(t||null))},i.sections&&(d.section=f)),S(r,i,d,c),c.error?h(c.error):c.abort||c.pause?void 0:n?n(null,i.namespaces?a:o):i.namespaces?a:o}var u=e("fs"),x=e("path"),S=e("./parse"),j="include",l=function(e,t,r){for(var i,n=t.split("."),a=0;a<n.length-1;a++){if(void 0===e[i=n[a]])return;e=e[i]}t=e[n[n.length-1]];if(r){if("object"===_typeof(t))return t}else if("object"!==_typeof(t))return t},E=function(i,n,a){u.stat(i,function(e,t){return e?a(e):(t.isDirectory()?(r=i,i=x.join(i,"index.properties")):r=x.dirname(i),void u.readFile(i,{encoding:"utf8"},function(e,t){return e?a(e):void s(t,n,r,a)}));var r})};t.exports=function(e,r,i){var t;if("function"==typeof r&&(i=r,r={}),(r=r||{}).include){if(!i)throw new Error("A callback must be passed if the 'include' option is enabled");r._included={}}(r=r||{})._strict=r.strict&&(r.comments||r.separators),r._vars=r.vars||{};var n=r.comments||[];Array.isArray(n)||(n=[n]);var a={};n.forEach(function(e){if(t=e.charCodeAt(0),1<e.length||t<33||126<t)throw new Error("The comment token must be a single printable ASCII character");a[e]=!0}),r._comments=a;n=r.separators||[];Array.isArray(n)||(n=[n]);var o={};if(n.forEach(function(e){if(t=e.charCodeAt(0),1<e.length||t<33||126<t)throw new Error("The separator token must be a single printable ASCII character");o[e]=!0}),r._separators=o,!r.path)return s(e,r,".",i);if(!i)throw new Error("A callback must be passed if the 'path' option is enabled");r.include?E(e,r,i):u.readFile(e,{encoding:"utf8"},function(e,t){return e?i(e):void s(t,r,".",i)})}},{"./parse":365,fs:180,path:345}],367:[function(e,t,r){"use strict";t=t.exports=function(){this._header=null,this._lines=[]};t.prototype.header=function(e){return this._header=e,this},t.prototype.property=function(e){return e.property=!0,this._lines.push(e),this},t.prototype.section=function(e){return(e="string"==typeof e?{name:e}:e).section=!0,this._lines.push(e),this}},{}],368:[function(t,r,e){(function(e){(function(){"use strict";function l(e,t,r){for(var i,n,a=r._comment,o=0;o<e.length;o++)i=e[o],13!==(n=e.charCodeAt(o))&&(a+=10===n?g+r._comment:s(i,n,t,r));return a}function h(e,t,r){for(var i,n,a="",o=0;o<e.length;o++)i=e[o],n=e.charCodeAt(o),a+=s(i,n,t,r);return a}function d(e,t,r){for(var i,n,a="",o=0;o<e.length;o++)i=e[o],32!==(n=e.charCodeAt(o))&&9!==n&&12!==n&&(t.whitespace=!1),a+=s(i,n,t,r);return a}var s=t("./escape"),m=t("./stringifier"),g="win32"===e.platform?"\r\n":"\n";r.exports=function(e,t){return e instanceof m?(r=e,u="",c={separator:(i=t)._separator.charCodeAt(0)},f=!0,p=null,i.replacer&&(s={assert:function(){return!o.property||o.value}}),r._header&&(c.comment=!0,u+=l(r._header,c,i)+g+g,c.comment=!1),r._lines.forEach(function(e){if(o=e,i.replacer)if(e.property){if(n)return;if(s.isProperty=!0,s.isSection=!1,void 0===(a=i.replacer.call(s,e.key,e.value,p)))return;e.value=a}else{if(n=!1,s.isProperty=!1,s.isSection=!0,!i.replacer.call(s,null,null,e.name))return void(n=!0);p=e.name}f||(u+=e.property?g:g+g),e.comment&&(c.comment=!0,u+=l(e.comment,c,i)+g,c.comment=!1),e.property?(c.whitespace=!0,null!==e.key&&void 0!==e.key&&(c.key=!0,u+=h(e.key+"",c,i),c.key=!1),u+=i._separator,null!==e.value&&void 0!==e.value&&(u+=d(e.value+"",c,i)),c.whitespace=!1):e.name?u+="["+h(e.name+"",c,i)+"]":u+="[]",f=!1}),u):function(e,t){var r,i,n,a="",o={separator:t._separator.charCodeAt(0)},s=!0;for(n in t.replacer&&(i={assert:function(){return!replace.property||replace.value},isProperty:!0,isSection:!1}),e)r=e[n],t.replacer&&void 0===(r=t.replacer.call(i,n,r,null))||(s||(a+=g),o.whitespace=!0,o.key=!0,a+=h(n,o,t),o.key=!1,a+=t._separator,null!=r&&(a+=d(r+"",o,t)),s=o.whitespace=!1);return a}(e,t);var r,i,n,a,o,s,u,c,f,p}}).call(this)}).call(this,t("_process"))},{"./escape":363,"./stringifier":367,_process:354}],369:[function(e,t,r){"use strict";var a=e("fs"),o=e("./stringify");t.exports=function(e,t,r){var i;if("function"==typeof t&&(r=t,t={}),(t=t||{}).comment){if(i=t.comment.charCodeAt(0),1<t.comment.length||i<33||126<i)throw new Error("The comment token must be a single printable ASCII character");t._comment=t.comment}else t._comment="#";if(t._comment+=" ",t.separator){if(i=t.separator.charCodeAt(0),1<t.separator.length||i<33||126<i)throw new Error("The separator token must be a single printable ASCII character");t._separator=t.separator}else t._separator="=";t._separator=" "+t._separator+" ";var n=o(e,t);if(!t.path)return n;if(!r)throw new TypeError("A callback must be passed if the data is stored into a file");a.writeFile(t.path,n,function(e){return e?r(e):void r(null,n)})}},{"./stringify":368,fs:180}],370:[function(e,t,r){t.exports=["ac","com.ac","edu.ac","gov.ac","net.ac","mil.ac","org.ac","ad","nom.ad","ae","co.ae","net.ae","org.ae","sch.ae","ac.ae","gov.ae","mil.ae","aero","accident-investigation.aero","accident-prevention.aero","aerobatic.aero","aeroclub.aero","aerodrome.aero","agents.aero","aircraft.aero","airline.aero","airport.aero","air-surveillance.aero","airtraffic.aero","air-traffic-control.aero","ambulance.aero","amusement.aero","association.aero","author.aero","ballooning.aero","broker.aero","caa.aero","cargo.aero","catering.aero","certification.aero","championship.aero","charter.aero","civilaviation.aero","club.aero","conference.aero","consultant.aero","consulting.aero","control.aero","council.aero","crew.aero","design.aero","dgca.aero","educator.aero","emergency.aero","engine.aero","engineer.aero","entertainment.aero","equipment.aero","exchange.aero","express.aero","federation.aero","flight.aero","freight.aero","fuel.aero","gliding.aero","government.aero","groundhandling.aero","group.aero","hanggliding.aero","homebuilt.aero","insurance.aero","journal.aero","journalist.aero","leasing.aero","logistics.aero","magazine.aero","maintenance.aero","media.aero","microlight.aero","modelling.aero","navigation.aero","parachuting.aero","paragliding.aero","passenger-association.aero","pilot.aero","press.aero","production.aero","recreation.aero","repbody.aero","res.aero","research.aero","rotorcraft.aero","safety.aero","scientist.aero","services.aero","show.aero","skydiving.aero","software.aero","student.aero","trader.aero","trading.aero","trainer.aero","union.aero","workinggroup.aero","works.aero","af","gov.af","com.af","org.af","net.af","edu.af","ag","com.ag","org.ag","net.ag","co.ag","nom.ag","ai","off.ai","com.ai","net.ai","org.ai","al","com.al","edu.al","gov.al","mil.al","net.al","org.al","am","co.am","com.am","commune.am","net.am","org.am","ao","ed.ao","gv.ao","og.ao","co.ao","pb.ao","it.ao","aq","ar","com.ar","edu.ar","gob.ar","gov.ar","int.ar","mil.ar","musica.ar","net.ar","org.ar","tur.ar","arpa","e164.arpa","in-addr.arpa","ip6.arpa","iris.arpa","uri.arpa","urn.arpa","as","gov.as","asia","at","ac.at","co.at","gv.at","or.at","au","com.au","net.au","org.au","edu.au","gov.au","asn.au","id.au","info.au","conf.au","oz.au","act.au","nsw.au","nt.au","qld.au","sa.au","tas.au","vic.au","wa.au","act.edu.au","catholic.edu.au","nsw.edu.au","nt.edu.au","qld.edu.au","sa.edu.au","tas.edu.au","vic.edu.au","wa.edu.au","qld.gov.au","sa.gov.au","tas.gov.au","vic.gov.au","wa.gov.au","education.tas.edu.au","schools.nsw.edu.au","aw","com.aw","ax","az","com.az","net.az","int.az","gov.az","org.az","edu.az","info.az","pp.az","mil.az","name.az","pro.az","biz.az","ba","com.ba","edu.ba","gov.ba","mil.ba","net.ba","org.ba","bb","biz.bb","co.bb","com.bb","edu.bb","gov.bb","info.bb","net.bb","org.bb","store.bb","tv.bb","*.bd","be","ac.be","bf","gov.bf","bg","a.bg","b.bg","c.bg","d.bg","e.bg","f.bg","g.bg","h.bg","i.bg","j.bg","k.bg","l.bg","m.bg","n.bg","o.bg","p.bg","q.bg","r.bg","s.bg","t.bg","u.bg","v.bg","w.bg","x.bg","y.bg","z.bg","0.bg","1.bg","2.bg","3.bg","4.bg","5.bg","6.bg","7.bg","8.bg","9.bg","bh","com.bh","edu.bh","net.bh","org.bh","gov.bh","bi","co.bi","com.bi","edu.bi","or.bi","org.bi","biz","bj","asso.bj","barreau.bj","gouv.bj","bm","com.bm","edu.bm","gov.bm","net.bm","org.bm","bn","com.bn","edu.bn","gov.bn","net.bn","org.bn","bo","com.bo","edu.bo","gob.bo","int.bo","org.bo","net.bo","mil.bo","tv.bo","web.bo","academia.bo","agro.bo","arte.bo","blog.bo","bolivia.bo","ciencia.bo","cooperativa.bo","democracia.bo","deporte.bo","ecologia.bo","economia.bo","empresa.bo","indigena.bo","industria.bo","info.bo","medicina.bo","movimiento.bo","musica.bo","natural.bo","nombre.bo","noticias.bo","patria.bo","politica.bo","profesional.bo","plurinacional.bo","pueblo.bo","revista.bo","salud.bo","tecnologia.bo","tksat.bo","transporte.bo","wiki.bo","br","9guacu.br","abc.br","adm.br","adv.br","agr.br","aju.br","am.br","anani.br","aparecida.br","arq.br","art.br","ato.br","b.br","barueri.br","belem.br","bhz.br","bio.br","blog.br","bmd.br","boavista.br","bsb.br","campinagrande.br","campinas.br","caxias.br","cim.br","cng.br","cnt.br","com.br","contagem.br","coop.br","cri.br","cuiaba.br","curitiba.br","def.br","ecn.br","eco.br","edu.br","emp.br","eng.br","esp.br","etc.br","eti.br","far.br","feira.br","flog.br","floripa.br","fm.br","fnd.br","fortal.br","fot.br","foz.br","fst.br","g12.br","ggf.br","goiania.br","gov.br","ac.gov.br","al.gov.br","am.gov.br","ap.gov.br","ba.gov.br","ce.gov.br","df.gov.br","es.gov.br","go.gov.br","ma.gov.br","mg.gov.br","ms.gov.br","mt.gov.br","pa.gov.br","pb.gov.br","pe.gov.br","pi.gov.br","pr.gov.br","rj.gov.br","rn.gov.br","ro.gov.br","rr.gov.br","rs.gov.br","sc.gov.br","se.gov.br","sp.gov.br","to.gov.br","gru.br","imb.br","ind.br","inf.br","jab.br","jampa.br","jdf.br","joinville.br","jor.br","jus.br","leg.br","lel.br","londrina.br","macapa.br","maceio.br","manaus.br","maringa.br","mat.br","med.br","mil.br","morena.br","mp.br","mus.br","natal.br","net.br","niteroi.br","*.nom.br","not.br","ntr.br","odo.br","ong.br","org.br","osasco.br","palmas.br","poa.br","ppg.br","pro.br","psc.br","psi.br","pvh.br","qsl.br","radio.br","rec.br","recife.br","ribeirao.br","rio.br","riobranco.br","riopreto.br","salvador.br","sampa.br","santamaria.br","santoandre.br","saobernardo.br","saogonca.br","sjc.br","slg.br","slz.br","sorocaba.br","srv.br","taxi.br","tc.br","teo.br","the.br","tmp.br","trd.br","tur.br","tv.br","udi.br","vet.br","vix.br","vlog.br","wiki.br","zlg.br","bs","com.bs","net.bs","org.bs","edu.bs","gov.bs","bt","com.bt","edu.bt","gov.bt","net.bt","org.bt","bv","bw","co.bw","org.bw","by","gov.by","mil.by","com.by","of.by","bz","com.bz","net.bz","org.bz","edu.bz","gov.bz","ca","ab.ca","bc.ca","mb.ca","nb.ca","nf.ca","nl.ca","ns.ca","nt.ca","nu.ca","on.ca","pe.ca","qc.ca","sk.ca","yk.ca","gc.ca","cat","cc","cd","gov.cd","cf","cg","ch","ci","org.ci","or.ci","com.ci","co.ci","edu.ci","ed.ci","ac.ci","net.ci","go.ci","asso.ci","aéroport.ci","int.ci","presse.ci","md.ci","gouv.ci","*.ck","!www.ck","cl","aprendemas.cl","co.cl","gob.cl","gov.cl","mil.cl","cm","co.cm","com.cm","gov.cm","net.cm","cn","ac.cn","com.cn","edu.cn","gov.cn","net.cn","org.cn","mil.cn","公司.cn","网络.cn","網絡.cn","ah.cn","bj.cn","cq.cn","fj.cn","gd.cn","gs.cn","gz.cn","gx.cn","ha.cn","hb.cn","he.cn","hi.cn","hl.cn","hn.cn","jl.cn","js.cn","jx.cn","ln.cn","nm.cn","nx.cn","qh.cn","sc.cn","sd.cn","sh.cn","sn.cn","sx.cn","tj.cn","xj.cn","xz.cn","yn.cn","zj.cn","hk.cn","mo.cn","tw.cn","co","arts.co","com.co","edu.co","firm.co","gov.co","info.co","int.co","mil.co","net.co","nom.co","org.co","rec.co","web.co","com","coop","cr","ac.cr","co.cr","ed.cr","fi.cr","go.cr","or.cr","sa.cr","cu","com.cu","edu.cu","org.cu","net.cu","gov.cu","inf.cu","cv","cw","com.cw","edu.cw","net.cw","org.cw","cx","gov.cx","cy","ac.cy","biz.cy","com.cy","ekloges.cy","gov.cy","ltd.cy","name.cy","net.cy","org.cy","parliament.cy","press.cy","pro.cy","tm.cy","cz","de","dj","dk","dm","com.dm","net.dm","org.dm","edu.dm","gov.dm","do","art.do","com.do","edu.do","gob.do","gov.do","mil.do","net.do","org.do","sld.do","web.do","dz","com.dz","org.dz","net.dz","gov.dz","edu.dz","asso.dz","pol.dz","art.dz","ec","com.ec","info.ec","net.ec","fin.ec","k12.ec","med.ec","pro.ec","org.ec","edu.ec","gov.ec","gob.ec","mil.ec","edu","ee","edu.ee","gov.ee","riik.ee","lib.ee","med.ee","com.ee","pri.ee","aip.ee","org.ee","fie.ee","eg","com.eg","edu.eg","eun.eg","gov.eg","mil.eg","name.eg","net.eg","org.eg","sci.eg","*.er","es","com.es","nom.es","org.es","gob.es","edu.es","et","com.et","gov.et","org.et","edu.et","biz.et","name.et","info.et","net.et","eu","fi","aland.fi","fj","ac.fj","biz.fj","com.fj","gov.fj","info.fj","mil.fj","name.fj","net.fj","org.fj","pro.fj","*.fk","fm","fo","fr","asso.fr","com.fr","gouv.fr","nom.fr","prd.fr","tm.fr","aeroport.fr","avocat.fr","avoues.fr","cci.fr","chambagri.fr","chirurgiens-dentistes.fr","experts-comptables.fr","geometre-expert.fr","greta.fr","huissier-justice.fr","medecin.fr","notaires.fr","pharmacien.fr","port.fr","veterinaire.fr","ga","gb","gd","ge","com.ge","edu.ge","gov.ge","org.ge","mil.ge","net.ge","pvt.ge","gf","gg","co.gg","net.gg","org.gg","gh","com.gh","edu.gh","gov.gh","org.gh","mil.gh","gi","com.gi","ltd.gi","gov.gi","mod.gi","edu.gi","org.gi","gl","co.gl","com.gl","edu.gl","net.gl","org.gl","gm","gn","ac.gn","com.gn","edu.gn","gov.gn","org.gn","net.gn","gov","gp","com.gp","net.gp","mobi.gp","edu.gp","org.gp","asso.gp","gq","gr","com.gr","edu.gr","net.gr","org.gr","gov.gr","gs","gt","com.gt","edu.gt","gob.gt","ind.gt","mil.gt","net.gt","org.gt","gu","com.gu","edu.gu","gov.gu","guam.gu","info.gu","net.gu","org.gu","web.gu","gw","gy","co.gy","com.gy","edu.gy","gov.gy","net.gy","org.gy","hk","com.hk","edu.hk","gov.hk","idv.hk","net.hk","org.hk","公司.hk","教育.hk","敎育.hk","政府.hk","個人.hk","个人.hk","箇人.hk","網络.hk","网络.hk","组織.hk","網絡.hk","网絡.hk","组织.hk","組織.hk","組织.hk","hm","hn","com.hn","edu.hn","org.hn","net.hn","mil.hn","gob.hn","hr","iz.hr","from.hr","name.hr","com.hr","ht","com.ht","shop.ht","firm.ht","info.ht","adult.ht","net.ht","pro.ht","org.ht","med.ht","art.ht","coop.ht","pol.ht","asso.ht","edu.ht","rel.ht","gouv.ht","perso.ht","hu","co.hu","info.hu","org.hu","priv.hu","sport.hu","tm.hu","2000.hu","agrar.hu","bolt.hu","casino.hu","city.hu","erotica.hu","erotika.hu","film.hu","forum.hu","games.hu","hotel.hu","ingatlan.hu","jogasz.hu","konyvelo.hu","lakas.hu","media.hu","news.hu","reklam.hu","sex.hu","shop.hu","suli.hu","szex.hu","tozsde.hu","utazas.hu","video.hu","id","ac.id","biz.id","co.id","desa.id","go.id","mil.id","my.id","net.id","or.id","ponpes.id","sch.id","web.id","ie","gov.ie","il","ac.il","co.il","gov.il","idf.il","k12.il","muni.il","net.il","org.il","im","ac.im","co.im","com.im","ltd.co.im","net.im","org.im","plc.co.im","tt.im","tv.im","in","co.in","firm.in","net.in","org.in","gen.in","ind.in","nic.in","ac.in","edu.in","res.in","gov.in","mil.in","info","int","eu.int","io","com.io","iq","gov.iq","edu.iq","mil.iq","com.iq","org.iq","net.iq","ir","ac.ir","co.ir","gov.ir","id.ir","net.ir","org.ir","sch.ir","ایران.ir","ايران.ir","is","net.is","com.is","edu.is","gov.is","org.is","int.is","it","gov.it","edu.it","abr.it","abruzzo.it","aosta-valley.it","aostavalley.it","bas.it","basilicata.it","cal.it","calabria.it","cam.it","campania.it","emilia-romagna.it","emiliaromagna.it","emr.it","friuli-v-giulia.it","friuli-ve-giulia.it","friuli-vegiulia.it","friuli-venezia-giulia.it","friuli-veneziagiulia.it","friuli-vgiulia.it","friuliv-giulia.it","friulive-giulia.it","friulivegiulia.it","friulivenezia-giulia.it","friuliveneziagiulia.it","friulivgiulia.it","fvg.it","laz.it","lazio.it","lig.it","liguria.it","lom.it","lombardia.it","lombardy.it","lucania.it","mar.it","marche.it","mol.it","molise.it","piedmont.it","piemonte.it","pmn.it","pug.it","puglia.it","sar.it","sardegna.it","sardinia.it","sic.it","sicilia.it","sicily.it","taa.it","tos.it","toscana.it","trentin-sud-tirol.it","trentin-süd-tirol.it","trentin-sudtirol.it","trentin-südtirol.it","trentin-sued-tirol.it","trentin-suedtirol.it","trentino-a-adige.it","trentino-aadige.it","trentino-alto-adige.it","trentino-altoadige.it","trentino-s-tirol.it","trentino-stirol.it","trentino-sud-tirol.it","trentino-süd-tirol.it","trentino-sudtirol.it","trentino-südtirol.it","trentino-sued-tirol.it","trentino-suedtirol.it","trentino.it","trentinoa-adige.it","trentinoaadige.it","trentinoalto-adige.it","trentinoaltoadige.it","trentinos-tirol.it","trentinostirol.it","trentinosud-tirol.it","trentinosüd-tirol.it","trentinosudtirol.it","trentinosüdtirol.it","trentinosued-tirol.it","trentinosuedtirol.it","trentinsud-tirol.it","trentinsüd-tirol.it","trentinsudtirol.it","trentinsüdtirol.it","trentinsued-tirol.it","trentinsuedtirol.it","tuscany.it","umb.it","umbria.it","val-d-aosta.it","val-daosta.it","vald-aosta.it","valdaosta.it","valle-aosta.it","valle-d-aosta.it","valle-daosta.it","valleaosta.it","valled-aosta.it","valledaosta.it","vallee-aoste.it","vallée-aoste.it","vallee-d-aoste.it","vallée-d-aoste.it","valleeaoste.it","valléeaoste.it","valleedaoste.it","valléedaoste.it","vao.it","vda.it","ven.it","veneto.it","ag.it","agrigento.it","al.it","alessandria.it","alto-adige.it","altoadige.it","an.it","ancona.it","andria-barletta-trani.it","andria-trani-barletta.it","andriabarlettatrani.it","andriatranibarletta.it","ao.it","aosta.it","aoste.it","ap.it","aq.it","aquila.it","ar.it","arezzo.it","ascoli-piceno.it","ascolipiceno.it","asti.it","at.it","av.it","avellino.it","ba.it","balsan-sudtirol.it","balsan-südtirol.it","balsan-suedtirol.it","balsan.it","bari.it","barletta-trani-andria.it","barlettatraniandria.it","belluno.it","benevento.it","bergamo.it","bg.it","bi.it","biella.it","bl.it","bn.it","bo.it","bologna.it","bolzano-altoadige.it","bolzano.it","bozen-sudtirol.it","bozen-südtirol.it","bozen-suedtirol.it","bozen.it","br.it","brescia.it","brindisi.it","bs.it","bt.it","bulsan-sudtirol.it","bulsan-südtirol.it","bulsan-suedtirol.it","bulsan.it","bz.it","ca.it","cagliari.it","caltanissetta.it","campidano-medio.it","campidanomedio.it","campobasso.it","carbonia-iglesias.it","carboniaiglesias.it","carrara-massa.it","carraramassa.it","caserta.it","catania.it","catanzaro.it","cb.it","ce.it","cesena-forli.it","cesena-forlì.it","cesenaforli.it","cesenaforlì.it","ch.it","chieti.it","ci.it","cl.it","cn.it","co.it","como.it","cosenza.it","cr.it","cremona.it","crotone.it","cs.it","ct.it","cuneo.it","cz.it","dell-ogliastra.it","dellogliastra.it","en.it","enna.it","fc.it","fe.it","fermo.it","ferrara.it","fg.it","fi.it","firenze.it","florence.it","fm.it","foggia.it","forli-cesena.it","forlì-cesena.it","forlicesena.it","forlìcesena.it","fr.it","frosinone.it","ge.it","genoa.it","genova.it","go.it","gorizia.it","gr.it","grosseto.it","iglesias-carbonia.it","iglesiascarbonia.it","im.it","imperia.it","is.it","isernia.it","kr.it","la-spezia.it","laquila.it","laspezia.it","latina.it","lc.it","le.it","lecce.it","lecco.it","li.it","livorno.it","lo.it","lodi.it","lt.it","lu.it","lucca.it","macerata.it","mantova.it","massa-carrara.it","massacarrara.it","matera.it","mb.it","mc.it","me.it","medio-campidano.it","mediocampidano.it","messina.it","mi.it","milan.it","milano.it","mn.it","mo.it","modena.it","monza-brianza.it","monza-e-della-brianza.it","monza.it","monzabrianza.it","monzaebrianza.it","monzaedellabrianza.it","ms.it","mt.it","na.it","naples.it","napoli.it","no.it","novara.it","nu.it","nuoro.it","og.it","ogliastra.it","olbia-tempio.it","olbiatempio.it","or.it","oristano.it","ot.it","pa.it","padova.it","padua.it","palermo.it","parma.it","pavia.it","pc.it","pd.it","pe.it","perugia.it","pesaro-urbino.it","pesarourbino.it","pescara.it","pg.it","pi.it","piacenza.it","pisa.it","pistoia.it","pn.it","po.it","pordenone.it","potenza.it","pr.it","prato.it","pt.it","pu.it","pv.it","pz.it","ra.it","ragusa.it","ravenna.it","rc.it","re.it","reggio-calabria.it","reggio-emilia.it","reggiocalabria.it","reggioemilia.it","rg.it","ri.it","rieti.it","rimini.it","rm.it","rn.it","ro.it","roma.it","rome.it","rovigo.it","sa.it","salerno.it","sassari.it","savona.it","si.it","siena.it","siracusa.it","so.it","sondrio.it","sp.it","sr.it","ss.it","suedtirol.it","südtirol.it","sv.it","ta.it","taranto.it","te.it","tempio-olbia.it","tempioolbia.it","teramo.it","terni.it","tn.it","to.it","torino.it","tp.it","tr.it","trani-andria-barletta.it","trani-barletta-andria.it","traniandriabarletta.it","tranibarlettaandria.it","trapani.it","trento.it","treviso.it","trieste.it","ts.it","turin.it","tv.it","ud.it","udine.it","urbino-pesaro.it","urbinopesaro.it","va.it","varese.it","vb.it","vc.it","ve.it","venezia.it","venice.it","verbania.it","vercelli.it","verona.it","vi.it","vibo-valentia.it","vibovalentia.it","vicenza.it","viterbo.it","vr.it","vs.it","vt.it","vv.it","je","co.je","net.je","org.je","*.jm","jo","com.jo","org.jo","net.jo","edu.jo","sch.jo","gov.jo","mil.jo","name.jo","jobs","jp","ac.jp","ad.jp","co.jp","ed.jp","go.jp","gr.jp","lg.jp","ne.jp","or.jp","aichi.jp","akita.jp","aomori.jp","chiba.jp","ehime.jp","fukui.jp","fukuoka.jp","fukushima.jp","gifu.jp","gunma.jp","hiroshima.jp","hokkaido.jp","hyogo.jp","ibaraki.jp","ishikawa.jp","iwate.jp","kagawa.jp","kagoshima.jp","kanagawa.jp","kochi.jp","kumamoto.jp","kyoto.jp","mie.jp","miyagi.jp","miyazaki.jp","nagano.jp","nagasaki.jp","nara.jp","niigata.jp","oita.jp","okayama.jp","okinawa.jp","osaka.jp","saga.jp","saitama.jp","shiga.jp","shimane.jp","shizuoka.jp","tochigi.jp","tokushima.jp","tokyo.jp","tottori.jp","toyama.jp","wakayama.jp","yamagata.jp","yamaguchi.jp","yamanashi.jp","栃木.jp","愛知.jp","愛媛.jp","兵庫.jp","熊本.jp","茨城.jp","北海道.jp","千葉.jp","和歌山.jp","長崎.jp","長野.jp","新潟.jp","青森.jp","静岡.jp","東京.jp","石川.jp","埼玉.jp","三重.jp","京都.jp","佐賀.jp","大分.jp","大阪.jp","奈良.jp","宮城.jp","宮崎.jp","富山.jp","山口.jp","山形.jp","山梨.jp","岩手.jp","岐阜.jp","岡山.jp","島根.jp","広島.jp","徳島.jp","沖縄.jp","滋賀.jp","神奈川.jp","福井.jp","福岡.jp","福島.jp","秋田.jp","群馬.jp","香川.jp","高知.jp","鳥取.jp","鹿児島.jp","*.kawasaki.jp","*.kitakyushu.jp","*.kobe.jp","*.nagoya.jp","*.sapporo.jp","*.sendai.jp","*.yokohama.jp","!city.kawasaki.jp","!city.kitakyushu.jp","!city.kobe.jp","!city.nagoya.jp","!city.sapporo.jp","!city.sendai.jp","!city.yokohama.jp","aisai.aichi.jp","ama.aichi.jp","anjo.aichi.jp","asuke.aichi.jp","chiryu.aichi.jp","chita.aichi.jp","fuso.aichi.jp","gamagori.aichi.jp","handa.aichi.jp","hazu.aichi.jp","hekinan.aichi.jp","higashiura.aichi.jp","ichinomiya.aichi.jp","inazawa.aichi.jp","inuyama.aichi.jp","isshiki.aichi.jp","iwakura.aichi.jp","kanie.aichi.jp","kariya.aichi.jp","kasugai.aichi.jp","kira.aichi.jp","kiyosu.aichi.jp","komaki.aichi.jp","konan.aichi.jp","kota.aichi.jp","mihama.aichi.jp","miyoshi.aichi.jp","nishio.aichi.jp","nisshin.aichi.jp","obu.aichi.jp","oguchi.aichi.jp","oharu.aichi.jp","okazaki.aichi.jp","owariasahi.aichi.jp","seto.aichi.jp","shikatsu.aichi.jp","shinshiro.aichi.jp","shitara.aichi.jp","tahara.aichi.jp","takahama.aichi.jp","tobishima.aichi.jp","toei.aichi.jp","togo.aichi.jp","tokai.aichi.jp","tokoname.aichi.jp","toyoake.aichi.jp","toyohashi.aichi.jp","toyokawa.aichi.jp","toyone.aichi.jp","toyota.aichi.jp","tsushima.aichi.jp","yatomi.aichi.jp","akita.akita.jp","daisen.akita.jp","fujisato.akita.jp","gojome.akita.jp","hachirogata.akita.jp","happou.akita.jp","higashinaruse.akita.jp","honjo.akita.jp","honjyo.akita.jp","ikawa.akita.jp","kamikoani.akita.jp","kamioka.akita.jp","katagami.akita.jp","kazuno.akita.jp","kitaakita.akita.jp","kosaka.akita.jp","kyowa.akita.jp","misato.akita.jp","mitane.akita.jp","moriyoshi.akita.jp","nikaho.akita.jp","noshiro.akita.jp","odate.akita.jp","oga.akita.jp","ogata.akita.jp","semboku.akita.jp","yokote.akita.jp","yurihonjo.akita.jp","aomori.aomori.jp","gonohe.aomori.jp","hachinohe.aomori.jp","hashikami.aomori.jp","hiranai.aomori.jp","hirosaki.aomori.jp","itayanagi.aomori.jp","kuroishi.aomori.jp","misawa.aomori.jp","mutsu.aomori.jp","nakadomari.aomori.jp","noheji.aomori.jp","oirase.aomori.jp","owani.aomori.jp","rokunohe.aomori.jp","sannohe.aomori.jp","shichinohe.aomori.jp","shingo.aomori.jp","takko.aomori.jp","towada.aomori.jp","tsugaru.aomori.jp","tsuruta.aomori.jp","abiko.chiba.jp","asahi.chiba.jp","chonan.chiba.jp","chosei.chiba.jp","choshi.chiba.jp","chuo.chiba.jp","funabashi.chiba.jp","futtsu.chiba.jp","hanamigawa.chiba.jp","ichihara.chiba.jp","ichikawa.chiba.jp","ichinomiya.chiba.jp","inzai.chiba.jp","isumi.chiba.jp","kamagaya.chiba.jp","kamogawa.chiba.jp","kashiwa.chiba.jp","katori.chiba.jp","katsuura.chiba.jp","kimitsu.chiba.jp","kisarazu.chiba.jp","kozaki.chiba.jp","kujukuri.chiba.jp","kyonan.chiba.jp","matsudo.chiba.jp","midori.chiba.jp","mihama.chiba.jp","minamiboso.chiba.jp","mobara.chiba.jp","mutsuzawa.chiba.jp","nagara.chiba.jp","nagareyama.chiba.jp","narashino.chiba.jp","narita.chiba.jp","noda.chiba.jp","oamishirasato.chiba.jp","omigawa.chiba.jp","onjuku.chiba.jp","otaki.chiba.jp","sakae.chiba.jp","sakura.chiba.jp","shimofusa.chiba.jp","shirako.chiba.jp","shiroi.chiba.jp","shisui.chiba.jp","sodegaura.chiba.jp","sosa.chiba.jp","tako.chiba.jp","tateyama.chiba.jp","togane.chiba.jp","tohnosho.chiba.jp","tomisato.chiba.jp","urayasu.chiba.jp","yachimata.chiba.jp","yachiyo.chiba.jp","yokaichiba.chiba.jp","yokoshibahikari.chiba.jp","yotsukaido.chiba.jp","ainan.ehime.jp","honai.ehime.jp","ikata.ehime.jp","imabari.ehime.jp","iyo.ehime.jp","kamijima.ehime.jp","kihoku.ehime.jp","kumakogen.ehime.jp","masaki.ehime.jp","matsuno.ehime.jp","matsuyama.ehime.jp","namikata.ehime.jp","niihama.ehime.jp","ozu.ehime.jp","saijo.ehime.jp","seiyo.ehime.jp","shikokuchuo.ehime.jp","tobe.ehime.jp","toon.ehime.jp","uchiko.ehime.jp","uwajima.ehime.jp","yawatahama.ehime.jp","echizen.fukui.jp","eiheiji.fukui.jp","fukui.fukui.jp","ikeda.fukui.jp","katsuyama.fukui.jp","mihama.fukui.jp","minamiechizen.fukui.jp","obama.fukui.jp","ohi.fukui.jp","ono.fukui.jp","sabae.fukui.jp","sakai.fukui.jp","takahama.fukui.jp","tsuruga.fukui.jp","wakasa.fukui.jp","ashiya.fukuoka.jp","buzen.fukuoka.jp","chikugo.fukuoka.jp","chikuho.fukuoka.jp","chikujo.fukuoka.jp","chikushino.fukuoka.jp","chikuzen.fukuoka.jp","chuo.fukuoka.jp","dazaifu.fukuoka.jp","fukuchi.fukuoka.jp","hakata.fukuoka.jp","higashi.fukuoka.jp","hirokawa.fukuoka.jp","hisayama.fukuoka.jp","iizuka.fukuoka.jp","inatsuki.fukuoka.jp","kaho.fukuoka.jp","kasuga.fukuoka.jp","kasuya.fukuoka.jp","kawara.fukuoka.jp","keisen.fukuoka.jp","koga.fukuoka.jp","kurate.fukuoka.jp","kurogi.fukuoka.jp","kurume.fukuoka.jp","minami.fukuoka.jp","miyako.fukuoka.jp","miyama.fukuoka.jp","miyawaka.fukuoka.jp","mizumaki.fukuoka.jp","munakata.fukuoka.jp","nakagawa.fukuoka.jp","nakama.fukuoka.jp","nishi.fukuoka.jp","nogata.fukuoka.jp","ogori.fukuoka.jp","okagaki.fukuoka.jp","okawa.fukuoka.jp","oki.fukuoka.jp","omuta.fukuoka.jp","onga.fukuoka.jp","onojo.fukuoka.jp","oto.fukuoka.jp","saigawa.fukuoka.jp","sasaguri.fukuoka.jp","shingu.fukuoka.jp","shinyoshitomi.fukuoka.jp","shonai.fukuoka.jp","soeda.fukuoka.jp","sue.fukuoka.jp","tachiarai.fukuoka.jp","tagawa.fukuoka.jp","takata.fukuoka.jp","toho.fukuoka.jp","toyotsu.fukuoka.jp","tsuiki.fukuoka.jp","ukiha.fukuoka.jp","umi.fukuoka.jp","usui.fukuoka.jp","yamada.fukuoka.jp","yame.fukuoka.jp","yanagawa.fukuoka.jp","yukuhashi.fukuoka.jp","aizubange.fukushima.jp","aizumisato.fukushima.jp","aizuwakamatsu.fukushima.jp","asakawa.fukushima.jp","bandai.fukushima.jp","date.fukushima.jp","fukushima.fukushima.jp","furudono.fukushima.jp","futaba.fukushima.jp","hanawa.fukushima.jp","higashi.fukushima.jp","hirata.fukushima.jp","hirono.fukushima.jp","iitate.fukushima.jp","inawashiro.fukushima.jp","ishikawa.fukushima.jp","iwaki.fukushima.jp","izumizaki.fukushima.jp","kagamiishi.fukushima.jp","kaneyama.fukushima.jp","kawamata.fukushima.jp","kitakata.fukushima.jp","kitashiobara.fukushima.jp","koori.fukushima.jp","koriyama.fukushima.jp","kunimi.fukushima.jp","miharu.fukushima.jp","mishima.fukushima.jp","namie.fukushima.jp","nango.fukushima.jp","nishiaizu.fukushima.jp","nishigo.fukushima.jp","okuma.fukushima.jp","omotego.fukushima.jp","ono.fukushima.jp","otama.fukushima.jp","samegawa.fukushima.jp","shimogo.fukushima.jp","shirakawa.fukushima.jp","showa.fukushima.jp","soma.fukushima.jp","sukagawa.fukushima.jp","taishin.fukushima.jp","tamakawa.fukushima.jp","tanagura.fukushima.jp","tenei.fukushima.jp","yabuki.fukushima.jp","yamato.fukushima.jp","yamatsuri.fukushima.jp","yanaizu.fukushima.jp","yugawa.fukushima.jp","anpachi.gifu.jp","ena.gifu.jp","gifu.gifu.jp","ginan.gifu.jp","godo.gifu.jp","gujo.gifu.jp","hashima.gifu.jp","hichiso.gifu.jp","hida.gifu.jp","higashishirakawa.gifu.jp","ibigawa.gifu.jp","ikeda.gifu.jp","kakamigahara.gifu.jp","kani.gifu.jp","kasahara.gifu.jp","kasamatsu.gifu.jp","kawaue.gifu.jp","kitagata.gifu.jp","mino.gifu.jp","minokamo.gifu.jp","mitake.gifu.jp","mizunami.gifu.jp","motosu.gifu.jp","nakatsugawa.gifu.jp","ogaki.gifu.jp","sakahogi.gifu.jp","seki.gifu.jp","sekigahara.gifu.jp","shirakawa.gifu.jp","tajimi.gifu.jp","takayama.gifu.jp","tarui.gifu.jp","toki.gifu.jp","tomika.gifu.jp","wanouchi.gifu.jp","yamagata.gifu.jp","yaotsu.gifu.jp","yoro.gifu.jp","annaka.gunma.jp","chiyoda.gunma.jp","fujioka.gunma.jp","higashiagatsuma.gunma.jp","isesaki.gunma.jp","itakura.gunma.jp","kanna.gunma.jp","kanra.gunma.jp","katashina.gunma.jp","kawaba.gunma.jp","kiryu.gunma.jp","kusatsu.gunma.jp","maebashi.gunma.jp","meiwa.gunma.jp","midori.gunma.jp","minakami.gunma.jp","naganohara.gunma.jp","nakanojo.gunma.jp","nanmoku.gunma.jp","numata.gunma.jp","oizumi.gunma.jp","ora.gunma.jp","ota.gunma.jp","shibukawa.gunma.jp","shimonita.gunma.jp","shinto.gunma.jp","showa.gunma.jp","takasaki.gunma.jp","takayama.gunma.jp","tamamura.gunma.jp","tatebayashi.gunma.jp","tomioka.gunma.jp","tsukiyono.gunma.jp","tsumagoi.gunma.jp","ueno.gunma.jp","yoshioka.gunma.jp","asaminami.hiroshima.jp","daiwa.hiroshima.jp","etajima.hiroshima.jp","fuchu.hiroshima.jp","fukuyama.hiroshima.jp","hatsukaichi.hiroshima.jp","higashihiroshima.hiroshima.jp","hongo.hiroshima.jp","jinsekikogen.hiroshima.jp","kaita.hiroshima.jp","kui.hiroshima.jp","kumano.hiroshima.jp","kure.hiroshima.jp","mihara.hiroshima.jp","miyoshi.hiroshima.jp","naka.hiroshima.jp","onomichi.hiroshima.jp","osakikamijima.hiroshima.jp","otake.hiroshima.jp","saka.hiroshima.jp","sera.hiroshima.jp","seranishi.hiroshima.jp","shinichi.hiroshima.jp","shobara.hiroshima.jp","takehara.hiroshima.jp","abashiri.hokkaido.jp","abira.hokkaido.jp","aibetsu.hokkaido.jp","akabira.hokkaido.jp","akkeshi.hokkaido.jp","asahikawa.hokkaido.jp","ashibetsu.hokkaido.jp","ashoro.hokkaido.jp","assabu.hokkaido.jp","atsuma.hokkaido.jp","bibai.hokkaido.jp","biei.hokkaido.jp","bifuka.hokkaido.jp","bihoro.hokkaido.jp","biratori.hokkaido.jp","chippubetsu.hokkaido.jp","chitose.hokkaido.jp","date.hokkaido.jp","ebetsu.hokkaido.jp","embetsu.hokkaido.jp","eniwa.hokkaido.jp","erimo.hokkaido.jp","esan.hokkaido.jp","esashi.hokkaido.jp","fukagawa.hokkaido.jp","fukushima.hokkaido.jp","furano.hokkaido.jp","furubira.hokkaido.jp","haboro.hokkaido.jp","hakodate.hokkaido.jp","hamatonbetsu.hokkaido.jp","hidaka.hokkaido.jp","higashikagura.hokkaido.jp","higashikawa.hokkaido.jp","hiroo.hokkaido.jp","hokuryu.hokkaido.jp","hokuto.hokkaido.jp","honbetsu.hokkaido.jp","horokanai.hokkaido.jp","horonobe.hokkaido.jp","ikeda.hokkaido.jp","imakane.hokkaido.jp","ishikari.hokkaido.jp","iwamizawa.hokkaido.jp","iwanai.hokkaido.jp","kamifurano.hokkaido.jp","kamikawa.hokkaido.jp","kamishihoro.hokkaido.jp","kamisunagawa.hokkaido.jp","kamoenai.hokkaido.jp","kayabe.hokkaido.jp","kembuchi.hokkaido.jp","kikonai.hokkaido.jp","kimobetsu.hokkaido.jp","kitahiroshima.hokkaido.jp","kitami.hokkaido.jp","kiyosato.hokkaido.jp","koshimizu.hokkaido.jp","kunneppu.hokkaido.jp","kuriyama.hokkaido.jp","kuromatsunai.hokkaido.jp","kushiro.hokkaido.jp","kutchan.hokkaido.jp","kyowa.hokkaido.jp","mashike.hokkaido.jp","matsumae.hokkaido.jp","mikasa.hokkaido.jp","minamifurano.hokkaido.jp","mombetsu.hokkaido.jp","moseushi.hokkaido.jp","mukawa.hokkaido.jp","muroran.hokkaido.jp","naie.hokkaido.jp","nakagawa.hokkaido.jp","nakasatsunai.hokkaido.jp","nakatombetsu.hokkaido.jp","nanae.hokkaido.jp","nanporo.hokkaido.jp","nayoro.hokkaido.jp","nemuro.hokkaido.jp","niikappu.hokkaido.jp","niki.hokkaido.jp","nishiokoppe.hokkaido.jp","noboribetsu.hokkaido.jp","numata.hokkaido.jp","obihiro.hokkaido.jp","obira.hokkaido.jp","oketo.hokkaido.jp","okoppe.hokkaido.jp","otaru.hokkaido.jp","otobe.hokkaido.jp","otofuke.hokkaido.jp","otoineppu.hokkaido.jp","oumu.hokkaido.jp","ozora.hokkaido.jp","pippu.hokkaido.jp","rankoshi.hokkaido.jp","rebun.hokkaido.jp","rikubetsu.hokkaido.jp","rishiri.hokkaido.jp","rishirifuji.hokkaido.jp","saroma.hokkaido.jp","sarufutsu.hokkaido.jp","shakotan.hokkaido.jp","shari.hokkaido.jp","shibecha.hokkaido.jp","shibetsu.hokkaido.jp","shikabe.hokkaido.jp","shikaoi.hokkaido.jp","shimamaki.hokkaido.jp","shimizu.hokkaido.jp","shimokawa.hokkaido.jp","shinshinotsu.hokkaido.jp","shintoku.hokkaido.jp","shiranuka.hokkaido.jp","shiraoi.hokkaido.jp","shiriuchi.hokkaido.jp","sobetsu.hokkaido.jp","sunagawa.hokkaido.jp","taiki.hokkaido.jp","takasu.hokkaido.jp","takikawa.hokkaido.jp","takinoue.hokkaido.jp","teshikaga.hokkaido.jp","tobetsu.hokkaido.jp","tohma.hokkaido.jp","tomakomai.hokkaido.jp","tomari.hokkaido.jp","toya.hokkaido.jp","toyako.hokkaido.jp","toyotomi.hokkaido.jp","toyoura.hokkaido.jp","tsubetsu.hokkaido.jp","tsukigata.hokkaido.jp","urakawa.hokkaido.jp","urausu.hokkaido.jp","uryu.hokkaido.jp","utashinai.hokkaido.jp","wakkanai.hokkaido.jp","wassamu.hokkaido.jp","yakumo.hokkaido.jp","yoichi.hokkaido.jp","aioi.hyogo.jp","akashi.hyogo.jp","ako.hyogo.jp","amagasaki.hyogo.jp","aogaki.hyogo.jp","asago.hyogo.jp","ashiya.hyogo.jp","awaji.hyogo.jp","fukusaki.hyogo.jp","goshiki.hyogo.jp","harima.hyogo.jp","himeji.hyogo.jp","ichikawa.hyogo.jp","inagawa.hyogo.jp","itami.hyogo.jp","kakogawa.hyogo.jp","kamigori.hyogo.jp","kamikawa.hyogo.jp","kasai.hyogo.jp","kasuga.hyogo.jp","kawanishi.hyogo.jp","miki.hyogo.jp","minamiawaji.hyogo.jp","nishinomiya.hyogo.jp","nishiwaki.hyogo.jp","ono.hyogo.jp","sanda.hyogo.jp","sannan.hyogo.jp","sasayama.hyogo.jp","sayo.hyogo.jp","shingu.hyogo.jp","shinonsen.hyogo.jp","shiso.hyogo.jp","sumoto.hyogo.jp","taishi.hyogo.jp","taka.hyogo.jp","takarazuka.hyogo.jp","takasago.hyogo.jp","takino.hyogo.jp","tamba.hyogo.jp","tatsuno.hyogo.jp","toyooka.hyogo.jp","yabu.hyogo.jp","yashiro.hyogo.jp","yoka.hyogo.jp","yokawa.hyogo.jp","ami.ibaraki.jp","asahi.ibaraki.jp","bando.ibaraki.jp","chikusei.ibaraki.jp","daigo.ibaraki.jp","fujishiro.ibaraki.jp","hitachi.ibaraki.jp","hitachinaka.ibaraki.jp","hitachiomiya.ibaraki.jp","hitachiota.ibaraki.jp","ibaraki.ibaraki.jp","ina.ibaraki.jp","inashiki.ibaraki.jp","itako.ibaraki.jp","iwama.ibaraki.jp","joso.ibaraki.jp","kamisu.ibaraki.jp","kasama.ibaraki.jp","kashima.ibaraki.jp","kasumigaura.ibaraki.jp","koga.ibaraki.jp","miho.ibaraki.jp","mito.ibaraki.jp","moriya.ibaraki.jp","naka.ibaraki.jp","namegata.ibaraki.jp","oarai.ibaraki.jp","ogawa.ibaraki.jp","omitama.ibaraki.jp","ryugasaki.ibaraki.jp","sakai.ibaraki.jp","sakuragawa.ibaraki.jp","shimodate.ibaraki.jp","shimotsuma.ibaraki.jp","shirosato.ibaraki.jp","sowa.ibaraki.jp","suifu.ibaraki.jp","takahagi.ibaraki.jp","tamatsukuri.ibaraki.jp","tokai.ibaraki.jp","tomobe.ibaraki.jp","tone.ibaraki.jp","toride.ibaraki.jp","tsuchiura.ibaraki.jp","tsukuba.ibaraki.jp","uchihara.ibaraki.jp","ushiku.ibaraki.jp","yachiyo.ibaraki.jp","yamagata.ibaraki.jp","yawara.ibaraki.jp","yuki.ibaraki.jp","anamizu.ishikawa.jp","hakui.ishikawa.jp","hakusan.ishikawa.jp","kaga.ishikawa.jp","kahoku.ishikawa.jp","kanazawa.ishikawa.jp","kawakita.ishikawa.jp","komatsu.ishikawa.jp","nakanoto.ishikawa.jp","nanao.ishikawa.jp","nomi.ishikawa.jp","nonoichi.ishikawa.jp","noto.ishikawa.jp","shika.ishikawa.jp","suzu.ishikawa.jp","tsubata.ishikawa.jp","tsurugi.ishikawa.jp","uchinada.ishikawa.jp","wajima.ishikawa.jp","fudai.iwate.jp","fujisawa.iwate.jp","hanamaki.iwate.jp","hiraizumi.iwate.jp","hirono.iwate.jp","ichinohe.iwate.jp","ichinoseki.iwate.jp","iwaizumi.iwate.jp","iwate.iwate.jp","joboji.iwate.jp","kamaishi.iwate.jp","kanegasaki.iwate.jp","karumai.iwate.jp","kawai.iwate.jp","kitakami.iwate.jp","kuji.iwate.jp","kunohe.iwate.jp","kuzumaki.iwate.jp","miyako.iwate.jp","mizusawa.iwate.jp","morioka.iwate.jp","ninohe.iwate.jp","noda.iwate.jp","ofunato.iwate.jp","oshu.iwate.jp","otsuchi.iwate.jp","rikuzentakata.iwate.jp","shiwa.iwate.jp","shizukuishi.iwate.jp","sumita.iwate.jp","tanohata.iwate.jp","tono.iwate.jp","yahaba.iwate.jp","yamada.iwate.jp","ayagawa.kagawa.jp","higashikagawa.kagawa.jp","kanonji.kagawa.jp","kotohira.kagawa.jp","manno.kagawa.jp","marugame.kagawa.jp","mitoyo.kagawa.jp","naoshima.kagawa.jp","sanuki.kagawa.jp","tadotsu.kagawa.jp","takamatsu.kagawa.jp","tonosho.kagawa.jp","uchinomi.kagawa.jp","utazu.kagawa.jp","zentsuji.kagawa.jp","akune.kagoshima.jp","amami.kagoshima.jp","hioki.kagoshima.jp","isa.kagoshima.jp","isen.kagoshima.jp","izumi.kagoshima.jp","kagoshima.kagoshima.jp","kanoya.kagoshima.jp","kawanabe.kagoshima.jp","kinko.kagoshima.jp","kouyama.kagoshima.jp","makurazaki.kagoshima.jp","matsumoto.kagoshima.jp","minamitane.kagoshima.jp","nakatane.kagoshima.jp","nishinoomote.kagoshima.jp","satsumasendai.kagoshima.jp","soo.kagoshima.jp","tarumizu.kagoshima.jp","yusui.kagoshima.jp","aikawa.kanagawa.jp","atsugi.kanagawa.jp","ayase.kanagawa.jp","chigasaki.kanagawa.jp","ebina.kanagawa.jp","fujisawa.kanagawa.jp","hadano.kanagawa.jp","hakone.kanagawa.jp","hiratsuka.kanagawa.jp","isehara.kanagawa.jp","kaisei.kanagawa.jp","kamakura.kanagawa.jp","kiyokawa.kanagawa.jp","matsuda.kanagawa.jp","minamiashigara.kanagawa.jp","miura.kanagawa.jp","nakai.kanagawa.jp","ninomiya.kanagawa.jp","odawara.kanagawa.jp","oi.kanagawa.jp","oiso.kanagawa.jp","sagamihara.kanagawa.jp","samukawa.kanagawa.jp","tsukui.kanagawa.jp","yamakita.kanagawa.jp","yamato.kanagawa.jp","yokosuka.kanagawa.jp","yugawara.kanagawa.jp","zama.kanagawa.jp","zushi.kanagawa.jp","aki.kochi.jp","geisei.kochi.jp","hidaka.kochi.jp","higashitsuno.kochi.jp","ino.kochi.jp","kagami.kochi.jp","kami.kochi.jp","kitagawa.kochi.jp","kochi.kochi.jp","mihara.kochi.jp","motoyama.kochi.jp","muroto.kochi.jp","nahari.kochi.jp","nakamura.kochi.jp","nankoku.kochi.jp","nishitosa.kochi.jp","niyodogawa.kochi.jp","ochi.kochi.jp","okawa.kochi.jp","otoyo.kochi.jp","otsuki.kochi.jp","sakawa.kochi.jp","sukumo.kochi.jp","susaki.kochi.jp","tosa.kochi.jp","tosashimizu.kochi.jp","toyo.kochi.jp","tsuno.kochi.jp","umaji.kochi.jp","yasuda.kochi.jp","yusuhara.kochi.jp","amakusa.kumamoto.jp","arao.kumamoto.jp","aso.kumamoto.jp","choyo.kumamoto.jp","gyokuto.kumamoto.jp","kamiamakusa.kumamoto.jp","kikuchi.kumamoto.jp","kumamoto.kumamoto.jp","mashiki.kumamoto.jp","mifune.kumamoto.jp","minamata.kumamoto.jp","minamioguni.kumamoto.jp","nagasu.kumamoto.jp","nishihara.kumamoto.jp","oguni.kumamoto.jp","ozu.kumamoto.jp","sumoto.kumamoto.jp","takamori.kumamoto.jp","uki.kumamoto.jp","uto.kumamoto.jp","yamaga.kumamoto.jp","yamato.kumamoto.jp","yatsushiro.kumamoto.jp","ayabe.kyoto.jp","fukuchiyama.kyoto.jp","higashiyama.kyoto.jp","ide.kyoto.jp","ine.kyoto.jp","joyo.kyoto.jp","kameoka.kyoto.jp","kamo.kyoto.jp","kita.kyoto.jp","kizu.kyoto.jp","kumiyama.kyoto.jp","kyotamba.kyoto.jp","kyotanabe.kyoto.jp","kyotango.kyoto.jp","maizuru.kyoto.jp","minami.kyoto.jp","minamiyamashiro.kyoto.jp","miyazu.kyoto.jp","muko.kyoto.jp","nagaokakyo.kyoto.jp","nakagyo.kyoto.jp","nantan.kyoto.jp","oyamazaki.kyoto.jp","sakyo.kyoto.jp","seika.kyoto.jp","tanabe.kyoto.jp","uji.kyoto.jp","ujitawara.kyoto.jp","wazuka.kyoto.jp","yamashina.kyoto.jp","yawata.kyoto.jp","asahi.mie.jp","inabe.mie.jp","ise.mie.jp","kameyama.mie.jp","kawagoe.mie.jp","kiho.mie.jp","kisosaki.mie.jp","kiwa.mie.jp","komono.mie.jp","kumano.mie.jp","kuwana.mie.jp","matsusaka.mie.jp","meiwa.mie.jp","mihama.mie.jp","minamiise.mie.jp","misugi.mie.jp","miyama.mie.jp","nabari.mie.jp","shima.mie.jp","suzuka.mie.jp","tado.mie.jp","taiki.mie.jp","taki.mie.jp","tamaki.mie.jp","toba.mie.jp","tsu.mie.jp","udono.mie.jp","ureshino.mie.jp","watarai.mie.jp","yokkaichi.mie.jp","furukawa.miyagi.jp","higashimatsushima.miyagi.jp","ishinomaki.miyagi.jp","iwanuma.miyagi.jp","kakuda.miyagi.jp","kami.miyagi.jp","kawasaki.miyagi.jp","marumori.miyagi.jp","matsushima.miyagi.jp","minamisanriku.miyagi.jp","misato.miyagi.jp","murata.miyagi.jp","natori.miyagi.jp","ogawara.miyagi.jp","ohira.miyagi.jp","onagawa.miyagi.jp","osaki.miyagi.jp","rifu.miyagi.jp","semine.miyagi.jp","shibata.miyagi.jp","shichikashuku.miyagi.jp","shikama.miyagi.jp","shiogama.miyagi.jp","shiroishi.miyagi.jp","tagajo.miyagi.jp","taiwa.miyagi.jp","tome.miyagi.jp","tomiya.miyagi.jp","wakuya.miyagi.jp","watari.miyagi.jp","yamamoto.miyagi.jp","zao.miyagi.jp","aya.miyazaki.jp","ebino.miyazaki.jp","gokase.miyazaki.jp","hyuga.miyazaki.jp","kadogawa.miyazaki.jp","kawaminami.miyazaki.jp","kijo.miyazaki.jp","kitagawa.miyazaki.jp","kitakata.miyazaki.jp","kitaura.miyazaki.jp","kobayashi.miyazaki.jp","kunitomi.miyazaki.jp","kushima.miyazaki.jp","mimata.miyazaki.jp","miyakonojo.miyazaki.jp","miyazaki.miyazaki.jp","morotsuka.miyazaki.jp","nichinan.miyazaki.jp","nishimera.miyazaki.jp","nobeoka.miyazaki.jp","saito.miyazaki.jp","shiiba.miyazaki.jp","shintomi.miyazaki.jp","takaharu.miyazaki.jp","takanabe.miyazaki.jp","takazaki.miyazaki.jp","tsuno.miyazaki.jp","achi.nagano.jp","agematsu.nagano.jp","anan.nagano.jp","aoki.nagano.jp","asahi.nagano.jp","azumino.nagano.jp","chikuhoku.nagano.jp","chikuma.nagano.jp","chino.nagano.jp","fujimi.nagano.jp","hakuba.nagano.jp","hara.nagano.jp","hiraya.nagano.jp","iida.nagano.jp","iijima.nagano.jp","iiyama.nagano.jp","iizuna.nagano.jp","ikeda.nagano.jp","ikusaka.nagano.jp","ina.nagano.jp","karuizawa.nagano.jp","kawakami.nagano.jp","kiso.nagano.jp","kisofukushima.nagano.jp","kitaaiki.nagano.jp","komagane.nagano.jp","komoro.nagano.jp","matsukawa.nagano.jp","matsumoto.nagano.jp","miasa.nagano.jp","minamiaiki.nagano.jp","minamimaki.nagano.jp","minamiminowa.nagano.jp","minowa.nagano.jp","miyada.nagano.jp","miyota.nagano.jp","mochizuki.nagano.jp","nagano.nagano.jp","nagawa.nagano.jp","nagiso.nagano.jp","nakagawa.nagano.jp","nakano.nagano.jp","nozawaonsen.nagano.jp","obuse.nagano.jp","ogawa.nagano.jp","okaya.nagano.jp","omachi.nagano.jp","omi.nagano.jp","ookuwa.nagano.jp","ooshika.nagano.jp","otaki.nagano.jp","otari.nagano.jp","sakae.nagano.jp","sakaki.nagano.jp","saku.nagano.jp","sakuho.nagano.jp","shimosuwa.nagano.jp","shinanomachi.nagano.jp","shiojiri.nagano.jp","suwa.nagano.jp","suzaka.nagano.jp","takagi.nagano.jp","takamori.nagano.jp","takayama.nagano.jp","tateshina.nagano.jp","tatsuno.nagano.jp","togakushi.nagano.jp","togura.nagano.jp","tomi.nagano.jp","ueda.nagano.jp","wada.nagano.jp","yamagata.nagano.jp","yamanouchi.nagano.jp","yasaka.nagano.jp","yasuoka.nagano.jp","chijiwa.nagasaki.jp","futsu.nagasaki.jp","goto.nagasaki.jp","hasami.nagasaki.jp","hirado.nagasaki.jp","iki.nagasaki.jp","isahaya.nagasaki.jp","kawatana.nagasaki.jp","kuchinotsu.nagasaki.jp","matsuura.nagasaki.jp","nagasaki.nagasaki.jp","obama.nagasaki.jp","omura.nagasaki.jp","oseto.nagasaki.jp","saikai.nagasaki.jp","sasebo.nagasaki.jp","seihi.nagasaki.jp","shimabara.nagasaki.jp","shinkamigoto.nagasaki.jp","togitsu.nagasaki.jp","tsushima.nagasaki.jp","unzen.nagasaki.jp","ando.nara.jp","gose.nara.jp","heguri.nara.jp","higashiyoshino.nara.jp","ikaruga.nara.jp","ikoma.nara.jp","kamikitayama.nara.jp","kanmaki.nara.jp","kashiba.nara.jp","kashihara.nara.jp","katsuragi.nara.jp","kawai.nara.jp","kawakami.nara.jp","kawanishi.nara.jp","koryo.nara.jp","kurotaki.nara.jp","mitsue.nara.jp","miyake.nara.jp","nara.nara.jp","nosegawa.nara.jp","oji.nara.jp","ouda.nara.jp","oyodo.nara.jp","sakurai.nara.jp","sango.nara.jp","shimoichi.nara.jp","shimokitayama.nara.jp","shinjo.nara.jp","soni.nara.jp","takatori.nara.jp","tawaramoto.nara.jp","tenkawa.nara.jp","tenri.nara.jp","uda.nara.jp","yamatokoriyama.nara.jp","yamatotakada.nara.jp","yamazoe.nara.jp","yoshino.nara.jp","aga.niigata.jp","agano.niigata.jp","gosen.niigata.jp","itoigawa.niigata.jp","izumozaki.niigata.jp","joetsu.niigata.jp","kamo.niigata.jp","kariwa.niigata.jp","kashiwazaki.niigata.jp","minamiuonuma.niigata.jp","mitsuke.niigata.jp","muika.niigata.jp","murakami.niigata.jp","myoko.niigata.jp","nagaoka.niigata.jp","niigata.niigata.jp","ojiya.niigata.jp","omi.niigata.jp","sado.niigata.jp","sanjo.niigata.jp","seiro.niigata.jp","seirou.niigata.jp","sekikawa.niigata.jp","shibata.niigata.jp","tagami.niigata.jp","tainai.niigata.jp","tochio.niigata.jp","tokamachi.niigata.jp","tsubame.niigata.jp","tsunan.niigata.jp","uonuma.niigata.jp","yahiko.niigata.jp","yoita.niigata.jp","yuzawa.niigata.jp","beppu.oita.jp","bungoono.oita.jp","bungotakada.oita.jp","hasama.oita.jp","hiji.oita.jp","himeshima.oita.jp","hita.oita.jp","kamitsue.oita.jp","kokonoe.oita.jp","kuju.oita.jp","kunisaki.oita.jp","kusu.oita.jp","oita.oita.jp","saiki.oita.jp","taketa.oita.jp","tsukumi.oita.jp","usa.oita.jp","usuki.oita.jp","yufu.oita.jp","akaiwa.okayama.jp","asakuchi.okayama.jp","bizen.okayama.jp","hayashima.okayama.jp","ibara.okayama.jp","kagamino.okayama.jp","kasaoka.okayama.jp","kibichuo.okayama.jp","kumenan.okayama.jp","kurashiki.okayama.jp","maniwa.okayama.jp","misaki.okayama.jp","nagi.okayama.jp","niimi.okayama.jp","nishiawakura.okayama.jp","okayama.okayama.jp","satosho.okayama.jp","setouchi.okayama.jp","shinjo.okayama.jp","shoo.okayama.jp","soja.okayama.jp","takahashi.okayama.jp","tamano.okayama.jp","tsuyama.okayama.jp","wake.okayama.jp","yakage.okayama.jp","aguni.okinawa.jp","ginowan.okinawa.jp","ginoza.okinawa.jp","gushikami.okinawa.jp","haebaru.okinawa.jp","higashi.okinawa.jp","hirara.okinawa.jp","iheya.okinawa.jp","ishigaki.okinawa.jp","ishikawa.okinawa.jp","itoman.okinawa.jp","izena.okinawa.jp","kadena.okinawa.jp","kin.okinawa.jp","kitadaito.okinawa.jp","kitanakagusuku.okinawa.jp","kumejima.okinawa.jp","kunigami.okinawa.jp","minamidaito.okinawa.jp","motobu.okinawa.jp","nago.okinawa.jp","naha.okinawa.jp","nakagusuku.okinawa.jp","nakijin.okinawa.jp","nanjo.okinawa.jp","nishihara.okinawa.jp","ogimi.okinawa.jp","okinawa.okinawa.jp","onna.okinawa.jp","shimoji.okinawa.jp","taketomi.okinawa.jp","tarama.okinawa.jp","tokashiki.okinawa.jp","tomigusuku.okinawa.jp","tonaki.okinawa.jp","urasoe.okinawa.jp","uruma.okinawa.jp","yaese.okinawa.jp","yomitan.okinawa.jp","yonabaru.okinawa.jp","yonaguni.okinawa.jp","zamami.okinawa.jp","abeno.osaka.jp","chihayaakasaka.osaka.jp","chuo.osaka.jp","daito.osaka.jp","fujiidera.osaka.jp","habikino.osaka.jp","hannan.osaka.jp","higashiosaka.osaka.jp","higashisumiyoshi.osaka.jp","higashiyodogawa.osaka.jp","hirakata.osaka.jp","ibaraki.osaka.jp","ikeda.osaka.jp","izumi.osaka.jp","izumiotsu.osaka.jp","izumisano.osaka.jp","kadoma.osaka.jp","kaizuka.osaka.jp","kanan.osaka.jp","kashiwara.osaka.jp","katano.osaka.jp","kawachinagano.osaka.jp","kishiwada.osaka.jp","kita.osaka.jp","kumatori.osaka.jp","matsubara.osaka.jp","minato.osaka.jp","minoh.osaka.jp","misaki.osaka.jp","moriguchi.osaka.jp","neyagawa.osaka.jp","nishi.osaka.jp","nose.osaka.jp","osakasayama.osaka.jp","sakai.osaka.jp","sayama.osaka.jp","sennan.osaka.jp","settsu.osaka.jp","shijonawate.osaka.jp","shimamoto.osaka.jp","suita.osaka.jp","tadaoka.osaka.jp","taishi.osaka.jp","tajiri.osaka.jp","takaishi.osaka.jp","takatsuki.osaka.jp","tondabayashi.osaka.jp","toyonaka.osaka.jp","toyono.osaka.jp","yao.osaka.jp","ariake.saga.jp","arita.saga.jp","fukudomi.saga.jp","genkai.saga.jp","hamatama.saga.jp","hizen.saga.jp","imari.saga.jp","kamimine.saga.jp","kanzaki.saga.jp","karatsu.saga.jp","kashima.saga.jp","kitagata.saga.jp","kitahata.saga.jp","kiyama.saga.jp","kouhoku.saga.jp","kyuragi.saga.jp","nishiarita.saga.jp","ogi.saga.jp","omachi.saga.jp","ouchi.saga.jp","saga.saga.jp","shiroishi.saga.jp","taku.saga.jp","tara.saga.jp","tosu.saga.jp","yoshinogari.saga.jp","arakawa.saitama.jp","asaka.saitama.jp","chichibu.saitama.jp","fujimi.saitama.jp","fujimino.saitama.jp","fukaya.saitama.jp","hanno.saitama.jp","hanyu.saitama.jp","hasuda.saitama.jp","hatogaya.saitama.jp","hatoyama.saitama.jp","hidaka.saitama.jp","higashichichibu.saitama.jp","higashimatsuyama.saitama.jp","honjo.saitama.jp","ina.saitama.jp","iruma.saitama.jp","iwatsuki.saitama.jp","kamiizumi.saitama.jp","kamikawa.saitama.jp","kamisato.saitama.jp","kasukabe.saitama.jp","kawagoe.saitama.jp","kawaguchi.saitama.jp","kawajima.saitama.jp","kazo.saitama.jp","kitamoto.saitama.jp","koshigaya.saitama.jp","kounosu.saitama.jp","kuki.saitama.jp","kumagaya.saitama.jp","matsubushi.saitama.jp","minano.saitama.jp","misato.saitama.jp","miyashiro.saitama.jp","miyoshi.saitama.jp","moroyama.saitama.jp","nagatoro.saitama.jp","namegawa.saitama.jp","niiza.saitama.jp","ogano.saitama.jp","ogawa.saitama.jp","ogose.saitama.jp","okegawa.saitama.jp","omiya.saitama.jp","otaki.saitama.jp","ranzan.saitama.jp","ryokami.saitama.jp","saitama.saitama.jp","sakado.saitama.jp","satte.saitama.jp","sayama.saitama.jp","shiki.saitama.jp","shiraoka.saitama.jp","soka.saitama.jp","sugito.saitama.jp","toda.saitama.jp","tokigawa.saitama.jp","tokorozawa.saitama.jp","tsurugashima.saitama.jp","urawa.saitama.jp","warabi.saitama.jp","yashio.saitama.jp","yokoze.saitama.jp","yono.saitama.jp","yorii.saitama.jp","yoshida.saitama.jp","yoshikawa.saitama.jp","yoshimi.saitama.jp","aisho.shiga.jp","gamo.shiga.jp","higashiomi.shiga.jp","hikone.shiga.jp","koka.shiga.jp","konan.shiga.jp","kosei.shiga.jp","koto.shiga.jp","kusatsu.shiga.jp","maibara.shiga.jp","moriyama.shiga.jp","nagahama.shiga.jp","nishiazai.shiga.jp","notogawa.shiga.jp","omihachiman.shiga.jp","otsu.shiga.jp","ritto.shiga.jp","ryuoh.shiga.jp","takashima.shiga.jp","takatsuki.shiga.jp","torahime.shiga.jp","toyosato.shiga.jp","yasu.shiga.jp","akagi.shimane.jp","ama.shimane.jp","gotsu.shimane.jp","hamada.shimane.jp","higashiizumo.shimane.jp","hikawa.shimane.jp","hikimi.shimane.jp","izumo.shimane.jp","kakinoki.shimane.jp","masuda.shimane.jp","matsue.shimane.jp","misato.shimane.jp","nishinoshima.shimane.jp","ohda.shimane.jp","okinoshima.shimane.jp","okuizumo.shimane.jp","shimane.shimane.jp","tamayu.shimane.jp","tsuwano.shimane.jp","unnan.shimane.jp","yakumo.shimane.jp","yasugi.shimane.jp","yatsuka.shimane.jp","arai.shizuoka.jp","atami.shizuoka.jp","fuji.shizuoka.jp","fujieda.shizuoka.jp","fujikawa.shizuoka.jp","fujinomiya.shizuoka.jp","fukuroi.shizuoka.jp","gotemba.shizuoka.jp","haibara.shizuoka.jp","hamamatsu.shizuoka.jp","higashiizu.shizuoka.jp","ito.shizuoka.jp","iwata.shizuoka.jp","izu.shizuoka.jp","izunokuni.shizuoka.jp","kakegawa.shizuoka.jp","kannami.shizuoka.jp","kawanehon.shizuoka.jp","kawazu.shizuoka.jp","kikugawa.shizuoka.jp","kosai.shizuoka.jp","makinohara.shizuoka.jp","matsuzaki.shizuoka.jp","minamiizu.shizuoka.jp","mishima.shizuoka.jp","morimachi.shizuoka.jp","nishiizu.shizuoka.jp","numazu.shizuoka.jp","omaezaki.shizuoka.jp","shimada.shizuoka.jp","shimizu.shizuoka.jp","shimoda.shizuoka.jp","shizuoka.shizuoka.jp","susono.shizuoka.jp","yaizu.shizuoka.jp","yoshida.shizuoka.jp","ashikaga.tochigi.jp","bato.tochigi.jp","haga.tochigi.jp","ichikai.tochigi.jp","iwafune.tochigi.jp","kaminokawa.tochigi.jp","kanuma.tochigi.jp","karasuyama.tochigi.jp","kuroiso.tochigi.jp","mashiko.tochigi.jp","mibu.tochigi.jp","moka.tochigi.jp","motegi.tochigi.jp","nasu.tochigi.jp","nasushiobara.tochigi.jp","nikko.tochigi.jp","nishikata.tochigi.jp","nogi.tochigi.jp","ohira.tochigi.jp","ohtawara.tochigi.jp","oyama.tochigi.jp","sakura.tochigi.jp","sano.tochigi.jp","shimotsuke.tochigi.jp","shioya.tochigi.jp","takanezawa.tochigi.jp","tochigi.tochigi.jp","tsuga.tochigi.jp","ujiie.tochigi.jp","utsunomiya.tochigi.jp","yaita.tochigi.jp","aizumi.tokushima.jp","anan.tokushima.jp","ichiba.tokushima.jp","itano.tokushima.jp","kainan.tokushima.jp","komatsushima.tokushima.jp","matsushige.tokushima.jp","mima.tokushima.jp","minami.tokushima.jp","miyoshi.tokushima.jp","mugi.tokushima.jp","nakagawa.tokushima.jp","naruto.tokushima.jp","sanagochi.tokushima.jp","shishikui.tokushima.jp","tokushima.tokushima.jp","wajiki.tokushima.jp","adachi.tokyo.jp","akiruno.tokyo.jp","akishima.tokyo.jp","aogashima.tokyo.jp","arakawa.tokyo.jp","bunkyo.tokyo.jp","chiyoda.tokyo.jp","chofu.tokyo.jp","chuo.tokyo.jp","edogawa.tokyo.jp","fuchu.tokyo.jp","fussa.tokyo.jp","hachijo.tokyo.jp","hachioji.tokyo.jp","hamura.tokyo.jp","higashikurume.tokyo.jp","higashimurayama.tokyo.jp","higashiyamato.tokyo.jp","hino.tokyo.jp","hinode.tokyo.jp","hinohara.tokyo.jp","inagi.tokyo.jp","itabashi.tokyo.jp","katsushika.tokyo.jp","kita.tokyo.jp","kiyose.tokyo.jp","kodaira.tokyo.jp","koganei.tokyo.jp","kokubunji.tokyo.jp","komae.tokyo.jp","koto.tokyo.jp","kouzushima.tokyo.jp","kunitachi.tokyo.jp","machida.tokyo.jp","meguro.tokyo.jp","minato.tokyo.jp","mitaka.tokyo.jp","mizuho.tokyo.jp","musashimurayama.tokyo.jp","musashino.tokyo.jp","nakano.tokyo.jp","nerima.tokyo.jp","ogasawara.tokyo.jp","okutama.tokyo.jp","ome.tokyo.jp","oshima.tokyo.jp","ota.tokyo.jp","setagaya.tokyo.jp","shibuya.tokyo.jp","shinagawa.tokyo.jp","shinjuku.tokyo.jp","suginami.tokyo.jp","sumida.tokyo.jp","tachikawa.tokyo.jp","taito.tokyo.jp","tama.tokyo.jp","toshima.tokyo.jp","chizu.tottori.jp","hino.tottori.jp","kawahara.tottori.jp","koge.tottori.jp","kotoura.tottori.jp","misasa.tottori.jp","nanbu.tottori.jp","nichinan.tottori.jp","sakaiminato.tottori.jp","tottori.tottori.jp","wakasa.tottori.jp","yazu.tottori.jp","yonago.tottori.jp","asahi.toyama.jp","fuchu.toyama.jp","fukumitsu.toyama.jp","funahashi.toyama.jp","himi.toyama.jp","imizu.toyama.jp","inami.toyama.jp","johana.toyama.jp","kamiichi.toyama.jp","kurobe.toyama.jp","nakaniikawa.toyama.jp","namerikawa.toyama.jp","nanto.toyama.jp","nyuzen.toyama.jp","oyabe.toyama.jp","taira.toyama.jp","takaoka.toyama.jp","tateyama.toyama.jp","toga.toyama.jp","tonami.toyama.jp","toyama.toyama.jp","unazuki.toyama.jp","uozu.toyama.jp","yamada.toyama.jp","arida.wakayama.jp","aridagawa.wakayama.jp","gobo.wakayama.jp","hashimoto.wakayama.jp","hidaka.wakayama.jp","hirogawa.wakayama.jp","inami.wakayama.jp","iwade.wakayama.jp","kainan.wakayama.jp","kamitonda.wakayama.jp","katsuragi.wakayama.jp","kimino.wakayama.jp","kinokawa.wakayama.jp","kitayama.wakayama.jp","koya.wakayama.jp","koza.wakayama.jp","kozagawa.wakayama.jp","kudoyama.wakayama.jp","kushimoto.wakayama.jp","mihama.wakayama.jp","misato.wakayama.jp","nachikatsuura.wakayama.jp","shingu.wakayama.jp","shirahama.wakayama.jp","taiji.wakayama.jp","tanabe.wakayama.jp","wakayama.wakayama.jp","yuasa.wakayama.jp","yura.wakayama.jp","asahi.yamagata.jp","funagata.yamagata.jp","higashine.yamagata.jp","iide.yamagata.jp","kahoku.yamagata.jp","kaminoyama.yamagata.jp","kaneyama.yamagata.jp","kawanishi.yamagata.jp","mamurogawa.yamagata.jp","mikawa.yamagata.jp","murayama.yamagata.jp","nagai.yamagata.jp","nakayama.yamagata.jp","nanyo.yamagata.jp","nishikawa.yamagata.jp","obanazawa.yamagata.jp","oe.yamagata.jp","oguni.yamagata.jp","ohkura.yamagata.jp","oishida.yamagata.jp","sagae.yamagata.jp","sakata.yamagata.jp","sakegawa.yamagata.jp","shinjo.yamagata.jp","shirataka.yamagata.jp","shonai.yamagata.jp","takahata.yamagata.jp","tendo.yamagata.jp","tozawa.yamagata.jp","tsuruoka.yamagata.jp","yamagata.yamagata.jp","yamanobe.yamagata.jp","yonezawa.yamagata.jp","yuza.yamagata.jp","abu.yamaguchi.jp","hagi.yamaguchi.jp","hikari.yamaguchi.jp","hofu.yamaguchi.jp","iwakuni.yamaguchi.jp","kudamatsu.yamaguchi.jp","mitou.yamaguchi.jp","nagato.yamaguchi.jp","oshima.yamaguchi.jp","shimonoseki.yamaguchi.jp","shunan.yamaguchi.jp","tabuse.yamaguchi.jp","tokuyama.yamaguchi.jp","toyota.yamaguchi.jp","ube.yamaguchi.jp","yuu.yamaguchi.jp","chuo.yamanashi.jp","doshi.yamanashi.jp","fuefuki.yamanashi.jp","fujikawa.yamanashi.jp","fujikawaguchiko.yamanashi.jp","fujiyoshida.yamanashi.jp","hayakawa.yamanashi.jp","hokuto.yamanashi.jp","ichikawamisato.yamanashi.jp","kai.yamanashi.jp","kofu.yamanashi.jp","koshu.yamanashi.jp","kosuge.yamanashi.jp","minami-alps.yamanashi.jp","minobu.yamanashi.jp","nakamichi.yamanashi.jp","nanbu.yamanashi.jp","narusawa.yamanashi.jp","nirasaki.yamanashi.jp","nishikatsura.yamanashi.jp","oshino.yamanashi.jp","otsuki.yamanashi.jp","showa.yamanashi.jp","tabayama.yamanashi.jp","tsuru.yamanashi.jp","uenohara.yamanashi.jp","yamanakako.yamanashi.jp","yamanashi.yamanashi.jp","ke","ac.ke","co.ke","go.ke","info.ke","me.ke","mobi.ke","ne.ke","or.ke","sc.ke","kg","org.kg","net.kg","com.kg","edu.kg","gov.kg","mil.kg","*.kh","ki","edu.ki","biz.ki","net.ki","org.ki","gov.ki","info.ki","com.ki","km","org.km","nom.km","gov.km","prd.km","tm.km","edu.km","mil.km","ass.km","com.km","coop.km","asso.km","presse.km","medecin.km","notaires.km","pharmaciens.km","veterinaire.km","gouv.km","kn","net.kn","org.kn","edu.kn","gov.kn","kp","com.kp","edu.kp","gov.kp","org.kp","rep.kp","tra.kp","kr","ac.kr","co.kr","es.kr","go.kr","hs.kr","kg.kr","mil.kr","ms.kr","ne.kr","or.kr","pe.kr","re.kr","sc.kr","busan.kr","chungbuk.kr","chungnam.kr","daegu.kr","daejeon.kr","gangwon.kr","gwangju.kr","gyeongbuk.kr","gyeonggi.kr","gyeongnam.kr","incheon.kr","jeju.kr","jeonbuk.kr","jeonnam.kr","seoul.kr","ulsan.kr","kw","com.kw","edu.kw","emb.kw","gov.kw","ind.kw","net.kw","org.kw","ky","edu.ky","gov.ky","com.ky","org.ky","net.ky","kz","org.kz","edu.kz","net.kz","gov.kz","mil.kz","com.kz","la","int.la","net.la","info.la","edu.la","gov.la","per.la","com.la","org.la","lb","com.lb","edu.lb","gov.lb","net.lb","org.lb","lc","com.lc","net.lc","co.lc","org.lc","edu.lc","gov.lc","li","lk","gov.lk","sch.lk","net.lk","int.lk","com.lk","org.lk","edu.lk","ngo.lk","soc.lk","web.lk","ltd.lk","assn.lk","grp.lk","hotel.lk","ac.lk","lr","com.lr","edu.lr","gov.lr","org.lr","net.lr","ls","ac.ls","biz.ls","co.ls","edu.ls","gov.ls","info.ls","net.ls","org.ls","sc.ls","lt","gov.lt","lu","lv","com.lv","edu.lv","gov.lv","org.lv","mil.lv","id.lv","net.lv","asn.lv","conf.lv","ly","com.ly","net.ly","gov.ly","plc.ly","edu.ly","sch.ly","med.ly","org.ly","id.ly","ma","co.ma","net.ma","gov.ma","org.ma","ac.ma","press.ma","mc","tm.mc","asso.mc","md","me","co.me","net.me","org.me","edu.me","ac.me","gov.me","its.me","priv.me","mg","org.mg","nom.mg","gov.mg","prd.mg","tm.mg","edu.mg","mil.mg","com.mg","co.mg","mh","mil","mk","com.mk","org.mk","net.mk","edu.mk","gov.mk","inf.mk","name.mk","ml","com.ml","edu.ml","gouv.ml","gov.ml","net.ml","org.ml","presse.ml","*.mm","mn","gov.mn","edu.mn","org.mn","mo","com.mo","net.mo","org.mo","edu.mo","gov.mo","mobi","mp","mq","mr","gov.mr","ms","com.ms","edu.ms","gov.ms","net.ms","org.ms","mt","com.mt","edu.mt","net.mt","org.mt","mu","com.mu","net.mu","org.mu","gov.mu","ac.mu","co.mu","or.mu","museum","academy.museum","agriculture.museum","air.museum","airguard.museum","alabama.museum","alaska.museum","amber.museum","ambulance.museum","american.museum","americana.museum","americanantiques.museum","americanart.museum","amsterdam.museum","and.museum","annefrank.museum","anthro.museum","anthropology.museum","antiques.museum","aquarium.museum","arboretum.museum","archaeological.museum","archaeology.museum","architecture.museum","art.museum","artanddesign.museum","artcenter.museum","artdeco.museum","arteducation.museum","artgallery.museum","arts.museum","artsandcrafts.museum","asmatart.museum","assassination.museum","assisi.museum","association.museum","astronomy.museum","atlanta.museum","austin.museum","australia.museum","automotive.museum","aviation.museum","axis.museum","badajoz.museum","baghdad.museum","bahn.museum","bale.museum","baltimore.museum","barcelona.museum","baseball.museum","basel.museum","baths.museum","bauern.museum","beauxarts.museum","beeldengeluid.museum","bellevue.museum","bergbau.museum","berkeley.museum","berlin.museum","bern.museum","bible.museum","bilbao.museum","bill.museum","birdart.museum","birthplace.museum","bonn.museum","boston.museum","botanical.museum","botanicalgarden.museum","botanicgarden.museum","botany.museum","brandywinevalley.museum","brasil.museum","bristol.museum","british.museum","britishcolumbia.museum","broadcast.museum","brunel.museum","brussel.museum","brussels.museum","bruxelles.museum","building.museum","burghof.museum","bus.museum","bushey.museum","cadaques.museum","california.museum","cambridge.museum","can.museum","canada.museum","capebreton.museum","carrier.museum","cartoonart.museum","casadelamoneda.museum","castle.museum","castres.museum","celtic.museum","center.museum","chattanooga.museum","cheltenham.museum","chesapeakebay.museum","chicago.museum","children.museum","childrens.museum","childrensgarden.museum","chiropractic.museum","chocolate.museum","christiansburg.museum","cincinnati.museum","cinema.museum","circus.museum","civilisation.museum","civilization.museum","civilwar.museum","clinton.museum","clock.museum","coal.museum","coastaldefence.museum","cody.museum","coldwar.museum","collection.museum","colonialwilliamsburg.museum","coloradoplateau.museum","columbia.museum","columbus.museum","communication.museum","communications.museum","community.museum","computer.museum","computerhistory.museum","comunicações.museum","contemporary.museum","contemporaryart.museum","convent.museum","copenhagen.museum","corporation.museum","correios-e-telecomunicações.museum","corvette.museum","costume.museum","countryestate.museum","county.museum","crafts.museum","cranbrook.museum","creation.museum","cultural.museum","culturalcenter.museum","culture.museum","cyber.museum","cymru.museum","dali.museum","dallas.museum","database.museum","ddr.museum","decorativearts.museum","delaware.museum","delmenhorst.museum","denmark.museum","depot.museum","design.museum","detroit.museum","dinosaur.museum","discovery.museum","dolls.museum","donostia.museum","durham.museum","eastafrica.museum","eastcoast.museum","education.museum","educational.museum","egyptian.museum","eisenbahn.museum","elburg.museum","elvendrell.museum","embroidery.museum","encyclopedic.museum","england.museum","entomology.museum","environment.museum","environmentalconservation.museum","epilepsy.museum","essex.museum","estate.museum","ethnology.museum","exeter.museum","exhibition.museum","family.museum","farm.museum","farmequipment.museum","farmers.museum","farmstead.museum","field.museum","figueres.museum","filatelia.museum","film.museum","fineart.museum","finearts.museum","finland.museum","flanders.museum","florida.museum","force.museum","fortmissoula.museum","fortworth.museum","foundation.museum","francaise.museum","frankfurt.museum","franziskaner.museum","freemasonry.museum","freiburg.museum","fribourg.museum","frog.museum","fundacio.museum","furniture.museum","gallery.museum","garden.museum","gateway.museum","geelvinck.museum","gemological.museum","geology.museum","georgia.museum","giessen.museum","glas.museum","glass.museum","gorge.museum","grandrapids.museum","graz.museum","guernsey.museum","halloffame.museum","hamburg.museum","handson.museum","harvestcelebration.museum","hawaii.museum","health.museum","heimatunduhren.museum","hellas.museum","helsinki.museum","hembygdsforbund.museum","heritage.museum","histoire.museum","historical.museum","historicalsociety.museum","historichouses.museum","historisch.museum","historisches.museum","history.museum","historyofscience.museum","horology.museum","house.museum","humanities.museum","illustration.museum","imageandsound.museum","indian.museum","indiana.museum","indianapolis.museum","indianmarket.museum","intelligence.museum","interactive.museum","iraq.museum","iron.museum","isleofman.museum","jamison.museum","jefferson.museum","jerusalem.museum","jewelry.museum","jewish.museum","jewishart.museum","jfk.museum","journalism.museum","judaica.museum","judygarland.museum","juedisches.museum","juif.museum","karate.museum","karikatur.museum","kids.museum","koebenhavn.museum","koeln.museum","kunst.museum","kunstsammlung.museum","kunstunddesign.museum","labor.museum","labour.museum","lajolla.museum","lancashire.museum","landes.museum","lans.museum","läns.museum","larsson.museum","lewismiller.museum","lincoln.museum","linz.museum","living.museum","livinghistory.museum","localhistory.museum","london.museum","losangeles.museum","louvre.museum","loyalist.museum","lucerne.museum","luxembourg.museum","luzern.museum","mad.museum","madrid.museum","mallorca.museum","manchester.museum","mansion.museum","mansions.museum","manx.museum","marburg.museum","maritime.museum","maritimo.museum","maryland.museum","marylhurst.museum","media.museum","medical.museum","medizinhistorisches.museum","meeres.museum","memorial.museum","mesaverde.museum","michigan.museum","midatlantic.museum","military.museum","mill.museum","miners.museum","mining.museum","minnesota.museum","missile.museum","missoula.museum","modern.museum","moma.museum","money.museum","monmouth.museum","monticello.museum","montreal.museum","moscow.museum","motorcycle.museum","muenchen.museum","muenster.museum","mulhouse.museum","muncie.museum","museet.museum","museumcenter.museum","museumvereniging.museum","music.museum","national.museum","nationalfirearms.museum","nationalheritage.museum","nativeamerican.museum","naturalhistory.museum","naturalhistorymuseum.museum","naturalsciences.museum","nature.museum","naturhistorisches.museum","natuurwetenschappen.museum","naumburg.museum","naval.museum","nebraska.museum","neues.museum","newhampshire.museum","newjersey.museum","newmexico.museum","newport.museum","newspaper.museum","newyork.museum","niepce.museum","norfolk.museum","north.museum","nrw.museum","nyc.museum","nyny.museum","oceanographic.museum","oceanographique.museum","omaha.museum","online.museum","ontario.museum","openair.museum","oregon.museum","oregontrail.museum","otago.museum","oxford.museum","pacific.museum","paderborn.museum","palace.museum","paleo.museum","palmsprings.museum","panama.museum","paris.museum","pasadena.museum","pharmacy.museum","philadelphia.museum","philadelphiaarea.museum","philately.museum","phoenix.museum","photography.museum","pilots.museum","pittsburgh.museum","planetarium.museum","plantation.museum","plants.museum","plaza.museum","portal.museum","portland.museum","portlligat.museum","posts-and-telecommunications.museum","preservation.museum","presidio.museum","press.museum","project.museum","public.museum","pubol.museum","quebec.museum","railroad.museum","railway.museum","research.museum","resistance.museum","riodejaneiro.museum","rochester.museum","rockart.museum","roma.museum","russia.museum","saintlouis.museum","salem.museum","salvadordali.museum","salzburg.museum","sandiego.museum","sanfrancisco.museum","santabarbara.museum","santacruz.museum","santafe.museum","saskatchewan.museum","satx.museum","savannahga.museum","schlesisches.museum","schoenbrunn.museum","schokoladen.museum","school.museum","schweiz.museum","science.museum","scienceandhistory.museum","scienceandindustry.museum","sciencecenter.museum","sciencecenters.museum","science-fiction.museum","sciencehistory.museum","sciences.museum","sciencesnaturelles.museum","scotland.museum","seaport.museum","settlement.museum","settlers.museum","shell.museum","sherbrooke.museum","sibenik.museum","silk.museum","ski.museum","skole.museum","society.museum","sologne.museum","soundandvision.museum","southcarolina.museum","southwest.museum","space.museum","spy.museum","square.museum","stadt.museum","stalbans.museum","starnberg.museum","state.museum","stateofdelaware.museum","station.museum","steam.museum","steiermark.museum","stjohn.museum","stockholm.museum","stpetersburg.museum","stuttgart.museum","suisse.museum","surgeonshall.museum","surrey.museum","svizzera.museum","sweden.museum","sydney.museum","tank.museum","tcm.museum","technology.museum","telekommunikation.museum","television.museum","texas.museum","textile.museum","theater.museum","time.museum","timekeeping.museum","topology.museum","torino.museum","touch.museum","town.museum","transport.museum","tree.museum","trolley.museum","trust.museum","trustee.museum","uhren.museum","ulm.museum","undersea.museum","university.museum","usa.museum","usantiques.museum","usarts.museum","uscountryestate.museum","usculture.museum","usdecorativearts.museum","usgarden.museum","ushistory.museum","ushuaia.museum","uslivinghistory.museum","utah.museum","uvic.museum","valley.museum","vantaa.museum","versailles.museum","viking.museum","village.museum","virginia.museum","virtual.museum","virtuel.museum","vlaanderen.museum","volkenkunde.museum","wales.museum","wallonie.museum","war.museum","washingtondc.museum","watchandclock.museum","watch-and-clock.museum","western.museum","westfalen.museum","whaling.museum","wildlife.museum","williamsburg.museum","windmill.museum","workshop.museum","york.museum","yorkshire.museum","yosemite.museum","youth.museum","zoological.museum","zoology.museum","ירושלים.museum","иком.museum","mv","aero.mv","biz.mv","com.mv","coop.mv","edu.mv","gov.mv","info.mv","int.mv","mil.mv","museum.mv","name.mv","net.mv","org.mv","pro.mv","mw","ac.mw","biz.mw","co.mw","com.mw","coop.mw","edu.mw","gov.mw","int.mw","museum.mw","net.mw","org.mw","mx","com.mx","org.mx","gob.mx","edu.mx","net.mx","my","com.my","net.my","org.my","gov.my","edu.my","mil.my","name.my","mz","ac.mz","adv.mz","co.mz","edu.mz","gov.mz","mil.mz","net.mz","org.mz","na","info.na","pro.na","name.na","school.na","or.na","dr.na","us.na","mx.na","ca.na","in.na","cc.na","tv.na","ws.na","mobi.na","co.na","com.na","org.na","name","nc","asso.nc","nom.nc","ne","net","nf","com.nf","net.nf","per.nf","rec.nf","web.nf","arts.nf","firm.nf","info.nf","other.nf","store.nf","ng","com.ng","edu.ng","gov.ng","i.ng","mil.ng","mobi.ng","name.ng","net.ng","org.ng","sch.ng","ni","ac.ni","biz.ni","co.ni","com.ni","edu.ni","gob.ni","in.ni","info.ni","int.ni","mil.ni","net.ni","nom.ni","org.ni","web.ni","nl","no","fhs.no","vgs.no","fylkesbibl.no","folkebibl.no","museum.no","idrett.no","priv.no","mil.no","stat.no","dep.no","kommune.no","herad.no","aa.no","ah.no","bu.no","fm.no","hl.no","hm.no","jan-mayen.no","mr.no","nl.no","nt.no","of.no","ol.no","oslo.no","rl.no","sf.no","st.no","svalbard.no","tm.no","tr.no","va.no","vf.no","gs.aa.no","gs.ah.no","gs.bu.no","gs.fm.no","gs.hl.no","gs.hm.no","gs.jan-mayen.no","gs.mr.no","gs.nl.no","gs.nt.no","gs.of.no","gs.ol.no","gs.oslo.no","gs.rl.no","gs.sf.no","gs.st.no","gs.svalbard.no","gs.tm.no","gs.tr.no","gs.va.no","gs.vf.no","akrehamn.no","åkrehamn.no","algard.no","ålgård.no","arna.no","brumunddal.no","bryne.no","bronnoysund.no","brønnøysund.no","drobak.no","drøbak.no","egersund.no","fetsund.no","floro.no","florø.no","fredrikstad.no","hokksund.no","honefoss.no","hønefoss.no","jessheim.no","jorpeland.no","jørpeland.no","kirkenes.no","kopervik.no","krokstadelva.no","langevag.no","langevåg.no","leirvik.no","mjondalen.no","mjøndalen.no","mo-i-rana.no","mosjoen.no","mosjøen.no","nesoddtangen.no","orkanger.no","osoyro.no","osøyro.no","raholt.no","råholt.no","sandnessjoen.no","sandnessjøen.no","skedsmokorset.no","slattum.no","spjelkavik.no","stathelle.no","stavern.no","stjordalshalsen.no","stjørdalshalsen.no","tananger.no","tranby.no","vossevangen.no","afjord.no","åfjord.no","agdenes.no","al.no","ål.no","alesund.no","ålesund.no","alstahaug.no","alta.no","áltá.no","alaheadju.no","álaheadju.no","alvdal.no","amli.no","åmli.no","amot.no","åmot.no","andebu.no","andoy.no","andøy.no","andasuolo.no","ardal.no","årdal.no","aremark.no","arendal.no","ås.no","aseral.no","åseral.no","asker.no","askim.no","askvoll.no","askoy.no","askøy.no","asnes.no","åsnes.no","audnedaln.no","aukra.no","aure.no","aurland.no","aurskog-holand.no","aurskog-høland.no","austevoll.no","austrheim.no","averoy.no","averøy.no","balestrand.no","ballangen.no","balat.no","bálát.no","balsfjord.no","bahccavuotna.no","báhccavuotna.no","bamble.no","bardu.no","beardu.no","beiarn.no","bajddar.no","bájddar.no","baidar.no","báidár.no","berg.no","bergen.no","berlevag.no","berlevåg.no","bearalvahki.no","bearalváhki.no","bindal.no","birkenes.no","bjarkoy.no","bjarkøy.no","bjerkreim.no","bjugn.no","bodo.no","bodø.no","badaddja.no","bådåddjå.no","budejju.no","bokn.no","bremanger.no","bronnoy.no","brønnøy.no","bygland.no","bykle.no","barum.no","bærum.no","bo.telemark.no","bø.telemark.no","bo.nordland.no","bø.nordland.no","bievat.no","bievát.no","bomlo.no","bømlo.no","batsfjord.no","båtsfjord.no","bahcavuotna.no","báhcavuotna.no","dovre.no","drammen.no","drangedal.no","dyroy.no","dyrøy.no","donna.no","dønna.no","eid.no","eidfjord.no","eidsberg.no","eidskog.no","eidsvoll.no","eigersund.no","elverum.no","enebakk.no","engerdal.no","etne.no","etnedal.no","evenes.no","evenassi.no","evenášši.no","evje-og-hornnes.no","farsund.no","fauske.no","fuossko.no","fuoisku.no","fedje.no","fet.no","finnoy.no","finnøy.no","fitjar.no","fjaler.no","fjell.no","flakstad.no","flatanger.no","flekkefjord.no","flesberg.no","flora.no","fla.no","flå.no","folldal.no","forsand.no","fosnes.no","frei.no","frogn.no","froland.no","frosta.no","frana.no","fræna.no","froya.no","frøya.no","fusa.no","fyresdal.no","forde.no","førde.no","gamvik.no","gangaviika.no","gáŋgaviika.no","gaular.no","gausdal.no","gildeskal.no","gildeskål.no","giske.no","gjemnes.no","gjerdrum.no","gjerstad.no","gjesdal.no","gjovik.no","gjøvik.no","gloppen.no","gol.no","gran.no","grane.no","granvin.no","gratangen.no","grimstad.no","grong.no","kraanghke.no","kråanghke.no","grue.no","gulen.no","hadsel.no","halden.no","halsa.no","hamar.no","hamaroy.no","habmer.no","hábmer.no","hapmir.no","hápmir.no","hammerfest.no","hammarfeasta.no","hámmárfeasta.no","haram.no","hareid.no","harstad.no","hasvik.no","aknoluokta.no","ákŋoluokta.no","hattfjelldal.no","aarborte.no","haugesund.no","hemne.no","hemnes.no","hemsedal.no","heroy.more-og-romsdal.no","herøy.møre-og-romsdal.no","heroy.nordland.no","herøy.nordland.no","hitra.no","hjartdal.no","hjelmeland.no","hobol.no","hobøl.no","hof.no","hol.no","hole.no","holmestrand.no","holtalen.no","holtålen.no","hornindal.no","horten.no","hurdal.no","hurum.no","hvaler.no","hyllestad.no","hagebostad.no","hægebostad.no","hoyanger.no","høyanger.no","hoylandet.no","høylandet.no","ha.no","hå.no","ibestad.no","inderoy.no","inderøy.no","iveland.no","jevnaker.no","jondal.no","jolster.no","jølster.no","karasjok.no","karasjohka.no","kárášjohka.no","karlsoy.no","galsa.no","gálsá.no","karmoy.no","karmøy.no","kautokeino.no","guovdageaidnu.no","klepp.no","klabu.no","klæbu.no","kongsberg.no","kongsvinger.no","kragero.no","kragerø.no","kristiansand.no","kristiansund.no","krodsherad.no","krødsherad.no","kvalsund.no","rahkkeravju.no","ráhkkerávju.no","kvam.no","kvinesdal.no","kvinnherad.no","kviteseid.no","kvitsoy.no","kvitsøy.no","kvafjord.no","kvæfjord.no","giehtavuoatna.no","kvanangen.no","kvænangen.no","navuotna.no","návuotna.no","kafjord.no","kåfjord.no","gaivuotna.no","gáivuotna.no","larvik.no","lavangen.no","lavagis.no","loabat.no","loabát.no","lebesby.no","davvesiida.no","leikanger.no","leirfjord.no","leka.no","leksvik.no","lenvik.no","leangaviika.no","leaŋgaviika.no","lesja.no","levanger.no","lier.no","lierne.no","lillehammer.no","lillesand.no","lindesnes.no","lindas.no","lindås.no","lom.no","loppa.no","lahppi.no","láhppi.no","lund.no","lunner.no","luroy.no","lurøy.no","luster.no","lyngdal.no","lyngen.no","ivgu.no","lardal.no","lerdal.no","lærdal.no","lodingen.no","lødingen.no","lorenskog.no","lørenskog.no","loten.no","løten.no","malvik.no","masoy.no","måsøy.no","muosat.no","muosát.no","mandal.no","marker.no","marnardal.no","masfjorden.no","meland.no","meldal.no","melhus.no","meloy.no","meløy.no","meraker.no","meråker.no","moareke.no","moåreke.no","midsund.no","midtre-gauldal.no","modalen.no","modum.no","molde.no","moskenes.no","moss.no","mosvik.no","malselv.no","målselv.no","malatvuopmi.no","málatvuopmi.no","namdalseid.no","aejrie.no","namsos.no","namsskogan.no","naamesjevuemie.no","nååmesjevuemie.no","laakesvuemie.no","nannestad.no","narvik.no","narviika.no","naustdal.no","nedre-eiker.no","nes.akershus.no","nes.buskerud.no","nesna.no","nesodden.no","nesseby.no","unjarga.no","unjárga.no","nesset.no","nissedal.no","nittedal.no","nord-aurdal.no","nord-fron.no","nord-odal.no","norddal.no","nordkapp.no","davvenjarga.no","davvenjárga.no","nordre-land.no","nordreisa.no","raisa.no","ráisa.no","nore-og-uvdal.no","notodden.no","naroy.no","nærøy.no","notteroy.no","nøtterøy.no","odda.no","oksnes.no","øksnes.no","oppdal.no","oppegard.no","oppegård.no","orkdal.no","orland.no","ørland.no","orskog.no","ørskog.no","orsta.no","ørsta.no","os.hedmark.no","os.hordaland.no","osen.no","osteroy.no","osterøy.no","ostre-toten.no","østre-toten.no","overhalla.no","ovre-eiker.no","øvre-eiker.no","oyer.no","øyer.no","oygarden.no","øygarden.no","oystre-slidre.no","øystre-slidre.no","porsanger.no","porsangu.no","porsáŋgu.no","porsgrunn.no","radoy.no","radøy.no","rakkestad.no","rana.no","ruovat.no","randaberg.no","rauma.no","rendalen.no","rennebu.no","rennesoy.no","rennesøy.no","rindal.no","ringebu.no","ringerike.no","ringsaker.no","rissa.no","risor.no","risør.no","roan.no","rollag.no","rygge.no","ralingen.no","rælingen.no","rodoy.no","rødøy.no","romskog.no","rømskog.no","roros.no","røros.no","rost.no","røst.no","royken.no","røyken.no","royrvik.no","røyrvik.no","rade.no","råde.no","salangen.no","siellak.no","saltdal.no","salat.no","sálát.no","sálat.no","samnanger.no","sande.more-og-romsdal.no","sande.møre-og-romsdal.no","sande.vestfold.no","sandefjord.no","sandnes.no","sandoy.no","sandøy.no","sarpsborg.no","sauda.no","sauherad.no","sel.no","selbu.no","selje.no","seljord.no","sigdal.no","siljan.no","sirdal.no","skaun.no","skedsmo.no","ski.no","skien.no","skiptvet.no","skjervoy.no","skjervøy.no","skierva.no","skiervá.no","skjak.no","skjåk.no","skodje.no","skanland.no","skånland.no","skanit.no","skánit.no","smola.no","smøla.no","snillfjord.no","snasa.no","snåsa.no","snoasa.no","snaase.no","snåase.no","sogndal.no","sokndal.no","sola.no","solund.no","songdalen.no","sortland.no","spydeberg.no","stange.no","stavanger.no","steigen.no","steinkjer.no","stjordal.no","stjørdal.no","stokke.no","stor-elvdal.no","stord.no","stordal.no","storfjord.no","omasvuotna.no","strand.no","stranda.no","stryn.no","sula.no","suldal.no","sund.no","sunndal.no","surnadal.no","sveio.no","svelvik.no","sykkylven.no","sogne.no","søgne.no","somna.no","sømna.no","sondre-land.no","søndre-land.no","sor-aurdal.no","sør-aurdal.no","sor-fron.no","sør-fron.no","sor-odal.no","sør-odal.no","sor-varanger.no","sør-varanger.no","matta-varjjat.no","mátta-várjjat.no","sorfold.no","sørfold.no","sorreisa.no","sørreisa.no","sorum.no","sørum.no","tana.no","deatnu.no","time.no","tingvoll.no","tinn.no","tjeldsund.no","dielddanuorri.no","tjome.no","tjøme.no","tokke.no","tolga.no","torsken.no","tranoy.no","tranøy.no","tromso.no","tromsø.no","tromsa.no","romsa.no","trondheim.no","troandin.no","trysil.no","trana.no","træna.no","trogstad.no","trøgstad.no","tvedestrand.no","tydal.no","tynset.no","tysfjord.no","divtasvuodna.no","divttasvuotna.no","tysnes.no","tysvar.no","tysvær.no","tonsberg.no","tønsberg.no","ullensaker.no","ullensvang.no","ulvik.no","utsira.no","vadso.no","vadsø.no","cahcesuolo.no","čáhcesuolo.no","vaksdal.no","valle.no","vang.no","vanylven.no","vardo.no","vardø.no","varggat.no","várggát.no","vefsn.no","vaapste.no","vega.no","vegarshei.no","vegårshei.no","vennesla.no","verdal.no","verran.no","vestby.no","vestnes.no","vestre-slidre.no","vestre-toten.no","vestvagoy.no","vestvågøy.no","vevelstad.no","vik.no","vikna.no","vindafjord.no","volda.no","voss.no","varoy.no","værøy.no","vagan.no","vågan.no","voagat.no","vagsoy.no","vågsøy.no","vaga.no","vågå.no","valer.ostfold.no","våler.østfold.no","valer.hedmark.no","våler.hedmark.no","*.np","nr","biz.nr","info.nr","gov.nr","edu.nr","org.nr","net.nr","com.nr","nu","nz","ac.nz","co.nz","cri.nz","geek.nz","gen.nz","govt.nz","health.nz","iwi.nz","kiwi.nz","maori.nz","mil.nz","māori.nz","net.nz","org.nz","parliament.nz","school.nz","om","co.om","com.om","edu.om","gov.om","med.om","museum.om","net.om","org.om","pro.om","onion","org","pa","ac.pa","gob.pa","com.pa","org.pa","sld.pa","edu.pa","net.pa","ing.pa","abo.pa","med.pa","nom.pa","pe","edu.pe","gob.pe","nom.pe","mil.pe","org.pe","com.pe","net.pe","pf","com.pf","org.pf","edu.pf","*.pg","ph","com.ph","net.ph","org.ph","gov.ph","edu.ph","ngo.ph","mil.ph","i.ph","pk","com.pk","net.pk","edu.pk","org.pk","fam.pk","biz.pk","web.pk","gov.pk","gob.pk","gok.pk","gon.pk","gop.pk","gos.pk","info.pk","pl","com.pl","net.pl","org.pl","aid.pl","agro.pl","atm.pl","auto.pl","biz.pl","edu.pl","gmina.pl","gsm.pl","info.pl","mail.pl","miasta.pl","media.pl","mil.pl","nieruchomosci.pl","nom.pl","pc.pl","powiat.pl","priv.pl","realestate.pl","rel.pl","sex.pl","shop.pl","sklep.pl","sos.pl","szkola.pl","targi.pl","tm.pl","tourism.pl","travel.pl","turystyka.pl","gov.pl","ap.gov.pl","ic.gov.pl","is.gov.pl","us.gov.pl","kmpsp.gov.pl","kppsp.gov.pl","kwpsp.gov.pl","psp.gov.pl","wskr.gov.pl","kwp.gov.pl","mw.gov.pl","ug.gov.pl","um.gov.pl","umig.gov.pl","ugim.gov.pl","upow.gov.pl","uw.gov.pl","starostwo.gov.pl","pa.gov.pl","po.gov.pl","psse.gov.pl","pup.gov.pl","rzgw.gov.pl","sa.gov.pl","so.gov.pl","sr.gov.pl","wsa.gov.pl","sko.gov.pl","uzs.gov.pl","wiih.gov.pl","winb.gov.pl","pinb.gov.pl","wios.gov.pl","witd.gov.pl","wzmiuw.gov.pl","piw.gov.pl","wiw.gov.pl","griw.gov.pl","wif.gov.pl","oum.gov.pl","sdn.gov.pl","zp.gov.pl","uppo.gov.pl","mup.gov.pl","wuoz.gov.pl","konsulat.gov.pl","oirm.gov.pl","augustow.pl","babia-gora.pl","bedzin.pl","beskidy.pl","bialowieza.pl","bialystok.pl","bielawa.pl","bieszczady.pl","boleslawiec.pl","bydgoszcz.pl","bytom.pl","cieszyn.pl","czeladz.pl","czest.pl","dlugoleka.pl","elblag.pl","elk.pl","glogow.pl","gniezno.pl","gorlice.pl","grajewo.pl","ilawa.pl","jaworzno.pl","jelenia-gora.pl","jgora.pl","kalisz.pl","kazimierz-dolny.pl","karpacz.pl","kartuzy.pl","kaszuby.pl","katowice.pl","kepno.pl","ketrzyn.pl","klodzko.pl","kobierzyce.pl","kolobrzeg.pl","konin.pl","konskowola.pl","kutno.pl","lapy.pl","lebork.pl","legnica.pl","lezajsk.pl","limanowa.pl","lomza.pl","lowicz.pl","lubin.pl","lukow.pl","malbork.pl","malopolska.pl","mazowsze.pl","mazury.pl","mielec.pl","mielno.pl","mragowo.pl","naklo.pl","nowaruda.pl","nysa.pl","olawa.pl","olecko.pl","olkusz.pl","olsztyn.pl","opoczno.pl","opole.pl","ostroda.pl","ostroleka.pl","ostrowiec.pl","ostrowwlkp.pl","pila.pl","pisz.pl","podhale.pl","podlasie.pl","polkowice.pl","pomorze.pl","pomorskie.pl","prochowice.pl","pruszkow.pl","przeworsk.pl","pulawy.pl","radom.pl","rawa-maz.pl","rybnik.pl","rzeszow.pl","sanok.pl","sejny.pl","slask.pl","slupsk.pl","sosnowiec.pl","stalowa-wola.pl","skoczow.pl","starachowice.pl","stargard.pl","suwalki.pl","swidnica.pl","swiebodzin.pl","swinoujscie.pl","szczecin.pl","szczytno.pl","tarnobrzeg.pl","tgory.pl","turek.pl","tychy.pl","ustka.pl","walbrzych.pl","warmia.pl","warszawa.pl","waw.pl","wegrow.pl","wielun.pl","wlocl.pl","wloclawek.pl","wodzislaw.pl","wolomin.pl","wroclaw.pl","zachpomor.pl","zagan.pl","zarow.pl","zgora.pl","zgorzelec.pl","pm","pn","gov.pn","co.pn","org.pn","edu.pn","net.pn","post","pr","com.pr","net.pr","org.pr","gov.pr","edu.pr","isla.pr","pro.pr","biz.pr","info.pr","name.pr","est.pr","prof.pr","ac.pr","pro","aaa.pro","aca.pro","acct.pro","avocat.pro","bar.pro","cpa.pro","eng.pro","jur.pro","law.pro","med.pro","recht.pro","ps","edu.ps","gov.ps","sec.ps","plo.ps","com.ps","org.ps","net.ps","pt","net.pt","gov.pt","org.pt","edu.pt","int.pt","publ.pt","com.pt","nome.pt","pw","co.pw","ne.pw","or.pw","ed.pw","go.pw","belau.pw","py","com.py","coop.py","edu.py","gov.py","mil.py","net.py","org.py","qa","com.qa","edu.qa","gov.qa","mil.qa","name.qa","net.qa","org.qa","sch.qa","re","asso.re","com.re","nom.re","ro","arts.ro","com.ro","firm.ro","info.ro","nom.ro","nt.ro","org.ro","rec.ro","store.ro","tm.ro","www.ro","rs","ac.rs","co.rs","edu.rs","gov.rs","in.rs","org.rs","ru","rw","ac.rw","co.rw","coop.rw","gov.rw","mil.rw","net.rw","org.rw","sa","com.sa","net.sa","org.sa","gov.sa","med.sa","pub.sa","edu.sa","sch.sa","sb","com.sb","edu.sb","gov.sb","net.sb","org.sb","sc","com.sc","gov.sc","net.sc","org.sc","edu.sc","sd","com.sd","net.sd","org.sd","edu.sd","med.sd","tv.sd","gov.sd","info.sd","se","a.se","ac.se","b.se","bd.se","brand.se","c.se","d.se","e.se","f.se","fh.se","fhsk.se","fhv.se","g.se","h.se","i.se","k.se","komforb.se","kommunalforbund.se","komvux.se","l.se","lanbib.se","m.se","n.se","naturbruksgymn.se","o.se","org.se","p.se","parti.se","pp.se","press.se","r.se","s.se","t.se","tm.se","u.se","w.se","x.se","y.se","z.se","sg","com.sg","net.sg","org.sg","gov.sg","edu.sg","per.sg","sh","com.sh","net.sh","gov.sh","org.sh","mil.sh","si","sj","sk","sl","com.sl","net.sl","edu.sl","gov.sl","org.sl","sm","sn","art.sn","com.sn","edu.sn","gouv.sn","org.sn","perso.sn","univ.sn","so","com.so","edu.so","gov.so","me.so","net.so","org.so","sr","ss","biz.ss","com.ss","edu.ss","gov.ss","net.ss","org.ss","st","co.st","com.st","consulado.st","edu.st","embaixada.st","gov.st","mil.st","net.st","org.st","principe.st","saotome.st","store.st","su","sv","com.sv","edu.sv","gob.sv","org.sv","red.sv","sx","gov.sx","sy","edu.sy","gov.sy","net.sy","mil.sy","com.sy","org.sy","sz","co.sz","ac.sz","org.sz","tc","td","tel","tf","tg","th","ac.th","co.th","go.th","in.th","mi.th","net.th","or.th","tj","ac.tj","biz.tj","co.tj","com.tj","edu.tj","go.tj","gov.tj","int.tj","mil.tj","name.tj","net.tj","nic.tj","org.tj","test.tj","web.tj","tk","tl","gov.tl","tm","com.tm","co.tm","org.tm","net.tm","nom.tm","gov.tm","mil.tm","edu.tm","tn","com.tn","ens.tn","fin.tn","gov.tn","ind.tn","intl.tn","nat.tn","net.tn","org.tn","info.tn","perso.tn","tourism.tn","edunet.tn","rnrt.tn","rns.tn","rnu.tn","mincom.tn","agrinet.tn","defense.tn","turen.tn","to","com.to","gov.to","net.to","org.to","edu.to","mil.to","tr","av.tr","bbs.tr","bel.tr","biz.tr","com.tr","dr.tr","edu.tr","gen.tr","gov.tr","info.tr","mil.tr","k12.tr","kep.tr","name.tr","net.tr","org.tr","pol.tr","tel.tr","tsk.tr","tv.tr","web.tr","nc.tr","gov.nc.tr","tt","co.tt","com.tt","org.tt","net.tt","biz.tt","info.tt","pro.tt","int.tt","coop.tt","jobs.tt","mobi.tt","travel.tt","museum.tt","aero.tt","name.tt","gov.tt","edu.tt","tv","tw","edu.tw","gov.tw","mil.tw","com.tw","net.tw","org.tw","idv.tw","game.tw","ebiz.tw","club.tw","網路.tw","組織.tw","商業.tw","tz","ac.tz","co.tz","go.tz","hotel.tz","info.tz","me.tz","mil.tz","mobi.tz","ne.tz","or.tz","sc.tz","tv.tz","ua","com.ua","edu.ua","gov.ua","in.ua","net.ua","org.ua","cherkassy.ua","cherkasy.ua","chernigov.ua","chernihiv.ua","chernivtsi.ua","chernovtsy.ua","ck.ua","cn.ua","cr.ua","crimea.ua","cv.ua","dn.ua","dnepropetrovsk.ua","dnipropetrovsk.ua","dominic.ua","donetsk.ua","dp.ua","if.ua","ivano-frankivsk.ua","kh.ua","kharkiv.ua","kharkov.ua","kherson.ua","khmelnitskiy.ua","khmelnytskyi.ua","kiev.ua","kirovograd.ua","km.ua","kr.ua","krym.ua","ks.ua","kv.ua","kyiv.ua","lg.ua","lt.ua","lugansk.ua","lutsk.ua","lv.ua","lviv.ua","mk.ua","mykolaiv.ua","nikolaev.ua","od.ua","odesa.ua","odessa.ua","pl.ua","poltava.ua","rivne.ua","rovno.ua","rv.ua","sb.ua","sebastopol.ua","sevastopol.ua","sm.ua","sumy.ua","te.ua","ternopil.ua","uz.ua","uzhgorod.ua","vinnica.ua","vinnytsia.ua","vn.ua","volyn.ua","yalta.ua","zaporizhzhe.ua","zaporizhzhia.ua","zhitomir.ua","zhytomyr.ua","zp.ua","zt.ua","ug","co.ug","or.ug","ac.ug","sc.ug","go.ug","ne.ug","com.ug","org.ug","uk","ac.uk","co.uk","gov.uk","ltd.uk","me.uk","net.uk","nhs.uk","org.uk","plc.uk","police.uk","*.sch.uk","us","dni.us","fed.us","isa.us","kids.us","nsn.us","ak.us","al.us","ar.us","as.us","az.us","ca.us","co.us","ct.us","dc.us","de.us","fl.us","ga.us","gu.us","hi.us","ia.us","id.us","il.us","in.us","ks.us","ky.us","la.us","ma.us","md.us","me.us","mi.us","mn.us","mo.us","ms.us","mt.us","nc.us","nd.us","ne.us","nh.us","nj.us","nm.us","nv.us","ny.us","oh.us","ok.us","or.us","pa.us","pr.us","ri.us","sc.us","sd.us","tn.us","tx.us","ut.us","vi.us","vt.us","va.us","wa.us","wi.us","wv.us","wy.us","k12.ak.us","k12.al.us","k12.ar.us","k12.as.us","k12.az.us","k12.ca.us","k12.co.us","k12.ct.us","k12.dc.us","k12.de.us","k12.fl.us","k12.ga.us","k12.gu.us","k12.ia.us","k12.id.us","k12.il.us","k12.in.us","k12.ks.us","k12.ky.us","k12.la.us","k12.ma.us","k12.md.us","k12.me.us","k12.mi.us","k12.mn.us","k12.mo.us","k12.ms.us","k12.mt.us","k12.nc.us","k12.ne.us","k12.nh.us","k12.nj.us","k12.nm.us","k12.nv.us","k12.ny.us","k12.oh.us","k12.ok.us","k12.or.us","k12.pa.us","k12.pr.us","k12.ri.us","k12.sc.us","k12.tn.us","k12.tx.us","k12.ut.us","k12.vi.us","k12.vt.us","k12.va.us","k12.wa.us","k12.wi.us","k12.wy.us","cc.ak.us","cc.al.us","cc.ar.us","cc.as.us","cc.az.us","cc.ca.us","cc.co.us","cc.ct.us","cc.dc.us","cc.de.us","cc.fl.us","cc.ga.us","cc.gu.us","cc.hi.us","cc.ia.us","cc.id.us","cc.il.us","cc.in.us","cc.ks.us","cc.ky.us","cc.la.us","cc.ma.us","cc.md.us","cc.me.us","cc.mi.us","cc.mn.us","cc.mo.us","cc.ms.us","cc.mt.us","cc.nc.us","cc.nd.us","cc.ne.us","cc.nh.us","cc.nj.us","cc.nm.us","cc.nv.us","cc.ny.us","cc.oh.us","cc.ok.us","cc.or.us","cc.pa.us","cc.pr.us","cc.ri.us","cc.sc.us","cc.sd.us","cc.tn.us","cc.tx.us","cc.ut.us","cc.vi.us","cc.vt.us","cc.va.us","cc.wa.us","cc.wi.us","cc.wv.us","cc.wy.us","lib.ak.us","lib.al.us","lib.ar.us","lib.as.us","lib.az.us","lib.ca.us","lib.co.us","lib.ct.us","lib.dc.us","lib.fl.us","lib.ga.us","lib.gu.us","lib.hi.us","lib.ia.us","lib.id.us","lib.il.us","lib.in.us","lib.ks.us","lib.ky.us","lib.la.us","lib.ma.us","lib.md.us","lib.me.us","lib.mi.us","lib.mn.us","lib.mo.us","lib.ms.us","lib.mt.us","lib.nc.us","lib.nd.us","lib.ne.us","lib.nh.us","lib.nj.us","lib.nm.us","lib.nv.us","lib.ny.us","lib.oh.us","lib.ok.us","lib.or.us","lib.pa.us","lib.pr.us","lib.ri.us","lib.sc.us","lib.sd.us","lib.tn.us","lib.tx.us","lib.ut.us","lib.vi.us","lib.vt.us","lib.va.us","lib.wa.us","lib.wi.us","lib.wy.us","pvt.k12.ma.us","chtr.k12.ma.us","paroch.k12.ma.us","ann-arbor.mi.us","cog.mi.us","dst.mi.us","eaton.mi.us","gen.mi.us","mus.mi.us","tec.mi.us","washtenaw.mi.us","uy","com.uy","edu.uy","gub.uy","mil.uy","net.uy","org.uy","uz","co.uz","com.uz","net.uz","org.uz","va","vc","com.vc","net.vc","org.vc","gov.vc","mil.vc","edu.vc","ve","arts.ve","co.ve","com.ve","e12.ve","edu.ve","firm.ve","gob.ve","gov.ve","info.ve","int.ve","mil.ve","net.ve","org.ve","rec.ve","store.ve","tec.ve","web.ve","vg","vi","co.vi","com.vi","k12.vi","net.vi","org.vi","vn","com.vn","net.vn","org.vn","edu.vn","gov.vn","int.vn","ac.vn","biz.vn","info.vn","name.vn","pro.vn","health.vn","vu","com.vu","edu.vu","net.vu","org.vu","wf","ws","com.ws","net.ws","org.ws","gov.ws","edu.ws","yt","امارات","հայ","বাংলা","бг","бел","中国","中國","الجزائر","مصر","ею","ευ","موريتانيا","გე","ελ","香港","公司.香港","教育.香港","政府.香港","個人.香港","網絡.香港","組織.香港","ಭಾರತ","ଭାରତ","ভাৰত","भारतम्","भारोत","ڀارت","ഭാരതം","भारत","بارت","بھارت","భారత్","ભારત","ਭਾਰਤ","ভারত","இந்தியா","ایران","ايران","عراق","الاردن","한국","қаз","ලංකා","இலங்கை","المغرب","мкд","мон","澳門","澳门","مليسيا","عمان","پاکستان","پاكستان","فلسطين","срб","пр.срб","орг.срб","обр.срб","од.срб","упр.срб","ак.срб","рф","قطر","السعودية","السعودیة","السعودیۃ","السعوديه","سودان","新加坡","சிங்கப்பூர்","سورية","سوريا","ไทย","ศึกษา.ไทย","ธุรกิจ.ไทย","รัฐบาล.ไทย","ทหาร.ไทย","เน็ต.ไทย","องค์กร.ไทย","تونس","台灣","台湾","臺灣","укр","اليمن","xxx","*.ye","ac.za","agric.za","alt.za","co.za","edu.za","gov.za","grondar.za","law.za","mil.za","net.za","ngo.za","nic.za","nis.za","nom.za","org.za","school.za","tm.za","web.za","zm","ac.zm","biz.zm","co.zm","com.zm","edu.zm","gov.zm","info.zm","mil.zm","net.zm","org.zm","sch.zm","zw","ac.zw","co.zw","gov.zw","mil.zw","org.zw","aaa","aarp","abarth","abb","abbott","abbvie","abc","able","abogado","abudhabi","academy","accenture","accountant","accountants","aco","actor","adac","ads","adult","aeg","aetna","afamilycompany","afl","africa","agakhan","agency","aig","aigo","airbus","airforce","airtel","akdn","alfaromeo","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","aol","apartments","app","apple","aquarelle","arab","aramco","archi","army","art","arte","asda","associates","athleta","attorney","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aws","axa","azure","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bbc","bbt","bbva","bcg","bcn","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bharti","bible","bid","bike","bing","bingo","bio","black","blackfriday","blockbuster","blog","bloomberg","blue","bms","bmw","bnpparibas","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","bradesco","bridgestone","broadway","broker","brother","brussels","budapest","bugatti","build","builders","business","buy","buzz","bzh","cab","cafe","cal","call","calvinklein","cam","camera","camp","cancerresearch","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","caseih","cash","casino","catering","catholic","cba","cbn","cbre","cbs","ceb","center","ceo","cern","cfa","cfd","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","coach","codes","coffee","college","cologne","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cookingchannel","cool","corsica","country","coupon","coupons","courses","cpa","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","csc","cuisinella","cymru","cyou","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dnp","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","duck","dunlop","dupont","durban","dvag","dvr","earth","eat","eco","edeka","education","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","ericsson","erni","esq","estate","esurance","etisalat","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fiat","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","flickr","flights","flir","florist","flowers","fly","foo","food","foodnetwork","football","ford","forex","forsale","forum","foundation","fox","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fujixerox","fun","fund","furniture","futbol","fyi","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gbiz","gdn","gea","gent","genting","george","ggee","gift","gifts","gives","giving","glade","glass","gle","global","globo","gmail","gmbh","gmo","gmx","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","grainger","graphics","gratis","green","gripe","grocery","group","guardian","gucci","guge","guide","guitars","guru","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hgtv","hiphop","hisamitsu","hitachi","hiv","hkt","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hoteles","hotels","hotmail","house","how","hsbc","hughes","hyatt","hyundai","ibm","icbc","ice","icu","ieee","ifm","ikano","imamat","imdb","immo","immobilien","inc","industries","infiniti","ing","ink","institute","insurance","insure","intel","international","intuit","investments","ipiranga","irish","ismaili","ist","istanbul","itau","itv","iveco","jaguar","java","jcb","jcp","jeep","jetzt","jewelry","jio","jll","jmp","jnj","joburg","jot","joy","jpmorgan","jprs","juegos","juniper","kaufen","kddi","kerryhotels","kerrylogistics","kerryproperties","kfh","kia","kim","kinder","kindle","kitchen","kiwi","koeln","komatsu","kosher","kpmg","kpn","krd","kred","kuokgroup","kyoto","lacaixa","lamborghini","lamer","lancaster","lancia","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","linde","link","lipsy","live","living","lixil","llc","llp","loan","loans","locker","locus","loft","lol","london","lotte","lotto","love","lpl","lplfinancial","ltd","ltda","lundbeck","lupin","luxe","luxury","macys","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","maserati","mattel","mba","mckinsey","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","metlife","miami","microsoft","mini","mint","mit","mitsubishi","mlb","mls","mma","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","msd","mtn","mtr","mutual","nab","nadex","nagoya","nationwide","natura","navy","nba","nec","netbank","netflix","network","neustar","new","newholland","news","next","nextdirect","nexus","nfl","ngo","nhk","nico","nike","nikon","ninja","nissan","nissay","nokia","northwesternmutual","norton","now","nowruz","nowtv","nra","nrw","ntt","nyc","obi","observer","off","office","okinawa","olayan","olayangroup","oldnavy","ollo","omega","one","ong","onl","online","onyourside","ooo","open","oracle","orange","organic","origins","osaka","otsuka","ott","ovh","page","panasonic","paris","pars","partners","parts","party","passagens","pay","pccw","pet","pfizer","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","place","play","playstation","plumbing","plus","pnc","pohl","poker","politie","porn","pramerica","praxi","press","prime","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","pub","pwc","qpon","quebec","quest","qvc","racing","radio","raid","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","rightathome","ril","rio","rip","rmit","rocher","rocks","rodeo","rogers","room","rsvp","rugby","ruhr","run","rwe","ryukyu","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sbi","sbs","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scjohnson","scor","scot","search","seat","secure","security","seek","select","sener","services","ses","seven","sew","sex","sexy","sfr","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","shriram","silk","sina","singles","site","ski","skin","sky","skype","sling","smart","smile","sncf","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","spreadbetting","srl","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","sucks","supplies","supply","support","surf","surgery","suzuki","swatch","swiftcover","swiss","sydney","symantec","systems","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tci","tdk","team","tech","technology","temasek","tennis","teva","thd","theater","theatre","tiaa","tickets","tienda","tiffany","tips","tires","tirol","tjmaxx","tjx","tkmaxx","tmall","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","trade","trading","training","travel","travelchannel","travelers","travelersinsurance","trust","trv","tube","tui","tunes","tushu","tvs","ubank","ubs","unicom","university","uno","uol","ups","vacations","vana","vanguard","vegas","ventures","verisign","versicherung","vet","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vodka","volkswagen","volvo","vote","voting","voto","voyage","vuelos","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","कॉम","セール","佛山","慈善","集团","在线","大众汽车","点看","คอม","八卦","موقع","公益","公司","香格里拉","网站","移动","我爱你","москва","католик","онлайн","сайт","联通","קום","时尚","微博","淡马锡","ファッション","орг","नेट","ストア","アマゾン","삼성","商标","商店","商城","дети","ポイント","新闻","工行","家電","كوم","中文网","中信","娱乐","谷歌","電訊盈科","购物","クラウド","通販","网店","संगठन","餐厅","网络","ком","亚马逊","诺基亚","食品","飞利浦","手表","手机","ارامكو","العليان","اتصالات","بازار","ابوظبي","كاثوليك","همراه","닷컴","政府","شبكة","بيتك","عرب","机构","组织机构","健康","招聘","рус","珠宝","大拿","みんな","グーグル","世界","書籍","网址","닷넷","コム","天主教","游戏","vermögensberater","vermögensberatung","企业","信息","嘉里大酒店","嘉里","广东","政务","xyz","yachts","yahoo","yamaxun","yandex","yodobashi","yoga","yokohama","you","youtube","yun","zappos","zara","zero","zip","zone","zuerich","cc.ua","inf.ua","ltd.ua","adobeaemcloud.com","adobeaemcloud.net","*.dev.adobeaemcloud.com","beep.pl","barsy.ca","*.compute.estate","*.alces.network","altervista.org","alwaysdata.net","cloudfront.net","*.compute.amazonaws.com","*.compute-1.amazonaws.com","*.compute.amazonaws.com.cn","us-east-1.amazonaws.com","cn-north-1.eb.amazonaws.com.cn","cn-northwest-1.eb.amazonaws.com.cn","elasticbeanstalk.com","ap-northeast-1.elasticbeanstalk.com","ap-northeast-2.elasticbeanstalk.com","ap-northeast-3.elasticbeanstalk.com","ap-south-1.elasticbeanstalk.com","ap-southeast-1.elasticbeanstalk.com","ap-southeast-2.elasticbeanstalk.com","ca-central-1.elasticbeanstalk.com","eu-central-1.elasticbeanstalk.com","eu-west-1.elasticbeanstalk.com","eu-west-2.elasticbeanstalk.com","eu-west-3.elasticbeanstalk.com","sa-east-1.elasticbeanstalk.com","us-east-1.elasticbeanstalk.com","us-east-2.elasticbeanstalk.com","us-gov-west-1.elasticbeanstalk.com","us-west-1.elasticbeanstalk.com","us-west-2.elasticbeanstalk.com","*.elb.amazonaws.com","*.elb.amazonaws.com.cn","s3.amazonaws.com","s3-ap-northeast-1.amazonaws.com","s3-ap-northeast-2.amazonaws.com","s3-ap-south-1.amazonaws.com","s3-ap-southeast-1.amazonaws.com","s3-ap-southeast-2.amazonaws.com","s3-ca-central-1.amazonaws.com","s3-eu-central-1.amazonaws.com","s3-eu-west-1.amazonaws.com","s3-eu-west-2.amazonaws.com","s3-eu-west-3.amazonaws.com","s3-external-1.amazonaws.com","s3-fips-us-gov-west-1.amazonaws.com","s3-sa-east-1.amazonaws.com","s3-us-gov-west-1.amazonaws.com","s3-us-east-2.amazonaws.com","s3-us-west-1.amazonaws.com","s3-us-west-2.amazonaws.com","s3.ap-northeast-2.amazonaws.com","s3.ap-south-1.amazonaws.com","s3.cn-north-1.amazonaws.com.cn","s3.ca-central-1.amazonaws.com","s3.eu-central-1.amazonaws.com","s3.eu-west-2.amazonaws.com","s3.eu-west-3.amazonaws.com","s3.us-east-2.amazonaws.com","s3.dualstack.ap-northeast-1.amazonaws.com","s3.dualstack.ap-northeast-2.amazonaws.com","s3.dualstack.ap-south-1.amazonaws.com","s3.dualstack.ap-southeast-1.amazonaws.com","s3.dualstack.ap-southeast-2.amazonaws.com","s3.dualstack.ca-central-1.amazonaws.com","s3.dualstack.eu-central-1.amazonaws.com","s3.dualstack.eu-west-1.amazonaws.com","s3.dualstack.eu-west-2.amazonaws.com","s3.dualstack.eu-west-3.amazonaws.com","s3.dualstack.sa-east-1.amazonaws.com","s3.dualstack.us-east-1.amazonaws.com","s3.dualstack.us-east-2.amazonaws.com","s3-website-us-east-1.amazonaws.com","s3-website-us-west-1.amazonaws.com","s3-website-us-west-2.amazonaws.com","s3-website-ap-northeast-1.amazonaws.com","s3-website-ap-southeast-1.amazonaws.com","s3-website-ap-southeast-2.amazonaws.com","s3-website-eu-west-1.amazonaws.com","s3-website-sa-east-1.amazonaws.com","s3-website.ap-northeast-2.amazonaws.com","s3-website.ap-south-1.amazonaws.com","s3-website.ca-central-1.amazonaws.com","s3-website.eu-central-1.amazonaws.com","s3-website.eu-west-2.amazonaws.com","s3-website.eu-west-3.amazonaws.com","s3-website.us-east-2.amazonaws.com","amsw.nl","t3l3p0rt.net","tele.amune.org","apigee.io","on-aptible.com","user.aseinet.ne.jp","gv.vc","d.gv.vc","user.party.eus","pimienta.org","poivron.org","potager.org","sweetpepper.org","myasustor.com","myfritz.net","*.awdev.ca","*.advisor.ws","b-data.io","backplaneapp.io","balena-devices.com","app.banzaicloud.io","betainabox.com","bnr.la","blackbaudcdn.net","boomla.net","boxfuse.io","square7.ch","bplaced.com","bplaced.de","square7.de","bplaced.net","square7.net","browsersafetymark.io","uk0.bigv.io","dh.bytemark.co.uk","vm.bytemark.co.uk","mycd.eu","carrd.co","crd.co","uwu.ai","ae.org","ar.com","br.com","cn.com","com.de","com.se","de.com","eu.com","gb.com","gb.net","hu.com","hu.net","jp.net","jpn.com","kr.com","mex.com","no.com","qc.com","ru.com","sa.com","se.net","uk.com","uk.net","us.com","uy.com","za.bz","za.com","africa.com","gr.com","in.net","us.org","co.com","c.la","certmgr.org","xenapponazure.com","discourse.group","discourse.team","virtueeldomein.nl","cleverapps.io","*.lcl.dev","*.stg.dev","c66.me","cloud66.ws","cloud66.zone","jdevcloud.com","wpdevcloud.com","cloudaccess.host","freesite.host","cloudaccess.net","cloudcontrolled.com","cloudcontrolapp.com","cloudera.site","trycloudflare.com","workers.dev","wnext.app","co.ca","*.otap.co","co.cz","c.cdn77.org","cdn77-ssl.net","r.cdn77.net","rsc.cdn77.org","ssl.origin.cdn77-secure.org","cloudns.asia","cloudns.biz","cloudns.club","cloudns.cc","cloudns.eu","cloudns.in","cloudns.info","cloudns.org","cloudns.pro","cloudns.pw","cloudns.us","cloudeity.net","cnpy.gdn","co.nl","co.no","webhosting.be","hosting-cluster.nl","ac.ru","edu.ru","gov.ru","int.ru","mil.ru","test.ru","dyn.cosidns.de","dynamisches-dns.de","dnsupdater.de","internet-dns.de","l-o-g-i-n.de","dynamic-dns.info","feste-ip.net","knx-server.net","static-access.net","realm.cz","*.cryptonomic.net","cupcake.is","*.customer-oci.com","*.oci.customer-oci.com","*.ocp.customer-oci.com","*.ocs.customer-oci.com","cyon.link","cyon.site","daplie.me","localhost.daplie.me","dattolocal.com","dattorelay.com","dattoweb.com","mydatto.com","dattolocal.net","mydatto.net","biz.dk","co.dk","firm.dk","reg.dk","store.dk","*.dapps.earth","*.bzz.dapps.earth","builtwithdark.com","edgestack.me","debian.net","dedyn.io","dnshome.de","online.th","shop.th","drayddns.com","dreamhosters.com","mydrobo.com","drud.io","drud.us","duckdns.org","dy.fi","tunk.org","dyndns-at-home.com","dyndns-at-work.com","dyndns-blog.com","dyndns-free.com","dyndns-home.com","dyndns-ip.com","dyndns-mail.com","dyndns-office.com","dyndns-pics.com","dyndns-remote.com","dyndns-server.com","dyndns-web.com","dyndns-wiki.com","dyndns-work.com","dyndns.biz","dyndns.info","dyndns.org","dyndns.tv","at-band-camp.net","ath.cx","barrel-of-knowledge.info","barrell-of-knowledge.info","better-than.tv","blogdns.com","blogdns.net","blogdns.org","blogsite.org","boldlygoingnowhere.org","broke-it.net","buyshouses.net","cechire.com","dnsalias.com","dnsalias.net","dnsalias.org","dnsdojo.com","dnsdojo.net","dnsdojo.org","does-it.net","doesntexist.com","doesntexist.org","dontexist.com","dontexist.net","dontexist.org","doomdns.com","doomdns.org","dvrdns.org","dyn-o-saur.com","dynalias.com","dynalias.net","dynalias.org","dynathome.net","dyndns.ws","endofinternet.net","endofinternet.org","endoftheinternet.org","est-a-la-maison.com","est-a-la-masion.com","est-le-patron.com","est-mon-blogueur.com","for-better.biz","for-more.biz","for-our.info","for-some.biz","for-the.biz","forgot.her.name","forgot.his.name","from-ak.com","from-al.com","from-ar.com","from-az.net","from-ca.com","from-co.net","from-ct.com","from-dc.com","from-de.com","from-fl.com","from-ga.com","from-hi.com","from-ia.com","from-id.com","from-il.com","from-in.com","from-ks.com","from-ky.com","from-la.net","from-ma.com","from-md.com","from-me.org","from-mi.com","from-mn.com","from-mo.com","from-ms.com","from-mt.com","from-nc.com","from-nd.com","from-ne.com","from-nh.com","from-nj.com","from-nm.com","from-nv.com","from-ny.net","from-oh.com","from-ok.com","from-or.com","from-pa.com","from-pr.com","from-ri.com","from-sc.com","from-sd.com","from-tn.com","from-tx.com","from-ut.com","from-va.com","from-vt.com","from-wa.com","from-wi.com","from-wv.com","from-wy.com","ftpaccess.cc","fuettertdasnetz.de","game-host.org","game-server.cc","getmyip.com","gets-it.net","go.dyndns.org","gotdns.com","gotdns.org","groks-the.info","groks-this.info","ham-radio-op.net","here-for-more.info","hobby-site.com","hobby-site.org","home.dyndns.org","homedns.org","homeftp.net","homeftp.org","homeip.net","homelinux.com","homelinux.net","homelinux.org","homeunix.com","homeunix.net","homeunix.org","iamallama.com","in-the-band.net","is-a-anarchist.com","is-a-blogger.com","is-a-bookkeeper.com","is-a-bruinsfan.org","is-a-bulls-fan.com","is-a-candidate.org","is-a-caterer.com","is-a-celticsfan.org","is-a-chef.com","is-a-chef.net","is-a-chef.org","is-a-conservative.com","is-a-cpa.com","is-a-cubicle-slave.com","is-a-democrat.com","is-a-designer.com","is-a-doctor.com","is-a-financialadvisor.com","is-a-geek.com","is-a-geek.net","is-a-geek.org","is-a-green.com","is-a-guru.com","is-a-hard-worker.com","is-a-hunter.com","is-a-knight.org","is-a-landscaper.com","is-a-lawyer.com","is-a-liberal.com","is-a-libertarian.com","is-a-linux-user.org","is-a-llama.com","is-a-musician.com","is-a-nascarfan.com","is-a-nurse.com","is-a-painter.com","is-a-patsfan.org","is-a-personaltrainer.com","is-a-photographer.com","is-a-player.com","is-a-republican.com","is-a-rockstar.com","is-a-socialist.com","is-a-soxfan.org","is-a-student.com","is-a-teacher.com","is-a-techie.com","is-a-therapist.com","is-an-accountant.com","is-an-actor.com","is-an-actress.com","is-an-anarchist.com","is-an-artist.com","is-an-engineer.com","is-an-entertainer.com","is-by.us","is-certified.com","is-found.org","is-gone.com","is-into-anime.com","is-into-cars.com","is-into-cartoons.com","is-into-games.com","is-leet.com","is-lost.org","is-not-certified.com","is-saved.org","is-slick.com","is-uberleet.com","is-very-bad.org","is-very-evil.org","is-very-good.org","is-very-nice.org","is-very-sweet.org","is-with-theband.com","isa-geek.com","isa-geek.net","isa-geek.org","isa-hockeynut.com","issmarterthanyou.com","isteingeek.de","istmein.de","kicks-ass.net","kicks-ass.org","knowsitall.info","land-4-sale.us","lebtimnetz.de","leitungsen.de","likes-pie.com","likescandy.com","merseine.nu","mine.nu","misconfused.org","mypets.ws","myphotos.cc","neat-url.com","office-on-the.net","on-the-web.tv","podzone.net","podzone.org","readmyblog.org","saves-the-whales.com","scrapper-site.net","scrapping.cc","selfip.biz","selfip.com","selfip.info","selfip.net","selfip.org","sells-for-less.com","sells-for-u.com","sells-it.net","sellsyourhome.org","servebbs.com","servebbs.net","servebbs.org","serveftp.net","serveftp.org","servegame.org","shacknet.nu","simple-url.com","space-to-rent.com","stuff-4-sale.org","stuff-4-sale.us","teaches-yoga.com","thruhere.net","traeumtgerade.de","webhop.biz","webhop.info","webhop.net","webhop.org","worse-than.tv","writesthisblog.com","ddnss.de","dyn.ddnss.de","dyndns.ddnss.de","dyndns1.de","dyn-ip24.de","home-webserver.de","dyn.home-webserver.de","myhome-server.de","ddnss.org","definima.net","definima.io","bci.dnstrace.pro","ddnsfree.com","ddnsgeek.com","giize.com","gleeze.com","kozow.com","loseyourip.com","ooguy.com","theworkpc.com","casacam.net","dynu.net","accesscam.org","camdvr.org","freeddns.org","mywire.org","webredirect.org","myddns.rocks","blogsite.xyz","dynv6.net","e4.cz","en-root.fr","mytuleap.com","onred.one","staging.onred.one","enonic.io","customer.enonic.io","eu.org","al.eu.org","asso.eu.org","at.eu.org","au.eu.org","be.eu.org","bg.eu.org","ca.eu.org","cd.eu.org","ch.eu.org","cn.eu.org","cy.eu.org","cz.eu.org","de.eu.org","dk.eu.org","edu.eu.org","ee.eu.org","es.eu.org","fi.eu.org","fr.eu.org","gr.eu.org","hr.eu.org","hu.eu.org","ie.eu.org","il.eu.org","in.eu.org","int.eu.org","is.eu.org","it.eu.org","jp.eu.org","kr.eu.org","lt.eu.org","lu.eu.org","lv.eu.org","mc.eu.org","me.eu.org","mk.eu.org","mt.eu.org","my.eu.org","net.eu.org","ng.eu.org","nl.eu.org","no.eu.org","nz.eu.org","paris.eu.org","pl.eu.org","pt.eu.org","q-a.eu.org","ro.eu.org","ru.eu.org","se.eu.org","si.eu.org","sk.eu.org","tr.eu.org","uk.eu.org","us.eu.org","eu-1.evennode.com","eu-2.evennode.com","eu-3.evennode.com","eu-4.evennode.com","us-1.evennode.com","us-2.evennode.com","us-3.evennode.com","us-4.evennode.com","twmail.cc","twmail.net","twmail.org","mymailer.com.tw","url.tw","apps.fbsbx.com","ru.net","adygeya.ru","bashkiria.ru","bir.ru","cbg.ru","com.ru","dagestan.ru","grozny.ru","kalmykia.ru","kustanai.ru","marine.ru","mordovia.ru","msk.ru","mytis.ru","nalchik.ru","nov.ru","pyatigorsk.ru","spb.ru","vladikavkaz.ru","vladimir.ru","abkhazia.su","adygeya.su","aktyubinsk.su","arkhangelsk.su","armenia.su","ashgabad.su","azerbaijan.su","balashov.su","bashkiria.su","bryansk.su","bukhara.su","chimkent.su","dagestan.su","east-kazakhstan.su","exnet.su","georgia.su","grozny.su","ivanovo.su","jambyl.su","kalmykia.su","kaluga.su","karacol.su","karaganda.su","karelia.su","khakassia.su","krasnodar.su","kurgan.su","kustanai.su","lenug.su","mangyshlak.su","mordovia.su","msk.su","murmansk.su","nalchik.su","navoi.su","north-kazakhstan.su","nov.su","obninsk.su","penza.su","pokrovsk.su","sochi.su","spb.su","tashkent.su","termez.su","togliatti.su","troitsk.su","tselinograd.su","tula.su","tuva.su","vladikavkaz.su","vladimir.su","vologda.su","channelsdvr.net","u.channelsdvr.net","fastly-terrarium.com","fastlylb.net","map.fastlylb.net","freetls.fastly.net","map.fastly.net","a.prod.fastly.net","global.prod.fastly.net","a.ssl.fastly.net","b.ssl.fastly.net","global.ssl.fastly.net","fastpanel.direct","fastvps-server.com","fhapp.xyz","fedorainfracloud.org","fedorapeople.org","cloud.fedoraproject.org","app.os.fedoraproject.org","app.os.stg.fedoraproject.org","mydobiss.com","filegear.me","filegear-au.me","filegear-de.me","filegear-gb.me","filegear-ie.me","filegear-jp.me","filegear-sg.me","firebaseapp.com","flynnhub.com","flynnhosting.net","0e.vc","freebox-os.com","freeboxos.com","fbx-os.fr","fbxos.fr","freebox-os.fr","freeboxos.fr","freedesktop.org","*.futurecms.at","*.ex.futurecms.at","*.in.futurecms.at","futurehosting.at","futuremailing.at","*.ex.ortsinfo.at","*.kunden.ortsinfo.at","*.statics.cloud","service.gov.uk","gehirn.ne.jp","usercontent.jp","gentapps.com","lab.ms","github.io","githubusercontent.com","gitlab.io","glitch.me","lolipop.io","cloudapps.digital","london.cloudapps.digital","homeoffice.gov.uk","ro.im","shop.ro","goip.de","run.app","a.run.app","web.app","*.0emm.com","appspot.com","*.r.appspot.com","blogspot.ae","blogspot.al","blogspot.am","blogspot.ba","blogspot.be","blogspot.bg","blogspot.bj","blogspot.ca","blogspot.cf","blogspot.ch","blogspot.cl","blogspot.co.at","blogspot.co.id","blogspot.co.il","blogspot.co.ke","blogspot.co.nz","blogspot.co.uk","blogspot.co.za","blogspot.com","blogspot.com.ar","blogspot.com.au","blogspot.com.br","blogspot.com.by","blogspot.com.co","blogspot.com.cy","blogspot.com.ee","blogspot.com.eg","blogspot.com.es","blogspot.com.mt","blogspot.com.ng","blogspot.com.tr","blogspot.com.uy","blogspot.cv","blogspot.cz","blogspot.de","blogspot.dk","blogspot.fi","blogspot.fr","blogspot.gr","blogspot.hk","blogspot.hr","blogspot.hu","blogspot.ie","blogspot.in","blogspot.is","blogspot.it","blogspot.jp","blogspot.kr","blogspot.li","blogspot.lt","blogspot.lu","blogspot.md","blogspot.mk","blogspot.mr","blogspot.mx","blogspot.my","blogspot.nl","blogspot.no","blogspot.pe","blogspot.pt","blogspot.qa","blogspot.re","blogspot.ro","blogspot.rs","blogspot.ru","blogspot.se","blogspot.sg","blogspot.si","blogspot.sk","blogspot.sn","blogspot.td","blogspot.tw","blogspot.ug","blogspot.vn","cloudfunctions.net","cloud.goog","codespot.com","googleapis.com","googlecode.com","pagespeedmobilizer.com","publishproxy.com","withgoogle.com","withyoutube.com","awsmppl.com","fin.ci","free.hr","caa.li","ua.rs","conf.se","hs.zone","hs.run","hashbang.sh","hasura.app","hasura-app.io","hepforge.org","herokuapp.com","herokussl.com","myravendb.com","ravendb.community","ravendb.me","development.run","ravendb.run","bpl.biz","orx.biz","ng.city","biz.gl","ng.ink","col.ng","firm.ng","gen.ng","ltd.ng","ngo.ng","ng.school","sch.so","häkkinen.fi","*.moonscale.io","moonscale.net","iki.fi","dyn-berlin.de","in-berlin.de","in-brb.de","in-butter.de","in-dsl.de","in-dsl.net","in-dsl.org","in-vpn.de","in-vpn.net","in-vpn.org","biz.at","info.at","info.cx","ac.leg.br","al.leg.br","am.leg.br","ap.leg.br","ba.leg.br","ce.leg.br","df.leg.br","es.leg.br","go.leg.br","ma.leg.br","mg.leg.br","ms.leg.br","mt.leg.br","pa.leg.br","pb.leg.br","pe.leg.br","pi.leg.br","pr.leg.br","rj.leg.br","rn.leg.br","ro.leg.br","rr.leg.br","rs.leg.br","sc.leg.br","se.leg.br","sp.leg.br","to.leg.br","pixolino.com","ipifony.net","mein-iserv.de","test-iserv.de","iserv.dev","iobb.net","myjino.ru","*.hosting.myjino.ru","*.landing.myjino.ru","*.spectrum.myjino.ru","*.vps.myjino.ru","*.triton.zone","*.cns.joyent.com","js.org","kaas.gg","khplay.nl","keymachine.de","kinghost.net","uni5.net","knightpoint.systems","oya.to","co.krd","edu.krd","git-repos.de","lcube-server.de","svn-repos.de","leadpages.co","lpages.co","lpusercontent.com","lelux.site","co.business","co.education","co.events","co.financial","co.network","co.place","co.technology","app.lmpm.com","linkitools.space","linkyard.cloud","linkyard-cloud.ch","members.linode.com","nodebalancer.linode.com","we.bs","loginline.app","loginline.dev","loginline.io","loginline.services","loginline.site","krasnik.pl","leczna.pl","lubartow.pl","lublin.pl","poniatowa.pl","swidnik.pl","uklugs.org","glug.org.uk","lug.org.uk","lugs.org.uk","barsy.bg","barsy.co.uk","barsyonline.co.uk","barsycenter.com","barsyonline.com","barsy.club","barsy.de","barsy.eu","barsy.in","barsy.info","barsy.io","barsy.me","barsy.menu","barsy.mobi","barsy.net","barsy.online","barsy.org","barsy.pro","barsy.pub","barsy.shop","barsy.site","barsy.support","barsy.uk","*.magentosite.cloud","mayfirst.info","mayfirst.org","hb.cldmail.ru","miniserver.com","memset.net","cloud.metacentrum.cz","custom.metacentrum.cz","flt.cloud.muni.cz","usr.cloud.muni.cz","meteorapp.com","eu.meteorapp.com","co.pl","azurecontainer.io","azurewebsites.net","azure-mobile.net","cloudapp.net","mozilla-iot.org","bmoattachments.org","net.ru","org.ru","pp.ru","ui.nabu.casa","pony.club","of.fashion","on.fashion","of.football","in.london","of.london","for.men","and.mom","for.mom","for.one","for.sale","of.work","to.work","nctu.me","bitballoon.com","netlify.com","4u.com","ngrok.io","nh-serv.co.uk","nfshost.com","dnsking.ch","mypi.co","n4t.co","001www.com","ddnslive.com","myiphost.com","forumz.info","16-b.it","32-b.it","64-b.it","soundcast.me","tcp4.me","dnsup.net","hicam.net","now-dns.net","ownip.net","vpndns.net","dynserv.org","now-dns.org","x443.pw","now-dns.top","ntdll.top","freeddns.us","crafting.xyz","zapto.xyz","nsupdate.info","nerdpol.ovh","blogsyte.com","brasilia.me","cable-modem.org","ciscofreak.com","collegefan.org","couchpotatofries.org","damnserver.com","ddns.me","ditchyourip.com","dnsfor.me","dnsiskinky.com","dvrcam.info","dynns.com","eating-organic.net","fantasyleague.cc","geekgalaxy.com","golffan.us","health-carereform.com","homesecuritymac.com","homesecuritypc.com","hopto.me","ilovecollege.info","loginto.me","mlbfan.org","mmafan.biz","myactivedirectory.com","mydissent.net","myeffect.net","mymediapc.net","mypsx.net","mysecuritycamera.com","mysecuritycamera.net","mysecuritycamera.org","net-freaks.com","nflfan.org","nhlfan.net","no-ip.ca","no-ip.co.uk","no-ip.net","noip.us","onthewifi.com","pgafan.net","point2this.com","pointto.us","privatizehealthinsurance.net","quicksytes.com","read-books.org","securitytactics.com","serveexchange.com","servehumour.com","servep2p.com","servesarcasm.com","stufftoread.com","ufcfan.org","unusualperson.com","workisboring.com","3utilities.com","bounceme.net","ddns.net","ddnsking.com","gotdns.ch","hopto.org","myftp.biz","myftp.org","myvnc.com","no-ip.biz","no-ip.info","no-ip.org","noip.me","redirectme.net","servebeer.com","serveblog.net","servecounterstrike.com","serveftp.com","servegame.com","servehalflife.com","servehttp.com","serveirc.com","serveminecraft.net","servemp3.com","servepics.com","servequake.com","sytes.net","webhop.me","zapto.org","stage.nodeart.io","nodum.co","nodum.io","pcloud.host","nyc.mn","nom.ae","nom.af","nom.ai","nom.al","nym.by","nom.bz","nym.bz","nom.cl","nym.ec","nom.gd","nom.ge","nom.gl","nym.gr","nom.gt","nym.gy","nym.hk","nom.hn","nym.ie","nom.im","nom.ke","nym.kz","nym.la","nym.lc","nom.li","nym.li","nym.lt","nym.lu","nom.lv","nym.me","nom.mk","nym.mn","nym.mx","nom.nu","nym.nz","nym.pe","nym.pt","nom.pw","nom.qa","nym.ro","nom.rs","nom.si","nym.sk","nom.st","nym.su","nym.sx","nom.tj","nym.tw","nom.ug","nom.uy","nom.vc","nom.vg","static.observableusercontent.com","cya.gg","cloudycluster.net","nid.io","opencraft.hosting","operaunite.com","skygearapp.com","outsystemscloud.com","ownprovider.com","own.pm","ox.rs","oy.lc","pgfog.com","pagefrontapp.com","art.pl","gliwice.pl","krakow.pl","poznan.pl","wroc.pl","zakopane.pl","pantheonsite.io","gotpantheon.com","mypep.link","perspecta.cloud","on-web.fr","*.platform.sh","*.platformsh.site","dyn53.io","co.bn","xen.prgmr.com","priv.at","prvcy.page","*.dweb.link","protonet.io","chirurgiens-dentistes-en-france.fr","byen.site","pubtls.org","qualifioapp.com","qbuser.com","instantcloud.cn","ras.ru","qa2.com","qcx.io","*.sys.qcx.io","dev-myqnapcloud.com","alpha-myqnapcloud.com","myqnapcloud.com","*.quipelements.com","vapor.cloud","vaporcloud.io","rackmaze.com","rackmaze.net","*.on-k3s.io","*.on-rancher.cloud","*.on-rio.io","readthedocs.io","rhcloud.com","app.render.com","onrender.com","repl.co","repl.run","resindevice.io","devices.resinstaging.io","hzc.io","wellbeingzone.eu","ptplus.fit","wellbeingzone.co.uk","git-pages.rit.edu","sandcats.io","logoip.de","logoip.com","schokokeks.net","gov.scot","scrysec.com","firewall-gateway.com","firewall-gateway.de","my-gateway.de","my-router.de","spdns.de","spdns.eu","firewall-gateway.net","my-firewall.org","myfirewall.org","spdns.org","senseering.net","biz.ua","co.ua","pp.ua","shiftedit.io","myshopblocks.com","shopitsite.com","mo-siemens.io","1kapp.com","appchizi.com","applinzi.com","sinaapp.com","vipsinaapp.com","siteleaf.net","bounty-full.com","alpha.bounty-full.com","beta.bounty-full.com","stackhero-network.com","static.land","dev.static.land","sites.static.land","apps.lair.io","*.stolos.io","spacekit.io","customer.speedpartner.de","api.stdlib.com","storj.farm","utwente.io","soc.srcf.net","user.srcf.net","temp-dns.com","applicationcloud.io","scapp.io","*.s5y.io","*.sensiosite.cloud","syncloud.it","diskstation.me","dscloud.biz","dscloud.me","dscloud.mobi","dsmynas.com","dsmynas.net","dsmynas.org","familyds.com","familyds.net","familyds.org","i234.me","myds.me","synology.me","vpnplus.to","direct.quickconnect.to","taifun-dns.de","gda.pl","gdansk.pl","gdynia.pl","med.pl","sopot.pl","edugit.org","telebit.app","telebit.io","*.telebit.xyz","gwiddle.co.uk","thingdustdata.com","cust.dev.thingdust.io","cust.disrec.thingdust.io","cust.prod.thingdust.io","cust.testing.thingdust.io","arvo.network","azimuth.network","bloxcms.com","townnews-staging.com","12hp.at","2ix.at","4lima.at","lima-city.at","12hp.ch","2ix.ch","4lima.ch","lima-city.ch","trafficplex.cloud","de.cool","12hp.de","2ix.de","4lima.de","lima-city.de","1337.pictures","clan.rip","lima-city.rocks","webspace.rocks","lima.zone","*.transurl.be","*.transurl.eu","*.transurl.nl","tuxfamily.org","dd-dns.de","diskstation.eu","diskstation.org","dray-dns.de","draydns.de","dyn-vpn.de","dynvpn.de","mein-vigor.de","my-vigor.de","my-wan.de","syno-ds.de","synology-diskstation.de","synology-ds.de","uber.space","*.uberspace.de","hk.com","hk.org","ltd.hk","inc.hk","virtualuser.de","virtual-user.de","urown.cloud","dnsupdate.info","lib.de.us","2038.io","router.management","v-info.info","voorloper.cloud","v.ua","wafflecell.com","*.webhare.dev","wedeploy.io","wedeploy.me","wedeploy.sh","remotewd.com","wmflabs.org","myforum.community","community-pro.de","diskussionsbereich.de","community-pro.net","meinforum.net","half.host","xnbay.com","u2.xnbay.com","u2-local.xnbay.com","cistron.nl","demon.nl","xs4all.space","yandexcloud.net","storage.yandexcloud.net","website.yandexcloud.net","official.academy","yolasite.com","ybo.faith","yombo.me","homelink.one","ybo.party","ybo.review","ybo.science","ybo.trade","nohost.me","noho.st","za.net","za.org","now.sh","bss.design","basicserver.io","virtualserver.io","enterprisecloud.nu"]},{}],371:[function(e,t,o){"use strict";var s=e("punycode"),u={};u.rules=e("./data/rules.json").map(function(e){return{rule:e,suffix:e.replace(/^(\*\.|\!)/,""),punySuffix:-1,wildcard:"*"===e.charAt(0),exception:"!"===e.charAt(0)}}),u.endsWith=function(e,t){return-1!==e.indexOf(t,e.length-t.length)},u.findRule=function(e){var r=s.toASCII(e);return u.rules.reduce(function(e,t){return-1===t.punySuffix&&(t.punySuffix=s.toASCII(t.suffix)),u.endsWith(r,"."+t.punySuffix)||r===t.punySuffix?t:e},null)},o.errorCodes={DOMAIN_TOO_SHORT:"Domain name too short.",DOMAIN_TOO_LONG:"Domain name too long. It should be no more than 255 chars.",LABEL_STARTS_WITH_DASH:"Domain name label can not start with a dash.",LABEL_ENDS_WITH_DASH:"Domain name label can not end with a dash.",LABEL_TOO_LONG:"Domain name label should be at most 63 chars long.",LABEL_TOO_SHORT:"Domain name label should be at least 1 character long.",LABEL_INVALID_CHARS:"Domain name label can only contain alphanumeric characters or dashes."},u.validate=function(e){e=s.toASCII(e);if(e.length<1)return"DOMAIN_TOO_SHORT";if(255<e.length)return"DOMAIN_TOO_LONG";for(var t,r=e.split("."),i=0;i<r.length;++i){if(!(t=r[i]).length)return"LABEL_TOO_SHORT";if(63<t.length)return"LABEL_TOO_LONG";if("-"===t.charAt(0))return"LABEL_STARTS_WITH_DASH";if("-"===t.charAt(t.length-1))return"LABEL_ENDS_WITH_DASH";if(!/^[a-z0-9\-]+$/.test(t))return"LABEL_INVALID_CHARS"}},o.parse=function(e){if("string"!=typeof e)throw new TypeError("Domain name must be a string.");var t=e.slice(0).toLowerCase();"."===t.charAt(t.length-1)&&(t=t.slice(0,t.length-1));var r=u.validate(t);if(r)return{input:e,error:{message:o.errorCodes[r],code:r}};var i={input:e,tld:null,sld:null,domain:null,subdomain:null,listed:!1},n=t.split(".");if("local"===n[n.length-1])return i;function a(){return/xn--/.test(t)&&(i.domain&&(i.domain=s.toASCII(i.domain)),i.subdomain&&(i.subdomain=s.toASCII(i.subdomain))),i}r=u.findRule(t);if(!r)return n.length<2?i:(i.tld=n.pop(),i.sld=n.pop(),i.domain=[i.sld,i.tld].join("."),n.length&&(i.subdomain=n.pop()),a());i.listed=!0;e=r.suffix.split("."),n=n.slice(0,n.length-e.length);return r.exception&&n.push(e.shift()),i.tld=e.join("."),n.length?(r.wildcard&&(e.unshift(n.pop()),i.tld=e.join(".")),n.length&&(i.sld=n.pop(),i.domain=[i.sld,i.tld].join("."),n.length&&(i.subdomain=n.join("."))),a()):a()},o.get=function(e){return e&&o.parse(e).domain||null},o.isValid=function(e){e=o.parse(e);return Boolean(e.domain&&e.listed)}},{"./data/rules.json":370,punycode:181}],372:[function(e,t,r){r.publicEncrypt=e("./publicEncrypt"),r.privateDecrypt=e("./privateDecrypt"),r.privateEncrypt=function(e,t){return r.publicEncrypt(e,t,!0)},r.publicDecrypt=function(e,t){return r.privateDecrypt(e,t,!0)}},{"./privateDecrypt":374,"./publicEncrypt":375}],373:[function(e,t,r){var o=e("create-hash"),s=e("safe-buffer").Buffer;t.exports=function(e,t){for(var r,i,n=s.alloc(0),a=0;n.length<t;)r=a++,i=void 0,(i=s.allocUnsafe(4)).writeUInt32BE(r,0),i=i,n=s.concat([n,o("sha1").update(e).update(i).digest()]);return n.slice(0,t)}},{"create-hash":194,"safe-buffer":421}],374:[function(e,t,r){var o=e("parse-asn1"),s=e("./mgf"),u=e("./xor"),c=e("bn.js"),f=e("browserify-rsa"),p=e("create-hash"),l=e("./withPublic"),h=e("safe-buffer").Buffer;t.exports=function(e,t,r){var i=e.padding||(r?1:4),n=o(e),a=n.modulus.byteLength();if(t.length>a||0<=new c(t).cmp(n.modulus))throw new Error("decryption error");e=r?l(new c(t),n):f(t,n);t=h.alloc(a-e.length),e=h.concat([t,e],a);if(4===i)return function(e,t){var r=e.modulus.byteLength(),i=p("sha1").update(h.alloc(0)).digest(),n=i.length;if(0!==t[0])throw new Error("decryption error");var e=t.slice(1,n+1),t=t.slice(n+1),e=u(e,s(t,n)),a=u(t,s(e,r-n-1));if(function(e,t){e=h.from(e),t=h.from(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));var n=-1;for(;++n<i;)r+=e[n]^t[n];return r}(i,a.slice(0,n)))throw new Error("decryption error");var o=n;for(;0===a[o];)o++;if(1===a[o++])return a.slice(o);throw new Error("decryption error")}(n,e);if(1===i)return function(e,t){var r=e.slice(0,2),i=2,n=0;for(;0!==e[i++];)if(i>=e.length){n++;break}var a=e.slice(2,i-1);("0002"!==r.toString("hex")&&!t||"0001"!==r.toString("hex")&&t)&&n++;a.length<8&&n++;if(n)throw new Error("decryption error");return e.slice(i)}(e,r);if(3===i)return e;throw new Error("unknown padding")}},{"./mgf":373,"./withPublic":376,"./xor":377,"bn.js":129,"browserify-rsa":153,"create-hash":194,"parse-asn1":344,"safe-buffer":421}],375:[function(e,t,r){var a=e("parse-asn1"),s=e("randombytes"),u=e("create-hash"),c=e("./mgf"),f=e("./xor"),p=e("bn.js"),o=e("./withPublic"),l=e("browserify-rsa"),h=e("safe-buffer").Buffer;t.exports=function(e,t,r){var i,n=e.padding||(r?1:4),e=a(e);if(4===n)i=function(e,t){var r=e.modulus.byteLength(),i=t.length,n=u("sha1").update(h.alloc(0)).digest(),a=n.length,o=2*a;if(r-o-2<i)throw new Error("message too long");e=h.alloc(r-i-o-2),i=r-a-1,o=s(a),i=f(h.concat([n,e,h.alloc(1,1),t],i),c(o,i)),a=f(o,c(i,a));return new p(h.concat([h.alloc(1),a,i],r))}(e,t);else if(1===n)i=function(e,t,r){var i=t.length,e=e.modulus.byteLength();if(e-11<i)throw new Error("message too long");i=r?h.alloc(e-i-3,255):function(e){var t,r=h.allocUnsafe(e),i=0,n=s(2*e),a=0;for(;i<e;)a===n.length&&(n=s(2*e),a=0),(t=n[a++])&&(r[i++]=t);return r}(e-i-3);return new p(h.concat([h.from([0,r?1:2]),i,h.alloc(1),t],e))}(e,t,r);else{if(3!==n)throw new Error("unknown padding");if(0<=(i=new p(t)).cmp(e.modulus))throw new Error("data too long for modulus")}return(r?l:o)(i,e)}},{"./mgf":373,"./withPublic":376,"./xor":377,"bn.js":129,"browserify-rsa":153,"create-hash":194,"parse-asn1":344,randombytes:386,"safe-buffer":421}],376:[function(e,t,r){var i=e("bn.js"),n=e("safe-buffer").Buffer;t.exports=function(e,t){return n.from(e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed().toArray())}},{"bn.js":129,"safe-buffer":421}],377:[function(e,t,r){t.exports=function(e,t){for(var r=e.length,i=-1;++i<r;)e[i]^=t[i];return e}},{}],378:[function(e,t,r){"use strict";var i=String.prototype.replace,n=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(e){return i.call(e,n,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},{}],379:[function(e,t,r){"use strict";var i=e("./stringify"),n=e("./parse"),e=e("./formats");t.exports={formats:e,parse:n,stringify:i}},{"./formats":378,"./parse":380,"./stringify":381}],380:[function(e,t,r){"use strict";function u(e,t,r){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,n=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(i),e=a?i.slice(0,a.index):i,o=[];if(e){if(!r.plainObjects&&f.call(Object.prototype,e)&&!r.allowPrototypes)return;o.push(e)}for(var s=0;null!==(a=n.exec(i))&&s<r.depth;){if(s+=1,!r.plainObjects&&f.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;o.push(a[1])}return a&&o.push("["+i.slice(a.index)+"]"),function(e,t,r){for(var i=t,n=e.length-1;0<=n;--n){var a,o,s,u=e[n];"[]"===u?a=(a=[]).concat(i):(a=r.plainObjects?Object.create(null):{},o="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,s=parseInt(o,10),!isNaN(s)&&u!==o&&String(s)===o&&0<=s&&r.parseArrays&&s<=r.arrayLimit?(a=[])[s]=i:a[o]=i),i=a}return i}(o,t,r)}}var c=e("./utils"),f=Object.prototype.hasOwnProperty,p={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:c.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1};t.exports=function(e,t){var r=t?c.assign({},t):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter=("string"==typeof r.delimiter||c.isRegExp(r.delimiter)?r:p).delimiter,r.depth=("number"==typeof r.depth?r:p).depth,r.arrayLimit=("number"==typeof r.arrayLimit?r:p).arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder=("function"==typeof r.decoder?r:p).decoder,r.allowDots=("boolean"==typeof r.allowDots?r:p).allowDots,r.plainObjects=("boolean"==typeof r.plainObjects?r:p).plainObjects,r.allowPrototypes=("boolean"==typeof r.allowPrototypes?r:p).allowPrototypes,r.parameterLimit=("number"==typeof r.parameterLimit?r:p).parameterLimit,r.strictNullHandling=("boolean"==typeof r.strictNullHandling?r:p).strictNullHandling,""===e||null==e)return r.plainObjects?Object.create(null):{};for(var i="string"==typeof e?function(e,t){for(var r={},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,e=t.parameterLimit===1/0?void 0:t.parameterLimit,n=i.split(t.delimiter,e),a=0;a<n.length;++a){var o,s=n[a],u=s.indexOf("]="),u=-1===u?s.indexOf("="):u+1,u=-1===u?(o=t.decoder(s,p.decoder),t.strictNullHandling?null:""):(o=t.decoder(s.slice(0,u),p.decoder),t.decoder(s.slice(u+1),p.decoder));f.call(r,o)?r[o]=[].concat(r[o]).concat(u):r[o]=u}return r}(e,r):e,n=r.plainObjects?Object.create(null):{},a=Object.keys(i),o=0;o<a.length;++o)var s=a[o],s=u(s,i[s],r),n=c.merge(n,s,r);return c.compact(n)}},{"./utils":382}],381:[function(e,t,r){"use strict";function v(e,t,r,i,n,a,o,s,u,c,f,p){var l=e;if("function"==typeof o)l=o(t,l);else if(l instanceof Date)l=c(l);else if(null===l){if(i)return a&&!p?a(t,x.encoder):t;l=""}if("string"==typeof l||"number"==typeof l||"boolean"==typeof l||_.isBuffer(l))return a?[f(p?t:a(t,x.encoder))+"="+f(a(l,x.encoder))]:[f(t)+"="+f(String(l))];var h,d=[];if(void 0===l)return d;h=Array.isArray(o)?o:(e=Object.keys(l),s?e.sort(s):e);for(var m=0;m<h.length;++m){var g=h[m];n&&null===l[g]||(d=Array.isArray(l)?d.concat(v(l[g],r(t,g),r,i,n,a,o,s,u,c,f,p)):d.concat(v(l[g],t+(u?"."+g:"["+g+"]"),r,i,n,a,o,s,u,c,f,p)))}return d}var _=e("./utils"),w=e("./formats"),k={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},i=Date.prototype.toISOString,x={delimiter:"&",encode:!0,encoder:_.encode,encodeValuesOnly:!1,serializeDate:function(e){return i.call(e)},skipNulls:!1,strictNullHandling:!1};t.exports=function(e,t){var r=e,i=t?_.assign({},t):{};if(null!==i.encoder&&void 0!==i.encoder&&"function"!=typeof i.encoder)throw new TypeError("Encoder has to be a function.");var e=(void 0===i.delimiter?x:i).delimiter,n=("boolean"==typeof i.strictNullHandling?i:x).strictNullHandling,a=("boolean"==typeof i.skipNulls?i:x).skipNulls,o=("boolean"==typeof i.encode?i:x).encode,s=("function"==typeof i.encoder?i:x).encoder,u="function"==typeof i.sort?i.sort:null,c=void 0!==i.allowDots&&i.allowDots,f=("function"==typeof i.serializeDate?i:x).serializeDate,p=("boolean"==typeof i.encodeValuesOnly?i:x).encodeValuesOnly;if(void 0===i.format)i.format=w.default;else if(!Object.prototype.hasOwnProperty.call(w.formatters,i.format))throw new TypeError("Unknown format option provided.");var l,h=w.formatters[i.format];"function"==typeof i.filter?r=(l=i.filter)("",r):Array.isArray(i.filter)&&(g=l=i.filter);var d=[];if("object"!==_typeof(r)||null===r)return"";t=i.arrayFormat in k?i.arrayFormat:!("indices"in i)||i.indices?"indices":"repeat";var m=k[t],g=g||Object.keys(r);u&&g.sort(u);for(var b=0;b<g.length;++b){var y=g[b];a&&null===r[y]||(d=d.concat(v(r[y],y,m,n,a,o?s:null,l,u,c,f,h,p)))}e=d.join(e),i=!0===i.addQueryPrefix?"?":"";return 0<e.length?i+e:""}},{"./formats":378,"./utils":382}],382:[function(e,t,r){"use strict";function a(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},i=0;i<e.length;++i)void 0!==e[i]&&(r[i]=e[i]);return r}function o(r,i,n){if(!i)return r;if("object"!==_typeof(i)){if(Array.isArray(r))r.push(i);else{if("object"!==_typeof(r))return[r,i];!n.plainObjects&&!n.allowPrototypes&&s.call(Object.prototype,i)||(r[i]=!0)}return r}if("object"!==_typeof(r))return[r].concat(i);var e=r;return Array.isArray(r)&&!Array.isArray(i)&&(e=a(r,n)),Array.isArray(r)&&Array.isArray(i)?(i.forEach(function(e,t){s.call(r,t)?r[t]&&"object"===_typeof(r[t])?r[t]=o(r[t],e,n):r.push(e):r[t]=e}),r):Object.keys(i).reduce(function(e,t){var r=i[t];return s.call(e,t)?e[t]=o(e[t],r,n):e[t]=r,e},e)}var s=Object.prototype.hasOwnProperty,u=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}();t.exports={arrayToObject:a,assign:function(e,r){return Object.keys(r).reduce(function(e,t){return e[t]=r[t],e},e)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],i=0;i<t.length;++i)for(var n=t[i],a=n.obj[n.prop],o=Object.keys(a),s=0;s<o.length;++s){var u=o[s],c=a[u];"object"===_typeof(c)&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:a,prop:u}),r.push(c))}return function(e){for(;e.length;){var t=e.pop(),r=t.obj[t.prop];if(Array.isArray(r)){for(var i=[],n=0;n<r.length;++n)void 0!==r[n]&&i.push(r[n]);t.obj[t.prop]=i}}return r}(t)},decode:function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},encode:function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),r="",i=0;i<t.length;++i){var n=t.charCodeAt(i);45===n||46===n||95===n||126===n||48<=n&&n<=57||65<=n&&n<=90||97<=n&&n<=122?r+=t.charAt(i):n<128?r+=u[n]:n<2048?r+=u[192|n>>6]+u[128|63&n]:n<55296||57344<=n?r+=u[224|n>>12]+u[128|n>>6&63]+u[128|63&n]:(i+=1,n=65536+((1023&n)<<10|1023&t.charCodeAt(i)),r+=u[240|n>>18]+u[128|n>>12&63]+u[128|n>>6&63]+u[128|63&n])}return r},isBuffer:function(e){return null!=e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:o}},{}],383:[function(e,t,r){"use strict";t.exports=function(e,t,r,i){t=t||"&",r=r||"=";var n={};if("string"!=typeof e||0===e.length)return n;var a=/\+/g;e=e.split(t);t=1e3;i&&"number"==typeof i.maxKeys&&(t=i.maxKeys);var o=e.length;0<t&&t<o&&(o=t);for(var s=0;s<o;++s){var u,c=e[s].replace(a,"%20"),f=c.indexOf(r),p=0<=f?(u=c.substr(0,f),c.substr(f+1)):(u=c,""),l=decodeURIComponent(u),f=decodeURIComponent(p);c=n,p=l,Object.prototype.hasOwnProperty.call(c,p)?h(n[l])?n[l].push(f):n[l]=[n[l],f]:n[l]=f}return n};var h=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],384:[function(e,t,r){"use strict";function a(e){switch(_typeof(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}t.exports=function(r,i,n,e){return i=i||"&",n=n||"=","object"===_typeof(r=null===r?void 0:r)?s(u(r),function(e){var t=encodeURIComponent(a(e))+n;return o(r[e])?s(r[e],function(e){return t+encodeURIComponent(a(e))}).join(i):t+encodeURIComponent(a(r[e]))}).join(i):e?encodeURIComponent(a(e))+n+encodeURIComponent(a(r)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function s(e,t){if(e.map)return e.map(t);for(var r=[],i=0;i<e.length;i++)r.push(t(e[i],i));return r}var u=Object.keys||function(e){var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}},{}],385:[function(e,t,r){"use strict";r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":383,"./encode":384}],386:[function(t,r,e){(function(o,e){(function(){"use strict";var n=t("safe-buffer").Buffer,a=e.crypto||e.msCrypto;a&&a.getRandomValues?r.exports=function(e,t){if(4294967295<e)throw new RangeError("requested too many random bytes");var r=n.allocUnsafe(e);if(0<e)if(65536<e)for(var i=0;i<e;i+=65536)a.getRandomValues(r.slice(i,i+65536));else a.getRandomValues(r);return"function"!=typeof t?r:o.nextTick(function(){t(null,r)})}:r.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this)}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:354,"safe-buffer":421}],387:[function(r,e,h){(function(p,l){(function(){"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var t=r("safe-buffer"),a=r("randombytes"),n=t.Buffer,i=t.kMaxLength,o=l.crypto||l.msCrypto,s=Math.pow(2,32)-1;function u(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(s<e||e<0)throw new TypeError("offset must be a uint32");if(i<e||t<e)throw new RangeError("offset out of range")}function c(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(s<e||e<0)throw new TypeError("size must be a uint32");if(r<e+t||i<e)throw new RangeError("buffer too small")}function f(r,i,e,n){if(p.browser){var t=r.buffer,t=new Uint8Array(t,i,e);return o.getRandomValues(t),n?void p.nextTick(function(){n(null,r)}):r}if(!n)return a(e).copy(r,i),r;a(e,function(e,t){return e?n(e):(t.copy(r,i),void n(null,r))})}o&&o.getRandomValues||!p.browser?(h.randomFill=function(e,t,r,i){if(!(n.isBuffer(e)||e instanceof l.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,r=e.length;else if("function"==typeof r)i=r,r=e.length-t;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return u(t,e.length),c(r,t,e.length),f(e,t,r,i)},h.randomFillSync=function(e,t,r){void 0===t&&(t=0);if(!(n.isBuffer(e)||e instanceof l.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');u(t,e.length),void 0===r&&(r=e.length-t);return c(r,t,e.length),f(e,t,r)}):(h.randomFill=e,h.randomFillSync=e)}).call(this)}).call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:354,randombytes:386,"safe-buffer":421}],388:[function(e,t,r){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":389}],389:[function(e,t,r){"use strict";var i=e("process-nextick-args"),n=Object.keys||function(e){var t,r=[];for(t in e)r.push(t);return r};t.exports=f;t=Object.create(e("core-util-is"));t.inherits=e("inherits");var a=e("./_stream_readable"),o=e("./_stream_writable");t.inherits(f,a);for(var s=n(o.prototype),u=0;u<s.length;u++){var c=s[u];f.prototype[c]||(f.prototype[c]=o.prototype[c])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),o.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||i.nextTick(l,this)}function l(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),i.nextTick(t,e)}},{"./_stream_readable":391,"./_stream_writable":393,"core-util-is":192,inherits:397,"process-nextick-args":353}],390:[function(e,t,r){"use strict";t.exports=n;var i=e("./_stream_transform"),t=Object.create(e("core-util-is"));function n(e){if(!(this instanceof n))return new n(e);i.call(this,e)}t.inherits=e("inherits"),t.inherits(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":392,"core-util-is":192,inherits:397}],391:[function(C,R,e){(function(T,O){(function(){"use strict";var b=C("process-nextick-args");R.exports=n;var a,y=C("isarray");n.ReadableState=i;function v(e,t){return e.listeners(t).length}C("events").EventEmitter;var r=C("./internal/streams/stream"),f=C("safe-buffer").Buffer,p=O.Uint8Array||function(){};var e=Object.create(C("core-util-is"));e.inherits=C("inherits");var o,t=C("util"),_=void 0,_=t&&t.debuglog?t.debuglog("stream"):function(){},s=C("./internal/streams/BufferList"),t=C("./internal/streams/destroy");e.inherits(n,r);var u=["error","close","destroy","pause","resume"];function i(e,t){e=e||{};var r=t instanceof(a=a||C("./_stream_duplex"));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,n=e.readableHighWaterMark,t=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(n||0===n)?n:t,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new s,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o=o||C("string_decoder/").StringDecoder,this.decoder=new o(e.encoding),this.encoding=e.encoding)}function n(e){if(a=a||C("./_stream_duplex"),!(this instanceof n))return new n(e);this._readableState=new i(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),r.call(this)}function c(e,t,r,i,n){var a,o,s,u,c=e._readableState;return null===t?(c.reading=!1,o=e,(s=c).ended||(!s.decoder||(u=s.decoder.end())&&u.length&&(s.buffer.push(u),s.length+=s.objectMode?1:u.length),s.ended=!0,m(o))):(a=!n?function(e,t){var r;(function(e){return f.isBuffer(e)||e instanceof p})(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(c,t):a)?e.emit("error",a):c.objectMode||t&&0<t.length?("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===f.prototype||(a=t,t=f.from(a)),i?c.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):l(e,c,t,!0):c.ended?e.emit("error",new Error("stream.push() after EOF")):(c.reading=!1,c.decoder&&!r?(t=c.decoder.write(t),c.objectMode||0!==t.length?l(e,c,t,!1):w(e,c)):l(e,c,t,!1))):i||(c.reading=!1),!(c=c).ended&&(c.needReadable||c.length<c.highWaterMark||0===c.length)}function l(e,t,r,i){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&m(e)),w(e,t)}Object.defineProperty(n.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),n.prototype.destroy=t.destroy,n.prototype._undestroy=t.undestroy,n.prototype._destroy=function(e,t){this.push(null),t(e)},n.prototype.push=function(e,t){var r,i=this._readableState;return i.objectMode?r=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=f.from(e,t),t=""),r=!0),c(this,e,t,!1,r)},n.prototype.unshift=function(e){return c(this,e,null,!0,!1)},n.prototype.isPaused=function(){return!1===this._readableState.flowing},n.prototype.setEncoding=function(e){return o=o||C("string_decoder/").StringDecoder,this._readableState.decoder=new o(e),this._readableState.encoding=e,this};var h=8388608;function d(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?(t.flowing&&t.length?t.buffer.head.data:t).length:(e>t.highWaterMark&&(t.highWaterMark=(h<=(r=e)?r=h:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function m(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(_("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?b.nextTick(g,e):g(e))}function g(e){_("emit readable"),e.emit("readable"),j(e)}function w(e,t){t.readingMore||(t.readingMore=!0,b.nextTick(k,e,t))}function k(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(_("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function x(e){_("readable nexttick read 0"),e.read(0)}function S(e,t){t.reading||(_("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(_("flow",t.flowing);t.flowing&&null!==e.read(););}function E(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var i;e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):i=e===t.head.data.length?t.shift():(r?function(e,t){var r=t.head,i=1,n=r.data;e-=n.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?n+=a:n+=a.slice(0,e),0===(e-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=a.slice(o);break}++i}return t.length-=i,n}:function(e,t){var r=f.allocUnsafe(e),i=t.head,n=1;i.data.copy(r),e-=i.data.length;for(;i=i.next;){var a=i.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),0===(e-=o)){o===a.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i).data=a.slice(o);break}++n}return t.length-=n,r})(e,t);return i}(e,t.buffer,t.decoder),r);var r}function A(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,b.nextTick(P,t,e))}function P(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function I(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}n.prototype.read=function(e){_("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return _("read: emitReadable",t.length,t.ended),(0===t.length&&t.ended?A:m)(this),null;if(0===(e=d(e,t))&&t.ended)return 0===t.length&&A(this),null;var i=t.needReadable;return _("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&_("length less than watermark",i=!0),t.ended||t.reading?_("reading or ended",i=!1):i&&(_("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=d(r,t))),null===(i=0<e?E(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&A(this)),null!==i&&this.emit("data",i),i},n.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},n.prototype.pipe=function(r,e){var i=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=r;break;case 1:n.pipes=[n.pipes,r];break;default:n.pipes.push(r)}n.pipesCount+=1,_("pipe count=%d opts=%j",n.pipesCount,e);var t=(!e||!1!==e.end)&&r!==T.stdout&&r!==T.stderr?o:g;function a(e,t){_("onunpipe"),e===i&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,_("cleanup"),r.removeListener("close",d),r.removeListener("finish",m),r.removeListener("drain",u),r.removeListener("error",h),r.removeListener("unpipe",a),i.removeListener("end",o),i.removeListener("end",g),i.removeListener("data",l),c=!0,!n.awaitDrain||r._writableState&&!r._writableState.needDrain||u())}function o(){_("onend"),r.end()}n.endEmitted?b.nextTick(t):i.once("end",t),r.on("unpipe",a);var s,u=(s=i,function(){var e=s._readableState;_("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&v(s,"data")&&(e.flowing=!0,j(s))});r.on("drain",u);var c=!1;var f,p=!1;function l(e){_("ondata"),(p=!1)!==r.write(e)||p||((1===n.pipesCount&&n.pipes===r||1<n.pipesCount&&-1!==I(n.pipes,r))&&!c&&(_("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,p=!0),i.pause())}function h(e){_("onerror",e),g(),r.removeListener("error",h),0===v(r,"error")&&r.emit("error",e)}function d(){r.removeListener("finish",m),g()}function m(){_("onfinish"),r.removeListener("close",d),g()}function g(){_("unpipe"),i.unpipe(r)}return i.on("data",l),f="error",e=h,"function"==typeof(t=r).prependListener?t.prependListener(f,e):t._events&&t._events[f]?y(t._events[f])?t._events[f].unshift(e):t._events[f]=[e,t._events[f]]:t.on(f,e),r.once("close",d),r.once("finish",m),r.emit("pipe",i),n.flowing||(_("pipe resume"),i.resume()),r},n.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,r);return this}var o=I(t.pipes,e);return-1===o||(t.pipes.splice(o,1),--t.pipesCount,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},n.prototype.addListener=n.prototype.on=function(e,t){t=r.prototype.on.call(this,e,t);return"data"===e?!1!==this._readableState.flowing&&this.resume():"readable"===e&&((e=this._readableState).endEmitted||e.readableListening||(e.readableListening=e.needReadable=!0,e.emittedReadable=!1,e.reading?e.length&&m(this):b.nextTick(x,this))),t},n.prototype.resume=function(){var e,t=this._readableState;return t.flowing||(_("resume"),t.flowing=!0,e=this,(t=t).resumeScheduled||(t.resumeScheduled=!0,b.nextTick(S,e,t))),this},n.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this},n.prototype.wrap=function(t){var e,r=this,i=this._readableState,n=!1;for(e in t.on("end",function(){var e;_("wrapped end"),!i.decoder||i.ended||(e=i.decoder.end())&&e.length&&r.push(e),r.push(null)}),t.on("data",function(e){_("wrapped data"),i.decoder&&(e=i.decoder.write(e)),i.objectMode&&null==e||(i.objectMode||e&&e.length)&&(r.push(e)||(n=!0,t.pause()))}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var a=0;a<u.length;a++)t.on(u[a],this.emit.bind(this,u[a]));return this._read=function(e){_("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(n.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),n._fromList=E}).call(this)}).call(this,C("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":389,"./internal/streams/BufferList":394,"./internal/streams/destroy":395,"./internal/streams/stream":396,_process:354,"core-util-is":192,events:229,inherits:397,isarray:299,"process-nextick-args":353,"safe-buffer":398,"string_decoder/":462,util:132}],392:[function(e,t,r){"use strict";t.exports=n;var i=e("./_stream_duplex"),t=Object.create(e("core-util-is"));function n(e){if(!(this instanceof n))return new n(e);i.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,(r.writecb=null)!=t&&this.push(t),i(e),(e=this._readableState).reading=!1,(e.needReadable||e.length<e.highWaterMark)&&this._read(e.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var r=this;"function"==typeof this._flush?this._flush(function(e,t){o(r,e,t)}):o(this,null,null)}function o(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}t.inherits=e("inherits"),t.inherits(n,i),n.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},n.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},n.prototype._write=function(e,t,r){var i=this._transformState;i.writecb=r,i.writechunk=e,i.writeencoding=t,i.transforming||(t=this._readableState,(i.needTransform||t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark))},n.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},n.prototype._destroy=function(e,t){var r=this;i.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},{"./_stream_duplex":389,"core-util-is":192,inherits:397}],393:[function(x,S,e){(function(_,w,k){(function(){"use strict";var l=x("process-nextick-args");function f(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}S.exports=u;var o,s=!_.browser&&-1<["v0.10","v0.9."].indexOf(_.version.slice(0,5))?k:l.nextTick;u.WritableState=a;var e=Object.create(x("core-util-is"));e.inherits=x("inherits");var t={deprecate:x("util-deprecate")},r=x("./internal/streams/stream"),h=x("safe-buffer").Buffer,d=w.Uint8Array||function(){};var i,n=x("./internal/streams/destroy");function m(){}function a(e,a){o=o||x("./_stream_duplex"),e=e||{};var t=a instanceof o;this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,i=e.writableHighWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:t&&(i||0===i)?i:n,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;n=(this.destroyed=!1)===e.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){var t,r,i,n;r=e,i=(t=a)._writableState,n=i.sync,e=i.writecb,function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(i),r?function(e,t,r,i,n){--t.pendingcb,r?(l.nextTick(n,i),l.nextTick(v,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),v(e,t))}(t,i,n,r,e):((r=b(i))||i.corked||i.bufferProcessing||!i.bufferedRequest||p(t,i),n?s(c,t,i,r,e):c(t,i,r,e))},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new f(this)}function u(e){if(o=o||x("./_stream_duplex"),!(i.call(u,this)||this instanceof o))return new u(e);this._writableState=new a(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),r.call(this)}function g(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function c(e,t,r,i){var n;r||(n=e,0===(r=t).length&&r.needDrain&&(r.needDrain=!1,n.emit("drain"))),t.pendingcb--,i(),v(e,t)}function p(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),i=t.corkedRequestsFree;i.entry=r;for(var a=0,o=!0;r;)(n[a]=r).isBuf||(o=!1),r=r.next,a+=1;n.allBuffers=o,g(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new f(t),t.bufferedRequestCount=0}else{for(;r;){var s=r.chunk,u=r.encoding,c=r.callback;if(g(e,t,!1,t.objectMode?1:s.length,s,u,c),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function b(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function y(t,r){t._final(function(e){r.pendingcb--,e&&t.emit("error",e),r.prefinished=!0,t.emit("prefinish"),v(t,r)})}function v(e,t){var r,i,n=b(t);return n&&(r=e,(i=t).prefinished||i.finalCalled||("function"==typeof r._final?(i.pendingcb++,i.finalCalled=!0,l.nextTick(y,r,i)):(i.prefinished=!0,r.emit("prefinish"))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}e.inherits(u,r),a.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(a.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(u,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===u&&(e&&e._writableState instanceof a)}})):i=function(e){return e instanceof this},u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},u.prototype.write=function(e,t,r){var i,n,a,o,s,u,c=this._writableState,f=!1,p=!c.objectMode&&(n=e,h.isBuffer(n)||n instanceof d);return p&&!h.isBuffer(e)&&(a=e,e=h.from(a)),"function"==typeof t&&(r=t,t=null),t=p?"buffer":t||c.defaultEncoding,"function"!=typeof r&&(r=m),c.ended?(o=this,s=r,u=new Error("write after end"),o.emit("error",u),l.nextTick(s,u)):(p||(i=this,n=c,a=r,s=!(o=!0),null===(u=e)?s=new TypeError("May not write null values to stream"):"string"==typeof u||void 0===u||n.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(i.emit("error",s),l.nextTick(a,s),o=!1),o))&&(c.pendingcb++,f=function(e,t,r,i,n,a){r||(u=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,r));return t}(t,i,n),i!==u&&(r=!0,n="buffer",i=u));var o=t.objectMode?1:i.length;t.length+=o;var s=t.length<t.highWaterMark;s||(t.needDrain=!0);{var u;t.writing||t.corked?(u=t.lastBufferedRequest,t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1):g(e,t,!1,o,i,n,a)}return s}(this,c,p,e,t,r)),f},u.prototype.cork=function(){this._writableState.corked++},u.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||p(this,e))},u.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),u.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},u.prototype._writev=null,u.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||(t=this,r=r,(i=i).ending=!0,v(t,i),r&&(i.finished?l.nextTick(r):t.once("finish",r)),i.ended=!0,t.writable=!1)},Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),u.prototype.destroy=n.destroy,u.prototype._undestroy=n.undestroy,u.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,x("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},x("timers").setImmediate)},{"./_stream_duplex":389,"./internal/streams/destroy":395,"./internal/streams/stream":396,_process:354,"core-util-is":192,inherits:397,"process-nextick-args":353,"safe-buffer":398,timers:464,"util-deprecate":478}],394:[function(e,t,r){"use strict";var s=e("safe-buffer").Buffer,i=e("util");function n(){!function(e){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this),this.head=null,this.tail=null,this.length=0}t.exports=(n.prototype.push=function(e){e={data:e,next:null};0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length},n.prototype.unshift=function(e){e={data:e,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},n.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},n.prototype.clear=function(){this.head=this.tail=null,this.length=0},n.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},n.prototype.concat=function(e){if(0===this.length)return s.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,n=s.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=a.data,r=n,i=o,t.copy(r,i),o+=a.data.length,a=a.next;return n},n),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":398,util:132}],395:[function(e,t,r){"use strict";var a=e("process-nextick-args");function o(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||a.nextTick(o,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(a.nextTick(o,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":353}],396:[function(e,t,r){arguments[4][176][0].apply(r,arguments)},{dup:176,events:229}],397:[function(e,t,r){arguments[4][162][0].apply(r,arguments)},{dup:162}],398:[function(e,t,r){var i=e("buffer"),n=i.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=i:(a(i,r),r.Buffer=o),a(n,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");e=n(e);return void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},{buffer:186}],399:[function(e,t,r){t.exports=e("./readable").PassThrough},{"./readable":400}],400:[function(e,t,r){(((r=t.exports=e("./lib/_stream_readable.js")).Stream=r).Readable=r).Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":389,"./lib/_stream_passthrough.js":390,"./lib/_stream_readable.js":391,"./lib/_stream_transform.js":392,"./lib/_stream_writable.js":393}],401:[function(e,t,r){t.exports=e("./readable").Transform},{"./readable":400}],402:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":393}],403:[function(e,t,r){"use strict";var s=e("../"),u=e("lodash/isArray"),c=e("lodash/isFunction"),f=e("lodash/isObjectLike");t.exports=function(e){var t="Please verify options";if(!f(e))throw new TypeError(t);if(!c(e.request))throw new TypeError(t+".request");if(!u(e.expose)||0===e.expose.length)throw new TypeError(t+".expose");for(var r=s({PromiseImpl:e.PromiseImpl,constructorMixin:e.constructorMixin}),i=e.request.Request.prototype.init,n=!(e.request.Request.prototype.init=function(e){return!f(e)||this._callback||this._rp_promise||r.init.call(this,e),i.apply(this,arguments)}),a=0;a<e.expose.length;a+=1){var o=e.expose[a];r["promise"===o?"exposePromise":"exposePromiseMethod"](e.request.Request.prototype,null,"_rp_promise",o),"then"===o&&(n=!0)}if(!n)throw new Error('Please expose "then"')}},{"../":405,"lodash/isArray":312,"lodash/isFunction":313,"lodash/isObjectLike":315}],404:[function(e,t,r){"use strict";function i(e,t,r){this.name="RequestError",this.message=String(e),this.cause=e,this.error=e,this.options=t,this.response=r,Error.captureStackTrace&&Error.captureStackTrace(this)}function n(e,t,r,i){this.name="StatusCodeError",this.statusCode=e,this.message=e+" - "+(JSON&&JSON.stringify?JSON.stringify(t):t),this.error=t,this.options=r,this.response=i,Error.captureStackTrace&&Error.captureStackTrace(this)}function a(e,t,r){this.name="TransformError",this.message=String(e),this.cause=e,this.error=e,this.options=t,this.response=r,Error.captureStackTrace&&Error.captureStackTrace(this)}(i.prototype=Object.create(Error.prototype)).constructor=i,(n.prototype=Object.create(Error.prototype)).constructor=n,(a.prototype=Object.create(Error.prototype)).constructor=a,t.exports={RequestError:i,StatusCodeError:n,TransformError:a}},{}],405:[function(e,t,r){"use strict";var u=e("./errors.js"),c=e("lodash/isFunction"),i=e("lodash/isObjectLike"),a=e("lodash/isString"),o=e("lodash/isUndefined");t.exports=function(e){var t="Please verify options";if(!i(e))throw new TypeError(t);if(!c(e.PromiseImpl))throw new TypeError(t+".PromiseImpl");if(!o(e.constructorMixin)&&!c(e.constructorMixin))throw new TypeError(t+".PromiseImpl");var s=e.PromiseImpl,r=e.constructorMixin,n={init:function(e){var i=this;i._rp_promise=new s(function(e,t){i._rp_resolve=e,i._rp_reject=t,r&&r.apply(i,arguments)}),i._rp_callbackOrig=e.callback,e.callback=i.callback=function(e,t,r){n.callback.call(i,e,t,r)},a(e.method)&&(e.method=e.method.toUpperCase()),e.transform=e.transform||n.defaultTransformations[e.method],i._rp_options=e,i._rp_options.simple=!1!==e.simple,i._rp_options.resolveWithFullResponse=!0===e.resolveWithFullResponse,i._rp_options.transform2xxOnly=!0===e.transform2xxOnly},defaultTransformations:{HEAD:function(e,t,r){return r?t:t.headers}},callback:function(e,t,r){var i=this,n=!1,a=null;if(c(i._rp_callbackOrig))try{i._rp_callbackOrig.apply(i,arguments)}catch(e){n=!0,a=e}var o=!e&&/^2/.test(""+t.statusCode);if(e?i._rp_reject(new u.RequestError(e,i._rp_options,t)):i._rp_options.simple&&!o?c(i._rp_options.transform)&&!1===i._rp_options.transform2xxOnly?new s(function(e){e(i._rp_options.transform(r,t,i._rp_options.resolveWithFullResponse))}).then(function(e){i._rp_reject(new u.StatusCodeError(t.statusCode,r,i._rp_options,e))}).catch(function(e){i._rp_reject(new u.TransformError(e,i._rp_options,t))}):i._rp_reject(new u.StatusCodeError(t.statusCode,r,i._rp_options,t)):c(i._rp_options.transform)&&(o||!1===i._rp_options.transform2xxOnly)?new s(function(e){e(i._rp_options.transform(r,t,i._rp_options.resolveWithFullResponse))}).then(function(e){i._rp_resolve(e)}).catch(function(e){i._rp_reject(new u.TransformError(e,i._rp_options,t))}):i._rp_options.resolveWithFullResponse?i._rp_resolve(t):i._rp_resolve(r),n)throw a},exposePromiseMethod:function(e,t,r,i,n){if((n=n||i)in e)throw new Error('Unable to expose method "'+n+'"');e[n]=function(){var e=t||this;return e[r][i].apply(e[r],arguments)}},exposePromise:function(e,t,r,i){if((i=i||"promise")in e)throw new Error('Unable to expose method "'+i+'"');e[i]=function(){return(t||this)[r]}}};return n}},{"./errors.js":404,"lodash/isFunction":313,"lodash/isObjectLike":315,"lodash/isString":316,"lodash/isUndefined":317}],406:[function(t,e,r){"use strict";var i=t("bluebird").getNewLibraryCopy(),n=t("request-promise-core/configure/request2"),a=t("stealthy-require");try{var o=a(t.cache,function(){return t("request")},function(){t("tough-cookie")},e)}catch(e){var s=t("os").EOL;throw console.error(s+"###"+s+'### The "request" library is not installed automatically anymore.'+s+'### But is a dependency of "request-promise".'+s+"### Please install it with:"+s+"### npm install request --save"+s+"###"+s),e}i.config({cancellation:!0}),n({request:o,PromiseImpl:i,expose:["then","catch","finally","cancel","promise"],constructorMixin:function(e,t,r){var i=this;r(function(){i.abort()})}}),o.bindCLS=function(){throw new Error("CLS support was dropped. To get it back read: https://github.com/request/request-promise/wiki/Getting-Back-Support-for-Continuation-Local-Storage")},e.exports=o},{bluebird:128,os:328,request:407,"request-promise-core/configure/request2":403,"stealthy-require":456,"tough-cookie":466}],407:[function(e,t,r){"use strict";var s=e("extend"),i=e("./lib/cookies"),n=e("./lib/helpers").paramsHaveRequestBody;function u(e,t,r){"function"==typeof t&&(r=t);var i={};return null!==t&&"object"===_typeof(t)?s(i,t,{uri:e}):s(i,"string"==typeof e?{uri:e}:e),i.callback=r||i.callback,i}function a(e,t,r){if(void 0===e)throw new Error("undefined is not a valid uri or options object.");r=u(e,t,r);if("HEAD"===r.method&&n(r))throw new Error("HTTP HEAD requests MUST NOT include a request body.");return new a.Request(r)}function o(e){var i=e.toUpperCase();return function(e,t,r){r=u(e,t,r);return r.method=i,a(r,r.callback)}}function c(i,n,a,o){return function(e,t,r){t=u(e,t,r),r={};return s(!0,r,n,t),r.pool=t.pool||n.pool,o&&(r.method=o.toUpperCase()),(i="function"==typeof a?a:i)(r,r.callback)}}a.get=o("get"),a.head=o("head"),a.options=o("options"),a.post=o("post"),a.put=o("put"),a.patch=o("patch"),a.del=o("delete"),a.delete=o("delete"),a.jar=function(e){return i.jar(e)},a.cookie=function(e){return i.parse(e)},a.defaults=function(t,r){var i=this;"function"==typeof(t=t||{})&&(r=t,t={});var n=c(i,t,r);return["get","head","post","put","patch","del","delete"].forEach(function(e){n[e]=c(i[e],t,r,e)}),n.cookie=c(i.cookie,t,r),n.jar=i.jar,n.defaults=i.defaults,n},a.forever=function(e,t){var r={};return t&&s(r,t),e&&(r.agentOptions=e),r.forever=!0,a.defaults(r)},(t.exports=a).Request=e("./request"),a.initParams=u,Object.defineProperty(a,"debug",{enumerable:!0,get:function(){return a.Request.debug},set:function(e){a.Request.debug=e}})},{"./lib/cookies":409,"./lib/helpers":413,"./request":419,extend:231}],408:[function(e,t,r){"use strict";var i=e("caseless"),l=e("uuid/v4"),e=e("./helpers"),h=e.md5,n=e.toBase64;function a(e){this.request=e,this.hasAuth=!1,this.sentAuth=!1,this.bearerToken=null,this.user=null,this.pass=null}a.prototype.basic=function(e,t,r){if(("string"!=typeof e||void 0!==t&&"string"!=typeof t)&&this.request.emit("error",new Error("auth() received invalid user or password")),this.user=e,this.pass=t,this.hasAuth=!0,r||void 0===r){t="Basic "+n(e+":"+(t||""));return this.sentAuth=!0,t}},a.prototype.bearer=function(e,t){if(this.bearerToken=e,this.hasAuth=!0,t||void 0===t){e="Bearer "+((e="function"==typeof e?e():e)||"");return this.sentAuth=!0,e}},a.prototype.digest=function(e,t,r){for(var i={},n=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;;){var a=n.exec(r);if(!a)break;i[a[1]]=a[2]||a[3]}var o,s=/(^|,)\s*auth\s*($|,)/.test(i.qop)&&"auth",u=s&&"00000001",c=s&&l().replace(/-/g,""),f=function(e,t,r,i,n,a){i=h(t+":"+r+":"+i);return e&&"md5-sess"===e.toLowerCase()?h(i+":"+n+":"+a):i}(i.algorithm,this.user,i.realm,this.pass,i.nonce,c),e=h(e+":"+t),e=h(s?f+":"+i.nonce+":"+u+":"+c+":"+s+":"+e:f+":"+i.nonce+":"+e),p={username:this.user,realm:i.realm,nonce:i.nonce,uri:t,qop:s,response:e,nc:u,cnonce:c,algorithm:i.algorithm,opaque:i.opaque};for(o in r=[],p)p[o]&&("qop"===o||"nc"===o||"algorithm"===o?r.push(o+"="+p[o]):r.push(o+'="'+p[o]+'"'));return r="Digest "+r.join(", "),this.sentAuth=!0,r},a.prototype.onRequest=function(e,t,r,i){var n,a=this.request;void 0===i&&void 0===e?this.request.emit("error",new Error("no auth mechanism defined")):n=void 0!==i?this.bearer(i,r):this.basic(e,t,r),n&&a.setHeader("authorization",n)},a.prototype.onResponse=function(e){var t=this.request;if(!this.hasAuth||this.sentAuth)return null;var r=i(e.headers).get("www-authenticate"),e=r&&r.split(" ")[0].toLowerCase();switch(t.debug("reauth",e),e){case"basic":return this.basic(this.user,this.pass,!0);case"bearer":return this.bearer(this.bearerToken,!0);case"digest":return this.digest(t.method,t.path,r)}},r.Auth=a},{"./helpers":413,caseless:188,"uuid/v4":484}],409:[function(e,t,r){"use strict";var e=e("tough-cookie"),i=e.Cookie,n=e.CookieJar;function a(e){this._jar=new n(e,{looseMode:!0})}r.parse=function(e){if("string"!=typeof(e=e&&e.uri?e.uri:e))throw new Error("The cookie function only accepts STRING as param");return i.parse(e,{loose:!0})},a.prototype.setCookie=function(e,t,r){return this._jar.setCookieSync(e,t,r||{})},a.prototype.getCookieString=function(e){return this._jar.getCookieStringSync(e)},a.prototype.getCookies=function(e){return this._jar.getCookiesSync(e)},r.jar=function(e){return new a(e)}},{"tough-cookie":466}],410:[function(e,t,r){(function(s){(function(){"use strict";function a(e){return e.replace(/^\.*/,".").toLowerCase()}function o(e){var t=(e=e.trim().toLowerCase()).split(":",2);return{hostname:a(t[0]),port:t[1],hasPort:-1<e.indexOf(":")}}t.exports=function(e){var t,r,i,n;return"*"===(n=s.env.NO_PROXY||s.env.no_proxy||"")||""!==n&&(t=n,r=(n=e).port||("https:"===n.protocol?"443":"80"),i=a(n.hostname),t.split(",").map(o).some(function(e){var t=i.indexOf(e.hostname),t=-1<t&&t===i.length-e.hostname.length;return(!e.hasPort||r===e.port)&&t}))?null:"http:"===e.protocol?s.env.HTTP_PROXY||s.env.http_proxy||null:"https:"===e.protocol&&(s.env.HTTPS_PROXY||s.env.https_proxy||s.env.HTTP_PROXY||s.env.http_proxy)||null}}).call(this)}).call(this,e("_process"))},{_process:354}],411:[function(e,t,r){"use strict";var n=e("fs"),i=e("querystring"),a=e("har-validator"),o=e("extend");function s(e){this.request=e}s.prototype.reducer=function(e,t){if(void 0===e[t.name])return e[t.name]=t.value,e;var r=[e[t.name],t.value];return e[t.name]=r,e},s.prototype.prep=function(t){var e;function r(e){return e.some(function(e){return 0===t.postData.mimeType.indexOf(e)})}if(t.queryObj={},t.headersObj={},t.postData.jsonObj=!1,t.postData.paramsObj=!1,t.queryString&&t.queryString.length&&(t.queryObj=t.queryString.reduce(this.reducer,{})),t.headers&&t.headers.length&&(t.headersObj=t.headers.reduceRight(function(e,t){return e[t.name]=t.value,e},{})),t.cookies&&t.cookies.length&&((e=t.cookies.map(function(e){return e.name+"="+e.value})).length&&(t.headersObj.cookie=e.join("; "))),r(["multipart/mixed","multipart/related","multipart/form-data","multipart/alternative"]))t.postData.mimeType="multipart/form-data";else if(r(["application/x-www-form-urlencoded"]))t.postData.params?(t.postData.paramsObj=t.postData.params.reduce(this.reducer,{}),t.postData.text=i.stringify(t.postData.paramsObj)):t.postData.text="";else if(r(["text/json","text/x-json","application/json","application/x-json"])&&(t.postData.mimeType="application/json",t.postData.text))try{t.postData.jsonObj=JSON.parse(t.postData.text)}catch(e){this.request.debug(e),t.postData.mimeType="text/plain"}return t},s.prototype.options=function(r){if(!r.har)return r;var e={};if(o(e,r.har),(e=e.log&&e.log.entries?e.log.entries[0]:e).url=e.url||r.url||r.uri||r.baseUrl||"/",e.httpVersion=e.httpVersion||"HTTP/1.1",e.queryString=e.queryString||[],e.headers=e.headers||[],e.cookies=e.cookies||[],e.postData=e.postData||{},e.postData.mimeType=e.postData.mimeType||"application/octet-stream",e.bodySize=0,e.headersSize=0,e.postData.size=0,!a.request(e))return r;var t=this.prep(e);function i(e){return 0===t.postData.mimeType.indexOf(e)}return t.url&&(r.url=t.url),t.method&&(r.method=t.method),Object.keys(t.queryObj).length&&(r.qs=t.queryObj),Object.keys(t.headersObj).length&&(r.headers=t.headersObj),i("application/x-www-form-urlencoded")?r.form=t.postData.paramsObj:i("application/json")?t.postData.jsonObj&&(r.body=t.postData.jsonObj,r.json=!0):i("multipart/form-data")?(r.formData={},t.postData.params.forEach(function(e){var t={};e.fileName||e.contentType?(e.fileName&&!e.value?t.value=n.createReadStream(e.fileName):e.value&&(t.value=e.value),e.fileName&&(t.options={filename:e.fileName,contentType:e.contentType||null}),r.formData[e.name]=t):r.formData[e.name]=e.value})):t.postData.text&&(r.body=t.postData.text),r},r.Har=s},{extend:231,fs:180,"har-validator":257,querystring:385}],412:[function(e,t,u){"use strict";var c=e("crypto");u.calculateMac=function(e,t){var r="hawk.1.header\n"+t.ts+"\n"+t.nonce+"\n"+(t.method||"").toUpperCase()+"\n"+t.resource+"\n"+t.host.toLowerCase()+"\n"+t.port+"\n"+(t.hash||"")+"\n";return t.ext&&(r+=t.ext.replace("\\","\\\\").replace("\n","\\n")),r+="\n",t.app&&(r=r+t.app+"\n"+(t.dlg||"")+"\n"),c.createHmac(e.algorithm,e.key).update(r).digest("base64")},u.header=function(e,t,r){var i=r.timestamp||Math.floor((Date.now()+(r.localtimeOffsetMsec||0))/1e3),n=r.credentials;if(!(n&&n.id&&n.key&&n.algorithm))return"";if(-1===["sha1","sha256"].indexOf(n.algorithm))return"";var a,e={ts:i,nonce:r.nonce||(i=(a=6)*(a+1),c.randomBytes(Math.ceil(i/8)).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"").slice(0,a)),method:t,resource:e.pathname+(e.search||""),host:e.hostname,port:e.port||("http:"===e.protocol?80:443),hash:r.hash,ext:r.ext,app:r.app,dlg:r.dlg};e.hash||!r.payload&&""!==r.payload||(e.hash=(o=r.payload,s=n.algorithm,r=r.contentType,(s=c.createHash(s)).update("hawk.1.payload\n"),s.update((r?r.split(";")[0].trim().toLowerCase():"")+"\n"),s.update(o||""),s.update("\n"),s.digest("base64")));var o=u.calculateMac(n,e),s=null!==e.ext&&void 0!==e.ext&&""!==e.ext,o='Hawk id="'+n.id+'", ts="'+e.ts+'", nonce="'+e.nonce+(e.hash?'", hash="'+e.hash:"")+(s?'", ext="'+e.ext.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):"")+'", mac="'+o+'"';return o=e.app?o+', app="'+e.app+(e.dlg?'", dlg="'+e.dlg:"")+'"':o}},{crypto:198}],413:[function(o,e,s){(function(i,a){(function(){"use strict";var n=o("json-stringify-safe"),t=o("crypto"),r=o("safe-buffer").Buffer,e=void 0===a?i.nextTick:a;s.paramsHaveRequestBody=function(e){return e.body||e.requestBodyStream||e.json&&"boolean"!=typeof e.json||e.multipart},s.safeStringify=function(t,r){var i;try{i=JSON.stringify(t,r)}catch(e){i=n(t,r)}return i},s.md5=function(e){return t.createHash("md5").update(e).digest("hex")},s.isReadStream=function(e){return e.readable&&e.path&&e.mode},s.toBase64=function(e){return r.from(e||"","utf8").toString("base64")},s.copy=function(t){var r={};return Object.keys(t).forEach(function(e){r[e]=t[e]}),r},s.version=function(){var e=i.version.replace("v","").split(".");return{major:parseInt(e[0],10),minor:parseInt(e[1],10),patch:parseInt(e[2],10)}},s.defer=e}).call(this)}).call(this,o("_process"),o("timers").setImmediate)},{_process:354,crypto:198,"json-stringify-safe":304,"safe-buffer":421,timers:464}],414:[function(e,t,r){"use strict";var i=e("uuid/v4"),a=e("combined-stream"),n=e("isstream"),o=e("safe-buffer").Buffer;function s(e){this.request=e,this.boundary=i(),this.chunked=!1,this.body=null}s.prototype.isChunked=function(e){var t=this,r=!1,i=e.data||e;return i.forEach||t.request.emit("error",new Error("Argument error, options.multipart.")),void 0!==e.chunked&&(r=e.chunked),(r="chunked"===t.request.getHeader("transfer-encoding")?!0:r)||i.forEach(function(e){void 0===e.body&&t.request.emit("error",new Error("Body attribute missing in multipart.")),n(e.body)&&(r=!0)}),r},s.prototype.setHeaders=function(e){e&&!this.request.hasHeader("transfer-encoding")&&this.request.setHeader("transfer-encoding","chunked");e=this.request.getHeader("content-type");e&&-1!==e.indexOf("multipart")?-1!==e.indexOf("boundary")?this.boundary=e.replace(/.*boundary=([^\s;]+).*/,"$1"):this.request.setHeader("content-type",e+"; boundary="+this.boundary):this.request.setHeader("content-type","multipart/related; boundary="+this.boundary)},s.prototype.build=function(e,t){var i=this,r=t?new a:[];function n(e){return"number"==typeof e&&(e=e.toString()),t?r.append(e):r.push(o.from(e))}return i.request.preambleCRLF&&n("\r\n"),e.forEach(function(t){var r="--"+i.boundary+"\r\n";Object.keys(t).forEach(function(e){"body"!==e&&(r+=e+": "+t[e]+"\r\n")}),n(r+="\r\n"),n(t.body),n("\r\n")}),n("--"+i.boundary+"--"),i.request.postambleCRLF&&n("\r\n"),r},s.prototype.onRequest=function(e){var t=this.isChunked(e),e=e.data||e;this.setHeaders(t),this.chunked=t,this.body=this.build(e,t)},r.Multipart=s},{"combined-stream":190,isstream:300,"safe-buffer":421,"uuid/v4":484}],415:[function(e,t,r){"use strict";var h=e("url"),d=e("qs"),m=e("caseless"),p=e("uuid/v4"),l=e("oauth-sign"),i=e("crypto"),n=e("safe-buffer").Buffer;function a(e){this.request=e,this.params=null}a.prototype.buildParams=function(e,t,r,i,n,a){var o,s={};for(o in e)s["oauth_"+o]=e[o];s.oauth_version||(s.oauth_version="1.0"),s.oauth_timestamp||(s.oauth_timestamp=Math.floor(Date.now()/1e3).toString()),s.oauth_nonce||(s.oauth_nonce=p().replace(/-/g,"")),s.oauth_signature_method||(s.oauth_signature_method="HMAC-SHA1");var u=s.oauth_consumer_secret||s.oauth_private_key;delete s.oauth_consumer_secret,delete s.oauth_private_key;var c=s.oauth_token_secret;delete s.oauth_token_secret;var f=s.oauth_realm;delete s.oauth_realm,delete s.oauth_transport_method;t=t.protocol+"//"+t.host+t.pathname,a=a.parse([].concat(i,n,a.stringify(s)).join("&"));return s.oauth_signature=l.sign(s.oauth_signature_method,r,t,a,u,c),f&&(s.realm=f),s},a.prototype.buildBodyHash=function(e,t){["HMAC-SHA1","RSA-SHA1"].indexOf(e.signature_method||"HMAC-SHA1")<0&&this.request.emit("error",new Error("oauth: "+e.signature_method+" signature_method not supported with body_hash signing."));e=i.createHash("sha1");e.update(t||"");e=e.digest("hex");return n.from(e,"hex").toString("base64")},a.prototype.concatParams=function(t,e,r){r=r||"";var i=Object.keys(t).filter(function(e){return"realm"!==e&&"oauth_signature"!==e}).sort();return t.realm&&i.splice(0,0,"realm"),i.push("oauth_signature"),i.map(function(e){return e+"="+r+l.rfc3986(t[e])+r}).join(e)},a.prototype.onRequest=function(e){var t=this;t.params=e;var r,i,n=t.request.uri||{},a=t.request.method||"",o=m(t.request.headers),s=t.request.body||"",u=t.request.qsLib||d,c=o.get("content-type")||"",f="application/x-www-form-urlencoded",o=e.transport_method||"header";c.slice(0,f.length)===f&&(c=f,r=s),n.query&&(i=n.query),"body"!==o||"POST"===a&&c===f||t.request.emit("error",new Error("oauth: transport_method of body requires POST and content-type "+f)),r||"boolean"!=typeof e.body_hash||(e.body_hash=t.buildBodyHash(e,t.request.body.toString()));var p=t.buildParams(e,n,a,i,r,u);switch(o){case"header":t.request.setHeader("Authorization","OAuth "+t.concatParams(p,",",'"'));break;case"query":var l=t.request.uri.href+=(i?"&":"?")+t.concatParams(p,"&");t.request.uri=h.parse(l),t.request.path=t.request.uri.path;break;case"body":t.request.body=(r?r+"&":"")+t.concatParams(p,"&");break;default:t.request.emit("error",new Error("oauth: transport_method invalid"))}},r.OAuth=a},{caseless:188,crypto:198,"oauth-sign":327,qs:379,"safe-buffer":421,url:476,"uuid/v4":484}],416:[function(e,t,r){"use strict";var i=e("qs"),n=e("querystring");function a(e){this.request=e,this.lib=null,this.useQuerystring=null,this.parseOptions=null,this.stringifyOptions=null}a.prototype.init=function(e){this.lib||(this.useQuerystring=e.useQuerystring,this.lib=this.useQuerystring?n:i,this.parseOptions=e.qsParseOptions||{},this.stringifyOptions=e.qsStringifyOptions||{})},a.prototype.stringify=function(e){return this.useQuerystring?this.rfc3986(this.lib.stringify(e,this.stringifyOptions.sep||null,this.stringifyOptions.eq||null,this.stringifyOptions)):this.lib.stringify(e,this.stringifyOptions)},a.prototype.parse=function(e){return this.useQuerystring?this.lib.parse(e,this.parseOptions.sep||null,this.parseOptions.eq||null,this.parseOptions):this.lib.parse(e,this.parseOptions)},a.prototype.rfc3986=function(e){return e.replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})},a.prototype.unescape=n.unescape,r.Querystring=a},{qs:379,querystring:385}],417:[function(e,t,r){"use strict";var a=e("url"),o=/^https?:/;function i(e){this.request=e,this.followRedirect=!0,this.followRedirects=!0,this.followAllRedirects=!1,this.followOriginalHttpMethod=!1,this.allowRedirect=function(){return!0},this.maxRedirects=10,this.redirects=[],this.redirectsFollowed=0,this.removeRefererHeader=!1}i.prototype.onRequest=function(e){var t=this;void 0!==e.maxRedirects&&(t.maxRedirects=e.maxRedirects),"function"==typeof e.followRedirect&&(t.allowRedirect=e.followRedirect),void 0!==e.followRedirect&&(t.followRedirects=!!e.followRedirect),void 0!==e.followAllRedirects&&(t.followAllRedirects=e.followAllRedirects),(t.followRedirects||t.followAllRedirects)&&(t.redirects=t.redirects||[]),void 0!==e.removeRefererHeader&&(t.removeRefererHeader=e.removeRefererHeader),void 0!==e.followOriginalHttpMethod&&(t.followOriginalHttpMethod=e.followOriginalHttpMethod)},i.prototype.redirectTo=function(e){var t=this.request,r=null;if(300<=e.statusCode&&e.statusCode<400&&e.caseless.has("location")){var i=e.caseless.get("location");if(t.debug("redirect",i),this.followAllRedirects)r=i;else if(this.followRedirects)switch(t.method){case"PATCH":case"PUT":case"POST":case"DELETE":break;default:r=i}}else 401!==e.statusCode||(e=t._auth.onResponse(e))&&(t.setHeader("authorization",e),r=t.uri);return r},i.prototype.onResponse=function(e){var t=this,r=t.request,i=t.redirectTo(e);if(!i||!t.allowRedirect.call(r,e))return!1;if(r.debug("redirect to",i),e.resume&&e.resume(),t.redirectsFollowed>=t.maxRedirects)return r.emit("error",new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+r.uri.href)),!1;t.redirectsFollowed+=1,o.test(i)||(i=a.resolve(r.uri.href,i));var n=r.uri;return r.uri=a.parse(i),r.uri.protocol!==n.protocol&&delete r.agent,t.redirects.push({statusCode:e.statusCode,redirectUri:i}),t.followAllRedirects&&"HEAD"!==r.method&&401!==e.statusCode&&307!==e.statusCode&&(r.method=t.followOriginalHttpMethod?r.method:"GET"),delete r.src,delete r.req,delete r._started,401!==e.statusCode&&307!==e.statusCode&&(delete r.body,delete r._form,r.headers&&(r.removeHeader("host"),r.removeHeader("content-type"),r.removeHeader("content-length"),r.uri.hostname!==r.originalHost.split(":")[0]&&r.removeHeader("authorization"))),t.removeRefererHeader||r.setHeader("referer",n.href),r.emit("redirect"),r.init(),!0},r.Redirect=i},{url:476}],418:[function(e,t,r){"use strict";var u=e("url"),c=e("tunnel-agent"),i=["accept","accept-charset","accept-encoding","accept-language","accept-ranges","cache-control","content-encoding","content-language","content-location","content-md5","content-range","content-type","connection","date","expect","max-forwards","pragma","referer","te","user-agent","via"],f=["proxy-authorization"];function n(e){this.request=e,this.proxyHeaderWhiteList=i,this.proxyHeaderExclusiveList=[],void 0!==e.tunnel&&(this.tunnelOverride=e.tunnel)}n.prototype.isEnabled=function(){var e=this.request;return void 0!==this.tunnelOverride?this.tunnelOverride:"https:"===e.uri.protocol},n.prototype.setup=function(e){var t=this.request;if(e=e||{},"string"==typeof t.proxy&&(t.proxy=u.parse(t.proxy)),!t.proxy||!t.tunnel)return!1;e.proxyHeaderWhiteList&&(this.proxyHeaderWhiteList=e.proxyHeaderWhiteList),e.proxyHeaderExclusiveList&&(this.proxyHeaderExclusiveList=e.proxyHeaderExclusiveList);var r,i,n=this.proxyHeaderExclusiveList.concat(f),a=this.proxyHeaderWhiteList.concat(n),o=(r=t.headers,i=a.reduce(function(e,t){return e[t.toLowerCase()]=!0,e},{}),Object.keys(r).filter(function(e){return i[e.toLowerCase()]}).reduce(function(e,t){return e[t]=r[t],e},{}));o.host=(s=t.uri,e=s.port,a=s.protocol,s=s.hostname+":",s+=e||("https:"===a?"443":"80")),n.forEach(t.removeHeader,t);var s,n=(s=(a=t).uri,a=a=a.proxy,a=["https:"===s.protocol?"https":"http","https:"===a.protocol?"Https":"Http"].join("Over"),c[a]),a=(s=o,{proxy:{host:(o=(a=t).proxy).hostname,port:+o.port,proxyAuth:o.auth,headers:s},headers:a.headers,ca:a.ca,cert:a.cert,key:a.key,passphrase:a.passphrase,pfx:a.pfx,ciphers:a.ciphers,rejectUnauthorized:a.rejectUnauthorized,secureOptions:a.secureOptions,secureProtocol:a.secureProtocol});return t.agent=n(a),!0},n.defaultProxyHeaderWhiteList=i,n.defaultProxyHeaderExclusiveList=f,r.Tunnel=n},{"tunnel-agent":473,url:476}],419:[function(U,H,e){(function(q){(function(){"use strict";var g=U("http"),b=U("https"),y=U("url"),e=U("util"),n=U("stream"),s=U("zlib"),a=U("aws-sign2"),o=U("aws4"),t=U("http-signature"),v=U("mime-types"),_=U("caseless"),w=U("forever-agent"),r=U("form-data"),u=U("extend"),k=U("isstream"),x=U("is-typedarray").strict,i=U("./lib/helpers"),c=U("./lib/cookies"),S=U("./lib/getProxyFromURI"),f=U("./lib/querystring").Querystring,p=U("./lib/har").Har,l=U("./lib/auth").Auth,h=U("./lib/oauth").OAuth,d=U("./lib/hawk"),m=U("./lib/multipart").Multipart,j=U("./lib/redirect").Redirect,E=U("./lib/tunnel").Tunnel,A=U("performance-now"),P=U("safe-buffer").Buffer,I=i.safeStringify,T=i.isReadStream,O=i.toBase64,C=i.defer,R=i.copy,B=i.version,F=c.jar(),M={};function z(){return{uri:this.uri,method:this.method,headers:this.headers}}function N(){return{statusCode:this.statusCode,body:this.body,headers:this.headers,request:z.call(this.request)}}function D(e){var t=this;e.har&&(t._har=new p(t),e=t._har.options(e)),n.Stream.call(t);var r=Object.keys(D.prototype),i=function(e,t){var r,i={};for(r in t)-1===e.indexOf(r)&&(i[r]=t[r]);return i}(r,e);u(t,i),e=function(e,t){var r,i={};for(r in t){var n=!(-1===e.indexOf(r)),a="function"==typeof t[r];n&&a||(i[r]=t[r])}return i}(r,e),t.readable=!0,t.writable=!0,e.method&&(t.explicitMethod=!0),t._qs=new f(t),t._auth=new l(t),t._oauth=new h(t),t._multipart=new m(t),t._redirect=new j(t),t._tunnel=new E(t),t.init(e)}function L(){D.debug&&console.error("REQUEST %s",e.format.apply(e,arguments))}e.inherits(D,n.Stream),D.debug=q.env.NODE_DEBUG&&/\brequest\b/.test(q.env.NODE_DEBUG),D.prototype.debug=L,D.prototype.init=function(e){var t,i=this;for(t in e=e||{},i.headers=i.headers?R(i.headers):{},i.headers)void 0===i.headers[t]&&delete i.headers[t];if(_.httpify(i,i.headers),i.method||(i.method=e.method||"GET"),i.localAddress||(i.localAddress=e.localAddress),i._qs.init(e),L(e),i.pool||!1===i.pool||(i.pool=M),i.dests=i.dests||[],i.__isRequestRequest=!0,!i._callback&&i.callback&&(i._callback=i.callback,i.callback=function(){i._callbackCalled||(i._callbackCalled=!0,i._callback.apply(i,arguments))},i.on("error",i.callback.bind()),i.on("complete",i.callback.bind(i,null))),!i.uri&&i.url&&(i.uri=i.url,delete i.url),i.baseUrl){if("string"!=typeof i.baseUrl)return i.emit("error",new Error("options.baseUrl must be a string"));if("string"!=typeof i.uri)return i.emit("error",new Error("options.uri must be a string when using options.baseUrl"));if(0===i.uri.indexOf("//")||-1!==i.uri.indexOf("://"))return i.emit("error",new Error("options.uri must be a path when using options.baseUrl"));var r=i.baseUrl.lastIndexOf("/")===i.baseUrl.length-1,n=0===i.uri.indexOf("/");r&&n?i.uri=i.baseUrl+i.uri.slice(1):r||n?i.uri=i.baseUrl+i.uri:""===i.uri?i.uri=i.baseUrl:i.uri=i.baseUrl+"/"+i.uri,delete i.baseUrl}if(!i.uri)return i.emit("error",new Error("options.uri is a required argument"));if("string"==typeof i.uri&&(i.uri=y.parse(i.uri)),i.uri.href||(i.uri.href=y.format(i.uri)),"unix:"===i.uri.protocol)return i.emit("error",new Error("`unix://` URL scheme is no longer supported. Please use the format `http://unix:SOCKET:PATH`"));if("unix"===i.uri.host&&i.enableUnixSocket(),!1===i.strictSSL&&(i.rejectUnauthorized=!1),i.uri.pathname||(i.uri.pathname="/"),!(i.uri.host||i.uri.hostname&&i.uri.port||i.uri.isUnix)){var a='Invalid URI "'+y.format(i.uri)+'"';return 0===Object.keys(e).length&&(a+=". This can be caused by a crappy redirection."),i.abort(),i.emit("error",new Error(a))}if(i.hasOwnProperty("proxy")||(i.proxy=S(i.uri)),i.tunnel=i._tunnel.isEnabled(),i.proxy&&i._tunnel.setup(e),i._redirect.onRequest(e),i.setHost=!1,i.hasHeader("host")||(a=i.originalHostHeaderName||"host",i.setHeader(a,i.uri.host),i.uri.port&&("80"===i.uri.port&&"http:"===i.uri.protocol||"443"===i.uri.port&&"https:"===i.uri.protocol)&&i.setHeader(a,i.uri.hostname),i.setHost=!0),i.jar(i._jar||e.jar),i.uri.port||("http:"===i.uri.protocol?i.uri.port=80:"https:"===i.uri.protocol&&(i.uri.port=443)),i.proxy&&!i.tunnel?(i.port=i.proxy.port,i.host=i.proxy.hostname):(i.port=i.uri.port,i.host=i.uri.hostname),e.form&&i.form(e.form),e.formData){var o,s=e.formData,u=i.form(),c=function(e,t){t&&t.hasOwnProperty("value")&&t.hasOwnProperty("options")?u.append(e,t.value,t.options):u.append(e,t)};for(o in s)if(s.hasOwnProperty(o)){var f=s[o];if(f instanceof Array)for(var p=0;p<f.length;p++)c(o,f[p]);else c(o,f)}}function l(){var e;x(i.body)&&(i.body=P.from(i.body)),i.hasHeader("content-length")||((e="string"==typeof i.body?P.byteLength(i.body):Array.isArray(i.body)?i.body.reduce(function(e,t){return e+t.length},0):i.body.length)?i.setHeader("content-length",e):i.emit("error",new Error("Argument error, options.body.")))}e.qs&&i.qs(e.qs),i.uri.path?i.path=i.uri.path:i.path=i.uri.pathname+(i.uri.search||""),0===i.path.length&&(i.path="/"),e.aws&&i.aws(e.aws),e.hawk&&i.hawk(e.hawk),e.httpSignature&&i.httpSignature(e.httpSignature),e.auth&&(Object.prototype.hasOwnProperty.call(e.auth,"username")&&(e.auth.user=e.auth.username),Object.prototype.hasOwnProperty.call(e.auth,"password")&&(e.auth.pass=e.auth.password),i.auth(e.auth.user,e.auth.pass,e.auth.sendImmediately,e.auth.bearer)),i.gzip&&!i.hasHeader("accept-encoding")&&i.setHeader("accept-encoding","gzip, deflate"),i.uri.auth&&!i.hasHeader("authorization")&&(h=i.uri.auth.split(":").map(function(e){return i._qs.unescape(e)}),i.auth(h[0],h.slice(1).join(":"),!0)),!i.tunnel&&i.proxy&&i.proxy.auth&&!i.hasHeader("proxy-authorization")&&(d=i.proxy.auth.split(":").map(function(e){return i._qs.unescape(e)}),m="Basic "+O(d.join(":")),i.setHeader("proxy-authorization",m)),i.proxy&&!i.tunnel&&(i.path=i.uri.protocol+"//"+i.uri.host+i.path),e.json&&i.json(e.json),e.multipart&&i.multipart(e.multipart),e.time&&(i.timing=!0,i.elapsedTime=i.elapsedTime||0),i.body&&!k(i.body)&&l(),e.oauth?i.oauth(e.oauth):i._oauth.params&&i.hasHeader("authorization")&&i.oauth(i._oauth.params);var h=(i.proxy&&!i.tunnel?i.proxy:i.uri).protocol,d={"http:":g,"https:":b},m=i.httpModules||{};if(i.httpModule=m[h]||d[h],!i.httpModule)return i.emit("error",new Error("Invalid protocol: "+h));e.ca&&(i.ca=e.ca),i.agent||(e.agentOptions&&(i.agentOptions=e.agentOptions),e.agentClass?i.agentClass=e.agentClass:e.forever?0===(e=B()).major&&e.minor<=10?i.agentClass="http:"===h?w:w.SSL:(i.agentClass=i.httpModule.Agent,i.agentOptions=i.agentOptions||{},i.agentOptions.keepAlive=!0):i.agentClass=i.httpModule.Agent),!1===i.pool?i.agent=!1:i.agent=i.agent||i.getNewAgent(),i.on("pipe",function(e){if(i.ntick&&i._started&&i.emit("error",new Error("You cannot pipe to this stream after the outbound request has started.")),i.src=e,T(e))i.hasHeader("content-type")||i.setHeader("content-type",v.lookup(e.path));else{if(e.headers)for(var t in e.headers)i.hasHeader(t)||i.setHeader(t,e.headers[t]);i._json&&!i.hasHeader("content-type")&&i.setHeader("content-type","application/json"),e.method&&!i.explicitMethod&&(i.method=e.method)}}),C(function(){var r;i._aborted||(r=function(){i._form&&(!i._auth.hasAuth||i._auth.hasAuth&&i._auth.sentAuth)&&i._form.pipe(i),i._multipart&&i._multipart.chunked&&i._multipart.body.pipe(i),i.body?k(i.body)?i.body.pipe(i):(l(),Array.isArray(i.body)?i.body.forEach(function(e){i.write(e)}):i.write(i.body),i.end()):i.requestBodyStream?(console.warn("options.requestBodyStream is deprecated, please pass the request object to stream.pipe."),i.requestBodyStream.pipe(i)):i.src||(i._auth.hasAuth&&!i._auth.sentAuth||"GET"===i.method||void 0===i.method||i.setHeader("content-length",0),i.end())},i._form&&!i.hasHeader("content-length")?(i.setHeader(i._form.getHeaders(),!0),i._form.getLength(function(e,t){e||isNaN(t)||i.setHeader("content-length",t),r()})):r(),i.ntick=!0)})},D.prototype.getNewAgent=function(){var e=this,t=e.agentClass,r={};if(e.agentOptions)for(var i in e.agentOptions)r[i]=e.agentOptions[i];e.ca&&(r.ca=e.ca),e.ciphers&&(r.ciphers=e.ciphers),e.secureProtocol&&(r.secureProtocol=e.secureProtocol),e.secureOptions&&(r.secureOptions=e.secureOptions),void 0!==e.rejectUnauthorized&&(r.rejectUnauthorized=e.rejectUnauthorized),e.cert&&e.key&&(r.key=e.key,r.cert=e.cert),e.pfx&&(r.pfx=e.pfx),e.passphrase&&(r.passphrase=e.passphrase);var n="";t!==e.httpModule.Agent&&(n+=t.name);var a=e.proxy;return((a="string"==typeof a?y.parse(a):a)&&"https:"===a.protocol||"https:"===this.uri.protocol)&&(r.ca&&(n&&(n+=":"),n+=r.ca),void 0!==r.rejectUnauthorized&&(n&&(n+=":"),n+=r.rejectUnauthorized),r.cert&&(n&&(n+=":"),n+=r.cert.toString("ascii")+r.key.toString("ascii")),r.pfx&&(n&&(n+=":"),n+=r.pfx.toString("ascii")),r.ciphers&&(n&&(n+=":"),n+=r.ciphers),r.secureProtocol&&(n&&(n+=":"),n+=r.secureProtocol),r.secureOptions&&(n&&(n+=":"),n+=r.secureOptions)),e.pool===M&&!n&&0===Object.keys(r).length&&e.httpModule.globalAgent?e.httpModule.globalAgent:(n=e.uri.protocol+n,e.pool[n]||(e.pool[n]=new t(r),e.pool.maxSockets&&(e.pool[n].maxSockets=e.pool.maxSockets)),e.pool[n])},D.prototype.start=function(){var e,t,o=this;if(o.timing&&(e=(new Date).getTime(),t=A()),!o._aborted){o._started=!0,o.method=o.method||"GET",o.href=o.uri.href,o.src&&o.src.stat&&o.src.stat.size&&!o.hasHeader("content-length")&&o.setHeader("content-length",o.src.stat.size),o._aws&&o.aws(o._aws,!0);var s,r=R(o);delete r.auth,L("make request",o.uri.href),delete r.timeout;try{o.req=o.httpModule.request(r)}catch(e){return void o.emit("error",e)}o.timing&&(o.startTime=e,o.startTimeNow=t,o.timings={}),o.timeout&&!o.timeoutTimer&&(o.timeout<0?s=0:"number"==typeof o.timeout&&isFinite(o.timeout)&&(s=o.timeout)),o.req.on("response",o.onRequestResponse.bind(o)),o.req.on("error",o.onRequestError.bind(o)),o.req.on("drain",function(){o.emit("drain")}),o.req.on("socket",function(t){var e,r,i=t._connecting||t.connecting;o.timing&&(o.timings.socket=A()-o.startTimeNow,i&&(e=function(){o.timings.lookup=A()-o.startTimeNow},r=function(){o.timings.connect=A()-o.startTimeNow},t.once("lookup",e),t.once("connect",r),o.req.once("error",function(){t.removeListener("lookup",e),t.removeListener("connect",r)})));function n(){o.req.setTimeout(s,function(){var e;o.req&&(o.abort(),(e=new Error("ESOCKETTIMEDOUT")).code="ESOCKETTIMEDOUT",e.connect=!1,o.emit("error",e))})}var a;void 0!==s&&(i?(a=function e(){t.removeListener("connect",e),o.clearTimeout(),n()},t.on("connect",a),o.req.on("error",function(e){t.removeListener("connect",a)}),o.timeoutTimer=setTimeout(function(){t.removeListener("connect",a),o.abort();var e=new Error("ETIMEDOUT");e.code="ETIMEDOUT",e.connect=!0,o.emit("error",e)},s)):n()),o.emit("socket",t)}),o.emit("request",o.req)}},D.prototype.onRequestError=function(e){var t=this;if(!t._aborted){if(t.req&&t.req._reusedSocket&&"ECONNRESET"===e.code&&t.agent.addRequestNoreuse)return t.agent={addRequest:t.agent.addRequestNoreuse.bind(t.agent)},t.start(),void t.req.end();t.clearTimeout(),t.emit("error",e)}},D.prototype.onRequestResponse=function(t){var r,e,i,n,a,o=this;if(o.timing&&(o.timings.response=A()-o.startTimeNow),L("onRequestResponse",o.uri.href,t.statusCode,t.headers),t.on("end",function(){o.timing&&(o.timings.end=A()-o.startTimeNow,t.timingStart=o.startTime,o.timings.socket||(o.timings.socket=0),o.timings.lookup||(o.timings.lookup=o.timings.socket),o.timings.connect||(o.timings.connect=o.timings.lookup),o.timings.response||(o.timings.response=o.timings.connect),L("elapsed time",o.timings.end),o.elapsedTime+=Math.round(o.timings.end),t.elapsedTime=o.elapsedTime,t.timings=o.timings,t.timingPhases={wait:o.timings.socket,dns:o.timings.lookup-o.timings.socket,tcp:o.timings.connect-o.timings.lookup,firstByte:o.timings.response-o.timings.connect,download:o.timings.end-o.timings.response,total:o.timings.end}),L("response end",o.uri.href,t.statusCode,t.headers)}),o._aborted)return L("aborted",o.uri.href),void t.resume();(o.response=t).request=o,t.toJSON=N,o.httpModule!==b||!o.strictSSL||t.hasOwnProperty("socket")&&t.socket.authorized?(o.originalHost=o.getHeader("host"),o.originalHostHeaderName||(o.originalHostHeaderName=o.hasHeader("host")),o.setHost&&o.removeHeader("host"),o.clearTimeout(),r=o._jar&&o._jar.setCookie?o._jar:F,e=function(e){try{r.setCookie(e,o.uri.href,{ignoreError:!0})}catch(e){o.emit("error",e)}},t.caseless=_(t.headers),t.caseless.has("set-cookie")&&!o._disableCookies&&(i=t.caseless.has("set-cookie"),Array.isArray(t.headers[i])?t.headers[i].forEach(e):e(t.headers[i])),o._redirect.onResponse(t)||(t.on("close",function(){o._ended||o.response.emit("end")}),t.once("end",function(){o._ended=!0}),!o.gzip||(n=t.statusCode,"HEAD"===o.method||100<=n&&n<200||204===n||304===n)?a=t:(e=(e=t.headers["content-encoding"]||"identity").trim().toLowerCase(),i={flush:s.Z_SYNC_FLUSH,finishFlush:s.Z_SYNC_FLUSH},"gzip"===e?(a=s.createGunzip(i),t.pipe(a)):"deflate"===e?(a=s.createInflate(i),t.pipe(a)):("identity"!==e&&L("ignoring unrecognized Content-Encoding "+e),a=t)),o.encoding&&(0!==o.dests.length?console.error("Ignoring encoding parameter as this stream is being piped to another stream which makes the encoding option invalid."):a.setEncoding(o.encoding)),o._paused&&a.pause(),o.responseContent=a,o.emit("response",t),o.dests.forEach(function(e){o.pipeDest(e)}),a.on("data",function(e){o.timing&&!o.responseStarted&&(o.responseStartTime=(new Date).getTime(),t.responseStartTime=o.responseStartTime),o._destdata=!0,o.emit("data",e)}),a.once("end",function(e){o.emit("end",e)}),a.on("error",function(e){o.emit("error",e)}),a.on("close",function(){o.emit("close")}),o.callback?o.readResponseBody(t):o.on("end",function(){o._aborted?L("aborted",o.uri.href):o.emit("complete",t)}),L("finish init function",o.uri.href))):(L("strict ssl error",o.uri.href),a=t.hasOwnProperty("socket")?t.socket.authorizationError:o.uri.href+" does not support SSL",o.emit("error",new Error("SSL Error: "+a)))},D.prototype.readResponseBody=function(e){var t=this;L("reading response's body");var r=[],i=0,n=[];t.on("data",function(e){P.isBuffer(e)?e.length&&(i+=e.length,r.push(e)):n.push(e)}),t.on("end",function(){if(L("end event",t.uri.href),t._aborted)return L("aborted",t.uri.href),r=[],void(i=0);if(i?(L("has body",t.uri.href,i),e.body=P.concat(r,i),null!==t.encoding&&(e.body=e.body.toString(t.encoding)),r=[],i=0):n.length&&("utf8"===t.encoding&&0<n[0].length&&"\ufeff"===n[0][0]&&(n[0]=n[0].substring(1)),e.body=n.join("")),t._json)try{e.body=JSON.parse(e.body,t._jsonReviver)}catch(e){L("invalid JSON received",t.uri.href)}L("emitting complete",t.uri.href),void 0!==e.body||t._json||(e.body=null===t.encoding?P.alloc(0):""),t.emit("complete",e,e.body)})},D.prototype.abort=function(){this._aborted=!0,this.req?this.req.abort():this.response&&this.response.destroy(),this.clearTimeout(),this.emit("abort")},D.prototype.pipeDest=function(e){var t,r=this.response;if(e.headers&&!e.headersSent&&(r.caseless.has("content-type")&&(t=r.caseless.has("content-type"),e.setHeader?e.setHeader(t,r.headers[t]):e.headers[t]=r.headers[t]),r.caseless.has("content-length")&&(t=r.caseless.has("content-length"),e.setHeader?e.setHeader(t,r.headers[t]):e.headers[t]=r.headers[t])),e.setHeader&&!e.headersSent){for(var i in r.headers)this.gzip&&"content-encoding"===i||e.setHeader(i,r.headers[i]);e.statusCode=r.statusCode}this.pipefilter&&this.pipefilter(r,e)},D.prototype.qs=function(e,t){var r,i=this,n=!t&&i.uri.query?i._qs.parse(i.uri.query):{};for(r in e)n[r]=e[r];t=i._qs.stringify(n);return""===t||(i.uri=y.parse(i.uri.href.split("?")[0]+"?"+t),i.url=i.uri,i.path=i.uri.path,"unix"===i.uri.host&&i.enableUnixSocket()),i},D.prototype.form=function(e){var t=this;return e?(/^application\/x-www-form-urlencoded\b/.test(t.getHeader("content-type"))||t.setHeader("content-type","application/x-www-form-urlencoded"),t.body="string"==typeof e?t._qs.rfc3986(e.toString("utf8")):t._qs.stringify(e).toString("utf8"),t):(t._form=new r,t._form.on("error",function(e){e.message="form-data: "+e.message,t.emit("error",e),t.abort()}),t._form)},D.prototype.multipart=function(e){return this._multipart.onRequest(e),this._multipart.chunked||(this.body=this._multipart.body),this},D.prototype.json=function(e){var t=this;return t.hasHeader("accept")||t.setHeader("accept","application/json"),"function"==typeof t.jsonReplacer&&(t._jsonReplacer=t.jsonReplacer),t._json=!0,"boolean"==typeof e?void 0!==t.body&&(/^application\/x-www-form-urlencoded\b/.test(t.getHeader("content-type"))?t.body=t._qs.rfc3986(t.body):t.body=I(t.body,t._jsonReplacer),t.hasHeader("content-type")||t.setHeader("content-type","application/json")):(t.body=I(e,t._jsonReplacer),t.hasHeader("content-type")||t.setHeader("content-type","application/json")),"function"==typeof t.jsonReviver&&(t._jsonReviver=t.jsonReviver),t},D.prototype.getHeader=function(t,r){var i,n;return r=r||this.headers,Object.keys(r).forEach(function(e){e.length===t.length&&(n=new RegExp(t,"i"),e.match(n)&&(i=r[e]))}),i},D.prototype.enableUnixSocket=function(){var e=this.uri.path.split(":"),t=e[0],e=e[1];this.socketPath=t,this.uri.pathname=e,this.uri.path=e,this.uri.host=t,this.uri.hostname=t,this.uri.isUnix=!0},D.prototype.auth=function(e,t,r,i){return this._auth.onRequest(e,t,r,i),this},D.prototype.aws=function(e,t){var r,i,n=this;return t?4===e.sign_version||"4"===e.sign_version?(i={host:n.uri.host,path:n.uri.path,method:n.method,headers:n.headers,body:n.body},e.service&&(i.service=e.service),r=o.sign(i,{accessKeyId:e.key,secretAccessKey:e.secret,sessionToken:e.session}),n.setHeader("authorization",r.headers.Authorization),n.setHeader("x-amz-date",r.headers["X-Amz-Date"]),r.headers["X-Amz-Security-Token"]&&n.setHeader("x-amz-security-token",r.headers["X-Amz-Security-Token"])):(i=new Date,n.setHeader("date",i.toUTCString()),r={key:e.key,secret:e.secret,verb:n.method.toUpperCase(),date:i,contentType:n.getHeader("content-type")||"",md5:n.getHeader("content-md5")||"",amazonHeaders:a.canonicalizeHeaders(n.headers)},i=n.uri.path,e.bucket&&i?r.resource="/"+e.bucket+i:e.bucket&&!i?r.resource="/"+e.bucket:!e.bucket&&i?r.resource=i:e.bucket||i||(r.resource="/"),r.resource=a.canonicalizeResource(r.resource),n.setHeader("authorization",a.authorization(r))):n._aws=e,n},D.prototype.httpSignature=function(e){var r=this;return t.signRequest({getHeader:function(e){return r.getHeader(e,r.headers)},setHeader:function(e,t){r.setHeader(e,t)},method:r.method,path:r.path},e),L("httpSignature authorization",r.getHeader("authorization")),r},D.prototype.hawk=function(e){this.setHeader("Authorization",d.header(this.uri,this.method,e))},D.prototype.oauth=function(e){return this._oauth.onRequest(e),this},D.prototype.jar=function(e){var t,r,i,n=this;return 0===n._redirect.redirectsFollowed&&(n.originalCookieHeader=n.getHeader("cookie")),e?(r=e.getCookieString?e:F,i=n.uri.href,r&&(t=r.getCookieString(i))):(t=!1,n._disableCookies=!0),t&&t.length&&(n.originalCookieHeader?n.setHeader("cookie",n.originalCookieHeader+"; "+t):n.setHeader("cookie",t)),n._jar=e,n},D.prototype.pipe=function(e,t){if(!this.response)return this.dests.push(e),n.Stream.prototype.pipe.call(this,e,t),e;if(this._destdata)this.emit("error",new Error("You cannot pipe after data has been emitted from the response."));else{if(!this._ended)return n.Stream.prototype.pipe.call(this,e,t),this.pipeDest(e),e;this.emit("error",new Error("You cannot pipe after the response has been ended."))}},D.prototype.write=function(){if(!this._aborted)return this._started||this.start(),this.req?this.req.write.apply(this.req,arguments):void 0},D.prototype.end=function(e){this._aborted||(e&&this.write(e),this._started||this.start(),this.req&&this.req.end())},D.prototype.pause=function(){this.responseContent?this.responseContent.pause.apply(this.responseContent,arguments):this._paused=!0},D.prototype.resume=function(){this.responseContent?this.responseContent.resume.apply(this.responseContent,arguments):this._paused=!1},D.prototype.destroy=function(){this.clearTimeout(),this._ended?this.response&&this.response.destroy():this.end()},D.prototype.clearTimeout=function(){this.timeoutTimer&&(clearTimeout(this.timeoutTimer),this.timeoutTimer=null)},D.defaultProxyHeaderWhiteList=E.defaultProxyHeaderWhiteList.slice(),D.defaultProxyHeaderExclusiveList=E.defaultProxyHeaderExclusiveList.slice(),D.prototype.toJSON=z,H.exports=D}).call(this)}).call(this,U("_process"))},{"./lib/auth":408,"./lib/cookies":409,"./lib/getProxyFromURI":410,"./lib/har":411,"./lib/hawk":412,"./lib/helpers":413,"./lib/multipart":414,"./lib/oauth":415,"./lib/querystring":416,"./lib/redirect":417,"./lib/tunnel":418,_process:354,"aws-sign2":71,aws4:72,caseless:188,extend:231,"forever-agent":235,"form-data":236,http:458,"http-signature":289,https:294,"is-typedarray":298,isstream:300,"mime-types":323,"performance-now":352,"safe-buffer":421,stream:457,url:476,util:481,zlib:179}],420:[function(e,t,r){"use strict";var i=e("buffer").Buffer,n=e("inherits"),a=e("hash-base"),g=new Array(16),b=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],y=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],_=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],w=[0,1518500249,1859775393,2400959708,2840853838],k=[1352829926,1548603684,1836072691,2053994217,0];function o(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function x(e,t){return e<<t|e>>>32-t}function S(e,t,r,i,n,a,o,s){return x(e+(t^r^i)+a+o|0,s)+n|0}function j(e,t,r,i,n,a,o,s){return x(e+(t&r|~t&i)+a+o|0,s)+n|0}function E(e,t,r,i,n,a,o,s){return x(e+((t|~r)^i)+a+o|0,s)+n|0}function A(e,t,r,i,n,a,o,s){return x(e+(t&i|r&~i)+a+o|0,s)+n|0}function P(e,t,r,i,n,a,o,s){return x(e+(t^(r|~i))+a+o|0,s)+n|0}n(o,a),o.prototype._update=function(){for(var e=g,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,i=0|this._b,n=0|this._c,a=0|this._d,o=0|this._e,s=0|this._a,u=0|this._b,c=0|this._c,f=0|this._d,p=0|this._e,l=0;l<80;l+=1)var h,d=l<16?(h=S(r,i,n,a,o,e[b[l]],w[0],v[l]),P(s,u,c,f,p,e[y[l]],k[0],_[l])):l<32?(h=j(r,i,n,a,o,e[b[l]],w[1],v[l]),A(s,u,c,f,p,e[y[l]],k[1],_[l])):l<48?(h=E(r,i,n,a,o,e[b[l]],w[2],v[l]),E(s,u,c,f,p,e[y[l]],k[2],_[l])):l<64?(h=A(r,i,n,a,o,e[b[l]],w[3],v[l]),j(s,u,c,f,p,e[y[l]],k[3],_[l])):(h=P(r,i,n,a,o,e[b[l]],w[4],v[l]),S(s,u,c,f,p,e[y[l]],k[4],_[l])),r=o,o=a,a=x(n,10),n=i,i=h,s=p,p=f,f=x(c,10),c=u,u=d;var m=this._b+n+f|0;this._b=this._c+a+p|0,this._c=this._d+o+s|0,this._d=this._e+r+u|0,this._e=this._a+i+c|0,this._a=m},o.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.alloc?i.alloc(20):new i(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=o},{buffer:186,"hash-base":258,inherits:296}],421:[function(e,t,r){var i=e("buffer"),n=i.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=i:(a(i,r),r.Buffer=o),o.prototype=Object.create(n.prototype),a(n,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");e=n(e);return void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},{buffer:186}],422:[function(o,s,e){(function(a){(function(){"use strict";var e,t=o("buffer"),i=t.Buffer,r={};for(e in t)t.hasOwnProperty(e)&&"SlowBuffer"!==e&&"Buffer"!==e&&(r[e]=t[e]);var n=r.Buffer={};for(e in i)i.hasOwnProperty(e)&&"allocUnsafe"!==e&&"allocUnsafeSlow"!==e&&(n[e]=i[e]);if(r.Buffer.prototype=i.prototype,n.from&&n.from!==Uint8Array.from||(n.from=function(e,t,r){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+_typeof(e));if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+_typeof(e));return i(e,t,r)}),n.alloc||(n.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+_typeof(e));if(e<0||2*(1<<30)<=e)throw new RangeError('The value "'+e+'" is invalid for option "size"');e=i(e);return t&&0!==t.length?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e}),!r.kStringMaxLength)try{r.kStringMaxLength=a.binding("buffer").kStringMaxLength}catch(e){}r.constants||(r.constants={MAX_LENGTH:r.kMaxLength},r.kStringMaxLength&&(r.constants.MAX_STRING_LENGTH=r.kStringMaxLength)),s.exports=r}).call(this)}).call(this,o("_process"))},{_process:354,buffer:186}],423:[function(e,t,r){var f=e("safe-buffer").Buffer;function i(e,t){this._block=f.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=f.from(e,t));for(var r=this._block,i=this._blockSize,n=e.length,a=this._len,o=0;o<n;){for(var s=a%i,u=Math.min(n-o,i-s),c=0;c<u;c++)r[s+c]=e[o+c];o+=u,(a+=u)%i==0&&this._update(r)}return this._len+=n,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,1+t),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));t=8*this._len;t<=4294967295?this._block.writeUInt32BE(t,this._blockSize-4):(t=(t-(r=(4294967295&t)>>>0))/4294967296,this._block.writeUInt32BE(t,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)),this._update(this._block);var r=this._hash();return e?r.toString(e):r},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},{"safe-buffer":421}],424:[function(e,t,r){(r=t.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t}).sha=e("./sha"),r.sha1=e("./sha1"),r.sha224=e("./sha224"),r.sha256=e("./sha256"),r.sha384=e("./sha384"),r.sha512=e("./sha512")},{"./sha":425,"./sha1":426,"./sha224":427,"./sha256":428,"./sha384":429,"./sha512":430}],425:[function(e,t,r){var i=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,d=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function s(){this.init(),this._w=o,n.call(this,64,56)}i(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,n=0|this._c,a=0|this._d,o=0|this._e,s=0;s<16;++s)t[s]=e.readInt32BE(4*s);for(;s<80;++s)t[s]=t[s-3]^t[s-8]^t[s-14]^t[s-16];for(var u,c,f,p=0;p<80;++p)var l=~~(p/20),h=0|((f=r)<<5|f>>>27)+(u=i,c=n,h=a,0===(f=l)?u&c|~u&h:2===f?u&c|u&h|c&h:u^c^h)+o+t[p]+d[l],o=a,a=n,n=(l=i)<<30|l>>>2,i=r,r=h;this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0},s.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=s},{"./hash":423,inherits:296,"safe-buffer":421}],426:[function(e,t,r){var i=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,m=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function s(){this.init(),this._w=o,n.call(this,64,56)}i(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,a=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)r[u]=e.readInt32BE(4*u);for(;u<80;++u)r[u]=(t=r[u-3]^r[u-8]^r[u-14]^r[u-16])<<1|t>>>31;for(var c,f,p,l=0;l<80;++l)var h=~~(l/20),d=0|((p=i)<<5|p>>>27)+(c=n,f=a,d=o,0===(p=h)?c&f|~c&d:2===p?c&f|c&d|f&d:c^f^d)+s+r[l]+m[h],s=o,o=a,a=(h=n)<<30|h>>>2,n=i,i=d;this._a=i+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=s},{"./hash":423,inherits:296,"safe-buffer":421}],427:[function(e,t,r){var i=e("inherits"),n=e("./sha256"),a=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(64);function u(){this.init(),this._w=s,a.call(this,64,56)}i(u,n),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=u},{"./hash":423,"./sha256":428,inherits:296,"safe-buffer":421}],428:[function(e,t,r){var i=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=new Array(64);function s(){this.init(),this._w=o,n.call(this,64,56)}i(s,n),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},s.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,a=0|this._c,o=0|this._d,s=0|this._e,u=0|this._f,c=0|this._g,f=0|this._h,p=0;p<16;++p)r[p]=e.readInt32BE(4*p);for(;p<64;++p)r[p]=0|(((t=r[p-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[p-7]+(((t=r[p-15])>>>7|t<<25)^(t>>>18|t<<14)^t>>>3)+r[p-16];for(var l,h=0;h<64;++h)var d=f+(((m=s)>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+((l=c)^s&(u^l))+g[h]+r[h]|0,m=0|(((m=i)>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10))+((l=i)&(m=n)|a&(l|m)),f=c,c=u,u=s,s=o+d|0,o=a,a=n,n=i,i=d+m|0;this._a=i+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=c+this._g|0,this._h=f+this._h|0},s.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=s},{"./hash":423,inherits:296,"safe-buffer":421}],429:[function(e,t,r){var i=e("inherits"),n=e("./sha512"),a=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(160);function u(){this.init(),this._w=s,a.call(this,128,112)}i(u,n),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var i=o.allocUnsafe(48);function e(e,t,r){i.writeInt32BE(e,r),i.writeInt32BE(t,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),i},t.exports=u},{"./hash":423,"./sha512":430,inherits:296,"safe-buffer":421}],430:[function(e,t,r){var i=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,D=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);function s(){this.init(),this._w=o,n.call(this,128,112)}function L(e,t,r){return r^e&(t^r)}function q(e,t,r){return e&t|r&(e|t)}function U(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function H(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function K(e,t){return e>>>0<t>>>0?1:0}i(s,n),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(e){for(var t=this._w,r=0|this._ah,i=0|this._bh,n=0|this._ch,a=0|this._dh,o=0|this._eh,s=0|this._fh,u=0|this._gh,c=0|this._hh,f=0|this._al,p=0|this._bl,l=0|this._cl,h=0|this._dl,d=0|this._el,m=0|this._fl,g=0|this._gl,b=0|this._hl,y=0;y<32;y+=2)t[y]=e.readInt32BE(4*y),t[y+1]=e.readInt32BE(4*y+4);for(;y<160;y+=2){var v=t[y-30],_=t[y-30+1],w=((E=v)>>>1|(S=_)<<31)^(E>>>8|S<<24)^E>>>7,k=((x=_)>>>1|(j=v)<<31)^(x>>>8|j<<24)^(x>>>7|j<<25),v=t[y-4],_=t[y-4+1],x=((S=v)>>>19|(E=_)<<13)^(E>>>29|S<<3)^S>>>6,S=((j=_)>>>19|(E=v)<<13)^(E>>>29|j<<3)^(j>>>6|E<<26),_=t[y-14],v=t[y-14+1],j=t[y-32],E=t[y-32+1],A=k+v|0,P=w+_+K(A,k)|0;P=(P=P+x+K(A=A+S|0,S)|0)+j+K(A=A+E|0,E)|0,t[y]=P,t[y+1]=A}for(var I=0;I<160;I+=2){P=t[I],A=t[I+1];var T=q(r,i,n),O=q(f,p,l),C=U(r,f),R=U(f,r),B=H(o,d),F=H(d,o),M=D[I+1],z=L(o,s,u),N=L(d,m,g),F=b+F|0,B=c+B+K(F,b)|0;B=(B=(B=B+z+K(F=F+N|0,N)|0)+D[I]+K(F=F+M|0,M)|0)+P+K(F=F+A|0,A)|0;O=R+O|0,R=C+T+K(O,R)|0,c=u,b=g,u=s,g=m,s=o,m=d,o=a+B+K(d=h+F|0,h)|0,a=n,h=l,n=i,l=p,i=r,p=f,r=B+R+K(f=F+O|0,F)|0}this._al=this._al+f|0,this._bl=this._bl+p|0,this._cl=this._cl+l|0,this._dl=this._dl+h|0,this._el=this._el+d|0,this._fl=this._fl+m|0,this._gl=this._gl+g|0,this._hl=this._hl+b|0,this._ah=this._ah+r+K(this._al,f)|0,this._bh=this._bh+i+K(this._bl,p)|0,this._ch=this._ch+n+K(this._cl,l)|0,this._dh=this._dh+a+K(this._dl,h)|0,this._eh=this._eh+o+K(this._el,d)|0,this._fh=this._fh+s+K(this._fl,m)|0,this._gh=this._gh+u+K(this._gl,g)|0,this._hh=this._hh+c+K(this._hl,b)|0},s.prototype._hash=function(){var i=a.allocUnsafe(64);function e(e,t,r){i.writeInt32BE(e,r),i.writeInt32BE(t,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),i},t.exports=s},{"./hash":423,inherits:296,"safe-buffer":421}],431:[function(e,t,r){var i=e("safer-buffer").Buffer,n={dsa:{parts:["p","q","g","y"],sizePart:"p"},rsa:{parts:["e","n"],sizePart:"n"},ecdsa:{parts:["curve","Q"],sizePart:"Q"},ed25519:{parts:["A"],sizePart:"A"}};n.curve25519=n.ed25519;e={dsa:{parts:["p","q","g","y","x"]},rsa:{parts:["n","e","d","iqmp","p","q"]},ecdsa:{parts:["curve","Q","d"]},ed25519:{parts:["A","k"]}};e.curve25519=e.ed25519;i={nistp256:{size:256,pkcs8oid:"1.2.840.10045.3.1.7",p:i.from("00ffffffff 00000001 00000000 0000000000000000 ffffffff ffffffff ffffffff".replace(/ /g,""),"hex"),a:i.from("00FFFFFFFF 00000001 00000000 0000000000000000 FFFFFFFF FFFFFFFF FFFFFFFC".replace(/ /g,""),"hex"),b:i.from("5ac635d8 aa3a93e7 b3ebbd55 769886bc651d06b0 cc53b0f6 3bce3c3e 27d2604b".replace(/ /g,""),"hex"),s:i.from("00c49d3608 86e70493 6a6678e1 139d26b7819f7e90".replace(/ /g,""),"hex"),n:i.from("00ffffffff 00000000 ffffffff ffffffffbce6faad a7179e84 f3b9cac2 fc632551".replace(/ /g,""),"hex"),G:i.from("046b17d1f2 e12c4247 f8bce6e5 63a440f277037d81 2deb33a0 f4a13945 d898c2964fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e162bce3357 6b315ece cbb64068 37bf51f5".replace(/ /g,""),"hex")},nistp384:{size:384,pkcs8oid:"1.3.132.0.34",p:i.from("00ffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff fffffffeffffffff 00000000 00000000 ffffffff".replace(/ /g,""),"hex"),a:i.from("00FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFEFFFFFFFF 00000000 00000000 FFFFFFFC".replace(/ /g,""),"hex"),b:i.from("b3312fa7 e23ee7e4 988e056b e3f82d19181d9c6e fe814112 0314088f 5013875ac656398d 8a2ed19d 2a85c8ed d3ec2aef".replace(/ /g,""),"hex"),s:i.from("00a335926a a319a27a 1d00896a 6773a4827acdac73".replace(/ /g,""),"hex"),n:i.from("00ffffffff ffffffff ffffffff ffffffffffffffff ffffffff c7634d81 f4372ddf581a0db2 48b0a77a ecec196a ccc52973".replace(/ /g,""),"hex"),G:i.from("04aa87ca22 be8b0537 8eb1c71e f320ad746e1d3b62 8ba79b98 59f741e0 82542a385502f25d bf55296c 3a545e38 72760ab73617de4a 96262c6f 5d9e98bf 9292dc29f8f41dbd 289a147c e9da3113 b5f0b8c00a60b1ce 1d7e819d 7a431d7c 90ea0e5f".replace(/ /g,""),"hex")},nistp521:{size:521,pkcs8oid:"1.3.132.0.35",p:i.from("01ffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffff".replace(/ /g,""),"hex"),a:i.from("01FFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFC".replace(/ /g,""),"hex"),b:i.from("51953eb961 8e1c9a1f 929a21a0 b68540eea2da725b 99b315f3 b8b48991 8ef109e156193951 ec7e937b 1652c0bd 3bb1bf073573df88 3d2c34f1 ef451fd4 6b503f00".replace(/ /g,""),"hex"),s:i.from("00d09e8800 291cb853 96cc6717 393284aaa0da64ba".replace(/ /g,""),"hex"),n:i.from("01ffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff fffffffa51868783 bf2f966b 7fcc0148 f709a5d03bb5c9b8 899c47ae bb6fb71e 91386409".replace(/ /g,""),"hex"),G:i.from("0400c6 858e06b7 0404e9cd 9e3ecb66 2395b4429c648139 053fb521 f828af60 6b4d3dbaa14b5e77 efe75928 fe1dc127 a2ffa8de3348b3c1 856a429b f97e7e31 c2e5bd660118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd998f54449 579b4468 17afbd17 273e662c97ee7299 5ef42640 c550b901 3fad0761353c7086 a272c240 88be9476 9fd16650".replace(/ /g,""),"hex")}};t.exports={info:n,privInfo:e,hashAlgs:{md5:!0,sha1:!0,sha256:!0,sha384:!0,sha512:!0},curves:i}},{"safer-buffer":422}],432:[function(e,t,r){t.exports=g;var f=e("assert-plus"),p=e("safer-buffer").Buffer,i=e("./algs"),n=e("crypto"),a=e("./fingerprint"),t=(e("./signature"),e("./errors")),l=(e("util"),e("./utils")),h=e("./key"),d=e("./private-key"),m=e("./identity"),o={};o.openssh=e("./formats/openssh-cert"),o.x509=e("./formats/x509"),o.pem=e("./formats/x509-pem");var s=t.CertificateParseError,u=t.InvalidAlgorithmError;function g(e){f.object(e,"options"),f.arrayOfObject(e.subjects,"options.subjects"),l.assertCompatible(e.subjects[0],m,[1,0],"options.subjects"),l.assertCompatible(e.subjectKey,h,[1,0],"options.subjectKey"),l.assertCompatible(e.issuer,m,[1,0],"options.issuer"),void 0!==e.issuerKey&&l.assertCompatible(e.issuerKey,h,[1,0],"options.issuerKey"),f.object(e.signatures,"options.signatures"),f.buffer(e.serial,"options.serial"),f.date(e.validFrom,"options.validFrom"),f.date(e.validUntil,"optons.validUntil"),f.optionalArrayOfString(e.purposes,"options.purposes"),this._hashCache={},this.subjects=e.subjects,this.issuer=e.issuer,this.subjectKey=e.subjectKey,this.issuerKey=e.issuerKey,this.signatures=e.signatures,this.serial=e.serial,this.validFrom=e.validFrom,this.validUntil=e.validUntil,this.purposes=e.purposes}g.formats=o,g.prototype.toBuffer=function(e,t){return void 0===e&&(e="x509"),f.string(e,"format"),f.object(o[e],"formats[format]"),f.optionalObject(t,"options"),o[e].write(this,t)},g.prototype.toString=function(e,t){return void 0===e&&(e="pem"),this.toBuffer(e,t).toString()},g.prototype.fingerprint=function(e){void 0===e&&(e="sha256"),f.string(e,"algorithm");e={type:"certificate",hash:this.hash(e),algorithm:e};return new a(e)},g.prototype.hash=function(e){if(f.string(e,"algorithm"),e=e.toLowerCase(),void 0===i.hashAlgs[e])throw new u(e);if(this._hashCache[e])return this._hashCache[e];var t=n.createHash(e).update(this.toBuffer("x509")).digest();return this._hashCache[e]=t},g.prototype.isExpired=function(e){return!((e=void 0===e?new Date:e).getTime()>=this.validFrom.getTime()&&e.getTime()<this.validUntil.getTime())},g.prototype.isSignedBy=function(e){return l.assertCompatible(e,g,[1,0],"issuer"),!!this.issuer.equals(e.subjects[0])&&(!(this.issuer.purposes&&0<this.issuer.purposes.length&&-1===this.issuer.purposes.indexOf("ca"))&&this.isSignedByKey(e.subjectKey))},g.prototype.getExtension=function(t){return f.string(t,"keyOrOid"),this.getExtensions().filter(function(e){return"x509"===e.format?e.oid===t:"openssh"===e.format&&e.name===t})[0]},g.prototype.getExtensions=function(){var t=[],e=this.signatures.x509;e&&e.extras&&e.extras.exts&&e.extras.exts.forEach(function(e){e.format="x509",t.push(e)});e=this.signatures.openssh;return e&&e.exts&&e.exts.forEach(function(e){e.format="openssh",t.push(e)}),t},g.prototype.isSignedByKey=function(e){if(l.assertCompatible(e,h,[1,2],"issuerKey"),void 0!==this.issuerKey)return this.issuerKey.fingerprint("sha512").matches(e);var t=Object.keys(this.signatures)[0],t=o[t].verify(this,e);return t&&(this.issuerKey=e),t},g.prototype.signWith=function(e){l.assertCompatible(e,d,[1,2],"key");for(var t=Object.keys(o),r=!1,i=0;i<t.length;++i)"pem"!==t[i]&&!0===o[t[i]].sign(this,e)&&(r=!0);if(!r)throw new Error("Failed to sign the certificate for any available certificate formats")},g.createSelfSigned=function(e,t,r){var i=Array.isArray(e)?e:[e];f.arrayOfObject(i),i.forEach(function(e){l.assertCompatible(e,m,[1,0],"subject")}),l.assertCompatible(t,d,[1,2],"private key"),f.optionalObject(r,"options"),void 0===r&&(r={}),f.optionalObject(r.validFrom,"options.validFrom"),f.optionalObject(r.validUntil,"options.validUntil");var n=r.validFrom,a=r.validUntil;void 0===n&&(n=new Date),void 0===a&&(f.optionalNumber(r.lifetime,"options.lifetime"),void 0===(s=r.lifetime)&&(s=31536e4),(a=new Date).setTime(a.getTime()+1e3*s)),f.optionalBuffer(r.serial,"options.serial");var o=r.serial;void 0===o&&(o=p.from("0000000000000001","hex"));var s,e=r.purposes;-1===(e=void 0===e?[]:e).indexOf("signature")&&e.push("signature"),-1===e.indexOf("ca")&&e.push("ca"),-1===e.indexOf("crl")&&e.push("crl"),e.length<=3&&(s=i.filter(function(e){return"host"===e.type}),r=i.filter(function(e){return"user"===e.type}),0<s.length&&-1===e.indexOf("serverAuth")&&e.push("serverAuth"),0<r.length&&-1===e.indexOf("clientAuth")&&e.push("clientAuth"),(0<r.length||0<s.length)&&(-1===e.indexOf("keyAgreement")&&e.push("keyAgreement"),"rsa"===t.type&&-1===e.indexOf("encryption")&&e.push("encryption")));e=new g({subjects:i,issuer:i[0],subjectKey:t.toPublic(),issuerKey:t.toPublic(),signatures:{},serial:o,validFrom:n,validUntil:a,purposes:e});return e.signWith(t),e},g.create=function(e,t,r,i,n){var a=Array.isArray(e)?e:[e];f.arrayOfObject(a),a.forEach(function(e){l.assertCompatible(e,m,[1,0],"subject")}),l.assertCompatible(t,h,[1,0],"key"),d.isPrivateKey(t)&&(t=t.toPublic()),l.assertCompatible(r,m,[1,0],"issuer"),l.assertCompatible(i,d,[1,2],"issuer key"),f.optionalObject(n,"options"),void 0===n&&(n={}),f.optionalObject(n.validFrom,"options.validFrom"),f.optionalObject(n.validUntil,"options.validUntil");var o=n.validFrom,s=n.validUntil;void 0===o&&(o=new Date),void 0===s&&(f.optionalNumber(n.lifetime,"options.lifetime"),void 0===(c=n.lifetime)&&(c=31536e4),(s=new Date).setTime(s.getTime()+1e3*c)),f.optionalBuffer(n.serial,"options.serial");var u=n.serial;void 0===u&&(u=p.from("0000000000000001","hex"));e=n.purposes;-1===(e=void 0===e?[]:e).indexOf("signature")&&e.push("signature"),!0===n.ca&&(-1===e.indexOf("ca")&&e.push("ca"),-1===e.indexOf("crl")&&e.push("crl"));var c=a.filter(function(e){return"host"===e.type}),n=a.filter(function(e){return"user"===e.type});0<c.length&&-1===e.indexOf("serverAuth")&&e.push("serverAuth"),0<n.length&&-1===e.indexOf("clientAuth")&&e.push("clientAuth"),(0<n.length||0<c.length)&&(-1===e.indexOf("keyAgreement")&&e.push("keyAgreement"),"rsa"===t.type&&-1===e.indexOf("encryption")&&e.push("encryption"));e=new g({subjects:a,issuer:r,subjectKey:t,issuerKey:i.toPublic(),signatures:{},serial:u,validFrom:o,validUntil:s,purposes:e});return e.signWith(i),e},g.parse=function(e,t,r){"string"!=typeof e&&f.buffer(e,"data"),void 0===t&&(t="auto"),f.string(t,"format"),"string"==typeof r&&(r={filename:r}),f.optionalObject(r,"options"),void 0===r&&(r={}),f.optionalString(r.filename,"options.filename"),void 0===r.filename&&(r.filename="(unnamed)"),f.object(o[t],"formats[format]");try{return o[t].read(e,r)}catch(e){throw new s(r.filename,t,e)}},g.isCertificate=function(e,t){return l.isCompatible(e,g,t)},g.prototype._sshpkApiVersion=[1,1],g._oldVersionDetect=function(e){return[1,0]}},{"./algs":431,"./errors":435,"./fingerprint":436,"./formats/openssh-cert":439,"./formats/x509":448,"./formats/x509-pem":447,"./identity":449,"./key":451,"./private-key":452,"./signature":453,"./utils":455,"assert-plus":67,crypto:198,"safer-buffer":422,util:481}],433:[function(e,t,r){t.exports={DiffieHellman:d,generateECDSA:function(e){var t=[];{if(p){var r={nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[e],i=a.createECDH(r);return i.generateKeys(),t.push({name:"curve",data:s.from(e)}),t.push({name:"Q",data:i.getPublicKey()}),t.push({name:"d",data:i.getPrivateKey()}),new f({type:"ecdsa",curve:e,parts:t})}var n=new m(e),r=n.getN(),i=Math.ceil((r.bitLength()+64)/8),i=new h(a.randomBytes(i)),r=r.subtract(h.ONE),i=i.mod(r).add(h.ONE),r=n.getG().multiply(i);return i=s.from(i.toByteArray()),r=s.from(n.getCurve().encodePointHex(r),"hex"),t.push({name:"curve",data:s.from(e)}),t.push({name:"Q",data:r}),t.push({name:"d",data:i}),new f({type:"ecdsa",curve:e,parts:t})}},generateED25519:function(){var e=n.sign.keyPair(),t=s.from(e.secretKey),r=s.from(e.publicKey);o.strictEqual(t.length,64),o.strictEqual(r.length,32);e=[];return e.push({name:"A",data:r}),e.push({name:"k",data:t.slice(0,32)}),new f({type:"ed25519",parts:e})}};var o=e("assert-plus"),a=e("crypto"),s=e("safer-buffer").Buffer,u=e("./algs"),i=e("./utils"),n=e("tweetnacl"),c=e("./key"),f=e("./private-key"),p=void 0!==a.createECDH,l=(e("ecc-jsbn"),e("ecc-jsbn/lib/ec")),h=e("jsbn").BigInteger;function d(e){if(i.assertCompatible(e,c,[1,4],"key"),this._isPriv=f.isPrivateKey(e,[1,3]),this._algo=e.type,this._curve=e.curve,"dsa"===(this._key=e).type){if(!p)throw new Error("Due to bugs in the node 0.10 crypto API, node 0.12.x or later is required to use DH");this._dh=a.createDiffieHellman(e.part.p.data,void 0,e.part.g.data,void 0),this._p=e.part.p,this._g=e.part.g,this._isPriv&&this._dh.setPrivateKey(e.part.x.data),this._dh.setPublicKey(e.part.y.data)}else if("ecdsa"===e.type){if(!p)return this._ecParams=new m(this._curve),void(this._isPriv&&(this._priv=new b(this._ecParams,e.part.d.data)));var t={nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[e.curve];if(this._dh=a.createECDH(t),"object"!==_typeof(this._dh)||"function"!=typeof this._dh.setPrivateKey)return p=!1,void d.call(this,e);this._isPriv&&this._dh.setPrivateKey(e.part.d.data),this._dh.setPublicKey(e.part.Q.data)}else{if("curve25519"!==e.type)throw new Error("DH not supported for "+e.type+" keys");this._isPriv&&(i.assertCompatible(e,f,[1,5],"key"),this._priv=e.part.k.data)}}function m(e){var t=u.curves[e];o.object(t);var r=new h(t.p),i=new h(t.a),n=new h(t.b),a=new h(t.n),e=h.ONE,n=new l.ECCurveFp(r,i,n),t=n.decodePointHex(t.G.toString("hex"));this.curve=n,this.g=t,this.n=a,this.h=e}function g(e,t){this._params=e,0===t[0]&&(t=t.slice(1)),this._pub=e.getCurve().decodePointHex(t.toString("hex"))}function b(e,t){this._params=e,this._priv=new h(i.mpNormalize(t))}d.prototype.getPublicKey=function(){return this._isPriv?this._key.toPublic():this._key},d.prototype.getPrivateKey=function(){return this._isPriv?this._key:void 0},d.prototype.getKey=d.prototype.getPrivateKey,d.prototype._keyCheck=function(e,t){if(o.object(e,"key"),t||i.assertCompatible(e,f,[1,3],"key"),i.assertCompatible(e,c,[1,4],"key"),e.type!==this._algo)throw new Error("A "+e.type+" key cannot be used in "+this._algo+" Diffie-Hellman");if(e.curve!==this._curve)throw new Error("A key from the "+e.curve+" curve cannot be used with a "+this._curve+" Diffie-Hellman");"dsa"===e.type&&(o.deepEqual(e.part.p,this._p,"DSA key prime does not match"),o.deepEqual(e.part.g,this._g,"DSA key generator does not match"))},d.prototype.setKey=function(e){var t;this._keyCheck(e),"dsa"===e.type?(this._dh.setPrivateKey(e.part.x.data),this._dh.setPublicKey(e.part.y.data)):"ecdsa"===e.type?p?(this._dh.setPrivateKey(e.part.d.data),this._dh.setPublicKey(e.part.Q.data)):this._priv=new b(this._ecParams,e.part.d.data):"curve25519"===e.type&&(t=e.part.k,e.part.k||(t=e.part.r),this._priv=t.data,0===this._priv[0]&&(this._priv=this._priv.slice(1)),this._priv=this._priv.slice(0,32)),this._key=e,this._isPriv=!0},d.prototype.setPrivateKey=d.prototype.setKey,d.prototype.computeSecret=function(e){if(this._keyCheck(e,!0),!this._isPriv)throw new Error("DH exchange has not been initialized with a private key yet");var t;if("dsa"===this._algo)return this._dh.computeSecret(e.part.y.data);if("ecdsa"===this._algo)return p?this._dh.computeSecret(e.part.Q.data):(t=new g(this._ecParams,e.part.Q.data),this._priv.deriveSharedSecret(t));if("curve25519"!==this._algo)throw new Error("Invalid algorithm: "+this._algo);for(t=e.part.A.data;0===t[0]&&32<t.length;)t=t.slice(1);e=this._priv;o.strictEqual(t.length,32),o.strictEqual(e.length,32);e=n.box.before(new Uint8Array(t),new Uint8Array(e));return s.from(e)},d.prototype.generateKey=function(){var e=[];if("dsa"===this._algo)return this._dh.generateKeys(),e.push({name:"p",data:this._p.data}),e.push({name:"q",data:this._key.part.q.data}),e.push({name:"g",data:this._g.data}),e.push({name:"y",data:this._dh.getPublicKey()}),e.push({name:"x",data:this._dh.getPrivateKey()}),this._key=new f({type:"dsa",parts:e}),this._isPriv=!0,this._key;if("ecdsa"===this._algo){if(p)return this._dh.generateKeys(),e.push({name:"curve",data:s.from(this._curve)}),e.push({name:"Q",data:this._dh.getPublicKey()}),e.push({name:"d",data:this._dh.getPrivateKey()}),this._key=new f({type:"ecdsa",curve:this._curve,parts:e}),this._isPriv=!0,this._key;var t=this._ecParams.getN(),r=new h(a.randomBytes(t.bitLength())),i=t.subtract(h.ONE),t=r.mod(i).add(h.ONE),r=this._ecParams.getG().multiply(t);return t=s.from(t.toByteArray()),r=s.from(this._ecParams.getCurve().encodePointHex(r),"hex"),this._priv=new b(this._ecParams,t),e.push({name:"curve",data:s.from(this._curve)}),e.push({name:"Q",data:r}),e.push({name:"d",data:t}),this._key=new f({type:"ecdsa",curve:this._curve,parts:e}),this._isPriv=!0,this._key}if("curve25519"!==this._algo)throw new Error("Invalid algorithm: "+this._algo);i=n.box.keyPair();return t=s.from(i.secretKey),r=s.from(i.publicKey),t=s.concat([t,r]),o.strictEqual(t.length,64),o.strictEqual(r.length,32),e.push({name:"A",data:r}),e.push({name:"k",data:t}),this._key=new f({type:"curve25519",parts:e}),this._isPriv=!0,this._key},d.prototype.generateKeys=d.prototype.generateKey,m.prototype.getCurve=function(){return this.curve},m.prototype.getG=function(){return this.g},m.prototype.getN=function(){return this.n},m.prototype.getH=function(){return this.h},b.prototype.deriveSharedSecret=function(e){o.ok(e instanceof g);e=e._pub.multiply(this._priv);return s.from(e.getX().toBigInteger().toByteArray())}},{"./algs":431,"./key":451,"./private-key":452,"./utils":455,"assert-plus":67,crypto:198,"ecc-jsbn":210,"ecc-jsbn/lib/ec":211,jsbn:301,"safer-buffer":422,tweetnacl:474}],434:[function(e,t,r){t.exports={Verifier:u,Signer:c};var i=e("tweetnacl"),n=e("stream"),t=e("util"),a=e("assert-plus"),o=e("safer-buffer").Buffer,s=e("./signature");function u(e,t){if("sha512"!==t.toLowerCase())throw new Error("ED25519 only supports the use of SHA-512 hashes");this.key=e,this.chunks=[],n.Writable.call(this,{})}function c(e,t){if("sha512"!==t.toLowerCase())throw new Error("ED25519 only supports the use of SHA-512 hashes");this.key=e,this.chunks=[],n.Writable.call(this,{})}t.inherits(u,n.Writable),u.prototype._write=function(e,t,r){this.chunks.push(e),r()},u.prototype.update=function(e){"string"==typeof e&&(e=o.from(e,"binary")),this.chunks.push(e)},u.prototype.verify=function(e,t){var r;if(s.isSignature(e,[2,0])){if("ed25519"!==e.type)return!1;r=e.toBuffer("raw")}else if("string"==typeof e)r=o.from(e,"base64");else if(s.isSignature(e,[1,0]))throw new Error("signature was created by too old a version of sshpk and cannot be verified");return a.buffer(r),i.sign.detached.verify(new Uint8Array(o.concat(this.chunks)),new Uint8Array(r),new Uint8Array(this.key.part.A.data))},t.inherits(c,n.Writable),c.prototype._write=function(e,t,r){this.chunks.push(e),r()},c.prototype.update=function(e){"string"==typeof e&&(e=o.from(e,"binary")),this.chunks.push(e)},c.prototype.sign=function(){var e=i.sign.detached(new Uint8Array(o.concat(this.chunks)),new Uint8Array(o.concat([this.key.part.k.data,this.key.part.A.data]))),e=o.from(e),e=s.parse(e,"ed25519","raw");return e.hashAlgorithm="sha512",e}},{"./signature":453,"assert-plus":67,"safer-buffer":422,stream:457,tweetnacl:474,util:481}],435:[function(e,t,r){e("assert-plus");e=e("util");function i(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,i),this.name="FingerprintFormatError",this.fingerprint=e,this.format=t,this.message="Fingerprint format is not supported, or is invalid: ",void 0!==e&&(this.message+=" fingerprint = "+e),void 0!==t&&(this.message+=" format = "+t)}function n(e){Error.captureStackTrace&&Error.captureStackTrace(this,n),this.name="InvalidAlgorithmError",this.algorithm=e,this.message='Algorithm "'+e+'" is not supported'}function a(e,t,r){Error.captureStackTrace&&Error.captureStackTrace(this,a),this.name="KeyParseError",this.format=t,this.keyName=e,this.innerErr=r,this.message="Failed to parse "+e+" as a valid "+t+" format key: "+r.message}function o(e,t,r){Error.captureStackTrace&&Error.captureStackTrace(this,o),this.name="SignatureParseError",this.type=e,this.format=t,this.innerErr=r,this.message="Failed to parse the given data as a "+e+" signature in "+t+" format: "+r.message}function s(e,t,r){Error.captureStackTrace&&Error.captureStackTrace(this,s),this.name="CertificateParseError",this.format=t,this.certName=e,this.innerErr=r,this.message="Failed to parse "+e+" as a valid "+t+" format certificate: "+r.message}function u(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,u),this.name="KeyEncryptedError",this.format=t,this.keyName=e,this.message="The "+t+" format key "+e+" is encrypted (password-protected), and no passphrase was provided in `options`"}e.inherits(i,Error),e.inherits(n,Error),e.inherits(a,Error),e.inherits(o,Error),e.inherits(s,Error),e.inherits(u,Error),t.exports={FingerprintFormatError:i,InvalidAlgorithmError:n,KeyParseError:a,SignatureParseError:o,KeyEncryptedError:u,CertificateParseError:s}},{"assert-plus":67,util:481}],436:[function(e,t,r){t.exports=h;var s=e("assert-plus"),u=e("safer-buffer").Buffer,c=e("./algs"),i=e("crypto"),t=e("./errors"),n=e("./key"),a=e("./private-key"),o=e("./certificate"),f=e("./utils"),p=t.FingerprintFormatError,l=t.InvalidAlgorithmError;function h(e){if(s.object(e,"options"),s.string(e.type,"options.type"),s.buffer(e.hash,"options.hash"),s.string(e.algorithm,"options.algorithm"),this.algorithm=e.algorithm.toLowerCase(),!0!==c.hashAlgs[this.algorithm])throw new l(this.algorithm);this.hash=e.hash,this.type=e.type,this.hashType=e.hashType}h.prototype.toString=function(e){switch(void 0===e&&(e="md5"===this.algorithm||"spki"===this.hashType?"hex":"base64"),s.string(e),e){case"hex":return"spki"===this.hashType?this.hash.toString("hex"):this.hash.toString("hex").replace(/(.{2})(?=.)/g,"$1:");case"base64":return"spki"===this.hashType?this.hash.toString("base64"):(t=this.algorithm,r=this.hash.toString("base64"),t.toUpperCase()+":"+r.replace(/=*$/,""));default:throw new p(void 0,e)}var t,r},h.prototype.matches=function(e){s.object(e,"key or certificate"),"key"===this.type&&"ssh"!==this.hashType?(f.assertCompatible(e,n,[1,7],"key with spki"),a.isPrivateKey(e)&&f.assertCompatible(e,a,[1,6],"privatekey with spki support")):"key"===this.type?f.assertCompatible(e,n,[1,0],"key"):f.assertCompatible(e,o,[1,0],"certificate");e=e.hash(this.algorithm,this.hashType),e=i.createHash(this.algorithm).update(e).digest("base64");return void 0===this.hash2&&(this.hash2=i.createHash(this.algorithm).update(this.hash).digest("base64")),this.hash2===e};var d=/^[A-Za-z0-9+\/=]+$/,m=/^[a-fA-F0-9]+$/;h.parse=function(t,e){var r,i,n;s.string(t,"fingerprint"),Array.isArray(e)&&(n=e,e={}),s.optionalObject(e,"options"),void 0!==(e=void 0===e?{}:e).enAlgs&&(n=e.enAlgs),void 0!==e.algorithms&&(n=e.algorithms),s.optionalArrayOfString(n,"algorithms");var a="ssh";void 0!==e.hashType&&(a=e.hashType),s.string(a,"options.hashType");var o=t.split(":");if(2==o.length){if(r=o[0].toLowerCase(),!d.test(o[1]))throw new p(t);try{i=u.from(o[1],"base64")}catch(e){throw new p(t)}}else if(2<o.length){if(o=(o=(o=(r="md5")===o[0].toLowerCase()?o.slice(1):o).map(function(e){for(;e.length<2;)e="0"+e;if(2<e.length)throw new p(t);return e})).join(""),!m.test(o)||o.length%2!=0)throw new p(t);try{i=u.from(o,"hex")}catch(e){throw new p(t)}}else{if(m.test(t))i=u.from(t,"hex");else{if(!d.test(t))throw new p(t);i=u.from(t,"base64")}switch(i.length){case 32:r="sha256";break;case 16:r="md5";break;case 20:r="sha1";break;case 64:r="sha512";break;default:throw new p(t)}void 0===e.hashType&&(a="spki")}if(void 0===r)throw new p(t);if(void 0===c.hashAlgs[r])throw new l(r);if(void 0!==n&&-1===(n=n.map(function(e){return e.toLowerCase()})).indexOf(r))throw new l(r);return new h({algorithm:r,hash:i,type:e.type||"key",hashType:a})},h.isFingerprint=function(e,t){return f.isCompatible(e,h,t)},h.prototype._sshpkApiVersion=[1,2],h._oldVersionDetect=function(e){return s.func(e.toString),s.func(e.matches),[1,0]}},{"./algs":431,"./certificate":432,"./errors":435,"./key":451,"./private-key":452,"./utils":455,"assert-plus":67,crypto:198,"safer-buffer":422}],437:[function(e,t,r){t.exports={read:function(e,t){if("string"==typeof e){if(e.trim().match(/^[-]+[ ]*BEGIN/))return a.read(e,t);if(e.match(/^\s*ssh-[a-z]/))return o.read(e,t);if(e.match(/^\s*ecdsa-/))return o.read(e,t);if(e.match(/^putty-user-key-file-2:/i))return c.read(e,t);if(p(e))return u.read(e,t);e=n.from(e,"binary")}else{if(i.buffer(e),function(e){var t=0;for(;t<e.length&&(32===e[t]||10===e[t]);)++t;if(45!==e[t])return!1;for(;t<e.length&&45===e[t];)++t;for(;t<e.length&&32===e[t];)++t;return!(t+5>e.length||"BEGIN"!==e.slice(t,t+5).toString("ascii"))}(e))return a.read(e,t);if(function(e){var t=0;for(;t<e.length&&(32===e[t]||10===e[t]||9===e[t]);)++t;return t+4<=e.length&&"ssh-"===e.slice(t,t+4).toString("ascii")||t+6<=e.length&&"ecdsa-"===e.slice(t,t+6).toString("ascii")}(e))return o.read(e,t);if(function(e){var t=0;for(;t<e.length&&(32===e[t]||10===e[t]||9===e[t]);)++t;return t+22<=e.length&&"putty-user-key-file-2:"===e.slice(t,t+22).toString("ascii").toLowerCase()}(e))return c.read(e,t);if(p(e))return u.read(e,t)}if(e.readUInt32BE(0)<e.length)return s.read(e,t);throw new Error("Failed to auto-detect format of key")},write:function(e,t){throw new Error('"auto" format cannot be used for writing')}};var i=e("assert-plus"),n=e("safer-buffer").Buffer,a=(e("../utils"),e("../key"),e("../private-key"),e("./pem")),o=e("./ssh"),s=e("./rfc4253"),u=e("./dnssec"),c=e("./putty"),f="Private-key-format: v1";function p(e){if(!(e.length<=f.length)){if(e.slice(0,f.length).toString("ascii")===f)return 1;for(var t=(e="string"!=typeof e?e.toString("ascii"):e).split("\n"),r=0;t[r].match(/^\;/);)r++;return t[r].toString("ascii").match(/\. IN KEY /)||!!t[r].toString("ascii").match(/\. IN DNSKEY /)}}},{"../key":451,"../private-key":452,"../utils":455,"./dnssec":438,"./pem":440,"./putty":443,"./rfc4253":444,"./ssh":446,"assert-plus":67,"safer-buffer":422}],438:[function(e,t,r){t.exports={read:function(e,t){"string"!=typeof e&&(a.buffer(e,"buf"),e=e.toString("ascii"));var r=e.split("\n");if(r[0].match(/^Private-key-format\: v1/)){var i=r[1].split(" "),e=parseInt(i[1],10),i=i[2];if(!f[e])throw new Error("Unsupported algorithm: "+i);return function(e,t){if(f[e].match(/^RSA-/))return function(e){var t={};e.forEach(function(e){"Modulus:"===e.split(" ")[0]?t.n=p(e):"PublicExponent:"===e.split(" ")[0]?t.e=p(e):"PrivateExponent:"===e.split(" ")[0]?t.d=p(e):"Prime1:"===e.split(" ")[0]?t.p=p(e):"Prime2:"===e.split(" ")[0]?t.q=p(e):"Exponent1:"===e.split(" ")[0]?t.dmodp=p(e):"Exponent2:"===e.split(" ")[0]?t.dmodq=p(e):"Coefficient:"===e.split(" ")[0]&&(t.iqmp=p(e))});e={type:"rsa",parts:[{name:"e",data:c.mpNormalize(t.e)},{name:"n",data:c.mpNormalize(t.n)},{name:"d",data:c.mpNormalize(t.d)},{name:"p",data:c.mpNormalize(t.p)},{name:"q",data:c.mpNormalize(t.q)},{name:"dmodp",data:c.mpNormalize(t.dmodp)},{name:"dmodq",data:c.mpNormalize(t.dmodq)},{name:"iqmp",data:c.mpNormalize(t.iqmp)}]};return new u(e)}(t);if("ECDSA-P384-SHA384"!==f[e]&&"ECDSA-P256-SHA256"!==f[e])throw new Error("Unsupported algorithm: "+f[e]);var r=o.from(t[0].split(" ")[1],"base64"),i="nistp384",t=384;"ECDSA-P256-SHA256"===f[e]&&(i="nistp256",t=256);e=c.publicFromPrivateECDSA(i,r).part.Q.data,e={type:"ecdsa",curve:i,size:t,parts:[{name:"curve",data:o.from(i)},{name:"d",data:r},{name:"Q",data:e}]};return new u(e)}(e,r.slice(2))}var n=0;for(;r[n].match(/^\;/);)n++;if(!r[n].match(/\. IN KEY /)&&!r[n].match(/\. IN DNSKEY /)||0!==r[n+1].length)throw new Error("Cannot parse dnssec key");return function(e){var t=e.split(" "),r=parseInt(t[5],10);if(!f[r])throw new Error("Unsupported algorithm: "+r);e=t.slice(6,t.length).join(),t=o.from(e,"base64");if(f[r].match(/^RSA-/)){var i=t.readUInt8(0);if(3!=i&&1!=i)throw new Error("Cannot parse dnssec key: unsupported exponent length");e=t.slice(1,i+1);e=c.mpNormalize(e);var n=t.slice(1+i);n=c.mpNormalize(n);i={type:"rsa",parts:[]};return i.parts.push({name:"e",data:e}),i.parts.push({name:"n",data:n}),new s(i)}if("ECDSA-P384-SHA384"!==f[r]&&"ECDSA-P256-SHA256"!==f[r])throw new Error("Unsupported algorithm: "+f[r]);n="nistp384",i=384;f[r].match(/^ECDSA-P256-SHA256/)&&(n="nistp256",i=256);t={type:"ecdsa",curve:n,size:i,parts:[{name:"curve",data:o.from(n)},{name:"Q",data:c.ecNormalize(t)}]};return new s(t)}(r[n])},write:function(e,t){{if(u.isPrivateKey(e)){if("rsa"===e.type)return function(e,t){e.part.dmodp&&e.part.dmodq||c.addRSAMissing(e);var r="";r+="Private-key-format: v1.3\n",r+="Algorithm: "+function(e){{if(e&&e.hashAlgo&&"sha1"!==e.hashAlgo){if("sha256"===e.hashAlgo)return"8 (RSASHA256)";if("sha512"===e.hashAlgo)return"10 (RSASHA512)";throw new Error("Unknown or unsupported hash: "+e.hashAlgo)}return"5 (RSASHA1)"}}(t)+"\n";t=c.mpDenormalize(e.part.n.data);r+="Modulus: "+t.toString("base64")+"\n";t=c.mpDenormalize(e.part.e.data);r+="PublicExponent: "+t.toString("base64")+"\n";t=c.mpDenormalize(e.part.d.data);r+="PrivateExponent: "+t.toString("base64")+"\n";t=c.mpDenormalize(e.part.p.data);r+="Prime1: "+t.toString("base64")+"\n";t=c.mpDenormalize(e.part.q.data);r+="Prime2: "+t.toString("base64")+"\n";t=c.mpDenormalize(e.part.dmodp.data);r+="Exponent1: "+t.toString("base64")+"\n";t=c.mpDenormalize(e.part.dmodq.data);r+="Exponent2: "+t.toString("base64")+"\n";e=c.mpDenormalize(e.part.iqmp.data);r+="Coefficient: "+e.toString("base64")+"\n";e=new Date;return r+="Created: "+n(e)+"\n",r+="Publish: "+n(e)+"\n",r+="Activate: "+n(e)+"\n",o.from(r,"ascii")}(e,t);if("ecdsa"===e.type)return function(e){var t="";if(t+="Private-key-format: v1.3\n","nistp256"===e.curve)t+="Algorithm: 13 (ECDSAP256SHA256)\n";else{if("nistp384"!==e.curve)throw new Error("Unsupported curve");t+="Algorithm: 14 (ECDSAP384SHA384)\n"}e=e.part.d.data.toString("base64");t+="PrivateKey: "+e+"\n";e=new Date;return t+="Created: "+n(e)+"\n",t+="Publish: "+n(e)+"\n",t+="Activate: "+n(e)+"\n",o.from(t,"ascii")}(e);throw new Error("Unsupported algorithm: "+e.type)}throw s.isKey(e)?new Error('Format "dnssec" only supports writing private keys'):new Error("key is not a Key or PrivateKey")}}};var a=e("assert-plus"),o=e("safer-buffer").Buffer,s=e("../key"),u=e("../private-key"),c=e("../utils"),i=(e("../ssh-buffer"),e("../dhe"),{"rsa-sha1":5,"rsa-sha256":8,"rsa-sha512":10,"ecdsa-p256-sha256":13,"ecdsa-p384-sha384":14}),f={};function p(e){return o.from(e.split(" ")[1],"base64")}function n(e){var t=e.getFullYear()+""+(e.getMonth()+1)+e.getUTCDate();return t+=""+e.getUTCHours()+e.getUTCMinutes(),t+=e.getUTCSeconds()}Object.keys(i).forEach(function(e){f[i[e]]=e.toUpperCase()})},{"../dhe":433,"../key":451,"../private-key":452,"../ssh-buffer":454,"../utils":455,"assert-plus":67,"safer-buffer":422}],439:[function(e,t,r){t.exports={read:function(e,t){f.isBuffer(e)&&(e=e.toString("ascii"));var r=e.trim().split(/[ \t\n]+/g);if(r.length<2||3<r.length)throw new Error("Not a valid SSH certificate line");e=r[0],r=r[1];return i(r=f.from(r,"base64"),e)},verify:function(e,t){return!1},sign:function(t,e){void 0===t.signatures.openssh&&(t.signatures.openssh={});try{var r=a(t,!0)}catch(e){return delete t.signatures.openssh,!1}var i=t.signatures.openssh,n=void 0;"rsa"!==e.type&&"dsa"!==e.type||(n="sha1");n=e.createSign(n);return n.write(r),i.signature=n.sign(),!0},signAsync:function(t,e,r){void 0===t.signatures.openssh&&(t.signatures.openssh={});try{var i=a(t,!0)}catch(e){return delete t.signatures.openssh,void r(e)}var n=t.signatures.openssh;e(i,function(e,t){if(e)r(e);else{try{t.toBuffer("ssh")}catch(e){return void r(e)}n.signature=t,r()}})},write:function(e,t){void 0===t&&(t={});var r=a(e),r=l(e.subjectKey)+" "+r.toString("base64");t.comment&&(r=r+" "+t.comment);return r},fromBuffer:i,toBuffer:a};var g=e("assert-plus"),b=e("../ssh-buffer"),c=e("crypto"),f=e("safer-buffer").Buffer,y=e("../algs"),v=e("../key"),_=(e("../private-key"),e("../identity")),w=e("./rfc4253"),k=e("../signature"),x=e("../utils"),S=e("../certificate");var j={user:1,host:2};Object.keys(j).forEach(function(e){j[j[e]]=e});var E=/^ecdsa-sha2-([^@-]+)-cert-v01@openssh.com$/;function i(e,t,r){var i=new b({buffer:e}),n=i.readString();if(void 0!==t&&n!==t)throw new Error("SSH certificate algorithm mismatch");void 0===t&&(t=n);e={signatures:{}};e.signatures.openssh={},e.signatures.openssh.nonce=i.readBuffer();var n={},a=n.parts=[];n.type=function(e){if("ssh-rsa-cert-v01@openssh.com"===e)return"rsa";if("ssh-dss-cert-v01@openssh.com"===e)return"dsa";if(e.match(E))return"ecdsa";if("ssh-ed25519-cert-v01@openssh.com"===e)return"ed25519";throw new Error("Unsupported cert type "+e)}(t);for(var o=y.info[n.type].parts.length;a.length<o;)a.push(i.readPart());g.ok(1<=a.length,"key must have at least one part");var s=y.info[n.type];"ecdsa"===n.type&&(t=E.exec(t),g.ok(null!==t),g.strictEqual(t[1],a[0].data.toString()));for(var u,c=0;c<s.parts.length;++c)a[c].name=s.parts[c],"curve"!==a[c].name&&!1!==s.normalize&&((u=a[c]).data=x.mpNormalize(u.data));e.subjectKey=new v(n),e.serial=i.readInt64();var f=j[i.readInt()];g.string(f,"valid cert type"),e.signatures.openssh.keyId=i.readString();for(var p=[],n=i.readBuffer(),l=new b({buffer:n});!l.atEnd();)p.push(l.readString());0===p.length&&(p=["*"]),e.subjects=p.map(function(e){if("user"===f)return _.forUser(e);if("host"===f)return _.forHost(e);throw new Error("Unknown identity type "+f)}),e.validFrom=A(i.readInt64()),e.validUntil=A(i.readInt64());for(var h,d=[],m=new b({buffer:i.readBuffer()});!m.atEnd();)(h={critical:!0}).name=m.readString(),h.data=m.readBuffer(),d.push(h);for(m=new b({buffer:i.readBuffer()});!m.atEnd();)(h={critical:!1}).name=m.readString(),h.data=m.readBuffer(),d.push(h);e.signatures.openssh.exts=d,i.readBuffer();n=i.readBuffer();e.issuerKey=w.read(n),e.issuer=_.forHost("**");n=i.readBuffer();return e.signatures.openssh.signature=k.parse(n,e.issuerKey.type,"ssh"),void 0!==r&&(r.remainder=i.remainder(),r.consumed=i._offset),new S(e)}function A(e){var t=4294967296*e.readUInt32BE(0);t+=e.readUInt32BE(4);var r=new Date;return r.setTime(1e3*t),r.sourceInt64=e,r}function p(e){if(void 0!==e.sourceInt64)return e.sourceInt64;var t=Math.round(e.getTime()/1e3),r=Math.floor(t/4294967296),e=Math.floor(t%4294967296),t=f.alloc(8);return t.writeUInt32BE(r,0),t.writeUInt32BE(e,4),t}function a(e,t){g.object(e.signatures.openssh,"signature for openssh format");var r=e.signatures.openssh;void 0===r.nonce&&(r.nonce=c.randomBytes(16));var i=new b({});i.writeString(l(e.subjectKey)),i.writeBuffer(r.nonce);var n=e.subjectKey;y.info[n.type].parts.forEach(function(e){i.writePart(n.part[e])}),i.writeInt64(e.serial);var a=e.subjects[0].type;g.notStrictEqual(a,"unknown"),e.subjects.forEach(function(e){g.strictEqual(e.type,a)}),a=j[a],i.writeInt(a),void 0===r.keyId&&(r.keyId=e.subjects[0].type+"_"+(e.subjects[0].uid||e.subjects[0].hostname)),i.writeString(r.keyId);var o=new b({});e.subjects.forEach(function(e){a===j.host?o.writeString(e.hostname):a===j.user&&o.writeString(e.uid)}),i.writeBuffer(o.toBuffer()),i.writeInt64(p(e.validFrom)),i.writeInt64(p(e.validUntil));var s=r.exts;void 0===s&&(s=[]);var u=new b({});return s.forEach(function(e){!0===e.critical&&(u.writeString(e.name),u.writeBuffer(e.data))}),i.writeBuffer(u.toBuffer()),u=new b({}),s.forEach(function(e){!0!==e.critical&&(u.writeString(e.name),u.writeBuffer(e.data))}),i.writeBuffer(u.toBuffer()),i.writeBuffer(f.alloc(0)),o=w.write(e.issuerKey),i.writeBuffer(o),t||i.writeBuffer(r.signature.toBuffer("ssh")),i.toBuffer()}function l(e){if("rsa"===e.type)return"ssh-rsa-cert-v01@openssh.com";if("dsa"===e.type)return"ssh-dss-cert-v01@openssh.com";if("ecdsa"===e.type)return"ecdsa-sha2-"+e.curve+"-cert-v01@openssh.com";if("ed25519"===e.type)return"ssh-ed25519-cert-v01@openssh.com";throw new Error("Unsupported key type "+e.type)}},{"../algs":431,"../certificate":432,"../identity":449,"../key":451,"../private-key":452,"../signature":453,"../ssh-buffer":454,"../utils":455,"./rfc4253":444,"assert-plus":67,crypto:198,"safer-buffer":422}],440:[function(e,t,r){t.exports={read:function(e,t,r){var i=e;"string"!=typeof e&&(j.buffer(e,"buf"),e=e.toString("ascii"));var n,a,o=e.trim().split(/[\r\n]+/g),s=-1;for(;!n&&s<o.length;)n=o[++s].match(/[-]+[ ]*BEGIN ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);j.ok(n,"invalid PEM header");var u=o.length;for(;!a&&0<u;)a=o[--u].match(/[-]+[ ]*END ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);j.ok(a,"invalid PEM footer"),j.equal(n[2],a[2]);var c,f=n[2].toLowerCase();n[1]&&(j.equal(n[1],a[1],"PEM header and footer mismatch"),c=n[1].trim());o=o.slice(s,u+1);var p,l,h,d,m={};for(;o=o.slice(1),n=o[0].match(/^([A-Za-z0-9-]+): (.+)$/);)m[n[1].toLowerCase()]=n[2];if(o=o.slice(0,-1).join(""),e=P.from(o,"base64"),m["proc-type"]){var g=m["proc-type"].split(",");if("4"===g[0]&&"ENCRYPTED"===g[1]){if("string"==typeof t.passphrase&&(t.passphrase=P.from(t.passphrase,"utf-8")),!P.isBuffer(t.passphrase))throw new B.KeyEncryptedError(t.filename,"PEM");g=m["dek-info"].split(","),j.ok(2===g.length),p=g[0].toLowerCase(),h=P.from(g[1],"hex"),l=I.opensslKeyDeriv(p,h,t.passphrase,1).key}}if(c&&"encrypted"===c.toLowerCase()){var b=new E.BerReader(e);b.readSequence(),b.readSequence(),d=b.offset+b.length;var y=b.readOID();if(y!==F)throw new Error("Unsupported PEM/PKCS8 encryption scheme: "+y);b.readSequence(),b.readSequence();var v=b.offset+b.length,_=b.readOID();if(_!==M)throw new Error("Unsupported PBES2 KDF: "+_);b.readSequence();var w=b.readString(E.Ber.OctetString,!0),g=b.readInt(),y="sha1";if(b.offset<v){b.readSequence();_=b.readOID();if(void 0===(y=N[_]))throw new Error("Unsupported PBKDF2 hash: "+_)}b._offset=v,b.readSequence();v=b.readOID();if(void 0===(p=z[v]))throw new Error("Unsupported PBES2 cipher: "+v);if(h=b.readString(E.Ber.OctetString,!0),b._offset=d,e=b.readString(E.Ber.OctetString,!0),"string"==typeof t.passphrase&&(t.passphrase=P.from(t.passphrase,"utf-8")),!P.isBuffer(t.passphrase))throw new B.KeyEncryptedError(t.filename,"PEM");b=I.opensshCipherInfo(p);p=b.opensslName,l=I.pbkdf2(y,w,g,b.keySize,t.passphrase),c=void 0}if(p&&l&&h){var k,x=A.createDecipheriv(p,l,h),S=[];for(x.once("error",function(e){if(-1!==e.toString().indexOf("bad decrypt"))throw new Error("Incorrect passphrase supplied, could not decrypt key");throw e}),x.write(e),x.end();null!==(k=x.read());)S.push(k);e=P.concat(S)}if(c&&"openssh"===c.toLowerCase())return C.readSSHPrivate(f,e,t);if(c&&"ssh2"===c.toLowerCase())return R.readType(f,e,t);e=new E.BerReader(e);return e.originalInput=i,e.readSequence(),c?(r&&j.strictEqual(r,"pkcs1"),T.readPkcs1(c,f,e)):(r&&j.strictEqual(r,"pkcs8"),O.readPkcs8(c,f,e))},write:function(e,t,r){j.object(e);var i,n={ecdsa:"EC",rsa:"RSA",dsa:"DSA",ed25519:"EdDSA"}[e.type],a=new E.BerWriter;if(l.isPrivateKey(e))r&&"pkcs8"===r?(i="PRIVATE KEY",O.writePkcs8(a,e)):(r&&j.strictEqual(r,"pkcs1"),i=n+" PRIVATE KEY",T.writePkcs1(a,e));else{if(!p.isKey(e))throw new Error("key is not a Key or PrivateKey");r&&"pkcs1"===r?(i=n+" PUBLIC KEY",T.writePkcs1(a,e)):(r&&j.strictEqual(r,"pkcs8"),i="PUBLIC KEY",O.writePkcs8(a,e))}var o=a.buffer.toString("base64"),a=o.length+o.length/64+18+16+2*i.length+10,s=P.alloc(a),u=0;u+=s.write("-----BEGIN "+i+"-----\n",u);for(var c=0;c<o.length;){var f=c+64;f>o.length&&(f=o.length),u+=s.write(o.slice(c,f),u),s[u++]=10,c=f}return u+=s.write("-----END "+i+"-----\n",u),s.slice(0,u)}};var j=e("assert-plus"),E=e("asn1"),A=e("crypto"),P=e("safer-buffer").Buffer,I=(e("../algs"),e("../utils")),p=e("../key"),l=e("../private-key"),T=e("./pkcs1"),O=e("./pkcs8"),C=e("./ssh-private"),R=e("./rfc4253"),B=e("../errors"),F="1.2.840.113549.1.5.13",M="1.2.840.113549.1.5.12",z={"1.2.840.113549.3.7":"3des-cbc","2.16.840.1.101.3.4.1.2":"aes128-cbc","2.16.840.1.101.3.4.1.42":"aes256-cbc"},i={};Object.keys(z).forEach(function(e){i[z[e]]=e});var N={"1.2.840.113549.2.7":"sha1","1.2.840.113549.2.9":"sha256","1.2.840.113549.2.11":"sha512"},n={};Object.keys(N).forEach(function(e){n[N[e]]=e})},{"../algs":431,"../errors":435,"../key":451,"../private-key":452,"../utils":455,"./pkcs1":441,"./pkcs8":442,"./rfc4253":444,"./ssh-private":445,asn1:66,"assert-plus":67,crypto:198,"safer-buffer":422}],441:[function(e,t,r){t.exports={read:function(e,t){return i.read(e,t,"pkcs1")},readPkcs1:function(e,t,r){switch(e){case"RSA":if("public"===t)return function(e){var t=d(e,"modulus"),e=d(e,"exponent");return new l({type:"rsa",parts:[{name:"e",data:e},{name:"n",data:t}]})}(r);if("private"===t)return function(e){var t=d(e,"version");u.strictEqual(t[0],0);var r=d(e,"modulus"),i=d(e,"public exponent"),n=d(e,"private exponent"),a=d(e,"prime1"),o=d(e,"prime2"),s=d(e,"exponent1"),t=d(e,"exponent2"),e=d(e,"iqmp");return new h({type:"rsa",parts:[{name:"n",data:r},{name:"e",data:i},{name:"d",data:n},{name:"iqmp",data:e},{name:"p",data:a},{name:"q",data:o},{name:"dmodp",data:s},{name:"dmodq",data:t}]})}(r);throw new Error("Unknown key type: "+t);case"DSA":if("public"===t)return function(e){var t=d(e,"y"),r=d(e,"p"),i=d(e,"q"),e=d(e,"g");return new l({type:"dsa",parts:[{name:"y",data:t},{name:"p",data:r},{name:"q",data:i},{name:"g",data:e}]})}(r);if("private"===t)return function(e){var t=d(e,"version");u.strictEqual(t.readUInt8(0),0);var r=d(e,"p"),i=d(e,"q"),n=d(e,"g"),t=d(e,"y"),e=d(e,"x");return new h({type:"dsa",parts:[{name:"p",data:r},{name:"q",data:i},{name:"g",data:n},{name:"y",data:t},{name:"x",data:e}]})}(r);throw new Error("Unknown key type: "+t);case"EC":case"ECDSA":if("private"===t)return function(e){var t=d(e,"version");u.strictEqual(t.readUInt8(0),1);var r=e.readString(s.Ber.OctetString,!0);e.readSequence(160);t=n(e);u.string(t,"a known elliptic curve"),e.readSequence(161);e=e.readString(s.Ber.BitString,!0);e=p.ecNormalize(e);r={type:"ecdsa",parts:[{name:"curve",data:c.from(t)},{name:"Q",data:e},{name:"d",data:r}]};return new h(r)}(r);if("public"===t)return function(e){e.readSequence();var t=e.readOID();u.strictEqual(t,"1.2.840.10045.2.1","must be ecPublicKey");for(var r,i=e.readOID(),n=Object.keys(f.curves),a=0;a<n.length;++a){var o=n[a];if(f.curves[o].pkcs8oid===i){r=o;break}}u.string(r,"a known ECDSA named curve");e=e.readString(s.Ber.BitString,!0);e=p.ecNormalize(e);e={type:"ecdsa",parts:[{name:"curve",data:c.from(r)},{name:"Q",data:e}]};return new l(e)}(r);throw new Error("Unknown key type: "+t);case"EDDSA":case"EdDSA":if("private"===t)return function(e){var t=d(e,"version");u.strictEqual(t.readUInt8(0),1);var r=e.readString(s.Ber.OctetString,!0);e.readSequence(160);t=e.readOID();u.strictEqual(t,"1.3.101.112","the ed25519 curve identifier"),e.readSequence(161);e=p.readBitString(e),r={type:"ed25519",parts:[{name:"A",data:p.zeroPadToLength(e,32)},{name:"k",data:r}]};return new h(r)}(r);throw new Error(t+" keys not supported with EdDSA");default:throw new Error("Unknown key algo: "+e)}},write:function(e,t){return i.write(e,t,"pkcs1")},writePkcs1:function(e,t){switch(e.startSequence(),t.type){case"rsa":(h.isPrivateKey(t)?function(e,t){var r=c.from([0]);e.writeBuffer(r,s.Ber.Integer),e.writeBuffer(t.part.n.data,s.Ber.Integer),e.writeBuffer(t.part.e.data,s.Ber.Integer),e.writeBuffer(t.part.d.data,s.Ber.Integer),e.writeBuffer(t.part.p.data,s.Ber.Integer),e.writeBuffer(t.part.q.data,s.Ber.Integer),t.part.dmodp&&t.part.dmodq||p.addRSAMissing(t),e.writeBuffer(t.part.dmodp.data,s.Ber.Integer),e.writeBuffer(t.part.dmodq.data,s.Ber.Integer),e.writeBuffer(t.part.iqmp.data,s.Ber.Integer)}:function(e,t){e.writeBuffer(t.part.n.data,s.Ber.Integer),e.writeBuffer(t.part.e.data,s.Ber.Integer)})(e,t);break;case"dsa":(h.isPrivateKey(t)?function(e,t){var r=c.from([0]);e.writeBuffer(r,s.Ber.Integer),e.writeBuffer(t.part.p.data,s.Ber.Integer),e.writeBuffer(t.part.q.data,s.Ber.Integer),e.writeBuffer(t.part.g.data,s.Ber.Integer),e.writeBuffer(t.part.y.data,s.Ber.Integer),e.writeBuffer(t.part.x.data,s.Ber.Integer)}:function(e,t){e.writeBuffer(t.part.y.data,s.Ber.Integer),e.writeBuffer(t.part.p.data,s.Ber.Integer),e.writeBuffer(t.part.q.data,s.Ber.Integer),e.writeBuffer(t.part.g.data,s.Ber.Integer)})(e,t);break;case"ecdsa":(h.isPrivateKey(t)?function(e,t){var r=c.from([1]);e.writeBuffer(r,s.Ber.Integer),e.writeBuffer(t.part.d.data,s.Ber.OctetString),e.startSequence(160),r=t.part.curve.data.toString(),r=f.curves[r].pkcs8oid,u.string(r,"a known ECDSA named curve"),e.writeOID(r),e.endSequence(),e.startSequence(161),t=p.ecNormalize(t.part.Q.data,!0),e.writeBuffer(t,s.Ber.BitString),e.endSequence()}:function(e,t){e.startSequence(),e.writeOID("1.2.840.10045.2.1");var r=t.part.curve.data.toString(),r=f.curves[r].pkcs8oid;u.string(r,"a known ECDSA named curve"),e.writeOID(r),e.endSequence(),t=p.ecNormalize(t.part.Q.data,!0),e.writeBuffer(t,s.Ber.BitString)})(e,t);break;case"ed25519":h.isPrivateKey(t)?function(e,t){var r=c.from([1]);e.writeBuffer(r,s.Ber.Integer),e.writeBuffer(t.part.k.data,s.Ber.OctetString),e.startSequence(160),e.writeOID("1.3.101.112"),e.endSequence(),e.startSequence(161),p.writeBitString(e,t.part.A.data),e.endSequence()}(e,t):function(){throw new Error("Public keys are not supported for EdDSA PKCS#1")}();break;default:throw new Error("Unknown key algo: "+t.type)}e.endSequence()}};var u=e("assert-plus"),s=e("asn1"),c=e("safer-buffer").Buffer,f=e("../algs"),p=e("../utils"),l=e("../key"),h=e("../private-key"),i=e("./pem"),n=e("./pkcs8").readECDSACurve;function d(e,t){return u.strictEqual(e.peek(),s.Ber.Integer,t+" is not an Integer"),p.mpNormalize(e.readString(s.Ber.Integer,!0))}},{"../algs":431,"../key":451,"../private-key":452,"../utils":455,"./pem":440,"./pkcs8":442,asn1:66,"assert-plus":67,"safer-buffer":422}],442:[function(e,t,r){t.exports={read:function(e,t){return i.read(e,t,"pkcs8")},readPkcs8:function(e,t,r){r.peek()===d.Ber.Integer&&(h.strictEqual(t,"private","unexpected Integer at start of public key"),r.readString(d.Ber.Integer,!0));r.readSequence();var i=r.offset+r.length,n=r.readOID();switch(n){case"1.2.840.113549.1.1.1":return r._offset=i,("public"===t?function(e){e.readSequence(d.Ber.BitString),e.readByte(),e.readSequence();var t=u(e,"modulus"),r=u(e,"exponent"),t={type:"rsa",source:e.originalInput,parts:[{name:"e",data:r},{name:"n",data:t}]};return new a(t)}:function(e){e.readSequence(d.Ber.OctetString),e.readSequence();var t=u(e,"version");h.equal(t[0],0,"unknown RSA private key version");var r=u(e,"modulus"),i=u(e,"public exponent"),n=u(e,"private exponent"),a=u(e,"prime1"),o=u(e,"prime2"),s=u(e,"exponent1"),t=u(e,"exponent2"),e=u(e,"iqmp");return new c({type:"rsa",parts:[{name:"n",data:r},{name:"e",data:i},{name:"d",data:n},{name:"iqmp",data:e},{name:"p",data:a},{name:"q",data:o},{name:"dmodp",data:s},{name:"dmodq",data:t}]})})(r);case"1.2.840.10040.4.1":return("public"===t?function(e){e.readSequence();var t=u(e,"p"),r=u(e,"q"),i=u(e,"g");e.readSequence(d.Ber.BitString),e.readByte();e=u(e,"y");return new a({type:"dsa",parts:[{name:"p",data:t},{name:"q",data:r},{name:"g",data:i},{name:"y",data:e}]})}:function(e){e.readSequence();var t=u(e,"p"),r=u(e,"q"),i=u(e,"g");e.readSequence(d.Ber.OctetString);var n=u(e,"x"),e=b.calculateDSAPublic(i,t,n);return new c({type:"dsa",parts:[{name:"p",data:t},{name:"q",data:r},{name:"g",data:i},{name:"y",data:e},{name:"x",data:n}]})})(r);case"1.2.840.10045.2.1":return("public"===t?function(e){var t=o(e);h.string(t,"a known elliptic curve");e=e.readString(d.Ber.BitString,!0);e=b.ecNormalize(e);e={type:"ecdsa",parts:[{name:"curve",data:m.from(t)},{name:"Q",data:e}]};return new a(e)}:function(e){var t=o(e);h.string(t,"a known elliptic curve"),e.readSequence(d.Ber.OctetString),e.readSequence();var r=u(e,"version");h.equal(r[0],1,"unknown version of ECDSA key");var i,r=e.readString(d.Ber.OctetString,!0);160==e.peek()&&(e.readSequence(160),e._offset+=e.length);161==e.peek()&&(e.readSequence(161),i=e.readString(d.Ber.BitString,!0),i=b.ecNormalize(i));void 0===i&&(e=b.publicFromPrivateECDSA(t,r),i=e.part.Q.data);r={type:"ecdsa",parts:[{name:"curve",data:m.from(t)},{name:"Q",data:i},{name:"d",data:r}]};return new c(r)})(r);case"1.3.101.112":return("public"===t?function(e){0===e.peek()&&e.readByte();e=b.readBitString(e),e={type:"ed25519",parts:[{name:"A",data:b.zeroPadToLength(e,32)}]};return new a(e)}:function(e){0===e.peek()&&e.readByte();e.readSequence(d.Ber.OctetString);var t,r=e.readString(d.Ber.OctetString,!0);r=b.zeroPadToLength(r,32),t=e.peek()===d.Ber.BitString?(t=b.readBitString(e),b.zeroPadToLength(t,32)):b.calculateED25519Public(r);r={type:"ed25519",parts:[{name:"A",data:b.zeroPadToLength(t,32)},{name:"k",data:b.zeroPadToLength(r,32)}]};return new c(r)})(r);case"1.3.101.110":return("public"===t?function(e){e=b.readBitString(e),e={type:"curve25519",parts:[{name:"A",data:b.zeroPadToLength(e,32)}]};return new a(e)}:function(e){0===e.peek()&&e.readByte();e.readSequence(d.Ber.OctetString);var t=e.readString(d.Ber.OctetString,!0);t=b.zeroPadToLength(t,32);e=b.calculateX25519Public(t),t={type:"curve25519",parts:[{name:"A",data:b.zeroPadToLength(e,32)},{name:"k",data:b.zeroPadToLength(t,32)}]};return new c(t)})(r);default:throw new Error("Unknown key type OID "+n)}},write:function(e,t){return i.write(e,t,"pkcs8")},writePkcs8:n,pkcs8ToBuffer:function(e){var t=new d.BerWriter;return n(t,e),t.buffer},readECDSACurve:o,writeECDSACurve:f};var h=e("assert-plus"),d=e("asn1"),m=e("safer-buffer").Buffer,g=e("../algs"),b=e("../utils"),a=e("../key"),c=e("../private-key"),i=e("./pem");function u(e,t){return h.strictEqual(e.peek(),d.Ber.Integer,t+" is not an Integer"),b.mpNormalize(e.readString(d.Ber.Integer,!0))}function o(e){var t,r,i;if(e.peek()===d.Ber.OID){for(var n=e.readOID(),a=Object.keys(g.curves),o=0;o<a.length;++o)if(r=a[o],(i=g.curves[r]).pkcs8oid===n){t=r;break}}else{e.readSequence();var s=e.readString(d.Ber.Integer,!0);h.strictEqual(s[0],1,"ECDSA key not version 1");var u={};e.readSequence();s=e.readOID();h.strictEqual(s,"1.2.840.10045.1.1","ECDSA key is not from a prime-field");s=u.p=b.mpNormalize(e.readString(d.Ber.Integer,!0));u.size=8*s.length-b.countZeros(s),e.readSequence(),u.a=b.mpNormalize(e.readString(d.Ber.OctetString,!0)),u.b=b.mpNormalize(e.readString(d.Ber.OctetString,!0)),e.peek()===d.Ber.BitString&&(u.s=e.readString(d.Ber.BitString,!0)),u.G=e.readString(d.Ber.OctetString,!0),h.strictEqual(u.G[0],4,"uncompressed G is required"),u.n=b.mpNormalize(e.readString(d.Ber.Integer,!0)),u.h=b.mpNormalize(e.readString(d.Ber.Integer,!0)),h.strictEqual(u.h[0],1,"a cofactor=1 curve is required"),a=Object.keys(g.curves);var c=Object.keys(u);for(o=0;o<a.length;++o){r=a[o],i=g.curves[r];for(var f=!0,p=0;p<c.length;++p){var l=c[p];if(void 0!==i[l])if("object"===_typeof(i[l])&&void 0!==i[l].equals){if(!i[l].equals(u[l])){f=!1;break}}else if(m.isBuffer(i[l])){if(i[l].toString("binary")!==u[l].toString("binary")){f=!1;break}}else if(i[l]!==u[l]){f=!1;break}}if(f){t=r;break}}}return t}function n(e,t){var r,i,n,a,o,s,u;switch(e.startSequence(),c.isPrivateKey(t)&&(r=m.from([0]),e.writeBuffer(r,d.Ber.Integer)),e.startSequence(),t.type){case"rsa":e.writeOID("1.2.840.113549.1.1.1"),c.isPrivateKey(t)?function(e,t){t.writeNull(),t.endSequence(),t.startSequence(d.Ber.OctetString),t.startSequence();var r=m.from([0]);t.writeBuffer(r,d.Ber.Integer),t.writeBuffer(e.part.n.data,d.Ber.Integer),t.writeBuffer(e.part.e.data,d.Ber.Integer),t.writeBuffer(e.part.d.data,d.Ber.Integer),t.writeBuffer(e.part.p.data,d.Ber.Integer),t.writeBuffer(e.part.q.data,d.Ber.Integer),e.part.dmodp&&e.part.dmodq||b.addRSAMissing(e),t.writeBuffer(e.part.dmodp.data,d.Ber.Integer),t.writeBuffer(e.part.dmodq.data,d.Ber.Integer),t.writeBuffer(e.part.iqmp.data,d.Ber.Integer),t.endSequence(),t.endSequence()}(t,e):(s=t,(u=e).writeNull(),u.endSequence(),u.startSequence(d.Ber.BitString),u.writeByte(0),u.startSequence(),u.writeBuffer(s.part.n.data,d.Ber.Integer),u.writeBuffer(s.part.e.data,d.Ber.Integer),u.endSequence(),u.endSequence());break;case"dsa":e.writeOID("1.2.840.10040.4.1"),c.isPrivateKey(t)?(a=t,(o=e).startSequence(),o.writeBuffer(a.part.p.data,d.Ber.Integer),o.writeBuffer(a.part.q.data,d.Ber.Integer),o.writeBuffer(a.part.g.data,d.Ber.Integer),o.endSequence(),o.endSequence(),o.startSequence(d.Ber.OctetString),o.writeBuffer(a.part.x.data,d.Ber.Integer),o.endSequence()):(a=t,(o=e).startSequence(),o.writeBuffer(a.part.p.data,d.Ber.Integer),o.writeBuffer(a.part.q.data,d.Ber.Integer),o.writeBuffer(a.part.g.data,d.Ber.Integer),o.endSequence(),o.endSequence(),o.startSequence(d.Ber.BitString),o.writeByte(0),o.writeBuffer(a.part.y.data,d.Ber.Integer),o.endSequence());break;case"ecdsa":e.writeOID("1.2.840.10045.2.1"),c.isPrivateKey(t)?function(e,t){f(e,t),t.endSequence(),t.startSequence(d.Ber.OctetString),t.startSequence();var r=m.from([1]);t.writeBuffer(r,d.Ber.Integer),t.writeBuffer(e.part.d.data,d.Ber.OctetString),t.startSequence(161),e=b.ecNormalize(e.part.Q.data,!0),t.writeBuffer(e,d.Ber.BitString),t.endSequence(),t.endSequence(),t.endSequence()}(t,e):(f(i=t,n=e),n.endSequence(),i=b.ecNormalize(i.part.Q.data,!0),n.writeBuffer(i,d.Ber.BitString));break;case"ed25519":if(e.writeOID("1.3.101.112"),c.isPrivateKey(t))throw new Error("Ed25519 private keys in pkcs8 format are not supported");n=t,(i=e).endSequence(),b.writeBitString(i,n.part.A.data);break;default:throw new Error("Unsupported key type: "+t.type)}e.endSequence()}function f(e,t){var r=g.curves[e.curve];r.pkcs8oid?t.writeOID(r.pkcs8oid):(t.startSequence(),e=m.from([1]),t.writeBuffer(e,d.Ber.Integer),t.startSequence(),t.writeOID("1.2.840.10045.1.1"),t.writeBuffer(r.p,d.Ber.Integer),t.endSequence(),t.startSequence(),0===(e=r.p)[0]&&(e=e.slice(1)),t.writeBuffer(e,d.Ber.OctetString),t.writeBuffer(r.b,d.Ber.OctetString),t.writeBuffer(r.s,d.Ber.BitString),t.endSequence(),t.writeBuffer(r.G,d.Ber.OctetString),t.writeBuffer(r.n,d.Ber.Integer),r=(r=r.h)||m.from([1]),t.writeBuffer(r,d.Ber.Integer),t.endSequence())}},{"../algs":431,"../key":451,"../private-key":452,"../utils":455,"./pem":440,asn1:66,"assert-plus":67,"safer-buffer":422}],443:[function(e,t,r){t.exports={read:function(e,t){var r,i=e.toString("ascii").split(/[\r\n]+/),n=!1,a=0;for(;a<i.length;)if((r=p(i[a++]))&&"putty-user-key-file-2"===r[0].toLowerCase()){n=!0;break}if(!n)throw new Error("No PuTTY format first line found");var o=r[1];r=p(i[a++]),u.equal(r[0].toLowerCase(),"encryption"),r=p(i[a++]),u.equal(r[0].toLowerCase(),"comment");var s=r[1];r=p(i[a++]),u.equal(r[0].toLowerCase(),"public-lines");e=parseInt(r[1],10);if(!isFinite(e)||e<0||e>i.length)throw new Error("Invalid public-lines count");e=c.from(i.slice(a,a+e).join(""),"base64"),o=f.algToKeyType(o),e=f.read(e);if(e.type===o)return e.comment=s,e;throw new Error("Outer key algorithm mismatch")},write:function(e,t){if(u.object(e),!n.isKey(e))throw new Error("Must be a public key");var r=f.keyTypeToAlg(e),i=f.write(e),e=e.comment||"",i=function(e){var t=[],r=0;for(;r<e.length;)t.push(e.slice(r,r+64)),r+=64;return t}(i.toString("base64"));return i.unshift("Public-Lines: "+i.length),i.unshift("Comment: "+e),i.unshift("Encryption: none"),i.unshift("PuTTY-User-Key-File-2: "+r),c.from(i.join("\n")+"\n")}};var u=e("assert-plus"),c=e("safer-buffer").Buffer,f=e("./rfc4253"),n=e("../key");e("../errors");function p(e){var t=e.indexOf(":");if(-1===t)return null;var r=e.slice(0,t);for(++t;" "===e[t];)++t;return[r,e.slice(t)]}},{"../errors":435,"../key":451,"./rfc4253":444,"assert-plus":67,"safer-buffer":422}],444:[function(e,t,r){t.exports={read:i.bind(void 0,!1,void 0),readType:i.bind(void 0,!1),write:function(e,t){d.object(e);var r,i=u(e),n=g.info[e.type];v.isPrivateKey(e)&&(n=g.privInfo[e.type]);var a=n.parts,o=new _({});for(o.writeString(i),r=0;r<a.length;++r){var s=e.part[a[r]].data;!1!==n.normalize&&(s="ed25519"===e.type?b.zeroPadToLength(s,32):b.mpNormalize(s)),"ed25519"===e.type&&"k"===a[r]&&(s=m.concat([s,e.part.A.data])),o.writeBuffer(s)}return o.toBuffer()},readPartial:i.bind(void 0,!0),readInternal:i,keyTypeToAlg:u,algToKeyType:w};var d=e("assert-plus"),m=e("safer-buffer").Buffer,g=e("../algs"),b=e("../utils"),y=e("../key"),v=e("../private-key"),_=e("../ssh-buffer");function w(e){if(d.string(e),"ssh-dss"===e)return"dsa";if("ssh-rsa"===e)return"rsa";if("ssh-ed25519"===e)return"ed25519";if("ssh-curve25519"===e)return"curve25519";if(e.match(/^ecdsa-sha2-/))return"ecdsa";throw new Error("Unknown algorithm "+e)}function u(e){if(d.object(e),"dsa"===e.type)return"ssh-dss";if("rsa"===e.type)return"ssh-rsa";if("ed25519"===e.type)return"ssh-ed25519";if("curve25519"===e.type)return"ssh-curve25519";if("ecdsa"===e.type)return"ecdsa-sha2-"+e.part.curve.data.toString();throw new Error("Unknown key type "+e.type)}function i(e,t,r,i){"string"==typeof r&&(r=m.from(r)),d.buffer(r,"buf");var n={},a=n.parts=[],o=new _({buffer:r}),s=o.readString();d.ok(!o.atEnd(),"key must have at least one part"),n.type=w(s);var u=g.info[n.type].parts.length;for(t&&"private"===t&&(u=g.privInfo[n.type].parts.length);!o.atEnd()&&a.length<u;)a.push(o.readPart());for(;!e&&!o.atEnd();)a.push(o.readPart());d.ok(1<=a.length,"key must have at least one part"),d.ok(e||o.atEnd(),"leftover bytes at end of key");var r=y,c=g.info[n.type];"private"!==t&&c.parts.length===a.length||(c=g.privInfo[n.type],r=v),d.strictEqual(c.parts.length,a.length),"ecdsa"===n.type&&(s=/^ecdsa-sha2-(.+)$/.exec(s),d.ok(null!==s),d.strictEqual(s[1],a[0].data.toString()));for(var f=!0,p=0;p<c.parts.length;++p){var l,h=a[p];h.name=c.parts[p],"ed25519"===n.type&&"k"===h.name&&(h.data=h.data.slice(0,32)),"curve"===h.name||!1===c.normalize||(l="ed25519"===n.type?b.zeroPadToLength(h.data,32):b.mpNormalize(h.data)).toString("binary")!==h.data.toString("binary")&&(h.data=l,f=!1)}return f&&(n._rfc4253Cache=o.toBuffer()),e&&"object"===_typeof(e)&&(e.remainder=o.remainder(),e.consumed=o._offset),new r(n)}},{"../algs":431,"../key":451,"../private-key":452,"../ssh-buffer":454,"../utils":455,"assert-plus":67,"safer-buffer":422}],445:[function(w,e,t){e.exports={read:function(e,t){return r.read(e,t)},readSSHPrivate:function(e,t,r){var i=(t=new P({buffer:t})).readCString();x.strictEqual(i,I,"bad magic string");var n=t.readString(),a=t.readString(),o=t.readBuffer();if(1!==t.readInt())throw new Error("OpenSSH-format key file contains multiple keys: this is unsupported.");i=t.readBuffer();if("public"===e)return x.ok(t.atEnd(),"excess bytes left after key"),b.read(i);var s=t.readBuffer();x.ok(t.atEnd(),"excess bytes left after key");var u=new P({buffer:o});switch(a){case"none":if("none"!==n)throw new Error('OpenSSH-format key uses KDF "none" but specifies a cipher other than "none"');break;case"bcrypt":var c=u.readBuffer(),f=u.readInt(),p=j.opensshCipherInfo(n);if(void 0===k&&(k=w("bcrypt-pbkdf")),"string"==typeof r.passphrase&&(r.passphrase=S.from(r.passphrase,"utf-8")),!S.isBuffer(r.passphrase))throw new y.KeyEncryptedError(r.filename,"OpenSSH");var l=new Uint8Array(r.passphrase),h=new Uint8Array(c),c=new Uint8Array(p.keySize+p.blockSize);if(0!==k.pbkdf(l,l.length,h,h.length,c,c.length,f))throw new Error("bcrypt_pbkdf function returned failure, parameters invalid");var f=(c=S.from(c)).slice(0,p.keySize),c=c.slice(p.keySize,p.keySize+p.blockSize),d=E.createDecipheriv(p.opensslName,f,c);d.setAutoPadding(!1);var m,g=[];for(d.once("error",function(e){if(-1!==e.toString().indexOf("bad decrypt"))throw new Error("Incorrect passphrase supplied, could not decrypt key");throw e}),d.write(s),d.end();null!==(m=d.read());)g.push(m);s=S.concat(g);break;default:throw new Error('OpenSSH-format key uses unknown KDF "'+a+'"')}i=(t=new P({buffer:s})).readInt(),o=t.readInt();if(i!==o)throw new Error("Incorrect passphrase supplied, could not decrypt key");i={},o=b.readInternal(i,"private",t.remainder());t.skip(i.consumed);t=t.readString();return o.comment=t,o},write:function(e,t){m=A.isPrivateKey(e)?e.toPublic():e;var r,i,n="none",a="none",o=S.alloc(0),s={blockSize:8};void 0!==t&&void 0!==(r="string"==typeof(r=t.passphrase)?S.from(r,"utf-8"):r)&&(x.buffer(r,"options.passphrase"),x.optionalString(t.cipher,"options.cipher"),void 0===(n=t.cipher)&&(n="aes128-ctr"),s=j.opensshCipherInfo(n),a="bcrypt");if(A.isPrivateKey(e)){i=new P({});t=E.randomBytes(4).readUInt32BE(0);i.writeInt(t),i.writeInt(t),i.write(e.toBuffer("rfc4253")),i.writeString(e.comment||"");for(var u=1;i._offset%s.blockSize!=0;)i.writeChar(u++);i=i.toBuffer()}switch(a){case"none":break;case"bcrypt":var c=E.randomBytes(16),f=new P({});f.writeBuffer(c),f.writeInt(16),o=f.toBuffer(),void 0===k&&(k=w("bcrypt-pbkdf"));var p=new Uint8Array(r),f=new Uint8Array(c),c=new Uint8Array(s.keySize+s.blockSize);if(0!==k.pbkdf(p,p.length,f,f.length,c,c.length,16))throw new Error("bcrypt_pbkdf function returned failure, parameters invalid");var f=(c=S.from(c)).slice(0,s.keySize),c=c.slice(s.keySize,s.keySize+s.blockSize),l=E.createCipheriv(s.opensslName,f,c);l.setAutoPadding(!1);var h,d=[];for(l.once("error",function(e){throw e}),l.write(i),l.end();null!==(h=l.read());)d.push(h);i=S.concat(d);break;default:throw new Error("Unsupported kdf "+a)}var m,g=new P({});g.writeCString(I),g.writeString(n),g.writeString(a),g.writeBuffer(o),g.writeInt(1),g.writeBuffer(m.toBuffer("rfc4253")),i&&g.writeBuffer(i);g=g.toBuffer(),m=A.isPrivateKey(e)?"OPENSSH PRIVATE KEY":"OPENSSH PUBLIC KEY";var b=g.toString("base64"),e=b.length+b.length/70+18+16+2*m.length+10;g=S.alloc(e);var y=0;y+=g.write("-----BEGIN "+m+"-----\n",y);for(var v=0;v<b.length;){var _=v+70;_>b.length&&(_=b.length),y+=g.write(b.slice(v,_),y),g[y++]=10,v=_}return y+=g.write("-----END "+m+"-----\n",y),g.slice(0,y)}};var k,x=w("assert-plus"),S=(w("asn1"),w("safer-buffer").Buffer),j=(w("../algs"),w("../utils")),E=w("crypto"),A=(w("../key"),w("../private-key")),r=w("./pem"),b=w("./rfc4253"),P=w("../ssh-buffer"),y=w("../errors");var I="openssh-key-v1"},{"../algs":431,"../errors":435,"../key":451,"../private-key":452,"../ssh-buffer":454,"../utils":455,"./pem":440,"./rfc4253":444,asn1:66,"assert-plus":67,"bcrypt-pbkdf":77,crypto:198,"safer-buffer":422}],446:[function(e,t,r){t.exports={read:function(t,e){"string"!=typeof t&&(c.buffer(t,"buf"),t=t.toString("ascii"));var r=t.trim().replace(/[\\\r]/g,""),i=r.match(l);i=i||r.match(h);c.ok(i,"key must match regex");var n,a=p.algToKeyType(i[1]),o=f.from(i[2],"base64"),t={};if(i[4])try{n=p.read(o)}catch(e){i=r.match(h),c.ok(i,"key must match regex"),o=f.from(i[2],"base64"),n=p.readInternal(t,"public",o)}else n=p.readInternal(t,"public",o);if(c.strictEqual(a,n.type),i[4]&&0<i[4].length)n.comment=i[4];else if(t.consumed){var s=i[2]+(i[3]||""),u=4*Math.ceil(t.consumed/3);for(s=s.slice(0,u-2).replace(/[^a-zA-Z0-9+\/=]/g,"")+s.slice(u-2),0<t.consumed%3&&"="!==s.slice(u-1,u)&&u--;"="===s.slice(u,u+1);)u++;t=s.slice(u);(t=t.replace(/[\r\n]/g," ").replace(/^\s+/,"")).match(/^[a-zA-Z0-9]/)&&(n.comment=t)}return n},write:function(e,t){if(c.object(e),!n.isKey(e))throw new Error("Must be a public key");var r=[],i=p.keyTypeToAlg(e);r.push(i);i=p.write(e);r.push(i.toString("base64")),e.comment&&r.push(e.comment);return f.from(r.join(" "))}};var c=e("assert-plus"),f=e("safer-buffer").Buffer,p=e("./rfc4253"),n=(e("../utils"),e("../key")),l=(e("../private-key"),e("./ssh-private"),/^([a-z0-9-]+)[ \t]+([a-zA-Z0-9+\/]+[=]*)([ \t]+([^ \t][^\n]*[\n]*)?)?$/),h=/^([a-z0-9-]+)[ \t\n]+([a-zA-Z0-9+\/][a-zA-Z0-9+\/ \t\n=]*)([^a-zA-Z0-9+\/ \t\n=].*)?$/},{"../key":451,"../private-key":452,"../utils":455,"./rfc4253":444,"./ssh-private":445,"assert-plus":67,"safer-buffer":422}],447:[function(e,t,r){var u=e("./x509");t.exports={read:function(e,t){"string"!=typeof e&&(c.buffer(e,"buf"),e=e.toString("ascii"));var r,i,n=e.trim().split(/[\r\n]+/g),a=-1;for(;!r&&a<n.length;)r=n[++a].match(/[-]+[ ]*BEGIN CERTIFICATE[ ]*[-]+/);c.ok(r,"invalid PEM header");var o=n.length;for(;!i&&0<o;)i=n[--o].match(/[-]+[ ]*END CERTIFICATE[ ]*[-]+/);c.ok(i,"invalid PEM footer"),n=n.slice(a,o+1);var s={};for(;n=n.slice(1),r=n[0].match(/^([A-Za-z0-9-]+): (.+)$/);)s[r[1].toLowerCase()]=r[2];return n=n.slice(0,-1).join(""),e=f.from(n,"base64"),u.read(e,t)},verify:u.verify,sign:u.sign,write:function(e,t){var e=u.write(e,t),t="CERTIFICATE",r=e.toString("base64"),e=r.length+r.length/64+18+16+2*t.length+10,i=f.alloc(e),n=0;n+=i.write("-----BEGIN "+t+"-----\n",n);for(var a=0;a<r.length;){var o=a+64;o>r.length&&(o=r.length),n+=i.write(r.slice(a,o),n),i[n++]=10,a=o}return n+=i.write("-----END "+t+"-----\n",n),i.slice(0,n)}};var c=e("assert-plus"),f=(e("asn1"),e("safer-buffer").Buffer);e("../algs"),e("../utils"),e("../key"),e("../private-key"),e("./pem"),e("../identity"),e("../signature"),e("../certificate")},{"../algs":431,"../certificate":432,"../identity":449,"../key":451,"../private-key":452,"../signature":453,"../utils":455,"./pem":440,"./x509":448,asn1:66,"assert-plus":67,"safer-buffer":422}],448:[function(e,t,r){t.exports={read:function(e,t){"string"==typeof e&&(e=l.from(e,"binary"));p.buffer(e,"buf");var r=new h.BerReader(e);if(r.readSequence(),1<Math.abs(r.length-r.remain))throw new Error("DER sequence does not contain whole byte stream");var i=r.offset;r.readSequence();var n=r.offset+r.length,a=n;r.peek()===v(0)&&(r.readSequence(v(0)),c=r.readInt(),p.ok(c<=3,"only x.509 versions up to v3 supported"));var o={signatures:{}},s=o.signatures.x509={};s.extras={},o.serial=function(e,t){return p.strictEqual(e.peek(),h.Ber.Integer,t+" is not an Integer"),d.mpNormalize(e.readString(h.Ber.Integer,!0))}(r,"serial"),r.readSequence();var u=r.offset+r.length,c=r.readOID();if(void 0===_[c])throw new Error("unknown signature algorithm "+c);r._offset=u,o.issuer=m.parseAsn1(r),r.readSequence(),o.validFrom=k(r),o.validUntil=k(r),o.subjects=[m.parseAsn1(r)],r.readSequence(),u=r.offset+r.length,o.subjectKey=y.readPkcs8(void 0,"public",r),r._offset=u,r.peek()===v(1)&&(r.readSequence(v(1)),s.extras.issuerUniqueID=e.slice(r.offset,r.offset+r.length),r._offset+=r.length);r.peek()===v(2)&&(r.readSequence(v(2)),s.extras.subjectUniqueID=e.slice(r.offset,r.offset+r.length),r._offset+=r.length);if(r.peek()===v(3)){r.readSequence(v(3));var f=r.offset+r.length;for(r.readSequence();r.offset<f;)!function(t,e){e.readSequence();var r,i,n=e.offset+e.length,a=e.readOID(),o=t.signatures.x509;switch(o.extras.exts||(o.extras.exts=[]),e.peek()===h.Ber.Boolean&&(i=e.readBoolean()),a){case w.basicConstraints:e.readSequence(h.Ber.OctetString),e.readSequence();var s=e.offset+e.length,u=!1;e.peek()===h.Ber.Boolean&&(u=e.readBoolean()),void 0===t.purposes&&(t.purposes=[]),!0===u&&t.purposes.push("ca");u={oid:a,critical:i};e.offset<s&&e.peek()===h.Ber.Integer&&(u.pathLen=e.readInt()),o.extras.exts.push(u);break;case w.extKeyUsage:e.readSequence(h.Ber.OctetString),e.readSequence(),void 0===t.purposes&&(t.purposes=[]);for(var c=e.offset+e.length;e.offset<c;){var f=e.readOID();t.purposes.push(E[f]||f)}-1!==t.purposes.indexOf("serverAuth")&&-1===t.purposes.indexOf("clientAuth")?t.subjects.forEach(function(e){"host"!==e.type&&(e.type="host",e.hostname=e.uid||e.email||e.components[0].value)}):-1!==t.purposes.indexOf("clientAuth")&&-1===t.purposes.indexOf("serverAuth")&&t.subjects.forEach(function(e){"user"!==e.type&&(e.type="user",e.uid=e.hostname||e.email||e.components[0].value)}),o.extras.exts.push({oid:a,critical:i});break;case w.keyUsage:e.readSequence(h.Ber.OctetString);u=e.readString(h.Ber.BitString,!0);(function(e,t){for(var r=8*(e.length-1)-e[0],i={},n=0;n<r;++n){var a=1+Math.floor(n/8),o=1<<7-n%8,a=0!=(e[a]&o),o=t[n];a&&"string"==typeof o&&(i[o]=!0)}return Object.keys(i)})(u,A).forEach(function(e){void 0===t.purposes&&(t.purposes=[]),-1===t.purposes.indexOf(e)&&t.purposes.push(e)}),o.extras.exts.push({oid:a,critical:i,bits:u});break;case w.altName:e.readSequence(h.Ber.OctetString),e.readSequence();for(var p=e.offset+e.length;e.offset<p;)switch(e.peek()){case S.OtherName:case S.EDIPartyName:e.readSequence(),e._offset+=e.length;break;case S.OID:e.readOID(S.OID);break;case S.RFC822Name:var l=e.readString(S.RFC822Name);r=m.forEmail(l),t.subjects[0].equals(r)||t.subjects.push(r);break;case S.DirectoryName:e.readSequence(S.DirectoryName),r=m.parseAsn1(e),t.subjects[0].equals(r)||t.subjects.push(r);break;case S.DNSName:l=e.readString(S.DNSName);r=m.forHost(l),t.subjects[0].equals(r)||t.subjects.push(r);break;default:e.readString(e.peek())}o.extras.exts.push({oid:a,critical:i});break;default:o.extras.exts.push({oid:a,critical:i,data:e.readString(h.Ber.OctetString,!0)})}e._offset=n}(o,r);p.strictEqual(r.offset,f)}p.strictEqual(r.offset,n),r.readSequence(),u=r.offset+r.length;c=r.readOID(),n=_[c];if(void 0===n)throw new Error("unknown signature algorithm "+c);r._offset=u;c=r.readString(h.Ber.BitString,!0);0===c[0]&&(c=c.slice(1));u=n.split("-");return s.signature=g.parse(c,u[0],"asn1"),s.signature.hashAlgorithm=u[1],s.algo=n,s.cache=e.slice(i,a),new b(o)},verify:function(e,t){var r=e.signatures.x509;p.object(r,"x509 signature");var i=r.algo.split("-");if(i[0]!==t.type)return!1;var n=r.cache;{var a;void 0===n&&(a=new h.BerWriter,o(e,a),n=a.buffer)}i=t.createVerify(i[1]);return i.write(n),i.verify(r.signature)},sign:function(e,t){void 0===e.signatures.x509&&(e.signatures.x509={});var r=e.signatures.x509;if(r.algo=t.type+"-"+t.defaultHashAlgorithm(),void 0===_[r.algo])return!1;var i=new h.BerWriter;o(e,i);i=i.buffer;r.cache=i;t=t.createSign();return t.write(i),e.signatures.x509.signature=t.sign(),!0},signAsync:function(e,t,r){void 0===e.signatures.x509&&(e.signatures.x509={});var i=e.signatures.x509,n=new h.BerWriter;o(e,n);n=n.buffer;i.cache=n,t(n,function(e,t){e?r(e):(i.algo=t.type+"-"+t.hashAlgorithm,void 0!==_[i.algo]?(i.signature=t,r()):r(new Error('Invalid signing algorithm "'+i.algo+'"')))})},write:function(e,t){var r=e.signatures.x509;p.object(r,"x509 signature");var i=new h.BerWriter;i.startSequence(),r.cache?(i._ensure(r.cache.length),r.cache.copy(i._buf,i._offset),i._offset+=r.cache.length):o(e,i);i.startSequence(),i.writeOID(_[r.algo]),r.algo.match(/^rsa-/)&&i.writeNull();i.endSequence();e=r.signature.toBuffer("asn1"),r=l.alloc(e.length+1);return r[0]=0,e.copy(r,1),i.writeBuffer(r,h.Ber.BitString),i.endSequence(),i.buffer}};var p=e("assert-plus"),h=e("asn1"),l=e("safer-buffer").Buffer,d=(e("../algs"),e("../utils")),m=(e("../key"),e("../private-key"),e("./pem"),e("../identity")),g=e("../signature"),b=e("../certificate"),y=e("./pkcs8");function v(e){return h.Ber.Context|h.Ber.Constructor|e}function f(e){return h.Ber.Context|e}var _={"rsa-md5":"1.2.840.113549.1.1.4","rsa-sha1":"1.2.840.113549.1.1.5","rsa-sha256":"1.2.840.113549.1.1.11","rsa-sha384":"1.2.840.113549.1.1.12","rsa-sha512":"1.2.840.113549.1.1.13","dsa-sha1":"1.2.840.10040.4.3","dsa-sha256":"2.16.840.1.101.3.4.3.2","ecdsa-sha1":"1.2.840.10045.4.1","ecdsa-sha256":"1.2.840.10045.4.3.2","ecdsa-sha384":"1.2.840.10045.4.3.3","ecdsa-sha512":"1.2.840.10045.4.3.4","ed25519-sha512":"1.3.101.112"};Object.keys(_).forEach(function(e){_[_[e]]=e}),_["1.3.14.3.2.3"]="rsa-md5",_["1.3.14.3.2.29"]="rsa-sha1";var w={issuerKeyId:"2.5.29.35",altName:"2.5.29.17",basicConstraints:"2.5.29.19",keyUsage:"2.5.29.15",extKeyUsage:"2.5.29.37"};function k(e){if(e.peek()===h.Ber.UTCTime)return function(e){var t=e.match(a);p.ok(t,"timestamps must be in UTC");var r=new Date,i=r.getUTCFullYear(),n=100*Math.floor(i/100),e=parseInt(t[1],10);e+=i%100<50&&60<=e?n-1:n;r.setUTCFullYear(e,parseInt(t[2],10)-1,parseInt(t[3],10)),r.setUTCHours(parseInt(t[4],10),parseInt(t[5],10)),t[6]&&0<t[6].length&&r.setUTCSeconds(parseInt(t[6],10));return r}(e.readString(h.Ber.UTCTime));if(e.peek()===h.Ber.GeneralizedTime)return function(e){var t=e.match(i);p.ok(t);e=new Date;e.setUTCFullYear(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10)),e.setUTCHours(parseInt(t[4],10),parseInt(t[5],10)),t[6]&&0<t[6].length&&e.setUTCSeconds(parseInt(t[6],10));return e}(e.readString(h.Ber.GeneralizedTime));throw new Error("Unsupported date format")}function x(e,t){var r,i;2050<=t.getUTCFullYear()||t.getUTCFullYear()<1950?e.writeString((i="",i+=n((r=t).getUTCFullYear(),4),i+=n(r.getUTCMonth()+1),i+=n(r.getUTCDate()),i+=n(r.getUTCHours()),i+=n(r.getUTCMinutes()),i+=n(r.getUTCSeconds()),i+="Z"),h.Ber.GeneralizedTime):e.writeString((e="",e+=n((t=t).getUTCFullYear()%100),e+=n(t.getUTCMonth()+1),e+=n(t.getUTCDate()),e+=n(t.getUTCHours()),e+=n(t.getUTCMinutes()),e+=n(t.getUTCSeconds()),e+="Z"),h.Ber.UTCTime)}var S={OtherName:v(0),RFC822Name:f(1),DNSName:f(2),X400Address:v(3),DirectoryName:v(4),EDIPartyName:v(5),URI:f(6),IPAddress:f(7),OID:f(8)},j={serverAuth:"1.3.6.1.5.5.7.3.1",clientAuth:"1.3.6.1.5.5.7.3.2",codeSigning:"1.3.6.1.5.5.7.3.3",joyentDocker:"1.3.6.1.4.1.38678.1.4.1",joyentCmon:"1.3.6.1.4.1.38678.1.4.2"},E={};Object.keys(j).forEach(function(e){E[j[e]]=e});var A=["signature","identity","keyEncryption","encryption","keyAgreement","ca","crl"];var a=/^([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})?Z$/;var i=/^([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})?Z$/;function n(e,t){void 0===t&&(t=2);for(var r=""+e;r.length<t;)r="0"+r;return r}function o(e,r){var t=e.signatures.x509;p.object(t,"x509 signature"),r.startSequence(),r.startSequence(v(0)),r.writeInt(2),r.endSequence(),r.writeBuffer(d.mpNormalize(e.serial),h.Ber.Integer),r.startSequence(),r.writeOID(_[t.algo]),t.algo.match(/^rsa-/)&&r.writeNull(),r.endSequence(),e.issuer.toAsn1(r),r.startSequence(),x(r,e.validFrom),x(r,e.validUntil),r.endSequence();var i=e.subjects[0],n=e.subjects.slice(1);if(i.toAsn1(r),y.writePkcs8(r,e.subjectKey),t.extras&&t.extras.issuerUniqueID&&r.writeBuffer(t.extras.issuerUniqueID,v(1)),t.extras&&t.extras.subjectUniqueID&&r.writeBuffer(t.extras.subjectUniqueID,v(2)),0<n.length||"host"===i.type||void 0!==e.purposes&&0<e.purposes.length||t.extras&&t.extras.exts){r.startSequence(v(3)),r.startSequence();var a=[];void 0!==e.purposes&&0<e.purposes.length&&(a.push({oid:w.basicConstraints,critical:!0}),a.push({oid:w.keyUsage,critical:!0}),a.push({oid:w.extKeyUsage,critical:!0})),a.push({oid:w.altName}),t.extras&&t.extras.exts&&(a=t.extras.exts);for(var o,s,u=0;u<a.length;++u){if(r.startSequence(),r.writeOID(a[u].oid),void 0!==a[u].critical&&r.writeBoolean(a[u].critical),a[u].oid===w.altName){r.startSequence(h.Ber.OctetString),r.startSequence(),"host"===i.type&&r.writeString(i.hostname,f(2));for(var c=0;c<n.length;++c)"host"===n[c].type?r.writeString(n[c].hostname,S.DNSName):"email"===n[c].type?r.writeString(n[c].email,S.RFC822Name):(r.startSequence(S.DirectoryName),n[c].toAsn1(r),r.endSequence());r.endSequence(),r.endSequence()}else a[u].oid===w.basicConstraints?(r.startSequence(h.Ber.OctetString),r.startSequence(),o=-1!==e.purposes.indexOf("ca"),s=a[u].pathLen,r.writeBoolean(o),void 0!==s&&r.writeInt(s),r.endSequence(),r.endSequence()):a[u].oid===w.extKeyUsage?(r.startSequence(h.Ber.OctetString),r.startSequence(),e.purposes.forEach(function(e){var t;"ca"!==e&&-1===A.indexOf(e)&&(void 0!==j[t=e]&&(t=j[e]),r.writeOID(t))}),r.endSequence(),r.endSequence()):a[u].oid===w.keyUsage?(r.startSequence(h.Ber.OctetString),void 0!==a[u].bits?r.writeBuffer(a[u].bits,h.Ber.BitString):(s=function(e,t){var r=t.length,i=Math.ceil(r/8),n=8*i-r,a=l.alloc(1+i);a[0]=n;for(var o=0;o<r;++o){var s=1+Math.floor(o/8),u=1<<7-o%8,c=t[o];void 0!==c&&-1!==e.indexOf(c)&&(a[s]|=u)}return a}(e.purposes,A),r.writeBuffer(s,h.Ber.BitString)),r.endSequence()):r.writeBuffer(a[u].data,h.Ber.OctetString);r.endSequence()}r.endSequence(),r.endSequence()}r.endSequence()}},{"../algs":431,"../certificate":432,"../identity":449,"../key":451,"../private-key":452,"../signature":453,"../utils":455,"./pem":440,"./pkcs8":442,asn1:66,"assert-plus":67,"safer-buffer":422}],449:[function(e,t,r){t.exports=f;var a=e("assert-plus"),i=(e("./algs"),e("crypto"),e("./fingerprint"),e("./signature"),e("./errors"),e("util"),e("./utils")),u=e("asn1"),n=e("safer-buffer").Buffer,o=/^([*]|[a-z0-9][a-z0-9\-]{0,62})(?:\.([*]|[a-z0-9][a-z0-9\-]{0,62}))*$/i,s={cn:"2.5.4.3",o:"2.5.4.10",ou:"2.5.4.11",l:"2.5.4.7",s:"2.5.4.8",c:"2.5.4.6",sn:"2.5.4.4",postalCode:"2.5.4.17",serialNumber:"2.5.4.5",street:"2.5.4.9",x500UniqueIdentifier:"2.5.4.45",role:"2.5.4.72",telephoneNumber:"2.5.4.20",description:"2.5.4.13",dc:"0.9.2342.19200300.100.1.25",uid:"0.9.2342.19200300.100.1.1",mail:"0.9.2342.19200300.100.1.3",title:"2.5.4.12",gn:"2.5.4.42",initials:"2.5.4.43",pseudonym:"2.5.4.65",emailAddress:"1.2.840.113549.1.9.1"},c={};function f(e){var t=this;if(a.object(e,"options"),a.arrayOfObject(e.components,"options.components"),this.components=e.components,this.componentLookup={},this.components.forEach(function(e){e.name&&!e.oid&&(e.oid=s[e.name]),e.oid&&!e.name&&(e.name=c[e.oid]),void 0===t.componentLookup[e.name]&&(t.componentLookup[e.name]=[]),t.componentLookup[e.name].push(e)}),this.componentLookup.cn&&0<this.componentLookup.cn.length&&(this.cn=this.componentLookup.cn[0].value),a.optionalString(e.type,"options.type"),void 0===e.type)1===this.components.length&&this.componentLookup.cn&&1===this.componentLookup.cn.length&&this.componentLookup.cn[0].value.match(o)?(this.type="host",this.hostname=this.componentLookup.cn[0].value):this.componentLookup.dc&&this.components.length===this.componentLookup.dc.length?(this.type="host",this.hostname=this.componentLookup.dc.map(function(e){return e.value}).join(".")):this.componentLookup.uid&&this.components.length===this.componentLookup.uid.length?(this.type="user",this.uid=this.componentLookup.uid[0].value):this.componentLookup.cn&&1===this.componentLookup.cn.length&&this.componentLookup.cn[0].value.match(o)?(this.type="host",this.hostname=this.componentLookup.cn[0].value):this.componentLookup.uid&&1===this.componentLookup.uid.length?(this.type="user",this.uid=this.componentLookup.uid[0].value):this.componentLookup.mail&&1===this.componentLookup.mail.length?(this.type="email",this.email=this.componentLookup.mail[0].value):this.componentLookup.cn&&1===this.componentLookup.cn.length?(this.type="user",this.uid=this.componentLookup.cn[0].value):this.type="unknown";else if(this.type=e.type,"host"===this.type)this.hostname=e.hostname;else if("user"===this.type)this.uid=e.uid;else{if("email"!==this.type)throw new Error("Unknown type "+this.type);this.email=e.email}}Object.keys(s).forEach(function(e){c[s[e]]=e}),f.prototype.toString=function(){return this.components.map(function(e){return e.name.toUpperCase().replace(/=/g,"\\=")+"="+e.value.replace(/,/g,"\\,")}).join(", ")},f.prototype.get=function(e,t){a.string(e,"name");var r=this.componentLookup[e];if(void 0!==r&&0!==r.length){if(!t&&1<r.length)throw new Error("Multiple values for attribute "+e);return t?r.map(function(e){return e.value}):r[0].value}},f.prototype.toArray=function(e){return this.components.map(function(e){return{name:e.name,value:e.value}})};var p=/[^a-zA-Z0-9 '(),+.\/:=?-]/,l=/[^\x00-\x7f]/;f.prototype.toAsn1=function(r,e){r.startSequence(e),this.components.forEach(function(e){var t;r.startSequence(u.Ber.Constructor|u.Ber.Set),r.startSequence(),r.writeOID(e.oid),e.asn1type===u.Ber.Utf8String||e.value.match(l)?(t=n.from(e.value,"utf8"),r.writeBuffer(t,u.Ber.Utf8String)):e.asn1type===u.Ber.IA5String||e.value.match(p)?r.writeString(e.value,u.Ber.IA5String):(t=u.Ber.PrintableString,void 0!==e.asn1type&&(t=e.asn1type),r.writeString(e.value,t)),r.endSequence(),r.endSequence()}),r.endSequence()},f.prototype.equals=function(e){if(!f.isIdentity(e,[1,0]))return!1;if(e.components.length!==this.components.length)return!1;for(var t=0;t<this.components.length;++t){if(this.components[t].oid!==e.components[t].oid)return!1;if(!function(e,t){if("**"===e||"**"===t)return 1;var r=e.split("."),i=t.split(".");if(r.length===i.length){for(var n=0;n<r.length;++n)if("*"!==r[n]&&"*"!==i[n]&&r[n]!==i[n])return;return 1}}(this.components[t].value,e.components[t].value))return!1}return!0},f.forHost=function(e){return a.string(e,"hostname"),new f({type:"host",hostname:e,components:[{name:"cn",value:e}]})},f.forUser=function(e){return a.string(e,"uid"),new f({type:"user",uid:e,components:[{name:"uid",value:e}]})},f.forEmail=function(e){return a.string(e,"email"),new f({type:"email",email:e,components:[{name:"mail",value:e}]})},f.parseDN=function(e){a.string(e,"dn");for(var t,r=[""],i=0,n=e;0<n.length;)if(null!==(t=/^,/.exec(n)))r[++i]="",n=n.slice(t[0].length);else if(null!==(t=/^\\,/.exec(n)))r[i]+=",",n=n.slice(t[0].length);else if(null!==(t=/^\\./.exec(n)))r[i]+=t[0],n=n.slice(t[0].length);else{if(null===(t=/^[^\\,]+/.exec(n)))throw new Error("Failed to parse DN");r[i]+=t[0],n=n.slice(t[0].length)}return new f({components:r.map(function(e){for(var t=(e=e.trim()).indexOf("=");0<t&&"\\"===e.charAt(t-1);)t=e.indexOf("=",t+1);if(-1===t)throw new Error("Failed to parse DN");return{name:e.slice(0,t).toLowerCase().replace(/\\=/g,"="),value:e.slice(t+1)}})})},f.fromArray=function(e){return a.arrayOfObject(e,"components"),e.forEach(function(e){if(a.object(e,"component"),a.string(e.name,"component.name"),!n.isBuffer(e.value)&&"string"!=typeof e.value)throw new Error("Invalid component value")}),new f({components:e})},f.parseAsn1=function(e,t){var r=[];e.readSequence(t);for(var i=e.offset+e.length;e.offset<i;){e.readSequence(u.Ber.Constructor|u.Ber.Set);var n=e.offset+e.length;e.readSequence();var a,o=e.readOID(),s=e.peek();switch(s){case u.Ber.PrintableString:case u.Ber.IA5String:case u.Ber.OctetString:case u.Ber.T61String:a=e.readString(s);break;case u.Ber.Utf8String:a=(a=e.readString(s,!0)).toString("utf8");break;case u.Ber.CharacterString:case u.Ber.BMPString:a=(a=e.readString(s,!0)).toString("utf16le");break;default:throw new Error("Unknown asn1 type "+s)}r.push({oid:o,asn1type:s,value:a}),e._offset=n}return e._offset=i,new f({components:r})},f.isIdentity=function(e,t){return i.isCompatible(e,f,t)},f.prototype._sshpkApiVersion=[1,0],f._oldVersionDetect=function(e){return[1,0]}},{"./algs":431,"./errors":435,"./fingerprint":436,"./signature":453,"./utils":455,asn1:66,"assert-plus":67,crypto:198,"safer-buffer":422,util:481}],450:[function(e,t,r){var i=e("./key"),n=e("./fingerprint"),a=e("./signature"),o=e("./private-key"),s=e("./certificate"),u=e("./identity"),e=e("./errors");t.exports={Key:i,parseKey:i.parse,Fingerprint:n,parseFingerprint:n.parse,Signature:a,parseSignature:a.parse,PrivateKey:o,parsePrivateKey:o.parse,generatePrivateKey:o.generate,Certificate:s,parseCertificate:s.parse,createSelfSignedCertificate:s.createSelfSigned,createCertificate:s.create,Identity:u,identityFromDN:u.parseDN,identityForHost:u.forHost,identityForUser:u.forUser,identityForEmail:u.forEmail,identityFromArray:u.fromArray,FingerprintFormatError:e.FingerprintFormatError,InvalidAlgorithmError:e.InvalidAlgorithmError,KeyParseError:e.KeyParseError,SignatureParseError:e.SignatureParseError,KeyEncryptedError:e.KeyEncryptedError,CertificateParseError:e.CertificateParseError}},{"./certificate":432,"./errors":435,"./fingerprint":436,"./identity":449,"./key":451,"./private-key":452,"./signature":453}],451:[function(m,g,e){(function(d){(function(){g.exports=i;var u,c=m("assert-plus"),o=m("./algs"),f=m("crypto"),r=m("./fingerprint"),p=m("./signature"),e=m("./dhe").DiffieHellman,t=m("./errors"),s=m("./utils"),n=m("./private-key");try{u=m("./ed-compat")}catch(e){}var l=t.InvalidAlgorithmError,a=t.KeyParseError,h={};function i(e){c.object(e,"options"),c.arrayOfObject(e.parts,"options.parts"),c.string(e.type,"options.type"),c.optionalString(e.comment,"options.comment");var t=o.info[e.type];if("object"!==_typeof(t))throw new l(e.type);for(var r,i={},n=0;n<e.parts.length;++n){var a=e.parts[n];i[a.name]=a}this.type=e.type,this.parts=e.parts,this.part=i,this.comment=void 0,this.source=e.source,this._rfc4253Cache=e._rfc4253Cache,this._hashCache={},this.curve=void 0,"ecdsa"===this.type?(r=this.part.curve.data.toString(),this.curve=r,r=o.curves[r].size):"ed25519"===this.type||"curve25519"===this.type?(r=256,this.curve="curve25519"):r=8*(r=(t=this.part[t.sizePart]).data.length)-s.countZeros(t.data),this.size=r}h.auto=m("./formats/auto"),h.pem=m("./formats/pem"),h.pkcs1=m("./formats/pkcs1"),h.pkcs8=m("./formats/pkcs8"),h.rfc4253=m("./formats/rfc4253"),h.ssh=m("./formats/ssh"),h["ssh-private"]=m("./formats/ssh-private"),h.openssh=h["ssh-private"],h.dnssec=m("./formats/dnssec"),h.putty=m("./formats/putty"),h.ppk=h.putty,i.formats=h,i.prototype.toBuffer=function(e,t){return void 0===e&&(e="ssh"),c.string(e,"format"),c.object(h[e],"formats[format]"),c.optionalObject(t,"options"),"rfc4253"===e?(void 0===this._rfc4253Cache&&(this._rfc4253Cache=h.rfc4253.write(this)),this._rfc4253Cache):h[e].write(this,t)},i.prototype.toString=function(e,t){return this.toBuffer(e,t).toString()},i.prototype.hash=function(e,t){if(c.string(e,"algorithm"),c.optionalString(t,"type"),void 0===t&&(t="ssh"),e=e.toLowerCase(),void 0===o.hashAlgs[e])throw new l(e);var r=e+"||"+t;if(this._hashCache[r])return this._hashCache[r];if("ssh"===t)i=this.toBuffer("rfc4253");else{if("spki"!==t)throw new Error("Hash type "+t+" not supported");i=h.pkcs8.pkcs8ToBuffer(this)}var i=f.createHash(e).update(i).digest();return this._hashCache[r]=i},i.prototype.fingerprint=function(e,t){void 0===e&&(e="sha256"),void 0===t&&(t="ssh"),c.string(e,"algorithm"),c.string(t,"type");t={type:"key",hash:this.hash(e,t),algorithm:e,hashType:t};return new r(t)},i.prototype.defaultHashAlgorithm=function(){var e="sha1";return"rsa"===this.type&&(e="sha256"),"dsa"===this.type&&1024<this.size&&(e="sha256"),"ed25519"===this.type&&(e="sha512"),e="ecdsa"===this.type?this.size<=256?"sha256":this.size<=384?"sha384":"sha512":e},i.prototype.createVerify=function(r){if(void 0===r&&(r=this.defaultHashAlgorithm()),c.string(r,"hash algorithm"),"ed25519"===this.type&&void 0!==u)return new u.Verifier(this,r);if("curve25519"===this.type)throw new Error("Curve25519 keys are not suitable for signing or verification");var e,t,i;try{t=r.toUpperCase(),e=f.createVerify(t)}catch(e){i=e}(void 0===e||i instanceof Error&&i.message.match(/Unknown message digest/))&&(t="RSA-",t+=r.toUpperCase(),e=f.createVerify(t)),c.ok(e,"failed to create verifier");var n=e.verify.bind(e),a=this.toBuffer("pkcs8"),o=this.curve,s=this;return e.verify=function(e,t){if(p.isSignature(e,[2,0]))return e.type===s.type&&((!e.hashAlgorithm||e.hashAlgorithm===r)&&((!e.curve||"ecdsa"!==s.type||e.curve===o)&&n(a,e.toBuffer("asn1"))));if("string"==typeof e||d.isBuffer(e))return n(a,e,t);throw p.isSignature(e,[1,0])?new Error("signature was created by too old a version of sshpk and cannot be verified"):new TypeError("signature must be a string, Buffer, or Signature object")},e},i.prototype.createDH=i.prototype.createDiffieHellman=function(){if("rsa"===this.type)throw new Error("RSA keys do not support Diffie-Hellman");return new e(this)},i.parse=function(e,t,r){"string"!=typeof e&&c.buffer(e,"data"),void 0===t&&(t="auto"),c.string(t,"format"),"string"==typeof r&&(r={filename:r}),c.optionalObject(r,"options"),void 0===r&&(r={}),c.optionalString(r.filename,"options.filename"),void 0===r.filename&&(r.filename="(unnamed)"),c.object(h[t],"formats[format]");try{var i=h[t].read(e,r);return(i=i instanceof n?i.toPublic():i).comment||(i.comment=r.filename),i}catch(e){if("KeyEncryptedError"===e.name)throw e;throw new a(r.filename,t,e)}},i.isKey=function(e,t){return s.isCompatible(e,i,t)},i.prototype._sshpkApiVersion=[1,7],i._oldVersionDetect=function(e){return c.func(e.toBuffer),c.func(e.fingerprint),e.createDH?[1,4]:e.defaultHashAlgorithm?[1,3]:e.formats.auto?[1,2]:e.formats.pkcs1?[1,1]:[1,0]}}).call(this)}).call(this,{isBuffer:m("../../is-buffer/index.js")})},{"../../is-buffer/index.js":297,"./algs":431,"./dhe":433,"./ed-compat":434,"./errors":435,"./fingerprint":436,"./formats/auto":437,"./formats/dnssec":438,"./formats/pem":440,"./formats/pkcs1":441,"./formats/pkcs8":442,"./formats/putty":443,"./formats/rfc4253":444,"./formats/ssh":446,"./formats/ssh-private":445,"./private-key":452,"./signature":453,"./utils":455,"assert-plus":67,crypto:198}],452:[function(e,t,r){t.exports=y;var u=e("assert-plus"),c=e("safer-buffer").Buffer,n=e("./algs"),f=e("crypto"),p=(e("./fingerprint"),e("./signature")),i=e("./errors"),a=e("util"),o=e("./utils"),t=e("./dhe"),s=t.generateECDSA,l=t.generateED25519,h=e("./ed-compat"),d=e("tweetnacl"),m=e("./key"),g=(i.InvalidAlgorithmError,i.KeyParseError),b=(i.KeyEncryptedError,{});function y(e){u.object(e,"options"),m.call(this,e),this._pubCache=void 0}b.auto=e("./formats/auto"),b.pem=e("./formats/pem"),b.pkcs1=e("./formats/pkcs1"),b.pkcs8=e("./formats/pkcs8"),b.rfc4253=e("./formats/rfc4253"),b["ssh-private"]=e("./formats/ssh-private"),b.openssh=b["ssh-private"],b.ssh=b["ssh-private"],b.dnssec=e("./formats/dnssec"),a.inherits(y,m),y.formats=b,y.prototype.toBuffer=function(e,t){return void 0===e&&(e="pkcs1"),u.string(e,"format"),u.object(b[e],"formats[format]"),u.optionalObject(t,"options"),b[e].write(this,t)},y.prototype.hash=function(e,t){return this.toPublic().hash(e,t)},y.prototype.fingerprint=function(e,t){return this.toPublic().fingerprint(e,t)},y.prototype.toPublic=function(){if(this._pubCache)return this._pubCache;for(var e=n.info[this.type],t=[],r=0;r<e.parts.length;++r){var i=e.parts[r];t.push(this.part[i])}return this._pubCache=new m({type:this.type,source:this,parts:t}),this.comment&&(this._pubCache.comment=this.comment),this._pubCache},y.prototype.derive=function(e){var t,r,i;if(u.string(e,"type"),"ed25519"===this.type&&"curve25519"===e)return 0===(t=this.part.k.data)[0]&&(t=t.slice(1)),i=d.box.keyPair.fromSecretKey(new Uint8Array(t)),r=c.from(i.publicKey),new y({type:"curve25519",parts:[{name:"A",data:o.mpNormalize(r)},{name:"k",data:o.mpNormalize(t)}]});if("curve25519"===this.type&&"ed25519"===e)return 0===(t=this.part.k.data)[0]&&(t=t.slice(1)),i=d.sign.keyPair.fromSeed(new Uint8Array(t)),r=c.from(i.publicKey),new y({type:"ed25519",parts:[{name:"A",data:o.mpNormalize(r)},{name:"k",data:o.mpNormalize(t)}]});throw new Error("Key derivation not supported from "+this.type+" to "+e)},y.prototype.createVerify=function(e){return this.toPublic().createVerify(e)},y.prototype.createSign=function(t){if(void 0===t&&(t=this.defaultHashAlgorithm()),u.string(t,"hash algorithm"),"ed25519"===this.type&&void 0!==h)return new h.Signer(this,t);if("curve25519"===this.type)throw new Error("Curve25519 keys are not suitable for signing or verification");var e,r,i;try{r=t.toUpperCase(),e=f.createSign(r)}catch(e){i=e}(void 0===e||i instanceof Error&&i.message.match(/Unknown message digest/))&&(r="RSA-",r+=t.toUpperCase(),e=f.createSign(r)),u.ok(e,"failed to create verifier");var n=e.sign.bind(e),a=this.toBuffer("pkcs1"),o=this.type,s=this.curve;return e.sign=function(){var e=n(a);return"string"==typeof e&&(e=c.from(e,"binary")),(e=p.parse(e,o,"asn1")).hashAlgorithm=t,e.curve=s,e},e},y.parse=function(e,t,r){"string"!=typeof e&&u.buffer(e,"data"),void 0===t&&(t="auto"),u.string(t,"format"),"string"==typeof r&&(r={filename:r}),u.optionalObject(r,"options"),void 0===r&&(r={}),u.optionalString(r.filename,"options.filename"),void 0===r.filename&&(r.filename="(unnamed)"),u.object(b[t],"formats[format]");try{var i=b[t].read(e,r);return u.ok(i instanceof y,"key is not a private key"),i.comment||(i.comment=r.filename),i}catch(e){if("KeyEncryptedError"===e.name)throw e;throw new g(r.filename,t,e)}},y.isPrivateKey=function(e,t){return o.isCompatible(e,y,t)},y.generate=function(e,t){switch(void 0===t&&(t={}),u.object(t,"options"),e){case"ecdsa":return void 0===t.curve&&(t.curve="nistp256"),u.string(t.curve,"options.curve"),s(t.curve);case"ed25519":return l();default:throw new Error('Key generation not supported with key type "'+e+'"')}},y.prototype._sshpkApiVersion=[1,6],y._oldVersionDetect=function(e){return u.func(e.toPublic),u.func(e.createSign),e.derive?[1,3]:e.defaultHashAlgorithm?[1,2]:e.formats.auto?[1,1]:[1,0]}},{"./algs":431,"./dhe":433,"./ed-compat":434,"./errors":435,"./fingerprint":436,"./formats/auto":437,"./formats/dnssec":438,"./formats/pem":440,"./formats/pkcs1":441,"./formats/pkcs8":442,"./formats/rfc4253":444,"./formats/ssh-private":445,"./key":451,"./signature":453,"./utils":455,"assert-plus":67,crypto:198,"safer-buffer":422,tweetnacl:474,util:481}],453:[function(e,t,r){t.exports=l;var s=e("assert-plus"),u=e("safer-buffer").Buffer,t=(e("./algs"),e("crypto"),e("./errors")),c=e("./utils"),f=e("asn1"),p=e("./ssh-buffer"),n=t.InvalidAlgorithmError,a=t.SignatureParseError;function l(e){s.object(e,"options"),s.arrayOfObject(e.parts,"options.parts"),s.string(e.type,"options.type");for(var t={},r=0;r<e.parts.length;++r){var i=e.parts[r];t[i.name]=i}this.type=e.type,this.hashAlgorithm=e.hashAlgo,this.curve=e.curve,this.parts=e.parts,this.part=t}function o(e,t,r,i){if("ssh"===r){try{var n=new p({buffer:e}),a=n.readString()}catch(e){}if(void 0!==n){var o="SSH signature does not match expected type (expected "+t+", got "+a+")";switch(a){case"ssh-rsa":s.strictEqual(t,"rsa",o),i.hashAlgo="sha1";break;case"rsa-sha2-256":s.strictEqual(t,"rsa",o),i.hashAlgo="sha256";break;case"rsa-sha2-512":s.strictEqual(t,"rsa",o),i.hashAlgo="sha512";break;case"ssh-ed25519":s.strictEqual(t,"ed25519",o),i.hashAlgo="sha512";break;default:throw new Error("Unknown SSH signature type: "+a)}r=n.readPart();return s.ok(n.atEnd(),"extra trailing bytes"),r.name="sig",i.parts.push(r),new l(i)}}return i.parts.push({name:"sig",data:e}),new l(i)}l.prototype.toBuffer=function(e){var t;void 0===e&&(e="asn1"),s.string(e,"format");var r="ssh-"+this.type;switch(this.type){case"rsa":switch(this.hashAlgorithm){case"sha256":r="rsa-sha2-256";break;case"sha512":r="rsa-sha2-512";break;case"sha1":case void 0:break;default:throw new Error("SSH signature format does not support hash algorithm "+this.hashAlgorithm)}return"ssh"===e?((t=new p({})).writeString(r),t.writePart(this.part.sig),t.toBuffer()):this.part.sig.data;case"ed25519":return"ssh"===e?((t=new p({})).writeString(r),t.writePart(this.part.sig),t.toBuffer()):this.part.sig.data;case"dsa":case"ecdsa":if("asn1"===e){var i=new f.BerWriter;return i.startSequence(),o=c.mpNormalize(this.part.r.data),a=c.mpNormalize(this.part.s.data),i.writeBuffer(o,f.Ber.Integer),i.writeBuffer(a,f.Ber.Integer),i.endSequence(),i.buffer}if("ssh"===e&&"dsa"===this.type){if((t=new p({})).writeString("ssh-dss"),20<(o=this.part.r.data).length&&0===o[0]&&(o=o.slice(1)),20<(a=this.part.s.data).length&&0===a[0]&&(a=a.slice(1)),this.hashAlgorithm&&"sha1"!==this.hashAlgorithm||o.length+a.length!==40)throw new Error("OpenSSH only supports DSA signatures with SHA1 hash");return t.writeBuffer(u.concat([o,a])),t.toBuffer()}if("ssh"!==e||"ecdsa"!==this.type)throw new Error("Invalid signature format");var n,a=new p({}),o=this.part.r.data;a.writeBuffer(o),a.writePart(this.part.s),t=new p({});o=8*(o=0===o[0]?o.slice(1):o).length;return 256==o?n="nistp256":384==o?n="nistp384":528==o&&(n="nistp521"),t.writeString("ecdsa-sha2-"+n),t.writeBuffer(a.toBuffer()),t.toBuffer();default:throw new Error("Invalid signature data")}},l.prototype.toString=function(e){return s.optionalString(e,"format"),this.toBuffer(e).toString("base64")},l.parse=function(e,t,r){"string"==typeof e&&(e=u.from(e,"base64")),s.buffer(e,"data"),s.string(r,"format"),s.string(t,"type");var i={};i.type=t.toLowerCase(),i.parts=[];try{switch(s.ok(0<e.length,"signature must not be empty"),i.type){case"rsa":case"ed25519":return o(e,t,r,i);case"dsa":case"ecdsa":return("asn1"===r?function(e,t){var r=new f.BerReader(e);r.readSequence();e=r.readString(f.Ber.Integer,!0),r=r.readString(f.Ber.Integer,!0);return t.parts.push({name:"r",data:c.mpNormalize(e)}),t.parts.push({name:"s",data:c.mpNormalize(r)}),new l(t)}:"dsa"===i.type?function(e,t){{var r,i;40!=e.length&&(r=new p({buffer:e}),"ssh-dss"===(i=r.readBuffer()).toString("ascii")&&(i=r.readBuffer()),s.ok(r.atEnd(),"extra trailing bytes"),s.strictEqual(i.length,40,"invalid inner length"),e=i)}return t.parts.push({name:"r",data:e.slice(0,20)}),t.parts.push({name:"s",data:e.slice(20,40)}),new l(t)}:function(e,t){var r=new p({buffer:e}),i=r.readBuffer(),e=i.toString("ascii");if("ecdsa-"===e.slice(0,6)){var n=e.split("-");switch(s.strictEqual(n[0],"ecdsa"),s.strictEqual(n[1],"sha2"),t.curve=n[2],t.curve){case"nistp256":t.hashAlgo="sha256";break;case"nistp384":t.hashAlgo="sha384";break;case"nistp521":t.hashAlgo="sha512";break;default:throw new Error("Unsupported ECDSA curve: "+t.curve)}i=r.readBuffer(),s.ok(r.atEnd(),"extra trailing bytes on outer"),r=new p({buffer:i}),n=r.readPart()}else n={data:i};return i=r.readPart(),s.ok(r.atEnd(),"extra trailing bytes"),n.name="r",i.name="s",t.parts.push(n),t.parts.push(i),new l(t)})(e,i);default:throw new n(t)}}catch(e){if(e instanceof n)throw e;throw new a(t,r,e)}},l.isSignature=function(e,t){return c.isCompatible(e,l,t)},l.prototype._sshpkApiVersion=[2,1],l._oldVersionDetect=function(e){return s.func(e.toBuffer),e.hasOwnProperty("hashAlgorithm")?[2,0]:[1,0]}},{"./algs":431,"./errors":435,"./ssh-buffer":454,"./utils":455,asn1:66,"assert-plus":67,crypto:198,"safer-buffer":422}],454:[function(e,t,r){t.exports=a;var i=e("assert-plus"),n=e("safer-buffer").Buffer;function a(e){i.object(e,"options"),void 0!==e.buffer&&i.buffer(e.buffer,"options.buffer"),this._size=e.buffer?e.buffer.length:1024,this._buffer=e.buffer||n.alloc(this._size),this._offset=0}a.prototype.toBuffer=function(){return this._buffer.slice(0,this._offset)},a.prototype.atEnd=function(){return this._offset>=this._buffer.length},a.prototype.remainder=function(){return this._buffer.slice(this._offset)},a.prototype.skip=function(e){this._offset+=e},a.prototype.expand=function(){this._size*=2;var e=n.alloc(this._size);this._buffer.copy(e,0),this._buffer=e},a.prototype.readPart=function(){return{data:this.readBuffer()}},a.prototype.readBuffer=function(){var e=this._buffer.readUInt32BE(this._offset);this._offset+=4,i.ok(this._offset+e<=this._buffer.length,"length out of bounds at +0x"+this._offset.toString(16)+" (data truncated?)");var t=this._buffer.slice(this._offset,this._offset+e);return this._offset+=e,t},a.prototype.readString=function(){return this.readBuffer().toString()},a.prototype.readCString=function(){for(var e=this._offset;e<this._buffer.length&&0!==this._buffer[e];)e++;i.ok(e<this._buffer.length,"c string does not terminate");var t=this._buffer.slice(this._offset,e).toString();return this._offset=e+1,t},a.prototype.readInt=function(){var e=this._buffer.readUInt32BE(this._offset);return this._offset+=4,e},a.prototype.readInt64=function(){i.ok(this._offset+8<this._buffer.length,"buffer not long enough to read Int64");var e=this._buffer.slice(this._offset,this._offset+8);return this._offset+=8,e},a.prototype.readChar=function(){return this._buffer[this._offset++]},a.prototype.writeBuffer=function(e){for(;this._offset+4+e.length>this._size;)this.expand();this._buffer.writeUInt32BE(e.length,this._offset),this._offset+=4,e.copy(this._buffer,this._offset),this._offset+=e.length},a.prototype.writeString=function(e){this.writeBuffer(n.from(e,"utf8"))},a.prototype.writeCString=function(e){for(;this._offset+1+e.length>this._size;)this.expand();this._buffer.write(e,this._offset),this._offset+=e.length,this._buffer[this._offset++]=0},a.prototype.writeInt=function(e){for(;this._offset+4>this._size;)this.expand();this._buffer.writeUInt32BE(e,this._offset),this._offset+=4},a.prototype.writeInt64=function(e){if(i.buffer(e,"value"),8<e.length){for(var t=e.slice(0,e.length-8),r=0;r<t.length;++r)i.strictEqual(t[r],0,"must fit in 64 bits of precision");e=e.slice(e.length-8,e.length)}for(;this._offset+8>this._size;)this.expand();e.copy(this._buffer,this._offset),this._offset+=8},a.prototype.writeChar=function(e){for(;this._offset+1>this._size;)this.expand();this._buffer[this._offset++]=e},a.prototype.writePart=function(e){this.writeBuffer(e.data)},a.prototype.write=function(e){for(;this._offset+e.length>this._size;)this.expand();e.copy(this._buffer,this._offset),this._offset+=e.length}},{"assert-plus":67,"safer-buffer":422}],455:[function(e,t,r){t.exports={bufferSplit:function(e,t){f.buffer(e),f.string(t);for(var r=[],i=0,n=0,a=0;a<e.length;++a){var o;e[a]===t.charCodeAt(n)?++n:n=e[a]===t.charCodeAt(0)?1:0,n>=t.length&&(o=a+1,r.push(e.slice(i,o-n)),i=o,n=0)}i<=e.length&&r.push(e.slice(i,e.length));return r},addRSAMissing:function(e){f.object(e),d(e,n,[1,1]);var t=new c(e.part.d.data);{var r;e.part.dmodp||(r=new c(e.part.p.data),i=t.mod(r.subtract(1)),r=y(i),e.part.dmodp={name:"dmodp",data:r},e.parts.push(e.part.dmodp))}{var i;e.part.dmodq||(i=new c(e.part.q.data),i=t.mod(i.subtract(1)),r=y(i),e.part.dmodq={name:"dmodq",data:r},e.parts.push(e.part.dmodq))}},calculateDSAPublic:function(e,t,r){return f.buffer(e),f.buffer(t),f.buffer(r),e=new c(e),t=new c(t),r=new c(r),y(e.modPow(r,t))},calculateED25519Public:function(e){f.buffer(e);e=i.sign.keyPair.fromSeed(new Uint8Array(e));return p.from(e.publicKey)},calculateX25519Public:function(e){f.buffer(e);e=i.box.keyPair.fromSeed(new Uint8Array(e));return p.from(e.publicKey)},mpNormalize:b,mpDenormalize:function(e){f.buffer(e);for(;1<e.length&&0===e[0];)e=e.slice(1);return e},ecNormalize:function(e,t){{if(f.buffer(e),0===e[0]&&4===e[1])return t?e:e.slice(1);if(4===e[0]){if(!t)return e}else{for(;0===e[0];)e=e.slice(1);if(2===e[0]||3===e[0])throw new Error("Compressed elliptic curve points are not supported");if(4!==e[0])throw new Error("Not a valid elliptic curve point");if(!t)return e}}t=p.alloc(e.length+1);return t[0]=0,e.copy(t,1),t},countZeros:function(e){var t=0,r=8;for(;t<e.length;){var i=1<<r;if((e[t]&i)==i)break;--r<0&&(t++,r=8)}return 8*t+(8-r)-1},assertCompatible:d,isCompatible:function(e,t,r){if(null===e||"object"!==_typeof(e))return!1;void 0===r&&(r=t.prototype._sshpkApiVersion);if(e instanceof t&&t.prototype._sshpkApiVersion[0]==r[0])return!0;var i=Object.getPrototypeOf(e),n=0;for(;i.constructor.name!==t.name;)if(!(i=Object.getPrototypeOf(i))||++n>h)return!1;if(i.constructor.name!==t.name)return!1;var a=i._sshpkApiVersion;void 0===a&&(a=t._oldVersionDetect(e));return!(a[0]!=r[0]||a[1]<r[1])},opensslKeyDeriv:function(e,t,r,i){f.buffer(t,"salt"),f.buffer(r,"passphrase"),f.number(i,"iteration count");var n,a,o,s=m[e];f.object(s,"supported cipher"),t=t.slice(0,g);var u=p.alloc(0);for(;u.length<s.key+s.iv;){o=[],a&&o.push(a),o.push(r),o.push(t),n=p.concat(o);for(var c=0;c<i;++c)n=l.createHash("md5").update(n).digest();u=p.concat([u,n]),a=n}return{key:u.slice(0,s.key),iv:u.slice(s.key,s.key+s.iv)}},opensshCipherInfo:function(e){var t={};switch(e){case"3des-cbc":t.keySize=24,t.blockSize=8,t.opensslName="des-ede3-cbc";break;case"blowfish-cbc":t.keySize=16,t.blockSize=8,t.opensslName="bf-cbc";break;case"aes128-cbc":case"aes128-ctr":case"aes128-gcm@openssh.com":t.keySize=16,t.blockSize=16,t.opensslName="aes-128-"+e.slice(7,10);break;case"aes192-cbc":case"aes192-ctr":case"aes192-gcm@openssh.com":t.keySize=24,t.blockSize=16,t.opensslName="aes-192-"+e.slice(7,10);break;case"aes256-cbc":case"aes256-ctr":case"aes256-gcm@openssh.com":t.keySize=32,t.blockSize=16,t.opensslName="aes-256-"+e.slice(7,10);break;default:throw new Error('Unsupported openssl cipher "'+e+'"')}return t},publicFromPrivateECDSA:function(e,t){f.string(e,"curveName"),f.buffer(t);var r=s.curves[e],i=new c(r.p),n=new c(r.a),a=new c(r.b),a=new u.ECCurveFp(i,n,a),r=a.decodePointHex(r.G.toString("hex")),t=new c(b(t)),r=r.multiply(t);r=p.from(a.encodePointHex(r),"hex");t=[];return t.push({name:"curve",data:p.from(e)}),t.push({name:"Q",data:r}),new o({type:"ecdsa",curve:a,parts:t})},zeroPadToLength:function(e,t){f.buffer(e),f.number(t);for(;e.length>t;)f.equal(e[0],0),e=e.slice(1);for(;e.length<t;){var r=p.alloc(e.length+1);r[0]=0,e.copy(r,1),e=r}return e},writeBitString:function(e,t,r){void 0===r&&(r=a.Ber.BitString);var i=p.alloc(t.length+1);i[0]=0,t.copy(i,1),e.writeBuffer(i,r)},readBitString:function(e,t){void 0===t&&(t=a.Ber.BitString);t=e.readString(t,!0);return f.strictEqual(t[0],0,"bit strings with unused bits are not supported (0x"+t[0].toString(16)+")"),t.slice(1)},pbkdf2:function(o,e,s,t,u){var c=p.alloc(e.length+4);e.copy(c);var r=0,i=[],n=1;for(;r<t;){var a=function(e){c.writeUInt32BE(e,c.length-4);var t=l.createHmac(o,u);t.update(c);var r=t.digest(),i=r,n=1;for(;n++<s;){(t=l.createHmac(o,u)).update(i),i=t.digest();for(var a=0;a<r.length;++a)r[a]^=i[a]}return r}(n++);r+=a.length,i.push(a)}return p.concat(i).slice(0,t)}};var f=e("assert-plus"),p=e("safer-buffer").Buffer,n=e("./private-key"),o=e("./key"),l=e("crypto"),s=e("./algs"),a=e("asn1"),u=e("ecc-jsbn/lib/ec"),c=e("jsbn").BigInteger,i=e("tweetnacl"),h=3;function d(e,t,r,i){if(void 0===i&&(i="object"),f.ok(e,i+" must not be null"),f.object(e,i+" must be an object"),void 0===r&&(r=t.prototype._sshpkApiVersion),!(e instanceof t&&t.prototype._sshpkApiVersion[0]==r[0])){for(var n=Object.getPrototypeOf(e),a=0;n.constructor.name!==t.name;)n=Object.getPrototypeOf(n),f.ok(n&&++a<=h,i+" must be a "+t.name+" instance");f.strictEqual(n.constructor.name,t.name,i+" must be a "+t.name+" instance");var o=n._sshpkApiVersion;void 0===o&&(o=t._oldVersionDetect(e)),f.ok(o[0]==r[0]&&o[1]>=r[1],i+" must be compatible with "+t.name+" klass version "+r[0]+"."+r[1])}}var m={"des-ede3-cbc":{key:24,iv:8},"aes-128-cbc":{key:16,iv:16},"aes-256-cbc":{key:32,iv:16}},g=8;function b(e){for(f.buffer(e);1<e.length&&0===e[0]&&0==(128&e[1]);)e=e.slice(1);var t;return 128==(128&e[0])&&((t=p.alloc(e.length+1))[0]=0,e.copy(t,1),e=t),e}function y(e){return b(p.from(e.toByteArray()))}},{"./algs":431,"./key":451,"./private-key":452,asn1:66,"assert-plus":67,crypto:198,"ecc-jsbn/lib/ec":211,jsbn:301,"safer-buffer":422,tweetnacl:474}],456:[function(e,t,r){"use strict";var i=/\.node$/;function f(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t(r)}function p(t,r){return f(r,function(e){t[e]=r[e]}),t}function l(t){f(t,function(e){i.test(e)||delete t[e]})}t.exports=function(e,t,r,i){var n=p({},e);if(l(e),r){var a=!!i.children&&i.children.slice();r();var o=[];f(e,function(e){o.push(e)}),l(e),i.children&&(i.children=a);for(var s=0;s<o.length;s+=1)n[o[s]]&&(e[o[s]]=n[o[s]])}var t=t(),u=!!r&&p({},e);if(l(e),r)for(var c=0;c<o.length;c+=1)u[o[c]]&&(e[o[c]]=u[o[c]]);return p(e,n),t}},{}],457:[function(e,t,r){t.exports=i;var f=e("events").EventEmitter;function i(){f.call(this)}e("inherits")(i,f),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),(i.Stream=i).prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function n(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",n),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,t.end())}function s(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function u(e){if(c(),0===f.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),t.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",u),t.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return r.on("error",u),t.on("error",u),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t}},{events:229,inherits:296,"readable-stream/duplex.js":388,"readable-stream/passthrough.js":399,"readable-stream/readable.js":400,"readable-stream/transform.js":401,"readable-stream/writable.js":402}],458:[function(i,e,n){(function(c){(function(){var o=i("./lib/request"),e=i("./lib/response"),s=i("xtend"),t=i("builtin-status-codes"),u=i("url"),r=n;r.request=function(e,t){e="string"==typeof e?u.parse(e):s(e);var r=-1===c.location.protocol.search(/^https?:$/)?"http:":"",i=e.protocol||r,n=e.hostname||e.host,a=e.port,r=e.path||"/";n&&-1!==n.indexOf(":")&&(n="["+n+"]"),e.url=(n?i+"//"+n:"")+(a?":"+a:"")+r,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};e=new o(e);return t&&e.on("response",t),e},r.get=function(e,t){t=r.request(e,t);return t.end(),t},r.ClientRequest=o,r.IncomingMessage=e.IncomingMessage,r.Agent=function(){},r.Agent.defaultMaxSockets=4,r.globalAgent=new r.Agent,r.STATUS_CODES=t,r.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":460,"./lib/response":461,"builtin-status-codes":187,url:476,xtend:486}],459:[function(e,t,s){(function(o){(function(){s.fetch=a(o.fetch)&&a(o.ReadableStream),s.writableStream=a(o.WritableStream),s.abortController=a(o.AbortController),s.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),s.blobConstructor=!0}catch(e){}var t;function r(){if(void 0!==t)return t;if(o.XMLHttpRequest){t=new o.XMLHttpRequest;try{t.open("GET",o.XDomainRequest?"/":"https://example.com")}catch(e){t=null}}else t=null;return t}function e(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var i=void 0!==o.ArrayBuffer,n=i&&a(o.ArrayBuffer.prototype.slice);function a(e){return"function"==typeof e}s.arraybuffer=s.fetch||i&&e("arraybuffer"),s.msstream=!s.fetch&&n&&e("ms-stream"),s.mozchunkedarraybuffer=!s.fetch&&i&&e("moz-chunked-arraybuffer"),s.overrideMimeType=s.fetch||!!r()&&a(r().overrideMimeType),s.vbArray=a(o.VBArray),t=null}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],460:[function(a,o,e){(function(p,l,h){(function(){var u=a("./capability"),e=a("inherits"),t=a("./response"),n=a("readable-stream"),c=a("to-arraybuffer"),r=t.IncomingMessage,f=t.readyStates;t=o.exports=function(t){var r=this;n.Writable.call(r),r._opts=t,r._body=[],r._headers={},t.auth&&r.setHeader("Authorization","Basic "+new h(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(e){r.setHeader(e,t.headers[e])});var e,i=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!u.abortController)e=!(i=!1);else if("prefer-streaming"===t.mode)e=!1;else if("allow-wrong-content-type"===t.mode)e=!u.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");e=!0}r._mode=(e=e,i=i,u.fetch&&i?"fetch":u.mozchunkedarraybuffer?"moz-chunked-arraybuffer":u.msstream?"ms-stream":u.arraybuffer&&e?"arraybuffer":u.vbArray&&e?"text:vbarray":"text"),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};e(t,n.Writable),t.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===i.indexOf(r)&&(this._headers[r]={name:e,value:t})},t.prototype.getHeader=function(e){e=this._headers[e.toLowerCase()];return e?e.value:null},t.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},t.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e=t._opts,r=t._headers,i=null;"GET"!==e.method&&"HEAD"!==e.method&&(i=u.arraybuffer?c(h.concat(t._body)):u.blobConstructor?new l.Blob(t._body.map(function(e){return c(e)}),{type:(r["content-type"]||{}).value||""}):h.concat(t._body).toString());var n=[];if(Object.keys(r).forEach(function(e){var t=r[e].name,e=r[e].value;Array.isArray(e)?e.forEach(function(e){n.push([t,e])}):n.push([t,e])}),"fetch"===t._mode){var a,o=null;u.abortController&&(o=(a=new AbortController).signal,t._fetchAbortController=a,"requestTimeout"in e&&0!==e.requestTimeout&&(t._fetchTimer=l.setTimeout(function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()},e.requestTimeout))),l.fetch(t._opts.url,{method:t._opts.method,headers:n,body:i||void 0,mode:"cors",credentials:e.withCredentials?"include":"same-origin",signal:o}).then(function(e){t._fetchResponse=e,t._connect()},function(e){l.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",e)})}else{var s=t._xhr=new l.XMLHttpRequest;try{s.open(t._opts.method,t._opts.url,!0)}catch(e){return void p.nextTick(function(){t.emit("error",e)})}"responseType"in s&&(s.responseType=t._mode.split(":")[0]),"withCredentials"in s&&(s.withCredentials=!!e.withCredentials),"text"===t._mode&&"overrideMimeType"in s&&s.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in e&&(s.timeout=e.requestTimeout,s.ontimeout=function(){t.emit("requestTimeout")}),n.forEach(function(e){s.setRequestHeader(e[0],e[1])}),t._response=null,s.onreadystatechange=function(){switch(s.readyState){case f.LOADING:case f.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(s.onprogress=function(){t._onXHRProgress()}),s.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{s.send(i)}catch(e){return void p.nextTick(function(){t.emit("error",e)})}}}},t.prototype._onXHRProgress=function(){!function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return}}(this._xhr)||this._destroyed||(this._response||this._connect(),this._response._onXHRProgress())},t.prototype._connect=function(){var t=this;t._destroyed||(t._response=new r(t._xhr,t._fetchResponse,t._mode,t._fetchTimer),t._response.on("error",function(e){t.emit("error",e)}),t.emit("response",t._response))},t.prototype._write=function(e,t,r){this._body.push(e),r()},t.prototype.abort=t.prototype.destroy=function(){this._destroyed=!0,l.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},t.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),n.Writable.prototype.end.call(this,e,t,r)},t.prototype.flushHeaders=function(){},t.prototype.setTimeout=function(){},t.prototype.setNoDelay=function(){},t.prototype.setSocketKeepAlive=function(){};var i=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this)}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"./capability":459,"./response":461,_process:354,buffer:186,inherits:296,"readable-stream":400,"to-arraybuffer":465}],461:[function(r,e,i){(function(f,p,l){(function(){var s=r("./capability"),e=r("inherits"),u=r("readable-stream"),c=i.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=i.IncomingMessage=function(e,t,r,i){var n=this;if(u.Readable.call(n),n._mode=r,n.headers={},n.rawHeaders=[],n.trailers={},n.rawTrailers=[],n.on("end",function(){f.nextTick(function(){n.emit("close")})}),"fetch"===r){r=function t(){o.read().then(function(e){if(!n._destroyed){if(e.done)return p.clearTimeout(i),void n.push(null);n.push(new l(e.value)),t()}}).catch(function(e){p.clearTimeout(i),n._destroyed||n.emit("error",e)})};if(n._fetchResponse=t,n.url=t.url,n.statusCode=t.status,n.statusMessage=t.statusText,t.headers.forEach(function(e,t){n.headers[t.toLowerCase()]=e,n.rawHeaders.push(t,e)}),s.writableStream){var a=new WritableStream({write:function(r){return new Promise(function(e,t){n._destroyed?t():n.push(new l(r))?e():n._resumeFetch=e})},close:function(){p.clearTimeout(i),n._destroyed||n.push(null)},abort:function(e){n._destroyed||n.emit("error",e)}});try{return void t.body.pipeTo(a).catch(function(e){p.clearTimeout(i),n._destroyed||n.emit("error",e)})}catch(e){}}var o=t.body.getReader();r()}else n._xhr=e,n._pos=0,n.url=e.responseURL,n.statusCode=e.status,n.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);t&&("set-cookie"===(e=t[1].toLowerCase())?(void 0===n.headers[e]&&(n.headers[e]=[]),n.headers[e].push(t[2])):void 0!==n.headers[e]?n.headers[e]+=", "+t[2]:n.headers[e]=t[2],n.rawHeaders.push(t[1],t[2]))}),n._charset="x-user-defined",s.overrideMimeType||(!(e=n.rawHeaders["mime-type"])||(e=e.match(/;\s*charset=([^;])(;|$)/))&&(n._charset=e[1].toLowerCase()),n._charset||(n._charset="utf-8"))};e(t,u.Readable),t.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},t.prototype._onXHRProgress=function(){var t=this,e=t._xhr,r=null;switch(t._mode){case"text:vbarray":if(e.readyState!==c.DONE)break;try{r=new p.VBArray(e.responseBody).toArray()}catch(e){}if(null!==r){t.push(new l(r));break}case"text":try{r=e.responseText}catch(e){t._mode="text:vbarray";break}if(r.length>t._pos){var i=r.substr(t._pos);if("x-user-defined"===t._charset){for(var n=new l(i.length),a=0;a<i.length;a++)n[a]=255&i.charCodeAt(a);t.push(n)}else t.push(i,t._charset);t._pos=r.length}break;case"arraybuffer":if(e.readyState!==c.DONE||!e.response)break;r=e.response,t.push(new l(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=e.response,e.readyState!==c.LOADING||!r)break;t.push(new l(new Uint8Array(r)));break;case"ms-stream":if(r=e.response,e.readyState!==c.LOADING)break;var o=new p.MSStreamReader;o.onprogress=function(){o.result.byteLength>t._pos&&(t.push(new l(new Uint8Array(o.result.slice(t._pos)))),t._pos=o.result.byteLength)},o.onload=function(){t.push(null)},o.readAsArrayBuffer(r)}t._xhr.readyState===c.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this)}).call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},r("buffer").Buffer)},{"./capability":459,_process:354,buffer:186,inherits:296,"readable-stream":400}],462:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer,n=i.isEncoding||function(e){switch((e=""+e)&&e.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!0;default:return!1}};function a(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}function o(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=c,this.end=f,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=p,this.end=l,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e){var t,r,i=this.lastTotal-this.lastNeed,t=(t=this,128!=(192&(r=e)[0])?(t.lastNeed=0,"<22>"):1<t.lastNeed&&1<r.length?128!=(192&r[1])?(t.lastNeed=1,"<22>"):2<t.lastNeed&&2<r.length&&128!=(192&r[2])?(t.lastNeed=2,"<22>"):void 0:void 0);return void 0!==t?t:this.lastNeed<=e.length?(e.copy(this.lastChar,i,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,i,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);var r=e.toString("utf16le",t);if(r){t=r.charCodeAt(r.length-1);if(55296<=t&&t<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}function f(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){e=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,e)}return t}function p(e,t){var r=(e.length-t)%3;return 0==r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}(r.StringDecoder=o).prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+"<22>":e},o.prototype.text=function(e,t){var r=function(e,t,r){var i=t.length-1;if(i<r)return 0;var n=s(t[i]);if(0<=n)return 0<n&&(e.lastNeed=n-1),n;if(--i<r||-2===n)return 0;if(0<=(n=s(t[i])))return 0<n&&(e.lastNeed=n-2),n;if(--i<r||-2===n)return 0;if(0<=(n=s(t[i])))return 0<n&&(2===n?n=0:e.lastNeed=n-3),n;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;r=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":463}],463:[function(e,t,r){arguments[4][398][0].apply(r,arguments)},{buffer:186,dup:398}],464:[function(u,e,c){(function(r,s){(function(){var i=u("process/browser.js").nextTick,e=Function.prototype.apply,n=Array.prototype.slice,a={},o=0;function t(e,t){this._id=e,this._clearFn=t}c.setTimeout=function(){return new t(e.call(setTimeout,window,arguments),clearTimeout)},c.setInterval=function(){return new t(e.call(setInterval,window,arguments),clearInterval)},c.clearTimeout=c.clearInterval=function(e){e.close()},t.prototype.unref=t.prototype.ref=function(){},t.prototype.close=function(){this._clearFn.call(window,this._id)},c.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},c.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},c._unrefActive=c.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},c.setImmediate="function"==typeof r?r:function(e){var t=o++,r=!(arguments.length<2)&&n.call(arguments,1);return a[t]=!0,i(function(){a[t]&&(r?e.apply(null,r):e.call(null),c.clearImmediate(t))}),t},c.clearImmediate="function"==typeof s?s:function(e){delete a[e]}}).call(this)}).call(this,u("timers").setImmediate,u("timers").clearImmediate)},{"process/browser.js":354,timers:464}],465:[function(e,t,r){var n=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(n.isBuffer(e)){for(var t=new Uint8Array(e.length),r=e.length,i=0;i<r;i++)t[i]=e[i];return t.buffer}throw new Error("Argument must be a Buffer")}},{buffer:186}],466:[function(e,t,r){"use strict";var i,n=e("net"),a=e("url").parse,o=e("util"),c=e("./pubsuffix-psl"),s=e("./store").Store,u=e("./memstore").MemoryCookieStore,l=e("./pathMatch").pathMatch,f=e("./version");try{i=e("punycode")}catch(e){console.warn("tough-cookie: can't load punycode; won't use punycode for domain normalization")}var p=/^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/,h=/[\x00-\x1F]/,d=["\n","\r","\0"],m=/[\x20-\x3A\x3C-\x7E]+/,g=/[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/,b={jan:0,feb:1,mar:2,apr:3,may:4,jun:5,jul:6,aug:7,sep:8,oct:9,nov:10,dec:11},y=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],v=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_=2147483647e3;function w(e,t,r,i){for(var n=0;n<e.length;){var a=e.charCodeAt(n);if(a<=47||58<=a)break;n++}return!(n<t||r<n)&&(i||n==e.length)?parseInt(e.substr(0,n),10):null}function k(e){if(e){var t=e.split(g);if(t){for(var r,i=null,n=null,a=null,o=null,s=null,u=null,c=0;c<t.length;c++){var f,p=t[c].trim();p.length&&(null===a&&(f=function(e){var t=e.split(":"),r=[0,0,0];if(3!==t.length)return null;for(var i=0;i<3;i++){var n=2==i,n=w(t[i],1,2,n);if(null===n)return null;r[i]=n}return r}(p))?(i=f[0],n=f[1],a=f[2]):null!==o||null===(f=w(p,1,2,!0))?null!==s||(r=p,r=String(r).substr(0,3).toLowerCase(),null===(f=0<=(r=b[r])?r:null))?null===u&&null!==(f=w(p,2,4,!0))&&(70<=(u=f)&&u<=99?u+=1900:0<=u&&u<=69&&(u+=2e3)):s=f:o=f)}if(!(null===o||null===s||null===u||null===a||o<1||31<o||u<1601||23<i||59<n||59<a))return new Date(Date.UTC(u,s,o,i,n,a))}}}function x(e){var t=10<=(t=e.getUTCDate())?t:"0"+t,r=10<=(r=e.getUTCHours())?r:"0"+r,i=10<=(i=e.getUTCMinutes())?i:"0"+i,n=10<=(n=e.getUTCSeconds())?n:"0"+n;return v[e.getUTCDay()]+", "+t+" "+y[e.getUTCMonth()]+" "+e.getUTCFullYear()+" "+r+":"+i+":"+n+" GMT"}function S(e){return null==e?null:(e=e.trim().replace(/^\./,""),(e=i&&/[^\u0001-\u007f]/.test(e)?i.toASCII(e):e).toLowerCase())}function j(e,t,r){if(null==e||null==t)return null;if(!1!==r&&(e=S(e),t=S(t)),e==t)return!0;if(n.isIP(e))return!1;r=e.indexOf(t);return!(r<=0)&&(e.length===t.length+r&&"."===e.substr(r-1,1))}function E(e){if(!e||"/"!==e.substr(0,1))return"/";if("/"===e)return e;var t=e.lastIndexOf("/");return 0===t?"/":e.slice(0,t)}function A(e,t){var r,i=(e=function(e){for(var t=0;t<d.length;t++){var r=e.indexOf(d[t]);-1!==r&&(e=e.substr(0,r))}return e}(e)).indexOf("=");if(t)0===i&&(i=(e=e.substr(1)).indexOf("="));else if(i<=0)return;if(e=i<=0?(r="",e.trim()):(r=e.substr(0,i).trim(),e.substr(i+1).trim()),!h.test(r)&&!h.test(e)){i=new R;return i.key=r,i.value=e,i}}function P(e,t){t&&"object"===_typeof(t)||(t={});var r=(e=e.trim()).indexOf(";"),i=A(-1===r?e:e.substr(0,r),!!t.loose);if(i){if(-1===r)return i;r=e.slice(r+1).trim();if(0===r.length)return i;for(var n=r.split(";");n.length;){var a=n.shift().trim();if(0!==a.length){var o,s,u=a.indexOf("="),c=-1===u?(f=a,null):(f=a.substr(0,u),a.substr(u+1)),f=f.trim().toLowerCase();switch(c=c&&c.trim(),f){case"expires":!c||(o=k(c))&&(i.expires=o);break;case"max-age":c&&/^-?[0-9]+$/.test(c)&&(s=parseInt(c,10),i.setMaxAge(s));break;case"domain":!c||(s=c.trim().replace(/^\./,""))&&(i.domain=s.toLowerCase());break;case"path":i.path=c&&"/"===c[0]?c:null;break;case"secure":i.secure=!0;break;case"httponly":i.httpOnly=!0;break;default:i.extensions=i.extensions||[],i.extensions.push(a)}}}return i}}function I(e){var t;try{t=JSON.parse(e)}catch(e){return e}return t}function T(e){if(!e)return null;var t;if("string"==typeof e){if((t=I(e))instanceof Error)return null}else t=e;for(var r=new R,i=0;i<R.serializableProperties.length;i++){var n=R.serializableProperties[i];void 0!==t[n]&&t[n]!==R.prototype[n]&&("expires"===n||"creation"===n||"lastAccessed"===n?null===t[n]?r[n]=null:r[n]="Infinity"==t[n]?"Infinity":new Date(t[n]):r[n]=t[n])}return r}function O(e,t){var r=0,i=e.path?e.path.length:0;return 0!==(r=(t.path?t.path.length:0)-i)||0!==(r=(e.creation?e.creation.getTime():_)-(t.creation?t.creation.getTime():_))?r:r=e.creationIndex-t.creationIndex}function C(e){if(e instanceof Object)return e;try{e=decodeURI(e)}catch(e){}return a(e)}function R(t){t=t||{},Object.keys(t).forEach(function(e){R.prototype.hasOwnProperty(e)&&R.prototype[e]!==t[e]&&"_"!==e.substr(0,1)&&(this[e]=t[e])},this),this.creation=this.creation||new Date,Object.defineProperty(this,"creationIndex",{configurable:!1,enumerable:!1,writable:!0,value:++R.cookiesCreated})}function B(e,t){"boolean"==typeof t?t={rejectPublicSuffixes:t}:null==t&&(t={}),null!=t.rejectPublicSuffixes&&(this.rejectPublicSuffixes=t.rejectPublicSuffixes),null!=t.looseMode&&(this.enableLooseMode=t.looseMode),e=e||new u,this.store=e}R.cookiesCreated=0,R.parse=P,R.fromJSON=T,R.prototype.key="",R.prototype.value="",R.prototype.expires="Infinity",R.prototype.maxAge=null,R.prototype.domain=null,R.prototype.path=null,R.prototype.secure=!1,R.prototype.httpOnly=!1,R.prototype.extensions=null,R.prototype.hostOnly=null,R.prototype.pathIsDefault=null,R.prototype.creation=null,R.prototype.lastAccessed=null,Object.defineProperty(R.prototype,"creationIndex",{configurable:!0,enumerable:!1,writable:!0,value:0}),R.serializableProperties=Object.keys(R.prototype).filter(function(e){return!(R.prototype[e]instanceof Function||"creationIndex"===e||"_"===e.substr(0,1))}),R.prototype.inspect=function(){var e=Date.now();return'Cookie="'+this.toString()+"; hostOnly="+(null!=this.hostOnly?this.hostOnly:"?")+"; aAge="+(this.lastAccessed?e-this.lastAccessed.getTime()+"ms":"?")+"; cAge="+(this.creation?e-this.creation.getTime()+"ms":"?")+'"'},o.inspect.custom&&(R.prototype[o.inspect.custom]=R.prototype.inspect),R.prototype.toJSON=function(){for(var e={},t=R.serializableProperties,r=0;r<t.length;r++){var i=t[r];this[i]!==R.prototype[i]&&("expires"===i||"creation"===i||"lastAccessed"===i?null===this[i]?e[i]=null:e[i]="Infinity"==this[i]?"Infinity":this[i].toISOString():"maxAge"===i?null!==this[i]&&(e[i]=this[i]==1/0||this[i]==-1/0?this[i].toString():this[i]):this[i]!==R.prototype[i]&&(e[i]=this[i]))}return e},R.prototype.clone=function(){return T(this.toJSON())},R.prototype.validate=function(){if(!p.test(this.value))return!1;if(!(this.expires==1/0||this.expires instanceof Date||k(this.expires)))return!1;if(null!=this.maxAge&&this.maxAge<=0)return!1;if(null!=this.path&&!m.test(this.path))return!1;var e=this.cdomain();if(e){if(e.match(/\.$/))return!1;if(null==c.getPublicSuffix(e))return!1}return!0},R.prototype.setExpires=function(e){e instanceof Date?this.expires=e:this.expires=k(e)||"Infinity"},R.prototype.setMaxAge=function(e){this.maxAge=e===1/0||e===-1/0?e.toString():e},R.prototype.cookieString=function(){var e=this.value;return null==e&&(e=""),""===this.key?e:this.key+"="+e},R.prototype.toString=function(){var t=this.cookieString();return this.expires!=1/0&&(this.expires instanceof Date?t+="; Expires="+x(this.expires):t+="; Expires="+this.expires),null!=this.maxAge&&this.maxAge!=1/0&&(t+="; Max-Age="+this.maxAge),this.domain&&!this.hostOnly&&(t+="; Domain="+this.domain),this.path&&(t+="; Path="+this.path),this.secure&&(t+="; Secure"),this.httpOnly&&(t+="; HttpOnly"),this.extensions&&this.extensions.forEach(function(e){t+="; "+e}),t},R.prototype.TTL=function(e){if(null!=this.maxAge)return this.maxAge<=0?0:1e3*this.maxAge;var t=this.expires;return t==1/0||(t=!(t instanceof Date)?k(t)||1/0:t)==1/0?1/0:t.getTime()-(e||Date.now())},R.prototype.expiryTime=function(e){if(null==this.maxAge)return this.expires==1/0?1/0:this.expires.getTime();var t=e||this.creation||new Date,e=this.maxAge<=0?-1/0:1e3*this.maxAge;return t.getTime()+e},R.prototype.expiryDate=function(e){e=this.expiryTime(e);return e==1/0?new Date(_):e==-1/0?new Date(0):new Date(e)},R.prototype.isPersistent=function(){return null!=this.maxAge||this.expires!=1/0},R.prototype.cdomain=R.prototype.canonicalizedDomain=function(){return null==this.domain?null:S(this.domain)},B.prototype.store=null,B.prototype.rejectPublicSuffixes=!0,B.prototype.enableLooseMode=!1;o=[];function F(t){return function(){if(!this.store.synchronous)throw new Error("CookieJar store is not synchronous; use async API instead.");var r,i,e=Array.prototype.slice.call(arguments);if(e.push(function(e,t){r=e,i=t}),this[t].apply(this,e),r)throw r;return i}}o.push("setCookie"),B.prototype.setCookie=function(i,e,n,a){var t,r=C(e);n instanceof Function&&(a=n,n={});var o=S(r.hostname),e=this.enableLooseMode;if(null!=n.loose&&(e=n.loose),!(i=!(i instanceof R)?R.parse(i,{loose:e}):i))return t=new Error("Cookie failed to parse"),a(n.ignoreError?null:t);var s=n.now||new Date;if(this.rejectPublicSuffixes&&i.domain&&null==c.getPublicSuffix(i.cdomain()))return t=new Error("Cookie has domain set to a public suffix"),a(n.ignoreError?null:t);if(i.domain){if(!j(o,i.cdomain(),!1))return t=new Error("Cookie not in this host's domain. Cookie:"+i.cdomain()+" Request:"+o),a(n.ignoreError?null:t);null==i.hostOnly&&(i.hostOnly=!1)}else i.hostOnly=!0,i.domain=o;if(i.path&&"/"===i.path[0]||(i.path=E(r.pathname),i.pathIsDefault=!0),!1===n.http&&i.httpOnly)return t=new Error("Cookie is HttpOnly and this isn't an HTTP API"),a(n.ignoreError?null:t);var u=this.store;u.updateCookie||(u.updateCookie=function(e,t,r){this.putCookie(t,r)}),u.findCookie(i.domain,i.path,i.key,function(e,t){if(e)return a(e);function r(e){if(e)return a(e);a(null,i)}if(t){if(!1===n.http&&t.httpOnly)return e=new Error("old Cookie is HttpOnly and this isn't an HTTP API"),a(n.ignoreError?null:e);i.creation=t.creation,i.creationIndex=t.creationIndex,i.lastAccessed=s,u.updateCookie(t,i,r)}else i.creation=i.lastAccessed=s,u.putCookie(i,r)})},o.push("getCookies"),B.prototype.getCookies=function(e,i,n){e=C(e);i instanceof Function&&(n=i,i={});var t=S(e.hostname),r=e.pathname||"/",a=i.secure;null!=a||!e.protocol||"https:"!=e.protocol&&"wss:"!=e.protocol||(a=!0);var o=i.http;null==o&&(o=!0);var s=i.now||Date.now(),u=!1!==i.expire,c=!!i.allPaths,f=this.store;function p(e){if(e.hostOnly){if(e.domain!=t)return!1}else if(!j(t,e.domain,!1))return!1;return!(!c&&!l(r,e.path))&&(!(e.secure&&!a)&&(!(e.httpOnly&&!o)&&(!(u&&e.expiryTime()<=s)||(f.removeCookie(e.domain,e.path,e.key,function(){}),!1))))}f.findCookies(t,c?null:r,function(e,t){if(e)return n(e);t=t.filter(p),!1!==i.sort&&(t=t.sort(O));var r=new Date;t.forEach(function(e){e.lastAccessed=r}),n(null,t)})},o.push("getCookieString"),B.prototype.getCookieString=function(){var e=Array.prototype.slice.call(arguments,0),r=e.pop();e.push(function(e,t){e?r(e):r(null,t.sort(O).map(function(e){return e.cookieString()}).join("; "))}),this.getCookies.apply(this,e)},o.push("getSetCookieStrings"),B.prototype.getSetCookieStrings=function(){var e=Array.prototype.slice.call(arguments,0),r=e.pop();e.push(function(e,t){e?r(e):r(null,t.map(function(e){return e.toString()}))}),this.getCookies.apply(this,e)},o.push("serialize"),B.prototype.serialize=function(r){var e=this.store.constructor.name,i={version:"tough-cookie@"+f,storeType:e="Object"===e?null:e,rejectPublicSuffixes:!!this.rejectPublicSuffixes,cookies:[]};if(!this.store.getAllCookies||"function"!=typeof this.store.getAllCookies)return r(new Error("store does not support getAllCookies and cannot be serialized"));this.store.getAllCookies(function(e,t){return e?r(e):(i.cookies=t.map(function(e){return delete(e=e instanceof R?e.toJSON():e).creationIndex,e}),r(null,i))})},B.prototype.toJSON=function(){return this.serializeSync()},o.push("_importCookies"),B.prototype._importCookies=function(e,i){var n=this,a=e.cookies;if(!a||!Array.isArray(a))return i(new Error("serialized jar has no cookies array"));a=a.slice(),function e(t){if(t)return i(t);if(!a.length)return i(t,n);var r;try{r=T(a.shift())}catch(e){return i(e)}if(null===r)return e(null);n.store.putCookie(r,e)}()},B.deserialize=function(e,t,r){var i;if(3!==arguments.length&&(r=t,t=null),"string"==typeof e){if((i=I(e))instanceof Error)return r(i)}else i=e;var n=new B(t,i.rejectPublicSuffixes);n._importCookies(i,function(e){return e?r(e):void r(null,n)})},B.fromJSON=B.deserializeSync=function(e,t){e="string"==typeof e?JSON.parse(e):e,t=new B(t,e.rejectPublicSuffixes);if(!t.store.synchronous)throw new Error("CookieJar store is not synchronous; use async API instead.");return t._importCookiesSync(e),t},B.prototype.clone=function(r,i){1===arguments.length&&(i=r,r=null),this.serialize(function(e,t){return e?i(e):void B.deserialize(t,r,i)})},o.push("removeAllCookies"),B.prototype.removeAllCookies=function(a){var o=this.store;if(o.removeAllCookies instanceof Function&&o.removeAllCookies!==s.prototype.removeAllCookies)return o.removeAllCookies(a);o.getAllCookies(function(e,t){if(e)return a(e);if(0===t.length)return a(null);var r=0,i=[];function n(e){if(e&&i.push(e),++r===t.length)return a(i.length?i[0]:null)}t.forEach(function(e){o.removeCookie(e.domain,e.path,e.key,n)})})},B.prototype._cloneSync=F("clone"),B.prototype.cloneSync=function(e){if(!e.synchronous)throw new Error("CookieJar clone destination store is not synchronous; use async API instead.");return this._cloneSync(e)},o.forEach(function(e){B.prototype[e+"Sync"]=F(e)}),r.version=f,r.CookieJar=B,r.Cookie=R,r.Store=s,r.MemoryCookieStore=u,r.parseDate=k,r.formatDate=x,r.parse=P,r.fromJSON=T,r.domainMatch=j,r.defaultPath=E,r.pathMatch=l,r.getPublicSuffix=c.getPublicSuffix,r.cookieCompare=O,r.permuteDomain=e("./permuteDomain").permuteDomain,r.permutePath=function(e){if("/"===e)return["/"];for(var t=[e=e.lastIndexOf("/")===e.length-1?e.substr(0,e.length-1):e];1<e.length;){var r=e.lastIndexOf("/");if(0===r)break;e=e.substr(0,r),t.push(e)}return t.push("/"),t},r.canonicalDomain=S},{"./memstore":467,"./pathMatch":468,"./permuteDomain":469,"./pubsuffix-psl":470,"./store":471,"./version":472,net:180,punycode:181,url:476,util:481}],467:[function(e,t,r){"use strict";var i=e("./store").Store,o=e("./permuteDomain").permuteDomain,s=e("./pathMatch").pathMatch,n=e("util");function a(){i.call(this),this.idx={}}n.inherits(a,i),(r.MemoryCookieStore=a).prototype.idx=null,a.prototype.synchronous=!0,a.prototype.inspect=function(){return"{ idx: "+n.inspect(this.idx,!1,2)+" }"},n.inspect.custom&&(a.prototype[n.inspect.custom]=a.prototype.inspect),a.prototype.findCookie=function(e,t,r,i){return this.idx[e]&&this.idx[e][t]?i(null,this.idx[e][t][r]||null):i(null,void 0)},a.prototype.findCookies=function(e,n,t){var r,a=[];if(!e)return t(null,[]);r=n?function(i){Object.keys(i).forEach(function(e){if(s(n,e)){var t,r=i[e];for(t in r)a.push(r[t])}})}:function(e){for(var t in e){var r,i=e[t];for(r in i)a.push(i[r])}};var e=o(e)||[e],i=this.idx;e.forEach(function(e){e=i[e];e&&r(e)}),t(null,a)},a.prototype.putCookie=function(e,t){this.idx[e.domain]||(this.idx[e.domain]={}),this.idx[e.domain][e.path]||(this.idx[e.domain][e.path]={}),this.idx[e.domain][e.path][e.key]=e,t(null)},a.prototype.updateCookie=function(e,t,r){this.putCookie(t,r)},a.prototype.removeCookie=function(e,t,r,i){this.idx[e]&&this.idx[e][t]&&this.idx[e][t][r]&&delete this.idx[e][t][r],i(null)},a.prototype.removeCookies=function(e,t,r){return this.idx[e]&&(t?delete this.idx[e][t]:delete this.idx[e]),r(null)},a.prototype.removeAllCookies=function(e){return this.idx={},e(null)},a.prototype.getAllCookies=function(e){var i=[],n=this.idx;Object.keys(n).forEach(function(r){Object.keys(n[r]).forEach(function(t){Object.keys(n[r][t]).forEach(function(e){null!==e&&i.push(n[r][t][e])})})}),i.sort(function(e,t){return(e.creationIndex||0)-(t.creationIndex||0)}),e(null,i)}},{"./pathMatch":468,"./permuteDomain":469,"./store":471,util:481}],468:[function(e,t,r){"use strict";r.pathMatch=function(e,t){if(t===e)return!0;if(0===e.indexOf(t)){if("/"===t.substr(-1))return!0;if("/"===e.substr(t.length,1))return!0}return!1}},{}],469:[function(e,t,r){"use strict";var a=e("./pubsuffix-psl");r.permuteDomain=function(e){var t=a.getPublicSuffix(e);if(!t)return null;if(t==e)return[e];for(var r=e.slice(0,-(t.length+1)).split(".").reverse(),i=t,n=[i];r.length;)i=r.shift()+"."+i,n.push(i);return n}},{"./pubsuffix-psl":470}],470:[function(e,t,r){"use strict";var i=e("psl");r.getPublicSuffix=function(e){return i.get(e)}},{psl:371}],471:[function(e,t,r){"use strict";function i(){}(r.Store=i).prototype.synchronous=!1,i.prototype.findCookie=function(e,t,r,i){throw new Error("findCookie is not implemented")},i.prototype.findCookies=function(e,t,r){throw new Error("findCookies is not implemented")},i.prototype.putCookie=function(e,t){throw new Error("putCookie is not implemented")},i.prototype.updateCookie=function(e,t,r){throw new Error("updateCookie is not implemented")},i.prototype.removeCookie=function(e,t,r,i){throw new Error("removeCookie is not implemented")},i.prototype.removeCookies=function(e,t,r){throw new Error("removeCookies is not implemented")},i.prototype.removeAllCookies=function(e){throw new Error("removeAllCookies is not implemented")},i.prototype.getAllCookies=function(e){throw new Error("getAllCookies is not implemented (therefore jar cannot be serialized)")}},{}],472:[function(e,t,r){t.exports="2.5.0"},{}],473:[function(s,e,u){(function(h){(function(){"use strict";s("net");var c,a=s("tls"),t=s("http"),r=s("https"),e=s("events"),f=s("assert"),i=s("util"),p=s("safe-buffer").Buffer;function o(e){var o=this;o.options=e||{},o.proxyOptions=o.options.proxy||{},o.maxSockets=o.options.maxSockets||t.Agent.defaultMaxSockets,o.requests=[],o.sockets=[],o.on("free",function(e,t,r){for(var i=0,n=o.requests.length;i<n;++i){var a=o.requests[i];if(a.host===t&&a.port===r)return o.requests.splice(i,1),void a.request.onSocket(e)}e.destroy(),o.removeSocket(e)})}function n(r,i){var n=this;o.prototype.createSocket.call(n,r,function(e){var t=a.connect(0,l({},n.options,{servername:r.host,socket:e}));n.sockets[n.sockets.indexOf(e)]=t,i(t)})}function l(e){for(var t=1,r=arguments.length;t<r;++t){var i=arguments[t];if("object"===_typeof(i))for(var n=Object.keys(i),a=0,o=n.length;a<o;++a){var s=n[a];void 0!==i[s]&&(e[s]=i[s])}}return e}u.httpOverHttp=function(e){e=new o(e);return e.request=t.request,e},u.httpsOverHttp=function(e){e=new o(e);return e.request=t.request,e.createSocket=n,e.defaultPort=443,e},u.httpOverHttps=function(e){e=new o(e);return e.request=r.request,e},u.httpsOverHttps=function(e){e=new o(e);return e.request=r.request,e.createSocket=n,e.defaultPort=443,e},i.inherits(o,e.EventEmitter),o.prototype.addRequest=function(e,t){"string"==typeof t&&(t={host:t,port:arguments[2],path:arguments[3]}),this.sockets.length>=this.maxSockets?this.requests.push({host:t.host,port:t.port,request:e}):this.createConnection({host:t.host,port:t.port,request:e})},o.prototype.createConnection=function(e){var n=this;n.createSocket(e,function(t){function r(){n.emit("free",t,e.host,e.port)}function i(e){n.removeSocket(t),t.removeListener("free",r),t.removeListener("close",i),t.removeListener("agentRemove",i)}t.on("free",r),t.on("close",i),t.on("agentRemove",i),e.request.onSocket(t)})},o.prototype.createSocket=function(i,n){var a=this,o={};a.sockets.push(o);var e=l({},a.proxyOptions,{method:"CONNECT",path:i.host+":"+i.port,agent:!1});e.proxyAuth&&(e.headers=e.headers||{},e.headers["Proxy-Authorization"]="Basic "+p.from(e.proxyAuth).toString("base64")),c("making CONNECT request");var s=a.request(e);function u(e,t,r){s.removeAllListeners(),t.removeAllListeners(),200===e.statusCode?(f.equal(r.length,0),c("tunneling connection has established"),a.sockets[a.sockets.indexOf(o)]=t,n(t)):(c("tunneling socket could not be established, statusCode=%d",e.statusCode),(e=new Error("tunneling socket could not be established, statusCode="+e.statusCode)).code="ECONNRESET",i.request.emit("error",e),a.removeSocket(o))}s.useChunkedEncodingByDefault=!1,s.once("response",function(e){e.upgrade=!0}),s.once("upgrade",function(e,t,r){h.nextTick(function(){u(e,t,r)})}),s.once("connect",u),s.once("error",function(e){s.removeAllListeners(),c("tunneling socket could not be established, cause=%s\n",e.message,e.stack);e=new Error("tunneling socket could not be established, cause="+e.message);e.code="ECONNRESET",i.request.emit("error",e),a.removeSocket(o)}),s.end()},o.prototype.removeSocket=function(e){e=this.sockets.indexOf(e);-1!==e&&(this.sockets.splice(e,1),(e=this.requests.shift())&&this.createConnection(e))},c=h.env.NODE_DEBUG&&/\btunnel\b/.test(h.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:function(){},u.debug=c}).call(this)}).call(this,s("_process"))},{_process:354,assert:68,events:229,http:458,https:294,net:180,"safe-buffer":421,tls:180,util:481}],474:[function(e,t,r){!function(a){"use strict";var d=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;t++)r[t]=e[t];return r},o=function(){throw new Error("no PRNG")},n=new Uint8Array(16),r=new Uint8Array(32);r[0]=9;var c=d(),f=d([1]),m=d([56129,1]),p=d([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),l=d([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),i=d([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),s=d([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=d([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function u(e,t,r,i){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=i>>24&255,e[t+5]=i>>16&255,e[t+6]=i>>8&255,e[t+7]=255&i}function g(e,t,r,i,n){for(var a=0,o=0;o<n;o++)a|=e[t+o]^r[i+o];return(1&a-1>>>8)-1}function b(e,t,r,i){return g(e,t,r,i,16)}function y(e,t,r,i){return g(e,t,r,i,32)}function v(e,t,r,i){!function(e,t,r,i){for(var n,a=255&i[0]|(255&i[1])<<8|(255&i[2])<<16|(255&i[3])<<24,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,f=255&i[4]|(255&i[5])<<8|(255&i[6])<<16|(255&i[7])<<24,p=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,l=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,d=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&i[8]|(255&i[9])<<8|(255&i[10])<<16|(255&i[11])<<24,g=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,b=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,t=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,r=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,i=255&i[12]|(255&i[13])<<8|(255&i[14])<<16|(255&i[15])<<24,y=a,v=o,_=s,w=u,k=c,x=f,S=p,j=l,E=h,A=d,P=m,I=g,T=b,O=t,C=r,R=i,B=0;B<20;B+=2)y^=(n=(T^=(n=(E^=(n=(k^=(n=y+T|0)<<7|n>>>25)+y|0)<<9|n>>>23)+k|0)<<13|n>>>19)+E|0)<<18|n>>>14,x^=(n=(v^=(n=(O^=(n=(A^=(n=x+v|0)<<7|n>>>25)+x|0)<<9|n>>>23)+A|0)<<13|n>>>19)+O|0)<<18|n>>>14,P^=(n=(S^=(n=(_^=(n=(C^=(n=P+S|0)<<7|n>>>25)+P|0)<<9|n>>>23)+C|0)<<13|n>>>19)+_|0)<<18|n>>>14,R^=(n=(I^=(n=(j^=(n=(w^=(n=R+I|0)<<7|n>>>25)+R|0)<<9|n>>>23)+w|0)<<13|n>>>19)+j|0)<<18|n>>>14,y^=(n=(w^=(n=(_^=(n=(v^=(n=y+w|0)<<7|n>>>25)+y|0)<<9|n>>>23)+v|0)<<13|n>>>19)+_|0)<<18|n>>>14,x^=(n=(k^=(n=(j^=(n=(S^=(n=x+k|0)<<7|n>>>25)+x|0)<<9|n>>>23)+S|0)<<13|n>>>19)+j|0)<<18|n>>>14,P^=(n=(A^=(n=(E^=(n=(I^=(n=P+A|0)<<7|n>>>25)+P|0)<<9|n>>>23)+I|0)<<13|n>>>19)+E|0)<<18|n>>>14,R^=(n=(C^=(n=(O^=(n=(T^=(n=R+C|0)<<7|n>>>25)+R|0)<<9|n>>>23)+T|0)<<13|n>>>19)+O|0)<<18|n>>>14;y=y+a|0,v=v+o|0,_=_+s|0,w=w+u|0,k=k+c|0,x=x+f|0,S=S+p|0,j=j+l|0,E=E+h|0,A=A+d|0,P=P+m|0,I=I+g|0,T=T+b|0,O=O+t|0,C=C+r|0,R=R+i|0,e[0]=y>>>0&255,e[1]=y>>>8&255,e[2]=y>>>16&255,e[3]=y>>>24&255,e[4]=v>>>0&255,e[5]=v>>>8&255,e[6]=v>>>16&255,e[7]=v>>>24&255,e[8]=_>>>0&255,e[9]=_>>>8&255,e[10]=_>>>16&255,e[11]=_>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=k>>>0&255,e[17]=k>>>8&255,e[18]=k>>>16&255,e[19]=k>>>24&255,e[20]=x>>>0&255,e[21]=x>>>8&255,e[22]=x>>>16&255,e[23]=x>>>24&255,e[24]=S>>>0&255,e[25]=S>>>8&255,e[26]=S>>>16&255,e[27]=S>>>24&255,e[28]=j>>>0&255,e[29]=j>>>8&255,e[30]=j>>>16&255,e[31]=j>>>24&255,e[32]=E>>>0&255,e[33]=E>>>8&255,e[34]=E>>>16&255,e[35]=E>>>24&255,e[36]=A>>>0&255,e[37]=A>>>8&255,e[38]=A>>>16&255,e[39]=A>>>24&255,e[40]=P>>>0&255,e[41]=P>>>8&255,e[42]=P>>>16&255,e[43]=P>>>24&255,e[44]=I>>>0&255,e[45]=I>>>8&255,e[46]=I>>>16&255,e[47]=I>>>24&255,e[48]=T>>>0&255,e[49]=T>>>8&255,e[50]=T>>>16&255,e[51]=T>>>24&255,e[52]=O>>>0&255,e[53]=O>>>8&255,e[54]=O>>>16&255,e[55]=O>>>24&255,e[56]=C>>>0&255,e[57]=C>>>8&255,e[58]=C>>>16&255,e[59]=C>>>24&255,e[60]=R>>>0&255,e[61]=R>>>8&255,e[62]=R>>>16&255,e[63]=R>>>24&255}(e,t,r,i)}function _(e,v,_,w){!function(e){for(var t,r=255&w[0]|(255&w[1])<<8|(255&w[2])<<16|(255&w[3])<<24,i=255&_[0]|(255&_[1])<<8|(255&_[2])<<16|(255&_[3])<<24,n=255&_[4]|(255&_[5])<<8|(255&_[6])<<16|(255&_[7])<<24,a=255&_[8]|(255&_[9])<<8|(255&_[10])<<16|(255&_[11])<<24,o=255&_[12]|(255&_[13])<<8|(255&_[14])<<16|(255&_[15])<<24,s=255&w[4]|(255&w[5])<<8|(255&w[6])<<16|(255&w[7])<<24,u=255&v[0]|(255&v[1])<<8|(255&v[2])<<16|(255&v[3])<<24,c=255&v[4]|(255&v[5])<<8|(255&v[6])<<16|(255&v[7])<<24,f=255&v[8]|(255&v[9])<<8|(255&v[10])<<16|(255&v[11])<<24,p=255&v[12]|(255&v[13])<<8|(255&v[14])<<16|(255&v[15])<<24,l=255&w[8]|(255&w[9])<<8|(255&w[10])<<16|(255&w[11])<<24,h=255&_[16]|(255&_[17])<<8|(255&_[18])<<16|(255&_[19])<<24,d=255&_[20]|(255&_[21])<<8|(255&_[22])<<16|(255&_[23])<<24,m=255&_[24]|(255&_[25])<<8|(255&_[26])<<16|(255&_[27])<<24,g=255&_[28]|(255&_[29])<<8|(255&_[30])<<16|(255&_[31])<<24,b=255&w[12]|(255&w[13])<<8|(255&w[14])<<16|(255&w[15])<<24,y=0;y<20;y+=2)r^=(t=(d^=(t=(f^=(t=(o^=(t=r+d|0)<<7|t>>>25)+r|0)<<9|t>>>23)+o|0)<<13|t>>>19)+f|0)<<18|t>>>14,s^=(t=(i^=(t=(m^=(t=(p^=(t=s+i|0)<<7|t>>>25)+s|0)<<9|t>>>23)+p|0)<<13|t>>>19)+m|0)<<18|t>>>14,l^=(t=(u^=(t=(n^=(t=(g^=(t=l+u|0)<<7|t>>>25)+l|0)<<9|t>>>23)+g|0)<<13|t>>>19)+n|0)<<18|t>>>14,b^=(t=(h^=(t=(c^=(t=(a^=(t=b+h|0)<<7|t>>>25)+b|0)<<9|t>>>23)+a|0)<<13|t>>>19)+c|0)<<18|t>>>14,r^=(t=(a^=(t=(n^=(t=(i^=(t=r+a|0)<<7|t>>>25)+r|0)<<9|t>>>23)+i|0)<<13|t>>>19)+n|0)<<18|t>>>14,s^=(t=(o^=(t=(c^=(t=(u^=(t=s+o|0)<<7|t>>>25)+s|0)<<9|t>>>23)+u|0)<<13|t>>>19)+c|0)<<18|t>>>14,l^=(t=(p^=(t=(f^=(t=(h^=(t=l+p|0)<<7|t>>>25)+l|0)<<9|t>>>23)+h|0)<<13|t>>>19)+f|0)<<18|t>>>14,b^=(t=(g^=(t=(m^=(t=(d^=(t=b+g|0)<<7|t>>>25)+b|0)<<9|t>>>23)+d|0)<<13|t>>>19)+m|0)<<18|t>>>14;e[0]=r>>>0&255,e[1]=r>>>8&255,e[2]=r>>>16&255,e[3]=r>>>24&255,e[4]=s>>>0&255,e[5]=s>>>8&255,e[6]=s>>>16&255,e[7]=s>>>24&255,e[8]=l>>>0&255,e[9]=l>>>8&255,e[10]=l>>>16&255,e[11]=l>>>24&255,e[12]=b>>>0&255,e[13]=b>>>8&255,e[14]=b>>>16&255,e[15]=b>>>24&255,e[16]=u>>>0&255,e[17]=u>>>8&255,e[18]=u>>>16&255,e[19]=u>>>24&255,e[20]=c>>>0&255,e[21]=c>>>8&255,e[22]=c>>>16&255,e[23]=c>>>24&255,e[24]=f>>>0&255,e[25]=f>>>8&255,e[26]=f>>>16&255,e[27]=f>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function k(e,t,r,i,n,a,o){for(var s,u=new Uint8Array(16),c=new Uint8Array(64),f=0;f<16;f++)u[f]=0;for(f=0;f<8;f++)u[f]=a[f];for(;64<=n;){for(v(c,u,o,w),f=0;f<64;f++)e[t+f]=r[i+f]^c[f];for(s=1,f=8;f<16;f++)s=s+(255&u[f])|0,u[f]=255&s,s>>>=8;n-=64,t+=64,i+=64}if(0<n)for(v(c,u,o,w),f=0;f<n;f++)e[t+f]=r[i+f]^c[f];return 0}function x(e,t,r,i,n){for(var a,o=new Uint8Array(16),s=new Uint8Array(64),u=0;u<16;u++)o[u]=0;for(u=0;u<8;u++)o[u]=i[u];for(;64<=r;){for(v(s,o,n,w),u=0;u<64;u++)e[t+u]=s[u];for(a=1,u=8;u<16;u++)a=a+(255&o[u])|0,o[u]=255&a,a>>>=8;r-=64,t+=64}if(0<r)for(v(s,o,n,w),u=0;u<r;u++)e[t+u]=s[u];return 0}function S(e,t,r,i,n){var a=new Uint8Array(32);_(a,i,n,w);for(var o=new Uint8Array(8),s=0;s<8;s++)o[s]=i[s+16];return x(e,t,r,o,a)}function j(e,t,r,i,n,a,o){var s=new Uint8Array(32);_(s,a,o,w);for(var u=new Uint8Array(8),c=0;c<8;c++)u[c]=a[c+16];return k(e,t,r,i,n,u,s)}var E=function(e){var t,r;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,t=255&e[this.fin=0]|(255&e[1])<<8,this.r[0]=8191&t,r=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|r<<3),t=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|t<<6),r=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(t>>>7|r<<9),t=255&e[8]|(255&e[9])<<8,this.r[4]=255&(r>>>4|t<<12),this.r[5]=t>>>1&8190,r=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(t>>>14|r<<2),t=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(r>>>11|t<<5),r=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(t>>>8|r<<8),this.r[9]=r>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function A(e,t,r,i,n,a){a=new E(a);return a.update(r,i,n),a.finish(e,t),0}function P(e,t,r,i,n,a){var o=new Uint8Array(16);return A(o,0,r,i,n,a),b(e,t,o,0)}function I(e,t,r,i,n){var a;if(r<32)return-1;for(j(e,0,t,0,r,i,n),A(e,16,e,32,r-32,e),a=0;a<16;a++)e[a]=0;return 0}function T(e,t,r,i,n){var a,o=new Uint8Array(32);if(r<32)return-1;if(S(o,0,32,i,n),0!==P(t,16,t,32,r-32,o))return-1;for(j(e,0,t,0,r,i,n),a=0;a<32;a++)e[a]=0;return 0}function O(e,t){for(var r=0;r<16;r++)e[r]=0|t[r]}function C(e){for(var t,r=1,i=0;i<16;i++)t=e[i]+r+65535,r=Math.floor(t/65536),e[i]=t-65536*r;e[0]+=r-1+37*(r-1)}function R(e,t,r){for(var i,n=~(r-1),a=0;a<16;a++)i=n&(e[a]^t[a]),e[a]^=i,t[a]^=i}function B(e,t){for(var r,i,n=d(),a=d(),o=0;o<16;o++)a[o]=t[o];for(C(a),C(a),C(a),r=0;r<2;r++){for(n[0]=a[0]-65517,o=1;o<15;o++)n[o]=a[o]-65535-(n[o-1]>>16&1),n[o-1]&=65535;n[15]=a[15]-32767-(n[14]>>16&1),i=n[15]>>16&1,n[14]&=65535,R(a,n,1-i)}for(o=0;o<16;o++)e[2*o]=255&a[o],e[2*o+1]=a[o]>>8}function F(e,t){var r=new Uint8Array(32),i=new Uint8Array(32);return B(r,e),B(i,t),y(r,0,i,0)}function M(e){var t=new Uint8Array(32);return B(t,e),1&t[0]}function z(e,t){for(var r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function N(e,t,r){for(var i=0;i<16;i++)e[i]=t[i]+r[i]}function D(e,t,r){for(var i=0;i<16;i++)e[i]=t[i]-r[i]}function L(e,t,r){var i=0,n=0,a=0,o=0,s=0,u=0,c=0,f=0,p=0,l=0,h=0,d=0,m=0,g=0,b=0,y=0,v=0,_=0,w=0,k=0,x=0,S=0,j=0,E=0,A=0,P=0,I=0,T=0,O=0,C=0,R=0,B=r[0],F=r[1],M=r[2],z=r[3],N=r[4],D=r[5],L=r[6],q=r[7],U=r[8],H=r[9],K=r[10],V=r[11],$=r[12],G=r[13],W=r[14],Z=r[15],r=t[0];i+=r*B,n+=r*F,a+=r*M,o+=r*z,s+=r*N,u+=r*D,c+=r*L,f+=r*q,p+=r*U,l+=r*H,h+=r*K,d+=r*V,m+=r*$,g+=r*G,b+=r*W,y+=r*Z,n+=(r=t[1])*B,a+=r*F,o+=r*M,s+=r*z,u+=r*N,c+=r*D,f+=r*L,p+=r*q,l+=r*U,h+=r*H,d+=r*K,m+=r*V,g+=r*$,b+=r*G,y+=r*W,v+=r*Z,a+=(r=t[2])*B,o+=r*F,s+=r*M,u+=r*z,c+=r*N,f+=r*D,p+=r*L,l+=r*q,h+=r*U,d+=r*H,m+=r*K,g+=r*V,b+=r*$,y+=r*G,v+=r*W,_+=r*Z,o+=(r=t[3])*B,s+=r*F,u+=r*M,c+=r*z,f+=r*N,p+=r*D,l+=r*L,h+=r*q,d+=r*U,m+=r*H,g+=r*K,b+=r*V,y+=r*$,v+=r*G,_+=r*W,w+=r*Z,s+=(r=t[4])*B,u+=r*F,c+=r*M,f+=r*z,p+=r*N,l+=r*D,h+=r*L,d+=r*q,m+=r*U,g+=r*H,b+=r*K,y+=r*V,v+=r*$,_+=r*G,w+=r*W,k+=r*Z,u+=(r=t[5])*B,c+=r*F,f+=r*M,p+=r*z,l+=r*N,h+=r*D,d+=r*L,m+=r*q,g+=r*U,b+=r*H,y+=r*K,v+=r*V,_+=r*$,w+=r*G,k+=r*W,x+=r*Z,c+=(r=t[6])*B,f+=r*F,p+=r*M,l+=r*z,h+=r*N,d+=r*D,m+=r*L,g+=r*q,b+=r*U,y+=r*H,v+=r*K,_+=r*V,w+=r*$,k+=r*G,x+=r*W,S+=r*Z,f+=(r=t[7])*B,p+=r*F,l+=r*M,h+=r*z,d+=r*N,m+=r*D,g+=r*L,b+=r*q,y+=r*U,v+=r*H,_+=r*K,w+=r*V,k+=r*$,x+=r*G,S+=r*W,j+=r*Z,p+=(r=t[8])*B,l+=r*F,h+=r*M,d+=r*z,m+=r*N,g+=r*D,b+=r*L,y+=r*q,v+=r*U,_+=r*H,w+=r*K,k+=r*V,x+=r*$,S+=r*G,j+=r*W,E+=r*Z,l+=(r=t[9])*B,h+=r*F,d+=r*M,m+=r*z,g+=r*N,b+=r*D,y+=r*L,v+=r*q,_+=r*U,w+=r*H,k+=r*K,x+=r*V,S+=r*$,j+=r*G,E+=r*W,A+=r*Z,h+=(r=t[10])*B,d+=r*F,m+=r*M,g+=r*z,b+=r*N,y+=r*D,v+=r*L,_+=r*q,w+=r*U,k+=r*H,x+=r*K,S+=r*V,j+=r*$,E+=r*G,A+=r*W,P+=r*Z,d+=(r=t[11])*B,m+=r*F,g+=r*M,b+=r*z,y+=r*N,v+=r*D,_+=r*L,w+=r*q,k+=r*U,x+=r*H,S+=r*K,j+=r*V,E+=r*$,A+=r*G,P+=r*W,I+=r*Z,m+=(r=t[12])*B,g+=r*F,b+=r*M,y+=r*z,v+=r*N,_+=r*D,w+=r*L,k+=r*q,x+=r*U,S+=r*H,j+=r*K,E+=r*V,A+=r*$,P+=r*G,I+=r*W,T+=r*Z,g+=(r=t[13])*B,b+=r*F,y+=r*M,v+=r*z,_+=r*N,w+=r*D,k+=r*L,x+=r*q,S+=r*U,j+=r*H,E+=r*K,A+=r*V,P+=r*$,I+=r*G,T+=r*W,O+=r*Z,b+=(r=t[14])*B,y+=r*F,v+=r*M,_+=r*z,w+=r*N,k+=r*D,x+=r*L,S+=r*q,j+=r*U,E+=r*H,A+=r*K,P+=r*V,I+=r*$,T+=r*G,O+=r*W,C+=r*Z,y+=(r=t[15])*B,n+=38*(_+=r*M),a+=38*(w+=r*z),o+=38*(k+=r*N),s+=38*(x+=r*D),u+=38*(S+=r*L),c+=38*(j+=r*q),f+=38*(E+=r*U),p+=38*(A+=r*H),l+=38*(P+=r*K),h+=38*(I+=r*V),d+=38*(T+=r*$),m+=38*(O+=r*G),g+=38*(C+=r*W),b+=38*(R+=r*Z),i=(r=1+(i+=38*(v+=r*F))+65535)-65536*(R=Math.floor(r/65536)),n=(r=n+R+65535)-65536*(R=Math.floor(r/65536)),a=(r=a+R+65535)-65536*(R=Math.floor(r/65536)),o=(r=o+R+65535)-65536*(R=Math.floor(r/65536)),s=(r=s+R+65535)-65536*(R=Math.floor(r/65536)),u=(r=u+R+65535)-65536*(R=Math.floor(r/65536)),c=(r=c+R+65535)-65536*(R=Math.floor(r/65536)),f=(r=f+R+65535)-65536*(R=Math.floor(r/65536)),p=(r=p+R+65535)-65536*(R=Math.floor(r/65536)),l=(r=l+R+65535)-65536*(R=Math.floor(r/65536)),h=(r=h+R+65535)-65536*(R=Math.floor(r/65536)),d=(r=d+R+65535)-65536*(R=Math.floor(r/65536)),m=(r=m+R+65535)-65536*(R=Math.floor(r/65536)),g=(r=g+R+65535)-65536*(R=Math.floor(r/65536)),b=(r=b+R+65535)-65536*(R=Math.floor(r/65536)),y=(r=y+R+65535)-65536*(R=Math.floor(r/65536)),i+=R-1+37*(R-1),i=(r=1+i+65535)-65536*(R=Math.floor(r/65536)),n=(r=n+R+65535)-65536*(R=Math.floor(r/65536)),a=(r=a+R+65535)-65536*(R=Math.floor(r/65536)),o=(r=o+R+65535)-65536*(R=Math.floor(r/65536)),s=(r=s+R+65535)-65536*(R=Math.floor(r/65536)),u=(r=u+R+65535)-65536*(R=Math.floor(r/65536)),c=(r=c+R+65535)-65536*(R=Math.floor(r/65536)),f=(r=f+R+65535)-65536*(R=Math.floor(r/65536)),p=(r=p+R+65535)-65536*(R=Math.floor(r/65536)),l=(r=l+R+65535)-65536*(R=Math.floor(r/65536)),h=(r=h+R+65535)-65536*(R=Math.floor(r/65536)),d=(r=d+R+65535)-65536*(R=Math.floor(r/65536)),m=(r=m+R+65535)-65536*(R=Math.floor(r/65536)),g=(r=g+R+65535)-65536*(R=Math.floor(r/65536)),b=(r=b+R+65535)-65536*(R=Math.floor(r/65536)),y=(r=y+R+65535)-65536*(R=Math.floor(r/65536)),i+=R-1+37*(R-1),e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e[6]=c,e[7]=f,e[8]=p,e[9]=l,e[10]=h,e[11]=d,e[12]=m,e[13]=g,e[14]=b,e[15]=y}function q(e,t){L(e,t,t)}function U(e,t){for(var r=d(),i=0;i<16;i++)r[i]=t[i];for(i=253;0<=i;i--)q(r,r),2!==i&&4!==i&&L(r,r,t);for(i=0;i<16;i++)e[i]=r[i]}function H(e,t,r){for(var i,n=new Uint8Array(32),a=new Float64Array(80),o=d(),s=d(),u=d(),c=d(),f=d(),p=d(),l=0;l<31;l++)n[l]=t[l];for(n[31]=127&t[31]|64,n[0]&=248,z(a,r),l=0;l<16;l++)s[l]=a[l],c[l]=o[l]=u[l]=0;for(o[0]=c[0]=1,l=254;0<=l;--l)R(o,s,i=n[l>>>3]>>>(7&l)&1),R(u,c,i),N(f,o,u),D(o,o,u),N(u,s,c),D(s,s,c),q(c,f),q(p,o),L(o,u,o),L(u,s,f),N(f,o,u),D(o,o,u),q(s,o),D(u,c,p),L(o,u,m),N(o,o,c),L(u,u,o),L(o,c,p),L(c,s,a),q(s,f),R(o,s,i),R(u,c,i);for(l=0;l<16;l++)a[l+16]=o[l],a[l+32]=u[l],a[l+48]=s[l],a[l+64]=c[l];var h=a.subarray(32),r=a.subarray(16);return U(h,h),L(r,r,h),B(e,r),0}function K(e,t){return H(e,t,r)}function V(e,t){return o(t,32),K(e,t)}function $(e,t,r){var i=new Uint8Array(32);return H(i,r,t),_(e,n,i,w)}E.prototype.blocks=function(e,t,r){for(var i,n,a,o,s,u,c,f,p,l,h,d=this.fin?0:2048,m=this.h[0],g=this.h[1],b=this.h[2],y=this.h[3],v=this.h[4],_=this.h[5],w=this.h[6],k=this.h[7],x=this.h[8],S=this.h[9],j=this.r[0],E=this.r[1],A=this.r[2],P=this.r[3],I=this.r[4],T=this.r[5],O=this.r[6],C=this.r[7],R=this.r[8],B=this.r[9];16<=r;)n=i=0,n+=(m+=8191&(o=255&e[t+0]|(255&e[t+1])<<8))*j,n+=(g+=8191&(o>>>13|(s=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*B),n+=(b+=8191&(s>>>10|(u=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*R),n+=(y+=8191&(u>>>7|(c=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*C),i=(n+=(v+=8191&(c>>>4|(f=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*O))>>>13,n&=8191,n+=(_+=f>>>1&8191)*(5*T),n+=(w+=8191&(f>>>14|(p=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*I),n+=(k+=8191&(p>>>11|(l=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*P),n+=(x+=8191&(l>>>8|(h=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*A),a=i+=(n+=(S+=h>>>5|d)*(5*E))>>>13,a+=m*E,a+=g*j,a+=b*(5*B),a+=y*(5*R),i=(a+=v*(5*C))>>>13,a&=8191,a+=_*(5*O),a+=w*(5*T),a+=k*(5*I),a+=x*(5*P),i+=(a+=S*(5*A))>>>13,a&=8191,o=i,o+=m*A,o+=g*E,o+=b*j,o+=y*(5*B),i=(o+=v*(5*R))>>>13,o&=8191,o+=_*(5*C),o+=w*(5*O),o+=k*(5*T),o+=x*(5*I),s=i+=(o+=S*(5*P))>>>13,s+=m*P,s+=g*A,s+=b*E,s+=y*j,i=(s+=v*(5*B))>>>13,s&=8191,s+=_*(5*R),s+=w*(5*C),s+=k*(5*O),s+=x*(5*T),u=i+=(s+=S*(5*I))>>>13,u+=m*I,u+=g*P,u+=b*A,u+=y*E,i=(u+=v*j)>>>13,u&=8191,u+=_*(5*B),u+=w*(5*R),u+=k*(5*C),u+=x*(5*O),c=i+=(u+=S*(5*T))>>>13,c+=m*T,c+=g*I,c+=b*P,c+=y*A,i=(c+=v*E)>>>13,c&=8191,c+=_*j,c+=w*(5*B),c+=k*(5*R),c+=x*(5*C),f=i+=(c+=S*(5*O))>>>13,f+=m*O,f+=g*T,f+=b*I,f+=y*P,i=(f+=v*A)>>>13,f&=8191,f+=_*E,f+=w*j,f+=k*(5*B),f+=x*(5*R),p=i+=(f+=S*(5*C))>>>13,p+=m*C,p+=g*O,p+=b*T,p+=y*I,i=(p+=v*P)>>>13,p&=8191,p+=_*A,p+=w*E,p+=k*j,p+=x*(5*B),l=i+=(p+=S*(5*R))>>>13,l+=m*R,l+=g*C,l+=b*O,l+=y*T,i=(l+=v*I)>>>13,l&=8191,l+=_*P,l+=w*A,l+=k*E,l+=x*j,h=i+=(l+=S*(5*B))>>>13,h+=m*B,h+=g*R,h+=b*C,h+=y*O,i=(h+=v*T)>>>13,h&=8191,h+=_*I,h+=w*P,h+=k*A,h+=x*E,m=8191&(i=(i=((i+=(h+=S*j)>>>13)<<2)+i|0)+(n&=8191)|0),g=a+=i>>>=13,b=o&=8191,y=s&=8191,v=u&=8191,_=c&=8191,w=f&=8191,k=p&=8191,x=l&=8191,S=h&=8191,t+=16,r-=16;this.h[0]=m,this.h[1]=g,this.h[2]=b,this.h[3]=y,this.h[4]=v,this.h[5]=_,this.h[6]=w,this.h[7]=k,this.h[8]=x,this.h[9]=S},E.prototype.finish=function(e,t){var r,i,n,a,o=new Uint16Array(10);if(this.leftover){for(a=this.leftover,this.buffer[a++]=1;a<16;a++)this.buffer[a]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,a=2;a<10;a++)this.h[a]+=r,r=this.h[a]>>>13,this.h[a]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,o[0]=this.h[0]+5,r=o[0]>>>13,o[0]&=8191,a=1;a<10;a++)o[a]=this.h[a]+r,r=o[a]>>>13,o[a]&=8191;for(o[9]-=8192,i=(1^r)-1,a=0;a<10;a++)o[a]&=i;for(i=~i,a=0;a<10;a++)this.h[a]=this.h[a]&i|o[a];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),n=this.h[0]+this.pad[0],this.h[0]=65535&n,a=1;a<8;a++)n=(this.h[a]+this.pad[a]|0)+(n>>>16)|0,this.h[a]=65535&n;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},E.prototype.update=function(e,t,r){var i,n;if(this.leftover){for(r<(n=16-this.leftover)&&(n=r),i=0;i<n;i++)this.buffer[this.leftover+i]=e[t+i];if(r-=n,t+=n,this.leftover+=n,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(16<=r&&(n=r-r%16,this.blocks(e,t,n),t+=n,r-=n),r){for(i=0;i<r;i++)this.buffer[this.leftover+i]=e[t+i];this.leftover+=r}};var G=I,W=T,Z=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Y(e,t,r,i){for(var n,a,o,s,u,c,f,p,l,h,d,m,g,b,y,v,_,w,k,x,S,j,E,A,P=new Int32Array(16),I=new Int32Array(16),T=e[0],O=e[1],C=e[2],R=e[3],B=e[4],F=e[5],M=e[6],z=e[7],N=t[0],D=t[1],L=t[2],q=t[3],U=t[4],H=t[5],K=t[6],V=t[7],$=0;128<=i;){for(_=0;_<16;_++)w=8*_+$,P[_]=r[w+0]<<24|r[w+1]<<16|r[w+2]<<8|r[w+3],I[_]=r[w+4]<<24|r[w+5]<<16|r[w+6]<<8|r[w+7];for(_=0;_<80;_++)if(n=O,a=C,o=R,p=D,l=L,h=q,S=65535&(x=V),j=x>>>16,E=65535&(k=z),A=k>>>16,S+=65535&(x=((d=U)>>>14|(s=B)<<18)^(U>>>18|B<<14)^(B>>>9|U<<23)),j+=x>>>16,E+=65535&(k=(B>>>14|U<<18)^(B>>>18|U<<14)^(U>>>9|B<<23)),A+=k>>>16,S+=65535&(x=U&(m=H)^~U&(g=K)),j+=x>>>16,E+=65535&(k=B&(u=F)^~B&(c=M)),A+=k>>>16,k=Z[2*_],S+=65535&(x=Z[2*_+1]),j+=x>>>16,E+=65535&k,A+=k>>>16,k=P[_%16],j+=(x=I[_%16])>>>16,E+=65535&k,A+=k>>>16,E+=(j+=(S+=65535&x)>>>16)>>>16,S=65535&(x=v=65535&S|j<<16),j=x>>>16,E=65535&(k=y=65535&E|(A+=E>>>16)<<16),A=k>>>16,S+=65535&(x=(N>>>28|T<<4)^(T>>>2|N<<30)^(T>>>7|N<<25)),j+=x>>>16,E+=65535&(k=(T>>>28|N<<4)^(N>>>2|T<<30)^(N>>>7|T<<25)),A+=k>>>16,j+=(x=N&D^N&L^D&L)>>>16,E+=65535&(k=T&O^T&C^O&C),A+=k>>>16,f=65535&(E+=(j+=(S+=65535&x)>>>16)>>>16)|(A+=E>>>16)<<16,b=65535&S|j<<16,S=65535&(x=h),j=x>>>16,E=65535&(k=o),A=k>>>16,j+=(x=v)>>>16,E+=65535&(k=y),A+=k>>>16,O=T,C=n,R=a,B=65535&(E+=(j+=(S+=65535&x)>>>16)>>>16)|(A+=E>>>16)<<16,F=s,M=u,z=c,T=f,D=N,L=p,q=l,U=65535&S|j<<16,H=d,K=m,V=g,N=b,_%16==15)for(w=0;w<16;w++)k=P[w],S=65535&(x=I[w]),j=x>>>16,E=65535&k,A=k>>>16,k=P[(w+9)%16],S+=65535&(x=I[(w+9)%16]),j+=x>>>16,E+=65535&k,A+=k>>>16,y=P[(w+1)%16],S+=65535&(x=((v=I[(w+1)%16])>>>1|y<<31)^(v>>>8|y<<24)^(v>>>7|y<<25)),j+=x>>>16,E+=65535&(k=(y>>>1|v<<31)^(y>>>8|v<<24)^y>>>7),A+=k>>>16,y=P[(w+14)%16],j+=(x=((v=I[(w+14)%16])>>>19|y<<13)^(y>>>29|v<<3)^(v>>>6|y<<26))>>>16,E+=65535&(k=(y>>>19|v<<13)^(v>>>29|y<<3)^y>>>6),A+=k>>>16,A+=(E+=(j+=(S+=65535&x)>>>16)>>>16)>>>16,P[w]=65535&E|A<<16,I[w]=65535&S|j<<16;S=65535&(x=N),j=x>>>16,E=65535&(k=T),A=k>>>16,k=e[0],j+=(x=t[0])>>>16,E+=65535&k,A+=k>>>16,A+=(E+=(j+=(S+=65535&x)>>>16)>>>16)>>>16,e[0]=T=65535&E|A<<16,t[0]=N=65535&S|j<<16,S=65535&(x=D),j=x>>>16,E=65535&(k=O),A=k>>>16,k=e[1],j+=(x=t[1])>>>16,E+=65535&k,A+=k>>>16,A+=(E+=(j+=(S+=65535&x)>>>16)>>>16)>>>16,e[1]=O=65535&E|A<<16,t[1]=D=65535&S|j<<16,S=65535&(x=L),j=x>>>16,E=65535&(k=C),A=k>>>16,k=e[2],j+=(x=t[2])>>>16,E+=65535&k,A+=k>>>16,A+=(E+=(j+=(S+=65535&x)>>>16)>>>16)>>>16,e[2]=C=65535&E|A<<16,t[2]=L=65535&S|j<<16,S=65535&(x=q),j=x>>>16,E=65535&(k=R),A=k>>>16,k=e[3],j+=(x=t[3])>>>16,E+=65535&k,A+=k>>>16,A+=(E+=(j+=(S+=65535&x)>>>16)>>>16)>>>16,e[3]=R=65535&E|A<<16,t[3]=q=65535&S|j<<16,S=65535&(x=U),j=x>>>16,E=65535&(k=B),A=k>>>16,k=e[4],j+=(x=t[4])>>>16,E+=65535&k,A+=k>>>16,A+=(E+=(j+=(S+=65535&x)>>>16)>>>16)>>>16,e[4]=B=65535&E|A<<16,t[4]=U=65535&S|j<<16,S=65535&(x=H),j=x>>>16,E=65535&(k=F),A=k>>>16,k=e[5],j+=(x=t[5])>>>16,E+=65535&k,A+=k>>>16,A+=(E+=(j+=(S+=65535&x)>>>16)>>>16)>>>16,e[5]=F=65535&E|A<<16,t[5]=H=65535&S|j<<16,S=65535&(x=K),j=x>>>16,E=65535&(k=M),A=k>>>16,k=e[6],j+=(x=t[6])>>>16,E+=65535&k,A+=k>>>16,A+=(E+=(j+=(S+=65535&x)>>>16)>>>16)>>>16,e[6]=M=65535&E|A<<16,t[6]=K=65535&S|j<<16,S=65535&(x=V),j=x>>>16,E=65535&(k=z),A=k>>>16,k=e[7],j+=(x=t[7])>>>16,E+=65535&k,A+=k>>>16,A+=(E+=(j+=(S+=65535&x)>>>16)>>>16)>>>16,e[7]=z=65535&E|A<<16,t[7]=V=65535&S|j<<16,$+=128,i-=128}return i}function Q(e,t,r){var i,n=new Int32Array(8),a=new Int32Array(8),o=new Uint8Array(256),s=r;for(n[0]=1779033703,n[1]=3144134277,n[2]=1013904242,n[3]=2773480762,n[4]=1359893119,n[5]=2600822924,n[6]=528734635,n[7]=1541459225,a[0]=4089235720,a[1]=2227873595,a[2]=4271175723,a[3]=1595750129,a[4]=2917565137,a[5]=725511199,a[6]=4215389547,a[7]=327033209,Y(n,a,t,r),r%=128,i=0;i<r;i++)o[i]=t[s-r+i];for(o[r]=128,o[(r=256-128*(r<112?1:0))-9]=0,u(o,r-8,s/536870912|0,s<<3),Y(n,a,o,r),i=0;i<8;i++)u(e,8*i,n[i],a[i]);return 0}function X(e,t){var r=d(),i=d(),n=d(),a=d(),o=d(),s=d(),u=d(),c=d(),f=d();D(r,e[1],e[0]),D(f,t[1],t[0]),L(r,r,f),N(i,e[0],e[1]),N(f,t[0],t[1]),L(i,i,f),L(n,e[3],t[3]),L(n,n,l),L(a,e[2],t[2]),N(a,a,a),D(o,i,r),D(s,a,n),N(u,a,n),N(c,i,r),L(e[0],o,s),L(e[1],c,u),L(e[2],u,s),L(e[3],o,c)}function J(e,t,r){for(var i=0;i<4;i++)R(e[i],t[i],r)}function ee(e,t){var r=d(),i=d(),n=d();U(n,t[2]),L(r,t[0],n),L(i,t[1],n),B(e,i),e[31]^=M(r)<<7}function te(e,t,r){var i,n;for(O(e[0],c),O(e[1],f),O(e[2],f),O(e[3],c),n=255;0<=n;--n)J(e,t,i=r[n/8|0]>>(7&n)&1),X(t,e),X(e,e),J(e,t,i)}function re(e,t){var r=[d(),d(),d(),d()];O(r[0],i),O(r[1],s),O(r[2],f),L(r[3],i,s),te(e,r,t)}function ie(e,t,r){var i,n=new Uint8Array(64),a=[d(),d(),d(),d()];for(r||o(t,32),Q(n,t,32),n[0]&=248,n[31]&=127,n[31]|=64,re(a,n),ee(e,a),i=0;i<32;i++)t[i+32]=e[i];return 0}var ne,ae=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function oe(e,t){for(var r,i,n,a=63;32<=a;--a){for(r=0,i=a-32,n=a-12;i<n;++i)t[i]+=r-16*t[a]*ae[i-(a-32)],r=t[i]+128>>8,t[i]-=256*r;t[i]+=r,t[a]=0}for(i=r=0;i<32;i++)t[i]+=r-(t[31]>>4)*ae[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*ae[i];for(a=0;a<32;a++)t[a+1]+=t[a]>>8,e[a]=255&t[a]}function se(e){for(var t=new Float64Array(64),r=0;r<64;r++)t[r]=e[r];for(r=0;r<64;r++)e[r]=0;oe(e,t)}function ue(e,t,r,i){var n,a=new Uint8Array(64),o=new Uint8Array(64),s=new Uint8Array(64),u=new Float64Array(64),c=[d(),d(),d(),d()];Q(a,i,32),a[0]&=248,a[31]&=127,a[31]|=64;for(var f=r+64,p=0;p<r;p++)e[64+p]=t[p];for(p=0;p<32;p++)e[32+p]=a[32+p];for(Q(s,e.subarray(32),r+32),se(s),re(c,s),ee(e,c),p=32;p<64;p++)e[p]=i[p];for(Q(o,e,r+64),se(o),p=0;p<64;p++)u[p]=0;for(p=0;p<32;p++)u[p]=s[p];for(p=0;p<32;p++)for(n=0;n<32;n++)u[p+n]+=o[p]*a[n];return oe(e.subarray(32),u),f}function ce(e,t){var r=d(),i=d(),n=d(),a=d(),o=d(),s=d(),u=d();if(O(e[2],f),z(e[1],t),q(n,e[1]),L(a,n,p),D(n,n,e[2]),N(a,e[2],a),q(o,a),q(s,o),L(u,s,o),L(r,u,n),L(r,r,a),function(e,t){for(var r=d(),i=0;i<16;i++)r[i]=t[i];for(i=250;0<=i;i--)q(r,r),1!==i&&L(r,r,t);for(i=0;i<16;i++)e[i]=r[i]}(r,r),L(r,r,n),L(r,r,a),L(r,r,a),L(e[0],r,a),q(i,e[0]),L(i,i,a),F(i,n)&&L(e[0],e[0],h),q(i,e[0]),L(i,i,a),F(i,n))return 1;M(e[0])===t[31]>>7&&D(e[0],c,e[0]),L(e[3],e[0],e[1])}function fe(e,t,r,i){var n,a=new Uint8Array(32),o=new Uint8Array(64),s=[d(),d(),d(),d()],u=[d(),d(),d(),d()];if(r<64)return-1;if(ce(u,i))return-1;for(n=0;n<r;n++)e[n]=t[n];for(n=0;n<32;n++)e[n+32]=i[n];if(Q(o,e,r),se(o),te(s,u,o),re(u,t.subarray(32)),X(s,u),ee(a,s),r-=64,y(t,0,a,0)){for(n=0;n<r;n++)e[n]=0;return-1}for(n=0;n<r;n++)e[n]=t[n+64];return r}function pe(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function le(){for(var e,t=0;t<arguments.length;t++)if("[object Uint8Array]"!==(e=Object.prototype.toString.call(arguments[t])))throw new TypeError("unexpected type "+e+", use Uint8Array")}function he(e){for(var t=0;t<e.length;t++)e[t]=0}a.lowlevel={crypto_core_hsalsa20:_,crypto_stream_xor:j,crypto_stream:S,crypto_stream_salsa20_xor:k,crypto_stream_salsa20:x,crypto_onetimeauth:A,crypto_onetimeauth_verify:P,crypto_verify_16:b,crypto_verify_32:y,crypto_secretbox:I,crypto_secretbox_open:T,crypto_scalarmult:H,crypto_scalarmult_base:K,crypto_box_beforenm:$,crypto_box_afternm:G,crypto_box:function(e,t,r,i,n,a){var o=new Uint8Array(32);return $(o,n,a),G(e,t,r,i,o)},crypto_box_open:function(e,t,r,i,n,a){var o=new Uint8Array(32);return $(o,n,a),W(e,t,r,i,o)},crypto_box_keypair:V,crypto_hash:Q,crypto_sign:ue,crypto_sign_keypair:ie,crypto_sign_open:fe,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:16,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:64,crypto_sign_PUBLICKEYBYTES:32,crypto_sign_SECRETKEYBYTES:64,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64},a.util||(a.util={},a.util.decodeUTF8=a.util.encodeUTF8=a.util.encodeBase64=a.util.decodeBase64=function(){throw new Error("nacl.util moved into separate package: https://github.com/dchest/tweetnacl-util-js")}),a.randomBytes=function(e){var t=new Uint8Array(e);return o(t,e),t},a.secretbox=function(e,t,r){le(e,t,r),pe(r,t);for(var i=new Uint8Array(32+e.length),n=new Uint8Array(i.length),a=0;a<e.length;a++)i[a+32]=e[a];return I(n,i,i.length,t,r),n.subarray(16)},a.secretbox.open=function(e,t,r){le(e,t,r),pe(r,t);for(var i=new Uint8Array(16+e.length),n=new Uint8Array(i.length),a=0;a<e.length;a++)i[a+16]=e[a];return!(i.length<32)&&(0===T(n,i,i.length,t,r)&&n.subarray(32))},a.secretbox.keyLength=32,a.secretbox.nonceLength=24,a.secretbox.overheadLength=16,a.scalarMult=function(e,t){if(le(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var r=new Uint8Array(32);return H(r,e,t),r},a.scalarMult.base=function(e){if(le(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return K(t,e),t},a.scalarMult.scalarLength=32,a.scalarMult.groupElementLength=32,a.box=function(e,t,r,i){i=a.box.before(r,i);return a.secretbox(e,t,i)},a.box.before=function(t,e){le(t,e),function(e){if(32!==t.length)throw new Error("bad public key size");if(32!==e.length)throw new Error("bad secret key size")}(e);var r=new Uint8Array(32);return $(r,t,e),r},a.box.after=a.secretbox,a.box.open=function(e,t,r,i){i=a.box.before(r,i);return a.secretbox.open(e,t,i)},a.box.open.after=a.secretbox.open,a.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return V(e,t),{publicKey:e,secretKey:t}},a.box.keyPair.fromSecretKey=function(e){if(le(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return K(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},a.box.publicKeyLength=32,a.box.secretKeyLength=32,a.box.sharedKeyLength=32,a.box.nonceLength=24,a.box.overheadLength=a.secretbox.overheadLength,a.sign=function(e,t){if(le(e,t),64!==t.length)throw new Error("bad secret key size");var r=new Uint8Array(64+e.length);return ue(r,e,e.length,t),r},a.sign.open=function(e,t){if(2!==arguments.length)throw new Error("nacl.sign.open accepts 2 arguments; did you mean to use nacl.sign.detached.verify?");if(le(e,t),32!==t.length)throw new Error("bad public key size");var r=new Uint8Array(e.length),t=fe(r,e,e.length,t);if(t<0)return null;for(var i=new Uint8Array(t),n=0;n<i.length;n++)i[n]=r[n];return i},a.sign.detached=function(e,t){for(var r=a.sign(e,t),i=new Uint8Array(64),n=0;n<i.length;n++)i[n]=r[n];return i},a.sign.detached.verify=function(e,t,r){if(le(e,t,r),64!==t.length)throw new Error("bad signature size");if(32!==r.length)throw new Error("bad public key size");for(var i=new Uint8Array(64+e.length),n=new Uint8Array(64+e.length),a=0;a<64;a++)i[a]=t[a];for(a=0;a<e.length;a++)i[a+64]=e[a];return 0<=fe(n,i,i.length,r)},a.sign.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(64);return ie(e,t),{publicKey:e,secretKey:t}},a.sign.keyPair.fromSecretKey=function(e){if(le(e),64!==e.length)throw new Error("bad secret key size");for(var t=new Uint8Array(32),r=0;r<t.length;r++)t[r]=e[32+r];return{publicKey:t,secretKey:new Uint8Array(e)}},a.sign.keyPair.fromSeed=function(e){if(le(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(32),r=new Uint8Array(64),i=0;i<32;i++)r[i]=e[i];return ie(t,r,!0),{publicKey:t,secretKey:r}},a.sign.publicKeyLength=32,a.sign.secretKeyLength=64,a.sign.seedLength=32,a.sign.signatureLength=64,a.hash=function(e){le(e);var t=new Uint8Array(64);return Q(t,e,e.length),t},a.hash.hashLength=64,a.verify=function(e,t){return le(e,t),0!==e.length&&0!==t.length&&(e.length===t.length&&0===g(e,0,t,0,e.length))},a.setPRNG=function(e){o=e},(ne="undefined"!=typeof self?self.crypto||self.msCrypto:null)&&ne.getRandomValues?a.setPRNG(function(e,t){for(var r=new Uint8Array(t),i=0;i<t;i+=65536)ne.getRandomValues(r.subarray(i,i+Math.min(t-i,65536)));for(i=0;i<t;i++)e[i]=r[i];he(r)}):void 0!==e&&(ne=e("crypto"))&&ne.randomBytes&&a.setPRNG(function(e,t){for(var r=ne.randomBytes(t),i=0;i<t;i++)e[i]=r[i];he(r)})}(void 0!==t&&t.exports?t.exports:self.nacl=self.nacl||{})},{crypto:132}],475:[function(e,t,r){var i,n;i=this,n=function(e){"use strict";function j(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1<t.length){t[0]=t[0].slice(0,-1);for(var i=t.length-1,n=1;n<i;++n)t[n]=t[n].slice(1,-1);return t[i]=t[i].slice(1),t.join("")}return t[0]}function E(e){return"(?:"+e+")"}function i(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function d(e){return e.toUpperCase()}function t(e){var t="[A-Za-z]",r="[0-9]",i=j(r,"[A-Fa-f]"),n=E(E("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+E("%[89A-Fa-f]"+i+"%"+i+i)+"|"+E("%"+i+i)),a="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",o=j("[\\:\\/\\?\\#\\[\\]\\@]",a),s=e?"[\\uE000-\\uF8FF]":"[]",u=j(t,r,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),c=E(t+j(t,r,"[\\+\\-\\.]")+"*"),f=E(E(n+"|"+j(u,a,"[\\:]"))+"*"),p="(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9][0-9])|(?:0?[1-9][0-9])|0?0?[0-9])",l=E(p+"\\."+p+"\\."+p+"\\."+p),h=E(i+"{1,4}"),d=E(E(h+"\\:"+h)+"|"+l),m=E(E(h+"\\:")+"{6}"+d),g=E("\\:\\:"+E(h+"\\:")+"{5}"+d),b=E(E(h)+"?\\:\\:"+E(h+"\\:")+"{4}"+d),y=E(E(E(h+"\\:")+"{0,1}"+h)+"?\\:\\:"+E(h+"\\:")+"{3}"+d),v=E(E(E(h+"\\:")+"{0,2}"+h)+"?\\:\\:"+E(h+"\\:")+"{2}"+d),_=E(E(E(h+"\\:")+"{0,3}"+h)+"?\\:\\:"+h+"\\:"+d),w=E(E(E(h+"\\:")+"{0,4}"+h)+"?\\:\\:"+d),k=E(E(E(h+"\\:")+"{0,5}"+h)+"?\\:\\:"+h),x=E(E(E(h+"\\:")+"{0,6}"+h)+"?\\:\\:"),S=E([m,g,b,y,v,_,w,k,x].join("|")),e=E(E(u+"|"+n)+"+"),p=(E(S+"\\%25"+e),E(S+E("\\%25|\\%(?!"+i+"{2})")+e)),d=E("[vV]"+i+"+\\."+j(u,a,"[\\:]")+"+"),h=E("\\["+E(p+"|"+S+"|"+d)+"\\]"),m=E(E(n+"|"+j(u,a))+"*"),g=E(h+"|"+l+"(?!"+m+")|"+m),b="(?:[0-9]*)",y=E(E(f+"@")+"?"+g+E("\\:"+b)+"?"),v=E(n+"|"+j(u,a,"[\\:\\@]")),_=E(v+"*"),w=E(v+"+"),k=E(E(n+"|"+j(u,a,"[\\@]"))+"+"),x=E(E("\\/"+_)+"*"),p=E("\\/"+E(w+x)+"?"),d=E(k+x),h=E(w+x),m="(?!"+v+")",_=(E(x+"|"+p+"|"+d+"|"+h+"|"+m),E(E(v+"|"+j("[\\/\\?]",s))+"*")),k=E(E(v+"|[\\/\\?]")+"*"),w=E(E("\\/\\/"+y+x)+"|"+p+"|"+h+"|"+m),v=E(c+"\\:"+w+E("\\?"+_)+"?"+E("\\#"+k)+"?"),y=E(E("\\/\\/"+y+x)+"|"+p+"|"+d+"|"+m),y=E(y+E("\\?"+_)+"?"+E("\\#"+k)+"?");E(v+"|"+y),E(c+"\\:"+w+E("\\?"+_)+"?"),E(E("\\/\\/("+E("("+f+")@")+"?("+g+")"+E("\\:("+b+")")+"?)")+"?("+x+"|"+p+"|"+h+"|"+m+")"),E("\\?("+_+")"),E("\\#("+k+")"),E(E("\\/\\/("+E("("+f+")@")+"?("+g+")"+E("\\:("+b+")")+"?)")+"?("+x+"|"+p+"|"+d+"|"+m+")"),E("\\?("+_+")"),E("\\#("+k+")"),E(E("\\/\\/("+E("("+f+")@")+"?("+g+")"+E("\\:("+b+")")+"?)")+"?("+x+"|"+p+"|"+h+"|"+m+")"),E("\\?("+_+")"),E("\\#("+k+")"),E("("+f+")@"),E("\\:("+b+")");return{NOT_SCHEME:new RegExp(j("[^]",t,r,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(j("[^\\%\\:]",u,a),"g"),NOT_HOST:new RegExp(j("[^\\%\\[\\]\\:]",u,a),"g"),NOT_PATH:new RegExp(j("[^\\%\\/\\:\\@]",u,a),"g"),NOT_PATH_NOSCHEME:new RegExp(j("[^\\%\\/\\@]",u,a),"g"),NOT_QUERY:new RegExp(j("[^\\%]",u,a,"[\\:\\@\\/\\?]",s),"g"),NOT_FRAGMENT:new RegExp(j("[^\\%]",u,a,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(j("[^]",u,a),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(j("[^\\%]",u,o),"g"),PCT_ENCODED:new RegExp(n,"g"),IPV4ADDRESS:new RegExp("^("+l+")$"),IPV6ADDRESS:new RegExp("^\\[?("+S+")"+E(E("\\%25|\\%(?!"+i+"{2})")+"("+e+")")+"?\\]?$")}}var u=t(!1),c=t(!0),p=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],i=!0,n=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);i=!0);}catch(e){n=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(n)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=2147483647,r=/^xn--/,n=/[^\0-\x7E]/,a=/[\x2E\u3002\uFF0E\uFF61]/g,o={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},O=Math.floor,C=String.fromCharCode;function R(e){throw new RangeError(o[e])}function s(e,t){var r=e.split("@"),i="";return 1<r.length&&(i=r[0]+"@",e=r[1]),i+function(e,t){for(var r=[],i=e.length;i--;)r[i]=t(e[i]);return r}((e=e.replace(a,".")).split("."),t).join(".")}function B(e){for(var t=[],r=0,i=e.length;r<i;){var n,a=e.charCodeAt(r++);55296<=a&&a<=56319&&r<i?56320==(64512&(n=e.charCodeAt(r++)))?t.push(((1023&a)<<10)+(1023&n)+65536):(t.push(a),r--):t.push(a)}return t}function F(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function M(e,t,r){var i=0;for(e=r?O(e/700):e>>1,e+=O(e/t);455<e;i+=36)e=O(e/35);return O(i+36*e/(e+38))}function f(e){var t=[],r=e.length,i=0,n=128,a=72,o=e.lastIndexOf("-");o<0&&(o=0);for(var s=0;s<o;++s)128<=e.charCodeAt(s)&&R("not-basic"),t.push(e.charCodeAt(s));for(var u=0<o?o+1:0;u<r;){for(var c=i,f=1,p=36;;p+=36){r<=u&&R("invalid-input");var l=(h=e.charCodeAt(u++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36;(36<=l||l>O((T-i)/f))&&R("overflow"),i+=l*f;var h=p<=a?1:a+26<=p?26:p-a;if(l<h)break;h=36-h;f>O(T/h)&&R("overflow"),f*=h}var d=t.length+1,a=M(i-c,d,0==c);O(i/d)>T-n&&R("overflow"),n+=O(i/d),i%=d,t.splice(i++,0,n)}return String.fromCodePoint.apply(String,t)}function l(e){var t=[],r=(e=B(e)).length,i=128,n=0,a=72,o=!0,s=!1,u=void 0;try{for(var c=e[Symbol.iterator]();!(o=(f=c.next()).done);o=!0){var f=f.value;f<128&&t.push(C(f))}}catch(e){s=!0,u=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw u}}var p=t.length,l=p;for(p&&t.push("-");l<r;){var h=T,d=!0,m=!1,g=void 0;try{for(var b=e[Symbol.iterator]();!(d=(y=b.next()).done);d=!0){var y=y.value;i<=y&&y<h&&(h=y)}}catch(e){m=!0,g=e}finally{try{!d&&b.return&&b.return()}finally{if(m)throw g}}var v=l+1;h-i>O((T-n)/v)&&R("overflow"),n+=(h-i)*v,i=h;var _=!0,w=!1,k=void 0;try{for(var x=e[Symbol.iterator]();!(_=(S=x.next()).done);_=!0){var S=S.value;if(S<i&&++n>T&&R("overflow"),S==i){for(var j=n,E=36;;E+=36){var A=E<=a?1:a+26<=E?26:E-a;if(j<A)break;var P=j-A,I=36-A;t.push(C(F(A+P%I,0))),j=O(P/I)}t.push(C(F(j,0))),a=M(n,v,l==p),n=0,++l}}}catch(e){w=!0,k=e}finally{try{!_&&x.return&&x.return()}finally{if(w)throw k}}++n,++i}return t.join("")}var g={version:"2.1.0",ucs2:{decode:B,encode:function(e){return String.fromCodePoint.apply(String,function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(e))}},decode:f,encode:l,toASCII:function(e){return s(e,function(e){return n.test(e)?"xn--"+l(e):e})},toUnicode:function(e){return s(e,function(e){return r.test(e)?f(e.slice(4).toLowerCase()):e})}},h={};function m(e){e=e.charCodeAt(0);return e<16?"%0"+e.toString(16).toUpperCase():e<128?"%"+e.toString(16).toUpperCase():e<2048?"%"+(e>>6|192).toString(16).toUpperCase()+"%"+(63&e|128).toString(16).toUpperCase():"%"+(e>>12|224).toString(16).toUpperCase()+"%"+(e>>6&63|128).toString(16).toUpperCase()+"%"+(63&e|128).toString(16).toUpperCase()}function b(e){for(var t="",r=0,i=e.length;r<i;){var n,a,o=parseInt(e.substr(r+1,2),16);o<128?(t+=String.fromCharCode(o),r+=3):194<=o&&o<224?(6<=i-r?(a=parseInt(e.substr(r+4,2),16),t+=String.fromCharCode((31&o)<<6|63&a)):t+=e.substr(r,6),r+=6):224<=o?(9<=i-r?(n=parseInt(e.substr(r+4,2),16),a=parseInt(e.substr(r+7,2),16),t+=String.fromCharCode((15&o)<<12|(63&n)<<6|63&a)):t+=e.substr(r,9),r+=9):(t+=e.substr(r,3),r+=3)}return t}function y(e,r){function t(e){var t=b(e);return t.match(r.UNRESERVED)?t:e}return e.scheme&&(e.scheme=String(e.scheme).replace(r.PCT_ENCODED,t).toLowerCase().replace(r.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(r.PCT_ENCODED,t).replace(r.NOT_USERINFO,m).replace(r.PCT_ENCODED,d)),void 0!==e.host&&(e.host=String(e.host).replace(r.PCT_ENCODED,t).toLowerCase().replace(r.NOT_HOST,m).replace(r.PCT_ENCODED,d)),void 0!==e.path&&(e.path=String(e.path).replace(r.PCT_ENCODED,t).replace(e.scheme?r.NOT_PATH:r.NOT_PATH_NOSCHEME,m).replace(r.PCT_ENCODED,d)),void 0!==e.query&&(e.query=String(e.query).replace(r.PCT_ENCODED,t).replace(r.NOT_QUERY,m).replace(r.PCT_ENCODED,d)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(r.PCT_ENCODED,t).replace(r.NOT_FRAGMENT,m).replace(r.PCT_ENCODED,d)),e}function v(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _(e,t){t=e.match(t.IPV4ADDRESS)||[],t=p(t,2)[1];return t?t.split(".").map(v).join("."):e}function w(e,t){var r=e.match(t.IPV6ADDRESS)||[],i=p(r,3),n=i[1],r=i[2];if(n){for(var i=n.toLowerCase().split("::").reverse(),n=p(i,2),i=n[0],n=n[1],a=n?n.split(":").map(v):[],o=i.split(":").map(v),n=t.IPV4ADDRESS.test(o[o.length-1]),s=n?7:8,u=o.length-s,c=Array(s),f=0;f<s;++f)c[f]=a[f]||o[u+f]||"";n&&(c[s-1]=_(c[s-1],t));i=c.reduce(function(e,t,r){return t&&"0"!==t||((t=e[e.length-1])&&t.index+t.length===r?t.length++:e.push({index:r,length:1})),e},[]).sort(function(e,t){return t.length-e.length})[0],n=void 0;return n=i&&1<i.length?(t=c.slice(0,i.index),i=c.slice(i.index+i.length),t.join(":")+"::"+i.join(":")):c.join(":"),r&&(n+="%"+r),n}return e}var k=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,x=void 0==="".match(/(){0}/)[1];function S(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r={},i=!1!==t.iri?c:u,n=(e="suffix"===t.reference?(t.scheme?t.scheme+":":"")+"//"+e:e).match(k);if(n){x?(r.scheme=n[1],r.userinfo=n[3],r.host=n[4],r.port=parseInt(n[5],10),r.path=n[6]||"",r.query=n[7],r.fragment=n[8],isNaN(r.port)&&(r.port=n[5])):(r.scheme=n[1]||void 0,r.userinfo=-1!==e.indexOf("@")?n[3]:void 0,r.host=-1!==e.indexOf("//")?n[4]:void 0,r.port=parseInt(n[5],10),r.path=n[6]||"",r.query=-1!==e.indexOf("?")?n[7]:void 0,r.fragment=-1!==e.indexOf("#")?n[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?n[4]:void 0)),r.host&&(r.host=w(_(r.host,i),i)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");n=h[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||n&&n.unicodeSupport)y(r,i);else{if(r.host&&(t.domainHost||n&&n.domainHost))try{r.host=g.toASCII(r.host.replace(i.PCT_ENCODED,b).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}y(r,u)}n&&n.parse&&n.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}var A=/^\.\.?\//,P=/^\/\.(\/|$)/,I=/^\/\.\.(\/|$)/,z=/^\/?(?:.|\n)*?(?=\/|$)/;function N(e){for(var t=[];e.length;)if(e.match(A))e=e.replace(A,"");else if(e.match(P))e=e.replace(P,"/");else if(e.match(I))e=e.replace(I,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(z);if(!r)throw new Error("Unexpected dot segment condition");r=r[0];e=e.slice(r.length),t.push(r)}return t.join("")}function D(t){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=r.iri?c:u,i=[],n=h[(r.scheme||t.scheme||"").toLowerCase()];if(n&&n.serialize&&n.serialize(t,r),t.host&&!e.IPV6ADDRESS.test(t.host)&&(r.domainHost||n&&n.domainHost))try{t.host=r.iri?g.toUnicode(t.host):g.toASCII(t.host.replace(e.PCT_ENCODED,b).toLowerCase())}catch(e){t.error=t.error||"Host's domain name can not be converted to "+(r.iri?"Unicode":"ASCII")+" via punycode: "+e}y(t,e),"suffix"!==r.reference&&t.scheme&&(i.push(t.scheme),i.push(":"));var a,o,s,a=(a=t,o=!1!==(s=r).iri?c:u,s=[],void 0!==a.userinfo&&(s.push(a.userinfo),s.push("@")),void 0!==a.host&&s.push(w(_(String(a.host),o),o).replace(o.IPV6ADDRESS,function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"})),"number"!=typeof a.port&&"string"!=typeof a.port||(s.push(":"),s.push(String(a.port))),s.length?s.join(""):void 0);return void 0!==a&&("suffix"!==r.reference&&i.push("//"),i.push(a),t.path&&"/"!==t.path.charAt(0)&&i.push("/")),void 0!==t.path&&(s=t.path,r.absolutePath||n&&n.absolutePath||(s=N(s)),void 0===a&&(s=s.replace(/^\/\//,"/%2F")),i.push(s)),void 0!==t.query&&(i.push("?"),i.push(t.query)),void 0!==t.fragment&&(i.push("#"),i.push(t.fragment)),i.join("")}function L(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i={};return arguments[3]||(e=S(D(e,r),r),t=S(D(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=N(t.path||""),i.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=N(t.path||""),i.query=t.query):(t.path?("/"===t.path.charAt(0)?i.path=N(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path:i.path="/"+t.path,i.path=N(i.path)),i.query=t.query):(i.path=e.path,void 0!==t.query?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function q(e,t){return e&&e.toString().replace((t&&t.iri?c:u).PCT_ENCODED,b)}var U={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},H={scheme:"https",domainHost:U.domainHost,parse:U.parse,serialize:U.serialize};function K(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var V={scheme:"ws",domainHost:!0,parse:function(e,t){return e.secure=K(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e,t){var r,i;return e.port!==(K(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName&&(r=e.resourceName.split("?"),r=(i=p(r,2))[0],i=i[1],e.path=r&&"/"!==r?r:void 0,e.query=i,e.resourceName=void 0),e.fragment=void 0,e}},$={scheme:"wss",domainHost:V.domainHost,parse:V.parse,serialize:V.serialize},G={},W="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Z="[0-9A-Fa-f]",Y=(E(E("%[EFef]"+Z+"%"+Z+Z+"%"+Z+Z)+"|"+E("%[89A-Fa-f]"+Z+"%"+Z+Z)+"|"+E("%"+Z+Z)),j("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]')),Q=new RegExp(W,"g"),X=new RegExp("(?:(?:%[EFef][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[89A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[0-9A-Fa-f][0-9A-Fa-f]))","g"),J=new RegExp(j("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Y),"g"),ee=new RegExp(j("[^]",W,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),te=ee;function re(e){var t=b(e);return t.match(Q)?t:e}var Z={scheme:"mailto",parse:function(e,t){var r=e,i=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var n=!1,a={},o=r.query.split("&"),s=0,u=o.length;s<u;++s){var c=o[s].split("=");switch(c[0]){case"to":for(var f=c[1].split(","),p=0,l=f.length;p<l;++p)i.push(f[p]);break;case"subject":r.subject=q(c[1],t);break;case"body":r.body=q(c[1],t);break;default:n=!0,a[q(c[0],t)]=q(c[1],t)}}n&&(r.headers=a)}r.query=void 0;for(var h=0,d=i.length;h<d;++h){var m=i[h].split("@");if(m[0]=q(m[0]),t.unicodeSupport)m[1]=q(m[1],t).toLowerCase();else try{m[1]=g.toASCII(q(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}i[h]=m.join("@")}return r},serialize:function(e,t){var r,i=e,n=null!=(r=e.to)?r instanceof Array?r:"number"!=typeof r.length||r.split||r.setInterval||r.call?[r]:Array.prototype.slice.call(r):[];if(n){for(var a=0,o=n.length;a<o;++a){var s=String(n[a]),u=s.lastIndexOf("@"),c=s.slice(0,u).replace(X,re).replace(X,d).replace(J,m),f=s.slice(u+1);try{f=t.iri?g.toUnicode(f):g.toASCII(q(f,t).toLowerCase())}catch(e){i.error=i.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[a]=c+"@"+f}i.path=n.join(",")}var p=e.headers=e.headers||{};e.subject&&(p.subject=e.subject),e.body&&(p.body=e.body);var l,h=[];for(l in p)p[l]!==G[l]&&h.push(l.replace(X,re).replace(X,d).replace(ee,m)+"="+p[l].replace(X,re).replace(X,d).replace(te,m));return h.length&&(i.query=h.join("&")),i}},ie=/^([^\:]+)\:(.*)/,Y={scheme:"urn",parse:function(e,t){var r,i=e.path&&e.path.match(ie),n=e;return i?(r=t.scheme||n.scheme||"urn",e=i[1].toLowerCase(),i=i[2],r=r+":"+(t.nid||e),r=h[r],n.nid=e,n.nss=i,n.path=void 0,r&&(n=r.parse(n,t))):n.error=n.error||"URN can not be parsed.",n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",i=e.nid,r=r+":"+(t.nid||i),r=h[r],r=e=r?r.serialize(e,t):e,e=e.nss;return r.path=(i||t.nid)+":"+e,r}},ne=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,W={scheme:"urn:uuid",parse:function(e,t){return e.uuid=e.nss,e.nss=void 0,t.tolerant||e.uuid&&e.uuid.match(ne)||(e.error=e.error||"UUID is not valid."),e},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};h[U.scheme]=U,h[H.scheme]=H,h[V.scheme]=V,h[$.scheme]=$,h[Z.scheme]=Z,h[Y.scheme]=Y,h[W.scheme]=W,e.SCHEMES=h,e.pctEncChar=m,e.pctDecChars=b,e.parse=S,e.removeDotSegments=N,e.serialize=D,e.resolveComponents=L,e.resolve=function(e,t,r){return r=function(e,t){var r=e;if(t)for(var i in t)r[i]=t[i];return r}({scheme:"null"},r),D(L(S(e,r),S(t,r),r,!0),r)},e.normalize=function(e,t){return"string"==typeof e?e=D(S(e,t),t):"object"===i(e)&&(e=S(D(e,t),t)),e},e.equal=function(e,t,r){return"string"==typeof e?e=D(S(e,r),r):"object"===i(e)&&(e=D(e,r)),"string"==typeof t?t=D(S(t,r),r):"object"===i(t)&&(t=D(t,r)),e===t},e.escapeComponent=function(e,t){return e&&e.toString().replace((t&&t.iri?c:u).ESCAPE,m)},e.unescapeComponent=q,Object.defineProperty(e,"__esModule",{value:!0})},"object"===_typeof(r)&&void 0!==t?n(r):"function"==typeof B&&B.amd?B(["exports"],n):n(i.URI=i.URI||{})},{}],476:[function(e,t,r){"use strict";var E=e("punycode"),A=e("./util");function w(){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}r.parse=n,r.resolve=function(e,t){return n(e,!1,!0).resolve(t)},r.resolveObject=function(e,t){return e?n(e,!1,!0).resolveObject(t):t},r.format=function(e){A.isString(e)&&(e=n(e));return e instanceof w?e.format():w.prototype.format.call(e)},r.Url=w;var P=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,I=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,r=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),T=["'"].concat(r),O=["%","/","?",";","#"].concat(T),C=["/","?","#"],R=/^[+a-z0-9A-Z_-]{0,63}$/,B=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,F={javascript:!0,"javascript:":!0},M={javascript:!0,"javascript:":!0},z={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},N=e("querystring");function n(e,t,r){if(e&&A.isObject(e)&&e instanceof w)return e;var i=new w;return i.parse(e,t,r),i}w.prototype.parse=function(e,t,r){if(!A.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+_typeof(e));var i=e.indexOf("?"),n=-1!==i&&i<e.indexOf("#")?"?":"#",i=e.split(n);i[0]=i[0].replace(/\\/g,"/");var a=(a=e=i.join(n)).trim();if(!r&&1===e.split("#").length){var o=I.exec(a);if(o)return this.path=a,this.href=a,this.pathname=o[1],o[2]?(this.search=o[2],this.query=t?N.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var s,o=P.exec(a);if(o&&(j=(o=o[0]).toLowerCase(),this.protocol=j,a=a.substr(o.length)),(r||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(s="//"===a.substr(0,2))||o&&M[o]||(a=a.substr(2),this.slashes=!0)),!M[o]&&(s||o&&!z[o])){for(var u=-1,c=0;c<C.length;c++)-1!==(f=a.indexOf(C[c]))&&(-1===u||f<u)&&(u=f);-1!==(w=-1===u?a.lastIndexOf("@"):a.lastIndexOf("@",u))&&(k=a.slice(0,w),a=a.slice(w+1),this.auth=decodeURIComponent(k)),u=-1;for(var f,c=0;c<O.length;c++)-1!==(f=a.indexOf(O[c]))&&(-1===u||f<u)&&(u=f);-1===u&&(u=a.length),this.host=a.slice(0,u),a=a.slice(u),this.parseHost(),this.hostname=this.hostname||"";var p="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!p)for(var l=this.hostname.split(/\./),c=0,h=l.length;c<h;c++){var d=l[c];if(d&&!d.match(R)){for(var m="",g=0,b=d.length;g<b;g++)127<d.charCodeAt(g)?m+="x":m+=d[g];if(!m.match(R)){var y=l.slice(0,c),v=l.slice(c+1),_=d.match(B);_&&(y.push(_[1]),v.unshift(_[2])),v.length&&(a="/"+v.join(".")+a),this.hostname=y.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),p||(this.hostname=E.toASCII(this.hostname));var w=this.port?":"+this.port:"",k=this.hostname||"";this.host=k+w,this.href+=this.host,p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!F[j])for(c=0,h=T.length;c<h;c++){var x,S=T[c];-1!==a.indexOf(S)&&((x=encodeURIComponent(S))===S&&(x=escape(S)),a=a.split(S).join(x))}p=a.indexOf("#");-1!==p&&(this.hash=a.substr(p),a=a.slice(0,p));var j,p=a.indexOf("?");return-1!==p?(this.search=a.substr(p),this.query=a.substr(p+1),t&&(this.query=N.parse(this.query)),a=a.slice(0,p)):t&&(this.search="",this.query={}),a&&(this.pathname=a),z[j]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(w=this.pathname||"",j=this.search||"",this.path=w+j),this.href=this.format(),this},w.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",i=this.hash||"",n=!1,a="";this.host?n=e+this.host:this.hostname&&(n=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&A.isObject(this.query)&&Object.keys(this.query).length&&(a=N.stringify(this.query));a=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||z[t])&&!1!==n?(n="//"+(n||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):n=n||"",i&&"#"!==i.charAt(0)&&(i="#"+i),a&&"?"!==a.charAt(0)&&(a="?"+a),t+n+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+i},w.prototype.resolve=function(e){return this.resolveObject(n(e,!1,!0)).format()},w.prototype.resolveObject=function(e){A.isString(e)&&((h=new w).parse(e,!1,!0),e=h);for(var t=new w,r=Object.keys(this),i=0;i<r.length;i++){var n=r[i];t[n]=this[n]}if(t.hash=e.hash,""===e.href)return t.href=t.format(),t;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),o=0;o<a.length;o++){var s=a[o];"protocol"!==s&&(t[s]=e[s])}return z[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}if(e.protocol&&e.protocol!==t.protocol){if(!z[e.protocol]){for(var u=Object.keys(e),c=0;c<u.length;c++){var f=u[c];t[f]=e[f]}return t.href=t.format(),t}if(t.protocol=e.protocol,e.host||M[e.protocol])t.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),t.pathname=p.join("/")}return t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,(t.pathname||t.search)&&(d=t.pathname||"",m=t.search||"",t.path=d+m),t.slashes=t.slashes||e.slashes,t.href=t.format(),t}var l=t.pathname&&"/"===t.pathname.charAt(0),h=e.host||e.pathname&&"/"===e.pathname.charAt(0),d=h||l||t.host&&e.pathname,m=d,g=t.pathname&&t.pathname.split("/")||[],p=e.pathname&&e.pathname.split("/")||[],l=t.protocol&&!z[t.protocol];if(l&&(t.hostname="",t.port=null,t.host&&(""===g[0]?g[0]=t.host:g.unshift(t.host)),t.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),d=d&&(""===p[0]||""===g[0])),h)t.host=(e.host||""===e.host?e:t).host,t.hostname=(e.hostname||""===e.hostname?e:t).hostname,t.search=e.search,t.query=e.query,g=p;else if(p.length)(g=g||[]).pop(),g=g.concat(p),t.search=e.search,t.query=e.query;else if(!A.isNullOrUndefined(e.search))return l&&(t.hostname=t.host=g.shift(),(_=!!(t.host&&0<t.host.indexOf("@"))&&t.host.split("@"))&&(t.auth=_.shift(),t.host=t.hostname=_.shift())),t.search=e.search,t.query=e.query,A.isNull(t.pathname)&&A.isNull(t.search)||(t.path=(t.pathname||"")+(t.search||"")),t.href=t.format(),t;if(!g.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var b=g.slice(-1)[0],h=(t.host||e.host||1<g.length)&&("."===b||".."===b)||""===b,y=0,v=g.length;0<=v;v--)"."===(b=g[v])?g.splice(v,1):".."===b?(g.splice(v,1),y++):y&&(g.splice(v,1),y--);if(!d&&!m)for(;y--;)g.unshift("..");!d||""===g[0]||g[0]&&"/"===g[0].charAt(0)||g.unshift(""),h&&"/"!==g.join("/").substr(-1)&&g.push("");var _,h=""===g[0]||g[0]&&"/"===g[0].charAt(0);return l&&(t.hostname=t.host=!h&&g.length?g.shift():"",(_=!!(t.host&&0<t.host.indexOf("@"))&&t.host.split("@"))&&(t.auth=_.shift(),t.host=t.hostname=_.shift())),(d=d||t.host&&g.length)&&!h&&g.unshift(""),g.length?t.pathname=g.join("/"):(t.pathname=null,t.path=null),A.isNull(t.pathname)&&A.isNull(t.search)||(t.path=(t.pathname||"")+(t.search||"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes,t.href=t.format(),t},w.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":477,punycode:181,querystring:385}],477:[function(e,t,r){"use strict";t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"===_typeof(e)&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],478:[function(e,r,t){(function(t){(function(){function i(e){try{if(!t.localStorage)return}catch(e){return}e=t.localStorage[e];return null!=e&&"true"===String(e).toLowerCase()}r.exports=function(e,t){if(i("noDeprecation"))return e;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],479:[function(e,t,r){arguments[4][296][0].apply(r,arguments)},{dup:296}],480:[function(e,t,r){arguments[4][69][0].apply(r,arguments)},{dup:69}],481:[function(e,t,r){arguments[4][70][0].apply(r,arguments)},{"./support/isBuffer":480,_process:354,dup:70,inherits:479}],482:[function(e,t,r){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(e,t){return t=t||0,[i[e[t++]],i[e[t++]],i[e[t++]],i[e[t++]],"-",i[e[t++]],i[e[t++]],"-",i[e[t++]],i[e[t++]],"-",i[e[t++]],i[e[t++]],"-",i[e[t++]],i[e[t++]],i[e[t++]],i[e[t++]],i[e[t++]],i[e[t++]]].join("")}},{}],483:[function(e,t,r){var i,n,a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);a?(i=new Uint8Array(16),t.exports=function(){return a(i),i}):(n=new Array(16),t.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n})},{}],484:[function(e,t,r){var o=e("./lib/rng"),s=e("./lib/bytesToUuid");t.exports=function(e,t,r){var i=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var n=(e=e||{}).random||(e.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t)for(var a=0;a<16;++a)t[i+a]=n[a];return t||s(n)}},{"./lib/bytesToUuid":482,"./lib/rng":483}],485:[function(e,t,r){var a=e("assert-plus"),i=e("util"),n=e("extsprintf"),o=e("core-util-is").isError,s=n.sprintf;function u(e){var t,r,i,n;if(a.object(e,"args"),a.bool(e.strict,"args.strict"),a.array(e.argv,"args.argv"),0===(t=e.argv).length)r={},i=[];else if(o(t[0]))r={cause:t[0]},i=t.slice(1);else if("object"===_typeof(t[0])){for(n in r={},t[0])r[n]=t[0][n];i=t.slice(1)}else a.string(t[0],"first argument to VError, SError, or WError constructor must be a string, object, or Error"),r={},i=t;return a.object(r),{options:r,shortmessage:0===(i=!r.strict&&!e.strict?i.map(function(e){return null===e?"null":void 0===e?"undefined":e}):i).length?"":s.apply(null,i)}}function c(){var e,t,r,i=Array.prototype.slice.call(arguments,0);if(!(this instanceof c))return t=Object.create(c.prototype),c.apply(t,arguments),t;if((e=u({argv:i,strict:!1})).options.name&&(a.string(e.options.name,'error\'s "name" must be a string'),this.name=e.options.name),this.jse_shortmsg=e.shortmessage,t=e.shortmessage,(i=e.options.cause)&&(a.ok(o(i),"cause is not an Error"),this.jse_cause=i,e.options.skipCauseMessage||(t+=": "+i.message)),this.jse_info={},e.options.info)for(r in e.options.info)this.jse_info[r]=e.options.info[r];return this.message=t,Error.call(this,t),Error.captureStackTrace&&(t=e.options.constructorOpt||this.constructor,Error.captureStackTrace(this,t)),this}function f(){var e,t=Array.prototype.slice.call(arguments,0);return this instanceof f?(t=(e=u({argv:t,strict:!0})).options,c.call(this,t,"%s",e.shortmessage),this):(e=Object.create(f.prototype),f.apply(e,arguments),e)}function p(e){a.array(e,"list of errors"),a.ok(0<e.length,"must be at least one error"),this.ase_errors=e,c.call(this,{cause:e[0]},"first of %d error%s",e.length,1==e.length?"":"s")}function l(){var e,t,r=Array.prototype.slice.call(arguments,0);return this instanceof l?((t=(e=u({argv:r,strict:!1})).options).skipCauseMessage=!0,c.call(this,t,"%s",e.shortmessage),this):(e=Object.create(l.prototype),l.apply(e,r),e)}((t.exports=c).VError=c).SError=f,c.WError=l,c.MultiError=p,i.inherits(c,Error),c.prototype.name="VError",c.prototype.toString=function(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e+=": "+this.message),e},c.prototype.cause=function(){var e=c.cause(this);return null===e?void 0:e},c.cause=function(e){return a.ok(o(e),"err must be an Error"),o(e.jse_cause)?e.jse_cause:null},c.info=function(e){var t,r,i;if(a.ok(o(e),"err must be an Error"),t=null!==(r=c.cause(e))?c.info(r):{},"object"==_typeof(e.jse_info)&&null!==e.jse_info)for(i in e.jse_info)t[i]=e.jse_info[i];return t},c.findCauseByName=function(e,t){var r;for(a.ok(o(e),"err must be an Error"),a.string(t,"name"),a.ok(0<t.length,"name cannot be empty"),r=e;null!==r;r=c.cause(r))if(a.ok(o(r)),r.name==t)return r;return null},c.hasCauseWithName=function(e,t){return null!==c.findCauseByName(e,t)},c.fullStack=function(e){a.ok(o(e),"err must be an Error");var t=c.cause(e);return t?e.stack+"\ncaused by: "+c.fullStack(t):e.stack},c.errorFromList=function(e){return a.arrayOfObject(e,"errors"),0===e.length?null:(e.forEach(function(e){a.ok(o(e))}),1==e.length?e[0]:new p(e))},c.errorForEach=function(e,t){a.ok(o(e),"err must be an Error"),a.func(t,"func"),e instanceof p?e.errors().forEach(function(e){t(e)}):t(e)},i.inherits(f,c),i.inherits(p,c),p.prototype.name="MultiError",p.prototype.errors=function(){return this.ase_errors.slice(0)},i.inherits(l,c),l.prototype.name="WError",l.prototype.toString=function(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e+=": "+this.message),this.jse_cause&&this.jse_cause.message&&(e+="; caused by "+this.jse_cause.toString()),e},l.prototype.cause=function(e){return o(e)&&(this.jse_cause=e),this.jse_cause}},{"assert-plus":67,"core-util-is":192,extsprintf:232,util:481}],486:[function(e,t,r){t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r,i=arguments[t];for(r in i)n.call(i,r)&&(e[r]=i[r])}return e};var n=Object.prototype.hasOwnProperty},{}],487:[function(u,c,e){(function(o,s){(function(){"use strict";var n=u("properties"),r=u("request-promise"),a=u("promise"),e=u("./utils.js"),i=function(){function i(e,t,r){_classCallCheck2(this,i),this.merkleroot=e,this.hash=t,this.time=r}return _createClass2(i,[{key:"getMerkleroot",value:function(){return this.merkleroot}},{key:"getHash",value:function(){return this.hash}},{key:"getTime",value:function(){return this.time}}]),i}(),t=function(){function t(e){_classCallCheck2(this,t),this.authString=s.from(e.rpcuser+":"+e.rpcpassword).toString("base64"),this.urlString="http://"+e.rpcconnect+":"+e.rpcport}return _createClass2(t,[{key:"getInfo",value:function(){return this.callRPC({id:"java",method:"getinfo"})}},{key:"getBlockHeader",value:function(e){var t=this,e={id:"java",method:"getblockhash",params:[e]};return this.callRPC(e).then(function(e){e={id:"java",method:"getblockheader",params:[e]};return t.callRPC(e)}).then(function(e){return new i(e.merkleroot,e.hash,e.time)}).catch(function(e){throw console.error("getBlockHeader : "+e),e})}},{key:"callRPC",value:function(e){e={url:this.urlString,method:"POST",headers:{Accept:"application/json",Authorization:"Basic "+this.authString,"Content-Type":"application/x-www-form-urlencoded"},json:!0,body:JSON.stringify(e)};return r(e).then(function(e){if(0===e.length)throw console.error("RPC response error body "),new Error("RPC response error body ");return e.result}).catch(function(e){throw console.error("RPC response error: "+e),e})}}],[{key:"readBitcoinConf",value:function(){var r=o.env.HOME,i=[];return["/.bitcoin/bitcoin.conf","\\AppData\\Roaming\\Bitcoin\\bitcoin.conf","/Library/Application Support/Bitcoin/bitcoin.conf"].forEach(function(e){var t=r+e,e=new a(function(r,i){n.parse(t,{path:!0},function(e,t){return e?i(e):void 0===t||0===t.length?i(new Error("File empty")):(void 0!==t.rpcuser&&void 0!==t.rpcpassword&&(void 0===t.rpcconnect&&(t.rpcconnect="127.0.0.1"),void 0===t.rpcport&&(t.testnet?t.rpcport="18332":t.rpcport="8332")),r(t))})});i.push(e)}),a.all(i.map(e.softFail)).then(function(e){if(void 0===e||0===e.length)throw new Error("Invalid bitcoin.conf file");for(var t in e)if(!(t instanceof Error)&&void 0!==e[t].rpcuser&&void 0!==e[t].rpcpassword)return e[t];throw new Error("Invalid bitcoin.conf file")})}}]),t}();c.exports={BitcoinNode:t,BlockHeader:i}}).call(this)}).call(this,u("_process"),u("buffer").Buffer)},{"./utils.js":498,_process:354,buffer:186,promise:355,properties:364,"request-promise":406}],488:[function(h,d,e){(function(p,l){(function(){"use strict";var r=h("request-promise"),i=h("minimatch");h("./extend-error.js"),void 0===URL&&(URL=h("url").URL);var n=h("./utils.js"),a=h("./context.js"),o=h("./timestamp.js"),s=Error.extend("CommitmentNotFoundError"),u=Error.extend("URLError"),c=Error.extend("ExceededSizeError"),e=function(){function t(e){_classCallCheck2(this,t),this.url=e,this.headers={Accept:"application/vnd.opentimestamps.v1","Content-Type":"application/x-www-form-urlencoded"},p.browser||(this.headers["User-Agent"]="javascript-opentimestamps")}return _createClass2(t,[{key:"submit",value:function(t){var e={url:new URL("/digest",this.url),method:"POST",headers:this.headers,timeout:this.timeout,encoding:null,body:l.from(t)};return r(e).then(function(e){if(1e4<e.size)throw new c("Calendar response exceeded size limit");e=new a.StreamDeserialization(e);return o.deserialize(e,t)}).catch(function(e){throw new u(e.error.toString())})}},{key:"getTimestamp",value:function(t){var e={url:new URL("/timestamp/"+n.bytesToHex(t),this.url),method:"GET",headers:this.headers,timeout:this.timeout,encoding:null};return r(e).then(function(e){if(1e4<e.size)throw new c("Calendar response exceeded size limit");e=new a.StreamDeserialization(e);return o.deserialize(e,t)}).catch(function(e){if(404===e.statusCode)throw new s(e.error.toString());throw new Error(e.error.toString())})}}]),t}(),t=function(){function r(e){var t=this;_classCallCheck2(this,r),this.urls=new Set,e&&e.forEach(function(e){return t.add(e)})}return _createClass2(r,[{key:"add",value:function(e){if("string"!=typeof e)throw new TypeError("URL must be a string");e.startsWith("http://")||e.startsWith("https://")?this.urls.add(e):(this.urls.add("http://"+e),this.urls.add("https://"+e))}},{key:"contains",value:function(t){return 0<_toConsumableArray(this.urls).filter(function(e){return i(t,e)}).length}},{key:"toString",value:function(){return"UrlWhitelist(["+this.urls.join(",")+"])"}}]),r}(),f=new t(["https://*.calendar.opentimestamps.org","https://*.calendar.eternitywall.com","https://*.calendar.catallaxy.com"]);d.exports={RemoteCalendar:e,UrlWhitelist:t,DEFAULT_CALENDAR_WHITELIST:f,DEFAULT_AGGREGATORS:["https://a.pool.opentimestamps.org","https://b.pool.opentimestamps.org","https://a.pool.eternitywall.com","https://ots.btc.catallaxy.com"],CommitmentNotFoundError:s,URLError:u,ExceededSizeError:c}}).call(this)}).call(this,h("_process"),h("buffer").Buffer)},{"./context.js":489,"./extend-error.js":492,"./timestamp.js":497,"./utils.js":498,_process:354,buffer:186,minimatch:326,"request-promise":406,url:476}],489:[function(d,m,e){(function(h){(function(){"use strict";d("./extend-error.js");var r=d("./utils.js"),e=Error.extend("ValueError"),t=Error.extend("TypeError"),i=Error.extend("DeserializationError"),n=i.extend("BadMagicError"),a=Error.extend("UnsupportedMajorVersion"),o=i.extend("TruncationError"),s=i.extend("TrailingGarbageError"),u=i.extend("RecursionLimitError"),c=t.extend("SerializerTypeError"),f=e.extend("SerializerValueError"),p=function(){function t(e){_classCallCheck2(this,t),this.buffer=[],e instanceof h||e instanceof ArrayBuffer||e instanceof Uint8Array?this.buffer=e:"string"==typeof e||e instanceof String?this.buffer=h.from(e,"binary"):e instanceof Array&&(this.buffer=h.from(e)),this.counter=0}return _createClass2(t,[{key:"getOutput",value:function(){return this.buffer}},{key:"getCounter",value:function(){return this.counter}},{key:"readBuffer",value:function(e){if(!(this.counter>=this.buffer.length)){e>this.buffer.length&&(e=this.buffer.length);var t=this.buffer.slice(this.counter,this.counter+e);return this.counter+=e,t}}},{key:"read",value:function(e){e>this.buffer.length&&(e=this.buffer.length);var t=this.buffer.slice(this.counter,this.counter+e);return this.counter+=e,Array.from(t)}},{key:"readBool",value:function(){var e=this.read(1)[0];if(255===e)return!0;if(0===e)return!1;throw new i("read_bool() expected 0xff or 0x00; got +"+e)}},{key:"readVaruint",value:function(){for(var e,t=0,r=0;t|=(127&(e=this.read(1)[0]))<<r,r+=7,128&e;);return t}},{key:"readBytes",value:function(e){return void 0===e&&(e=this.readVarbytes()),this.read(e)}},{key:"readVarbytes",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=this.readVaruint();if(e<r)throw new i("varbytes max length exceeded; "+r+" > "+e);if(r<t)throw new i("varbytes min length not met; "+r+" < "+e);return this.read(r)}},{key:"assertMagic",value:function(e){var t=this.read(e.length);if(!r.arrEq(e,t))throw new n(e,t)}},{key:"assertEof",value:function(){if(void 0!==this.buffer[this.counter])throw new s("Trailing garbage found after end of deserialized data")}},{key:"toString",value:function(){return this.buffer.toHex(0)}}]),t}(),l=function(){function e(){_classCallCheck2(this,e),this.buffer=new Uint8Array(4096),this.length=0}return _createClass2(e,[{key:"getOutput",value:function(){return this.buffer.slice(0,this.length)}},{key:"getLenght",value:function(){return this.length}},{key:"writeBool",value:function(e){if(!0===e)this.writeByte(255);else{if(!1!==e)throw new t("Expected bool; got "+_typeof(e));this.writeByte(0)}}},{key:"writeVaruint",value:function(e){if(0===e)this.writeByte(0);else for(;0!==e;){var t=127&e;if(127<e&&(t|=128),this.writeByte(t),e<=127)break;e>>=7}}},{key:"writeByte",value:function(e){var t;this.length>=this.buffer.length&&(t=2*this.length,(t=new Uint8Array(t)).set(this.buffer,0),this.buffer=t),isNaN(e)?this.buffer[this.length]=e.codePointAt():this.buffer[this.length]=e,this.length++}},{key:"writeBytes",value:function(e){var t=this;e.forEach(function(e){t.writeByte(e)})}},{key:"writeVarbytes",value:function(e){this.writeVaruint(e.length),this.writeBytes(e)}},{key:"toString",value:function(){return this.buffer.toHex(0)}}]),e}();m.exports={StreamDeserialization:p,StreamSerialization:l,DeserializationError:i,BadMagicError:n,UnsupportedMajorVersion:a,TruncationError:o,TrailingGarbageError:s,RecursionLimitError:u,SerializerTypeError:c,SerializerValueError:f,ValueError:e,TypeError:t}}).call(this)}).call(this,d("buffer").Buffer)},{"./extend-error.js":492,"./utils.js":498,buffer:186}],490:[function(e,t,r){"use strict";var a=e("./ops.js"),o=e("./timestamp.js"),i=e("./utils.js"),s=e("./context.js"),u=[0,79,112,101,110,84,105,109,101,115,116,97,109,112,115,0,0,80,114,111,111,102,0,191,137,226,232,132,232,146,148],e=function(){function n(e,t){if(_classCallCheck2(this,n),!(e instanceof a.Op&&t instanceof o))throw new s.ValueError("Invalid Timestamp or fileHashOp");if(t.msg.length!==e._DIGEST_LENGTH())throw new s.ValueError("Timestamp message length and fileHashOp digest length differ");this.fileHashOp=e,this.timestamp=t}return _createClass2(n,[{key:"fileDigest",value:function(){return this.timestamp.msg}},{key:"serialize",value:function(e){e.writeBytes(u),e.writeVaruint(1),this.fileHashOp.serialize(e),e.writeBytes(this.timestamp.msg),this.timestamp.serialize(e)}},{key:"serializeToBytes",value:function(){var e=new s.StreamSerialization;return this.serialize(e),e.getOutput()}},{key:"toString",value:function(){var e="DetachedTimestampFile\n";return e+="fileHashOp: "+this.fileHashOp.toString()+"\n",e+="timestamp: "+this.timestamp.toString()+"\n"}},{key:"toJson",value:function(){var e={};e.hash=i.bytesToHex(this.fileDigest()),e.op=this.fileHashOp._HASHLIB_NAME(),e.timestamp=this.timestamp.toJson()}},{key:"equals",value:function(e){return e instanceof n&&(!!e.fileHashOp.equals(this.fileHashOp)&&!!e.timestamp.equals(this.timestamp))}}],[{key:"deserialize",value:function(e){var t;if(e instanceof s.StreamDeserialization)t=e;else if(e instanceof Array)t=new s.StreamDeserialization(e);else if(e instanceof Uint8Array)t=new s.StreamDeserialization(Array.from(e));else{if(!(e instanceof ArrayBuffer))throw new Error("StreamDeserialization deserialize: Invalid param");t=new s.StreamDeserialization(Array.from(e))}t.assertMagic(u);var r=t.readVaruint();if(1!==r)throw new s.UnsupportedMajorVersion("Version "+r+" detached timestamp files are not supported");e=a.CryptOp.deserialize(t),r=t.readBytes(e._DIGEST_LENGTH()),r=o.deserialize(t,r);return t.assertEof(),new n(e,r)}},{key:"fromBytes",value:function(e,t){if(!(e instanceof a.Op))throw new Error("DetachedTimestampFile: Invalid fileHashOp param");if(t instanceof s.StreamDeserialization)i=e.hashFd(t);else if(t instanceof Array)var r=new s.StreamDeserialization(t),i=e.hashFd(r);else if(t instanceof Uint8Array){r=new s.StreamDeserialization(Array.from(t));i=e.hashFd(r)}else{if(!(t instanceof ArrayBuffer))throw new Error("DetachedTimestampFile: Invalid buffer param");t=new s.StreamDeserialization(Array.from(t));i=e.hashFd(t)}return new n(e,new o(i))}},{key:"fromHash",value:function(e,t){if(!(e instanceof a.Op))throw new Error("DetachedTimestampFile: Invalid fileHashOpss param");if(t instanceof Array)return new n(e,new o(t));if(t instanceof ArrayBuffer||t instanceof Uint8Array)return new n(e,new o(Array.from(t)));throw new Error("DetachedTimestampFile: Invalid fdHash param")}}]),n}();t.exports=e},{"./context.js":489,"./ops.js":496,"./timestamp.js":497,"./utils.js":498}],491:[function(e,t,r){"use strict";var i=e("request-promise");e("./extend-error.js");var n=Error.extend("URLError"),a="https://blockstream.info/api";t.exports=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck2(this,t),this.url=e.url||a,this.timeout=e.timeout||1e3}return _createClass2(t,[{key:"blockhash",value:function(e){e={url:this.url+"/block-height/"+e,method:"GET",headers:{Accept:"plain/text"},timeout:this.timeout,gzip:!0};return i(e).then(function(e){if(!e)throw n("Empty body");return e}).catch(function(e){throw console.error("Response error: "+e.toString().substr(0,100)),e})}},{key:"block",value:function(e){e={url:this.url+"/block/"+e,method:"GET",headers:{Accept:"application/json"},json:!0,timeout:this.timeout,gzip:!0};return i(e).then(function(e){if(!e)throw n("Empty body");if(!e.merkle_root||!e.timestamp)throw n(e);return{merkleroot:e.merkle_root,time:e.timestamp}}).catch(function(e){throw console.error("Response error: "+e.toString().substr(0,100)),e})}}]),t}()},{"./extend-error.js":492,"request-promise":406}],492:[function(e,t,r){var n=e("util"),a=e("assert");Error.extend=function(t,r){a(t,"subTypeName is required");function i(e){if(!(this instanceof i))return new i(e);try{Error.captureStackTrace(this,this.constructor)}catch(e){}this.name=t,this.code=r,this.message=e||"",this.stack=this.stack.replace("Error",this.toString())}return n.inherits(i,this),i.prototype.toString=function(){return this.name+": "+n.inspect(this.message)},i.extend=this.extend,i}},{assert:68,util:481}],493:[function(e,t,r){"use strict";var n=e("./timestamp.js"),a=e("./ops.js"),e=function(){function s(){_classCallCheck2(this,s)}return _createClass2(s,null,[{key:"catThenUnaryOp",value:function(e,t,r){t instanceof n||(t=new n(t));var i=(r=!(r instanceof n)?new n(r):r).add(new a.OpPrepend(t.msg));return t.ops.set(new a.OpAppend(r.msg),i),i.add(new a.OpSHA256)}},{key:"catSha256",value:function(e,t){return s.catThenUnaryOp(a.OpSHA256,e,t)}},{key:"catSha256d",value:function(e,t){var r=s.catSha256(e,t),e=new a.OpSHA256,t=r.ops.get(e);return void 0===t&&(t=new n(e.call(r.msg)),r.ops.set(e,t)),t}},{key:"makeMerkleTreeIterator",value:function(e){var t=e,r=[];do{t=t[Symbol.iterator](),a=void 0;try{a=t.next().value}catch(e){return"Need at least one timestamp"}r=[];var i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;)var n=n.value,a=void 0===a?n:void r.push(s.catSha256(a,n))}catch(e){i.e(e)}finally{i.f()}}while(0<r.length&&(void 0!==a&&r.push(a),t=r),0<r.length);return a}},{key:"makeMerkleTree",value:function(e){for(var t=e,r=!1;!r;){o=t[0];var i=[],n=_createForOfIteratorHelper(t.slice(1,t.length));try{for(n.s();!(a=n.n()).done;)var a=a.value,o=void 0===o?a:void i.push(s.catSha256(o,a))}catch(e){n.e(e)}finally{n.f()}0===i.length?r=!0:(void 0!==o&&i.push(o),t=i)}return o}}]),s}();t.exports=e},{"./ops.js":496,"./timestamp.js":497}],494:[function(e,r,t){(function(t){(function(){"use strict";e("./extend-error.js");var i=e("./context.js"),a=e("./utils.js"),n=Error.extend("VerificationError"),o=function(){function r(){_classCallCheck2(this,r)}return _createClass2(r,[{key:"_TAG_SIZE",value:function(){return 8}},{key:"_MAX_PAYLOAD_SIZE",value:function(){return 8192}},{key:"serialize",value:function(e){e.writeBytes(this._TAG());var t=new i.StreamSerialization;this.serializePayload(t),e.writeVarbytes(t.getOutput())}},{key:"compareTo",value:function(e){var t=a.arrCompare(this._TAG(),e._TAG());return 0===t?a.arrCompare(this.uri,e.uri):t}}],[{key:"deserialize",value:function(e){var t=e.readBytes((new r)._TAG_SIZE()),e=e.readVarbytes((new r)._MAX_PAYLOAD_SIZE()),e=new i.StreamDeserialization(e);return!0===a.arrEq(t,(new u)._TAG())?u.deserialize(e):!0===a.arrEq(t,(new c)._TAG())?c.deserialize(e):!0===a.arrEq(t,(new f)._TAG())?f.deserialize(e):s.deserialize(e,t)}}]),r}(),s=function(){_inherits(n,o);var i=_createSuper(n);function n(e,t){var r;return _classCallCheck2(this,n),(r=i.call(this))._tag=e,r.payload=t,r}return _createClass2(n,[{key:"_TAG",value:function(){return this._tag}}]),_createClass2(n,[{key:"serializePayload",value:function(e){e.writeBytes(this.payload)}},{key:"toString",value:function(){return"UnknownAttestation "+a.bytesToHex(this._TAG())+" "+a.bytesToHex(this.payload)}},{key:"equals",value:function(e){return e instanceof n&&a.arrEq(this._TAG(),e._TAG())&&a.arrEq(this.payload,e.payload)}},{key:"compareTo",value:function(e){return e instanceof n?a.arrCompare(this.payload,e.payload):_get(_getPrototypeOf(n.prototype),"compareTo",this).call(this,e)}}],[{key:"deserialize",value:function(e,t){return new n(t,e.readBytes((new o)._MAX_PAYLOAD_SIZE()))}}]),n}(),u=function(){_inherits(i,o);var r=_createSuper(i);function i(e){var t;return _classCallCheck2(this,i),(t=r.call(this)).uri=e,t}return _createClass2(i,[{key:"_TAG",value:function(){return[131,223,227,13,46,249,12,142]}},{key:"_MAX_URI_LENGTH",value:function(){return 1e3}},{key:"_ALLOWED_URI_CHARS",value:function(){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._/:"}}]),_createClass2(i,[{key:"serializePayload",value:function(e){e.writeVarbytes(a.charsToBytes(this.uri))}},{key:"toString",value:function(){return"PendingAttestation('"+this.uri+"')"}},{key:"equals",value:function(e){return e instanceof i&&a.arrEq(this._TAG(),e._TAG())&&this.uri===e.uri}},{key:"compareTo",value:function(e){return e instanceof i?a.arrCompare(a.charsToBytes(this.uri),a.charsToBytes(e.uri)):_get(_getPrototypeOf(i.prototype),"compareTo",this).call(this,e)}}],[{key:"checkUri",value:function(e){if(e.length>(new i)._MAX_URI_LENGTH())return console.error("URI exceeds maximum length"),!1;for(var t=0;t<e.length;t++){var r=String.fromCharCode(e[t]);if((new i)._ALLOWED_URI_CHARS().indexOf(r)<0)return console.error("URI contains invalid character "),!1}return!0}},{key:"deserialize",value:function(e){e=e.readVarbytes((new i)._MAX_URI_LENGTH());if(!1!==this.checkUri(e))return new i(t.from(e).toString("ascii"));console.error("Invalid URI: ")}}]),i}(),c=function(){_inherits(i,o);var r=_createSuper(i);function i(e){var t;return _classCallCheck2(this,i),(t=r.call(this)).height=e,t}return _createClass2(i,[{key:"_TAG",value:function(){return[5,136,150,13,115,215,25,1]}}]),_createClass2(i,[{key:"serializePayload",value:function(e){e.writeVaruint(this.height)}},{key:"toString",value:function(){return"BitcoinBlockHeaderAttestation("+parseInt(a.bytesToHex([this.height]),16)+")"}},{key:"equals",value:function(e){return e instanceof i&&a.arrEq(this._TAG(),e._TAG())&&this.height===e.height}},{key:"compareTo",value:function(e){return e instanceof i?this.height-e.height:_get(_getPrototypeOf(i.prototype),"compareTo",this).call(this,e)}},{key:"verifyAgainstBlockheader",value:function(e,t){if(32!==e.length)throw new n("Expected digest with length 32 bytes; got "+e.length+" bytes");if(!a.arrEq(e,a.hexToBytes(t.merkleroot)))throw new n("Digest does not match merkleroot");return t.time}}],[{key:"deserialize",value:function(e){return new i(e.readVaruint())}}]),i}(),f=function(){_inherits(i,o);var r=_createSuper(i);function i(e){var t;return _classCallCheck2(this,i),(t=r.call(this)).height=e,t}return _createClass2(i,[{key:"_TAG",value:function(){return[6,134,154,13,115,215,27,69]}}]),_createClass2(i,[{key:"serializePayload",value:function(e){e.writeVaruint(this.height)}},{key:"toString",value:function(){return"LitecoinBlockHeaderAttestation("+parseInt(a.bytesToHex([this.height]),16)+")"}},{key:"equals",value:function(e){return e instanceof i&&a.arrEq(this._TAG(),e._TAG())&&this.height===e.height}},{key:"compareTo",value:function(e){return e instanceof i?this.height-e.height:_get(_getPrototypeOf(i.prototype),"compareTo",this).call(this,e)}},{key:"verifyAgainstBlockheader",value:function(e,t){if(32!==e.length)throw new n("Expected digest with length 32 bytes; got "+e.length+" bytes");if(!a.arrEq(e,a.hexToBytes(t.merkleroot)))throw new n("Digest does not match merkleroot");return t.time}}],[{key:"deserialize",value:function(e){return new i(e.readVaruint())}}]),i}();r.exports={VerificationError:n,TimeAttestation:o,UnknownAttestation:s,PendingAttestation:u,BitcoinBlockHeaderAttestation:c,LitecoinBlockHeaderAttestation:f}}).call(this)}).call(this,e("buffer").Buffer)},{"./context.js":489,"./extend-error.js":492,"./utils.js":498,buffer:186}],495:[function(e,t,r){"use strict";var u=e("promise"),n=e("./context.js"),a=e("./detached-timestamp-file.js"),o=e("./timestamp.js"),c=e("./utils.js"),i=e("./ops.js"),f=e("./calendar.js"),p=e("./notary.js"),s=e("./esplora.js"),l=e("./merkle.js"),h=e("./bitcoin.js");t.exports={info:function(e,t){if(void 0===e||!(e instanceof a))return console.error("Invalid input"),"Invalid input";var r=e.timestamp,i="File "+e.fileHashOp._HASHLIB_NAME()+" hash: "+c.bytesToHex(e.fileDigest())+"\n";try{return void 0!==t&&t.verbose?i+"Timestamp:\n"+r.strTree(0,1):i+"Timestamp:\n"+r.strTree(0,0)}catch(e){return"Error parsing info "+e}},json:function(e){var t={};if(void 0===e)return t.result="KO",t.error="No ots file",JSON.stringify(t);if(e instanceof o)i=e,t.hash=c.bytesToHex(i.msg);else try{var r=new n.StreamDeserialization(e),r=a.deserialize(r),i=r.timestamp;t.hash=c.bytesToHex(i.msg),t.op=r.fileHashOp._HASHLIB_NAME()}catch(e){return t.result="KO",t.error="Error deserialization "+e,JSON.stringify(t)}try{t.result="OK",t.timestamp=i.toJson()}catch(e){t.result="KO",t.error="Error parsing info "+e}return JSON.stringify(t)},stamp:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(e instanceof a)r=[e];else{if(!(e instanceof Array))return new u(function(e,t){t(new Error("Invalid input"))});r=e}var r=this.makeMerkleTree(r);if(void 0===r)return new u(function(e,t){t(new Error("Invalid input"))});if(t.calendars&&0!==t.calendars.length||(t.calendars=f.DEFAULT_AGGREGATORS),t.m&&0!==t.m){if(t.m<0||t.m>t.calendars.length)return console.log("m cannot be greater than available calendar neither less or equal 0"),new u(function(e,t){t(new Error("m cannot be greater than available calendar neither less or equal 0"))})}else t.m=1,2<=t.calendars.length&&(t.m=2);return this.createTimestamp(r,t.calendars,t.m).then(function(e){if(void 0===e)throw new Error("Error on timestamp creation")})},createTimestamp:function(r,e,t){var i=[];return e&&e.forEach(function(e){var t=new f.RemoteCalendar(e);i.push(t.submit(r.msg)),console.log("Submitting to remote calendar "+e)}),u.all(i.map(c.softFail)).then(function(e){return e.filter(function(e){return!(e instanceof Error)&&void 0!==e}).forEach(function(e){r.merge(e)}),r})},makeMerkleTree:function(e){var r=[];return e.forEach(function(e){if(e instanceof a)try{var t=c.randBytes(16),t=e.timestamp.add(new i.OpAppend(c.arrayToBytes(t))).add(new i.OpSHA256);r.push(t)}catch(e){return}else console.error("Invalid input")}),l.makeMerkleTree(r)},verify:function(e,t,r){var i=this;return c.arrEq(e.fileDigest(),t.fileDigest())?this.upgradeTimestamp(e.timestamp,r).then(function(){return i.verifyTimestamp(e.timestamp,r)}):(console.error("Expected digest "+c.bytesToHex(e.fileDigest())),console.error("File does not match original!"),new u(function(e,t){t(new Error("File does not match original!"))}))},verifyTimestamp:function(e,r){var i=[],n=this;function a(e,t){return e.attestedTime<t.attestedTime?-1:e.attestedTime>t.attestedTime?1:0}return e.allAttestations().forEach(function(e,t){i.push(n.verifyAttestation(e,t,r))}),u.all(i.map(c.softFail)).then(function(e){var t=e.filter(function(e){return e.constructor===p.VerificationError?e:void 0});if(0<t.length)throw t[0];var r,i={},e=e.filter(function(e){return e instanceof Error?void 0:e}),n=(r="chain",e.reduce(function(e,t){return(e[t[r]]=e[t[r]]||[]).push(t),e},{}));return Object.keys(n).map(function(e){return n[e]}).forEach(function(e){e=e.sort(a)[0];i[e.chain]={timestamp:e.attestedTime,height:e.height}}),i})},verifyAttestation:function(r,i){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};function t(){n.chain=n.chain||"bitcoin";var t=new s(n);return t.blockhash(r.height).then(function(e){return console.log("Lite-client verification, assuming block "+e+" is valid"),t.block(e)}).then(function(e){return{attestedTime:r.verifyAgainstBlockheader(i.slice().reverse(),e),chain:n.chain,height:r.height}}).catch(function(e){throw new p.VerificationError(n.chain+" verification failed: "+e.message)})}return r instanceof p.PendingAttestation?new u(function(e,t){t(new Error("PendingAttestation"))}):r instanceof p.UnknownAttestation?new u(function(e,t){t(new Error("UnknownAttestation"))}):r instanceof p.BitcoinBlockHeaderAttestation?n.ignoreBitcoinNode?t():h.BitcoinNode.readBitcoinConf().then(function(e){return new h.BitcoinNode(e).getBlockHeader(r.height)}).then(function(e){return{attestedTime:r.verifyAgainstBlockheader(i.slice().reverse(),e),chain:"bitcoin",height:r.height}}).catch(function(e){if("Invalid bitcoin.conf file"===e.message)return console.error("Could not connect to local Bitcoin node"),t();throw new p.VerificationError("Bitcoin verification failed: "+e.message)}):r instanceof p.LitecoinBlockHeaderAttestation?(console.error("Verification not available on Litecoin"),new u(function(e,t){t(new Error("LitecoinAttestation"))})):void 0},upgrade:function(e,t){return this.upgradeTimestamp(e.timestamp,t).then(function(e){return e})},upgradeTimestamp:function(e,n){var a=e.getAttestations(),o=[],s=this;return(n=n||{}).whitelist||(n.whitelist=f.DEFAULT_CALENDAR_WHITELIST),e.directlyVerified().forEach(function(i){i.attestations.forEach(function(e){var t,r;e instanceof p.PendingAttestation&&(i.isTimestampComplete()||(t=[],n.calendars&&0<n.calendars.length?(t=n.calendars.slice(),console.log("Attestation URI "+e.uri+" overridden by user-specified remote calendar(s)")):n.whitelist.contains(e.uri)?t.push(e.uri):console.log("Ignoring attestation from calendar "+e.uri+": Calendar not in whitelist"),r=i.msg,t.forEach(function(e){e=new f.RemoteCalendar(e);o.push(s.upgradeStamp(i,e,r,a))})))})}),u.all(o.map(c.softFail)).then(function(e){var t=!1;return e.forEach(function(e){void 0===e||e instanceof Error||(t=!0,e.subStamp.merge(e.upgradedStamp))}),t}).catch(function(e){throw console.error(e),e})},upgradeStamp:function(r,i,e,n){return i.getTimestamp(e).then(function(e){var t=e.getAttestations();0<t.size&&console.log("Got 1 attestation(s) from "+i.url);t=new Set(_toConsumableArray(t).filter(function(e){return!n.has(e)}));return 0<t.size?(n=new Set([].concat(_toConsumableArray(n),_toConsumableArray(t))),{subStamp:r,upgradedStamp:e}):{}}).catch(function(e){throw console.log("Calendar "+i.url+": "+e.message),e})}}},{"./bitcoin.js":487,"./calendar.js":488,"./context.js":489,"./detached-timestamp-file.js":490,"./esplora.js":491,"./merkle.js":493,"./notary.js":494,"./ops.js":496,"./timestamp.js":497,"./utils.js":498,promise:355}],496:[function(m,g,e){(function(d){(function(){"use strict";var o=m("crypto"),n=m("./utils.js"),a=new Map,s=function(){function t(){_classCallCheck2(this,t)}return _createClass2(t,[{key:"_MAX_RESULT_LENGTH",value:function(){return 4096}},{key:"_MAX_MSG_LENGTH",value:function(){return 4096}},{key:"serialize",value:function(e){e.writeByte(this._TAG())}},{key:"call",value:function(e){if(!(e.length>this._MAX_MSG_LENGTH())){e=this.call(e);return e.length>this._MAX_RESULT_LENGTH()&&console.error("Error : Result too long;"),e}console.error("Error : Message too long;")}}],[{key:"deserialize",value:function(e){return this.tag=e.readBytes(1)[0],t.deserializeFromTag(e,this.tag)}},{key:"deserializeFromTag",value:function(e,t){if(void 0!==a.get(t))return a.get(t).deserializeFromTag(e,t);console.error("Unknown operation tag: ",n.bytesToHex([t]))}}]),t}(),e=function(){_inherits(i,s);var r=_createSuper(i);function i(e){var t;return _classCallCheck2(this,i),(t=r.call(this)).arg=void 0===e?[]:e,t}return _createClass2(i,[{key:"serialize",value:function(e){_get(_getPrototypeOf(i.prototype),"serialize",this).call(this,e),e.writeVarbytes(this.arg)}},{key:"toString",value:function(){return this._TAG_NAME()+" "+n.bytesToHex(this.arg)}}],[{key:"deserializeFromTag",value:function(e,t){if(void 0!==a.get(t)){e=e.readVarbytes((new s)._MAX_RESULT_LENGTH(),1);return new(a.get(t))(e)}}}]),i}(),t=function(){_inherits(i,e);var r=_createSuper(i);function i(e){var t;return _classCallCheck2(this,i),(t=r.call(this,e)).arg=void 0===e?[]:e,t}return _createClass2(i,[{key:"_TAG",value:function(){return 240}},{key:"_TAG_NAME",value:function(){return"append"}},{key:"call",value:function(e){return e.concat(this.arg)}},{key:"equals",value:function(e){return e instanceof i&&n.arrEq(this.arg,e.arg)}}],[{key:"deserializeFromTag",value:function(e,t){return _get(_getPrototypeOf(i),"deserializeFromTag",this).call(this,e,t)}}]),i}(),r=function(){_inherits(i,e);var r=_createSuper(i);function i(e){var t;return _classCallCheck2(this,i),(t=r.call(this,e)).arg=void 0===e?[]:e,t}return _createClass2(i,[{key:"_TAG",value:function(){return 241}},{key:"_TAG_NAME",value:function(){return"prepend"}},{key:"call",value:function(e){return this.arg.concat(e)}},{key:"equals",value:function(e){return e instanceof i&&n.arrEq(this.arg,e.arg)}}],[{key:"deserializeFromTag",value:function(e,t){return _get(_getPrototypeOf(i),"deserializeFromTag",this).call(this,e,t)}}]),i}(),i=function(){_inherits(t,s);var e=_createSuper(t);function t(){return _classCallCheck2(this,t),e.apply(this,arguments)}return _createClass2(t,[{key:"toString",value:function(){return this._TAG_NAME()}}],[{key:"deserializeFromTag",value:function(e,t){if(void 0!==a.get(t))return new(a.get(t));console.error("Unknown operation tag: ",n.bytesToHex([t]))}}]),t}(),u=function(){_inherits(r,i);var e=_createSuper(r);function r(){return _classCallCheck2(this,r),e.apply(this,arguments)}return _createClass2(r,[{key:"_TAG",value:function(){return 242}},{key:"_TAG_NAME",value:function(){return"reverse"}},{key:"call",value:function(e){return 0===e.length&&console.error("Can't reverse an empty message"),e.slice().reverse()}},{key:"equals",value:function(e){return e instanceof r&&n.arrEq(this.arg,e.arg)}}],[{key:"deserializeFromTag",value:function(e,t){return _get(_getPrototypeOf(r),"deserializeFromTag",this).call(this,e,t)}}]),r}(),c=function(){_inherits(r,i);var e=_createSuper(r);function r(){return _classCallCheck2(this,r),e.apply(this,arguments)}return _createClass2(r,[{key:"_TAG",value:function(){return 243}},{key:"_TAG_NAME",value:function(){return"hexlify"}},{key:"_MAX_MSG_LENGTH",value:function(){return i._MAX_RESULT_LENGTH()}},{key:"call",value:function(e){0===e.length&&console.error("Can't hexlify an empty message")}},{key:"equals",value:function(e){return e instanceof r&&n.arrEq(this.arg,e.arg)}}],[{key:"deserializeFromTag",value:function(e,t){return _get(_getPrototypeOf(r),"deserializeFromTag",this).call(this,e,t)}}]),r}(),f=function(){_inherits(r,i);var e=_createSuper(r);function r(){return _classCallCheck2(this,r),e.apply(this,arguments)}return _createClass2(r,[{key:"_HASHLIB_NAME",value:function(){return 0}},{key:"call",value:function(e,t){for(var r=o.createHash(e._HASHLIB_NAME()).update(d.from(t)).digest(),i=[r.length],n=0;n<r.length;n++)i[n]=r[n];return i}},{key:"hashFd",value:function(e){for(var t=o.createHash(this._HASHLIB_NAME()),r=e.readBuffer(1048576);void 0!==r&&0<r.length;)t.update(r),r=e.readBuffer(1048576);for(var i=t.digest(),n=[i.length],a=0;a<i.length;a++)n[a]=i[a];return n}}],[{key:"deserializeFromTag",value:function(e,t){return _get(_getPrototypeOf(r),"deserializeFromTag",this).call(this,e,t)}}]),r}(),p=function(){_inherits(r,f);var e=_createSuper(r);function r(){return _classCallCheck2(this,r),e.apply(this,arguments)}return _createClass2(r,[{key:"_TAG",value:function(){return 2}},{key:"_TAG_NAME",value:function(){return"sha1"}},{key:"_HASHLIB_NAME",value:function(){return"sha1"}},{key:"_DIGEST_LENGTH",value:function(){return 20}},{key:"call",value:function(e){return _get(_getPrototypeOf(r.prototype),"call",this).call(this,this,e)}},{key:"equals",value:function(e){return e instanceof r}}],[{key:"deserializeFromTag",value:function(e,t){return _get(_getPrototypeOf(r),"deserializeFromTag",this).call(this,e,t)}}]),r}(),l=function(){_inherits(r,f);var e=_createSuper(r);function r(){return _classCallCheck2(this,r),e.apply(this,arguments)}return _createClass2(r,[{key:"_TAG",value:function(){return 3}},{key:"_TAG_NAME",value:function(){return"ripemd160"}},{key:"_HASHLIB_NAME",value:function(){return"ripemd160"}},{key:"_DIGEST_LENGTH",value:function(){return 20}},{key:"call",value:function(e){return _get(_getPrototypeOf(r.prototype),"call",this).call(this,this,e)}},{key:"equals",value:function(e){return e instanceof r}}],[{key:"deserializeFromTag",value:function(e,t){return _get(_getPrototypeOf(r),"deserializeFromTag",this).call(this,e,t)}}]),r}(),h=function(){_inherits(r,f);var e=_createSuper(r);function r(){return _classCallCheck2(this,r),e.apply(this,arguments)}return _createClass2(r,[{key:"_TAG",value:function(){return 8}},{key:"_TAG_NAME",value:function(){return"sha256"}},{key:"_HASHLIB_NAME",value:function(){return"sha256"}},{key:"_DIGEST_LENGTH",value:function(){return 32}},{key:"call",value:function(e){return _get(_getPrototypeOf(r.prototype),"call",this).call(this,this,e)}},{key:"equals",value:function(e){return e instanceof r}}],[{key:"deserializeFromTag",value:function(e,t){return _get(_getPrototypeOf(r),"deserializeFromTag",this).call(this,e,t)}}]),r}();a.set((new t)._TAG(),t),a.set((new r)._TAG(),r),a.set((new u)._TAG(),u),a.set((new c)._TAG(),c),a.set((new p)._TAG(),p),a.set((new l)._TAG(),l),a.set((new h)._TAG(),h),g.exports={Op:s,OpAppend:t,OpPrepend:r,OpReverse:u,OpHexlify:c,OpSHA1:p,OpRIPEMD160:l,OpSHA256:h,CryptOp:f}}).call(this)}).call(this,m("buffer").Buffer)},{"./utils.js":498,buffer:186,crypto:198}],497:[function(e,t,r){"use strict";var p=e("bitcore-lib"),h=e("./utils.js"),d=e("./notary.js"),m=e("./ops.js"),a=e("./context.js"),e=function(){function l(e){if(_classCallCheck2(this,l),!(e&&e instanceof Array))throw new TypeError("Expected msg to be bytes; got "+_typeof(e));if(e.length>(new m.Op)._MAX_MSG_LENGTH())throw new TypeError("Message exceeds Op length limit; "+e.length+" > "+(new m.Op)._MAX_MSG_LENGTH());this.msg=e,this.attestations=[],this.ops=new Map}return _createClass2(l,[{key:"getDigest",value:function(){return this.msg}},{key:"serialize",value:function(r){var i=this;if(!this.attestations&&!this.ops)throw new a.ValueError("An empty timestamp can't be serialized");var n,e=this.attestations;if(e.sort(function(e,t){return e.compareTo(t)}),1<e.length)for(var t=0;t<e.length-1;t++)r.writeBytes([255,0]),e[t].serialize(r);0===this.ops.size?0<e.length&&(r.writeByte(0),e[e.length-1].serialize(r)):0<this.ops.size&&(0<e.length&&(r.writeBytes([255,0]),e[e.length-1].serialize(r)),n=0,this.ops.forEach(function(e,t){n<i.ops.size-1&&(r.writeBytes([255]),n++),t.serialize(r),e.serialize(r)}))}},{key:"merge",value:function(e){var i=this;if(!(e instanceof l))throw new a.ValueError("Can only merge Timestamps together");if(!h.arrEq(this.msg,e.msg))throw new a.ValueError("Can't merge timestamps for different messages together");e.attestations.forEach(function(e){i.attestations.push(e)}),e.ops.forEach(function(e,t){var r=i.ops.get(t);void 0===r&&(r=new l(t.call(i.msg)),i.ops.set(t,r)),r.merge(e)})}},{key:"allAttestations",value:function(){var t=this,r=new Map;return this.attestations.forEach(function(e){r.set(t.msg,e)}),this.ops.forEach(function(e){e.allAttestations().forEach(function(e,t){r.set(t,e)})}),r}},{key:"toString",value:function(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,i="";i+=l.indention(r)+"msg: "+h.bytesToHex(this.msg)+"\n",i+=l.indention(r)+this.attestations.length+" attestations: \n";var n=0;return this.attestations.forEach(function(e){i+=l.indention(r)+"["+n+"] "+e.toString()+"\n",n++}),n=0,i+=l.indention(r)+this.ops.size+" ops: \n",this.ops.forEach(function(e,t){i+=l.indention(r)+"["+n+"] op: "+t.toString()+"\n",i+=l.indention(r)+"["+n+"] timestamp: \n",i+=e.toString(r+1),n++}),i+="\n"}},{key:"toJson",value:function(i){var n,r=this,a={};i=i||0,0<this.attestations.length&&(a.attestations=[],this.attestations.forEach(function(e){var t={};t.fork=i,e instanceof d.PendingAttestation?(t.type="PendingAttestation",t.param=e.uri):e instanceof d.UnknownAttestation?(t.type="UnknownAttestation",t.param=e.payload):e instanceof d.BitcoinBlockHeaderAttestation?(t.type="BitcoinBlockHeaderAttestation",t.param=e.height,t.merkle=h.bytesToHex(r.msg.slice().reverse())):e instanceof d.LitecoinBlockHeaderAttestation&&(t.type="LitecoinBlockHeaderAttestation",t.param=e.height,t.merkle=h.bytesToHex(r.msg.slice().reverse())),a.attestations.push(t)})),a.result=h.bytesToHex(this.msg);try{p.Transaction(h.bytesToHex(this.msg)),a.tx=(new m.OpSHA256).call((new m.OpSHA256).call(this.msg)),a.tx=h.bytesToHex(a.tx.slice().reverse())}catch(e){}return 1<this.ops.size&&i++,0<this.ops.size&&(a.ops=[],n=0,this.ops.forEach(function(e,t){var r={};r.fork=i+n,r.op=t._TAG_NAME(),r.arg=void 0===t.arg?"":h.bytesToHex(t.arg),r.result=h.bytesToHex(e.msg),r.timestamp=e.toJson(i+n);try{p.Transaction(h.bytesToHex(e.msg)),r.tx=(new m.OpSHA256).call((new m.OpSHA256).call(e.msg)),r.tx=h.bytesToHex(r.tx.slice().reverse())}catch(e){}a.ops.push(r),n++})),a}},{key:"strTree",value:function(a,o){var s=this,u={};function c(e,t,r){var i="";if(0<e&&void 0!==r){i+=" == ";var n=h.bytesToHex(r);if(void 0===t)i+=n;else{var a=h.bytesToHex(t);try{var o=n.indexOf(a),s=u.BOLD+a+u.ENDC;i+=0===o?s+n.substring(o+a.length,n.length):n.substring(0,o)+s}catch(e){i+=n}}}return i}u.HEADER="",u.OKBLUE="",u.OKGREEN="",u.WARNING="",u.FAIL="",u.ENDC="",u.BOLD="",u.UNDERLINE="",void 0===a&&(a=0),void 0===o&&(o=0);var f="";if(0<this.attestations.length&&this.attestations.forEach(function(e){var t;f+=l.indention(a)+"verify "+e.toString()+c(o,s.msg)+"\n",e instanceof d.BitcoinBlockHeaderAttestation&&(t=h.bytesToHex((new m.OpReverse).call(s.msg)),f+=l.indention(a)+"# Bitcoin block merkle root "+t+"\n"),e instanceof d.LitecoinBlockHeaderAttestation&&(e=h.bytesToHex((new m.OpReverse).call(s.msg)),f+=l.indention(a)+"# Litecoin block merkle root "+e+"\n")}),1<this.ops.size)this.ops.forEach(function(e,t){try{p.Transaction(h.bytesToHex(s.msg));var r=(new m.OpReverse).call((new m.OpSHA256).call((new m.OpSHA256).call(s.msg))),r=h.bytesToHex(r);f+=l.indention(a)+"# Bitcoin transaction id "+r+"\n"}catch(e){}var i=t.call(s.msg),n=t.arg;f+=l.indention(a)+" -> "+t.toString()+c(o,n,i)+"\n",f+=e.strTree(a+1,o)});else if(0<this.ops.size){try{p.Transaction(h.bytesToHex(this.msg));var e=(new m.OpReverse).call((new m.OpSHA256).call((new m.OpSHA256).call(this.msg))),e=h.bytesToHex(e);f+=l.indention(a)+"# transaction id "+e+"\n"}catch(e){}var t=this.ops.keys().next().value,r=this.ops.values().next().value,i=t.call(this.msg),n=t.arg;f+=l.indention(a)+t.toString()+c(o,n,i)+"\n",f+=r.strTree(a,o)}return f}},{key:"directlyVerified",value:function(){if(0<this.attestations.length)return new Array(this);var t=[];return this.ops.forEach(function(e){e=e.directlyVerified();t=t.concat(e)}),t}},{key:"getAttestations",value:function(){var t=new Set;return this.allAttestations().forEach(function(e){t.add(e)}),t}},{key:"isTimestampComplete",value:function(){var t=!1;return this.allAttestations().forEach(function(e){(e instanceof d.BitcoinBlockHeaderAttestation||e instanceof d.LitecoinBlockHeaderAttestation||e instanceof d.UnknownAttestation)&&(t=!0)}),t}},{key:"equals",value:function(e){if(!(e instanceof l))return!1;if(!1===h.arrEq(this.getDigest(),e.getDigest()))return!1;if(this.getAttestations().size!==e.getAttestations().size)return!1;if(this.attestations.length!==e.attestations.length)return!1;for(var t=0;t<this.attestations.length;t++){var r=this.attestations[t],i=e.attestations[t];if(!r.equals(i))return!1}if(this.ops.size!==e.ops.size)return!1;for(var n=this.ops.keys(),a=this.ops.keys(),o=0;o<this.ops.size;o++){var s=n.next().value,u=a.next().value;if(!s.equals(u))return!1}n=this.ops.values(),a=this.ops.values();for(var c=0;c<this.ops.size;c++){var f=n.next().value,p=a.next().value;if(!f.equals(p))return!1}return!0}},{key:"add",value:function(e){if(this.ops.has(e))return this.ops.get(e);var t=new l(e.call(this.msg));return this.ops.set(e,t),t}},{key:"allTips",value:function(){var t=new Set;return 0===this.ops.size&&t.add(this.msg),this.ops.forEach(function(e){e.allTips().forEach(function(e){t.add(e)})}),t}}],[{key:"deserialize",value:function(i,e){var n=new l(e);function t(e,t){var r;0===e?(r=d.TimeAttestation.deserialize(i),n.attestations.push(r)):(t=(e=m.Op.deserializeFromTag(i,e)).call(t),t=l.deserialize(i,t),n.ops.set(e,t))}for(var r=i.readBytes(1)[0];255===r;)t(i.readBytes(1)[0],e),r=i.readBytes(1)[0];return t(r,e),n}},{key:"indention",value:function(e){for(var t="",r=0;r<e;r++)t+=" ";return t}}]),l}();t.exports=e},{"./context.js":489,"./notary.js":494,"./ops.js":496,"./utils.js":498,"bitcore-lib":79}],498:[function(e,t,r){"use strict";var o=e("crypto"),n=e("fs");r.hexToBytes=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},r.bytesToHex=function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},r.charsToHex=function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r].charCodeAt();t.push((i>>>4).toString(16)),t.push((15&i).toString(16))}return t.join("")},r.charToByte=function(e){return e.charCodeAt(0)},r.charsToBytes=function(e){for(var t=[],r=0;r<e.length;r++){var i=e.charCodeAt(r);t.push(i)}return t},r.bytesToChars=function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(r)[0];return t},r.toBytes=function(e){for(var t=[],r=0;r<e.length;r++)t.push(e.charCodeAt(r));return t},r.arrayToBytes=function(e){for(var t=[],r=0;r<e.length;r++)t.push(parseInt(e[r],10));return t},r.arrCompare=function(e,t){for(var r=0,i=0;r<e.length&&i<t.length;r++,i++){var n=255&e[r],a=255&t[i];if(n!=a)return n-a}return e.length-t.length},r.arrEq=function(e,t){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return r===t.length},r.randBytes=function(e){return o.randomBytes(e)},r.randString=function(t){if(t<=0)return"";var r="";try{r=o.randomBytes(Math.ceil(t/2)).toString("hex").slice(0,t)}catch(e){console.error("Exception generating random string: "+e),r="";for(var i=t%8,n=(t-i)/8,a=0;a<n;a++)r+=Math.random().toString(16).slice(2);0<i&&(r+=Math.random().toString(16).slice(2,a))}return r},r.softFail=function(t){return new Promise(function(e){t.then(e).catch(e)})},r.readFilePromise=function(e,t){return new Promise(function(r,i){n.readFile(e,t,function(e,t){e?i(e):r(t)})})}},{crypto:198,fs:180}]},{},[1])(1)});