@interopio/fdc3 2.6.0 → 2.7.0-beta.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/dist/fdc3.electron.es.js +543 -458
- package/dist/fdc3.electron.umd.js +543 -458
- package/dist/fdc3.es.js +543 -458
- package/dist/fdc3.umd.js +543 -458
- package/package.json +3 -3
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
return a;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
var toStr$
|
|
38
|
+
var toStr$5 = Object.prototype.toString;
|
|
39
39
|
|
|
40
40
|
var isArguments$3 = function isArguments(value) {
|
|
41
|
-
var str = toStr$
|
|
41
|
+
var str = toStr$5.call(value);
|
|
42
42
|
var isArgs = str === '[object Arguments]';
|
|
43
43
|
if (!isArgs) {
|
|
44
44
|
isArgs = str !== '[object Array]' &&
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
typeof value === 'object' &&
|
|
47
47
|
typeof value.length === 'number' &&
|
|
48
48
|
value.length >= 0 &&
|
|
49
|
-
toStr$
|
|
49
|
+
toStr$5.call(value.callee) === '[object Function]';
|
|
50
50
|
}
|
|
51
51
|
return isArgs;
|
|
52
52
|
};
|
|
@@ -232,10 +232,10 @@
|
|
|
232
232
|
var type = TypeError;
|
|
233
233
|
|
|
234
234
|
/** @type {import('./gOPD')} */
|
|
235
|
-
var gOPD$
|
|
235
|
+
var gOPD$6 = Object.getOwnPropertyDescriptor;
|
|
236
236
|
|
|
237
237
|
/** @type {import('.')} */
|
|
238
|
-
var $gOPD$2 = gOPD$
|
|
238
|
+
var $gOPD$2 = gOPD$6;
|
|
239
239
|
|
|
240
240
|
if ($gOPD$2) {
|
|
241
241
|
try {
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
var $defineProperty$2 = esDefineProperty;
|
|
252
252
|
|
|
253
253
|
var $SyntaxError$2 = syntax;
|
|
254
|
-
var $TypeError$
|
|
254
|
+
var $TypeError$b = type;
|
|
255
255
|
|
|
256
256
|
var gopd = gopd$1;
|
|
257
257
|
|
|
@@ -262,22 +262,22 @@
|
|
|
262
262
|
value
|
|
263
263
|
) {
|
|
264
264
|
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
265
|
-
throw new $TypeError$
|
|
265
|
+
throw new $TypeError$b('`obj` must be an object or a function`');
|
|
266
266
|
}
|
|
267
267
|
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
268
|
-
throw new $TypeError$
|
|
268
|
+
throw new $TypeError$b('`property` must be a string or a symbol`');
|
|
269
269
|
}
|
|
270
270
|
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
271
|
-
throw new $TypeError$
|
|
271
|
+
throw new $TypeError$b('`nonEnumerable`, if provided, must be a boolean or null');
|
|
272
272
|
}
|
|
273
273
|
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
274
|
-
throw new $TypeError$
|
|
274
|
+
throw new $TypeError$b('`nonWritable`, if provided, must be a boolean or null');
|
|
275
275
|
}
|
|
276
276
|
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
277
|
-
throw new $TypeError$
|
|
277
|
+
throw new $TypeError$b('`nonConfigurable`, if provided, must be a boolean or null');
|
|
278
278
|
}
|
|
279
279
|
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
280
|
-
throw new $TypeError$
|
|
280
|
+
throw new $TypeError$b('`loose`, if provided, must be a boolean');
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
@@ -327,12 +327,12 @@
|
|
|
327
327
|
var keys = objectKeys$2;
|
|
328
328
|
var hasSymbols$5 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
|
329
329
|
|
|
330
|
-
var toStr$
|
|
330
|
+
var toStr$4 = Object.prototype.toString;
|
|
331
331
|
var concat = Array.prototype.concat;
|
|
332
332
|
var defineDataProperty = defineDataProperty$1;
|
|
333
333
|
|
|
334
334
|
var isFunction = function (fn) {
|
|
335
|
-
return typeof fn === 'function' && toStr$
|
|
335
|
+
return typeof fn === 'function' && toStr$4.call(fn) === '[object Function]';
|
|
336
336
|
};
|
|
337
337
|
|
|
338
338
|
var supportsDescriptors$2 = hasPropertyDescriptors_1();
|
|
@@ -370,112 +370,7 @@
|
|
|
370
370
|
|
|
371
371
|
var defineProperties_1 = defineProperties$1;
|
|
372
372
|
|
|
373
|
-
var callBind$
|
|
374
|
-
|
|
375
|
-
var implementation$9;
|
|
376
|
-
var hasRequiredImplementation;
|
|
377
|
-
|
|
378
|
-
function requireImplementation () {
|
|
379
|
-
if (hasRequiredImplementation) return implementation$9;
|
|
380
|
-
hasRequiredImplementation = 1;
|
|
381
|
-
|
|
382
|
-
/* eslint no-invalid-this: 1 */
|
|
383
|
-
|
|
384
|
-
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
385
|
-
var toStr = Object.prototype.toString;
|
|
386
|
-
var max = Math.max;
|
|
387
|
-
var funcType = '[object Function]';
|
|
388
|
-
|
|
389
|
-
var concatty = function concatty(a, b) {
|
|
390
|
-
var arr = [];
|
|
391
|
-
|
|
392
|
-
for (var i = 0; i < a.length; i += 1) {
|
|
393
|
-
arr[i] = a[i];
|
|
394
|
-
}
|
|
395
|
-
for (var j = 0; j < b.length; j += 1) {
|
|
396
|
-
arr[j + a.length] = b[j];
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
return arr;
|
|
400
|
-
};
|
|
401
|
-
|
|
402
|
-
var slicy = function slicy(arrLike, offset) {
|
|
403
|
-
var arr = [];
|
|
404
|
-
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
405
|
-
arr[j] = arrLike[i];
|
|
406
|
-
}
|
|
407
|
-
return arr;
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
var joiny = function (arr, joiner) {
|
|
411
|
-
var str = '';
|
|
412
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
413
|
-
str += arr[i];
|
|
414
|
-
if (i + 1 < arr.length) {
|
|
415
|
-
str += joiner;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
return str;
|
|
419
|
-
};
|
|
420
|
-
|
|
421
|
-
implementation$9 = function bind(that) {
|
|
422
|
-
var target = this;
|
|
423
|
-
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
424
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
425
|
-
}
|
|
426
|
-
var args = slicy(arguments, 1);
|
|
427
|
-
|
|
428
|
-
var bound;
|
|
429
|
-
var binder = function () {
|
|
430
|
-
if (this instanceof bound) {
|
|
431
|
-
var result = target.apply(
|
|
432
|
-
this,
|
|
433
|
-
concatty(args, arguments)
|
|
434
|
-
);
|
|
435
|
-
if (Object(result) === result) {
|
|
436
|
-
return result;
|
|
437
|
-
}
|
|
438
|
-
return this;
|
|
439
|
-
}
|
|
440
|
-
return target.apply(
|
|
441
|
-
that,
|
|
442
|
-
concatty(args, arguments)
|
|
443
|
-
);
|
|
444
|
-
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
var boundLength = max(0, target.length - args.length);
|
|
448
|
-
var boundArgs = [];
|
|
449
|
-
for (var i = 0; i < boundLength; i++) {
|
|
450
|
-
boundArgs[i] = '$' + i;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
454
|
-
|
|
455
|
-
if (target.prototype) {
|
|
456
|
-
var Empty = function Empty() {};
|
|
457
|
-
Empty.prototype = target.prototype;
|
|
458
|
-
bound.prototype = new Empty();
|
|
459
|
-
Empty.prototype = null;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
return bound;
|
|
463
|
-
};
|
|
464
|
-
return implementation$9;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
var functionBind;
|
|
468
|
-
var hasRequiredFunctionBind;
|
|
469
|
-
|
|
470
|
-
function requireFunctionBind () {
|
|
471
|
-
if (hasRequiredFunctionBind) return functionBind;
|
|
472
|
-
hasRequiredFunctionBind = 1;
|
|
473
|
-
|
|
474
|
-
var implementation = requireImplementation();
|
|
475
|
-
|
|
476
|
-
functionBind = Function.prototype.bind || implementation;
|
|
477
|
-
return functionBind;
|
|
478
|
-
}
|
|
373
|
+
var callBind$7 = {exports: {}};
|
|
479
374
|
|
|
480
375
|
/** @type {import('.')} */
|
|
481
376
|
var esObjectAtoms = Object;
|
|
@@ -620,6 +515,111 @@
|
|
|
620
515
|
return Object_getPrototypeOf;
|
|
621
516
|
}
|
|
622
517
|
|
|
518
|
+
var implementation$9;
|
|
519
|
+
var hasRequiredImplementation;
|
|
520
|
+
|
|
521
|
+
function requireImplementation () {
|
|
522
|
+
if (hasRequiredImplementation) return implementation$9;
|
|
523
|
+
hasRequiredImplementation = 1;
|
|
524
|
+
|
|
525
|
+
/* eslint no-invalid-this: 1 */
|
|
526
|
+
|
|
527
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
528
|
+
var toStr = Object.prototype.toString;
|
|
529
|
+
var max = Math.max;
|
|
530
|
+
var funcType = '[object Function]';
|
|
531
|
+
|
|
532
|
+
var concatty = function concatty(a, b) {
|
|
533
|
+
var arr = [];
|
|
534
|
+
|
|
535
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
536
|
+
arr[i] = a[i];
|
|
537
|
+
}
|
|
538
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
539
|
+
arr[j + a.length] = b[j];
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
return arr;
|
|
543
|
+
};
|
|
544
|
+
|
|
545
|
+
var slicy = function slicy(arrLike, offset) {
|
|
546
|
+
var arr = [];
|
|
547
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
548
|
+
arr[j] = arrLike[i];
|
|
549
|
+
}
|
|
550
|
+
return arr;
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
var joiny = function (arr, joiner) {
|
|
554
|
+
var str = '';
|
|
555
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
556
|
+
str += arr[i];
|
|
557
|
+
if (i + 1 < arr.length) {
|
|
558
|
+
str += joiner;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
return str;
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
implementation$9 = function bind(that) {
|
|
565
|
+
var target = this;
|
|
566
|
+
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
567
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
568
|
+
}
|
|
569
|
+
var args = slicy(arguments, 1);
|
|
570
|
+
|
|
571
|
+
var bound;
|
|
572
|
+
var binder = function () {
|
|
573
|
+
if (this instanceof bound) {
|
|
574
|
+
var result = target.apply(
|
|
575
|
+
this,
|
|
576
|
+
concatty(args, arguments)
|
|
577
|
+
);
|
|
578
|
+
if (Object(result) === result) {
|
|
579
|
+
return result;
|
|
580
|
+
}
|
|
581
|
+
return this;
|
|
582
|
+
}
|
|
583
|
+
return target.apply(
|
|
584
|
+
that,
|
|
585
|
+
concatty(args, arguments)
|
|
586
|
+
);
|
|
587
|
+
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
var boundLength = max(0, target.length - args.length);
|
|
591
|
+
var boundArgs = [];
|
|
592
|
+
for (var i = 0; i < boundLength; i++) {
|
|
593
|
+
boundArgs[i] = '$' + i;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
597
|
+
|
|
598
|
+
if (target.prototype) {
|
|
599
|
+
var Empty = function Empty() {};
|
|
600
|
+
Empty.prototype = target.prototype;
|
|
601
|
+
bound.prototype = new Empty();
|
|
602
|
+
Empty.prototype = null;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
return bound;
|
|
606
|
+
};
|
|
607
|
+
return implementation$9;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
var functionBind;
|
|
611
|
+
var hasRequiredFunctionBind;
|
|
612
|
+
|
|
613
|
+
function requireFunctionBind () {
|
|
614
|
+
if (hasRequiredFunctionBind) return functionBind;
|
|
615
|
+
hasRequiredFunctionBind = 1;
|
|
616
|
+
|
|
617
|
+
var implementation = requireImplementation();
|
|
618
|
+
|
|
619
|
+
functionBind = Function.prototype.bind || implementation;
|
|
620
|
+
return functionBind;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
623
|
var functionCall;
|
|
624
624
|
var hasRequiredFunctionCall;
|
|
625
625
|
|
|
@@ -647,128 +647,101 @@
|
|
|
647
647
|
/** @type {import('./reflectApply')} */
|
|
648
648
|
var reflectApply$1 = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
649
649
|
|
|
650
|
-
var bind$
|
|
650
|
+
var bind$4 = requireFunctionBind();
|
|
651
651
|
|
|
652
|
-
var $apply$
|
|
652
|
+
var $apply$2 = requireFunctionApply();
|
|
653
653
|
var $call$2 = requireFunctionCall();
|
|
654
654
|
var $reflectApply = reflectApply$1;
|
|
655
655
|
|
|
656
656
|
/** @type {import('./actualApply')} */
|
|
657
|
-
var actualApply = $reflectApply || bind$
|
|
657
|
+
var actualApply$1 = $reflectApply || bind$4.call($call$2, $apply$2);
|
|
658
658
|
|
|
659
|
-
var bind$
|
|
660
|
-
var $TypeError$
|
|
659
|
+
var bind$3 = requireFunctionBind();
|
|
660
|
+
var $TypeError$a = type;
|
|
661
661
|
|
|
662
662
|
var $call$1 = requireFunctionCall();
|
|
663
|
-
var $actualApply = actualApply;
|
|
663
|
+
var $actualApply = actualApply$1;
|
|
664
664
|
|
|
665
|
-
/** @type {import('.')
|
|
665
|
+
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
666
666
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
667
667
|
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
668
|
-
throw new $TypeError$
|
|
668
|
+
throw new $TypeError$a('a function is required');
|
|
669
669
|
}
|
|
670
|
-
return $actualApply(bind$
|
|
670
|
+
return $actualApply(bind$3, $call$1, args);
|
|
671
671
|
};
|
|
672
672
|
|
|
673
|
-
var
|
|
674
|
-
var
|
|
673
|
+
var callBind$6 = callBindApplyHelpers;
|
|
674
|
+
var gOPD$5 = gopd$1;
|
|
675
675
|
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
var hasProtoAccessor;
|
|
684
|
-
try {
|
|
685
|
-
// eslint-disable-next-line no-extra-parens, no-proto
|
|
686
|
-
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
687
|
-
} catch (e) {
|
|
688
|
-
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
689
|
-
throw e;
|
|
690
|
-
}
|
|
676
|
+
var hasProtoAccessor;
|
|
677
|
+
try {
|
|
678
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
679
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
680
|
+
} catch (e) {
|
|
681
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
682
|
+
throw e;
|
|
691
683
|
}
|
|
692
|
-
|
|
693
|
-
// eslint-disable-next-line no-extra-parens
|
|
694
|
-
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
695
|
-
|
|
696
|
-
var $Object = Object;
|
|
697
|
-
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
698
|
-
|
|
699
|
-
/** @type {import('./get')} */
|
|
700
|
-
get = desc && typeof desc.get === 'function'
|
|
701
|
-
? callBind([desc.get])
|
|
702
|
-
: typeof $getPrototypeOf === 'function'
|
|
703
|
-
? /** @type {import('./get')} */ function getDunder(value) {
|
|
704
|
-
// eslint-disable-next-line eqeqeq
|
|
705
|
-
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
706
|
-
}
|
|
707
|
-
: false;
|
|
708
|
-
return get;
|
|
709
684
|
}
|
|
710
685
|
|
|
711
|
-
|
|
712
|
-
var
|
|
686
|
+
// eslint-disable-next-line no-extra-parens
|
|
687
|
+
var desc = !!hasProtoAccessor && gOPD$5 && gOPD$5(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
713
688
|
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
hasRequiredGetProto = 1;
|
|
689
|
+
var $Object$3 = Object;
|
|
690
|
+
var $getPrototypeOf = $Object$3.getPrototypeOf;
|
|
717
691
|
|
|
718
|
-
|
|
719
|
-
|
|
692
|
+
/** @type {import('./get')} */
|
|
693
|
+
var get = desc && typeof desc.get === 'function'
|
|
694
|
+
? callBind$6([desc.get])
|
|
695
|
+
: typeof $getPrototypeOf === 'function'
|
|
696
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
697
|
+
// eslint-disable-next-line eqeqeq
|
|
698
|
+
return $getPrototypeOf(value == null ? value : $Object$3(value));
|
|
699
|
+
}
|
|
700
|
+
: false;
|
|
720
701
|
|
|
721
|
-
|
|
702
|
+
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
703
|
+
var originalGetProto = requireObject_getPrototypeOf();
|
|
722
704
|
|
|
723
|
-
|
|
724
|
-
|
|
705
|
+
var getDunderProto = get;
|
|
706
|
+
|
|
707
|
+
/** @type {import('.')} */
|
|
708
|
+
var getProto$3 = reflectGetProto
|
|
709
|
+
? function getProto(O) {
|
|
710
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
711
|
+
return reflectGetProto(O);
|
|
712
|
+
}
|
|
713
|
+
: originalGetProto
|
|
725
714
|
? function getProto(O) {
|
|
715
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
716
|
+
throw new TypeError('getProto: not an object');
|
|
717
|
+
}
|
|
726
718
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
727
|
-
return
|
|
719
|
+
return originalGetProto(O);
|
|
728
720
|
}
|
|
729
|
-
:
|
|
721
|
+
: getDunderProto
|
|
730
722
|
? function getProto(O) {
|
|
731
|
-
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
732
|
-
throw new TypeError('getProto: not an object');
|
|
733
|
-
}
|
|
734
723
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
735
|
-
return
|
|
724
|
+
return getDunderProto(O);
|
|
736
725
|
}
|
|
737
|
-
:
|
|
738
|
-
? function getProto(O) {
|
|
739
|
-
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
740
|
-
return getDunderProto(O);
|
|
741
|
-
}
|
|
742
|
-
: null;
|
|
743
|
-
return getProto$2;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
var hasown;
|
|
747
|
-
var hasRequiredHasown;
|
|
748
|
-
|
|
749
|
-
function requireHasown () {
|
|
750
|
-
if (hasRequiredHasown) return hasown;
|
|
751
|
-
hasRequiredHasown = 1;
|
|
726
|
+
: null;
|
|
752
727
|
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
728
|
+
var call = Function.prototype.call;
|
|
729
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
730
|
+
var bind$2 = requireFunctionBind();
|
|
756
731
|
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
return hasown;
|
|
760
|
-
}
|
|
732
|
+
/** @type {import('.')} */
|
|
733
|
+
var hasown = bind$2.call(call, $hasOwn);
|
|
761
734
|
|
|
762
735
|
var undefined$1;
|
|
763
736
|
|
|
764
|
-
var $Object$
|
|
737
|
+
var $Object$2 = esObjectAtoms;
|
|
765
738
|
|
|
766
739
|
var $Error = esErrors;
|
|
767
740
|
var $EvalError = _eval;
|
|
768
741
|
var $RangeError = range;
|
|
769
742
|
var $ReferenceError = ref;
|
|
770
743
|
var $SyntaxError$1 = syntax;
|
|
771
|
-
var $TypeError$
|
|
744
|
+
var $TypeError$9 = type;
|
|
772
745
|
var $URIError = uri;
|
|
773
746
|
|
|
774
747
|
var abs = abs$1;
|
|
@@ -792,7 +765,7 @@
|
|
|
792
765
|
var $defineProperty = esDefineProperty;
|
|
793
766
|
|
|
794
767
|
var throwTypeError = function () {
|
|
795
|
-
throw new $TypeError$
|
|
768
|
+
throw new $TypeError$9();
|
|
796
769
|
};
|
|
797
770
|
var ThrowTypeError = $gOPD$1
|
|
798
771
|
? (function () {
|
|
@@ -813,23 +786,23 @@
|
|
|
813
786
|
|
|
814
787
|
var hasSymbols$3 = hasSymbols$4();
|
|
815
788
|
|
|
816
|
-
var getProto$
|
|
789
|
+
var getProto$2 = getProto$3;
|
|
817
790
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
818
791
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
819
792
|
|
|
820
|
-
var $apply = requireFunctionApply();
|
|
793
|
+
var $apply$1 = requireFunctionApply();
|
|
821
794
|
var $call = requireFunctionCall();
|
|
822
795
|
|
|
823
796
|
var needsEval = {};
|
|
824
797
|
|
|
825
|
-
var TypedArray = typeof Uint8Array === 'undefined' || !getProto$
|
|
798
|
+
var TypedArray = typeof Uint8Array === 'undefined' || !getProto$2 ? undefined$1 : getProto$2(Uint8Array);
|
|
826
799
|
|
|
827
800
|
var INTRINSICS = {
|
|
828
801
|
__proto__: null,
|
|
829
802
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
830
803
|
'%Array%': Array,
|
|
831
804
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
832
|
-
'%ArrayIteratorPrototype%': hasSymbols$3 && getProto$
|
|
805
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
|
|
833
806
|
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
834
807
|
'%AsyncFunction%': needsEval,
|
|
835
808
|
'%AsyncGenerator%': needsEval,
|
|
@@ -849,6 +822,7 @@
|
|
|
849
822
|
'%Error%': $Error,
|
|
850
823
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
851
824
|
'%EvalError%': $EvalError,
|
|
825
|
+
'%Float16Array%': typeof Float16Array === 'undefined' ? undefined$1 : Float16Array,
|
|
852
826
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
|
853
827
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
|
854
828
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
|
|
@@ -859,13 +833,13 @@
|
|
|
859
833
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
860
834
|
'%isFinite%': isFinite,
|
|
861
835
|
'%isNaN%': isNaN,
|
|
862
|
-
'%IteratorPrototype%': hasSymbols$3 && getProto$
|
|
836
|
+
'%IteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
|
|
863
837
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
864
838
|
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
865
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 || !getProto$
|
|
839
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Map()[Symbol.iterator]()),
|
|
866
840
|
'%Math%': Math,
|
|
867
841
|
'%Number%': Number,
|
|
868
|
-
'%Object%': $Object$
|
|
842
|
+
'%Object%': $Object$2,
|
|
869
843
|
'%Object.getOwnPropertyDescriptor%': $gOPD$1,
|
|
870
844
|
'%parseFloat%': parseFloat,
|
|
871
845
|
'%parseInt%': parseInt,
|
|
@@ -876,15 +850,15 @@
|
|
|
876
850
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
877
851
|
'%RegExp%': RegExp,
|
|
878
852
|
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
879
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 || !getProto$
|
|
853
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Set()[Symbol.iterator]()),
|
|
880
854
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
881
855
|
'%String%': String,
|
|
882
|
-
'%StringIteratorPrototype%': hasSymbols$3 && getProto$
|
|
856
|
+
'%StringIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(''[Symbol.iterator]()) : undefined$1,
|
|
883
857
|
'%Symbol%': hasSymbols$3 ? Symbol : undefined$1,
|
|
884
858
|
'%SyntaxError%': $SyntaxError$1,
|
|
885
859
|
'%ThrowTypeError%': ThrowTypeError,
|
|
886
860
|
'%TypedArray%': TypedArray,
|
|
887
|
-
'%TypeError%': $TypeError$
|
|
861
|
+
'%TypeError%': $TypeError$9,
|
|
888
862
|
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
889
863
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
890
864
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
@@ -895,7 +869,7 @@
|
|
|
895
869
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
|
|
896
870
|
|
|
897
871
|
'%Function.prototype.call%': $call,
|
|
898
|
-
'%Function.prototype.apply%': $apply,
|
|
872
|
+
'%Function.prototype.apply%': $apply$1,
|
|
899
873
|
'%Object.defineProperty%': $defineProperty,
|
|
900
874
|
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
901
875
|
'%Math.abs%': abs,
|
|
@@ -908,12 +882,12 @@
|
|
|
908
882
|
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
909
883
|
};
|
|
910
884
|
|
|
911
|
-
if (getProto$
|
|
885
|
+
if (getProto$2) {
|
|
912
886
|
try {
|
|
913
887
|
null.error; // eslint-disable-line no-unused-expressions
|
|
914
888
|
} catch (e) {
|
|
915
889
|
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
916
|
-
var errorProto = getProto$
|
|
890
|
+
var errorProto = getProto$2(getProto$2(e));
|
|
917
891
|
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
918
892
|
}
|
|
919
893
|
}
|
|
@@ -933,8 +907,8 @@
|
|
|
933
907
|
}
|
|
934
908
|
} else if (name === '%AsyncIteratorPrototype%') {
|
|
935
909
|
var gen = doEval('%AsyncGenerator%');
|
|
936
|
-
if (gen && getProto$
|
|
937
|
-
value = getProto$
|
|
910
|
+
if (gen && getProto$2) {
|
|
911
|
+
value = getProto$2(gen.prototype);
|
|
938
912
|
}
|
|
939
913
|
}
|
|
940
914
|
|
|
@@ -998,13 +972,13 @@
|
|
|
998
972
|
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
999
973
|
};
|
|
1000
974
|
|
|
1001
|
-
var bind = requireFunctionBind();
|
|
1002
|
-
var hasOwn$
|
|
1003
|
-
var $concat$1 = bind.call($call, Array.prototype.concat);
|
|
1004
|
-
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
1005
|
-
var $replace$1 = bind.call($call, String.prototype.replace);
|
|
1006
|
-
var $strSlice = bind.call($call, String.prototype.slice);
|
|
1007
|
-
var $exec$1 = bind.call($call, RegExp.prototype.exec);
|
|
975
|
+
var bind$1 = requireFunctionBind();
|
|
976
|
+
var hasOwn$3 = hasown;
|
|
977
|
+
var $concat$1 = bind$1.call($call, Array.prototype.concat);
|
|
978
|
+
var $spliceApply = bind$1.call($apply$1, Array.prototype.splice);
|
|
979
|
+
var $replace$1 = bind$1.call($call, String.prototype.replace);
|
|
980
|
+
var $strSlice = bind$1.call($call, String.prototype.slice);
|
|
981
|
+
var $exec$1 = bind$1.call($call, RegExp.prototype.exec);
|
|
1008
982
|
|
|
1009
983
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
1010
984
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -1028,18 +1002,18 @@
|
|
|
1028
1002
|
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
1029
1003
|
var intrinsicName = name;
|
|
1030
1004
|
var alias;
|
|
1031
|
-
if (hasOwn$
|
|
1005
|
+
if (hasOwn$3(LEGACY_ALIASES, intrinsicName)) {
|
|
1032
1006
|
alias = LEGACY_ALIASES[intrinsicName];
|
|
1033
1007
|
intrinsicName = '%' + alias[0] + '%';
|
|
1034
1008
|
}
|
|
1035
1009
|
|
|
1036
|
-
if (hasOwn$
|
|
1010
|
+
if (hasOwn$3(INTRINSICS, intrinsicName)) {
|
|
1037
1011
|
var value = INTRINSICS[intrinsicName];
|
|
1038
1012
|
if (value === needsEval) {
|
|
1039
1013
|
value = doEval(intrinsicName);
|
|
1040
1014
|
}
|
|
1041
1015
|
if (typeof value === 'undefined' && !allowMissing) {
|
|
1042
|
-
throw new $TypeError$
|
|
1016
|
+
throw new $TypeError$9('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
1043
1017
|
}
|
|
1044
1018
|
|
|
1045
1019
|
return {
|
|
@@ -1054,10 +1028,10 @@
|
|
|
1054
1028
|
|
|
1055
1029
|
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
1056
1030
|
if (typeof name !== 'string' || name.length === 0) {
|
|
1057
|
-
throw new $TypeError$
|
|
1031
|
+
throw new $TypeError$9('intrinsic name must be a non-empty string');
|
|
1058
1032
|
}
|
|
1059
1033
|
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
1060
|
-
throw new $TypeError$
|
|
1034
|
+
throw new $TypeError$9('"allowMissing" argument must be a boolean');
|
|
1061
1035
|
}
|
|
1062
1036
|
|
|
1063
1037
|
if ($exec$1(/^%?[^%]*%?$/, name) === null) {
|
|
@@ -1097,14 +1071,14 @@
|
|
|
1097
1071
|
intrinsicBaseName += '.' + part;
|
|
1098
1072
|
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
1099
1073
|
|
|
1100
|
-
if (hasOwn$
|
|
1074
|
+
if (hasOwn$3(INTRINSICS, intrinsicRealName)) {
|
|
1101
1075
|
value = INTRINSICS[intrinsicRealName];
|
|
1102
1076
|
} else if (value != null) {
|
|
1103
1077
|
if (!(part in value)) {
|
|
1104
1078
|
if (!allowMissing) {
|
|
1105
|
-
throw new $TypeError$
|
|
1079
|
+
throw new $TypeError$9('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1106
1080
|
}
|
|
1107
|
-
return void
|
|
1081
|
+
return void undefined$1;
|
|
1108
1082
|
}
|
|
1109
1083
|
if ($gOPD$1 && (i + 1) >= parts.length) {
|
|
1110
1084
|
var desc = $gOPD$1(value, part);
|
|
@@ -1123,7 +1097,7 @@
|
|
|
1123
1097
|
value = value[part];
|
|
1124
1098
|
}
|
|
1125
1099
|
} else {
|
|
1126
|
-
isOwn = hasOwn$
|
|
1100
|
+
isOwn = hasOwn$3(value, part);
|
|
1127
1101
|
value = value[part];
|
|
1128
1102
|
}
|
|
1129
1103
|
|
|
@@ -1140,16 +1114,16 @@
|
|
|
1140
1114
|
var hasDescriptors$1 = hasPropertyDescriptors_1();
|
|
1141
1115
|
var gOPD$4 = gopd$1;
|
|
1142
1116
|
|
|
1143
|
-
var $TypeError$
|
|
1117
|
+
var $TypeError$8 = type;
|
|
1144
1118
|
var $floor$1 = GetIntrinsic$8('%Math.floor%');
|
|
1145
1119
|
|
|
1146
1120
|
/** @type {import('.')} */
|
|
1147
1121
|
var setFunctionLength = function setFunctionLength(fn, length) {
|
|
1148
1122
|
if (typeof fn !== 'function') {
|
|
1149
|
-
throw new $TypeError$
|
|
1123
|
+
throw new $TypeError$8('`fn` is not a function');
|
|
1150
1124
|
}
|
|
1151
1125
|
if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor$1(length) !== length) {
|
|
1152
|
-
throw new $TypeError$
|
|
1126
|
+
throw new $TypeError$8('`length` must be a positive 32-bit integer');
|
|
1153
1127
|
}
|
|
1154
1128
|
|
|
1155
1129
|
var loose = arguments.length > 2 && !!arguments[2];
|
|
@@ -1176,55 +1150,57 @@
|
|
|
1176
1150
|
return fn;
|
|
1177
1151
|
};
|
|
1178
1152
|
|
|
1153
|
+
var bind = requireFunctionBind();
|
|
1154
|
+
var $apply = requireFunctionApply();
|
|
1155
|
+
var actualApply = actualApply$1;
|
|
1156
|
+
|
|
1157
|
+
/** @type {import('./applyBind')} */
|
|
1158
|
+
var applyBind = function applyBind() {
|
|
1159
|
+
return actualApply(bind, $apply, arguments);
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1179
1162
|
(function (module) {
|
|
1180
1163
|
|
|
1181
|
-
var bind = requireFunctionBind();
|
|
1182
|
-
var GetIntrinsic = getIntrinsic;
|
|
1183
1164
|
var setFunctionLength$1 = setFunctionLength;
|
|
1184
1165
|
|
|
1185
|
-
var $TypeError = type;
|
|
1186
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
1187
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
1188
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
1189
|
-
|
|
1190
1166
|
var $defineProperty = esDefineProperty;
|
|
1191
|
-
|
|
1167
|
+
|
|
1168
|
+
var callBindBasic = callBindApplyHelpers;
|
|
1169
|
+
var applyBind$1 = applyBind;
|
|
1192
1170
|
|
|
1193
1171
|
module.exports = function callBind(originalFunction) {
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
}
|
|
1197
|
-
var func = $reflectApply(bind, $call, arguments);
|
|
1172
|
+
var func = callBindBasic(arguments);
|
|
1173
|
+
var adjustedLength = originalFunction.length - (arguments.length - 1);
|
|
1198
1174
|
return setFunctionLength$1(
|
|
1199
1175
|
func,
|
|
1200
|
-
1 +
|
|
1176
|
+
1 + (adjustedLength > 0 ? adjustedLength : 0),
|
|
1201
1177
|
true
|
|
1202
1178
|
);
|
|
1203
1179
|
};
|
|
1204
1180
|
|
|
1205
|
-
var applyBind = function applyBind() {
|
|
1206
|
-
return $reflectApply(bind, $apply, arguments);
|
|
1207
|
-
};
|
|
1208
|
-
|
|
1209
1181
|
if ($defineProperty) {
|
|
1210
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
1182
|
+
$defineProperty(module.exports, 'apply', { value: applyBind$1 });
|
|
1211
1183
|
} else {
|
|
1212
|
-
module.exports.apply = applyBind;
|
|
1184
|
+
module.exports.apply = applyBind$1;
|
|
1213
1185
|
}
|
|
1214
|
-
} (callBind$
|
|
1186
|
+
} (callBind$7));
|
|
1215
1187
|
|
|
1216
|
-
var callBindExports = callBind$
|
|
1188
|
+
var callBindExports = callBind$7.exports;
|
|
1217
1189
|
|
|
1218
1190
|
var GetIntrinsic$7 = getIntrinsic;
|
|
1219
1191
|
|
|
1220
|
-
var
|
|
1192
|
+
var callBindBasic = callBindApplyHelpers;
|
|
1221
1193
|
|
|
1222
|
-
|
|
1194
|
+
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
1195
|
+
var $indexOf$2 = callBindBasic([GetIntrinsic$7('%String.prototype.indexOf%')]);
|
|
1223
1196
|
|
|
1224
|
-
|
|
1225
|
-
|
|
1197
|
+
/** @type {import('.')} */
|
|
1198
|
+
var callBound$i = function callBoundIntrinsic(name, allowMissing) {
|
|
1199
|
+
/* eslint no-extra-parens: 0 */
|
|
1200
|
+
|
|
1201
|
+
var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic$7(name, !!allowMissing));
|
|
1226
1202
|
if (typeof intrinsic === 'function' && $indexOf$2(name, '.prototype.') > -1) {
|
|
1227
|
-
return
|
|
1203
|
+
return callBindBasic(/** @type {const} */ ([intrinsic]));
|
|
1228
1204
|
}
|
|
1229
1205
|
return intrinsic;
|
|
1230
1206
|
};
|
|
@@ -1232,25 +1208,25 @@
|
|
|
1232
1208
|
// modified from https://github.com/es-shims/es6-shim
|
|
1233
1209
|
var objectKeys$1 = objectKeys$2;
|
|
1234
1210
|
var hasSymbols$2 = requireShams()();
|
|
1235
|
-
var callBound$
|
|
1236
|
-
var
|
|
1237
|
-
var $push = callBound$
|
|
1238
|
-
var $propIsEnumerable = callBound$
|
|
1239
|
-
var originalGetSymbols = hasSymbols$2 ? Object.getOwnPropertySymbols : null;
|
|
1211
|
+
var callBound$h = callBound$i;
|
|
1212
|
+
var $Object$1 = esObjectAtoms;
|
|
1213
|
+
var $push = callBound$h('Array.prototype.push');
|
|
1214
|
+
var $propIsEnumerable = callBound$h('Object.prototype.propertyIsEnumerable');
|
|
1215
|
+
var originalGetSymbols = hasSymbols$2 ? $Object$1.getOwnPropertySymbols : null;
|
|
1240
1216
|
|
|
1241
1217
|
// eslint-disable-next-line no-unused-vars
|
|
1242
1218
|
var implementation$8 = function assign(target, source1) {
|
|
1243
1219
|
if (target == null) { throw new TypeError('target must be an object'); }
|
|
1244
|
-
var to =
|
|
1220
|
+
var to = $Object$1(target); // step 1
|
|
1245
1221
|
if (arguments.length === 1) {
|
|
1246
1222
|
return to; // step 2
|
|
1247
1223
|
}
|
|
1248
1224
|
for (var s = 1; s < arguments.length; ++s) {
|
|
1249
|
-
var from =
|
|
1225
|
+
var from = $Object$1(arguments[s]); // step 3.a.i
|
|
1250
1226
|
|
|
1251
1227
|
// step 3.a.ii:
|
|
1252
1228
|
var keys = objectKeys$1(from);
|
|
1253
|
-
var getSymbols = hasSymbols$2 && (Object.getOwnPropertySymbols || originalGetSymbols);
|
|
1229
|
+
var getSymbols = hasSymbols$2 && ($Object$1.getOwnPropertySymbols || originalGetSymbols);
|
|
1254
1230
|
if (getSymbols) {
|
|
1255
1231
|
var syms = getSymbols(from);
|
|
1256
1232
|
for (var j = 0; j < syms.length; ++j) {
|
|
@@ -1342,13 +1318,13 @@
|
|
|
1342
1318
|
};
|
|
1343
1319
|
|
|
1344
1320
|
var defineProperties = defineProperties_1;
|
|
1345
|
-
var callBind$
|
|
1321
|
+
var callBind$5 = callBindExports;
|
|
1346
1322
|
|
|
1347
1323
|
var implementation$6 = implementation$8;
|
|
1348
1324
|
var getPolyfill$4 = polyfill$4;
|
|
1349
1325
|
var shim$4 = shim$5;
|
|
1350
1326
|
|
|
1351
|
-
var polyfill$3 = callBind$
|
|
1327
|
+
var polyfill$3 = callBind$5.apply(getPolyfill$4());
|
|
1352
1328
|
// eslint-disable-next-line no-unused-vars
|
|
1353
1329
|
var bound = function assign(target, source1) {
|
|
1354
1330
|
return polyfill$3(Object, arguments);
|
|
@@ -1362,6 +1338,20 @@
|
|
|
1362
1338
|
|
|
1363
1339
|
var object_assign = bound;
|
|
1364
1340
|
|
|
1341
|
+
var GetIntrinsic$6 = getIntrinsic;
|
|
1342
|
+
|
|
1343
|
+
var callBind$4 = callBindExports;
|
|
1344
|
+
|
|
1345
|
+
var $indexOf$1 = callBind$4(GetIntrinsic$6('String.prototype.indexOf'));
|
|
1346
|
+
|
|
1347
|
+
var callBound$g = function callBoundIntrinsic(name, allowMissing) {
|
|
1348
|
+
var intrinsic = GetIntrinsic$6(name, !!allowMissing);
|
|
1349
|
+
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.') > -1) {
|
|
1350
|
+
return callBind$4(intrinsic);
|
|
1351
|
+
}
|
|
1352
|
+
return intrinsic;
|
|
1353
|
+
};
|
|
1354
|
+
|
|
1365
1355
|
var functionsHaveNames = function functionsHaveNames() {
|
|
1366
1356
|
return typeof function f() {}.name === 'string';
|
|
1367
1357
|
};
|
|
@@ -1396,12 +1386,12 @@
|
|
|
1396
1386
|
var hasDescriptors = hasPropertyDescriptors_1();
|
|
1397
1387
|
var functionsHaveConfigurableNames = functionsHaveNames_1.functionsHaveConfigurableNames();
|
|
1398
1388
|
|
|
1399
|
-
var $TypeError$
|
|
1389
|
+
var $TypeError$7 = type;
|
|
1400
1390
|
|
|
1401
1391
|
/** @type {import('.')} */
|
|
1402
1392
|
var setFunctionName$1 = function setFunctionName(fn, name) {
|
|
1403
1393
|
if (typeof fn !== 'function') {
|
|
1404
|
-
throw new $TypeError$
|
|
1394
|
+
throw new $TypeError$7('`fn` is not a function');
|
|
1405
1395
|
}
|
|
1406
1396
|
var loose = arguments.length > 2 && !!arguments[2];
|
|
1407
1397
|
if (!loose || functionsHaveConfigurableNames) {
|
|
@@ -1415,13 +1405,13 @@
|
|
|
1415
1405
|
};
|
|
1416
1406
|
|
|
1417
1407
|
var setFunctionName = setFunctionName$1;
|
|
1418
|
-
var $TypeError$
|
|
1408
|
+
var $TypeError$6 = type;
|
|
1419
1409
|
|
|
1420
1410
|
var $Object = Object;
|
|
1421
1411
|
|
|
1422
1412
|
var implementation$5 = setFunctionName(function flags() {
|
|
1423
1413
|
if (this == null || this !== $Object(this)) {
|
|
1424
|
-
throw new $TypeError$
|
|
1414
|
+
throw new $TypeError$6('RegExp.prototype.flags getter called on non-object');
|
|
1425
1415
|
}
|
|
1426
1416
|
var result = '';
|
|
1427
1417
|
if (this.hasIndices) {
|
|
@@ -1462,8 +1452,8 @@
|
|
|
1462
1452
|
if (
|
|
1463
1453
|
descriptor
|
|
1464
1454
|
&& typeof descriptor.get === 'function'
|
|
1465
|
-
&&
|
|
1466
|
-
&&
|
|
1455
|
+
&& 'dotAll' in RegExp.prototype
|
|
1456
|
+
&& 'hasIndices' in RegExp.prototype
|
|
1467
1457
|
) {
|
|
1468
1458
|
/* eslint getter-return: 0 */
|
|
1469
1459
|
var calls = '';
|
|
@@ -1478,6 +1468,9 @@
|
|
|
1478
1468
|
calls += 'y';
|
|
1479
1469
|
}
|
|
1480
1470
|
});
|
|
1471
|
+
|
|
1472
|
+
descriptor.get.call(o);
|
|
1473
|
+
|
|
1481
1474
|
if (calls === 'dy') {
|
|
1482
1475
|
return descriptor.get;
|
|
1483
1476
|
}
|
|
@@ -1488,18 +1481,18 @@
|
|
|
1488
1481
|
|
|
1489
1482
|
var supportsDescriptors = defineProperties_1.supportsDescriptors;
|
|
1490
1483
|
var getPolyfill$3 = polyfill$2;
|
|
1491
|
-
var gOPD$2 =
|
|
1484
|
+
var gOPD$2 = gopd$1;
|
|
1492
1485
|
var defineProperty = Object.defineProperty;
|
|
1493
|
-
var
|
|
1494
|
-
var getProto =
|
|
1486
|
+
var $TypeError$5 = esErrors;
|
|
1487
|
+
var getProto$1 = getProto$3;
|
|
1495
1488
|
var regex = /a/;
|
|
1496
1489
|
|
|
1497
1490
|
var shim$3 = function shimFlags() {
|
|
1498
|
-
if (!supportsDescriptors || !getProto) {
|
|
1499
|
-
throw new
|
|
1491
|
+
if (!supportsDescriptors || !getProto$1) {
|
|
1492
|
+
throw new $TypeError$5('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');
|
|
1500
1493
|
}
|
|
1501
1494
|
var polyfill = getPolyfill$3();
|
|
1502
|
-
var proto = getProto(regex);
|
|
1495
|
+
var proto = getProto$1(regex);
|
|
1503
1496
|
var descriptor = gOPD$2(proto, 'flags');
|
|
1504
1497
|
if (!descriptor || descriptor.get !== polyfill) {
|
|
1505
1498
|
defineProperty(proto, 'flags', {
|
|
@@ -1538,35 +1531,46 @@
|
|
|
1538
1531
|
};
|
|
1539
1532
|
|
|
1540
1533
|
var hasToStringTag$7 = shams();
|
|
1541
|
-
var callBound$
|
|
1534
|
+
var callBound$f = callBound$i;
|
|
1542
1535
|
|
|
1543
|
-
var $toString$
|
|
1536
|
+
var $toString$7 = callBound$f('Object.prototype.toString');
|
|
1544
1537
|
|
|
1538
|
+
/** @type {import('.')} */
|
|
1545
1539
|
var isStandardArguments = function isArguments(value) {
|
|
1546
|
-
if (
|
|
1540
|
+
if (
|
|
1541
|
+
hasToStringTag$7
|
|
1542
|
+
&& value
|
|
1543
|
+
&& typeof value === 'object'
|
|
1544
|
+
&& Symbol.toStringTag in value
|
|
1545
|
+
) {
|
|
1547
1546
|
return false;
|
|
1548
1547
|
}
|
|
1549
|
-
return $toString$
|
|
1548
|
+
return $toString$7(value) === '[object Arguments]';
|
|
1550
1549
|
};
|
|
1551
1550
|
|
|
1551
|
+
/** @type {import('.')} */
|
|
1552
1552
|
var isLegacyArguments = function isArguments(value) {
|
|
1553
1553
|
if (isStandardArguments(value)) {
|
|
1554
1554
|
return true;
|
|
1555
1555
|
}
|
|
1556
|
-
return value !== null
|
|
1557
|
-
typeof value === 'object'
|
|
1558
|
-
|
|
1559
|
-
value.length
|
|
1560
|
-
|
|
1561
|
-
$toString$
|
|
1556
|
+
return value !== null
|
|
1557
|
+
&& typeof value === 'object'
|
|
1558
|
+
&& 'length' in value
|
|
1559
|
+
&& typeof value.length === 'number'
|
|
1560
|
+
&& value.length >= 0
|
|
1561
|
+
&& $toString$7(value) !== '[object Array]'
|
|
1562
|
+
&& 'callee' in value
|
|
1563
|
+
&& $toString$7(value.callee) === '[object Function]';
|
|
1562
1564
|
};
|
|
1563
1565
|
|
|
1564
1566
|
var supportsStandardArguments = (function () {
|
|
1565
1567
|
return isStandardArguments(arguments);
|
|
1566
1568
|
}());
|
|
1567
1569
|
|
|
1570
|
+
// @ts-expect-error TODO make this not error
|
|
1568
1571
|
isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
|
|
1569
1572
|
|
|
1573
|
+
/** @type {import('.')} */
|
|
1570
1574
|
var isArguments$2 = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
1571
1575
|
|
|
1572
1576
|
var _nodeResolve_empty = {};
|
|
@@ -1663,31 +1667,31 @@
|
|
|
1663
1667
|
var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
1664
1668
|
var opts = options || {};
|
|
1665
1669
|
|
|
1666
|
-
if (has
|
|
1670
|
+
if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) {
|
|
1667
1671
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
1668
1672
|
}
|
|
1669
1673
|
if (
|
|
1670
|
-
has
|
|
1674
|
+
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
1671
1675
|
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
1672
1676
|
: opts.maxStringLength !== null
|
|
1673
1677
|
)
|
|
1674
1678
|
) {
|
|
1675
1679
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
1676
1680
|
}
|
|
1677
|
-
var customInspect = has
|
|
1681
|
+
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
1678
1682
|
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
1679
1683
|
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
1680
1684
|
}
|
|
1681
1685
|
|
|
1682
1686
|
if (
|
|
1683
|
-
has
|
|
1687
|
+
has(opts, 'indent')
|
|
1684
1688
|
&& opts.indent !== null
|
|
1685
1689
|
&& opts.indent !== '\t'
|
|
1686
1690
|
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
1687
1691
|
) {
|
|
1688
1692
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
1689
1693
|
}
|
|
1690
|
-
if (has
|
|
1694
|
+
if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
|
1691
1695
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
1692
1696
|
}
|
|
1693
1697
|
var numericSeparator = opts.numericSeparator;
|
|
@@ -1720,7 +1724,7 @@
|
|
|
1720
1724
|
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
1721
1725
|
if (typeof depth === 'undefined') { depth = 0; }
|
|
1722
1726
|
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
1723
|
-
return isArray$
|
|
1727
|
+
return isArray$3(obj) ? '[Array]' : '[Object]';
|
|
1724
1728
|
}
|
|
1725
1729
|
|
|
1726
1730
|
var indent = getIndent(opts, depth);
|
|
@@ -1740,7 +1744,7 @@
|
|
|
1740
1744
|
var newOpts = {
|
|
1741
1745
|
depth: opts.depth
|
|
1742
1746
|
};
|
|
1743
|
-
if (has
|
|
1747
|
+
if (has(opts, 'quoteStyle')) {
|
|
1744
1748
|
newOpts.quoteStyle = opts.quoteStyle;
|
|
1745
1749
|
}
|
|
1746
1750
|
return inspect_(value, newOpts, depth + 1, seen);
|
|
@@ -1768,7 +1772,7 @@
|
|
|
1768
1772
|
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
|
1769
1773
|
return s;
|
|
1770
1774
|
}
|
|
1771
|
-
if (isArray$
|
|
1775
|
+
if (isArray$3(obj)) {
|
|
1772
1776
|
if (obj.length === 0) { return '[]'; }
|
|
1773
1777
|
var xs = arrObjKeys(obj, inspect);
|
|
1774
1778
|
if (indent && !singleLineValues(xs)) {
|
|
@@ -1845,7 +1849,7 @@
|
|
|
1845
1849
|
var ys = arrObjKeys(obj, inspect);
|
|
1846
1850
|
var isPlainObject = gPO$1 ? gPO$1(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
1847
1851
|
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
1848
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice$1.call(toStr$
|
|
1852
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice$1.call(toStr$3(obj), 8, -1) : protoTag ? 'Object' : '';
|
|
1849
1853
|
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
1850
1854
|
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
|
1851
1855
|
if (ys.length === 0) { return tag + '{}'; }
|
|
@@ -1867,13 +1871,16 @@
|
|
|
1867
1871
|
return $replace.call(String(s), /"/g, '"');
|
|
1868
1872
|
}
|
|
1869
1873
|
|
|
1870
|
-
function
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
function
|
|
1874
|
-
function
|
|
1875
|
-
function
|
|
1876
|
-
function
|
|
1874
|
+
function canTrustToString(obj) {
|
|
1875
|
+
return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined'));
|
|
1876
|
+
}
|
|
1877
|
+
function isArray$3(obj) { return toStr$3(obj) === '[object Array]' && canTrustToString(obj); }
|
|
1878
|
+
function isDate$1(obj) { return toStr$3(obj) === '[object Date]' && canTrustToString(obj); }
|
|
1879
|
+
function isRegExp(obj) { return toStr$3(obj) === '[object RegExp]' && canTrustToString(obj); }
|
|
1880
|
+
function isError(obj) { return toStr$3(obj) === '[object Error]' && canTrustToString(obj); }
|
|
1881
|
+
function isString$3(obj) { return toStr$3(obj) === '[object String]' && canTrustToString(obj); }
|
|
1882
|
+
function isNumber$1(obj) { return toStr$3(obj) === '[object Number]' && canTrustToString(obj); }
|
|
1883
|
+
function isBoolean$1(obj) { return toStr$3(obj) === '[object Boolean]' && canTrustToString(obj); }
|
|
1877
1884
|
|
|
1878
1885
|
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
1879
1886
|
function isSymbol$2(obj) {
|
|
@@ -1904,12 +1911,12 @@
|
|
|
1904
1911
|
return false;
|
|
1905
1912
|
}
|
|
1906
1913
|
|
|
1907
|
-
var hasOwn$
|
|
1908
|
-
function has
|
|
1909
|
-
return hasOwn$
|
|
1914
|
+
var hasOwn$2 = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
|
1915
|
+
function has(obj, key) {
|
|
1916
|
+
return hasOwn$2.call(obj, key);
|
|
1910
1917
|
}
|
|
1911
1918
|
|
|
1912
|
-
function toStr$
|
|
1919
|
+
function toStr$3(obj) {
|
|
1913
1920
|
return objectToString.call(obj);
|
|
1914
1921
|
}
|
|
1915
1922
|
|
|
@@ -2081,12 +2088,12 @@
|
|
|
2081
2088
|
}
|
|
2082
2089
|
|
|
2083
2090
|
function arrObjKeys(obj, inspect) {
|
|
2084
|
-
var isArr = isArray$
|
|
2091
|
+
var isArr = isArray$3(obj);
|
|
2085
2092
|
var xs = [];
|
|
2086
2093
|
if (isArr) {
|
|
2087
2094
|
xs.length = obj.length;
|
|
2088
2095
|
for (var i = 0; i < obj.length; i++) {
|
|
2089
|
-
xs[i] = has
|
|
2096
|
+
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
|
|
2090
2097
|
}
|
|
2091
2098
|
}
|
|
2092
2099
|
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
@@ -2099,7 +2106,7 @@
|
|
|
2099
2106
|
}
|
|
2100
2107
|
|
|
2101
2108
|
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
|
2102
|
-
if (!has
|
|
2109
|
+
if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
2103
2110
|
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
2104
2111
|
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
2105
2112
|
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
|
@@ -2154,7 +2161,7 @@
|
|
|
2154
2161
|
/** @type {import('./list.d.ts').listGet} */
|
|
2155
2162
|
var listGet = function (objects, key) {
|
|
2156
2163
|
if (!objects) {
|
|
2157
|
-
return void
|
|
2164
|
+
return void undefined;
|
|
2158
2165
|
}
|
|
2159
2166
|
var node = listGetNode(objects, key);
|
|
2160
2167
|
return node && node.value;
|
|
@@ -2207,7 +2214,7 @@
|
|
|
2207
2214
|
var root = $o && $o.next;
|
|
2208
2215
|
var deletedNode = listDelete($o, key);
|
|
2209
2216
|
if (deletedNode && root && root === deletedNode) {
|
|
2210
|
-
$o = void
|
|
2217
|
+
$o = void undefined;
|
|
2211
2218
|
}
|
|
2212
2219
|
return !!deletedNode;
|
|
2213
2220
|
},
|
|
@@ -2221,7 +2228,7 @@
|
|
|
2221
2228
|
if (!$o) {
|
|
2222
2229
|
// 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
|
|
2223
2230
|
$o = {
|
|
2224
|
-
next: void
|
|
2231
|
+
next: void undefined
|
|
2225
2232
|
};
|
|
2226
2233
|
}
|
|
2227
2234
|
// eslint-disable-next-line no-extra-parens
|
|
@@ -2232,40 +2239,23 @@
|
|
|
2232
2239
|
return channel;
|
|
2233
2240
|
};
|
|
2234
2241
|
|
|
2235
|
-
var GetIntrinsic$6 = getIntrinsic;
|
|
2236
|
-
|
|
2237
|
-
var callBindBasic = callBindApplyHelpers;
|
|
2238
|
-
|
|
2239
|
-
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
2240
|
-
var $indexOf$1 = callBindBasic([GetIntrinsic$6('%String.prototype.indexOf%')]);
|
|
2241
|
-
|
|
2242
|
-
/** @type {import('.')} */
|
|
2243
|
-
var callBound$b = function callBoundIntrinsic(name, allowMissing) {
|
|
2244
|
-
// eslint-disable-next-line no-extra-parens
|
|
2245
|
-
var intrinsic = /** @type {Parameters<typeof callBindBasic>[0][0]} */ (GetIntrinsic$6(name, !!allowMissing));
|
|
2246
|
-
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.') > -1) {
|
|
2247
|
-
return callBindBasic([intrinsic]);
|
|
2248
|
-
}
|
|
2249
|
-
return intrinsic;
|
|
2250
|
-
};
|
|
2251
|
-
|
|
2252
2242
|
var GetIntrinsic$5 = getIntrinsic;
|
|
2253
|
-
var callBound$
|
|
2243
|
+
var callBound$e = callBound$i;
|
|
2254
2244
|
var inspect$2 = objectInspect;
|
|
2255
2245
|
|
|
2256
2246
|
var $TypeError$3 = type;
|
|
2257
2247
|
var $Map$3 = GetIntrinsic$5('%Map%', true);
|
|
2258
2248
|
|
|
2259
2249
|
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
|
|
2260
|
-
var $mapGet$1 = callBound$
|
|
2250
|
+
var $mapGet$1 = callBound$e('Map.prototype.get', true);
|
|
2261
2251
|
/** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
|
|
2262
|
-
var $mapSet = callBound$
|
|
2252
|
+
var $mapSet = callBound$e('Map.prototype.set', true);
|
|
2263
2253
|
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
2264
|
-
var $mapHas$5 = callBound$
|
|
2254
|
+
var $mapHas$5 = callBound$e('Map.prototype.has', true);
|
|
2265
2255
|
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
2266
|
-
var $mapDelete = callBound$
|
|
2256
|
+
var $mapDelete = callBound$e('Map.prototype.delete', true);
|
|
2267
2257
|
/** @type {<K, V>(thisArg: Map<K, V>) => number} */
|
|
2268
|
-
var $mapSize$1 = callBound$
|
|
2258
|
+
var $mapSize$1 = callBound$e('Map.prototype.size', true);
|
|
2269
2259
|
|
|
2270
2260
|
/** @type {import('.')} */
|
|
2271
2261
|
var sideChannelMap = !!$Map$3 && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
|
|
@@ -2286,7 +2276,7 @@
|
|
|
2286
2276
|
if ($m) {
|
|
2287
2277
|
var result = $mapDelete($m, key);
|
|
2288
2278
|
if ($mapSize$1($m) === 0) {
|
|
2289
|
-
$m = void
|
|
2279
|
+
$m = void undefined;
|
|
2290
2280
|
}
|
|
2291
2281
|
return result;
|
|
2292
2282
|
}
|
|
@@ -2317,7 +2307,7 @@
|
|
|
2317
2307
|
};
|
|
2318
2308
|
|
|
2319
2309
|
var GetIntrinsic$4 = getIntrinsic;
|
|
2320
|
-
var callBound$
|
|
2310
|
+
var callBound$d = callBound$i;
|
|
2321
2311
|
var inspect$1 = objectInspect;
|
|
2322
2312
|
var getSideChannelMap$1 = sideChannelMap;
|
|
2323
2313
|
|
|
@@ -2325,13 +2315,13 @@
|
|
|
2325
2315
|
var $WeakMap$1 = GetIntrinsic$4('%WeakMap%', true);
|
|
2326
2316
|
|
|
2327
2317
|
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */
|
|
2328
|
-
var $weakMapGet = callBound$
|
|
2318
|
+
var $weakMapGet = callBound$d('WeakMap.prototype.get', true);
|
|
2329
2319
|
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K, value: V) => void} */
|
|
2330
|
-
var $weakMapSet = callBound$
|
|
2320
|
+
var $weakMapSet = callBound$d('WeakMap.prototype.set', true);
|
|
2331
2321
|
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
2332
|
-
var $weakMapHas = callBound$
|
|
2322
|
+
var $weakMapHas = callBound$d('WeakMap.prototype.has', true);
|
|
2333
2323
|
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
2334
|
-
var $weakMapDelete = callBound$
|
|
2324
|
+
var $weakMapDelete = callBound$d('WeakMap.prototype.delete', true);
|
|
2335
2325
|
|
|
2336
2326
|
/** @type {import('.')} */
|
|
2337
2327
|
var sideChannelWeakmap = $WeakMap$1
|
|
@@ -2441,11 +2431,16 @@
|
|
|
2441
2431
|
return channel;
|
|
2442
2432
|
};
|
|
2443
2433
|
|
|
2444
|
-
|
|
2434
|
+
/** @typedef {`$${import('.').InternalSlot}`} SaltedInternalSlot */
|
|
2435
|
+
/** @typedef {{ [k in SaltedInternalSlot]?: unknown }} SlotsObject */
|
|
2436
|
+
|
|
2437
|
+
var hasOwn$1 = hasown;
|
|
2438
|
+
/** @type {import('side-channel').Channel<object, SlotsObject>} */
|
|
2445
2439
|
var channel = sideChannel();
|
|
2446
2440
|
|
|
2447
2441
|
var $TypeError = type;
|
|
2448
2442
|
|
|
2443
|
+
/** @type {import('.')} */
|
|
2449
2444
|
var SLOT$1 = {
|
|
2450
2445
|
assert: function (O, slot) {
|
|
2451
2446
|
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
@@ -2467,7 +2462,8 @@
|
|
|
2467
2462
|
throw new $TypeError('`slot` must be a string');
|
|
2468
2463
|
}
|
|
2469
2464
|
var slots = channel.get(O);
|
|
2470
|
-
|
|
2465
|
+
// eslint-disable-next-line no-extra-parens
|
|
2466
|
+
return slots && slots[/** @type {SaltedInternalSlot} */ ('$' + slot)];
|
|
2471
2467
|
},
|
|
2472
2468
|
has: function (O, slot) {
|
|
2473
2469
|
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
@@ -2477,7 +2473,8 @@
|
|
|
2477
2473
|
throw new $TypeError('`slot` must be a string');
|
|
2478
2474
|
}
|
|
2479
2475
|
var slots = channel.get(O);
|
|
2480
|
-
|
|
2476
|
+
// eslint-disable-next-line no-extra-parens
|
|
2477
|
+
return !!slots && hasOwn$1(slots, /** @type {SaltedInternalSlot} */ ('$' + slot));
|
|
2481
2478
|
},
|
|
2482
2479
|
set: function (O, slot, V) {
|
|
2483
2480
|
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
@@ -2491,7 +2488,8 @@
|
|
|
2491
2488
|
slots = {};
|
|
2492
2489
|
channel.set(O, slots);
|
|
2493
2490
|
}
|
|
2494
|
-
|
|
2491
|
+
// eslint-disable-next-line no-extra-parens
|
|
2492
|
+
slots[/** @type {SaltedInternalSlot} */ ('$' + slot)] = V;
|
|
2495
2493
|
}
|
|
2496
2494
|
};
|
|
2497
2495
|
|
|
@@ -2502,10 +2500,11 @@
|
|
|
2502
2500
|
var internalSlot = SLOT$1;
|
|
2503
2501
|
|
|
2504
2502
|
var SLOT = internalSlot;
|
|
2503
|
+
var $SyntaxError = syntax;
|
|
2505
2504
|
|
|
2506
|
-
var $SyntaxError = SyntaxError;
|
|
2507
2505
|
var $StopIteration = typeof StopIteration === 'object' ? StopIteration : null;
|
|
2508
2506
|
|
|
2507
|
+
/** @type {import('.')} */
|
|
2509
2508
|
var stopIterationIterator = function getStopIterationIterator(origIterator) {
|
|
2510
2509
|
if (!$StopIteration) {
|
|
2511
2510
|
throw new $SyntaxError('this environment lacks StopIteration');
|
|
@@ -2513,14 +2512,18 @@
|
|
|
2513
2512
|
|
|
2514
2513
|
SLOT.set(origIterator, '[[Done]]', false);
|
|
2515
2514
|
|
|
2515
|
+
/** @template T @typedef {T extends Iterator<infer U> ? U : never} IteratorType */
|
|
2516
|
+
/** @typedef {IteratorType<ReturnType<typeof getStopIterationIterator>>} T */
|
|
2516
2517
|
var siIterator = {
|
|
2517
|
-
next: function next() {
|
|
2518
|
-
|
|
2519
|
-
var
|
|
2518
|
+
next: /** @type {() => IteratorResult<T>} */ function next() {
|
|
2519
|
+
// eslint-disable-next-line no-extra-parens
|
|
2520
|
+
var iterator = /** @type {typeof origIterator} */ (SLOT.get(this, '[[Iterator]]'));
|
|
2521
|
+
var done = !!SLOT.get(iterator, '[[Done]]');
|
|
2520
2522
|
try {
|
|
2521
2523
|
return {
|
|
2522
2524
|
done: done,
|
|
2523
|
-
|
|
2525
|
+
// eslint-disable-next-line no-extra-parens
|
|
2526
|
+
value: done ? void undefined : /** @type {T} */ (iterator.next())
|
|
2524
2527
|
};
|
|
2525
2528
|
} catch (e) {
|
|
2526
2529
|
SLOT.set(iterator, '[[Done]]', true);
|
|
@@ -2529,7 +2532,7 @@
|
|
|
2529
2532
|
}
|
|
2530
2533
|
return {
|
|
2531
2534
|
done: true,
|
|
2532
|
-
value: void
|
|
2535
|
+
value: void undefined
|
|
2533
2536
|
};
|
|
2534
2537
|
}
|
|
2535
2538
|
}
|
|
@@ -2537,6 +2540,7 @@
|
|
|
2537
2540
|
|
|
2538
2541
|
SLOT.set(siIterator, '[[Iterator]]', origIterator);
|
|
2539
2542
|
|
|
2543
|
+
// @ts-expect-error TODO FIXME
|
|
2540
2544
|
return siIterator;
|
|
2541
2545
|
};
|
|
2542
2546
|
|
|
@@ -2546,27 +2550,34 @@
|
|
|
2546
2550
|
return toString.call(arr) == '[object Array]';
|
|
2547
2551
|
};
|
|
2548
2552
|
|
|
2549
|
-
var
|
|
2553
|
+
var callBound$c = callBound$i;
|
|
2554
|
+
|
|
2555
|
+
/** @type {(receiver: ThisParameterType<typeof String.prototype.valueOf>, ...args: Parameters<typeof String.prototype.valueOf>) => ReturnType<typeof String.prototype.valueOf>} */
|
|
2556
|
+
var $strValueOf = callBound$c('String.prototype.valueOf');
|
|
2557
|
+
|
|
2558
|
+
/** @type {import('.')} */
|
|
2550
2559
|
var tryStringObject = function tryStringObject(value) {
|
|
2551
2560
|
try {
|
|
2552
|
-
|
|
2561
|
+
$strValueOf(value);
|
|
2553
2562
|
return true;
|
|
2554
2563
|
} catch (e) {
|
|
2555
2564
|
return false;
|
|
2556
2565
|
}
|
|
2557
2566
|
};
|
|
2558
|
-
|
|
2567
|
+
/** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
|
|
2568
|
+
var $toString$6 = callBound$c('Object.prototype.toString');
|
|
2559
2569
|
var strClass = '[object String]';
|
|
2560
2570
|
var hasToStringTag$6 = shams();
|
|
2561
2571
|
|
|
2572
|
+
/** @type {import('.')} */
|
|
2562
2573
|
var isString$2 = function isString(value) {
|
|
2563
2574
|
if (typeof value === 'string') {
|
|
2564
2575
|
return true;
|
|
2565
2576
|
}
|
|
2566
|
-
if (typeof value !== 'object') {
|
|
2577
|
+
if (!value || typeof value !== 'object') {
|
|
2567
2578
|
return false;
|
|
2568
2579
|
}
|
|
2569
|
-
return hasToStringTag$6 ? tryStringObject(value) :
|
|
2580
|
+
return hasToStringTag$6 ? tryStringObject(value) : $toString$6(value) === strClass;
|
|
2570
2581
|
};
|
|
2571
2582
|
|
|
2572
2583
|
/** @const */
|
|
@@ -2694,15 +2705,15 @@
|
|
|
2694
2705
|
};
|
|
2695
2706
|
} else {
|
|
2696
2707
|
// Symbol is not available, native or shammed
|
|
2697
|
-
var isArray$
|
|
2708
|
+
var isArray$2 = isarray;
|
|
2698
2709
|
var isString$1 = isString$2;
|
|
2699
2710
|
var GetIntrinsic$3 = getIntrinsic;
|
|
2700
2711
|
var $Map = GetIntrinsic$3('%Map%', true);
|
|
2701
2712
|
var $Set$1 = GetIntrinsic$3('%Set%', true);
|
|
2702
|
-
var callBound$
|
|
2703
|
-
var $arrayPush = callBound$
|
|
2704
|
-
var $charCodeAt = callBound$
|
|
2705
|
-
var $stringSlice = callBound$
|
|
2713
|
+
var callBound$b = callBound$g;
|
|
2714
|
+
var $arrayPush = callBound$b('Array.prototype.push');
|
|
2715
|
+
var $charCodeAt = callBound$b('String.prototype.charCodeAt');
|
|
2716
|
+
var $stringSlice = callBound$b('String.prototype.slice');
|
|
2706
2717
|
|
|
2707
2718
|
var advanceStringIndex = function advanceStringIndex(S, index) {
|
|
2708
2719
|
var length = S.length;
|
|
@@ -2742,7 +2753,7 @@
|
|
|
2742
2753
|
};
|
|
2743
2754
|
|
|
2744
2755
|
var getNonCollectionIterator = function getNonCollectionIterator(iterable, noPrimordialCollections) {
|
|
2745
|
-
if (isArray$
|
|
2756
|
+
if (isArray$2(iterable) || isArguments$1(iterable)) {
|
|
2746
2757
|
return getArrayIterator(iterable);
|
|
2747
2758
|
}
|
|
2748
2759
|
if (isString$1(iterable)) {
|
|
@@ -2793,21 +2804,21 @@
|
|
|
2793
2804
|
var isSet$1 = isSet$2;
|
|
2794
2805
|
|
|
2795
2806
|
// Firefox >= 27, IE 11, Safari 6.2 - 9, Edge 11, es6-shim in older envs, all have forEach
|
|
2796
|
-
var $mapForEach = callBound$
|
|
2797
|
-
var $setForEach = callBound$
|
|
2807
|
+
var $mapForEach = callBound$b('Map.prototype.forEach', true);
|
|
2808
|
+
var $setForEach = callBound$b('Set.prototype.forEach', true);
|
|
2798
2809
|
if (typeof process === 'undefined' || !process.versions || !process.versions.node) { // "if is not node"
|
|
2799
2810
|
|
|
2800
2811
|
// Firefox 17 - 26 has `.iterator()`, whose iterator `.next()` either
|
|
2801
2812
|
// returns a value, or throws a StopIteration object. These browsers
|
|
2802
2813
|
// do not have any other mechanism for iteration.
|
|
2803
|
-
var $mapIterator = callBound$
|
|
2804
|
-
var $setIterator = callBound$
|
|
2814
|
+
var $mapIterator = callBound$b('Map.prototype.iterator', true);
|
|
2815
|
+
var $setIterator = callBound$b('Set.prototype.iterator', true);
|
|
2805
2816
|
}
|
|
2806
2817
|
// Firefox 27-35, and some older es6-shim versions, use a string "@@iterator" property
|
|
2807
2818
|
// this returns a proper iterator object, so we should use it instead of forEach.
|
|
2808
2819
|
// newer es6-shim versions use a string "_es6-shim iterator_" property.
|
|
2809
|
-
var $mapAtAtIterator = callBound$
|
|
2810
|
-
var $setAtAtIterator = callBound$
|
|
2820
|
+
var $mapAtAtIterator = callBound$b('Map.prototype.@@iterator', true) || callBound$b('Map.prototype._es6-shim iterator_', true);
|
|
2821
|
+
var $setAtAtIterator = callBound$b('Set.prototype.@@iterator', true) || callBound$b('Set.prototype._es6-shim iterator_', true);
|
|
2811
2822
|
|
|
2812
2823
|
var getCollectionIterator = function getCollectionIterator(iterable) {
|
|
2813
2824
|
if (isMap$1(iterable)) {
|
|
@@ -2904,13 +2915,13 @@
|
|
|
2904
2915
|
var objectIs = polyfill;
|
|
2905
2916
|
|
|
2906
2917
|
var callBind$1 = callBindExports;
|
|
2907
|
-
var callBound$
|
|
2918
|
+
var callBound$a = callBound$i;
|
|
2908
2919
|
var GetIntrinsic$2 = getIntrinsic;
|
|
2909
2920
|
|
|
2910
2921
|
var $ArrayBuffer = GetIntrinsic$2('%ArrayBuffer%', true);
|
|
2911
2922
|
/** @type {undefined | ((receiver: ArrayBuffer) => number) | ((receiver: unknown) => never)} */
|
|
2912
|
-
var $byteLength$2 = callBound$
|
|
2913
|
-
var $toString$
|
|
2923
|
+
var $byteLength$2 = callBound$a('ArrayBuffer.prototype.byteLength', true);
|
|
2924
|
+
var $toString$5 = callBound$a('Object.prototype.toString');
|
|
2914
2925
|
|
|
2915
2926
|
// in node 0.10, ArrayBuffers have no prototype methods, but have an own slot-checking `slice` method
|
|
2916
2927
|
var abSlice = !!$ArrayBuffer && !$byteLength$2 && new $ArrayBuffer(0).slice;
|
|
@@ -2938,49 +2949,58 @@
|
|
|
2938
2949
|
: $ArrayBuffer
|
|
2939
2950
|
// in node 0.8, ArrayBuffers have no prototype or own methods, but also no Symbol.toStringTag
|
|
2940
2951
|
? function isArrayBuffer(obj) {
|
|
2941
|
-
return $toString$
|
|
2952
|
+
return $toString$5(obj) === '[object ArrayBuffer]';
|
|
2942
2953
|
}
|
|
2954
|
+
// @ts-expect-error
|
|
2943
2955
|
: function isArrayBuffer(obj) { // eslint-disable-line no-unused-vars
|
|
2944
2956
|
return false;
|
|
2945
2957
|
};
|
|
2946
2958
|
|
|
2947
|
-
var
|
|
2959
|
+
var callBound$9 = callBound$i;
|
|
2960
|
+
|
|
2961
|
+
var getDay = callBound$9('Date.prototype.getDay');
|
|
2962
|
+
/** @type {import('.')} */
|
|
2948
2963
|
var tryDateObject = function tryDateGetDayCall(value) {
|
|
2949
2964
|
try {
|
|
2950
|
-
getDay
|
|
2965
|
+
getDay(value);
|
|
2951
2966
|
return true;
|
|
2952
2967
|
} catch (e) {
|
|
2953
2968
|
return false;
|
|
2954
2969
|
}
|
|
2955
2970
|
};
|
|
2956
2971
|
|
|
2957
|
-
|
|
2972
|
+
/** @type {(value: unknown) => string} */
|
|
2973
|
+
var toStr$2 = callBound$9('Object.prototype.toString');
|
|
2958
2974
|
var dateClass = '[object Date]';
|
|
2959
2975
|
var hasToStringTag$5 = shams();
|
|
2960
2976
|
|
|
2977
|
+
/** @type {import('.')} */
|
|
2961
2978
|
var isDateObject = function isDateObject(value) {
|
|
2962
2979
|
if (typeof value !== 'object' || value === null) {
|
|
2963
2980
|
return false;
|
|
2964
2981
|
}
|
|
2965
|
-
return hasToStringTag$5 ? tryDateObject(value) : toStr$
|
|
2982
|
+
return hasToStringTag$5 ? tryDateObject(value) : toStr$2(value) === dateClass;
|
|
2966
2983
|
};
|
|
2967
2984
|
|
|
2968
|
-
var callBound$
|
|
2985
|
+
var callBound$8 = callBound$i;
|
|
2969
2986
|
var hasToStringTag$4 = shams();
|
|
2970
|
-
var
|
|
2971
|
-
var $
|
|
2972
|
-
|
|
2973
|
-
|
|
2987
|
+
var hasOwn = hasown;
|
|
2988
|
+
var gOPD$1 = gopd$1;
|
|
2989
|
+
|
|
2990
|
+
/** @type {import('.')} */
|
|
2991
|
+
var fn;
|
|
2974
2992
|
|
|
2975
2993
|
if (hasToStringTag$4) {
|
|
2976
|
-
|
|
2977
|
-
$exec = callBound$
|
|
2978
|
-
|
|
2994
|
+
/** @type {(receiver: ThisParameterType<typeof RegExp.prototype.exec>, ...args: Parameters<typeof RegExp.prototype.exec>) => ReturnType<typeof RegExp.prototype.exec>} */
|
|
2995
|
+
var $exec = callBound$8('RegExp.prototype.exec');
|
|
2996
|
+
/** @type {object} */
|
|
2997
|
+
var isRegexMarker = {};
|
|
2979
2998
|
|
|
2980
2999
|
var throwRegexMarker = function () {
|
|
2981
3000
|
throw isRegexMarker;
|
|
2982
3001
|
};
|
|
2983
|
-
|
|
3002
|
+
/** @type {{ toString(): never, valueOf(): never, [Symbol.toPrimitive]?(): never }} */
|
|
3003
|
+
var badStringifier = {
|
|
2984
3004
|
toString: throwRegexMarker,
|
|
2985
3005
|
valueOf: throwRegexMarker
|
|
2986
3006
|
};
|
|
@@ -2988,43 +3008,52 @@
|
|
|
2988
3008
|
if (typeof Symbol.toPrimitive === 'symbol') {
|
|
2989
3009
|
badStringifier[Symbol.toPrimitive] = throwRegexMarker;
|
|
2990
3010
|
}
|
|
2991
|
-
}
|
|
2992
3011
|
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
var regexClass = '[object RegExp]';
|
|
2996
|
-
|
|
2997
|
-
var isRegex$1 = hasToStringTag$4
|
|
3012
|
+
/** @type {import('.')} */
|
|
3013
|
+
// @ts-expect-error TS can't figure out that the $exec call always throws
|
|
2998
3014
|
// eslint-disable-next-line consistent-return
|
|
2999
|
-
|
|
3015
|
+
fn = function isRegex(value) {
|
|
3000
3016
|
if (!value || typeof value !== 'object') {
|
|
3001
3017
|
return false;
|
|
3002
3018
|
}
|
|
3003
3019
|
|
|
3004
|
-
|
|
3005
|
-
var
|
|
3020
|
+
// eslint-disable-next-line no-extra-parens
|
|
3021
|
+
var descriptor = /** @type {NonNullable<typeof gOPD>} */ (gOPD$1)(/** @type {{ lastIndex?: unknown }} */ (value), 'lastIndex');
|
|
3022
|
+
var hasLastIndexDataProperty = descriptor && hasOwn(descriptor, 'value');
|
|
3006
3023
|
if (!hasLastIndexDataProperty) {
|
|
3007
3024
|
return false;
|
|
3008
3025
|
}
|
|
3009
3026
|
|
|
3010
3027
|
try {
|
|
3011
|
-
|
|
3028
|
+
// eslint-disable-next-line no-extra-parens
|
|
3029
|
+
$exec(value, /** @type {string} */ (/** @type {unknown} */ (badStringifier)));
|
|
3012
3030
|
} catch (e) {
|
|
3013
3031
|
return e === isRegexMarker;
|
|
3014
3032
|
}
|
|
3015
|
-
}
|
|
3016
|
-
|
|
3033
|
+
};
|
|
3034
|
+
} else {
|
|
3035
|
+
/** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
|
|
3036
|
+
var $toString$4 = callBound$8('Object.prototype.toString');
|
|
3037
|
+
/** @const @type {'[object RegExp]'} */
|
|
3038
|
+
var regexClass = '[object RegExp]';
|
|
3039
|
+
|
|
3040
|
+
/** @type {import('.')} */
|
|
3041
|
+
fn = function isRegex(value) {
|
|
3017
3042
|
// In older browsers, typeof regex incorrectly returns 'function'
|
|
3018
3043
|
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
|
|
3019
3044
|
return false;
|
|
3020
3045
|
}
|
|
3021
3046
|
|
|
3022
|
-
return $toString$
|
|
3047
|
+
return $toString$4(value) === regexClass;
|
|
3023
3048
|
};
|
|
3049
|
+
}
|
|
3050
|
+
|
|
3051
|
+
var isRegex$1 = fn;
|
|
3024
3052
|
|
|
3025
|
-
var callBound$
|
|
3053
|
+
var callBound$7 = callBound$i;
|
|
3026
3054
|
|
|
3027
|
-
|
|
3055
|
+
/** @type {undefined | ((thisArg: SharedArrayBuffer) => number)} */
|
|
3056
|
+
var $byteLength$1 = callBound$7('SharedArrayBuffer.prototype.byteLength', true);
|
|
3028
3057
|
|
|
3029
3058
|
/** @type {import('.')} */
|
|
3030
3059
|
var isSharedArrayBuffer$1 = $byteLength$1
|
|
@@ -3033,43 +3062,50 @@
|
|
|
3033
3062
|
return false;
|
|
3034
3063
|
}
|
|
3035
3064
|
try {
|
|
3065
|
+
// @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
|
|
3036
3066
|
$byteLength$1(obj);
|
|
3037
3067
|
return true;
|
|
3038
3068
|
} catch (e) {
|
|
3039
3069
|
return false;
|
|
3040
3070
|
}
|
|
3041
3071
|
}
|
|
3042
|
-
: function isSharedArrayBuffer(
|
|
3072
|
+
: function isSharedArrayBuffer(_obj) { // eslint-disable-line no-unused-vars
|
|
3043
3073
|
return false;
|
|
3044
3074
|
};
|
|
3045
3075
|
|
|
3046
|
-
var
|
|
3076
|
+
var callBound$6 = callBound$i;
|
|
3077
|
+
|
|
3078
|
+
var $numToStr = callBound$6('Number.prototype.toString');
|
|
3079
|
+
|
|
3080
|
+
/** @type {import('.')} */
|
|
3047
3081
|
var tryNumberObject = function tryNumberObject(value) {
|
|
3048
3082
|
try {
|
|
3049
|
-
numToStr
|
|
3083
|
+
$numToStr(value);
|
|
3050
3084
|
return true;
|
|
3051
3085
|
} catch (e) {
|
|
3052
3086
|
return false;
|
|
3053
3087
|
}
|
|
3054
3088
|
};
|
|
3055
|
-
var
|
|
3089
|
+
var $toString$3 = callBound$6('Object.prototype.toString');
|
|
3056
3090
|
var numClass = '[object Number]';
|
|
3057
3091
|
var hasToStringTag$3 = shams();
|
|
3058
3092
|
|
|
3093
|
+
/** @type {import('.')} */
|
|
3059
3094
|
var isNumberObject = function isNumberObject(value) {
|
|
3060
3095
|
if (typeof value === 'number') {
|
|
3061
3096
|
return true;
|
|
3062
3097
|
}
|
|
3063
|
-
if (typeof value !== 'object') {
|
|
3098
|
+
if (!value || typeof value !== 'object') {
|
|
3064
3099
|
return false;
|
|
3065
3100
|
}
|
|
3066
|
-
return hasToStringTag$3 ? tryNumberObject(value) :
|
|
3101
|
+
return hasToStringTag$3 ? tryNumberObject(value) : $toString$3(value) === numClass;
|
|
3067
3102
|
};
|
|
3068
3103
|
|
|
3069
|
-
var callBound$
|
|
3070
|
-
var $boolToStr = callBound$
|
|
3071
|
-
var $toString$
|
|
3104
|
+
var callBound$5 = callBound$i;
|
|
3105
|
+
var $boolToStr = callBound$5('Boolean.prototype.toString');
|
|
3106
|
+
var $toString$2 = callBound$5('Object.prototype.toString');
|
|
3072
3107
|
|
|
3108
|
+
/** @type {import('.')} */
|
|
3073
3109
|
var tryBooleanObject = function booleanBrandCheck(value) {
|
|
3074
3110
|
try {
|
|
3075
3111
|
$boolToStr(value);
|
|
@@ -3081,6 +3117,7 @@
|
|
|
3081
3117
|
var boolClass = '[object Boolean]';
|
|
3082
3118
|
var hasToStringTag$2 = shams();
|
|
3083
3119
|
|
|
3120
|
+
/** @type {import('.')} */
|
|
3084
3121
|
var isBooleanObject = function isBoolean(value) {
|
|
3085
3122
|
if (typeof value === 'boolean') {
|
|
3086
3123
|
return true;
|
|
@@ -3088,29 +3125,59 @@
|
|
|
3088
3125
|
if (value === null || typeof value !== 'object') {
|
|
3089
3126
|
return false;
|
|
3090
3127
|
}
|
|
3091
|
-
return hasToStringTag$2
|
|
3128
|
+
return hasToStringTag$2 ? tryBooleanObject(value) : $toString$2(value) === boolClass;
|
|
3092
3129
|
};
|
|
3093
3130
|
|
|
3094
3131
|
var isSymbol$1 = {exports: {}};
|
|
3095
3132
|
|
|
3096
|
-
var
|
|
3133
|
+
var safeRegexTest$1;
|
|
3134
|
+
var hasRequiredSafeRegexTest;
|
|
3135
|
+
|
|
3136
|
+
function requireSafeRegexTest () {
|
|
3137
|
+
if (hasRequiredSafeRegexTest) return safeRegexTest$1;
|
|
3138
|
+
hasRequiredSafeRegexTest = 1;
|
|
3139
|
+
|
|
3140
|
+
var callBound = callBound$i;
|
|
3141
|
+
var isRegex = isRegex$1;
|
|
3142
|
+
|
|
3143
|
+
var $exec = callBound('RegExp.prototype.exec');
|
|
3144
|
+
var $TypeError = type;
|
|
3145
|
+
|
|
3146
|
+
/** @type {import('.')} */
|
|
3147
|
+
safeRegexTest$1 = function regexTester(regex) {
|
|
3148
|
+
if (!isRegex(regex)) {
|
|
3149
|
+
throw new $TypeError('`regex` must be a RegExp');
|
|
3150
|
+
}
|
|
3151
|
+
return function test(s) {
|
|
3152
|
+
return $exec(regex, s) !== null;
|
|
3153
|
+
};
|
|
3154
|
+
};
|
|
3155
|
+
return safeRegexTest$1;
|
|
3156
|
+
}
|
|
3157
|
+
|
|
3158
|
+
var callBound$4 = callBound$i;
|
|
3159
|
+
var $toString$1 = callBound$4('Object.prototype.toString');
|
|
3097
3160
|
var hasSymbols = hasSymbols$4();
|
|
3161
|
+
var safeRegexTest = requireSafeRegexTest();
|
|
3098
3162
|
|
|
3099
3163
|
if (hasSymbols) {
|
|
3100
|
-
var symToStr = Symbol.prototype.toString;
|
|
3101
|
-
var
|
|
3164
|
+
var $symToStr = callBound$4('Symbol.prototype.toString');
|
|
3165
|
+
var isSymString = safeRegexTest(/^Symbol\(.*\)$/);
|
|
3166
|
+
|
|
3167
|
+
/** @type {(value: object) => value is Symbol} */
|
|
3102
3168
|
var isSymbolObject = function isRealSymbolObject(value) {
|
|
3103
3169
|
if (typeof value.valueOf() !== 'symbol') {
|
|
3104
3170
|
return false;
|
|
3105
3171
|
}
|
|
3106
|
-
return
|
|
3172
|
+
return isSymString($symToStr(value));
|
|
3107
3173
|
};
|
|
3108
3174
|
|
|
3175
|
+
/** @type {import('.')} */
|
|
3109
3176
|
isSymbol$1.exports = function isSymbol(value) {
|
|
3110
3177
|
if (typeof value === 'symbol') {
|
|
3111
3178
|
return true;
|
|
3112
3179
|
}
|
|
3113
|
-
if (
|
|
3180
|
+
if (!value || typeof value !== 'object' || $toString$1(value) !== '[object Symbol]') {
|
|
3114
3181
|
return false;
|
|
3115
3182
|
}
|
|
3116
3183
|
try {
|
|
@@ -3120,7 +3187,7 @@
|
|
|
3120
3187
|
}
|
|
3121
3188
|
};
|
|
3122
3189
|
} else {
|
|
3123
|
-
|
|
3190
|
+
/** @type {import('.')} */
|
|
3124
3191
|
isSymbol$1.exports = function isSymbol(value) {
|
|
3125
3192
|
// this environment does not support Symbols.
|
|
3126
3193
|
return false;
|
|
@@ -3133,6 +3200,7 @@
|
|
|
3133
3200
|
|
|
3134
3201
|
var $BigInt = typeof BigInt !== 'undefined' && BigInt;
|
|
3135
3202
|
|
|
3203
|
+
/** @type {import('.')} */
|
|
3136
3204
|
var hasBigints = function hasNativeBigInts() {
|
|
3137
3205
|
return typeof $BigInt === 'function'
|
|
3138
3206
|
&& typeof BigInt === 'function'
|
|
@@ -3144,6 +3212,7 @@
|
|
|
3144
3212
|
|
|
3145
3213
|
if (hasBigInts) {
|
|
3146
3214
|
var bigIntValueOf = BigInt.prototype.valueOf;
|
|
3215
|
+
/** @type {(value: object) => value is BigInt} */
|
|
3147
3216
|
var tryBigInt = function tryBigIntObject(value) {
|
|
3148
3217
|
try {
|
|
3149
3218
|
bigIntValueOf.call(value);
|
|
@@ -3153,6 +3222,7 @@
|
|
|
3153
3222
|
return false;
|
|
3154
3223
|
};
|
|
3155
3224
|
|
|
3225
|
+
/** @type {import('.')} */
|
|
3156
3226
|
isBigint.exports = function isBigInt(value) {
|
|
3157
3227
|
if (
|
|
3158
3228
|
value === null
|
|
@@ -3172,6 +3242,7 @@
|
|
|
3172
3242
|
return tryBigInt(value);
|
|
3173
3243
|
};
|
|
3174
3244
|
} else {
|
|
3245
|
+
/** @type {import('.')} */
|
|
3175
3246
|
isBigint.exports = function isBigInt(value) {
|
|
3176
3247
|
return false;
|
|
3177
3248
|
};
|
|
@@ -3185,6 +3256,7 @@
|
|
|
3185
3256
|
var isSymbol = isSymbolExports;
|
|
3186
3257
|
var isBigInt = isBigintExports;
|
|
3187
3258
|
|
|
3259
|
+
/** @type {import('.')} */
|
|
3188
3260
|
// eslint-disable-next-line consistent-return
|
|
3189
3261
|
var whichBoxedPrimitive$1 = function whichBoxedPrimitive(value) {
|
|
3190
3262
|
// eslint-disable-next-line eqeqeq
|
|
@@ -3256,13 +3328,15 @@
|
|
|
3256
3328
|
var isWeakset = {exports: {}};
|
|
3257
3329
|
|
|
3258
3330
|
var GetIntrinsic$1 = getIntrinsic;
|
|
3259
|
-
var callBound$3 = callBound$
|
|
3331
|
+
var callBound$3 = callBound$i;
|
|
3260
3332
|
|
|
3261
3333
|
var $WeakSet = GetIntrinsic$1('%WeakSet%', true);
|
|
3262
3334
|
|
|
3335
|
+
/** @type {undefined | (<V>(thisArg: Set<V>, value: V) => boolean)} */
|
|
3263
3336
|
var $setHas$1 = callBound$3('WeakSet.prototype.has', true);
|
|
3264
3337
|
|
|
3265
3338
|
if ($setHas$1) {
|
|
3339
|
+
/** @type {undefined | (<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean)} */
|
|
3266
3340
|
var $mapHas$1 = callBound$3('WeakMap.prototype.has', true);
|
|
3267
3341
|
|
|
3268
3342
|
/** @type {import('.')} */
|
|
@@ -3271,9 +3345,11 @@
|
|
|
3271
3345
|
return false;
|
|
3272
3346
|
}
|
|
3273
3347
|
try {
|
|
3348
|
+
// @ts-expect-error TS can't figure out that $setHas is always truthy here
|
|
3274
3349
|
$setHas$1(x, $setHas$1);
|
|
3275
3350
|
if ($mapHas$1) {
|
|
3276
3351
|
try {
|
|
3352
|
+
// @ts-expect-error this indeed might not be a weak collection
|
|
3277
3353
|
$mapHas$1(x, $mapHas$1);
|
|
3278
3354
|
} catch (e) {
|
|
3279
3355
|
return true;
|
|
@@ -3286,8 +3362,8 @@
|
|
|
3286
3362
|
};
|
|
3287
3363
|
} else {
|
|
3288
3364
|
/** @type {import('.')} */
|
|
3289
|
-
//
|
|
3290
|
-
isWeakset.exports = function isWeakSet(x) {
|
|
3365
|
+
// @ts-expect-error
|
|
3366
|
+
isWeakset.exports = function isWeakSet(x) { // eslint-disable-line no-unused-vars
|
|
3291
3367
|
// `WeakSet` does not exist, or does not have a `has` method
|
|
3292
3368
|
return false;
|
|
3293
3369
|
};
|
|
@@ -3424,6 +3500,7 @@
|
|
|
3424
3500
|
var toStr = Object.prototype.toString;
|
|
3425
3501
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
3426
3502
|
|
|
3503
|
+
/** @type {<This, A extends readonly unknown[]>(arr: A, iterator: (this: This | void, value: A[number], index: number, arr: A) => void, receiver: This | undefined) => void} */
|
|
3427
3504
|
var forEachArray = function forEachArray(array, iterator, receiver) {
|
|
3428
3505
|
for (var i = 0, len = array.length; i < len; i++) {
|
|
3429
3506
|
if (hasOwnProperty.call(array, i)) {
|
|
@@ -3436,6 +3513,7 @@
|
|
|
3436
3513
|
}
|
|
3437
3514
|
};
|
|
3438
3515
|
|
|
3516
|
+
/** @type {<This, S extends string>(string: S, iterator: (this: This | void, value: S[number], index: number, string: S) => void, receiver: This | undefined) => void} */
|
|
3439
3517
|
var forEachString = function forEachString(string, iterator, receiver) {
|
|
3440
3518
|
for (var i = 0, len = string.length; i < len; i++) {
|
|
3441
3519
|
// no such thing as a sparse string.
|
|
@@ -3447,6 +3525,7 @@
|
|
|
3447
3525
|
}
|
|
3448
3526
|
};
|
|
3449
3527
|
|
|
3528
|
+
/** @type {<This, O>(obj: O, iterator: (this: This | void, value: O[keyof O], index: keyof O, obj: O) => void, receiver: This | undefined) => void} */
|
|
3450
3529
|
var forEachObject = function forEachObject(object, iterator, receiver) {
|
|
3451
3530
|
for (var k in object) {
|
|
3452
3531
|
if (hasOwnProperty.call(object, k)) {
|
|
@@ -3459,6 +3538,12 @@
|
|
|
3459
3538
|
}
|
|
3460
3539
|
};
|
|
3461
3540
|
|
|
3541
|
+
/** @type {(x: unknown) => x is readonly unknown[]} */
|
|
3542
|
+
function isArray$1(x) {
|
|
3543
|
+
return toStr.call(x) === '[object Array]';
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
/** @type {import('.')._internal} */
|
|
3462
3547
|
var forEach$1 = function forEach(list, iterator, thisArg) {
|
|
3463
3548
|
if (!isCallable(iterator)) {
|
|
3464
3549
|
throw new TypeError('iterator must be a function');
|
|
@@ -3469,7 +3554,7 @@
|
|
|
3469
3554
|
receiver = thisArg;
|
|
3470
3555
|
}
|
|
3471
3556
|
|
|
3472
|
-
if (
|
|
3557
|
+
if (isArray$1(list)) {
|
|
3473
3558
|
forEachArray(list, iterator, receiver);
|
|
3474
3559
|
} else if (typeof list === 'string') {
|
|
3475
3560
|
forEachString(list, iterator, receiver);
|
|
@@ -3478,10 +3563,9 @@
|
|
|
3478
3563
|
}
|
|
3479
3564
|
};
|
|
3480
3565
|
|
|
3481
|
-
var forEach_1 = forEach$1;
|
|
3482
|
-
|
|
3483
3566
|
/** @type {import('.')} */
|
|
3484
3567
|
var possibleTypedArrayNames = [
|
|
3568
|
+
'Float16Array',
|
|
3485
3569
|
'Float32Array',
|
|
3486
3570
|
'Float64Array',
|
|
3487
3571
|
'Int8Array',
|
|
@@ -3511,13 +3595,13 @@
|
|
|
3511
3595
|
return out;
|
|
3512
3596
|
};
|
|
3513
3597
|
|
|
3514
|
-
var forEach =
|
|
3598
|
+
var forEach = forEach$1;
|
|
3515
3599
|
var availableTypedArrays = availableTypedArrays$1;
|
|
3516
3600
|
var callBind = callBindExports;
|
|
3517
|
-
var callBound$2 = callBound$
|
|
3601
|
+
var callBound$2 = callBound$i;
|
|
3518
3602
|
var gOPD = gopd$1;
|
|
3603
|
+
var getProto = getProto$3;
|
|
3519
3604
|
|
|
3520
|
-
/** @type {(O: object) => string} */
|
|
3521
3605
|
var $toString = callBound$2('Object.prototype.toString');
|
|
3522
3606
|
var hasToStringTag = shams();
|
|
3523
3607
|
|
|
@@ -3525,7 +3609,6 @@
|
|
|
3525
3609
|
var typedArrays = availableTypedArrays();
|
|
3526
3610
|
|
|
3527
3611
|
var $slice = callBound$2('String.prototype.slice');
|
|
3528
|
-
var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
|
|
3529
3612
|
|
|
3530
3613
|
/** @type {<T = unknown>(array: readonly T[], value: unknown) => number} */
|
|
3531
3614
|
var $indexOf = callBound$2('Array.prototype.indexOf', true) || function indexOf(array, value) {
|
|
@@ -3537,18 +3620,18 @@
|
|
|
3537
3620
|
return -1;
|
|
3538
3621
|
};
|
|
3539
3622
|
|
|
3540
|
-
/** @typedef {
|
|
3541
|
-
/** @type {
|
|
3623
|
+
/** @typedef {import('./types').Getter} Getter */
|
|
3624
|
+
/** @type {import('./types').Cache} */
|
|
3542
3625
|
var cache = { __proto__: null };
|
|
3543
|
-
if (hasToStringTag && gOPD &&
|
|
3626
|
+
if (hasToStringTag && gOPD && getProto) {
|
|
3544
3627
|
forEach(typedArrays, function (typedArray) {
|
|
3545
3628
|
var arr = new g[typedArray]();
|
|
3546
|
-
if (Symbol.toStringTag in arr) {
|
|
3547
|
-
var proto =
|
|
3629
|
+
if (Symbol.toStringTag in arr && getProto) {
|
|
3630
|
+
var proto = getProto(arr);
|
|
3548
3631
|
// @ts-expect-error TS won't narrow inside a closure
|
|
3549
3632
|
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
3550
|
-
if (!descriptor) {
|
|
3551
|
-
var superProto =
|
|
3633
|
+
if (!descriptor && proto) {
|
|
3634
|
+
var superProto = getProto(proto);
|
|
3552
3635
|
// @ts-expect-error TS won't narrow inside a closure
|
|
3553
3636
|
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
3554
3637
|
}
|
|
@@ -3561,8 +3644,12 @@
|
|
|
3561
3644
|
var arr = new g[typedArray]();
|
|
3562
3645
|
var fn = arr.slice || arr.set;
|
|
3563
3646
|
if (fn) {
|
|
3564
|
-
|
|
3565
|
-
|
|
3647
|
+
cache[
|
|
3648
|
+
/** @type {`$${import('.').TypedArrayName}`} */ ('$' + typedArray)
|
|
3649
|
+
] = /** @type {import('./types').BoundSlice | import('./types').BoundSet} */ (
|
|
3650
|
+
// @ts-expect-error TODO FIXME
|
|
3651
|
+
callBind(fn)
|
|
3652
|
+
);
|
|
3566
3653
|
}
|
|
3567
3654
|
});
|
|
3568
3655
|
}
|
|
@@ -3571,15 +3658,14 @@
|
|
|
3571
3658
|
var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
3572
3659
|
/** @type {ReturnType<typeof tryAllTypedArrays>} */ var found = false;
|
|
3573
3660
|
forEach(
|
|
3574
|
-
|
|
3575
|
-
/** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */ (cache),
|
|
3661
|
+
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */ (cache),
|
|
3576
3662
|
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
3577
3663
|
function (getter, typedArray) {
|
|
3578
3664
|
if (!found) {
|
|
3579
3665
|
try {
|
|
3580
|
-
|
|
3666
|
+
// @ts-expect-error a throw is fine here
|
|
3581
3667
|
if ('$' + getter(value) === typedArray) {
|
|
3582
|
-
found = $slice(typedArray, 1);
|
|
3668
|
+
found = /** @type {import('.').TypedArrayName} */ ($slice(typedArray, 1));
|
|
3583
3669
|
}
|
|
3584
3670
|
} catch (e) { /**/ }
|
|
3585
3671
|
}
|
|
@@ -3592,14 +3678,13 @@
|
|
|
3592
3678
|
var trySlices = function tryAllSlices(value) {
|
|
3593
3679
|
/** @type {ReturnType<typeof tryAllSlices>} */ var found = false;
|
|
3594
3680
|
forEach(
|
|
3595
|
-
|
|
3596
|
-
/** @type {
|
|
3597
|
-
/** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */ function (getter, name) {
|
|
3681
|
+
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */(cache),
|
|
3682
|
+
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */ function (getter, name) {
|
|
3598
3683
|
if (!found) {
|
|
3599
3684
|
try {
|
|
3600
|
-
// @ts-expect-error
|
|
3685
|
+
// @ts-expect-error a throw is fine here
|
|
3601
3686
|
getter(value);
|
|
3602
|
-
found = $slice(name, 1);
|
|
3687
|
+
found = /** @type {import('.').TypedArrayName} */ ($slice(name, 1));
|
|
3603
3688
|
} catch (e) { /**/ }
|
|
3604
3689
|
}
|
|
3605
3690
|
}
|
|
@@ -3626,7 +3711,7 @@
|
|
|
3626
3711
|
return tryTypedArrays(value);
|
|
3627
3712
|
};
|
|
3628
3713
|
|
|
3629
|
-
var callBound$1 = callBound$
|
|
3714
|
+
var callBound$1 = callBound$i;
|
|
3630
3715
|
var $byteLength = callBound$1('ArrayBuffer.prototype.byteLength', true);
|
|
3631
3716
|
|
|
3632
3717
|
var isArrayBuffer$1 = isArrayBuffer$2;
|
|
@@ -3640,7 +3725,7 @@
|
|
|
3640
3725
|
}; // in node < 0.11, byteLength is an own nonconfigurable property
|
|
3641
3726
|
|
|
3642
3727
|
var assign = object_assign;
|
|
3643
|
-
var callBound = callBound$
|
|
3728
|
+
var callBound = callBound$g;
|
|
3644
3729
|
var flags = regexp_prototype_flags;
|
|
3645
3730
|
var GetIntrinsic = getIntrinsic;
|
|
3646
3731
|
var getIterator = esGetIteratorExports;
|
|
@@ -4982,7 +5067,7 @@
|
|
|
4982
5067
|
});
|
|
4983
5068
|
const v2DefinitionDecoder = object$1({
|
|
4984
5069
|
appId: nonEmptyStringDecoder$1,
|
|
4985
|
-
name: nonEmptyStringDecoder$1,
|
|
5070
|
+
name: optional$1(nonEmptyStringDecoder$1),
|
|
4986
5071
|
type: v2TypeDecoder,
|
|
4987
5072
|
details: v2DetailsDecoder,
|
|
4988
5073
|
version: optional$1(nonEmptyStringDecoder$1),
|
|
@@ -10357,7 +10442,7 @@
|
|
|
10357
10442
|
return ioc.fdc3;
|
|
10358
10443
|
};
|
|
10359
10444
|
|
|
10360
|
-
var version = "2.
|
|
10445
|
+
var version = "2.7.0-beta.0";
|
|
10361
10446
|
|
|
10362
10447
|
const globalScope = typeof process !== "undefined" ? process : window;
|
|
10363
10448
|
globalScope.fdc3Info = {
|