ag-psd 28.4.1 → 28.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/.v8-cache/v22.13.1-x64-00250a7c/7ea06cea +0 -0
  2. package/.v8-cache/v22.13.1-x64-00250a7c/b3c2fab7 +0 -0
  3. package/.v8-cache/v22.13.1-x64-00250a7c/cd260961 +0 -0
  4. package/.v8-cache/v22.13.1-x64-00250a7c/e03e2acd +0 -0
  5. package/.v8-cache/v22.13.1-x64-00250a7c/e6745c2b +0 -0
  6. package/.v8-cache/v22.13.1-x64-00250a7c/e6b99945 +0 -0
  7. package/.v8-cache/v22.13.1-x64-00250a7c/eeeebdfe +0 -0
  8. package/.v8-cache/v22.13.1-x64-00250a7c/fb01f274 +0 -0
  9. package/CHANGELOG.md +4 -0
  10. package/dist/abr.d.ts +56 -4
  11. package/dist/abr.js +85 -16
  12. package/dist/abr.js.map +1 -1
  13. package/dist/additionalInfo.js +90 -8
  14. package/dist/additionalInfo.js.map +1 -1
  15. package/dist/ase.d.ts +32 -0
  16. package/dist/ase.js +83 -0
  17. package/dist/ase.js.map +1 -0
  18. package/dist/bundle.js +2323 -49
  19. package/dist/descriptor.d.ts +35 -0
  20. package/dist/descriptor.js.map +1 -1
  21. package/dist/psd.d.ts +23 -0
  22. package/dist/psd.js.map +1 -1
  23. package/dist-es/abr.d.ts +56 -4
  24. package/dist-es/abr.js +85 -16
  25. package/dist-es/abr.js.map +1 -1
  26. package/dist-es/additionalInfo.js +90 -8
  27. package/dist-es/additionalInfo.js.map +1 -1
  28. package/dist-es/ase.d.ts +32 -0
  29. package/dist-es/ase.js +79 -0
  30. package/dist-es/ase.js.map +1 -0
  31. package/dist-es/descriptor.d.ts +35 -0
  32. package/dist-es/descriptor.js.map +1 -1
  33. package/dist-es/psd.d.ts +23 -0
  34. package/dist-es/psd.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/abr.ts +216 -26
  37. package/src/additionalInfo.ts +97 -8
  38. package/src/ase.ts +116 -0
  39. package/src/descriptor.ts +33 -0
  40. package/src/psd.ts +20 -0
package/dist/bundle.js CHANGED
@@ -1,10 +1,23 @@
1
1
  (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.agPsd = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
2
  "use strict";
3
+ var __assign = (this && this.__assign) || function () {
4
+ __assign = Object.assign || function(t) {
5
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
6
+ s = arguments[i];
7
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
8
+ t[p] = s[p];
9
+ }
10
+ return t;
11
+ };
12
+ return __assign.apply(this, arguments);
13
+ };
3
14
  Object.defineProperty(exports, "__esModule", { value: true });
4
15
  exports.readAbr = void 0;
5
16
  var descriptor_1 = require("./descriptor");
6
17
  var psdReader_1 = require("./psdReader");
7
18
  var dynamicsControl = ['off', 'fade', 'pen pressure', 'pen tilt', 'stylus wheel', 'initial direction', 'direction', 'initial rotation', 'rotation'];
19
+ var dynamicBrushShapeShapes = ['round point', 'round blunt', 'round curve', 'round angle', 'round fan', 'flat point', 'flat blunt', 'flat curve', 'flat angle', 'flat fan'];
20
+ var tipsBrushShapeShapes = ['erodible point', 'erodible flat', 'erodible round', 'erodible square', 'erodible triangle', 'custom'];
8
21
  var toBrushType = {
9
22
  _: 'brush',
10
23
  MixB: 'mixer brush',
@@ -21,22 +34,78 @@ function parseDynamics(desc) {
21
34
  };
22
35
  }
23
36
  function parseBrushShape(desc) {
24
- var shape = {
25
- size: (0, descriptor_1.parseUnitsToNumber)(desc.Dmtr, 'Pixels'),
26
- angle: (0, descriptor_1.parseAngle)(desc.Angl),
27
- roundness: (0, descriptor_1.parsePercent)(desc.Rndn),
28
- spacingOn: desc.Intr,
29
- spacing: (0, descriptor_1.parsePercent)(desc.Spcn),
30
- flipX: desc.flipX,
31
- flipY: desc.flipY,
32
- };
33
- if (desc['Nm '])
34
- shape.name = desc['Nm '];
35
- if (desc.Hrdn)
36
- shape.hardness = (0, descriptor_1.parsePercent)(desc.Hrdn);
37
- if (desc.sampledData)
38
- shape.sampledData = desc.sampledData;
39
- return shape;
37
+ switch (desc._classID) {
38
+ case 'computedBrush': {
39
+ return {
40
+ type: 'computed',
41
+ size: (0, descriptor_1.parseUnitsToNumber)(desc.Dmtr, 'Pixels'),
42
+ angle: (0, descriptor_1.parseAngle)(desc.Angl),
43
+ roundness: (0, descriptor_1.parsePercent)(desc.Rndn),
44
+ spacingOn: desc.Intr,
45
+ spacing: (0, descriptor_1.parsePercent)(desc.Spcn),
46
+ flipX: desc.flipX,
47
+ flipY: desc.flipY,
48
+ hardness: (0, descriptor_1.parsePercent)(desc.Hrdn),
49
+ };
50
+ }
51
+ case 'sampledBrush': {
52
+ return {
53
+ type: 'sampled',
54
+ size: (0, descriptor_1.parseUnitsToNumber)(desc.Dmtr, 'Pixels'),
55
+ angle: (0, descriptor_1.parseAngle)(desc.Angl),
56
+ roundness: (0, descriptor_1.parsePercent)(desc.Rndn),
57
+ spacingOn: desc.Intr,
58
+ spacing: (0, descriptor_1.parsePercent)(desc.Spcn),
59
+ flipX: desc.flipX,
60
+ flipY: desc.flipY,
61
+ name: desc['Nm '],
62
+ sampledData: desc.sampledData,
63
+ };
64
+ }
65
+ case 'dBrush':
66
+ return {
67
+ type: 'dynamic',
68
+ shape: dynamicBrushShapeShapes[desc['Shp ']],
69
+ angle: (0, descriptor_1.parseAngle)(desc.Angl),
70
+ size: (0, descriptor_1.parseUnitsToNumber)(desc.Dmtr, 'Pixels'),
71
+ density: (0, descriptor_1.parsePercent)(desc.Dnst),
72
+ length: (0, descriptor_1.parsePercent)(desc.Lngt),
73
+ clumping: (0, descriptor_1.parsePercent)(desc.clumping),
74
+ thickness: (0, descriptor_1.parsePercent)(desc.thickness),
75
+ stiffness: (0, descriptor_1.parsePercent)(desc.stiffness),
76
+ physics: desc.physics,
77
+ spacing: (0, descriptor_1.parsePercent)(desc.Spcn),
78
+ spacingOn: desc.Intr,
79
+ flipX: desc.flipX,
80
+ flipY: desc.flipY,
81
+ };
82
+ case 'dTips': {
83
+ return __assign(__assign({ type: 'tips', angle: (0, descriptor_1.parseAngle)(desc.Angl), size: (0, descriptor_1.parseUnitsToNumber)(desc.Dmtr, 'Pixels'), shape: dynamicBrushShapeShapes[desc['Shp ']], physics: desc.physics, spacing: (0, descriptor_1.parsePercent)(desc.Spcn), spacingOn: desc.Intr, flipX: desc.flipX, flipY: desc.flipY,
84
+ // tips:
85
+ tipsType: tipsBrushShapeShapes[desc.dtipsType], tipsLengthRatio: (0, descriptor_1.parsePercent)(desc.dtipsLengthRatio), tipsHardness: (0, descriptor_1.parsePercent)(desc.dtipsHardness) }, (desc.dtipsGridSize && desc.dtipsErodibleTipHeightMap ? {
86
+ tipsGridSize: desc.dtipsGridSize,
87
+ tipsErodibleTipHeightMap: parseHeightmap(desc.dtipsErodibleTipHeightMap),
88
+ } : {})), {
89
+ // airbrush
90
+ tipsAirbrushCutoffAngle: desc.dtipsAirbrushCutoffAngle, tipsAirbrushGranularity: (0, descriptor_1.parsePercent)(desc.dtipsAirbrushGranularity), tipsAirbrushStreakiness: (0, descriptor_1.parsePercent)(desc.dtipsAirbrushStreakiness), tipsAirbrushSplatSize: (0, descriptor_1.parsePercent)(desc.dtipsAirbrushSplatSize), tipsAirbrushSplatCount: desc.dtipsAirbrushSplatCount });
91
+ }
92
+ default:
93
+ console.log(require('util').inspect(desc, false, 99, true));
94
+ throw new Error("Unknown brush classId: ".concat(desc._classID));
95
+ }
96
+ }
97
+ function parseHeightmap(array) {
98
+ var result = [];
99
+ for (var i = 0; i < array.byteLength; i++) {
100
+ result.push(array[i]);
101
+ }
102
+ return result;
103
+ // const view = new DataView(array.buffer, array.byteOffset, array.byteLength);
104
+ // const result: number[] = [];
105
+ // for (let i = 0, len = (array.byteLength / 4) | 0; i < len; i++) {
106
+ // result.push(view.getInt32(i * 4)); ????
107
+ // }
108
+ // return result;
40
109
  }
41
110
  function readAbr(buffer, options) {
42
111
  var _a, _b, _c, _d;
@@ -307,7 +376,7 @@ function readAbr(buffer, options) {
307
376
  }
308
377
  exports.readAbr = readAbr;
309
378
 
310
- },{"./descriptor":4,"./psdReader":12}],2:[function(require,module,exports){
379
+ },{"./descriptor":4,"./psdReader":12,"util":54}],2:[function(require,module,exports){
311
380
  "use strict";
312
381
  var __assign = (this && this.__assign) || function () {
313
382
  __assign = Object.assign || function(t) {
@@ -1061,6 +1130,70 @@ target) { return target.timestamp !== undefined || target.animationFrames !== un
1061
1130
  }, true);
1062
1131
  }
1063
1132
  });
