core-js-bundle 3.33.1 → 3.33.3
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/index.js +136 -242
- package/minified.js +10 -10
- package/minified.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* core-js 3.33.
|
|
2
|
+
* core-js 3.33.3
|
|
3
3
|
* © 2014-2023 Denis Pushkarev (zloirock.ru)
|
|
4
|
-
* license: https://github.com/zloirock/core-js/blob/v3.33.
|
|
4
|
+
* license: https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE
|
|
5
5
|
* source: https://github.com/zloirock/core-js
|
|
6
6
|
*/
|
|
7
7
|
!function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap
|
|
@@ -484,12 +484,11 @@ __webpack_require__(698);
|
|
|
484
484
|
__webpack_require__(699);
|
|
485
485
|
__webpack_require__(701);
|
|
486
486
|
__webpack_require__(702);
|
|
487
|
-
__webpack_require__(704);
|
|
488
487
|
__webpack_require__(705);
|
|
489
488
|
__webpack_require__(706);
|
|
490
|
-
__webpack_require__(
|
|
489
|
+
__webpack_require__(707);
|
|
491
490
|
__webpack_require__(709);
|
|
492
|
-
__webpack_require__(
|
|
491
|
+
__webpack_require__(710);
|
|
493
492
|
__webpack_require__(712);
|
|
494
493
|
__webpack_require__(713);
|
|
495
494
|
__webpack_require__(714);
|
|
@@ -503,6 +502,7 @@ __webpack_require__(721);
|
|
|
503
502
|
__webpack_require__(722);
|
|
504
503
|
__webpack_require__(723);
|
|
505
504
|
__webpack_require__(724);
|
|
505
|
+
__webpack_require__(725);
|
|
506
506
|
__webpack_require__(727);
|
|
507
507
|
__webpack_require__(728);
|
|
508
508
|
__webpack_require__(729);
|
|
@@ -896,8 +896,9 @@ module.exports =
|
|
|
896
896
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
897
897
|
check(typeof self == 'object' && self) ||
|
|
898
898
|
check(typeof global == 'object' && global) ||
|
|
899
|
+
check(typeof this == 'object' && this) ||
|
|
899
900
|
// eslint-disable-next-line no-new-func -- fallback
|
|
900
|
-
(function () { return this; })() ||
|
|
901
|
+
(function () { return this; })() || Function('return this')();
|
|
901
902
|
|
|
902
903
|
|
|
903
904
|
/***/ }),
|
|
@@ -1484,10 +1485,10 @@ var store = __webpack_require__(37);
|
|
|
1484
1485
|
(module.exports = function (key, value) {
|
|
1485
1486
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
1486
1487
|
})('versions', []).push({
|
|
1487
|
-
version: '3.33.
|
|
1488
|
+
version: '3.33.3',
|
|
1488
1489
|
mode: IS_PURE ? 'pure' : 'global',
|
|
1489
1490
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
1490
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.33.
|
|
1491
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
|
|
1491
1492
|
source: 'https://github.com/zloirock/core-js'
|
|
1492
1493
|
});
|
|
1493
1494
|
|
|
@@ -6053,7 +6054,9 @@ module.exports = function (Constructor, list) {
|
|
|
6053
6054
|
var global = __webpack_require__(4);
|
|
6054
6055
|
|
|
6055
6056
|
module.exports = function (CONSTRUCTOR, METHOD) {
|
|
6056
|
-
|
|
6057
|
+
var Constructor = global[CONSTRUCTOR];
|
|
6058
|
+
var Prototype = Constructor && Constructor.prototype;
|
|
6059
|
+
return Prototype && Prototype[METHOD];
|
|
6057
6060
|
};
|
|
6058
6061
|
|
|
6059
6062
|
|
|
@@ -17720,7 +17723,7 @@ var AsyncFromSyncIterator = __webpack_require__(494);
|
|
|
17720
17723
|
|
|
17721
17724
|
var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator');
|
|
17722
17725
|
|
|
17723
|
-
module.exports = function
|
|
17726
|
+
module.exports = function (obj) {
|
|
17724
17727
|
var object = anObject(obj);
|
|
17725
17728
|
var alreadyAsync = true;
|
|
17726
17729
|
var method = getMethod(object, ASYNC_ITERATOR);
|
|
@@ -20726,25 +20729,26 @@ $({ target: 'Math', stat: true, forced: true }, {
|
|
|
20726
20729
|
var $ = __webpack_require__(3);
|
|
20727
20730
|
var uncurryThis = __webpack_require__(14);
|
|
20728
20731
|
var toIntegerOrInfinity = __webpack_require__(62);
|
|
20729
|
-
var parseInt = __webpack_require__(288);
|
|
20730
20732
|
|
|
20731
20733
|
var INVALID_NUMBER_REPRESENTATION = 'Invalid number representation';
|
|
20732
20734
|
var INVALID_RADIX = 'Invalid radix';
|
|
20733
20735
|
var $RangeError = RangeError;
|
|
20734
20736
|
var $SyntaxError = SyntaxError;
|
|
20735
20737
|
var $TypeError = TypeError;
|
|
20736
|
-
var
|
|
20738
|
+
var $parseInt = parseInt;
|
|
20739
|
+
var pow = Math.pow;
|
|
20740
|
+
var valid = /^[\d.a-z]+$/;
|
|
20737
20741
|
var charAt = uncurryThis(''.charAt);
|
|
20738
20742
|
var exec = uncurryThis(valid.exec);
|
|
20739
20743
|
var numberToString = uncurryThis(1.0.toString);
|
|
20740
20744
|
var stringSlice = uncurryThis(''.slice);
|
|
20745
|
+
var split = uncurryThis(''.split);
|
|
20741
20746
|
|
|
20742
20747
|
// `Number.fromString` method
|
|
20743
20748
|
// https://github.com/tc39/proposal-number-fromstring
|
|
20744
20749
|
$({ target: 'Number', stat: true, forced: true }, {
|
|
20745
20750
|
fromString: function fromString(string, radix) {
|
|
20746
20751
|
var sign = 1;
|
|
20747
|
-
var R, mathNum;
|
|
20748
20752
|
if (typeof string != 'string') throw new $TypeError(INVALID_NUMBER_REPRESENTATION);
|
|
20749
20753
|
if (!string.length) throw new $SyntaxError(INVALID_NUMBER_REPRESENTATION);
|
|
20750
20754
|
if (charAt(string, 0) === '-') {
|
|
@@ -20752,11 +20756,13 @@ $({ target: 'Number', stat: true, forced: true }, {
|
|
|
20752
20756
|
string = stringSlice(string, 1);
|
|
20753
20757
|
if (!string.length) throw new $SyntaxError(INVALID_NUMBER_REPRESENTATION);
|
|
20754
20758
|
}
|
|
20755
|
-
R = radix === undefined ? 10 : toIntegerOrInfinity(radix);
|
|
20759
|
+
var R = radix === undefined ? 10 : toIntegerOrInfinity(radix);
|
|
20756
20760
|
if (R < 2 || R > 36) throw new $RangeError(INVALID_RADIX);
|
|
20757
|
-
if (!exec(valid, string)
|
|
20758
|
-
|
|
20759
|
-
|
|
20761
|
+
if (!exec(valid, string)) throw new $SyntaxError(INVALID_NUMBER_REPRESENTATION);
|
|
20762
|
+
var parts = split(string, '.');
|
|
20763
|
+
var mathNum = $parseInt(parts[0], R);
|
|
20764
|
+
if (parts.length > 1) mathNum += $parseInt(parts[1], R) / pow(R, parts[1].length);
|
|
20765
|
+
if (numberToString(mathNum, R) !== string) throw new $SyntaxError(INVALID_NUMBER_REPRESENTATION);
|
|
20760
20766
|
return sign * mathNum;
|
|
20761
20767
|
}
|
|
20762
20768
|
});
|
|
@@ -22713,8 +22719,6 @@ $({ target: 'String', proto: true, forced: true }, {
|
|
|
22713
22719
|
|
|
22714
22720
|
var FREEZING = __webpack_require__(249);
|
|
22715
22721
|
var $ = __webpack_require__(3);
|
|
22716
|
-
var shared = __webpack_require__(35);
|
|
22717
|
-
var getBuiltIn = __webpack_require__(24);
|
|
22718
22722
|
var makeBuiltIn = __webpack_require__(49);
|
|
22719
22723
|
var uncurryThis = __webpack_require__(14);
|
|
22720
22724
|
var apply = __webpack_require__(96);
|
|
@@ -22724,18 +22728,15 @@ var isCallable = __webpack_require__(21);
|
|
|
22724
22728
|
var lengthOfArrayLike = __webpack_require__(64);
|
|
22725
22729
|
var defineProperty = __webpack_require__(45).f;
|
|
22726
22730
|
var createArrayFromList = __webpack_require__(77);
|
|
22731
|
+
var WeakMapHelpers = __webpack_require__(703);
|
|
22727
22732
|
var cooked = __webpack_require__(700);
|
|
22728
|
-
var parse = __webpack_require__(
|
|
22733
|
+
var parse = __webpack_require__(704);
|
|
22729
22734
|
var whitespaces = __webpack_require__(275);
|
|
22730
22735
|
|
|
22731
|
-
var
|
|
22732
|
-
var
|
|
22733
|
-
|
|
22734
|
-
|
|
22735
|
-
globalDedentRegistry.has = globalDedentRegistry.has;
|
|
22736
|
-
globalDedentRegistry.get = globalDedentRegistry.get;
|
|
22737
|
-
globalDedentRegistry.set = globalDedentRegistry.set;
|
|
22738
|
-
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
22736
|
+
var DedentMap = new WeakMapHelpers.WeakMap();
|
|
22737
|
+
var weakMapGet = WeakMapHelpers.get;
|
|
22738
|
+
var weakMapHas = WeakMapHelpers.has;
|
|
22739
|
+
var weakMapSet = WeakMapHelpers.set;
|
|
22739
22740
|
|
|
22740
22741
|
var $Array = Array;
|
|
22741
22742
|
var $TypeError = TypeError;
|
|
@@ -22760,14 +22761,14 @@ var dedentTemplateStringsArray = function (template) {
|
|
|
22760
22761
|
var rawInput = template.raw;
|
|
22761
22762
|
// https://github.com/tc39/proposal-string-dedent/issues/75
|
|
22762
22763
|
if (FREEZING && !isFrozen(rawInput)) throw new $TypeError('Raw template should be frozen');
|
|
22763
|
-
if (
|
|
22764
|
+
if (weakMapHas(DedentMap, rawInput)) return weakMapGet(DedentMap, rawInput);
|
|
22764
22765
|
var raw = dedentStringsArray(rawInput);
|
|
22765
22766
|
var cookedArr = cookStrings(raw);
|
|
22766
22767
|
defineProperty(cookedArr, 'raw', {
|
|
22767
22768
|
value: freeze(raw)
|
|
22768
22769
|
});
|
|
22769
22770
|
freeze(cookedArr);
|
|
22770
|
-
|
|
22771
|
+
weakMapSet(DedentMap, rawInput, cookedArr);
|
|
22771
22772
|
return cookedArr;
|
|
22772
22773
|
};
|
|
22773
22774
|
|
|
@@ -22875,6 +22876,27 @@ $({ target: 'String', stat: true, forced: true }, {
|
|
|
22875
22876
|
|
|
22876
22877
|
"use strict";
|
|
22877
22878
|
|
|
22879
|
+
var uncurryThis = __webpack_require__(14);
|
|
22880
|
+
|
|
22881
|
+
// eslint-disable-next-line es/no-weak-map -- safe
|
|
22882
|
+
var WeakMapPrototype = WeakMap.prototype;
|
|
22883
|
+
|
|
22884
|
+
module.exports = {
|
|
22885
|
+
// eslint-disable-next-line es/no-weak-map -- safe
|
|
22886
|
+
WeakMap: WeakMap,
|
|
22887
|
+
set: uncurryThis(WeakMapPrototype.set),
|
|
22888
|
+
get: uncurryThis(WeakMapPrototype.get),
|
|
22889
|
+
has: uncurryThis(WeakMapPrototype.has),
|
|
22890
|
+
remove: uncurryThis(WeakMapPrototype['delete'])
|
|
22891
|
+
};
|
|
22892
|
+
|
|
22893
|
+
|
|
22894
|
+
/***/ }),
|
|
22895
|
+
/* 704 */
|
|
22896
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
22897
|
+
|
|
22898
|
+
"use strict";
|
|
22899
|
+
|
|
22878
22900
|
// adapted from https://github.com/jridgewell/string-dedent
|
|
22879
22901
|
var getBuiltIn = __webpack_require__(24);
|
|
22880
22902
|
var uncurryThis = __webpack_require__(14);
|
|
@@ -22996,7 +23018,7 @@ module.exports = function (raw) {
|
|
|
22996
23018
|
|
|
22997
23019
|
|
|
22998
23020
|
/***/ }),
|
|
22999
|
-
/*
|
|
23021
|
+
/* 705 */
|
|
23000
23022
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23001
23023
|
|
|
23002
23024
|
"use strict";
|
|
@@ -23024,7 +23046,7 @@ if (Symbol) {
|
|
|
23024
23046
|
|
|
23025
23047
|
|
|
23026
23048
|
/***/ }),
|
|
23027
|
-
/*
|
|
23049
|
+
/* 706 */
|
|
23028
23050
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23029
23051
|
|
|
23030
23052
|
"use strict";
|
|
@@ -23052,13 +23074,13 @@ if (Symbol) {
|
|
|
23052
23074
|
|
|
23053
23075
|
|
|
23054
23076
|
/***/ }),
|
|
23055
|
-
/*
|
|
23077
|
+
/* 707 */
|
|
23056
23078
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23057
23079
|
|
|
23058
23080
|
"use strict";
|
|
23059
23081
|
|
|
23060
23082
|
var $ = __webpack_require__(3);
|
|
23061
|
-
var isRegisteredSymbol = __webpack_require__(
|
|
23083
|
+
var isRegisteredSymbol = __webpack_require__(708);
|
|
23062
23084
|
|
|
23063
23085
|
// `Symbol.isRegisteredSymbol` method
|
|
23064
23086
|
// https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol
|
|
@@ -23068,7 +23090,7 @@ $({ target: 'Symbol', stat: true }, {
|
|
|
23068
23090
|
|
|
23069
23091
|
|
|
23070
23092
|
/***/ }),
|
|
23071
|
-
/*
|
|
23093
|
+
/* 708 */
|
|
23072
23094
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23073
23095
|
|
|
23074
23096
|
"use strict";
|
|
@@ -23092,13 +23114,13 @@ module.exports = Symbol.isRegisteredSymbol || function isRegisteredSymbol(value)
|
|
|
23092
23114
|
|
|
23093
23115
|
|
|
23094
23116
|
/***/ }),
|
|
23095
|
-
/*
|
|
23117
|
+
/* 709 */
|
|
23096
23118
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23097
23119
|
|
|
23098
23120
|
"use strict";
|
|
23099
23121
|
|
|
23100
23122
|
var $ = __webpack_require__(3);
|
|
23101
|
-
var isRegisteredSymbol = __webpack_require__(
|
|
23123
|
+
var isRegisteredSymbol = __webpack_require__(708);
|
|
23102
23124
|
|
|
23103
23125
|
// `Symbol.isRegistered` method
|
|
23104
23126
|
// obsolete version of https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol
|
|
@@ -23108,13 +23130,13 @@ $({ target: 'Symbol', stat: true, name: 'isRegisteredSymbol' }, {
|
|
|
23108
23130
|
|
|
23109
23131
|
|
|
23110
23132
|
/***/ }),
|
|
23111
|
-
/*
|
|
23133
|
+
/* 710 */
|
|
23112
23134
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23113
23135
|
|
|
23114
23136
|
"use strict";
|
|
23115
23137
|
|
|
23116
23138
|
var $ = __webpack_require__(3);
|
|
23117
|
-
var isWellKnownSymbol = __webpack_require__(
|
|
23139
|
+
var isWellKnownSymbol = __webpack_require__(711);
|
|
23118
23140
|
|
|
23119
23141
|
// `Symbol.isWellKnownSymbol` method
|
|
23120
23142
|
// https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol
|
|
@@ -23125,7 +23147,7 @@ $({ target: 'Symbol', stat: true, forced: true }, {
|
|
|
23125
23147
|
|
|
23126
23148
|
|
|
23127
23149
|
/***/ }),
|
|
23128
|
-
/*
|
|
23150
|
+
/* 711 */
|
|
23129
23151
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23130
23152
|
|
|
23131
23153
|
"use strict";
|
|
@@ -23167,13 +23189,13 @@ module.exports = function isWellKnownSymbol(value) {
|
|
|
23167
23189
|
|
|
23168
23190
|
|
|
23169
23191
|
/***/ }),
|
|
23170
|
-
/*
|
|
23192
|
+
/* 712 */
|
|
23171
23193
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23172
23194
|
|
|
23173
23195
|
"use strict";
|
|
23174
23196
|
|
|
23175
23197
|
var $ = __webpack_require__(3);
|
|
23176
|
-
var isWellKnownSymbol = __webpack_require__(
|
|
23198
|
+
var isWellKnownSymbol = __webpack_require__(711);
|
|
23177
23199
|
|
|
23178
23200
|
// `Symbol.isWellKnown` method
|
|
23179
23201
|
// obsolete version of https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol
|
|
@@ -23184,7 +23206,7 @@ $({ target: 'Symbol', stat: true, name: 'isWellKnownSymbol', forced: true }, {
|
|
|
23184
23206
|
|
|
23185
23207
|
|
|
23186
23208
|
/***/ }),
|
|
23187
|
-
/*
|
|
23209
|
+
/* 713 */
|
|
23188
23210
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23189
23211
|
|
|
23190
23212
|
"use strict";
|
|
@@ -23197,7 +23219,7 @@ defineWellKnownSymbol('matcher');
|
|
|
23197
23219
|
|
|
23198
23220
|
|
|
23199
23221
|
/***/ }),
|
|
23200
|
-
/*
|
|
23222
|
+
/* 714 */
|
|
23201
23223
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23202
23224
|
|
|
23203
23225
|
"use strict";
|
|
@@ -23210,7 +23232,7 @@ defineWellKnownSymbol('metadata');
|
|
|
23210
23232
|
|
|
23211
23233
|
|
|
23212
23234
|
/***/ }),
|
|
23213
|
-
/*
|
|
23235
|
+
/* 715 */
|
|
23214
23236
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23215
23237
|
|
|
23216
23238
|
"use strict";
|
|
@@ -23224,7 +23246,7 @@ defineWellKnownSymbol('metadataKey');
|
|
|
23224
23246
|
|
|
23225
23247
|
|
|
23226
23248
|
/***/ }),
|
|
23227
|
-
/*
|
|
23249
|
+
/* 716 */
|
|
23228
23250
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23229
23251
|
|
|
23230
23252
|
"use strict";
|
|
@@ -23237,7 +23259,7 @@ defineWellKnownSymbol('observable');
|
|
|
23237
23259
|
|
|
23238
23260
|
|
|
23239
23261
|
/***/ }),
|
|
23240
|
-
/*
|
|
23262
|
+
/* 717 */
|
|
23241
23263
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23242
23264
|
|
|
23243
23265
|
"use strict";
|
|
@@ -23251,7 +23273,7 @@ defineWellKnownSymbol('patternMatch');
|
|
|
23251
23273
|
|
|
23252
23274
|
|
|
23253
23275
|
/***/ }),
|
|
23254
|
-
/*
|
|
23276
|
+
/* 718 */
|
|
23255
23277
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23256
23278
|
|
|
23257
23279
|
"use strict";
|
|
@@ -23263,7 +23285,7 @@ defineWellKnownSymbol('replaceAll');
|
|
|
23263
23285
|
|
|
23264
23286
|
|
|
23265
23287
|
/***/ }),
|
|
23266
|
-
/*
|
|
23288
|
+
/* 719 */
|
|
23267
23289
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23268
23290
|
|
|
23269
23291
|
"use strict";
|
|
@@ -23295,7 +23317,7 @@ exportTypedArrayStaticMethod('fromAsync', function fromAsync(asyncItems /* , map
|
|
|
23295
23317
|
|
|
23296
23318
|
|
|
23297
23319
|
/***/ }),
|
|
23298
|
-
/*
|
|
23320
|
+
/* 720 */
|
|
23299
23321
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23300
23322
|
|
|
23301
23323
|
"use strict";
|
|
@@ -23317,7 +23339,7 @@ exportTypedArrayMethod('filterOut', function filterOut(callbackfn /* , thisArg *
|
|
|
23317
23339
|
|
|
23318
23340
|
|
|
23319
23341
|
/***/ }),
|
|
23320
|
-
/*
|
|
23342
|
+
/* 721 */
|
|
23321
23343
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23322
23344
|
|
|
23323
23345
|
"use strict";
|
|
@@ -23338,7 +23360,7 @@ exportTypedArrayMethod('filterReject', function filterReject(callbackfn /* , thi
|
|
|
23338
23360
|
|
|
23339
23361
|
|
|
23340
23362
|
/***/ }),
|
|
23341
|
-
/*
|
|
23363
|
+
/* 722 */
|
|
23342
23364
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23343
23365
|
|
|
23344
23366
|
"use strict";
|
|
@@ -23360,7 +23382,7 @@ exportTypedArrayMethod('groupBy', function groupBy(callbackfn /* , thisArg */) {
|
|
|
23360
23382
|
|
|
23361
23383
|
|
|
23362
23384
|
/***/ }),
|
|
23363
|
-
/*
|
|
23385
|
+
/* 723 */
|
|
23364
23386
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23365
23387
|
|
|
23366
23388
|
"use strict";
|
|
@@ -23435,7 +23457,7 @@ exportTypedArrayMethod('toSpliced', function toSpliced(start, deleteCount /* , .
|
|
|
23435
23457
|
|
|
23436
23458
|
|
|
23437
23459
|
/***/ }),
|
|
23438
|
-
/*
|
|
23460
|
+
/* 724 */
|
|
23439
23461
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23440
23462
|
|
|
23441
23463
|
"use strict";
|
|
@@ -23459,14 +23481,14 @@ exportTypedArrayMethod('uniqueBy', function uniqueBy(resolver) {
|
|
|
23459
23481
|
|
|
23460
23482
|
|
|
23461
23483
|
/***/ }),
|
|
23462
|
-
/*
|
|
23484
|
+
/* 725 */
|
|
23463
23485
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23464
23486
|
|
|
23465
23487
|
"use strict";
|
|
23466
23488
|
|
|
23467
23489
|
var $ = __webpack_require__(3);
|
|
23468
|
-
var aWeakMap = __webpack_require__(
|
|
23469
|
-
var remove = __webpack_require__(
|
|
23490
|
+
var aWeakMap = __webpack_require__(726);
|
|
23491
|
+
var remove = __webpack_require__(703).remove;
|
|
23470
23492
|
|
|
23471
23493
|
// `WeakMap.prototype.deleteAll` method
|
|
23472
23494
|
// https://github.com/tc39/proposal-collection-methods
|
|
@@ -23484,12 +23506,12 @@ $({ target: 'WeakMap', proto: true, real: true, forced: true }, {
|
|
|
23484
23506
|
|
|
23485
23507
|
|
|
23486
23508
|
/***/ }),
|
|
23487
|
-
/*
|
|
23509
|
+
/* 726 */
|
|
23488
23510
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23489
23511
|
|
|
23490
23512
|
"use strict";
|
|
23491
23513
|
|
|
23492
|
-
var has = __webpack_require__(
|
|
23514
|
+
var has = __webpack_require__(703).has;
|
|
23493
23515
|
|
|
23494
23516
|
// Perform ? RequireInternalSlot(M, [[WeakMapData]])
|
|
23495
23517
|
module.exports = function (it) {
|
|
@@ -23498,27 +23520,6 @@ module.exports = function (it) {
|
|
|
23498
23520
|
};
|
|
23499
23521
|
|
|
23500
23522
|
|
|
23501
|
-
/***/ }),
|
|
23502
|
-
/* 726 */
|
|
23503
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
23504
|
-
|
|
23505
|
-
"use strict";
|
|
23506
|
-
|
|
23507
|
-
var uncurryThis = __webpack_require__(14);
|
|
23508
|
-
|
|
23509
|
-
// eslint-disable-next-line es/no-weak-map -- safe
|
|
23510
|
-
var WeakMapPrototype = WeakMap.prototype;
|
|
23511
|
-
|
|
23512
|
-
module.exports = {
|
|
23513
|
-
// eslint-disable-next-line es/no-weak-map -- safe
|
|
23514
|
-
WeakMap: WeakMap,
|
|
23515
|
-
set: uncurryThis(WeakMapPrototype.set),
|
|
23516
|
-
get: uncurryThis(WeakMapPrototype.get),
|
|
23517
|
-
has: uncurryThis(WeakMapPrototype.has),
|
|
23518
|
-
remove: uncurryThis(WeakMapPrototype['delete'])
|
|
23519
|
-
};
|
|
23520
|
-
|
|
23521
|
-
|
|
23522
23523
|
/***/ }),
|
|
23523
23524
|
/* 727 */
|
|
23524
23525
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -23558,8 +23559,8 @@ $({ target: 'WeakMap', stat: true, forced: true }, {
|
|
|
23558
23559
|
"use strict";
|
|
23559
23560
|
|
|
23560
23561
|
var $ = __webpack_require__(3);
|
|
23561
|
-
var aWeakMap = __webpack_require__(
|
|
23562
|
-
var WeakMapHelpers = __webpack_require__(
|
|
23562
|
+
var aWeakMap = __webpack_require__(726);
|
|
23563
|
+
var WeakMapHelpers = __webpack_require__(703);
|
|
23563
23564
|
|
|
23564
23565
|
var get = WeakMapHelpers.get;
|
|
23565
23566
|
var has = WeakMapHelpers.has;
|
|
@@ -24360,7 +24361,7 @@ module.exports = function (scheduler, hasTimeArg) {
|
|
|
24360
24361
|
|
|
24361
24362
|
"use strict";
|
|
24362
24363
|
|
|
24363
|
-
/* global Bun --
|
|
24364
|
+
/* global Bun -- Bun case */
|
|
24364
24365
|
module.exports = typeof Bun == 'function' && Bun && typeof Bun.version == 'string';
|
|
24365
24366
|
|
|
24366
24367
|
|
|
@@ -24448,7 +24449,7 @@ try {
|
|
|
24448
24449
|
var IS_PURE = __webpack_require__(36);
|
|
24449
24450
|
var $ = __webpack_require__(3);
|
|
24450
24451
|
var global = __webpack_require__(4);
|
|
24451
|
-
var
|
|
24452
|
+
var getBuiltIn = __webpack_require__(24);
|
|
24452
24453
|
var uncurryThis = __webpack_require__(14);
|
|
24453
24454
|
var fails = __webpack_require__(7);
|
|
24454
24455
|
var uid = __webpack_require__(41);
|
|
@@ -24468,7 +24469,8 @@ var validateArgumentsLength = __webpack_require__(329);
|
|
|
24468
24469
|
var getRegExpFlags = __webpack_require__(369);
|
|
24469
24470
|
var MapHelpers = __webpack_require__(506);
|
|
24470
24471
|
var SetHelpers = __webpack_require__(659);
|
|
24471
|
-
var
|
|
24472
|
+
var setIterate = __webpack_require__(664);
|
|
24473
|
+
var detachTransferable = __webpack_require__(520);
|
|
24472
24474
|
var ERROR_STACK_INSTALLABLE = __webpack_require__(125);
|
|
24473
24475
|
var PROPER_STRUCTURED_CLONE_TRANSFER = __webpack_require__(522);
|
|
24474
24476
|
|
|
@@ -24476,25 +24478,17 @@ var Object = global.Object;
|
|
|
24476
24478
|
var Array = global.Array;
|
|
24477
24479
|
var Date = global.Date;
|
|
24478
24480
|
var Error = global.Error;
|
|
24479
|
-
var EvalError = global.EvalError;
|
|
24480
|
-
var RangeError = global.RangeError;
|
|
24481
|
-
var ReferenceError = global.ReferenceError;
|
|
24482
|
-
var SyntaxError = global.SyntaxError;
|
|
24483
24481
|
var TypeError = global.TypeError;
|
|
24484
|
-
var URIError = global.URIError;
|
|
24485
24482
|
var PerformanceMark = global.PerformanceMark;
|
|
24486
|
-
var
|
|
24487
|
-
var CompileError = WebAssembly && WebAssembly.CompileError || Error;
|
|
24488
|
-
var LinkError = WebAssembly && WebAssembly.LinkError || Error;
|
|
24489
|
-
var RuntimeError = WebAssembly && WebAssembly.RuntimeError || Error;
|
|
24490
|
-
var DOMException = getBuiltin('DOMException');
|
|
24483
|
+
var DOMException = getBuiltIn('DOMException');
|
|
24491
24484
|
var Map = MapHelpers.Map;
|
|
24492
24485
|
var mapHas = MapHelpers.has;
|
|
24493
24486
|
var mapGet = MapHelpers.get;
|
|
24494
24487
|
var mapSet = MapHelpers.set;
|
|
24495
24488
|
var Set = SetHelpers.Set;
|
|
24496
24489
|
var setAdd = SetHelpers.add;
|
|
24497
|
-
var
|
|
24490
|
+
var setHas = SetHelpers.has;
|
|
24491
|
+
var objectKeys = getBuiltIn('Object', 'keys');
|
|
24498
24492
|
var push = uncurryThis([].push);
|
|
24499
24493
|
var thisBooleanValue = uncurryThis(true.valueOf);
|
|
24500
24494
|
var thisNumberValue = uncurryThis(1.0.valueOf);
|
|
@@ -24509,7 +24503,7 @@ var checkBasicSemantic = function (structuredCloneImplementation) {
|
|
|
24509
24503
|
var set1 = new global.Set([7]);
|
|
24510
24504
|
var set2 = structuredCloneImplementation(set1);
|
|
24511
24505
|
var number = structuredCloneImplementation(Object(7));
|
|
24512
|
-
return set2 === set1 || !set2.has(7) ||
|
|
24506
|
+
return set2 === set1 || !set2.has(7) || !isObject(number) || +number !== 7;
|
|
24513
24507
|
}) && structuredCloneImplementation;
|
|
24514
24508
|
};
|
|
24515
24509
|
|
|
@@ -24605,14 +24599,15 @@ var cloneBuffer = function (value, map, $type) {
|
|
|
24605
24599
|
|
|
24606
24600
|
// `ArrayBuffer#slice` is not available in IE10
|
|
24607
24601
|
// `ArrayBuffer#slice` and `DataView` are not available in old FF
|
|
24608
|
-
if (!DataView &&
|
|
24602
|
+
if (!DataView && !isCallable(value.slice)) throwUnpolyfillable('ArrayBuffer');
|
|
24609
24603
|
// detached buffers throws in `DataView` and `.slice`
|
|
24610
24604
|
try {
|
|
24611
|
-
if (
|
|
24605
|
+
if (isCallable(value.slice) && !value.resizable) {
|
|
24612
24606
|
clone = value.slice(0);
|
|
24613
24607
|
} else {
|
|
24614
24608
|
length = value.byteLength;
|
|
24615
24609
|
options = 'maxByteLength' in value ? { maxByteLength: value.maxByteLength } : undefined;
|
|
24610
|
+
// eslint-disable-next-line es/no-resizable-and-growable-arraybuffers -- safe
|
|
24616
24611
|
clone = new ArrayBuffer(length, options);
|
|
24617
24612
|
source = new DataView(value);
|
|
24618
24613
|
target = new DataView(clone);
|
|
@@ -24638,13 +24633,7 @@ var cloneView = function (value, type, offset, length, map) {
|
|
|
24638
24633
|
return new C(cloneBuffer(value.buffer, map), offset, length);
|
|
24639
24634
|
};
|
|
24640
24635
|
|
|
24641
|
-
var
|
|
24642
|
-
this.object = object;
|
|
24643
|
-
this.type = type;
|
|
24644
|
-
this.metadata = metadata;
|
|
24645
|
-
};
|
|
24646
|
-
|
|
24647
|
-
var structuredCloneInternal = function (value, map, transferredBuffers) {
|
|
24636
|
+
var structuredCloneInternal = function (value, map) {
|
|
24648
24637
|
if (isSymbol(value)) throwUncloneable('Symbol');
|
|
24649
24638
|
if (!isObject(value)) return value;
|
|
24650
24639
|
// effectively preserves circular references
|
|
@@ -24677,34 +24666,21 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
|
|
|
24677
24666
|
name = value.name;
|
|
24678
24667
|
switch (name) {
|
|
24679
24668
|
case 'AggregateError':
|
|
24680
|
-
cloned = new (
|
|
24669
|
+
cloned = new (getBuiltIn(name))([]);
|
|
24681
24670
|
break;
|
|
24682
24671
|
case 'EvalError':
|
|
24683
|
-
cloned = new EvalError();
|
|
24684
|
-
break;
|
|
24685
24672
|
case 'RangeError':
|
|
24686
|
-
cloned = new RangeError();
|
|
24687
|
-
break;
|
|
24688
24673
|
case 'ReferenceError':
|
|
24689
|
-
|
|
24690
|
-
break;
|
|
24674
|
+
case 'SuppressedError':
|
|
24691
24675
|
case 'SyntaxError':
|
|
24692
|
-
cloned = new SyntaxError();
|
|
24693
|
-
break;
|
|
24694
24676
|
case 'TypeError':
|
|
24695
|
-
cloned = new TypeError();
|
|
24696
|
-
break;
|
|
24697
24677
|
case 'URIError':
|
|
24698
|
-
cloned = new
|
|
24678
|
+
cloned = new (getBuiltIn(name))();
|
|
24699
24679
|
break;
|
|
24700
24680
|
case 'CompileError':
|
|
24701
|
-
cloned = new CompileError();
|
|
24702
|
-
break;
|
|
24703
24681
|
case 'LinkError':
|
|
24704
|
-
cloned = new LinkError();
|
|
24705
|
-
break;
|
|
24706
24682
|
case 'RuntimeError':
|
|
24707
|
-
cloned = new
|
|
24683
|
+
cloned = new (getBuiltIn('WebAssembly', name))();
|
|
24708
24684
|
break;
|
|
24709
24685
|
default:
|
|
24710
24686
|
cloned = new Error();
|
|
@@ -24715,9 +24691,7 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
|
|
|
24715
24691
|
break;
|
|
24716
24692
|
case 'ArrayBuffer':
|
|
24717
24693
|
case 'SharedArrayBuffer':
|
|
24718
|
-
cloned =
|
|
24719
|
-
? new Placeholder(value, type)
|
|
24720
|
-
: cloneBuffer(value, map, type);
|
|
24694
|
+
cloned = cloneBuffer(value, map, type);
|
|
24721
24695
|
break;
|
|
24722
24696
|
case 'DataView':
|
|
24723
24697
|
case 'Int8Array':
|
|
@@ -24733,17 +24707,15 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
|
|
|
24733
24707
|
case 'BigInt64Array':
|
|
24734
24708
|
case 'BigUint64Array':
|
|
24735
24709
|
length = type === 'DataView' ? value.byteLength : value.length;
|
|
24736
|
-
cloned =
|
|
24737
|
-
? new Placeholder(value, type, { offset: value.byteOffset, length: length })
|
|
24738
|
-
: cloneView(value, type, value.byteOffset, length, map);
|
|
24710
|
+
cloned = cloneView(value, type, value.byteOffset, length, map);
|
|
24739
24711
|
break;
|
|
24740
24712
|
case 'DOMQuad':
|
|
24741
24713
|
try {
|
|
24742
24714
|
cloned = new DOMQuad(
|
|
24743
|
-
structuredCloneInternal(value.p1, map
|
|
24744
|
-
structuredCloneInternal(value.p2, map
|
|
24745
|
-
structuredCloneInternal(value.p3, map
|
|
24746
|
-
structuredCloneInternal(value.p4, map
|
|
24715
|
+
structuredCloneInternal(value.p1, map),
|
|
24716
|
+
structuredCloneInternal(value.p2, map),
|
|
24717
|
+
structuredCloneInternal(value.p3, map),
|
|
24718
|
+
structuredCloneInternal(value.p4, map)
|
|
24747
24719
|
);
|
|
24748
24720
|
} catch (error) {
|
|
24749
24721
|
cloned = tryNativeRestrictedStructuredClone(value, type);
|
|
@@ -24764,7 +24736,7 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
|
|
|
24764
24736
|
dataTransfer = createDataTransfer();
|
|
24765
24737
|
if (dataTransfer) {
|
|
24766
24738
|
for (i = 0, length = lengthOfArrayLike(value); i < length; i++) {
|
|
24767
|
-
dataTransfer.items.add(structuredCloneInternal(value[i], map
|
|
24739
|
+
dataTransfer.items.add(structuredCloneInternal(value[i], map));
|
|
24768
24740
|
}
|
|
24769
24741
|
cloned = dataTransfer.files;
|
|
24770
24742
|
} else cloned = tryNativeRestrictedStructuredClone(value, type);
|
|
@@ -24773,7 +24745,7 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
|
|
|
24773
24745
|
// Safari 9 ImageData is a constructor, but typeof ImageData is 'object'
|
|
24774
24746
|
try {
|
|
24775
24747
|
cloned = new ImageData(
|
|
24776
|
-
structuredCloneInternal(value.data, map
|
|
24748
|
+
structuredCloneInternal(value.data, map),
|
|
24777
24749
|
value.width,
|
|
24778
24750
|
value.height,
|
|
24779
24751
|
{ colorSpace: value.colorSpace }
|
|
@@ -24870,105 +24842,38 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
|
|
|
24870
24842
|
keys = objectKeys(value);
|
|
24871
24843
|
for (i = 0, length = lengthOfArrayLike(keys); i < length; i++) {
|
|
24872
24844
|
key = keys[i];
|
|
24873
|
-
createProperty(cloned, key, structuredCloneInternal(value[key], map
|
|
24845
|
+
createProperty(cloned, key, structuredCloneInternal(value[key], map));
|
|
24874
24846
|
} break;
|
|
24875
24847
|
case 'Map':
|
|
24876
24848
|
value.forEach(function (v, k) {
|
|
24877
|
-
mapSet(cloned, structuredCloneInternal(k, map
|
|
24849
|
+
mapSet(cloned, structuredCloneInternal(k, map), structuredCloneInternal(v, map));
|
|
24878
24850
|
});
|
|
24879
24851
|
break;
|
|
24880
24852
|
case 'Set':
|
|
24881
24853
|
value.forEach(function (v) {
|
|
24882
|
-
setAdd(cloned, structuredCloneInternal(v, map
|
|
24854
|
+
setAdd(cloned, structuredCloneInternal(v, map));
|
|
24883
24855
|
});
|
|
24884
24856
|
break;
|
|
24885
24857
|
case 'Error':
|
|
24886
|
-
createNonEnumerableProperty(cloned, 'message', structuredCloneInternal(value.message, map
|
|
24858
|
+
createNonEnumerableProperty(cloned, 'message', structuredCloneInternal(value.message, map));
|
|
24887
24859
|
if (hasOwn(value, 'cause')) {
|
|
24888
|
-
createNonEnumerableProperty(cloned, 'cause', structuredCloneInternal(value.cause, map
|
|
24860
|
+
createNonEnumerableProperty(cloned, 'cause', structuredCloneInternal(value.cause, map));
|
|
24889
24861
|
}
|
|
24890
24862
|
if (name === 'AggregateError') {
|
|
24891
|
-
cloned.errors = structuredCloneInternal(value.errors, map
|
|
24863
|
+
cloned.errors = structuredCloneInternal(value.errors, map);
|
|
24864
|
+
} else if (name === 'SuppressedError') {
|
|
24865
|
+
cloned.error = structuredCloneInternal(value.error, map);
|
|
24866
|
+
cloned.suppressed = structuredCloneInternal(value.suppressed, map);
|
|
24892
24867
|
} // break omitted
|
|
24893
24868
|
case 'DOMException':
|
|
24894
24869
|
if (ERROR_STACK_INSTALLABLE) {
|
|
24895
|
-
createNonEnumerableProperty(cloned, 'stack', structuredCloneInternal(value.stack, map
|
|
24870
|
+
createNonEnumerableProperty(cloned, 'stack', structuredCloneInternal(value.stack, map));
|
|
24896
24871
|
}
|
|
24897
24872
|
}
|
|
24898
24873
|
|
|
24899
24874
|
return cloned;
|
|
24900
24875
|
};
|
|
24901
24876
|
|
|
24902
|
-
var replacePlaceholders = function (value, map) {
|
|
24903
|
-
if (!isObject(value)) return value;
|
|
24904
|
-
if (mapHas(map, value)) return mapGet(map, value);
|
|
24905
|
-
|
|
24906
|
-
var type, object, metadata, i, length, keys, key, replacement;
|
|
24907
|
-
|
|
24908
|
-
if (value instanceof Placeholder) {
|
|
24909
|
-
type = value.type;
|
|
24910
|
-
object = value.object;
|
|
24911
|
-
|
|
24912
|
-
switch (type) {
|
|
24913
|
-
case 'ArrayBuffer':
|
|
24914
|
-
case 'SharedArrayBuffer':
|
|
24915
|
-
replacement = cloneBuffer(object, map, type);
|
|
24916
|
-
break;
|
|
24917
|
-
case 'DataView':
|
|
24918
|
-
case 'Int8Array':
|
|
24919
|
-
case 'Uint8Array':
|
|
24920
|
-
case 'Uint8ClampedArray':
|
|
24921
|
-
case 'Int16Array':
|
|
24922
|
-
case 'Uint16Array':
|
|
24923
|
-
case 'Int32Array':
|
|
24924
|
-
case 'Uint32Array':
|
|
24925
|
-
case 'Float16Array':
|
|
24926
|
-
case 'Float32Array':
|
|
24927
|
-
case 'Float64Array':
|
|
24928
|
-
case 'BigInt64Array':
|
|
24929
|
-
case 'BigUint64Array':
|
|
24930
|
-
metadata = value.metadata;
|
|
24931
|
-
replacement = cloneView(object, type, metadata.offset, metadata.length, map);
|
|
24932
|
-
}
|
|
24933
|
-
} else switch (classof(value)) {
|
|
24934
|
-
case 'Array':
|
|
24935
|
-
case 'Object':
|
|
24936
|
-
keys = objectKeys(value);
|
|
24937
|
-
for (i = 0, length = lengthOfArrayLike(keys); i < length; i++) {
|
|
24938
|
-
key = keys[i];
|
|
24939
|
-
value[key] = replacePlaceholders(value[key], map);
|
|
24940
|
-
} break;
|
|
24941
|
-
case 'Map':
|
|
24942
|
-
replacement = new Map();
|
|
24943
|
-
value.forEach(function (v, k) {
|
|
24944
|
-
mapSet(replacement, replacePlaceholders(k, map), replacePlaceholders(v, map));
|
|
24945
|
-
});
|
|
24946
|
-
break;
|
|
24947
|
-
case 'Set':
|
|
24948
|
-
replacement = new Set();
|
|
24949
|
-
value.forEach(function (v) {
|
|
24950
|
-
setAdd(replacement, replacePlaceholders(v, map));
|
|
24951
|
-
});
|
|
24952
|
-
break;
|
|
24953
|
-
case 'Error':
|
|
24954
|
-
value.message = replacePlaceholders(value.message, map);
|
|
24955
|
-
if (hasOwn(value, 'cause')) {
|
|
24956
|
-
value.cause = replacePlaceholders(value.cause, map);
|
|
24957
|
-
}
|
|
24958
|
-
if (value.name === 'AggregateError') {
|
|
24959
|
-
value.errors = replacePlaceholders(value.errors, map);
|
|
24960
|
-
} // break omitted
|
|
24961
|
-
case 'DOMException':
|
|
24962
|
-
if (ERROR_STACK_INSTALLABLE) {
|
|
24963
|
-
value.stack = replacePlaceholders(value.stack, map);
|
|
24964
|
-
}
|
|
24965
|
-
}
|
|
24966
|
-
|
|
24967
|
-
mapSet(map, value, replacement || value);
|
|
24968
|
-
|
|
24969
|
-
return replacement || value;
|
|
24970
|
-
};
|
|
24971
|
-
|
|
24972
24877
|
var tryToTransfer = function (rawTransfer, map) {
|
|
24973
24878
|
if (!isObject(rawTransfer)) throw new TypeError('Transfer option cannot be converted to a sequence');
|
|
24974
24879
|
|
|
@@ -24980,7 +24885,7 @@ var tryToTransfer = function (rawTransfer, map) {
|
|
|
24980
24885
|
|
|
24981
24886
|
var i = 0;
|
|
24982
24887
|
var length = lengthOfArrayLike(transfer);
|
|
24983
|
-
var buffers =
|
|
24888
|
+
var buffers = new Set();
|
|
24984
24889
|
var value, type, C, transferred, canvas, context;
|
|
24985
24890
|
|
|
24986
24891
|
while (i < length) {
|
|
@@ -24988,13 +24893,15 @@ var tryToTransfer = function (rawTransfer, map) {
|
|
|
24988
24893
|
|
|
24989
24894
|
type = classof(value);
|
|
24990
24895
|
|
|
24896
|
+
if (type === 'ArrayBuffer' ? setHas(buffers, value) : mapHas(map, value)) {
|
|
24897
|
+
throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR);
|
|
24898
|
+
}
|
|
24899
|
+
|
|
24991
24900
|
if (type === 'ArrayBuffer') {
|
|
24992
|
-
|
|
24901
|
+
setAdd(buffers, value);
|
|
24993
24902
|
continue;
|
|
24994
24903
|
}
|
|
24995
24904
|
|
|
24996
|
-
if (mapHas(map, value)) throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR);
|
|
24997
|
-
|
|
24998
24905
|
if (PROPER_STRUCTURED_CLONE_TRANSFER) {
|
|
24999
24906
|
transferred = nativeStructuredClone(value, { transfer: [value] });
|
|
25000
24907
|
} else switch (type) {
|
|
@@ -25033,25 +24940,18 @@ var tryToTransfer = function (rawTransfer, map) {
|
|
|
25033
24940
|
return buffers;
|
|
25034
24941
|
};
|
|
25035
24942
|
|
|
25036
|
-
var
|
|
25037
|
-
|
|
25038
|
-
|
|
25039
|
-
|
|
25040
|
-
|
|
25041
|
-
|
|
25042
|
-
|
|
25043
|
-
|
|
25044
|
-
if (mapHas(map, value)) throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR);
|
|
25045
|
-
|
|
25046
|
-
if (arrayBufferTransfer) {
|
|
25047
|
-
transferred = arrayBufferTransfer(value, undefined, true);
|
|
24943
|
+
var detachBuffers = function (buffers) {
|
|
24944
|
+
setIterate(buffers, function (buffer) {
|
|
24945
|
+
if (PROPER_STRUCTURED_CLONE_TRANSFER) {
|
|
24946
|
+
nativeRestrictedStructuredClone(buffer, { transfer: [buffer] });
|
|
24947
|
+
} else if (isCallable(buffer.transfer)) {
|
|
24948
|
+
buffer.transfer();
|
|
24949
|
+
} else if (detachTransferable) {
|
|
24950
|
+
detachTransferable(buffer);
|
|
25048
24951
|
} else {
|
|
25049
|
-
|
|
25050
|
-
transferred = value.transfer();
|
|
24952
|
+
throwUnpolyfillable('ArrayBuffer', TRANSFERRING);
|
|
25051
24953
|
}
|
|
25052
|
-
|
|
25053
|
-
mapSet(map, value, transferred);
|
|
25054
|
-
}
|
|
24954
|
+
});
|
|
25055
24955
|
};
|
|
25056
24956
|
|
|
25057
24957
|
// `structuredClone` method
|
|
@@ -25060,24 +24960,18 @@ $({ global: true, enumerable: true, sham: !PROPER_STRUCTURED_CLONE_TRANSFER, for
|
|
|
25060
24960
|
structuredClone: function structuredClone(value /* , { transfer } */) {
|
|
25061
24961
|
var options = validateArgumentsLength(arguments.length, 1) > 1 && !isNullOrUndefined(arguments[1]) ? anObject(arguments[1]) : undefined;
|
|
25062
24962
|
var transfer = options ? options.transfer : undefined;
|
|
25063
|
-
var transferredBuffers = false;
|
|
25064
24963
|
var map, buffers;
|
|
25065
24964
|
|
|
25066
24965
|
if (transfer !== undefined) {
|
|
25067
24966
|
map = new Map();
|
|
25068
24967
|
buffers = tryToTransfer(transfer, map);
|
|
25069
|
-
transferredBuffers = !!lengthOfArrayLike(buffers);
|
|
25070
24968
|
}
|
|
25071
24969
|
|
|
25072
|
-
var clone = structuredCloneInternal(value, map
|
|
24970
|
+
var clone = structuredCloneInternal(value, map);
|
|
25073
24971
|
|
|
25074
|
-
// since of an issue with cloning views of transferred buffers, we a forced to
|
|
24972
|
+
// since of an issue with cloning views of transferred buffers, we a forced to detach them later
|
|
25075
24973
|
// https://github.com/zloirock/core-js/issues/1265
|
|
25076
|
-
if (
|
|
25077
|
-
map = new Map();
|
|
25078
|
-
tryToTransferBuffers(transfer, map);
|
|
25079
|
-
clone = replacePlaceholders(clone, map);
|
|
25080
|
-
}
|
|
24974
|
+
if (buffers) detachBuffers(buffers);
|
|
25081
24975
|
|
|
25082
24976
|
return clone;
|
|
25083
24977
|
}
|