@forsakringskassan/docs-generator 2.19.0 → 2.20.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.
- package/README.md +2 -4
- package/dist/compile-example.js +3 -3
- package/dist/compile-example.js.map +1 -1
- package/dist/{create-markdown-renderer-CbE5KJoX.js → create-markdown-renderer-LhP3SCgI.js} +12 -7
- package/dist/create-markdown-renderer-LhP3SCgI.js.map +1 -0
- package/dist/index.d.ts +0 -29
- package/dist/index.js +33 -51
- package/dist/index.js.map +1 -1
- package/dist/markdown.js +3 -3
- package/dist/processors/selectable-version.js +1 -1
- package/dist/runtime.js +6993 -4860
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/{vendor-BHA4LIog.js → vendor-CLvDQIrx.js} +2078 -1702
- package/dist/vendor-CLvDQIrx.js.map +1 -0
- package/dist/vue3-BKfEgvlU.js +1863 -0
- package/dist/vue3-BKfEgvlU.js.map +1 -0
- package/package.json +1 -1
- package/templates/base.template.html +4 -9
- package/dist/create-markdown-renderer-CbE5KJoX.js.map +0 -1
- package/dist/vendor-BHA4LIog.js.map +0 -1
- package/dist/vue3-BhdC7RZQ.js +0 -13321
- package/dist/vue3-BhdC7RZQ.js.map +0 -1
|
@@ -23,15 +23,15 @@ var node_child_process = require('node:child_process');
|
|
|
23
23
|
var promises = require('node:stream/promises');
|
|
24
24
|
var promises$1 = require('fs/promises');
|
|
25
25
|
var require$$0$5 = require('os');
|
|
26
|
-
var require$$1$
|
|
26
|
+
var require$$1$5 = require('http');
|
|
27
27
|
var require$$2$2 = require('https');
|
|
28
28
|
var require$$2 = require('url');
|
|
29
29
|
var require$$0$6 = require('buffer');
|
|
30
30
|
var require$$1$2 = require('crypto');
|
|
31
31
|
var require$$1$3 = require('net');
|
|
32
32
|
var require$$2$1 = require('tls');
|
|
33
|
-
var require$$
|
|
34
|
-
var require$$0$
|
|
33
|
+
var require$$1$4 = require('tty');
|
|
34
|
+
var require$$0$7 = require('querystring');
|
|
35
35
|
|
|
36
36
|
function _interopNamespaceDefault(e) {
|
|
37
37
|
var n = Object.create(null);
|
|
@@ -7237,7 +7237,7 @@ const errors = {
|
|
|
7237
7237
|
|
|
7238
7238
|
/** Convenience shortcuts */
|
|
7239
7239
|
const baseMinusTMin = base$1 - tMin;
|
|
7240
|
-
const floor = Math.floor;
|
|
7240
|
+
const floor$1 = Math.floor;
|
|
7241
7241
|
const stringFromCharCode = String.fromCharCode;
|
|
7242
7242
|
|
|
7243
7243
|
/*--------------------------------------------------------------------------*/
|
|
@@ -7332,6 +7332,16 @@ function ucs2decode(string) {
|
|
|
7332
7332
|
return output;
|
|
7333
7333
|
}
|
|
7334
7334
|
|
|
7335
|
+
/**
|
|
7336
|
+
* Creates a string based on an array of numeric code points.
|
|
7337
|
+
* @see `punycode.ucs2.decode`
|
|
7338
|
+
* @memberOf punycode.ucs2
|
|
7339
|
+
* @name encode
|
|
7340
|
+
* @param {Array} codePoints The array of numeric code points.
|
|
7341
|
+
* @returns {String} The new Unicode string (UCS-2).
|
|
7342
|
+
*/
|
|
7343
|
+
const ucs2encode = codePoints => String.fromCodePoint(...codePoints);
|
|
7344
|
+
|
|
7335
7345
|
/**
|
|
7336
7346
|
* Converts a basic code point into a digit/integer.
|
|
7337
7347
|
* @see `digitToBasic()`
|
|
@@ -7378,12 +7388,12 @@ const digitToBasic = function(digit, flag) {
|
|
|
7378
7388
|
*/
|
|
7379
7389
|
const adapt = function(delta, numPoints, firstTime) {
|
|
7380
7390
|
let k = 0;
|
|
7381
|
-
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
7382
|
-
delta += floor(delta / numPoints);
|
|
7391
|
+
delta = firstTime ? floor$1(delta / damp) : delta >> 1;
|
|
7392
|
+
delta += floor$1(delta / numPoints);
|
|
7383
7393
|
for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base$1) {
|
|
7384
|
-
delta = floor(delta / baseMinusTMin);
|
|
7394
|
+
delta = floor$1(delta / baseMinusTMin);
|
|
7385
7395
|
}
|
|
7386
|
-
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
7396
|
+
return floor$1(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
7387
7397
|
};
|
|
7388
7398
|
|
|
7389
7399
|
/**
|
|
@@ -7440,7 +7450,7 @@ const decode = function(input) {
|
|
|
7440
7450
|
if (digit >= base$1) {
|
|
7441
7451
|
error('invalid-input');
|
|
7442
7452
|
}
|
|
7443
|
-
if (digit > floor((maxInt - i) / w)) {
|
|
7453
|
+
if (digit > floor$1((maxInt - i) / w)) {
|
|
7444
7454
|
error('overflow');
|
|
7445
7455
|
}
|
|
7446
7456
|
|
|
@@ -7452,7 +7462,7 @@ const decode = function(input) {
|
|
|
7452
7462
|
}
|
|
7453
7463
|
|
|
7454
7464
|
const baseMinusT = base$1 - t;
|
|
7455
|
-
if (w > floor(maxInt / baseMinusT)) {
|
|
7465
|
+
if (w > floor$1(maxInt / baseMinusT)) {
|
|
7456
7466
|
error('overflow');
|
|
7457
7467
|
}
|
|
7458
7468
|
|
|
@@ -7465,11 +7475,11 @@ const decode = function(input) {
|
|
|
7465
7475
|
|
|
7466
7476
|
// `i` was supposed to wrap around from `out` to `0`,
|
|
7467
7477
|
// incrementing `n` each time, so we'll fix that now:
|
|
7468
|
-
if (floor(i / out) > maxInt - n) {
|
|
7478
|
+
if (floor$1(i / out) > maxInt - n) {
|
|
7469
7479
|
error('overflow');
|
|
7470
7480
|
}
|
|
7471
7481
|
|
|
7472
|
-
n += floor(i / out);
|
|
7482
|
+
n += floor$1(i / out);
|
|
7473
7483
|
i %= out;
|
|
7474
7484
|
|
|
7475
7485
|
// Insert `n` at position `i` of the output.
|
|
@@ -7534,7 +7544,7 @@ const encode = function(input) {
|
|
|
7534
7544
|
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
|
|
7535
7545
|
// but guard against overflow.
|
|
7536
7546
|
const handledCPCountPlusOne = handledCPCount + 1;
|
|
7537
|
-
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
|
|
7547
|
+
if (m - n > floor$1((maxInt - delta) / handledCPCountPlusOne)) {
|
|
7538
7548
|
error('overflow');
|
|
7539
7549
|
}
|
|
7540
7550
|
|
|
@@ -7558,7 +7568,7 @@ const encode = function(input) {
|
|
|
7558
7568
|
output.push(
|
|
7559
7569
|
stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
|
|
7560
7570
|
);
|
|
7561
|
-
q = floor(qMinusT / baseMinusT);
|
|
7571
|
+
q = floor$1(qMinusT / baseMinusT);
|
|
7562
7572
|
}
|
|
7563
7573
|
|
|
7564
7574
|
output.push(stringFromCharCode(digitToBasic(q, 0)));
|
|
@@ -7617,6 +7627,25 @@ const toASCII = function(input) {
|
|
|
7617
7627
|
|
|
7618
7628
|
/** Define the public API */
|
|
7619
7629
|
const punycode = {
|
|
7630
|
+
/**
|
|
7631
|
+
* A string representing the current Punycode.js version number.
|
|
7632
|
+
* @memberOf punycode
|
|
7633
|
+
* @type String
|
|
7634
|
+
*/
|
|
7635
|
+
'version': '2.3.1',
|
|
7636
|
+
/**
|
|
7637
|
+
* An object of methods to convert from JavaScript's internal character
|
|
7638
|
+
* representation (UCS-2) to Unicode code points, and back.
|
|
7639
|
+
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
|
7640
|
+
* @memberOf punycode
|
|
7641
|
+
* @type Object
|
|
7642
|
+
*/
|
|
7643
|
+
'ucs2': {
|
|
7644
|
+
'decode': ucs2decode,
|
|
7645
|
+
'encode': ucs2encode
|
|
7646
|
+
},
|
|
7647
|
+
'decode': decode,
|
|
7648
|
+
'encode': encode,
|
|
7620
7649
|
'toASCII': toASCII,
|
|
7621
7650
|
'toUnicode': toUnicode
|
|
7622
7651
|
};
|
|
@@ -11242,7 +11271,7 @@ class LRUCache {
|
|
|
11242
11271
|
}
|
|
11243
11272
|
/**
|
|
11244
11273
|
* Return an array of [key, {@link LRUCache.Entry}] tuples which can be
|
|
11245
|
-
* passed to {@link
|
|
11274
|
+
* passed to {@link LRUCache#load}.
|
|
11246
11275
|
*
|
|
11247
11276
|
* The `start` fields are calculated relative to a portable `Date.now()`
|
|
11248
11277
|
* timestamp, even if `performance.now()` is available.
|
|
@@ -16366,13 +16395,13 @@ var jsYaml$1 = {};
|
|
|
16366
16395
|
|
|
16367
16396
|
var loader = {};
|
|
16368
16397
|
|
|
16369
|
-
var common$
|
|
16398
|
+
var common$2 = {};
|
|
16370
16399
|
|
|
16371
|
-
var hasRequiredCommon$
|
|
16400
|
+
var hasRequiredCommon$2;
|
|
16372
16401
|
|
|
16373
|
-
function requireCommon$
|
|
16374
|
-
if (hasRequiredCommon$
|
|
16375
|
-
hasRequiredCommon$
|
|
16402
|
+
function requireCommon$2 () {
|
|
16403
|
+
if (hasRequiredCommon$2) return common$2;
|
|
16404
|
+
hasRequiredCommon$2 = 1;
|
|
16376
16405
|
|
|
16377
16406
|
|
|
16378
16407
|
function isNothing(subject) {
|
|
@@ -16425,13 +16454,13 @@ function requireCommon$1 () {
|
|
|
16425
16454
|
}
|
|
16426
16455
|
|
|
16427
16456
|
|
|
16428
|
-
common$
|
|
16429
|
-
common$
|
|
16430
|
-
common$
|
|
16431
|
-
common$
|
|
16432
|
-
common$
|
|
16433
|
-
common$
|
|
16434
|
-
return common$
|
|
16457
|
+
common$2.isNothing = isNothing;
|
|
16458
|
+
common$2.isObject = isObject;
|
|
16459
|
+
common$2.toArray = toArray;
|
|
16460
|
+
common$2.repeat = repeat;
|
|
16461
|
+
common$2.isNegativeZero = isNegativeZero;
|
|
16462
|
+
common$2.extend = extend;
|
|
16463
|
+
return common$2;
|
|
16435
16464
|
}
|
|
16436
16465
|
|
|
16437
16466
|
var exception;
|
|
@@ -16491,7 +16520,7 @@ function requireMark () {
|
|
|
16491
16520
|
hasRequiredMark = 1;
|
|
16492
16521
|
|
|
16493
16522
|
|
|
16494
|
-
var common = requireCommon$
|
|
16523
|
+
var common = requireCommon$2();
|
|
16495
16524
|
|
|
16496
16525
|
|
|
16497
16526
|
function Mark(name, buffer, position, line, column) {
|
|
@@ -16645,7 +16674,7 @@ function requireSchema () {
|
|
|
16645
16674
|
|
|
16646
16675
|
/*eslint-disable max-len*/
|
|
16647
16676
|
|
|
16648
|
-
var common = requireCommon$
|
|
16677
|
+
var common = requireCommon$2();
|
|
16649
16678
|
var YAMLException = requireException();
|
|
16650
16679
|
var Type = requireType$1();
|
|
16651
16680
|
|
|
@@ -16913,7 +16942,7 @@ function requireInt () {
|
|
|
16913
16942
|
if (hasRequiredInt) return int;
|
|
16914
16943
|
hasRequiredInt = 1;
|
|
16915
16944
|
|
|
16916
|
-
var common = requireCommon$
|
|
16945
|
+
var common = requireCommon$2();
|
|
16917
16946
|
var Type = requireType$1();
|
|
16918
16947
|
|
|
16919
16948
|
function isHexCode(c) {
|
|
@@ -17094,7 +17123,7 @@ function requireFloat () {
|
|
|
17094
17123
|
if (hasRequiredFloat) return float;
|
|
17095
17124
|
hasRequiredFloat = 1;
|
|
17096
17125
|
|
|
17097
|
-
var common = requireCommon$
|
|
17126
|
+
var common = requireCommon$2();
|
|
17098
17127
|
var Type = requireType$1();
|
|
17099
17128
|
|
|
17100
17129
|
var YAML_FLOAT_PATTERN = new RegExp(
|
|
@@ -17933,7 +17962,7 @@ function requireLoader () {
|
|
|
17933
17962
|
|
|
17934
17963
|
/*eslint-disable max-len,no-use-before-define*/
|
|
17935
17964
|
|
|
17936
|
-
var common = requireCommon$
|
|
17965
|
+
var common = requireCommon$2();
|
|
17937
17966
|
var YAMLException = requireException();
|
|
17938
17967
|
var Mark = requireMark();
|
|
17939
17968
|
var DEFAULT_SAFE_SCHEMA = requireDefault_safe();
|
|
@@ -19586,7 +19615,7 @@ function requireDumper () {
|
|
|
19586
19615
|
|
|
19587
19616
|
/*eslint-disable no-use-before-define*/
|
|
19588
19617
|
|
|
19589
|
-
var common = requireCommon$
|
|
19618
|
+
var common = requireCommon$2();
|
|
19590
19619
|
var YAMLException = requireException();
|
|
19591
19620
|
var DEFAULT_FULL_SCHEMA = requireDefault_full();
|
|
19592
19621
|
var DEFAULT_SAFE_SCHEMA = requireDefault_safe();
|
|
@@ -42735,12 +42764,12 @@ function requireWasm () {
|
|
|
42735
42764
|
return wasm_1;
|
|
42736
42765
|
}
|
|
42737
42766
|
|
|
42738
|
-
var common;
|
|
42739
|
-
var hasRequiredCommon;
|
|
42767
|
+
var common$1;
|
|
42768
|
+
var hasRequiredCommon$1;
|
|
42740
42769
|
|
|
42741
|
-
function requireCommon () {
|
|
42742
|
-
if (hasRequiredCommon) return common;
|
|
42743
|
-
hasRequiredCommon = 1;
|
|
42770
|
+
function requireCommon$1 () {
|
|
42771
|
+
if (hasRequiredCommon$1) return common$1;
|
|
42772
|
+
hasRequiredCommon$1 = 1;
|
|
42744
42773
|
var hljs = requireCore();
|
|
42745
42774
|
|
|
42746
42775
|
hljs.registerLanguage('xml', requireXml());
|
|
@@ -42782,11 +42811,11 @@ function requireCommon () {
|
|
|
42782
42811
|
|
|
42783
42812
|
hljs.HighlightJS = hljs;
|
|
42784
42813
|
hljs.default = hljs;
|
|
42785
|
-
common = hljs;
|
|
42786
|
-
return common;
|
|
42814
|
+
common$1 = hljs;
|
|
42815
|
+
return common$1;
|
|
42787
42816
|
}
|
|
42788
42817
|
|
|
42789
|
-
var commonExports = requireCommon();
|
|
42818
|
+
var commonExports = requireCommon$1();
|
|
42790
42819
|
var HighlightJS = /*@__PURE__*/getDefaultExportFromCjs(commonExports);
|
|
42791
42820
|
|
|
42792
42821
|
// https://nodejs.org/api/packages.html#packages_writing_dual_packages_while_avoiding_or_minimizing_hazards
|
|
@@ -45002,18 +45031,20 @@ var hasRequiredHttpParser;
|
|
|
45002
45031
|
function requireHttpParser () {
|
|
45003
45032
|
if (hasRequiredHttpParser) return httpParser;
|
|
45004
45033
|
hasRequiredHttpParser = 1;
|
|
45005
|
-
var assert = require$$5;
|
|
45006
|
-
|
|
45007
45034
|
httpParser.HTTPParser = HTTPParser;
|
|
45008
45035
|
function HTTPParser(type) {
|
|
45009
|
-
|
|
45036
|
+
if (type !== undefined && type !== HTTPParser.REQUEST && type !== HTTPParser.RESPONSE) {
|
|
45037
|
+
throw new Error('type must be REQUEST or RESPONSE');
|
|
45038
|
+
}
|
|
45010
45039
|
if (type === undefined) ; else {
|
|
45011
45040
|
this.initialize(type);
|
|
45012
45041
|
}
|
|
45013
45042
|
this.maxHeaderSize=HTTPParser.maxHeaderSize;
|
|
45014
45043
|
}
|
|
45015
45044
|
HTTPParser.prototype.initialize = function (type, async_resource) {
|
|
45016
|
-
|
|
45045
|
+
if (type !== HTTPParser.REQUEST && type !== HTTPParser.RESPONSE) {
|
|
45046
|
+
throw new Error('type must be REQUEST or RESPONSE');
|
|
45047
|
+
}
|
|
45017
45048
|
this.type = type;
|
|
45018
45049
|
this.state = type + '_LINE';
|
|
45019
45050
|
this.info = {
|
|
@@ -45098,6 +45129,7 @@ function requireHttpParser () {
|
|
|
45098
45129
|
HTTPParser.prototype.close =
|
|
45099
45130
|
HTTPParser.prototype.pause =
|
|
45100
45131
|
HTTPParser.prototype.resume =
|
|
45132
|
+
HTTPParser.prototype.remove =
|
|
45101
45133
|
HTTPParser.prototype.free = function () {};
|
|
45102
45134
|
HTTPParser.prototype._compatMode0_11 = false;
|
|
45103
45135
|
HTTPParser.prototype.getAsyncId = function() { return 0; };
|
|
@@ -45392,7 +45424,8 @@ function requireHttpParser () {
|
|
|
45392
45424
|
|
|
45393
45425
|
HTTPParser.prototype.BODY_CHUNK = function () {
|
|
45394
45426
|
var length = Math.min(this.end - this.offset, this.body_bytes);
|
|
45395
|
-
|
|
45427
|
+
// 0, length are for backwards compatibility. See: https://github.com/creationix/http-parser-js/pull/98
|
|
45428
|
+
this.userCall()(this[kOnBody](this.chunk.slice(this.offset, this.offset + length), 0, length));
|
|
45396
45429
|
this.offset += length;
|
|
45397
45430
|
this.body_bytes -= length;
|
|
45398
45431
|
if (!this.body_bytes) {
|
|
@@ -45405,7 +45438,9 @@ function requireHttpParser () {
|
|
|
45405
45438
|
if (line === undefined) {
|
|
45406
45439
|
return;
|
|
45407
45440
|
}
|
|
45408
|
-
|
|
45441
|
+
if (line !== '') {
|
|
45442
|
+
throw new Error('Expected empty line');
|
|
45443
|
+
}
|
|
45409
45444
|
this.state = 'BODY_CHUNKHEAD';
|
|
45410
45445
|
};
|
|
45411
45446
|
|
|
@@ -45425,14 +45460,15 @@ function requireHttpParser () {
|
|
|
45425
45460
|
};
|
|
45426
45461
|
|
|
45427
45462
|
HTTPParser.prototype.BODY_RAW = function () {
|
|
45428
|
-
|
|
45429
|
-
this.userCall()(this[kOnBody](this.chunk, this.
|
|
45463
|
+
// 0, length are for backwards compatibility. See: https://github.com/creationix/http-parser-js/pull/98
|
|
45464
|
+
this.userCall()(this[kOnBody](this.chunk.slice(this.offset, this.end), 0, this.end - this.offset));
|
|
45430
45465
|
this.offset = this.end;
|
|
45431
45466
|
};
|
|
45432
45467
|
|
|
45433
45468
|
HTTPParser.prototype.BODY_SIZED = function () {
|
|
45434
45469
|
var length = Math.min(this.end - this.offset, this.body_bytes);
|
|
45435
|
-
|
|
45470
|
+
// 0, length are for backwards compatibility. See: https://github.com/creationix/http-parser-js/pull/98
|
|
45471
|
+
this.userCall()(this[kOnBody](this.chunk.slice(this.offset, this.offset + length), 0, length));
|
|
45436
45472
|
this.offset += length;
|
|
45437
45473
|
this.body_bytes -= length;
|
|
45438
45474
|
if (!this.body_bytes) {
|
|
@@ -48114,8 +48150,6 @@ var src = {exports: {}};
|
|
|
48114
48150
|
|
|
48115
48151
|
var browser = {exports: {}};
|
|
48116
48152
|
|
|
48117
|
-
var debug = {exports: {}};
|
|
48118
|
-
|
|
48119
48153
|
/**
|
|
48120
48154
|
* Helpers.
|
|
48121
48155
|
*/
|
|
@@ -48130,6 +48164,7 @@ function requireMs () {
|
|
|
48130
48164
|
var m = s * 60;
|
|
48131
48165
|
var h = m * 60;
|
|
48132
48166
|
var d = h * 24;
|
|
48167
|
+
var w = d * 7;
|
|
48133
48168
|
var y = d * 365.25;
|
|
48134
48169
|
|
|
48135
48170
|
/**
|
|
@@ -48146,12 +48181,12 @@ function requireMs () {
|
|
|
48146
48181
|
* @api public
|
|
48147
48182
|
*/
|
|
48148
48183
|
|
|
48149
|
-
ms = function(val, options) {
|
|
48184
|
+
ms = function (val, options) {
|
|
48150
48185
|
options = options || {};
|
|
48151
48186
|
var type = typeof val;
|
|
48152
48187
|
if (type === 'string' && val.length > 0) {
|
|
48153
48188
|
return parse(val);
|
|
48154
|
-
} else if (type === 'number' &&
|
|
48189
|
+
} else if (type === 'number' && isFinite(val)) {
|
|
48155
48190
|
return options.long ? fmtLong(val) : fmtShort(val);
|
|
48156
48191
|
}
|
|
48157
48192
|
throw new Error(
|
|
@@ -48173,7 +48208,7 @@ function requireMs () {
|
|
|
48173
48208
|
if (str.length > 100) {
|
|
48174
48209
|
return;
|
|
48175
48210
|
}
|
|
48176
|
-
var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(
|
|
48211
|
+
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
48177
48212
|
str
|
|
48178
48213
|
);
|
|
48179
48214
|
if (!match) {
|
|
@@ -48188,6 +48223,10 @@ function requireMs () {
|
|
|
48188
48223
|
case 'yr':
|
|
48189
48224
|
case 'y':
|
|
48190
48225
|
return n * y;
|
|
48226
|
+
case 'weeks':
|
|
48227
|
+
case 'week':
|
|
48228
|
+
case 'w':
|
|
48229
|
+
return n * w;
|
|
48191
48230
|
case 'days':
|
|
48192
48231
|
case 'day':
|
|
48193
48232
|
case 'd':
|
|
@@ -48230,16 +48269,17 @@ function requireMs () {
|
|
|
48230
48269
|
*/
|
|
48231
48270
|
|
|
48232
48271
|
function fmtShort(ms) {
|
|
48233
|
-
|
|
48272
|
+
var msAbs = Math.abs(ms);
|
|
48273
|
+
if (msAbs >= d) {
|
|
48234
48274
|
return Math.round(ms / d) + 'd';
|
|
48235
48275
|
}
|
|
48236
|
-
if (
|
|
48276
|
+
if (msAbs >= h) {
|
|
48237
48277
|
return Math.round(ms / h) + 'h';
|
|
48238
48278
|
}
|
|
48239
|
-
if (
|
|
48279
|
+
if (msAbs >= m) {
|
|
48240
48280
|
return Math.round(ms / m) + 'm';
|
|
48241
48281
|
}
|
|
48242
|
-
if (
|
|
48282
|
+
if (msAbs >= s) {
|
|
48243
48283
|
return Math.round(ms / s) + 's';
|
|
48244
48284
|
}
|
|
48245
48285
|
return ms + 'ms';
|
|
@@ -48254,268 +48294,288 @@ function requireMs () {
|
|
|
48254
48294
|
*/
|
|
48255
48295
|
|
|
48256
48296
|
function fmtLong(ms) {
|
|
48257
|
-
|
|
48258
|
-
|
|
48259
|
-
plural(ms,
|
|
48260
|
-
|
|
48261
|
-
|
|
48297
|
+
var msAbs = Math.abs(ms);
|
|
48298
|
+
if (msAbs >= d) {
|
|
48299
|
+
return plural(ms, msAbs, d, 'day');
|
|
48300
|
+
}
|
|
48301
|
+
if (msAbs >= h) {
|
|
48302
|
+
return plural(ms, msAbs, h, 'hour');
|
|
48303
|
+
}
|
|
48304
|
+
if (msAbs >= m) {
|
|
48305
|
+
return plural(ms, msAbs, m, 'minute');
|
|
48306
|
+
}
|
|
48307
|
+
if (msAbs >= s) {
|
|
48308
|
+
return plural(ms, msAbs, s, 'second');
|
|
48309
|
+
}
|
|
48310
|
+
return ms + ' ms';
|
|
48262
48311
|
}
|
|
48263
48312
|
|
|
48264
48313
|
/**
|
|
48265
48314
|
* Pluralization helper.
|
|
48266
48315
|
*/
|
|
48267
48316
|
|
|
48268
|
-
function plural(ms, n, name) {
|
|
48269
|
-
|
|
48270
|
-
|
|
48271
|
-
}
|
|
48272
|
-
if (ms < n * 1.5) {
|
|
48273
|
-
return Math.floor(ms / n) + ' ' + name;
|
|
48274
|
-
}
|
|
48275
|
-
return Math.ceil(ms / n) + ' ' + name + 's';
|
|
48317
|
+
function plural(ms, msAbs, n, name) {
|
|
48318
|
+
var isPlural = msAbs >= n * 1.5;
|
|
48319
|
+
return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
|
|
48276
48320
|
}
|
|
48277
48321
|
return ms;
|
|
48278
48322
|
}
|
|
48279
48323
|
|
|
48280
|
-
var
|
|
48324
|
+
var common;
|
|
48325
|
+
var hasRequiredCommon;
|
|
48281
48326
|
|
|
48282
|
-
function
|
|
48283
|
-
if (
|
|
48284
|
-
|
|
48285
|
-
(function (module, exports) {
|
|
48286
|
-
/**
|
|
48287
|
-
* This is the common logic for both the Node.js and web browser
|
|
48288
|
-
* implementations of `debug()`.
|
|
48289
|
-
*
|
|
48290
|
-
* Expose `debug()` as the module.
|
|
48291
|
-
*/
|
|
48327
|
+
function requireCommon () {
|
|
48328
|
+
if (hasRequiredCommon) return common;
|
|
48329
|
+
hasRequiredCommon = 1;
|
|
48292
48330
|
|
|
48293
|
-
|
|
48294
|
-
|
|
48295
|
-
|
|
48296
|
-
|
|
48297
|
-
|
|
48298
|
-
|
|
48331
|
+
/**
|
|
48332
|
+
* This is the common logic for both the Node.js and web browser
|
|
48333
|
+
* implementations of `debug()`.
|
|
48334
|
+
*/
|
|
48335
|
+
function setup(env) {
|
|
48336
|
+
createDebug.debug = createDebug;
|
|
48337
|
+
createDebug.default = createDebug;
|
|
48338
|
+
createDebug.coerce = coerce;
|
|
48339
|
+
createDebug.disable = disable;
|
|
48340
|
+
createDebug.enable = enable;
|
|
48341
|
+
createDebug.enabled = enabled;
|
|
48342
|
+
createDebug.humanize = requireMs();
|
|
48343
|
+
Object.keys(env).forEach(function (key) {
|
|
48344
|
+
createDebug[key] = env[key];
|
|
48345
|
+
});
|
|
48346
|
+
/**
|
|
48347
|
+
* Active `debug` instances.
|
|
48348
|
+
*/
|
|
48299
48349
|
|
|
48300
|
-
|
|
48301
|
-
|
|
48302
|
-
|
|
48303
|
-
|
|
48350
|
+
createDebug.instances = [];
|
|
48351
|
+
/**
|
|
48352
|
+
* The currently active debug mode names, and names to skip.
|
|
48353
|
+
*/
|
|
48304
48354
|
|
|
48305
|
-
|
|
48306
|
-
|
|
48307
|
-
|
|
48355
|
+
createDebug.names = [];
|
|
48356
|
+
createDebug.skips = [];
|
|
48357
|
+
/**
|
|
48358
|
+
* Map of special "%n" handling functions, for the debug "format" argument.
|
|
48359
|
+
*
|
|
48360
|
+
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
|
48361
|
+
*/
|
|
48308
48362
|
|
|
48309
|
-
|
|
48310
|
-
|
|
48363
|
+
createDebug.formatters = {};
|
|
48364
|
+
/**
|
|
48365
|
+
* Selects a color for a debug namespace
|
|
48366
|
+
* @param {String} namespace The namespace string for the for the debug instance to be colored
|
|
48367
|
+
* @return {Number|String} An ANSI color code for the given namespace
|
|
48368
|
+
* @api private
|
|
48369
|
+
*/
|
|
48311
48370
|
|
|
48312
|
-
|
|
48313
|
-
|
|
48314
|
-
*
|
|
48315
|
-
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
|
48316
|
-
*/
|
|
48371
|
+
function selectColor(namespace) {
|
|
48372
|
+
var hash = 0;
|
|
48317
48373
|
|
|
48318
|
-
|
|
48374
|
+
for (var i = 0; i < namespace.length; i++) {
|
|
48375
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
48376
|
+
hash |= 0; // Convert to 32bit integer
|
|
48377
|
+
}
|
|
48319
48378
|
|
|
48320
|
-
|
|
48321
|
-
|
|
48322
|
-
* @param {String} namespace
|
|
48323
|
-
* @return {Number}
|
|
48324
|
-
* @api private
|
|
48325
|
-
*/
|
|
48379
|
+
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
48380
|
+
}
|
|
48326
48381
|
|
|
48327
|
-
|
|
48328
|
-
|
|
48382
|
+
createDebug.selectColor = selectColor;
|
|
48383
|
+
/**
|
|
48384
|
+
* Create a debugger with the given `namespace`.
|
|
48385
|
+
*
|
|
48386
|
+
* @param {String} namespace
|
|
48387
|
+
* @return {Function}
|
|
48388
|
+
* @api public
|
|
48389
|
+
*/
|
|
48329
48390
|
|
|
48330
|
-
|
|
48331
|
-
|
|
48332
|
-
hash |= 0; // Convert to 32bit integer
|
|
48333
|
-
}
|
|
48391
|
+
function createDebug(namespace) {
|
|
48392
|
+
var prevTime;
|
|
48334
48393
|
|
|
48335
|
-
|
|
48336
|
-
|
|
48394
|
+
function debug() {
|
|
48395
|
+
// Disabled?
|
|
48396
|
+
if (!debug.enabled) {
|
|
48397
|
+
return;
|
|
48398
|
+
}
|
|
48337
48399
|
|
|
48338
|
-
|
|
48339
|
-
|
|
48340
|
-
|
|
48341
|
-
* @param {String} namespace
|
|
48342
|
-
* @return {Function}
|
|
48343
|
-
* @api public
|
|
48344
|
-
*/
|
|
48400
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
48401
|
+
args[_key] = arguments[_key];
|
|
48402
|
+
}
|
|
48345
48403
|
|
|
48346
|
-
|
|
48404
|
+
var self = debug; // Set `diff` timestamp
|
|
48347
48405
|
|
|
48348
|
-
|
|
48406
|
+
var curr = Number(new Date());
|
|
48407
|
+
var ms = curr - (prevTime || curr);
|
|
48408
|
+
self.diff = ms;
|
|
48409
|
+
self.prev = prevTime;
|
|
48410
|
+
self.curr = curr;
|
|
48411
|
+
prevTime = curr;
|
|
48412
|
+
args[0] = createDebug.coerce(args[0]);
|
|
48349
48413
|
|
|
48350
|
-
|
|
48351
|
-
|
|
48352
|
-
|
|
48414
|
+
if (typeof args[0] !== 'string') {
|
|
48415
|
+
// Anything else let's inspect with %O
|
|
48416
|
+
args.unshift('%O');
|
|
48417
|
+
} // Apply any `formatters` transformations
|
|
48353
48418
|
|
|
48354
|
-
var self = debug;
|
|
48355
48419
|
|
|
48356
|
-
|
|
48357
|
-
|
|
48358
|
-
|
|
48359
|
-
|
|
48360
|
-
|
|
48361
|
-
|
|
48362
|
-
prevTime = curr;
|
|
48420
|
+
var index = 0;
|
|
48421
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, function (match, format) {
|
|
48422
|
+
// If we encounter an escaped % then don't increase the array index
|
|
48423
|
+
if (match === '%%') {
|
|
48424
|
+
return match;
|
|
48425
|
+
}
|
|
48363
48426
|
|
|
48364
|
-
|
|
48365
|
-
|
|
48366
|
-
for (var i = 0; i < args.length; i++) {
|
|
48367
|
-
args[i] = arguments[i];
|
|
48368
|
-
}
|
|
48427
|
+
index++;
|
|
48428
|
+
var formatter = createDebug.formatters[format];
|
|
48369
48429
|
|
|
48370
|
-
|
|
48430
|
+
if (typeof formatter === 'function') {
|
|
48431
|
+
var val = args[index];
|
|
48432
|
+
match = formatter.call(self, val); // Now we need to remove `args[index]` since it's inlined in the `format`
|
|
48371
48433
|
|
|
48372
|
-
|
|
48373
|
-
|
|
48374
|
-
|
|
48375
|
-
}
|
|
48434
|
+
args.splice(index, 1);
|
|
48435
|
+
index--;
|
|
48436
|
+
}
|
|
48376
48437
|
|
|
48377
|
-
|
|
48378
|
-
|
|
48379
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {
|
|
48380
|
-
// if we encounter an escaped % then don't increase the array index
|
|
48381
|
-
if (match === '%%') return match;
|
|
48382
|
-
index++;
|
|
48383
|
-
var formatter = exports.formatters[format];
|
|
48384
|
-
if ('function' === typeof formatter) {
|
|
48385
|
-
var val = args[index];
|
|
48386
|
-
match = formatter.call(self, val);
|
|
48387
|
-
|
|
48388
|
-
// now we need to remove `args[index]` since it's inlined in the `format`
|
|
48389
|
-
args.splice(index, 1);
|
|
48390
|
-
index--;
|
|
48391
|
-
}
|
|
48392
|
-
return match;
|
|
48393
|
-
});
|
|
48438
|
+
return match;
|
|
48439
|
+
}); // Apply env-specific formatting (colors, etc.)
|
|
48394
48440
|
|
|
48395
|
-
|
|
48396
|
-
|
|
48441
|
+
createDebug.formatArgs.call(self, args);
|
|
48442
|
+
var logFn = self.log || createDebug.log;
|
|
48443
|
+
logFn.apply(self, args);
|
|
48444
|
+
}
|
|
48397
48445
|
|
|
48398
|
-
|
|
48399
|
-
|
|
48400
|
-
|
|
48446
|
+
debug.namespace = namespace;
|
|
48447
|
+
debug.enabled = createDebug.enabled(namespace);
|
|
48448
|
+
debug.useColors = createDebug.useColors();
|
|
48449
|
+
debug.color = selectColor(namespace);
|
|
48450
|
+
debug.destroy = destroy;
|
|
48451
|
+
debug.extend = extend; // Debug.formatArgs = formatArgs;
|
|
48452
|
+
// debug.rawLog = rawLog;
|
|
48453
|
+
// env-specific initialization logic for debug instances
|
|
48401
48454
|
|
|
48402
|
-
|
|
48403
|
-
|
|
48404
|
-
|
|
48405
|
-
debug.color = selectColor(namespace);
|
|
48406
|
-
debug.destroy = destroy;
|
|
48455
|
+
if (typeof createDebug.init === 'function') {
|
|
48456
|
+
createDebug.init(debug);
|
|
48457
|
+
}
|
|
48407
48458
|
|
|
48408
|
-
|
|
48409
|
-
|
|
48410
|
-
|
|
48411
|
-
}
|
|
48459
|
+
createDebug.instances.push(debug);
|
|
48460
|
+
return debug;
|
|
48461
|
+
}
|
|
48412
48462
|
|
|
48413
|
-
|
|
48463
|
+
function destroy() {
|
|
48464
|
+
var index = createDebug.instances.indexOf(this);
|
|
48414
48465
|
|
|
48415
|
-
|
|
48416
|
-
|
|
48466
|
+
if (index !== -1) {
|
|
48467
|
+
createDebug.instances.splice(index, 1);
|
|
48468
|
+
return true;
|
|
48469
|
+
}
|
|
48417
48470
|
|
|
48418
|
-
|
|
48419
|
-
|
|
48420
|
-
if (index !== -1) {
|
|
48421
|
-
exports.instances.splice(index, 1);
|
|
48422
|
-
return true;
|
|
48423
|
-
} else {
|
|
48424
|
-
return false;
|
|
48425
|
-
}
|
|
48426
|
-
}
|
|
48471
|
+
return false;
|
|
48472
|
+
}
|
|
48427
48473
|
|
|
48428
|
-
|
|
48429
|
-
|
|
48430
|
-
|
|
48431
|
-
|
|
48432
|
-
|
|
48433
|
-
|
|
48434
|
-
|
|
48474
|
+
function extend(namespace, delimiter) {
|
|
48475
|
+
return createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
|
|
48476
|
+
}
|
|
48477
|
+
/**
|
|
48478
|
+
* Enables a debug mode by namespaces. This can include modes
|
|
48479
|
+
* separated by a colon and wildcards.
|
|
48480
|
+
*
|
|
48481
|
+
* @param {String} namespaces
|
|
48482
|
+
* @api public
|
|
48483
|
+
*/
|
|
48435
48484
|
|
|
48436
|
-
function enable(namespaces) {
|
|
48437
|
-
exports.save(namespaces);
|
|
48438
48485
|
|
|
48439
|
-
|
|
48440
|
-
|
|
48486
|
+
function enable(namespaces) {
|
|
48487
|
+
createDebug.save(namespaces);
|
|
48488
|
+
createDebug.names = [];
|
|
48489
|
+
createDebug.skips = [];
|
|
48490
|
+
var i;
|
|
48491
|
+
var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
|
|
48492
|
+
var len = split.length;
|
|
48441
48493
|
|
|
48442
|
-
|
|
48443
|
-
|
|
48444
|
-
|
|
48494
|
+
for (i = 0; i < len; i++) {
|
|
48495
|
+
if (!split[i]) {
|
|
48496
|
+
// ignore empty strings
|
|
48497
|
+
continue;
|
|
48498
|
+
}
|
|
48445
48499
|
|
|
48446
|
-
|
|
48447
|
-
if (!split[i]) continue; // ignore empty strings
|
|
48448
|
-
namespaces = split[i].replace(/\*/g, '.*?');
|
|
48449
|
-
if (namespaces[0] === '-') {
|
|
48450
|
-
exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
|
|
48451
|
-
} else {
|
|
48452
|
-
exports.names.push(new RegExp('^' + namespaces + '$'));
|
|
48453
|
-
}
|
|
48454
|
-
}
|
|
48500
|
+
namespaces = split[i].replace(/\*/g, '.*?');
|
|
48455
48501
|
|
|
48456
|
-
|
|
48457
|
-
|
|
48458
|
-
|
|
48459
|
-
|
|
48460
|
-
|
|
48502
|
+
if (namespaces[0] === '-') {
|
|
48503
|
+
createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
|
|
48504
|
+
} else {
|
|
48505
|
+
createDebug.names.push(new RegExp('^' + namespaces + '$'));
|
|
48506
|
+
}
|
|
48507
|
+
}
|
|
48461
48508
|
|
|
48462
|
-
|
|
48463
|
-
|
|
48464
|
-
|
|
48465
|
-
|
|
48466
|
-
|
|
48509
|
+
for (i = 0; i < createDebug.instances.length; i++) {
|
|
48510
|
+
var instance = createDebug.instances[i];
|
|
48511
|
+
instance.enabled = createDebug.enabled(instance.namespace);
|
|
48512
|
+
}
|
|
48513
|
+
}
|
|
48514
|
+
/**
|
|
48515
|
+
* Disable debug output.
|
|
48516
|
+
*
|
|
48517
|
+
* @api public
|
|
48518
|
+
*/
|
|
48467
48519
|
|
|
48468
|
-
function disable() {
|
|
48469
|
-
exports.enable('');
|
|
48470
|
-
}
|
|
48471
48520
|
|
|
48472
|
-
|
|
48473
|
-
|
|
48474
|
-
|
|
48475
|
-
|
|
48476
|
-
|
|
48477
|
-
|
|
48478
|
-
|
|
48521
|
+
function disable() {
|
|
48522
|
+
createDebug.enable('');
|
|
48523
|
+
}
|
|
48524
|
+
/**
|
|
48525
|
+
* Returns true if the given mode name is enabled, false otherwise.
|
|
48526
|
+
*
|
|
48527
|
+
* @param {String} name
|
|
48528
|
+
* @return {Boolean}
|
|
48529
|
+
* @api public
|
|
48530
|
+
*/
|
|
48479
48531
|
|
|
48480
|
-
function enabled(name) {
|
|
48481
|
-
if (name[name.length - 1] === '*') {
|
|
48482
|
-
return true;
|
|
48483
|
-
}
|
|
48484
|
-
var i, len;
|
|
48485
|
-
for (i = 0, len = exports.skips.length; i < len; i++) {
|
|
48486
|
-
if (exports.skips[i].test(name)) {
|
|
48487
|
-
return false;
|
|
48488
|
-
}
|
|
48489
|
-
}
|
|
48490
|
-
for (i = 0, len = exports.names.length; i < len; i++) {
|
|
48491
|
-
if (exports.names[i].test(name)) {
|
|
48492
|
-
return true;
|
|
48493
|
-
}
|
|
48494
|
-
}
|
|
48495
|
-
return false;
|
|
48496
|
-
}
|
|
48497
48532
|
|
|
48498
|
-
|
|
48499
|
-
|
|
48500
|
-
|
|
48501
|
-
|
|
48502
|
-
* @return {Mixed}
|
|
48503
|
-
* @api private
|
|
48504
|
-
*/
|
|
48533
|
+
function enabled(name) {
|
|
48534
|
+
if (name[name.length - 1] === '*') {
|
|
48535
|
+
return true;
|
|
48536
|
+
}
|
|
48505
48537
|
|
|
48506
|
-
|
|
48507
|
-
|
|
48508
|
-
return val;
|
|
48509
|
-
}
|
|
48510
|
-
} (debug, debug.exports));
|
|
48511
|
-
return debug.exports;
|
|
48512
|
-
}
|
|
48538
|
+
var i;
|
|
48539
|
+
var len;
|
|
48513
48540
|
|
|
48514
|
-
|
|
48515
|
-
|
|
48516
|
-
|
|
48517
|
-
|
|
48518
|
-
|
|
48541
|
+
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
|
48542
|
+
if (createDebug.skips[i].test(name)) {
|
|
48543
|
+
return false;
|
|
48544
|
+
}
|
|
48545
|
+
}
|
|
48546
|
+
|
|
48547
|
+
for (i = 0, len = createDebug.names.length; i < len; i++) {
|
|
48548
|
+
if (createDebug.names[i].test(name)) {
|
|
48549
|
+
return true;
|
|
48550
|
+
}
|
|
48551
|
+
}
|
|
48552
|
+
|
|
48553
|
+
return false;
|
|
48554
|
+
}
|
|
48555
|
+
/**
|
|
48556
|
+
* Coerce `val`.
|
|
48557
|
+
*
|
|
48558
|
+
* @param {Mixed} val
|
|
48559
|
+
* @return {Mixed}
|
|
48560
|
+
* @api private
|
|
48561
|
+
*/
|
|
48562
|
+
|
|
48563
|
+
|
|
48564
|
+
function coerce(val) {
|
|
48565
|
+
if (val instanceof Error) {
|
|
48566
|
+
return val.stack || val.message;
|
|
48567
|
+
}
|
|
48568
|
+
|
|
48569
|
+
return val;
|
|
48570
|
+
}
|
|
48571
|
+
|
|
48572
|
+
createDebug.enable(createDebug.load());
|
|
48573
|
+
return createDebug;
|
|
48574
|
+
}
|
|
48575
|
+
|
|
48576
|
+
common = setup;
|
|
48577
|
+
return common;
|
|
48578
|
+
}
|
|
48519
48579
|
|
|
48520
48580
|
var hasRequiredBrowser;
|
|
48521
48581
|
|
|
@@ -48523,35 +48583,25 @@ function requireBrowser () {
|
|
|
48523
48583
|
if (hasRequiredBrowser) return browser.exports;
|
|
48524
48584
|
hasRequiredBrowser = 1;
|
|
48525
48585
|
(function (module, exports) {
|
|
48526
|
-
|
|
48586
|
+
|
|
48587
|
+
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
48588
|
+
|
|
48589
|
+
/* eslint-env browser */
|
|
48590
|
+
|
|
48591
|
+
/**
|
|
48592
|
+
* This is the web browser implementation of `debug()`.
|
|
48593
|
+
*/
|
|
48527
48594
|
exports.log = log;
|
|
48528
48595
|
exports.formatArgs = formatArgs;
|
|
48529
48596
|
exports.save = save;
|
|
48530
48597
|
exports.load = load;
|
|
48531
48598
|
exports.useColors = useColors;
|
|
48532
|
-
exports.storage =
|
|
48533
|
-
&& 'undefined' != typeof chrome.storage
|
|
48534
|
-
? chrome.storage.local
|
|
48535
|
-
: localstorage();
|
|
48536
|
-
|
|
48599
|
+
exports.storage = localstorage();
|
|
48537
48600
|
/**
|
|
48538
48601
|
* Colors.
|
|
48539
48602
|
*/
|
|
48540
48603
|
|
|
48541
|
-
exports.colors = [
|
|
48542
|
-
'#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC',
|
|
48543
|
-
'#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF',
|
|
48544
|
-
'#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC',
|
|
48545
|
-
'#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF',
|
|
48546
|
-
'#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC',
|
|
48547
|
-
'#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033',
|
|
48548
|
-
'#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366',
|
|
48549
|
-
'#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933',
|
|
48550
|
-
'#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC',
|
|
48551
|
-
'#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF',
|
|
48552
|
-
'#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'
|
|
48553
|
-
];
|
|
48554
|
-
|
|
48604
|
+
exports.colors = ['#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'];
|
|
48555
48605
|
/**
|
|
48556
48606
|
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
|
|
48557
48607
|
* and the Firebug extension (any Firefox version) are known
|
|
@@ -48559,84 +48609,65 @@ function requireBrowser () {
|
|
|
48559
48609
|
*
|
|
48560
48610
|
* TODO: add a `localStorage` variable to explicitly enable/disable colors
|
|
48561
48611
|
*/
|
|
48612
|
+
// eslint-disable-next-line complexity
|
|
48562
48613
|
|
|
48563
48614
|
function useColors() {
|
|
48564
48615
|
// NB: In an Electron preload script, document will be defined but not fully
|
|
48565
48616
|
// initialized. Since we know we're in Chrome, we'll just detect this case
|
|
48566
48617
|
// explicitly
|
|
48567
|
-
if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {
|
|
48618
|
+
if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
|
|
48568
48619
|
return true;
|
|
48569
|
-
}
|
|
48620
|
+
} // Internet Explorer and Edge do not support colors.
|
|
48621
|
+
|
|
48570
48622
|
|
|
48571
|
-
// Internet Explorer and Edge do not support colors.
|
|
48572
48623
|
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
48573
48624
|
return false;
|
|
48574
|
-
}
|
|
48575
|
-
|
|
48576
|
-
// is webkit? http://stackoverflow.com/a/16459606/376773
|
|
48625
|
+
} // Is webkit? http://stackoverflow.com/a/16459606/376773
|
|
48577
48626
|
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
|
48578
|
-
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
|
|
48579
|
-
// is firebug? http://stackoverflow.com/a/398120/376773
|
|
48580
|
-
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
|
|
48581
|
-
// is firefox >= v31?
|
|
48582
|
-
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
48583
|
-
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
|
|
48584
|
-
// double check webkit in userAgent just in case we are in a worker
|
|
48585
|
-
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
|
|
48586
|
-
}
|
|
48587
|
-
|
|
48588
|
-
/**
|
|
48589
|
-
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
|
48590
|
-
*/
|
|
48591
|
-
|
|
48592
|
-
exports.formatters.j = function(v) {
|
|
48593
|
-
try {
|
|
48594
|
-
return JSON.stringify(v);
|
|
48595
|
-
} catch (err) {
|
|
48596
|
-
return '[UnexpectedJSONParseError]: ' + err.message;
|
|
48597
|
-
}
|
|
48598
|
-
};
|
|
48599
48627
|
|
|
48600
48628
|
|
|
48629
|
+
return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
48630
|
+
typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
48631
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
48632
|
+
typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
48633
|
+
typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
48634
|
+
}
|
|
48601
48635
|
/**
|
|
48602
48636
|
* Colorize log arguments if enabled.
|
|
48603
48637
|
*
|
|
48604
48638
|
* @api public
|
|
48605
48639
|
*/
|
|
48606
48640
|
|
|
48607
|
-
function formatArgs(args) {
|
|
48608
|
-
var useColors = this.useColors;
|
|
48609
48641
|
|
|
48610
|
-
|
|
48611
|
-
|
|
48612
|
-
+ (useColors ? ' %c' : ' ')
|
|
48613
|
-
+ args[0]
|
|
48614
|
-
+ (useColors ? '%c ' : ' ')
|
|
48615
|
-
+ '+' + exports.humanize(this.diff);
|
|
48642
|
+
function formatArgs(args) {
|
|
48643
|
+
args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff);
|
|
48616
48644
|
|
|
48617
|
-
if (!useColors)
|
|
48645
|
+
if (!this.useColors) {
|
|
48646
|
+
return;
|
|
48647
|
+
}
|
|
48618
48648
|
|
|
48619
48649
|
var c = 'color: ' + this.color;
|
|
48620
|
-
args.splice(1, 0, c, 'color: inherit');
|
|
48621
|
-
|
|
48622
|
-
// the final "%c" is somewhat tricky, because there could be other
|
|
48650
|
+
args.splice(1, 0, c, 'color: inherit'); // The final "%c" is somewhat tricky, because there could be other
|
|
48623
48651
|
// arguments passed either before or after the %c, so we need to
|
|
48624
48652
|
// figure out the correct index to insert the CSS into
|
|
48653
|
+
|
|
48625
48654
|
var index = 0;
|
|
48626
48655
|
var lastC = 0;
|
|
48627
|
-
args[0].replace(/%[a-zA-Z%]/g, function(match) {
|
|
48628
|
-
if ('%%'
|
|
48656
|
+
args[0].replace(/%[a-zA-Z%]/g, function (match) {
|
|
48657
|
+
if (match === '%%') {
|
|
48658
|
+
return;
|
|
48659
|
+
}
|
|
48660
|
+
|
|
48629
48661
|
index++;
|
|
48630
|
-
|
|
48631
|
-
|
|
48662
|
+
|
|
48663
|
+
if (match === '%c') {
|
|
48664
|
+
// We only are interested in the *last* %c
|
|
48632
48665
|
// (the user may have provided their own)
|
|
48633
48666
|
lastC = index;
|
|
48634
48667
|
}
|
|
48635
48668
|
});
|
|
48636
|
-
|
|
48637
48669
|
args.splice(lastC, 0, c);
|
|
48638
48670
|
}
|
|
48639
|
-
|
|
48640
48671
|
/**
|
|
48641
48672
|
* Invokes `console.log()` when available.
|
|
48642
48673
|
* No-op when `console.log` is not a "function".
|
|
@@ -48644,14 +48675,14 @@ function requireBrowser () {
|
|
|
48644
48675
|
* @api public
|
|
48645
48676
|
*/
|
|
48646
48677
|
|
|
48678
|
+
|
|
48647
48679
|
function log() {
|
|
48648
|
-
|
|
48680
|
+
var _console;
|
|
48681
|
+
|
|
48682
|
+
// This hackery is required for IE8/9, where
|
|
48649
48683
|
// the `console.log` function doesn't have 'apply'
|
|
48650
|
-
return 'object'
|
|
48651
|
-
&& console.log
|
|
48652
|
-
&& Function.prototype.apply.call(console.log, console, arguments);
|
|
48684
|
+
return (typeof console === "undefined" ? "undefined" : _typeof(console)) === 'object' && console.log && (_console = console).log.apply(_console, arguments);
|
|
48653
48685
|
}
|
|
48654
|
-
|
|
48655
48686
|
/**
|
|
48656
48687
|
* Save `namespaces`.
|
|
48657
48688
|
*
|
|
@@ -48659,16 +48690,18 @@ function requireBrowser () {
|
|
|
48659
48690
|
* @api private
|
|
48660
48691
|
*/
|
|
48661
48692
|
|
|
48693
|
+
|
|
48662
48694
|
function save(namespaces) {
|
|
48663
48695
|
try {
|
|
48664
|
-
if (
|
|
48665
|
-
exports.storage.
|
|
48696
|
+
if (namespaces) {
|
|
48697
|
+
exports.storage.setItem('debug', namespaces);
|
|
48666
48698
|
} else {
|
|
48667
|
-
exports.storage.debug
|
|
48699
|
+
exports.storage.removeItem('debug');
|
|
48668
48700
|
}
|
|
48669
|
-
} catch(
|
|
48701
|
+
} catch (error) {// Swallow
|
|
48702
|
+
// XXX (@Qix-) should we be logging these?
|
|
48703
|
+
}
|
|
48670
48704
|
}
|
|
48671
|
-
|
|
48672
48705
|
/**
|
|
48673
48706
|
* Load `namespaces`.
|
|
48674
48707
|
*
|
|
@@ -48676,26 +48709,23 @@ function requireBrowser () {
|
|
|
48676
48709
|
* @api private
|
|
48677
48710
|
*/
|
|
48678
48711
|
|
|
48712
|
+
|
|
48679
48713
|
function load() {
|
|
48680
48714
|
var r;
|
|
48681
|
-
try {
|
|
48682
|
-
r = exports.storage.debug;
|
|
48683
|
-
} catch(e) {}
|
|
48684
48715
|
|
|
48716
|
+
try {
|
|
48717
|
+
r = exports.storage.getItem('debug');
|
|
48718
|
+
} catch (error) {} // Swallow
|
|
48719
|
+
// XXX (@Qix-) should we be logging these?
|
|
48685
48720
|
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
|
|
48721
|
+
|
|
48722
|
+
|
|
48686
48723
|
if (!r && typeof process !== 'undefined' && 'env' in process) {
|
|
48687
48724
|
r = process.env.DEBUG;
|
|
48688
48725
|
}
|
|
48689
48726
|
|
|
48690
48727
|
return r;
|
|
48691
48728
|
}
|
|
48692
|
-
|
|
48693
|
-
/**
|
|
48694
|
-
* Enable namespaces listed in `localStorage.debug` initially.
|
|
48695
|
-
*/
|
|
48696
|
-
|
|
48697
|
-
exports.enable(load());
|
|
48698
|
-
|
|
48699
48729
|
/**
|
|
48700
48730
|
* Localstorage attempts to return the localstorage.
|
|
48701
48731
|
*
|
|
@@ -48707,11 +48737,30 @@ function requireBrowser () {
|
|
|
48707
48737
|
* @api private
|
|
48708
48738
|
*/
|
|
48709
48739
|
|
|
48740
|
+
|
|
48710
48741
|
function localstorage() {
|
|
48711
48742
|
try {
|
|
48712
|
-
|
|
48713
|
-
|
|
48714
|
-
|
|
48743
|
+
// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
|
|
48744
|
+
// The Browser also has localStorage in the global context.
|
|
48745
|
+
return localStorage;
|
|
48746
|
+
} catch (error) {// Swallow
|
|
48747
|
+
// XXX (@Qix-) should we be logging these?
|
|
48748
|
+
}
|
|
48749
|
+
}
|
|
48750
|
+
|
|
48751
|
+
module.exports = requireCommon()(exports);
|
|
48752
|
+
var formatters = module.exports.formatters;
|
|
48753
|
+
/**
|
|
48754
|
+
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
|
48755
|
+
*/
|
|
48756
|
+
|
|
48757
|
+
formatters.j = function (v) {
|
|
48758
|
+
try {
|
|
48759
|
+
return JSON.stringify(v);
|
|
48760
|
+
} catch (error) {
|
|
48761
|
+
return '[UnexpectedJSONParseError]: ' + error.message;
|
|
48762
|
+
}
|
|
48763
|
+
};
|
|
48715
48764
|
} (browser, browser.exports));
|
|
48716
48765
|
return browser.exports;
|
|
48717
48766
|
}
|
|
@@ -48724,12 +48773,12 @@ var hasRequiredHasFlag;
|
|
|
48724
48773
|
function requireHasFlag () {
|
|
48725
48774
|
if (hasRequiredHasFlag) return hasFlag;
|
|
48726
48775
|
hasRequiredHasFlag = 1;
|
|
48727
|
-
|
|
48728
|
-
|
|
48776
|
+
|
|
48777
|
+
hasFlag = (flag, argv = process.argv) => {
|
|
48729
48778
|
const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
|
|
48730
|
-
const
|
|
48731
|
-
const
|
|
48732
|
-
return
|
|
48779
|
+
const position = argv.indexOf(prefix + flag);
|
|
48780
|
+
const terminatorPosition = argv.indexOf('--');
|
|
48781
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
48733
48782
|
};
|
|
48734
48783
|
return hasFlag;
|
|
48735
48784
|
}
|
|
@@ -48741,23 +48790,32 @@ function requireSupportsColor () {
|
|
|
48741
48790
|
if (hasRequiredSupportsColor) return supportsColor_1;
|
|
48742
48791
|
hasRequiredSupportsColor = 1;
|
|
48743
48792
|
const os = require$$0$5;
|
|
48793
|
+
const tty = require$$1$4;
|
|
48744
48794
|
const hasFlag = requireHasFlag();
|
|
48745
48795
|
|
|
48746
|
-
const env = process
|
|
48796
|
+
const {env} = process;
|
|
48747
48797
|
|
|
48748
48798
|
let forceColor;
|
|
48749
48799
|
if (hasFlag('no-color') ||
|
|
48750
48800
|
hasFlag('no-colors') ||
|
|
48751
|
-
hasFlag('color=false')
|
|
48752
|
-
|
|
48801
|
+
hasFlag('color=false') ||
|
|
48802
|
+
hasFlag('color=never')) {
|
|
48803
|
+
forceColor = 0;
|
|
48753
48804
|
} else if (hasFlag('color') ||
|
|
48754
48805
|
hasFlag('colors') ||
|
|
48755
48806
|
hasFlag('color=true') ||
|
|
48756
48807
|
hasFlag('color=always')) {
|
|
48757
|
-
forceColor =
|
|
48808
|
+
forceColor = 1;
|
|
48758
48809
|
}
|
|
48810
|
+
|
|
48759
48811
|
if ('FORCE_COLOR' in env) {
|
|
48760
|
-
|
|
48812
|
+
if (env.FORCE_COLOR === 'true') {
|
|
48813
|
+
forceColor = 1;
|
|
48814
|
+
} else if (env.FORCE_COLOR === 'false') {
|
|
48815
|
+
forceColor = 0;
|
|
48816
|
+
} else {
|
|
48817
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
48818
|
+
}
|
|
48761
48819
|
}
|
|
48762
48820
|
|
|
48763
48821
|
function translateLevel(level) {
|
|
@@ -48773,8 +48831,8 @@ function requireSupportsColor () {
|
|
|
48773
48831
|
};
|
|
48774
48832
|
}
|
|
48775
48833
|
|
|
48776
|
-
function supportsColor(
|
|
48777
|
-
if (forceColor ===
|
|
48834
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
48835
|
+
if (forceColor === 0) {
|
|
48778
48836
|
return 0;
|
|
48779
48837
|
}
|
|
48780
48838
|
|
|
@@ -48788,22 +48846,21 @@ function requireSupportsColor () {
|
|
|
48788
48846
|
return 2;
|
|
48789
48847
|
}
|
|
48790
48848
|
|
|
48791
|
-
if (
|
|
48849
|
+
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
48792
48850
|
return 0;
|
|
48793
48851
|
}
|
|
48794
48852
|
|
|
48795
|
-
const min = forceColor
|
|
48853
|
+
const min = forceColor || 0;
|
|
48854
|
+
|
|
48855
|
+
if (env.TERM === 'dumb') {
|
|
48856
|
+
return min;
|
|
48857
|
+
}
|
|
48796
48858
|
|
|
48797
48859
|
if (process.platform === 'win32') {
|
|
48798
|
-
//
|
|
48799
|
-
//
|
|
48800
|
-
// won't work. However, here we target Node.js 8 at minimum as it is an LTS
|
|
48801
|
-
// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows
|
|
48802
|
-
// release that supports 256 colors. Windows 10 build 14931 is the first release
|
|
48803
|
-
// that supports 16m/TrueColor.
|
|
48860
|
+
// Windows 10 build 10586 is the first Windows release that supports 256 colors.
|
|
48861
|
+
// Windows 10 build 14931 is the first release that supports 16m/TrueColor.
|
|
48804
48862
|
const osRelease = os.release().split('.');
|
|
48805
48863
|
if (
|
|
48806
|
-
Number(process.versions.node.split('.')[0]) >= 8 &&
|
|
48807
48864
|
Number(osRelease[0]) >= 10 &&
|
|
48808
48865
|
Number(osRelease[2]) >= 10586
|
|
48809
48866
|
) {
|
|
@@ -48814,7 +48871,7 @@ function requireSupportsColor () {
|
|
|
48814
48871
|
}
|
|
48815
48872
|
|
|
48816
48873
|
if ('CI' in env) {
|
|
48817
|
-
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
|
48874
|
+
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
|
48818
48875
|
return 1;
|
|
48819
48876
|
}
|
|
48820
48877
|
|
|
@@ -48853,73 +48910,61 @@ function requireSupportsColor () {
|
|
|
48853
48910
|
return 1;
|
|
48854
48911
|
}
|
|
48855
48912
|
|
|
48856
|
-
if (env.TERM === 'dumb') {
|
|
48857
|
-
return min;
|
|
48858
|
-
}
|
|
48859
|
-
|
|
48860
48913
|
return min;
|
|
48861
48914
|
}
|
|
48862
48915
|
|
|
48863
48916
|
function getSupportLevel(stream) {
|
|
48864
|
-
const level = supportsColor(stream);
|
|
48917
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
48865
48918
|
return translateLevel(level);
|
|
48866
48919
|
}
|
|
48867
48920
|
|
|
48868
48921
|
supportsColor_1 = {
|
|
48869
48922
|
supportsColor: getSupportLevel,
|
|
48870
|
-
stdout:
|
|
48871
|
-
stderr:
|
|
48923
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
48924
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
48872
48925
|
};
|
|
48873
48926
|
return supportsColor_1;
|
|
48874
48927
|
}
|
|
48875
48928
|
|
|
48876
|
-
/**
|
|
48877
|
-
* Module dependencies.
|
|
48878
|
-
*/
|
|
48879
|
-
|
|
48880
48929
|
var hasRequiredNode;
|
|
48881
48930
|
|
|
48882
48931
|
function requireNode () {
|
|
48883
48932
|
if (hasRequiredNode) return node.exports;
|
|
48884
48933
|
hasRequiredNode = 1;
|
|
48885
48934
|
(function (module, exports) {
|
|
48886
|
-
var tty = require$$0$7;
|
|
48887
|
-
var util = require$$1$1;
|
|
48888
48935
|
|
|
48936
|
+
/**
|
|
48937
|
+
* Module dependencies.
|
|
48938
|
+
*/
|
|
48939
|
+
var tty = require$$1$4;
|
|
48940
|
+
|
|
48941
|
+
var util = require$$1$1;
|
|
48889
48942
|
/**
|
|
48890
48943
|
* This is the Node.js implementation of `debug()`.
|
|
48891
|
-
*
|
|
48892
|
-
* Expose `debug()` as the module.
|
|
48893
48944
|
*/
|
|
48894
48945
|
|
|
48895
|
-
|
|
48946
|
+
|
|
48896
48947
|
exports.init = init;
|
|
48897
48948
|
exports.log = log;
|
|
48898
48949
|
exports.formatArgs = formatArgs;
|
|
48899
48950
|
exports.save = save;
|
|
48900
48951
|
exports.load = load;
|
|
48901
48952
|
exports.useColors = useColors;
|
|
48902
|
-
|
|
48903
48953
|
/**
|
|
48904
48954
|
* Colors.
|
|
48905
48955
|
*/
|
|
48906
48956
|
|
|
48907
|
-
exports.colors = [
|
|
48957
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
48908
48958
|
|
|
48909
48959
|
try {
|
|
48960
|
+
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
|
48961
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
48910
48962
|
var supportsColor = requireSupportsColor();
|
|
48911
|
-
|
|
48912
|
-
|
|
48913
|
-
|
|
48914
|
-
69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134,
|
|
48915
|
-
135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171,
|
|
48916
|
-
172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204,
|
|
48917
|
-
205, 206, 207, 208, 209, 214, 215, 220, 221
|
|
48918
|
-
];
|
|
48963
|
+
|
|
48964
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
48965
|
+
exports.colors = [20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221];
|
|
48919
48966
|
}
|
|
48920
|
-
} catch (
|
|
48921
|
-
// swallow - we only care if `supports-color` is available; it doesn't have to be.
|
|
48922
|
-
}
|
|
48967
|
+
} catch (error) {} // Swallow - we only care if `supports-color` is available; it doesn't have to be.
|
|
48923
48968
|
|
|
48924
48969
|
/**
|
|
48925
48970
|
* Build up the default `inspectOpts` object from the environment variables.
|
|
@@ -48927,74 +48972,54 @@ function requireNode () {
|
|
|
48927
48972
|
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
|
48928
48973
|
*/
|
|
48929
48974
|
|
|
48975
|
+
|
|
48930
48976
|
exports.inspectOpts = Object.keys(process.env).filter(function (key) {
|
|
48931
48977
|
return /^debug_/i.test(key);
|
|
48932
48978
|
}).reduce(function (obj, key) {
|
|
48933
|
-
//
|
|
48934
|
-
var prop = key
|
|
48935
|
-
.
|
|
48936
|
-
|
|
48937
|
-
.replace(/_([a-z])/g, function (_, k) { return k.toUpperCase() });
|
|
48979
|
+
// Camel-case
|
|
48980
|
+
var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function (_, k) {
|
|
48981
|
+
return k.toUpperCase();
|
|
48982
|
+
}); // Coerce string value into JS value
|
|
48938
48983
|
|
|
48939
|
-
// coerce string value into JS value
|
|
48940
48984
|
var val = process.env[key];
|
|
48941
|
-
|
|
48942
|
-
|
|
48943
|
-
|
|
48944
|
-
else
|
|
48985
|
+
|
|
48986
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
48987
|
+
val = true;
|
|
48988
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
48989
|
+
val = false;
|
|
48990
|
+
} else if (val === 'null') {
|
|
48991
|
+
val = null;
|
|
48992
|
+
} else {
|
|
48993
|
+
val = Number(val);
|
|
48994
|
+
}
|
|
48945
48995
|
|
|
48946
48996
|
obj[prop] = val;
|
|
48947
48997
|
return obj;
|
|
48948
48998
|
}, {});
|
|
48949
|
-
|
|
48950
48999
|
/**
|
|
48951
49000
|
* Is stdout a TTY? Colored output is enabled when `true`.
|
|
48952
49001
|
*/
|
|
48953
49002
|
|
|
48954
49003
|
function useColors() {
|
|
48955
|
-
return 'colors' in exports.inspectOpts
|
|
48956
|
-
? Boolean(exports.inspectOpts.colors)
|
|
48957
|
-
: tty.isatty(process.stderr.fd);
|
|
49004
|
+
return 'colors' in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
48958
49005
|
}
|
|
48959
|
-
|
|
48960
|
-
/**
|
|
48961
|
-
* Map %o to `util.inspect()`, all on a single line.
|
|
48962
|
-
*/
|
|
48963
|
-
|
|
48964
|
-
exports.formatters.o = function(v) {
|
|
48965
|
-
this.inspectOpts.colors = this.useColors;
|
|
48966
|
-
return util.inspect(v, this.inspectOpts)
|
|
48967
|
-
.split('\n').map(function(str) {
|
|
48968
|
-
return str.trim()
|
|
48969
|
-
}).join(' ');
|
|
48970
|
-
};
|
|
48971
|
-
|
|
48972
|
-
/**
|
|
48973
|
-
* Map %o to `util.inspect()`, allowing multiple lines if needed.
|
|
48974
|
-
*/
|
|
48975
|
-
|
|
48976
|
-
exports.formatters.O = function(v) {
|
|
48977
|
-
this.inspectOpts.colors = this.useColors;
|
|
48978
|
-
return util.inspect(v, this.inspectOpts);
|
|
48979
|
-
};
|
|
48980
|
-
|
|
48981
49006
|
/**
|
|
48982
49007
|
* Adds ANSI color escape codes if enabled.
|
|
48983
49008
|
*
|
|
48984
49009
|
* @api public
|
|
48985
49010
|
*/
|
|
48986
49011
|
|
|
49012
|
+
|
|
48987
49013
|
function formatArgs(args) {
|
|
48988
|
-
var name = this.namespace
|
|
48989
|
-
|
|
49014
|
+
var name = this.namespace,
|
|
49015
|
+
useColors = this.useColors;
|
|
48990
49016
|
|
|
48991
49017
|
if (useColors) {
|
|
48992
49018
|
var c = this.color;
|
|
48993
|
-
var colorCode =
|
|
48994
|
-
var prefix =
|
|
48995
|
-
|
|
49019
|
+
var colorCode = "\x1B[3" + (c < 8 ? c : '8;5;' + c);
|
|
49020
|
+
var prefix = " ".concat(colorCode, ";1m").concat(name, " \x1B[0m");
|
|
48996
49021
|
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
|
|
48997
|
-
args.push(colorCode + 'm+' + exports.humanize(this.diff) +
|
|
49022
|
+
args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + "\x1B[0m");
|
|
48998
49023
|
} else {
|
|
48999
49024
|
args[0] = getDate() + name + ' ' + args[0];
|
|
49000
49025
|
}
|
|
@@ -49003,19 +49028,18 @@ function requireNode () {
|
|
|
49003
49028
|
function getDate() {
|
|
49004
49029
|
if (exports.inspectOpts.hideDate) {
|
|
49005
49030
|
return '';
|
|
49006
|
-
} else {
|
|
49007
|
-
return new Date().toISOString() + ' ';
|
|
49008
49031
|
}
|
|
49009
|
-
}
|
|
49010
49032
|
|
|
49033
|
+
return new Date().toISOString() + ' ';
|
|
49034
|
+
}
|
|
49011
49035
|
/**
|
|
49012
49036
|
* Invokes `util.format()` with the specified arguments and writes to stderr.
|
|
49013
49037
|
*/
|
|
49014
49038
|
|
|
49039
|
+
|
|
49015
49040
|
function log() {
|
|
49016
49041
|
return process.stderr.write(util.format.apply(util, arguments) + '\n');
|
|
49017
49042
|
}
|
|
49018
|
-
|
|
49019
49043
|
/**
|
|
49020
49044
|
* Save `namespaces`.
|
|
49021
49045
|
*
|
|
@@ -49023,16 +49047,16 @@ function requireNode () {
|
|
|
49023
49047
|
* @api private
|
|
49024
49048
|
*/
|
|
49025
49049
|
|
|
49050
|
+
|
|
49026
49051
|
function save(namespaces) {
|
|
49027
|
-
if (
|
|
49052
|
+
if (namespaces) {
|
|
49053
|
+
process.env.DEBUG = namespaces;
|
|
49054
|
+
} else {
|
|
49028
49055
|
// If you set a process.env field to null or undefined, it gets cast to the
|
|
49029
49056
|
// string 'null' or 'undefined'. Just delete instead.
|
|
49030
49057
|
delete process.env.DEBUG;
|
|
49031
|
-
} else {
|
|
49032
|
-
process.env.DEBUG = namespaces;
|
|
49033
49058
|
}
|
|
49034
49059
|
}
|
|
49035
|
-
|
|
49036
49060
|
/**
|
|
49037
49061
|
* Load `namespaces`.
|
|
49038
49062
|
*
|
|
@@ -49040,10 +49064,10 @@ function requireNode () {
|
|
|
49040
49064
|
* @api private
|
|
49041
49065
|
*/
|
|
49042
49066
|
|
|
49067
|
+
|
|
49043
49068
|
function load() {
|
|
49044
49069
|
return process.env.DEBUG;
|
|
49045
49070
|
}
|
|
49046
|
-
|
|
49047
49071
|
/**
|
|
49048
49072
|
* Init logic for `debug` instances.
|
|
49049
49073
|
*
|
|
@@ -49051,35 +49075,53 @@ function requireNode () {
|
|
|
49051
49075
|
* differently for a particular `debug` instance.
|
|
49052
49076
|
*/
|
|
49053
49077
|
|
|
49054
|
-
function init (debug) {
|
|
49055
|
-
debug.inspectOpts = {};
|
|
49056
49078
|
|
|
49079
|
+
function init(debug) {
|
|
49080
|
+
debug.inspectOpts = {};
|
|
49057
49081
|
var keys = Object.keys(exports.inspectOpts);
|
|
49082
|
+
|
|
49058
49083
|
for (var i = 0; i < keys.length; i++) {
|
|
49059
49084
|
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
49060
49085
|
}
|
|
49061
49086
|
}
|
|
49062
49087
|
|
|
49088
|
+
module.exports = requireCommon()(exports);
|
|
49089
|
+
var formatters = module.exports.formatters;
|
|
49090
|
+
/**
|
|
49091
|
+
* Map %o to `util.inspect()`, all on a single line.
|
|
49092
|
+
*/
|
|
49093
|
+
|
|
49094
|
+
formatters.o = function (v) {
|
|
49095
|
+
this.inspectOpts.colors = this.useColors;
|
|
49096
|
+
return util.inspect(v, this.inspectOpts)
|
|
49097
|
+
.split('\n')
|
|
49098
|
+
.map(function (str) { return str.trim(); })
|
|
49099
|
+
.join(' ');
|
|
49100
|
+
};
|
|
49063
49101
|
/**
|
|
49064
|
-
*
|
|
49102
|
+
* Map %O to `util.inspect()`, allowing multiple lines if needed.
|
|
49065
49103
|
*/
|
|
49066
49104
|
|
|
49067
|
-
|
|
49105
|
+
|
|
49106
|
+
formatters.O = function (v) {
|
|
49107
|
+
this.inspectOpts.colors = this.useColors;
|
|
49108
|
+
return util.inspect(v, this.inspectOpts);
|
|
49109
|
+
};
|
|
49068
49110
|
} (node, node.exports));
|
|
49069
49111
|
return node.exports;
|
|
49070
49112
|
}
|
|
49071
49113
|
|
|
49072
|
-
/**
|
|
49073
|
-
* Detect Electron renderer process, which is node, but we should
|
|
49074
|
-
* treat as a browser.
|
|
49075
|
-
*/
|
|
49076
|
-
|
|
49077
49114
|
var hasRequiredSrc$1;
|
|
49078
49115
|
|
|
49079
49116
|
function requireSrc$1 () {
|
|
49080
49117
|
if (hasRequiredSrc$1) return src.exports;
|
|
49081
49118
|
hasRequiredSrc$1 = 1;
|
|
49082
|
-
|
|
49119
|
+
|
|
49120
|
+
/**
|
|
49121
|
+
* Detect Electron renderer / nwjs process, which is node, but we should
|
|
49122
|
+
* treat as a browser.
|
|
49123
|
+
*/
|
|
49124
|
+
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
|
|
49083
49125
|
src.exports = requireBrowser();
|
|
49084
49126
|
} else {
|
|
49085
49127
|
src.exports = requireNode();
|
|
@@ -50114,7 +50156,7 @@ var hasRequiredForm;
|
|
|
50114
50156
|
function requireForm () {
|
|
50115
50157
|
if (hasRequiredForm) return form;
|
|
50116
50158
|
hasRequiredForm = 1;
|
|
50117
|
-
var querystringParse = require$$0$
|
|
50159
|
+
var querystringParse = require$$0$7.parse;
|
|
50118
50160
|
|
|
50119
50161
|
var body = requireBody();
|
|
50120
50162
|
var parseArguments = requireParseArguments();
|
|
@@ -50197,6 +50239,714 @@ function requireAny () {
|
|
|
50197
50239
|
return any;
|
|
50198
50240
|
}
|
|
50199
50241
|
|
|
50242
|
+
var type;
|
|
50243
|
+
var hasRequiredType;
|
|
50244
|
+
|
|
50245
|
+
function requireType () {
|
|
50246
|
+
if (hasRequiredType) return type;
|
|
50247
|
+
hasRequiredType = 1;
|
|
50248
|
+
|
|
50249
|
+
/** @type {import('./type')} */
|
|
50250
|
+
type = TypeError;
|
|
50251
|
+
return type;
|
|
50252
|
+
}
|
|
50253
|
+
|
|
50254
|
+
var util_inspect;
|
|
50255
|
+
var hasRequiredUtil_inspect;
|
|
50256
|
+
|
|
50257
|
+
function requireUtil_inspect () {
|
|
50258
|
+
if (hasRequiredUtil_inspect) return util_inspect;
|
|
50259
|
+
hasRequiredUtil_inspect = 1;
|
|
50260
|
+
util_inspect = require$$1$1.inspect;
|
|
50261
|
+
return util_inspect;
|
|
50262
|
+
}
|
|
50263
|
+
|
|
50264
|
+
var objectInspect;
|
|
50265
|
+
var hasRequiredObjectInspect;
|
|
50266
|
+
|
|
50267
|
+
function requireObjectInspect () {
|
|
50268
|
+
if (hasRequiredObjectInspect) return objectInspect;
|
|
50269
|
+
hasRequiredObjectInspect = 1;
|
|
50270
|
+
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
50271
|
+
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
50272
|
+
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
50273
|
+
var mapForEach = hasMap && Map.prototype.forEach;
|
|
50274
|
+
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
50275
|
+
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
50276
|
+
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
50277
|
+
var setForEach = hasSet && Set.prototype.forEach;
|
|
50278
|
+
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
50279
|
+
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
50280
|
+
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
50281
|
+
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
50282
|
+
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
50283
|
+
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
50284
|
+
var booleanValueOf = Boolean.prototype.valueOf;
|
|
50285
|
+
var objectToString = Object.prototype.toString;
|
|
50286
|
+
var functionToString = Function.prototype.toString;
|
|
50287
|
+
var $match = String.prototype.match;
|
|
50288
|
+
var $slice = String.prototype.slice;
|
|
50289
|
+
var $replace = String.prototype.replace;
|
|
50290
|
+
var $toUpperCase = String.prototype.toUpperCase;
|
|
50291
|
+
var $toLowerCase = String.prototype.toLowerCase;
|
|
50292
|
+
var $test = RegExp.prototype.test;
|
|
50293
|
+
var $concat = Array.prototype.concat;
|
|
50294
|
+
var $join = Array.prototype.join;
|
|
50295
|
+
var $arrSlice = Array.prototype.slice;
|
|
50296
|
+
var $floor = Math.floor;
|
|
50297
|
+
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
50298
|
+
var gOPS = Object.getOwnPropertySymbols;
|
|
50299
|
+
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
50300
|
+
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
|
50301
|
+
// ie, `has-tostringtag/shams
|
|
50302
|
+
var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
|
|
50303
|
+
? Symbol.toStringTag
|
|
50304
|
+
: null;
|
|
50305
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
50306
|
+
|
|
50307
|
+
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
|
50308
|
+
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
|
50309
|
+
? function (O) {
|
|
50310
|
+
return O.__proto__; // eslint-disable-line no-proto
|
|
50311
|
+
}
|
|
50312
|
+
: null
|
|
50313
|
+
);
|
|
50314
|
+
|
|
50315
|
+
function addNumericSeparator(num, str) {
|
|
50316
|
+
if (
|
|
50317
|
+
num === Infinity
|
|
50318
|
+
|| num === -Infinity
|
|
50319
|
+
|| num !== num
|
|
50320
|
+
|| (num && num > -1e3 && num < 1000)
|
|
50321
|
+
|| $test.call(/e/, str)
|
|
50322
|
+
) {
|
|
50323
|
+
return str;
|
|
50324
|
+
}
|
|
50325
|
+
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
50326
|
+
if (typeof num === 'number') {
|
|
50327
|
+
var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
|
|
50328
|
+
if (int !== num) {
|
|
50329
|
+
var intStr = String(int);
|
|
50330
|
+
var dec = $slice.call(str, intStr.length + 1);
|
|
50331
|
+
return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
|
|
50332
|
+
}
|
|
50333
|
+
}
|
|
50334
|
+
return $replace.call(str, sepRegex, '$&_');
|
|
50335
|
+
}
|
|
50336
|
+
|
|
50337
|
+
var utilInspect = requireUtil_inspect();
|
|
50338
|
+
var inspectCustom = utilInspect.custom;
|
|
50339
|
+
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
50340
|
+
|
|
50341
|
+
var quotes = {
|
|
50342
|
+
__proto__: null,
|
|
50343
|
+
'double': '"',
|
|
50344
|
+
single: "'"
|
|
50345
|
+
};
|
|
50346
|
+
var quoteREs = {
|
|
50347
|
+
__proto__: null,
|
|
50348
|
+
'double': /(["\\])/g,
|
|
50349
|
+
single: /(['\\])/g
|
|
50350
|
+
};
|
|
50351
|
+
|
|
50352
|
+
objectInspect = function inspect_(obj, options, depth, seen) {
|
|
50353
|
+
var opts = options || {};
|
|
50354
|
+
|
|
50355
|
+
if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) {
|
|
50356
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
50357
|
+
}
|
|
50358
|
+
if (
|
|
50359
|
+
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
50360
|
+
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
50361
|
+
: opts.maxStringLength !== null
|
|
50362
|
+
)
|
|
50363
|
+
) {
|
|
50364
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
50365
|
+
}
|
|
50366
|
+
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
50367
|
+
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
50368
|
+
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
50369
|
+
}
|
|
50370
|
+
|
|
50371
|
+
if (
|
|
50372
|
+
has(opts, 'indent')
|
|
50373
|
+
&& opts.indent !== null
|
|
50374
|
+
&& opts.indent !== '\t'
|
|
50375
|
+
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
50376
|
+
) {
|
|
50377
|
+
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
50378
|
+
}
|
|
50379
|
+
if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
|
50380
|
+
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
50381
|
+
}
|
|
50382
|
+
var numericSeparator = opts.numericSeparator;
|
|
50383
|
+
|
|
50384
|
+
if (typeof obj === 'undefined') {
|
|
50385
|
+
return 'undefined';
|
|
50386
|
+
}
|
|
50387
|
+
if (obj === null) {
|
|
50388
|
+
return 'null';
|
|
50389
|
+
}
|
|
50390
|
+
if (typeof obj === 'boolean') {
|
|
50391
|
+
return obj ? 'true' : 'false';
|
|
50392
|
+
}
|
|
50393
|
+
|
|
50394
|
+
if (typeof obj === 'string') {
|
|
50395
|
+
return inspectString(obj, opts);
|
|
50396
|
+
}
|
|
50397
|
+
if (typeof obj === 'number') {
|
|
50398
|
+
if (obj === 0) {
|
|
50399
|
+
return Infinity / obj > 0 ? '0' : '-0';
|
|
50400
|
+
}
|
|
50401
|
+
var str = String(obj);
|
|
50402
|
+
return numericSeparator ? addNumericSeparator(obj, str) : str;
|
|
50403
|
+
}
|
|
50404
|
+
if (typeof obj === 'bigint') {
|
|
50405
|
+
var bigIntStr = String(obj) + 'n';
|
|
50406
|
+
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
|
50407
|
+
}
|
|
50408
|
+
|
|
50409
|
+
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
50410
|
+
if (typeof depth === 'undefined') { depth = 0; }
|
|
50411
|
+
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
50412
|
+
return isArray(obj) ? '[Array]' : '[Object]';
|
|
50413
|
+
}
|
|
50414
|
+
|
|
50415
|
+
var indent = getIndent(opts, depth);
|
|
50416
|
+
|
|
50417
|
+
if (typeof seen === 'undefined') {
|
|
50418
|
+
seen = [];
|
|
50419
|
+
} else if (indexOf(seen, obj) >= 0) {
|
|
50420
|
+
return '[Circular]';
|
|
50421
|
+
}
|
|
50422
|
+
|
|
50423
|
+
function inspect(value, from, noIndent) {
|
|
50424
|
+
if (from) {
|
|
50425
|
+
seen = $arrSlice.call(seen);
|
|
50426
|
+
seen.push(from);
|
|
50427
|
+
}
|
|
50428
|
+
if (noIndent) {
|
|
50429
|
+
var newOpts = {
|
|
50430
|
+
depth: opts.depth
|
|
50431
|
+
};
|
|
50432
|
+
if (has(opts, 'quoteStyle')) {
|
|
50433
|
+
newOpts.quoteStyle = opts.quoteStyle;
|
|
50434
|
+
}
|
|
50435
|
+
return inspect_(value, newOpts, depth + 1, seen);
|
|
50436
|
+
}
|
|
50437
|
+
return inspect_(value, opts, depth + 1, seen);
|
|
50438
|
+
}
|
|
50439
|
+
|
|
50440
|
+
if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
|
|
50441
|
+
var name = nameOf(obj);
|
|
50442
|
+
var keys = arrObjKeys(obj, inspect);
|
|
50443
|
+
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
|
|
50444
|
+
}
|
|
50445
|
+
if (isSymbol(obj)) {
|
|
50446
|
+
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
|
50447
|
+
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
50448
|
+
}
|
|
50449
|
+
if (isElement(obj)) {
|
|
50450
|
+
var s = '<' + $toLowerCase.call(String(obj.nodeName));
|
|
50451
|
+
var attrs = obj.attributes || [];
|
|
50452
|
+
for (var i = 0; i < attrs.length; i++) {
|
|
50453
|
+
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
50454
|
+
}
|
|
50455
|
+
s += '>';
|
|
50456
|
+
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
|
50457
|
+
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
|
50458
|
+
return s;
|
|
50459
|
+
}
|
|
50460
|
+
if (isArray(obj)) {
|
|
50461
|
+
if (obj.length === 0) { return '[]'; }
|
|
50462
|
+
var xs = arrObjKeys(obj, inspect);
|
|
50463
|
+
if (indent && !singleLineValues(xs)) {
|
|
50464
|
+
return '[' + indentedJoin(xs, indent) + ']';
|
|
50465
|
+
}
|
|
50466
|
+
return '[ ' + $join.call(xs, ', ') + ' ]';
|
|
50467
|
+
}
|
|
50468
|
+
if (isError(obj)) {
|
|
50469
|
+
var parts = arrObjKeys(obj, inspect);
|
|
50470
|
+
if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
|
50471
|
+
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
|
50472
|
+
}
|
|
50473
|
+
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
50474
|
+
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
|
|
50475
|
+
}
|
|
50476
|
+
if (typeof obj === 'object' && customInspect) {
|
|
50477
|
+
if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
|
|
50478
|
+
return utilInspect(obj, { depth: maxDepth - depth });
|
|
50479
|
+
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
50480
|
+
return obj.inspect();
|
|
50481
|
+
}
|
|
50482
|
+
}
|
|
50483
|
+
if (isMap(obj)) {
|
|
50484
|
+
var mapParts = [];
|
|
50485
|
+
if (mapForEach) {
|
|
50486
|
+
mapForEach.call(obj, function (value, key) {
|
|
50487
|
+
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
50488
|
+
});
|
|
50489
|
+
}
|
|
50490
|
+
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
50491
|
+
}
|
|
50492
|
+
if (isSet(obj)) {
|
|
50493
|
+
var setParts = [];
|
|
50494
|
+
if (setForEach) {
|
|
50495
|
+
setForEach.call(obj, function (value) {
|
|
50496
|
+
setParts.push(inspect(value, obj));
|
|
50497
|
+
});
|
|
50498
|
+
}
|
|
50499
|
+
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
50500
|
+
}
|
|
50501
|
+
if (isWeakMap(obj)) {
|
|
50502
|
+
return weakCollectionOf('WeakMap');
|
|
50503
|
+
}
|
|
50504
|
+
if (isWeakSet(obj)) {
|
|
50505
|
+
return weakCollectionOf('WeakSet');
|
|
50506
|
+
}
|
|
50507
|
+
if (isWeakRef(obj)) {
|
|
50508
|
+
return weakCollectionOf('WeakRef');
|
|
50509
|
+
}
|
|
50510
|
+
if (isNumber(obj)) {
|
|
50511
|
+
return markBoxed(inspect(Number(obj)));
|
|
50512
|
+
}
|
|
50513
|
+
if (isBigInt(obj)) {
|
|
50514
|
+
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
50515
|
+
}
|
|
50516
|
+
if (isBoolean(obj)) {
|
|
50517
|
+
return markBoxed(booleanValueOf.call(obj));
|
|
50518
|
+
}
|
|
50519
|
+
if (isString(obj)) {
|
|
50520
|
+
return markBoxed(inspect(String(obj)));
|
|
50521
|
+
}
|
|
50522
|
+
// note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
|
|
50523
|
+
/* eslint-env browser */
|
|
50524
|
+
if (typeof window !== 'undefined' && obj === window) {
|
|
50525
|
+
return '{ [object Window] }';
|
|
50526
|
+
}
|
|
50527
|
+
if (
|
|
50528
|
+
(typeof globalThis !== 'undefined' && obj === globalThis)
|
|
50529
|
+
|| (typeof commonjsGlobal !== 'undefined' && obj === commonjsGlobal)
|
|
50530
|
+
) {
|
|
50531
|
+
return '{ [object globalThis] }';
|
|
50532
|
+
}
|
|
50533
|
+
if (!isDate(obj) && !isRegExp(obj)) {
|
|
50534
|
+
var ys = arrObjKeys(obj, inspect);
|
|
50535
|
+
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
50536
|
+
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
50537
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
|
|
50538
|
+
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
50539
|
+
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
|
50540
|
+
if (ys.length === 0) { return tag + '{}'; }
|
|
50541
|
+
if (indent) {
|
|
50542
|
+
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
50543
|
+
}
|
|
50544
|
+
return tag + '{ ' + $join.call(ys, ', ') + ' }';
|
|
50545
|
+
}
|
|
50546
|
+
return String(obj);
|
|
50547
|
+
};
|
|
50548
|
+
|
|
50549
|
+
function wrapQuotes(s, defaultStyle, opts) {
|
|
50550
|
+
var style = opts.quoteStyle || defaultStyle;
|
|
50551
|
+
var quoteChar = quotes[style];
|
|
50552
|
+
return quoteChar + s + quoteChar;
|
|
50553
|
+
}
|
|
50554
|
+
|
|
50555
|
+
function quote(s) {
|
|
50556
|
+
return $replace.call(String(s), /"/g, '"');
|
|
50557
|
+
}
|
|
50558
|
+
|
|
50559
|
+
function canTrustToString(obj) {
|
|
50560
|
+
return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined'));
|
|
50561
|
+
}
|
|
50562
|
+
function isArray(obj) { return toStr(obj) === '[object Array]' && canTrustToString(obj); }
|
|
50563
|
+
function isDate(obj) { return toStr(obj) === '[object Date]' && canTrustToString(obj); }
|
|
50564
|
+
function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && canTrustToString(obj); }
|
|
50565
|
+
function isError(obj) { return toStr(obj) === '[object Error]' && canTrustToString(obj); }
|
|
50566
|
+
function isString(obj) { return toStr(obj) === '[object String]' && canTrustToString(obj); }
|
|
50567
|
+
function isNumber(obj) { return toStr(obj) === '[object Number]' && canTrustToString(obj); }
|
|
50568
|
+
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && canTrustToString(obj); }
|
|
50569
|
+
|
|
50570
|
+
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
50571
|
+
function isSymbol(obj) {
|
|
50572
|
+
if (hasShammedSymbols) {
|
|
50573
|
+
return obj && typeof obj === 'object' && obj instanceof Symbol;
|
|
50574
|
+
}
|
|
50575
|
+
if (typeof obj === 'symbol') {
|
|
50576
|
+
return true;
|
|
50577
|
+
}
|
|
50578
|
+
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
50579
|
+
return false;
|
|
50580
|
+
}
|
|
50581
|
+
try {
|
|
50582
|
+
symToString.call(obj);
|
|
50583
|
+
return true;
|
|
50584
|
+
} catch (e) {}
|
|
50585
|
+
return false;
|
|
50586
|
+
}
|
|
50587
|
+
|
|
50588
|
+
function isBigInt(obj) {
|
|
50589
|
+
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
|
50590
|
+
return false;
|
|
50591
|
+
}
|
|
50592
|
+
try {
|
|
50593
|
+
bigIntValueOf.call(obj);
|
|
50594
|
+
return true;
|
|
50595
|
+
} catch (e) {}
|
|
50596
|
+
return false;
|
|
50597
|
+
}
|
|
50598
|
+
|
|
50599
|
+
var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
|
50600
|
+
function has(obj, key) {
|
|
50601
|
+
return hasOwn.call(obj, key);
|
|
50602
|
+
}
|
|
50603
|
+
|
|
50604
|
+
function toStr(obj) {
|
|
50605
|
+
return objectToString.call(obj);
|
|
50606
|
+
}
|
|
50607
|
+
|
|
50608
|
+
function nameOf(f) {
|
|
50609
|
+
if (f.name) { return f.name; }
|
|
50610
|
+
var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
|
50611
|
+
if (m) { return m[1]; }
|
|
50612
|
+
return null;
|
|
50613
|
+
}
|
|
50614
|
+
|
|
50615
|
+
function indexOf(xs, x) {
|
|
50616
|
+
if (xs.indexOf) { return xs.indexOf(x); }
|
|
50617
|
+
for (var i = 0, l = xs.length; i < l; i++) {
|
|
50618
|
+
if (xs[i] === x) { return i; }
|
|
50619
|
+
}
|
|
50620
|
+
return -1;
|
|
50621
|
+
}
|
|
50622
|
+
|
|
50623
|
+
function isMap(x) {
|
|
50624
|
+
if (!mapSize || !x || typeof x !== 'object') {
|
|
50625
|
+
return false;
|
|
50626
|
+
}
|
|
50627
|
+
try {
|
|
50628
|
+
mapSize.call(x);
|
|
50629
|
+
try {
|
|
50630
|
+
setSize.call(x);
|
|
50631
|
+
} catch (s) {
|
|
50632
|
+
return true;
|
|
50633
|
+
}
|
|
50634
|
+
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
|
50635
|
+
} catch (e) {}
|
|
50636
|
+
return false;
|
|
50637
|
+
}
|
|
50638
|
+
|
|
50639
|
+
function isWeakMap(x) {
|
|
50640
|
+
if (!weakMapHas || !x || typeof x !== 'object') {
|
|
50641
|
+
return false;
|
|
50642
|
+
}
|
|
50643
|
+
try {
|
|
50644
|
+
weakMapHas.call(x, weakMapHas);
|
|
50645
|
+
try {
|
|
50646
|
+
weakSetHas.call(x, weakSetHas);
|
|
50647
|
+
} catch (s) {
|
|
50648
|
+
return true;
|
|
50649
|
+
}
|
|
50650
|
+
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
|
50651
|
+
} catch (e) {}
|
|
50652
|
+
return false;
|
|
50653
|
+
}
|
|
50654
|
+
|
|
50655
|
+
function isWeakRef(x) {
|
|
50656
|
+
if (!weakRefDeref || !x || typeof x !== 'object') {
|
|
50657
|
+
return false;
|
|
50658
|
+
}
|
|
50659
|
+
try {
|
|
50660
|
+
weakRefDeref.call(x);
|
|
50661
|
+
return true;
|
|
50662
|
+
} catch (e) {}
|
|
50663
|
+
return false;
|
|
50664
|
+
}
|
|
50665
|
+
|
|
50666
|
+
function isSet(x) {
|
|
50667
|
+
if (!setSize || !x || typeof x !== 'object') {
|
|
50668
|
+
return false;
|
|
50669
|
+
}
|
|
50670
|
+
try {
|
|
50671
|
+
setSize.call(x);
|
|
50672
|
+
try {
|
|
50673
|
+
mapSize.call(x);
|
|
50674
|
+
} catch (m) {
|
|
50675
|
+
return true;
|
|
50676
|
+
}
|
|
50677
|
+
return x instanceof Set; // core-js workaround, pre-v2.5.0
|
|
50678
|
+
} catch (e) {}
|
|
50679
|
+
return false;
|
|
50680
|
+
}
|
|
50681
|
+
|
|
50682
|
+
function isWeakSet(x) {
|
|
50683
|
+
if (!weakSetHas || !x || typeof x !== 'object') {
|
|
50684
|
+
return false;
|
|
50685
|
+
}
|
|
50686
|
+
try {
|
|
50687
|
+
weakSetHas.call(x, weakSetHas);
|
|
50688
|
+
try {
|
|
50689
|
+
weakMapHas.call(x, weakMapHas);
|
|
50690
|
+
} catch (s) {
|
|
50691
|
+
return true;
|
|
50692
|
+
}
|
|
50693
|
+
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
|
50694
|
+
} catch (e) {}
|
|
50695
|
+
return false;
|
|
50696
|
+
}
|
|
50697
|
+
|
|
50698
|
+
function isElement(x) {
|
|
50699
|
+
if (!x || typeof x !== 'object') { return false; }
|
|
50700
|
+
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
|
50701
|
+
return true;
|
|
50702
|
+
}
|
|
50703
|
+
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
50704
|
+
}
|
|
50705
|
+
|
|
50706
|
+
function inspectString(str, opts) {
|
|
50707
|
+
if (str.length > opts.maxStringLength) {
|
|
50708
|
+
var remaining = str.length - opts.maxStringLength;
|
|
50709
|
+
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
50710
|
+
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
50711
|
+
}
|
|
50712
|
+
var quoteRE = quoteREs[opts.quoteStyle || 'single'];
|
|
50713
|
+
quoteRE.lastIndex = 0;
|
|
50714
|
+
// eslint-disable-next-line no-control-regex
|
|
50715
|
+
var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
|
50716
|
+
return wrapQuotes(s, 'single', opts);
|
|
50717
|
+
}
|
|
50718
|
+
|
|
50719
|
+
function lowbyte(c) {
|
|
50720
|
+
var n = c.charCodeAt(0);
|
|
50721
|
+
var x = {
|
|
50722
|
+
8: 'b',
|
|
50723
|
+
9: 't',
|
|
50724
|
+
10: 'n',
|
|
50725
|
+
12: 'f',
|
|
50726
|
+
13: 'r'
|
|
50727
|
+
}[n];
|
|
50728
|
+
if (x) { return '\\' + x; }
|
|
50729
|
+
return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
|
|
50730
|
+
}
|
|
50731
|
+
|
|
50732
|
+
function markBoxed(str) {
|
|
50733
|
+
return 'Object(' + str + ')';
|
|
50734
|
+
}
|
|
50735
|
+
|
|
50736
|
+
function weakCollectionOf(type) {
|
|
50737
|
+
return type + ' { ? }';
|
|
50738
|
+
}
|
|
50739
|
+
|
|
50740
|
+
function collectionOf(type, size, entries, indent) {
|
|
50741
|
+
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
|
|
50742
|
+
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
50743
|
+
}
|
|
50744
|
+
|
|
50745
|
+
function singleLineValues(xs) {
|
|
50746
|
+
for (var i = 0; i < xs.length; i++) {
|
|
50747
|
+
if (indexOf(xs[i], '\n') >= 0) {
|
|
50748
|
+
return false;
|
|
50749
|
+
}
|
|
50750
|
+
}
|
|
50751
|
+
return true;
|
|
50752
|
+
}
|
|
50753
|
+
|
|
50754
|
+
function getIndent(opts, depth) {
|
|
50755
|
+
var baseIndent;
|
|
50756
|
+
if (opts.indent === '\t') {
|
|
50757
|
+
baseIndent = '\t';
|
|
50758
|
+
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
50759
|
+
baseIndent = $join.call(Array(opts.indent + 1), ' ');
|
|
50760
|
+
} else {
|
|
50761
|
+
return null;
|
|
50762
|
+
}
|
|
50763
|
+
return {
|
|
50764
|
+
base: baseIndent,
|
|
50765
|
+
prev: $join.call(Array(depth + 1), baseIndent)
|
|
50766
|
+
};
|
|
50767
|
+
}
|
|
50768
|
+
|
|
50769
|
+
function indentedJoin(xs, indent) {
|
|
50770
|
+
if (xs.length === 0) { return ''; }
|
|
50771
|
+
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
50772
|
+
return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
|
|
50773
|
+
}
|
|
50774
|
+
|
|
50775
|
+
function arrObjKeys(obj, inspect) {
|
|
50776
|
+
var isArr = isArray(obj);
|
|
50777
|
+
var xs = [];
|
|
50778
|
+
if (isArr) {
|
|
50779
|
+
xs.length = obj.length;
|
|
50780
|
+
for (var i = 0; i < obj.length; i++) {
|
|
50781
|
+
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
|
|
50782
|
+
}
|
|
50783
|
+
}
|
|
50784
|
+
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
50785
|
+
var symMap;
|
|
50786
|
+
if (hasShammedSymbols) {
|
|
50787
|
+
symMap = {};
|
|
50788
|
+
for (var k = 0; k < syms.length; k++) {
|
|
50789
|
+
symMap['$' + syms[k]] = syms[k];
|
|
50790
|
+
}
|
|
50791
|
+
}
|
|
50792
|
+
|
|
50793
|
+
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
|
50794
|
+
if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
50795
|
+
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
50796
|
+
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
50797
|
+
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
|
50798
|
+
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
|
50799
|
+
} else if ($test.call(/[^\w$]/, key)) {
|
|
50800
|
+
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
50801
|
+
} else {
|
|
50802
|
+
xs.push(key + ': ' + inspect(obj[key], obj));
|
|
50803
|
+
}
|
|
50804
|
+
}
|
|
50805
|
+
if (typeof gOPS === 'function') {
|
|
50806
|
+
for (var j = 0; j < syms.length; j++) {
|
|
50807
|
+
if (isEnumerable.call(obj, syms[j])) {
|
|
50808
|
+
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
|
50809
|
+
}
|
|
50810
|
+
}
|
|
50811
|
+
}
|
|
50812
|
+
return xs;
|
|
50813
|
+
}
|
|
50814
|
+
return objectInspect;
|
|
50815
|
+
}
|
|
50816
|
+
|
|
50817
|
+
var sideChannelList;
|
|
50818
|
+
var hasRequiredSideChannelList;
|
|
50819
|
+
|
|
50820
|
+
function requireSideChannelList () {
|
|
50821
|
+
if (hasRequiredSideChannelList) return sideChannelList;
|
|
50822
|
+
hasRequiredSideChannelList = 1;
|
|
50823
|
+
|
|
50824
|
+
var inspect = /*@__PURE__*/ requireObjectInspect();
|
|
50825
|
+
|
|
50826
|
+
var $TypeError = /*@__PURE__*/ requireType();
|
|
50827
|
+
|
|
50828
|
+
/*
|
|
50829
|
+
* This function traverses the list returning the node corresponding to the given key.
|
|
50830
|
+
*
|
|
50831
|
+
* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list.
|
|
50832
|
+
* By doing so, all the recently used nodes can be accessed relatively quickly.
|
|
50833
|
+
*/
|
|
50834
|
+
/** @type {import('./list.d.ts').listGetNode} */
|
|
50835
|
+
// eslint-disable-next-line consistent-return
|
|
50836
|
+
var listGetNode = function (list, key, isDelete) {
|
|
50837
|
+
/** @type {typeof list | NonNullable<(typeof list)['next']>} */
|
|
50838
|
+
var prev = list;
|
|
50839
|
+
/** @type {(typeof list)['next']} */
|
|
50840
|
+
var curr;
|
|
50841
|
+
// eslint-disable-next-line eqeqeq
|
|
50842
|
+
for (; (curr = prev.next) != null; prev = curr) {
|
|
50843
|
+
if (curr.key === key) {
|
|
50844
|
+
prev.next = curr.next;
|
|
50845
|
+
if (!isDelete) {
|
|
50846
|
+
// eslint-disable-next-line no-extra-parens
|
|
50847
|
+
curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
|
|
50848
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
|
50849
|
+
}
|
|
50850
|
+
return curr;
|
|
50851
|
+
}
|
|
50852
|
+
}
|
|
50853
|
+
};
|
|
50854
|
+
|
|
50855
|
+
/** @type {import('./list.d.ts').listGet} */
|
|
50856
|
+
var listGet = function (objects, key) {
|
|
50857
|
+
if (!objects) {
|
|
50858
|
+
return void 0;
|
|
50859
|
+
}
|
|
50860
|
+
var node = listGetNode(objects, key);
|
|
50861
|
+
return node && node.value;
|
|
50862
|
+
};
|
|
50863
|
+
/** @type {import('./list.d.ts').listSet} */
|
|
50864
|
+
var listSet = function (objects, key, value) {
|
|
50865
|
+
var node = listGetNode(objects, key);
|
|
50866
|
+
if (node) {
|
|
50867
|
+
node.value = value;
|
|
50868
|
+
} else {
|
|
50869
|
+
// Prepend the new node to the beginning of the list
|
|
50870
|
+
objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
|
|
50871
|
+
key: key,
|
|
50872
|
+
next: objects.next,
|
|
50873
|
+
value: value
|
|
50874
|
+
});
|
|
50875
|
+
}
|
|
50876
|
+
};
|
|
50877
|
+
/** @type {import('./list.d.ts').listHas} */
|
|
50878
|
+
var listHas = function (objects, key) {
|
|
50879
|
+
if (!objects) {
|
|
50880
|
+
return false;
|
|
50881
|
+
}
|
|
50882
|
+
return !!listGetNode(objects, key);
|
|
50883
|
+
};
|
|
50884
|
+
/** @type {import('./list.d.ts').listDelete} */
|
|
50885
|
+
// eslint-disable-next-line consistent-return
|
|
50886
|
+
var listDelete = function (objects, key) {
|
|
50887
|
+
if (objects) {
|
|
50888
|
+
return listGetNode(objects, key, true);
|
|
50889
|
+
}
|
|
50890
|
+
};
|
|
50891
|
+
|
|
50892
|
+
/** @type {import('.')} */
|
|
50893
|
+
sideChannelList = function getSideChannelList() {
|
|
50894
|
+
/** @typedef {ReturnType<typeof getSideChannelList>} Channel */
|
|
50895
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
50896
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
50897
|
+
|
|
50898
|
+
/** @type {import('./list.d.ts').RootNode<V, K> | undefined} */ var $o;
|
|
50899
|
+
|
|
50900
|
+
/** @type {Channel} */
|
|
50901
|
+
var channel = {
|
|
50902
|
+
assert: function (key) {
|
|
50903
|
+
if (!channel.has(key)) {
|
|
50904
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
50905
|
+
}
|
|
50906
|
+
},
|
|
50907
|
+
'delete': function (key) {
|
|
50908
|
+
var root = $o && $o.next;
|
|
50909
|
+
var deletedNode = listDelete($o, key);
|
|
50910
|
+
if (deletedNode && root && root === deletedNode) {
|
|
50911
|
+
$o = void 0;
|
|
50912
|
+
}
|
|
50913
|
+
return !!deletedNode;
|
|
50914
|
+
},
|
|
50915
|
+
get: function (key) {
|
|
50916
|
+
return listGet($o, key);
|
|
50917
|
+
},
|
|
50918
|
+
has: function (key) {
|
|
50919
|
+
return listHas($o, key);
|
|
50920
|
+
},
|
|
50921
|
+
set: function (key, value) {
|
|
50922
|
+
if (!$o) {
|
|
50923
|
+
// Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
|
|
50924
|
+
$o = {
|
|
50925
|
+
next: void 0
|
|
50926
|
+
};
|
|
50927
|
+
}
|
|
50928
|
+
// eslint-disable-next-line no-extra-parens
|
|
50929
|
+
listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
|
|
50930
|
+
}
|
|
50931
|
+
};
|
|
50932
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
50933
|
+
return channel;
|
|
50934
|
+
};
|
|
50935
|
+
return sideChannelList;
|
|
50936
|
+
}
|
|
50937
|
+
|
|
50938
|
+
var esObjectAtoms;
|
|
50939
|
+
var hasRequiredEsObjectAtoms;
|
|
50940
|
+
|
|
50941
|
+
function requireEsObjectAtoms () {
|
|
50942
|
+
if (hasRequiredEsObjectAtoms) return esObjectAtoms;
|
|
50943
|
+
hasRequiredEsObjectAtoms = 1;
|
|
50944
|
+
|
|
50945
|
+
/** @type {import('.')} */
|
|
50946
|
+
esObjectAtoms = Object;
|
|
50947
|
+
return esObjectAtoms;
|
|
50948
|
+
}
|
|
50949
|
+
|
|
50200
50950
|
var esErrors;
|
|
50201
50951
|
var hasRequiredEsErrors;
|
|
50202
50952
|
|
|
@@ -50257,18 +51007,6 @@ function requireSyntax () {
|
|
|
50257
51007
|
return syntax;
|
|
50258
51008
|
}
|
|
50259
51009
|
|
|
50260
|
-
var type;
|
|
50261
|
-
var hasRequiredType;
|
|
50262
|
-
|
|
50263
|
-
function requireType () {
|
|
50264
|
-
if (hasRequiredType) return type;
|
|
50265
|
-
hasRequiredType = 1;
|
|
50266
|
-
|
|
50267
|
-
/** @type {import('./type')} */
|
|
50268
|
-
type = TypeError;
|
|
50269
|
-
return type;
|
|
50270
|
-
}
|
|
50271
|
-
|
|
50272
51010
|
var uri;
|
|
50273
51011
|
var hasRequiredUri;
|
|
50274
51012
|
|
|
@@ -50281,6 +51019,168 @@ function requireUri () {
|
|
|
50281
51019
|
return uri;
|
|
50282
51020
|
}
|
|
50283
51021
|
|
|
51022
|
+
var abs;
|
|
51023
|
+
var hasRequiredAbs;
|
|
51024
|
+
|
|
51025
|
+
function requireAbs () {
|
|
51026
|
+
if (hasRequiredAbs) return abs;
|
|
51027
|
+
hasRequiredAbs = 1;
|
|
51028
|
+
|
|
51029
|
+
/** @type {import('./abs')} */
|
|
51030
|
+
abs = Math.abs;
|
|
51031
|
+
return abs;
|
|
51032
|
+
}
|
|
51033
|
+
|
|
51034
|
+
var floor;
|
|
51035
|
+
var hasRequiredFloor;
|
|
51036
|
+
|
|
51037
|
+
function requireFloor () {
|
|
51038
|
+
if (hasRequiredFloor) return floor;
|
|
51039
|
+
hasRequiredFloor = 1;
|
|
51040
|
+
|
|
51041
|
+
/** @type {import('./floor')} */
|
|
51042
|
+
floor = Math.floor;
|
|
51043
|
+
return floor;
|
|
51044
|
+
}
|
|
51045
|
+
|
|
51046
|
+
var max;
|
|
51047
|
+
var hasRequiredMax;
|
|
51048
|
+
|
|
51049
|
+
function requireMax () {
|
|
51050
|
+
if (hasRequiredMax) return max;
|
|
51051
|
+
hasRequiredMax = 1;
|
|
51052
|
+
|
|
51053
|
+
/** @type {import('./max')} */
|
|
51054
|
+
max = Math.max;
|
|
51055
|
+
return max;
|
|
51056
|
+
}
|
|
51057
|
+
|
|
51058
|
+
var min;
|
|
51059
|
+
var hasRequiredMin;
|
|
51060
|
+
|
|
51061
|
+
function requireMin () {
|
|
51062
|
+
if (hasRequiredMin) return min;
|
|
51063
|
+
hasRequiredMin = 1;
|
|
51064
|
+
|
|
51065
|
+
/** @type {import('./min')} */
|
|
51066
|
+
min = Math.min;
|
|
51067
|
+
return min;
|
|
51068
|
+
}
|
|
51069
|
+
|
|
51070
|
+
var pow;
|
|
51071
|
+
var hasRequiredPow;
|
|
51072
|
+
|
|
51073
|
+
function requirePow () {
|
|
51074
|
+
if (hasRequiredPow) return pow;
|
|
51075
|
+
hasRequiredPow = 1;
|
|
51076
|
+
|
|
51077
|
+
/** @type {import('./pow')} */
|
|
51078
|
+
pow = Math.pow;
|
|
51079
|
+
return pow;
|
|
51080
|
+
}
|
|
51081
|
+
|
|
51082
|
+
var round;
|
|
51083
|
+
var hasRequiredRound;
|
|
51084
|
+
|
|
51085
|
+
function requireRound () {
|
|
51086
|
+
if (hasRequiredRound) return round;
|
|
51087
|
+
hasRequiredRound = 1;
|
|
51088
|
+
|
|
51089
|
+
/** @type {import('./round')} */
|
|
51090
|
+
round = Math.round;
|
|
51091
|
+
return round;
|
|
51092
|
+
}
|
|
51093
|
+
|
|
51094
|
+
var _isNaN;
|
|
51095
|
+
var hasRequired_isNaN;
|
|
51096
|
+
|
|
51097
|
+
function require_isNaN () {
|
|
51098
|
+
if (hasRequired_isNaN) return _isNaN;
|
|
51099
|
+
hasRequired_isNaN = 1;
|
|
51100
|
+
|
|
51101
|
+
/** @type {import('./isNaN')} */
|
|
51102
|
+
_isNaN = Number.isNaN || function isNaN(a) {
|
|
51103
|
+
return a !== a;
|
|
51104
|
+
};
|
|
51105
|
+
return _isNaN;
|
|
51106
|
+
}
|
|
51107
|
+
|
|
51108
|
+
var sign;
|
|
51109
|
+
var hasRequiredSign;
|
|
51110
|
+
|
|
51111
|
+
function requireSign () {
|
|
51112
|
+
if (hasRequiredSign) return sign;
|
|
51113
|
+
hasRequiredSign = 1;
|
|
51114
|
+
|
|
51115
|
+
var $isNaN = require_isNaN();
|
|
51116
|
+
|
|
51117
|
+
/** @type {import('./sign')} */
|
|
51118
|
+
sign = function sign(number) {
|
|
51119
|
+
if ($isNaN(number) || number === 0) {
|
|
51120
|
+
return number;
|
|
51121
|
+
}
|
|
51122
|
+
return number < 0 ? -1 : 1;
|
|
51123
|
+
};
|
|
51124
|
+
return sign;
|
|
51125
|
+
}
|
|
51126
|
+
|
|
51127
|
+
var gOPD;
|
|
51128
|
+
var hasRequiredGOPD;
|
|
51129
|
+
|
|
51130
|
+
function requireGOPD () {
|
|
51131
|
+
if (hasRequiredGOPD) return gOPD;
|
|
51132
|
+
hasRequiredGOPD = 1;
|
|
51133
|
+
|
|
51134
|
+
/** @type {import('./gOPD')} */
|
|
51135
|
+
gOPD = Object.getOwnPropertyDescriptor;
|
|
51136
|
+
return gOPD;
|
|
51137
|
+
}
|
|
51138
|
+
|
|
51139
|
+
var gopd;
|
|
51140
|
+
var hasRequiredGopd;
|
|
51141
|
+
|
|
51142
|
+
function requireGopd () {
|
|
51143
|
+
if (hasRequiredGopd) return gopd;
|
|
51144
|
+
hasRequiredGopd = 1;
|
|
51145
|
+
|
|
51146
|
+
/** @type {import('.')} */
|
|
51147
|
+
var $gOPD = requireGOPD();
|
|
51148
|
+
|
|
51149
|
+
if ($gOPD) {
|
|
51150
|
+
try {
|
|
51151
|
+
$gOPD([], 'length');
|
|
51152
|
+
} catch (e) {
|
|
51153
|
+
// IE 8 has a broken gOPD
|
|
51154
|
+
$gOPD = null;
|
|
51155
|
+
}
|
|
51156
|
+
}
|
|
51157
|
+
|
|
51158
|
+
gopd = $gOPD;
|
|
51159
|
+
return gopd;
|
|
51160
|
+
}
|
|
51161
|
+
|
|
51162
|
+
var esDefineProperty;
|
|
51163
|
+
var hasRequiredEsDefineProperty;
|
|
51164
|
+
|
|
51165
|
+
function requireEsDefineProperty () {
|
|
51166
|
+
if (hasRequiredEsDefineProperty) return esDefineProperty;
|
|
51167
|
+
hasRequiredEsDefineProperty = 1;
|
|
51168
|
+
|
|
51169
|
+
/** @type {import('.')} */
|
|
51170
|
+
var $defineProperty = Object.defineProperty || false;
|
|
51171
|
+
if ($defineProperty) {
|
|
51172
|
+
try {
|
|
51173
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
51174
|
+
} catch (e) {
|
|
51175
|
+
// IE 8 has a broken defineProperty
|
|
51176
|
+
$defineProperty = false;
|
|
51177
|
+
}
|
|
51178
|
+
}
|
|
51179
|
+
|
|
51180
|
+
esDefineProperty = $defineProperty;
|
|
51181
|
+
return esDefineProperty;
|
|
51182
|
+
}
|
|
51183
|
+
|
|
50284
51184
|
var shams;
|
|
50285
51185
|
var hasRequiredShams;
|
|
50286
51186
|
|
|
@@ -50288,11 +51188,13 @@ function requireShams () {
|
|
|
50288
51188
|
if (hasRequiredShams) return shams;
|
|
50289
51189
|
hasRequiredShams = 1;
|
|
50290
51190
|
|
|
51191
|
+
/** @type {import('./shams')} */
|
|
50291
51192
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
50292
51193
|
shams = function hasSymbols() {
|
|
50293
51194
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
50294
51195
|
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
50295
51196
|
|
|
51197
|
+
/** @type {{ [k in symbol]?: unknown }} */
|
|
50296
51198
|
var obj = {};
|
|
50297
51199
|
var sym = Symbol('test');
|
|
50298
51200
|
var symObj = Object(sym);
|
|
@@ -50311,7 +51213,7 @@ function requireShams () {
|
|
|
50311
51213
|
|
|
50312
51214
|
var symVal = 42;
|
|
50313
51215
|
obj[sym] = symVal;
|
|
50314
|
-
for (
|
|
51216
|
+
for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
50315
51217
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
50316
51218
|
|
|
50317
51219
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
@@ -50322,7 +51224,8 @@ function requireShams () {
|
|
|
50322
51224
|
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
50323
51225
|
|
|
50324
51226
|
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
50325
|
-
|
|
51227
|
+
// eslint-disable-next-line no-extra-parens
|
|
51228
|
+
var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
|
|
50326
51229
|
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
50327
51230
|
}
|
|
50328
51231
|
|
|
@@ -50341,6 +51244,7 @@ function requireHasSymbols () {
|
|
|
50341
51244
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
50342
51245
|
var hasSymbolSham = requireShams();
|
|
50343
51246
|
|
|
51247
|
+
/** @type {import('.')} */
|
|
50344
51248
|
hasSymbols = function hasNativeSymbols() {
|
|
50345
51249
|
if (typeof origSymbol !== 'function') { return false; }
|
|
50346
51250
|
if (typeof Symbol !== 'function') { return false; }
|
|
@@ -50352,27 +51256,30 @@ function requireHasSymbols () {
|
|
|
50352
51256
|
return hasSymbols;
|
|
50353
51257
|
}
|
|
50354
51258
|
|
|
50355
|
-
var
|
|
50356
|
-
var
|
|
51259
|
+
var Reflect_getPrototypeOf;
|
|
51260
|
+
var hasRequiredReflect_getPrototypeOf;
|
|
50357
51261
|
|
|
50358
|
-
function
|
|
50359
|
-
if (
|
|
50360
|
-
|
|
51262
|
+
function requireReflect_getPrototypeOf () {
|
|
51263
|
+
if (hasRequiredReflect_getPrototypeOf) return Reflect_getPrototypeOf;
|
|
51264
|
+
hasRequiredReflect_getPrototypeOf = 1;
|
|
50361
51265
|
|
|
50362
|
-
|
|
50363
|
-
|
|
50364
|
-
|
|
50365
|
-
|
|
51266
|
+
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
51267
|
+
Reflect_getPrototypeOf = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
51268
|
+
return Reflect_getPrototypeOf;
|
|
51269
|
+
}
|
|
50366
51270
|
|
|
50367
|
-
|
|
51271
|
+
var Object_getPrototypeOf;
|
|
51272
|
+
var hasRequiredObject_getPrototypeOf;
|
|
50368
51273
|
|
|
50369
|
-
|
|
50370
|
-
|
|
50371
|
-
|
|
50372
|
-
|
|
50373
|
-
|
|
50374
|
-
|
|
50375
|
-
|
|
51274
|
+
function requireObject_getPrototypeOf () {
|
|
51275
|
+
if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
|
|
51276
|
+
hasRequiredObject_getPrototypeOf = 1;
|
|
51277
|
+
|
|
51278
|
+
var $Object = /*@__PURE__*/ requireEsObjectAtoms();
|
|
51279
|
+
|
|
51280
|
+
/** @type {import('./Object.getPrototypeOf')} */
|
|
51281
|
+
Object_getPrototypeOf = $Object.getPrototypeOf || null;
|
|
51282
|
+
return Object_getPrototypeOf;
|
|
50376
51283
|
}
|
|
50377
51284
|
|
|
50378
51285
|
var implementation;
|
|
@@ -50480,1328 +51387,797 @@ function requireFunctionBind () {
|
|
|
50480
51387
|
return functionBind;
|
|
50481
51388
|
}
|
|
50482
51389
|
|
|
50483
|
-
var
|
|
50484
|
-
var
|
|
50485
|
-
|
|
50486
|
-
function requireHasown () {
|
|
50487
|
-
if (hasRequiredHasown) return hasown;
|
|
50488
|
-
hasRequiredHasown = 1;
|
|
50489
|
-
|
|
50490
|
-
var call = Function.prototype.call;
|
|
50491
|
-
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
50492
|
-
var bind = requireFunctionBind();
|
|
50493
|
-
|
|
50494
|
-
/** @type {import('.')} */
|
|
50495
|
-
hasown = bind.call(call, $hasOwn);
|
|
50496
|
-
return hasown;
|
|
50497
|
-
}
|
|
50498
|
-
|
|
50499
|
-
var getIntrinsic;
|
|
50500
|
-
var hasRequiredGetIntrinsic;
|
|
50501
|
-
|
|
50502
|
-
function requireGetIntrinsic () {
|
|
50503
|
-
if (hasRequiredGetIntrinsic) return getIntrinsic;
|
|
50504
|
-
hasRequiredGetIntrinsic = 1;
|
|
50505
|
-
|
|
50506
|
-
var undefined$1;
|
|
50507
|
-
|
|
50508
|
-
var $Error = /*@__PURE__*/ requireEsErrors();
|
|
50509
|
-
var $EvalError = /*@__PURE__*/ require_eval();
|
|
50510
|
-
var $RangeError = /*@__PURE__*/ requireRange();
|
|
50511
|
-
var $ReferenceError = /*@__PURE__*/ requireRef();
|
|
50512
|
-
var $SyntaxError = /*@__PURE__*/ requireSyntax();
|
|
50513
|
-
var $TypeError = /*@__PURE__*/ requireType();
|
|
50514
|
-
var $URIError = /*@__PURE__*/ requireUri();
|
|
50515
|
-
|
|
50516
|
-
var $Function = Function;
|
|
50517
|
-
|
|
50518
|
-
// eslint-disable-next-line consistent-return
|
|
50519
|
-
var getEvalledConstructor = function (expressionSyntax) {
|
|
50520
|
-
try {
|
|
50521
|
-
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
50522
|
-
} catch (e) {}
|
|
50523
|
-
};
|
|
50524
|
-
|
|
50525
|
-
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
50526
|
-
if ($gOPD) {
|
|
50527
|
-
try {
|
|
50528
|
-
$gOPD({}, '');
|
|
50529
|
-
} catch (e) {
|
|
50530
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
50531
|
-
}
|
|
50532
|
-
}
|
|
50533
|
-
|
|
50534
|
-
var throwTypeError = function () {
|
|
50535
|
-
throw new $TypeError();
|
|
50536
|
-
};
|
|
50537
|
-
var ThrowTypeError = $gOPD
|
|
50538
|
-
? (function () {
|
|
50539
|
-
try {
|
|
50540
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
50541
|
-
arguments.callee; // IE 8 does not throw here
|
|
50542
|
-
return throwTypeError;
|
|
50543
|
-
} catch (calleeThrows) {
|
|
50544
|
-
try {
|
|
50545
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
50546
|
-
return $gOPD(arguments, 'callee').get;
|
|
50547
|
-
} catch (gOPDthrows) {
|
|
50548
|
-
return throwTypeError;
|
|
50549
|
-
}
|
|
50550
|
-
}
|
|
50551
|
-
}())
|
|
50552
|
-
: throwTypeError;
|
|
50553
|
-
|
|
50554
|
-
var hasSymbols = requireHasSymbols()();
|
|
50555
|
-
var hasProto = /*@__PURE__*/ requireHasProto()();
|
|
50556
|
-
|
|
50557
|
-
var getProto = Object.getPrototypeOf || (
|
|
50558
|
-
hasProto
|
|
50559
|
-
? function (x) { return x.__proto__; } // eslint-disable-line no-proto
|
|
50560
|
-
: null
|
|
50561
|
-
);
|
|
50562
|
-
|
|
50563
|
-
var needsEval = {};
|
|
50564
|
-
|
|
50565
|
-
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
50566
|
-
|
|
50567
|
-
var INTRINSICS = {
|
|
50568
|
-
__proto__: null,
|
|
50569
|
-
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
50570
|
-
'%Array%': Array,
|
|
50571
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
50572
|
-
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
|
|
50573
|
-
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
50574
|
-
'%AsyncFunction%': needsEval,
|
|
50575
|
-
'%AsyncGenerator%': needsEval,
|
|
50576
|
-
'%AsyncGeneratorFunction%': needsEval,
|
|
50577
|
-
'%AsyncIteratorPrototype%': needsEval,
|
|
50578
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
|
|
50579
|
-
'%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
|
|
50580
|
-
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
|
|
50581
|
-
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
|
|
50582
|
-
'%Boolean%': Boolean,
|
|
50583
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
|
|
50584
|
-
'%Date%': Date,
|
|
50585
|
-
'%decodeURI%': decodeURI,
|
|
50586
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
50587
|
-
'%encodeURI%': encodeURI,
|
|
50588
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
50589
|
-
'%Error%': $Error,
|
|
50590
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
50591
|
-
'%EvalError%': $EvalError,
|
|
50592
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
|
50593
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
|
50594
|
-
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
|
|
50595
|
-
'%Function%': $Function,
|
|
50596
|
-
'%GeneratorFunction%': needsEval,
|
|
50597
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
|
|
50598
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
|
|
50599
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
50600
|
-
'%isFinite%': isFinite,
|
|
50601
|
-
'%isNaN%': isNaN,
|
|
50602
|
-
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
|
|
50603
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
50604
|
-
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
50605
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
|
|
50606
|
-
'%Math%': Math,
|
|
50607
|
-
'%Number%': Number,
|
|
50608
|
-
'%Object%': Object,
|
|
50609
|
-
'%parseFloat%': parseFloat,
|
|
50610
|
-
'%parseInt%': parseInt,
|
|
50611
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
|
|
50612
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
|
|
50613
|
-
'%RangeError%': $RangeError,
|
|
50614
|
-
'%ReferenceError%': $ReferenceError,
|
|
50615
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
50616
|
-
'%RegExp%': RegExp,
|
|
50617
|
-
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
50618
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
|
|
50619
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
50620
|
-
'%String%': String,
|
|
50621
|
-
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
|
|
50622
|
-
'%Symbol%': hasSymbols ? Symbol : undefined$1,
|
|
50623
|
-
'%SyntaxError%': $SyntaxError,
|
|
50624
|
-
'%ThrowTypeError%': ThrowTypeError,
|
|
50625
|
-
'%TypedArray%': TypedArray,
|
|
50626
|
-
'%TypeError%': $TypeError,
|
|
50627
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
50628
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
50629
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
50630
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
|
|
50631
|
-
'%URIError%': $URIError,
|
|
50632
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
|
50633
|
-
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
|
|
50634
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
|
|
50635
|
-
};
|
|
50636
|
-
|
|
50637
|
-
if (getProto) {
|
|
50638
|
-
try {
|
|
50639
|
-
null.error; // eslint-disable-line no-unused-expressions
|
|
50640
|
-
} catch (e) {
|
|
50641
|
-
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
50642
|
-
var errorProto = getProto(getProto(e));
|
|
50643
|
-
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
50644
|
-
}
|
|
50645
|
-
}
|
|
50646
|
-
|
|
50647
|
-
var doEval = function doEval(name) {
|
|
50648
|
-
var value;
|
|
50649
|
-
if (name === '%AsyncFunction%') {
|
|
50650
|
-
value = getEvalledConstructor('async function () {}');
|
|
50651
|
-
} else if (name === '%GeneratorFunction%') {
|
|
50652
|
-
value = getEvalledConstructor('function* () {}');
|
|
50653
|
-
} else if (name === '%AsyncGeneratorFunction%') {
|
|
50654
|
-
value = getEvalledConstructor('async function* () {}');
|
|
50655
|
-
} else if (name === '%AsyncGenerator%') {
|
|
50656
|
-
var fn = doEval('%AsyncGeneratorFunction%');
|
|
50657
|
-
if (fn) {
|
|
50658
|
-
value = fn.prototype;
|
|
50659
|
-
}
|
|
50660
|
-
} else if (name === '%AsyncIteratorPrototype%') {
|
|
50661
|
-
var gen = doEval('%AsyncGenerator%');
|
|
50662
|
-
if (gen && getProto) {
|
|
50663
|
-
value = getProto(gen.prototype);
|
|
50664
|
-
}
|
|
50665
|
-
}
|
|
50666
|
-
|
|
50667
|
-
INTRINSICS[name] = value;
|
|
50668
|
-
|
|
50669
|
-
return value;
|
|
50670
|
-
};
|
|
50671
|
-
|
|
50672
|
-
var LEGACY_ALIASES = {
|
|
50673
|
-
__proto__: null,
|
|
50674
|
-
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
50675
|
-
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
50676
|
-
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
50677
|
-
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
50678
|
-
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
50679
|
-
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
50680
|
-
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
50681
|
-
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
50682
|
-
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
50683
|
-
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
50684
|
-
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
50685
|
-
'%DatePrototype%': ['Date', 'prototype'],
|
|
50686
|
-
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
50687
|
-
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
50688
|
-
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
50689
|
-
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
50690
|
-
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
50691
|
-
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
50692
|
-
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
50693
|
-
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
50694
|
-
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
50695
|
-
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
50696
|
-
'%JSONParse%': ['JSON', 'parse'],
|
|
50697
|
-
'%JSONStringify%': ['JSON', 'stringify'],
|
|
50698
|
-
'%MapPrototype%': ['Map', 'prototype'],
|
|
50699
|
-
'%NumberPrototype%': ['Number', 'prototype'],
|
|
50700
|
-
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
50701
|
-
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
50702
|
-
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
50703
|
-
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
50704
|
-
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
50705
|
-
'%Promise_all%': ['Promise', 'all'],
|
|
50706
|
-
'%Promise_reject%': ['Promise', 'reject'],
|
|
50707
|
-
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
50708
|
-
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
50709
|
-
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
50710
|
-
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
50711
|
-
'%SetPrototype%': ['Set', 'prototype'],
|
|
50712
|
-
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
50713
|
-
'%StringPrototype%': ['String', 'prototype'],
|
|
50714
|
-
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
50715
|
-
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
50716
|
-
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
50717
|
-
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
50718
|
-
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
50719
|
-
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
50720
|
-
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
50721
|
-
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
50722
|
-
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
50723
|
-
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
50724
|
-
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
50725
|
-
};
|
|
50726
|
-
|
|
50727
|
-
var bind = requireFunctionBind();
|
|
50728
|
-
var hasOwn = /*@__PURE__*/ requireHasown();
|
|
50729
|
-
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
50730
|
-
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
50731
|
-
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
50732
|
-
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
50733
|
-
var $exec = bind.call(Function.call, RegExp.prototype.exec);
|
|
50734
|
-
|
|
50735
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
50736
|
-
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
50737
|
-
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
50738
|
-
var stringToPath = function stringToPath(string) {
|
|
50739
|
-
var first = $strSlice(string, 0, 1);
|
|
50740
|
-
var last = $strSlice(string, -1);
|
|
50741
|
-
if (first === '%' && last !== '%') {
|
|
50742
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
50743
|
-
} else if (last === '%' && first !== '%') {
|
|
50744
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
50745
|
-
}
|
|
50746
|
-
var result = [];
|
|
50747
|
-
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
50748
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
50749
|
-
});
|
|
50750
|
-
return result;
|
|
50751
|
-
};
|
|
50752
|
-
/* end adaptation */
|
|
50753
|
-
|
|
50754
|
-
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
50755
|
-
var intrinsicName = name;
|
|
50756
|
-
var alias;
|
|
50757
|
-
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
50758
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
50759
|
-
intrinsicName = '%' + alias[0] + '%';
|
|
50760
|
-
}
|
|
50761
|
-
|
|
50762
|
-
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
50763
|
-
var value = INTRINSICS[intrinsicName];
|
|
50764
|
-
if (value === needsEval) {
|
|
50765
|
-
value = doEval(intrinsicName);
|
|
50766
|
-
}
|
|
50767
|
-
if (typeof value === 'undefined' && !allowMissing) {
|
|
50768
|
-
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
50769
|
-
}
|
|
50770
|
-
|
|
50771
|
-
return {
|
|
50772
|
-
alias: alias,
|
|
50773
|
-
name: intrinsicName,
|
|
50774
|
-
value: value
|
|
50775
|
-
};
|
|
50776
|
-
}
|
|
50777
|
-
|
|
50778
|
-
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
50779
|
-
};
|
|
50780
|
-
|
|
50781
|
-
getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
50782
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
50783
|
-
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
50784
|
-
}
|
|
50785
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
50786
|
-
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
50787
|
-
}
|
|
50788
|
-
|
|
50789
|
-
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
50790
|
-
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
50791
|
-
}
|
|
50792
|
-
var parts = stringToPath(name);
|
|
50793
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
50794
|
-
|
|
50795
|
-
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
50796
|
-
var intrinsicRealName = intrinsic.name;
|
|
50797
|
-
var value = intrinsic.value;
|
|
50798
|
-
var skipFurtherCaching = false;
|
|
50799
|
-
|
|
50800
|
-
var alias = intrinsic.alias;
|
|
50801
|
-
if (alias) {
|
|
50802
|
-
intrinsicBaseName = alias[0];
|
|
50803
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
50804
|
-
}
|
|
50805
|
-
|
|
50806
|
-
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
50807
|
-
var part = parts[i];
|
|
50808
|
-
var first = $strSlice(part, 0, 1);
|
|
50809
|
-
var last = $strSlice(part, -1);
|
|
50810
|
-
if (
|
|
50811
|
-
(
|
|
50812
|
-
(first === '"' || first === "'" || first === '`')
|
|
50813
|
-
|| (last === '"' || last === "'" || last === '`')
|
|
50814
|
-
)
|
|
50815
|
-
&& first !== last
|
|
50816
|
-
) {
|
|
50817
|
-
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
50818
|
-
}
|
|
50819
|
-
if (part === 'constructor' || !isOwn) {
|
|
50820
|
-
skipFurtherCaching = true;
|
|
50821
|
-
}
|
|
50822
|
-
|
|
50823
|
-
intrinsicBaseName += '.' + part;
|
|
50824
|
-
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
50825
|
-
|
|
50826
|
-
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
50827
|
-
value = INTRINSICS[intrinsicRealName];
|
|
50828
|
-
} else if (value != null) {
|
|
50829
|
-
if (!(part in value)) {
|
|
50830
|
-
if (!allowMissing) {
|
|
50831
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
50832
|
-
}
|
|
50833
|
-
return void 0;
|
|
50834
|
-
}
|
|
50835
|
-
if ($gOPD && (i + 1) >= parts.length) {
|
|
50836
|
-
var desc = $gOPD(value, part);
|
|
50837
|
-
isOwn = !!desc;
|
|
50838
|
-
|
|
50839
|
-
// By convention, when a data property is converted to an accessor
|
|
50840
|
-
// property to emulate a data property that does not suffer from
|
|
50841
|
-
// the override mistake, that accessor's getter is marked with
|
|
50842
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
50843
|
-
// uphold the illusion by pretending to see that original data
|
|
50844
|
-
// property, i.e., returning the value rather than the getter
|
|
50845
|
-
// itself.
|
|
50846
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
50847
|
-
value = desc.get;
|
|
50848
|
-
} else {
|
|
50849
|
-
value = value[part];
|
|
50850
|
-
}
|
|
50851
|
-
} else {
|
|
50852
|
-
isOwn = hasOwn(value, part);
|
|
50853
|
-
value = value[part];
|
|
50854
|
-
}
|
|
50855
|
-
|
|
50856
|
-
if (isOwn && !skipFurtherCaching) {
|
|
50857
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
50858
|
-
}
|
|
50859
|
-
}
|
|
50860
|
-
}
|
|
50861
|
-
return value;
|
|
50862
|
-
};
|
|
50863
|
-
return getIntrinsic;
|
|
50864
|
-
}
|
|
50865
|
-
|
|
50866
|
-
var callBind = {exports: {}};
|
|
50867
|
-
|
|
50868
|
-
var esDefineProperty;
|
|
50869
|
-
var hasRequiredEsDefineProperty;
|
|
50870
|
-
|
|
50871
|
-
function requireEsDefineProperty () {
|
|
50872
|
-
if (hasRequiredEsDefineProperty) return esDefineProperty;
|
|
50873
|
-
hasRequiredEsDefineProperty = 1;
|
|
50874
|
-
|
|
50875
|
-
var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic();
|
|
51390
|
+
var functionCall;
|
|
51391
|
+
var hasRequiredFunctionCall;
|
|
50876
51392
|
|
|
50877
|
-
|
|
50878
|
-
|
|
50879
|
-
|
|
50880
|
-
try {
|
|
50881
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
50882
|
-
} catch (e) {
|
|
50883
|
-
// IE 8 has a broken defineProperty
|
|
50884
|
-
$defineProperty = false;
|
|
50885
|
-
}
|
|
50886
|
-
}
|
|
51393
|
+
function requireFunctionCall () {
|
|
51394
|
+
if (hasRequiredFunctionCall) return functionCall;
|
|
51395
|
+
hasRequiredFunctionCall = 1;
|
|
50887
51396
|
|
|
50888
|
-
|
|
50889
|
-
|
|
51397
|
+
/** @type {import('./functionCall')} */
|
|
51398
|
+
functionCall = Function.prototype.call;
|
|
51399
|
+
return functionCall;
|
|
50890
51400
|
}
|
|
50891
51401
|
|
|
50892
|
-
var
|
|
50893
|
-
var
|
|
50894
|
-
|
|
50895
|
-
function requireGopd () {
|
|
50896
|
-
if (hasRequiredGopd) return gopd;
|
|
50897
|
-
hasRequiredGopd = 1;
|
|
50898
|
-
|
|
50899
|
-
var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic();
|
|
50900
|
-
|
|
50901
|
-
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
51402
|
+
var functionApply;
|
|
51403
|
+
var hasRequiredFunctionApply;
|
|
50902
51404
|
|
|
50903
|
-
|
|
50904
|
-
|
|
50905
|
-
|
|
50906
|
-
} catch (e) {
|
|
50907
|
-
// IE 8 has a broken gOPD
|
|
50908
|
-
$gOPD = null;
|
|
50909
|
-
}
|
|
50910
|
-
}
|
|
51405
|
+
function requireFunctionApply () {
|
|
51406
|
+
if (hasRequiredFunctionApply) return functionApply;
|
|
51407
|
+
hasRequiredFunctionApply = 1;
|
|
50911
51408
|
|
|
50912
|
-
|
|
50913
|
-
|
|
51409
|
+
/** @type {import('./functionApply')} */
|
|
51410
|
+
functionApply = Function.prototype.apply;
|
|
51411
|
+
return functionApply;
|
|
50914
51412
|
}
|
|
50915
51413
|
|
|
50916
|
-
var
|
|
50917
|
-
var
|
|
51414
|
+
var reflectApply;
|
|
51415
|
+
var hasRequiredReflectApply;
|
|
50918
51416
|
|
|
50919
|
-
function
|
|
50920
|
-
if (
|
|
50921
|
-
|
|
50922
|
-
|
|
50923
|
-
var $defineProperty = /*@__PURE__*/ requireEsDefineProperty();
|
|
51417
|
+
function requireReflectApply () {
|
|
51418
|
+
if (hasRequiredReflectApply) return reflectApply;
|
|
51419
|
+
hasRequiredReflectApply = 1;
|
|
50924
51420
|
|
|
50925
|
-
|
|
50926
|
-
|
|
51421
|
+
/** @type {import('./reflectApply')} */
|
|
51422
|
+
reflectApply = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
51423
|
+
return reflectApply;
|
|
51424
|
+
}
|
|
50927
51425
|
|
|
50928
|
-
|
|
51426
|
+
var actualApply;
|
|
51427
|
+
var hasRequiredActualApply;
|
|
50929
51428
|
|
|
50930
|
-
|
|
50931
|
-
|
|
50932
|
-
|
|
50933
|
-
property,
|
|
50934
|
-
value
|
|
50935
|
-
) {
|
|
50936
|
-
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
50937
|
-
throw new $TypeError('`obj` must be an object or a function`');
|
|
50938
|
-
}
|
|
50939
|
-
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
50940
|
-
throw new $TypeError('`property` must be a string or a symbol`');
|
|
50941
|
-
}
|
|
50942
|
-
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
50943
|
-
throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
|
|
50944
|
-
}
|
|
50945
|
-
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
50946
|
-
throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
|
|
50947
|
-
}
|
|
50948
|
-
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
50949
|
-
throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
|
|
50950
|
-
}
|
|
50951
|
-
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
50952
|
-
throw new $TypeError('`loose`, if provided, must be a boolean');
|
|
50953
|
-
}
|
|
51429
|
+
function requireActualApply () {
|
|
51430
|
+
if (hasRequiredActualApply) return actualApply;
|
|
51431
|
+
hasRequiredActualApply = 1;
|
|
50954
51432
|
|
|
50955
|
-
|
|
50956
|
-
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
50957
|
-
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
50958
|
-
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
51433
|
+
var bind = requireFunctionBind();
|
|
50959
51434
|
|
|
50960
|
-
|
|
50961
|
-
|
|
51435
|
+
var $apply = requireFunctionApply();
|
|
51436
|
+
var $call = requireFunctionCall();
|
|
51437
|
+
var $reflectApply = requireReflectApply();
|
|
50962
51438
|
|
|
50963
|
-
|
|
50964
|
-
|
|
50965
|
-
|
|
50966
|
-
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
50967
|
-
value: value,
|
|
50968
|
-
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
50969
|
-
});
|
|
50970
|
-
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
|
50971
|
-
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
|
50972
|
-
obj[property] = value; // eslint-disable-line no-param-reassign
|
|
50973
|
-
} else {
|
|
50974
|
-
throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
|
50975
|
-
}
|
|
50976
|
-
};
|
|
50977
|
-
return defineDataProperty;
|
|
51439
|
+
/** @type {import('./actualApply')} */
|
|
51440
|
+
actualApply = $reflectApply || bind.call($call, $apply);
|
|
51441
|
+
return actualApply;
|
|
50978
51442
|
}
|
|
50979
51443
|
|
|
50980
|
-
var
|
|
50981
|
-
var
|
|
51444
|
+
var callBindApplyHelpers;
|
|
51445
|
+
var hasRequiredCallBindApplyHelpers;
|
|
50982
51446
|
|
|
50983
|
-
function
|
|
50984
|
-
if (
|
|
50985
|
-
|
|
51447
|
+
function requireCallBindApplyHelpers () {
|
|
51448
|
+
if (hasRequiredCallBindApplyHelpers) return callBindApplyHelpers;
|
|
51449
|
+
hasRequiredCallBindApplyHelpers = 1;
|
|
50986
51450
|
|
|
50987
|
-
var
|
|
51451
|
+
var bind = requireFunctionBind();
|
|
51452
|
+
var $TypeError = /*@__PURE__*/ requireType();
|
|
50988
51453
|
|
|
50989
|
-
var
|
|
50990
|
-
|
|
50991
|
-
};
|
|
51454
|
+
var $call = requireFunctionCall();
|
|
51455
|
+
var $actualApply = requireActualApply();
|
|
50992
51456
|
|
|
50993
|
-
|
|
50994
|
-
|
|
50995
|
-
if (
|
|
50996
|
-
|
|
50997
|
-
}
|
|
50998
|
-
try {
|
|
50999
|
-
return $defineProperty([], 'length', { value: 1 }).length !== 1;
|
|
51000
|
-
} catch (e) {
|
|
51001
|
-
// In Firefox 4-22, defining length on an array throws an exception.
|
|
51002
|
-
return true;
|
|
51457
|
+
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
51458
|
+
callBindApplyHelpers = function callBindBasic(args) {
|
|
51459
|
+
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
51460
|
+
throw new $TypeError('a function is required');
|
|
51003
51461
|
}
|
|
51462
|
+
return $actualApply(bind, $call, args);
|
|
51004
51463
|
};
|
|
51005
|
-
|
|
51006
|
-
hasPropertyDescriptors_1 = hasPropertyDescriptors;
|
|
51007
|
-
return hasPropertyDescriptors_1;
|
|
51464
|
+
return callBindApplyHelpers;
|
|
51008
51465
|
}
|
|
51009
51466
|
|
|
51010
|
-
var
|
|
51011
|
-
var
|
|
51467
|
+
var get;
|
|
51468
|
+
var hasRequiredGet;
|
|
51012
51469
|
|
|
51013
|
-
function
|
|
51014
|
-
if (
|
|
51015
|
-
|
|
51470
|
+
function requireGet () {
|
|
51471
|
+
if (hasRequiredGet) return get;
|
|
51472
|
+
hasRequiredGet = 1;
|
|
51016
51473
|
|
|
51017
|
-
var
|
|
51018
|
-
var define = /*@__PURE__*/ requireDefineDataProperty();
|
|
51019
|
-
var hasDescriptors = /*@__PURE__*/ requireHasPropertyDescriptors()();
|
|
51474
|
+
var callBind = requireCallBindApplyHelpers();
|
|
51020
51475
|
var gOPD = /*@__PURE__*/ requireGopd();
|
|
51021
51476
|
|
|
51022
|
-
var
|
|
51023
|
-
|
|
51024
|
-
|
|
51025
|
-
|
|
51026
|
-
|
|
51027
|
-
if (typeof
|
|
51028
|
-
throw
|
|
51029
|
-
}
|
|
51030
|
-
if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
|
|
51031
|
-
throw new $TypeError('`length` must be a positive 32-bit integer');
|
|
51477
|
+
var hasProtoAccessor;
|
|
51478
|
+
try {
|
|
51479
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
51480
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
51481
|
+
} catch (e) {
|
|
51482
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
51483
|
+
throw e;
|
|
51032
51484
|
}
|
|
51485
|
+
}
|
|
51033
51486
|
|
|
51034
|
-
|
|
51035
|
-
|
|
51036
|
-
var functionLengthIsConfigurable = true;
|
|
51037
|
-
var functionLengthIsWritable = true;
|
|
51038
|
-
if ('length' in fn && gOPD) {
|
|
51039
|
-
var desc = gOPD(fn, 'length');
|
|
51040
|
-
if (desc && !desc.configurable) {
|
|
51041
|
-
functionLengthIsConfigurable = false;
|
|
51042
|
-
}
|
|
51043
|
-
if (desc && !desc.writable) {
|
|
51044
|
-
functionLengthIsWritable = false;
|
|
51045
|
-
}
|
|
51046
|
-
}
|
|
51487
|
+
// eslint-disable-next-line no-extra-parens
|
|
51488
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
51047
51489
|
|
|
51048
|
-
|
|
51049
|
-
|
|
51050
|
-
|
|
51051
|
-
|
|
51052
|
-
|
|
51490
|
+
var $Object = Object;
|
|
51491
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
51492
|
+
|
|
51493
|
+
/** @type {import('./get')} */
|
|
51494
|
+
get = desc && typeof desc.get === 'function'
|
|
51495
|
+
? callBind([desc.get])
|
|
51496
|
+
: typeof $getPrototypeOf === 'function'
|
|
51497
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
51498
|
+
// eslint-disable-next-line eqeqeq
|
|
51499
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
51053
51500
|
}
|
|
51054
|
-
|
|
51055
|
-
|
|
51056
|
-
};
|
|
51057
|
-
return setFunctionLength;
|
|
51501
|
+
: false;
|
|
51502
|
+
return get;
|
|
51058
51503
|
}
|
|
51059
51504
|
|
|
51060
|
-
var
|
|
51505
|
+
var getProto;
|
|
51506
|
+
var hasRequiredGetProto;
|
|
51061
51507
|
|
|
51062
|
-
function
|
|
51063
|
-
if (
|
|
51064
|
-
|
|
51065
|
-
(function (module) {
|
|
51508
|
+
function requireGetProto () {
|
|
51509
|
+
if (hasRequiredGetProto) return getProto;
|
|
51510
|
+
hasRequiredGetProto = 1;
|
|
51066
51511
|
|
|
51067
|
-
|
|
51068
|
-
|
|
51069
|
-
var setFunctionLength = /*@__PURE__*/ requireSetFunctionLength();
|
|
51512
|
+
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
51513
|
+
var originalGetProto = requireObject_getPrototypeOf();
|
|
51070
51514
|
|
|
51071
|
-
|
|
51072
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
51073
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
51074
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
51515
|
+
var getDunderProto = /*@__PURE__*/ requireGet();
|
|
51075
51516
|
|
|
51076
|
-
|
|
51077
|
-
|
|
51078
|
-
|
|
51079
|
-
|
|
51080
|
-
|
|
51081
|
-
|
|
51517
|
+
/** @type {import('.')} */
|
|
51518
|
+
getProto = reflectGetProto
|
|
51519
|
+
? function getProto(O) {
|
|
51520
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
51521
|
+
return reflectGetProto(O);
|
|
51522
|
+
}
|
|
51523
|
+
: originalGetProto
|
|
51524
|
+
? function getProto(O) {
|
|
51525
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
51526
|
+
throw new TypeError('getProto: not an object');
|
|
51527
|
+
}
|
|
51528
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
51529
|
+
return originalGetProto(O);
|
|
51082
51530
|
}
|
|
51083
|
-
|
|
51084
|
-
|
|
51085
|
-
|
|
51086
|
-
|
|
51087
|
-
|
|
51088
|
-
|
|
51089
|
-
|
|
51531
|
+
: getDunderProto
|
|
51532
|
+
? function getProto(O) {
|
|
51533
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
51534
|
+
return getDunderProto(O);
|
|
51535
|
+
}
|
|
51536
|
+
: null;
|
|
51537
|
+
return getProto;
|
|
51538
|
+
}
|
|
51090
51539
|
|
|
51091
|
-
|
|
51092
|
-
|
|
51093
|
-
};
|
|
51540
|
+
var hasown;
|
|
51541
|
+
var hasRequiredHasown;
|
|
51094
51542
|
|
|
51095
|
-
|
|
51096
|
-
|
|
51097
|
-
|
|
51098
|
-
module.exports.apply = applyBind;
|
|
51099
|
-
}
|
|
51100
|
-
} (callBind));
|
|
51101
|
-
return callBind.exports;
|
|
51102
|
-
}
|
|
51543
|
+
function requireHasown () {
|
|
51544
|
+
if (hasRequiredHasown) return hasown;
|
|
51545
|
+
hasRequiredHasown = 1;
|
|
51103
51546
|
|
|
51104
|
-
var
|
|
51105
|
-
var
|
|
51547
|
+
var call = Function.prototype.call;
|
|
51548
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
51549
|
+
var bind = requireFunctionBind();
|
|
51106
51550
|
|
|
51107
|
-
|
|
51108
|
-
|
|
51109
|
-
|
|
51551
|
+
/** @type {import('.')} */
|
|
51552
|
+
hasown = bind.call(call, $hasOwn);
|
|
51553
|
+
return hasown;
|
|
51554
|
+
}
|
|
51110
51555
|
|
|
51111
|
-
|
|
51556
|
+
var getIntrinsic;
|
|
51557
|
+
var hasRequiredGetIntrinsic;
|
|
51112
51558
|
|
|
51113
|
-
|
|
51559
|
+
function requireGetIntrinsic () {
|
|
51560
|
+
if (hasRequiredGetIntrinsic) return getIntrinsic;
|
|
51561
|
+
hasRequiredGetIntrinsic = 1;
|
|
51114
51562
|
|
|
51115
|
-
var $
|
|
51563
|
+
var undefined$1;
|
|
51116
51564
|
|
|
51117
|
-
|
|
51118
|
-
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
51119
|
-
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
51120
|
-
return callBind(intrinsic);
|
|
51121
|
-
}
|
|
51122
|
-
return intrinsic;
|
|
51123
|
-
};
|
|
51124
|
-
return callBound;
|
|
51125
|
-
}
|
|
51565
|
+
var $Object = /*@__PURE__*/ requireEsObjectAtoms();
|
|
51126
51566
|
|
|
51127
|
-
var
|
|
51128
|
-
var
|
|
51567
|
+
var $Error = /*@__PURE__*/ requireEsErrors();
|
|
51568
|
+
var $EvalError = /*@__PURE__*/ require_eval();
|
|
51569
|
+
var $RangeError = /*@__PURE__*/ requireRange();
|
|
51570
|
+
var $ReferenceError = /*@__PURE__*/ requireRef();
|
|
51571
|
+
var $SyntaxError = /*@__PURE__*/ requireSyntax();
|
|
51572
|
+
var $TypeError = /*@__PURE__*/ requireType();
|
|
51573
|
+
var $URIError = /*@__PURE__*/ requireUri();
|
|
51129
51574
|
|
|
51130
|
-
|
|
51131
|
-
|
|
51132
|
-
|
|
51133
|
-
|
|
51134
|
-
|
|
51135
|
-
|
|
51575
|
+
var abs = /*@__PURE__*/ requireAbs();
|
|
51576
|
+
var floor = /*@__PURE__*/ requireFloor();
|
|
51577
|
+
var max = /*@__PURE__*/ requireMax();
|
|
51578
|
+
var min = /*@__PURE__*/ requireMin();
|
|
51579
|
+
var pow = /*@__PURE__*/ requirePow();
|
|
51580
|
+
var round = /*@__PURE__*/ requireRound();
|
|
51581
|
+
var sign = /*@__PURE__*/ requireSign();
|
|
51136
51582
|
|
|
51137
|
-
var
|
|
51138
|
-
var hasRequiredObjectInspect;
|
|
51583
|
+
var $Function = Function;
|
|
51139
51584
|
|
|
51140
|
-
|
|
51141
|
-
|
|
51142
|
-
|
|
51143
|
-
|
|
51144
|
-
|
|
51145
|
-
|
|
51146
|
-
var mapForEach = hasMap && Map.prototype.forEach;
|
|
51147
|
-
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
51148
|
-
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
51149
|
-
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
51150
|
-
var setForEach = hasSet && Set.prototype.forEach;
|
|
51151
|
-
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
51152
|
-
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
51153
|
-
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
51154
|
-
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
51155
|
-
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
51156
|
-
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
51157
|
-
var booleanValueOf = Boolean.prototype.valueOf;
|
|
51158
|
-
var objectToString = Object.prototype.toString;
|
|
51159
|
-
var functionToString = Function.prototype.toString;
|
|
51160
|
-
var $match = String.prototype.match;
|
|
51161
|
-
var $slice = String.prototype.slice;
|
|
51162
|
-
var $replace = String.prototype.replace;
|
|
51163
|
-
var $toUpperCase = String.prototype.toUpperCase;
|
|
51164
|
-
var $toLowerCase = String.prototype.toLowerCase;
|
|
51165
|
-
var $test = RegExp.prototype.test;
|
|
51166
|
-
var $concat = Array.prototype.concat;
|
|
51167
|
-
var $join = Array.prototype.join;
|
|
51168
|
-
var $arrSlice = Array.prototype.slice;
|
|
51169
|
-
var $floor = Math.floor;
|
|
51170
|
-
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
51171
|
-
var gOPS = Object.getOwnPropertySymbols;
|
|
51172
|
-
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
51173
|
-
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
|
51174
|
-
// ie, `has-tostringtag/shams
|
|
51175
|
-
var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
|
|
51176
|
-
? Symbol.toStringTag
|
|
51177
|
-
: null;
|
|
51178
|
-
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
51585
|
+
// eslint-disable-next-line consistent-return
|
|
51586
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
51587
|
+
try {
|
|
51588
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
51589
|
+
} catch (e) {}
|
|
51590
|
+
};
|
|
51179
51591
|
|
|
51180
|
-
var
|
|
51181
|
-
|
|
51182
|
-
? function (O) {
|
|
51183
|
-
return O.__proto__; // eslint-disable-line no-proto
|
|
51184
|
-
}
|
|
51185
|
-
: null
|
|
51186
|
-
);
|
|
51592
|
+
var $gOPD = /*@__PURE__*/ requireGopd();
|
|
51593
|
+
var $defineProperty = /*@__PURE__*/ requireEsDefineProperty();
|
|
51187
51594
|
|
|
51188
|
-
function
|
|
51189
|
-
|
|
51190
|
-
|
|
51191
|
-
|
|
51192
|
-
|
|
51193
|
-
|
|
51194
|
-
|
|
51195
|
-
|
|
51196
|
-
|
|
51197
|
-
|
|
51198
|
-
|
|
51199
|
-
|
|
51200
|
-
|
|
51201
|
-
|
|
51202
|
-
|
|
51203
|
-
|
|
51204
|
-
|
|
51205
|
-
|
|
51206
|
-
|
|
51207
|
-
return $replace.call(str, sepRegex, '$&_');
|
|
51208
|
-
}
|
|
51595
|
+
var throwTypeError = function () {
|
|
51596
|
+
throw new $TypeError();
|
|
51597
|
+
};
|
|
51598
|
+
var ThrowTypeError = $gOPD
|
|
51599
|
+
? (function () {
|
|
51600
|
+
try {
|
|
51601
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
51602
|
+
arguments.callee; // IE 8 does not throw here
|
|
51603
|
+
return throwTypeError;
|
|
51604
|
+
} catch (calleeThrows) {
|
|
51605
|
+
try {
|
|
51606
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
51607
|
+
return $gOPD(arguments, 'callee').get;
|
|
51608
|
+
} catch (gOPDthrows) {
|
|
51609
|
+
return throwTypeError;
|
|
51610
|
+
}
|
|
51611
|
+
}
|
|
51612
|
+
}())
|
|
51613
|
+
: throwTypeError;
|
|
51209
51614
|
|
|
51210
|
-
var
|
|
51211
|
-
var inspectCustom = utilInspect.custom;
|
|
51212
|
-
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
51615
|
+
var hasSymbols = requireHasSymbols()();
|
|
51213
51616
|
|
|
51214
|
-
|
|
51215
|
-
|
|
51617
|
+
var getProto = requireGetProto();
|
|
51618
|
+
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
51619
|
+
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
51216
51620
|
|
|
51217
|
-
|
|
51218
|
-
|
|
51219
|
-
}
|
|
51220
|
-
if (
|
|
51221
|
-
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
51222
|
-
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
51223
|
-
: opts.maxStringLength !== null
|
|
51224
|
-
)
|
|
51225
|
-
) {
|
|
51226
|
-
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
51227
|
-
}
|
|
51228
|
-
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
51229
|
-
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
51230
|
-
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
51231
|
-
}
|
|
51621
|
+
var $apply = requireFunctionApply();
|
|
51622
|
+
var $call = requireFunctionCall();
|
|
51232
51623
|
|
|
51233
|
-
|
|
51234
|
-
has(opts, 'indent')
|
|
51235
|
-
&& opts.indent !== null
|
|
51236
|
-
&& opts.indent !== '\t'
|
|
51237
|
-
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
51238
|
-
) {
|
|
51239
|
-
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
51240
|
-
}
|
|
51241
|
-
if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
|
51242
|
-
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
51243
|
-
}
|
|
51244
|
-
var numericSeparator = opts.numericSeparator;
|
|
51624
|
+
var needsEval = {};
|
|
51245
51625
|
|
|
51246
|
-
|
|
51247
|
-
return 'undefined';
|
|
51248
|
-
}
|
|
51249
|
-
if (obj === null) {
|
|
51250
|
-
return 'null';
|
|
51251
|
-
}
|
|
51252
|
-
if (typeof obj === 'boolean') {
|
|
51253
|
-
return obj ? 'true' : 'false';
|
|
51254
|
-
}
|
|
51626
|
+
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
51255
51627
|
|
|
51256
|
-
|
|
51257
|
-
|
|
51258
|
-
|
|
51259
|
-
|
|
51260
|
-
|
|
51261
|
-
|
|
51262
|
-
|
|
51263
|
-
|
|
51264
|
-
|
|
51265
|
-
|
|
51266
|
-
|
|
51267
|
-
|
|
51268
|
-
|
|
51269
|
-
|
|
51628
|
+
var INTRINSICS = {
|
|
51629
|
+
__proto__: null,
|
|
51630
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
51631
|
+
'%Array%': Array,
|
|
51632
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
51633
|
+
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
|
|
51634
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
51635
|
+
'%AsyncFunction%': needsEval,
|
|
51636
|
+
'%AsyncGenerator%': needsEval,
|
|
51637
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
51638
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
51639
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
|
|
51640
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
|
|
51641
|
+
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
|
|
51642
|
+
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
|
|
51643
|
+
'%Boolean%': Boolean,
|
|
51644
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
|
|
51645
|
+
'%Date%': Date,
|
|
51646
|
+
'%decodeURI%': decodeURI,
|
|
51647
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
51648
|
+
'%encodeURI%': encodeURI,
|
|
51649
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
51650
|
+
'%Error%': $Error,
|
|
51651
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
51652
|
+
'%EvalError%': $EvalError,
|
|
51653
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
|
51654
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
|
51655
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
|
|
51656
|
+
'%Function%': $Function,
|
|
51657
|
+
'%GeneratorFunction%': needsEval,
|
|
51658
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
|
|
51659
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
|
|
51660
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
51661
|
+
'%isFinite%': isFinite,
|
|
51662
|
+
'%isNaN%': isNaN,
|
|
51663
|
+
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
|
|
51664
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
51665
|
+
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
51666
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
|
|
51667
|
+
'%Math%': Math,
|
|
51668
|
+
'%Number%': Number,
|
|
51669
|
+
'%Object%': $Object,
|
|
51670
|
+
'%Object.getOwnPropertyDescriptor%': $gOPD,
|
|
51671
|
+
'%parseFloat%': parseFloat,
|
|
51672
|
+
'%parseInt%': parseInt,
|
|
51673
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
|
|
51674
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
|
|
51675
|
+
'%RangeError%': $RangeError,
|
|
51676
|
+
'%ReferenceError%': $ReferenceError,
|
|
51677
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
51678
|
+
'%RegExp%': RegExp,
|
|
51679
|
+
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
51680
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
|
|
51681
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
51682
|
+
'%String%': String,
|
|
51683
|
+
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
|
|
51684
|
+
'%Symbol%': hasSymbols ? Symbol : undefined$1,
|
|
51685
|
+
'%SyntaxError%': $SyntaxError,
|
|
51686
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
51687
|
+
'%TypedArray%': TypedArray,
|
|
51688
|
+
'%TypeError%': $TypeError,
|
|
51689
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
51690
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
51691
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
51692
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
|
|
51693
|
+
'%URIError%': $URIError,
|
|
51694
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
|
51695
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
|
|
51696
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
|
|
51697
|
+
|
|
51698
|
+
'%Function.prototype.call%': $call,
|
|
51699
|
+
'%Function.prototype.apply%': $apply,
|
|
51700
|
+
'%Object.defineProperty%': $defineProperty,
|
|
51701
|
+
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
51702
|
+
'%Math.abs%': abs,
|
|
51703
|
+
'%Math.floor%': floor,
|
|
51704
|
+
'%Math.max%': max,
|
|
51705
|
+
'%Math.min%': min,
|
|
51706
|
+
'%Math.pow%': pow,
|
|
51707
|
+
'%Math.round%': round,
|
|
51708
|
+
'%Math.sign%': sign,
|
|
51709
|
+
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
51710
|
+
};
|
|
51270
51711
|
|
|
51271
|
-
|
|
51272
|
-
|
|
51273
|
-
|
|
51274
|
-
|
|
51275
|
-
|
|
51712
|
+
if (getProto) {
|
|
51713
|
+
try {
|
|
51714
|
+
null.error; // eslint-disable-line no-unused-expressions
|
|
51715
|
+
} catch (e) {
|
|
51716
|
+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
51717
|
+
var errorProto = getProto(getProto(e));
|
|
51718
|
+
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
51719
|
+
}
|
|
51720
|
+
}
|
|
51276
51721
|
|
|
51277
|
-
|
|
51722
|
+
var doEval = function doEval(name) {
|
|
51723
|
+
var value;
|
|
51724
|
+
if (name === '%AsyncFunction%') {
|
|
51725
|
+
value = getEvalledConstructor('async function () {}');
|
|
51726
|
+
} else if (name === '%GeneratorFunction%') {
|
|
51727
|
+
value = getEvalledConstructor('function* () {}');
|
|
51728
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
51729
|
+
value = getEvalledConstructor('async function* () {}');
|
|
51730
|
+
} else if (name === '%AsyncGenerator%') {
|
|
51731
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
51732
|
+
if (fn) {
|
|
51733
|
+
value = fn.prototype;
|
|
51734
|
+
}
|
|
51735
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
51736
|
+
var gen = doEval('%AsyncGenerator%');
|
|
51737
|
+
if (gen && getProto) {
|
|
51738
|
+
value = getProto(gen.prototype);
|
|
51739
|
+
}
|
|
51740
|
+
}
|
|
51278
51741
|
|
|
51279
|
-
|
|
51280
|
-
seen = [];
|
|
51281
|
-
} else if (indexOf(seen, obj) >= 0) {
|
|
51282
|
-
return '[Circular]';
|
|
51283
|
-
}
|
|
51742
|
+
INTRINSICS[name] = value;
|
|
51284
51743
|
|
|
51285
|
-
|
|
51286
|
-
|
|
51287
|
-
seen = $arrSlice.call(seen);
|
|
51288
|
-
seen.push(from);
|
|
51289
|
-
}
|
|
51290
|
-
if (noIndent) {
|
|
51291
|
-
var newOpts = {
|
|
51292
|
-
depth: opts.depth
|
|
51293
|
-
};
|
|
51294
|
-
if (has(opts, 'quoteStyle')) {
|
|
51295
|
-
newOpts.quoteStyle = opts.quoteStyle;
|
|
51296
|
-
}
|
|
51297
|
-
return inspect_(value, newOpts, depth + 1, seen);
|
|
51298
|
-
}
|
|
51299
|
-
return inspect_(value, opts, depth + 1, seen);
|
|
51300
|
-
}
|
|
51744
|
+
return value;
|
|
51745
|
+
};
|
|
51301
51746
|
|
|
51302
|
-
|
|
51303
|
-
|
|
51304
|
-
|
|
51305
|
-
|
|
51306
|
-
|
|
51307
|
-
|
|
51308
|
-
|
|
51309
|
-
|
|
51310
|
-
|
|
51311
|
-
|
|
51312
|
-
|
|
51313
|
-
|
|
51314
|
-
|
|
51315
|
-
|
|
51316
|
-
|
|
51317
|
-
|
|
51318
|
-
|
|
51319
|
-
|
|
51320
|
-
|
|
51321
|
-
|
|
51322
|
-
|
|
51323
|
-
|
|
51324
|
-
|
|
51325
|
-
|
|
51326
|
-
|
|
51327
|
-
|
|
51328
|
-
|
|
51329
|
-
|
|
51330
|
-
|
|
51331
|
-
|
|
51332
|
-
|
|
51333
|
-
|
|
51334
|
-
|
|
51335
|
-
|
|
51336
|
-
|
|
51337
|
-
|
|
51338
|
-
|
|
51339
|
-
|
|
51340
|
-
|
|
51341
|
-
|
|
51342
|
-
|
|
51343
|
-
|
|
51344
|
-
|
|
51345
|
-
|
|
51346
|
-
|
|
51347
|
-
|
|
51348
|
-
|
|
51349
|
-
|
|
51350
|
-
|
|
51351
|
-
|
|
51352
|
-
|
|
51353
|
-
|
|
51354
|
-
|
|
51355
|
-
var setParts = [];
|
|
51356
|
-
if (setForEach) {
|
|
51357
|
-
setForEach.call(obj, function (value) {
|
|
51358
|
-
setParts.push(inspect(value, obj));
|
|
51359
|
-
});
|
|
51360
|
-
}
|
|
51361
|
-
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
51362
|
-
}
|
|
51363
|
-
if (isWeakMap(obj)) {
|
|
51364
|
-
return weakCollectionOf('WeakMap');
|
|
51365
|
-
}
|
|
51366
|
-
if (isWeakSet(obj)) {
|
|
51367
|
-
return weakCollectionOf('WeakSet');
|
|
51368
|
-
}
|
|
51369
|
-
if (isWeakRef(obj)) {
|
|
51370
|
-
return weakCollectionOf('WeakRef');
|
|
51371
|
-
}
|
|
51372
|
-
if (isNumber(obj)) {
|
|
51373
|
-
return markBoxed(inspect(Number(obj)));
|
|
51374
|
-
}
|
|
51375
|
-
if (isBigInt(obj)) {
|
|
51376
|
-
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
51377
|
-
}
|
|
51378
|
-
if (isBoolean(obj)) {
|
|
51379
|
-
return markBoxed(booleanValueOf.call(obj));
|
|
51380
|
-
}
|
|
51381
|
-
if (isString(obj)) {
|
|
51382
|
-
return markBoxed(inspect(String(obj)));
|
|
51383
|
-
}
|
|
51384
|
-
// note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
|
|
51385
|
-
/* eslint-env browser */
|
|
51386
|
-
if (typeof window !== 'undefined' && obj === window) {
|
|
51387
|
-
return '{ [object Window] }';
|
|
51388
|
-
}
|
|
51389
|
-
if (
|
|
51390
|
-
(typeof globalThis !== 'undefined' && obj === globalThis)
|
|
51391
|
-
|| (typeof commonjsGlobal !== 'undefined' && obj === commonjsGlobal)
|
|
51392
|
-
) {
|
|
51393
|
-
return '{ [object globalThis] }';
|
|
51394
|
-
}
|
|
51395
|
-
if (!isDate(obj) && !isRegExp(obj)) {
|
|
51396
|
-
var ys = arrObjKeys(obj, inspect);
|
|
51397
|
-
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
51398
|
-
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
51399
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
|
|
51400
|
-
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
51401
|
-
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
|
51402
|
-
if (ys.length === 0) { return tag + '{}'; }
|
|
51403
|
-
if (indent) {
|
|
51404
|
-
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
51405
|
-
}
|
|
51406
|
-
return tag + '{ ' + $join.call(ys, ', ') + ' }';
|
|
51407
|
-
}
|
|
51408
|
-
return String(obj);
|
|
51747
|
+
var LEGACY_ALIASES = {
|
|
51748
|
+
__proto__: null,
|
|
51749
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
51750
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
51751
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
51752
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
51753
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
51754
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
51755
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
51756
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
51757
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
51758
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
51759
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
51760
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
51761
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
51762
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
51763
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
51764
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
51765
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
51766
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
51767
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
51768
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
51769
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
51770
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
51771
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
51772
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
51773
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
51774
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
51775
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
51776
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
51777
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
51778
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
51779
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
51780
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
51781
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
51782
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
51783
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
51784
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
51785
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
51786
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
51787
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
51788
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
51789
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
51790
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
51791
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
51792
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
51793
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
51794
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
51795
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
51796
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
51797
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
51798
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
51799
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
51409
51800
|
};
|
|
51410
51801
|
|
|
51411
|
-
|
|
51412
|
-
|
|
51413
|
-
|
|
51414
|
-
|
|
51802
|
+
var bind = requireFunctionBind();
|
|
51803
|
+
var hasOwn = /*@__PURE__*/ requireHasown();
|
|
51804
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
51805
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
51806
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
51807
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
51808
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
51415
51809
|
|
|
51416
|
-
|
|
51417
|
-
|
|
51418
|
-
|
|
51810
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
51811
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
51812
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
51813
|
+
var stringToPath = function stringToPath(string) {
|
|
51814
|
+
var first = $strSlice(string, 0, 1);
|
|
51815
|
+
var last = $strSlice(string, -1);
|
|
51816
|
+
if (first === '%' && last !== '%') {
|
|
51817
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
51818
|
+
} else if (last === '%' && first !== '%') {
|
|
51819
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
51820
|
+
}
|
|
51821
|
+
var result = [];
|
|
51822
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
51823
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
51824
|
+
});
|
|
51825
|
+
return result;
|
|
51826
|
+
};
|
|
51827
|
+
/* end adaptation */
|
|
51419
51828
|
|
|
51420
|
-
|
|
51421
|
-
|
|
51422
|
-
|
|
51423
|
-
|
|
51424
|
-
|
|
51425
|
-
|
|
51426
|
-
|
|
51829
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
51830
|
+
var intrinsicName = name;
|
|
51831
|
+
var alias;
|
|
51832
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
51833
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
51834
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
51835
|
+
}
|
|
51427
51836
|
|
|
51428
|
-
|
|
51429
|
-
|
|
51430
|
-
|
|
51431
|
-
|
|
51432
|
-
|
|
51433
|
-
|
|
51434
|
-
|
|
51435
|
-
|
|
51436
|
-
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
51437
|
-
return false;
|
|
51438
|
-
}
|
|
51439
|
-
try {
|
|
51440
|
-
symToString.call(obj);
|
|
51441
|
-
return true;
|
|
51442
|
-
} catch (e) {}
|
|
51443
|
-
return false;
|
|
51444
|
-
}
|
|
51837
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
51838
|
+
var value = INTRINSICS[intrinsicName];
|
|
51839
|
+
if (value === needsEval) {
|
|
51840
|
+
value = doEval(intrinsicName);
|
|
51841
|
+
}
|
|
51842
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
51843
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
51844
|
+
}
|
|
51445
51845
|
|
|
51446
|
-
|
|
51447
|
-
|
|
51448
|
-
|
|
51449
|
-
|
|
51450
|
-
|
|
51451
|
-
|
|
51452
|
-
return true;
|
|
51453
|
-
} catch (e) {}
|
|
51454
|
-
return false;
|
|
51455
|
-
}
|
|
51846
|
+
return {
|
|
51847
|
+
alias: alias,
|
|
51848
|
+
name: intrinsicName,
|
|
51849
|
+
value: value
|
|
51850
|
+
};
|
|
51851
|
+
}
|
|
51456
51852
|
|
|
51457
|
-
|
|
51458
|
-
|
|
51459
|
-
return hasOwn.call(obj, key);
|
|
51460
|
-
}
|
|
51853
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
51854
|
+
};
|
|
51461
51855
|
|
|
51462
|
-
function
|
|
51463
|
-
|
|
51464
|
-
|
|
51856
|
+
getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
51857
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
51858
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
51859
|
+
}
|
|
51860
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
51861
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
51862
|
+
}
|
|
51465
51863
|
|
|
51466
|
-
|
|
51467
|
-
|
|
51468
|
-
|
|
51469
|
-
|
|
51470
|
-
|
|
51471
|
-
}
|
|
51864
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
51865
|
+
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
51866
|
+
}
|
|
51867
|
+
var parts = stringToPath(name);
|
|
51868
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
51472
51869
|
|
|
51473
|
-
|
|
51474
|
-
|
|
51475
|
-
|
|
51476
|
-
|
|
51477
|
-
}
|
|
51478
|
-
return -1;
|
|
51479
|
-
}
|
|
51870
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
51871
|
+
var intrinsicRealName = intrinsic.name;
|
|
51872
|
+
var value = intrinsic.value;
|
|
51873
|
+
var skipFurtherCaching = false;
|
|
51480
51874
|
|
|
51481
|
-
|
|
51482
|
-
|
|
51483
|
-
|
|
51484
|
-
|
|
51485
|
-
|
|
51486
|
-
mapSize.call(x);
|
|
51487
|
-
try {
|
|
51488
|
-
setSize.call(x);
|
|
51489
|
-
} catch (s) {
|
|
51490
|
-
return true;
|
|
51491
|
-
}
|
|
51492
|
-
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
|
51493
|
-
} catch (e) {}
|
|
51494
|
-
return false;
|
|
51495
|
-
}
|
|
51875
|
+
var alias = intrinsic.alias;
|
|
51876
|
+
if (alias) {
|
|
51877
|
+
intrinsicBaseName = alias[0];
|
|
51878
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
51879
|
+
}
|
|
51496
51880
|
|
|
51497
|
-
|
|
51498
|
-
|
|
51499
|
-
|
|
51500
|
-
|
|
51501
|
-
|
|
51502
|
-
|
|
51503
|
-
|
|
51504
|
-
|
|
51505
|
-
|
|
51506
|
-
|
|
51507
|
-
|
|
51508
|
-
|
|
51509
|
-
|
|
51510
|
-
|
|
51511
|
-
|
|
51881
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
51882
|
+
var part = parts[i];
|
|
51883
|
+
var first = $strSlice(part, 0, 1);
|
|
51884
|
+
var last = $strSlice(part, -1);
|
|
51885
|
+
if (
|
|
51886
|
+
(
|
|
51887
|
+
(first === '"' || first === "'" || first === '`')
|
|
51888
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
51889
|
+
)
|
|
51890
|
+
&& first !== last
|
|
51891
|
+
) {
|
|
51892
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
51893
|
+
}
|
|
51894
|
+
if (part === 'constructor' || !isOwn) {
|
|
51895
|
+
skipFurtherCaching = true;
|
|
51896
|
+
}
|
|
51512
51897
|
|
|
51513
|
-
|
|
51514
|
-
|
|
51515
|
-
return false;
|
|
51516
|
-
}
|
|
51517
|
-
try {
|
|
51518
|
-
weakRefDeref.call(x);
|
|
51519
|
-
return true;
|
|
51520
|
-
} catch (e) {}
|
|
51521
|
-
return false;
|
|
51522
|
-
}
|
|
51898
|
+
intrinsicBaseName += '.' + part;
|
|
51899
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
51523
51900
|
|
|
51524
|
-
|
|
51525
|
-
|
|
51526
|
-
|
|
51527
|
-
|
|
51528
|
-
|
|
51529
|
-
|
|
51530
|
-
|
|
51531
|
-
|
|
51532
|
-
|
|
51533
|
-
|
|
51534
|
-
|
|
51535
|
-
|
|
51536
|
-
} catch (e) {}
|
|
51537
|
-
return false;
|
|
51538
|
-
}
|
|
51901
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
51902
|
+
value = INTRINSICS[intrinsicRealName];
|
|
51903
|
+
} else if (value != null) {
|
|
51904
|
+
if (!(part in value)) {
|
|
51905
|
+
if (!allowMissing) {
|
|
51906
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
51907
|
+
}
|
|
51908
|
+
return void 0;
|
|
51909
|
+
}
|
|
51910
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
|
51911
|
+
var desc = $gOPD(value, part);
|
|
51912
|
+
isOwn = !!desc;
|
|
51539
51913
|
|
|
51540
|
-
|
|
51541
|
-
|
|
51542
|
-
|
|
51543
|
-
|
|
51544
|
-
|
|
51545
|
-
|
|
51546
|
-
|
|
51547
|
-
|
|
51548
|
-
|
|
51549
|
-
|
|
51550
|
-
|
|
51551
|
-
|
|
51552
|
-
|
|
51553
|
-
|
|
51554
|
-
|
|
51914
|
+
// By convention, when a data property is converted to an accessor
|
|
51915
|
+
// property to emulate a data property that does not suffer from
|
|
51916
|
+
// the override mistake, that accessor's getter is marked with
|
|
51917
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
51918
|
+
// uphold the illusion by pretending to see that original data
|
|
51919
|
+
// property, i.e., returning the value rather than the getter
|
|
51920
|
+
// itself.
|
|
51921
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
51922
|
+
value = desc.get;
|
|
51923
|
+
} else {
|
|
51924
|
+
value = value[part];
|
|
51925
|
+
}
|
|
51926
|
+
} else {
|
|
51927
|
+
isOwn = hasOwn(value, part);
|
|
51928
|
+
value = value[part];
|
|
51929
|
+
}
|
|
51555
51930
|
|
|
51556
|
-
|
|
51557
|
-
|
|
51558
|
-
|
|
51559
|
-
|
|
51560
|
-
|
|
51561
|
-
|
|
51562
|
-
}
|
|
51931
|
+
if (isOwn && !skipFurtherCaching) {
|
|
51932
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
51933
|
+
}
|
|
51934
|
+
}
|
|
51935
|
+
}
|
|
51936
|
+
return value;
|
|
51937
|
+
};
|
|
51938
|
+
return getIntrinsic;
|
|
51939
|
+
}
|
|
51563
51940
|
|
|
51564
|
-
|
|
51565
|
-
|
|
51566
|
-
var remaining = str.length - opts.maxStringLength;
|
|
51567
|
-
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
51568
|
-
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
51569
|
-
}
|
|
51570
|
-
// eslint-disable-next-line no-control-regex
|
|
51571
|
-
var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
|
51572
|
-
return wrapQuotes(s, 'single', opts);
|
|
51573
|
-
}
|
|
51941
|
+
var callBound;
|
|
51942
|
+
var hasRequiredCallBound;
|
|
51574
51943
|
|
|
51575
|
-
|
|
51576
|
-
|
|
51577
|
-
|
|
51578
|
-
8: 'b',
|
|
51579
|
-
9: 't',
|
|
51580
|
-
10: 'n',
|
|
51581
|
-
12: 'f',
|
|
51582
|
-
13: 'r'
|
|
51583
|
-
}[n];
|
|
51584
|
-
if (x) { return '\\' + x; }
|
|
51585
|
-
return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
|
|
51586
|
-
}
|
|
51944
|
+
function requireCallBound () {
|
|
51945
|
+
if (hasRequiredCallBound) return callBound;
|
|
51946
|
+
hasRequiredCallBound = 1;
|
|
51587
51947
|
|
|
51588
|
-
|
|
51589
|
-
return 'Object(' + str + ')';
|
|
51590
|
-
}
|
|
51948
|
+
var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic();
|
|
51591
51949
|
|
|
51592
|
-
|
|
51593
|
-
return type + ' { ? }';
|
|
51594
|
-
}
|
|
51950
|
+
var callBindBasic = requireCallBindApplyHelpers();
|
|
51595
51951
|
|
|
51596
|
-
|
|
51597
|
-
|
|
51598
|
-
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
51599
|
-
}
|
|
51952
|
+
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
51953
|
+
var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
|
|
51600
51954
|
|
|
51601
|
-
|
|
51602
|
-
|
|
51603
|
-
|
|
51604
|
-
|
|
51605
|
-
|
|
51606
|
-
|
|
51607
|
-
|
|
51608
|
-
|
|
51955
|
+
/** @type {import('.')} */
|
|
51956
|
+
callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
51957
|
+
// eslint-disable-next-line no-extra-parens
|
|
51958
|
+
var intrinsic = /** @type {Parameters<typeof callBindBasic>[0][0]} */ (GetIntrinsic(name, !!allowMissing));
|
|
51959
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
51960
|
+
return callBindBasic([intrinsic]);
|
|
51961
|
+
}
|
|
51962
|
+
return intrinsic;
|
|
51963
|
+
};
|
|
51964
|
+
return callBound;
|
|
51965
|
+
}
|
|
51609
51966
|
|
|
51610
|
-
|
|
51611
|
-
|
|
51612
|
-
if (opts.indent === '\t') {
|
|
51613
|
-
baseIndent = '\t';
|
|
51614
|
-
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
51615
|
-
baseIndent = $join.call(Array(opts.indent + 1), ' ');
|
|
51616
|
-
} else {
|
|
51617
|
-
return null;
|
|
51618
|
-
}
|
|
51619
|
-
return {
|
|
51620
|
-
base: baseIndent,
|
|
51621
|
-
prev: $join.call(Array(depth + 1), baseIndent)
|
|
51622
|
-
};
|
|
51623
|
-
}
|
|
51967
|
+
var sideChannelMap;
|
|
51968
|
+
var hasRequiredSideChannelMap;
|
|
51624
51969
|
|
|
51625
|
-
|
|
51626
|
-
|
|
51627
|
-
|
|
51628
|
-
return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
|
|
51629
|
-
}
|
|
51970
|
+
function requireSideChannelMap () {
|
|
51971
|
+
if (hasRequiredSideChannelMap) return sideChannelMap;
|
|
51972
|
+
hasRequiredSideChannelMap = 1;
|
|
51630
51973
|
|
|
51631
|
-
|
|
51632
|
-
|
|
51633
|
-
|
|
51634
|
-
if (isArr) {
|
|
51635
|
-
xs.length = obj.length;
|
|
51636
|
-
for (var i = 0; i < obj.length; i++) {
|
|
51637
|
-
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
|
|
51638
|
-
}
|
|
51639
|
-
}
|
|
51640
|
-
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
51641
|
-
var symMap;
|
|
51642
|
-
if (hasShammedSymbols) {
|
|
51643
|
-
symMap = {};
|
|
51644
|
-
for (var k = 0; k < syms.length; k++) {
|
|
51645
|
-
symMap['$' + syms[k]] = syms[k];
|
|
51646
|
-
}
|
|
51647
|
-
}
|
|
51974
|
+
var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic();
|
|
51975
|
+
var callBound = /*@__PURE__*/ requireCallBound();
|
|
51976
|
+
var inspect = /*@__PURE__*/ requireObjectInspect();
|
|
51648
51977
|
|
|
51649
|
-
|
|
51650
|
-
|
|
51651
|
-
|
|
51652
|
-
|
|
51653
|
-
|
|
51654
|
-
|
|
51655
|
-
|
|
51656
|
-
|
|
51657
|
-
|
|
51658
|
-
|
|
51659
|
-
|
|
51660
|
-
|
|
51661
|
-
|
|
51662
|
-
|
|
51663
|
-
|
|
51664
|
-
|
|
51665
|
-
|
|
51666
|
-
|
|
51667
|
-
|
|
51668
|
-
|
|
51669
|
-
|
|
51670
|
-
|
|
51978
|
+
var $TypeError = /*@__PURE__*/ requireType();
|
|
51979
|
+
var $Map = GetIntrinsic('%Map%', true);
|
|
51980
|
+
|
|
51981
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
|
|
51982
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
|
51983
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
|
|
51984
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
|
51985
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
51986
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
|
51987
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
51988
|
+
var $mapDelete = callBound('Map.prototype.delete', true);
|
|
51989
|
+
/** @type {<K, V>(thisArg: Map<K, V>) => number} */
|
|
51990
|
+
var $mapSize = callBound('Map.prototype.size', true);
|
|
51991
|
+
|
|
51992
|
+
/** @type {import('.')} */
|
|
51993
|
+
sideChannelMap = !!$Map && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
|
|
51994
|
+
/** @typedef {ReturnType<typeof getSideChannelMap>} Channel */
|
|
51995
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
51996
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
51997
|
+
|
|
51998
|
+
/** @type {Map<K, V> | undefined} */ var $m;
|
|
51999
|
+
|
|
52000
|
+
/** @type {Channel} */
|
|
52001
|
+
var channel = {
|
|
52002
|
+
assert: function (key) {
|
|
52003
|
+
if (!channel.has(key)) {
|
|
52004
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
52005
|
+
}
|
|
52006
|
+
},
|
|
52007
|
+
'delete': function (key) {
|
|
52008
|
+
if ($m) {
|
|
52009
|
+
var result = $mapDelete($m, key);
|
|
52010
|
+
if ($mapSize($m) === 0) {
|
|
52011
|
+
$m = void 0;
|
|
52012
|
+
}
|
|
52013
|
+
return result;
|
|
52014
|
+
}
|
|
52015
|
+
return false;
|
|
52016
|
+
},
|
|
52017
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
52018
|
+
if ($m) {
|
|
52019
|
+
return $mapGet($m, key);
|
|
52020
|
+
}
|
|
52021
|
+
},
|
|
52022
|
+
has: function (key) {
|
|
52023
|
+
if ($m) {
|
|
52024
|
+
return $mapHas($m, key);
|
|
52025
|
+
}
|
|
52026
|
+
return false;
|
|
52027
|
+
},
|
|
52028
|
+
set: function (key, value) {
|
|
52029
|
+
if (!$m) {
|
|
52030
|
+
// @ts-expect-error TS can't handle narrowing a variable inside a closure
|
|
52031
|
+
$m = new $Map();
|
|
52032
|
+
}
|
|
52033
|
+
$mapSet($m, key, value);
|
|
52034
|
+
}
|
|
52035
|
+
};
|
|
52036
|
+
|
|
52037
|
+
// @ts-expect-error TODO: figure out why TS is erroring here
|
|
52038
|
+
return channel;
|
|
52039
|
+
};
|
|
52040
|
+
return sideChannelMap;
|
|
51671
52041
|
}
|
|
51672
52042
|
|
|
51673
|
-
var
|
|
51674
|
-
var
|
|
52043
|
+
var sideChannelWeakmap;
|
|
52044
|
+
var hasRequiredSideChannelWeakmap;
|
|
51675
52045
|
|
|
51676
|
-
function
|
|
51677
|
-
if (
|
|
51678
|
-
|
|
52046
|
+
function requireSideChannelWeakmap () {
|
|
52047
|
+
if (hasRequiredSideChannelWeakmap) return sideChannelWeakmap;
|
|
52048
|
+
hasRequiredSideChannelWeakmap = 1;
|
|
51679
52049
|
|
|
51680
52050
|
var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic();
|
|
51681
|
-
var callBound = requireCallBound();
|
|
52051
|
+
var callBound = /*@__PURE__*/ requireCallBound();
|
|
51682
52052
|
var inspect = /*@__PURE__*/ requireObjectInspect();
|
|
52053
|
+
var getSideChannelMap = requireSideChannelMap();
|
|
51683
52054
|
|
|
51684
52055
|
var $TypeError = /*@__PURE__*/ requireType();
|
|
51685
52056
|
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
51686
|
-
var $Map = GetIntrinsic('%Map%', true);
|
|
51687
52057
|
|
|
52058
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */
|
|
51688
52059
|
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
52060
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K, value: V) => void} */
|
|
51689
52061
|
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
52062
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
51690
52063
|
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
51691
|
-
|
|
51692
|
-
var $
|
|
51693
|
-
var $mapHas = callBound('Map.prototype.has', true);
|
|
52064
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
52065
|
+
var $weakMapDelete = callBound('WeakMap.prototype.delete', true);
|
|
51694
52066
|
|
|
51695
|
-
|
|
51696
|
-
|
|
51697
|
-
|
|
51698
|
-
|
|
51699
|
-
|
|
51700
|
-
|
|
51701
|
-
|
|
51702
|
-
|
|
51703
|
-
|
|
51704
|
-
|
|
51705
|
-
|
|
51706
|
-
|
|
51707
|
-
|
|
51708
|
-
|
|
51709
|
-
|
|
51710
|
-
|
|
51711
|
-
|
|
51712
|
-
|
|
51713
|
-
|
|
51714
|
-
|
|
51715
|
-
|
|
52067
|
+
/** @type {import('.')} */
|
|
52068
|
+
sideChannelWeakmap = $WeakMap
|
|
52069
|
+
? /** @type {Exclude<import('.'), false>} */ function getSideChannelWeakMap() {
|
|
52070
|
+
/** @typedef {ReturnType<typeof getSideChannelWeakMap>} Channel */
|
|
52071
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
52072
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
52073
|
+
|
|
52074
|
+
/** @type {WeakMap<K & object, V> | undefined} */ var $wm;
|
|
52075
|
+
/** @type {Channel | undefined} */ var $m;
|
|
52076
|
+
|
|
52077
|
+
/** @type {Channel} */
|
|
52078
|
+
var channel = {
|
|
52079
|
+
assert: function (key) {
|
|
52080
|
+
if (!channel.has(key)) {
|
|
52081
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
52082
|
+
}
|
|
52083
|
+
},
|
|
52084
|
+
'delete': function (key) {
|
|
52085
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
52086
|
+
if ($wm) {
|
|
52087
|
+
return $weakMapDelete($wm, key);
|
|
52088
|
+
}
|
|
52089
|
+
} else if (getSideChannelMap) {
|
|
52090
|
+
if ($m) {
|
|
52091
|
+
return $m['delete'](key);
|
|
52092
|
+
}
|
|
52093
|
+
}
|
|
52094
|
+
return false;
|
|
52095
|
+
},
|
|
52096
|
+
get: function (key) {
|
|
52097
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
52098
|
+
if ($wm) {
|
|
52099
|
+
return $weakMapGet($wm, key);
|
|
52100
|
+
}
|
|
52101
|
+
}
|
|
52102
|
+
return $m && $m.get(key);
|
|
52103
|
+
},
|
|
52104
|
+
has: function (key) {
|
|
52105
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
52106
|
+
if ($wm) {
|
|
52107
|
+
return $weakMapHas($wm, key);
|
|
52108
|
+
}
|
|
52109
|
+
}
|
|
52110
|
+
return !!$m && $m.has(key);
|
|
52111
|
+
},
|
|
52112
|
+
set: function (key, value) {
|
|
52113
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
52114
|
+
if (!$wm) {
|
|
52115
|
+
$wm = new $WeakMap();
|
|
52116
|
+
}
|
|
52117
|
+
$weakMapSet($wm, key, value);
|
|
52118
|
+
} else if (getSideChannelMap) {
|
|
52119
|
+
if (!$m) {
|
|
52120
|
+
$m = getSideChannelMap();
|
|
52121
|
+
}
|
|
52122
|
+
// eslint-disable-next-line no-extra-parens
|
|
52123
|
+
/** @type {NonNullable<typeof $m>} */ ($m).set(key, value);
|
|
52124
|
+
}
|
|
52125
|
+
}
|
|
52126
|
+
};
|
|
51716
52127
|
|
|
51717
|
-
|
|
51718
|
-
|
|
51719
|
-
var node = listGetNode(objects, key);
|
|
51720
|
-
return node && node.value;
|
|
51721
|
-
};
|
|
51722
|
-
/** @type {import('.').listSet} */
|
|
51723
|
-
var listSet = function (objects, key, value) {
|
|
51724
|
-
var node = listGetNode(objects, key);
|
|
51725
|
-
if (node) {
|
|
51726
|
-
node.value = value;
|
|
51727
|
-
} else {
|
|
51728
|
-
// Prepend the new node to the beginning of the list
|
|
51729
|
-
objects.next = /** @type {import('.').ListNode<typeof value>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
|
|
51730
|
-
key: key,
|
|
51731
|
-
next: objects.next,
|
|
51732
|
-
value: value
|
|
51733
|
-
});
|
|
52128
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
52129
|
+
return channel;
|
|
51734
52130
|
}
|
|
51735
|
-
|
|
51736
|
-
|
|
51737
|
-
|
|
51738
|
-
|
|
51739
|
-
|
|
52131
|
+
: getSideChannelMap;
|
|
52132
|
+
return sideChannelWeakmap;
|
|
52133
|
+
}
|
|
52134
|
+
|
|
52135
|
+
var sideChannel;
|
|
52136
|
+
var hasRequiredSideChannel;
|
|
52137
|
+
|
|
52138
|
+
function requireSideChannel () {
|
|
52139
|
+
if (hasRequiredSideChannel) return sideChannel;
|
|
52140
|
+
hasRequiredSideChannel = 1;
|
|
52141
|
+
|
|
52142
|
+
var $TypeError = /*@__PURE__*/ requireType();
|
|
52143
|
+
var inspect = /*@__PURE__*/ requireObjectInspect();
|
|
52144
|
+
var getSideChannelList = requireSideChannelList();
|
|
52145
|
+
var getSideChannelMap = requireSideChannelMap();
|
|
52146
|
+
var getSideChannelWeakMap = requireSideChannelWeakmap();
|
|
52147
|
+
|
|
52148
|
+
var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
|
|
51740
52149
|
|
|
51741
52150
|
/** @type {import('.')} */
|
|
51742
52151
|
sideChannel = function getSideChannel() {
|
|
51743
|
-
/** @
|
|
51744
|
-
|
|
51745
|
-
/** @type {
|
|
52152
|
+
/** @typedef {ReturnType<typeof getSideChannel>} Channel */
|
|
52153
|
+
|
|
52154
|
+
/** @type {Channel | undefined} */ var $channelData;
|
|
51746
52155
|
|
|
51747
|
-
/** @type {
|
|
52156
|
+
/** @type {Channel} */
|
|
51748
52157
|
var channel = {
|
|
51749
52158
|
assert: function (key) {
|
|
51750
52159
|
if (!channel.has(key)) {
|
|
51751
52160
|
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
51752
52161
|
}
|
|
51753
52162
|
},
|
|
51754
|
-
|
|
51755
|
-
|
|
51756
|
-
|
|
51757
|
-
|
|
51758
|
-
|
|
51759
|
-
} else if ($Map) {
|
|
51760
|
-
if ($m) {
|
|
51761
|
-
return $mapGet($m, key);
|
|
51762
|
-
}
|
|
51763
|
-
} else {
|
|
51764
|
-
if ($o) { // eslint-disable-line no-lonely-if
|
|
51765
|
-
return listGet($o, key);
|
|
51766
|
-
}
|
|
51767
|
-
}
|
|
52163
|
+
'delete': function (key) {
|
|
52164
|
+
return !!$channelData && $channelData['delete'](key);
|
|
52165
|
+
},
|
|
52166
|
+
get: function (key) {
|
|
52167
|
+
return $channelData && $channelData.get(key);
|
|
51768
52168
|
},
|
|
51769
52169
|
has: function (key) {
|
|
51770
|
-
|
|
51771
|
-
if ($wm) {
|
|
51772
|
-
return $weakMapHas($wm, key);
|
|
51773
|
-
}
|
|
51774
|
-
} else if ($Map) {
|
|
51775
|
-
if ($m) {
|
|
51776
|
-
return $mapHas($m, key);
|
|
51777
|
-
}
|
|
51778
|
-
} else {
|
|
51779
|
-
if ($o) { // eslint-disable-line no-lonely-if
|
|
51780
|
-
return listHas($o, key);
|
|
51781
|
-
}
|
|
51782
|
-
}
|
|
51783
|
-
return false;
|
|
52170
|
+
return !!$channelData && $channelData.has(key);
|
|
51784
52171
|
},
|
|
51785
52172
|
set: function (key, value) {
|
|
51786
|
-
if (
|
|
51787
|
-
|
|
51788
|
-
$wm = new $WeakMap();
|
|
51789
|
-
}
|
|
51790
|
-
$weakMapSet($wm, key, value);
|
|
51791
|
-
} else if ($Map) {
|
|
51792
|
-
if (!$m) {
|
|
51793
|
-
$m = new $Map();
|
|
51794
|
-
}
|
|
51795
|
-
$mapSet($m, key, value);
|
|
51796
|
-
} else {
|
|
51797
|
-
if (!$o) {
|
|
51798
|
-
// Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
|
|
51799
|
-
$o = { key: {}, next: null };
|
|
51800
|
-
}
|
|
51801
|
-
listSet($o, key, value);
|
|
52173
|
+
if (!$channelData) {
|
|
52174
|
+
$channelData = makeChannel();
|
|
51802
52175
|
}
|
|
52176
|
+
|
|
52177
|
+
$channelData.set(key, value);
|
|
51803
52178
|
}
|
|
51804
52179
|
};
|
|
52180
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
51805
52181
|
return channel;
|
|
51806
52182
|
};
|
|
51807
52183
|
return sideChannel;
|
|
@@ -52810,7 +53186,7 @@ function requireServer () {
|
|
|
52810
53186
|
|
|
52811
53187
|
var _fs2 = _interopRequireDefault(_fs);
|
|
52812
53188
|
|
|
52813
|
-
var _http = require$$1$
|
|
53189
|
+
var _http = require$$1$5;
|
|
52814
53190
|
|
|
52815
53191
|
var _http2 = _interopRequireDefault(_http);
|
|
52816
53192
|
|
|
@@ -53287,4 +53663,4 @@ exports.minimatch = minimatch;
|
|
|
53287
53663
|
exports.spawn = spawn;
|
|
53288
53664
|
exports.tinylr = tinylr;
|
|
53289
53665
|
exports.watch = watch$1;
|
|
53290
|
-
//# sourceMappingURL=vendor-
|
|
53666
|
+
//# sourceMappingURL=vendor-CLvDQIrx.js.map
|