1133
+ addHandler('PxSc', function () { return false; }, function (reader, target) {
1134
+ var desc = (0, descriptor_1.readVersionAndDescriptor)(reader, true);
1135
+ // console.log('PxSc', require('util').inspect(desc, false, 99, true));
1136
+ if (desc.pixelSourceType === 1986285651) {
1137
+ target.pixelSource = {
1138
+ type: 'vdPS',
1139
+ origin: { x: desc.origin.Hrzn, y: desc.origin.Vrtc },
1140
+ interpretation: {
1141
+ interpretAlpha: desc.interpretation.interpretAlpha.split('.')[1],
1142
+ profile: desc.interpretation.profile,
1143
+ },
1144
+ frameReader: {
1145
+ type: 'QTFR',
1146
+ link: {
1147
+ name: desc.frameReader['Lnk ']['Nm '],
1148
+ fullPath: desc.frameReader['Lnk '].fullPath,
1149
+ originalPath: desc.frameReader['Lnk '].originalPath,
1150
+ relativePath: desc.frameReader['Lnk '].relPath,
1151
+ alias: desc.frameReader['Lnk '].alis,
1152
+ },
1153
+ mediaDescriptor: desc.frameReader.mediaDescriptor,
1154
+ },
1155
+ showAlteredVideo: desc.showAlteredVideo,
1156
+ };
1157
+ }
1158
+ else {
1159
+ reader.log("Unknown pixelSourceType");
1160
+ }
1161
+ }, function (writer, target) {
1162
+ var source = target.pixelSource;
1163
+ var desc = {
1164
+ _name: '',
1165
+ _classID: 'PixelSource',
1166
+ pixelSourceType: 1986285651,
1167
+ descVersion: 1,
1168
+ origin: { Hrzn: source.origin.x, Vrtc: source.origin.y },
1169
+ interpretation: {
1170
+ _name: '',
1171
+ _classID: 'footageInterpretation',
1172
+ Vrsn: 1,
1173
+ interpretAlpha: "alphaInterpretation.".concat(source.interpretation.interpretAlpha),
1174
+ profile: source.interpretation.profile,
1175
+ },
1176
+ frameReader: {
1177
+ _name: '',
1178
+ _classID: 'FrameReader',
1179
+ frameReaderType: 1364477522,
1180
+ descVersion: 1,
1181
+ 'Lnk ': {
1182
+ _name: '',
1183
+ _classID: 'ExternalFileLink',
1184
+ descVersion: 2,
1185
+ 'Nm ': source.frameReader.link.name,
1186
+ fullPath: source.frameReader.link.fullPath,
1187
+ originalPath: source.frameReader.link.originalPath,
1188
+ alis: source.frameReader.link.alias,
1189
+ relPath: source.frameReader.link.relativePath,
1190
+ },
1191
+ mediaDescriptor: source.frameReader.mediaDescriptor,
1192
+ },
1193
+ showAlteredVideo: source.showAlteredVideo,
1194
+ };
1195
+ (0, descriptor_1.writeVersionAndDescriptor)(writer, '', 'PixelSource', desc);
1196
+ });
1064
1197
  addHandler('vstk', hasKey('vectorStroke'), function (reader, target, left) {
1065
1198
  var desc = (0, descriptor_1.readVersionAndDescriptor)(reader);
1066
1199
  // console.log(require('util').inspect(desc, false, 99, true));
@@ -2391,6 +2524,8 @@ else {
2391
2524
  }
2392
2525
  /*
2393
2526
  interface CAIDesc {
2527
+ _name: '';
2528
+ _classID: 'null';
2394
2529
  enab: boolean;
2395
2530
  generationalGuid: string;
2396
2531
  }
@@ -2400,15 +2535,15 @@ addHandler(
2400
2535
  () => false,
2401
2536
  (reader, _target, left) => {
2402
2537
  const version = readUint32(reader); // 3
2403
- const desc = readVersionAndDescriptor(reader) as CAIDesc;
2538
+ const desc = readVersionAndDescriptor(reader, true) as CAIDesc;
2539
+ console.log('CAI version', version);
2404
2540
  console.log('CAI', require('util').inspect(desc, false, 99, true));
2405
- console.log('CAI', { version });
2406
2541
  console.log('CAI left', readBytes(reader, left())); // 8 bytes left, all zeroes
2407
2542
  },
2408
2543
  (_writer, _target) => {
2409
2544
  },
2410
2545
  );
2411
- */
2546
+ // */
2412
2547
  if (helpers_1.MOCK_HANDLERS) {
2413
2548
  addHandler('CAI ', function (target) { return target._CAI_ !== undefined; }, function (reader, target, left) {
2414
2549
  target._CAI_ = (0, psdReader_1.readBytes)(reader, left());
@@ -2416,25 +2551,41 @@ if (helpers_1.MOCK_HANDLERS) {
2416
2551
  (0, psdWriter_1.writeBytes)(writer, target._CAI_);
2417
2552
  });
2418
2553
  }
2554
+ // interface OCIODescriptor {
2555
+ // _name: '';
2556
+ // _classID: 'documentColorManagementInfo';
2557
+ // 'Knd ': 'icc';
2558
+ // ocio_display_view: {
2559
+ // _name: '';
2560
+ // _classID: 'viewColorManagementInfo';
2561
+ // display: string;
2562
+ // view: string;
2563
+ // };
2564
+ // }
2419
2565
  if (helpers_1.MOCK_HANDLERS) {
2420
- addHandler('OCIO', // generative tech?
2421
- function (// generative tech?
2566
+ addHandler('OCIO', // document color management info
2567
+ function (// document color management info
2422
2568
  target) { return target._OCIO !== undefined; }, function (reader, target, left) {
2569
+ // const desc = readVersionAndDescriptor(reader, true) as OCIODescriptor;
2570
+ // console.log('OCIO', require('util').inspect(desc, false, 99, true));
2423
2571
  target._OCIO = (0, psdReader_1.readBytes)(reader, left());
2424
2572
  }, function (writer, target) {
2425
2573
  (0, psdWriter_1.writeBytes)(writer, target._OCIO);
2426
2574
  });
2427
2575
  }
2428
- // interface GenIDesc {
2576
+ // interface GenIDescriptor {
2577
+ // _name: '';
2578
+ // _classID: 'genTechInfo';
2429
2579
  // isUsingGenTech: number;
2580
+ // externalModelList?: [];
2430
2581
  // }
2431
2582
  if (helpers_1.MOCK_HANDLERS) {
2432
2583
  addHandler('GenI', // generative tech
2433
2584
  function (// generative tech
2434
2585
  target) { return target._GenI !== undefined; }, function (reader, target, left) {
2586
+ var desc = (0, descriptor_1.readVersionAndDescriptor)(reader, true); // as GenIDescriptor;
2587
+ console.log('GenI', require('util').inspect(desc, false, 99, true));
2435
2588
  target._GenI = (0, psdReader_1.readBytes)(reader, left());
2436
- // const desc = readVersionAndDescriptor(reader) as GenIDesc;
2437
- // console.log('GenI', require('util').inspect(desc, false, 99, true));
2438
2589
  }, function (writer, target) {
2439
2590
  (0, psdWriter_1.writeBytes)(writer, target._GenI);
2440
2591
  });
@@ -3743,7 +3894,7 @@ addHandler('tsly', hasKey('transparencyShapesLayer'), function (reader, target)
3743
3894
  (0, psdWriter_1.writeZeros)(writer, 3);
3744
3895
  });
3745
3896
 
3746
- },{"./descriptor":4,"./effectsHelpers":5,"./engineData":6,"./engineData2":7,"./helpers":8,"./psdReader":12,"./psdWriter":13,"./text":14,"base64-js":16}],3:[function(require,module,exports){
3897
+ },{"./descriptor":4,"./effectsHelpers":5,"./engineData":6,"./engineData2":7,"./helpers":8,"./psdReader":12,"./psdWriter":13,"./text":14,"base64-js":18,"util":54}],3:[function(require,module,exports){
3747
3898
  "use strict";
3748
3899
  var __assign = (this && this.__assign) || function () {
3749
3900
  __assign = Object.assign || function(t) {
@@ -7264,7 +7415,7 @@ function initializeCanvas(createCanvasMethod, createCanvasFromDataMethod, create
7264
7415
  }
7265
7416
  exports.initializeCanvas = initializeCanvas;
7266
7417
 
7267
- },{"base64-js":16,"pako":19}],9:[function(require,module,exports){
7418
+ },{"base64-js":18,"pako":35}],9:[function(require,module,exports){
7268
7419
  "use strict";
7269
7420
  var __assign = (this && this.__assign) || function () {
7270
7421
  __assign = Object.assign || function(t) {
@@ -8345,7 +8496,7 @@ target) { return target._ir4002 !== undefined; }, function (reader, target, left
8345
8496
  (0, psdWriter_1.writeBytes)(writer, target._ir4002);
8346
8497
  });
8347
8498
 
8348
- },{"./descriptor":4,"./helpers":8,"./psdReader":12,"./psdWriter":13,"./utf8":15,"base64-js":16}],10:[function(require,module,exports){
8499
+ },{"./descriptor":4,"./helpers":8,"./psdReader":12,"./psdWriter":13,"./utf8":15,"base64-js":18}],10:[function(require,module,exports){
8349
8500
  (function (Buffer){(function (){
8350
8501
  "use strict";
8351
8502
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -8401,7 +8552,7 @@ function writePsdBuffer(psd, options) {
8401
8552
  exports.writePsdBuffer = writePsdBuffer;
8402
8553
 
8403
8554
  }).call(this)}).call(this,require("buffer").Buffer)
8404
- },{"./abr":1,"./csh":3,"./helpers":8,"./psd":11,"./psdReader":12,"./psdWriter":13,"base64-js":16,"buffer":17}],11:[function(require,module,exports){
8555
+ },{"./abr":1,"./csh":3,"./helpers":8,"./psd":11,"./psdReader":12,"./psdWriter":13,"base64-js":18,"buffer":19}],11:[function(require,module,exports){
8405
8556
  "use strict";
8406
8557
  Object.defineProperty(exports, "__esModule", { value: true });
8407
8558
  exports.LayerCompCapturedInfo = exports.SectionDividerType = exports.ColorMode = void 0;
@@ -9675,7 +9826,7 @@ function copyChannelToRGBA(srcData, dstData, ox, oy, offset) {
9675
9826
  }
9676
9827
  }
9677
9828
 
9678
- },{"./additionalInfo":2,"./helpers":8,"./imageResources":9,"pako":19}],13:[function(require,module,exports){
9829
+ },{"./additionalInfo":2,"./helpers":8,"./imageResources":9,"pako":35}],13:[function(require,module,exports){
9679
9830
  "use strict";
9680
9831
  var __assign = (this && this.__assign) || function () {
9681
9832
  __assign = Object.assign || function(t) {
@@ -11221,6 +11372,58 @@ function decodeString(value) {
11221
11372
  exports.decodeString = decodeString;
11222
11373
 
11223
11374
  },{}],16:[function(require,module,exports){
11375
+
11376
+ /**
11377
+ * Array#filter.
11378
+ *
11379
+ * @param {Array} arr
11380
+ * @param {Function} fn
11381
+ * @param {Object=} self
11382
+ * @return {Array}
11383
+ * @throw TypeError
11384
+ */
11385
+
11386
+ module.exports = function (arr, fn, self) {
11387
+ if (arr.filter) return arr.filter(fn, self);
11388
+ if (void 0 === arr || null === arr) throw new TypeError;
11389
+ if ('function' != typeof fn) throw new TypeError;
11390
+ var ret = [];
11391
+ for (var i = 0; i < arr.length; i++) {
11392
+ if (!hasOwn.call(arr, i)) continue;
11393
+ var val = arr[i];
11394
+ if (fn.call(self, val, i, arr)) ret.push(val);
11395
+ }
11396
+ return ret;
11397
+ };
11398
+
11399
+ var hasOwn = Object.prototype.hasOwnProperty;
11400
+
11401
+ },{}],17:[function(require,module,exports){
11402
+ (function (global){(function (){
11403
+ 'use strict';
11404
+
11405
+ var filter = require('array-filter');
11406
+
11407
+ module.exports = function availableTypedArrays() {
11408
+ return filter([
11409
+ 'BigInt64Array',
11410
+ 'BigUint64Array',
11411
+ 'Float32Array',
11412
+ 'Float64Array',
11413
+ 'Int16Array',
11414
+ 'Int32Array',
11415
+ 'Int8Array',
11416
+ 'Uint16Array',
11417
+ 'Uint32Array',
11418
+ 'Uint8Array',
11419
+ 'Uint8ClampedArray'
11420
+ ], function (typedArray) {
11421
+ return typeof global[typedArray] === 'function';
11422
+ });
11423
+ };
11424
+
11425
+ }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
11426
+ },{"array-filter":16}],18:[function(require,module,exports){
11224
11427
  'use strict'
11225
11428
 
11226
11429
  exports.byteLength = byteLength
@@ -11372,7 +11575,7 @@ function fromByteArray (uint8) {
11372
11575
  return parts.join('')
11373
11576
  }
11374
11577
 
11375
- },{}],17:[function(require,module,exports){
11578
+ },{}],19:[function(require,module,exports){
11376
11579
  (function (Buffer){(function (){
11377
11580
  /*!
11378
11581
  * The buffer module from node.js, for the browser.
@@ -13153,7 +13356,609 @@ function numberIsNaN (obj) {
13153
13356
  }
13154
13357
 
13155
13358
  }).call(this)}).call(this,require("buffer").Buffer)
13156
- },{"base64-js":16,"buffer":17,"ieee754":18}],18:[function(require,module,exports){
13359
+ },{"base64-js":18,"buffer":19,"ieee754":30}],20:[function(require,module,exports){
13360
+ 'use strict';
13361
+
13362
+ var GetIntrinsic = require('get-intrinsic');
13363
+
13364
+ var callBind = require('./');
13365
+
13366
+ var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
13367
+
13368
+ module.exports = function callBoundIntrinsic(name, allowMissing) {
13369
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
13370
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
13371
+ return callBind(intrinsic);
13372
+ }
13373
+ return intrinsic;
13374
+ };
13375
+
13376
+ },{"./":21,"get-intrinsic":26}],21:[function(require,module,exports){
13377
+ 'use strict';
13378
+
13379
+ var bind = require('function-bind');
13380
+ var GetIntrinsic = require('get-intrinsic');
13381
+
13382
+ var $apply = GetIntrinsic('%Function.prototype.apply%');
13383
+ var $call = GetIntrinsic('%Function.prototype.call%');
13384
+ var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
13385
+
13386
+ var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
13387
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
13388
+ var $max = GetIntrinsic('%Math.max%');
13389
+
13390
+ if ($defineProperty) {
13391
+ try {
13392
+ $defineProperty({}, 'a', { value: 1 });
13393
+ } catch (e) {
13394
+ // IE 8 has a broken defineProperty
13395
+ $defineProperty = null;
13396
+ }
13397
+ }
13398
+
13399
+ module.exports = function callBind(originalFunction) {
13400
+ var func = $reflectApply(bind, $call, arguments);
13401
+ if ($gOPD && $defineProperty) {
13402
+ var desc = $gOPD(func, 'length');
13403
+ if (desc.configurable) {
13404
+ // original length, plus the receiver, minus any additional arguments (after the receiver)
13405
+ $defineProperty(
13406
+ func,
13407
+ 'length',
13408
+ { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
13409
+ );
13410
+ }
13411
+ }
13412
+ return func;
13413
+ };
13414
+
13415
+ var applyBind = function applyBind() {
13416
+ return $reflectApply(bind, $apply, arguments);
13417
+ };
13418
+
13419
+ if ($defineProperty) {
13420
+ $defineProperty(module.exports, 'apply', { value: applyBind });
13421
+ } else {
13422
+ module.exports.apply = applyBind;
13423
+ }
13424
+
13425
+ },{"function-bind":25,"get-intrinsic":26}],22:[function(require,module,exports){
13426
+ 'use strict';
13427
+
13428
+ var GetIntrinsic = require('get-intrinsic');
13429
+
13430
+ var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
13431
+ if ($gOPD) {
13432
+ try {
13433
+ $gOPD([], 'length');
13434
+ } catch (e) {
13435
+ // IE 8 has a broken gOPD
13436
+ $gOPD = null;
13437
+ }
13438
+ }
13439
+
13440
+ module.exports = $gOPD;
13441
+
13442
+ },{"get-intrinsic":26}],23:[function(require,module,exports){
13443
+
13444
+ var hasOwn = Object.prototype.hasOwnProperty;
13445
+ var toString = Object.prototype.toString;
13446
+
13447
+ module.exports = function forEach (obj, fn, ctx) {
13448
+ if (toString.call(fn) !== '[object Function]') {
13449
+ throw new TypeError('iterator must be a function');
13450
+ }
13451
+ var l = obj.length;
13452
+ if (l === +l) {
13453
+ for (var i = 0; i < l; i++) {
13454
+ fn.call(ctx, obj[i], i, obj);
13455
+ }
13456
+ } else {
13457
+ for (var k in obj) {
13458
+ if (hasOwn.call(obj, k)) {
13459
+ fn.call(ctx, obj[k], k, obj);
13460
+ }
13461
+ }
13462
+ }
13463
+ };
13464
+
13465
+
13466
+ },{}],24:[function(require,module,exports){
13467
+ 'use strict';
13468
+
13469
+ /* eslint no-invalid-this: 1 */
13470
+
13471
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
13472
+ var toStr = Object.prototype.toString;
13473
+ var max = Math.max;
13474
+ var funcType = '[object Function]';
13475
+
13476
+ var concatty = function concatty(a, b) {
13477
+ var arr = [];
13478
+
13479
+ for (var i = 0; i < a.length; i += 1) {
13480
+ arr[i] = a[i];
13481
+ }
13482
+ for (var j = 0; j < b.length; j += 1) {
13483
+ arr[j + a.length] = b[j];
13484
+ }
13485
+
13486
+ return arr;
13487
+ };
13488
+
13489
+ var slicy = function slicy(arrLike, offset) {
13490
+ var arr = [];
13491
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
13492
+ arr[j] = arrLike[i];
13493
+ }
13494
+ return arr;
13495
+ };
13496
+
13497
+ var joiny = function (arr, joiner) {
13498
+ var str = '';
13499
+ for (var i = 0; i < arr.length; i += 1) {
13500
+ str += arr[i];
13501
+ if (i + 1 < arr.length) {
13502
+ str += joiner;
13503
+ }
13504
+ }
13505
+ return str;
13506
+ };
13507
+
13508
+ module.exports = function bind(that) {
13509
+ var target = this;
13510
+ if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
13511
+ throw new TypeError(ERROR_MESSAGE + target);
13512
+ }
13513
+ var args = slicy(arguments, 1);
13514
+
13515
+ var bound;
13516
+ var binder = function () {
13517
+ if (this instanceof bound) {
13518
+ var result = target.apply(
13519
+ this,
13520
+ concatty(args, arguments)
13521
+ );
13522
+ if (Object(result) === result) {
13523
+ return result;
13524
+ }
13525
+ return this;
13526
+ }
13527
+ return target.apply(
13528
+ that,
13529
+ concatty(args, arguments)
13530
+ );
13531
+
13532
+ };
13533
+
13534
+ var boundLength = max(0, target.length - args.length);
13535
+ var boundArgs = [];
13536
+ for (var i = 0; i < boundLength; i++) {
13537
+ boundArgs[i] = '$' + i;
13538
+ }
13539
+
13540
+ bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
13541
+
13542
+ if (target.prototype) {
13543
+ var Empty = function Empty() {};
13544
+ Empty.prototype = target.prototype;
13545
+ bound.prototype = new Empty();
13546
+ Empty.prototype = null;
13547
+ }
13548
+
13549
+ return bound;
13550
+ };
13551
+
13552
+ },{}],25:[function(require,module,exports){
13553
+ 'use strict';
13554
+
13555
+ var implementation = require('./implementation');
13556
+
13557
+ module.exports = Function.prototype.bind || implementation;
13558
+
13559
+ },{"./implementation":24}],26:[function(require,module,exports){
13560
+ 'use strict';
13561
+
13562
+ var undefined;
13563
+
13564
+ var $SyntaxError = SyntaxError;
13565
+ var $Function = Function;
13566
+ var $TypeError = TypeError;
13567
+
13568
+ // eslint-disable-next-line consistent-return
13569
+ var getEvalledConstructor = function (expressionSyntax) {
13570
+ try {
13571
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
13572
+ } catch (e) {}
13573
+ };
13574
+
13575
+ var $gOPD = Object.getOwnPropertyDescriptor;
13576
+ if ($gOPD) {
13577
+ try {
13578
+ $gOPD({}, '');
13579
+ } catch (e) {
13580
+ $gOPD = null; // this is IE 8, which has a broken gOPD
13581
+ }
13582
+ }
13583
+
13584
+ var throwTypeError = function () {
13585
+ throw new $TypeError();
13586
+ };
13587
+ var ThrowTypeError = $gOPD
13588
+ ? (function () {
13589
+ try {
13590
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
13591
+ arguments.callee; // IE 8 does not throw here
13592
+ return throwTypeError;
13593
+ } catch (calleeThrows) {
13594
+ try {
13595
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
13596
+ return $gOPD(arguments, 'callee').get;
13597
+ } catch (gOPDthrows) {
13598
+ return throwTypeError;
13599
+ }
13600
+ }
13601
+ }())
13602
+ : throwTypeError;
13603
+
13604
+ var hasSymbols = require('has-symbols')();
13605
+
13606
+ var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
13607
+
13608
+ var needsEval = {};
13609
+
13610
+ var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
13611
+
13612
+ var INTRINSICS = {
13613
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
13614
+ '%Array%': Array,
13615
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
13616
+ '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
13617
+ '%AsyncFromSyncIteratorPrototype%': undefined,
13618
+ '%AsyncFunction%': needsEval,
13619
+ '%AsyncGenerator%': needsEval,
13620
+ '%AsyncGeneratorFunction%': needsEval,
13621
+ '%AsyncIteratorPrototype%': needsEval,
13622
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
13623
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
13624
+ '%Boolean%': Boolean,
13625
+ '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
13626
+ '%Date%': Date,
13627
+ '%decodeURI%': decodeURI,
13628
+ '%decodeURIComponent%': decodeURIComponent,
13629
+ '%encodeURI%': encodeURI,
13630
+ '%encodeURIComponent%': encodeURIComponent,
13631
+ '%Error%': Error,
13632
+ '%eval%': eval, // eslint-disable-line no-eval
13633
+ '%EvalError%': EvalError,
13634
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
13635
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
13636
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
13637
+ '%Function%': $Function,
13638
+ '%GeneratorFunction%': needsEval,
13639
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
13640
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
13641
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
13642
+ '%isFinite%': isFinite,
13643
+ '%isNaN%': isNaN,
13644
+ '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
13645
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined,
13646
+ '%Map%': typeof Map === 'undefined' ? undefined : Map,
13647
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
13648
+ '%Math%': Math,
13649
+ '%Number%': Number,
13650
+ '%Object%': Object,
13651
+ '%parseFloat%': parseFloat,
13652
+ '%parseInt%': parseInt,
13653
+ '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
13654
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
13655
+ '%RangeError%': RangeError,
13656
+ '%ReferenceError%': ReferenceError,
13657
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
13658
+ '%RegExp%': RegExp,
13659
+ '%Set%': typeof Set === 'undefined' ? undefined : Set,
13660
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
13661
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
13662
+ '%String%': String,
13663
+ '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
13664
+ '%Symbol%': hasSymbols ? Symbol : undefined,
13665
+ '%SyntaxError%': $SyntaxError,
13666
+ '%ThrowTypeError%': ThrowTypeError,
13667
+ '%TypedArray%': TypedArray,
13668
+ '%TypeError%': $TypeError,
13669
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
13670
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
13671
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
13672
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
13673
+ '%URIError%': URIError,
13674
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
13675
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
13676
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
13677
+ };
13678
+
13679
+ var doEval = function doEval(name) {
13680
+ var value;
13681
+ if (name === '%AsyncFunction%') {
13682
+ value = getEvalledConstructor('async function () {}');
13683
+ } else if (name === '%GeneratorFunction%') {
13684
+ value = getEvalledConstructor('function* () {}');
13685
+ } else if (name === '%AsyncGeneratorFunction%') {
13686
+ value = getEvalledConstructor('async function* () {}');
13687
+ } else if (name === '%AsyncGenerator%') {
13688
+ var fn = doEval('%AsyncGeneratorFunction%');
13689
+ if (fn) {
13690
+ value = fn.prototype;
13691
+ }
13692
+ } else if (name === '%AsyncIteratorPrototype%') {
13693
+ var gen = doEval('%AsyncGenerator%');
13694
+ if (gen) {
13695
+ value = getProto(gen.prototype);
13696
+ }
13697
+ }
13698
+
13699
+ INTRINSICS[name] = value;
13700
+
13701
+ return value;
13702
+ };
13703
+
13704
+ var LEGACY_ALIASES = {
13705
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
13706
+ '%ArrayPrototype%': ['Array', 'prototype'],
13707
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
13708
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
13709
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
13710
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
13711
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
13712
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
13713
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
13714
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
13715
+ '%DataViewPrototype%': ['DataView', 'prototype'],
13716
+ '%DatePrototype%': ['Date', 'prototype'],
13717
+ '%ErrorPrototype%': ['Error', 'prototype'],
13718
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
13719
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
13720
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
13721
+ '%FunctionPrototype%': ['Function', 'prototype'],
13722
+ '%Generator%': ['GeneratorFunction', 'prototype'],
13723
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
13724
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
13725
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
13726
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
13727
+ '%JSONParse%': ['JSON', 'parse'],
13728
+ '%JSONStringify%': ['JSON', 'stringify'],
13729
+ '%MapPrototype%': ['Map', 'prototype'],
13730
+ '%NumberPrototype%': ['Number', 'prototype'],
13731
+ '%ObjectPrototype%': ['Object', 'prototype'],
13732
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
13733
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
13734
+ '%PromisePrototype%': ['Promise', 'prototype'],
13735
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
13736
+ '%Promise_all%': ['Promise', 'all'],
13737
+ '%Promise_reject%': ['Promise', 'reject'],
13738
+ '%Promise_resolve%': ['Promise', 'resolve'],
13739
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
13740
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
13741
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
13742
+ '%SetPrototype%': ['Set', 'prototype'],
13743
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
13744
+ '%StringPrototype%': ['String', 'prototype'],
13745
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
13746
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
13747
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
13748
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
13749
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
13750
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
13751
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
13752
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
13753
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
13754
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
13755
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
13756
+ };
13757
+
13758
+ var bind = require('function-bind');
13759
+ var hasOwn = require('has');
13760
+ var $concat = bind.call(Function.call, Array.prototype.concat);
13761
+ var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
13762
+ var $replace = bind.call(Function.call, String.prototype.replace);
13763
+ var $strSlice = bind.call(Function.call, String.prototype.slice);
13764
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
13765
+
13766
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
13767
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
13768
+ var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
13769
+ var stringToPath = function stringToPath(string) {
13770
+ var first = $strSlice(string, 0, 1);
13771
+ var last = $strSlice(string, -1);
13772
+ if (first === '%' && last !== '%') {
13773
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
13774
+ } else if (last === '%' && first !== '%') {
13775
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
13776
+ }
13777
+ var result = [];
13778
+ $replace(string, rePropName, function (match, number, quote, subString) {
13779
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
13780
+ });
13781
+ return result;
13782
+ };
13783
+ /* end adaptation */
13784
+
13785
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
13786
+ var intrinsicName = name;
13787
+ var alias;
13788
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
13789
+ alias = LEGACY_ALIASES[intrinsicName];
13790
+ intrinsicName = '%' + alias[0] + '%';
13791
+ }
13792
+
13793
+ if (hasOwn(INTRINSICS, intrinsicName)) {
13794
+ var value = INTRINSICS[intrinsicName];
13795
+ if (value === needsEval) {
13796
+ value = doEval(intrinsicName);
13797
+ }
13798
+ if (typeof value === 'undefined' && !allowMissing) {
13799
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
13800
+ }
13801
+
13802
+ return {
13803
+ alias: alias,
13804
+ name: intrinsicName,
13805
+ value: value
13806
+ };
13807
+ }
13808
+
13809
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
13810
+ };
13811
+
13812
+ module.exports = function GetIntrinsic(name, allowMissing) {
13813
+ if (typeof name !== 'string' || name.length === 0) {
13814
+ throw new $TypeError('intrinsic name must be a non-empty string');
13815
+ }
13816
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
13817
+ throw new $TypeError('"allowMissing" argument must be a boolean');
13818
+ }
13819
+
13820
+ if ($exec(/^%?[^%]*%?$/g, name) === null) {
13821
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
13822
+ }
13823
+ var parts = stringToPath(name);
13824
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
13825
+
13826
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
13827
+ var intrinsicRealName = intrinsic.name;
13828
+ var value = intrinsic.value;
13829
+ var skipFurtherCaching = false;
13830
+
13831
+ var alias = intrinsic.alias;
13832
+ if (alias) {
13833
+ intrinsicBaseName = alias[0];
13834
+ $spliceApply(parts, $concat([0, 1], alias));
13835
+ }
13836
+
13837
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
13838
+ var part = parts[i];
13839
+ var first = $strSlice(part, 0, 1);
13840
+ var last = $strSlice(part, -1);
13841
+ if (
13842
+ (
13843
+ (first === '"' || first === "'" || first === '`')
13844
+ || (last === '"' || last === "'" || last === '`')
13845
+ )
13846
+ && first !== last
13847
+ ) {
13848
+ throw new $SyntaxError('property names with quotes must have matching quotes');
13849
+ }
13850
+ if (part === 'constructor' || !isOwn) {
13851
+ skipFurtherCaching = true;
13852
+ }
13853
+
13854
+ intrinsicBaseName += '.' + part;
13855
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
13856
+
13857
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
13858
+ value = INTRINSICS[intrinsicRealName];
13859
+ } else if (value != null) {
13860
+ if (!(part in value)) {
13861
+ if (!allowMissing) {
13862
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
13863
+ }
13864
+ return void undefined;
13865
+ }
13866
+ if ($gOPD && (i + 1) >= parts.length) {
13867
+ var desc = $gOPD(value, part);
13868
+ isOwn = !!desc;
13869
+
13870
+ // By convention, when a data property is converted to an accessor
13871
+ // property to emulate a data property that does not suffer from
13872
+ // the override mistake, that accessor's getter is marked with
13873
+ // an `originalValue` property. Here, when we detect this, we
13874
+ // uphold the illusion by pretending to see that original data
13875
+ // property, i.e., returning the value rather than the getter
13876
+ // itself.
13877
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
13878
+ value = desc.get;
13879
+ } else {
13880
+ value = value[part];
13881
+ }
13882
+ } else {
13883
+ isOwn = hasOwn(value, part);
13884
+ value = value[part];
13885
+ }
13886
+
13887
+ if (isOwn && !skipFurtherCaching) {
13888
+ INTRINSICS[intrinsicRealName] = value;
13889
+ }
13890
+ }
13891
+ }
13892
+ return value;
13893
+ };
13894
+
13895
+ },{"function-bind":25,"has":29,"has-symbols":27}],27:[function(require,module,exports){
13896
+ 'use strict';
13897
+
13898
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
13899
+ var hasSymbolSham = require('./shams');
13900
+
13901
+ module.exports = function hasNativeSymbols() {
13902
+ if (typeof origSymbol !== 'function') { return false; }
13903
+ if (typeof Symbol !== 'function') { return false; }
13904
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
13905
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
13906
+
13907
+ return hasSymbolSham();
13908
+ };
13909
+
13910
+ },{"./shams":28}],28:[function(require,module,exports){
13911
+ 'use strict';
13912
+
13913
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
13914
+ module.exports = function hasSymbols() {
13915
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
13916
+ if (typeof Symbol.iterator === 'symbol') { return true; }
13917
+
13918
+ var obj = {};
13919
+ var sym = Symbol('test');
13920
+ var symObj = Object(sym);
13921
+ if (typeof sym === 'string') { return false; }
13922
+
13923
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
13924
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
13925
+
13926
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
13927
+ // if (sym instanceof Symbol) { return false; }
13928
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
13929
+ // if (!(symObj instanceof Symbol)) { return false; }
13930
+
13931
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
13932
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
13933
+
13934
+ var symVal = 42;
13935
+ obj[sym] = symVal;
13936
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
13937
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
13938
+
13939
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
13940
+
13941
+ var syms = Object.getOwnPropertySymbols(obj);
13942
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
13943
+
13944
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
13945
+
13946
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
13947
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
13948
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
13949
+ }
13950
+
13951
+ return true;
13952
+ };
13953
+
13954
+ },{}],29:[function(require,module,exports){
13955
+ 'use strict';
13956
+
13957
+ var bind = require('function-bind');
13958
+
13959
+ module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
13960
+
13961
+ },{"function-bind":25}],30:[function(require,module,exports){
13157
13962
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
13158
13963
  exports.read = function (buffer, offset, isLE, mLen, nBytes) {
13159
13964
  var e, m
@@ -13240,7 +14045,170 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
13240
14045
  buffer[offset + i - d] |= s * 128
13241
14046
  }
13242
14047
 
13243
- },{}],19:[function(require,module,exports){
14048
+ },{}],31:[function(require,module,exports){
14049
+ if (typeof Object.create === 'function') {
14050
+ // implementation from standard node.js 'util' module
14051
+ module.exports = function inherits(ctor, superCtor) {
14052
+ if (superCtor) {
14053
+ ctor.super_ = superCtor
14054
+ ctor.prototype = Object.create(superCtor.prototype, {
14055
+ constructor: {
14056
+ value: ctor,
14057
+ enumerable: false,
14058
+ writable: true,
14059
+ configurable: true
14060
+ }
14061
+ })
14062
+ }
14063
+ };
14064
+ } else {
14065
+ // old school shim for old browsers
14066
+ module.exports = function inherits(ctor, superCtor) {
14067
+ if (superCtor) {
14068
+ ctor.super_ = superCtor
14069
+ var TempCtor = function () {}
14070
+ TempCtor.prototype = superCtor.prototype
14071
+ ctor.prototype = new TempCtor()
14072
+ ctor.prototype.constructor = ctor
14073
+ }
14074
+ }
14075
+ }
14076
+
14077
+ },{}],32:[function(require,module,exports){
14078
+ 'use strict';
14079
+
14080
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
14081
+ var callBound = require('call-bind/callBound');
14082
+
14083
+ var $toString = callBound('Object.prototype.toString');
14084
+
14085
+ var isStandardArguments = function isArguments(value) {
14086
+ if (hasToStringTag && value && typeof value === 'object' && Symbol.toStringTag in value) {
14087
+ return false;
14088
+ }
14089
+ return $toString(value) === '[object Arguments]';
14090
+ };
14091
+
14092
+ var isLegacyArguments = function isArguments(value) {
14093
+ if (isStandardArguments(value)) {
14094
+ return true;
14095
+ }
14096
+ return value !== null &&
14097
+ typeof value === 'object' &&
14098
+ typeof value.length === 'number' &&
14099
+ value.length >= 0 &&
14100
+ $toString(value) !== '[object Array]' &&
14101
+ $toString(value.callee) === '[object Function]';
14102
+ };
14103
+
14104
+ var supportsStandardArguments = (function () {
14105
+ return isStandardArguments(arguments);
14106
+ }());
14107
+
14108
+ isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
14109
+
14110
+ module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
14111
+
14112
+ },{"call-bind/callBound":20}],33:[function(require,module,exports){
14113
+ 'use strict';
14114
+
14115
+ var toStr = Object.prototype.toString;
14116
+ var fnToStr = Function.prototype.toString;
14117
+ var isFnRegex = /^\s*(?:function)?\*/;
14118
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
14119
+ var getProto = Object.getPrototypeOf;
14120
+ var getGeneratorFunc = function () { // eslint-disable-line consistent-return
14121
+ if (!hasToStringTag) {
14122
+ return false;
14123
+ }
14124
+ try {
14125
+ return Function('return function*() {}')();
14126
+ } catch (e) {
14127
+ }
14128
+ };
14129
+ var generatorFunc = getGeneratorFunc();
14130
+ var GeneratorFunction = getProto && generatorFunc ? getProto(generatorFunc) : false;
14131
+
14132
+ module.exports = function isGeneratorFunction(fn) {
14133
+ if (typeof fn !== 'function') {
14134
+ return false;
14135
+ }
14136
+ if (isFnRegex.test(fnToStr.call(fn))) {
14137
+ return true;
14138
+ }
14139
+ if (!hasToStringTag) {
14140
+ var str = toStr.call(fn);
14141
+ return str === '[object GeneratorFunction]';
14142
+ }
14143
+ return getProto && getProto(fn) === GeneratorFunction;
14144
+ };
14145
+
14146
+ },{}],34:[function(require,module,exports){
14147
+ (function (global){(function (){
14148
+ 'use strict';
14149
+
14150
+ var forEach = require('foreach');
14151
+ var availableTypedArrays = require('available-typed-arrays');
14152
+ var callBound = require('call-bind/callBound');
14153
+
14154
+ var $toString = callBound('Object.prototype.toString');
14155
+ var hasSymbols = require('has-symbols')();
14156
+ var hasToStringTag = hasSymbols && typeof Symbol.toStringTag === 'symbol';
14157
+
14158
+ var typedArrays = availableTypedArrays();
14159
+
14160
+ var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(array, value) {
14161
+ for (var i = 0; i < array.length; i += 1) {
14162
+ if (array[i] === value) {
14163
+ return i;
14164
+ }
14165
+ }
14166
+ return -1;
14167
+ };
14168
+ var $slice = callBound('String.prototype.slice');
14169
+ var toStrTags = {};
14170
+ var gOPD = require('es-abstract/helpers/getOwnPropertyDescriptor');
14171
+ var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
14172
+ if (hasToStringTag && gOPD && getPrototypeOf) {
14173
+ forEach(typedArrays, function (typedArray) {
14174
+ var arr = new global[typedArray]();
14175
+ if (!(Symbol.toStringTag in arr)) {
14176
+ throw new EvalError('this engine has support for Symbol.toStringTag, but ' + typedArray + ' does not have the property! Please report this.');
14177
+ }
14178
+ var proto = getPrototypeOf(arr);
14179
+ var descriptor = gOPD(proto, Symbol.toStringTag);
14180
+ if (!descriptor) {
14181
+ var superProto = getPrototypeOf(proto);
14182
+ descriptor = gOPD(superProto, Symbol.toStringTag);
14183
+ }
14184
+ toStrTags[typedArray] = descriptor.get;
14185
+ });
14186
+ }
14187
+
14188
+ var tryTypedArrays = function tryAllTypedArrays(value) {
14189
+ var anyTrue = false;
14190
+ forEach(toStrTags, function (getter, typedArray) {
14191
+ if (!anyTrue) {
14192
+ try {
14193
+ anyTrue = getter.call(value) === typedArray;
14194
+ } catch (e) { /**/ }
14195
+ }
14196
+ });
14197
+ return anyTrue;
14198
+ };
14199
+
14200
+ module.exports = function isTypedArray(value) {
14201
+ if (!value || typeof value !== 'object') { return false; }
14202
+ if (!hasToStringTag) {
14203
+ var tag = $slice($toString(value), 8, -1);
14204
+ return $indexOf(typedArrays, tag) > -1;
14205
+ }
14206
+ if (!gOPD) { return false; }
14207
+ return tryTypedArrays(value);
14208
+ };
14209
+
14210
+ }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
14211
+ },{"available-typed-arrays":17,"call-bind/callBound":20,"es-abstract/helpers/getOwnPropertyDescriptor":22,"foreach":23,"has-symbols":27}],35:[function(require,module,exports){
13244
14212
  // Top level file is just a mixin of submodules & constants
13245
14213
  'use strict';
13246
14214
 
@@ -13260,7 +14228,7 @@ module.exports.inflateRaw = inflateRaw;
13260
14228
  module.exports.ungzip = ungzip;
13261
14229
  module.exports.constants = constants;
13262
14230
 
13263
- },{"./lib/deflate":20,"./lib/inflate":21,"./lib/zlib/constants":25}],20:[function(require,module,exports){
14231
+ },{"./lib/deflate":36,"./lib/inflate":37,"./lib/zlib/constants":41}],36:[function(require,module,exports){
13264
14232
  'use strict';
13265
14233
 
13266
14234
 
@@ -13642,7 +14610,7 @@ module.exports.deflateRaw = deflateRaw;
13642
14610
  module.exports.gzip = gzip;
13643
14611
  module.exports.constants = require('./zlib/constants');
13644
14612
 
13645
- },{"./utils/common":22,"./utils/strings":23,"./zlib/constants":25,"./zlib/deflate":27,"./zlib/messages":32,"./zlib/zstream":34}],21:[function(require,module,exports){
14613
+ },{"./utils/common":38,"./utils/strings":39,"./zlib/constants":41,"./zlib/deflate":43,"./zlib/messages":48,"./zlib/zstream":50}],37:[function(require,module,exports){
13646
14614
  'use strict';
13647
14615
 
13648
14616
 
@@ -14063,7 +15031,7 @@ module.exports.inflateRaw = inflateRaw;
14063
15031
  module.exports.ungzip = inflate;
14064
15032
  module.exports.constants = require('./zlib/constants');
14065
15033
 
14066
- },{"./utils/common":22,"./utils/strings":23,"./zlib/constants":25,"./zlib/gzheader":28,"./zlib/inflate":30,"./zlib/messages":32,"./zlib/zstream":34}],22:[function(require,module,exports){
15034
+ },{"./utils/common":38,"./utils/strings":39,"./zlib/constants":41,"./zlib/gzheader":44,"./zlib/inflate":46,"./zlib/messages":48,"./zlib/zstream":50}],38:[function(require,module,exports){
14067
15035
  'use strict';
14068
15036
 
14069
15037
 
@@ -14113,7 +15081,7 @@ module.exports.flattenChunks = (chunks) => {
14113
15081
  return result;
14114
15082
  };
14115
15083
 
14116
- },{}],23:[function(require,module,exports){
15084
+ },{}],39:[function(require,module,exports){
14117
15085
  // String encode/decode helpers
14118
15086
  'use strict';
14119
15087
 
@@ -14289,7 +15257,7 @@ module.exports.utf8border = (buf, max) => {
14289
15257
  return (pos + _utf8len[buf[pos]] > max) ? pos : max;
14290
15258
  };
14291
15259
 
14292
- },{}],24:[function(require,module,exports){
15260
+ },{}],40:[function(require,module,exports){
14293
15261
  'use strict';
14294
15262
 
14295
15263
  // Note: adler32 takes 12% for level 0 and 2% for level 6.
@@ -14342,7 +15310,7 @@ const adler32 = (adler, buf, len, pos) => {
14342
15310
 
14343
15311
  module.exports = adler32;
14344
15312
 
14345
- },{}],25:[function(require,module,exports){
15313
+ },{}],41:[function(require,module,exports){
14346
15314
  'use strict';
14347
15315
 
14348
15316
  // (C) 1995-2013 Jean-loup Gailly and Mark Adler
@@ -14412,7 +15380,7 @@ module.exports = {
14412
15380
  //Z_NULL: null // Use -1 or null inline, depending on var type
14413
15381
  };
14414
15382
 
14415
- },{}],26:[function(require,module,exports){
15383
+ },{}],42:[function(require,module,exports){
14416
15384
  'use strict';
14417
15385
 
14418
15386
  // Note: we can't get significant speed boost here.
@@ -14473,7 +15441,7 @@ const crc32 = (crc, buf, len, pos) => {
14473
15441
 
14474
15442
  module.exports = crc32;
14475
15443
 
14476
- },{}],27:[function(require,module,exports){
15444
+ },{}],43:[function(require,module,exports){
14477
15445
  'use strict';
14478
15446
 
14479
15447
  // (C) 1995-2013 Jean-loup Gailly and Mark Adler
@@ -16523,7 +17491,7 @@ module.exports.deflatePrime = deflatePrime;
16523
17491
  module.exports.deflateTune = deflateTune;
16524
17492
  */
16525
17493
 
16526
- },{"./adler32":24,"./constants":25,"./crc32":26,"./messages":32,"./trees":33}],28:[function(require,module,exports){
17494
+ },{"./adler32":40,"./constants":41,"./crc32":42,"./messages":48,"./trees":49}],44:[function(require,module,exports){
16527
17495
  'use strict';
16528
17496
 
16529
17497
  // (C) 1995-2013 Jean-loup Gailly and Mark Adler
@@ -16583,7 +17551,7 @@ function GZheader() {
16583
17551
 
16584
17552
  module.exports = GZheader;
16585
17553
 
16586
- },{}],29:[function(require,module,exports){
17554
+ },{}],45:[function(require,module,exports){
16587
17555
  'use strict';
16588
17556
 
16589
17557
  // (C) 1995-2013 Jean-loup Gailly and Mark Adler
@@ -16929,7 +17897,7 @@ module.exports = function inflate_fast(strm, start) {
16929
17897
  return;
16930
17898
  };
16931
17899
 
16932
- },{}],30:[function(require,module,exports){
17900
+ },{}],46:[function(require,module,exports){
16933
17901
  'use strict';
16934
17902
 
16935
17903
  // (C) 1995-2013 Jean-loup Gailly and Mark Adler
@@ -18503,7 +19471,7 @@ module.exports.inflateUndermine = inflateUndermine;
18503
19471
  module.exports.inflateValidate = inflateValidate;
18504
19472
  */
18505
19473
 
18506
- },{"./adler32":24,"./constants":25,"./crc32":26,"./inffast":29,"./inftrees":31}],31:[function(require,module,exports){
19474
+ },{"./adler32":40,"./constants":41,"./crc32":42,"./inffast":45,"./inftrees":47}],47:[function(require,module,exports){
18507
19475
  'use strict';
18508
19476
 
18509
19477
  // (C) 1995-2013 Jean-loup Gailly and Mark Adler
@@ -18845,7 +19813,7 @@ const inflate_table = (type, lens, lens_index, codes, table, table_index, work,
18845
19813
 
18846
19814
  module.exports = inflate_table;
18847
19815
 
18848
- },{}],32:[function(require,module,exports){
19816
+ },{}],48:[function(require,module,exports){
18849
19817
  'use strict';
18850
19818
 
18851
19819
  // (C) 1995-2013 Jean-loup Gailly and Mark Adler
@@ -18879,7 +19847,7 @@ module.exports = {
18879
19847
  '-6': 'incompatible version' /* Z_VERSION_ERROR (-6) */
18880
19848
  };
18881
19849
 
18882
- },{}],33:[function(require,module,exports){
19850
+ },{}],49:[function(require,module,exports){
18883
19851
  'use strict';
18884
19852
 
18885
19853
  // (C) 1995-2013 Jean-loup Gailly and Mark Adler
@@ -20060,7 +21028,7 @@ module.exports._tr_flush_block = _tr_flush_block;
20060
21028
  module.exports._tr_tally = _tr_tally;
20061
21029
  module.exports._tr_align = _tr_align;
20062
21030
 
20063
- },{}],34:[function(require,module,exports){
21031
+ },{}],50:[function(require,module,exports){
20064
21032
  'use strict';
20065
21033
 
20066
21034
  // (C) 1995-2013 Jean-loup Gailly and Mark Adler
@@ -20109,5 +21077,1311 @@ function ZStream() {
20109
21077
 
20110
21078
  module.exports = ZStream;
20111
21079
 
20112
- },{}]},{},[10])(10)
21080
+ },{}],51:[function(require,module,exports){
21081
+ // shim for using process in browser
21082
+ var process = module.exports = {};
21083
+
21084
+ // cached from whatever global is present so that test runners that stub it
21085
+ // don't break things. But we need to wrap it in a try catch in case it is
21086
+ // wrapped in strict mode code which doesn't define any globals. It's inside a
21087
+ // function because try/catches deoptimize in certain engines.
21088
+
21089
+ var cachedSetTimeout;
21090
+ var cachedClearTimeout;
21091
+
21092
+ function defaultSetTimout() {
21093
+ throw new Error('setTimeout has not been defined');
21094
+ }
21095
+ function defaultClearTimeout () {
21096
+ throw new Error('clearTimeout has not been defined');
21097
+ }
21098
+ (function () {
21099
+ try {
21100
+ if (typeof setTimeout === 'function') {
21101
+ cachedSetTimeout = setTimeout;
21102
+ } else {
21103
+ cachedSetTimeout = defaultSetTimout;
21104
+ }
21105
+ } catch (e) {
21106
+ cachedSetTimeout = defaultSetTimout;
21107
+ }
21108
+ try {
21109
+ if (typeof clearTimeout === 'function') {
21110
+ cachedClearTimeout = clearTimeout;
21111
+ } else {
21112
+ cachedClearTimeout = defaultClearTimeout;
21113
+ }
21114
+ } catch (e) {
21115
+ cachedClearTimeout = defaultClearTimeout;
21116
+ }
21117
+ } ())
21118
+ function runTimeout(fun) {
21119
+ if (cachedSetTimeout === setTimeout) {
21120
+ //normal enviroments in sane situations
21121
+ return setTimeout(fun, 0);
21122
+ }
21123
+ // if setTimeout wasn't available but was latter defined
21124
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
21125
+ cachedSetTimeout = setTimeout;
21126
+ return setTimeout(fun, 0);
21127
+ }
21128
+ try {
21129
+ // when when somebody has screwed with setTimeout but no I.E. maddness
21130
+ return cachedSetTimeout(fun, 0);
21131
+ } catch(e){
21132
+ try {
21133
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
21134
+ return cachedSetTimeout.call(null, fun, 0);
21135
+ } catch(e){
21136
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
21137
+ return cachedSetTimeout.call(this, fun, 0);
21138
+ }
21139
+ }
21140
+
21141
+
21142
+ }
21143
+ function runClearTimeout(marker) {
21144
+ if (cachedClearTimeout === clearTimeout) {
21145
+ //normal enviroments in sane situations
21146
+ return clearTimeout(marker);
21147
+ }
21148
+ // if clearTimeout wasn't available but was latter defined
21149
+ if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
21150
+ cachedClearTimeout = clearTimeout;
21151
+ return clearTimeout(marker);
21152
+ }
21153
+ try {
21154
+ // when when somebody has screwed with setTimeout but no I.E. maddness
21155
+ return cachedClearTimeout(marker);
21156
+ } catch (e){
21157
+ try {
21158
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
21159
+ return cachedClearTimeout.call(null, marker);
21160
+ } catch (e){
21161
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
21162
+ // Some versions of I.E. have different rules for clearTimeout vs setTimeout
21163
+ return cachedClearTimeout.call(this, marker);
21164
+ }
21165
+ }
21166
+
21167
+
21168
+
21169
+ }
21170
+ var queue = [];
21171
+ var draining = false;
21172
+ var currentQueue;
21173
+ var queueIndex = -1;
21174
+
21175
+ function cleanUpNextTick() {
21176
+ if (!draining || !currentQueue) {
21177
+ return;
21178
+ }
21179
+ draining = false;
21180
+ if (currentQueue.length) {
21181
+ queue = currentQueue.concat(queue);
21182
+ } else {
21183
+ queueIndex = -1;
21184
+ }
21185
+ if (queue.length) {
21186
+ drainQueue();
21187
+ }
21188
+ }
21189
+
21190
+ function drainQueue() {
21191
+ if (draining) {
21192
+ return;
21193
+ }
21194
+ var timeout = runTimeout(cleanUpNextTick);
21195
+ draining = true;
21196
+
21197
+ var len = queue.length;
21198
+ while(len) {
21199
+ currentQueue = queue;
21200
+ queue = [];
21201
+ while (++queueIndex < len) {
21202
+ if (currentQueue) {
21203
+ currentQueue[queueIndex].run();
21204
+ }
21205
+ }
21206
+ queueIndex = -1;
21207
+ len = queue.length;
21208
+ }
21209
+ currentQueue = null;
21210
+ draining = false;
21211
+ runClearTimeout(timeout);
21212
+ }
21213
+
21214
+ process.nextTick = function (fun) {
21215
+ var args = new Array(arguments.length - 1);
21216
+ if (arguments.length > 1) {
21217
+ for (var i = 1; i < arguments.length; i++) {
21218
+ args[i - 1] = arguments[i];
21219
+ }
21220
+ }
21221
+ queue.push(new Item(fun, args));
21222
+ if (queue.length === 1 && !draining) {
21223
+ runTimeout(drainQueue);
21224
+ }
21225
+ };
21226
+
21227
+ // v8 likes predictible objects
21228
+ function Item(fun, array) {
21229
+ this.fun = fun;
21230
+ this.array = array;
21231
+ }
21232
+ Item.prototype.run = function () {
21233
+ this.fun.apply(null, this.array);
21234
+ };
21235
+ process.title = 'browser';
21236
+ process.browser = true;
21237
+ process.env = {};
21238
+ process.argv = [];
21239
+ process.version = ''; // empty string to avoid regexp issues
21240
+ process.versions = {};
21241
+
21242
+ function noop() {}
21243
+
21244
+ process.on = noop;
21245
+ process.addListener = noop;
21246
+ process.once = noop;
21247
+ process.off = noop;
21248
+ process.removeListener = noop;
21249
+ process.removeAllListeners = noop;
21250
+ process.emit = noop;
21251
+ process.prependListener = noop;
21252
+ process.prependOnceListener = noop;
21253
+
21254
+ process.listeners = function (name) { return [] }
21255
+
21256
+ process.binding = function (name) {
21257
+ throw new Error('process.binding is not supported');
21258
+ };
21259
+
21260
+ process.cwd = function () { return '/' };
21261
+ process.chdir = function (dir) {
21262
+ throw new Error('process.chdir is not supported');
21263
+ };
21264
+ process.umask = function() { return 0; };
21265
+
21266
+ },{}],52:[function(require,module,exports){
21267
+ module.exports = function isBuffer(arg) {
21268
+ return arg && typeof arg === 'object'
21269
+ && typeof arg.copy === 'function'
21270
+ && typeof arg.fill === 'function'
21271
+ && typeof arg.readUInt8 === 'function';
21272
+ }
21273
+ },{}],53:[function(require,module,exports){
21274
+ // Currently in sync with Node.js lib/internal/util/types.js
21275
+ // https://github.com/nodejs/node/commit/112cc7c27551254aa2b17098fb774867f05ed0d9
21276
+
21277
+ 'use strict';
21278
+
21279
+ var isArgumentsObject = require('is-arguments');
21280
+ var isGeneratorFunction = require('is-generator-function');
21281
+ var whichTypedArray = require('which-typed-array');
21282
+ var isTypedArray = require('is-typed-array');
21283
+
21284
+ function uncurryThis(f) {
21285
+ return f.call.bind(f);
21286
+ }
21287
+
21288
+ var BigIntSupported = typeof BigInt !== 'undefined';
21289
+ var SymbolSupported = typeof Symbol !== 'undefined';
21290
+
21291
+ var ObjectToString = uncurryThis(Object.prototype.toString);
21292
+
21293
+ var numberValue = uncurryThis(Number.prototype.valueOf);
21294
+ var stringValue = uncurryThis(String.prototype.valueOf);
21295
+ var booleanValue = uncurryThis(Boolean.prototype.valueOf);
21296
+
21297
+ if (BigIntSupported) {
21298
+ var bigIntValue = uncurryThis(BigInt.prototype.valueOf);
21299
+ }
21300
+
21301
+ if (SymbolSupported) {
21302
+ var symbolValue = uncurryThis(Symbol.prototype.valueOf);
21303
+ }
21304
+
21305
+ function checkBoxedPrimitive(value, prototypeValueOf) {
21306
+ if (typeof value !== 'object') {
21307
+ return false;
21308
+ }
21309
+ try {
21310
+ prototypeValueOf(value);
21311
+ return true;
21312
+ } catch(e) {
21313
+ return false;
21314
+ }
21315
+ }
21316
+
21317
+ exports.isArgumentsObject = isArgumentsObject;
21318
+ exports.isGeneratorFunction = isGeneratorFunction;
21319
+ exports.isTypedArray = isTypedArray;
21320
+
21321
+ // Taken from here and modified for better browser support
21322
+ // https://github.com/sindresorhus/p-is-promise/blob/cda35a513bda03f977ad5cde3a079d237e82d7ef/index.js
21323
+ function isPromise(input) {
21324
+ return (
21325
+ (
21326
+ typeof Promise !== 'undefined' &&
21327
+ input instanceof Promise
21328
+ ) ||
21329
+ (
21330
+ input !== null &&
21331
+ typeof input === 'object' &&
21332
+ typeof input.then === 'function' &&
21333
+ typeof input.catch === 'function'
21334
+ )
21335
+ );
21336
+ }
21337
+ exports.isPromise = isPromise;
21338
+
21339
+ function isArrayBufferView(value) {
21340
+ if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
21341
+ return ArrayBuffer.isView(value);
21342
+ }
21343
+
21344
+ return (
21345
+ isTypedArray(value) ||
21346
+ isDataView(value)
21347
+ );
21348
+ }
21349
+ exports.isArrayBufferView = isArrayBufferView;
21350
+
21351
+
21352
+ function isUint8Array(value) {
21353
+ return whichTypedArray(value) === 'Uint8Array';
21354
+ }
21355
+ exports.isUint8Array = isUint8Array;
21356
+
21357
+ function isUint8ClampedArray(value) {
21358
+ return whichTypedArray(value) === 'Uint8ClampedArray';
21359
+ }
21360
+ exports.isUint8ClampedArray = isUint8ClampedArray;
21361
+
21362
+ function isUint16Array(value) {
21363
+ return whichTypedArray(value) === 'Uint16Array';
21364
+ }
21365
+ exports.isUint16Array = isUint16Array;
21366
+
21367
+ function isUint32Array(value) {
21368
+ return whichTypedArray(value) === 'Uint32Array';
21369
+ }
21370
+ exports.isUint32Array = isUint32Array;
21371
+
21372
+ function isInt8Array(value) {
21373
+ return whichTypedArray(value) === 'Int8Array';
21374
+ }
21375
+ exports.isInt8Array = isInt8Array;
21376
+
21377
+ function isInt16Array(value) {
21378
+ return whichTypedArray(value) === 'Int16Array';
21379
+ }
21380
+ exports.isInt16Array = isInt16Array;
21381
+
21382
+ function isInt32Array(value) {
21383
+ return whichTypedArray(value) === 'Int32Array';
21384
+ }
21385
+ exports.isInt32Array = isInt32Array;
21386
+
21387
+ function isFloat32Array(value) {
21388
+ return whichTypedArray(value) === 'Float32Array';
21389
+ }
21390
+ exports.isFloat32Array = isFloat32Array;
21391
+
21392
+ function isFloat64Array(value) {
21393
+ return whichTypedArray(value) === 'Float64Array';
21394
+ }
21395
+ exports.isFloat64Array = isFloat64Array;
21396
+
21397
+ function isBigInt64Array(value) {
21398
+ return whichTypedArray(value) === 'BigInt64Array';
21399
+ }
21400
+ exports.isBigInt64Array = isBigInt64Array;
21401
+
21402
+ function isBigUint64Array(value) {
21403
+ return whichTypedArray(value) === 'BigUint64Array';
21404
+ }
21405
+ exports.isBigUint64Array = isBigUint64Array;
21406
+
21407
+ function isMapToString(value) {
21408
+ return ObjectToString(value) === '[object Map]';
21409
+ }
21410
+ isMapToString.working = (
21411
+ typeof Map !== 'undefined' &&
21412
+ isMapToString(new Map())
21413
+ );
21414
+
21415
+ function isMap(value) {
21416
+ if (typeof Map === 'undefined') {
21417
+ return false;
21418
+ }
21419
+
21420
+ return isMapToString.working
21421
+ ? isMapToString(value)
21422
+ : value instanceof Map;
21423
+ }
21424
+ exports.isMap = isMap;
21425
+
21426
+ function isSetToString(value) {
21427
+ return ObjectToString(value) === '[object Set]';
21428
+ }
21429
+ isSetToString.working = (
21430
+ typeof Set !== 'undefined' &&
21431
+ isSetToString(new Set())
21432
+ );
21433
+ function isSet(value) {
21434
+ if (typeof Set === 'undefined') {
21435
+ return false;
21436
+ }
21437
+
21438
+ return isSetToString.working
21439
+ ? isSetToString(value)
21440
+ : value instanceof Set;
21441
+ }
21442
+ exports.isSet = isSet;
21443
+
21444
+ function isWeakMapToString(value) {
21445
+ return ObjectToString(value) === '[object WeakMap]';
21446
+ }
21447
+ isWeakMapToString.working = (
21448
+ typeof WeakMap !== 'undefined' &&
21449
+ isWeakMapToString(new WeakMap())
21450
+ );
21451
+ function isWeakMap(value) {
21452
+ if (typeof WeakMap === 'undefined') {
21453
+ return false;
21454
+ }
21455
+
21456
+ return isWeakMapToString.working
21457
+ ? isWeakMapToString(value)
21458
+ : value instanceof WeakMap;
21459
+ }
21460
+ exports.isWeakMap = isWeakMap;
21461
+
21462
+ function isWeakSetToString(value) {
21463
+ return ObjectToString(value) === '[object WeakSet]';
21464
+ }
21465
+ isWeakSetToString.working = (
21466
+ typeof WeakSet !== 'undefined' &&
21467
+ isWeakSetToString(new WeakSet())
21468
+ );
21469
+ function isWeakSet(value) {
21470
+ return isWeakSetToString(value);
21471
+ }
21472
+ exports.isWeakSet = isWeakSet;
21473
+
21474
+ function isArrayBufferToString(value) {
21475
+ return ObjectToString(value) === '[object ArrayBuffer]';
21476
+ }
21477
+ isArrayBufferToString.working = (
21478
+ typeof ArrayBuffer !== 'undefined' &&
21479
+ isArrayBufferToString(new ArrayBuffer())
21480
+ );
21481
+ function isArrayBuffer(value) {
21482
+ if (typeof ArrayBuffer === 'undefined') {
21483
+ return false;
21484
+ }
21485
+
21486
+ return isArrayBufferToString.working
21487
+ ? isArrayBufferToString(value)
21488
+ : value instanceof ArrayBuffer;
21489
+ }
21490
+ exports.isArrayBuffer = isArrayBuffer;
21491
+
21492
+ function isDataViewToString(value) {
21493
+ return ObjectToString(value) === '[object DataView]';
21494
+ }
21495
+ isDataViewToString.working = (
21496
+ typeof ArrayBuffer !== 'undefined' &&
21497
+ typeof DataView !== 'undefined' &&
21498
+ isDataViewToString(new DataView(new ArrayBuffer(1), 0, 1))
21499
+ );
21500
+ function isDataView(value) {
21501
+ if (typeof DataView === 'undefined') {
21502
+ return false;
21503
+ }
21504
+
21505
+ return isDataViewToString.working
21506
+ ? isDataViewToString(value)
21507
+ : value instanceof DataView;
21508
+ }
21509
+ exports.isDataView = isDataView;
21510
+
21511
+ function isSharedArrayBufferToString(value) {
21512
+ return ObjectToString(value) === '[object SharedArrayBuffer]';
21513
+ }
21514
+ isSharedArrayBufferToString.working = (
21515
+ typeof SharedArrayBuffer !== 'undefined' &&
21516
+ isSharedArrayBufferToString(new SharedArrayBuffer())
21517
+ );
21518
+ function isSharedArrayBuffer(value) {
21519
+ if (typeof SharedArrayBuffer === 'undefined') {
21520
+ return false;
21521
+ }
21522
+
21523
+ return isSharedArrayBufferToString.working
21524
+ ? isSharedArrayBufferToString(value)
21525
+ : value instanceof SharedArrayBuffer;
21526
+ }
21527
+ exports.isSharedArrayBuffer = isSharedArrayBuffer;
21528
+
21529
+ function isAsyncFunction(value) {
21530
+ return ObjectToString(value) === '[object AsyncFunction]';
21531
+ }
21532
+ exports.isAsyncFunction = isAsyncFunction;
21533
+
21534
+ function isMapIterator(value) {
21535
+ return ObjectToString(value) === '[object Map Iterator]';
21536
+ }
21537
+ exports.isMapIterator = isMapIterator;
21538
+
21539
+ function isSetIterator(value) {
21540
+ return ObjectToString(value) === '[object Set Iterator]';
21541
+ }
21542
+ exports.isSetIterator = isSetIterator;
21543
+
21544
+ function isGeneratorObject(value) {
21545
+ return ObjectToString(value) === '[object Generator]';
21546
+ }
21547
+ exports.isGeneratorObject = isGeneratorObject;
21548
+
21549
+ function isWebAssemblyCompiledModule(value) {
21550
+ return ObjectToString(value) === '[object WebAssembly.Module]';
21551
+ }
21552
+ exports.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;
21553
+
21554
+ function isNumberObject(value) {
21555
+ return checkBoxedPrimitive(value, numberValue);
21556
+ }
21557
+ exports.isNumberObject = isNumberObject;
21558
+
21559
+ function isStringObject(value) {
21560
+ return checkBoxedPrimitive(value, stringValue);
21561
+ }
21562
+ exports.isStringObject = isStringObject;
21563
+
21564
+ function isBooleanObject(value) {
21565
+ return checkBoxedPrimitive(value, booleanValue);
21566
+ }
21567
+ exports.isBooleanObject = isBooleanObject;
21568
+
21569
+ function isBigIntObject(value) {
21570
+ return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);
21571
+ }
21572
+ exports.isBigIntObject = isBigIntObject;
21573
+
21574
+ function isSymbolObject(value) {
21575
+ return SymbolSupported && checkBoxedPrimitive(value, symbolValue);
21576
+ }
21577
+ exports.isSymbolObject = isSymbolObject;
21578
+
21579
+ function isBoxedPrimitive(value) {
21580
+ return (
21581
+ isNumberObject(value) ||
21582
+ isStringObject(value) ||
21583
+ isBooleanObject(value) ||
21584
+ isBigIntObject(value) ||
21585
+ isSymbolObject(value)
21586
+ );
21587
+ }
21588
+ exports.isBoxedPrimitive = isBoxedPrimitive;
21589
+
21590
+ function isAnyArrayBuffer(value) {
21591
+ return typeof Uint8Array !== 'undefined' && (
21592
+ isArrayBuffer(value) ||
21593
+ isSharedArrayBuffer(value)
21594
+ );
21595
+ }
21596
+ exports.isAnyArrayBuffer = isAnyArrayBuffer;
21597
+
21598
+ ['isProxy', 'isExternal', 'isModuleNamespaceObject'].forEach(function(method) {
21599
+ Object.defineProperty(exports, method, {
21600
+ enumerable: false,
21601
+ value: function() {
21602
+ throw new Error(method + ' is not supported in userland');
21603
+ }
21604
+ });
21605
+ });
21606
+
21607
+ },{"is-arguments":32,"is-generator-function":33,"is-typed-array":34,"which-typed-array":55}],54:[function(require,module,exports){
21608
+ (function (process){(function (){
21609
+ // Copyright Joyent, Inc. and other Node contributors.
21610
+ //
21611
+ // Permission is hereby granted, free of charge, to any person obtaining a
21612
+ // copy of this software and associated documentation files (the
21613
+ // "Software"), to deal in the Software without restriction, including
21614
+ // without limitation the rights to use, copy, modify, merge, publish,
21615
+ // distribute, sublicense, and/or sell copies of the Software, and to permit
21616
+ // persons to whom the Software is furnished to do so, subject to the
21617
+ // following conditions:
21618
+ //
21619
+ // The above copyright notice and this permission notice shall be included
21620
+ // in all copies or substantial portions of the Software.
21621
+ //
21622
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21623
+ // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21624
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
21625
+ // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
21626
+ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
21627
+ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
21628
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
21629
+
21630
+ var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors ||
21631
+ function getOwnPropertyDescriptors(obj) {
21632
+ var keys = Object.keys(obj);
21633
+ var descriptors = {};
21634
+ for (var i = 0; i < keys.length; i++) {
21635
+ descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]);
21636
+ }
21637
+ return descriptors;
21638
+ };
21639
+
21640
+ var formatRegExp = /%[sdj%]/g;
21641
+ exports.format = function(f) {
21642
+ if (!isString(f)) {
21643
+ var objects = [];
21644
+ for (var i = 0; i < arguments.length; i++) {
21645
+ objects.push(inspect(arguments[i]));
21646
+ }
21647
+ return objects.join(' ');
21648
+ }
21649
+
21650
+ var i = 1;
21651
+ var args = arguments;
21652
+ var len = args.length;
21653
+ var str = String(f).replace(formatRegExp, function(x) {
21654
+ if (x === '%%') return '%';
21655
+ if (i >= len) return x;
21656
+ switch (x) {
21657
+ case '%s': return String(args[i++]);
21658
+ case '%d': return Number(args[i++]);
21659
+ case '%j':
21660
+ try {
21661
+ return JSON.stringify(args[i++]);
21662
+ } catch (_) {
21663
+ return '[Circular]';
21664
+ }
21665
+ default:
21666
+ return x;
21667
+ }
21668
+ });
21669
+ for (var x = args[i]; i < len; x = args[++i]) {
21670
+ if (isNull(x) || !isObject(x)) {
21671
+ str += ' ' + x;
21672
+ } else {
21673
+ str += ' ' + inspect(x);
21674
+ }
21675
+ }
21676
+ return str;
21677
+ };
21678
+
21679
+
21680
+ // Mark that a method should not be used.
21681
+ // Returns a modified function which warns once by default.
21682
+ // If --no-deprecation is set, then it is a no-op.
21683
+ exports.deprecate = function(fn, msg) {
21684
+ if (typeof process !== 'undefined' && process.noDeprecation === true) {
21685
+ return fn;
21686
+ }
21687
+
21688
+ // Allow for deprecating things in the process of starting up.
21689
+ if (typeof process === 'undefined') {
21690
+ return function() {
21691
+ return exports.deprecate(fn, msg).apply(this, arguments);
21692
+ };
21693
+ }
21694
+
21695
+ var warned = false;
21696
+ function deprecated() {
21697
+ if (!warned) {
21698
+ if (process.throwDeprecation) {
21699
+ throw new Error(msg);
21700
+ } else if (process.traceDeprecation) {
21701
+ console.trace(msg);
21702
+ } else {
21703
+ console.error(msg);
21704
+ }
21705
+ warned = true;
21706
+ }
21707
+ return fn.apply(this, arguments);
21708
+ }
21709
+
21710
+ return deprecated;
21711
+ };
21712
+
21713
+
21714
+ var debugs = {};
21715
+ var debugEnvRegex = /^$/;
21716
+
21717
+ if (process.env.NODE_DEBUG) {
21718
+ var debugEnv = process.env.NODE_DEBUG;
21719
+ debugEnv = debugEnv.replace(/[|\\{}()[\]^$+?.]/g, '\\$&')
21720
+ .replace(/\*/g, '.*')
21721
+ .replace(/,/g, '$|^')
21722
+ .toUpperCase();
21723
+ debugEnvRegex = new RegExp('^' + debugEnv + '$', 'i');
21724
+ }
21725
+ exports.debuglog = function(set) {
21726
+ set = set.toUpperCase();
21727
+ if (!debugs[set]) {
21728
+ if (debugEnvRegex.test(set)) {
21729
+ var pid = process.pid;
21730
+ debugs[set] = function() {
21731
+ var msg = exports.format.apply(exports, arguments);
21732
+ console.error('%s %d: %s', set, pid, msg);
21733
+ };
21734
+ } else {
21735
+ debugs[set] = function() {};
21736
+ }
21737
+ }
21738
+ return debugs[set];
21739
+ };
21740
+
21741
+
21742
+ /**
21743
+ * Echos the value of a value. Trys to print the value out
21744
+ * in the best way possible given the different types.
21745
+ *
21746
+ * @param {Object} obj The object to print out.
21747
+ * @param {Object} opts Optional options object that alters the output.
21748
+ */
21749
+ /* legacy: obj, showHidden, depth, colors*/
21750
+ function inspect(obj, opts) {
21751
+ // default options
21752
+ var ctx = {
21753
+ seen: [],
21754
+ stylize: stylizeNoColor
21755
+ };
21756
+ // legacy...
21757
+ if (arguments.length >= 3) ctx.depth = arguments[2];
21758
+ if (arguments.length >= 4) ctx.colors = arguments[3];
21759
+ if (isBoolean(opts)) {
21760
+ // legacy...
21761
+ ctx.showHidden = opts;
21762
+ } else if (opts) {
21763
+ // got an "options" object
21764
+ exports._extend(ctx, opts);
21765
+ }
21766
+ // set default options
21767
+ if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
21768
+ if (isUndefined(ctx.depth)) ctx.depth = 2;
21769
+ if (isUndefined(ctx.colors)) ctx.colors = false;
21770
+ if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
21771
+ if (ctx.colors) ctx.stylize = stylizeWithColor;
21772
+ return formatValue(ctx, obj, ctx.depth);
21773
+ }
21774
+ exports.inspect = inspect;
21775
+
21776
+
21777
+ // http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
21778
+ inspect.colors = {
21779
+ 'bold' : [1, 22],
21780
+ 'italic' : [3, 23],
21781
+ 'underline' : [4, 24],
21782
+ 'inverse' : [7, 27],
21783
+ 'white' : [37, 39],
21784
+ 'grey' : [90, 39],
21785
+ 'black' : [30, 39],
21786
+ 'blue' : [34, 39],
21787
+ 'cyan' : [36, 39],
21788
+ 'green' : [32, 39],
21789
+ 'magenta' : [35, 39],
21790
+ 'red' : [31, 39],
21791
+ 'yellow' : [33, 39]
21792
+ };
21793
+
21794
+ // Don't use 'blue' not visible on cmd.exe
21795
+ inspect.styles = {
21796
+ 'special': 'cyan',
21797
+ 'number': 'yellow',
21798
+ 'boolean': 'yellow',
21799
+ 'undefined': 'grey',
21800
+ 'null': 'bold',
21801
+ 'string': 'green',
21802
+ 'date': 'magenta',
21803
+ // "name": intentionally not styling
21804
+ 'regexp': 'red'
21805
+ };
21806
+
21807
+
21808
+ function stylizeWithColor(str, styleType) {
21809
+ var style = inspect.styles[styleType];
21810
+
21811
+ if (style) {
21812
+ return '\u001b[' + inspect.colors[style][0] + 'm' + str +
21813
+ '\u001b[' + inspect.colors[style][1] + 'm';
21814
+ } else {
21815
+ return str;
21816
+ }
21817
+ }
21818
+
21819
+
21820
+ function stylizeNoColor(str, styleType) {
21821
+ return str;
21822
+ }
21823
+
21824
+
21825
+ function arrayToHash(array) {
21826
+ var hash = {};
21827
+
21828
+ array.forEach(function(val, idx) {
21829
+ hash[val] = true;
21830
+ });
21831
+
21832
+ return hash;
21833
+ }
21834
+
21835
+
21836
+ function formatValue(ctx, value, recurseTimes) {
21837
+ // Provide a hook for user-specified inspect functions.
21838
+ // Check that value is an object with an inspect function on it
21839
+ if (ctx.customInspect &&
21840
+ value &&
21841
+ isFunction(value.inspect) &&
21842
+ // Filter out the util module, it's inspect function is special
21843
+ value.inspect !== exports.inspect &&
21844
+ // Also filter out any prototype objects using the circular check.
21845
+ !(value.constructor && value.constructor.prototype === value)) {
21846
+ var ret = value.inspect(recurseTimes, ctx);
21847
+ if (!isString(ret)) {
21848
+ ret = formatValue(ctx, ret, recurseTimes);
21849
+ }
21850
+ return ret;
21851
+ }
21852
+
21853
+ // Primitive types cannot have properties
21854
+ var primitive = formatPrimitive(ctx, value);
21855
+ if (primitive) {
21856
+ return primitive;
21857
+ }
21858
+
21859
+ // Look up the keys of the object.
21860
+ var keys = Object.keys(value);
21861
+ var visibleKeys = arrayToHash(keys);
21862
+
21863
+ if (ctx.showHidden) {
21864
+ keys = Object.getOwnPropertyNames(value);
21865
+ }
21866
+
21867
+ // IE doesn't make error fields non-enumerable
21868
+ // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
21869
+ if (isError(value)
21870
+ && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
21871
+ return formatError(value);
21872
+ }
21873
+
21874
+ // Some type of object without properties can be shortcutted.
21875
+ if (keys.length === 0) {
21876
+ if (isFunction(value)) {
21877
+ var name = value.name ? ': ' + value.name : '';
21878
+ return ctx.stylize('[Function' + name + ']', 'special');
21879
+ }
21880
+ if (isRegExp(value)) {
21881
+ return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
21882
+ }
21883
+ if (isDate(value)) {
21884
+ return ctx.stylize(Date.prototype.toString.call(value), 'date');
21885
+ }
21886
+ if (isError(value)) {
21887
+ return formatError(value);
21888
+ }
21889
+ }
21890
+
21891
+ var base = '', array = false, braces = ['{', '}'];
21892
+
21893
+ // Make Array say that they are Array
21894
+ if (isArray(value)) {
21895
+ array = true;
21896
+ braces = ['[', ']'];
21897
+ }
21898
+
21899
+ // Make functions say that they are functions
21900
+ if (isFunction(value)) {
21901
+ var n = value.name ? ': ' + value.name : '';
21902
+ base = ' [Function' + n + ']';
21903
+ }
21904
+
21905
+ // Make RegExps say that they are RegExps
21906
+ if (isRegExp(value)) {
21907
+ base = ' ' + RegExp.prototype.toString.call(value);
21908
+ }
21909
+
21910
+ // Make dates with properties first say the date
21911
+ if (isDate(value)) {
21912
+ base = ' ' + Date.prototype.toUTCString.call(value);
21913
+ }
21914
+
21915
+ // Make error with message first say the error
21916
+ if (isError(value)) {
21917
+ base = ' ' + formatError(value);
21918
+ }
21919
+
21920
+ if (keys.length === 0 && (!array || value.length == 0)) {
21921
+ return braces[0] + base + braces[1];
21922
+ }
21923
+
21924
+ if (recurseTimes < 0) {
21925
+ if (isRegExp(value)) {
21926
+ return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
21927
+ } else {
21928
+ return ctx.stylize('[Object]', 'special');
21929
+ }
21930
+ }
21931
+
21932
+ ctx.seen.push(value);
21933
+
21934
+ var output;
21935
+ if (array) {
21936
+ output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
21937
+ } else {
21938
+ output = keys.map(function(key) {
21939
+ return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
21940
+ });
21941
+ }
21942
+
21943
+ ctx.seen.pop();
21944
+
21945
+ return reduceToSingleString(output, base, braces);
21946
+ }
21947
+
21948
+
21949
+ function formatPrimitive(ctx, value) {
21950
+ if (isUndefined(value))
21951
+ return ctx.stylize('undefined', 'undefined');
21952
+ if (isString(value)) {
21953
+ var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
21954
+ .replace(/'/g, "\\'")
21955
+ .replace(/\\"/g, '"') + '\'';
21956
+ return ctx.stylize(simple, 'string');
21957
+ }
21958
+ if (isNumber(value))
21959
+ return ctx.stylize('' + value, 'number');
21960
+ if (isBoolean(value))
21961
+ return ctx.stylize('' + value, 'boolean');
21962
+ // For some reason typeof null is "object", so special case here.
21963
+ if (isNull(value))
21964
+ return ctx.stylize('null', 'null');
21965
+ }
21966
+
21967
+
21968
+ function formatError(value) {
21969
+ return '[' + Error.prototype.toString.call(value) + ']';
21970
+ }
21971
+
21972
+
21973
+ function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
21974
+ var output = [];
21975
+ for (var i = 0, l = value.length; i < l; ++i) {
21976
+ if (hasOwnProperty(value, String(i))) {
21977
+ output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
21978
+ String(i), true));
21979
+ } else {
21980
+ output.push('');
21981
+ }
21982
+ }
21983
+ keys.forEach(function(key) {
21984
+ if (!key.match(/^\d+$/)) {
21985
+ output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
21986
+ key, true));
21987
+ }
21988
+ });
21989
+ return output;
21990
+ }
21991
+
21992
+
21993
+ function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
21994
+ var name, str, desc;
21995
+ desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
21996
+ if (desc.get) {
21997
+ if (desc.set) {
21998
+ str = ctx.stylize('[Getter/Setter]', 'special');
21999
+ } else {
22000
+ str = ctx.stylize('[Getter]', 'special');
22001
+ }
22002
+ } else {
22003
+ if (desc.set) {
22004
+ str = ctx.stylize('[Setter]', 'special');
22005
+ }
22006
+ }
22007
+ if (!hasOwnProperty(visibleKeys, key)) {
22008
+ name = '[' + key + ']';
22009
+ }
22010
+ if (!str) {
22011
+ if (ctx.seen.indexOf(desc.value) < 0) {
22012
+ if (isNull(recurseTimes)) {
22013
+ str = formatValue(ctx, desc.value, null);
22014
+ } else {
22015
+ str = formatValue(ctx, desc.value, recurseTimes - 1);
22016
+ }
22017
+ if (str.indexOf('\n') > -1) {
22018
+ if (array) {
22019
+ str = str.split('\n').map(function(line) {
22020
+ return ' ' + line;
22021
+ }).join('\n').substr(2);
22022
+ } else {
22023
+ str = '\n' + str.split('\n').map(function(line) {
22024
+ return ' ' + line;
22025
+ }).join('\n');
22026
+ }
22027
+ }
22028
+ } else {
22029
+ str = ctx.stylize('[Circular]', 'special');
22030
+ }
22031
+ }
22032
+ if (isUndefined(name)) {
22033
+ if (array && key.match(/^\d+$/)) {
22034
+ return str;
22035
+ }
22036
+ name = JSON.stringify('' + key);
22037
+ if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
22038
+ name = name.substr(1, name.length - 2);
22039
+ name = ctx.stylize(name, 'name');
22040
+ } else {
22041
+ name = name.replace(/'/g, "\\'")
22042
+ .replace(/\\"/g, '"')
22043
+ .replace(/(^"|"$)/g, "'");
22044
+ name = ctx.stylize(name, 'string');
22045
+ }
22046
+ }
22047
+
22048
+ return name + ': ' + str;
22049
+ }
22050
+
22051
+
22052
+ function reduceToSingleString(output, base, braces) {
22053
+ var numLinesEst = 0;
22054
+ var length = output.reduce(function(prev, cur) {
22055
+ numLinesEst++;
22056
+ if (cur.indexOf('\n') >= 0) numLinesEst++;
22057
+ return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
22058
+ }, 0);
22059
+
22060
+ if (length > 60) {
22061
+ return braces[0] +
22062
+ (base === '' ? '' : base + '\n ') +
22063
+ ' ' +
22064
+ output.join(',\n ') +
22065
+ ' ' +
22066
+ braces[1];
22067
+ }
22068
+
22069
+ return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
22070
+ }
22071
+
22072
+
22073
+ // NOTE: These type checking functions intentionally don't use `instanceof`
22074
+ // because it is fragile and can be easily faked with `Object.create()`.
22075
+ exports.types = require('./support/types');
22076
+
22077
+ function isArray(ar) {
22078
+ return Array.isArray(ar);
22079
+ }
22080
+ exports.isArray = isArray;
22081
+
22082
+ function isBoolean(arg) {
22083
+ return typeof arg === 'boolean';
22084
+ }
22085
+ exports.isBoolean = isBoolean;
22086
+
22087
+ function isNull(arg) {
22088
+ return arg === null;
22089
+ }
22090
+ exports.isNull = isNull;
22091
+
22092
+ function isNullOrUndefined(arg) {
22093
+ return arg == null;
22094
+ }
22095
+ exports.isNullOrUndefined = isNullOrUndefined;
22096
+
22097
+ function isNumber(arg) {
22098
+ return typeof arg === 'number';
22099
+ }
22100
+ exports.isNumber = isNumber;
22101
+
22102
+ function isString(arg) {
22103
+ return typeof arg === 'string';
22104
+ }
22105
+ exports.isString = isString;
22106
+
22107
+ function isSymbol(arg) {
22108
+ return typeof arg === 'symbol';
22109
+ }
22110
+ exports.isSymbol = isSymbol;
22111
+
22112
+ function isUndefined(arg) {
22113
+ return arg === void 0;
22114
+ }
22115
+ exports.isUndefined = isUndefined;
22116
+
22117
+ function isRegExp(re) {
22118
+ return isObject(re) && objectToString(re) === '[object RegExp]';
22119
+ }
22120
+ exports.isRegExp = isRegExp;
22121
+ exports.types.isRegExp = isRegExp;
22122
+
22123
+ function isObject(arg) {
22124
+ return typeof arg === 'object' && arg !== null;
22125
+ }
22126
+ exports.isObject = isObject;
22127
+
22128
+ function isDate(d) {
22129
+ return isObject(d) && objectToString(d) === '[object Date]';
22130
+ }
22131
+ exports.isDate = isDate;
22132
+ exports.types.isDate = isDate;
22133
+
22134
+ function isError(e) {
22135
+ return isObject(e) &&
22136
+ (objectToString(e) === '[object Error]' || e instanceof Error);
22137
+ }
22138
+ exports.isError = isError;
22139
+ exports.types.isNativeError = isError;
22140
+
22141
+ function isFunction(arg) {
22142
+ return typeof arg === 'function';
22143
+ }
22144
+ exports.isFunction = isFunction;
22145
+
22146
+ function isPrimitive(arg) {
22147
+ return arg === null ||
22148
+ typeof arg === 'boolean' ||
22149
+ typeof arg === 'number' ||
22150
+ typeof arg === 'string' ||
22151
+ typeof arg === 'symbol' || // ES6 symbol
22152
+ typeof arg === 'undefined';
22153
+ }
22154
+ exports.isPrimitive = isPrimitive;
22155
+
22156
+ exports.isBuffer = require('./support/isBuffer');
22157
+
22158
+ function objectToString(o) {
22159
+ return Object.prototype.toString.call(o);
22160
+ }
22161
+
22162
+
22163
+ function pad(n) {
22164
+ return n < 10 ? '0' + n.toString(10) : n.toString(10);
22165
+ }
22166
+
22167
+
22168
+ var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
22169
+ 'Oct', 'Nov', 'Dec'];
22170
+
22171
+ // 26 Feb 16:19:34
22172
+ function timestamp() {
22173
+ var d = new Date();
22174
+ var time = [pad(d.getHours()),
22175
+ pad(d.getMinutes()),
22176
+ pad(d.getSeconds())].join(':');
22177
+ return [d.getDate(), months[d.getMonth()], time].join(' ');
22178
+ }
22179
+
22180
+
22181
+ // log is just a thin wrapper to console.log that prepends a timestamp
22182
+ exports.log = function() {
22183
+ console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));
22184
+ };
22185
+
22186
+
22187
+ /**
22188
+ * Inherit the prototype methods from one constructor into another.
22189
+ *
22190
+ * The Function.prototype.inherits from lang.js rewritten as a standalone
22191
+ * function (not on Function.prototype). NOTE: If this file is to be loaded
22192
+ * during bootstrapping this function needs to be rewritten using some native
22193
+ * functions as prototype setup using normal JavaScript does not work as
22194
+ * expected during bootstrapping (see mirror.js in r114903).
22195
+ *
22196
+ * @param {function} ctor Constructor function which needs to inherit the
22197
+ * prototype.
22198
+ * @param {function} superCtor Constructor function to inherit prototype from.
22199
+ */
22200
+ exports.inherits = require('inherits');
22201
+
22202
+ exports._extend = function(origin, add) {
22203
+ // Don't do anything if add isn't an object
22204
+ if (!add || !isObject(add)) return origin;
22205
+
22206
+ var keys = Object.keys(add);
22207
+ var i = keys.length;
22208
+ while (i--) {
22209
+ origin[keys[i]] = add[keys[i]];
22210
+ }
22211
+ return origin;
22212
+ };
22213
+
22214
+ function hasOwnProperty(obj, prop) {
22215
+ return Object.prototype.hasOwnProperty.call(obj, prop);
22216
+ }
22217
+
22218
+ var kCustomPromisifiedSymbol = typeof Symbol !== 'undefined' ? Symbol('util.promisify.custom') : undefined;
22219
+
22220
+ exports.promisify = function promisify(original) {
22221
+ if (typeof original !== 'function')
22222
+ throw new TypeError('The "original" argument must be of type Function');
22223
+
22224
+ if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {
22225
+ var fn = original[kCustomPromisifiedSymbol];
22226
+ if (typeof fn !== 'function') {
22227
+ throw new TypeError('The "util.promisify.custom" argument must be of type Function');
22228
+ }
22229
+ Object.defineProperty(fn, kCustomPromisifiedSymbol, {
22230
+ value: fn, enumerable: false, writable: false, configurable: true
22231
+ });
22232
+ return fn;
22233
+ }
22234
+
22235
+ function fn() {
22236
+ var promiseResolve, promiseReject;
22237
+ var promise = new Promise(function (resolve, reject) {
22238
+ promiseResolve = resolve;
22239
+ promiseReject = reject;
22240
+ });
22241
+
22242
+ var args = [];
22243
+ for (var i = 0; i < arguments.length; i++) {
22244
+ args.push(arguments[i]);
22245
+ }
22246
+ args.push(function (err, value) {
22247
+ if (err) {
22248
+ promiseReject(err);
22249
+ } else {
22250
+ promiseResolve(value);
22251
+ }
22252
+ });
22253
+
22254
+ try {
22255
+ original.apply(this, args);
22256
+ } catch (err) {
22257
+ promiseReject(err);
22258
+ }
22259
+
22260
+ return promise;
22261
+ }
22262
+
22263
+ Object.setPrototypeOf(fn, Object.getPrototypeOf(original));
22264
+
22265
+ if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {
22266
+ value: fn, enumerable: false, writable: false, configurable: true
22267
+ });
22268
+ return Object.defineProperties(
22269
+ fn,
22270
+ getOwnPropertyDescriptors(original)
22271
+ );
22272
+ }
22273
+
22274
+ exports.promisify.custom = kCustomPromisifiedSymbol
22275
+
22276
+ function callbackifyOnRejected(reason, cb) {
22277
+ // `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).
22278
+ // Because `null` is a special error value in callbacks which means "no error
22279
+ // occurred", we error-wrap so the callback consumer can distinguish between
22280
+ // "the promise rejected with null" or "the promise fulfilled with undefined".
22281
+ if (!reason) {
22282
+ var newReason = new Error('Promise was rejected with a falsy value');
22283
+ newReason.reason = reason;
22284
+ reason = newReason;
22285
+ }
22286
+ return cb(reason);
22287
+ }
22288
+
22289
+ function callbackify(original) {
22290
+ if (typeof original !== 'function') {
22291
+ throw new TypeError('The "original" argument must be of type Function');
22292
+ }
22293
+
22294
+ // We DO NOT return the promise as it gives the user a false sense that
22295
+ // the promise is actually somehow related to the callback's execution
22296
+ // and that the callback throwing will reject the promise.
22297
+ function callbackified() {
22298
+ var args = [];
22299
+ for (var i = 0; i < arguments.length; i++) {
22300
+ args.push(arguments[i]);
22301
+ }
22302
+
22303
+ var maybeCb = args.pop();
22304
+ if (typeof maybeCb !== 'function') {
22305
+ throw new TypeError('The last argument must be of type Function');
22306
+ }
22307
+ var self = this;
22308
+ var cb = function() {
22309
+ return maybeCb.apply(self, arguments);
22310
+ };
22311
+ // In true node style we process the callback on `nextTick` with all the
22312
+ // implications (stack, `uncaughtException`, `async_hooks`)
22313
+ original.apply(this, args)
22314
+ .then(function(ret) { process.nextTick(cb.bind(null, null, ret)) },
22315
+ function(rej) { process.nextTick(callbackifyOnRejected.bind(null, rej, cb)) });
22316
+ }
22317
+
22318
+ Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));
22319
+ Object.defineProperties(callbackified,
22320
+ getOwnPropertyDescriptors(original));
22321
+ return callbackified;
22322
+ }
22323
+ exports.callbackify = callbackify;
22324
+
22325
+ }).call(this)}).call(this,require('_process'))
22326
+ },{"./support/isBuffer":52,"./support/types":53,"_process":51,"inherits":31}],55:[function(require,module,exports){
22327
+ (function (global){(function (){
22328
+ 'use strict';
22329
+
22330
+ var forEach = require('foreach');
22331
+ var availableTypedArrays = require('available-typed-arrays');
22332
+ var callBound = require('call-bind/callBound');
22333
+
22334
+ var $toString = callBound('Object.prototype.toString');
22335
+ var hasSymbols = require('has-symbols')();
22336
+ var hasToStringTag = hasSymbols && typeof Symbol.toStringTag === 'symbol';
22337
+
22338
+ var typedArrays = availableTypedArrays();
22339
+
22340
+ var $slice = callBound('String.prototype.slice');
22341
+ var toStrTags = {};
22342
+ var gOPD = require('es-abstract/helpers/getOwnPropertyDescriptor');
22343
+ var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
22344
+ if (hasToStringTag && gOPD && getPrototypeOf) {
22345
+ forEach(typedArrays, function (typedArray) {
22346
+ if (typeof global[typedArray] === 'function') {
22347
+ var arr = new global[typedArray]();
22348
+ if (!(Symbol.toStringTag in arr)) {
22349
+ throw new EvalError('this engine has support for Symbol.toStringTag, but ' + typedArray + ' does not have the property! Please report this.');
22350
+ }
22351
+ var proto = getPrototypeOf(arr);
22352
+ var descriptor = gOPD(proto, Symbol.toStringTag);
22353
+ if (!descriptor) {
22354
+ var superProto = getPrototypeOf(proto);
22355
+ descriptor = gOPD(superProto, Symbol.toStringTag);
22356
+ }
22357
+ toStrTags[typedArray] = descriptor.get;
22358
+ }
22359
+ });
22360
+ }
22361
+
22362
+ var tryTypedArrays = function tryAllTypedArrays(value) {
22363
+ var foundName = false;
22364
+ forEach(toStrTags, function (getter, typedArray) {
22365
+ if (!foundName) {
22366
+ try {
22367
+ var name = getter.call(value);
22368
+ if (name === typedArray) {
22369
+ foundName = name;
22370
+ }
22371
+ } catch (e) {}
22372
+ }
22373
+ });
22374
+ return foundName;
22375
+ };
22376
+
22377
+ var isTypedArray = require('is-typed-array');
22378
+
22379
+ module.exports = function whichTypedArray(value) {
22380
+ if (!isTypedArray(value)) { return false; }
22381
+ if (!hasToStringTag) { return $slice($toString(value), 8, -1); }
22382
+ return tryTypedArrays(value);
22383
+ };
22384
+
22385
+ }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
22386
+ },{"available-typed-arrays":17,"call-bind/callBound":20,"es-abstract/helpers/getOwnPropertyDescriptor":22,"foreach":23,"has-symbols":27,"is-typed-array":34}]},{},[10])(10)
20113
22387
  });