@interopio/fdc3 2.6.1 → 2.7.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/changelog.md +2 -0
- package/dist/fdc3.electron.es.js +542 -457
- package/dist/fdc3.electron.umd.js +542 -457
- package/dist/fdc3.es.js +537 -443
- package/dist/fdc3.umd.js +537 -443
- package/package.json +3 -3
package/dist/fdc3.es.js
CHANGED
|
@@ -29,10 +29,10 @@ function getAugmentedNamespace(n) {
|
|
|
29
29
|
return a;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
var toStr$
|
|
32
|
+
var toStr$5 = Object.prototype.toString;
|
|
33
33
|
|
|
34
34
|
var isArguments$3 = function isArguments(value) {
|
|
35
|
-
var str = toStr$
|
|
35
|
+
var str = toStr$5.call(value);
|
|
36
36
|
var isArgs = str === '[object Arguments]';
|
|
37
37
|
if (!isArgs) {
|
|
38
38
|
isArgs = str !== '[object Array]' &&
|
|
@@ -40,7 +40,7 @@ var isArguments$3 = function isArguments(value) {
|
|
|
40
40
|
typeof value === 'object' &&
|
|
41
41
|
typeof value.length === 'number' &&
|
|
42
42
|
value.length >= 0 &&
|
|
43
|
-
toStr$
|
|
43
|
+
toStr$5.call(value.callee) === '[object Function]';
|
|
44
44
|
}
|
|
45
45
|
return isArgs;
|
|
46
46
|
};
|
|
@@ -226,10 +226,10 @@ var syntax = SyntaxError;
|
|
|
226
226
|
var type = TypeError;
|
|
227
227
|
|
|
228
228
|
/** @type {import('./gOPD')} */
|
|
229
|
-
var gOPD$
|
|
229
|
+
var gOPD$6 = Object.getOwnPropertyDescriptor;
|
|
230
230
|
|
|
231
231
|
/** @type {import('.')} */
|
|
232
|
-
var $gOPD$2 = gOPD$
|
|
232
|
+
var $gOPD$2 = gOPD$6;
|
|
233
233
|
|
|
234
234
|
if ($gOPD$2) {
|
|
235
235
|
try {
|
|
@@ -245,7 +245,7 @@ var gopd$1 = $gOPD$2;
|
|
|
245
245
|
var $defineProperty$2 = esDefineProperty;
|
|
246
246
|
|
|
247
247
|
var $SyntaxError$2 = syntax;
|
|
248
|
-
var $TypeError$
|
|
248
|
+
var $TypeError$b = type;
|
|
249
249
|
|
|
250
250
|
var gopd = gopd$1;
|
|
251
251
|
|
|
@@ -256,22 +256,22 @@ var defineDataProperty$1 = function defineDataProperty(
|
|
|
256
256
|
value
|
|
257
257
|
) {
|
|
258
258
|
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
259
|
-
throw new $TypeError$
|
|
259
|
+
throw new $TypeError$b('`obj` must be an object or a function`');
|
|
260
260
|
}
|
|
261
261
|
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
262
|
-
throw new $TypeError$
|
|
262
|
+
throw new $TypeError$b('`property` must be a string or a symbol`');
|
|
263
263
|
}
|
|
264
264
|
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
265
|
-
throw new $TypeError$
|
|
265
|
+
throw new $TypeError$b('`nonEnumerable`, if provided, must be a boolean or null');
|
|
266
266
|
}
|
|
267
267
|
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
268
|
-
throw new $TypeError$
|
|
268
|
+
throw new $TypeError$b('`nonWritable`, if provided, must be a boolean or null');
|
|
269
269
|
}
|
|
270
270
|
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
271
|
-
throw new $TypeError$
|
|
271
|
+
throw new $TypeError$b('`nonConfigurable`, if provided, must be a boolean or null');
|
|
272
272
|
}
|
|
273
273
|
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
274
|
-
throw new $TypeError$
|
|
274
|
+
throw new $TypeError$b('`loose`, if provided, must be a boolean');
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
@@ -321,12 +321,12 @@ var hasPropertyDescriptors_1 = hasPropertyDescriptors;
|
|
|
321
321
|
var keys = objectKeys$2;
|
|
322
322
|
var hasSymbols$5 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
|
323
323
|
|
|
324
|
-
var toStr$
|
|
324
|
+
var toStr$4 = Object.prototype.toString;
|
|
325
325
|
var concat = Array.prototype.concat;
|
|
326
326
|
var defineDataProperty = defineDataProperty$1;
|
|
327
327
|
|
|
328
328
|
var isFunction = function (fn) {
|
|
329
|
-
return typeof fn === 'function' && toStr$
|
|
329
|
+
return typeof fn === 'function' && toStr$4.call(fn) === '[object Function]';
|
|
330
330
|
};
|
|
331
331
|
|
|
332
332
|
var supportsDescriptors$2 = hasPropertyDescriptors_1();
|
|
@@ -364,112 +364,7 @@ defineProperties$1.supportsDescriptors = !!supportsDescriptors$2;
|
|
|
364
364
|
|
|
365
365
|
var defineProperties_1 = defineProperties$1;
|
|
366
366
|
|
|
367
|
-
var callBind$
|
|
368
|
-
|
|
369
|
-
var implementation$9;
|
|
370
|
-
var hasRequiredImplementation;
|
|
371
|
-
|
|
372
|
-
function requireImplementation () {
|
|
373
|
-
if (hasRequiredImplementation) return implementation$9;
|
|
374
|
-
hasRequiredImplementation = 1;
|
|
375
|
-
|
|
376
|
-
/* eslint no-invalid-this: 1 */
|
|
377
|
-
|
|
378
|
-
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
379
|
-
var toStr = Object.prototype.toString;
|
|
380
|
-
var max = Math.max;
|
|
381
|
-
var funcType = '[object Function]';
|
|
382
|
-
|
|
383
|
-
var concatty = function concatty(a, b) {
|
|
384
|
-
var arr = [];
|
|
385
|
-
|
|
386
|
-
for (var i = 0; i < a.length; i += 1) {
|
|
387
|
-
arr[i] = a[i];
|
|
388
|
-
}
|
|
389
|
-
for (var j = 0; j < b.length; j += 1) {
|
|
390
|
-
arr[j + a.length] = b[j];
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
return arr;
|
|
394
|
-
};
|
|
395
|
-
|
|
396
|
-
var slicy = function slicy(arrLike, offset) {
|
|
397
|
-
var arr = [];
|
|
398
|
-
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
399
|
-
arr[j] = arrLike[i];
|
|
400
|
-
}
|
|
401
|
-
return arr;
|
|
402
|
-
};
|
|
403
|
-
|
|
404
|
-
var joiny = function (arr, joiner) {
|
|
405
|
-
var str = '';
|
|
406
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
407
|
-
str += arr[i];
|
|
408
|
-
if (i + 1 < arr.length) {
|
|
409
|
-
str += joiner;
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
return str;
|
|
413
|
-
};
|
|
414
|
-
|
|
415
|
-
implementation$9 = function bind(that) {
|
|
416
|
-
var target = this;
|
|
417
|
-
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
418
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
419
|
-
}
|
|
420
|
-
var args = slicy(arguments, 1);
|
|
421
|
-
|
|
422
|
-
var bound;
|
|
423
|
-
var binder = function () {
|
|
424
|
-
if (this instanceof bound) {
|
|
425
|
-
var result = target.apply(
|
|
426
|
-
this,
|
|
427
|
-
concatty(args, arguments)
|
|
428
|
-
);
|
|
429
|
-
if (Object(result) === result) {
|
|
430
|
-
return result;
|
|
431
|
-
}
|
|
432
|
-
return this;
|
|
433
|
-
}
|
|
434
|
-
return target.apply(
|
|
435
|
-
that,
|
|
436
|
-
concatty(args, arguments)
|
|
437
|
-
);
|
|
438
|
-
|
|
439
|
-
};
|
|
440
|
-
|
|
441
|
-
var boundLength = max(0, target.length - args.length);
|
|
442
|
-
var boundArgs = [];
|
|
443
|
-
for (var i = 0; i < boundLength; i++) {
|
|
444
|
-
boundArgs[i] = '$' + i;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
448
|
-
|
|
449
|
-
if (target.prototype) {
|
|
450
|
-
var Empty = function Empty() {};
|
|
451
|
-
Empty.prototype = target.prototype;
|
|
452
|
-
bound.prototype = new Empty();
|
|
453
|
-
Empty.prototype = null;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
return bound;
|
|
457
|
-
};
|
|
458
|
-
return implementation$9;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
var functionBind;
|
|
462
|
-
var hasRequiredFunctionBind;
|
|
463
|
-
|
|
464
|
-
function requireFunctionBind () {
|
|
465
|
-
if (hasRequiredFunctionBind) return functionBind;
|
|
466
|
-
hasRequiredFunctionBind = 1;
|
|
467
|
-
|
|
468
|
-
var implementation = requireImplementation();
|
|
469
|
-
|
|
470
|
-
functionBind = Function.prototype.bind || implementation;
|
|
471
|
-
return functionBind;
|
|
472
|
-
}
|
|
367
|
+
var callBind$7 = {exports: {}};
|
|
473
368
|
|
|
474
369
|
/** @type {import('.')} */
|
|
475
370
|
var esObjectAtoms = Object;
|
|
@@ -614,6 +509,111 @@ function requireObject_getPrototypeOf () {
|
|
|
614
509
|
return Object_getPrototypeOf;
|
|
615
510
|
}
|
|
616
511
|
|
|
512
|
+
var implementation$9;
|
|
513
|
+
var hasRequiredImplementation;
|
|
514
|
+
|
|
515
|
+
function requireImplementation () {
|
|
516
|
+
if (hasRequiredImplementation) return implementation$9;
|
|
517
|
+
hasRequiredImplementation = 1;
|
|
518
|
+
|
|
519
|
+
/* eslint no-invalid-this: 1 */
|
|
520
|
+
|
|
521
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
522
|
+
var toStr = Object.prototype.toString;
|
|
523
|
+
var max = Math.max;
|
|
524
|
+
var funcType = '[object Function]';
|
|
525
|
+
|
|
526
|
+
var concatty = function concatty(a, b) {
|
|
527
|
+
var arr = [];
|
|
528
|
+
|
|
529
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
530
|
+
arr[i] = a[i];
|
|
531
|
+
}
|
|
532
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
533
|
+
arr[j + a.length] = b[j];
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
return arr;
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
var slicy = function slicy(arrLike, offset) {
|
|
540
|
+
var arr = [];
|
|
541
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
542
|
+
arr[j] = arrLike[i];
|
|
543
|
+
}
|
|
544
|
+
return arr;
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
var joiny = function (arr, joiner) {
|
|
548
|
+
var str = '';
|
|
549
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
550
|
+
str += arr[i];
|
|
551
|
+
if (i + 1 < arr.length) {
|
|
552
|
+
str += joiner;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
return str;
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
implementation$9 = function bind(that) {
|
|
559
|
+
var target = this;
|
|
560
|
+
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
561
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
562
|
+
}
|
|
563
|
+
var args = slicy(arguments, 1);
|
|
564
|
+
|
|
565
|
+
var bound;
|
|
566
|
+
var binder = function () {
|
|
567
|
+
if (this instanceof bound) {
|
|
568
|
+
var result = target.apply(
|
|
569
|
+
this,
|
|
570
|
+
concatty(args, arguments)
|
|
571
|
+
);
|
|
572
|
+
if (Object(result) === result) {
|
|
573
|
+
return result;
|
|
574
|
+
}
|
|
575
|
+
return this;
|
|
576
|
+
}
|
|
577
|
+
return target.apply(
|
|
578
|
+
that,
|
|
579
|
+
concatty(args, arguments)
|
|
580
|
+
);
|
|
581
|
+
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
var boundLength = max(0, target.length - args.length);
|
|
585
|
+
var boundArgs = [];
|
|
586
|
+
for (var i = 0; i < boundLength; i++) {
|
|
587
|
+
boundArgs[i] = '$' + i;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
591
|
+
|
|
592
|
+
if (target.prototype) {
|
|
593
|
+
var Empty = function Empty() {};
|
|
594
|
+
Empty.prototype = target.prototype;
|
|
595
|
+
bound.prototype = new Empty();
|
|
596
|
+
Empty.prototype = null;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
return bound;
|
|
600
|
+
};
|
|
601
|
+
return implementation$9;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
var functionBind;
|
|
605
|
+
var hasRequiredFunctionBind;
|
|
606
|
+
|
|
607
|
+
function requireFunctionBind () {
|
|
608
|
+
if (hasRequiredFunctionBind) return functionBind;
|
|
609
|
+
hasRequiredFunctionBind = 1;
|
|
610
|
+
|
|
611
|
+
var implementation = requireImplementation();
|
|
612
|
+
|
|
613
|
+
functionBind = Function.prototype.bind || implementation;
|
|
614
|
+
return functionBind;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
617
|
var functionCall;
|
|
618
618
|
var hasRequiredFunctionCall;
|
|
619
619
|
|
|
@@ -641,101 +641,83 @@ function requireFunctionApply () {
|
|
|
641
641
|
/** @type {import('./reflectApply')} */
|
|
642
642
|
var reflectApply$1 = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
643
643
|
|
|
644
|
-
var bind$
|
|
644
|
+
var bind$3 = requireFunctionBind();
|
|
645
645
|
|
|
646
|
-
var $apply$
|
|
646
|
+
var $apply$2 = requireFunctionApply();
|
|
647
647
|
var $call$2 = requireFunctionCall();
|
|
648
648
|
var $reflectApply = reflectApply$1;
|
|
649
649
|
|
|
650
650
|
/** @type {import('./actualApply')} */
|
|
651
|
-
var actualApply = $reflectApply || bind$
|
|
651
|
+
var actualApply$1 = $reflectApply || bind$3.call($call$2, $apply$2);
|
|
652
652
|
|
|
653
|
-
var bind$
|
|
654
|
-
var $TypeError$
|
|
653
|
+
var bind$2 = requireFunctionBind();
|
|
654
|
+
var $TypeError$a = type;
|
|
655
655
|
|
|
656
656
|
var $call$1 = requireFunctionCall();
|
|
657
|
-
var $actualApply = actualApply;
|
|
657
|
+
var $actualApply = actualApply$1;
|
|
658
658
|
|
|
659
|
-
/** @type {import('.')
|
|
659
|
+
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
660
660
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
661
661
|
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
662
|
-
throw new $TypeError$
|
|
662
|
+
throw new $TypeError$a('a function is required');
|
|
663
663
|
}
|
|
664
|
-
return $actualApply(bind$
|
|
664
|
+
return $actualApply(bind$2, $call$1, args);
|
|
665
665
|
};
|
|
666
666
|
|
|
667
|
-
var
|
|
668
|
-
var
|
|
669
|
-
|
|
670
|
-
function requireGet () {
|
|
671
|
-
if (hasRequiredGet) return get;
|
|
672
|
-
hasRequiredGet = 1;
|
|
673
|
-
|
|
674
|
-
var callBind = callBindApplyHelpers;
|
|
675
|
-
var gOPD = gopd$1;
|
|
667
|
+
var callBind$6 = callBindApplyHelpers;
|
|
668
|
+
var gOPD$5 = gopd$1;
|
|
676
669
|
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
}
|
|
670
|
+
var hasProtoAccessor;
|
|
671
|
+
try {
|
|
672
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
673
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
674
|
+
} catch (e) {
|
|
675
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
676
|
+
throw e;
|
|
685
677
|
}
|
|
686
|
-
|
|
687
|
-
// eslint-disable-next-line no-extra-parens
|
|
688
|
-
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
689
|
-
|
|
690
|
-
var $Object = Object;
|
|
691
|
-
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
692
|
-
|
|
693
|
-
/** @type {import('./get')} */
|
|
694
|
-
get = desc && typeof desc.get === 'function'
|
|
695
|
-
? callBind([desc.get])
|
|
696
|
-
: typeof $getPrototypeOf === 'function'
|
|
697
|
-
? /** @type {import('./get')} */ function getDunder(value) {
|
|
698
|
-
// eslint-disable-next-line eqeqeq
|
|
699
|
-
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
700
|
-
}
|
|
701
|
-
: false;
|
|
702
|
-
return get;
|
|
703
678
|
}
|
|
704
679
|
|
|
705
|
-
|
|
706
|
-
var
|
|
680
|
+
// eslint-disable-next-line no-extra-parens
|
|
681
|
+
var desc = !!hasProtoAccessor && gOPD$5 && gOPD$5(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
682
|
+
|
|
683
|
+
var $Object$3 = Object;
|
|
684
|
+
var $getPrototypeOf = $Object$3.getPrototypeOf;
|
|
707
685
|
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
686
|
+
/** @type {import('./get')} */
|
|
687
|
+
var get = desc && typeof desc.get === 'function'
|
|
688
|
+
? callBind$6([desc.get])
|
|
689
|
+
: typeof $getPrototypeOf === 'function'
|
|
690
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
691
|
+
// eslint-disable-next-line eqeqeq
|
|
692
|
+
return $getPrototypeOf(value == null ? value : $Object$3(value));
|
|
693
|
+
}
|
|
694
|
+
: false;
|
|
711
695
|
|
|
712
|
-
|
|
713
|
-
|
|
696
|
+
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
697
|
+
var originalGetProto = requireObject_getPrototypeOf();
|
|
714
698
|
|
|
715
|
-
|
|
699
|
+
var getDunderProto = get;
|
|
716
700
|
|
|
717
|
-
|
|
718
|
-
|
|
701
|
+
/** @type {import('.')} */
|
|
702
|
+
var getProto$3 = reflectGetProto
|
|
703
|
+
? function getProto(O) {
|
|
704
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
705
|
+
return reflectGetProto(O);
|
|
706
|
+
}
|
|
707
|
+
: originalGetProto
|
|
719
708
|
? function getProto(O) {
|
|
709
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
710
|
+
throw new TypeError('getProto: not an object');
|
|
711
|
+
}
|
|
720
712
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
721
|
-
return
|
|
713
|
+
return originalGetProto(O);
|
|
722
714
|
}
|
|
723
|
-
:
|
|
715
|
+
: getDunderProto
|
|
724
716
|
? function getProto(O) {
|
|
725
|
-
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
726
|
-
throw new TypeError('getProto: not an object');
|
|
727
|
-
}
|
|
728
717
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
729
|
-
return
|
|
718
|
+
return getDunderProto(O);
|
|
730
719
|
}
|
|
731
|
-
:
|
|
732
|
-
? function getProto(O) {
|
|
733
|
-
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
734
|
-
return getDunderProto(O);
|
|
735
|
-
}
|
|
736
|
-
: null;
|
|
737
|
-
return getProto$2;
|
|
738
|
-
}
|
|
720
|
+
: null;
|
|
739
721
|
|
|
740
722
|
var hasown;
|
|
741
723
|
var hasRequiredHasown;
|
|
@@ -755,14 +737,14 @@ function requireHasown () {
|
|
|
755
737
|
|
|
756
738
|
var undefined$1;
|
|
757
739
|
|
|
758
|
-
var $Object$
|
|
740
|
+
var $Object$2 = esObjectAtoms;
|
|
759
741
|
|
|
760
742
|
var $Error = esErrors;
|
|
761
743
|
var $EvalError = _eval;
|
|
762
744
|
var $RangeError = range;
|
|
763
745
|
var $ReferenceError = ref;
|
|
764
746
|
var $SyntaxError$1 = syntax;
|
|
765
|
-
var $TypeError$
|
|
747
|
+
var $TypeError$9 = type;
|
|
766
748
|
var $URIError = uri;
|
|
767
749
|
|
|
768
750
|
var abs = abs$1;
|
|
@@ -786,7 +768,7 @@ var $gOPD$1 = gopd$1;
|
|
|
786
768
|
var $defineProperty = esDefineProperty;
|
|
787
769
|
|
|
788
770
|
var throwTypeError = function () {
|
|
789
|
-
throw new $TypeError$
|
|
771
|
+
throw new $TypeError$9();
|
|
790
772
|
};
|
|
791
773
|
var ThrowTypeError = $gOPD$1
|
|
792
774
|
? (function () {
|
|
@@ -807,23 +789,23 @@ var ThrowTypeError = $gOPD$1
|
|
|
807
789
|
|
|
808
790
|
var hasSymbols$3 = hasSymbols$4();
|
|
809
791
|
|
|
810
|
-
var getProto$
|
|
792
|
+
var getProto$2 = getProto$3;
|
|
811
793
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
812
794
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
813
795
|
|
|
814
|
-
var $apply = requireFunctionApply();
|
|
796
|
+
var $apply$1 = requireFunctionApply();
|
|
815
797
|
var $call = requireFunctionCall();
|
|
816
798
|
|
|
817
799
|
var needsEval = {};
|
|
818
800
|
|
|
819
|
-
var TypedArray = typeof Uint8Array === 'undefined' || !getProto$
|
|
801
|
+
var TypedArray = typeof Uint8Array === 'undefined' || !getProto$2 ? undefined$1 : getProto$2(Uint8Array);
|
|
820
802
|
|
|
821
803
|
var INTRINSICS = {
|
|
822
804
|
__proto__: null,
|
|
823
805
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
824
806
|
'%Array%': Array,
|
|
825
807
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
826
|
-
'%ArrayIteratorPrototype%': hasSymbols$3 && getProto$
|
|
808
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
|
|
827
809
|
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
828
810
|
'%AsyncFunction%': needsEval,
|
|
829
811
|
'%AsyncGenerator%': needsEval,
|
|
@@ -843,6 +825,7 @@ var INTRINSICS = {
|
|
|
843
825
|
'%Error%': $Error,
|
|
844
826
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
845
827
|
'%EvalError%': $EvalError,
|
|
828
|
+
'%Float16Array%': typeof Float16Array === 'undefined' ? undefined$1 : Float16Array,
|
|
846
829
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
|
847
830
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
|
848
831
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
|
|
@@ -853,13 +836,13 @@ var INTRINSICS = {
|
|
|
853
836
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
854
837
|
'%isFinite%': isFinite,
|
|
855
838
|
'%isNaN%': isNaN,
|
|
856
|
-
'%IteratorPrototype%': hasSymbols$3 && getProto$
|
|
839
|
+
'%IteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
|
|
857
840
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
858
841
|
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
859
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 || !getProto$
|
|
842
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Map()[Symbol.iterator]()),
|
|
860
843
|
'%Math%': Math,
|
|
861
844
|
'%Number%': Number,
|
|
862
|
-
'%Object%': $Object$
|
|
845
|
+
'%Object%': $Object$2,
|
|
863
846
|
'%Object.getOwnPropertyDescriptor%': $gOPD$1,
|
|
864
847
|
'%parseFloat%': parseFloat,
|
|
865
848
|
'%parseInt%': parseInt,
|
|
@@ -870,15 +853,15 @@ var INTRINSICS = {
|
|
|
870
853
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
871
854
|
'%RegExp%': RegExp,
|
|
872
855
|
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
873
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 || !getProto$
|
|
856
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Set()[Symbol.iterator]()),
|
|
874
857
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
875
858
|
'%String%': String,
|
|
876
|
-
'%StringIteratorPrototype%': hasSymbols$3 && getProto$
|
|
859
|
+
'%StringIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(''[Symbol.iterator]()) : undefined$1,
|
|
877
860
|
'%Symbol%': hasSymbols$3 ? Symbol : undefined$1,
|
|
878
861
|
'%SyntaxError%': $SyntaxError$1,
|
|
879
862
|
'%ThrowTypeError%': ThrowTypeError,
|
|
880
863
|
'%TypedArray%': TypedArray,
|
|
881
|
-
'%TypeError%': $TypeError$
|
|
864
|
+
'%TypeError%': $TypeError$9,
|
|
882
865
|
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
883
866
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
884
867
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
@@ -889,7 +872,7 @@ var INTRINSICS = {
|
|
|
889
872
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
|
|
890
873
|
|
|
891
874
|
'%Function.prototype.call%': $call,
|
|
892
|
-
'%Function.prototype.apply%': $apply,
|
|
875
|
+
'%Function.prototype.apply%': $apply$1,
|
|
893
876
|
'%Object.defineProperty%': $defineProperty,
|
|
894
877
|
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
895
878
|
'%Math.abs%': abs,
|
|
@@ -902,12 +885,12 @@ var INTRINSICS = {
|
|
|
902
885
|
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
903
886
|
};
|
|
904
887
|
|
|
905
|
-
if (getProto$
|
|
888
|
+
if (getProto$2) {
|
|
906
889
|
try {
|
|
907
890
|
null.error; // eslint-disable-line no-unused-expressions
|
|
908
891
|
} catch (e) {
|
|
909
892
|
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
910
|
-
var errorProto = getProto$
|
|
893
|
+
var errorProto = getProto$2(getProto$2(e));
|
|
911
894
|
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
912
895
|
}
|
|
913
896
|
}
|
|
@@ -927,8 +910,8 @@ var doEval = function doEval(name) {
|
|
|
927
910
|
}
|
|
928
911
|
} else if (name === '%AsyncIteratorPrototype%') {
|
|
929
912
|
var gen = doEval('%AsyncGenerator%');
|
|
930
|
-
if (gen && getProto$
|
|
931
|
-
value = getProto$
|
|
913
|
+
if (gen && getProto$2) {
|
|
914
|
+
value = getProto$2(gen.prototype);
|
|
932
915
|
}
|
|
933
916
|
}
|
|
934
917
|
|
|
@@ -992,13 +975,13 @@ var LEGACY_ALIASES = {
|
|
|
992
975
|
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
993
976
|
};
|
|
994
977
|
|
|
995
|
-
var bind = requireFunctionBind();
|
|
996
|
-
var hasOwn$
|
|
997
|
-
var $concat$1 = bind.call($call, Array.prototype.concat);
|
|
998
|
-
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
999
|
-
var $replace$1 = bind.call($call, String.prototype.replace);
|
|
1000
|
-
var $strSlice = bind.call($call, String.prototype.slice);
|
|
1001
|
-
var $exec$1 = bind.call($call, RegExp.prototype.exec);
|
|
978
|
+
var bind$1 = requireFunctionBind();
|
|
979
|
+
var hasOwn$3 = requireHasown();
|
|
980
|
+
var $concat$1 = bind$1.call($call, Array.prototype.concat);
|
|
981
|
+
var $spliceApply = bind$1.call($apply$1, Array.prototype.splice);
|
|
982
|
+
var $replace$1 = bind$1.call($call, String.prototype.replace);
|
|
983
|
+
var $strSlice = bind$1.call($call, String.prototype.slice);
|
|
984
|
+
var $exec$1 = bind$1.call($call, RegExp.prototype.exec);
|
|
1002
985
|
|
|
1003
986
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
1004
987
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -1022,18 +1005,18 @@ var stringToPath = function stringToPath(string) {
|
|
|
1022
1005
|
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
1023
1006
|
var intrinsicName = name;
|
|
1024
1007
|
var alias;
|
|
1025
|
-
if (hasOwn$
|
|
1008
|
+
if (hasOwn$3(LEGACY_ALIASES, intrinsicName)) {
|
|
1026
1009
|
alias = LEGACY_ALIASES[intrinsicName];
|
|
1027
1010
|
intrinsicName = '%' + alias[0] + '%';
|
|
1028
1011
|
}
|
|
1029
1012
|
|
|
1030
|
-
if (hasOwn$
|
|
1013
|
+
if (hasOwn$3(INTRINSICS, intrinsicName)) {
|
|
1031
1014
|
var value = INTRINSICS[intrinsicName];
|
|
1032
1015
|
if (value === needsEval) {
|
|
1033
1016
|
value = doEval(intrinsicName);
|
|
1034
1017
|
}
|
|
1035
1018
|
if (typeof value === 'undefined' && !allowMissing) {
|
|
1036
|
-
throw new $TypeError$
|
|
1019
|
+
throw new $TypeError$9('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
1037
1020
|
}
|
|
1038
1021
|
|
|
1039
1022
|
return {
|
|
@@ -1048,10 +1031,10 @@ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
|
1048
1031
|
|
|
1049
1032
|
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
1050
1033
|
if (typeof name !== 'string' || name.length === 0) {
|
|
1051
|
-
throw new $TypeError$
|
|
1034
|
+
throw new $TypeError$9('intrinsic name must be a non-empty string');
|
|
1052
1035
|
}
|
|
1053
1036
|
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
1054
|
-
throw new $TypeError$
|
|
1037
|
+
throw new $TypeError$9('"allowMissing" argument must be a boolean');
|
|
1055
1038
|
}
|
|
1056
1039
|
|
|
1057
1040
|
if ($exec$1(/^%?[^%]*%?$/, name) === null) {
|
|
@@ -1091,14 +1074,14 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1091
1074
|
intrinsicBaseName += '.' + part;
|
|
1092
1075
|
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
1093
1076
|
|
|
1094
|
-
if (hasOwn$
|
|
1077
|
+
if (hasOwn$3(INTRINSICS, intrinsicRealName)) {
|
|
1095
1078
|
value = INTRINSICS[intrinsicRealName];
|
|
1096
1079
|
} else if (value != null) {
|
|
1097
1080
|
if (!(part in value)) {
|
|
1098
1081
|
if (!allowMissing) {
|
|
1099
|
-
throw new $TypeError$
|
|
1082
|
+
throw new $TypeError$9('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1100
1083
|
}
|
|
1101
|
-
return void
|
|
1084
|
+
return void undefined$1;
|
|
1102
1085
|
}
|
|
1103
1086
|
if ($gOPD$1 && (i + 1) >= parts.length) {
|
|
1104
1087
|
var desc = $gOPD$1(value, part);
|
|
@@ -1117,7 +1100,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1117
1100
|
value = value[part];
|
|
1118
1101
|
}
|
|
1119
1102
|
} else {
|
|
1120
|
-
isOwn = hasOwn$
|
|
1103
|
+
isOwn = hasOwn$3(value, part);
|
|
1121
1104
|
value = value[part];
|
|
1122
1105
|
}
|
|
1123
1106
|
|
|
@@ -1134,16 +1117,16 @@ var define$5 = defineDataProperty$1;
|
|
|
1134
1117
|
var hasDescriptors$1 = hasPropertyDescriptors_1();
|
|
1135
1118
|
var gOPD$4 = gopd$1;
|
|
1136
1119
|
|
|
1137
|
-
var $TypeError$
|
|
1120
|
+
var $TypeError$8 = type;
|
|
1138
1121
|
var $floor$1 = GetIntrinsic$8('%Math.floor%');
|
|
1139
1122
|
|
|
1140
1123
|
/** @type {import('.')} */
|
|
1141
1124
|
var setFunctionLength = function setFunctionLength(fn, length) {
|
|
1142
1125
|
if (typeof fn !== 'function') {
|
|
1143
|
-
throw new $TypeError$
|
|
1126
|
+
throw new $TypeError$8('`fn` is not a function');
|
|
1144
1127
|
}
|
|
1145
1128
|
if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor$1(length) !== length) {
|
|
1146
|
-
throw new $TypeError$
|
|
1129
|
+
throw new $TypeError$8('`length` must be a positive 32-bit integer');
|
|
1147
1130
|
}
|
|
1148
1131
|
|
|
1149
1132
|
var loose = arguments.length > 2 && !!arguments[2];
|
|
@@ -1170,55 +1153,57 @@ var setFunctionLength = function setFunctionLength(fn, length) {
|
|
|
1170
1153
|
return fn;
|
|
1171
1154
|
};
|
|
1172
1155
|
|
|
1156
|
+
var bind = requireFunctionBind();
|
|
1157
|
+
var $apply = requireFunctionApply();
|
|
1158
|
+
var actualApply = actualApply$1;
|
|
1159
|
+
|
|
1160
|
+
/** @type {import('./applyBind')} */
|
|
1161
|
+
var applyBind = function applyBind() {
|
|
1162
|
+
return actualApply(bind, $apply, arguments);
|
|
1163
|
+
};
|
|
1164
|
+
|
|
1173
1165
|
(function (module) {
|
|
1174
1166
|
|
|
1175
|
-
var bind = requireFunctionBind();
|
|
1176
|
-
var GetIntrinsic = getIntrinsic;
|
|
1177
1167
|
var setFunctionLength$1 = setFunctionLength;
|
|
1178
1168
|
|
|
1179
|
-
var $TypeError = type;
|
|
1180
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
1181
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
1182
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
1183
|
-
|
|
1184
1169
|
var $defineProperty = esDefineProperty;
|
|
1185
|
-
|
|
1170
|
+
|
|
1171
|
+
var callBindBasic = callBindApplyHelpers;
|
|
1172
|
+
var applyBind$1 = applyBind;
|
|
1186
1173
|
|
|
1187
1174
|
module.exports = function callBind(originalFunction) {
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
}
|
|
1191
|
-
var func = $reflectApply(bind, $call, arguments);
|
|
1175
|
+
var func = callBindBasic(arguments);
|
|
1176
|
+
var adjustedLength = originalFunction.length - (arguments.length - 1);
|
|
1192
1177
|
return setFunctionLength$1(
|
|
1193
1178
|
func,
|
|
1194
|
-
1 +
|
|
1179
|
+
1 + (adjustedLength > 0 ? adjustedLength : 0),
|
|
1195
1180
|
true
|
|
1196
1181
|
);
|
|
1197
1182
|
};
|
|
1198
1183
|
|
|
1199
|
-
var applyBind = function applyBind() {
|
|
1200
|
-
return $reflectApply(bind, $apply, arguments);
|
|
1201
|
-
};
|
|
1202
|
-
|
|
1203
1184
|
if ($defineProperty) {
|
|
1204
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
1185
|
+
$defineProperty(module.exports, 'apply', { value: applyBind$1 });
|
|
1205
1186
|
} else {
|
|
1206
|
-
module.exports.apply = applyBind;
|
|
1187
|
+
module.exports.apply = applyBind$1;
|
|
1207
1188
|
}
|
|
1208
|
-
} (callBind$
|
|
1189
|
+
} (callBind$7));
|
|
1209
1190
|
|
|
1210
|
-
var callBindExports = callBind$
|
|
1191
|
+
var callBindExports = callBind$7.exports;
|
|
1211
1192
|
|
|
1212
1193
|
var GetIntrinsic$7 = getIntrinsic;
|
|
1213
1194
|
|
|
1214
|
-
var
|
|
1195
|
+
var callBindBasic = callBindApplyHelpers;
|
|
1215
1196
|
|
|
1216
|
-
|
|
1197
|
+
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
1198
|
+
var $indexOf$2 = callBindBasic([GetIntrinsic$7('%String.prototype.indexOf%')]);
|
|
1199
|
+
|
|
1200
|
+
/** @type {import('.')} */
|
|
1201
|
+
var callBound$i = function callBoundIntrinsic(name, allowMissing) {
|
|
1202
|
+
/* eslint no-extra-parens: 0 */
|
|
1217
1203
|
|
|
1218
|
-
var
|
|
1219
|
-
var intrinsic = GetIntrinsic$7(name, !!allowMissing);
|
|
1204
|
+
var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic$7(name, !!allowMissing));
|
|
1220
1205
|
if (typeof intrinsic === 'function' && $indexOf$2(name, '.prototype.') > -1) {
|
|
1221
|
-
return
|
|
1206
|
+
return callBindBasic(/** @type {const} */ ([intrinsic]));
|
|
1222
1207
|
}
|
|
1223
1208
|
return intrinsic;
|
|
1224
1209
|
};
|
|
@@ -1226,25 +1211,25 @@ var callBound$e = function callBoundIntrinsic(name, allowMissing) {
|
|
|
1226
1211
|
// modified from https://github.com/es-shims/es6-shim
|
|
1227
1212
|
var objectKeys$1 = objectKeys$2;
|
|
1228
1213
|
var hasSymbols$2 = requireShams()();
|
|
1229
|
-
var callBound$
|
|
1230
|
-
var
|
|
1231
|
-
var $push = callBound$
|
|
1232
|
-
var $propIsEnumerable = callBound$
|
|
1233
|
-
var originalGetSymbols = hasSymbols$2 ? Object.getOwnPropertySymbols : null;
|
|
1214
|
+
var callBound$h = callBound$i;
|
|
1215
|
+
var $Object$1 = esObjectAtoms;
|
|
1216
|
+
var $push = callBound$h('Array.prototype.push');
|
|
1217
|
+
var $propIsEnumerable = callBound$h('Object.prototype.propertyIsEnumerable');
|
|
1218
|
+
var originalGetSymbols = hasSymbols$2 ? $Object$1.getOwnPropertySymbols : null;
|
|
1234
1219
|
|
|
1235
1220
|
// eslint-disable-next-line no-unused-vars
|
|
1236
1221
|
var implementation$8 = function assign(target, source1) {
|
|
1237
1222
|
if (target == null) { throw new TypeError('target must be an object'); }
|
|
1238
|
-
var to =
|
|
1223
|
+
var to = $Object$1(target); // step 1
|
|
1239
1224
|
if (arguments.length === 1) {
|
|
1240
1225
|
return to; // step 2
|
|
1241
1226
|
}
|
|
1242
1227
|
for (var s = 1; s < arguments.length; ++s) {
|
|
1243
|
-
var from =
|
|
1228
|
+
var from = $Object$1(arguments[s]); // step 3.a.i
|
|
1244
1229
|
|
|
1245
1230
|
// step 3.a.ii:
|
|
1246
1231
|
var keys = objectKeys$1(from);
|
|
1247
|
-
var getSymbols = hasSymbols$2 && (Object.getOwnPropertySymbols || originalGetSymbols);
|
|
1232
|
+
var getSymbols = hasSymbols$2 && ($Object$1.getOwnPropertySymbols || originalGetSymbols);
|
|
1248
1233
|
if (getSymbols) {
|
|
1249
1234
|
var syms = getSymbols(from);
|
|
1250
1235
|
for (var j = 0; j < syms.length; ++j) {
|
|
@@ -1336,13 +1321,13 @@ var shim$5 = function shimAssign() {
|
|
|
1336
1321
|
};
|
|
1337
1322
|
|
|
1338
1323
|
var defineProperties = defineProperties_1;
|
|
1339
|
-
var callBind$
|
|
1324
|
+
var callBind$5 = callBindExports;
|
|
1340
1325
|
|
|
1341
1326
|
var implementation$6 = implementation$8;
|
|
1342
1327
|
var getPolyfill$4 = polyfill$4;
|
|
1343
1328
|
var shim$4 = shim$5;
|
|
1344
1329
|
|
|
1345
|
-
var polyfill$3 = callBind$
|
|
1330
|
+
var polyfill$3 = callBind$5.apply(getPolyfill$4());
|
|
1346
1331
|
// eslint-disable-next-line no-unused-vars
|
|
1347
1332
|
var bound = function assign(target, source1) {
|
|
1348
1333
|
return polyfill$3(Object, arguments);
|
|
@@ -1356,6 +1341,20 @@ defineProperties(bound, {
|
|
|
1356
1341
|
|
|
1357
1342
|
var object_assign = bound;
|
|
1358
1343
|
|
|
1344
|
+
var GetIntrinsic$6 = getIntrinsic;
|
|
1345
|
+
|
|
1346
|
+
var callBind$4 = callBindExports;
|
|
1347
|
+
|
|
1348
|
+
var $indexOf$1 = callBind$4(GetIntrinsic$6('String.prototype.indexOf'));
|
|
1349
|
+
|
|
1350
|
+
var callBound$g = function callBoundIntrinsic(name, allowMissing) {
|
|
1351
|
+
var intrinsic = GetIntrinsic$6(name, !!allowMissing);
|
|
1352
|
+
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.') > -1) {
|
|
1353
|
+
return callBind$4(intrinsic);
|
|
1354
|
+
}
|
|
1355
|
+
return intrinsic;
|
|
1356
|
+
};
|
|
1357
|
+
|
|
1359
1358
|
var functionsHaveNames = function functionsHaveNames() {
|
|
1360
1359
|
return typeof function f() {}.name === 'string';
|
|
1361
1360
|
};
|
|
@@ -1390,12 +1389,12 @@ var define$3 = defineDataProperty$1;
|
|
|
1390
1389
|
var hasDescriptors = hasPropertyDescriptors_1();
|
|
1391
1390
|
var functionsHaveConfigurableNames = functionsHaveNames_1.functionsHaveConfigurableNames();
|
|
1392
1391
|
|
|
1393
|
-
var $TypeError$
|
|
1392
|
+
var $TypeError$7 = type;
|
|
1394
1393
|
|
|
1395
1394
|
/** @type {import('.')} */
|
|
1396
1395
|
var setFunctionName$1 = function setFunctionName(fn, name) {
|
|
1397
1396
|
if (typeof fn !== 'function') {
|
|
1398
|
-
throw new $TypeError$
|
|
1397
|
+
throw new $TypeError$7('`fn` is not a function');
|
|
1399
1398
|
}
|
|
1400
1399
|
var loose = arguments.length > 2 && !!arguments[2];
|
|
1401
1400
|
if (!loose || functionsHaveConfigurableNames) {
|
|
@@ -1409,13 +1408,13 @@ var setFunctionName$1 = function setFunctionName(fn, name) {
|
|
|
1409
1408
|
};
|
|
1410
1409
|
|
|
1411
1410
|
var setFunctionName = setFunctionName$1;
|
|
1412
|
-
var $TypeError$
|
|
1411
|
+
var $TypeError$6 = type;
|
|
1413
1412
|
|
|
1414
1413
|
var $Object = Object;
|
|
1415
1414
|
|
|
1416
1415
|
var implementation$5 = setFunctionName(function flags() {
|
|
1417
1416
|
if (this == null || this !== $Object(this)) {
|
|
1418
|
-
throw new $TypeError$
|
|
1417
|
+
throw new $TypeError$6('RegExp.prototype.flags getter called on non-object');
|
|
1419
1418
|
}
|
|
1420
1419
|
var result = '';
|
|
1421
1420
|
if (this.hasIndices) {
|
|
@@ -1456,8 +1455,8 @@ var polyfill$2 = function getPolyfill() {
|
|
|
1456
1455
|
if (
|
|
1457
1456
|
descriptor
|
|
1458
1457
|
&& typeof descriptor.get === 'function'
|
|
1459
|
-
&&
|
|
1460
|
-
&&
|
|
1458
|
+
&& 'dotAll' in RegExp.prototype
|
|
1459
|
+
&& 'hasIndices' in RegExp.prototype
|
|
1461
1460
|
) {
|
|
1462
1461
|
/* eslint getter-return: 0 */
|
|
1463
1462
|
var calls = '';
|
|
@@ -1472,6 +1471,9 @@ var polyfill$2 = function getPolyfill() {
|
|
|
1472
1471
|
calls += 'y';
|
|
1473
1472
|
}
|
|
1474
1473
|
});
|
|
1474
|
+
|
|
1475
|
+
descriptor.get.call(o);
|
|
1476
|
+
|
|
1475
1477
|
if (calls === 'dy') {
|
|
1476
1478
|
return descriptor.get;
|
|
1477
1479
|
}
|
|
@@ -1482,18 +1484,18 @@ var polyfill$2 = function getPolyfill() {
|
|
|
1482
1484
|
|
|
1483
1485
|
var supportsDescriptors = defineProperties_1.supportsDescriptors;
|
|
1484
1486
|
var getPolyfill$3 = polyfill$2;
|
|
1485
|
-
var gOPD$2 =
|
|
1487
|
+
var gOPD$2 = gopd$1;
|
|
1486
1488
|
var defineProperty = Object.defineProperty;
|
|
1487
|
-
var
|
|
1488
|
-
var getProto =
|
|
1489
|
+
var $TypeError$5 = esErrors;
|
|
1490
|
+
var getProto$1 = getProto$3;
|
|
1489
1491
|
var regex = /a/;
|
|
1490
1492
|
|
|
1491
1493
|
var shim$3 = function shimFlags() {
|
|
1492
|
-
if (!supportsDescriptors || !getProto) {
|
|
1493
|
-
throw new
|
|
1494
|
+
if (!supportsDescriptors || !getProto$1) {
|
|
1495
|
+
throw new $TypeError$5('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');
|
|
1494
1496
|
}
|
|
1495
1497
|
var polyfill = getPolyfill$3();
|
|
1496
|
-
var proto = getProto(regex);
|
|
1498
|
+
var proto = getProto$1(regex);
|
|
1497
1499
|
var descriptor = gOPD$2(proto, 'flags');
|
|
1498
1500
|
if (!descriptor || descriptor.get !== polyfill) {
|
|
1499
1501
|
defineProperty(proto, 'flags', {
|
|
@@ -1532,35 +1534,46 @@ var shams = function hasToStringTagShams() {
|
|
|
1532
1534
|
};
|
|
1533
1535
|
|
|
1534
1536
|
var hasToStringTag$7 = shams();
|
|
1535
|
-
var callBound$
|
|
1537
|
+
var callBound$f = callBound$i;
|
|
1536
1538
|
|
|
1537
|
-
var $toString$
|
|
1539
|
+
var $toString$7 = callBound$f('Object.prototype.toString');
|
|
1538
1540
|
|
|
1541
|
+
/** @type {import('.')} */
|
|
1539
1542
|
var isStandardArguments = function isArguments(value) {
|
|
1540
|
-
if (
|
|
1543
|
+
if (
|
|
1544
|
+
hasToStringTag$7
|
|
1545
|
+
&& value
|
|
1546
|
+
&& typeof value === 'object'
|
|
1547
|
+
&& Symbol.toStringTag in value
|
|
1548
|
+
) {
|
|
1541
1549
|
return false;
|
|
1542
1550
|
}
|
|
1543
|
-
return $toString$
|
|
1551
|
+
return $toString$7(value) === '[object Arguments]';
|
|
1544
1552
|
};
|
|
1545
1553
|
|
|
1554
|
+
/** @type {import('.')} */
|
|
1546
1555
|
var isLegacyArguments = function isArguments(value) {
|
|
1547
1556
|
if (isStandardArguments(value)) {
|
|
1548
1557
|
return true;
|
|
1549
1558
|
}
|
|
1550
|
-
return value !== null
|
|
1551
|
-
typeof value === 'object'
|
|
1552
|
-
|
|
1553
|
-
value.length
|
|
1554
|
-
|
|
1555
|
-
$toString$
|
|
1559
|
+
return value !== null
|
|
1560
|
+
&& typeof value === 'object'
|
|
1561
|
+
&& 'length' in value
|
|
1562
|
+
&& typeof value.length === 'number'
|
|
1563
|
+
&& value.length >= 0
|
|
1564
|
+
&& $toString$7(value) !== '[object Array]'
|
|
1565
|
+
&& 'callee' in value
|
|
1566
|
+
&& $toString$7(value.callee) === '[object Function]';
|
|
1556
1567
|
};
|
|
1557
1568
|
|
|
1558
1569
|
var supportsStandardArguments = (function () {
|
|
1559
1570
|
return isStandardArguments(arguments);
|
|
1560
1571
|
}());
|
|
1561
1572
|
|
|
1573
|
+
// @ts-expect-error TODO make this not error
|
|
1562
1574
|
isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
|
|
1563
1575
|
|
|
1576
|
+
/** @type {import('.')} */
|
|
1564
1577
|
var isArguments$2 = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
1565
1578
|
|
|
1566
1579
|
var _nodeResolve_empty = {};
|
|
@@ -1657,31 +1670,31 @@ var quoteREs = {
|
|
|
1657
1670
|
var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
1658
1671
|
var opts = options || {};
|
|
1659
1672
|
|
|
1660
|
-
if (has
|
|
1673
|
+
if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) {
|
|
1661
1674
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
1662
1675
|
}
|
|
1663
1676
|
if (
|
|
1664
|
-
has
|
|
1677
|
+
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
1665
1678
|
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
1666
1679
|
: opts.maxStringLength !== null
|
|
1667
1680
|
)
|
|
1668
1681
|
) {
|
|
1669
1682
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
1670
1683
|
}
|
|
1671
|
-
var customInspect = has
|
|
1684
|
+
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
1672
1685
|
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
1673
1686
|
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
1674
1687
|
}
|
|
1675
1688
|
|
|
1676
1689
|
if (
|
|
1677
|
-
has
|
|
1690
|
+
has(opts, 'indent')
|
|
1678
1691
|
&& opts.indent !== null
|
|
1679
1692
|
&& opts.indent !== '\t'
|
|
1680
1693
|
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
1681
1694
|
) {
|
|
1682
1695
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
1683
1696
|
}
|
|
1684
|
-
if (has
|
|
1697
|
+
if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
|
1685
1698
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
1686
1699
|
}
|
|
1687
1700
|
var numericSeparator = opts.numericSeparator;
|
|
@@ -1714,7 +1727,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
1714
1727
|
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
1715
1728
|
if (typeof depth === 'undefined') { depth = 0; }
|
|
1716
1729
|
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
1717
|
-
return isArray$
|
|
1730
|
+
return isArray$3(obj) ? '[Array]' : '[Object]';
|
|
1718
1731
|
}
|
|
1719
1732
|
|
|
1720
1733
|
var indent = getIndent(opts, depth);
|
|
@@ -1734,7 +1747,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
1734
1747
|
var newOpts = {
|
|
1735
1748
|
depth: opts.depth
|
|
1736
1749
|
};
|
|
1737
|
-
if (has
|
|
1750
|
+
if (has(opts, 'quoteStyle')) {
|
|
1738
1751
|
newOpts.quoteStyle = opts.quoteStyle;
|
|
1739
1752
|
}
|
|
1740
1753
|
return inspect_(value, newOpts, depth + 1, seen);
|
|
@@ -1762,7 +1775,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
1762
1775
|
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
|
1763
1776
|
return s;
|
|
1764
1777
|
}
|
|
1765
|
-
if (isArray$
|
|
1778
|
+
if (isArray$3(obj)) {
|
|
1766
1779
|
if (obj.length === 0) { return '[]'; }
|
|
1767
1780
|
var xs = arrObjKeys(obj, inspect);
|
|
1768
1781
|
if (indent && !singleLineValues(xs)) {
|
|
@@ -1839,7 +1852,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
1839
1852
|
var ys = arrObjKeys(obj, inspect);
|
|
1840
1853
|
var isPlainObject = gPO$1 ? gPO$1(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
1841
1854
|
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
1842
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice$1.call(toStr$
|
|
1855
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice$1.call(toStr$3(obj), 8, -1) : protoTag ? 'Object' : '';
|
|
1843
1856
|
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
1844
1857
|
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
|
1845
1858
|
if (ys.length === 0) { return tag + '{}'; }
|
|
@@ -1861,13 +1874,16 @@ function quote(s) {
|
|
|
1861
1874
|
return $replace.call(String(s), /"/g, '"');
|
|
1862
1875
|
}
|
|
1863
1876
|
|
|
1864
|
-
function
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
function
|
|
1868
|
-
function
|
|
1869
|
-
function
|
|
1870
|
-
function
|
|
1877
|
+
function canTrustToString(obj) {
|
|
1878
|
+
return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined'));
|
|
1879
|
+
}
|
|
1880
|
+
function isArray$3(obj) { return toStr$3(obj) === '[object Array]' && canTrustToString(obj); }
|
|
1881
|
+
function isDate$1(obj) { return toStr$3(obj) === '[object Date]' && canTrustToString(obj); }
|
|
1882
|
+
function isRegExp(obj) { return toStr$3(obj) === '[object RegExp]' && canTrustToString(obj); }
|
|
1883
|
+
function isError(obj) { return toStr$3(obj) === '[object Error]' && canTrustToString(obj); }
|
|
1884
|
+
function isString$3(obj) { return toStr$3(obj) === '[object String]' && canTrustToString(obj); }
|
|
1885
|
+
function isNumber$1(obj) { return toStr$3(obj) === '[object Number]' && canTrustToString(obj); }
|
|
1886
|
+
function isBoolean$1(obj) { return toStr$3(obj) === '[object Boolean]' && canTrustToString(obj); }
|
|
1871
1887
|
|
|
1872
1888
|
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
1873
1889
|
function isSymbol$2(obj) {
|
|
@@ -1898,12 +1914,12 @@ function isBigInt$1(obj) {
|
|
|
1898
1914
|
return false;
|
|
1899
1915
|
}
|
|
1900
1916
|
|
|
1901
|
-
var hasOwn$
|
|
1902
|
-
function has
|
|
1903
|
-
return hasOwn$
|
|
1917
|
+
var hasOwn$2 = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
|
1918
|
+
function has(obj, key) {
|
|
1919
|
+
return hasOwn$2.call(obj, key);
|
|
1904
1920
|
}
|
|
1905
1921
|
|
|
1906
|
-
function toStr$
|
|
1922
|
+
function toStr$3(obj) {
|
|
1907
1923
|
return objectToString.call(obj);
|
|
1908
1924
|
}
|
|
1909
1925
|
|
|
@@ -2075,12 +2091,12 @@ function indentedJoin(xs, indent) {
|
|
|
2075
2091
|
}
|
|
2076
2092
|
|
|
2077
2093
|
function arrObjKeys(obj, inspect) {
|
|
2078
|
-
var isArr = isArray$
|
|
2094
|
+
var isArr = isArray$3(obj);
|
|
2079
2095
|
var xs = [];
|
|
2080
2096
|
if (isArr) {
|
|
2081
2097
|
xs.length = obj.length;
|
|
2082
2098
|
for (var i = 0; i < obj.length; i++) {
|
|
2083
|
-
xs[i] = has
|
|
2099
|
+
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
|
|
2084
2100
|
}
|
|
2085
2101
|
}
|
|
2086
2102
|
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
@@ -2093,7 +2109,7 @@ function arrObjKeys(obj, inspect) {
|
|
|
2093
2109
|
}
|
|
2094
2110
|
|
|
2095
2111
|
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
|
2096
|
-
if (!has
|
|
2112
|
+
if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
2097
2113
|
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
2098
2114
|
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
2099
2115
|
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
|
@@ -2148,7 +2164,7 @@ var listGetNode = function (list, key, isDelete) {
|
|
|
2148
2164
|
/** @type {import('./list.d.ts').listGet} */
|
|
2149
2165
|
var listGet = function (objects, key) {
|
|
2150
2166
|
if (!objects) {
|
|
2151
|
-
return void
|
|
2167
|
+
return void undefined;
|
|
2152
2168
|
}
|
|
2153
2169
|
var node = listGetNode(objects, key);
|
|
2154
2170
|
return node && node.value;
|
|
@@ -2201,7 +2217,7 @@ var sideChannelList = function getSideChannelList() {
|
|
|
2201
2217
|
var root = $o && $o.next;
|
|
2202
2218
|
var deletedNode = listDelete($o, key);
|
|
2203
2219
|
if (deletedNode && root && root === deletedNode) {
|
|
2204
|
-
$o = void
|
|
2220
|
+
$o = void undefined;
|
|
2205
2221
|
}
|
|
2206
2222
|
return !!deletedNode;
|
|
2207
2223
|
},
|
|
@@ -2215,7 +2231,7 @@ var sideChannelList = function getSideChannelList() {
|
|
|
2215
2231
|
if (!$o) {
|
|
2216
2232
|
// 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
|
|
2217
2233
|
$o = {
|
|
2218
|
-
next: void
|
|
2234
|
+
next: void undefined
|
|
2219
2235
|
};
|
|
2220
2236
|
}
|
|
2221
2237
|
// eslint-disable-next-line no-extra-parens
|
|
@@ -2226,40 +2242,23 @@ var sideChannelList = function getSideChannelList() {
|
|
|
2226
2242
|
return channel;
|
|
2227
2243
|
};
|
|
2228
2244
|
|
|
2229
|
-
var GetIntrinsic$6 = getIntrinsic;
|
|
2230
|
-
|
|
2231
|
-
var callBindBasic = callBindApplyHelpers;
|
|
2232
|
-
|
|
2233
|
-
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
2234
|
-
var $indexOf$1 = callBindBasic([GetIntrinsic$6('%String.prototype.indexOf%')]);
|
|
2235
|
-
|
|
2236
|
-
/** @type {import('.')} */
|
|
2237
|
-
var callBound$b = function callBoundIntrinsic(name, allowMissing) {
|
|
2238
|
-
// eslint-disable-next-line no-extra-parens
|
|
2239
|
-
var intrinsic = /** @type {Parameters<typeof callBindBasic>[0][0]} */ (GetIntrinsic$6(name, !!allowMissing));
|
|
2240
|
-
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.') > -1) {
|
|
2241
|
-
return callBindBasic([intrinsic]);
|
|
2242
|
-
}
|
|
2243
|
-
return intrinsic;
|
|
2244
|
-
};
|
|
2245
|
-
|
|
2246
2245
|
var GetIntrinsic$5 = getIntrinsic;
|
|
2247
|
-
var callBound$
|
|
2246
|
+
var callBound$e = callBound$i;
|
|
2248
2247
|
var inspect$2 = objectInspect;
|
|
2249
2248
|
|
|
2250
2249
|
var $TypeError$3 = type;
|
|
2251
2250
|
var $Map$3 = GetIntrinsic$5('%Map%', true);
|
|
2252
2251
|
|
|
2253
2252
|
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
|
|
2254
|
-
var $mapGet$1 = callBound$
|
|
2253
|
+
var $mapGet$1 = callBound$e('Map.prototype.get', true);
|
|
2255
2254
|
/** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
|
|
2256
|
-
var $mapSet = callBound$
|
|
2255
|
+
var $mapSet = callBound$e('Map.prototype.set', true);
|
|
2257
2256
|
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
2258
|
-
var $mapHas$5 = callBound$
|
|
2257
|
+
var $mapHas$5 = callBound$e('Map.prototype.has', true);
|
|
2259
2258
|
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
2260
|
-
var $mapDelete = callBound$
|
|
2259
|
+
var $mapDelete = callBound$e('Map.prototype.delete', true);
|
|
2261
2260
|
/** @type {<K, V>(thisArg: Map<K, V>) => number} */
|
|
2262
|
-
var $mapSize$1 = callBound$
|
|
2261
|
+
var $mapSize$1 = callBound$e('Map.prototype.size', true);
|
|
2263
2262
|
|
|
2264
2263
|
/** @type {import('.')} */
|
|
2265
2264
|
var sideChannelMap = !!$Map$3 && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
|
|
@@ -2280,7 +2279,7 @@ var sideChannelMap = !!$Map$3 && /** @type {Exclude<import('.'), false>} */ func
|
|
|
2280
2279
|
if ($m) {
|
|
2281
2280
|
var result = $mapDelete($m, key);
|
|
2282
2281
|
if ($mapSize$1($m) === 0) {
|
|
2283
|
-
$m = void
|
|
2282
|
+
$m = void undefined;
|
|
2284
2283
|
}
|
|
2285
2284
|
return result;
|
|
2286
2285
|
}
|
|
@@ -2311,7 +2310,7 @@ var sideChannelMap = !!$Map$3 && /** @type {Exclude<import('.'), false>} */ func
|
|
|
2311
2310
|
};
|
|
2312
2311
|
|
|
2313
2312
|
var GetIntrinsic$4 = getIntrinsic;
|
|
2314
|
-
var callBound$
|
|
2313
|
+
var callBound$d = callBound$i;
|
|
2315
2314
|
var inspect$1 = objectInspect;
|
|
2316
2315
|
var getSideChannelMap$1 = sideChannelMap;
|
|
2317
2316
|
|
|
@@ -2319,13 +2318,13 @@ var $TypeError$2 = type;
|
|
|
2319
2318
|
var $WeakMap$1 = GetIntrinsic$4('%WeakMap%', true);
|
|
2320
2319
|
|
|
2321
2320
|
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */
|
|
2322
|
-
var $weakMapGet = callBound$
|
|
2321
|
+
var $weakMapGet = callBound$d('WeakMap.prototype.get', true);
|
|
2323
2322
|
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K, value: V) => void} */
|
|
2324
|
-
var $weakMapSet = callBound$
|
|
2323
|
+
var $weakMapSet = callBound$d('WeakMap.prototype.set', true);
|
|
2325
2324
|
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
2326
|
-
var $weakMapHas = callBound$
|
|
2325
|
+
var $weakMapHas = callBound$d('WeakMap.prototype.has', true);
|
|
2327
2326
|
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
2328
|
-
var $weakMapDelete = callBound$
|
|
2327
|
+
var $weakMapDelete = callBound$d('WeakMap.prototype.delete', true);
|
|
2329
2328
|
|
|
2330
2329
|
/** @type {import('.')} */
|
|
2331
2330
|
var sideChannelWeakmap = $WeakMap$1
|
|
@@ -2435,11 +2434,16 @@ var sideChannel = function getSideChannel() {
|
|
|
2435
2434
|
return channel;
|
|
2436
2435
|
};
|
|
2437
2436
|
|
|
2438
|
-
|
|
2437
|
+
/** @typedef {`$${import('.').InternalSlot}`} SaltedInternalSlot */
|
|
2438
|
+
/** @typedef {{ [k in SaltedInternalSlot]?: unknown }} SlotsObject */
|
|
2439
|
+
|
|
2440
|
+
var hasOwn$1 = requireHasown();
|
|
2441
|
+
/** @type {import('side-channel').Channel<object, SlotsObject>} */
|
|
2439
2442
|
var channel = sideChannel();
|
|
2440
2443
|
|
|
2441
2444
|
var $TypeError = type;
|
|
2442
2445
|
|
|
2446
|
+
/** @type {import('.')} */
|
|
2443
2447
|
var SLOT$1 = {
|
|
2444
2448
|
assert: function (O, slot) {
|
|
2445
2449
|
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
@@ -2461,7 +2465,8 @@ var SLOT$1 = {
|
|
|
2461
2465
|
throw new $TypeError('`slot` must be a string');
|
|
2462
2466
|
}
|
|
2463
2467
|
var slots = channel.get(O);
|
|
2464
|
-
|
|
2468
|
+
// eslint-disable-next-line no-extra-parens
|
|
2469
|
+
return slots && slots[/** @type {SaltedInternalSlot} */ ('$' + slot)];
|
|
2465
2470
|
},
|
|
2466
2471
|
has: function (O, slot) {
|
|
2467
2472
|
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
@@ -2471,7 +2476,8 @@ var SLOT$1 = {
|
|
|
2471
2476
|
throw new $TypeError('`slot` must be a string');
|
|
2472
2477
|
}
|
|
2473
2478
|
var slots = channel.get(O);
|
|
2474
|
-
|
|
2479
|
+
// eslint-disable-next-line no-extra-parens
|
|
2480
|
+
return !!slots && hasOwn$1(slots, /** @type {SaltedInternalSlot} */ ('$' + slot));
|
|
2475
2481
|
},
|
|
2476
2482
|
set: function (O, slot, V) {
|
|
2477
2483
|
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
@@ -2485,7 +2491,8 @@ var SLOT$1 = {
|
|
|
2485
2491
|
slots = {};
|
|
2486
2492
|
channel.set(O, slots);
|
|
2487
2493
|
}
|
|
2488
|
-
|
|
2494
|
+
// eslint-disable-next-line no-extra-parens
|
|
2495
|
+
slots[/** @type {SaltedInternalSlot} */ ('$' + slot)] = V;
|
|
2489
2496
|
}
|
|
2490
2497
|
};
|
|
2491
2498
|
|
|
@@ -2496,10 +2503,11 @@ if (Object.freeze) {
|
|
|
2496
2503
|
var internalSlot = SLOT$1;
|
|
2497
2504
|
|
|
2498
2505
|
var SLOT = internalSlot;
|
|
2506
|
+
var $SyntaxError = syntax;
|
|
2499
2507
|
|
|
2500
|
-
var $SyntaxError = SyntaxError;
|
|
2501
2508
|
var $StopIteration = typeof StopIteration === 'object' ? StopIteration : null;
|
|
2502
2509
|
|
|
2510
|
+
/** @type {import('.')} */
|
|
2503
2511
|
var stopIterationIterator = function getStopIterationIterator(origIterator) {
|
|
2504
2512
|
if (!$StopIteration) {
|
|
2505
2513
|
throw new $SyntaxError('this environment lacks StopIteration');
|
|
@@ -2507,14 +2515,18 @@ var stopIterationIterator = function getStopIterationIterator(origIterator) {
|
|
|
2507
2515
|
|
|
2508
2516
|
SLOT.set(origIterator, '[[Done]]', false);
|
|
2509
2517
|
|
|
2518
|
+
/** @template T @typedef {T extends Iterator<infer U> ? U : never} IteratorType */
|
|
2519
|
+
/** @typedef {IteratorType<ReturnType<typeof getStopIterationIterator>>} T */
|
|
2510
2520
|
var siIterator = {
|
|
2511
|
-
next: function next() {
|
|
2512
|
-
|
|
2513
|
-
var
|
|
2521
|
+
next: /** @type {() => IteratorResult<T>} */ function next() {
|
|
2522
|
+
// eslint-disable-next-line no-extra-parens
|
|
2523
|
+
var iterator = /** @type {typeof origIterator} */ (SLOT.get(this, '[[Iterator]]'));
|
|
2524
|
+
var done = !!SLOT.get(iterator, '[[Done]]');
|
|
2514
2525
|
try {
|
|
2515
2526
|
return {
|
|
2516
2527
|
done: done,
|
|
2517
|
-
|
|
2528
|
+
// eslint-disable-next-line no-extra-parens
|
|
2529
|
+
value: done ? void undefined : /** @type {T} */ (iterator.next())
|
|
2518
2530
|
};
|
|
2519
2531
|
} catch (e) {
|
|
2520
2532
|
SLOT.set(iterator, '[[Done]]', true);
|
|
@@ -2523,7 +2535,7 @@ var stopIterationIterator = function getStopIterationIterator(origIterator) {
|
|
|
2523
2535
|
}
|
|
2524
2536
|
return {
|
|
2525
2537
|
done: true,
|
|
2526
|
-
value: void
|
|
2538
|
+
value: void undefined
|
|
2527
2539
|
};
|
|
2528
2540
|
}
|
|
2529
2541
|
}
|
|
@@ -2531,6 +2543,7 @@ var stopIterationIterator = function getStopIterationIterator(origIterator) {
|
|
|
2531
2543
|
|
|
2532
2544
|
SLOT.set(siIterator, '[[Iterator]]', origIterator);
|
|
2533
2545
|
|
|
2546
|
+
// @ts-expect-error TODO FIXME
|
|
2534
2547
|
return siIterator;
|
|
2535
2548
|
};
|
|
2536
2549
|
|
|
@@ -2540,27 +2553,34 @@ var isarray = Array.isArray || function (arr) {
|
|
|
2540
2553
|
return toString.call(arr) == '[object Array]';
|
|
2541
2554
|
};
|
|
2542
2555
|
|
|
2543
|
-
var
|
|
2556
|
+
var callBound$c = callBound$i;
|
|
2557
|
+
|
|
2558
|
+
/** @type {(receiver: ThisParameterType<typeof String.prototype.valueOf>, ...args: Parameters<typeof String.prototype.valueOf>) => ReturnType<typeof String.prototype.valueOf>} */
|
|
2559
|
+
var $strValueOf = callBound$c('String.prototype.valueOf');
|
|
2560
|
+
|
|
2561
|
+
/** @type {import('.')} */
|
|
2544
2562
|
var tryStringObject = function tryStringObject(value) {
|
|
2545
2563
|
try {
|
|
2546
|
-
|
|
2564
|
+
$strValueOf(value);
|
|
2547
2565
|
return true;
|
|
2548
2566
|
} catch (e) {
|
|
2549
2567
|
return false;
|
|
2550
2568
|
}
|
|
2551
2569
|
};
|
|
2552
|
-
|
|
2570
|
+
/** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
|
|
2571
|
+
var $toString$6 = callBound$c('Object.prototype.toString');
|
|
2553
2572
|
var strClass = '[object String]';
|
|
2554
2573
|
var hasToStringTag$6 = shams();
|
|
2555
2574
|
|
|
2575
|
+
/** @type {import('.')} */
|
|
2556
2576
|
var isString$2 = function isString(value) {
|
|
2557
2577
|
if (typeof value === 'string') {
|
|
2558
2578
|
return true;
|
|
2559
2579
|
}
|
|
2560
|
-
if (typeof value !== 'object') {
|
|
2580
|
+
if (!value || typeof value !== 'object') {
|
|
2561
2581
|
return false;
|
|
2562
2582
|
}
|
|
2563
|
-
return hasToStringTag$6 ? tryStringObject(value) :
|
|
2583
|
+
return hasToStringTag$6 ? tryStringObject(value) : $toString$6(value) === strClass;
|
|
2564
2584
|
};
|
|
2565
2585
|
|
|
2566
2586
|
/** @const */
|
|
@@ -2688,15 +2708,15 @@ if (hasSymbols$4() || requireShams()()) {
|
|
|
2688
2708
|
};
|
|
2689
2709
|
} else {
|
|
2690
2710
|
// Symbol is not available, native or shammed
|
|
2691
|
-
var isArray$
|
|
2711
|
+
var isArray$2 = isarray;
|
|
2692
2712
|
var isString$1 = isString$2;
|
|
2693
2713
|
var GetIntrinsic$3 = getIntrinsic;
|
|
2694
2714
|
var $Map = GetIntrinsic$3('%Map%', true);
|
|
2695
2715
|
var $Set$1 = GetIntrinsic$3('%Set%', true);
|
|
2696
|
-
var callBound$
|
|
2697
|
-
var $arrayPush = callBound$
|
|
2698
|
-
var $charCodeAt = callBound$
|
|
2699
|
-
var $stringSlice = callBound$
|
|
2716
|
+
var callBound$b = callBound$g;
|
|
2717
|
+
var $arrayPush = callBound$b('Array.prototype.push');
|
|
2718
|
+
var $charCodeAt = callBound$b('String.prototype.charCodeAt');
|
|
2719
|
+
var $stringSlice = callBound$b('String.prototype.slice');
|
|
2700
2720
|
|
|
2701
2721
|
var advanceStringIndex = function advanceStringIndex(S, index) {
|
|
2702
2722
|
var length = S.length;
|
|
@@ -2736,7 +2756,7 @@ if (hasSymbols$4() || requireShams()()) {
|
|
|
2736
2756
|
};
|
|
2737
2757
|
|
|
2738
2758
|
var getNonCollectionIterator = function getNonCollectionIterator(iterable, noPrimordialCollections) {
|
|
2739
|
-
if (isArray$
|
|
2759
|
+
if (isArray$2(iterable) || isArguments$1(iterable)) {
|
|
2740
2760
|
return getArrayIterator(iterable);
|
|
2741
2761
|
}
|
|
2742
2762
|
if (isString$1(iterable)) {
|
|
@@ -2787,21 +2807,21 @@ if (hasSymbols$4() || requireShams()()) {
|
|
|
2787
2807
|
var isSet$1 = isSet$2;
|
|
2788
2808
|
|
|
2789
2809
|
// Firefox >= 27, IE 11, Safari 6.2 - 9, Edge 11, es6-shim in older envs, all have forEach
|
|
2790
|
-
var $mapForEach = callBound$
|
|
2791
|
-
var $setForEach = callBound$
|
|
2810
|
+
var $mapForEach = callBound$b('Map.prototype.forEach', true);
|
|
2811
|
+
var $setForEach = callBound$b('Set.prototype.forEach', true);
|
|
2792
2812
|
if (typeof process === 'undefined' || !process.versions || !process.versions.node) { // "if is not node"
|
|
2793
2813
|
|
|
2794
2814
|
// Firefox 17 - 26 has `.iterator()`, whose iterator `.next()` either
|
|
2795
2815
|
// returns a value, or throws a StopIteration object. These browsers
|
|
2796
2816
|
// do not have any other mechanism for iteration.
|
|
2797
|
-
var $mapIterator = callBound$
|
|
2798
|
-
var $setIterator = callBound$
|
|
2817
|
+
var $mapIterator = callBound$b('Map.prototype.iterator', true);
|
|
2818
|
+
var $setIterator = callBound$b('Set.prototype.iterator', true);
|
|
2799
2819
|
}
|
|
2800
2820
|
// Firefox 27-35, and some older es6-shim versions, use a string "@@iterator" property
|
|
2801
2821
|
// this returns a proper iterator object, so we should use it instead of forEach.
|
|
2802
2822
|
// newer es6-shim versions use a string "_es6-shim iterator_" property.
|
|
2803
|
-
var $mapAtAtIterator = callBound$
|
|
2804
|
-
var $setAtAtIterator = callBound$
|
|
2823
|
+
var $mapAtAtIterator = callBound$b('Map.prototype.@@iterator', true) || callBound$b('Map.prototype._es6-shim iterator_', true);
|
|
2824
|
+
var $setAtAtIterator = callBound$b('Set.prototype.@@iterator', true) || callBound$b('Set.prototype._es6-shim iterator_', true);
|
|
2805
2825
|
|
|
2806
2826
|
var getCollectionIterator = function getCollectionIterator(iterable) {
|
|
2807
2827
|
if (isMap$1(iterable)) {
|
|
@@ -2898,13 +2918,13 @@ define(polyfill, {
|
|
|
2898
2918
|
var objectIs = polyfill;
|
|
2899
2919
|
|
|
2900
2920
|
var callBind$1 = callBindExports;
|
|
2901
|
-
var callBound$
|
|
2921
|
+
var callBound$a = callBound$i;
|
|
2902
2922
|
var GetIntrinsic$2 = getIntrinsic;
|
|
2903
2923
|
|
|
2904
2924
|
var $ArrayBuffer = GetIntrinsic$2('%ArrayBuffer%', true);
|
|
2905
2925
|
/** @type {undefined | ((receiver: ArrayBuffer) => number) | ((receiver: unknown) => never)} */
|
|
2906
|
-
var $byteLength$2 = callBound$
|
|
2907
|
-
var $toString$
|
|
2926
|
+
var $byteLength$2 = callBound$a('ArrayBuffer.prototype.byteLength', true);
|
|
2927
|
+
var $toString$5 = callBound$a('Object.prototype.toString');
|
|
2908
2928
|
|
|
2909
2929
|
// in node 0.10, ArrayBuffers have no prototype methods, but have an own slot-checking `slice` method
|
|
2910
2930
|
var abSlice = !!$ArrayBuffer && !$byteLength$2 && new $ArrayBuffer(0).slice;
|
|
@@ -2932,49 +2952,58 @@ var isArrayBuffer$2 = $byteLength$2 || $abSlice
|
|
|
2932
2952
|
: $ArrayBuffer
|
|
2933
2953
|
// in node 0.8, ArrayBuffers have no prototype or own methods, but also no Symbol.toStringTag
|
|
2934
2954
|
? function isArrayBuffer(obj) {
|
|
2935
|
-
return $toString$
|
|
2955
|
+
return $toString$5(obj) === '[object ArrayBuffer]';
|
|
2936
2956
|
}
|
|
2957
|
+
// @ts-expect-error
|
|
2937
2958
|
: function isArrayBuffer(obj) { // eslint-disable-line no-unused-vars
|
|
2938
2959
|
return false;
|
|
2939
2960
|
};
|
|
2940
2961
|
|
|
2941
|
-
var
|
|
2962
|
+
var callBound$9 = callBound$i;
|
|
2963
|
+
|
|
2964
|
+
var getDay = callBound$9('Date.prototype.getDay');
|
|
2965
|
+
/** @type {import('.')} */
|
|
2942
2966
|
var tryDateObject = function tryDateGetDayCall(value) {
|
|
2943
2967
|
try {
|
|
2944
|
-
getDay
|
|
2968
|
+
getDay(value);
|
|
2945
2969
|
return true;
|
|
2946
2970
|
} catch (e) {
|
|
2947
2971
|
return false;
|
|
2948
2972
|
}
|
|
2949
2973
|
};
|
|
2950
2974
|
|
|
2951
|
-
|
|
2975
|
+
/** @type {(value: unknown) => string} */
|
|
2976
|
+
var toStr$2 = callBound$9('Object.prototype.toString');
|
|
2952
2977
|
var dateClass = '[object Date]';
|
|
2953
2978
|
var hasToStringTag$5 = shams();
|
|
2954
2979
|
|
|
2980
|
+
/** @type {import('.')} */
|
|
2955
2981
|
var isDateObject = function isDateObject(value) {
|
|
2956
2982
|
if (typeof value !== 'object' || value === null) {
|
|
2957
2983
|
return false;
|
|
2958
2984
|
}
|
|
2959
|
-
return hasToStringTag$5 ? tryDateObject(value) : toStr$
|
|
2985
|
+
return hasToStringTag$5 ? tryDateObject(value) : toStr$2(value) === dateClass;
|
|
2960
2986
|
};
|
|
2961
2987
|
|
|
2962
|
-
var callBound$
|
|
2988
|
+
var callBound$8 = callBound$i;
|
|
2963
2989
|
var hasToStringTag$4 = shams();
|
|
2964
|
-
var
|
|
2965
|
-
var $
|
|
2966
|
-
|
|
2967
|
-
|
|
2990
|
+
var hasOwn = requireHasown();
|
|
2991
|
+
var gOPD$1 = gopd$1;
|
|
2992
|
+
|
|
2993
|
+
/** @type {import('.')} */
|
|
2994
|
+
var fn;
|
|
2968
2995
|
|
|
2969
2996
|
if (hasToStringTag$4) {
|
|
2970
|
-
|
|
2971
|
-
$exec = callBound$
|
|
2972
|
-
|
|
2997
|
+
/** @type {(receiver: ThisParameterType<typeof RegExp.prototype.exec>, ...args: Parameters<typeof RegExp.prototype.exec>) => ReturnType<typeof RegExp.prototype.exec>} */
|
|
2998
|
+
var $exec = callBound$8('RegExp.prototype.exec');
|
|
2999
|
+
/** @type {object} */
|
|
3000
|
+
var isRegexMarker = {};
|
|
2973
3001
|
|
|
2974
3002
|
var throwRegexMarker = function () {
|
|
2975
3003
|
throw isRegexMarker;
|
|
2976
3004
|
};
|
|
2977
|
-
|
|
3005
|
+
/** @type {{ toString(): never, valueOf(): never, [Symbol.toPrimitive]?(): never }} */
|
|
3006
|
+
var badStringifier = {
|
|
2978
3007
|
toString: throwRegexMarker,
|
|
2979
3008
|
valueOf: throwRegexMarker
|
|
2980
3009
|
};
|
|
@@ -2982,43 +3011,52 @@ if (hasToStringTag$4) {
|
|
|
2982
3011
|
if (typeof Symbol.toPrimitive === 'symbol') {
|
|
2983
3012
|
badStringifier[Symbol.toPrimitive] = throwRegexMarker;
|
|
2984
3013
|
}
|
|
2985
|
-
}
|
|
2986
3014
|
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
var regexClass = '[object RegExp]';
|
|
2990
|
-
|
|
2991
|
-
var isRegex$1 = hasToStringTag$4
|
|
3015
|
+
/** @type {import('.')} */
|
|
3016
|
+
// @ts-expect-error TS can't figure out that the $exec call always throws
|
|
2992
3017
|
// eslint-disable-next-line consistent-return
|
|
2993
|
-
|
|
3018
|
+
fn = function isRegex(value) {
|
|
2994
3019
|
if (!value || typeof value !== 'object') {
|
|
2995
3020
|
return false;
|
|
2996
3021
|
}
|
|
2997
3022
|
|
|
2998
|
-
|
|
2999
|
-
var
|
|
3023
|
+
// eslint-disable-next-line no-extra-parens
|
|
3024
|
+
var descriptor = /** @type {NonNullable<typeof gOPD>} */ (gOPD$1)(/** @type {{ lastIndex?: unknown }} */ (value), 'lastIndex');
|
|
3025
|
+
var hasLastIndexDataProperty = descriptor && hasOwn(descriptor, 'value');
|
|
3000
3026
|
if (!hasLastIndexDataProperty) {
|
|
3001
3027
|
return false;
|
|
3002
3028
|
}
|
|
3003
3029
|
|
|
3004
3030
|
try {
|
|
3005
|
-
|
|
3031
|
+
// eslint-disable-next-line no-extra-parens
|
|
3032
|
+
$exec(value, /** @type {string} */ (/** @type {unknown} */ (badStringifier)));
|
|
3006
3033
|
} catch (e) {
|
|
3007
3034
|
return e === isRegexMarker;
|
|
3008
3035
|
}
|
|
3009
|
-
}
|
|
3010
|
-
|
|
3036
|
+
};
|
|
3037
|
+
} else {
|
|
3038
|
+
/** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
|
|
3039
|
+
var $toString$4 = callBound$8('Object.prototype.toString');
|
|
3040
|
+
/** @const @type {'[object RegExp]'} */
|
|
3041
|
+
var regexClass = '[object RegExp]';
|
|
3042
|
+
|
|
3043
|
+
/** @type {import('.')} */
|
|
3044
|
+
fn = function isRegex(value) {
|
|
3011
3045
|
// In older browsers, typeof regex incorrectly returns 'function'
|
|
3012
3046
|
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
|
|
3013
3047
|
return false;
|
|
3014
3048
|
}
|
|
3015
3049
|
|
|
3016
|
-
return $toString$
|
|
3050
|
+
return $toString$4(value) === regexClass;
|
|
3017
3051
|
};
|
|
3052
|
+
}
|
|
3053
|
+
|
|
3054
|
+
var isRegex$1 = fn;
|
|
3018
3055
|
|
|
3019
|
-
var callBound$
|
|
3056
|
+
var callBound$7 = callBound$i;
|
|
3020
3057
|
|
|
3021
|
-
|
|
3058
|
+
/** @type {undefined | ((thisArg: SharedArrayBuffer) => number)} */
|
|
3059
|
+
var $byteLength$1 = callBound$7('SharedArrayBuffer.prototype.byteLength', true);
|
|
3022
3060
|
|
|
3023
3061
|
/** @type {import('.')} */
|
|
3024
3062
|
var isSharedArrayBuffer$1 = $byteLength$1
|
|
@@ -3027,43 +3065,50 @@ var isSharedArrayBuffer$1 = $byteLength$1
|
|
|
3027
3065
|
return false;
|
|
3028
3066
|
}
|
|
3029
3067
|
try {
|
|
3068
|
+
// @ts-expect-error TS can't figure out this closed-over variable is non-nullable, and it's fine that `obj` might not be a SAB
|
|
3030
3069
|
$byteLength$1(obj);
|
|
3031
3070
|
return true;
|
|
3032
3071
|
} catch (e) {
|
|
3033
3072
|
return false;
|
|
3034
3073
|
}
|
|
3035
3074
|
}
|
|
3036
|
-
: function isSharedArrayBuffer(
|
|
3075
|
+
: function isSharedArrayBuffer(_obj) { // eslint-disable-line no-unused-vars
|
|
3037
3076
|
return false;
|
|
3038
3077
|
};
|
|
3039
3078
|
|
|
3040
|
-
var
|
|
3079
|
+
var callBound$6 = callBound$i;
|
|
3080
|
+
|
|
3081
|
+
var $numToStr = callBound$6('Number.prototype.toString');
|
|
3082
|
+
|
|
3083
|
+
/** @type {import('.')} */
|
|
3041
3084
|
var tryNumberObject = function tryNumberObject(value) {
|
|
3042
3085
|
try {
|
|
3043
|
-
numToStr
|
|
3086
|
+
$numToStr(value);
|
|
3044
3087
|
return true;
|
|
3045
3088
|
} catch (e) {
|
|
3046
3089
|
return false;
|
|
3047
3090
|
}
|
|
3048
3091
|
};
|
|
3049
|
-
var
|
|
3092
|
+
var $toString$3 = callBound$6('Object.prototype.toString');
|
|
3050
3093
|
var numClass = '[object Number]';
|
|
3051
3094
|
var hasToStringTag$3 = shams();
|
|
3052
3095
|
|
|
3096
|
+
/** @type {import('.')} */
|
|
3053
3097
|
var isNumberObject = function isNumberObject(value) {
|
|
3054
3098
|
if (typeof value === 'number') {
|
|
3055
3099
|
return true;
|
|
3056
3100
|
}
|
|
3057
|
-
if (typeof value !== 'object') {
|
|
3101
|
+
if (!value || typeof value !== 'object') {
|
|
3058
3102
|
return false;
|
|
3059
3103
|
}
|
|
3060
|
-
return hasToStringTag$3 ? tryNumberObject(value) :
|
|
3104
|
+
return hasToStringTag$3 ? tryNumberObject(value) : $toString$3(value) === numClass;
|
|
3061
3105
|
};
|
|
3062
3106
|
|
|
3063
|
-
var callBound$
|
|
3064
|
-
var $boolToStr = callBound$
|
|
3065
|
-
var $toString$
|
|
3107
|
+
var callBound$5 = callBound$i;
|
|
3108
|
+
var $boolToStr = callBound$5('Boolean.prototype.toString');
|
|
3109
|
+
var $toString$2 = callBound$5('Object.prototype.toString');
|
|
3066
3110
|
|
|
3111
|
+
/** @type {import('.')} */
|
|
3067
3112
|
var tryBooleanObject = function booleanBrandCheck(value) {
|
|
3068
3113
|
try {
|
|
3069
3114
|
$boolToStr(value);
|
|
@@ -3075,6 +3120,7 @@ var tryBooleanObject = function booleanBrandCheck(value) {
|
|
|
3075
3120
|
var boolClass = '[object Boolean]';
|
|
3076
3121
|
var hasToStringTag$2 = shams();
|
|
3077
3122
|
|
|
3123
|
+
/** @type {import('.')} */
|
|
3078
3124
|
var isBooleanObject = function isBoolean(value) {
|
|
3079
3125
|
if (typeof value === 'boolean') {
|
|
3080
3126
|
return true;
|
|
@@ -3082,29 +3128,59 @@ var isBooleanObject = function isBoolean(value) {
|
|
|
3082
3128
|
if (value === null || typeof value !== 'object') {
|
|
3083
3129
|
return false;
|
|
3084
3130
|
}
|
|
3085
|
-
return hasToStringTag$2
|
|
3131
|
+
return hasToStringTag$2 ? tryBooleanObject(value) : $toString$2(value) === boolClass;
|
|
3086
3132
|
};
|
|
3087
3133
|
|
|
3088
3134
|
var isSymbol$1 = {exports: {}};
|
|
3089
3135
|
|
|
3090
|
-
var
|
|
3136
|
+
var safeRegexTest$1;
|
|
3137
|
+
var hasRequiredSafeRegexTest;
|
|
3138
|
+
|
|
3139
|
+
function requireSafeRegexTest () {
|
|
3140
|
+
if (hasRequiredSafeRegexTest) return safeRegexTest$1;
|
|
3141
|
+
hasRequiredSafeRegexTest = 1;
|
|
3142
|
+
|
|
3143
|
+
var callBound = callBound$i;
|
|
3144
|
+
var isRegex = isRegex$1;
|
|
3145
|
+
|
|
3146
|
+
var $exec = callBound('RegExp.prototype.exec');
|
|
3147
|
+
var $TypeError = type;
|
|
3148
|
+
|
|
3149
|
+
/** @type {import('.')} */
|
|
3150
|
+
safeRegexTest$1 = function regexTester(regex) {
|
|
3151
|
+
if (!isRegex(regex)) {
|
|
3152
|
+
throw new $TypeError('`regex` must be a RegExp');
|
|
3153
|
+
}
|
|
3154
|
+
return function test(s) {
|
|
3155
|
+
return $exec(regex, s) !== null;
|
|
3156
|
+
};
|
|
3157
|
+
};
|
|
3158
|
+
return safeRegexTest$1;
|
|
3159
|
+
}
|
|
3160
|
+
|
|
3161
|
+
var callBound$4 = callBound$i;
|
|
3162
|
+
var $toString$1 = callBound$4('Object.prototype.toString');
|
|
3091
3163
|
var hasSymbols = hasSymbols$4();
|
|
3164
|
+
var safeRegexTest = requireSafeRegexTest();
|
|
3092
3165
|
|
|
3093
3166
|
if (hasSymbols) {
|
|
3094
|
-
var symToStr = Symbol.prototype.toString;
|
|
3095
|
-
var
|
|
3167
|
+
var $symToStr = callBound$4('Symbol.prototype.toString');
|
|
3168
|
+
var isSymString = safeRegexTest(/^Symbol\(.*\)$/);
|
|
3169
|
+
|
|
3170
|
+
/** @type {(value: object) => value is Symbol} */
|
|
3096
3171
|
var isSymbolObject = function isRealSymbolObject(value) {
|
|
3097
3172
|
if (typeof value.valueOf() !== 'symbol') {
|
|
3098
3173
|
return false;
|
|
3099
3174
|
}
|
|
3100
|
-
return
|
|
3175
|
+
return isSymString($symToStr(value));
|
|
3101
3176
|
};
|
|
3102
3177
|
|
|
3178
|
+
/** @type {import('.')} */
|
|
3103
3179
|
isSymbol$1.exports = function isSymbol(value) {
|
|
3104
3180
|
if (typeof value === 'symbol') {
|
|
3105
3181
|
return true;
|
|
3106
3182
|
}
|
|
3107
|
-
if (
|
|
3183
|
+
if (!value || typeof value !== 'object' || $toString$1(value) !== '[object Symbol]') {
|
|
3108
3184
|
return false;
|
|
3109
3185
|
}
|
|
3110
3186
|
try {
|
|
@@ -3114,7 +3190,7 @@ if (hasSymbols) {
|
|
|
3114
3190
|
}
|
|
3115
3191
|
};
|
|
3116
3192
|
} else {
|
|
3117
|
-
|
|
3193
|
+
/** @type {import('.')} */
|
|
3118
3194
|
isSymbol$1.exports = function isSymbol(value) {
|
|
3119
3195
|
// this environment does not support Symbols.
|
|
3120
3196
|
return false;
|
|
@@ -3127,6 +3203,7 @@ var isBigint = {exports: {}};
|
|
|
3127
3203
|
|
|
3128
3204
|
var $BigInt = typeof BigInt !== 'undefined' && BigInt;
|
|
3129
3205
|
|
|
3206
|
+
/** @type {import('.')} */
|
|
3130
3207
|
var hasBigints = function hasNativeBigInts() {
|
|
3131
3208
|
return typeof $BigInt === 'function'
|
|
3132
3209
|
&& typeof BigInt === 'function'
|
|
@@ -3138,6 +3215,7 @@ var hasBigInts = hasBigints();
|
|
|
3138
3215
|
|
|
3139
3216
|
if (hasBigInts) {
|
|
3140
3217
|
var bigIntValueOf = BigInt.prototype.valueOf;
|
|
3218
|
+
/** @type {(value: object) => value is BigInt} */
|
|
3141
3219
|
var tryBigInt = function tryBigIntObject(value) {
|
|
3142
3220
|
try {
|
|
3143
3221
|
bigIntValueOf.call(value);
|
|
@@ -3147,6 +3225,7 @@ if (hasBigInts) {
|
|
|
3147
3225
|
return false;
|
|
3148
3226
|
};
|
|
3149
3227
|
|
|
3228
|
+
/** @type {import('.')} */
|
|
3150
3229
|
isBigint.exports = function isBigInt(value) {
|
|
3151
3230
|
if (
|
|
3152
3231
|
value === null
|
|
@@ -3166,6 +3245,7 @@ if (hasBigInts) {
|
|
|
3166
3245
|
return tryBigInt(value);
|
|
3167
3246
|
};
|
|
3168
3247
|
} else {
|
|
3248
|
+
/** @type {import('.')} */
|
|
3169
3249
|
isBigint.exports = function isBigInt(value) {
|
|
3170
3250
|
return false;
|
|
3171
3251
|
};
|
|
@@ -3179,6 +3259,7 @@ var isBoolean = isBooleanObject;
|
|
|
3179
3259
|
var isSymbol = isSymbolExports;
|
|
3180
3260
|
var isBigInt = isBigintExports;
|
|
3181
3261
|
|
|
3262
|
+
/** @type {import('.')} */
|
|
3182
3263
|
// eslint-disable-next-line consistent-return
|
|
3183
3264
|
var whichBoxedPrimitive$1 = function whichBoxedPrimitive(value) {
|
|
3184
3265
|
// eslint-disable-next-line eqeqeq
|
|
@@ -3250,13 +3331,15 @@ var isWeakmap = exported || function isWeakMap(x) {
|
|
|
3250
3331
|
var isWeakset = {exports: {}};
|
|
3251
3332
|
|
|
3252
3333
|
var GetIntrinsic$1 = getIntrinsic;
|
|
3253
|
-
var callBound$3 = callBound$
|
|
3334
|
+
var callBound$3 = callBound$i;
|
|
3254
3335
|
|
|
3255
3336
|
var $WeakSet = GetIntrinsic$1('%WeakSet%', true);
|
|
3256
3337
|
|
|
3338
|
+
/** @type {undefined | (<V>(thisArg: Set<V>, value: V) => boolean)} */
|
|
3257
3339
|
var $setHas$1 = callBound$3('WeakSet.prototype.has', true);
|
|
3258
3340
|
|
|
3259
3341
|
if ($setHas$1) {
|
|
3342
|
+
/** @type {undefined | (<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean)} */
|
|
3260
3343
|
var $mapHas$1 = callBound$3('WeakMap.prototype.has', true);
|
|
3261
3344
|
|
|
3262
3345
|
/** @type {import('.')} */
|
|
@@ -3265,9 +3348,11 @@ if ($setHas$1) {
|
|
|
3265
3348
|
return false;
|
|
3266
3349
|
}
|
|
3267
3350
|
try {
|
|
3351
|
+
// @ts-expect-error TS can't figure out that $setHas is always truthy here
|
|
3268
3352
|
$setHas$1(x, $setHas$1);
|
|
3269
3353
|
if ($mapHas$1) {
|
|
3270
3354
|
try {
|
|
3355
|
+
// @ts-expect-error this indeed might not be a weak collection
|
|
3271
3356
|
$mapHas$1(x, $mapHas$1);
|
|
3272
3357
|
} catch (e) {
|
|
3273
3358
|
return true;
|
|
@@ -3280,8 +3365,8 @@ if ($setHas$1) {
|
|
|
3280
3365
|
};
|
|
3281
3366
|
} else {
|
|
3282
3367
|
/** @type {import('.')} */
|
|
3283
|
-
//
|
|
3284
|
-
isWeakset.exports = function isWeakSet(x) {
|
|
3368
|
+
// @ts-expect-error
|
|
3369
|
+
isWeakset.exports = function isWeakSet(x) { // eslint-disable-line no-unused-vars
|
|
3285
3370
|
// `WeakSet` does not exist, or does not have a `has` method
|
|
3286
3371
|
return false;
|
|
3287
3372
|
};
|
|
@@ -3418,6 +3503,7 @@ var isCallable = isCallable$1;
|
|
|
3418
3503
|
var toStr = Object.prototype.toString;
|
|
3419
3504
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
3420
3505
|
|
|
3506
|
+
/** @type {<This, A extends readonly unknown[]>(arr: A, iterator: (this: This | void, value: A[number], index: number, arr: A) => void, receiver: This | undefined) => void} */
|
|
3421
3507
|
var forEachArray = function forEachArray(array, iterator, receiver) {
|
|
3422
3508
|
for (var i = 0, len = array.length; i < len; i++) {
|
|
3423
3509
|
if (hasOwnProperty.call(array, i)) {
|
|
@@ -3430,6 +3516,7 @@ var forEachArray = function forEachArray(array, iterator, receiver) {
|
|
|
3430
3516
|
}
|
|
3431
3517
|
};
|
|
3432
3518
|
|
|
3519
|
+
/** @type {<This, S extends string>(string: S, iterator: (this: This | void, value: S[number], index: number, string: S) => void, receiver: This | undefined) => void} */
|
|
3433
3520
|
var forEachString = function forEachString(string, iterator, receiver) {
|
|
3434
3521
|
for (var i = 0, len = string.length; i < len; i++) {
|
|
3435
3522
|
// no such thing as a sparse string.
|
|
@@ -3441,6 +3528,7 @@ var forEachString = function forEachString(string, iterator, receiver) {
|
|
|
3441
3528
|
}
|
|
3442
3529
|
};
|
|
3443
3530
|
|
|
3531
|
+
/** @type {<This, O>(obj: O, iterator: (this: This | void, value: O[keyof O], index: keyof O, obj: O) => void, receiver: This | undefined) => void} */
|
|
3444
3532
|
var forEachObject = function forEachObject(object, iterator, receiver) {
|
|
3445
3533
|
for (var k in object) {
|
|
3446
3534
|
if (hasOwnProperty.call(object, k)) {
|
|
@@ -3453,6 +3541,12 @@ var forEachObject = function forEachObject(object, iterator, receiver) {
|
|
|
3453
3541
|
}
|
|
3454
3542
|
};
|
|
3455
3543
|
|
|
3544
|
+
/** @type {(x: unknown) => x is readonly unknown[]} */
|
|
3545
|
+
function isArray$1(x) {
|
|
3546
|
+
return toStr.call(x) === '[object Array]';
|
|
3547
|
+
}
|
|
3548
|
+
|
|
3549
|
+
/** @type {import('.')._internal} */
|
|
3456
3550
|
var forEach$1 = function forEach(list, iterator, thisArg) {
|
|
3457
3551
|
if (!isCallable(iterator)) {
|
|
3458
3552
|
throw new TypeError('iterator must be a function');
|
|
@@ -3463,7 +3557,7 @@ var forEach$1 = function forEach(list, iterator, thisArg) {
|
|
|
3463
3557
|
receiver = thisArg;
|
|
3464
3558
|
}
|
|
3465
3559
|
|
|
3466
|
-
if (
|
|
3560
|
+
if (isArray$1(list)) {
|
|
3467
3561
|
forEachArray(list, iterator, receiver);
|
|
3468
3562
|
} else if (typeof list === 'string') {
|
|
3469
3563
|
forEachString(list, iterator, receiver);
|
|
@@ -3472,10 +3566,9 @@ var forEach$1 = function forEach(list, iterator, thisArg) {
|
|
|
3472
3566
|
}
|
|
3473
3567
|
};
|
|
3474
3568
|
|
|
3475
|
-
var forEach_1 = forEach$1;
|
|
3476
|
-
|
|
3477
3569
|
/** @type {import('.')} */
|
|
3478
3570
|
var possibleTypedArrayNames = [
|
|
3571
|
+
'Float16Array',
|
|
3479
3572
|
'Float32Array',
|
|
3480
3573
|
'Float64Array',
|
|
3481
3574
|
'Int8Array',
|
|
@@ -3505,13 +3598,13 @@ var availableTypedArrays$1 = function availableTypedArrays() {
|
|
|
3505
3598
|
return out;
|
|
3506
3599
|
};
|
|
3507
3600
|
|
|
3508
|
-
var forEach =
|
|
3601
|
+
var forEach = forEach$1;
|
|
3509
3602
|
var availableTypedArrays = availableTypedArrays$1;
|
|
3510
3603
|
var callBind = callBindExports;
|
|
3511
|
-
var callBound$2 = callBound$
|
|
3604
|
+
var callBound$2 = callBound$i;
|
|
3512
3605
|
var gOPD = gopd$1;
|
|
3606
|
+
var getProto = getProto$3;
|
|
3513
3607
|
|
|
3514
|
-
/** @type {(O: object) => string} */
|
|
3515
3608
|
var $toString = callBound$2('Object.prototype.toString');
|
|
3516
3609
|
var hasToStringTag = shams();
|
|
3517
3610
|
|
|
@@ -3519,7 +3612,6 @@ var g = typeof globalThis === 'undefined' ? commonjsGlobal : globalThis;
|
|
|
3519
3612
|
var typedArrays = availableTypedArrays();
|
|
3520
3613
|
|
|
3521
3614
|
var $slice = callBound$2('String.prototype.slice');
|
|
3522
|
-
var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
|
|
3523
3615
|
|
|
3524
3616
|
/** @type {<T = unknown>(array: readonly T[], value: unknown) => number} */
|
|
3525
3617
|
var $indexOf = callBound$2('Array.prototype.indexOf', true) || function indexOf(array, value) {
|
|
@@ -3531,18 +3623,18 @@ var $indexOf = callBound$2('Array.prototype.indexOf', true) || function indexOf(
|
|
|
3531
3623
|
return -1;
|
|
3532
3624
|
};
|
|
3533
3625
|
|
|
3534
|
-
/** @typedef {
|
|
3535
|
-
/** @type {
|
|
3626
|
+
/** @typedef {import('./types').Getter} Getter */
|
|
3627
|
+
/** @type {import('./types').Cache} */
|
|
3536
3628
|
var cache = { __proto__: null };
|
|
3537
|
-
if (hasToStringTag && gOPD &&
|
|
3629
|
+
if (hasToStringTag && gOPD && getProto) {
|
|
3538
3630
|
forEach(typedArrays, function (typedArray) {
|
|
3539
3631
|
var arr = new g[typedArray]();
|
|
3540
|
-
if (Symbol.toStringTag in arr) {
|
|
3541
|
-
var proto =
|
|
3632
|
+
if (Symbol.toStringTag in arr && getProto) {
|
|
3633
|
+
var proto = getProto(arr);
|
|
3542
3634
|
// @ts-expect-error TS won't narrow inside a closure
|
|
3543
3635
|
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
3544
|
-
if (!descriptor) {
|
|
3545
|
-
var superProto =
|
|
3636
|
+
if (!descriptor && proto) {
|
|
3637
|
+
var superProto = getProto(proto);
|
|
3546
3638
|
// @ts-expect-error TS won't narrow inside a closure
|
|
3547
3639
|
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
3548
3640
|
}
|
|
@@ -3555,8 +3647,12 @@ if (hasToStringTag && gOPD && getPrototypeOf) {
|
|
|
3555
3647
|
var arr = new g[typedArray]();
|
|
3556
3648
|
var fn = arr.slice || arr.set;
|
|
3557
3649
|
if (fn) {
|
|
3558
|
-
|
|
3559
|
-
|
|
3650
|
+
cache[
|
|
3651
|
+
/** @type {`$${import('.').TypedArrayName}`} */ ('$' + typedArray)
|
|
3652
|
+
] = /** @type {import('./types').BoundSlice | import('./types').BoundSet} */ (
|
|
3653
|
+
// @ts-expect-error TODO FIXME
|
|
3654
|
+
callBind(fn)
|
|
3655
|
+
);
|
|
3560
3656
|
}
|
|
3561
3657
|
});
|
|
3562
3658
|
}
|
|
@@ -3565,15 +3661,14 @@ if (hasToStringTag && gOPD && getPrototypeOf) {
|
|
|
3565
3661
|
var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
3566
3662
|
/** @type {ReturnType<typeof tryAllTypedArrays>} */ var found = false;
|
|
3567
3663
|
forEach(
|
|
3568
|
-
|
|
3569
|
-
/** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */ (cache),
|
|
3664
|
+
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */ (cache),
|
|
3570
3665
|
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
3571
3666
|
function (getter, typedArray) {
|
|
3572
3667
|
if (!found) {
|
|
3573
3668
|
try {
|
|
3574
|
-
|
|
3669
|
+
// @ts-expect-error a throw is fine here
|
|
3575
3670
|
if ('$' + getter(value) === typedArray) {
|
|
3576
|
-
found = $slice(typedArray, 1);
|
|
3671
|
+
found = /** @type {import('.').TypedArrayName} */ ($slice(typedArray, 1));
|
|
3577
3672
|
}
|
|
3578
3673
|
} catch (e) { /**/ }
|
|
3579
3674
|
}
|
|
@@ -3586,14 +3681,13 @@ var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
|
3586
3681
|
var trySlices = function tryAllSlices(value) {
|
|
3587
3682
|
/** @type {ReturnType<typeof tryAllSlices>} */ var found = false;
|
|
3588
3683
|
forEach(
|
|
3589
|
-
|
|
3590
|
-
/** @type {
|
|
3591
|
-
/** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */ function (getter, name) {
|
|
3684
|
+
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */(cache),
|
|
3685
|
+
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */ function (getter, name) {
|
|
3592
3686
|
if (!found) {
|
|
3593
3687
|
try {
|
|
3594
|
-
// @ts-expect-error
|
|
3688
|
+
// @ts-expect-error a throw is fine here
|
|
3595
3689
|
getter(value);
|
|
3596
|
-
found = $slice(name, 1);
|
|
3690
|
+
found = /** @type {import('.').TypedArrayName} */ ($slice(name, 1));
|
|
3597
3691
|
} catch (e) { /**/ }
|
|
3598
3692
|
}
|
|
3599
3693
|
}
|
|
@@ -3620,7 +3714,7 @@ var whichTypedArray$1 = function whichTypedArray(value) {
|
|
|
3620
3714
|
return tryTypedArrays(value);
|
|
3621
3715
|
};
|
|
3622
3716
|
|
|
3623
|
-
var callBound$1 = callBound$
|
|
3717
|
+
var callBound$1 = callBound$i;
|
|
3624
3718
|
var $byteLength = callBound$1('ArrayBuffer.prototype.byteLength', true);
|
|
3625
3719
|
|
|
3626
3720
|
var isArrayBuffer$1 = isArrayBuffer$2;
|
|
@@ -3634,7 +3728,7 @@ var arrayBufferByteLength = function byteLength(ab) {
|
|
|
3634
3728
|
}; // in node < 0.11, byteLength is an own nonconfigurable property
|
|
3635
3729
|
|
|
3636
3730
|
var assign = object_assign;
|
|
3637
|
-
var callBound = callBound$
|
|
3731
|
+
var callBound = callBound$g;
|
|
3638
3732
|
var flags = regexp_prototype_flags;
|
|
3639
3733
|
var GetIntrinsic = getIntrinsic;
|
|
3640
3734
|
var getIterator = esGetIteratorExports;
|
|
@@ -10340,7 +10434,7 @@ const fdc3Factory = () => {
|
|
|
10340
10434
|
return ioc.fdc3;
|
|
10341
10435
|
};
|
|
10342
10436
|
|
|
10343
|
-
var version = "2.
|
|
10437
|
+
var version = "2.7.0";
|
|
10344
10438
|
|
|
10345
10439
|
const globalScope = typeof process !== "undefined" ? process : window;
|
|
10346
10440
|
globalScope.fdc3Info = {
|