Socket
Socket
Sign inDemoInstall

expect

Package Overview
Dependencies
84
Maintainers
2
Versions
236
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.19.0 to 1.20.0

14

CHANGES.md

@@ -0,2 +1,16 @@

## [v1.20.0]
> May 6, 2016
- Objects that differ only by prototype are considered "equal". This means
e.g. that `expect(Object.create(null)).toEqual({})` passes
- Restored `isEqual` to behaving more like `==` instead of `===`. This is a
regression that was introduced in 1.13.1 ([#62])
- Handle non-array keys in `toIncludeKeys` ([#94], thanks @wuct)
[v1.20.0]: https://github.com/mjackson/expect/compare/v1.19.0...v1.20.0
[#62]: https://github.com/mjackson/expect/issues/62
[#94]: https://github.com/mjackson/expect/pull/94
## [v1.19.0]
> May 2, 2016

@@ -3,0 +17,0 @@ - Spies preserve `length` property of original function ([#90], thanks @nfcampos)

66

lib/Expectation.js

@@ -11,10 +11,6 @@ 'use strict';

var _isEqual = require('is-equal');
var _has = require('has');
var _isEqual2 = _interopRequireDefault(_isEqual);
var _has2 = _interopRequireDefault(_has);
var _isRegex = require('is-regex');
var _isRegex2 = _interopRequireDefault(_isRegex);
var _tmatch = require('tmatch');

@@ -24,5 +20,5 @@

var _has = require('has');
var _isRegex = require('is-regex');
var _has2 = _interopRequireDefault(_has);
var _isRegex2 = _interopRequireDefault(_isRegex);

@@ -41,14 +37,2 @@ var _assert = require('./assert');

var addErrorInfo = function addErrorInfo(actual, expected, callback) {
try {
callback();
} catch (error) {
// These attributes are consumed by Mocha to produce a diff output.
error.actual = actual;
error.expected = expected;
error.showDiff = true;
throw error;
}
};
/**

@@ -103,8 +87,12 @@ * An Expectation is a wrapper around an assertion that allows it to be written

value: function toEqual(value, message) {
var _this = this;
try {
(0, _assert2.default)((0, _TestUtils.isEqual)(this.actual, value), message || 'Expected %s to equal %s', this.actual, value);
} catch (error) {
// These attributes are consumed by Mocha to produce a diff output.
error.actual = this.actual;
error.expected = value;
error.showDiff = true;
throw error;
}
addErrorInfo(this.actual, value, function () {
(0, _assert2.default)((0, _isEqual2.default)(_this.actual, value), message || 'Expected %s to equal %s', _this.actual, value);
});
return this;

@@ -115,8 +103,4 @@ }

value: function toNotEqual(value, message) {
var _this2 = this;
(0, _assert2.default)(!(0, _TestUtils.isEqual)(this.actual, value), message || 'Expected %s to not equal %s', this.actual, value);
addErrorInfo(this.actual, value, function () {
(0, _assert2.default)(!(0, _isEqual2.default)(_this2.actual, value), message || 'Expected %s to not equal %s', _this2.actual, value);
});
return this;

@@ -250,3 +234,3 @@ }

if (compareValues == null) compareValues = _isEqual2.default;
if (compareValues == null) compareValues = _TestUtils.isEqual;

@@ -277,3 +261,3 @@ var contains = false;

if (compareValues == null) compareValues = _isEqual2.default;
if (compareValues == null) compareValues = _TestUtils.isEqual;

@@ -299,3 +283,3 @@ var contains = false;

value: function toIncludeKeys(keys, comparator, message) {
var _this3 = this;
var _this = this;

@@ -309,6 +293,8 @@ if (typeof comparator === 'string') {

(0, _assert2.default)(_typeof(this.actual) === 'object', 'The "actual" argument in expect(actual).toIncludeKeys() must be an object, not %s', _typeof(this.actual));
(0, _assert2.default)(_typeof(this.actual) === 'object', 'The "actual" argument in expect(actual).toIncludeKeys() must be an object, not %s', this.actual);
(0, _assert2.default)((0, _TestUtils.isArray)(keys), 'The "keys" argument in expect(actual).toIncludeKeys(keys) must be an array, not %s', keys);
var contains = keys.every(function (key) {
return comparator(_this3.actual, key);
return comparator(_this.actual, key);
});

@@ -332,3 +318,3 @@

value: function toExcludeKeys(keys, comparator, message) {
var _this4 = this;
var _this2 = this;

@@ -342,6 +328,8 @@ if (typeof comparator === 'string') {

(0, _assert2.default)(_typeof(this.actual) === 'object', 'The "actual" argument in expect(actual).toExcludeKeys() must be an object, not %s', _typeof(this.actual));
(0, _assert2.default)(_typeof(this.actual) === 'object', 'The "actual" argument in expect(actual).toExcludeKeys() must be an object, not %s', this.actual);
(0, _assert2.default)((0, _TestUtils.isArray)(keys), 'The "keys" argument in expect(actual).toIncludeKeys(keys) must be an array, not %s', keys);
var contains = keys.every(function (key) {
return comparator(_this4.actual, key);
return comparator(_this2.actual, key);
});

@@ -385,3 +373,3 @@

(0, _assert2.default)(spy.calls.some(function (call) {
return (0, _isEqual2.default)(call.arguments, expectedArgs);
return (0, _TestUtils.isEqual)(call.arguments, expectedArgs);
}), 'spy was never called with %s', expectedArgs);

@@ -388,0 +376,0 @@

@@ -6,3 +6,3 @@ 'use strict';

});
exports.stringContains = exports.objectContains = exports.arrayContains = exports.functionThrows = exports.isA = exports.isObject = exports.isArray = exports.isFunction = undefined;
exports.stringContains = exports.objectContains = exports.arrayContains = exports.functionThrows = exports.isA = exports.isObject = exports.isArray = exports.isFunction = exports.isEqual = exports.whyNotEqual = undefined;

@@ -15,2 +15,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

var _why = require('is-equal/why');
var _why2 = _interopRequireDefault(_why);
var _objectKeys = require('object-keys');

@@ -23,2 +27,27 @@

/**
* Returns the reason why the given arguments are not *conceptually*
* equal, if any; the empty string otherwise.
*/
var whyNotEqual = exports.whyNotEqual = function whyNotEqual(a, b) {
if (a == b) return '';
var reason = (0, _why2.default)(a, b);
if (reason !== '') {
// We consider objects that are equal in all aspects
// other than their prototype to be equal.
if (reason === 'arguments have a different [[Prototype]]') return '';
}
return reason;
};
/**
* Returns true if the given arguments are *conceptually* equal.
*/
var isEqual = exports.isEqual = function isEqual(a, b) {
return whyNotEqual(a, b) === '';
};
/**
* Returns true if the given object is a function.

@@ -25,0 +54,0 @@ */

{
"name": "expect",
"version": "1.19.0",
"version": "1.20.0",
"description": "Write better assertions",

@@ -5,0 +5,0 @@ "author": "Michael Jackson",

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.expect=e():t.expect=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){return new u["default"](t)}var i=r(3),u=n(i),a=r(4),s=r(1),c=n(s),f=r(11),l=n(f);o.createSpy=a.createSpy,o.spyOn=a.spyOn,o.isSpy=a.isSpy,o.restoreSpies=a.restoreSpies,o.assert=c["default"],o.extend=l["default"],t.exports=o},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=r(29),i=n(o),u=function(t,e){var r=0;return t.replace(/%s/g,function(){return(0,i["default"])(e[r++])})},a=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;r>o;o++)n[o-2]=arguments[o];if(!t){var i="string"==typeof e?u(e,n):e(n);throw new Error(i)}};e["default"]=a},function(t,e){"use strict";var r=RegExp.prototype.exec,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object RegExp]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"!=typeof t?!1:u?n(t):o.call(t)===i}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=r(24),s=n(a),c=r(2),f=n(c),l=r(32),h=n(l),p=r(7),y=n(p),g=r(1),d=n(g),b=r(4),v=r(5),m=function(t,e,r){try{r()}catch(n){throw n.actual=t,n.expected=e,n.showDiff=!0,n}},w=function(){function t(e){o(this,t),this.actual=e,(0,v.isFunction)(e)&&(this.context=null,this.args=[])}return u(t,[{key:"toExist",value:function(t){return(0,d["default"])(this.actual,t||"Expected %s to exist",this.actual),this}},{key:"toNotExist",value:function(t){return(0,d["default"])(!this.actual,t||"Expected %s to not exist",this.actual),this}},{key:"toBe",value:function(t,e){return(0,d["default"])(this.actual===t,e||"Expected %s to be %s",this.actual,t),this}},{key:"toNotBe",value:function(t,e){return(0,d["default"])(this.actual!==t,e||"Expected %s to not be %s",this.actual,t),this}},{key:"toEqual",value:function(t,e){var r=this;return m(this.actual,t,function(){(0,d["default"])((0,s["default"])(r.actual,t),e||"Expected %s to equal %s",r.actual,t)}),this}},{key:"toNotEqual",value:function(t,e){var r=this;return m(this.actual,t,function(){(0,d["default"])(!(0,s["default"])(r.actual,t),e||"Expected %s to not equal %s",r.actual,t)}),this}},{key:"toThrow",value:function(t,e){return(0,d["default"])((0,v.isFunction)(this.actual),'The "actual" argument in expect(actual).toThrow() must be a function, %s was given',this.actual),(0,d["default"])((0,v.functionThrows)(this.actual,this.context,this.args,t),e||"Expected %s to throw %s",this.actual,t||"an error"),this}},{key:"toNotThrow",value:function(t,e){return(0,d["default"])((0,v.isFunction)(this.actual),'The "actual" argument in expect(actual).toNotThrow() must be a function, %s was given',this.actual),(0,d["default"])(!(0,v.functionThrows)(this.actual,this.context,this.args,t),e||"Expected %s to not throw %s",this.actual,t||"an error"),this}},{key:"toBeA",value:function(t,e){return(0,d["default"])((0,v.isFunction)(t)||"string"==typeof t,'The "value" argument in toBeA(value) must be a function or a string'),(0,d["default"])((0,v.isA)(this.actual,t),e||"Expected %s to be a %s",this.actual,t),this}},{key:"toNotBeA",value:function(t,e){return(0,d["default"])((0,v.isFunction)(t)||"string"==typeof t,'The "value" argument in toNotBeA(value) must be a function or a string'),(0,d["default"])(!(0,v.isA)(this.actual,t),e||"Expected %s to be a %s",this.actual,t),this}},{key:"toMatch",value:function(t,e){var r=!1;return"string"==typeof this.actual?((0,d["default"])((0,f["default"])(t),'The "pattern" argument in expect(string).toMatch(pattern) must be a RegExp'),r=t.test(this.actual)):(0,v.isObject)(this.actual)?r=(0,h["default"])(this.actual,t):(0,d["default"])(!1,'The "actual" argument in expect(actual).toMatch() must be a string or an object'),(0,d["default"])(r,e||"Expected %s to match %s",this.actual,t),this}},{key:"toNotMatch",value:function(t,e){var r=!1;return"string"==typeof this.actual?((0,d["default"])((0,f["default"])(t),'The "pattern" argument in expect(string).toNotMatch(pattern) must be a RegExp'),r=t.test(this.actual)):(0,v.isObject)(this.actual)?r=(0,h["default"])(this.actual,t):(0,d["default"])(!1,'The "actual" argument in expect(actual).toNotMatch() must be a string or an object'),(0,d["default"])(!r,e||"Expected %s to not match %s",this.actual,t),this}},{key:"toBeLessThan",value:function(t,e){return(0,d["default"])("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeLessThan() must be a number'),(0,d["default"])("number"==typeof t,'The "value" argument in toBeLessThan(value) must be a number'),(0,d["default"])(this.actual<t,e||"Expected %s to be less than %s",this.actual,t),this}},{key:"toBeLessThanOrEqualTo",value:function(t,e){return(0,d["default"])("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeLessThanOrEqualTo() must be a number'),(0,d["default"])("number"==typeof t,'The "value" argument in toBeLessThanOrEqualTo(value) must be a number'),(0,d["default"])(this.actual<=t,e||"Expected %s to be less than or equal to %s",this.actual,t),this}},{key:"toBeGreaterThan",value:function(t,e){return(0,d["default"])("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeGreaterThan() must be a number'),(0,d["default"])("number"==typeof t,'The "value" argument in toBeGreaterThan(value) must be a number'),(0,d["default"])(this.actual>t,e||"Expected %s to be greater than %s",this.actual,t),this}},{key:"toBeGreaterThanOrEqualTo",value:function(t,e){return(0,d["default"])("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeGreaterThanOrEqualTo() must be a number'),(0,d["default"])("number"==typeof t,'The "value" argument in toBeGreaterThanOrEqualTo(value) must be a number'),(0,d["default"])(this.actual>=t,e||"Expected %s to be greater than or equal to %s",this.actual,t),this}},{key:"toInclude",value:function(t,e,r){"string"==typeof e&&(r=e,e=null),null==e&&(e=s["default"]);var n=!1;return(0,v.isArray)(this.actual)?n=(0,v.arrayContains)(this.actual,t,e):(0,v.isObject)(this.actual)?n=(0,v.objectContains)(this.actual,t,e):"string"==typeof this.actual?n=(0,v.stringContains)(this.actual,t):(0,d["default"])(!1,'The "actual" argument in expect(actual).toInclude() must be an array, object, or a string'),(0,d["default"])(n,r||"Expected %s to include %s",this.actual,t),this}},{key:"toExclude",value:function(t,e,r){"string"==typeof e&&(r=e,e=null),null==e&&(e=s["default"]);var n=!1;return(0,v.isArray)(this.actual)?n=(0,v.arrayContains)(this.actual,t,e):(0,v.isObject)(this.actual)?n=(0,v.objectContains)(this.actual,t,e):"string"==typeof this.actual?n=(0,v.stringContains)(this.actual,t):(0,d["default"])(!1,'The "actual" argument in expect(actual).toExclude() must be an array, object, or a string'),(0,d["default"])(!n,r||"Expected %s to exclude %s",this.actual,t),this}},{key:"toIncludeKeys",value:function(t,e,r){var n=this;"string"==typeof e&&(r=e,e=null),null==e&&(e=y["default"]),(0,d["default"])("object"===i(this.actual),'The "actual" argument in expect(actual).toIncludeKeys() must be an object, not %s',i(this.actual));var o=t.every(function(t){return e(n.actual,t)});return(0,d["default"])(o,r||"Expected %s to include key(s) %s",this.actual,t.join(", ")),this}},{key:"toIncludeKey",value:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return this.toIncludeKeys.apply(this,[[t]].concat(r))}},{key:"toExcludeKeys",value:function(t,e,r){var n=this;"string"==typeof e&&(r=e,e=null),null==e&&(e=y["default"]),(0,d["default"])("object"===i(this.actual),'The "actual" argument in expect(actual).toExcludeKeys() must be an object, not %s',i(this.actual));var o=t.every(function(t){return e(n.actual,t)});return(0,d["default"])(!o,r||"Expected %s to exclude key(s) %s",this.actual,t.join(", ")),this}},{key:"toExcludeKey",value:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return this.toExcludeKeys.apply(this,[[t]].concat(r))}},{key:"toHaveBeenCalled",value:function(t){var e=this.actual;return(0,d["default"])((0,b.isSpy)(e),'The "actual" argument in expect(actual).toHaveBeenCalled() must be a spy'),(0,d["default"])(e.calls.length>0,t||"spy was not called"),this}},{key:"toHaveBeenCalledWith",value:function(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];var n=this.actual;return(0,d["default"])((0,b.isSpy)(n),'The "actual" argument in expect(actual).toHaveBeenCalledWith() must be a spy'),(0,d["default"])(n.calls.some(function(t){return(0,s["default"])(t.arguments,e)}),"spy was never called with %s",e),this}},{key:"toNotHaveBeenCalled",value:function(t){var e=this.actual;return(0,d["default"])((0,b.isSpy)(e),'The "actual" argument in expect(actual).toNotHaveBeenCalled() must be a spy'),(0,d["default"])(0===e.calls.length,t||"spy was not supposed to be called"),this}}]),t}(),E=function(t,e){var r=!1;return function(){r||(r=!0,console.warn(e));for(var n=arguments.length,o=Array(n),i=0;n>i;i++)o[i]=arguments[i];return t.apply(this,o)}};w.prototype.withContext=E(function(t){return(0,d["default"])((0,v.isFunction)(this.actual),'The "actual" argument in expect(actual).withContext() must be a function'),this.context=t,this},"\nwithContext is deprecated; use a closure instead.\n\n expect(fn).withContext(context).toThrow()\n\nbecomes\n\n expect(() => fn.call(context)).toThrow()\n"),w.prototype.withArgs=E(function(){var t;return(0,d["default"])((0,v.isFunction)(this.actual),'The "actual" argument in expect(actual).withArgs() must be a function'),arguments.length&&(this.args=(t=this.args).concat.apply(t,arguments)),this},"\nwithArgs is deprecated; use a closure instead.\n\n expect(fn).withArgs(a, b, c).toThrow()\n\nbecomes\n\n expect(() => fn(a, b, c)).toThrow()\n");var A={toBeAn:"toBeA",toNotBeAn:"toNotBeA",toBeTruthy:"toExist",toBeFalsy:"toNotExist",toBeFewerThan:"toBeLessThan",toBeMoreThan:"toBeGreaterThan",toContain:"toInclude",toNotContain:"toExclude",toNotInclude:"toExclude",toContainKeys:"toIncludeKeys",toNotContainKeys:"toExcludeKeys",toNotIncludeKeys:"toExcludeKeys",toContainKey:"toIncludeKey",toNotContainKey:"toExcludeKey",toNotIncludeKey:"toExcludeKey"};for(var T in A)A.hasOwnProperty(T)&&(w.prototype[T]=w.prototype[A[T]]);e["default"]=w},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.spyOn=e.createSpy=e.restoreSpies=e.isSpy=void 0;var i=r(14),u=r(1),a=n(u),s=r(5),c=function(){},f=i.supportsDescriptors&&Object.getOwnPropertyDescriptor(function(){},"length").configurable,l=e.isSpy=function(t){return t&&t.__isSpy===!0},h=[],p=(e.restoreSpies=function(){for(var t=h.length-1;t>=0;t--)h[t].restore();h=[]},e.createSpy=function(t){function e(){if(l.calls.push({context:this,arguments:Array.prototype.slice.call(arguments,0)}),n)return n.apply(this,arguments);if(i)throw i;return u}var r=arguments.length<=1||void 0===arguments[1]?c:arguments[1];null==t&&(t=c),(0,a["default"])((0,s.isFunction)(t),"createSpy needs a function");var n=void 0,i=void 0,u=void 0,l=void 0;return l=f?Object.defineProperty(e,"length",{value:t.length,writable:!1,enumerable:!1,configurable:!0}):new Function("spy","return function("+[].concat(o(Array(t.length))).map(function(t,e){return"_"+e}).join(",")+") {\n return spy.apply(this, arguments)\n }")(e),l.calls=[],l.andCall=function(t){return n=t,l},l.andCallThrough=function(){return l.andCall(t)},l.andThrow=function(t){return i=t,l},l.andReturn=function(t){return u=t,l},l.getLastCall=function(){return l.calls[l.calls.length-1]},l.reset=function(){l.calls=[]},l.restore=l.destroy=r,l.__isSpy=!0,h.push(l),l});e.spyOn=function(t,e){var r=t[e];return l(r)||((0,a["default"])((0,s.isFunction)(r),"Cannot spyOn the %s property; it is not a function",e),t[e]=p(r,function(){t[e]=r})),t[e]}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.stringContains=e.objectContains=e.arrayContains=e.functionThrows=e.isA=e.isObject=e.isArray=e.isFunction=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},i=r(2),u=n(i),a=r(10),s=n(a),c=e.isFunction=function(t){return"function"==typeof t},f=e.isArray=function(t){return Array.isArray(t)},l=e.isObject=function(t){return t&&!f(t)&&"object"===("undefined"==typeof t?"undefined":o(t))},h=(e.isA=function(t,e){return c(e)?t instanceof e:"array"===e?Array.isArray(t):("undefined"==typeof t?"undefined":o(t))===e},e.functionThrows=function(t,e,r,n){try{t.apply(e,r)}catch(o){if(null==n)return!0;if(c(n)&&o instanceof n)return!0;var i=o.message||o;if("string"==typeof i){if((0,u["default"])(n)&&n.test(o.message))return!0;if("string"==typeof n&&-1!==i.indexOf(n))return!0}}return!1},e.arrayContains=function(t,e,r){return t.some(function(t){return r(t,e)!==!1})},function(t){return"object"===("undefined"==typeof Reflect?"undefined":o(Reflect))&&"function"==typeof Reflect.ownKeys?Reflect.ownKeys(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}):"function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}).concat((0,s["default"])(t)):(0,s["default"])(t)});e.objectContains=function p(t,e,r){return h(e).every(function(n){return l(t[n])&&l(e[n])?p(t[n],e[n],r):r(t[n],e[n])})},e.stringContains=function(t,e){return-1!==t.indexOf(e)}},function(t,e,r){(function(t,n){/*!
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.expect=e():t.expect=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){return new u["default"](t)}var i=r(3),u=n(i),a=r(4),s=r(1),c=n(s),f=r(11),l=n(f);o.createSpy=a.createSpy,o.spyOn=a.spyOn,o.isSpy=a.isSpy,o.restoreSpies=a.restoreSpies,o.assert=c["default"],o.extend=l["default"],t.exports=o},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=r(28),i=n(o),u=function(t,e){var r=0;return t.replace(/%s/g,function(){return(0,i["default"])(e[r++])})},a=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;r>o;o++)n[o-2]=arguments[o];if(!t){var i="string"==typeof e?u(e,n):e(n);throw new Error(i)}};e["default"]=a},function(t,e){"use strict";var r=RegExp.prototype.exec,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object RegExp]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"!=typeof t?!1:u?n(t):o.call(t)===i}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=r(7),s=n(a),c=r(31),f=n(c),l=r(2),h=n(l),p=r(1),y=n(p),g=r(4),d=r(5),b=function(){function t(e){o(this,t),this.actual=e,(0,d.isFunction)(e)&&(this.context=null,this.args=[])}return u(t,[{key:"toExist",value:function(t){return(0,y["default"])(this.actual,t||"Expected %s to exist",this.actual),this}},{key:"toNotExist",value:function(t){return(0,y["default"])(!this.actual,t||"Expected %s to not exist",this.actual),this}},{key:"toBe",value:function(t,e){return(0,y["default"])(this.actual===t,e||"Expected %s to be %s",this.actual,t),this}},{key:"toNotBe",value:function(t,e){return(0,y["default"])(this.actual!==t,e||"Expected %s to not be %s",this.actual,t),this}},{key:"toEqual",value:function(t,e){try{(0,y["default"])((0,d.isEqual)(this.actual,t),e||"Expected %s to equal %s",this.actual,t)}catch(r){throw r.actual=this.actual,r.expected=t,r.showDiff=!0,r}return this}},{key:"toNotEqual",value:function(t,e){return(0,y["default"])(!(0,d.isEqual)(this.actual,t),e||"Expected %s to not equal %s",this.actual,t),this}},{key:"toThrow",value:function(t,e){return(0,y["default"])((0,d.isFunction)(this.actual),'The "actual" argument in expect(actual).toThrow() must be a function, %s was given',this.actual),(0,y["default"])((0,d.functionThrows)(this.actual,this.context,this.args,t),e||"Expected %s to throw %s",this.actual,t||"an error"),this}},{key:"toNotThrow",value:function(t,e){return(0,y["default"])((0,d.isFunction)(this.actual),'The "actual" argument in expect(actual).toNotThrow() must be a function, %s was given',this.actual),(0,y["default"])(!(0,d.functionThrows)(this.actual,this.context,this.args,t),e||"Expected %s to not throw %s",this.actual,t||"an error"),this}},{key:"toBeA",value:function(t,e){return(0,y["default"])((0,d.isFunction)(t)||"string"==typeof t,'The "value" argument in toBeA(value) must be a function or a string'),(0,y["default"])((0,d.isA)(this.actual,t),e||"Expected %s to be a %s",this.actual,t),this}},{key:"toNotBeA",value:function(t,e){return(0,y["default"])((0,d.isFunction)(t)||"string"==typeof t,'The "value" argument in toNotBeA(value) must be a function or a string'),(0,y["default"])(!(0,d.isA)(this.actual,t),e||"Expected %s to be a %s",this.actual,t),this}},{key:"toMatch",value:function(t,e){var r=!1;return"string"==typeof this.actual?((0,y["default"])((0,h["default"])(t),'The "pattern" argument in expect(string).toMatch(pattern) must be a RegExp'),r=t.test(this.actual)):(0,d.isObject)(this.actual)?r=(0,f["default"])(this.actual,t):(0,y["default"])(!1,'The "actual" argument in expect(actual).toMatch() must be a string or an object'),(0,y["default"])(r,e||"Expected %s to match %s",this.actual,t),this}},{key:"toNotMatch",value:function(t,e){var r=!1;return"string"==typeof this.actual?((0,y["default"])((0,h["default"])(t),'The "pattern" argument in expect(string).toNotMatch(pattern) must be a RegExp'),r=t.test(this.actual)):(0,d.isObject)(this.actual)?r=(0,f["default"])(this.actual,t):(0,y["default"])(!1,'The "actual" argument in expect(actual).toNotMatch() must be a string or an object'),(0,y["default"])(!r,e||"Expected %s to not match %s",this.actual,t),this}},{key:"toBeLessThan",value:function(t,e){return(0,y["default"])("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeLessThan() must be a number'),(0,y["default"])("number"==typeof t,'The "value" argument in toBeLessThan(value) must be a number'),(0,y["default"])(this.actual<t,e||"Expected %s to be less than %s",this.actual,t),this}},{key:"toBeLessThanOrEqualTo",value:function(t,e){return(0,y["default"])("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeLessThanOrEqualTo() must be a number'),(0,y["default"])("number"==typeof t,'The "value" argument in toBeLessThanOrEqualTo(value) must be a number'),(0,y["default"])(this.actual<=t,e||"Expected %s to be less than or equal to %s",this.actual,t),this}},{key:"toBeGreaterThan",value:function(t,e){return(0,y["default"])("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeGreaterThan() must be a number'),(0,y["default"])("number"==typeof t,'The "value" argument in toBeGreaterThan(value) must be a number'),(0,y["default"])(this.actual>t,e||"Expected %s to be greater than %s",this.actual,t),this}},{key:"toBeGreaterThanOrEqualTo",value:function(t,e){return(0,y["default"])("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeGreaterThanOrEqualTo() must be a number'),(0,y["default"])("number"==typeof t,'The "value" argument in toBeGreaterThanOrEqualTo(value) must be a number'),(0,y["default"])(this.actual>=t,e||"Expected %s to be greater than or equal to %s",this.actual,t),this}},{key:"toInclude",value:function(t,e,r){"string"==typeof e&&(r=e,e=null),null==e&&(e=d.isEqual);var n=!1;return(0,d.isArray)(this.actual)?n=(0,d.arrayContains)(this.actual,t,e):(0,d.isObject)(this.actual)?n=(0,d.objectContains)(this.actual,t,e):"string"==typeof this.actual?n=(0,d.stringContains)(this.actual,t):(0,y["default"])(!1,'The "actual" argument in expect(actual).toInclude() must be an array, object, or a string'),(0,y["default"])(n,r||"Expected %s to include %s",this.actual,t),this}},{key:"toExclude",value:function(t,e,r){"string"==typeof e&&(r=e,e=null),null==e&&(e=d.isEqual);var n=!1;return(0,d.isArray)(this.actual)?n=(0,d.arrayContains)(this.actual,t,e):(0,d.isObject)(this.actual)?n=(0,d.objectContains)(this.actual,t,e):"string"==typeof this.actual?n=(0,d.stringContains)(this.actual,t):(0,y["default"])(!1,'The "actual" argument in expect(actual).toExclude() must be an array, object, or a string'),(0,y["default"])(!n,r||"Expected %s to exclude %s",this.actual,t),this}},{key:"toIncludeKeys",value:function(t,e,r){var n=this;"string"==typeof e&&(r=e,e=null),null==e&&(e=s["default"]),(0,y["default"])("object"===i(this.actual),'The "actual" argument in expect(actual).toIncludeKeys() must be an object, not %s',this.actual),(0,y["default"])((0,d.isArray)(t),'The "keys" argument in expect(actual).toIncludeKeys(keys) must be an array, not %s',t);var o=t.every(function(t){return e(n.actual,t)});return(0,y["default"])(o,r||"Expected %s to include key(s) %s",this.actual,t.join(", ")),this}},{key:"toIncludeKey",value:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return this.toIncludeKeys.apply(this,[[t]].concat(r))}},{key:"toExcludeKeys",value:function(t,e,r){var n=this;"string"==typeof e&&(r=e,e=null),null==e&&(e=s["default"]),(0,y["default"])("object"===i(this.actual),'The "actual" argument in expect(actual).toExcludeKeys() must be an object, not %s',this.actual),(0,y["default"])((0,d.isArray)(t),'The "keys" argument in expect(actual).toIncludeKeys(keys) must be an array, not %s',t);var o=t.every(function(t){return e(n.actual,t)});return(0,y["default"])(!o,r||"Expected %s to exclude key(s) %s",this.actual,t.join(", ")),this}},{key:"toExcludeKey",value:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return this.toExcludeKeys.apply(this,[[t]].concat(r))}},{key:"toHaveBeenCalled",value:function(t){var e=this.actual;return(0,y["default"])((0,g.isSpy)(e),'The "actual" argument in expect(actual).toHaveBeenCalled() must be a spy'),(0,y["default"])(e.calls.length>0,t||"spy was not called"),this}},{key:"toHaveBeenCalledWith",value:function(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];var n=this.actual;return(0,y["default"])((0,g.isSpy)(n),'The "actual" argument in expect(actual).toHaveBeenCalledWith() must be a spy'),(0,y["default"])(n.calls.some(function(t){return(0,d.isEqual)(t.arguments,e)}),"spy was never called with %s",e),this}},{key:"toNotHaveBeenCalled",value:function(t){var e=this.actual;return(0,y["default"])((0,g.isSpy)(e),'The "actual" argument in expect(actual).toNotHaveBeenCalled() must be a spy'),(0,y["default"])(0===e.calls.length,t||"spy was not supposed to be called"),this}}]),t}(),v=function(t,e){var r=!1;return function(){r||(r=!0,console.warn(e));for(var n=arguments.length,o=Array(n),i=0;n>i;i++)o[i]=arguments[i];return t.apply(this,o)}};b.prototype.withContext=v(function(t){return(0,y["default"])((0,d.isFunction)(this.actual),'The "actual" argument in expect(actual).withContext() must be a function'),this.context=t,this},"\nwithContext is deprecated; use a closure instead.\n\n expect(fn).withContext(context).toThrow()\n\nbecomes\n\n expect(() => fn.call(context)).toThrow()\n"),b.prototype.withArgs=v(function(){var t;return(0,y["default"])((0,d.isFunction)(this.actual),'The "actual" argument in expect(actual).withArgs() must be a function'),arguments.length&&(this.args=(t=this.args).concat.apply(t,arguments)),this},"\nwithArgs is deprecated; use a closure instead.\n\n expect(fn).withArgs(a, b, c).toThrow()\n\nbecomes\n\n expect(() => fn(a, b, c)).toThrow()\n");var m={toBeAn:"toBeA",toNotBeAn:"toNotBeA",toBeTruthy:"toExist",toBeFalsy:"toNotExist",toBeFewerThan:"toBeLessThan",toBeMoreThan:"toBeGreaterThan",toContain:"toInclude",toNotContain:"toExclude",toNotInclude:"toExclude",toContainKeys:"toIncludeKeys",toNotContainKeys:"toExcludeKeys",toNotIncludeKeys:"toExcludeKeys",toContainKey:"toIncludeKey",toNotContainKey:"toExcludeKey",toNotIncludeKey:"toExcludeKey"};for(var w in m)m.hasOwnProperty(w)&&(b.prototype[w]=b.prototype[m[w]]);e["default"]=b},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.spyOn=e.createSpy=e.restoreSpies=e.isSpy=void 0;var i=r(13),u=r(1),a=n(u),s=r(5),c=function(){},f=i.supportsDescriptors&&Object.getOwnPropertyDescriptor(function(){},"length").configurable,l=e.isSpy=function(t){return t&&t.__isSpy===!0},h=[],p=(e.restoreSpies=function(){for(var t=h.length-1;t>=0;t--)h[t].restore();h=[]},e.createSpy=function(t){function e(){if(l.calls.push({context:this,arguments:Array.prototype.slice.call(arguments,0)}),n)return n.apply(this,arguments);if(i)throw i;return u}var r=arguments.length<=1||void 0===arguments[1]?c:arguments[1];null==t&&(t=c),(0,a["default"])((0,s.isFunction)(t),"createSpy needs a function");var n=void 0,i=void 0,u=void 0,l=void 0;return l=f?Object.defineProperty(e,"length",{value:t.length,writable:!1,enumerable:!1,configurable:!0}):new Function("spy","return function("+[].concat(o(Array(t.length))).map(function(t,e){return"_"+e}).join(",")+") {\n return spy.apply(this, arguments)\n }")(e),l.calls=[],l.andCall=function(t){return n=t,l},l.andCallThrough=function(){return l.andCall(t)},l.andThrow=function(t){return i=t,l},l.andReturn=function(t){return u=t,l},l.getLastCall=function(){return l.calls[l.calls.length-1]},l.reset=function(){l.calls=[]},l.restore=l.destroy=r,l.__isSpy=!0,h.push(l),l});e.spyOn=function(t,e){var r=t[e];return l(r)||((0,a["default"])((0,s.isFunction)(r),"Cannot spyOn the %s property; it is not a function",e),t[e]=p(r,function(){t[e]=r})),t[e]}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.stringContains=e.objectContains=e.arrayContains=e.functionThrows=e.isA=e.isObject=e.isArray=e.isFunction=e.isEqual=e.whyNotEqual=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},i=r(2),u=n(i),a=r(23),s=n(a),c=r(10),f=n(c),l=e.whyNotEqual=function(t,e){if(t==e)return"";var r=(0,s["default"])(t,e);return""!==r&&"arguments have a different [[Prototype]]"===r?"":r},h=(e.isEqual=function(t,e){return""===l(t,e)},e.isFunction=function(t){return"function"==typeof t}),p=e.isArray=function(t){return Array.isArray(t)},y=e.isObject=function(t){return t&&!p(t)&&"object"===("undefined"==typeof t?"undefined":o(t))},g=(e.isA=function(t,e){return h(e)?t instanceof e:"array"===e?Array.isArray(t):("undefined"==typeof t?"undefined":o(t))===e},e.functionThrows=function(t,e,r,n){try{t.apply(e,r)}catch(o){if(null==n)return!0;if(h(n)&&o instanceof n)return!0;var i=o.message||o;if("string"==typeof i){if((0,u["default"])(n)&&n.test(o.message))return!0;if("string"==typeof n&&-1!==i.indexOf(n))return!0}}return!1},e.arrayContains=function(t,e,r){return t.some(function(t){return r(t,e)!==!1})},function(t){return"object"===("undefined"==typeof Reflect?"undefined":o(Reflect))&&"function"==typeof Reflect.ownKeys?Reflect.ownKeys(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}):"function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}).concat((0,f["default"])(t)):(0,f["default"])(t)});e.objectContains=function d(t,e,r){return g(e).every(function(n){return y(t[n])&&y(e[n])?d(t[n],e[n],r):r(t[n],e[n])})},e.stringContains=function(t,e){return-1!==t.indexOf(e)}},function(t,e,r){(function(t,n){/*!
* The buffer module from node.js, for the browser.

@@ -7,3 +7,3 @@ *

*/
"use strict";function o(){function t(){}try{var e=new Uint8Array(1);return e.foo=function(){return 42},e.constructor=t,42===e.foo()&&e.constructor===t&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(r){return!1}}function i(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function t(e){return this instanceof t?(t.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof e?u(this,e):"string"==typeof e?a(this,e,arguments.length>1?arguments[1]:"utf8"):s(this,e)):arguments.length>1?new t(e,arguments[1]):new t(e)}function u(e,r){if(e=g(e,0>r?0:0|d(r)),!t.TYPED_ARRAY_SUPPORT)for(var n=0;r>n;n++)e[n]=0;return e}function a(t,e,r){"string"==typeof r&&""!==r||(r="utf8");var n=0|v(e,r);return t=g(t,n),t.write(e,r),t}function s(e,r){if(t.isBuffer(r))return c(e,r);if(X(r))return f(e,r);if(null==r)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(r.buffer instanceof ArrayBuffer)return l(e,r);if(r instanceof ArrayBuffer)return h(e,r)}return r.length?p(e,r):y(e,r)}function c(t,e){var r=0|d(e.length);return t=g(t,r),e.copy(t,0,0,r),t}function f(t,e){var r=0|d(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function l(t,e){var r=0|d(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function h(e,r){return t.TYPED_ARRAY_SUPPORT?(r.byteLength,e=t._augment(new Uint8Array(r))):e=l(e,new Uint8Array(r)),e}function p(t,e){var r=0|d(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function y(t,e){var r,n=0;"Buffer"===e.type&&X(e.data)&&(r=e.data,n=0|d(r.length)),t=g(t,n);for(var o=0;n>o;o+=1)t[o]=255&r[o];return t}function g(e,r){t.TYPED_ARRAY_SUPPORT?(e=t._augment(new Uint8Array(r)),e.__proto__=t.prototype):(e.length=r,e._isBuffer=!0);var n=0!==r&&r<=t.poolSize>>>1;return n&&(e.parent=Z),e}function d(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function b(e,r){if(!(this instanceof b))return new b(e,r);var n=new t(e,r);return delete n.parent,n}function v(t,e){"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"binary":case"raw":case"raws":return r;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(t).length;default:if(n)return K(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,r){var n=!1;if(e=0|e,r=void 0===r||r===1/0?this.length:0|r,t||(t="utf8"),0>e&&(e=0),r>this.length&&(r=this.length),e>=r)return"";for(;;)switch(t){case"hex":return P(this,e,r);case"utf8":case"utf-8":return O(this,e,r);case"ascii":return I(this,e,r);case"binary":return _(this,e,r);case"base64":return j(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function w(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=e.length;if(i%2!==0)throw new Error("Invalid hex string");n>i/2&&(n=i/2);for(var u=0;n>u;u++){var a=parseInt(e.substr(2*u,2),16);if(isNaN(a))throw new Error("Invalid hex string");t[r+u]=a}return u}function E(t,e,r,n){return z(K(e,t.length-r),t,r,n)}function A(t,e,r,n){return z(q(e),t,r,n)}function T(t,e,r,n){return A(t,e,r,n)}function S(t,e,r,n){return z(G(e),t,r,n)}function x(t,e,r,n){return z($(e,t.length-r),t,r,n)}function j(t,e,r){return 0===e&&r===t.length?J.fromByteArray(t):J.fromByteArray(t.slice(e,r))}function O(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;r>o;){var i=t[o],u=null,a=i>239?4:i>223?3:i>191?2:1;if(r>=o+a){var s,c,f,l;switch(a){case 1:128>i&&(u=i);break;case 2:s=t[o+1],128===(192&s)&&(l=(31&i)<<6|63&s,l>127&&(u=l));break;case 3:s=t[o+1],c=t[o+2],128===(192&s)&&128===(192&c)&&(l=(15&i)<<12|(63&s)<<6|63&c,l>2047&&(55296>l||l>57343)&&(u=l));break;case 4:s=t[o+1],c=t[o+2],f=t[o+3],128===(192&s)&&128===(192&c)&&128===(192&f)&&(l=(15&i)<<18|(63&s)<<12|(63&c)<<6|63&f,l>65535&&1114112>l&&(u=l))}}null===u?(u=65533,a=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=a}return B(n)}function B(t){var e=t.length;if(Q>=e)return String.fromCharCode.apply(String,t);for(var r="",n=0;e>n;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Q));return r}function I(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;r>o;o++)n+=String.fromCharCode(127&t[o]);return n}function _(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;r>o;o++)n+=String.fromCharCode(t[o]);return n}function P(t,e,r){var n=t.length;(!e||0>e)&&(e=0),(!r||0>r||r>n)&&(r=n);for(var o="",i=e;r>i;i++)o+=H(t[i]);return o}function R(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function C(t,e,r){if(t%1!==0||0>t)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function M(e,r,n,o,i,u){if(!t.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(r>i||u>r)throw new RangeError("value is out of bounds");if(n+o>e.length)throw new RangeError("index out of range")}function U(t,e,r,n){0>e&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);i>o;o++)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function L(t,e,r,n){0>e&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);i>o;o++)t[r+o]=e>>>8*(n?o:3-o)&255}function N(t,e,r,n,o,i){if(e>o||i>e)throw new RangeError("value is out of bounds");if(r+n>t.length)throw new RangeError("index out of range");if(0>r)throw new RangeError("index out of range")}function k(t,e,r,n,o){return o||N(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),W.write(t,e,r,n,23,4),r+4}function D(t,e,r,n,o){return o||N(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),W.write(t,e,r,n,52,8),r+8}function F(t){if(t=Y(t).replace(tt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function Y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return 16>t?"0"+t.toString(16):t.toString(16)}function K(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],u=0;n>u;u++){if(r=t.charCodeAt(u),r>55295&&57344>r){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(u+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(56320>r){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,128>r){if((e-=1)<0)break;i.push(r)}else if(2048>r){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(65536>r){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(1114112>r))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function q(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e}function $(t,e){for(var r,n,o,i=[],u=0;u<t.length&&!((e-=2)<0);u++)r=t.charCodeAt(u),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function G(t){return J.toByteArray(F(t))}function z(t,e,r,n){for(var o=0;n>o&&!(o+r>=e.length||o>=t.length);o++)e[o+r]=t[o];return o}var J=r(12),W=r(18),X=r(13);e.Buffer=t,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,t.poolSize=8192;var Z={};t.TYPED_ARRAY_SUPPORT=void 0!==n.TYPED_ARRAY_SUPPORT?n.TYPED_ARRAY_SUPPORT:o(),t.TYPED_ARRAY_SUPPORT?(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array):(t.prototype.length=void 0,t.prototype.parent=void 0),t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,r){if(!t.isBuffer(e)||!t.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(e===r)return 0;for(var n=e.length,o=r.length,i=0,u=Math.min(n,o);u>i&&e[i]===r[i];)++i;return i!==u&&(n=e[i],o=r[i]),o>n?-1:n>o?1:0},t.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,r){if(!X(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new t(0);var n;if(void 0===r)for(r=0,n=0;n<e.length;n++)r+=e[n].length;var o=new t(r),i=0;for(n=0;n<e.length;n++){var u=e[n];u.copy(o,i),i+=u.length}return o},t.byteLength=v,t.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?O(this,0,t):m.apply(this,arguments)},t.prototype.equals=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===t.compare(this,e)},t.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},t.prototype.compare=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:t.compare(this,e)},t.prototype.indexOf=function(e,r){function n(t,e,r){for(var n=-1,o=0;r+o<t.length;o++)if(t[r+o]===e[-1===n?0:o-n]){if(-1===n&&(n=o),o-n+1===e.length)return r+n}else n=-1;return-1}if(r>2147483647?r=2147483647:-2147483648>r&&(r=-2147483648),r>>=0,0===this.length)return-1;if(r>=this.length)return-1;if(0>r&&(r=Math.max(this.length+r,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,r);if(t.isBuffer(e))return n(this,e,r);if("number"==typeof e)return t.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,r):n(this,[e],r);throw new TypeError("val must be string, number or Buffer")},t.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},t.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},t.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e=0|e,isFinite(r)?(r=0|r,void 0===n&&(n="utf8")):(n=r,r=void 0);else{var o=n;n=e,e=0|r,r=o}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(0>r||0>e)||e>this.length)throw new RangeError("attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":return A(this,t,e,r);case"binary":return T(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;t.prototype.slice=function(e,r){var n=this.length;e=~~e,r=void 0===r?n:~~r,0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),0>r?(r+=n,0>r&&(r=0)):r>n&&(r=n),e>r&&(r=e);var o;if(t.TYPED_ARRAY_SUPPORT)o=t._augment(this.subarray(e,r));else{var i=r-e;o=new t(i,void 0);for(var u=0;i>u;u++)o[u]=this[u+e]}return o.length&&(o.parent=this.parent||this),o},t.prototype.readUIntLE=function(t,e,r){t=0|t,e=0|e,r||C(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},t.prototype.readUIntBE=function(t,e,r){t=0|t,e=0|e,r||C(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},t.prototype.readUInt8=function(t,e){return e||C(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){return e||C(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){return e||C(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){return e||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){return e||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,r){t=0|t,e=0|e,r||C(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},t.prototype.readIntBE=function(t,e,r){t=0|t,e=0|e,r||C(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},t.prototype.readInt8=function(t,e){return e||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},t.prototype.readInt16LE=function(t,e){e||C(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt16BE=function(t,e){e||C(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt32LE=function(t,e){return e||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){return e||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){return e||C(t,4,this.length),W.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){return e||C(t,4,this.length),W.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,e){return e||C(t,8,this.length),W.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,e){return e||C(t,8,this.length),W.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,e,r,n){t=+t,e=0|e,r=0|r,n||M(this,t,e,r,Math.pow(2,8*r),0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},t.prototype.writeUIntBE=function(t,e,r,n){t=+t,e=0|e,r=0|r,n||M(this,t,e,r,Math.pow(2,8*r),0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},t.prototype.writeUInt8=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,1,255,0),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=255&e,r+1},t.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):U(this,e,r,!0),r+2},t.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):U(this,e,r,!1),r+2},t.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=255&e):L(this,e,r,!0),r+4},t.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):L(this,e,r,!1),r+4},t.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e=0|e,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=0,u=1,a=0>t?1:0;for(this[e]=255&t;++i<r&&(u*=256);)this[e+i]=(t/u>>0)-a&255;return e+r},t.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e=0|e,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=r-1,u=1,a=0>t?1:0;for(this[e+i]=255&t;--i>=0&&(u*=256);)this[e+i]=(t/u>>0)-a&255;return e+r},t.prototype.writeInt8=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,1,127,-128),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[r]=255&e,r+1},t.prototype.writeInt16LE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):U(this,e,r,!0),r+2},t.prototype.writeInt16BE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):U(this,e,r,!1),r+2},t.prototype.writeInt32LE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):L(this,e,r,!0),r+4},t.prototype.writeInt32BE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):L(this,e,r,!1),r+4},t.prototype.writeFloatLE=function(t,e,r){return k(this,t,e,!0,r)},t.prototype.writeFloatBE=function(t,e,r){return k(this,t,e,!1,r)},t.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},t.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},t.prototype.copy=function(e,r,n,o){if(n||(n=0),o||0===o||(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&n>o&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(0>r)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("sourceStart out of bounds");if(0>o)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);var i,u=o-n;if(this===e&&r>n&&o>r)for(i=u-1;i>=0;i--)e[i+r]=this[i+n];else if(1e3>u||!t.TYPED_ARRAY_SUPPORT)for(i=0;u>i;i++)e[i+r]=this[i+n];else e._set(this.subarray(n,n+u),r);return u},t.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),e>r)throw new RangeError("end < start");if(r!==e&&0!==this.length){if(0>e||e>=this.length)throw new RangeError("start out of bounds");if(0>r||r>this.length)throw new RangeError("end out of bounds");var n;if("number"==typeof t)for(n=e;r>n;n++)this[n]=t;else{var o=K(t.toString()),i=o.length;for(n=e;r>n;n++)this[n]=o[n%i]}return this}},t.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(t.TYPED_ARRAY_SUPPORT)return new t(this).buffer;for(var e=new Uint8Array(this.length),r=0,n=e.length;n>r;r+=1)e[r]=this[r];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var V=t.prototype;t._augment=function(e){return e.constructor=t,e._isBuffer=!0,e._set=e.set,e.get=V.get,e.set=V.set,e.write=V.write,e.toString=V.toString,e.toLocaleString=V.toString,e.toJSON=V.toJSON,e.equals=V.equals,e.compare=V.compare,e.indexOf=V.indexOf,e.copy=V.copy,e.slice=V.slice,e.readUIntLE=V.readUIntLE,e.readUIntBE=V.readUIntBE,e.readUInt8=V.readUInt8,e.readUInt16LE=V.readUInt16LE,e.readUInt16BE=V.readUInt16BE,e.readUInt32LE=V.readUInt32LE,e.readUInt32BE=V.readUInt32BE,e.readIntLE=V.readIntLE,e.readIntBE=V.readIntBE,e.readInt8=V.readInt8,e.readInt16LE=V.readInt16LE,e.readInt16BE=V.readInt16BE,e.readInt32LE=V.readInt32LE,e.readInt32BE=V.readInt32BE,e.readFloatLE=V.readFloatLE,e.readFloatBE=V.readFloatBE,e.readDoubleLE=V.readDoubleLE,e.readDoubleBE=V.readDoubleBE,e.writeUInt8=V.writeUInt8,e.writeUIntLE=V.writeUIntLE,e.writeUIntBE=V.writeUIntBE,e.writeUInt16LE=V.writeUInt16LE,e.writeUInt16BE=V.writeUInt16BE,e.writeUInt32LE=V.writeUInt32LE,e.writeUInt32BE=V.writeUInt32BE,e.writeIntLE=V.writeIntLE,e.writeIntBE=V.writeIntBE,e.writeInt8=V.writeInt8,e.writeInt16LE=V.writeInt16LE,e.writeInt16BE=V.writeInt16BE,e.writeInt32LE=V.writeInt32LE,e.writeInt32BE=V.writeInt32BE,e.writeFloatLE=V.writeFloatLE,e.writeFloatBE=V.writeFloatBE,e.writeDoubleLE=V.writeDoubleLE,e.writeDoubleBE=V.writeDoubleBE,e.fill=V.fill,e.inspect=V.inspect,e.toArrayBuffer=V.toArrayBuffer,e};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,r(6).Buffer,function(){return this}())},function(t,e,r){var n=r(17);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e){"use strict";var r=Function.prototype.toString,n=/^\s*class /,o=function(t){try{var e=r.call(t),o=e.replace(/\/\/.*\n/g,""),i=o.replace(/\/\*[.\s\S]*\*\//g,""),u=i.replace(/\n/gm," ").replace(/ {2}/g," ");return n.test(u)}catch(a){return!1}},i=function(t){try{return o(t)?!1:(r.call(t),!0)}catch(e){return!1}},u=Object.prototype.toString,a="[object Function]",s="[object GeneratorFunction]",c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(c)return i(t);if(o(t))return!1;var e=u.call(t);return e===a||e===s}},function(t,e){"use strict";var r=Object.prototype.toString,n="function"==typeof Symbol&&"symbol"==typeof Symbol();if(n){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/,u=function(t){return"symbol"!=typeof t.valueOf()?!1:i.test(o.call(t))};t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==r.call(t))return!1;try{return u(t)}catch(e){return!1}}}else t.exports=function(t){return!1}},function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Array.prototype.slice,u=r(30),a=!{toString:null}.propertyIsEnumerable("toString"),s=function(){}.propertyIsEnumerable("prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(t){var e=t.constructor;return e&&e.prototype===t},l={$console:!0,$frame:!0,$frameElement:!0,$frames:!0,$parent:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!l["$"+t]&&n.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{f(window[t])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(t){if("undefined"==typeof window||!h)return f(t);try{return f(t)}catch(e){return!1}},y=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),i=u(t),f=e&&"[object String]"===o.call(t),l=[];if(!e&&!r&&!i)throw new TypeError("Object.keys called on a non-object");var h=s&&r;if(f&&t.length>0&&!n.call(t,0))for(var y=0;y<t.length;++y)l.push(String(y));if(i&&t.length>0)for(var g=0;g<t.length;++g)l.push(String(g));else for(var d in t)h&&"prototype"===d||!n.call(t,d)||l.push(String(d));if(a)for(var b=p(t),v=0;v<c.length;++v)b&&"constructor"===c[v]||!n.call(t,c[v])||l.push(c[v]);return l};y.shim=function(){if(Object.keys){var t=function(){return 2===(Object.keys(arguments)||"").length}(1,2);if(!t){var e=Object.keys;Object.keys=function(t){return e(u(t)?i.call(t):t)}}}else Object.keys=y;return Object.keys||y},t.exports=y},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(-1===a.indexOf(t)){a.push(t);for(var e in t)t.hasOwnProperty(e)&&(u["default"].prototype[e]=t[e])}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(3),u=n(i),a=[];e["default"]=o},function(t,e,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function e(t){var e=t.charCodeAt(0);return e===u||e===l?62:e===a||e===h?63:s>e?-1:s+10>e?e-s+26+26:f+26>e?e-f:c+26>e?e-c+26:void 0}function r(t){function r(t){c[l++]=t}var n,o,u,a,s,c;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=t.length;s="="===t.charAt(f-2)?2:"="===t.charAt(f-1)?1:0,c=new i(3*t.length/4-s),u=s>0?t.length-4:t.length;var l=0;for(n=0,o=0;u>n;n+=4,o+=3)a=e(t.charAt(n))<<18|e(t.charAt(n+1))<<12|e(t.charAt(n+2))<<6|e(t.charAt(n+3)),r((16711680&a)>>16),r((65280&a)>>8),r(255&a);return 2===s?(a=e(t.charAt(n))<<2|e(t.charAt(n+1))>>4,r(255&a)):1===s&&(a=e(t.charAt(n))<<10|e(t.charAt(n+1))<<4|e(t.charAt(n+2))>>2,r(a>>8&255),r(255&a)),c}function o(t){function e(t){return n.charAt(t)}function r(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var o,i,u,a=t.length%3,s="";for(o=0,u=t.length-a;u>o;o+=3)i=(t[o]<<16)+(t[o+1]<<8)+t[o+2],s+=r(i);switch(a){case 1:i=t[t.length-1],s+=e(i>>2),s+=e(i<<4&63),s+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],s+=e(i>>10),s+=e(i>>4&63),s+=e(i<<2&63),s+="="}return s}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,u="+".charCodeAt(0),a="/".charCodeAt(0),s="0".charCodeAt(0),c="a".charCodeAt(0),f="A".charCodeAt(0),l="-".charCodeAt(0),h="_".charCodeAt(0);t.toByteArray=r,t.fromByteArray=o}(e)},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";var n=r(10),o=r(15),i="function"==typeof Symbol&&"symbol"==typeof Symbol(),u=Object.prototype.toString,a=function(t){return"function"==typeof t&&"[object Function]"===u.call(t)},s=function(){var t={};try{Object.defineProperty(t,"x",{enumerable:!1,value:t});for(var e in t)return!1;return t.x===t}catch(r){return!1}},c=Object.defineProperty&&s(),f=function(t,e,r,n){(!(e in t)||a(n)&&n())&&(c?Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},l=function(t,e){var r=arguments.length>2?arguments[2]:{},u=n(e);i&&(u=u.concat(Object.getOwnPropertySymbols(e))),o(u,function(n){f(t,n,e[n],r[n])})};l.supportsDescriptors=!!c,t.exports=l},function(t,e){var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString;t.exports=function(t,e,o){if("[object Function]"!==n.call(e))throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var u=0;i>u;u++)e.call(o,t[u],u,t);else for(var a in t)r.call(t,a)&&e.call(o,t[a],a,t)}},function(t,e){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,o=Object.prototype.toString,i="[object Function]";t.exports=function(t){var e=this;if("function"!=typeof e||o.call(e)!==i)throw new TypeError(r+e);for(var u,a=n.call(arguments,1),s=function(){if(this instanceof u){var r=e.apply(this,a.concat(n.call(arguments)));return Object(r)===r?r:this}return e.apply(t,a.concat(n.call(arguments)))},c=Math.max(0,e.length-a.length),f=[],l=0;c>l;l++)f.push("$"+l);if(u=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this,arguments); }")(s),e.prototype){var h=function(){};h.prototype=e.prototype,u.prototype=new h,h.prototype=null}return u}},function(t,e,r){var n=r(16);t.exports=Function.prototype.bind||n},function(t,e){e.read=function(t,e,r,n,o){var i,u,a=8*o-n-1,s=(1<<a)-1,c=s>>1,f=-7,l=r?o-1:0,h=r?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-f)-1,p>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=h,f-=8);for(u=i&(1<<-f)-1,i>>=-f,f+=n;f>0;u=256*u+t[e+l],l+=h,f-=8);if(0===i)i=1-c;else{if(i===s)return u?NaN:(p?-1:1)*(1/0);u+=Math.pow(2,n),i-=c}return(p?-1:1)*u*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var u,a,s,c=8*i-o-1,f=(1<<c)-1,l=f>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,y=n?1:-1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,u=f):(u=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-u))<1&&(u--,s*=2),e+=u+l>=1?h/s:h*Math.pow(2,1-l),e*s>=2&&(u++,s/=2),u+l>=f?(a=0,u=f):u+l>=1?(a=(e*s-1)*Math.pow(2,o),u+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),u=0));o>=8;t[r+p]=255&a,p+=y,a/=256,o-=8);for(u=u<<o|a,c+=o;c>0;t[r+p]=255&u,p+=y,u/=256,c-=8);t[r+p-y]|=128*g}},function(t,e,r){"use strict";var n=r(8),o=Function.prototype.toString,i=/^\s*function/,u=/^\([^\)]*\) *=>/,a=/^[^=]*=>/;t.exports=function(t){if(!n(t))return!1;var e=o.call(t);return e.length>0&&!i.test(e)&&(u.test(e)||a.test(e))}},function(t,e){"use strict";var r=Boolean.prototype.toString,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object Boolean]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"boolean"==typeof t?!0:"object"!=typeof t?!1:u?n(t):o.call(t)===i}},function(t,e){"use strict";var r=Date.prototype.getDay,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object Date]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"!=typeof t||null===t?!1:u?n(t):o.call(t)===i}},function(t,e){"use strict";t.exports=function(){var t=function(){if("function"!=typeof Map)return null;try{Map.prototype.forEach.call({},function(){})}catch(t){return Map.prototype.forEach}return null}(),e=function(){if("function"!=typeof Set)return null;try{Set.prototype.forEach.call({},function(){})}catch(t){return Set.prototype.forEach}return null}();return{Map:t,Set:e}}},function(t,e,r){"use strict";var n=r(9);t.exports=function(){var t="function"==typeof Symbol&&n(Symbol.iterator)?Symbol.iterator:null;return"function"==typeof Object.getOwnPropertyNames&&"function"==typeof Map&&"function"==typeof Map.prototype.entries&&Object.getOwnPropertyNames(Map.prototype).forEach(function(e){"entries"!==e&&"size"!==e&&Map.prototype[e]===Map.prototype.entries&&(t=e)}),t}},function(t,e,r){"use strict";var n=r(25);t.exports=function(t,e){return""===n(t,e)}},function(t,e,r){"use strict";var n=Object.prototype,o=n.toString,i=Boolean.prototype.valueOf,u=r(7),a=r(19),s=r(20),c=r(21),f=r(26),l=r(27),h=r(2),p=r(28),y=r(9),g=r(8),d=Object.prototype.isPrototypeOf,b=function(){},v="foo"===b.name,m="function"==typeof Symbol?Symbol.prototype.valueOf:null,w=r(23)(),E=r(22)(),A=Object.getPrototypeOf;A||(A="object"==typeof"test".__proto__?function(t){return t.__proto__}:function(t){var e,r=t.constructor;if(u(t,"constructor")){if(e=r,!delete t.constructor)return null;r=t.constructor,t.constructor=e}return r?r.prototype:n});var T=Array.isArray||function(t){return"[object Array]"===o.call(t)},S=function(t){return t.replace(/^function ?\(/,"function (").replace("){",") {")},x=function(t){var e=[];try{E.Map.call(t,function(t,r){e.push([t,r])})}catch(r){try{E.Set.call(t,function(t){e.push([t])})}catch(n){return!1}}return e};t.exports=function j(t,e){if(t===e)return"";if(null==t||null==e)return t===e?"":String(t)+" !== "+String(e);var r=o.call(t),n=o.call(t);if(r!==n)return"toStringTag is not the same: "+r+" !== "+n;var b=s(t),O=s(e);if(b||O){if(!b)return"first argument is not a boolean; second argument is";if(!O)return"second argument is not a boolean; first argument is";var B=i.call(t),I=i.call(e);return B===I?"":"primitive value of boolean arguments do not match: "+B+" !== "+I}var _=l(t),P=l(t);if(_||P){if(!_)return"first argument is not a number; second argument is";if(!P)return"second argument is not a number; first argument is";var R=Number(t),C=Number(e);if(R===C)return"";var M=isNaN(t),U=isNaN(e);return M&&!U?"first argument is NaN; second is not":!M&&U?"second argument is NaN; first is not":M&&U?"":"numbers are different: "+t+" !== "+e}var L=p(t),N=p(e);if(L||N){if(!L)return"second argument is string; first is not";if(!N)return"first argument is string; second is not";var k=String(t),D=String(e);return k===D?"":'string values are different: "'+k+'" !== "'+D+'"'}var F=c(t),Y=c(e);if(F||Y){if(!F)return"second argument is Date, first is not";if(!Y)return"first argument is Date, second is not";var H=+t,K=+e;return H===K?"":"Dates have different time values: "+H+" !== "+K}var q=h(t),$=h(e);if(q||$){if(!q)return"second argument is RegExp, first is not";if(!$)return"first argument is RegExp, second is not";var G=String(t),z=String(e);return G===z?"":"regular expressions differ: "+G+" !== "+z}var J=T(t),W=T(e);if(J||W){if(!J)return"second argument is an Array, first is not";if(!W)return"first argument is an Array, second is not";if(t.length!==e.length)return"arrays have different length: "+t.length+" !== "+e.length;if(String(t)!==String(e))return"stringified Arrays differ";for(var X,Z,Q=t.length-1,V="";""===V&&Q>=0;){if(X=u(t,Q),Z=u(e,Q),!X&&Z)return"second argument has index "+Q+"; first does not";if(X&&!Z)return"first argument has index "+Q+"; second does not";V=j(t[Q],e[Q]),Q-=1}return V}var tt=y(t),et=y(e);if(tt!==et)return tt?"first argument is Symbol; second is not":"second argument is Symbol; first is not";if(tt&&et)return m.call(t)===m.call(e)?"":"first Symbol value !== second Symbol value";var rt=f(t),nt=f(e);if(rt!==nt)return rt?"first argument is a Generator; second is not":"second argument is a Generator; first is not";var ot=a(t),it=a(e);if(ot!==it)return ot?"first argument is an Arrow function; second is not":"second argument is an Arrow function; first is not";if(g(t)||g(e)){if(v&&""!==j(t.name,e.name))return'Function names differ: "'+t.name+'" !== "'+e.name+'"';if(""!==j(t.length,e.length))return"Function lengths differ: "+t.length+" !== "+e.length;var ut=S(String(t)),at=S(String(e));return""===j(ut,at)?"":rt||ot?""===j(ut,at)?"":"Function string representations differ":""===j(ut.replace(/\)\s*\{/,"){"),at.replace(/\)\s*\{/,"){"))?"":"Function string representations differ"}if("object"==typeof t||"object"==typeof e){if(typeof t!=typeof e)return"arguments have a different typeof: "+typeof t+" !== "+typeof e;if(d.call(t,e))return"first argument is the [[Prototype]] of the second";if(d.call(e,t))return"second argument is the [[Prototype]] of the first";if(A(t)!==A(e))return"arguments have a different [[Prototype]]";if(w){var st=t[w],ct=g(st),ft=e[w],lt=g(ft);if(ct!==lt)return ct?"first argument is iterable; second is not":"second argument is iterable; first is not";if(ct&&lt){var ht,pt,yt,gt=st.call(t),dt=ft.call(e);do if(ht=gt.next(),pt=dt.next(),!ht.done&&!pt.done&&(yt=j(ht,pt),""!==yt))return"iteration results are not equal: "+yt;while(!ht.done&&!pt.done);return ht.done&&!pt.done?"first argument finished iterating before second":!ht.done&&pt.done?"second argument finished iterating before first":"";
}}else if(E.Map||E.Set){var bt=x(t),vt=x(e),mt=T(bt),wt=T(vt);if(mt&&!wt)return"first argument has Collection entries, second does not";if(!mt&&wt)return"second argument has Collection entries, first does not";if(mt&&wt){var Et=j(bt,vt);return""===Et?"":"Collection entries differ: "+Et}}var At,Tt,St,xt;for(At in t)if(u(t,At)){if(!u(e,At))return'first argument has key "'+At+'"; second does not';if(Tt=t[At]&&t[At][At]===t,St=e[At]&&e[At][At]===e,Tt!==St)return Tt?'first argument has a circular reference at key "'+At+'"; second does not':'second argument has a circular reference at key "'+At+'"; first does not';if(!Tt&&!St&&(xt=j(t[At],e[At]),""!==xt))return'value at key "'+At+'" differs: '+xt}for(At in e)if(u(e,At)&&!u(t,At))return'second argument has key "'+At+'"; first does not';return""}return!1}},function(t,e){"use strict";var r=Object.prototype.toString,n=Function.prototype.toString,o=/^\s*function\*/;t.exports=function(t){if("function"!=typeof t)return!1;var e=r.call(t);return("[object Function]"===e||"[object GeneratorFunction]"===e)&&o.test(n.call(t))}},function(t,e){"use strict";var r=Number.prototype.toString,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object Number]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"number"==typeof t?!0:"object"!=typeof t?!1:u?n(t):o.call(t)===i}},function(t,e){"use strict";var r=String.prototype.valueOf,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object String]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t?!0:"object"!=typeof t?!1:u?n(t):o.call(t)===i}},function(t,e){function r(t){return String(t).replace(/"/g,"&quot;")}function n(t){return"[object Array]"===c(t)}function o(t){return"[object Date]"===c(t)}function i(t){return"[object RegExp]"===c(t)}function u(t){return"[object Error]"===c(t)}function a(t){return"[object Symbol]"===c(t)}function s(t,e){return S.call(t,e)}function c(t){return Object.prototype.toString.call(t)}function f(t){if(t.name)return t.name;var e=t.toString().match(/^function\s*([\w$]+)/);return e?e[1]:void 0}function l(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;n>r;r++)if(t[r]===e)return r;return-1}function h(t){if(!v)return!1;try{return v.call(t),!0}catch(e){}return!1}function p(t){if(!A)return!1;try{return A.call(t),!0}catch(e){}return!1}function y(t){return t&&"object"==typeof t?"undefined"!=typeof HTMLElement&&t instanceof HTMLElement?!0:"string"==typeof t.nodeName&&"function"==typeof t.getAttribute:!1}function g(t){function e(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(16>e?"0":"")+e.toString(16)}var r=t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,e);return"'"+r+"'"}var d="function"==typeof Map&&Map.prototype,b=Object.getOwnPropertyDescriptor&&d?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,v=d&&b&&"function"==typeof b.get?b.get:null,m=d&&Map.prototype.forEach,w="function"==typeof Set&&Set.prototype,E=Object.getOwnPropertyDescriptor&&w?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,A=w&&E&&"function"==typeof E.get?E.get:null,T=w&&Set.prototype.forEach;t.exports=function x(t,e,c,d){function b(t,r){return r&&(d=d.slice(),d.push(r)),x(t,e,c+1,d)}e||(e={});var w=void 0===e.depth?5:e.depth;if(void 0===c&&(c=0),c>=w&&w>0&&t&&"object"==typeof t)return"[Object]";if(void 0===d)d=[];else if(l(d,t)>=0)return"[Circular]";if("string"==typeof t)return g(t);if("function"==typeof t){var E=f(t);return"[Function"+(E?": "+E:"")+"]"}if(null===t)return"null";if(a(t)){var S=Symbol.prototype.toString.call(t);return"object"==typeof t?"Object("+S+")":S}if(y(t)){for(var j="<"+String(t.nodeName).toLowerCase(),O=t.attributes||[],B=0;B<O.length;B++)j+=" "+O[B].name+'="'+r(O[B].value)+'"';return j+=">",t.childNodes&&t.childNodes.length&&(j+="..."),j+="</"+String(t.nodeName).toLowerCase()+">"}if(n(t)){if(0===t.length)return"[]";for(var I=Array(t.length),B=0;B<t.length;B++)I[B]=s(t,B)?b(t[B],t):"";return"[ "+I.join(", ")+" ]"}if(u(t)){var _=[];for(var P in t)s(t,P)&&(/[^\w$]/.test(P)?_.push(b(P)+": "+b(t[P])):_.push(P+": "+b(t[P])));return 0===_.length?"["+t+"]":"{ ["+t+"] "+_.join(", ")+" }"}if("object"==typeof t&&"function"==typeof t.inspect)return t.inspect();if(h(t)){var _=[];return m.call(t,function(e,r){_.push(b(r,t)+" => "+b(e,t))}),"Map ("+v.call(t)+") {"+_.join(", ")+"}"}if(p(t)){var _=[];return T.call(t,function(e){_.push(b(e,t))}),"Set ("+A.call(t)+") {"+_.join(", ")+"}"}if("object"!=typeof t||o(t)||i(t))return String(t);var I=[],R=[];for(var P in t)s(t,P)&&R.push(P);R.sort();for(var B=0;B<R.length;B++){var P=R[B];/[^\w$]/.test(P)?I.push(b(P)+": "+b(t[P],t)):I.push(P+": "+b(t[P],t))}return 0===I.length?"{}":"{ "+I.join(", ")+" }"};var S=Object.prototype.hasOwnProperty||function(t){return t in this}},function(t,e){"use strict";var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===r.call(t.callee)),n}},function(t,e){function r(){c=!1,u.length?s=u.concat(s):f=-1,s.length&&n()}function n(){if(!c){var t=setTimeout(r);c=!0;for(var e=s.length;e;){for(u=s,s=[];++f<e;)u&&u[f].run();f=-1,e=s.length}u=null,c=!1,clearTimeout(t)}}function o(t,e){this.fun=t,this.array=e}function i(){}var u,a=t.exports={},s=[],c=!1,f=-1;a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];s.push(new o(t,e)),1!==s.length||c||setTimeout(n,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=i,a.addListener=i,a.once=i,a.off=i,a.removeListener=i,a.removeAllListeners=i,a.emit=i,a.binding=function(t){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(t){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(t,e,r){(function(e,r){"use strict";function n(t){return"[object Arguments]"===Object.prototype.toString.call(t)}function o(t,e){return i(t,e,[],[])}function i(t,e,o,a){if(u("TMATCH",typeof t,e),t==e)return u("TMATCH same object or simple value, or problem"),null===t||null===e?!0:"object"==typeof t&&"object"==typeof e?!0:"object"==typeof t&&"object"!=typeof e?!1:"object"==typeof t||"object"!=typeof e;if(null===t||null===e)return u("TMATCH null test, already failed =="),!1;if("string"==typeof t&&e instanceof RegExp)return u("TMATCH string~=regexp test"),e.test(t);if("string"==typeof t&&"string"==typeof e&&e)return u("TMATCH string~=string test"),-1!==t.indexOf(e);if(t instanceof Date&&e instanceof Date)return u("TMATCH date test"),t.getTime()===e.getTime();if(t instanceof Date&&"string"==typeof e)return u("TMATCH date~=string test"),t.getTime()===new Date(e).getTime();if(n(t)||n(e)){u("TMATCH arguments test");var s=Array.prototype.slice;return i(s.call(t),s.call(e),o,a)}if(e===r)return u("TMATCH Buffer ctor"),r.isBuffer(t);if(e===Function)return u("TMATCH Function ctor"),"function"==typeof t;if(e===Number)return u("TMATCH Number ctor (finite, not NaN)"),"number"==typeof t&&t===t&&isFinite(t);if(e!==e)return u("TMATCH NaN"),t!==t;if(e===String)return u("TMATCH String ctor"),"string"==typeof t;if(e===Boolean)return u("TMATCH Boolean ctor"),"boolean"==typeof t;if(e===Array)return u("TMATCH Array ctor",e,Array.isArray(t)),Array.isArray(t);if("function"==typeof e&&"object"==typeof t)return u("TMATCH object~=function"),t instanceof e;if("object"!=typeof t||"object"!=typeof e)return u("TMATCH obj is not object, pattern is not object, false"),!1;if(t instanceof RegExp&&e instanceof RegExp)return u("TMATCH regexp~=regexp test"),t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(r.isBuffer(t)&&r.isBuffer(e)){if(u("TMATCH buffer test"),t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var c=0;c<t.length;c++)if(t[c]!=e[c])return!1;return!0}u("TMATCH object~=object test");var f=Object.keys(t),l=Object.keys(e);if(u(" TMATCH patternkeys=%j objkeys=%j",l,f),0===f.length&&0===l.length)return!0;u(" TMATCH check seen objects...");for(var h=o.length;h--;)if(o[h]===t&&a[h]===e)return!0;o.push(t),a.push(e),u(" TMATCH not seen previously");for(var p,y=l.length-1;y>=0;y--)if(p=l[y],u(" TMATCH test obj[%j]",p,t[p],e[p]),!i(t[p],e[p],o,a))return!1;return o.pop(),a.pop(),u(" TMATCH object pass"),!0}t.exports=o;var u=/\btmatch\b/.test(e.env.NODE_DEBUG||"")?console.error:function(){}}).call(e,r(31),r(6).Buffer)}])});
"use strict";function o(){function t(){}try{var e=new Uint8Array(1);return e.foo=function(){return 42},e.constructor=t,42===e.foo()&&e.constructor===t&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(r){return!1}}function i(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function t(e){return this instanceof t?(t.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof e?u(this,e):"string"==typeof e?a(this,e,arguments.length>1?arguments[1]:"utf8"):s(this,e)):arguments.length>1?new t(e,arguments[1]):new t(e)}function u(e,r){if(e=g(e,0>r?0:0|d(r)),!t.TYPED_ARRAY_SUPPORT)for(var n=0;r>n;n++)e[n]=0;return e}function a(t,e,r){"string"==typeof r&&""!==r||(r="utf8");var n=0|v(e,r);return t=g(t,n),t.write(e,r),t}function s(e,r){if(t.isBuffer(r))return c(e,r);if(X(r))return f(e,r);if(null==r)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(r.buffer instanceof ArrayBuffer)return l(e,r);if(r instanceof ArrayBuffer)return h(e,r)}return r.length?p(e,r):y(e,r)}function c(t,e){var r=0|d(e.length);return t=g(t,r),e.copy(t,0,0,r),t}function f(t,e){var r=0|d(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function l(t,e){var r=0|d(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function h(e,r){return t.TYPED_ARRAY_SUPPORT?(r.byteLength,e=t._augment(new Uint8Array(r))):e=l(e,new Uint8Array(r)),e}function p(t,e){var r=0|d(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function y(t,e){var r,n=0;"Buffer"===e.type&&X(e.data)&&(r=e.data,n=0|d(r.length)),t=g(t,n);for(var o=0;n>o;o+=1)t[o]=255&r[o];return t}function g(e,r){t.TYPED_ARRAY_SUPPORT?(e=t._augment(new Uint8Array(r)),e.__proto__=t.prototype):(e.length=r,e._isBuffer=!0);var n=0!==r&&r<=t.poolSize>>>1;return n&&(e.parent=Z),e}function d(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function b(e,r){if(!(this instanceof b))return new b(e,r);var n=new t(e,r);return delete n.parent,n}function v(t,e){"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"binary":case"raw":case"raws":return r;case"utf8":case"utf-8":return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(t).length;default:if(n)return q(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,r){var n=!1;if(e=0|e,r=void 0===r||r===1/0?this.length:0|r,t||(t="utf8"),0>e&&(e=0),r>this.length&&(r=this.length),e>=r)return"";for(;;)switch(t){case"hex":return P(this,e,r);case"utf8":case"utf-8":return O(this,e,r);case"ascii":return I(this,e,r);case"binary":return _(this,e,r);case"base64":return j(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function w(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=e.length;if(i%2!==0)throw new Error("Invalid hex string");n>i/2&&(n=i/2);for(var u=0;n>u;u++){var a=parseInt(e.substr(2*u,2),16);if(isNaN(a))throw new Error("Invalid hex string");t[r+u]=a}return u}function E(t,e,r,n){return z(q(e,t.length-r),t,r,n)}function A(t,e,r,n){return z(K(e),t,r,n)}function T(t,e,r,n){return A(t,e,r,n)}function S(t,e,r,n){return z(G(e),t,r,n)}function x(t,e,r,n){return z($(e,t.length-r),t,r,n)}function j(t,e,r){return 0===e&&r===t.length?J.fromByteArray(t):J.fromByteArray(t.slice(e,r))}function O(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;r>o;){var i=t[o],u=null,a=i>239?4:i>223?3:i>191?2:1;if(r>=o+a){var s,c,f,l;switch(a){case 1:128>i&&(u=i);break;case 2:s=t[o+1],128===(192&s)&&(l=(31&i)<<6|63&s,l>127&&(u=l));break;case 3:s=t[o+1],c=t[o+2],128===(192&s)&&128===(192&c)&&(l=(15&i)<<12|(63&s)<<6|63&c,l>2047&&(55296>l||l>57343)&&(u=l));break;case 4:s=t[o+1],c=t[o+2],f=t[o+3],128===(192&s)&&128===(192&c)&&128===(192&f)&&(l=(15&i)<<18|(63&s)<<12|(63&c)<<6|63&f,l>65535&&1114112>l&&(u=l))}}null===u?(u=65533,a=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=a}return B(n)}function B(t){var e=t.length;if(Q>=e)return String.fromCharCode.apply(String,t);for(var r="",n=0;e>n;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Q));return r}function I(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;r>o;o++)n+=String.fromCharCode(127&t[o]);return n}function _(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;r>o;o++)n+=String.fromCharCode(t[o]);return n}function P(t,e,r){var n=t.length;(!e||0>e)&&(e=0),(!r||0>r||r>n)&&(r=n);for(var o="",i=e;r>i;i++)o+=H(t[i]);return o}function R(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function C(t,e,r){if(t%1!==0||0>t)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function M(e,r,n,o,i,u){if(!t.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(r>i||u>r)throw new RangeError("value is out of bounds");if(n+o>e.length)throw new RangeError("index out of range")}function U(t,e,r,n){0>e&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);i>o;o++)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function L(t,e,r,n){0>e&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);i>o;o++)t[r+o]=e>>>8*(n?o:3-o)&255}function N(t,e,r,n,o,i){if(e>o||i>e)throw new RangeError("value is out of bounds");if(r+n>t.length)throw new RangeError("index out of range");if(0>r)throw new RangeError("index out of range")}function k(t,e,r,n,o){return o||N(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),W.write(t,e,r,n,23,4),r+4}function D(t,e,r,n,o){return o||N(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),W.write(t,e,r,n,52,8),r+8}function F(t){if(t=Y(t).replace(tt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function Y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return 16>t?"0"+t.toString(16):t.toString(16)}function q(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],u=0;n>u;u++){if(r=t.charCodeAt(u),r>55295&&57344>r){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(u+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(56320>r){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,128>r){if((e-=1)<0)break;i.push(r)}else if(2048>r){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(65536>r){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(1114112>r))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function K(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e}function $(t,e){for(var r,n,o,i=[],u=0;u<t.length&&!((e-=2)<0);u++)r=t.charCodeAt(u),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function G(t){return J.toByteArray(F(t))}function z(t,e,r,n){for(var o=0;n>o&&!(o+r>=e.length||o>=t.length);o++)e[o+r]=t[o];return o}var J=r(12),W=r(17),X=r(27);e.Buffer=t,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,t.poolSize=8192;var Z={};t.TYPED_ARRAY_SUPPORT=void 0!==n.TYPED_ARRAY_SUPPORT?n.TYPED_ARRAY_SUPPORT:o(),t.TYPED_ARRAY_SUPPORT?(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array):(t.prototype.length=void 0,t.prototype.parent=void 0),t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,r){if(!t.isBuffer(e)||!t.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(e===r)return 0;for(var n=e.length,o=r.length,i=0,u=Math.min(n,o);u>i&&e[i]===r[i];)++i;return i!==u&&(n=e[i],o=r[i]),o>n?-1:n>o?1:0},t.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,r){if(!X(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new t(0);var n;if(void 0===r)for(r=0,n=0;n<e.length;n++)r+=e[n].length;var o=new t(r),i=0;for(n=0;n<e.length;n++){var u=e[n];u.copy(o,i),i+=u.length}return o},t.byteLength=v,t.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?O(this,0,t):m.apply(this,arguments)},t.prototype.equals=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===t.compare(this,e)},t.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},t.prototype.compare=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:t.compare(this,e)},t.prototype.indexOf=function(e,r){function n(t,e,r){for(var n=-1,o=0;r+o<t.length;o++)if(t[r+o]===e[-1===n?0:o-n]){if(-1===n&&(n=o),o-n+1===e.length)return r+n}else n=-1;return-1}if(r>2147483647?r=2147483647:-2147483648>r&&(r=-2147483648),r>>=0,0===this.length)return-1;if(r>=this.length)return-1;if(0>r&&(r=Math.max(this.length+r,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,r);if(t.isBuffer(e))return n(this,e,r);if("number"==typeof e)return t.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,r):n(this,[e],r);throw new TypeError("val must be string, number or Buffer")},t.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},t.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},t.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e=0|e,isFinite(r)?(r=0|r,void 0===n&&(n="utf8")):(n=r,r=void 0);else{var o=n;n=e,e=0|r,r=o}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(0>r||0>e)||e>this.length)throw new RangeError("attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":return A(this,t,e,r);case"binary":return T(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;t.prototype.slice=function(e,r){var n=this.length;e=~~e,r=void 0===r?n:~~r,0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),0>r?(r+=n,0>r&&(r=0)):r>n&&(r=n),e>r&&(r=e);var o;if(t.TYPED_ARRAY_SUPPORT)o=t._augment(this.subarray(e,r));else{var i=r-e;o=new t(i,void 0);for(var u=0;i>u;u++)o[u]=this[u+e]}return o.length&&(o.parent=this.parent||this),o},t.prototype.readUIntLE=function(t,e,r){t=0|t,e=0|e,r||C(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},t.prototype.readUIntBE=function(t,e,r){t=0|t,e=0|e,r||C(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},t.prototype.readUInt8=function(t,e){return e||C(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){return e||C(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){return e||C(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){return e||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){return e||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,r){t=0|t,e=0|e,r||C(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},t.prototype.readIntBE=function(t,e,r){t=0|t,e=0|e,r||C(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},t.prototype.readInt8=function(t,e){return e||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},t.prototype.readInt16LE=function(t,e){e||C(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt16BE=function(t,e){e||C(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt32LE=function(t,e){return e||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){return e||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){return e||C(t,4,this.length),W.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){return e||C(t,4,this.length),W.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,e){return e||C(t,8,this.length),W.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,e){return e||C(t,8,this.length),W.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,e,r,n){t=+t,e=0|e,r=0|r,n||M(this,t,e,r,Math.pow(2,8*r),0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},t.prototype.writeUIntBE=function(t,e,r,n){t=+t,e=0|e,r=0|r,n||M(this,t,e,r,Math.pow(2,8*r),0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},t.prototype.writeUInt8=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,1,255,0),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=255&e,r+1},t.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):U(this,e,r,!0),r+2},t.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):U(this,e,r,!1),r+2},t.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=255&e):L(this,e,r,!0),r+4},t.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):L(this,e,r,!1),r+4},t.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e=0|e,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=0,u=1,a=0>t?1:0;for(this[e]=255&t;++i<r&&(u*=256);)this[e+i]=(t/u>>0)-a&255;return e+r},t.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e=0|e,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=r-1,u=1,a=0>t?1:0;for(this[e+i]=255&t;--i>=0&&(u*=256);)this[e+i]=(t/u>>0)-a&255;return e+r},t.prototype.writeInt8=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,1,127,-128),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[r]=255&e,r+1},t.prototype.writeInt16LE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):U(this,e,r,!0),r+2},t.prototype.writeInt16BE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):U(this,e,r,!1),r+2},t.prototype.writeInt32LE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):L(this,e,r,!0),r+4},t.prototype.writeInt32BE=function(e,r,n){return e=+e,r=0|r,n||M(this,e,r,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):L(this,e,r,!1),r+4},t.prototype.writeFloatLE=function(t,e,r){return k(this,t,e,!0,r)},t.prototype.writeFloatBE=function(t,e,r){return k(this,t,e,!1,r)},t.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},t.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},t.prototype.copy=function(e,r,n,o){if(n||(n=0),o||0===o||(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&n>o&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(0>r)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("sourceStart out of bounds");if(0>o)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);var i,u=o-n;if(this===e&&r>n&&o>r)for(i=u-1;i>=0;i--)e[i+r]=this[i+n];else if(1e3>u||!t.TYPED_ARRAY_SUPPORT)for(i=0;u>i;i++)e[i+r]=this[i+n];else e._set(this.subarray(n,n+u),r);return u},t.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),e>r)throw new RangeError("end < start");if(r!==e&&0!==this.length){if(0>e||e>=this.length)throw new RangeError("start out of bounds");if(0>r||r>this.length)throw new RangeError("end out of bounds");var n;if("number"==typeof t)for(n=e;r>n;n++)this[n]=t;else{var o=q(t.toString()),i=o.length;for(n=e;r>n;n++)this[n]=o[n%i]}return this}},t.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(t.TYPED_ARRAY_SUPPORT)return new t(this).buffer;for(var e=new Uint8Array(this.length),r=0,n=e.length;n>r;r+=1)e[r]=this[r];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var V=t.prototype;t._augment=function(e){return e.constructor=t,e._isBuffer=!0,e._set=e.set,e.get=V.get,e.set=V.set,e.write=V.write,e.toString=V.toString,e.toLocaleString=V.toString,e.toJSON=V.toJSON,e.equals=V.equals,e.compare=V.compare,e.indexOf=V.indexOf,e.copy=V.copy,e.slice=V.slice,e.readUIntLE=V.readUIntLE,e.readUIntBE=V.readUIntBE,e.readUInt8=V.readUInt8,e.readUInt16LE=V.readUInt16LE,e.readUInt16BE=V.readUInt16BE,e.readUInt32LE=V.readUInt32LE,e.readUInt32BE=V.readUInt32BE,e.readIntLE=V.readIntLE,e.readIntBE=V.readIntBE,e.readInt8=V.readInt8,e.readInt16LE=V.readInt16LE,e.readInt16BE=V.readInt16BE,e.readInt32LE=V.readInt32LE,e.readInt32BE=V.readInt32BE,e.readFloatLE=V.readFloatLE,e.readFloatBE=V.readFloatBE,e.readDoubleLE=V.readDoubleLE,e.readDoubleBE=V.readDoubleBE,e.writeUInt8=V.writeUInt8,e.writeUIntLE=V.writeUIntLE,e.writeUIntBE=V.writeUIntBE,e.writeUInt16LE=V.writeUInt16LE,e.writeUInt16BE=V.writeUInt16BE,e.writeUInt32LE=V.writeUInt32LE,e.writeUInt32BE=V.writeUInt32BE,e.writeIntLE=V.writeIntLE,e.writeIntBE=V.writeIntBE,e.writeInt8=V.writeInt8,e.writeInt16LE=V.writeInt16LE,e.writeInt16BE=V.writeInt16BE,e.writeInt32LE=V.writeInt32LE,e.writeInt32BE=V.writeInt32BE,e.writeFloatLE=V.writeFloatLE,e.writeFloatBE=V.writeFloatBE,e.writeDoubleLE=V.writeDoubleLE,e.writeDoubleBE=V.writeDoubleBE,e.fill=V.fill,e.inspect=V.inspect,e.toArrayBuffer=V.toArrayBuffer,e};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,r(6).Buffer,function(){return this}())},function(t,e,r){var n=r(16);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e){"use strict";var r=Function.prototype.toString,n=/^\s*class /,o=function(t){try{var e=r.call(t),o=e.replace(/\/\/.*\n/g,""),i=o.replace(/\/\*[.\s\S]*\*\//g,""),u=i.replace(/\n/gm," ").replace(/ {2}/g," ");return n.test(u)}catch(a){return!1}},i=function(t){try{return o(t)?!1:(r.call(t),!0)}catch(e){return!1}},u=Object.prototype.toString,a="[object Function]",s="[object GeneratorFunction]",c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(c)return i(t);if(o(t))return!1;var e=u.call(t);return e===a||e===s}},function(t,e){"use strict";var r=Object.prototype.toString,n="function"==typeof Symbol&&"symbol"==typeof Symbol();if(n){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/,u=function(t){return"symbol"!=typeof t.valueOf()?!1:i.test(o.call(t))};t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==r.call(t))return!1;try{return u(t)}catch(e){return!1}}}else t.exports=function(t){return!1}},function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Array.prototype.slice,u=r(29),a=!{toString:null}.propertyIsEnumerable("toString"),s=function(){}.propertyIsEnumerable("prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(t){var e=t.constructor;return e&&e.prototype===t},l={$console:!0,$frame:!0,$frameElement:!0,$frames:!0,$parent:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!l["$"+t]&&n.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{f(window[t])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(t){if("undefined"==typeof window||!h)return f(t);try{return f(t)}catch(e){return!1}},y=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),i=u(t),f=e&&"[object String]"===o.call(t),l=[];if(!e&&!r&&!i)throw new TypeError("Object.keys called on a non-object");var h=s&&r;if(f&&t.length>0&&!n.call(t,0))for(var y=0;y<t.length;++y)l.push(String(y));if(i&&t.length>0)for(var g=0;g<t.length;++g)l.push(String(g));else for(var d in t)h&&"prototype"===d||!n.call(t,d)||l.push(String(d));if(a)for(var b=p(t),v=0;v<c.length;++v)b&&"constructor"===c[v]||!n.call(t,c[v])||l.push(c[v]);return l};y.shim=function(){if(Object.keys){var t=function(){return 2===(Object.keys(arguments)||"").length}(1,2);if(!t){var e=Object.keys;Object.keys=function(t){return e(u(t)?i.call(t):t)}}}else Object.keys=y;return Object.keys||y},t.exports=y},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(-1===a.indexOf(t)){a.push(t);for(var e in t)t.hasOwnProperty(e)&&(u["default"].prototype[e]=t[e])}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(3),u=n(i),a=[];e["default"]=o},function(t,e,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function e(t){var e=t.charCodeAt(0);return e===u||e===l?62:e===a||e===h?63:s>e?-1:s+10>e?e-s+26+26:f+26>e?e-f:c+26>e?e-c+26:void 0}function r(t){function r(t){c[l++]=t}var n,o,u,a,s,c;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=t.length;s="="===t.charAt(f-2)?2:"="===t.charAt(f-1)?1:0,c=new i(3*t.length/4-s),u=s>0?t.length-4:t.length;var l=0;for(n=0,o=0;u>n;n+=4,o+=3)a=e(t.charAt(n))<<18|e(t.charAt(n+1))<<12|e(t.charAt(n+2))<<6|e(t.charAt(n+3)),r((16711680&a)>>16),r((65280&a)>>8),r(255&a);return 2===s?(a=e(t.charAt(n))<<2|e(t.charAt(n+1))>>4,r(255&a)):1===s&&(a=e(t.charAt(n))<<10|e(t.charAt(n+1))<<4|e(t.charAt(n+2))>>2,r(a>>8&255),r(255&a)),c}function o(t){function e(t){return n.charAt(t)}function r(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var o,i,u,a=t.length%3,s="";for(o=0,u=t.length-a;u>o;o+=3)i=(t[o]<<16)+(t[o+1]<<8)+t[o+2],s+=r(i);switch(a){case 1:i=t[t.length-1],s+=e(i>>2),s+=e(i<<4&63),s+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],s+=e(i>>10),s+=e(i>>4&63),s+=e(i<<2&63),s+="="}return s}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,u="+".charCodeAt(0),a="/".charCodeAt(0),s="0".charCodeAt(0),c="a".charCodeAt(0),f="A".charCodeAt(0),l="-".charCodeAt(0),h="_".charCodeAt(0);t.toByteArray=r,t.fromByteArray=o}(e)},function(t,e,r){"use strict";var n=r(10),o=r(14),i="function"==typeof Symbol&&"symbol"==typeof Symbol(),u=Object.prototype.toString,a=function(t){return"function"==typeof t&&"[object Function]"===u.call(t)},s=function(){var t={};try{Object.defineProperty(t,"x",{enumerable:!1,value:t});for(var e in t)return!1;return t.x===t}catch(r){return!1}},c=Object.defineProperty&&s(),f=function(t,e,r,n){(!(e in t)||a(n)&&n())&&(c?Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},l=function(t,e){var r=arguments.length>2?arguments[2]:{},u=n(e);i&&(u=u.concat(Object.getOwnPropertySymbols(e))),o(u,function(n){f(t,n,e[n],r[n])})};l.supportsDescriptors=!!c,t.exports=l},function(t,e){var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString;t.exports=function(t,e,o){if("[object Function]"!==n.call(e))throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var u=0;i>u;u++)e.call(o,t[u],u,t);else for(var a in t)r.call(t,a)&&e.call(o,t[a],a,t)}},function(t,e){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,o=Object.prototype.toString,i="[object Function]";t.exports=function(t){var e=this;if("function"!=typeof e||o.call(e)!==i)throw new TypeError(r+e);for(var u,a=n.call(arguments,1),s=function(){if(this instanceof u){var r=e.apply(this,a.concat(n.call(arguments)));return Object(r)===r?r:this}return e.apply(t,a.concat(n.call(arguments)))},c=Math.max(0,e.length-a.length),f=[],l=0;c>l;l++)f.push("$"+l);if(u=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this,arguments); }")(s),e.prototype){var h=function(){};h.prototype=e.prototype,u.prototype=new h,h.prototype=null}return u}},function(t,e,r){var n=r(15);t.exports=Function.prototype.bind||n},function(t,e){e.read=function(t,e,r,n,o){var i,u,a=8*o-n-1,s=(1<<a)-1,c=s>>1,f=-7,l=r?o-1:0,h=r?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-f)-1,p>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=h,f-=8);for(u=i&(1<<-f)-1,i>>=-f,f+=n;f>0;u=256*u+t[e+l],l+=h,f-=8);if(0===i)i=1-c;else{if(i===s)return u?NaN:(p?-1:1)*(1/0);u+=Math.pow(2,n),i-=c}return(p?-1:1)*u*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var u,a,s,c=8*i-o-1,f=(1<<c)-1,l=f>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,y=n?1:-1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,u=f):(u=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-u))<1&&(u--,s*=2),e+=u+l>=1?h/s:h*Math.pow(2,1-l),e*s>=2&&(u++,s/=2),u+l>=f?(a=0,u=f):u+l>=1?(a=(e*s-1)*Math.pow(2,o),u+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),u=0));o>=8;t[r+p]=255&a,p+=y,a/=256,o-=8);for(u=u<<o|a,c+=o;c>0;t[r+p]=255&u,p+=y,u/=256,c-=8);t[r+p-y]|=128*g}},function(t,e,r){"use strict";var n=r(8),o=Function.prototype.toString,i=/^\s*function/,u=/^\([^\)]*\) *=>/,a=/^[^=]*=>/;t.exports=function(t){if(!n(t))return!1;var e=o.call(t);return e.length>0&&!i.test(e)&&(u.test(e)||a.test(e))}},function(t,e){"use strict";var r=Boolean.prototype.toString,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object Boolean]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"boolean"==typeof t?!0:"object"!=typeof t?!1:u?n(t):o.call(t)===i}},function(t,e){"use strict";var r=Date.prototype.getDay,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object Date]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"!=typeof t||null===t?!1:u?n(t):o.call(t)===i}},function(t,e){"use strict";t.exports=function(){var t=function(){if("function"!=typeof Map)return null;try{Map.prototype.forEach.call({},function(){})}catch(t){return Map.prototype.forEach}return null}(),e=function(){if("function"!=typeof Set)return null;try{Set.prototype.forEach.call({},function(){})}catch(t){return Set.prototype.forEach}return null}();return{Map:t,Set:e}}},function(t,e,r){"use strict";var n=r(9);t.exports=function(){var t="function"==typeof Symbol&&n(Symbol.iterator)?Symbol.iterator:null;return"function"==typeof Object.getOwnPropertyNames&&"function"==typeof Map&&"function"==typeof Map.prototype.entries&&Object.getOwnPropertyNames(Map.prototype).forEach(function(e){"entries"!==e&&"size"!==e&&Map.prototype[e]===Map.prototype.entries&&(t=e)}),t}},function(t,e,r){"use strict";var n=Object.prototype,o=n.toString,i=Boolean.prototype.valueOf,u=r(7),a=r(18),s=r(19),c=r(20),f=r(24),l=r(25),h=r(2),p=r(26),y=r(9),g=r(8),d=Object.prototype.isPrototypeOf,b=function(){},v="foo"===b.name,m="function"==typeof Symbol?Symbol.prototype.valueOf:null,w=r(22)(),E=r(21)(),A=Object.getPrototypeOf;A||(A="object"==typeof"test".__proto__?function(t){return t.__proto__}:function(t){var e,r=t.constructor;if(u(t,"constructor")){if(e=r,!delete t.constructor)return null;r=t.constructor,t.constructor=e}return r?r.prototype:n});var T=Array.isArray||function(t){return"[object Array]"===o.call(t)},S=function(t){return t.replace(/^function ?\(/,"function (").replace("){",") {")},x=function(t){var e=[];try{E.Map.call(t,function(t,r){e.push([t,r])})}catch(r){try{E.Set.call(t,function(t){e.push([t])})}catch(n){return!1}}return e};t.exports=function j(t,e){if(t===e)return"";if(null==t||null==e)return t===e?"":String(t)+" !== "+String(e);var r=o.call(t),n=o.call(t);if(r!==n)return"toStringTag is not the same: "+r+" !== "+n;var b=s(t),O=s(e);if(b||O){if(!b)return"first argument is not a boolean; second argument is";if(!O)return"second argument is not a boolean; first argument is";var B=i.call(t),I=i.call(e);return B===I?"":"primitive value of boolean arguments do not match: "+B+" !== "+I}var _=l(t),P=l(t);if(_||P){if(!_)return"first argument is not a number; second argument is";if(!P)return"second argument is not a number; first argument is";var R=Number(t),C=Number(e);if(R===C)return"";var M=isNaN(t),U=isNaN(e);return M&&!U?"first argument is NaN; second is not":!M&&U?"second argument is NaN; first is not":M&&U?"":"numbers are different: "+t+" !== "+e}var L=p(t),N=p(e);if(L||N){if(!L)return"second argument is string; first is not";if(!N)return"first argument is string; second is not";var k=String(t),D=String(e);return k===D?"":'string values are different: "'+k+'" !== "'+D+'"'}var F=c(t),Y=c(e);if(F||Y){if(!F)return"second argument is Date, first is not";if(!Y)return"first argument is Date, second is not";var H=+t,q=+e;return H===q?"":"Dates have different time values: "+H+" !== "+q}var K=h(t),$=h(e);if(K||$){if(!K)return"second argument is RegExp, first is not";if(!$)return"first argument is RegExp, second is not";var G=String(t),z=String(e);return G===z?"":"regular expressions differ: "+G+" !== "+z}var J=T(t),W=T(e);if(J||W){if(!J)return"second argument is an Array, first is not";if(!W)return"first argument is an Array, second is not";if(t.length!==e.length)return"arrays have different length: "+t.length+" !== "+e.length;if(String(t)!==String(e))return"stringified Arrays differ";for(var X,Z,Q=t.length-1,V="";""===V&&Q>=0;){if(X=u(t,Q),Z=u(e,Q),!X&&Z)return"second argument has index "+Q+"; first does not";if(X&&!Z)return"first argument has index "+Q+"; second does not";V=j(t[Q],e[Q]),Q-=1}return V}var tt=y(t),et=y(e);if(tt!==et)return tt?"first argument is Symbol; second is not":"second argument is Symbol; first is not";if(tt&&et)return m.call(t)===m.call(e)?"":"first Symbol value !== second Symbol value";var rt=f(t),nt=f(e);if(rt!==nt)return rt?"first argument is a Generator; second is not":"second argument is a Generator; first is not";var ot=a(t),it=a(e);if(ot!==it)return ot?"first argument is an Arrow function; second is not":"second argument is an Arrow function; first is not";if(g(t)||g(e)){if(v&&""!==j(t.name,e.name))return'Function names differ: "'+t.name+'" !== "'+e.name+'"';if(""!==j(t.length,e.length))return"Function lengths differ: "+t.length+" !== "+e.length;var ut=S(String(t)),at=S(String(e));return""===j(ut,at)?"":rt||ot?""===j(ut,at)?"":"Function string representations differ":""===j(ut.replace(/\)\s*\{/,"){"),at.replace(/\)\s*\{/,"){"))?"":"Function string representations differ"}if("object"==typeof t||"object"==typeof e){if(typeof t!=typeof e)return"arguments have a different typeof: "+typeof t+" !== "+typeof e;if(d.call(t,e))return"first argument is the [[Prototype]] of the second";if(d.call(e,t))return"second argument is the [[Prototype]] of the first";if(A(t)!==A(e))return"arguments have a different [[Prototype]]";if(w){var st=t[w],ct=g(st),ft=e[w],lt=g(ft);if(ct!==lt)return ct?"first argument is iterable; second is not":"second argument is iterable; first is not";if(ct&&lt){var ht,pt,yt,gt=st.call(t),dt=ft.call(e);do if(ht=gt.next(),pt=dt.next(),!ht.done&&!pt.done&&(yt=j(ht,pt),""!==yt))return"iteration results are not equal: "+yt;while(!ht.done&&!pt.done);return ht.done&&!pt.done?"first argument finished iterating before second":!ht.done&&pt.done?"second argument finished iterating before first":""}}else if(E.Map||E.Set){var bt=x(t),vt=x(e),mt=T(bt),wt=T(vt);if(mt&&!wt)return"first argument has Collection entries, second does not";
if(!mt&&wt)return"second argument has Collection entries, first does not";if(mt&&wt){var Et=j(bt,vt);return""===Et?"":"Collection entries differ: "+Et}}var At,Tt,St,xt;for(At in t)if(u(t,At)){if(!u(e,At))return'first argument has key "'+At+'"; second does not';if(Tt=t[At]&&t[At][At]===t,St=e[At]&&e[At][At]===e,Tt!==St)return Tt?'first argument has a circular reference at key "'+At+'"; second does not':'second argument has a circular reference at key "'+At+'"; first does not';if(!Tt&&!St&&(xt=j(t[At],e[At]),""!==xt))return'value at key "'+At+'" differs: '+xt}for(At in e)if(u(e,At)&&!u(t,At))return'second argument has key "'+At+'"; first does not';return""}return!1}},function(t,e){"use strict";var r=Object.prototype.toString,n=Function.prototype.toString,o=/^\s*function\*/;t.exports=function(t){if("function"!=typeof t)return!1;var e=r.call(t);return("[object Function]"===e||"[object GeneratorFunction]"===e)&&o.test(n.call(t))}},function(t,e){"use strict";var r=Number.prototype.toString,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object Number]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"number"==typeof t?!0:"object"!=typeof t?!1:u?n(t):o.call(t)===i}},function(t,e){"use strict";var r=String.prototype.valueOf,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,i="[object String]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t?!0:"object"!=typeof t?!1:u?n(t):o.call(t)===i}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e){function r(t){return String(t).replace(/"/g,"&quot;")}function n(t){return"[object Array]"===h(t)}function o(t){return"[object Date]"===h(t)}function i(t){return"[object RegExp]"===h(t)}function u(t){return"[object Error]"===h(t)}function a(t){return"[object Symbol]"===h(t)}function s(t){return"[object String]"===h(t)}function c(t){return"[object Number]"===h(t)}function f(t){return"[object Boolean]"===h(t)}function l(t,e){return B.call(t,e)}function h(t){return Object.prototype.toString.call(t)}function p(t){if(t.name)return t.name;var e=t.toString().match(/^function\s*([\w$]+)/);return e?e[1]:void 0}function y(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;n>r;r++)if(t[r]===e)return r;return-1}function g(t){if(!E)return!1;try{return E.call(t),!0}catch(e){}return!1}function d(t){if(!x)return!1;try{return x.call(t),!0}catch(e){}return!1}function b(t){return t&&"object"==typeof t?"undefined"!=typeof HTMLElement&&t instanceof HTMLElement?!0:"string"==typeof t.nodeName&&"function"==typeof t.getAttribute:!1}function v(t){function e(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(16>e?"0":"")+e.toString(16)}var r=t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,e);return"'"+r+"'"}var m="function"==typeof Map&&Map.prototype,w=Object.getOwnPropertyDescriptor&&m?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,E=m&&w&&"function"==typeof w.get?w.get:null,A=m&&Map.prototype.forEach,T="function"==typeof Set&&Set.prototype,S=Object.getOwnPropertyDescriptor&&T?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,x=T&&S&&"function"==typeof S.get?S.get:null,j=T&&Set.prototype.forEach,O=Boolean.prototype.valueOf;t.exports=function I(t,e,h,m){function w(t,r){return r&&(m=m.slice(),m.push(r)),I(t,e,h+1,m)}e||(e={});var T=void 0===e.depth?5:e.depth;if(void 0===h&&(h=0),h>=T&&T>0&&t&&"object"==typeof t)return"[Object]";if(void 0===m)m=[];else if(y(m,t)>=0)return"[Circular]";if("string"==typeof t)return v(t);if("function"==typeof t){var S=p(t);return"[Function"+(S?": "+S:"")+"]"}if(null===t)return"null";if(a(t)){var B=Symbol.prototype.toString.call(t);return"object"==typeof t?"Object("+B+")":B}if(b(t)){for(var _="<"+String(t.nodeName).toLowerCase(),P=t.attributes||[],R=0;R<P.length;R++)_+=" "+P[R].name+'="'+r(P[R].value)+'"';return _+=">",t.childNodes&&t.childNodes.length&&(_+="..."),_+="</"+String(t.nodeName).toLowerCase()+">"}if(n(t)){if(0===t.length)return"[]";for(var C=Array(t.length),R=0;R<t.length;R++)C[R]=l(t,R)?w(t[R],t):"";return"[ "+C.join(", ")+" ]"}if(u(t)){var M=[];for(var U in t)l(t,U)&&(/[^\w$]/.test(U)?M.push(w(U)+": "+w(t[U])):M.push(U+": "+w(t[U])));return 0===M.length?"["+t+"]":"{ ["+t+"] "+M.join(", ")+" }"}if("object"==typeof t&&"function"==typeof t.inspect)return t.inspect();if(g(t)){var M=[];return A.call(t,function(e,r){M.push(w(r,t)+" => "+w(e,t))}),"Map ("+E.call(t)+") {"+M.join(", ")+"}"}if(d(t)){var M=[];return j.call(t,function(e){M.push(w(e,t))}),"Set ("+x.call(t)+") {"+M.join(", ")+"}"}if("object"!=typeof t)return String(t);if(c(t))return"Object("+Number(t)+")";if(f(t))return"Object("+O.call(t)+")";if(s(t))return"Object("+w(String(t))+")";if(o(t)||i(t))return String(t);var C=[],L=[];for(var U in t)l(t,U)&&L.push(U);L.sort();for(var R=0;R<L.length;R++){var U=L[R];/[^\w$]/.test(U)?C.push(w(U)+": "+w(t[U],t)):C.push(U+": "+w(t[U],t))}return 0===C.length?"{}":"{ "+C.join(", ")+" }"};var B=Object.prototype.hasOwnProperty||function(t){return t in this}},function(t,e){"use strict";var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===r.call(t.callee)),n}},function(t,e){function r(){c=!1,u.length?s=u.concat(s):f=-1,s.length&&n()}function n(){if(!c){var t=setTimeout(r);c=!0;for(var e=s.length;e;){for(u=s,s=[];++f<e;)u&&u[f].run();f=-1,e=s.length}u=null,c=!1,clearTimeout(t)}}function o(t,e){this.fun=t,this.array=e}function i(){}var u,a=t.exports={},s=[],c=!1,f=-1;a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];s.push(new o(t,e)),1!==s.length||c||setTimeout(n,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=i,a.addListener=i,a.once=i,a.off=i,a.removeListener=i,a.removeAllListeners=i,a.emit=i,a.binding=function(t){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(t){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(t,e,r){(function(e,r){"use strict";function n(t){return"[object Arguments]"===Object.prototype.toString.call(t)}function o(t,e){return i(t,e,[],[])}function i(t,e,o,a){if(u("TMATCH",typeof t,e),t==e)return u("TMATCH same object or simple value, or problem"),null===t||null===e?!0:"object"==typeof t&&"object"==typeof e?!0:"object"==typeof t&&"object"!=typeof e?!1:"object"==typeof t||"object"!=typeof e;if(null===t||null===e)return u("TMATCH null test, already failed =="),!1;if("string"==typeof t&&e instanceof RegExp)return u("TMATCH string~=regexp test"),e.test(t);if("string"==typeof t&&"string"==typeof e&&e)return u("TMATCH string~=string test"),-1!==t.indexOf(e);if(t instanceof Date&&e instanceof Date)return u("TMATCH date test"),t.getTime()===e.getTime();if(t instanceof Date&&"string"==typeof e)return u("TMATCH date~=string test"),t.getTime()===new Date(e).getTime();if(n(t)||n(e)){u("TMATCH arguments test");var s=Array.prototype.slice;return i(s.call(t),s.call(e),o,a)}if(e===r)return u("TMATCH Buffer ctor"),r.isBuffer(t);if(e===Function)return u("TMATCH Function ctor"),"function"==typeof t;if(e===Number)return u("TMATCH Number ctor (finite, not NaN)"),"number"==typeof t&&t===t&&isFinite(t);if(e!==e)return u("TMATCH NaN"),t!==t;if(e===String)return u("TMATCH String ctor"),"string"==typeof t;if(e===Boolean)return u("TMATCH Boolean ctor"),"boolean"==typeof t;if(e===Array)return u("TMATCH Array ctor",e,Array.isArray(t)),Array.isArray(t);if("function"==typeof e&&"object"==typeof t)return u("TMATCH object~=function"),t instanceof e;if("object"!=typeof t||"object"!=typeof e)return u("TMATCH obj is not object, pattern is not object, false"),!1;if(t instanceof RegExp&&e instanceof RegExp)return u("TMATCH regexp~=regexp test"),t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(r.isBuffer(t)&&r.isBuffer(e)){if(u("TMATCH buffer test"),t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var c=0;c<t.length;c++)if(t[c]!=e[c])return!1;return!0}u("TMATCH object~=object test");var f=Object.keys(t),l=Object.keys(e);if(u(" TMATCH patternkeys=%j objkeys=%j",l,f),0===f.length&&0===l.length)return!0;u(" TMATCH check seen objects...");for(var h=o.length;h--;)if(o[h]===t&&a[h]===e)return!0;o.push(t),a.push(e),u(" TMATCH not seen previously");for(var p,y=l.length-1;y>=0;y--)if(p=l[y],u(" TMATCH test obj[%j]",p,t[p],e[p]),!i(t[p],e[p],o,a))return!1;return o.pop(),a.pop(),u(" TMATCH object pass"),!0}t.exports=o;var u=/\btmatch\b/.test(e.env.NODE_DEBUG||"")?console.error:function(){}}).call(e,r(30),r(6).Buffer)}])});

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc