omniauth-blockstack 0.9.3 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b53f63eac881f8eea0f8a5250dbb3caa1d33b4f
4
- data.tar.gz: c1d6af106b965f1154ae4ae1cf90c91c1cab68ac
3
+ metadata.gz: a014948ac43c893c45dfc27a010dfd04733f9e28
4
+ data.tar.gz: 732012aed6663b15bee91717ca7c8514349b5ffc
5
5
  SHA512:
6
- metadata.gz: 92197b0c6a3ebc11ad209842ee011d8ac38f12411ab14cb2663b8392cf504e16ed521be74bdffef7b8465f86cc493714c590895e1b15ff0b80f98ed495fbb73d
7
- data.tar.gz: da3524fe7f1b190d45d76c8d42bccddb28aeb4123547a3f75732b6e10d7377a35228f696719641da8b15675717b046f4952d10eb1ca7fc6bc7ef0bd03cda4210
6
+ metadata.gz: 2aada73e21168e9a55b35620e1f6b2051afd7503441e9e022c33d3eddc6cf6dc9a4758e9891c36a9579f18e49378ca776c193809e097c2093908eba6081ec277
7
+ data.tar.gz: 5bf775ddc1bbf2dd1c6f888f0286f7b16fdbed86002cae110b4f020fef0026068e3b25bb6ea724e8fbeda04f3aea26e4f7fd565f12d3d7b05ea4610763bea4bd
data/Gemfile.lock CHANGED
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-blockstack (0.9.3)
5
- blockstack (= 0.5.7)
4
+ omniauth-blockstack (0.10.0)
5
+ blockstack (= 0.5.8)
6
6
  omniauth (~> 1.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  bitcoin-ruby (0.0.10)
12
- blockstack (0.5.7)
12
+ blockstack (0.5.8)
13
13
  bitcoin-ruby
14
14
  faraday
15
15
  jwt-blockstack (= 2.0.0.beta2)
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Blockstack
3
- VERSION = "0.9.3"
3
+ VERSION = "0.10.0"
4
4
  end
5
5
  end
@@ -1,2 +1,3 @@
1
- var authRequest = blockstack.makeAuthRequest(signingKey, appManifest)
1
+ var signingKey = null
2
+ var authRequest = blockstack.makeAuthRequest(signingKey, domainName, manifestURI, redirectURI)
2
3
  blockstack.redirectUserToSignIn(authRequest)
@@ -11,6 +11,9 @@ exports.isSignInPending = isSignInPending;
11
11
  exports.signUserIn = signUserIn;
12
12
  exports.loadUserData = loadUserData;
13
13
  exports.signUserOut = signUserOut;
14
+ exports.getAuthRequestFromURL = getAuthRequestFromURL;
15
+ exports.fetchAppManifest = fetchAppManifest;
16
+ exports.redirectUserToApp = redirectUserToApp;
14
17
 
15
18
  var _queryString = require('query-string');
16
19
 
@@ -20,12 +23,18 @@ var _jsontokens = require('jsontokens');
20
23
 
21
24
  var _authMessages = require('./authMessages');
22
25
 
26
+ var _index = require('../index');
27
+
23
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
29
 
25
30
  var BLOCKSTACK_HANDLER = "blockstack";
26
31
  var BLOCKSTACK_STORAGE_LABEL = "blockstack";
27
32
  var DEFAULT_BLOCKSTACK_HOST = "https://blockstack.org/auth";
28
33
 
34
+ /**
35
+ * For applications
36
+ */
37
+
29
38
  function isUserSignedIn() {
30
39
  return window.localStorage.getItem(BLOCKSTACK_STORAGE_LABEL) ? true : false;
31
40
  }
@@ -42,7 +51,7 @@ function redirectUserToSignIn(authRequest) {
42
51
 
43
52
  function getAuthResponseToken() {
44
53
  var queryDict = _queryString2.default.parse(location.search);
45
- return queryDict.authResponse;
54
+ return queryDict.authResponse ? queryDict.authResponse : null;
46
55
  }
47
56
 
48
57
  function isSignInPending() {
@@ -67,7 +76,7 @@ function signUserIn(callbackFunction) {
67
76
  }
68
77
 
69
78
  function loadUserData(callbackFunction) {
70
- var userData = JSON.parse(localStorage.getItem(BLOCKSTACK_STORAGE_LABEL));
79
+ var userData = JSON.parse(window.localStorage.getItem(BLOCKSTACK_STORAGE_LABEL));
71
80
  callbackFunction(userData);
72
81
  }
73
82
 
@@ -75,7 +84,58 @@ function signUserOut(redirectURL) {
75
84
  window.localStorage.removeItem(BLOCKSTACK_STORAGE_LABEL);
76
85
  window.location = redirectURL;
77
86
  }
78
- },{"./authMessages":2,"jsontokens":165,"query-string":220}],2:[function(require,module,exports){
87
+
88
+ /**
89
+ * For identity providers
90
+ */
91
+
92
+ function getAuthRequestFromURL() {
93
+ var queryDict = _queryString2.default.parse(location.search);
94
+ if (queryDict.authRequest !== null) {
95
+ return queryDict.authRequest.split(BLOCKSTACK_HANDLER + ':').join('');
96
+ } else {
97
+ return null;
98
+ }
99
+ }
100
+
101
+ function fetchAppManifest(authRequest) {
102
+ return new Promise(function (resolve, reject) {
103
+ if (!authRequest) {
104
+ reject("Invalid auth request");
105
+ } else {
106
+ var payload = (0, _jsontokens.decodeToken)(authRequest).payload;
107
+ var manifestURI = payload.manifest_uri;
108
+ console.log(manifestURI);
109
+ try {
110
+ fetch(manifestURI).then(function (response) {
111
+ return response.text();
112
+ }).then(function (responseText) {
113
+ return JSON.parse(responseText);
114
+ }).then(function (responseJSON) {
115
+ resolve(responseJSON);
116
+ }).catch(function (e) {
117
+ console.log(e.stack);
118
+ reject("URI request couldn't be completed");
119
+ });
120
+ } catch (e) {
121
+ console.log(e.stack);
122
+ reject("URI request couldn't be completed");
123
+ }
124
+ }
125
+ });
126
+ }
127
+
128
+ function redirectUserToApp(authRequest, authResponse) {
129
+ var payload = (0, _jsontokens.decodeToken)(authRequest).payload;
130
+ var redirectURI = payload.redirect_uri;
131
+ if (redirectURI) {
132
+ redirectURI = (0, _index.updateQueryStringParameter)(redirectURI, 'authResponse', authResponse);
133
+ } else {
134
+ throw new Error("Invalid redirect URI");
135
+ }
136
+ window.location = redirectURI;
137
+ }
138
+ },{"../index":5,"./authMessages":2,"jsontokens":164,"query-string":219}],2:[function(require,module,exports){
79
139
  'use strict';
80
140
 
81
141
  Object.defineProperty(exports, "__esModule", {
@@ -95,23 +155,36 @@ var _jsontokens = require('jsontokens');
95
155
 
96
156
  var _index = require('../index');
97
157
 
98
- require('es6-promise').polyfill();
99
158
  require('isomorphic-fetch');
100
159
 
101
- function makeAuthRequest(privateKey, appManifest) {
102
- var scopes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
103
- var expiresAt = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (0, _index.nextHour)();
160
+ function makeAuthRequest(privateKey, domain_name) {
161
+ var manifestURI = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
162
+ var redirectURI = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
163
+ var scopes = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];
164
+ var expiresAt = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : (0, _index.nextHour)().getTime();
104
165
 
105
166
  var token = null;
106
167
 
168
+ if (domain_name === null) {
169
+ throw new Error("Invalid app domain name");
170
+ }
171
+ if (manifestURI === null) {
172
+ manifestURI = domain_name + '/manifest.json';
173
+ }
174
+ if (redirectURI === null) {
175
+ redirectURI = domain_name;
176
+ }
177
+
107
178
  /* Create the payload */
108
179
  var payload = {
109
180
  jti: (0, _index.makeUUID4)(),
110
181
  iat: Math.floor(new Date().getTime() / 1000), // JWT times are in seconds
111
- exp: Math.floor(expiresAt.getTime() / 1000), // JWT times are in seconds
182
+ exp: Math.floor(expiresAt / 1000), // JWT times are in seconds
112
183
  iss: null,
113
- publicKeys: [],
114
- appManifest: appManifest,
184
+ public_keys: [],
185
+ domain_name: domain_name,
186
+ manifest_uri: manifestURI,
187
+ redirect_uri: redirectURI,
115
188
  scopes: scopes
116
189
  };
117
190
 
@@ -121,7 +194,7 @@ function makeAuthRequest(privateKey, appManifest) {
121
194
  } else {
122
195
  /* Convert the private key to a public key to an issuer */
123
196
  var publicKey = _jsontokens.SECP256K1Client.derivePublicKey(privateKey);
124
- payload.publicKeys = [publicKey];
197
+ payload.public_keys = [publicKey];
125
198
  var address = (0, _index.publicKeyToAddress)(publicKey);
126
199
  payload.iss = (0, _index.makeDIDFromAddress)(address);
127
200
  /* Sign and return the token */
@@ -135,7 +208,7 @@ function makeAuthRequest(privateKey, appManifest) {
135
208
  function makeAuthResponse(privateKey) {
136
209
  var profile = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
137
210
  var username = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
138
- var expiresAt = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (0, _index.nextMonth)();
211
+ var expiresAt = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (0, _index.nextMonth)().getTime();
139
212
 
140
213
  /* Convert the private key to a public key to an issuer */
141
214
  var publicKey = _jsontokens.SECP256K1Client.derivePublicKey(privateKey);
@@ -144,9 +217,9 @@ function makeAuthResponse(privateKey) {
144
217
  var payload = {
145
218
  jti: (0, _index.makeUUID4)(),
146
219
  iat: Math.floor(new Date().getTime() / 1000), // JWT times are in seconds
147
- exp: Math.floor(expiresAt.getTime() / 1000), // JWT times are in seconds
220
+ exp: Math.floor(expiresAt / 1000), // JWT times are in seconds
148
221
  iss: (0, _index.makeDIDFromAddress)(address),
149
- publicKeys: [publicKey],
222
+ public_keys: [publicKey],
150
223
  profile: profile,
151
224
  username: username
152
225
  };
@@ -157,8 +230,7 @@ function makeAuthResponse(privateKey) {
157
230
 
158
231
  function doSignaturesMatchPublicKeys(token) {
159
232
  var payload = (0, _jsontokens.decodeToken)(token).payload;
160
- var publicKeys = payload.publicKeys;
161
-
233
+ var publicKeys = payload.public_keys;
162
234
  if (publicKeys.length === 1) {
163
235
  var publicKey = publicKeys[0];
164
236
  try {
@@ -179,7 +251,7 @@ function doSignaturesMatchPublicKeys(token) {
179
251
 
180
252
  function doPublicKeysMatchIssuer(token) {
181
253
  var payload = (0, _jsontokens.decodeToken)(token).payload;
182
- var publicKeys = payload.publicKeys;
254
+ var publicKeys = payload.public_keys;
183
255
  var addressFromIssuer = (0, _index.getAddressFromDID)(payload.iss);
184
256
 
185
257
  if (publicKeys.length === 1) {
@@ -303,7 +375,7 @@ function verifyAuthResponse(token, nameLookupURL) {
303
375
  });
304
376
  });
305
377
  }
306
- },{"../index":5,"es6-promise":144,"isomorphic-fetch":159,"jsontokens":165}],3:[function(require,module,exports){
378
+ },{"../index":5,"isomorphic-fetch":158,"jsontokens":164}],3:[function(require,module,exports){
307
379
  'use strict';
308
380
 
309
381
  Object.defineProperty(exports, "__esModule", {
@@ -506,6 +578,12 @@ Object.defineProperty(exports, 'hasprop', {
506
578
  return _utils.hasprop;
507
579
  }
508
580
  });
581
+ Object.defineProperty(exports, 'updateQueryStringParameter', {
582
+ enumerable: true,
583
+ get: function get() {
584
+ return _utils.updateQueryStringParameter;
585
+ }
586
+ });
509
587
  },{"./auth":3,"./dids":4,"./keys":6,"./profiles":7,"./utils":25}],6:[function(require,module,exports){
510
588
  (function (Buffer){
511
589
  'use strict';
@@ -730,7 +808,7 @@ var Profile = exports.Profile = function () {
730
808
 
731
809
  return Profile;
732
810
  }();
733
- },{"./profileProofs":9,"./profileTokens":17,"./profileZoneFiles":18,"schema-inspector":234}],9:[function(require,module,exports){
811
+ },{"./profileProofs":9,"./profileTokens":17,"./profileZoneFiles":18,"schema-inspector":233}],9:[function(require,module,exports){
734
812
  'use strict';
735
813
 
736
814
  Object.defineProperty(exports, "__esModule", {
@@ -867,7 +945,7 @@ var CreativeWork = exports.CreativeWork = function (_Profile) {
867
945
 
868
946
  return CreativeWork;
869
947
  }(_profile.Profile);
870
- },{"../profile":8,"../profileTokens":17,"schema-inspector":234}],11:[function(require,module,exports){
948
+ },{"../profile":8,"../profileTokens":17,"schema-inspector":233}],11:[function(require,module,exports){
871
949
  'use strict';
872
950
 
873
951
  Object.defineProperty(exports, "__esModule", {
@@ -989,7 +1067,7 @@ var Organization = exports.Organization = function (_Profile) {
989
1067
 
990
1068
  return Organization;
991
1069
  }(_profile.Profile);
992
- },{"../profile":8,"../profileTokens":17,"schema-inspector":234}],13:[function(require,module,exports){
1070
+ },{"../profile":8,"../profileTokens":17,"schema-inspector":233}],13:[function(require,module,exports){
993
1071
  'use strict';
994
1072
 
995
1073
  Object.defineProperty(exports, "__esModule", {
@@ -1204,7 +1282,7 @@ var Person = exports.Person = function (_Profile) {
1204
1282
 
1205
1283
  return Person;
1206
1284
  }(_profile.Profile);
1207
- },{"../profile":8,"../profileTokens":17,"./personLegacy":14,"./personUtils":15,"schema-inspector":234}],14:[function(require,module,exports){
1285
+ },{"../profile":8,"../profileTokens":17,"./personLegacy":14,"./personUtils":15,"schema-inspector":233}],14:[function(require,module,exports){
1208
1286
  'use strict';
1209
1287
 
1210
1288
  Object.defineProperty(exports, "__esModule", {
@@ -1583,7 +1661,7 @@ function resolveZoneFileToPerson(zoneFile, publicKeyOrAddress, callback) {
1583
1661
  return;
1584
1662
  }
1585
1663
  }
1586
- },{"../profileTokens":17,"../profileZoneFiles":18,"./person":13,"zone-file":322}],17:[function(require,module,exports){
1664
+ },{"../profileTokens":17,"../profileZoneFiles":18,"./person":13,"zone-file":321}],17:[function(require,module,exports){
1587
1665
  (function (Buffer){
1588
1666
  'use strict';
1589
1667
 
@@ -1758,7 +1836,7 @@ function extractProfile(token) {
1758
1836
  return profile;
1759
1837
  }
1760
1838
  }).call(this,require("buffer").Buffer)
1761
- },{"../utils":25,"bitcoinjs-lib":61,"buffer":104,"ecurve":125,"jsontokens":165}],18:[function(require,module,exports){
1839
+ },{"../utils":25,"bitcoinjs-lib":61,"buffer":104,"ecurve":125,"jsontokens":164}],18:[function(require,module,exports){
1762
1840
  'use strict';
1763
1841
 
1764
1842
  Object.defineProperty(exports, "__esModule", {
@@ -1826,7 +1904,7 @@ function getTokenFileUrl(zoneFileJson) {
1826
1904
 
1827
1905
  return tokenFileUrl;
1828
1906
  }
1829
- },{"./profileTokens":17,"zone-file":322}],19:[function(require,module,exports){
1907
+ },{"./profileTokens":17,"zone-file":321}],19:[function(require,module,exports){
1830
1908
  'use strict';
1831
1909
 
1832
1910
  Object.defineProperty(exports, "__esModule", {
@@ -2026,7 +2104,7 @@ var Service = exports.Service = function () {
2026
2104
 
2027
2105
  return Service;
2028
2106
  }();
2029
- },{"./serviceUtils":23,"isomorphic-fetch":159}],23:[function(require,module,exports){
2107
+ },{"./serviceUtils":23,"isomorphic-fetch":158}],23:[function(require,module,exports){
2030
2108
  'use strict';
2031
2109
 
2032
2110
  Object.defineProperty(exports, "__esModule", {
@@ -2120,6 +2198,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2120
2198
  exports.nextYear = nextYear;
2121
2199
  exports.nextMonth = nextMonth;
2122
2200
  exports.nextHour = nextHour;
2201
+ exports.updateQueryStringParameter = updateQueryStringParameter;
2123
2202
  exports.makeUUID4 = makeUUID4;
2124
2203
  exports.hasprop = hasprop;
2125
2204
  function nextYear() {
@@ -2134,6 +2213,20 @@ function nextHour() {
2134
2213
  return new Date(new Date().setHours(new Date().getHours() + 1));
2135
2214
  }
2136
2215
 
2216
+ /**
2217
+ * Query Strings
2218
+ */
2219
+
2220
+ function updateQueryStringParameter(uri, key, value) {
2221
+ var re = new RegExp("([?&])" + key + "=.*?(&|$)", "i");
2222
+ var separator = uri.indexOf('?') !== -1 ? "&" : "?";
2223
+ if (uri.match(re)) {
2224
+ return uri.replace(re, '$1' + key + "=" + value + '$2');
2225
+ } else {
2226
+ return uri + separator + key + "=" + value;
2227
+ }
2228
+ }
2229
+
2137
2230
  /**
2138
2231
  * UUIDs
2139
2232
  */
@@ -2162,13 +2255,13 @@ function makeUUID4() {
2162
2255
  * Author: Miguel Mota <hello@miguelmota.com> (http://www.miguelmota.com/)
2163
2256
  */
2164
2257
  function hasprop(obj, path) {
2165
- if (arguments.length === 1 && ((typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' || obj instanceof Object)) {
2258
+ if (arguments.length === 1 && ((typeof obj === "undefined" ? "undefined" : _typeof(obj)) === 'object' || obj instanceof Object)) {
2166
2259
  return function (path) {
2167
2260
  return hasprop(obj, path);
2168
2261
  };
2169
2262
  }
2170
2263
 
2171
- if (!((typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' || obj instanceof Object) || obj === null) {
2264
+ if (!((typeof obj === "undefined" ? "undefined" : _typeof(obj)) === 'object' || obj instanceof Object) || obj === null) {
2172
2265
  return false;
2173
2266
  }
2174
2267
 
@@ -2276,7 +2369,7 @@ Entity.prototype.encode = function encode(data, enc, /* internal */ reporter) {
2276
2369
  return this._getEncoder(enc).encode(data, reporter);
2277
2370
  };
2278
2371
 
2279
- },{"../asn1":26,"inherits":156,"vm":319}],28:[function(require,module,exports){
2372
+ },{"../asn1":26,"inherits":155,"vm":318}],28:[function(require,module,exports){
2280
2373
  var inherits = require('inherits');
2281
2374
  var Reporter = require('../base').Reporter;
2282
2375
  var Buffer = require('buffer').Buffer;
@@ -2394,7 +2487,7 @@ EncoderBuffer.prototype.join = function join(out, offset) {
2394
2487
  return out;
2395
2488
  };
2396
2489
 
2397
- },{"../base":29,"buffer":104,"inherits":156}],29:[function(require,module,exports){
2490
+ },{"../base":29,"buffer":104,"inherits":155}],29:[function(require,module,exports){
2398
2491
  var base = exports;
2399
2492
 
2400
2493
  base.Reporter = require('./reporter').Reporter;
@@ -3002,7 +3095,7 @@ Node.prototype._encodePrimitive = function encodePrimitive(tag, data) {
3002
3095
  throw new Error('Unsupported tag: ' + tag);
3003
3096
  };
3004
3097
 
3005
- },{"../base":29,"minimalistic-assert":189}],31:[function(require,module,exports){
3098
+ },{"../base":29,"minimalistic-assert":188}],31:[function(require,module,exports){
3006
3099
  var inherits = require('inherits');
3007
3100
 
3008
3101
  function Reporter(options) {
@@ -3106,7 +3199,7 @@ ReporterError.prototype.rethrow = function rethrow(msg) {
3106
3199
  return this;
3107
3200
  };
3108
3201
 
3109
- },{"inherits":156}],32:[function(require,module,exports){
3202
+ },{"inherits":155}],32:[function(require,module,exports){
3110
3203
  var constants = require('../constants');
3111
3204
 
3112
3205
  exports.tagClass = {
@@ -3464,7 +3557,7 @@ function derDecodeLen(buf, primitive, fail) {
3464
3557
  return len;
3465
3558
  }
3466
3559
 
3467
- },{"../../asn1":26,"inherits":156}],35:[function(require,module,exports){
3560
+ },{"../../asn1":26,"inherits":155}],35:[function(require,module,exports){
3468
3561
  var decoders = exports;
3469
3562
 
3470
3563
  decoders.der = require('./der');
@@ -3522,7 +3615,7 @@ PEMDecoder.prototype.decode = function decode(data, options) {
3522
3615
  return DERDecoder.prototype.decode.call(this, input, options);
3523
3616
  };
3524
3617
 
3525
- },{"../../asn1":26,"./der":34,"buffer":104,"inherits":156}],37:[function(require,module,exports){
3618
+ },{"../../asn1":26,"./der":34,"buffer":104,"inherits":155}],37:[function(require,module,exports){
3526
3619
  var inherits = require('inherits');
3527
3620
  var Buffer = require('buffer').Buffer;
3528
3621
 
@@ -3796,7 +3889,7 @@ function encodeTag(tag, primitive, cls, reporter) {
3796
3889
  return res;
3797
3890
  }
3798
3891
 
3799
- },{"../../asn1":26,"buffer":104,"inherits":156}],38:[function(require,module,exports){
3892
+ },{"../../asn1":26,"buffer":104,"inherits":155}],38:[function(require,module,exports){
3800
3893
  var encoders = exports;
3801
3894
 
3802
3895
  encoders.der = require('./der');
@@ -3827,7 +3920,7 @@ PEMEncoder.prototype.encode = function encode(data, options) {
3827
3920
  return out.join('\n');
3828
3921
  };
3829
3922
 
3830
- },{"../../asn1":26,"./der":37,"buffer":104,"inherits":156}],40:[function(require,module,exports){
3923
+ },{"../../asn1":26,"./der":37,"buffer":104,"inherits":155}],40:[function(require,module,exports){
3831
3924
  (function (module, exports) {
3832
3925
 
3833
3926
  'use strict';
@@ -6641,7 +6734,7 @@ var objectKeys = Object.keys || function (obj) {
6641
6734
  };
6642
6735
 
6643
6736
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
6644
- },{"util/":254}],42:[function(require,module,exports){
6737
+ },{"util/":253}],42:[function(require,module,exports){
6645
6738
  (function (process,global){
6646
6739
  /*!
6647
6740
  * async
@@ -7910,7 +8003,7 @@ var objectKeys = Object.keys || function (obj) {
7910
8003
  }());
7911
8004
 
7912
8005
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
7913
- },{"_process":213}],43:[function(require,module,exports){
8006
+ },{"_process":212}],43:[function(require,module,exports){
7914
8007
  // base-x encoding
7915
8008
  // Forked from https://github.com/cryptocoinjs/bs58
7916
8009
  // Originally written by Mike Hearn for BitcoinJ
@@ -10103,7 +10196,7 @@ module.exports = {
10103
10196
  }
10104
10197
 
10105
10198
  }).call(this,require("buffer").Buffer)
10106
- },{"./networks":63,"./script":65,"./types":69,"bs58check":98,"buffer":104,"typeforce":249}],54:[function(require,module,exports){
10199
+ },{"./networks":63,"./script":65,"./types":69,"bs58check":98,"buffer":104,"typeforce":248}],54:[function(require,module,exports){
10107
10200
  (function (Buffer){
10108
10201
  var createHash = require('create-hash')
10109
10202
  var bufferutils = require('./bufferutils')
@@ -10750,7 +10843,7 @@ module.exports = {
10750
10843
  }
10751
10844
 
10752
10845
  }).call(this,require("buffer").Buffer)
10753
- },{"./ecsignature":59,"./types":69,"bigi":50,"buffer":104,"create-hmac":111,"ecurve":125,"typeforce":249}],58:[function(require,module,exports){
10846
+ },{"./ecsignature":59,"./types":69,"bigi":50,"buffer":104,"create-hmac":111,"ecurve":125,"typeforce":248}],58:[function(require,module,exports){
10754
10847
  var baddress = require('./address')
10755
10848
  var bcrypto = require('./crypto')
10756
10849
  var ecdsa = require('./ecdsa')
@@ -10883,7 +10976,7 @@ ECPair.prototype.verify = function (hash, signature) {
10883
10976
 
10884
10977
  module.exports = ECPair
10885
10978
 
10886
- },{"./address":53,"./crypto":56,"./ecdsa":57,"./networks":63,"./types":69,"bigi":50,"ecurve":125,"randombytes":221,"typeforce":249,"wif":321}],59:[function(require,module,exports){
10979
+ },{"./address":53,"./crypto":56,"./ecdsa":57,"./networks":63,"./types":69,"bigi":50,"ecurve":125,"randombytes":220,"typeforce":248,"wif":320}],59:[function(require,module,exports){
10887
10980
  (function (Buffer){
10888
10981
  var bip66 = require('bip66')
10889
10982
  var typeforce = require('typeforce')
@@ -10974,7 +11067,7 @@ ECSignature.prototype.toScriptSignature = function (hashType) {
10974
11067
  module.exports = ECSignature
10975
11068
 
10976
11069
  }).call(this,require("buffer").Buffer)
10977
- },{"./types":69,"bigi":50,"bip66":52,"buffer":104,"typeforce":249}],60:[function(require,module,exports){
11070
+ },{"./types":69,"bigi":50,"bip66":52,"buffer":104,"typeforce":248}],60:[function(require,module,exports){
10978
11071
  (function (Buffer){
10979
11072
  var base58check = require('bs58check')
10980
11073
  var bcrypto = require('./crypto')
@@ -11300,7 +11393,7 @@ HDNode.prototype.toString = HDNode.prototype.toBase58
11300
11393
  module.exports = HDNode
11301
11394
 
11302
11395
  }).call(this,require("buffer").Buffer)
11303
- },{"./crypto":56,"./ecpair":58,"./networks":63,"./types":69,"bigi":50,"bs58check":98,"buffer":104,"create-hmac":111,"ecurve":125,"typeforce":249}],61:[function(require,module,exports){
11396
+ },{"./crypto":56,"./ecpair":58,"./networks":63,"./types":69,"bigi":50,"bs58check":98,"buffer":104,"create-hmac":111,"ecurve":125,"typeforce":248}],61:[function(require,module,exports){
11304
11397
  module.exports = {
11305
11398
  Block: require('./block'),
11306
11399
  ECPair: require('./ecpair'),
@@ -12009,7 +12102,7 @@ module.exports = {
12009
12102
  }
12010
12103
 
12011
12104
  }).call(this,require("buffer").Buffer)
12012
- },{"./bufferutils":55,"./opcodes.json":64,"./script_number":66,"./types":69,"bip66":52,"buffer":104,"typeforce":249}],66:[function(require,module,exports){
12105
+ },{"./bufferutils":55,"./opcodes.json":64,"./script_number":66,"./types":69,"bip66":52,"buffer":104,"typeforce":248}],66:[function(require,module,exports){
12013
12106
  (function (Buffer){
12014
12107
  function decode (buffer, maxLength, minimal) {
12015
12108
  maxLength = maxLength || 4
@@ -12406,7 +12499,7 @@ Transaction.prototype.setInputScript = function (index, scriptSig) {
12406
12499
  module.exports = Transaction
12407
12500
 
12408
12501
  }).call(this,require("buffer").Buffer)
12409
- },{"./bufferutils":55,"./crypto":56,"./opcodes.json":64,"./script":65,"./types":69,"buffer":104,"buffer-reverse":101,"typeforce":249}],68:[function(require,module,exports){
12502
+ },{"./bufferutils":55,"./crypto":56,"./opcodes.json":64,"./script":65,"./types":69,"buffer":104,"buffer-reverse":101,"typeforce":248}],68:[function(require,module,exports){
12410
12503
  (function (Buffer){
12411
12504
  var baddress = require('./address')
12412
12505
  var bcrypto = require('./crypto')
@@ -12911,7 +13004,7 @@ TransactionBuilder.prototype.sign = function (index, keyPair, redeemScript, hash
12911
13004
  module.exports = TransactionBuilder
12912
13005
 
12913
13006
  }).call(this,require("buffer").Buffer)
12914
- },{"./address":53,"./crypto":56,"./ecpair":58,"./ecsignature":59,"./networks":63,"./opcodes.json":64,"./script":65,"./transaction":67,"./types":69,"buffer":104,"buffer-equals":100,"buffer-reverse":101,"typeforce":249}],69:[function(require,module,exports){
13007
+ },{"./address":53,"./crypto":56,"./ecpair":58,"./ecsignature":59,"./networks":63,"./opcodes.json":64,"./script":65,"./transaction":67,"./types":69,"buffer":104,"buffer-equals":100,"buffer-reverse":101,"typeforce":248}],69:[function(require,module,exports){
12915
13008
  var typeforce = require('typeforce')
12916
13009
 
12917
13010
  function nBuffer (value, n) {
@@ -12986,7 +13079,7 @@ for (var typeName in typeforce) {
12986
13079
 
12987
13080
  module.exports = types
12988
13081
 
12989
- },{"typeforce":249}],70:[function(require,module,exports){
13082
+ },{"typeforce":248}],70:[function(require,module,exports){
12990
13083
  (function (module, exports) {
12991
13084
  'use strict';
12992
13085
 
@@ -16766,7 +16859,7 @@ function xorTest (a, b) {
16766
16859
  }
16767
16860
 
16768
16861
  }).call(this,require("buffer").Buffer)
16769
- },{"./aes":73,"./ghash":78,"buffer":104,"buffer-xor":103,"cipher-base":105,"inherits":156}],75:[function(require,module,exports){
16862
+ },{"./aes":73,"./ghash":78,"buffer":104,"buffer-xor":103,"cipher-base":105,"inherits":155}],75:[function(require,module,exports){
16770
16863
  var ciphers = require('./encrypter')
16771
16864
  exports.createCipher = exports.Cipher = ciphers.createCipher
16772
16865
  exports.createCipheriv = exports.Cipheriv = ciphers.createCipheriv
@@ -16920,7 +17013,7 @@ exports.createDecipher = createDecipher
16920
17013
  exports.createDecipheriv = createDecipheriv
16921
17014
 
16922
17015
  }).call(this,require("buffer").Buffer)
16923
- },{"./aes":73,"./authCipher":74,"./modes":79,"./modes/cbc":80,"./modes/cfb":81,"./modes/cfb1":82,"./modes/cfb8":83,"./modes/ctr":84,"./modes/ecb":85,"./modes/ofb":86,"./streamCipher":87,"buffer":104,"cipher-base":105,"evp_bytestokey":146,"inherits":156}],77:[function(require,module,exports){
17016
+ },{"./aes":73,"./authCipher":74,"./modes":79,"./modes/cbc":80,"./modes/cfb":81,"./modes/cfb1":82,"./modes/cfb8":83,"./modes/ctr":84,"./modes/ecb":85,"./modes/ofb":86,"./streamCipher":87,"buffer":104,"cipher-base":105,"evp_bytestokey":145,"inherits":155}],77:[function(require,module,exports){
16924
17017
  (function (Buffer){
16925
17018
  var aes = require('./aes')
16926
17019
  var Transform = require('cipher-base')
@@ -17046,7 +17139,7 @@ exports.createCipheriv = createCipheriv
17046
17139
  exports.createCipher = createCipher
17047
17140
 
17048
17141
  }).call(this,require("buffer").Buffer)
17049
- },{"./aes":73,"./authCipher":74,"./modes":79,"./modes/cbc":80,"./modes/cfb":81,"./modes/cfb1":82,"./modes/cfb8":83,"./modes/ctr":84,"./modes/ecb":85,"./modes/ofb":86,"./streamCipher":87,"buffer":104,"cipher-base":105,"evp_bytestokey":146,"inherits":156}],78:[function(require,module,exports){
17142
+ },{"./aes":73,"./authCipher":74,"./modes":79,"./modes/cbc":80,"./modes/cfb":81,"./modes/cfb1":82,"./modes/cfb8":83,"./modes/ctr":84,"./modes/ecb":85,"./modes/ofb":86,"./streamCipher":87,"buffer":104,"cipher-base":105,"evp_bytestokey":145,"inherits":155}],78:[function(require,module,exports){
17050
17143
  (function (Buffer){
17051
17144
  var zeros = new Buffer(16)
17052
17145
  zeros.fill(0)
@@ -17524,7 +17617,7 @@ StreamCipher.prototype._final = function () {
17524
17617
  }
17525
17618
 
17526
17619
  }).call(this,require("buffer").Buffer)
17527
- },{"./aes":73,"buffer":104,"cipher-base":105,"inherits":156}],88:[function(require,module,exports){
17620
+ },{"./aes":73,"buffer":104,"cipher-base":105,"inherits":155}],88:[function(require,module,exports){
17528
17621
  var ebtk = require('evp_bytestokey')
17529
17622
  var aes = require('browserify-aes/browser')
17530
17623
  var DES = require('browserify-des')
@@ -17599,7 +17692,7 @@ function getCiphers () {
17599
17692
  }
17600
17693
  exports.listCiphers = exports.getCiphers = getCiphers
17601
17694
 
17602
- },{"browserify-aes/browser":75,"browserify-aes/modes":79,"browserify-des":89,"browserify-des/modes":90,"evp_bytestokey":146}],89:[function(require,module,exports){
17695
+ },{"browserify-aes/browser":75,"browserify-aes/modes":79,"browserify-des":89,"browserify-des/modes":90,"evp_bytestokey":145}],89:[function(require,module,exports){
17603
17696
  (function (Buffer){
17604
17697
  var CipherBase = require('cipher-base')
17605
17698
  var des = require('des.js')
@@ -17646,7 +17739,7 @@ DES.prototype._final = function () {
17646
17739
  }
17647
17740
 
17648
17741
  }).call(this,require("buffer").Buffer)
17649
- },{"buffer":104,"cipher-base":105,"des.js":113,"inherits":156}],90:[function(require,module,exports){
17742
+ },{"buffer":104,"cipher-base":105,"des.js":113,"inherits":155}],90:[function(require,module,exports){
17650
17743
  exports['des-ecb'] = {
17651
17744
  key: 8,
17652
17745
  iv: 0
@@ -17716,7 +17809,7 @@ function getr(priv) {
17716
17809
  }
17717
17810
 
17718
17811
  }).call(this,require("buffer").Buffer)
17719
- },{"bn.js":70,"buffer":104,"randombytes":221}],92:[function(require,module,exports){
17812
+ },{"bn.js":70,"buffer":104,"randombytes":220}],92:[function(require,module,exports){
17720
17813
  (function (Buffer){
17721
17814
  'use strict'
17722
17815
  exports['RSA-SHA224'] = exports.sha224WithRSAEncryption = {
@@ -17899,7 +17992,7 @@ module.exports = {
17899
17992
  }
17900
17993
 
17901
17994
  }).call(this,require("buffer").Buffer)
17902
- },{"./algos":92,"./sign":95,"./verify":96,"buffer":104,"create-hash":108,"inherits":156,"stream":244}],94:[function(require,module,exports){
17995
+ },{"./algos":92,"./sign":95,"./verify":96,"buffer":104,"create-hash":108,"inherits":155,"stream":243}],94:[function(require,module,exports){
17903
17996
  'use strict'
17904
17997
  exports['1.3.132.0.10'] = 'secp256k1'
17905
17998
 
@@ -18102,7 +18195,7 @@ module.exports.getKey = getKey
18102
18195
  module.exports.makeKey = makeKey
18103
18196
 
18104
18197
  }).call(this,require("buffer").Buffer)
18105
- },{"./curves":94,"bn.js":70,"browserify-rsa":91,"buffer":104,"create-hmac":111,"elliptic":128,"parse-asn1":195}],96:[function(require,module,exports){
18198
+ },{"./curves":94,"bn.js":70,"browserify-rsa":91,"buffer":104,"create-hmac":111,"elliptic":128,"parse-asn1":194}],96:[function(require,module,exports){
18106
18199
  (function (Buffer){
18107
18200
  // much of this based on https://github.com/indutny/self-signed/blob/gh-pages/lib/rsa.js
18108
18201
  var curves = require('./curves')
@@ -18209,7 +18302,7 @@ function checkValue (b, q) {
18209
18302
  module.exports = verify
18210
18303
 
18211
18304
  }).call(this,require("buffer").Buffer)
18212
- },{"./curves":94,"bn.js":70,"buffer":104,"elliptic":128,"parse-asn1":195}],97:[function(require,module,exports){
18305
+ },{"./curves":94,"bn.js":70,"buffer":104,"elliptic":128,"parse-asn1":194}],97:[function(require,module,exports){
18213
18306
  var basex = require('base-x')
18214
18307
  var ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
18215
18308
 
@@ -18335,7 +18428,7 @@ module.exports = function (a, b) {
18335
18428
  };
18336
18429
 
18337
18430
  }).call(this,{"isBuffer":require("../is-buffer/index.js")})
18338
- },{"../is-buffer/index.js":157}],101:[function(require,module,exports){
18431
+ },{"../is-buffer/index.js":156}],101:[function(require,module,exports){
18339
18432
  (function (Buffer){
18340
18433
  module.exports = function reverse (src) {
18341
18434
  var buffer = new Buffer(src.length)
@@ -20268,7 +20361,7 @@ function isnan (val) {
20268
20361
  }
20269
20362
 
20270
20363
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
20271
- },{"base64-js":44,"ieee754":154,"isarray":158}],105:[function(require,module,exports){
20364
+ },{"base64-js":44,"ieee754":153,"isarray":157}],105:[function(require,module,exports){
20272
20365
  (function (Buffer){
20273
20366
  var Transform = require('stream').Transform
20274
20367
  var inherits = require('inherits')
@@ -20362,7 +20455,7 @@ CipherBase.prototype._toString = function (value, enc, fin) {
20362
20455
  }
20363
20456
 
20364
20457
  }).call(this,require("buffer").Buffer)
20365
- },{"buffer":104,"inherits":156,"stream":244,"string_decoder":246}],106:[function(require,module,exports){
20458
+ },{"buffer":104,"inherits":155,"stream":243,"string_decoder":245}],106:[function(require,module,exports){
20366
20459
  (function (Buffer){
20367
20460
  // Copyright Joyent, Inc. and other Node contributors.
20368
20461
  //
@@ -20473,7 +20566,7 @@ function objectToString(o) {
20473
20566
  }
20474
20567
 
20475
20568
  }).call(this,{"isBuffer":require("../../is-buffer/index.js")})
20476
- },{"../../is-buffer/index.js":157}],107:[function(require,module,exports){
20569
+ },{"../../is-buffer/index.js":156}],107:[function(require,module,exports){
20477
20570
  (function (Buffer){
20478
20571
  var elliptic = require('elliptic');
20479
20572
  var BN = require('bn.js');
@@ -20655,7 +20748,7 @@ module.exports = function createHash (alg) {
20655
20748
  }
20656
20749
 
20657
20750
  }).call(this,require("buffer").Buffer)
20658
- },{"./md5":110,"buffer":104,"cipher-base":105,"inherits":156,"ripemd160":233,"sha.js":237}],109:[function(require,module,exports){
20751
+ },{"./md5":110,"buffer":104,"cipher-base":105,"inherits":155,"ripemd160":232,"sha.js":236}],109:[function(require,module,exports){
20659
20752
  (function (Buffer){
20660
20753
  'use strict';
20661
20754
  var intSize = 4;
@@ -20921,7 +21014,7 @@ module.exports = function createHmac(alg, key) {
20921
21014
  }
20922
21015
 
20923
21016
  }).call(this,require("buffer").Buffer)
20924
- },{"buffer":104,"create-hash/browser":108,"inherits":156,"stream":244}],112:[function(require,module,exports){
21017
+ },{"buffer":104,"create-hash/browser":108,"inherits":155,"stream":243}],112:[function(require,module,exports){
20925
21018
  'use strict'
20926
21019
 
20927
21020
  exports.randomBytes = exports.rng = exports.pseudoRandomBytes = exports.prng = require('randombytes')
@@ -21000,7 +21093,7 @@ var publicEncrypt = require('public-encrypt')
21000
21093
  }
21001
21094
  })
21002
21095
 
21003
- },{"browserify-cipher":88,"browserify-sign":93,"browserify-sign/algos":92,"create-ecdh":107,"create-hash":108,"create-hmac":111,"diffie-hellman":119,"pbkdf2":210,"public-encrypt":214,"randombytes":221}],113:[function(require,module,exports){
21096
+ },{"browserify-cipher":88,"browserify-sign":93,"browserify-sign/algos":92,"create-ecdh":107,"create-hash":108,"create-hmac":111,"diffie-hellman":119,"pbkdf2":209,"public-encrypt":213,"randombytes":220}],113:[function(require,module,exports){
21004
21097
  'use strict';
21005
21098
 
21006
21099
  exports.utils = require('./des/utils');
@@ -21076,7 +21169,7 @@ proto._update = function _update(inp, inOff, out, outOff) {
21076
21169
  }
21077
21170
  };
21078
21171
 
21079
- },{"inherits":156,"minimalistic-assert":189}],115:[function(require,module,exports){
21172
+ },{"inherits":155,"minimalistic-assert":188}],115:[function(require,module,exports){
21080
21173
  'use strict';
21081
21174
 
21082
21175
  var assert = require('minimalistic-assert');
@@ -21219,7 +21312,7 @@ Cipher.prototype._finalDecrypt = function _finalDecrypt() {
21219
21312
  return this._unpad(out);
21220
21313
  };
21221
21314
 
21222
- },{"minimalistic-assert":189}],116:[function(require,module,exports){
21315
+ },{"minimalistic-assert":188}],116:[function(require,module,exports){
21223
21316
  'use strict';
21224
21317
 
21225
21318
  var assert = require('minimalistic-assert');
@@ -21364,7 +21457,7 @@ DES.prototype._decrypt = function _decrypt(state, lStart, rStart, out, off) {
21364
21457
  utils.rip(l, r, out, off);
21365
21458
  };
21366
21459
 
21367
- },{"../des":113,"inherits":156,"minimalistic-assert":189}],117:[function(require,module,exports){
21460
+ },{"../des":113,"inherits":155,"minimalistic-assert":188}],117:[function(require,module,exports){
21368
21461
  'use strict';
21369
21462
 
21370
21463
  var assert = require('minimalistic-assert');
@@ -21421,7 +21514,7 @@ EDE.prototype._update = function _update(inp, inOff, out, outOff) {
21421
21514
  EDE.prototype._pad = DES.prototype._pad;
21422
21515
  EDE.prototype._unpad = DES.prototype._unpad;
21423
21516
 
21424
- },{"../des":113,"inherits":156,"minimalistic-assert":189}],118:[function(require,module,exports){
21517
+ },{"../des":113,"inherits":155,"minimalistic-assert":188}],118:[function(require,module,exports){
21425
21518
  'use strict';
21426
21519
 
21427
21520
  exports.readUInt32BE = function readUInt32BE(bytes, off) {
@@ -21893,7 +21986,7 @@ function formatReturnValue(bn, enc) {
21893
21986
  }
21894
21987
 
21895
21988
  }).call(this,require("buffer").Buffer)
21896
- },{"./generatePrime":121,"bn.js":70,"buffer":104,"miller-rabin":188,"randombytes":221}],121:[function(require,module,exports){
21989
+ },{"./generatePrime":121,"bn.js":70,"buffer":104,"miller-rabin":187,"randombytes":220}],121:[function(require,module,exports){
21897
21990
  var randomBytes = require('randombytes');
21898
21991
  module.exports = findPrime;
21899
21992
  findPrime.simpleSieve = simpleSieve;
@@ -22000,7 +22093,7 @@ function findPrime(bits, gen) {
22000
22093
 
22001
22094
  }
22002
22095
 
22003
- },{"bn.js":70,"miller-rabin":188,"randombytes":221}],122:[function(require,module,exports){
22096
+ },{"bn.js":70,"miller-rabin":187,"randombytes":220}],122:[function(require,module,exports){
22004
22097
  module.exports={
22005
22098
  "modp1": {
22006
22099
  "gen": "02",
@@ -23290,7 +23383,7 @@ Point.prototype.eqXToP = function eqXToP(x) {
23290
23383
  Point.prototype.toP = Point.prototype.normalize;
23291
23384
  Point.prototype.mixedAdd = Point.prototype.add;
23292
23385
 
23293
- },{"../../elliptic":128,"../curve":131,"bn.js":70,"inherits":156}],131:[function(require,module,exports){
23386
+ },{"../../elliptic":128,"../curve":131,"bn.js":70,"inherits":155}],131:[function(require,module,exports){
23294
23387
  'use strict';
23295
23388
 
23296
23389
  var curve = exports;
@@ -23482,7 +23575,7 @@ Point.prototype.getX = function getX() {
23482
23575
  return this.x.fromRed();
23483
23576
  };
23484
23577
 
23485
- },{"../../elliptic":128,"../curve":131,"bn.js":70,"inherits":156}],133:[function(require,module,exports){
23578
+ },{"../../elliptic":128,"../curve":131,"bn.js":70,"inherits":155}],133:[function(require,module,exports){
23486
23579
  'use strict';
23487
23580
 
23488
23581
  var curve = require('../curve');
@@ -24422,7 +24515,7 @@ JPoint.prototype.isInfinity = function isInfinity() {
24422
24515
  return this.z.cmpn(0) === 0;
24423
24516
  };
24424
24517
 
24425
- },{"../../elliptic":128,"../curve":131,"bn.js":70,"inherits":156}],134:[function(require,module,exports){
24518
+ },{"../../elliptic":128,"../curve":131,"bn.js":70,"inherits":155}],134:[function(require,module,exports){
24426
24519
  'use strict';
24427
24520
 
24428
24521
  var curves = exports;
@@ -24629,7 +24722,7 @@ defineCurve('secp256k1', {
24629
24722
  ]
24630
24723
  });
24631
24724
 
24632
- },{"../elliptic":128,"./precomputed/secp256k1":141,"hash.js":147}],135:[function(require,module,exports){
24725
+ },{"../elliptic":128,"./precomputed/secp256k1":141,"hash.js":146}],135:[function(require,module,exports){
24633
24726
  'use strict';
24634
24727
 
24635
24728
  var BN = require('bn.js');
@@ -24871,7 +24964,7 @@ EC.prototype.getKeyRecoveryParam = function(e, signature, Q, enc) {
24871
24964
  throw new Error('Unable to find valid recovery factor');
24872
24965
  };
24873
24966
 
24874
- },{"../../elliptic":128,"./key":136,"./signature":137,"bn.js":70,"hmac-drbg":153}],136:[function(require,module,exports){
24967
+ },{"../../elliptic":128,"./key":136,"./signature":137,"bn.js":70,"hmac-drbg":152}],136:[function(require,module,exports){
24875
24968
  'use strict';
24876
24969
 
24877
24970
  var BN = require('bn.js');
@@ -25249,7 +25342,7 @@ EDDSA.prototype.isPoint = function isPoint(val) {
25249
25342
  return val instanceof this.pointClass;
25250
25343
  };
25251
25344
 
25252
- },{"../../elliptic":128,"./key":139,"./signature":140,"hash.js":147}],139:[function(require,module,exports){
25345
+ },{"../../elliptic":128,"./key":139,"./signature":140,"hash.js":146}],139:[function(require,module,exports){
25253
25346
  'use strict';
25254
25347
 
25255
25348
  var elliptic = require('../../elliptic');
@@ -26319,7 +26412,7 @@ function intFromLE(bytes) {
26319
26412
  utils.intFromLE = intFromLE;
26320
26413
 
26321
26414
 
26322
- },{"bn.js":70,"minimalistic-assert":189,"minimalistic-crypto-utils":190}],143:[function(require,module,exports){
26415
+ },{"bn.js":70,"minimalistic-assert":188,"minimalistic-crypto-utils":189}],143:[function(require,module,exports){
26323
26416
  module.exports={
26324
26417
  "_args": [
26325
26418
  [
@@ -26446,1168 +26539,6 @@ module.exports={
26446
26539
  }
26447
26540
 
26448
26541
  },{}],144:[function(require,module,exports){
26449
- (function (process,global){
26450
- /*!
26451
- * @overview es6-promise - a tiny implementation of Promises/A+.
26452
- * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
26453
- * @license Licensed under MIT license
26454
- * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
26455
- * @version 4.1.0
26456
- */
26457
-
26458
- (function (global, factory) {
26459
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
26460
- typeof define === 'function' && define.amd ? define(factory) :
26461
- (global.ES6Promise = factory());
26462
- }(this, (function () { 'use strict';
26463
-
26464
- function objectOrFunction(x) {
26465
- return typeof x === 'function' || typeof x === 'object' && x !== null;
26466
- }
26467
-
26468
- function isFunction(x) {
26469
- return typeof x === 'function';
26470
- }
26471
-
26472
- var _isArray = undefined;
26473
- if (!Array.isArray) {
26474
- _isArray = function (x) {
26475
- return Object.prototype.toString.call(x) === '[object Array]';
26476
- };
26477
- } else {
26478
- _isArray = Array.isArray;
26479
- }
26480
-
26481
- var isArray = _isArray;
26482
-
26483
- var len = 0;
26484
- var vertxNext = undefined;
26485
- var customSchedulerFn = undefined;
26486
-
26487
- var asap = function asap(callback, arg) {
26488
- queue[len] = callback;
26489
- queue[len + 1] = arg;
26490
- len += 2;
26491
- if (len === 2) {
26492
- // If len is 2, that means that we need to schedule an async flush.
26493
- // If additional callbacks are queued before the queue is flushed, they
26494
- // will be processed by this flush that we are scheduling.
26495
- if (customSchedulerFn) {
26496
- customSchedulerFn(flush);
26497
- } else {
26498
- scheduleFlush();
26499
- }
26500
- }
26501
- };
26502
-
26503
- function setScheduler(scheduleFn) {
26504
- customSchedulerFn = scheduleFn;
26505
- }
26506
-
26507
- function setAsap(asapFn) {
26508
- asap = asapFn;
26509
- }
26510
-
26511
- var browserWindow = typeof window !== 'undefined' ? window : undefined;
26512
- var browserGlobal = browserWindow || {};
26513
- var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;
26514
- var isNode = typeof self === 'undefined' && typeof process !== 'undefined' && ({}).toString.call(process) === '[object process]';
26515
-
26516
- // test for web worker but not in IE10
26517
- var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';
26518
-
26519
- // node
26520
- function useNextTick() {
26521
- // node version 0.10.x displays a deprecation warning when nextTick is used recursively
26522
- // see https://github.com/cujojs/when/issues/410 for details
26523
- return function () {
26524
- return process.nextTick(flush);
26525
- };
26526
- }
26527
-
26528
- // vertx
26529
- function useVertxTimer() {
26530
- if (typeof vertxNext !== 'undefined') {
26531
- return function () {
26532
- vertxNext(flush);
26533
- };
26534
- }
26535
-
26536
- return useSetTimeout();
26537
- }
26538
-
26539
- function useMutationObserver() {
26540
- var iterations = 0;
26541
- var observer = new BrowserMutationObserver(flush);
26542
- var node = document.createTextNode('');
26543
- observer.observe(node, { characterData: true });
26544
-
26545
- return function () {
26546
- node.data = iterations = ++iterations % 2;
26547
- };
26548
- }
26549
-
26550
- // web worker
26551
- function useMessageChannel() {
26552
- var channel = new MessageChannel();
26553
- channel.port1.onmessage = flush;
26554
- return function () {
26555
- return channel.port2.postMessage(0);
26556
- };
26557
- }
26558
-
26559
- function useSetTimeout() {
26560
- // Store setTimeout reference so es6-promise will be unaffected by
26561
- // other code modifying setTimeout (like sinon.useFakeTimers())
26562
- var globalSetTimeout = setTimeout;
26563
- return function () {
26564
- return globalSetTimeout(flush, 1);
26565
- };
26566
- }
26567
-
26568
- var queue = new Array(1000);
26569
- function flush() {
26570
- for (var i = 0; i < len; i += 2) {
26571
- var callback = queue[i];
26572
- var arg = queue[i + 1];
26573
-
26574
- callback(arg);
26575
-
26576
- queue[i] = undefined;
26577
- queue[i + 1] = undefined;
26578
- }
26579
-
26580
- len = 0;
26581
- }
26582
-
26583
- function attemptVertx() {
26584
- try {
26585
- var r = require;
26586
- var vertx = r('vertx');
26587
- vertxNext = vertx.runOnLoop || vertx.runOnContext;
26588
- return useVertxTimer();
26589
- } catch (e) {
26590
- return useSetTimeout();
26591
- }
26592
- }
26593
-
26594
- var scheduleFlush = undefined;
26595
- // Decide what async method to use to triggering processing of queued callbacks:
26596
- if (isNode) {
26597
- scheduleFlush = useNextTick();
26598
- } else if (BrowserMutationObserver) {
26599
- scheduleFlush = useMutationObserver();
26600
- } else if (isWorker) {
26601
- scheduleFlush = useMessageChannel();
26602
- } else if (browserWindow === undefined && typeof require === 'function') {
26603
- scheduleFlush = attemptVertx();
26604
- } else {
26605
- scheduleFlush = useSetTimeout();
26606
- }
26607
-
26608
- function then(onFulfillment, onRejection) {
26609
- var _arguments = arguments;
26610
-
26611
- var parent = this;
26612
-
26613
- var child = new this.constructor(noop);
26614
-
26615
- if (child[PROMISE_ID] === undefined) {
26616
- makePromise(child);
26617
- }
26618
-
26619
- var _state = parent._state;
26620
-
26621
- if (_state) {
26622
- (function () {
26623
- var callback = _arguments[_state - 1];
26624
- asap(function () {
26625
- return invokeCallback(_state, child, callback, parent._result);
26626
- });
26627
- })();
26628
- } else {
26629
- subscribe(parent, child, onFulfillment, onRejection);
26630
- }
26631
-
26632
- return child;
26633
- }
26634
-
26635
- /**
26636
- `Promise.resolve` returns a promise that will become resolved with the
26637
- passed `value`. It is shorthand for the following:
26638
-
26639
- ```javascript
26640
- let promise = new Promise(function(resolve, reject){
26641
- resolve(1);
26642
- });
26643
-
26644
- promise.then(function(value){
26645
- // value === 1
26646
- });
26647
- ```
26648
-
26649
- Instead of writing the above, your code now simply becomes the following:
26650
-
26651
- ```javascript
26652
- let promise = Promise.resolve(1);
26653
-
26654
- promise.then(function(value){
26655
- // value === 1
26656
- });
26657
- ```
26658
-
26659
- @method resolve
26660
- @static
26661
- @param {Any} value value that the returned promise will be resolved with
26662
- Useful for tooling.
26663
- @return {Promise} a promise that will become fulfilled with the given
26664
- `value`
26665
- */
26666
- function resolve(object) {
26667
- /*jshint validthis:true */
26668
- var Constructor = this;
26669
-
26670
- if (object && typeof object === 'object' && object.constructor === Constructor) {
26671
- return object;
26672
- }
26673
-
26674
- var promise = new Constructor(noop);
26675
- _resolve(promise, object);
26676
- return promise;
26677
- }
26678
-
26679
- var PROMISE_ID = Math.random().toString(36).substring(16);
26680
-
26681
- function noop() {}
26682
-
26683
- var PENDING = void 0;
26684
- var FULFILLED = 1;
26685
- var REJECTED = 2;
26686
-
26687
- var GET_THEN_ERROR = new ErrorObject();
26688
-
26689
- function selfFulfillment() {
26690
- return new TypeError("You cannot resolve a promise with itself");
26691
- }
26692
-
26693
- function cannotReturnOwn() {
26694
- return new TypeError('A promises callback cannot return that same promise.');
26695
- }
26696
-
26697
- function getThen(promise) {
26698
- try {
26699
- return promise.then;
26700
- } catch (error) {
26701
- GET_THEN_ERROR.error = error;
26702
- return GET_THEN_ERROR;
26703
- }
26704
- }
26705
-
26706
- function tryThen(then, value, fulfillmentHandler, rejectionHandler) {
26707
- try {
26708
- then.call(value, fulfillmentHandler, rejectionHandler);
26709
- } catch (e) {
26710
- return e;
26711
- }
26712
- }
26713
-
26714
- function handleForeignThenable(promise, thenable, then) {
26715
- asap(function (promise) {
26716
- var sealed = false;
26717
- var error = tryThen(then, thenable, function (value) {
26718
- if (sealed) {
26719
- return;
26720
- }
26721
- sealed = true;
26722
- if (thenable !== value) {
26723
- _resolve(promise, value);
26724
- } else {
26725
- fulfill(promise, value);
26726
- }
26727
- }, function (reason) {
26728
- if (sealed) {
26729
- return;
26730
- }
26731
- sealed = true;
26732
-
26733
- _reject(promise, reason);
26734
- }, 'Settle: ' + (promise._label || ' unknown promise'));
26735
-
26736
- if (!sealed && error) {
26737
- sealed = true;
26738
- _reject(promise, error);
26739
- }
26740
- }, promise);
26741
- }
26742
-
26743
- function handleOwnThenable(promise, thenable) {
26744
- if (thenable._state === FULFILLED) {
26745
- fulfill(promise, thenable._result);
26746
- } else if (thenable._state === REJECTED) {
26747
- _reject(promise, thenable._result);
26748
- } else {
26749
- subscribe(thenable, undefined, function (value) {
26750
- return _resolve(promise, value);
26751
- }, function (reason) {
26752
- return _reject(promise, reason);
26753
- });
26754
- }
26755
- }
26756
-
26757
- function handleMaybeThenable(promise, maybeThenable, then$$) {
26758
- if (maybeThenable.constructor === promise.constructor && then$$ === then && maybeThenable.constructor.resolve === resolve) {
26759
- handleOwnThenable(promise, maybeThenable);
26760
- } else {
26761
- if (then$$ === GET_THEN_ERROR) {
26762
- _reject(promise, GET_THEN_ERROR.error);
26763
- GET_THEN_ERROR.error = null;
26764
- } else if (then$$ === undefined) {
26765
- fulfill(promise, maybeThenable);
26766
- } else if (isFunction(then$$)) {
26767
- handleForeignThenable(promise, maybeThenable, then$$);
26768
- } else {
26769
- fulfill(promise, maybeThenable);
26770
- }
26771
- }
26772
- }
26773
-
26774
- function _resolve(promise, value) {
26775
- if (promise === value) {
26776
- _reject(promise, selfFulfillment());
26777
- } else if (objectOrFunction(value)) {
26778
- handleMaybeThenable(promise, value, getThen(value));
26779
- } else {
26780
- fulfill(promise, value);
26781
- }
26782
- }
26783
-
26784
- function publishRejection(promise) {
26785
- if (promise._onerror) {
26786
- promise._onerror(promise._result);
26787
- }
26788
-
26789
- publish(promise);
26790
- }
26791
-
26792
- function fulfill(promise, value) {
26793
- if (promise._state !== PENDING) {
26794
- return;
26795
- }
26796
-
26797
- promise._result = value;
26798
- promise._state = FULFILLED;
26799
-
26800
- if (promise._subscribers.length !== 0) {
26801
- asap(publish, promise);
26802
- }
26803
- }
26804
-
26805
- function _reject(promise, reason) {
26806
- if (promise._state !== PENDING) {
26807
- return;
26808
- }
26809
- promise._state = REJECTED;
26810
- promise._result = reason;
26811
-
26812
- asap(publishRejection, promise);
26813
- }
26814
-
26815
- function subscribe(parent, child, onFulfillment, onRejection) {
26816
- var _subscribers = parent._subscribers;
26817
- var length = _subscribers.length;
26818
-
26819
- parent._onerror = null;
26820
-
26821
- _subscribers[length] = child;
26822
- _subscribers[length + FULFILLED] = onFulfillment;
26823
- _subscribers[length + REJECTED] = onRejection;
26824
-
26825
- if (length === 0 && parent._state) {
26826
- asap(publish, parent);
26827
- }
26828
- }
26829
-
26830
- function publish(promise) {
26831
- var subscribers = promise._subscribers;
26832
- var settled = promise._state;
26833
-
26834
- if (subscribers.length === 0) {
26835
- return;
26836
- }
26837
-
26838
- var child = undefined,
26839
- callback = undefined,
26840
- detail = promise._result;
26841
-
26842
- for (var i = 0; i < subscribers.length; i += 3) {
26843
- child = subscribers[i];
26844
- callback = subscribers[i + settled];
26845
-
26846
- if (child) {
26847
- invokeCallback(settled, child, callback, detail);
26848
- } else {
26849
- callback(detail);
26850
- }
26851
- }
26852
-
26853
- promise._subscribers.length = 0;
26854
- }
26855
-
26856
- function ErrorObject() {
26857
- this.error = null;
26858
- }
26859
-
26860
- var TRY_CATCH_ERROR = new ErrorObject();
26861
-
26862
- function tryCatch(callback, detail) {
26863
- try {
26864
- return callback(detail);
26865
- } catch (e) {
26866
- TRY_CATCH_ERROR.error = e;
26867
- return TRY_CATCH_ERROR;
26868
- }
26869
- }
26870
-
26871
- function invokeCallback(settled, promise, callback, detail) {
26872
- var hasCallback = isFunction(callback),
26873
- value = undefined,
26874
- error = undefined,
26875
- succeeded = undefined,
26876
- failed = undefined;
26877
-
26878
- if (hasCallback) {
26879
- value = tryCatch(callback, detail);
26880
-
26881
- if (value === TRY_CATCH_ERROR) {
26882
- failed = true;
26883
- error = value.error;
26884
- value.error = null;
26885
- } else {
26886
- succeeded = true;
26887
- }
26888
-
26889
- if (promise === value) {
26890
- _reject(promise, cannotReturnOwn());
26891
- return;
26892
- }
26893
- } else {
26894
- value = detail;
26895
- succeeded = true;
26896
- }
26897
-
26898
- if (promise._state !== PENDING) {
26899
- // noop
26900
- } else if (hasCallback && succeeded) {
26901
- _resolve(promise, value);
26902
- } else if (failed) {
26903
- _reject(promise, error);
26904
- } else if (settled === FULFILLED) {
26905
- fulfill(promise, value);
26906
- } else if (settled === REJECTED) {
26907
- _reject(promise, value);
26908
- }
26909
- }
26910
-
26911
- function initializePromise(promise, resolver) {
26912
- try {
26913
- resolver(function resolvePromise(value) {
26914
- _resolve(promise, value);
26915
- }, function rejectPromise(reason) {
26916
- _reject(promise, reason);
26917
- });
26918
- } catch (e) {
26919
- _reject(promise, e);
26920
- }
26921
- }
26922
-
26923
- var id = 0;
26924
- function nextId() {
26925
- return id++;
26926
- }
26927
-
26928
- function makePromise(promise) {
26929
- promise[PROMISE_ID] = id++;
26930
- promise._state = undefined;
26931
- promise._result = undefined;
26932
- promise._subscribers = [];
26933
- }
26934
-
26935
- function Enumerator(Constructor, input) {
26936
- this._instanceConstructor = Constructor;
26937
- this.promise = new Constructor(noop);
26938
-
26939
- if (!this.promise[PROMISE_ID]) {
26940
- makePromise(this.promise);
26941
- }
26942
-
26943
- if (isArray(input)) {
26944
- this._input = input;
26945
- this.length = input.length;
26946
- this._remaining = input.length;
26947
-
26948
- this._result = new Array(this.length);
26949
-
26950
- if (this.length === 0) {
26951
- fulfill(this.promise, this._result);
26952
- } else {
26953
- this.length = this.length || 0;
26954
- this._enumerate();
26955
- if (this._remaining === 0) {
26956
- fulfill(this.promise, this._result);
26957
- }
26958
- }
26959
- } else {
26960
- _reject(this.promise, validationError());
26961
- }
26962
- }
26963
-
26964
- function validationError() {
26965
- return new Error('Array Methods must be provided an Array');
26966
- };
26967
-
26968
- Enumerator.prototype._enumerate = function () {
26969
- var length = this.length;
26970
- var _input = this._input;
26971
-
26972
- for (var i = 0; this._state === PENDING && i < length; i++) {
26973
- this._eachEntry(_input[i], i);
26974
- }
26975
- };
26976
-
26977
- Enumerator.prototype._eachEntry = function (entry, i) {
26978
- var c = this._instanceConstructor;
26979
- var resolve$$ = c.resolve;
26980
-
26981
- if (resolve$$ === resolve) {
26982
- var _then = getThen(entry);
26983
-
26984
- if (_then === then && entry._state !== PENDING) {
26985
- this._settledAt(entry._state, i, entry._result);
26986
- } else if (typeof _then !== 'function') {
26987
- this._remaining--;
26988
- this._result[i] = entry;
26989
- } else if (c === Promise) {
26990
- var promise = new c(noop);
26991
- handleMaybeThenable(promise, entry, _then);
26992
- this._willSettleAt(promise, i);
26993
- } else {
26994
- this._willSettleAt(new c(function (resolve$$) {
26995
- return resolve$$(entry);
26996
- }), i);
26997
- }
26998
- } else {
26999
- this._willSettleAt(resolve$$(entry), i);
27000
- }
27001
- };
27002
-
27003
- Enumerator.prototype._settledAt = function (state, i, value) {
27004
- var promise = this.promise;
27005
-
27006
- if (promise._state === PENDING) {
27007
- this._remaining--;
27008
-
27009
- if (state === REJECTED) {
27010
- _reject(promise, value);
27011
- } else {
27012
- this._result[i] = value;
27013
- }
27014
- }
27015
-
27016
- if (this._remaining === 0) {
27017
- fulfill(promise, this._result);
27018
- }
27019
- };
27020
-
27021
- Enumerator.prototype._willSettleAt = function (promise, i) {
27022
- var enumerator = this;
27023
-
27024
- subscribe(promise, undefined, function (value) {
27025
- return enumerator._settledAt(FULFILLED, i, value);
27026
- }, function (reason) {
27027
- return enumerator._settledAt(REJECTED, i, reason);
27028
- });
27029
- };
27030
-
27031
- /**
27032
- `Promise.all` accepts an array of promises, and returns a new promise which
27033
- is fulfilled with an array of fulfillment values for the passed promises, or
27034
- rejected with the reason of the first passed promise to be rejected. It casts all
27035
- elements of the passed iterable to promises as it runs this algorithm.
27036
-
27037
- Example:
27038
-
27039
- ```javascript
27040
- let promise1 = resolve(1);
27041
- let promise2 = resolve(2);
27042
- let promise3 = resolve(3);
27043
- let promises = [ promise1, promise2, promise3 ];
27044
-
27045
- Promise.all(promises).then(function(array){
27046
- // The array here would be [ 1, 2, 3 ];
27047
- });
27048
- ```
27049
-
27050
- If any of the `promises` given to `all` are rejected, the first promise
27051
- that is rejected will be given as an argument to the returned promises's
27052
- rejection handler. For example:
27053
-
27054
- Example:
27055
-
27056
- ```javascript
27057
- let promise1 = resolve(1);
27058
- let promise2 = reject(new Error("2"));
27059
- let promise3 = reject(new Error("3"));
27060
- let promises = [ promise1, promise2, promise3 ];
27061
-
27062
- Promise.all(promises).then(function(array){
27063
- // Code here never runs because there are rejected promises!
27064
- }, function(error) {
27065
- // error.message === "2"
27066
- });
27067
- ```
27068
-
27069
- @method all
27070
- @static
27071
- @param {Array} entries array of promises
27072
- @param {String} label optional string for labeling the promise.
27073
- Useful for tooling.
27074
- @return {Promise} promise that is fulfilled when all `promises` have been
27075
- fulfilled, or rejected if any of them become rejected.
27076
- @static
27077
- */
27078
- function all(entries) {
27079
- return new Enumerator(this, entries).promise;
27080
- }
27081
-
27082
- /**
27083
- `Promise.race` returns a new promise which is settled in the same way as the
27084
- first passed promise to settle.
27085
-
27086
- Example:
27087
-
27088
- ```javascript
27089
- let promise1 = new Promise(function(resolve, reject){
27090
- setTimeout(function(){
27091
- resolve('promise 1');
27092
- }, 200);
27093
- });
27094
-
27095
- let promise2 = new Promise(function(resolve, reject){
27096
- setTimeout(function(){
27097
- resolve('promise 2');
27098
- }, 100);
27099
- });
27100
-
27101
- Promise.race([promise1, promise2]).then(function(result){
27102
- // result === 'promise 2' because it was resolved before promise1
27103
- // was resolved.
27104
- });
27105
- ```
27106
-
27107
- `Promise.race` is deterministic in that only the state of the first
27108
- settled promise matters. For example, even if other promises given to the
27109
- `promises` array argument are resolved, but the first settled promise has
27110
- become rejected before the other promises became fulfilled, the returned
27111
- promise will become rejected:
27112
-
27113
- ```javascript
27114
- let promise1 = new Promise(function(resolve, reject){
27115
- setTimeout(function(){
27116
- resolve('promise 1');
27117
- }, 200);
27118
- });
27119
-
27120
- let promise2 = new Promise(function(resolve, reject){
27121
- setTimeout(function(){
27122
- reject(new Error('promise 2'));
27123
- }, 100);
27124
- });
27125
-
27126
- Promise.race([promise1, promise2]).then(function(result){
27127
- // Code here never runs
27128
- }, function(reason){
27129
- // reason.message === 'promise 2' because promise 2 became rejected before
27130
- // promise 1 became fulfilled
27131
- });
27132
- ```
27133
-
27134
- An example real-world use case is implementing timeouts:
27135
-
27136
- ```javascript
27137
- Promise.race([ajax('foo.json'), timeout(5000)])
27138
- ```
27139
-
27140
- @method race
27141
- @static
27142
- @param {Array} promises array of promises to observe
27143
- Useful for tooling.
27144
- @return {Promise} a promise which settles in the same way as the first passed
27145
- promise to settle.
27146
- */
27147
- function race(entries) {
27148
- /*jshint validthis:true */
27149
- var Constructor = this;
27150
-
27151
- if (!isArray(entries)) {
27152
- return new Constructor(function (_, reject) {
27153
- return reject(new TypeError('You must pass an array to race.'));
27154
- });
27155
- } else {
27156
- return new Constructor(function (resolve, reject) {
27157
- var length = entries.length;
27158
- for (var i = 0; i < length; i++) {
27159
- Constructor.resolve(entries[i]).then(resolve, reject);
27160
- }
27161
- });
27162
- }
27163
- }
27164
-
27165
- /**
27166
- `Promise.reject` returns a promise rejected with the passed `reason`.
27167
- It is shorthand for the following:
27168
-
27169
- ```javascript
27170
- let promise = new Promise(function(resolve, reject){
27171
- reject(new Error('WHOOPS'));
27172
- });
27173
-
27174
- promise.then(function(value){
27175
- // Code here doesn't run because the promise is rejected!
27176
- }, function(reason){
27177
- // reason.message === 'WHOOPS'
27178
- });
27179
- ```
27180
-
27181
- Instead of writing the above, your code now simply becomes the following:
27182
-
27183
- ```javascript
27184
- let promise = Promise.reject(new Error('WHOOPS'));
27185
-
27186
- promise.then(function(value){
27187
- // Code here doesn't run because the promise is rejected!
27188
- }, function(reason){
27189
- // reason.message === 'WHOOPS'
27190
- });
27191
- ```
27192
-
27193
- @method reject
27194
- @static
27195
- @param {Any} reason value that the returned promise will be rejected with.
27196
- Useful for tooling.
27197
- @return {Promise} a promise rejected with the given `reason`.
27198
- */
27199
- function reject(reason) {
27200
- /*jshint validthis:true */
27201
- var Constructor = this;
27202
- var promise = new Constructor(noop);
27203
- _reject(promise, reason);
27204
- return promise;
27205
- }
27206
-
27207
- function needsResolver() {
27208
- throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');
27209
- }
27210
-
27211
- function needsNew() {
27212
- throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
27213
- }
27214
-
27215
- /**
27216
- Promise objects represent the eventual result of an asynchronous operation. The
27217
- primary way of interacting with a promise is through its `then` method, which
27218
- registers callbacks to receive either a promise's eventual value or the reason
27219
- why the promise cannot be fulfilled.
27220
-
27221
- Terminology
27222
- -----------
27223
-
27224
- - `promise` is an object or function with a `then` method whose behavior conforms to this specification.
27225
- - `thenable` is an object or function that defines a `then` method.
27226
- - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).
27227
- - `exception` is a value that is thrown using the throw statement.
27228
- - `reason` is a value that indicates why a promise was rejected.
27229
- - `settled` the final resting state of a promise, fulfilled or rejected.
27230
-
27231
- A promise can be in one of three states: pending, fulfilled, or rejected.
27232
-
27233
- Promises that are fulfilled have a fulfillment value and are in the fulfilled
27234
- state. Promises that are rejected have a rejection reason and are in the
27235
- rejected state. A fulfillment value is never a thenable.
27236
-
27237
- Promises can also be said to *resolve* a value. If this value is also a
27238
- promise, then the original promise's settled state will match the value's
27239
- settled state. So a promise that *resolves* a promise that rejects will
27240
- itself reject, and a promise that *resolves* a promise that fulfills will
27241
- itself fulfill.
27242
-
27243
-
27244
- Basic Usage:
27245
- ------------
27246
-
27247
- ```js
27248
- let promise = new Promise(function(resolve, reject) {
27249
- // on success
27250
- resolve(value);
27251
-
27252
- // on failure
27253
- reject(reason);
27254
- });
27255
-
27256
- promise.then(function(value) {
27257
- // on fulfillment
27258
- }, function(reason) {
27259
- // on rejection
27260
- });
27261
- ```
27262
-
27263
- Advanced Usage:
27264
- ---------------
27265
-
27266
- Promises shine when abstracting away asynchronous interactions such as
27267
- `XMLHttpRequest`s.
27268
-
27269
- ```js
27270
- function getJSON(url) {
27271
- return new Promise(function(resolve, reject){
27272
- let xhr = new XMLHttpRequest();
27273
-
27274
- xhr.open('GET', url);
27275
- xhr.onreadystatechange = handler;
27276
- xhr.responseType = 'json';
27277
- xhr.setRequestHeader('Accept', 'application/json');
27278
- xhr.send();
27279
-
27280
- function handler() {
27281
- if (this.readyState === this.DONE) {
27282
- if (this.status === 200) {
27283
- resolve(this.response);
27284
- } else {
27285
- reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));
27286
- }
27287
- }
27288
- };
27289
- });
27290
- }
27291
-
27292
- getJSON('/posts.json').then(function(json) {
27293
- // on fulfillment
27294
- }, function(reason) {
27295
- // on rejection
27296
- });
27297
- ```
27298
-
27299
- Unlike callbacks, promises are great composable primitives.
27300
-
27301
- ```js
27302
- Promise.all([
27303
- getJSON('/posts'),
27304
- getJSON('/comments')
27305
- ]).then(function(values){
27306
- values[0] // => postsJSON
27307
- values[1] // => commentsJSON
27308
-
27309
- return values;
27310
- });
27311
- ```
27312
-
27313
- @class Promise
27314
- @param {function} resolver
27315
- Useful for tooling.
27316
- @constructor
27317
- */
27318
- function Promise(resolver) {
27319
- this[PROMISE_ID] = nextId();
27320
- this._result = this._state = undefined;
27321
- this._subscribers = [];
27322
-
27323
- if (noop !== resolver) {
27324
- typeof resolver !== 'function' && needsResolver();
27325
- this instanceof Promise ? initializePromise(this, resolver) : needsNew();
27326
- }
27327
- }
27328
-
27329
- Promise.all = all;
27330
- Promise.race = race;
27331
- Promise.resolve = resolve;
27332
- Promise.reject = reject;
27333
- Promise._setScheduler = setScheduler;
27334
- Promise._setAsap = setAsap;
27335
- Promise._asap = asap;
27336
-
27337
- Promise.prototype = {
27338
- constructor: Promise,
27339
-
27340
- /**
27341
- The primary way of interacting with a promise is through its `then` method,
27342
- which registers callbacks to receive either a promise's eventual value or the
27343
- reason why the promise cannot be fulfilled.
27344
-
27345
- ```js
27346
- findUser().then(function(user){
27347
- // user is available
27348
- }, function(reason){
27349
- // user is unavailable, and you are given the reason why
27350
- });
27351
- ```
27352
-
27353
- Chaining
27354
- --------
27355
-
27356
- The return value of `then` is itself a promise. This second, 'downstream'
27357
- promise is resolved with the return value of the first promise's fulfillment
27358
- or rejection handler, or rejected if the handler throws an exception.
27359
-
27360
- ```js
27361
- findUser().then(function (user) {
27362
- return user.name;
27363
- }, function (reason) {
27364
- return 'default name';
27365
- }).then(function (userName) {
27366
- // If `findUser` fulfilled, `userName` will be the user's name, otherwise it
27367
- // will be `'default name'`
27368
- });
27369
-
27370
- findUser().then(function (user) {
27371
- throw new Error('Found user, but still unhappy');
27372
- }, function (reason) {
27373
- throw new Error('`findUser` rejected and we're unhappy');
27374
- }).then(function (value) {
27375
- // never reached
27376
- }, function (reason) {
27377
- // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.
27378
- // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'.
27379
- });
27380
- ```
27381
- If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.
27382
-
27383
- ```js
27384
- findUser().then(function (user) {
27385
- throw new PedagogicalException('Upstream error');
27386
- }).then(function (value) {
27387
- // never reached
27388
- }).then(function (value) {
27389
- // never reached
27390
- }, function (reason) {
27391
- // The `PedgagocialException` is propagated all the way down to here
27392
- });
27393
- ```
27394
-
27395
- Assimilation
27396
- ------------
27397
-
27398
- Sometimes the value you want to propagate to a downstream promise can only be
27399
- retrieved asynchronously. This can be achieved by returning a promise in the
27400
- fulfillment or rejection handler. The downstream promise will then be pending
27401
- until the returned promise is settled. This is called *assimilation*.
27402
-
27403
- ```js
27404
- findUser().then(function (user) {
27405
- return findCommentsByAuthor(user);
27406
- }).then(function (comments) {
27407
- // The user's comments are now available
27408
- });
27409
- ```
27410
-
27411
- If the assimliated promise rejects, then the downstream promise will also reject.
27412
-
27413
- ```js
27414
- findUser().then(function (user) {
27415
- return findCommentsByAuthor(user);
27416
- }).then(function (comments) {
27417
- // If `findCommentsByAuthor` fulfills, we'll have the value here
27418
- }, function (reason) {
27419
- // If `findCommentsByAuthor` rejects, we'll have the reason here
27420
- });
27421
- ```
27422
-
27423
- Simple Example
27424
- --------------
27425
-
27426
- Synchronous Example
27427
-
27428
- ```javascript
27429
- let result;
27430
-
27431
- try {
27432
- result = findResult();
27433
- // success
27434
- } catch(reason) {
27435
- // failure
27436
- }
27437
- ```
27438
-
27439
- Errback Example
27440
-
27441
- ```js
27442
- findResult(function(result, err){
27443
- if (err) {
27444
- // failure
27445
- } else {
27446
- // success
27447
- }
27448
- });
27449
- ```
27450
-
27451
- Promise Example;
27452
-
27453
- ```javascript
27454
- findResult().then(function(result){
27455
- // success
27456
- }, function(reason){
27457
- // failure
27458
- });
27459
- ```
27460
-
27461
- Advanced Example
27462
- --------------
27463
-
27464
- Synchronous Example
27465
-
27466
- ```javascript
27467
- let author, books;
27468
-
27469
- try {
27470
- author = findAuthor();
27471
- books = findBooksByAuthor(author);
27472
- // success
27473
- } catch(reason) {
27474
- // failure
27475
- }
27476
- ```
27477
-
27478
- Errback Example
27479
-
27480
- ```js
27481
-
27482
- function foundBooks(books) {
27483
-
27484
- }
27485
-
27486
- function failure(reason) {
27487
-
27488
- }
27489
-
27490
- findAuthor(function(author, err){
27491
- if (err) {
27492
- failure(err);
27493
- // failure
27494
- } else {
27495
- try {
27496
- findBoooksByAuthor(author, function(books, err) {
27497
- if (err) {
27498
- failure(err);
27499
- } else {
27500
- try {
27501
- foundBooks(books);
27502
- } catch(reason) {
27503
- failure(reason);
27504
- }
27505
- }
27506
- });
27507
- } catch(error) {
27508
- failure(err);
27509
- }
27510
- // success
27511
- }
27512
- });
27513
- ```
27514
-
27515
- Promise Example;
27516
-
27517
- ```javascript
27518
- findAuthor().
27519
- then(findBooksByAuthor).
27520
- then(function(books){
27521
- // found books
27522
- }).catch(function(reason){
27523
- // something went wrong
27524
- });
27525
- ```
27526
-
27527
- @method then
27528
- @param {Function} onFulfilled
27529
- @param {Function} onRejected
27530
- Useful for tooling.
27531
- @return {Promise}
27532
- */
27533
- then: then,
27534
-
27535
- /**
27536
- `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same
27537
- as the catch block of a try/catch statement.
27538
-
27539
- ```js
27540
- function findAuthor(){
27541
- throw new Error('couldn't find that author');
27542
- }
27543
-
27544
- // synchronous
27545
- try {
27546
- findAuthor();
27547
- } catch(reason) {
27548
- // something went wrong
27549
- }
27550
-
27551
- // async with promises
27552
- findAuthor().catch(function(reason){
27553
- // something went wrong
27554
- });
27555
- ```
27556
-
27557
- @method catch
27558
- @param {Function} onRejection
27559
- Useful for tooling.
27560
- @return {Promise}
27561
- */
27562
- 'catch': function _catch(onRejection) {
27563
- return this.then(null, onRejection);
27564
- }
27565
- };
27566
-
27567
- function polyfill() {
27568
- var local = undefined;
27569
-
27570
- if (typeof global !== 'undefined') {
27571
- local = global;
27572
- } else if (typeof self !== 'undefined') {
27573
- local = self;
27574
- } else {
27575
- try {
27576
- local = Function('return this')();
27577
- } catch (e) {
27578
- throw new Error('polyfill failed because global object is unavailable in this environment');
27579
- }
27580
- }
27581
-
27582
- var P = local.Promise;
27583
-
27584
- if (P) {
27585
- var promiseToString = null;
27586
- try {
27587
- promiseToString = Object.prototype.toString.call(P.resolve());
27588
- } catch (e) {
27589
- // silently ignored
27590
- }
27591
-
27592
- if (promiseToString === '[object Promise]' && !P.cast) {
27593
- return;
27594
- }
27595
- }
27596
-
27597
- local.Promise = Promise;
27598
- }
27599
-
27600
- // Strange compat..
27601
- Promise.polyfill = polyfill;
27602
- Promise.Promise = Promise;
27603
-
27604
- return Promise;
27605
-
27606
- })));
27607
-
27608
-
27609
- }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
27610
- },{"_process":213}],145:[function(require,module,exports){
27611
26542
  // Copyright Joyent, Inc. and other Node contributors.
27612
26543
  //
27613
26544
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -27911,7 +26842,7 @@ function isUndefined(arg) {
27911
26842
  return arg === void 0;
27912
26843
  }
27913
26844
 
27914
- },{}],146:[function(require,module,exports){
26845
+ },{}],145:[function(require,module,exports){
27915
26846
  (function (Buffer){
27916
26847
  var md5 = require('create-hash/md5')
27917
26848
  module.exports = EVP_BytesToKey
@@ -27983,7 +26914,7 @@ function EVP_BytesToKey (password, salt, keyLen, ivLen) {
27983
26914
  }
27984
26915
 
27985
26916
  }).call(this,require("buffer").Buffer)
27986
- },{"buffer":104,"create-hash/md5":110}],147:[function(require,module,exports){
26917
+ },{"buffer":104,"create-hash/md5":110}],146:[function(require,module,exports){
27987
26918
  var hash = exports;
27988
26919
 
27989
26920
  hash.utils = require('./hash/utils');
@@ -28000,7 +26931,7 @@ hash.sha384 = hash.sha.sha384;
28000
26931
  hash.sha512 = hash.sha.sha512;
28001
26932
  hash.ripemd160 = hash.ripemd.ripemd160;
28002
26933
 
28003
- },{"./hash/common":148,"./hash/hmac":149,"./hash/ripemd":150,"./hash/sha":151,"./hash/utils":152}],148:[function(require,module,exports){
26934
+ },{"./hash/common":147,"./hash/hmac":148,"./hash/ripemd":149,"./hash/sha":150,"./hash/utils":151}],147:[function(require,module,exports){
28004
26935
  var hash = require('../hash');
28005
26936
  var utils = hash.utils;
28006
26937
  var assert = utils.assert;
@@ -28093,7 +27024,7 @@ BlockHash.prototype._pad = function pad() {
28093
27024
  return res;
28094
27025
  };
28095
27026
 
28096
- },{"../hash":147}],149:[function(require,module,exports){
27027
+ },{"../hash":146}],148:[function(require,module,exports){
28097
27028
  var hmac = exports;
28098
27029
 
28099
27030
  var hash = require('../hash');
@@ -28143,7 +27074,7 @@ Hmac.prototype.digest = function digest(enc) {
28143
27074
  return this.outer.digest(enc);
28144
27075
  };
28145
27076
 
28146
- },{"../hash":147}],150:[function(require,module,exports){
27077
+ },{"../hash":146}],149:[function(require,module,exports){
28147
27078
  var hash = require('../hash');
28148
27079
  var utils = hash.utils;
28149
27080
 
@@ -28289,7 +27220,7 @@ var sh = [
28289
27220
  8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11
28290
27221
  ];
28291
27222
 
28292
- },{"../hash":147}],151:[function(require,module,exports){
27223
+ },{"../hash":146}],150:[function(require,module,exports){
28293
27224
  var hash = require('../hash');
28294
27225
  var utils = hash.utils;
28295
27226
  var assert = utils.assert;
@@ -28855,7 +27786,7 @@ function g1_512_lo(xh, xl) {
28855
27786
  return r;
28856
27787
  }
28857
27788
 
28858
- },{"../hash":147}],152:[function(require,module,exports){
27789
+ },{"../hash":146}],151:[function(require,module,exports){
28859
27790
  var utils = exports;
28860
27791
  var inherits = require('inherits');
28861
27792
 
@@ -29114,7 +28045,7 @@ function shr64_lo(ah, al, num) {
29114
28045
  };
29115
28046
  exports.shr64_lo = shr64_lo;
29116
28047
 
29117
- },{"inherits":156}],153:[function(require,module,exports){
28048
+ },{"inherits":155}],152:[function(require,module,exports){
29118
28049
  'use strict';
29119
28050
 
29120
28051
  var hash = require('hash.js');
@@ -29229,7 +28160,7 @@ HmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) {
29229
28160
  return utils.encode(res, enc);
29230
28161
  };
29231
28162
 
29232
- },{"hash.js":147,"minimalistic-assert":189,"minimalistic-crypto-utils":190}],154:[function(require,module,exports){
28163
+ },{"hash.js":146,"minimalistic-assert":188,"minimalistic-crypto-utils":189}],153:[function(require,module,exports){
29233
28164
  exports.read = function (buffer, offset, isLE, mLen, nBytes) {
29234
28165
  var e, m
29235
28166
  var eLen = nBytes * 8 - mLen - 1
@@ -29315,7 +28246,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
29315
28246
  buffer[offset + i - d] |= s * 128
29316
28247
  }
29317
28248
 
29318
- },{}],155:[function(require,module,exports){
28249
+ },{}],154:[function(require,module,exports){
29319
28250
 
29320
28251
  var indexOf = [].indexOf;
29321
28252
 
@@ -29326,7 +28257,7 @@ module.exports = function(arr, obj){
29326
28257
  }
29327
28258
  return -1;
29328
28259
  };
29329
- },{}],156:[function(require,module,exports){
28260
+ },{}],155:[function(require,module,exports){
29330
28261
  if (typeof Object.create === 'function') {
29331
28262
  // implementation from standard node.js 'util' module
29332
28263
  module.exports = function inherits(ctor, superCtor) {
@@ -29351,7 +28282,7 @@ if (typeof Object.create === 'function') {
29351
28282
  }
29352
28283
  }
29353
28284
 
29354
- },{}],157:[function(require,module,exports){
28285
+ },{}],156:[function(require,module,exports){
29355
28286
  /*!
29356
28287
  * Determine if an object is a Buffer
29357
28288
  *
@@ -29374,14 +28305,14 @@ function isSlowBuffer (obj) {
29374
28305
  return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))
29375
28306
  }
29376
28307
 
29377
- },{}],158:[function(require,module,exports){
28308
+ },{}],157:[function(require,module,exports){
29378
28309
  var toString = {}.toString;
29379
28310
 
29380
28311
  module.exports = Array.isArray || function (arr) {
29381
28312
  return toString.call(arr) == '[object Array]';
29382
28313
  };
29383
28314
 
29384
- },{}],159:[function(require,module,exports){
28315
+ },{}],158:[function(require,module,exports){
29385
28316
  // the whatwg-fetch polyfill installs the fetch() function
29386
28317
  // on the global object (window or self)
29387
28318
  //
@@ -29389,7 +28320,7 @@ module.exports = Array.isArray || function (arr) {
29389
28320
  require('whatwg-fetch');
29390
28321
  module.exports = self.fetch.bind(self);
29391
28322
 
29392
- },{"whatwg-fetch":320}],160:[function(require,module,exports){
28323
+ },{"whatwg-fetch":319}],159:[function(require,module,exports){
29393
28324
  (function (Buffer){
29394
28325
  'use strict';
29395
28326
 
@@ -29591,7 +28522,7 @@ function joseToDer(signature, alg) {
29591
28522
  return dst;
29592
28523
  }
29593
28524
  }).call(this,require("buffer").Buffer)
29594
- },{"buffer":104}],161:[function(require,module,exports){
28525
+ },{"buffer":104}],160:[function(require,module,exports){
29595
28526
  'use strict';
29596
28527
 
29597
28528
  Object.defineProperty(exports, "__esModule", {
@@ -29607,7 +28538,7 @@ var cryptoClients = {
29607
28538
 
29608
28539
  exports.SECP256K1Client = _secp256k.SECP256K1Client;
29609
28540
  exports.cryptoClients = cryptoClients;
29610
- },{"./secp256k1":162}],162:[function(require,module,exports){
28541
+ },{"./secp256k1":161}],161:[function(require,module,exports){
29611
28542
  (function (Buffer){
29612
28543
  'use strict';
29613
28544
 
@@ -29742,7 +28673,7 @@ SECP256K1Client.keyEncoder = new _keyEncoder2.default({
29742
28673
  curve: SECP256K1Client.ec
29743
28674
  });
29744
28675
  }).call(this,require("buffer").Buffer)
29745
- },{"../errors":164,"./ecdsaSigFormatter":160,"buffer":104,"crypto":112,"elliptic":128,"key-encoder":168,"validator":255}],163:[function(require,module,exports){
28676
+ },{"../errors":163,"./ecdsaSigFormatter":159,"buffer":104,"crypto":112,"elliptic":128,"key-encoder":167,"validator":254}],162:[function(require,module,exports){
29746
28677
  'use strict';
29747
28678
 
29748
28679
  Object.defineProperty(exports, "__esModule", {
@@ -29777,7 +28708,7 @@ function decodeToken(token) {
29777
28708
  signature: signature
29778
28709
  };
29779
28710
  }
29780
- },{"./errors":164,"base64url":47}],164:[function(require,module,exports){
28711
+ },{"./errors":163,"base64url":47}],163:[function(require,module,exports){
29781
28712
  'use strict';
29782
28713
 
29783
28714
  Object.defineProperty(exports, "__esModule", {
@@ -29821,7 +28752,7 @@ var InvalidTokenError = exports.InvalidTokenError = function (_Error2) {
29821
28752
 
29822
28753
  return InvalidTokenError;
29823
28754
  }(Error);
29824
- },{}],165:[function(require,module,exports){
28755
+ },{}],164:[function(require,module,exports){
29825
28756
  'use strict';
29826
28757
 
29827
28758
  Object.defineProperty(exports, "__esModule", {
@@ -29890,7 +28821,7 @@ Object.defineProperty(exports, 'cryptoClients', {
29890
28821
  return _cryptoClients.cryptoClients;
29891
28822
  }
29892
28823
  });
29893
- },{"./cryptoClients":161,"./decode":163,"./errors":164,"./signer":166,"./verifier":167}],166:[function(require,module,exports){
28824
+ },{"./cryptoClients":160,"./decode":162,"./errors":163,"./signer":165,"./verifier":166}],165:[function(require,module,exports){
29894
28825
  'use strict';
29895
28826
 
29896
28827
  Object.defineProperty(exports, "__esModule", {
@@ -29980,7 +28911,7 @@ var TokenSigner = exports.TokenSigner = function () {
29980
28911
 
29981
28912
  return TokenSigner;
29982
28913
  }();
29983
- },{"./cryptoClients":161,"./decode":163,"base64url":47}],167:[function(require,module,exports){
28914
+ },{"./cryptoClients":160,"./decode":162,"base64url":47}],166:[function(require,module,exports){
29984
28915
  'use strict';
29985
28916
 
29986
28917
  Object.defineProperty(exports, "__esModule", {
@@ -30043,11 +28974,11 @@ var TokenVerifier = exports.TokenVerifier = function () {
30043
28974
 
30044
28975
  return TokenVerifier;
30045
28976
  }();
30046
- },{"./cryptoClients":161,"./decode":163,"base64url":47}],168:[function(require,module,exports){
28977
+ },{"./cryptoClients":160,"./decode":162,"base64url":47}],167:[function(require,module,exports){
30047
28978
  'use strict'
30048
28979
 
30049
28980
  module.exports = require('./lib/key-encoder')
30050
- },{"./lib/key-encoder":169}],169:[function(require,module,exports){
28981
+ },{"./lib/key-encoder":168}],168:[function(require,module,exports){
30051
28982
  (function (Buffer){
30052
28983
  'use strict'
30053
28984
 
@@ -30213,7 +29144,7 @@ KeyEncoder.prototype.encodePublic = function(publicKey, originalFormat, destinat
30213
29144
 
30214
29145
  module.exports = KeyEncoder
30215
29146
  }).call(this,require("buffer").Buffer)
30216
- },{"asn1.js":26,"bn.js":170,"buffer":104,"elliptic":171}],170:[function(require,module,exports){
29147
+ },{"asn1.js":26,"bn.js":169,"buffer":104,"elliptic":170}],169:[function(require,module,exports){
30217
29148
  (function (module, exports) {
30218
29149
 
30219
29150
  'use strict';
@@ -32662,7 +31593,7 @@ Mont.prototype.invm = function invm(a) {
32662
31593
 
32663
31594
  })(typeof module === 'undefined' || module, this);
32664
31595
 
32665
- },{}],171:[function(require,module,exports){
31596
+ },{}],170:[function(require,module,exports){
32666
31597
  'use strict';
32667
31598
 
32668
31599
  var elliptic = exports;
@@ -32678,7 +31609,7 @@ elliptic.curves = require('./elliptic/curves');
32678
31609
  elliptic.ec = require('./elliptic/ec');
32679
31610
  elliptic.eddsa = require('./elliptic/eddsa');
32680
31611
 
32681
- },{"../package.json":187,"./elliptic/curve":174,"./elliptic/curves":177,"./elliptic/ec":178,"./elliptic/eddsa":181,"./elliptic/hmac-drbg":184,"./elliptic/utils":186,"brorand":71}],172:[function(require,module,exports){
31612
+ },{"../package.json":186,"./elliptic/curve":173,"./elliptic/curves":176,"./elliptic/ec":177,"./elliptic/eddsa":180,"./elliptic/hmac-drbg":183,"./elliptic/utils":185,"brorand":71}],171:[function(require,module,exports){
32682
31613
  'use strict';
32683
31614
 
32684
31615
  var bn = require('bn.js');
@@ -33031,7 +31962,7 @@ BasePoint.prototype.dblp = function dblp(k) {
33031
31962
  return r;
33032
31963
  };
33033
31964
 
33034
- },{"../../elliptic":171,"bn.js":170}],173:[function(require,module,exports){
31965
+ },{"../../elliptic":170,"bn.js":169}],172:[function(require,module,exports){
33035
31966
  'use strict';
33036
31967
 
33037
31968
  var curve = require('../curve');
@@ -33439,9 +32370,9 @@ Point.prototype.eq = function eq(other) {
33439
32370
  Point.prototype.toP = Point.prototype.normalize;
33440
32371
  Point.prototype.mixedAdd = Point.prototype.add;
33441
32372
 
33442
- },{"../../elliptic":171,"../curve":174,"bn.js":170,"inherits":156}],174:[function(require,module,exports){
32373
+ },{"../../elliptic":170,"../curve":173,"bn.js":169,"inherits":155}],173:[function(require,module,exports){
33443
32374
  arguments[4][131][0].apply(exports,arguments)
33444
- },{"./base":172,"./edwards":173,"./mont":175,"./short":176,"dup":131}],175:[function(require,module,exports){
32375
+ },{"./base":171,"./edwards":172,"./mont":174,"./short":175,"dup":131}],174:[function(require,module,exports){
33445
32376
  'use strict';
33446
32377
 
33447
32378
  var curve = require('../curve');
@@ -33619,7 +32550,7 @@ Point.prototype.getX = function getX() {
33619
32550
  return this.x.fromRed();
33620
32551
  };
33621
32552
 
33622
- },{"../../elliptic":171,"../curve":174,"bn.js":170,"inherits":156}],176:[function(require,module,exports){
32553
+ },{"../../elliptic":170,"../curve":173,"bn.js":169,"inherits":155}],175:[function(require,module,exports){
33623
32554
  'use strict';
33624
32555
 
33625
32556
  var curve = require('../curve');
@@ -34528,7 +33459,7 @@ JPoint.prototype.isInfinity = function isInfinity() {
34528
33459
  return this.z.cmpn(0) === 0;
34529
33460
  };
34530
33461
 
34531
- },{"../../elliptic":171,"../curve":174,"bn.js":170,"inherits":156}],177:[function(require,module,exports){
33462
+ },{"../../elliptic":170,"../curve":173,"bn.js":169,"inherits":155}],176:[function(require,module,exports){
34532
33463
  'use strict';
34533
33464
 
34534
33465
  var curves = exports;
@@ -34735,7 +33666,7 @@ defineCurve('secp256k1', {
34735
33666
  ]
34736
33667
  });
34737
33668
 
34738
- },{"../elliptic":171,"./precomputed/secp256k1":185,"hash.js":147}],178:[function(require,module,exports){
33669
+ },{"../elliptic":170,"./precomputed/secp256k1":184,"hash.js":146}],177:[function(require,module,exports){
34739
33670
  'use strict';
34740
33671
 
34741
33672
  var bn = require('bn.js');
@@ -34947,7 +33878,7 @@ EC.prototype.getKeyRecoveryParam = function(e, signature, Q, enc) {
34947
33878
  throw new Error('Unable to find valid recovery factor');
34948
33879
  };
34949
33880
 
34950
- },{"../../elliptic":171,"./key":179,"./signature":180,"bn.js":170}],179:[function(require,module,exports){
33881
+ },{"../../elliptic":170,"./key":178,"./signature":179,"bn.js":169}],178:[function(require,module,exports){
34951
33882
  'use strict';
34952
33883
 
34953
33884
  var bn = require('bn.js');
@@ -35056,7 +33987,7 @@ KeyPair.prototype.inspect = function inspect() {
35056
33987
  ' pub: ' + (this.pub && this.pub.inspect()) + ' >';
35057
33988
  };
35058
33989
 
35059
- },{"bn.js":170}],180:[function(require,module,exports){
33990
+ },{"bn.js":169}],179:[function(require,module,exports){
35060
33991
  'use strict';
35061
33992
 
35062
33993
  var bn = require('bn.js');
@@ -35193,9 +34124,9 @@ Signature.prototype.toDER = function toDER(enc) {
35193
34124
  return utils.encode(res, enc);
35194
34125
  };
35195
34126
 
35196
- },{"../../elliptic":171,"bn.js":170}],181:[function(require,module,exports){
34127
+ },{"../../elliptic":170,"bn.js":169}],180:[function(require,module,exports){
35197
34128
  arguments[4][138][0].apply(exports,arguments)
35198
- },{"../../elliptic":171,"./key":182,"./signature":183,"dup":138,"hash.js":147}],182:[function(require,module,exports){
34129
+ },{"../../elliptic":170,"./key":181,"./signature":182,"dup":138,"hash.js":146}],181:[function(require,module,exports){
35199
34130
  'use strict';
35200
34131
 
35201
34132
  var elliptic = require('../../elliptic');
@@ -35293,7 +34224,7 @@ KeyPair.prototype.getPublic = function getPublic(enc) {
35293
34224
 
35294
34225
  module.exports = KeyPair;
35295
34226
 
35296
- },{"../../elliptic":171}],183:[function(require,module,exports){
34227
+ },{"../../elliptic":170}],182:[function(require,module,exports){
35297
34228
  'use strict';
35298
34229
 
35299
34230
  var bn = require('bn.js');
@@ -35361,7 +34292,7 @@ Signature.prototype.toHex = function toHex() {
35361
34292
 
35362
34293
  module.exports = Signature;
35363
34294
 
35364
- },{"../../elliptic":171,"bn.js":170}],184:[function(require,module,exports){
34295
+ },{"../../elliptic":170,"bn.js":169}],183:[function(require,module,exports){
35365
34296
  'use strict';
35366
34297
 
35367
34298
  var hash = require('hash.js');
@@ -35477,9 +34408,9 @@ HmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) {
35477
34408
  return utils.encode(res, enc);
35478
34409
  };
35479
34410
 
35480
- },{"../elliptic":171,"hash.js":147}],185:[function(require,module,exports){
34411
+ },{"../elliptic":170,"hash.js":146}],184:[function(require,module,exports){
35481
34412
  arguments[4][141][0].apply(exports,arguments)
35482
- },{"dup":141}],186:[function(require,module,exports){
34413
+ },{"dup":141}],185:[function(require,module,exports){
35483
34414
  'use strict';
35484
34415
 
35485
34416
  var utils = exports;
@@ -35654,7 +34585,7 @@ function intFromLE(bytes) {
35654
34585
  utils.intFromLE = intFromLE;
35655
34586
 
35656
34587
 
35657
- },{"bn.js":170}],187:[function(require,module,exports){
34588
+ },{"bn.js":169}],186:[function(require,module,exports){
35658
34589
  module.exports={
35659
34590
  "_args": [
35660
34591
  [
@@ -35756,7 +34687,7 @@ module.exports={
35756
34687
  "version": "5.2.1"
35757
34688
  }
35758
34689
 
35759
- },{}],188:[function(require,module,exports){
34690
+ },{}],187:[function(require,module,exports){
35760
34691
  var bn = require('bn.js');
35761
34692
  var brorand = require('brorand');
35762
34693
 
@@ -35871,7 +34802,7 @@ MillerRabin.prototype.getDivisor = function getDivisor(n, k) {
35871
34802
  return false;
35872
34803
  };
35873
34804
 
35874
- },{"bn.js":70,"brorand":71}],189:[function(require,module,exports){
34805
+ },{"bn.js":70,"brorand":71}],188:[function(require,module,exports){
35875
34806
  module.exports = assert;
35876
34807
 
35877
34808
  function assert(val, msg) {
@@ -35884,7 +34815,7 @@ assert.equal = function assertEqual(l, r, msg) {
35884
34815
  throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));
35885
34816
  };
35886
34817
 
35887
- },{}],190:[function(require,module,exports){
34818
+ },{}],189:[function(require,module,exports){
35888
34819
  'use strict';
35889
34820
 
35890
34821
  var utils = exports;
@@ -35944,7 +34875,7 @@ utils.encode = function encode(arr, enc) {
35944
34875
  return arr;
35945
34876
  };
35946
34877
 
35947
- },{}],191:[function(require,module,exports){
34878
+ },{}],190:[function(require,module,exports){
35948
34879
  /*
35949
34880
  object-assign
35950
34881
  (c) Sindre Sorhus
@@ -36036,7 +34967,7 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
36036
34967
  return to;
36037
34968
  };
36038
34969
 
36039
- },{}],192:[function(require,module,exports){
34970
+ },{}],191:[function(require,module,exports){
36040
34971
  module.exports={"2.16.840.1.101.3.4.1.1": "aes-128-ecb",
36041
34972
  "2.16.840.1.101.3.4.1.2": "aes-128-cbc",
36042
34973
  "2.16.840.1.101.3.4.1.3": "aes-128-ofb",
@@ -36050,7 +34981,7 @@ module.exports={"2.16.840.1.101.3.4.1.1": "aes-128-ecb",
36050
34981
  "2.16.840.1.101.3.4.1.43": "aes-256-ofb",
36051
34982
  "2.16.840.1.101.3.4.1.44": "aes-256-cfb"
36052
34983
  }
36053
- },{}],193:[function(require,module,exports){
34984
+ },{}],192:[function(require,module,exports){
36054
34985
  // from https://github.com/indutny/self-signed/blob/gh-pages/lib/asn1.js
36055
34986
  // Fedor, you are amazing.
36056
34987
 
@@ -36169,7 +35100,7 @@ exports.signature = asn1.define('signature', function () {
36169
35100
  )
36170
35101
  })
36171
35102
 
36172
- },{"asn1.js":196}],194:[function(require,module,exports){
35103
+ },{"asn1.js":195}],193:[function(require,module,exports){
36173
35104
  (function (Buffer){
36174
35105
  // adapted from https://github.com/apatil/pemstrip
36175
35106
  var findProc = /Proc-Type: 4,ENCRYPTED\r?\nDEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\r?\n\r?\n([0-9A-z\n\r\+\/\=]+)\r?\n/m
@@ -36203,7 +35134,7 @@ module.exports = function (okey, password) {
36203
35134
  }
36204
35135
 
36205
35136
  }).call(this,require("buffer").Buffer)
36206
- },{"browserify-aes":75,"buffer":104,"evp_bytestokey":146}],195:[function(require,module,exports){
35137
+ },{"browserify-aes":75,"buffer":104,"evp_bytestokey":145}],194:[function(require,module,exports){
36207
35138
  (function (Buffer){
36208
35139
  var asn1 = require('./asn1')
36209
35140
  var aesid = require('./aesid.json')
@@ -36308,9 +35239,9 @@ function decrypt (data, password) {
36308
35239
  }
36309
35240
 
36310
35241
  }).call(this,require("buffer").Buffer)
36311
- },{"./aesid.json":192,"./asn1":193,"./fixProc":194,"browserify-aes":75,"buffer":104,"pbkdf2":210}],196:[function(require,module,exports){
35242
+ },{"./aesid.json":191,"./asn1":192,"./fixProc":193,"browserify-aes":75,"buffer":104,"pbkdf2":209}],195:[function(require,module,exports){
36312
35243
  arguments[4][26][0].apply(exports,arguments)
36313
- },{"./asn1/api":197,"./asn1/base":199,"./asn1/constants":203,"./asn1/decoders":205,"./asn1/encoders":208,"bn.js":70,"dup":26}],197:[function(require,module,exports){
35244
+ },{"./asn1/api":196,"./asn1/base":198,"./asn1/constants":202,"./asn1/decoders":204,"./asn1/encoders":207,"bn.js":70,"dup":26}],196:[function(require,module,exports){
36314
35245
  var asn1 = require('../asn1');
36315
35246
  var inherits = require('inherits');
36316
35247
 
@@ -36373,11 +35304,11 @@ Entity.prototype.encode = function encode(data, enc, /* internal */ reporter) {
36373
35304
  return this._getEncoder(enc).encode(data, reporter);
36374
35305
  };
36375
35306
 
36376
- },{"../asn1":196,"inherits":156,"vm":319}],198:[function(require,module,exports){
35307
+ },{"../asn1":195,"inherits":155,"vm":318}],197:[function(require,module,exports){
36377
35308
  arguments[4][28][0].apply(exports,arguments)
36378
- },{"../base":199,"buffer":104,"dup":28,"inherits":156}],199:[function(require,module,exports){
35309
+ },{"../base":198,"buffer":104,"dup":28,"inherits":155}],198:[function(require,module,exports){
36379
35310
  arguments[4][29][0].apply(exports,arguments)
36380
- },{"./buffer":198,"./node":200,"./reporter":201,"dup":29}],200:[function(require,module,exports){
35311
+ },{"./buffer":197,"./node":199,"./reporter":200,"dup":29}],199:[function(require,module,exports){
36381
35312
  var Reporter = require('../base').Reporter;
36382
35313
  var EncoderBuffer = require('../base').EncoderBuffer;
36383
35314
  var DecoderBuffer = require('../base').DecoderBuffer;
@@ -37013,7 +35944,7 @@ Node.prototype._isPrintstr = function isPrintstr(str) {
37013
35944
  return /^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(str);
37014
35945
  };
37015
35946
 
37016
- },{"../base":199,"minimalistic-assert":189}],201:[function(require,module,exports){
35947
+ },{"../base":198,"minimalistic-assert":188}],200:[function(require,module,exports){
37017
35948
  var inherits = require('inherits');
37018
35949
 
37019
35950
  function Reporter(options) {
@@ -37136,11 +36067,11 @@ ReporterError.prototype.rethrow = function rethrow(msg) {
37136
36067
  return this;
37137
36068
  };
37138
36069
 
37139
- },{"inherits":156}],202:[function(require,module,exports){
36070
+ },{"inherits":155}],201:[function(require,module,exports){
37140
36071
  arguments[4][32][0].apply(exports,arguments)
37141
- },{"../constants":203,"dup":32}],203:[function(require,module,exports){
36072
+ },{"../constants":202,"dup":32}],202:[function(require,module,exports){
37142
36073
  arguments[4][33][0].apply(exports,arguments)
37143
- },{"./der":202,"dup":33}],204:[function(require,module,exports){
36074
+ },{"./der":201,"dup":33}],203:[function(require,module,exports){
37144
36075
  var inherits = require('inherits');
37145
36076
 
37146
36077
  var asn1 = require('../../asn1');
@@ -37466,9 +36397,9 @@ function derDecodeLen(buf, primitive, fail) {
37466
36397
  return len;
37467
36398
  }
37468
36399
 
37469
- },{"../../asn1":196,"inherits":156}],205:[function(require,module,exports){
36400
+ },{"../../asn1":195,"inherits":155}],204:[function(require,module,exports){
37470
36401
  arguments[4][35][0].apply(exports,arguments)
37471
- },{"./der":204,"./pem":206,"dup":35}],206:[function(require,module,exports){
36402
+ },{"./der":203,"./pem":205,"dup":35}],205:[function(require,module,exports){
37472
36403
  var inherits = require('inherits');
37473
36404
  var Buffer = require('buffer').Buffer;
37474
36405
 
@@ -37519,7 +36450,7 @@ PEMDecoder.prototype.decode = function decode(data, options) {
37519
36450
  return DERDecoder.prototype.decode.call(this, input, options);
37520
36451
  };
37521
36452
 
37522
- },{"./der":204,"buffer":104,"inherits":156}],207:[function(require,module,exports){
36453
+ },{"./der":203,"buffer":104,"inherits":155}],206:[function(require,module,exports){
37523
36454
  var inherits = require('inherits');
37524
36455
  var Buffer = require('buffer').Buffer;
37525
36456
 
@@ -37816,9 +36747,9 @@ function encodeTag(tag, primitive, cls, reporter) {
37816
36747
  return res;
37817
36748
  }
37818
36749
 
37819
- },{"../../asn1":196,"buffer":104,"inherits":156}],208:[function(require,module,exports){
36750
+ },{"../../asn1":195,"buffer":104,"inherits":155}],207:[function(require,module,exports){
37820
36751
  arguments[4][38][0].apply(exports,arguments)
37821
- },{"./der":207,"./pem":209,"dup":38}],209:[function(require,module,exports){
36752
+ },{"./der":206,"./pem":208,"dup":38}],208:[function(require,module,exports){
37822
36753
  var inherits = require('inherits');
37823
36754
 
37824
36755
  var DEREncoder = require('./der');
@@ -37841,7 +36772,7 @@ PEMEncoder.prototype.encode = function encode(data, options) {
37841
36772
  return out.join('\n');
37842
36773
  };
37843
36774
 
37844
- },{"./der":207,"inherits":156}],210:[function(require,module,exports){
36775
+ },{"./der":206,"inherits":155}],209:[function(require,module,exports){
37845
36776
  (function (process,Buffer){
37846
36777
  var createHmac = require('create-hmac')
37847
36778
  var checkParameters = require('./precondition')
@@ -37913,7 +36844,7 @@ exports.pbkdf2Sync = function (password, salt, iterations, keylen, digest) {
37913
36844
  }
37914
36845
 
37915
36846
  }).call(this,require('_process'),require("buffer").Buffer)
37916
- },{"./precondition":211,"_process":213,"buffer":104,"create-hmac":111}],211:[function(require,module,exports){
36847
+ },{"./precondition":210,"_process":212,"buffer":104,"create-hmac":111}],210:[function(require,module,exports){
37917
36848
  var MAX_ALLOC = Math.pow(2, 30) - 1 // default in iojs
37918
36849
  module.exports = function (iterations, keylen) {
37919
36850
  if (typeof iterations !== 'number') {
@@ -37933,7 +36864,7 @@ module.exports = function (iterations, keylen) {
37933
36864
  }
37934
36865
  }
37935
36866
 
37936
- },{}],212:[function(require,module,exports){
36867
+ },{}],211:[function(require,module,exports){
37937
36868
  (function (process){
37938
36869
  'use strict';
37939
36870
 
@@ -37980,7 +36911,7 @@ function nextTick(fn, arg1, arg2, arg3) {
37980
36911
  }
37981
36912
 
37982
36913
  }).call(this,require('_process'))
37983
- },{"_process":213}],213:[function(require,module,exports){
36914
+ },{"_process":212}],212:[function(require,module,exports){
37984
36915
  // shim for using process in browser
37985
36916
  var process = module.exports = {};
37986
36917
 
@@ -38162,7 +37093,7 @@ process.chdir = function (dir) {
38162
37093
  };
38163
37094
  process.umask = function() { return 0; };
38164
37095
 
38165
- },{}],214:[function(require,module,exports){
37096
+ },{}],213:[function(require,module,exports){
38166
37097
  exports.publicEncrypt = require('./publicEncrypt');
38167
37098
  exports.privateDecrypt = require('./privateDecrypt');
38168
37099
 
@@ -38173,7 +37104,7 @@ exports.privateEncrypt = function privateEncrypt(key, buf) {
38173
37104
  exports.publicDecrypt = function publicDecrypt(key, buf) {
38174
37105
  return exports.privateDecrypt(key, buf, true);
38175
37106
  };
38176
- },{"./privateDecrypt":216,"./publicEncrypt":217}],215:[function(require,module,exports){
37107
+ },{"./privateDecrypt":215,"./publicEncrypt":216}],214:[function(require,module,exports){
38177
37108
  (function (Buffer){
38178
37109
  var createHash = require('create-hash');
38179
37110
  module.exports = function (seed, len) {
@@ -38192,7 +37123,7 @@ function i2ops(c) {
38192
37123
  return out;
38193
37124
  }
38194
37125
  }).call(this,require("buffer").Buffer)
38195
- },{"buffer":104,"create-hash":108}],216:[function(require,module,exports){
37126
+ },{"buffer":104,"create-hash":108}],215:[function(require,module,exports){
38196
37127
  (function (Buffer){
38197
37128
  var parseKeys = require('parse-asn1');
38198
37129
  var mgf = require('./mgf');
@@ -38303,7 +37234,7 @@ function compare(a, b){
38303
37234
  return dif;
38304
37235
  }
38305
37236
  }).call(this,require("buffer").Buffer)
38306
- },{"./mgf":215,"./withPublic":218,"./xor":219,"bn.js":70,"browserify-rsa":91,"buffer":104,"create-hash":108,"parse-asn1":195}],217:[function(require,module,exports){
37237
+ },{"./mgf":214,"./withPublic":217,"./xor":218,"bn.js":70,"browserify-rsa":91,"buffer":104,"create-hash":108,"parse-asn1":194}],216:[function(require,module,exports){
38307
37238
  (function (Buffer){
38308
37239
  var parseKeys = require('parse-asn1');
38309
37240
  var randomBytes = require('randombytes');
@@ -38401,7 +37332,7 @@ function nonZero(len, crypto) {
38401
37332
  return out;
38402
37333
  }
38403
37334
  }).call(this,require("buffer").Buffer)
38404
- },{"./mgf":215,"./withPublic":218,"./xor":219,"bn.js":70,"browserify-rsa":91,"buffer":104,"create-hash":108,"parse-asn1":195,"randombytes":221}],218:[function(require,module,exports){
37335
+ },{"./mgf":214,"./withPublic":217,"./xor":218,"bn.js":70,"browserify-rsa":91,"buffer":104,"create-hash":108,"parse-asn1":194,"randombytes":220}],217:[function(require,module,exports){
38405
37336
  (function (Buffer){
38406
37337
  var bn = require('bn.js');
38407
37338
  function withPublic(paddedMsg, key) {
@@ -38414,7 +37345,7 @@ function withPublic(paddedMsg, key) {
38414
37345
 
38415
37346
  module.exports = withPublic;
38416
37347
  }).call(this,require("buffer").Buffer)
38417
- },{"bn.js":70,"buffer":104}],219:[function(require,module,exports){
37348
+ },{"bn.js":70,"buffer":104}],218:[function(require,module,exports){
38418
37349
  module.exports = function xor(a, b) {
38419
37350
  var len = a.length;
38420
37351
  var i = -1;
@@ -38423,7 +37354,7 @@ module.exports = function xor(a, b) {
38423
37354
  }
38424
37355
  return a
38425
37356
  };
38426
- },{}],220:[function(require,module,exports){
37357
+ },{}],219:[function(require,module,exports){
38427
37358
  'use strict';
38428
37359
  var strictUriEncode = require('strict-uri-encode');
38429
37360
  var objectAssign = require('object-assign');
@@ -38628,7 +37559,7 @@ exports.stringify = function (obj, opts) {
38628
37559
  }).join('&') : '';
38629
37560
  };
38630
37561
 
38631
- },{"object-assign":191,"strict-uri-encode":245}],221:[function(require,module,exports){
37562
+ },{"object-assign":190,"strict-uri-encode":244}],220:[function(require,module,exports){
38632
37563
  (function (process,global,Buffer){
38633
37564
  'use strict'
38634
37565
 
@@ -38668,10 +37599,10 @@ function randomBytes (size, cb) {
38668
37599
  }
38669
37600
 
38670
37601
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer)
38671
- },{"_process":213,"buffer":104}],222:[function(require,module,exports){
37602
+ },{"_process":212,"buffer":104}],221:[function(require,module,exports){
38672
37603
  module.exports = require("./lib/_stream_duplex.js")
38673
37604
 
38674
- },{"./lib/_stream_duplex.js":223}],223:[function(require,module,exports){
37605
+ },{"./lib/_stream_duplex.js":222}],222:[function(require,module,exports){
38675
37606
  // a duplex stream is just a stream that is both readable and writable.
38676
37607
  // Since JS doesn't have multiple prototypal inheritance, this class
38677
37608
  // prototypally inherits from Readable, and then parasitically from
@@ -38747,7 +37678,7 @@ function forEach(xs, f) {
38747
37678
  f(xs[i], i);
38748
37679
  }
38749
37680
  }
38750
- },{"./_stream_readable":225,"./_stream_writable":227,"core-util-is":106,"inherits":156,"process-nextick-args":212}],224:[function(require,module,exports){
37681
+ },{"./_stream_readable":224,"./_stream_writable":226,"core-util-is":106,"inherits":155,"process-nextick-args":211}],223:[function(require,module,exports){
38751
37682
  // a passthrough stream.
38752
37683
  // basically just the most minimal sort of Transform stream.
38753
37684
  // Every written chunk gets output as-is.
@@ -38774,7 +37705,7 @@ function PassThrough(options) {
38774
37705
  PassThrough.prototype._transform = function (chunk, encoding, cb) {
38775
37706
  cb(null, chunk);
38776
37707
  };
38777
- },{"./_stream_transform":226,"core-util-is":106,"inherits":156}],225:[function(require,module,exports){
37708
+ },{"./_stream_transform":225,"core-util-is":106,"inherits":155}],224:[function(require,module,exports){
38778
37709
  (function (process){
38779
37710
  'use strict';
38780
37711
 
@@ -39718,7 +38649,7 @@ function indexOf(xs, x) {
39718
38649
  return -1;
39719
38650
  }
39720
38651
  }).call(this,require('_process'))
39721
- },{"./_stream_duplex":223,"./internal/streams/BufferList":228,"_process":213,"buffer":104,"buffer-shims":102,"core-util-is":106,"events":145,"inherits":156,"isarray":158,"process-nextick-args":212,"string_decoder/":246,"util":72}],226:[function(require,module,exports){
38652
+ },{"./_stream_duplex":222,"./internal/streams/BufferList":227,"_process":212,"buffer":104,"buffer-shims":102,"core-util-is":106,"events":144,"inherits":155,"isarray":157,"process-nextick-args":211,"string_decoder/":245,"util":72}],225:[function(require,module,exports){
39722
38653
  // a transform stream is a readable/writable stream where you do
39723
38654
  // something with the data. Sometimes it's called a "filter",
39724
38655
  // but that's not a great name for it, since that implies a thing where
@@ -39901,7 +38832,7 @@ function done(stream, er, data) {
39901
38832
 
39902
38833
  return stream.push(null);
39903
38834
  }
39904
- },{"./_stream_duplex":223,"core-util-is":106,"inherits":156}],227:[function(require,module,exports){
38835
+ },{"./_stream_duplex":222,"core-util-is":106,"inherits":155}],226:[function(require,module,exports){
39905
38836
  (function (process){
39906
38837
  // A bit simpler than readable streams.
39907
38838
  // Implement an async ._write(chunk, encoding, cb), and it'll handle all
@@ -40458,7 +39389,7 @@ function CorkedRequest(state) {
40458
39389
  };
40459
39390
  }
40460
39391
  }).call(this,require('_process'))
40461
- },{"./_stream_duplex":223,"_process":213,"buffer":104,"buffer-shims":102,"core-util-is":106,"events":145,"inherits":156,"process-nextick-args":212,"util-deprecate":251}],228:[function(require,module,exports){
39392
+ },{"./_stream_duplex":222,"_process":212,"buffer":104,"buffer-shims":102,"core-util-is":106,"events":144,"inherits":155,"process-nextick-args":211,"util-deprecate":250}],227:[function(require,module,exports){
40462
39393
  'use strict';
40463
39394
 
40464
39395
  var Buffer = require('buffer').Buffer;
@@ -40523,10 +39454,10 @@ BufferList.prototype.concat = function (n) {
40523
39454
  }
40524
39455
  return ret;
40525
39456
  };
40526
- },{"buffer":104,"buffer-shims":102}],229:[function(require,module,exports){
39457
+ },{"buffer":104,"buffer-shims":102}],228:[function(require,module,exports){
40527
39458
  module.exports = require("./lib/_stream_passthrough.js")
40528
39459
 
40529
- },{"./lib/_stream_passthrough.js":224}],230:[function(require,module,exports){
39460
+ },{"./lib/_stream_passthrough.js":223}],229:[function(require,module,exports){
40530
39461
  (function (process){
40531
39462
  var Stream = (function (){
40532
39463
  try {
@@ -40546,13 +39477,13 @@ if (!process.browser && process.env.READABLE_STREAM === 'disable' && Stream) {
40546
39477
  }
40547
39478
 
40548
39479
  }).call(this,require('_process'))
40549
- },{"./lib/_stream_duplex.js":223,"./lib/_stream_passthrough.js":224,"./lib/_stream_readable.js":225,"./lib/_stream_transform.js":226,"./lib/_stream_writable.js":227,"_process":213}],231:[function(require,module,exports){
39480
+ },{"./lib/_stream_duplex.js":222,"./lib/_stream_passthrough.js":223,"./lib/_stream_readable.js":224,"./lib/_stream_transform.js":225,"./lib/_stream_writable.js":226,"_process":212}],230:[function(require,module,exports){
40550
39481
  module.exports = require("./lib/_stream_transform.js")
40551
39482
 
40552
- },{"./lib/_stream_transform.js":226}],232:[function(require,module,exports){
39483
+ },{"./lib/_stream_transform.js":225}],231:[function(require,module,exports){
40553
39484
  module.exports = require("./lib/_stream_writable.js")
40554
39485
 
40555
- },{"./lib/_stream_writable.js":227}],233:[function(require,module,exports){
39486
+ },{"./lib/_stream_writable.js":226}],232:[function(require,module,exports){
40556
39487
  (function (Buffer){
40557
39488
  /*
40558
39489
  CryptoJS v3.1.2
@@ -40766,10 +39697,10 @@ function ripemd160 (message) {
40766
39697
  module.exports = ripemd160
40767
39698
 
40768
39699
  }).call(this,require("buffer").Buffer)
40769
- },{"buffer":104}],234:[function(require,module,exports){
39700
+ },{"buffer":104}],233:[function(require,module,exports){
40770
39701
  module.exports = require('./lib/schema-inspector');
40771
39702
 
40772
- },{"./lib/schema-inspector":235}],235:[function(require,module,exports){
39703
+ },{"./lib/schema-inspector":234}],234:[function(require,module,exports){
40773
39704
  /*
40774
39705
  * This module is intended to be executed both on client side and server side.
40775
39706
  * No error should be thrown. (soft error handling)
@@ -42348,7 +41279,7 @@ module.exports = require('./lib/schema-inspector');
42348
41279
  };
42349
41280
  })();
42350
41281
 
42351
- },{"async":42}],236:[function(require,module,exports){
41282
+ },{"async":42}],235:[function(require,module,exports){
42352
41283
  (function (Buffer){
42353
41284
  // prototype class for hash functions
42354
41285
  function Hash (blockSize, finalSize) {
@@ -42421,7 +41352,7 @@ Hash.prototype._update = function () {
42421
41352
  module.exports = Hash
42422
41353
 
42423
41354
  }).call(this,require("buffer").Buffer)
42424
- },{"buffer":104}],237:[function(require,module,exports){
41355
+ },{"buffer":104}],236:[function(require,module,exports){
42425
41356
  var exports = module.exports = function SHA (algorithm) {
42426
41357
  algorithm = algorithm.toLowerCase()
42427
41358
 
@@ -42438,7 +41369,7 @@ exports.sha256 = require('./sha256')
42438
41369
  exports.sha384 = require('./sha384')
42439
41370
  exports.sha512 = require('./sha512')
42440
41371
 
42441
- },{"./sha":238,"./sha1":239,"./sha224":240,"./sha256":241,"./sha384":242,"./sha512":243}],238:[function(require,module,exports){
41372
+ },{"./sha":237,"./sha1":238,"./sha224":239,"./sha256":240,"./sha384":241,"./sha512":242}],237:[function(require,module,exports){
42442
41373
  (function (Buffer){
42443
41374
  /*
42444
41375
  * A JavaScript implementation of the Secure Hash Algorithm, SHA-0, as defined
@@ -42535,7 +41466,7 @@ Sha.prototype._hash = function () {
42535
41466
  module.exports = Sha
42536
41467
 
42537
41468
  }).call(this,require("buffer").Buffer)
42538
- },{"./hash":236,"buffer":104,"inherits":156}],239:[function(require,module,exports){
41469
+ },{"./hash":235,"buffer":104,"inherits":155}],238:[function(require,module,exports){
42539
41470
  (function (Buffer){
42540
41471
  /*
42541
41472
  * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
@@ -42637,7 +41568,7 @@ Sha1.prototype._hash = function () {
42637
41568
  module.exports = Sha1
42638
41569
 
42639
41570
  }).call(this,require("buffer").Buffer)
42640
- },{"./hash":236,"buffer":104,"inherits":156}],240:[function(require,module,exports){
41571
+ },{"./hash":235,"buffer":104,"inherits":155}],239:[function(require,module,exports){
42641
41572
  (function (Buffer){
42642
41573
  /**
42643
41574
  * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
@@ -42693,7 +41624,7 @@ Sha224.prototype._hash = function () {
42693
41624
  module.exports = Sha224
42694
41625
 
42695
41626
  }).call(this,require("buffer").Buffer)
42696
- },{"./hash":236,"./sha256":241,"buffer":104,"inherits":156}],241:[function(require,module,exports){
41627
+ },{"./hash":235,"./sha256":240,"buffer":104,"inherits":155}],240:[function(require,module,exports){
42697
41628
  (function (Buffer){
42698
41629
  /**
42699
41630
  * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
@@ -42831,7 +41762,7 @@ Sha256.prototype._hash = function () {
42831
41762
  module.exports = Sha256
42832
41763
 
42833
41764
  }).call(this,require("buffer").Buffer)
42834
- },{"./hash":236,"buffer":104,"inherits":156}],242:[function(require,module,exports){
41765
+ },{"./hash":235,"buffer":104,"inherits":155}],241:[function(require,module,exports){
42835
41766
  (function (Buffer){
42836
41767
  var inherits = require('inherits')
42837
41768
  var SHA512 = require('./sha512')
@@ -42891,7 +41822,7 @@ Sha384.prototype._hash = function () {
42891
41822
  module.exports = Sha384
42892
41823
 
42893
41824
  }).call(this,require("buffer").Buffer)
42894
- },{"./hash":236,"./sha512":243,"buffer":104,"inherits":156}],243:[function(require,module,exports){
41825
+ },{"./hash":235,"./sha512":242,"buffer":104,"inherits":155}],242:[function(require,module,exports){
42895
41826
  (function (Buffer){
42896
41827
  var inherits = require('inherits')
42897
41828
  var Hash = require('./hash')
@@ -43154,7 +42085,7 @@ Sha512.prototype._hash = function () {
43154
42085
  module.exports = Sha512
43155
42086
 
43156
42087
  }).call(this,require("buffer").Buffer)
43157
- },{"./hash":236,"buffer":104,"inherits":156}],244:[function(require,module,exports){
42088
+ },{"./hash":235,"buffer":104,"inherits":155}],243:[function(require,module,exports){
43158
42089
  // Copyright Joyent, Inc. and other Node contributors.
43159
42090
  //
43160
42091
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -43283,7 +42214,7 @@ Stream.prototype.pipe = function(dest, options) {
43283
42214
  return dest;
43284
42215
  };
43285
42216
 
43286
- },{"events":145,"inherits":156,"readable-stream/duplex.js":222,"readable-stream/passthrough.js":229,"readable-stream/readable.js":230,"readable-stream/transform.js":231,"readable-stream/writable.js":232}],245:[function(require,module,exports){
42217
+ },{"events":144,"inherits":155,"readable-stream/duplex.js":221,"readable-stream/passthrough.js":228,"readable-stream/readable.js":229,"readable-stream/transform.js":230,"readable-stream/writable.js":231}],244:[function(require,module,exports){
43287
42218
  'use strict';
43288
42219
  module.exports = function (str) {
43289
42220
  return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
@@ -43291,7 +42222,7 @@ module.exports = function (str) {
43291
42222
  });
43292
42223
  };
43293
42224
 
43294
- },{}],246:[function(require,module,exports){
42225
+ },{}],245:[function(require,module,exports){
43295
42226
  // Copyright Joyent, Inc. and other Node contributors.
43296
42227
  //
43297
42228
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -43514,7 +42445,7 @@ function base64DetectIncompleteChar(buffer) {
43514
42445
  this.charLength = this.charReceived ? 3 : 0;
43515
42446
  }
43516
42447
 
43517
- },{"buffer":104}],247:[function(require,module,exports){
42448
+ },{"buffer":104}],246:[function(require,module,exports){
43518
42449
  var inherits = require('inherits')
43519
42450
  var native = require('./native')
43520
42451
 
@@ -43643,7 +42574,7 @@ module.exports = {
43643
42574
  getValueTypeName: getValueTypeName
43644
42575
  }
43645
42576
 
43646
- },{"./native":250,"inherits":156}],248:[function(require,module,exports){
42577
+ },{"./native":249,"inherits":155}],247:[function(require,module,exports){
43647
42578
  (function (Buffer){
43648
42579
  var errors = require('./errors')
43649
42580
 
@@ -43718,7 +42649,7 @@ module.exports = {
43718
42649
  }
43719
42650
 
43720
42651
  }).call(this,{"isBuffer":require("../is-buffer/index.js")})
43721
- },{"../is-buffer/index.js":157,"./errors":247}],249:[function(require,module,exports){
42652
+ },{"../is-buffer/index.js":156,"./errors":246}],248:[function(require,module,exports){
43722
42653
  var ERRORS = require('./errors')
43723
42654
  var NATIVE = require('./native')
43724
42655
 
@@ -43953,7 +42884,7 @@ typeforce.TfPropertyTypeError = TfPropertyTypeError
43953
42884
 
43954
42885
  module.exports = typeforce
43955
42886
 
43956
- },{"./errors":247,"./extra":248,"./native":250}],250:[function(require,module,exports){
42887
+ },{"./errors":246,"./extra":247,"./native":249}],249:[function(require,module,exports){
43957
42888
  var types = {
43958
42889
  Array: function (value) { return value !== null && value !== undefined && value.constructor === Array },
43959
42890
  Boolean: function (value) { return typeof value === 'boolean' },
@@ -43973,7 +42904,7 @@ for (var typeName in types) {
43973
42904
 
43974
42905
  module.exports = types
43975
42906
 
43976
- },{}],251:[function(require,module,exports){
42907
+ },{}],250:[function(require,module,exports){
43977
42908
  (function (global){
43978
42909
 
43979
42910
  /**
@@ -44044,16 +42975,16 @@ function config (name) {
44044
42975
  }
44045
42976
 
44046
42977
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
44047
- },{}],252:[function(require,module,exports){
44048
- arguments[4][156][0].apply(exports,arguments)
44049
- },{"dup":156}],253:[function(require,module,exports){
42978
+ },{}],251:[function(require,module,exports){
42979
+ arguments[4][155][0].apply(exports,arguments)
42980
+ },{"dup":155}],252:[function(require,module,exports){
44050
42981
  module.exports = function isBuffer(arg) {
44051
42982
  return arg && typeof arg === 'object'
44052
42983
  && typeof arg.copy === 'function'
44053
42984
  && typeof arg.fill === 'function'
44054
42985
  && typeof arg.readUInt8 === 'function';
44055
42986
  }
44056
- },{}],254:[function(require,module,exports){
42987
+ },{}],253:[function(require,module,exports){
44057
42988
  (function (process,global){
44058
42989
  // Copyright Joyent, Inc. and other Node contributors.
44059
42990
  //
@@ -44643,7 +43574,7 @@ function hasOwnProperty(obj, prop) {
44643
43574
  }
44644
43575
 
44645
43576
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
44646
- },{"./support/isBuffer":253,"_process":213,"inherits":252}],255:[function(require,module,exports){
43577
+ },{"./support/isBuffer":252,"_process":212,"inherits":251}],254:[function(require,module,exports){
44647
43578
  'use strict';
44648
43579
 
44649
43580
  Object.defineProperty(exports, "__esModule", {
@@ -44960,7 +43891,7 @@ var validator = {
44960
43891
 
44961
43892
  exports.default = validator;
44962
43893
  module.exports = exports['default'];
44963
- },{"./lib/blacklist":257,"./lib/contains":258,"./lib/equals":259,"./lib/escape":260,"./lib/isAfter":261,"./lib/isAlpha":262,"./lib/isAlphanumeric":263,"./lib/isAscii":264,"./lib/isBase64":265,"./lib/isBefore":266,"./lib/isBoolean":267,"./lib/isByteLength":268,"./lib/isCreditCard":269,"./lib/isCurrency":270,"./lib/isDataURI":271,"./lib/isDecimal":272,"./lib/isDivisibleBy":273,"./lib/isEmail":274,"./lib/isEmpty":275,"./lib/isFQDN":276,"./lib/isFloat":277,"./lib/isFullWidth":278,"./lib/isHalfWidth":279,"./lib/isHexColor":280,"./lib/isHexadecimal":281,"./lib/isIP":282,"./lib/isISBN":283,"./lib/isISIN":284,"./lib/isISO8601":285,"./lib/isISSN":286,"./lib/isIn":287,"./lib/isInt":288,"./lib/isJSON":289,"./lib/isLength":290,"./lib/isLowercase":291,"./lib/isMACAddress":292,"./lib/isMD5":293,"./lib/isMobilePhone":294,"./lib/isMongoId":295,"./lib/isMultibyte":296,"./lib/isNumeric":297,"./lib/isSurrogatePair":298,"./lib/isURL":299,"./lib/isUUID":300,"./lib/isUppercase":301,"./lib/isVariableWidth":302,"./lib/isWhitelisted":303,"./lib/ltrim":304,"./lib/matches":305,"./lib/normalizeEmail":306,"./lib/rtrim":307,"./lib/stripLow":308,"./lib/toBoolean":309,"./lib/toDate":310,"./lib/toFloat":311,"./lib/toInt":312,"./lib/trim":313,"./lib/unescape":314,"./lib/util/toString":317,"./lib/whitelist":318}],256:[function(require,module,exports){
43894
+ },{"./lib/blacklist":256,"./lib/contains":257,"./lib/equals":258,"./lib/escape":259,"./lib/isAfter":260,"./lib/isAlpha":261,"./lib/isAlphanumeric":262,"./lib/isAscii":263,"./lib/isBase64":264,"./lib/isBefore":265,"./lib/isBoolean":266,"./lib/isByteLength":267,"./lib/isCreditCard":268,"./lib/isCurrency":269,"./lib/isDataURI":270,"./lib/isDecimal":271,"./lib/isDivisibleBy":272,"./lib/isEmail":273,"./lib/isEmpty":274,"./lib/isFQDN":275,"./lib/isFloat":276,"./lib/isFullWidth":277,"./lib/isHalfWidth":278,"./lib/isHexColor":279,"./lib/isHexadecimal":280,"./lib/isIP":281,"./lib/isISBN":282,"./lib/isISIN":283,"./lib/isISO8601":284,"./lib/isISSN":285,"./lib/isIn":286,"./lib/isInt":287,"./lib/isJSON":288,"./lib/isLength":289,"./lib/isLowercase":290,"./lib/isMACAddress":291,"./lib/isMD5":292,"./lib/isMobilePhone":293,"./lib/isMongoId":294,"./lib/isMultibyte":295,"./lib/isNumeric":296,"./lib/isSurrogatePair":297,"./lib/isURL":298,"./lib/isUUID":299,"./lib/isUppercase":300,"./lib/isVariableWidth":301,"./lib/isWhitelisted":302,"./lib/ltrim":303,"./lib/matches":304,"./lib/normalizeEmail":305,"./lib/rtrim":306,"./lib/stripLow":307,"./lib/toBoolean":308,"./lib/toDate":309,"./lib/toFloat":310,"./lib/toInt":311,"./lib/trim":312,"./lib/unescape":313,"./lib/util/toString":316,"./lib/whitelist":317}],255:[function(require,module,exports){
44964
43895
  'use strict';
44965
43896
 
44966
43897
  Object.defineProperty(exports, "__esModule", {
@@ -45023,7 +43954,7 @@ for (var _locale, _i = 0; _i < arabicLocales.length; _i++) {
45023
43954
  alpha[_locale] = alpha.ar;
45024
43955
  alphanumeric[_locale] = alphanumeric.ar;
45025
43956
  }
45026
- },{}],257:[function(require,module,exports){
43957
+ },{}],256:[function(require,module,exports){
45027
43958
  'use strict';
45028
43959
 
45029
43960
  Object.defineProperty(exports, "__esModule", {
@@ -45042,7 +43973,7 @@ function blacklist(str, chars) {
45042
43973
  return str.replace(new RegExp('[' + chars + ']+', 'g'), '');
45043
43974
  }
45044
43975
  module.exports = exports['default'];
45045
- },{"./util/assertString":315}],258:[function(require,module,exports){
43976
+ },{"./util/assertString":314}],257:[function(require,module,exports){
45046
43977
  'use strict';
45047
43978
 
45048
43979
  Object.defineProperty(exports, "__esModule", {
@@ -45065,7 +43996,7 @@ function contains(str, elem) {
45065
43996
  return str.indexOf((0, _toString2.default)(elem)) >= 0;
45066
43997
  }
45067
43998
  module.exports = exports['default'];
45068
- },{"./util/assertString":315,"./util/toString":317}],259:[function(require,module,exports){
43999
+ },{"./util/assertString":314,"./util/toString":316}],258:[function(require,module,exports){
45069
44000
  'use strict';
45070
44001
 
45071
44002
  Object.defineProperty(exports, "__esModule", {
@@ -45084,7 +44015,7 @@ function equals(str, comparison) {
45084
44015
  return str === comparison;
45085
44016
  }
45086
44017
  module.exports = exports['default'];
45087
- },{"./util/assertString":315}],260:[function(require,module,exports){
44018
+ },{"./util/assertString":314}],259:[function(require,module,exports){
45088
44019
  'use strict';
45089
44020
 
45090
44021
  Object.defineProperty(exports, "__esModule", {
@@ -45103,7 +44034,7 @@ function escape(str) {
45103
44034
  return str.replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#x27;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\//g, '&#x2F;').replace(/\\/g, '&#x5C;').replace(/`/g, '&#96;');
45104
44035
  }
45105
44036
  module.exports = exports['default'];
45106
- },{"./util/assertString":315}],261:[function(require,module,exports){
44037
+ },{"./util/assertString":314}],260:[function(require,module,exports){
45107
44038
  'use strict';
45108
44039
 
45109
44040
  Object.defineProperty(exports, "__esModule", {
@@ -45130,7 +44061,7 @@ function isAfter(str) {
45130
44061
  return !!(original && comparison && original > comparison);
45131
44062
  }
45132
44063
  module.exports = exports['default'];
45133
- },{"./toDate":310,"./util/assertString":315}],262:[function(require,module,exports){
44064
+ },{"./toDate":309,"./util/assertString":314}],261:[function(require,module,exports){
45134
44065
  'use strict';
45135
44066
 
45136
44067
  Object.defineProperty(exports, "__esModule", {
@@ -45156,7 +44087,7 @@ function isAlpha(str) {
45156
44087
  throw new Error('Invalid locale \'' + locale + '\'');
45157
44088
  }
45158
44089
  module.exports = exports['default'];
45159
- },{"./alpha":256,"./util/assertString":315}],263:[function(require,module,exports){
44090
+ },{"./alpha":255,"./util/assertString":314}],262:[function(require,module,exports){
45160
44091
  'use strict';
45161
44092
 
45162
44093
  Object.defineProperty(exports, "__esModule", {
@@ -45182,7 +44113,7 @@ function isAlphanumeric(str) {
45182
44113
  throw new Error('Invalid locale \'' + locale + '\'');
45183
44114
  }
45184
44115
  module.exports = exports['default'];
45185
- },{"./alpha":256,"./util/assertString":315}],264:[function(require,module,exports){
44116
+ },{"./alpha":255,"./util/assertString":314}],263:[function(require,module,exports){
45186
44117
  'use strict';
45187
44118
 
45188
44119
  Object.defineProperty(exports, "__esModule", {
@@ -45205,7 +44136,7 @@ function isAscii(str) {
45205
44136
  return ascii.test(str);
45206
44137
  }
45207
44138
  module.exports = exports['default'];
45208
- },{"./util/assertString":315}],265:[function(require,module,exports){
44139
+ },{"./util/assertString":314}],264:[function(require,module,exports){
45209
44140
  'use strict';
45210
44141
 
45211
44142
  Object.defineProperty(exports, "__esModule", {
@@ -45231,7 +44162,7 @@ function isBase64(str) {
45231
44162
  return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && str[len - 1] === '=';
45232
44163
  }
45233
44164
  module.exports = exports['default'];
45234
- },{"./util/assertString":315}],266:[function(require,module,exports){
44165
+ },{"./util/assertString":314}],265:[function(require,module,exports){
45235
44166
  'use strict';
45236
44167
 
45237
44168
  Object.defineProperty(exports, "__esModule", {
@@ -45258,7 +44189,7 @@ function isBefore(str) {
45258
44189
  return !!(original && comparison && original < comparison);
45259
44190
  }
45260
44191
  module.exports = exports['default'];
45261
- },{"./toDate":310,"./util/assertString":315}],267:[function(require,module,exports){
44192
+ },{"./toDate":309,"./util/assertString":314}],266:[function(require,module,exports){
45262
44193
  'use strict';
45263
44194
 
45264
44195
  Object.defineProperty(exports, "__esModule", {
@@ -45277,7 +44208,7 @@ function isBoolean(str) {
45277
44208
  return ['true', 'false', '1', '0'].indexOf(str) >= 0;
45278
44209
  }
45279
44210
  module.exports = exports['default'];
45280
- },{"./util/assertString":315}],268:[function(require,module,exports){
44211
+ },{"./util/assertString":314}],267:[function(require,module,exports){
45281
44212
  'use strict';
45282
44213
 
45283
44214
  Object.defineProperty(exports, "__esModule", {
@@ -45311,7 +44242,7 @@ function isByteLength(str, options) {
45311
44242
  return len >= min && (typeof max === 'undefined' || len <= max);
45312
44243
  }
45313
44244
  module.exports = exports['default'];
45314
- },{"./util/assertString":315}],269:[function(require,module,exports){
44245
+ },{"./util/assertString":314}],268:[function(require,module,exports){
45315
44246
  'use strict';
45316
44247
 
45317
44248
  Object.defineProperty(exports, "__esModule", {
@@ -45357,7 +44288,7 @@ function isCreditCard(str) {
45357
44288
  return !!(sum % 10 === 0 ? sanitized : false);
45358
44289
  }
45359
44290
  module.exports = exports['default'];
45360
- },{"./util/assertString":315}],270:[function(require,module,exports){
44291
+ },{"./util/assertString":314}],269:[function(require,module,exports){
45361
44292
  'use strict';
45362
44293
 
45363
44294
  Object.defineProperty(exports, "__esModule", {
@@ -45446,7 +44377,7 @@ function isCurrency(str, options) {
45446
44377
  return currencyRegex(options).test(str);
45447
44378
  }
45448
44379
  module.exports = exports['default'];
45449
- },{"./util/assertString":315,"./util/merge":316}],271:[function(require,module,exports){
44380
+ },{"./util/assertString":314,"./util/merge":315}],270:[function(require,module,exports){
45450
44381
  'use strict';
45451
44382
 
45452
44383
  Object.defineProperty(exports, "__esModule", {
@@ -45467,7 +44398,7 @@ function isDataURI(str) {
45467
44398
  return dataURI.test(str);
45468
44399
  }
45469
44400
  module.exports = exports['default'];
45470
- },{"./util/assertString":315}],272:[function(require,module,exports){
44401
+ },{"./util/assertString":314}],271:[function(require,module,exports){
45471
44402
  'use strict';
45472
44403
 
45473
44404
  Object.defineProperty(exports, "__esModule", {
@@ -45488,7 +44419,7 @@ function isDecimal(str) {
45488
44419
  return str !== '' && decimal.test(str);
45489
44420
  }
45490
44421
  module.exports = exports['default'];
45491
- },{"./util/assertString":315}],273:[function(require,module,exports){
44422
+ },{"./util/assertString":314}],272:[function(require,module,exports){
45492
44423
  'use strict';
45493
44424
 
45494
44425
  Object.defineProperty(exports, "__esModule", {
@@ -45511,7 +44442,7 @@ function isDivisibleBy(str, num) {
45511
44442
  return (0, _toFloat2.default)(str) % parseInt(num, 10) === 0;
45512
44443
  }
45513
44444
  module.exports = exports['default'];
45514
- },{"./toFloat":311,"./util/assertString":315}],274:[function(require,module,exports){
44445
+ },{"./toFloat":310,"./util/assertString":314}],273:[function(require,module,exports){
45515
44446
  'use strict';
45516
44447
 
45517
44448
  Object.defineProperty(exports, "__esModule", {
@@ -45601,7 +44532,7 @@ function isEmail(str, options) {
45601
44532
  return true;
45602
44533
  }
45603
44534
  module.exports = exports['default'];
45604
- },{"./isByteLength":268,"./isFQDN":276,"./util/assertString":315,"./util/merge":316}],275:[function(require,module,exports){
44535
+ },{"./isByteLength":267,"./isFQDN":275,"./util/assertString":314,"./util/merge":315}],274:[function(require,module,exports){
45605
44536
  'use strict';
45606
44537
 
45607
44538
  Object.defineProperty(exports, "__esModule", {
@@ -45620,7 +44551,7 @@ function isEmpty(str) {
45620
44551
  return str.length === 0;
45621
44552
  }
45622
44553
  module.exports = exports['default'];
45623
- },{"./util/assertString":315}],276:[function(require,module,exports){
44554
+ },{"./util/assertString":314}],275:[function(require,module,exports){
45624
44555
  'use strict';
45625
44556
 
45626
44557
  Object.defineProperty(exports, "__esModule", {
@@ -45678,7 +44609,7 @@ function isFDQN(str, options) {
45678
44609
  return true;
45679
44610
  }
45680
44611
  module.exports = exports['default'];
45681
- },{"./util/assertString":315,"./util/merge":316}],277:[function(require,module,exports){
44612
+ },{"./util/assertString":314,"./util/merge":315}],276:[function(require,module,exports){
45682
44613
  'use strict';
45683
44614
 
45684
44615
  Object.defineProperty(exports, "__esModule", {
@@ -45703,7 +44634,7 @@ function isFloat(str, options) {
45703
44634
  return float.test(str) && (!options.hasOwnProperty('min') || str >= options.min) && (!options.hasOwnProperty('max') || str <= options.max) && (!options.hasOwnProperty('lt') || str < options.lt) && (!options.hasOwnProperty('gt') || str > options.gt);
45704
44635
  }
45705
44636
  module.exports = exports['default'];
45706
- },{"./util/assertString":315}],278:[function(require,module,exports){
44637
+ },{"./util/assertString":314}],277:[function(require,module,exports){
45707
44638
  'use strict';
45708
44639
 
45709
44640
  Object.defineProperty(exports, "__esModule", {
@@ -45724,7 +44655,7 @@ function isFullWidth(str) {
45724
44655
  (0, _assertString2.default)(str);
45725
44656
  return fullWidth.test(str);
45726
44657
  }
45727
- },{"./util/assertString":315}],279:[function(require,module,exports){
44658
+ },{"./util/assertString":314}],278:[function(require,module,exports){
45728
44659
  'use strict';
45729
44660
 
45730
44661
  Object.defineProperty(exports, "__esModule", {
@@ -45745,7 +44676,7 @@ function isHalfWidth(str) {
45745
44676
  (0, _assertString2.default)(str);
45746
44677
  return halfWidth.test(str);
45747
44678
  }
45748
- },{"./util/assertString":315}],280:[function(require,module,exports){
44679
+ },{"./util/assertString":314}],279:[function(require,module,exports){
45749
44680
  'use strict';
45750
44681
 
45751
44682
  Object.defineProperty(exports, "__esModule", {
@@ -45766,7 +44697,7 @@ function isHexColor(str) {
45766
44697
  return hexcolor.test(str);
45767
44698
  }
45768
44699
  module.exports = exports['default'];
45769
- },{"./util/assertString":315}],281:[function(require,module,exports){
44700
+ },{"./util/assertString":314}],280:[function(require,module,exports){
45770
44701
  'use strict';
45771
44702
 
45772
44703
  Object.defineProperty(exports, "__esModule", {
@@ -45787,7 +44718,7 @@ function isHexadecimal(str) {
45787
44718
  return hexadecimal.test(str);
45788
44719
  }
45789
44720
  module.exports = exports['default'];
45790
- },{"./util/assertString":315}],282:[function(require,module,exports){
44721
+ },{"./util/assertString":314}],281:[function(require,module,exports){
45791
44722
  'use strict';
45792
44723
 
45793
44724
  Object.defineProperty(exports, "__esModule", {
@@ -45869,7 +44800,7 @@ function isIP(str) {
45869
44800
  return false;
45870
44801
  }
45871
44802
  module.exports = exports['default'];
45872
- },{"./util/assertString":315}],283:[function(require,module,exports){
44803
+ },{"./util/assertString":314}],282:[function(require,module,exports){
45873
44804
  'use strict';
45874
44805
 
45875
44806
  Object.defineProperty(exports, "__esModule", {
@@ -45927,7 +44858,7 @@ function isISBN(str) {
45927
44858
  return false;
45928
44859
  }
45929
44860
  module.exports = exports['default'];
45930
- },{"./util/assertString":315}],284:[function(require,module,exports){
44861
+ },{"./util/assertString":314}],283:[function(require,module,exports){
45931
44862
  'use strict';
45932
44863
 
45933
44864
  Object.defineProperty(exports, "__esModule", {
@@ -45976,7 +44907,7 @@ function isISIN(str) {
45976
44907
  return parseInt(str.substr(str.length - 1), 10) === (10000 - sum) % 10;
45977
44908
  }
45978
44909
  module.exports = exports['default'];
45979
- },{"./util/assertString":315}],285:[function(require,module,exports){
44910
+ },{"./util/assertString":314}],284:[function(require,module,exports){
45980
44911
  'use strict';
45981
44912
 
45982
44913
  Object.defineProperty(exports, "__esModule", {
@@ -45999,7 +44930,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
45999
44930
  // from http://goo.gl/0ejHHW
46000
44931
  var iso8601 = exports.iso8601 = /^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;
46001
44932
  /* eslint-enable max-len */
46002
- },{"./util/assertString":315}],286:[function(require,module,exports){
44933
+ },{"./util/assertString":314}],285:[function(require,module,exports){
46003
44934
  'use strict';
46004
44935
 
46005
44936
  Object.defineProperty(exports, "__esModule", {
@@ -46058,7 +44989,7 @@ function isISSN(str) {
46058
44989
  return checksum % 11 === 0;
46059
44990
  }
46060
44991
  module.exports = exports['default'];
46061
- },{"./util/assertString":315}],287:[function(require,module,exports){
44992
+ },{"./util/assertString":314}],286:[function(require,module,exports){
46062
44993
  'use strict';
46063
44994
 
46064
44995
  Object.defineProperty(exports, "__esModule", {
@@ -46098,7 +45029,7 @@ function isIn(str, options) {
46098
45029
  return false;
46099
45030
  }
46100
45031
  module.exports = exports['default'];
46101
- },{"./util/assertString":315,"./util/toString":317}],288:[function(require,module,exports){
45032
+ },{"./util/assertString":314,"./util/toString":316}],287:[function(require,module,exports){
46102
45033
  'use strict';
46103
45034
 
46104
45035
  Object.defineProperty(exports, "__esModule", {
@@ -46132,7 +45063,7 @@ function isInt(str, options) {
46132
45063
  return regex.test(str) && minCheckPassed && maxCheckPassed && ltCheckPassed && gtCheckPassed;
46133
45064
  }
46134
45065
  module.exports = exports['default'];
46135
- },{"./util/assertString":315}],289:[function(require,module,exports){
45066
+ },{"./util/assertString":314}],288:[function(require,module,exports){
46136
45067
  'use strict';
46137
45068
 
46138
45069
  Object.defineProperty(exports, "__esModule", {
@@ -46158,7 +45089,7 @@ function isJSON(str) {
46158
45089
  return false;
46159
45090
  }
46160
45091
  module.exports = exports['default'];
46161
- },{"./util/assertString":315}],290:[function(require,module,exports){
45092
+ },{"./util/assertString":314}],289:[function(require,module,exports){
46162
45093
  'use strict';
46163
45094
 
46164
45095
  Object.defineProperty(exports, "__esModule", {
@@ -46193,7 +45124,7 @@ function isLength(str, options) {
46193
45124
  return len >= min && (typeof max === 'undefined' || len <= max);
46194
45125
  }
46195
45126
  module.exports = exports['default'];
46196
- },{"./util/assertString":315}],291:[function(require,module,exports){
45127
+ },{"./util/assertString":314}],290:[function(require,module,exports){
46197
45128
  'use strict';
46198
45129
 
46199
45130
  Object.defineProperty(exports, "__esModule", {
@@ -46212,7 +45143,7 @@ function isLowercase(str) {
46212
45143
  return str === str.toLowerCase();
46213
45144
  }
46214
45145
  module.exports = exports['default'];
46215
- },{"./util/assertString":315}],292:[function(require,module,exports){
45146
+ },{"./util/assertString":314}],291:[function(require,module,exports){
46216
45147
  'use strict';
46217
45148
 
46218
45149
  Object.defineProperty(exports, "__esModule", {
@@ -46233,7 +45164,7 @@ function isMACAddress(str) {
46233
45164
  return macAddress.test(str);
46234
45165
  }
46235
45166
  module.exports = exports['default'];
46236
- },{"./util/assertString":315}],293:[function(require,module,exports){
45167
+ },{"./util/assertString":314}],292:[function(require,module,exports){
46237
45168
  'use strict';
46238
45169
 
46239
45170
  Object.defineProperty(exports, "__esModule", {
@@ -46254,7 +45185,7 @@ function isMD5(str) {
46254
45185
  return md5.test(str);
46255
45186
  }
46256
45187
  module.exports = exports['default'];
46257
- },{"./util/assertString":315}],294:[function(require,module,exports){
45188
+ },{"./util/assertString":314}],293:[function(require,module,exports){
46258
45189
  'use strict';
46259
45190
 
46260
45191
  Object.defineProperty(exports, "__esModule", {
@@ -46324,7 +45255,7 @@ function isMobilePhone(str, locale) {
46324
45255
  return false;
46325
45256
  }
46326
45257
  module.exports = exports['default'];
46327
- },{"./util/assertString":315}],295:[function(require,module,exports){
45258
+ },{"./util/assertString":314}],294:[function(require,module,exports){
46328
45259
  'use strict';
46329
45260
 
46330
45261
  Object.defineProperty(exports, "__esModule", {
@@ -46347,7 +45278,7 @@ function isMongoId(str) {
46347
45278
  return (0, _isHexadecimal2.default)(str) && str.length === 24;
46348
45279
  }
46349
45280
  module.exports = exports['default'];
46350
- },{"./isHexadecimal":281,"./util/assertString":315}],296:[function(require,module,exports){
45281
+ },{"./isHexadecimal":280,"./util/assertString":314}],295:[function(require,module,exports){
46351
45282
  'use strict';
46352
45283
 
46353
45284
  Object.defineProperty(exports, "__esModule", {
@@ -46370,7 +45301,7 @@ function isMultibyte(str) {
46370
45301
  return multibyte.test(str);
46371
45302
  }
46372
45303
  module.exports = exports['default'];
46373
- },{"./util/assertString":315}],297:[function(require,module,exports){
45304
+ },{"./util/assertString":314}],296:[function(require,module,exports){
46374
45305
  'use strict';
46375
45306
 
46376
45307
  Object.defineProperty(exports, "__esModule", {
@@ -46391,7 +45322,7 @@ function isNumeric(str) {
46391
45322
  return numeric.test(str);
46392
45323
  }
46393
45324
  module.exports = exports['default'];
46394
- },{"./util/assertString":315}],298:[function(require,module,exports){
45325
+ },{"./util/assertString":314}],297:[function(require,module,exports){
46395
45326
  'use strict';
46396
45327
 
46397
45328
  Object.defineProperty(exports, "__esModule", {
@@ -46412,7 +45343,7 @@ function isSurrogatePair(str) {
46412
45343
  return surrogatePair.test(str);
46413
45344
  }
46414
45345
  module.exports = exports['default'];
46415
- },{"./util/assertString":315}],299:[function(require,module,exports){
45346
+ },{"./util/assertString":314}],298:[function(require,module,exports){
46416
45347
  'use strict';
46417
45348
 
46418
45349
  Object.defineProperty(exports, "__esModule", {
@@ -46555,7 +45486,7 @@ function isURL(url, options) {
46555
45486
  return true;
46556
45487
  }
46557
45488
  module.exports = exports['default'];
46558
- },{"./isFQDN":276,"./isIP":282,"./util/assertString":315,"./util/merge":316}],300:[function(require,module,exports){
45489
+ },{"./isFQDN":275,"./isIP":281,"./util/assertString":314,"./util/merge":315}],299:[function(require,module,exports){
46559
45490
  'use strict';
46560
45491
 
46561
45492
  Object.defineProperty(exports, "__esModule", {
@@ -46584,7 +45515,7 @@ function isUUID(str) {
46584
45515
  return pattern && pattern.test(str);
46585
45516
  }
46586
45517
  module.exports = exports['default'];
46587
- },{"./util/assertString":315}],301:[function(require,module,exports){
45518
+ },{"./util/assertString":314}],300:[function(require,module,exports){
46588
45519
  'use strict';
46589
45520
 
46590
45521
  Object.defineProperty(exports, "__esModule", {
@@ -46603,7 +45534,7 @@ function isUppercase(str) {
46603
45534
  return str === str.toUpperCase();
46604
45535
  }
46605
45536
  module.exports = exports['default'];
46606
- },{"./util/assertString":315}],302:[function(require,module,exports){
45537
+ },{"./util/assertString":314}],301:[function(require,module,exports){
46607
45538
  'use strict';
46608
45539
 
46609
45540
  Object.defineProperty(exports, "__esModule", {
@@ -46626,7 +45557,7 @@ function isVariableWidth(str) {
46626
45557
  return _isFullWidth.fullWidth.test(str) && _isHalfWidth.halfWidth.test(str);
46627
45558
  }
46628
45559
  module.exports = exports['default'];
46629
- },{"./isFullWidth":278,"./isHalfWidth":279,"./util/assertString":315}],303:[function(require,module,exports){
45560
+ },{"./isFullWidth":277,"./isHalfWidth":278,"./util/assertString":314}],302:[function(require,module,exports){
46630
45561
  'use strict';
46631
45562
 
46632
45563
  Object.defineProperty(exports, "__esModule", {
@@ -46650,7 +45581,7 @@ function isWhitelisted(str, chars) {
46650
45581
  return true;
46651
45582
  }
46652
45583
  module.exports = exports['default'];
46653
- },{"./util/assertString":315}],304:[function(require,module,exports){
45584
+ },{"./util/assertString":314}],303:[function(require,module,exports){
46654
45585
  'use strict';
46655
45586
 
46656
45587
  Object.defineProperty(exports, "__esModule", {
@@ -46670,7 +45601,7 @@ function ltrim(str, chars) {
46670
45601
  return str.replace(pattern, '');
46671
45602
  }
46672
45603
  module.exports = exports['default'];
46673
- },{"./util/assertString":315}],305:[function(require,module,exports){
45604
+ },{"./util/assertString":314}],304:[function(require,module,exports){
46674
45605
  'use strict';
46675
45606
 
46676
45607
  Object.defineProperty(exports, "__esModule", {
@@ -46692,7 +45623,7 @@ function matches(str, pattern, modifiers) {
46692
45623
  return pattern.test(str);
46693
45624
  }
46694
45625
  module.exports = exports['default'];
46695
- },{"./util/assertString":315}],306:[function(require,module,exports){
45626
+ },{"./util/assertString":314}],305:[function(require,module,exports){
46696
45627
  'use strict';
46697
45628
 
46698
45629
  Object.defineProperty(exports, "__esModule", {
@@ -46830,7 +45761,7 @@ function normalizeEmail(email, options) {
46830
45761
  return parts.join('@');
46831
45762
  }
46832
45763
  module.exports = exports['default'];
46833
- },{"./isEmail":274,"./util/merge":316}],307:[function(require,module,exports){
45764
+ },{"./isEmail":273,"./util/merge":315}],306:[function(require,module,exports){
46834
45765
  'use strict';
46835
45766
 
46836
45767
  Object.defineProperty(exports, "__esModule", {
@@ -46856,7 +45787,7 @@ function rtrim(str, chars) {
46856
45787
  return idx < str.length ? str.substr(0, idx + 1) : str;
46857
45788
  }
46858
45789
  module.exports = exports['default'];
46859
- },{"./util/assertString":315}],308:[function(require,module,exports){
45790
+ },{"./util/assertString":314}],307:[function(require,module,exports){
46860
45791
  'use strict';
46861
45792
 
46862
45793
  Object.defineProperty(exports, "__esModule", {
@@ -46880,7 +45811,7 @@ function stripLow(str, keep_new_lines) {
46880
45811
  return (0, _blacklist2.default)(str, chars);
46881
45812
  }
46882
45813
  module.exports = exports['default'];
46883
- },{"./blacklist":257,"./util/assertString":315}],309:[function(require,module,exports){
45814
+ },{"./blacklist":256,"./util/assertString":314}],308:[function(require,module,exports){
46884
45815
  'use strict';
46885
45816
 
46886
45817
  Object.defineProperty(exports, "__esModule", {
@@ -46902,7 +45833,7 @@ function toBoolean(str, strict) {
46902
45833
  return str !== '0' && str !== 'false' && str !== '';
46903
45834
  }
46904
45835
  module.exports = exports['default'];
46905
- },{"./util/assertString":315}],310:[function(require,module,exports){
45836
+ },{"./util/assertString":314}],309:[function(require,module,exports){
46906
45837
  'use strict';
46907
45838
 
46908
45839
  Object.defineProperty(exports, "__esModule", {
@@ -46922,7 +45853,7 @@ function toDate(date) {
46922
45853
  return !isNaN(date) ? new Date(date) : null;
46923
45854
  }
46924
45855
  module.exports = exports['default'];
46925
- },{"./util/assertString":315}],311:[function(require,module,exports){
45856
+ },{"./util/assertString":314}],310:[function(require,module,exports){
46926
45857
  'use strict';
46927
45858
 
46928
45859
  Object.defineProperty(exports, "__esModule", {
@@ -46941,7 +45872,7 @@ function toFloat(str) {
46941
45872
  return parseFloat(str);
46942
45873
  }
46943
45874
  module.exports = exports['default'];
46944
- },{"./util/assertString":315}],312:[function(require,module,exports){
45875
+ },{"./util/assertString":314}],311:[function(require,module,exports){
46945
45876
  'use strict';
46946
45877
 
46947
45878
  Object.defineProperty(exports, "__esModule", {
@@ -46960,7 +45891,7 @@ function toInt(str, radix) {
46960
45891
  return parseInt(str, radix || 10);
46961
45892
  }
46962
45893
  module.exports = exports['default'];
46963
- },{"./util/assertString":315}],313:[function(require,module,exports){
45894
+ },{"./util/assertString":314}],312:[function(require,module,exports){
46964
45895
  'use strict';
46965
45896
 
46966
45897
  Object.defineProperty(exports, "__esModule", {
@@ -46982,7 +45913,7 @@ function trim(str, chars) {
46982
45913
  return (0, _rtrim2.default)((0, _ltrim2.default)(str, chars), chars);
46983
45914
  }
46984
45915
  module.exports = exports['default'];
46985
- },{"./ltrim":304,"./rtrim":307}],314:[function(require,module,exports){
45916
+ },{"./ltrim":303,"./rtrim":306}],313:[function(require,module,exports){
46986
45917
  'use strict';
46987
45918
 
46988
45919
  Object.defineProperty(exports, "__esModule", {
@@ -47001,7 +45932,7 @@ function unescape(str) {
47001
45932
  return str.replace(/&amp;/g, '&').replace(/&quot;/g, '"').replace(/&#x27;/g, "'").replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&#x2F;/g, '/').replace(/&#96;/g, '`');
47002
45933
  }
47003
45934
  module.exports = exports['default'];
47004
- },{"./util/assertString":315}],315:[function(require,module,exports){
45935
+ },{"./util/assertString":314}],314:[function(require,module,exports){
47005
45936
  'use strict';
47006
45937
 
47007
45938
  Object.defineProperty(exports, "__esModule", {
@@ -47014,7 +45945,7 @@ function assertString(input) {
47014
45945
  }
47015
45946
  }
47016
45947
  module.exports = exports['default'];
47017
- },{}],316:[function(require,module,exports){
45948
+ },{}],315:[function(require,module,exports){
47018
45949
  'use strict';
47019
45950
 
47020
45951
  Object.defineProperty(exports, "__esModule", {
@@ -47033,7 +45964,7 @@ function merge() {
47033
45964
  return obj;
47034
45965
  }
47035
45966
  module.exports = exports['default'];
47036
- },{}],317:[function(require,module,exports){
45967
+ },{}],316:[function(require,module,exports){
47037
45968
  'use strict';
47038
45969
 
47039
45970
  Object.defineProperty(exports, "__esModule", {
@@ -47056,7 +45987,7 @@ function toString(input) {
47056
45987
  return String(input);
47057
45988
  }
47058
45989
  module.exports = exports['default'];
47059
- },{}],318:[function(require,module,exports){
45990
+ },{}],317:[function(require,module,exports){
47060
45991
  'use strict';
47061
45992
 
47062
45993
  Object.defineProperty(exports, "__esModule", {
@@ -47075,7 +46006,7 @@ function whitelist(str, chars) {
47075
46006
  return str.replace(new RegExp('[^' + chars + ']+', 'g'), '');
47076
46007
  }
47077
46008
  module.exports = exports['default'];
47078
- },{"./util/assertString":315}],319:[function(require,module,exports){
46009
+ },{"./util/assertString":314}],318:[function(require,module,exports){
47079
46010
  var indexOf = require('indexof');
47080
46011
 
47081
46012
  var Object_keys = function (obj) {
@@ -47215,7 +46146,7 @@ exports.createContext = Script.createContext = function (context) {
47215
46146
  return copy;
47216
46147
  };
47217
46148
 
47218
- },{"indexof":155}],320:[function(require,module,exports){
46149
+ },{"indexof":154}],319:[function(require,module,exports){
47219
46150
  (function(self) {
47220
46151
  'use strict';
47221
46152
 
@@ -47678,7 +46609,7 @@ exports.createContext = Script.createContext = function (context) {
47678
46609
  self.fetch.polyfill = true
47679
46610
  })(typeof self !== 'undefined' ? self : this);
47680
46611
 
47681
- },{}],321:[function(require,module,exports){
46612
+ },{}],320:[function(require,module,exports){
47682
46613
  (function (Buffer){
47683
46614
  var bs58check = require('bs58check')
47684
46615
 
@@ -47745,7 +46676,7 @@ module.exports = {
47745
46676
  }
47746
46677
 
47747
46678
  }).call(this,require("buffer").Buffer)
47748
- },{"bs58check":98,"buffer":104}],322:[function(require,module,exports){
46679
+ },{"bs58check":98,"buffer":104}],321:[function(require,module,exports){
47749
46680
  'use strict';
47750
46681
 
47751
46682
  Object.defineProperty(exports, "__esModule", {
@@ -47778,7 +46709,7 @@ Object.defineProperty(exports, 'ZoneFile', {
47778
46709
  return _zoneFile.ZoneFile;
47779
46710
  }
47780
46711
  });
47781
- },{"./makeZoneFile":323,"./parseZoneFile":324,"./zoneFile":325}],323:[function(require,module,exports){
46712
+ },{"./makeZoneFile":322,"./parseZoneFile":323,"./zoneFile":324}],322:[function(require,module,exports){
47782
46713
  'use strict';
47783
46714
 
47784
46715
  Object.defineProperty(exports, "__esModule", {
@@ -47947,7 +46878,7 @@ var processValues = function processValues(jsonZoneFile, template) {
47947
46878
  template = template.replace('{datetime}', new Date().toISOString());
47948
46879
  return template.replace('{time}', Math.round(Date.now() / 1000));
47949
46880
  };
47950
- },{"./zoneFileTemplate":326}],324:[function(require,module,exports){
46881
+ },{"./zoneFileTemplate":325}],323:[function(require,module,exports){
47951
46882
  'use strict';
47952
46883
 
47953
46884
  Object.defineProperty(exports, "__esModule", {
@@ -48203,7 +47134,7 @@ var parseURI = function parseURI(rr) {
48203
47134
  if (!isNaN(rrTokens[1])) result.ttl = parseInt(rrTokens[1], 10);
48204
47135
  return result;
48205
47136
  };
48206
- },{}],325:[function(require,module,exports){
47137
+ },{}],324:[function(require,module,exports){
48207
47138
  'use strict';
48208
47139
 
48209
47140
  Object.defineProperty(exports, "__esModule", {
@@ -48246,7 +47177,7 @@ var ZoneFile = exports.ZoneFile = function () {
48246
47177
 
48247
47178
  return ZoneFile;
48248
47179
  }();
48249
- },{"./makeZoneFile":323,"./parseZoneFile":324}],326:[function(require,module,exports){
47180
+ },{"./makeZoneFile":322,"./parseZoneFile":323}],325:[function(require,module,exports){
48250
47181
  'use strict';
48251
47182
 
48252
47183
  Object.defineProperty(exports, "__esModule", {