billboard.js 3.9.2 → 3.10.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/billboard.css +2 -2
- package/dist/billboard.js +2705 -2529
- package/dist/billboard.min.css +2 -2
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +3516 -3329
- package/dist/billboard.pkgd.min.js +4 -4
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +15 -15
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +215 -196
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +244 -239
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +184 -164
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +170 -151
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/{billboardjs-plugin-bubblecompare.js → billboardjs-plugin-bubblecompare.pkgd.js} +667 -642
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +12 -0
- package/dist/plugin/pkgd/{billboardjs-plugin-sparkline.js → billboardjs-plugin-sparkline.pkgd.js} +864 -820
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +12 -0
- package/dist/plugin/pkgd/{billboardjs-plugin-stanford.js → billboardjs-plugin-stanford.pkgd.js} +929 -900
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +12 -0
- package/dist/plugin/pkgd/{billboardjs-plugin-tableview.js → billboardjs-plugin-tableview.pkgd.js} +833 -788
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +12 -0
- package/dist/plugin/pkgd/{billboardjs-plugin-textoverlap.js → billboardjs-plugin-textoverlap.pkgd.js} +932 -897
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +12 -0
- package/dist/theme/dark.css +5 -4
- package/dist/theme/dark.min.css +2 -2
- package/dist/theme/datalab.css +5 -4
- package/dist/theme/datalab.min.css +2 -2
- package/dist/theme/graph.css +5 -4
- package/dist/theme/graph.min.css +2 -2
- package/dist/theme/insight.css +5 -4
- package/dist/theme/insight.min.css +2 -2
- package/dist-esm/billboard.js +605 -468
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +13 -7
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +21 -28
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +17 -11
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +13 -7
- package/package.json +31 -31
- package/src/Chart/api/axis.ts +4 -0
- package/src/Chart/api/category.ts +8 -4
- package/src/Chart/api/export.ts +1 -2
- package/src/Chart/api/subchart.ts +162 -89
- package/src/Chart/api/zoom.ts +69 -79
- package/src/ChartInternal/Axis/AxisRendererHelper.ts +0 -8
- package/src/ChartInternal/data/IData.ts +4 -1
- package/src/ChartInternal/data/convert.helper.ts +1 -15
- package/src/ChartInternal/data/data.ts +8 -2
- package/src/ChartInternal/interactions/eventrect.ts +0 -1
- package/src/ChartInternal/interactions/flow.ts +1 -7
- package/src/ChartInternal/interactions/interaction.ts +10 -4
- package/src/ChartInternal/interactions/subchart.ts +36 -30
- package/src/ChartInternal/interactions/zoom.ts +13 -3
- package/src/ChartInternal/internals/category.ts +2 -2
- package/src/ChartInternal/internals/clip.ts +4 -4
- package/src/ChartInternal/internals/domain.ts +46 -10
- package/src/ChartInternal/internals/grid.ts +57 -86
- package/src/ChartInternal/internals/redraw.ts +0 -5
- package/src/ChartInternal/internals/region.ts +35 -12
- package/src/ChartInternal/internals/text.ts +1 -26
- package/src/ChartInternal/internals/title.ts +10 -48
- package/src/ChartInternal/internals/tooltip.ts +47 -51
- package/src/ChartInternal/shape/arc.ts +16 -6
- package/src/ChartInternal/shape/candlestick.ts +2 -17
- package/src/ChartInternal/shape/shape.ts +50 -4
- package/src/ChartInternal/shape/treemap.ts +2 -2
- package/src/Plugin/bubblecompare/index.ts +1 -1
- package/src/Plugin/stanford/Elements.ts +10 -2
- package/src/Plugin/stanford/index.ts +1 -24
- package/src/Plugin/tableview/index.ts +2 -2
- package/src/config/Options/axis/x.ts +1 -0
- package/src/config/Options/common/main.ts +12 -2
- package/src/config/Options/common/tooltip.ts +10 -10
- package/src/config/Options/data/axis.ts +3 -1
- package/src/config/Options/data/data.ts +10 -2
- package/src/config/Store/State.ts +3 -0
- package/src/module/Cache.ts +7 -5
- package/src/module/browser.ts +34 -14
- package/src/module/util.ts +8 -4
- package/src/module/worker.ts +24 -13
- package/src/scss/billboard.scss +4 -2
- package/src/scss/theme/dark.scss +4 -2
- package/src/scss/theme/datalab.scss +4 -2
- package/src/scss/theme/graph.scss +4 -2
- package/src/scss/theme/insight.scss +4 -2
- package/types/chart.d.ts +11 -0
- package/types/options.d.ts +3 -3
- package/types/types.d.ts +15 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.
|
|
8
|
+
* @version 3.10.0-next.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
else if(typeof exports === 'object')
|
|
18
18
|
exports["bb"] = factory();
|
|
19
19
|
else
|
|
20
|
-
root["bb"] = root["bb"] || {}, root["bb"]["plugin"] = root["bb"]["plugin"] || {}, root["bb"]["plugin"]["textoverlap"] = factory();
|
|
20
|
+
root["bb"] = root["bb"] || {}, root["bb"]["plugin"] = root["bb"]["plugin"] || {}, root["bb"]["plugin"]["textoverlap.pkgd"] = factory();
|
|
21
21
|
})(this, function() {
|
|
22
22
|
return /******/ (function() { // webpackBootstrap
|
|
23
23
|
/******/ var __webpack_modules__ = ([
|
|
@@ -84,29 +84,29 @@ __webpack_require__(203);
|
|
|
84
84
|
__webpack_require__(204);
|
|
85
85
|
__webpack_require__(205);
|
|
86
86
|
__webpack_require__(207);
|
|
87
|
-
__webpack_require__(
|
|
88
|
-
__webpack_require__(
|
|
89
|
-
__webpack_require__(
|
|
90
|
-
__webpack_require__(221);
|
|
87
|
+
__webpack_require__(215);
|
|
88
|
+
__webpack_require__(217);
|
|
89
|
+
__webpack_require__(220);
|
|
91
90
|
__webpack_require__(222);
|
|
92
91
|
__webpack_require__(223);
|
|
93
92
|
__webpack_require__(224);
|
|
94
93
|
__webpack_require__(225);
|
|
95
|
-
__webpack_require__(
|
|
94
|
+
__webpack_require__(226);
|
|
96
95
|
__webpack_require__(230);
|
|
97
|
-
__webpack_require__(
|
|
96
|
+
__webpack_require__(231);
|
|
98
97
|
__webpack_require__(233);
|
|
99
98
|
__webpack_require__(234);
|
|
100
|
-
__webpack_require__(
|
|
99
|
+
__webpack_require__(235);
|
|
101
100
|
__webpack_require__(237);
|
|
102
101
|
__webpack_require__(238);
|
|
103
|
-
__webpack_require__(95);
|
|
104
102
|
__webpack_require__(239);
|
|
103
|
+
__webpack_require__(95);
|
|
105
104
|
__webpack_require__(240);
|
|
106
|
-
__webpack_require__(
|
|
107
|
-
__webpack_require__(
|
|
105
|
+
__webpack_require__(241);
|
|
106
|
+
__webpack_require__(249);
|
|
108
107
|
__webpack_require__(251);
|
|
109
108
|
__webpack_require__(252);
|
|
109
|
+
__webpack_require__(253);
|
|
110
110
|
__webpack_require__(254);
|
|
111
111
|
__webpack_require__(255);
|
|
112
112
|
__webpack_require__(257);
|
|
@@ -378,7 +378,7 @@ var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChil
|
|
|
378
378
|
var setSymbolDescriptor = DESCRIPTORS && fails(function () {
|
|
379
379
|
return nativeObjectCreate(nativeDefineProperty({}, 'a', {
|
|
380
380
|
get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
|
|
381
|
-
})).a
|
|
381
|
+
})).a !== 7;
|
|
382
382
|
}) ? function (O, P, Attributes) {
|
|
383
383
|
var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);
|
|
384
384
|
if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
|
|
@@ -634,7 +634,7 @@ module.exports = function (options, source) {
|
|
|
634
634
|
"use strict";
|
|
635
635
|
|
|
636
636
|
var check = function (it) {
|
|
637
|
-
return it && it.Math
|
|
637
|
+
return it && it.Math === Math && it;
|
|
638
638
|
};
|
|
639
639
|
|
|
640
640
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
@@ -690,7 +690,7 @@ var fails = __webpack_require__(7);
|
|
|
690
690
|
// Detect IE8's incomplete defineProperty implementation
|
|
691
691
|
module.exports = !fails(function () {
|
|
692
692
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
693
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1]
|
|
693
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
694
694
|
});
|
|
695
695
|
|
|
696
696
|
|
|
@@ -811,7 +811,7 @@ module.exports = fails(function () {
|
|
|
811
811
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
812
812
|
return !$Object('z').propertyIsEnumerable(0);
|
|
813
813
|
}) ? function (it) {
|
|
814
|
-
return classof(it)
|
|
814
|
+
return classof(it) === 'String' ? split(it, '') : $Object(it);
|
|
815
815
|
} : $Object;
|
|
816
816
|
|
|
817
817
|
|
|
@@ -1065,7 +1065,7 @@ var $String = global.String;
|
|
|
1065
1065
|
|
|
1066
1066
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
1067
1067
|
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
1068
|
-
var symbol = Symbol();
|
|
1068
|
+
var symbol = Symbol('symbol detection');
|
|
1069
1069
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
1070
1070
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
1071
1071
|
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
@@ -1233,10 +1233,10 @@ var store = __webpack_require__(37);
|
|
|
1233
1233
|
(module.exports = function (key, value) {
|
|
1234
1234
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
1235
1235
|
})('versions', []).push({
|
|
1236
|
-
version: '3.32.
|
|
1236
|
+
version: '3.32.1',
|
|
1237
1237
|
mode: IS_PURE ? 'pure' : 'global',
|
|
1238
1238
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
1239
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.32.
|
|
1239
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE',
|
|
1240
1240
|
source: 'https://github.com/zloirock/core-js'
|
|
1241
1241
|
});
|
|
1242
1242
|
|
|
@@ -1353,7 +1353,7 @@ module.exports = !DESCRIPTORS && !fails(function () {
|
|
|
1353
1353
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1354
1354
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
1355
1355
|
get: function () { return 7; }
|
|
1356
|
-
}).a
|
|
1356
|
+
}).a !== 7;
|
|
1357
1357
|
});
|
|
1358
1358
|
|
|
1359
1359
|
|
|
@@ -1460,7 +1460,7 @@ module.exports = DESCRIPTORS && fails(function () {
|
|
|
1460
1460
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
1461
1461
|
value: 42,
|
|
1462
1462
|
writable: false
|
|
1463
|
-
}).prototype
|
|
1463
|
+
}).prototype !== 42;
|
|
1464
1464
|
});
|
|
1465
1465
|
|
|
1466
1466
|
|
|
@@ -1855,10 +1855,10 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
1855
1855
|
var value;
|
|
1856
1856
|
// Array#includes uses SameValueZero equality algorithm
|
|
1857
1857
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
1858
|
-
if (IS_INCLUDES && el
|
|
1858
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
1859
1859
|
value = O[index++];
|
|
1860
1860
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
1861
|
-
if (value
|
|
1861
|
+
if (value !== value) return true;
|
|
1862
1862
|
// Array#indexOf ignores holes, Array#includes - not
|
|
1863
1863
|
} else for (;length > index; index++) {
|
|
1864
1864
|
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
@@ -2004,8 +2004,8 @@ var replacement = /#|\.prototype\./;
|
|
|
2004
2004
|
|
|
2005
2005
|
var isForced = function (feature, detection) {
|
|
2006
2006
|
var value = data[normalize(feature)];
|
|
2007
|
-
return value
|
|
2008
|
-
: value
|
|
2007
|
+
return value === POLYFILL ? true
|
|
2008
|
+
: value === NATIVE ? false
|
|
2009
2009
|
: isCallable(detection) ? fails(detection)
|
|
2010
2010
|
: !!detection;
|
|
2011
2011
|
};
|
|
@@ -2052,7 +2052,7 @@ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
|
2052
2052
|
var $Object = Object;
|
|
2053
2053
|
|
|
2054
2054
|
// ES3 wrong here
|
|
2055
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }())
|
|
2055
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
|
|
2056
2056
|
|
|
2057
2057
|
// fallback for IE11 Script Access Denied error
|
|
2058
2058
|
var tryGet = function (it, key) {
|
|
@@ -2070,7 +2070,7 @@ module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
2070
2070
|
// builtinTag case
|
|
2071
2071
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
2072
2072
|
// ES3 arguments fallback
|
|
2073
|
-
: (result = classofRaw(O))
|
|
2073
|
+
: (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
2074
2074
|
};
|
|
2075
2075
|
|
|
2076
2076
|
|
|
@@ -2262,7 +2262,7 @@ var getWindowNames = function (it) {
|
|
|
2262
2262
|
|
|
2263
2263
|
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
|
|
2264
2264
|
module.exports.f = function getOwnPropertyNames(it) {
|
|
2265
|
-
return windowNames && classof(it)
|
|
2265
|
+
return windowNames && classof(it) === 'Window'
|
|
2266
2266
|
? getWindowNames(it)
|
|
2267
2267
|
: $getOwnPropertyNames(toIndexedObject(it));
|
|
2268
2268
|
};
|
|
@@ -2286,7 +2286,8 @@ module.exports = function (O, start, end) {
|
|
|
2286
2286
|
var k = toAbsoluteIndex(start, length);
|
|
2287
2287
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
2288
2288
|
var result = $Array(max(fin - k, 0));
|
|
2289
|
-
|
|
2289
|
+
var n = 0;
|
|
2290
|
+
for (; k < fin; k++, n++) createProperty(result, n, O[k]);
|
|
2290
2291
|
result.length = n;
|
|
2291
2292
|
return result;
|
|
2292
2293
|
};
|
|
@@ -2431,13 +2432,13 @@ var push = uncurryThis([].push);
|
|
|
2431
2432
|
|
|
2432
2433
|
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
2433
2434
|
var createMethod = function (TYPE) {
|
|
2434
|
-
var IS_MAP = TYPE
|
|
2435
|
-
var IS_FILTER = TYPE
|
|
2436
|
-
var IS_SOME = TYPE
|
|
2437
|
-
var IS_EVERY = TYPE
|
|
2438
|
-
var IS_FIND_INDEX = TYPE
|
|
2439
|
-
var IS_FILTER_REJECT = TYPE
|
|
2440
|
-
var NO_HOLES = TYPE
|
|
2435
|
+
var IS_MAP = TYPE === 1;
|
|
2436
|
+
var IS_FILTER = TYPE === 2;
|
|
2437
|
+
var IS_SOME = TYPE === 3;
|
|
2438
|
+
var IS_EVERY = TYPE === 4;
|
|
2439
|
+
var IS_FIND_INDEX = TYPE === 6;
|
|
2440
|
+
var IS_FILTER_REJECT = TYPE === 7;
|
|
2441
|
+
var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
|
|
2441
2442
|
return function ($this, callbackfn, that, specificCreate) {
|
|
2442
2443
|
var O = toObject($this);
|
|
2443
2444
|
var self = IndexedObject(O);
|
|
@@ -2590,7 +2591,7 @@ var classof = __webpack_require__(15);
|
|
|
2590
2591
|
// https://tc39.es/ecma262/#sec-isarray
|
|
2591
2592
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
2592
2593
|
module.exports = Array.isArray || function isArray(argument) {
|
|
2593
|
-
return classof(argument)
|
|
2594
|
+
return classof(argument) === 'Array';
|
|
2594
2595
|
};
|
|
2595
2596
|
|
|
2596
2597
|
|
|
@@ -2752,13 +2753,13 @@ var low = /^[\uD800-\uDBFF]$/;
|
|
|
2752
2753
|
var hi = /^[\uDC00-\uDFFF]$/;
|
|
2753
2754
|
|
|
2754
2755
|
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function () {
|
|
2755
|
-
var symbol = getBuiltIn('Symbol')();
|
|
2756
|
+
var symbol = getBuiltIn('Symbol')('stringify detection');
|
|
2756
2757
|
// MS Edge converts symbol values to JSON as {}
|
|
2757
|
-
return $stringify([symbol])
|
|
2758
|
+
return $stringify([symbol]) !== '[null]'
|
|
2758
2759
|
// WebKit converts symbol values to JSON as null
|
|
2759
|
-
|| $stringify({ a: symbol })
|
|
2760
|
+
|| $stringify({ a: symbol }) !== '{}'
|
|
2760
2761
|
// V8 throws on boxed symbols
|
|
2761
|
-
|| $stringify(Object(symbol))
|
|
2762
|
+
|| $stringify(Object(symbol)) !== '{}';
|
|
2762
2763
|
});
|
|
2763
2764
|
|
|
2764
2765
|
// https://github.com/tc39/proposal-well-formed-stringify
|
|
@@ -2852,7 +2853,7 @@ module.exports = function (replacer) {
|
|
|
2852
2853
|
for (var i = 0; i < rawLength; i++) {
|
|
2853
2854
|
var element = replacer[i];
|
|
2854
2855
|
if (typeof element == 'string') push(keys, element);
|
|
2855
|
-
else if (typeof element == 'number' || classof(element)
|
|
2856
|
+
else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') push(keys, toString(element));
|
|
2856
2857
|
}
|
|
2857
2858
|
var keysLength = keys.length;
|
|
2858
2859
|
var root = true;
|
|
@@ -2935,7 +2936,7 @@ if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototy
|
|
|
2935
2936
|
SymbolWrapper.prototype = SymbolPrototype;
|
|
2936
2937
|
SymbolPrototype.constructor = SymbolWrapper;
|
|
2937
2938
|
|
|
2938
|
-
var NATIVE_SYMBOL = String(NativeSymbol('
|
|
2939
|
+
var NATIVE_SYMBOL = String(NativeSymbol('description detection')) === 'Symbol(description detection)';
|
|
2939
2940
|
var thisSymbolValue = uncurryThis(SymbolPrototype.valueOf);
|
|
2940
2941
|
var symbolDescriptiveString = uncurryThis(SymbolPrototype.toString);
|
|
2941
2942
|
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
|
@@ -3895,7 +3896,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
3895
3896
|
|
|
3896
3897
|
// Array.prototype[@@unscopables]
|
|
3897
3898
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
3898
|
-
if (ArrayPrototype[UNSCOPABLES]
|
|
3899
|
+
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
3899
3900
|
defineProperty(ArrayPrototype, UNSCOPABLES, {
|
|
3900
3901
|
configurable: true,
|
|
3901
3902
|
value: create(null)
|
|
@@ -4284,7 +4285,7 @@ var lengthOfArrayLike = __webpack_require__(64);
|
|
|
4284
4285
|
|
|
4285
4286
|
// `Array.prototype.{ findLast, findLastIndex }` methods implementation
|
|
4286
4287
|
var createMethod = function (TYPE) {
|
|
4287
|
-
var IS_FIND_LAST_INDEX = TYPE
|
|
4288
|
+
var IS_FIND_LAST_INDEX = TYPE === 1;
|
|
4288
4289
|
return function ($this, callbackfn, that) {
|
|
4289
4290
|
var O = toObject($this);
|
|
4290
4291
|
var self = IndexedObject(O);
|
|
@@ -4442,7 +4443,7 @@ var forEach = __webpack_require__(161);
|
|
|
4442
4443
|
// `Array.prototype.forEach` method
|
|
4443
4444
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
4444
4445
|
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
4445
|
-
$({ target: 'Array', proto: true, forced: [].forEach
|
|
4446
|
+
$({ target: 'Array', proto: true, forced: [].forEach !== forEach }, {
|
|
4446
4447
|
forEach: forEach
|
|
4447
4448
|
});
|
|
4448
4449
|
|
|
@@ -4729,9 +4730,10 @@ module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
|
4729
4730
|
state.target = undefined;
|
|
4730
4731
|
return createIterResultObject(undefined, true);
|
|
4731
4732
|
}
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4733
|
+
switch (kind) {
|
|
4734
|
+
case 'keys': return createIterResultObject(index, false);
|
|
4735
|
+
case 'values': return createIterResultObject(target[index], false);
|
|
4736
|
+
} return createIterResultObject([index, target[index]], false);
|
|
4735
4737
|
}, 'values');
|
|
4736
4738
|
|
|
4737
4739
|
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
@@ -4802,7 +4804,7 @@ module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, I
|
|
|
4802
4804
|
|| IterablePrototype['@@iterator']
|
|
4803
4805
|
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
4804
4806
|
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
4805
|
-
var anyNativeIterator = NAME
|
|
4807
|
+
var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
4806
4808
|
var CurrentIteratorPrototype, methods, KEY;
|
|
4807
4809
|
|
|
4808
4810
|
// fix native
|
|
@@ -4823,7 +4825,7 @@ module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, I
|
|
|
4823
4825
|
}
|
|
4824
4826
|
|
|
4825
4827
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
4826
|
-
if (PROPER_FUNCTION_NAME && DEFAULT
|
|
4828
|
+
if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
4827
4829
|
if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {
|
|
4828
4830
|
createNonEnumerableProperty(IterablePrototype, 'name', VALUES);
|
|
4829
4831
|
} else {
|
|
@@ -4962,7 +4964,7 @@ var arrayMethodIsStrict = __webpack_require__(148);
|
|
|
4962
4964
|
|
|
4963
4965
|
var nativeJoin = uncurryThis([].join);
|
|
4964
4966
|
|
|
4965
|
-
var ES3_STRINGS = IndexedObject
|
|
4967
|
+
var ES3_STRINGS = IndexedObject !== Object;
|
|
4966
4968
|
var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ',');
|
|
4967
4969
|
|
|
4968
4970
|
// `Array.prototype.join` method
|
|
@@ -5247,9 +5249,10 @@ module.exports = {
|
|
|
5247
5249
|
|
|
5248
5250
|
"use strict";
|
|
5249
5251
|
|
|
5252
|
+
var global = __webpack_require__(4);
|
|
5250
5253
|
var classof = __webpack_require__(15);
|
|
5251
5254
|
|
|
5252
|
-
module.exports =
|
|
5255
|
+
module.exports = classof(global.process) === 'process';
|
|
5253
5256
|
|
|
5254
5257
|
|
|
5255
5258
|
/***/ }),
|
|
@@ -6219,7 +6222,7 @@ if (!NATIVE_ARRAY_BUFFER) {
|
|
|
6219
6222
|
new NativeArrayBuffer();
|
|
6220
6223
|
new NativeArrayBuffer(1.5);
|
|
6221
6224
|
new NativeArrayBuffer(NaN);
|
|
6222
|
-
return NativeArrayBuffer.length
|
|
6225
|
+
return NativeArrayBuffer.length !== 1 || INCORRECT_ARRAY_BUFFER_NAME && !CONFIGURABLE_FUNCTION_NAME;
|
|
6223
6226
|
})) {
|
|
6224
6227
|
/* eslint-enable no-new -- required for testing */
|
|
6225
6228
|
$ArrayBuffer = function ArrayBuffer(length) {
|
|
@@ -6333,11 +6336,14 @@ module.exports = function (it) {
|
|
|
6333
6336
|
|
|
6334
6337
|
/***/ }),
|
|
6335
6338
|
/* 213 */
|
|
6336
|
-
/***/ (function(module) {
|
|
6339
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6337
6340
|
|
|
6338
6341
|
"use strict";
|
|
6339
6342
|
|
|
6340
6343
|
// IEEE754 conversions based on https://github.com/feross/ieee754
|
|
6344
|
+
var sign = __webpack_require__(214);
|
|
6345
|
+
var trunc = __webpack_require__(63);
|
|
6346
|
+
|
|
6341
6347
|
var $Array = Array;
|
|
6342
6348
|
var abs = Math.abs;
|
|
6343
6349
|
var pow = Math.pow;
|
|
@@ -6345,20 +6351,28 @@ var floor = Math.floor;
|
|
|
6345
6351
|
var log = Math.log;
|
|
6346
6352
|
var LN2 = Math.LN2;
|
|
6347
6353
|
|
|
6354
|
+
var roundToEven = function (number) {
|
|
6355
|
+
var truncated = trunc(number);
|
|
6356
|
+
var delta = abs(number - truncated);
|
|
6357
|
+
if (delta > 0.5 || delta === 0.5 && truncated % 2 !== 0) {
|
|
6358
|
+
return truncated + sign(number);
|
|
6359
|
+
} return truncated;
|
|
6360
|
+
};
|
|
6361
|
+
|
|
6348
6362
|
var pack = function (number, mantissaLength, bytes) {
|
|
6349
6363
|
var buffer = $Array(bytes);
|
|
6350
6364
|
var exponentLength = bytes * 8 - mantissaLength - 1;
|
|
6351
6365
|
var eMax = (1 << exponentLength) - 1;
|
|
6352
6366
|
var eBias = eMax >> 1;
|
|
6353
6367
|
var rt = mantissaLength === 23 ? pow(2, -24) - pow(2, -77) : 0;
|
|
6354
|
-
var
|
|
6368
|
+
var s = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0;
|
|
6355
6369
|
var index = 0;
|
|
6356
6370
|
var exponent, mantissa, c;
|
|
6357
6371
|
number = abs(number);
|
|
6358
6372
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
6359
|
-
if (number
|
|
6373
|
+
if (number !== number || number === Infinity) {
|
|
6360
6374
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
6361
|
-
mantissa = number
|
|
6375
|
+
mantissa = number !== number ? 1 : 0;
|
|
6362
6376
|
exponent = eMax;
|
|
6363
6377
|
} else {
|
|
6364
6378
|
exponent = floor(log(number) / LN2);
|
|
@@ -6380,10 +6394,10 @@ var pack = function (number, mantissaLength, bytes) {
|
|
|
6380
6394
|
mantissa = 0;
|
|
6381
6395
|
exponent = eMax;
|
|
6382
6396
|
} else if (exponent + eBias >= 1) {
|
|
6383
|
-
mantissa = (number * c - 1) * pow(2, mantissaLength);
|
|
6397
|
+
mantissa = roundToEven((number * c - 1) * pow(2, mantissaLength));
|
|
6384
6398
|
exponent = exponent + eBias;
|
|
6385
6399
|
} else {
|
|
6386
|
-
mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength);
|
|
6400
|
+
mantissa = roundToEven(number * pow(2, eBias - 1) * pow(2, mantissaLength));
|
|
6387
6401
|
exponent = 0;
|
|
6388
6402
|
}
|
|
6389
6403
|
}
|
|
@@ -6399,7 +6413,7 @@ var pack = function (number, mantissaLength, bytes) {
|
|
|
6399
6413
|
exponent /= 256;
|
|
6400
6414
|
exponentLength -= 8;
|
|
6401
6415
|
}
|
|
6402
|
-
buffer[--index] |=
|
|
6416
|
+
buffer[--index] |= s * 128;
|
|
6403
6417
|
return buffer;
|
|
6404
6418
|
};
|
|
6405
6419
|
|
|
@@ -6410,10 +6424,10 @@ var unpack = function (buffer, mantissaLength) {
|
|
|
6410
6424
|
var eBias = eMax >> 1;
|
|
6411
6425
|
var nBits = exponentLength - 7;
|
|
6412
6426
|
var index = bytes - 1;
|
|
6413
|
-
var
|
|
6414
|
-
var exponent =
|
|
6427
|
+
var s = buffer[index--];
|
|
6428
|
+
var exponent = s & 127;
|
|
6415
6429
|
var mantissa;
|
|
6416
|
-
|
|
6430
|
+
s >>= 7;
|
|
6417
6431
|
while (nBits > 0) {
|
|
6418
6432
|
exponent = exponent * 256 + buffer[index--];
|
|
6419
6433
|
nBits -= 8;
|
|
@@ -6428,11 +6442,11 @@ var unpack = function (buffer, mantissaLength) {
|
|
|
6428
6442
|
if (exponent === 0) {
|
|
6429
6443
|
exponent = 1 - eBias;
|
|
6430
6444
|
} else if (exponent === eMax) {
|
|
6431
|
-
return mantissa ? NaN :
|
|
6445
|
+
return mantissa ? NaN : s ? -Infinity : Infinity;
|
|
6432
6446
|
} else {
|
|
6433
6447
|
mantissa = mantissa + pow(2, mantissaLength);
|
|
6434
6448
|
exponent = exponent - eBias;
|
|
6435
|
-
} return (
|
|
6449
|
+
} return (s ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength);
|
|
6436
6450
|
};
|
|
6437
6451
|
|
|
6438
6452
|
module.exports = {
|
|
@@ -6443,12 +6457,28 @@ module.exports = {
|
|
|
6443
6457
|
|
|
6444
6458
|
/***/ }),
|
|
6445
6459
|
/* 214 */
|
|
6460
|
+
/***/ (function(module) {
|
|
6461
|
+
|
|
6462
|
+
"use strict";
|
|
6463
|
+
|
|
6464
|
+
// `Math.sign` method implementation
|
|
6465
|
+
// https://tc39.es/ecma262/#sec-math.sign
|
|
6466
|
+
// eslint-disable-next-line es/no-math-sign -- safe
|
|
6467
|
+
module.exports = Math.sign || function sign(x) {
|
|
6468
|
+
var n = +x;
|
|
6469
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
6470
|
+
return n === 0 || n !== n ? n : n < 0 ? -1 : 1;
|
|
6471
|
+
};
|
|
6472
|
+
|
|
6473
|
+
|
|
6474
|
+
/***/ }),
|
|
6475
|
+
/* 215 */
|
|
6446
6476
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
6447
6477
|
|
|
6448
6478
|
"use strict";
|
|
6449
6479
|
|
|
6450
6480
|
var $ = __webpack_require__(3);
|
|
6451
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
6481
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
6452
6482
|
|
|
6453
6483
|
var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
|
|
6454
6484
|
|
|
@@ -6460,7 +6490,7 @@ $({ target: 'ArrayBuffer', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {
|
|
|
6460
6490
|
|
|
6461
6491
|
|
|
6462
6492
|
/***/ }),
|
|
6463
|
-
/*
|
|
6493
|
+
/* 216 */
|
|
6464
6494
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6465
6495
|
|
|
6466
6496
|
"use strict";
|
|
@@ -6660,7 +6690,7 @@ module.exports = {
|
|
|
6660
6690
|
|
|
6661
6691
|
|
|
6662
6692
|
/***/ }),
|
|
6663
|
-
/*
|
|
6693
|
+
/* 217 */
|
|
6664
6694
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
6665
6695
|
|
|
6666
6696
|
"use strict";
|
|
@@ -6672,7 +6702,7 @@ var ArrayBufferModule = __webpack_require__(208);
|
|
|
6672
6702
|
var anObject = __webpack_require__(47);
|
|
6673
6703
|
var toAbsoluteIndex = __webpack_require__(61);
|
|
6674
6704
|
var toLength = __webpack_require__(65);
|
|
6675
|
-
var speciesConstructor = __webpack_require__(
|
|
6705
|
+
var speciesConstructor = __webpack_require__(218);
|
|
6676
6706
|
|
|
6677
6707
|
var ArrayBuffer = ArrayBufferModule.ArrayBuffer;
|
|
6678
6708
|
var DataView = ArrayBufferModule.DataView;
|
|
@@ -6707,13 +6737,13 @@ $({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE },
|
|
|
6707
6737
|
|
|
6708
6738
|
|
|
6709
6739
|
/***/ }),
|
|
6710
|
-
/*
|
|
6740
|
+
/* 218 */
|
|
6711
6741
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6712
6742
|
|
|
6713
6743
|
"use strict";
|
|
6714
6744
|
|
|
6715
6745
|
var anObject = __webpack_require__(47);
|
|
6716
|
-
var aConstructor = __webpack_require__(
|
|
6746
|
+
var aConstructor = __webpack_require__(219);
|
|
6717
6747
|
var isNullOrUndefined = __webpack_require__(17);
|
|
6718
6748
|
var wellKnownSymbol = __webpack_require__(34);
|
|
6719
6749
|
|
|
@@ -6729,7 +6759,7 @@ module.exports = function (O, defaultConstructor) {
|
|
|
6729
6759
|
|
|
6730
6760
|
|
|
6731
6761
|
/***/ }),
|
|
6732
|
-
/*
|
|
6762
|
+
/* 219 */
|
|
6733
6763
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6734
6764
|
|
|
6735
6765
|
"use strict";
|
|
@@ -6747,17 +6777,17 @@ module.exports = function (argument) {
|
|
|
6747
6777
|
|
|
6748
6778
|
|
|
6749
6779
|
/***/ }),
|
|
6750
|
-
/*
|
|
6780
|
+
/* 220 */
|
|
6751
6781
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
6752
6782
|
|
|
6753
6783
|
"use strict";
|
|
6754
6784
|
|
|
6755
6785
|
// TODO: Remove this module from `core-js@4` since it's replaced to module below
|
|
6756
|
-
__webpack_require__(
|
|
6786
|
+
__webpack_require__(221);
|
|
6757
6787
|
|
|
6758
6788
|
|
|
6759
6789
|
/***/ }),
|
|
6760
|
-
/*
|
|
6790
|
+
/* 221 */
|
|
6761
6791
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
6762
6792
|
|
|
6763
6793
|
"use strict";
|
|
@@ -6774,7 +6804,7 @@ $({ global: true, constructor: true, forced: !NATIVE_ARRAY_BUFFER }, {
|
|
|
6774
6804
|
|
|
6775
6805
|
|
|
6776
6806
|
/***/ }),
|
|
6777
|
-
/*
|
|
6807
|
+
/* 222 */
|
|
6778
6808
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
6779
6809
|
|
|
6780
6810
|
"use strict";
|
|
@@ -6801,7 +6831,7 @@ $({ target: 'Date', proto: true, forced: FORCED }, {
|
|
|
6801
6831
|
|
|
6802
6832
|
|
|
6803
6833
|
/***/ }),
|
|
6804
|
-
/*
|
|
6834
|
+
/* 223 */
|
|
6805
6835
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
6806
6836
|
|
|
6807
6837
|
"use strict";
|
|
@@ -6823,7 +6853,7 @@ $({ target: 'Date', stat: true }, {
|
|
|
6823
6853
|
|
|
6824
6854
|
|
|
6825
6855
|
/***/ }),
|
|
6826
|
-
/*
|
|
6856
|
+
/* 224 */
|
|
6827
6857
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
6828
6858
|
|
|
6829
6859
|
"use strict";
|
|
@@ -6843,14 +6873,14 @@ $({ target: 'Date', proto: true }, {
|
|
|
6843
6873
|
// validate
|
|
6844
6874
|
thisTimeValue(this);
|
|
6845
6875
|
var yi = toIntegerOrInfinity(year);
|
|
6846
|
-
var yyyy =
|
|
6876
|
+
var yyyy = yi >= 0 && yi <= 99 ? yi + 1900 : yi;
|
|
6847
6877
|
return setFullYear(this, yyyy);
|
|
6848
6878
|
}
|
|
6849
6879
|
});
|
|
6850
6880
|
|
|
6851
6881
|
|
|
6852
6882
|
/***/ }),
|
|
6853
|
-
/*
|
|
6883
|
+
/* 225 */
|
|
6854
6884
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
6855
6885
|
|
|
6856
6886
|
"use strict";
|
|
@@ -6865,13 +6895,13 @@ $({ target: 'Date', proto: true }, {
|
|
|
6865
6895
|
|
|
6866
6896
|
|
|
6867
6897
|
/***/ }),
|
|
6868
|
-
/*
|
|
6898
|
+
/* 226 */
|
|
6869
6899
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
6870
6900
|
|
|
6871
6901
|
"use strict";
|
|
6872
6902
|
|
|
6873
6903
|
var $ = __webpack_require__(3);
|
|
6874
|
-
var toISOString = __webpack_require__(
|
|
6904
|
+
var toISOString = __webpack_require__(227);
|
|
6875
6905
|
|
|
6876
6906
|
// `Date.prototype.toISOString` method
|
|
6877
6907
|
// https://tc39.es/ecma262/#sec-date.prototype.toisostring
|
|
@@ -6882,14 +6912,14 @@ $({ target: 'Date', proto: true, forced: Date.prototype.toISOString !== toISOStr
|
|
|
6882
6912
|
|
|
6883
6913
|
|
|
6884
6914
|
/***/ }),
|
|
6885
|
-
/*
|
|
6915
|
+
/* 227 */
|
|
6886
6916
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6887
6917
|
|
|
6888
6918
|
"use strict";
|
|
6889
6919
|
|
|
6890
6920
|
var uncurryThis = __webpack_require__(14);
|
|
6891
6921
|
var fails = __webpack_require__(7);
|
|
6892
|
-
var padStart = (__webpack_require__(
|
|
6922
|
+
var padStart = (__webpack_require__(228).start);
|
|
6893
6923
|
|
|
6894
6924
|
var $RangeError = RangeError;
|
|
6895
6925
|
var $isFinite = isFinite;
|
|
@@ -6909,7 +6939,7 @@ var getUTCSeconds = uncurryThis(DatePrototype.getUTCSeconds);
|
|
|
6909
6939
|
// https://tc39.es/ecma262/#sec-date.prototype.toisostring
|
|
6910
6940
|
// PhantomJS / old WebKit fails here:
|
|
6911
6941
|
module.exports = (fails(function () {
|
|
6912
|
-
return nativeDateToISOString.call(new Date(-5e13 - 1))
|
|
6942
|
+
return nativeDateToISOString.call(new Date(-5e13 - 1)) !== '0385-07-25T07:06:39.999Z';
|
|
6913
6943
|
}) || !fails(function () {
|
|
6914
6944
|
nativeDateToISOString.call(new Date(NaN));
|
|
6915
6945
|
})) ? function toISOString() {
|
|
@@ -6930,7 +6960,7 @@ module.exports = (fails(function () {
|
|
|
6930
6960
|
|
|
6931
6961
|
|
|
6932
6962
|
/***/ }),
|
|
6933
|
-
/*
|
|
6963
|
+
/* 228 */
|
|
6934
6964
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6935
6965
|
|
|
6936
6966
|
"use strict";
|
|
@@ -6939,7 +6969,7 @@ module.exports = (fails(function () {
|
|
|
6939
6969
|
var uncurryThis = __webpack_require__(14);
|
|
6940
6970
|
var toLength = __webpack_require__(65);
|
|
6941
6971
|
var toString = __webpack_require__(69);
|
|
6942
|
-
var $repeat = __webpack_require__(
|
|
6972
|
+
var $repeat = __webpack_require__(229);
|
|
6943
6973
|
var requireObjectCoercible = __webpack_require__(16);
|
|
6944
6974
|
|
|
6945
6975
|
var repeat = uncurryThis($repeat);
|
|
@@ -6954,7 +6984,7 @@ var createMethod = function (IS_END) {
|
|
|
6954
6984
|
var stringLength = S.length;
|
|
6955
6985
|
var fillStr = fillString === undefined ? ' ' : toString(fillString);
|
|
6956
6986
|
var fillLen, stringFiller;
|
|
6957
|
-
if (intMaxLength <= stringLength || fillStr
|
|
6987
|
+
if (intMaxLength <= stringLength || fillStr === '') return S;
|
|
6958
6988
|
fillLen = intMaxLength - stringLength;
|
|
6959
6989
|
stringFiller = repeat(fillStr, ceil(fillLen / fillStr.length));
|
|
6960
6990
|
if (stringFiller.length > fillLen) stringFiller = stringSlice(stringFiller, 0, fillLen);
|
|
@@ -6973,7 +7003,7 @@ module.exports = {
|
|
|
6973
7003
|
|
|
6974
7004
|
|
|
6975
7005
|
/***/ }),
|
|
6976
|
-
/*
|
|
7006
|
+
/* 229 */
|
|
6977
7007
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6978
7008
|
|
|
6979
7009
|
"use strict";
|
|
@@ -6990,14 +7020,14 @@ module.exports = function repeat(count) {
|
|
|
6990
7020
|
var str = toString(requireObjectCoercible(this));
|
|
6991
7021
|
var result = '';
|
|
6992
7022
|
var n = toIntegerOrInfinity(count);
|
|
6993
|
-
if (n < 0 || n
|
|
7023
|
+
if (n < 0 || n === Infinity) throw $RangeError('Wrong number of repetitions');
|
|
6994
7024
|
for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
|
|
6995
7025
|
return result;
|
|
6996
7026
|
};
|
|
6997
7027
|
|
|
6998
7028
|
|
|
6999
7029
|
/***/ }),
|
|
7000
|
-
/*
|
|
7030
|
+
/* 230 */
|
|
7001
7031
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
7002
7032
|
|
|
7003
7033
|
"use strict";
|
|
@@ -7025,14 +7055,14 @@ $({ target: 'Date', proto: true, arity: 1, forced: FORCED }, {
|
|
|
7025
7055
|
|
|
7026
7056
|
|
|
7027
7057
|
/***/ }),
|
|
7028
|
-
/*
|
|
7058
|
+
/* 231 */
|
|
7029
7059
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
7030
7060
|
|
|
7031
7061
|
"use strict";
|
|
7032
7062
|
|
|
7033
7063
|
var hasOwn = __webpack_require__(39);
|
|
7034
7064
|
var defineBuiltIn = __webpack_require__(48);
|
|
7035
|
-
var dateToPrimitive = __webpack_require__(
|
|
7065
|
+
var dateToPrimitive = __webpack_require__(232);
|
|
7036
7066
|
var wellKnownSymbol = __webpack_require__(34);
|
|
7037
7067
|
|
|
7038
7068
|
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
@@ -7046,7 +7076,7 @@ if (!hasOwn(DatePrototype, TO_PRIMITIVE)) {
|
|
|
7046
7076
|
|
|
7047
7077
|
|
|
7048
7078
|
/***/ }),
|
|
7049
|
-
/*
|
|
7079
|
+
/* 232 */
|
|
7050
7080
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
7051
7081
|
|
|
7052
7082
|
"use strict";
|
|
@@ -7067,7 +7097,7 @@ module.exports = function (hint) {
|
|
|
7067
7097
|
|
|
7068
7098
|
|
|
7069
7099
|
/***/ }),
|
|
7070
|
-
/*
|
|
7100
|
+
/* 233 */
|
|
7071
7101
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
7072
7102
|
|
|
7073
7103
|
"use strict";
|
|
@@ -7084,7 +7114,7 @@ var thisTimeValue = uncurryThis(DatePrototype.getTime);
|
|
|
7084
7114
|
|
|
7085
7115
|
// `Date.prototype.toString` method
|
|
7086
7116
|
// https://tc39.es/ecma262/#sec-date.prototype.tostring
|
|
7087
|
-
if (String(new Date(NaN))
|
|
7117
|
+
if (String(new Date(NaN)) !== INVALID_DATE) {
|
|
7088
7118
|
defineBuiltIn(DatePrototype, TO_STRING, function toString() {
|
|
7089
7119
|
var value = thisTimeValue(this);
|
|
7090
7120
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
@@ -7094,7 +7124,7 @@ if (String(new Date(NaN)) != INVALID_DATE) {
|
|
|
7094
7124
|
|
|
7095
7125
|
|
|
7096
7126
|
/***/ }),
|
|
7097
|
-
/*
|
|
7127
|
+
/* 234 */
|
|
7098
7128
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
7099
7129
|
|
|
7100
7130
|
"use strict";
|
|
@@ -7144,14 +7174,14 @@ $({ global: true }, {
|
|
|
7144
7174
|
|
|
7145
7175
|
|
|
7146
7176
|
/***/ }),
|
|
7147
|
-
/*
|
|
7177
|
+
/* 235 */
|
|
7148
7178
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
7149
7179
|
|
|
7150
7180
|
"use strict";
|
|
7151
7181
|
|
|
7152
7182
|
// TODO: Remove from `core-js@4`
|
|
7153
7183
|
var $ = __webpack_require__(3);
|
|
7154
|
-
var bind = __webpack_require__(
|
|
7184
|
+
var bind = __webpack_require__(236);
|
|
7155
7185
|
|
|
7156
7186
|
// `Function.prototype.bind` method
|
|
7157
7187
|
// https://tc39.es/ecma262/#sec-function.prototype.bind
|
|
@@ -7162,7 +7192,7 @@ $({ target: 'Function', proto: true, forced: Function.bind !== bind }, {
|
|
|
7162
7192
|
|
|
7163
7193
|
|
|
7164
7194
|
/***/ }),
|
|
7165
|
-
/*
|
|
7195
|
+
/* 236 */
|
|
7166
7196
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
7167
7197
|
|
|
7168
7198
|
"use strict";
|
|
@@ -7181,7 +7211,9 @@ var factories = {};
|
|
|
7181
7211
|
|
|
7182
7212
|
var construct = function (C, argsLength, args) {
|
|
7183
7213
|
if (!hasOwn(factories, argsLength)) {
|
|
7184
|
-
|
|
7214
|
+
var list = [];
|
|
7215
|
+
var i = 0;
|
|
7216
|
+
for (; i < argsLength; i++) list[i] = 'a[' + i + ']';
|
|
7185
7217
|
factories[argsLength] = $Function('C,a', 'return new C(' + join(list, ',') + ')');
|
|
7186
7218
|
} return factories[argsLength](C, args);
|
|
7187
7219
|
};
|
|
@@ -7203,7 +7235,7 @@ module.exports = NATIVE_BIND ? $Function.bind : function bind(that /* , ...args
|
|
|
7203
7235
|
|
|
7204
7236
|
|
|
7205
7237
|
/***/ }),
|
|
7206
|
-
/*
|
|
7238
|
+
/* 237 */
|
|
7207
7239
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
7208
7240
|
|
|
7209
7241
|
"use strict";
|
|
@@ -7233,7 +7265,7 @@ if (!(HAS_INSTANCE in FunctionPrototype)) {
|
|
|
7233
7265
|
|
|
7234
7266
|
|
|
7235
7267
|
/***/ }),
|
|
7236
|
-
/*
|
|
7268
|
+
/* 238 */
|
|
7237
7269
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
7238
7270
|
|
|
7239
7271
|
"use strict";
|
|
@@ -7266,7 +7298,7 @@ if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {
|
|
|
7266
7298
|
|
|
7267
7299
|
|
|
7268
7300
|
/***/ }),
|
|
7269
|
-
/*
|
|
7301
|
+
/* 239 */
|
|
7270
7302
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
7271
7303
|
|
|
7272
7304
|
"use strict";
|
|
@@ -7282,7 +7314,7 @@ $({ global: true, forced: global.globalThis !== global }, {
|
|
|
7282
7314
|
|
|
7283
7315
|
|
|
7284
7316
|
/***/ }),
|
|
7285
|
-
/*
|
|
7317
|
+
/* 240 */
|
|
7286
7318
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
7287
7319
|
|
|
7288
7320
|
"use strict";
|
|
@@ -7296,23 +7328,23 @@ setToStringTag(global.JSON, 'JSON', true);
|
|
|
7296
7328
|
|
|
7297
7329
|
|
|
7298
7330
|
/***/ }),
|
|
7299
|
-
/*
|
|
7331
|
+
/* 241 */
|
|
7300
7332
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
7301
7333
|
|
|
7302
7334
|
"use strict";
|
|
7303
7335
|
|
|
7304
7336
|
// TODO: Remove this module from `core-js@4` since it's replaced to module below
|
|
7305
|
-
__webpack_require__(
|
|
7337
|
+
__webpack_require__(242);
|
|
7306
7338
|
|
|
7307
7339
|
|
|
7308
7340
|
/***/ }),
|
|
7309
|
-
/*
|
|
7341
|
+
/* 242 */
|
|
7310
7342
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
7311
7343
|
|
|
7312
7344
|
"use strict";
|
|
7313
7345
|
|
|
7314
|
-
var collection = __webpack_require__(
|
|
7315
|
-
var collectionStrong = __webpack_require__(
|
|
7346
|
+
var collection = __webpack_require__(243);
|
|
7347
|
+
var collectionStrong = __webpack_require__(248);
|
|
7316
7348
|
|
|
7317
7349
|
// `Map` constructor
|
|
7318
7350
|
// https://tc39.es/ecma262/#sec-map-objects
|
|
@@ -7322,7 +7354,7 @@ collection('Map', function (init) {
|
|
|
7322
7354
|
|
|
7323
7355
|
|
|
7324
7356
|
/***/ }),
|
|
7325
|
-
/*
|
|
7357
|
+
/* 243 */
|
|
7326
7358
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
7327
7359
|
|
|
7328
7360
|
"use strict";
|
|
@@ -7332,7 +7364,7 @@ var global = __webpack_require__(4);
|
|
|
7332
7364
|
var uncurryThis = __webpack_require__(14);
|
|
7333
7365
|
var isForced = __webpack_require__(68);
|
|
7334
7366
|
var defineBuiltIn = __webpack_require__(48);
|
|
7335
|
-
var InternalMetadataModule = __webpack_require__(
|
|
7367
|
+
var InternalMetadataModule = __webpack_require__(244);
|
|
7336
7368
|
var iterate = __webpack_require__(132);
|
|
7337
7369
|
var anInstance = __webpack_require__(211);
|
|
7338
7370
|
var isCallable = __webpack_require__(21);
|
|
@@ -7355,14 +7387,14 @@ module.exports = function (CONSTRUCTOR_NAME, wrapper, common) {
|
|
|
7355
7387
|
var fixMethod = function (KEY) {
|
|
7356
7388
|
var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);
|
|
7357
7389
|
defineBuiltIn(NativePrototype, KEY,
|
|
7358
|
-
KEY
|
|
7390
|
+
KEY === 'add' ? function add(value) {
|
|
7359
7391
|
uncurriedNativeMethod(this, value === 0 ? 0 : value);
|
|
7360
7392
|
return this;
|
|
7361
|
-
} : KEY
|
|
7393
|
+
} : KEY === 'delete' ? function (key) {
|
|
7362
7394
|
return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
7363
|
-
} : KEY
|
|
7395
|
+
} : KEY === 'get' ? function get(key) {
|
|
7364
7396
|
return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
7365
|
-
} : KEY
|
|
7397
|
+
} : KEY === 'has' ? function has(key) {
|
|
7366
7398
|
return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
7367
7399
|
} : function set(key, value) {
|
|
7368
7400
|
uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
|
|
@@ -7385,7 +7417,7 @@ module.exports = function (CONSTRUCTOR_NAME, wrapper, common) {
|
|
|
7385
7417
|
} else if (isForced(CONSTRUCTOR_NAME, true)) {
|
|
7386
7418
|
var instance = new Constructor();
|
|
7387
7419
|
// early implementations not supports chaining
|
|
7388
|
-
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1)
|
|
7420
|
+
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) !== instance;
|
|
7389
7421
|
// V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
|
|
7390
7422
|
var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });
|
|
7391
7423
|
// most early implementations doesn't supports iterables, most modern - not close it correctly
|
|
@@ -7424,7 +7456,7 @@ module.exports = function (CONSTRUCTOR_NAME, wrapper, common) {
|
|
|
7424
7456
|
}
|
|
7425
7457
|
|
|
7426
7458
|
exported[CONSTRUCTOR_NAME] = Constructor;
|
|
7427
|
-
$({ global: true, constructor: true, forced: Constructor
|
|
7459
|
+
$({ global: true, constructor: true, forced: Constructor !== NativeConstructor }, exported);
|
|
7428
7460
|
|
|
7429
7461
|
setToStringTag(Constructor, CONSTRUCTOR_NAME);
|
|
7430
7462
|
|
|
@@ -7435,7 +7467,7 @@ module.exports = function (CONSTRUCTOR_NAME, wrapper, common) {
|
|
|
7435
7467
|
|
|
7436
7468
|
|
|
7437
7469
|
/***/ }),
|
|
7438
|
-
/*
|
|
7470
|
+
/* 244 */
|
|
7439
7471
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
7440
7472
|
|
|
7441
7473
|
"use strict";
|
|
@@ -7448,9 +7480,9 @@ var hasOwn = __webpack_require__(39);
|
|
|
7448
7480
|
var defineProperty = (__webpack_require__(45).f);
|
|
7449
7481
|
var getOwnPropertyNamesModule = __webpack_require__(58);
|
|
7450
7482
|
var getOwnPropertyNamesExternalModule = __webpack_require__(76);
|
|
7451
|
-
var isExtensible = __webpack_require__(
|
|
7483
|
+
var isExtensible = __webpack_require__(245);
|
|
7452
7484
|
var uid = __webpack_require__(41);
|
|
7453
|
-
var FREEZING = __webpack_require__(
|
|
7485
|
+
var FREEZING = __webpack_require__(247);
|
|
7454
7486
|
|
|
7455
7487
|
var REQUIRED = false;
|
|
7456
7488
|
var METADATA = uid('meta');
|
|
@@ -7532,7 +7564,7 @@ hiddenKeys[METADATA] = true;
|
|
|
7532
7564
|
|
|
7533
7565
|
|
|
7534
7566
|
/***/ }),
|
|
7535
|
-
/*
|
|
7567
|
+
/* 245 */
|
|
7536
7568
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
7537
7569
|
|
|
7538
7570
|
"use strict";
|
|
@@ -7540,7 +7572,7 @@ hiddenKeys[METADATA] = true;
|
|
|
7540
7572
|
var fails = __webpack_require__(7);
|
|
7541
7573
|
var isObject = __webpack_require__(20);
|
|
7542
7574
|
var classof = __webpack_require__(15);
|
|
7543
|
-
var ARRAY_BUFFER_NON_EXTENSIBLE = __webpack_require__(
|
|
7575
|
+
var ARRAY_BUFFER_NON_EXTENSIBLE = __webpack_require__(246);
|
|
7544
7576
|
|
|
7545
7577
|
// eslint-disable-next-line es/no-object-isextensible -- safe
|
|
7546
7578
|
var $isExtensible = Object.isExtensible;
|
|
@@ -7550,13 +7582,13 @@ var FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });
|
|
|
7550
7582
|
// https://tc39.es/ecma262/#sec-object.isextensible
|
|
7551
7583
|
module.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {
|
|
7552
7584
|
if (!isObject(it)) return false;
|
|
7553
|
-
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it)
|
|
7585
|
+
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) === 'ArrayBuffer') return false;
|
|
7554
7586
|
return $isExtensible ? $isExtensible(it) : true;
|
|
7555
7587
|
} : $isExtensible;
|
|
7556
7588
|
|
|
7557
7589
|
|
|
7558
7590
|
/***/ }),
|
|
7559
|
-
/*
|
|
7591
|
+
/* 246 */
|
|
7560
7592
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
7561
7593
|
|
|
7562
7594
|
"use strict";
|
|
@@ -7574,7 +7606,7 @@ module.exports = fails(function () {
|
|
|
7574
7606
|
|
|
7575
7607
|
|
|
7576
7608
|
/***/ }),
|
|
7577
|
-
/*
|
|
7609
|
+
/* 247 */
|
|
7578
7610
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
7579
7611
|
|
|
7580
7612
|
"use strict";
|
|
@@ -7588,7 +7620,7 @@ module.exports = !fails(function () {
|
|
|
7588
7620
|
|
|
7589
7621
|
|
|
7590
7622
|
/***/ }),
|
|
7591
|
-
/*
|
|
7623
|
+
/* 248 */
|
|
7592
7624
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
7593
7625
|
|
|
7594
7626
|
"use strict";
|
|
@@ -7604,7 +7636,7 @@ var defineIterator = __webpack_require__(170);
|
|
|
7604
7636
|
var createIterResultObject = __webpack_require__(173);
|
|
7605
7637
|
var setSpecies = __webpack_require__(194);
|
|
7606
7638
|
var DESCRIPTORS = __webpack_require__(6);
|
|
7607
|
-
var fastKey = (__webpack_require__(
|
|
7639
|
+
var fastKey = (__webpack_require__(244).fastKey);
|
|
7608
7640
|
var InternalStateModule = __webpack_require__(52);
|
|
7609
7641
|
|
|
7610
7642
|
var setInternalState = InternalStateModule.set;
|
|
@@ -7663,7 +7695,7 @@ module.exports = {
|
|
|
7663
7695
|
if (index !== 'F') return state.index[index];
|
|
7664
7696
|
// frozen object case
|
|
7665
7697
|
for (entry = state.first; entry; entry = entry.next) {
|
|
7666
|
-
if (entry.key
|
|
7698
|
+
if (entry.key === key) return entry;
|
|
7667
7699
|
}
|
|
7668
7700
|
};
|
|
7669
7701
|
|
|
@@ -7700,8 +7732,8 @@ module.exports = {
|
|
|
7700
7732
|
entry.removed = true;
|
|
7701
7733
|
if (prev) prev.next = next;
|
|
7702
7734
|
if (next) next.previous = prev;
|
|
7703
|
-
if (state.first
|
|
7704
|
-
if (state.last
|
|
7735
|
+
if (state.first === entry) state.first = next;
|
|
7736
|
+
if (state.last === entry) state.last = prev;
|
|
7705
7737
|
if (DESCRIPTORS) state.size--;
|
|
7706
7738
|
else that.size--;
|
|
7707
7739
|
} return !!entry;
|
|
@@ -7788,8 +7820,8 @@ module.exports = {
|
|
|
7788
7820
|
return createIterResultObject(undefined, true);
|
|
7789
7821
|
}
|
|
7790
7822
|
// return step by kind
|
|
7791
|
-
if (kind
|
|
7792
|
-
if (kind
|
|
7823
|
+
if (kind === 'keys') return createIterResultObject(entry.key, false);
|
|
7824
|
+
if (kind === 'values') return createIterResultObject(entry.value, false);
|
|
7793
7825
|
return createIterResultObject([entry.key, entry.value], false);
|
|
7794
7826
|
}, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
|
|
7795
7827
|
|
|
@@ -7802,13 +7834,13 @@ module.exports = {
|
|
|
7802
7834
|
|
|
7803
7835
|
|
|
7804
7836
|
/***/ }),
|
|
7805
|
-
/*
|
|
7837
|
+
/* 249 */
|
|
7806
7838
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
7807
7839
|
|
|
7808
7840
|
"use strict";
|
|
7809
7841
|
|
|
7810
7842
|
var $ = __webpack_require__(3);
|
|
7811
|
-
var log1p = __webpack_require__(
|
|
7843
|
+
var log1p = __webpack_require__(250);
|
|
7812
7844
|
|
|
7813
7845
|
// eslint-disable-next-line es/no-math-acosh -- required for testing
|
|
7814
7846
|
var $acosh = Math.acosh;
|
|
@@ -7818,9 +7850,9 @@ var LN2 = Math.LN2;
|
|
|
7818
7850
|
|
|
7819
7851
|
var FORCED = !$acosh
|
|
7820
7852
|
// V8 bug: https://code.google.com/p/v8/issues/detail?id=3509
|
|
7821
|
-
|| Math.floor($acosh(Number.MAX_VALUE))
|
|
7853
|
+
|| Math.floor($acosh(Number.MAX_VALUE)) !== 710
|
|
7822
7854
|
// Tor Browser bug: Math.acosh(Infinity) -> NaN
|
|
7823
|
-
|| $acosh(Infinity)
|
|
7855
|
+
|| $acosh(Infinity) !== Infinity;
|
|
7824
7856
|
|
|
7825
7857
|
// `Math.acosh` method
|
|
7826
7858
|
// https://tc39.es/ecma262/#sec-math.acosh
|
|
@@ -7835,7 +7867,7 @@ $({ target: 'Math', stat: true, forced: FORCED }, {
|
|
|
7835
7867
|
|
|
7836
7868
|
|
|
7837
7869
|
/***/ }),
|
|
7838
|
-
/*
|
|
7870
|
+
/* 250 */
|
|
7839
7871
|
/***/ (function(module) {
|
|
7840
7872
|
|
|
7841
7873
|
"use strict";
|
|
@@ -7852,7 +7884,7 @@ module.exports = Math.log1p || function log1p(x) {
|
|
|
7852
7884
|
|
|
7853
7885
|
|
|
7854
7886
|
/***/ }),
|
|
7855
|
-
/*
|
|
7887
|
+
/* 251 */
|
|
7856
7888
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
7857
7889
|
|
|
7858
7890
|
"use strict";
|
|
@@ -7866,7 +7898,7 @@ var sqrt = Math.sqrt;
|
|
|
7866
7898
|
|
|
7867
7899
|
function asinh(x) {
|
|
7868
7900
|
var n = +x;
|
|
7869
|
-
return !isFinite(n) || n
|
|
7901
|
+
return !isFinite(n) || n === 0 ? n : n < 0 ? -asinh(-n) : log(n + sqrt(n * n + 1));
|
|
7870
7902
|
}
|
|
7871
7903
|
|
|
7872
7904
|
var FORCED = !($asinh && 1 / $asinh(0) > 0);
|
|
@@ -7880,7 +7912,7 @@ $({ target: 'Math', stat: true, forced: FORCED }, {
|
|
|
7880
7912
|
|
|
7881
7913
|
|
|
7882
7914
|
/***/ }),
|
|
7883
|
-
/*
|
|
7915
|
+
/* 252 */
|
|
7884
7916
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
7885
7917
|
|
|
7886
7918
|
"use strict";
|
|
@@ -7899,19 +7931,19 @@ var FORCED = !($atanh && 1 / $atanh(-0) < 0);
|
|
|
7899
7931
|
$({ target: 'Math', stat: true, forced: FORCED }, {
|
|
7900
7932
|
atanh: function atanh(x) {
|
|
7901
7933
|
var n = +x;
|
|
7902
|
-
return n
|
|
7934
|
+
return n === 0 ? n : log((1 + n) / (1 - n)) / 2;
|
|
7903
7935
|
}
|
|
7904
7936
|
});
|
|
7905
7937
|
|
|
7906
7938
|
|
|
7907
7939
|
/***/ }),
|
|
7908
|
-
/*
|
|
7940
|
+
/* 253 */
|
|
7909
7941
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
7910
7942
|
|
|
7911
7943
|
"use strict";
|
|
7912
7944
|
|
|
7913
7945
|
var $ = __webpack_require__(3);
|
|
7914
|
-
var sign = __webpack_require__(
|
|
7946
|
+
var sign = __webpack_require__(214);
|
|
7915
7947
|
|
|
7916
7948
|
var abs = Math.abs;
|
|
7917
7949
|
var pow = Math.pow;
|
|
@@ -7926,22 +7958,6 @@ $({ target: 'Math', stat: true }, {
|
|
|
7926
7958
|
});
|
|
7927
7959
|
|
|
7928
7960
|
|
|
7929
|
-
/***/ }),
|
|
7930
|
-
/* 253 */
|
|
7931
|
-
/***/ (function(module) {
|
|
7932
|
-
|
|
7933
|
-
"use strict";
|
|
7934
|
-
|
|
7935
|
-
// `Math.sign` method implementation
|
|
7936
|
-
// https://tc39.es/ecma262/#sec-math.sign
|
|
7937
|
-
// eslint-disable-next-line es/no-math-sign -- safe
|
|
7938
|
-
module.exports = Math.sign || function sign(x) {
|
|
7939
|
-
var n = +x;
|
|
7940
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
7941
|
-
return n == 0 || n != n ? n : n < 0 ? -1 : 1;
|
|
7942
|
-
};
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
7961
|
/***/ }),
|
|
7946
7962
|
/* 254 */
|
|
7947
7963
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -8006,10 +8022,10 @@ module.exports = (!$expm1
|
|
|
8006
8022
|
// Old FF bug
|
|
8007
8023
|
|| $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168
|
|
8008
8024
|
// Tor Browser bug
|
|
8009
|
-
|| $expm1(-2e-17)
|
|
8025
|
+
|| $expm1(-2e-17) !== -2e-17
|
|
8010
8026
|
) ? function expm1(x) {
|
|
8011
8027
|
var n = +x;
|
|
8012
|
-
return n
|
|
8028
|
+
return n === 0 ? n : n > -1e-6 && n < 1e-6 ? n + n * n / 2 : exp(n) - 1;
|
|
8013
8029
|
} : $expm1;
|
|
8014
8030
|
|
|
8015
8031
|
|
|
@@ -8025,7 +8041,7 @@ var expm1 = __webpack_require__(256);
|
|
|
8025
8041
|
// `Math.expm1` method
|
|
8026
8042
|
// https://tc39.es/ecma262/#sec-math.expm1
|
|
8027
8043
|
// eslint-disable-next-line es/no-math-expm1 -- required for testing
|
|
8028
|
-
$({ target: 'Math', stat: true, forced: expm1
|
|
8044
|
+
$({ target: 'Math', stat: true, forced: expm1 !== Math.expm1 }, { expm1: expm1 });
|
|
8029
8045
|
|
|
8030
8046
|
|
|
8031
8047
|
/***/ }),
|
|
@@ -8048,7 +8064,7 @@ $({ target: 'Math', stat: true }, { fround: fround });
|
|
|
8048
8064
|
|
|
8049
8065
|
"use strict";
|
|
8050
8066
|
|
|
8051
|
-
var sign = __webpack_require__(
|
|
8067
|
+
var sign = __webpack_require__(214);
|
|
8052
8068
|
|
|
8053
8069
|
var abs = Math.abs;
|
|
8054
8070
|
var pow = Math.pow;
|
|
@@ -8073,7 +8089,7 @@ module.exports = Math.fround || function fround(x) {
|
|
|
8073
8089
|
a = (1 + EPSILON32 / EPSILON) * $abs;
|
|
8074
8090
|
result = a - (a - $abs);
|
|
8075
8091
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
8076
|
-
if (result > MAX32 || result
|
|
8092
|
+
if (result > MAX32 || result !== result) return $sign * Infinity;
|
|
8077
8093
|
return $sign * result;
|
|
8078
8094
|
};
|
|
8079
8095
|
|
|
@@ -8134,7 +8150,7 @@ var fails = __webpack_require__(7);
|
|
|
8134
8150
|
var $imul = Math.imul;
|
|
8135
8151
|
|
|
8136
8152
|
var FORCED = fails(function () {
|
|
8137
|
-
return $imul(0xFFFFFFFF, 5)
|
|
8153
|
+
return $imul(0xFFFFFFFF, 5) !== -5 || $imul.length !== 2;
|
|
8138
8154
|
});
|
|
8139
8155
|
|
|
8140
8156
|
// `Math.imul` method
|
|
@@ -8190,7 +8206,7 @@ module.exports = Math.log10 || function log10(x) {
|
|
|
8190
8206
|
"use strict";
|
|
8191
8207
|
|
|
8192
8208
|
var $ = __webpack_require__(3);
|
|
8193
|
-
var log1p = __webpack_require__(
|
|
8209
|
+
var log1p = __webpack_require__(250);
|
|
8194
8210
|
|
|
8195
8211
|
// `Math.log1p` method
|
|
8196
8212
|
// https://tc39.es/ecma262/#sec-math.log1p
|
|
@@ -8224,7 +8240,7 @@ $({ target: 'Math', stat: true }, {
|
|
|
8224
8240
|
"use strict";
|
|
8225
8241
|
|
|
8226
8242
|
var $ = __webpack_require__(3);
|
|
8227
|
-
var sign = __webpack_require__(
|
|
8243
|
+
var sign = __webpack_require__(214);
|
|
8228
8244
|
|
|
8229
8245
|
// `Math.sign` method
|
|
8230
8246
|
// https://tc39.es/ecma262/#sec-math.sign
|
|
@@ -8249,7 +8265,7 @@ var E = Math.E;
|
|
|
8249
8265
|
|
|
8250
8266
|
var FORCED = fails(function () {
|
|
8251
8267
|
// eslint-disable-next-line es/no-math-sinh -- required for testing
|
|
8252
|
-
return Math.sinh(-2e-17)
|
|
8268
|
+
return Math.sinh(-2e-17) !== -2e-17;
|
|
8253
8269
|
});
|
|
8254
8270
|
|
|
8255
8271
|
// `Math.sinh` method
|
|
@@ -8281,7 +8297,7 @@ $({ target: 'Math', stat: true }, {
|
|
|
8281
8297
|
var n = +x;
|
|
8282
8298
|
var a = expm1(n);
|
|
8283
8299
|
var b = expm1(-n);
|
|
8284
|
-
return a
|
|
8300
|
+
return a === Infinity ? 1 : b === Infinity ? -1 : (a - b) / (exp(n) + exp(-n));
|
|
8285
8301
|
}
|
|
8286
8302
|
});
|
|
8287
8303
|
|
|
@@ -8582,7 +8598,7 @@ var $ = __webpack_require__(3);
|
|
|
8582
8598
|
$({ target: 'Number', stat: true }, {
|
|
8583
8599
|
isNaN: function isNaN(number) {
|
|
8584
8600
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
8585
|
-
return number
|
|
8601
|
+
return number !== number;
|
|
8586
8602
|
}
|
|
8587
8603
|
});
|
|
8588
8604
|
|
|
@@ -8649,7 +8665,7 @@ var parseFloat = __webpack_require__(285);
|
|
|
8649
8665
|
// `Number.parseFloat` method
|
|
8650
8666
|
// https://tc39.es/ecma262/#sec-number.parseFloat
|
|
8651
8667
|
// eslint-disable-next-line es/no-number-parsefloat -- required for testing
|
|
8652
|
-
$({ target: 'Number', stat: true, forced: Number.parseFloat
|
|
8668
|
+
$({ target: 'Number', stat: true, forced: Number.parseFloat !== parseFloat }, {
|
|
8653
8669
|
parseFloat: parseFloat
|
|
8654
8670
|
});
|
|
8655
8671
|
|
|
@@ -8680,7 +8696,7 @@ var FORCED = 1 / $parseFloat(whitespaces + '-0') !== -Infinity
|
|
|
8680
8696
|
module.exports = FORCED ? function parseFloat(string) {
|
|
8681
8697
|
var trimmedString = trim(toString(string));
|
|
8682
8698
|
var result = $parseFloat(trimmedString);
|
|
8683
|
-
return result === 0 && charAt(trimmedString, 0)
|
|
8699
|
+
return result === 0 && charAt(trimmedString, 0) === '-' ? -0 : result;
|
|
8684
8700
|
} : $parseFloat;
|
|
8685
8701
|
|
|
8686
8702
|
|
|
@@ -8696,7 +8712,7 @@ var parseInt = __webpack_require__(287);
|
|
|
8696
8712
|
// `Number.parseInt` method
|
|
8697
8713
|
// https://tc39.es/ecma262/#sec-number.parseint
|
|
8698
8714
|
// eslint-disable-next-line es/no-number-parseint -- required for testing
|
|
8699
|
-
$({ target: 'Number', stat: true, forced: Number.parseInt
|
|
8715
|
+
$({ target: 'Number', stat: true, forced: Number.parseInt !== parseInt }, {
|
|
8700
8716
|
parseInt: parseInt
|
|
8701
8717
|
});
|
|
8702
8718
|
|
|
@@ -8741,7 +8757,7 @@ var $ = __webpack_require__(3);
|
|
|
8741
8757
|
var uncurryThis = __webpack_require__(14);
|
|
8742
8758
|
var toIntegerOrInfinity = __webpack_require__(62);
|
|
8743
8759
|
var thisNumberValue = __webpack_require__(272);
|
|
8744
|
-
var $repeat = __webpack_require__(
|
|
8760
|
+
var $repeat = __webpack_require__(229);
|
|
8745
8761
|
var log10 = __webpack_require__(263);
|
|
8746
8762
|
var fails = __webpack_require__(7);
|
|
8747
8763
|
|
|
@@ -8850,7 +8866,7 @@ var $ = __webpack_require__(3);
|
|
|
8850
8866
|
var uncurryThis = __webpack_require__(14);
|
|
8851
8867
|
var toIntegerOrInfinity = __webpack_require__(62);
|
|
8852
8868
|
var thisNumberValue = __webpack_require__(272);
|
|
8853
|
-
var $repeat = __webpack_require__(
|
|
8869
|
+
var $repeat = __webpack_require__(229);
|
|
8854
8870
|
var fails = __webpack_require__(7);
|
|
8855
8871
|
|
|
8856
8872
|
var $RangeError = RangeError;
|
|
@@ -8932,7 +8948,7 @@ $({ target: 'Number', proto: true, forced: FORCED }, {
|
|
|
8932
8948
|
// TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation
|
|
8933
8949
|
if (fractDigits < 0 || fractDigits > 20) throw $RangeError('Incorrect fraction digits');
|
|
8934
8950
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
8935
|
-
if (number
|
|
8951
|
+
if (number !== number) return 'NaN';
|
|
8936
8952
|
if (number <= -1e21 || number >= 1e21) return $String(number);
|
|
8937
8953
|
if (number < 0) {
|
|
8938
8954
|
sign = '-';
|
|
@@ -9066,11 +9082,11 @@ module.exports = !$assign || fails(function () {
|
|
|
9066
9082
|
var A = {};
|
|
9067
9083
|
var B = {};
|
|
9068
9084
|
// eslint-disable-next-line es/no-symbol -- safe
|
|
9069
|
-
var symbol = Symbol();
|
|
9085
|
+
var symbol = Symbol('assign detection');
|
|
9070
9086
|
var alphabet = 'abcdefghijklmnopqrst';
|
|
9071
9087
|
A[symbol] = 7;
|
|
9072
9088
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
9073
|
-
return $assign({}, A)[symbol]
|
|
9089
|
+
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
9074
9090
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
9075
9091
|
var T = toObject(target);
|
|
9076
9092
|
var argumentsLength = arguments.length;
|
|
@@ -9298,10 +9314,10 @@ module.exports = {
|
|
|
9298
9314
|
"use strict";
|
|
9299
9315
|
|
|
9300
9316
|
var $ = __webpack_require__(3);
|
|
9301
|
-
var FREEZING = __webpack_require__(
|
|
9317
|
+
var FREEZING = __webpack_require__(247);
|
|
9302
9318
|
var fails = __webpack_require__(7);
|
|
9303
9319
|
var isObject = __webpack_require__(20);
|
|
9304
|
-
var onFreeze = (__webpack_require__(
|
|
9320
|
+
var onFreeze = (__webpack_require__(244).onFreeze);
|
|
9305
9321
|
|
|
9306
9322
|
// eslint-disable-next-line es/no-object-freeze -- safe
|
|
9307
9323
|
var $freeze = Object.freeze;
|
|
@@ -9481,7 +9497,7 @@ $({ target: 'Object', stat: true }, {
|
|
|
9481
9497
|
// eslint-disable-next-line es/no-object-is -- safe
|
|
9482
9498
|
module.exports = Object.is || function is(x, y) {
|
|
9483
9499
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
9484
|
-
return x === y ? x !== 0 || 1 / x === 1 / y : x
|
|
9500
|
+
return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
|
|
9485
9501
|
};
|
|
9486
9502
|
|
|
9487
9503
|
|
|
@@ -9492,7 +9508,7 @@ module.exports = Object.is || function is(x, y) {
|
|
|
9492
9508
|
"use strict";
|
|
9493
9509
|
|
|
9494
9510
|
var $ = __webpack_require__(3);
|
|
9495
|
-
var $isExtensible = __webpack_require__(
|
|
9511
|
+
var $isExtensible = __webpack_require__(245);
|
|
9496
9512
|
|
|
9497
9513
|
// `Object.isExtensible` method
|
|
9498
9514
|
// https://tc39.es/ecma262/#sec-object.isextensible
|
|
@@ -9512,7 +9528,7 @@ var $ = __webpack_require__(3);
|
|
|
9512
9528
|
var fails = __webpack_require__(7);
|
|
9513
9529
|
var isObject = __webpack_require__(20);
|
|
9514
9530
|
var classof = __webpack_require__(15);
|
|
9515
|
-
var ARRAY_BUFFER_NON_EXTENSIBLE = __webpack_require__(
|
|
9531
|
+
var ARRAY_BUFFER_NON_EXTENSIBLE = __webpack_require__(246);
|
|
9516
9532
|
|
|
9517
9533
|
// eslint-disable-next-line es/no-object-isfrozen -- safe
|
|
9518
9534
|
var $isFrozen = Object.isFrozen;
|
|
@@ -9524,7 +9540,7 @@ var FORCED = ARRAY_BUFFER_NON_EXTENSIBLE || fails(function () { $isFrozen(1); })
|
|
|
9524
9540
|
$({ target: 'Object', stat: true, forced: FORCED }, {
|
|
9525
9541
|
isFrozen: function isFrozen(it) {
|
|
9526
9542
|
if (!isObject(it)) return true;
|
|
9527
|
-
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it)
|
|
9543
|
+
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) === 'ArrayBuffer') return true;
|
|
9528
9544
|
return $isFrozen ? $isFrozen(it) : false;
|
|
9529
9545
|
}
|
|
9530
9546
|
});
|
|
@@ -9540,7 +9556,7 @@ var $ = __webpack_require__(3);
|
|
|
9540
9556
|
var fails = __webpack_require__(7);
|
|
9541
9557
|
var isObject = __webpack_require__(20);
|
|
9542
9558
|
var classof = __webpack_require__(15);
|
|
9543
|
-
var ARRAY_BUFFER_NON_EXTENSIBLE = __webpack_require__(
|
|
9559
|
+
var ARRAY_BUFFER_NON_EXTENSIBLE = __webpack_require__(246);
|
|
9544
9560
|
|
|
9545
9561
|
// eslint-disable-next-line es/no-object-issealed -- safe
|
|
9546
9562
|
var $isSealed = Object.isSealed;
|
|
@@ -9552,7 +9568,7 @@ var FORCED = ARRAY_BUFFER_NON_EXTENSIBLE || fails(function () { $isSealed(1); })
|
|
|
9552
9568
|
$({ target: 'Object', stat: true, forced: FORCED }, {
|
|
9553
9569
|
isSealed: function isSealed(it) {
|
|
9554
9570
|
if (!isObject(it)) return true;
|
|
9555
|
-
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it)
|
|
9571
|
+
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) === 'ArrayBuffer') return true;
|
|
9556
9572
|
return $isSealed ? $isSealed(it) : false;
|
|
9557
9573
|
}
|
|
9558
9574
|
});
|
|
@@ -9648,8 +9664,8 @@ if (DESCRIPTORS) {
|
|
|
9648
9664
|
|
|
9649
9665
|
var $ = __webpack_require__(3);
|
|
9650
9666
|
var isObject = __webpack_require__(20);
|
|
9651
|
-
var onFreeze = (__webpack_require__(
|
|
9652
|
-
var FREEZING = __webpack_require__(
|
|
9667
|
+
var onFreeze = (__webpack_require__(244).onFreeze);
|
|
9668
|
+
var FREEZING = __webpack_require__(247);
|
|
9653
9669
|
var fails = __webpack_require__(7);
|
|
9654
9670
|
|
|
9655
9671
|
// eslint-disable-next-line es/no-object-preventextensions -- safe
|
|
@@ -9709,8 +9725,8 @@ if (DESCRIPTORS && getPrototypeOf && setPrototypeOf && !(PROTO in ObjectPrototyp
|
|
|
9709
9725
|
|
|
9710
9726
|
var $ = __webpack_require__(3);
|
|
9711
9727
|
var isObject = __webpack_require__(20);
|
|
9712
|
-
var onFreeze = (__webpack_require__(
|
|
9713
|
-
var FREEZING = __webpack_require__(
|
|
9728
|
+
var onFreeze = (__webpack_require__(244).onFreeze);
|
|
9729
|
+
var FREEZING = __webpack_require__(247);
|
|
9714
9730
|
var fails = __webpack_require__(7);
|
|
9715
9731
|
|
|
9716
9732
|
// eslint-disable-next-line es/no-object-seal -- safe
|
|
@@ -9804,7 +9820,7 @@ var $parseFloat = __webpack_require__(285);
|
|
|
9804
9820
|
|
|
9805
9821
|
// `parseFloat` method
|
|
9806
9822
|
// https://tc39.es/ecma262/#sec-parsefloat-string
|
|
9807
|
-
$({ global: true, forced: parseFloat
|
|
9823
|
+
$({ global: true, forced: parseFloat !== $parseFloat }, {
|
|
9808
9824
|
parseFloat: $parseFloat
|
|
9809
9825
|
});
|
|
9810
9826
|
|
|
@@ -9820,7 +9836,7 @@ var $parseInt = __webpack_require__(287);
|
|
|
9820
9836
|
|
|
9821
9837
|
// `parseInt` method
|
|
9822
9838
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
9823
|
-
$({ global: true, forced: parseInt
|
|
9839
|
+
$({ global: true, forced: parseInt !== $parseInt }, {
|
|
9824
9840
|
parseInt: $parseInt
|
|
9825
9841
|
});
|
|
9826
9842
|
|
|
@@ -9859,7 +9875,7 @@ var aCallable = __webpack_require__(31);
|
|
|
9859
9875
|
var isCallable = __webpack_require__(21);
|
|
9860
9876
|
var isObject = __webpack_require__(20);
|
|
9861
9877
|
var anInstance = __webpack_require__(211);
|
|
9862
|
-
var speciesConstructor = __webpack_require__(
|
|
9878
|
+
var speciesConstructor = __webpack_require__(218);
|
|
9863
9879
|
var task = (__webpack_require__(327).set);
|
|
9864
9880
|
var microtask = __webpack_require__(330);
|
|
9865
9881
|
var hostReportErrors = __webpack_require__(334);
|
|
@@ -9904,7 +9920,7 @@ var isThenable = function (it) {
|
|
|
9904
9920
|
|
|
9905
9921
|
var callReaction = function (reaction, state) {
|
|
9906
9922
|
var value = state.value;
|
|
9907
|
-
var ok = state.state
|
|
9923
|
+
var ok = state.state === FULFILLED;
|
|
9908
9924
|
var handler = ok ? reaction.ok : reaction.fail;
|
|
9909
9925
|
var resolve = reaction.resolve;
|
|
9910
9926
|
var reject = reaction.reject;
|
|
@@ -10080,7 +10096,7 @@ if (FORCED_PROMISE_CONSTRUCTOR) {
|
|
|
10080
10096
|
reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
|
|
10081
10097
|
reaction.fail = isCallable(onRejected) && onRejected;
|
|
10082
10098
|
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
10083
|
-
if (state.state
|
|
10099
|
+
if (state.state === PENDING) state.reactions.add(reaction);
|
|
10084
10100
|
else microtask(function () {
|
|
10085
10101
|
callReaction(reaction, state);
|
|
10086
10102
|
});
|
|
@@ -10436,7 +10452,7 @@ module.exports = /web0s(?!.*chrome)/i.test(userAgent);
|
|
|
10436
10452
|
module.exports = function (a, b) {
|
|
10437
10453
|
try {
|
|
10438
10454
|
// eslint-disable-next-line no-console -- safe
|
|
10439
|
-
arguments.length
|
|
10455
|
+
arguments.length === 1 ? console.error(a) : console.error(a, b);
|
|
10440
10456
|
} catch (error) { /* empty */ }
|
|
10441
10457
|
};
|
|
10442
10458
|
|
|
@@ -10886,7 +10902,7 @@ var NativePromiseConstructor = __webpack_require__(336);
|
|
|
10886
10902
|
var fails = __webpack_require__(7);
|
|
10887
10903
|
var getBuiltIn = __webpack_require__(24);
|
|
10888
10904
|
var isCallable = __webpack_require__(21);
|
|
10889
|
-
var speciesConstructor = __webpack_require__(
|
|
10905
|
+
var speciesConstructor = __webpack_require__(218);
|
|
10890
10906
|
var promiseResolve = __webpack_require__(347);
|
|
10891
10907
|
var defineBuiltIn = __webpack_require__(48);
|
|
10892
10908
|
|
|
@@ -10960,8 +10976,8 @@ $({ target: 'Reflect', stat: true, forced: OPTIONAL_ARGUMENTS_LIST }, {
|
|
|
10960
10976
|
var $ = __webpack_require__(3);
|
|
10961
10977
|
var getBuiltIn = __webpack_require__(24);
|
|
10962
10978
|
var apply = __webpack_require__(96);
|
|
10963
|
-
var bind = __webpack_require__(
|
|
10964
|
-
var aConstructor = __webpack_require__(
|
|
10979
|
+
var bind = __webpack_require__(236);
|
|
10980
|
+
var aConstructor = __webpack_require__(219);
|
|
10965
10981
|
var anObject = __webpack_require__(47);
|
|
10966
10982
|
var isObject = __webpack_require__(20);
|
|
10967
10983
|
var create = __webpack_require__(72);
|
|
@@ -10992,7 +11008,7 @@ $({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, {
|
|
|
10992
11008
|
anObject(args);
|
|
10993
11009
|
var newTarget = arguments.length < 3 ? Target : aConstructor(arguments[2]);
|
|
10994
11010
|
if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);
|
|
10995
|
-
if (Target
|
|
11011
|
+
if (Target === newTarget) {
|
|
10996
11012
|
// w/o altered newTarget, optimization for 0-4 arguments
|
|
10997
11013
|
switch (args.length) {
|
|
10998
11014
|
case 0: return new Target();
|
|
@@ -11181,7 +11197,7 @@ $({ target: 'Reflect', stat: true }, {
|
|
|
11181
11197
|
|
|
11182
11198
|
var $ = __webpack_require__(3);
|
|
11183
11199
|
var anObject = __webpack_require__(47);
|
|
11184
|
-
var $isExtensible = __webpack_require__(
|
|
11200
|
+
var $isExtensible = __webpack_require__(245);
|
|
11185
11201
|
|
|
11186
11202
|
// `Reflect.isExtensible` method
|
|
11187
11203
|
// https://tc39.es/ecma262/#sec-reflect.isextensible
|
|
@@ -11218,7 +11234,7 @@ $({ target: 'Reflect', stat: true }, {
|
|
|
11218
11234
|
var $ = __webpack_require__(3);
|
|
11219
11235
|
var getBuiltIn = __webpack_require__(24);
|
|
11220
11236
|
var anObject = __webpack_require__(47);
|
|
11221
|
-
var FREEZING = __webpack_require__(
|
|
11237
|
+
var FREEZING = __webpack_require__(247);
|
|
11222
11238
|
|
|
11223
11239
|
// `Reflect.preventExtensions` method
|
|
11224
11240
|
// https://tc39.es/ecma262/#sec-reflect.preventextensions
|
|
@@ -11389,7 +11405,7 @@ var BASE_FORCED = DESCRIPTORS &&
|
|
|
11389
11405
|
(!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails(function () {
|
|
11390
11406
|
re2[MATCH] = false;
|
|
11391
11407
|
// RegExp constructor can alter flags and IsRegExp works correct with @@match
|
|
11392
|
-
return NativeRegExp(re1)
|
|
11408
|
+
return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i';
|
|
11393
11409
|
}));
|
|
11394
11410
|
|
|
11395
11411
|
var handleDotAll = function (string) {
|
|
@@ -11551,7 +11567,7 @@ var MATCH = wellKnownSymbol('match');
|
|
|
11551
11567
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
11552
11568
|
module.exports = function (it) {
|
|
11553
11569
|
var isRegExp;
|
|
11554
|
-
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it)
|
|
11570
|
+
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');
|
|
11555
11571
|
};
|
|
11556
11572
|
|
|
11557
11573
|
|
|
@@ -11615,7 +11631,7 @@ var $RegExp = global.RegExp;
|
|
|
11615
11631
|
var UNSUPPORTED_Y = fails(function () {
|
|
11616
11632
|
var re = $RegExp('a', 'y');
|
|
11617
11633
|
re.lastIndex = 2;
|
|
11618
|
-
return re.exec('abcd')
|
|
11634
|
+
return re.exec('abcd') !== null;
|
|
11619
11635
|
});
|
|
11620
11636
|
|
|
11621
11637
|
// UC Browser bug
|
|
@@ -11628,7 +11644,7 @@ var BROKEN_CARET = UNSUPPORTED_Y || fails(function () {
|
|
|
11628
11644
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
11629
11645
|
var re = $RegExp('^r', 'gy');
|
|
11630
11646
|
re.lastIndex = 2;
|
|
11631
|
-
return re.exec('str')
|
|
11647
|
+
return re.exec('str') !== null;
|
|
11632
11648
|
});
|
|
11633
11649
|
|
|
11634
11650
|
module.exports = {
|
|
@@ -12003,9 +12019,9 @@ var TO_STRING = 'toString';
|
|
|
12003
12019
|
var RegExpPrototype = RegExp.prototype;
|
|
12004
12020
|
var nativeToString = RegExpPrototype[TO_STRING];
|
|
12005
12021
|
|
|
12006
|
-
var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' })
|
|
12022
|
+
var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
|
|
12007
12023
|
// FF44- RegExp#toString has a wrong name
|
|
12008
|
-
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name
|
|
12024
|
+
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
|
|
12009
12025
|
|
|
12010
12026
|
// `RegExp.prototype.toString` method
|
|
12011
12027
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
@@ -12035,8 +12051,8 @@ __webpack_require__(381);
|
|
|
12035
12051
|
|
|
12036
12052
|
"use strict";
|
|
12037
12053
|
|
|
12038
|
-
var collection = __webpack_require__(
|
|
12039
|
-
var collectionStrong = __webpack_require__(
|
|
12054
|
+
var collection = __webpack_require__(243);
|
|
12055
|
+
var collectionStrong = __webpack_require__(248);
|
|
12040
12056
|
|
|
12041
12057
|
// `Set` constructor
|
|
12042
12058
|
// https://tc39.es/ecma262/#sec-set-objects
|
|
@@ -12242,7 +12258,7 @@ var $fromCodePoint = String.fromCodePoint;
|
|
|
12242
12258
|
var join = uncurryThis([].join);
|
|
12243
12259
|
|
|
12244
12260
|
// length should be 1, old FF problem
|
|
12245
|
-
var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length
|
|
12261
|
+
var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length !== 1;
|
|
12246
12262
|
|
|
12247
12263
|
// `String.fromCodePoint` method
|
|
12248
12264
|
// https://tc39.es/ecma262/#sec-string.fromcodepoint
|
|
@@ -12314,9 +12330,9 @@ $({ target: 'String', proto: true }, {
|
|
|
12314
12330
|
for (var i = 0; i < length; i++) {
|
|
12315
12331
|
var charCode = charCodeAt(S, i);
|
|
12316
12332
|
// single UTF-16 code unit
|
|
12317
|
-
if ((charCode & 0xF800)
|
|
12333
|
+
if ((charCode & 0xF800) !== 0xD800) continue;
|
|
12318
12334
|
// unpaired surrogate
|
|
12319
|
-
if (charCode >= 0xDC00 || ++i >= length || (charCodeAt(S, i) & 0xFC00)
|
|
12335
|
+
if (charCode >= 0xDC00 || ++i >= length || (charCodeAt(S, i) & 0xFC00) !== 0xDC00) return false;
|
|
12320
12336
|
} return true;
|
|
12321
12337
|
}
|
|
12322
12338
|
});
|
|
@@ -12440,7 +12456,7 @@ module.exports = function (KEY, exec, FORCED, SHAM) {
|
|
|
12440
12456
|
// String methods call symbol-named RegEp methods
|
|
12441
12457
|
var O = {};
|
|
12442
12458
|
O[SYMBOL] = function () { return 7; };
|
|
12443
|
-
return ''[KEY](O)
|
|
12459
|
+
return ''[KEY](O) !== 7;
|
|
12444
12460
|
});
|
|
12445
12461
|
|
|
12446
12462
|
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
|
|
@@ -12563,7 +12579,7 @@ var getMethod = __webpack_require__(30);
|
|
|
12563
12579
|
var defineBuiltIn = __webpack_require__(48);
|
|
12564
12580
|
var fails = __webpack_require__(7);
|
|
12565
12581
|
var wellKnownSymbol = __webpack_require__(34);
|
|
12566
|
-
var speciesConstructor = __webpack_require__(
|
|
12582
|
+
var speciesConstructor = __webpack_require__(218);
|
|
12567
12583
|
var advanceStringIndex = __webpack_require__(394);
|
|
12568
12584
|
var regExpExec = __webpack_require__(395);
|
|
12569
12585
|
var InternalStateModule = __webpack_require__(52);
|
|
@@ -12636,7 +12652,7 @@ $({ target: 'String', proto: true, forced: WORKS_WITH_NON_GLOBAL_REGEX }, {
|
|
|
12636
12652
|
}
|
|
12637
12653
|
if (WORKS_WITH_NON_GLOBAL_REGEX) return nativeMatchAll(O, regexp);
|
|
12638
12654
|
matcher = getMethod(regexp, MATCH_ALL);
|
|
12639
|
-
if (matcher === undefined && IS_PURE && classof(regexp)
|
|
12655
|
+
if (matcher === undefined && IS_PURE && classof(regexp) === 'RegExp') matcher = $matchAll;
|
|
12640
12656
|
if (matcher) return call(matcher, regexp, O);
|
|
12641
12657
|
} else if (WORKS_WITH_NON_GLOBAL_REGEX) return nativeMatchAll(O, regexp);
|
|
12642
12658
|
S = toString(O);
|
|
@@ -12655,7 +12671,7 @@ IS_PURE || MATCH_ALL in RegExpPrototype || defineBuiltIn(RegExpPrototype, MATCH_
|
|
|
12655
12671
|
"use strict";
|
|
12656
12672
|
|
|
12657
12673
|
var $ = __webpack_require__(3);
|
|
12658
|
-
var $padEnd = (__webpack_require__(
|
|
12674
|
+
var $padEnd = (__webpack_require__(228).end);
|
|
12659
12675
|
var WEBKIT_BUG = __webpack_require__(398);
|
|
12660
12676
|
|
|
12661
12677
|
// `String.prototype.padEnd` method
|
|
@@ -12686,7 +12702,7 @@ module.exports = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari
|
|
|
12686
12702
|
"use strict";
|
|
12687
12703
|
|
|
12688
12704
|
var $ = __webpack_require__(3);
|
|
12689
|
-
var $padStart = (__webpack_require__(
|
|
12705
|
+
var $padStart = (__webpack_require__(228).start);
|
|
12690
12706
|
var WEBKIT_BUG = __webpack_require__(398);
|
|
12691
12707
|
|
|
12692
12708
|
// `String.prototype.padStart` method
|
|
@@ -12740,7 +12756,7 @@ $({ target: 'String', stat: true }, {
|
|
|
12740
12756
|
"use strict";
|
|
12741
12757
|
|
|
12742
12758
|
var $ = __webpack_require__(3);
|
|
12743
|
-
var repeat = __webpack_require__(
|
|
12759
|
+
var repeat = __webpack_require__(229);
|
|
12744
12760
|
|
|
12745
12761
|
// `String.prototype.repeat` method
|
|
12746
12762
|
// https://tc39.es/ecma262/#sec-string.prototype.repeat
|
|
@@ -12844,13 +12860,16 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
12844
12860
|
if (!functionalReplace) replaceValue = toString(replaceValue);
|
|
12845
12861
|
|
|
12846
12862
|
var global = rx.global;
|
|
12863
|
+
var fullUnicode;
|
|
12847
12864
|
if (global) {
|
|
12848
|
-
|
|
12865
|
+
fullUnicode = rx.unicode;
|
|
12849
12866
|
rx.lastIndex = 0;
|
|
12850
12867
|
}
|
|
12868
|
+
|
|
12851
12869
|
var results = [];
|
|
12870
|
+
var result;
|
|
12852
12871
|
while (true) {
|
|
12853
|
-
|
|
12872
|
+
result = regExpExec(rx, S);
|
|
12854
12873
|
if (result === null) break;
|
|
12855
12874
|
|
|
12856
12875
|
push(results, result);
|
|
@@ -12868,6 +12887,7 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
12868
12887
|
var matched = toString(result[0]);
|
|
12869
12888
|
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
12870
12889
|
var captures = [];
|
|
12890
|
+
var replacement;
|
|
12871
12891
|
// NOTE: This is equivalent to
|
|
12872
12892
|
// captures = result.slice(1).map(maybeToString)
|
|
12873
12893
|
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
@@ -12878,7 +12898,7 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
12878
12898
|
if (functionalReplace) {
|
|
12879
12899
|
var replacerArgs = concat([matched], captures, position, S);
|
|
12880
12900
|
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
12881
|
-
|
|
12901
|
+
replacement = toString(apply(replaceValue, undefined, replacerArgs));
|
|
12882
12902
|
} else {
|
|
12883
12903
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
12884
12904
|
}
|
|
@@ -12887,6 +12907,7 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
12887
12907
|
nextSourcePosition = position + matched.length;
|
|
12888
12908
|
}
|
|
12889
12909
|
}
|
|
12910
|
+
|
|
12890
12911
|
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
|
12891
12912
|
}
|
|
12892
12913
|
];
|
|
@@ -13083,7 +13104,7 @@ var anObject = __webpack_require__(47);
|
|
|
13083
13104
|
var isNullOrUndefined = __webpack_require__(17);
|
|
13084
13105
|
var isRegExp = __webpack_require__(367);
|
|
13085
13106
|
var requireObjectCoercible = __webpack_require__(16);
|
|
13086
|
-
var speciesConstructor = __webpack_require__(
|
|
13107
|
+
var speciesConstructor = __webpack_require__(218);
|
|
13087
13108
|
var advanceStringIndex = __webpack_require__(394);
|
|
13088
13109
|
var toLength = __webpack_require__(65);
|
|
13089
13110
|
var toString = __webpack_require__(69);
|
|
@@ -13117,11 +13138,11 @@ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
|
|
13117
13138
|
fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
|
|
13118
13139
|
var internalSplit;
|
|
13119
13140
|
if (
|
|
13120
|
-
'abbc'.split(/(b)*/)[1]
|
|
13141
|
+
'abbc'.split(/(b)*/)[1] === 'c' ||
|
|
13121
13142
|
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
13122
|
-
'test'.split(/(?:)/, -1).length
|
|
13123
|
-
'ab'.split(/(?:ab)*/).length
|
|
13124
|
-
'.'.split(/(.?)(.?)/).length
|
|
13143
|
+
'test'.split(/(?:)/, -1).length !== 4 ||
|
|
13144
|
+
'ab'.split(/(?:ab)*/).length !== 2 ||
|
|
13145
|
+
'.'.split(/(.?)(.?)/).length !== 4 ||
|
|
13125
13146
|
// eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
|
13126
13147
|
'.'.split(/()()/).length > 1 ||
|
|
13127
13148
|
''.split(/.?/).length
|
|
@@ -13350,9 +13371,9 @@ $({ target: 'String', proto: true, forced: TO_STRING_CONVERSION_BUG }, {
|
|
|
13350
13371
|
for (var i = 0; i < length; i++) {
|
|
13351
13372
|
var charCode = charCodeAt(S, i);
|
|
13352
13373
|
// single UTF-16 code unit
|
|
13353
|
-
if ((charCode & 0xF800)
|
|
13374
|
+
if ((charCode & 0xF800) !== 0xD800) result[i] = charAt(S, i);
|
|
13354
13375
|
// unpaired surrogate
|
|
13355
|
-
else if (charCode >= 0xDC00 || i + 1 >= length || (charCodeAt(S, i + 1) & 0xFC00)
|
|
13376
|
+
else if (charCode >= 0xDC00 || i + 1 >= length || (charCodeAt(S, i + 1) & 0xFC00) !== 0xDC00) result[i] = REPLACEMENT_CHARACTER;
|
|
13356
13377
|
// surrogate pair
|
|
13357
13378
|
else {
|
|
13358
13379
|
result[i] = charAt(S, i);
|
|
@@ -13829,7 +13850,7 @@ var global = __webpack_require__(4);
|
|
|
13829
13850
|
var call = __webpack_require__(8);
|
|
13830
13851
|
var DESCRIPTORS = __webpack_require__(6);
|
|
13831
13852
|
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = __webpack_require__(435);
|
|
13832
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
13853
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
13833
13854
|
var ArrayBufferModule = __webpack_require__(208);
|
|
13834
13855
|
var anInstance = __webpack_require__(211);
|
|
13835
13856
|
var createPropertyDescriptor = __webpack_require__(11);
|
|
@@ -13895,7 +13916,7 @@ var addGetter = function (it, key) {
|
|
|
13895
13916
|
|
|
13896
13917
|
var isArrayBuffer = function (it) {
|
|
13897
13918
|
var klass;
|
|
13898
|
-
return isPrototypeOf(ArrayBufferPrototype, it) || (klass = classof(it))
|
|
13919
|
+
return isPrototypeOf(ArrayBufferPrototype, it) || (klass = classof(it)) === 'ArrayBuffer' || klass === 'SharedArrayBuffer';
|
|
13899
13920
|
};
|
|
13900
13921
|
|
|
13901
13922
|
var isTypedArrayIndex = function (target, key) {
|
|
@@ -14051,7 +14072,7 @@ if (DESCRIPTORS) {
|
|
|
14051
14072
|
createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME);
|
|
14052
14073
|
}
|
|
14053
14074
|
|
|
14054
|
-
var FORCED = TypedArrayConstructor
|
|
14075
|
+
var FORCED = TypedArrayConstructor !== NativeTypedArrayConstructor;
|
|
14055
14076
|
|
|
14056
14077
|
exported[CONSTRUCTOR_NAME] = TypedArrayConstructor;
|
|
14057
14078
|
|
|
@@ -14080,7 +14101,7 @@ if (DESCRIPTORS) {
|
|
|
14080
14101
|
var global = __webpack_require__(4);
|
|
14081
14102
|
var fails = __webpack_require__(7);
|
|
14082
14103
|
var checkCorrectnessOfIteration = __webpack_require__(165);
|
|
14083
|
-
var NATIVE_ARRAY_BUFFER_VIEWS = (__webpack_require__(
|
|
14104
|
+
var NATIVE_ARRAY_BUFFER_VIEWS = (__webpack_require__(216).NATIVE_ARRAY_BUFFER_VIEWS);
|
|
14084
14105
|
|
|
14085
14106
|
var ArrayBuffer = global.ArrayBuffer;
|
|
14086
14107
|
var Int8Array = global.Int8Array;
|
|
@@ -14156,14 +14177,14 @@ module.exports = function (it) {
|
|
|
14156
14177
|
|
|
14157
14178
|
var bind = __webpack_require__(86);
|
|
14158
14179
|
var call = __webpack_require__(8);
|
|
14159
|
-
var aConstructor = __webpack_require__(
|
|
14180
|
+
var aConstructor = __webpack_require__(219);
|
|
14160
14181
|
var toObject = __webpack_require__(40);
|
|
14161
14182
|
var lengthOfArrayLike = __webpack_require__(64);
|
|
14162
14183
|
var getIterator = __webpack_require__(135);
|
|
14163
14184
|
var getIteratorMethod = __webpack_require__(136);
|
|
14164
14185
|
var isArrayIteratorMethod = __webpack_require__(133);
|
|
14165
14186
|
var isBigIntArray = __webpack_require__(440);
|
|
14166
|
-
var aTypedArrayConstructor = (__webpack_require__(
|
|
14187
|
+
var aTypedArrayConstructor = (__webpack_require__(216).aTypedArrayConstructor);
|
|
14167
14188
|
var toBigInt = __webpack_require__(441);
|
|
14168
14189
|
|
|
14169
14190
|
module.exports = function from(source /* , mapfn, thisArg */) {
|
|
@@ -14207,7 +14228,7 @@ var classof = __webpack_require__(70);
|
|
|
14207
14228
|
|
|
14208
14229
|
module.exports = function (it) {
|
|
14209
14230
|
var klass = classof(it);
|
|
14210
|
-
return klass
|
|
14231
|
+
return klass === 'BigInt64Array' || klass === 'BigUint64Array';
|
|
14211
14232
|
};
|
|
14212
14233
|
|
|
14213
14234
|
|
|
@@ -14373,7 +14394,7 @@ createTypedArrayConstructor('Uint32', function (init) {
|
|
|
14373
14394
|
|
|
14374
14395
|
"use strict";
|
|
14375
14396
|
|
|
14376
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14397
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14377
14398
|
var lengthOfArrayLike = __webpack_require__(64);
|
|
14378
14399
|
var toIntegerOrInfinity = __webpack_require__(62);
|
|
14379
14400
|
|
|
@@ -14398,7 +14419,7 @@ exportTypedArrayMethod('at', function at(index) {
|
|
|
14398
14419
|
"use strict";
|
|
14399
14420
|
|
|
14400
14421
|
var uncurryThis = __webpack_require__(14);
|
|
14401
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14422
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14402
14423
|
var $ArrayCopyWithin = __webpack_require__(145);
|
|
14403
14424
|
|
|
14404
14425
|
var u$ArrayCopyWithin = uncurryThis($ArrayCopyWithin);
|
|
@@ -14418,7 +14439,7 @@ exportTypedArrayMethod('copyWithin', function copyWithin(target, start /* , end
|
|
|
14418
14439
|
|
|
14419
14440
|
"use strict";
|
|
14420
14441
|
|
|
14421
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14442
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14422
14443
|
var $every = (__webpack_require__(85).every);
|
|
14423
14444
|
|
|
14424
14445
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
@@ -14437,7 +14458,7 @@ exportTypedArrayMethod('every', function every(callbackfn /* , thisArg */) {
|
|
|
14437
14458
|
|
|
14438
14459
|
"use strict";
|
|
14439
14460
|
|
|
14440
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14461
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14441
14462
|
var $fill = __webpack_require__(150);
|
|
14442
14463
|
var toBigInt = __webpack_require__(441);
|
|
14443
14464
|
var classof = __webpack_require__(70);
|
|
@@ -14473,7 +14494,7 @@ exportTypedArrayMethod('fill', function fill(value /* , start, end */) {
|
|
|
14473
14494
|
|
|
14474
14495
|
"use strict";
|
|
14475
14496
|
|
|
14476
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14497
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14477
14498
|
var $filter = (__webpack_require__(85).filter);
|
|
14478
14499
|
var fromSpeciesAndList = __webpack_require__(455);
|
|
14479
14500
|
|
|
@@ -14508,8 +14529,8 @@ module.exports = function (instance, list) {
|
|
|
14508
14529
|
|
|
14509
14530
|
"use strict";
|
|
14510
14531
|
|
|
14511
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14512
|
-
var speciesConstructor = __webpack_require__(
|
|
14532
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14533
|
+
var speciesConstructor = __webpack_require__(218);
|
|
14513
14534
|
|
|
14514
14535
|
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
|
|
14515
14536
|
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
|
@@ -14527,7 +14548,7 @@ module.exports = function (originalArray) {
|
|
|
14527
14548
|
|
|
14528
14549
|
"use strict";
|
|
14529
14550
|
|
|
14530
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14551
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14531
14552
|
var $find = (__webpack_require__(85).find);
|
|
14532
14553
|
|
|
14533
14554
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
@@ -14546,7 +14567,7 @@ exportTypedArrayMethod('find', function find(predicate /* , thisArg */) {
|
|
|
14546
14567
|
|
|
14547
14568
|
"use strict";
|
|
14548
14569
|
|
|
14549
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14570
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14550
14571
|
var $findIndex = (__webpack_require__(85).findIndex);
|
|
14551
14572
|
|
|
14552
14573
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
@@ -14565,7 +14586,7 @@ exportTypedArrayMethod('findIndex', function findIndex(predicate /* , thisArg */
|
|
|
14565
14586
|
|
|
14566
14587
|
"use strict";
|
|
14567
14588
|
|
|
14568
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14589
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14569
14590
|
var $findLast = (__webpack_require__(155).findLast);
|
|
14570
14591
|
|
|
14571
14592
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
@@ -14584,7 +14605,7 @@ exportTypedArrayMethod('findLast', function findLast(predicate /* , thisArg */)
|
|
|
14584
14605
|
|
|
14585
14606
|
"use strict";
|
|
14586
14607
|
|
|
14587
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14608
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14588
14609
|
var $findLastIndex = (__webpack_require__(155).findLastIndex);
|
|
14589
14610
|
|
|
14590
14611
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
@@ -14603,7 +14624,7 @@ exportTypedArrayMethod('findLastIndex', function findLastIndex(predicate /* , th
|
|
|
14603
14624
|
|
|
14604
14625
|
"use strict";
|
|
14605
14626
|
|
|
14606
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14627
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14607
14628
|
var $forEach = (__webpack_require__(85).forEach);
|
|
14608
14629
|
|
|
14609
14630
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
@@ -14623,7 +14644,7 @@ exportTypedArrayMethod('forEach', function forEach(callbackfn /* , thisArg */) {
|
|
|
14623
14644
|
"use strict";
|
|
14624
14645
|
|
|
14625
14646
|
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = __webpack_require__(435);
|
|
14626
|
-
var exportTypedArrayStaticMethod = (__webpack_require__(
|
|
14647
|
+
var exportTypedArrayStaticMethod = (__webpack_require__(216).exportTypedArrayStaticMethod);
|
|
14627
14648
|
var typedArrayFrom = __webpack_require__(439);
|
|
14628
14649
|
|
|
14629
14650
|
// `%TypedArray%.from` method
|
|
@@ -14637,7 +14658,7 @@ exportTypedArrayStaticMethod('from', typedArrayFrom, TYPED_ARRAYS_CONSTRUCTORS_R
|
|
|
14637
14658
|
|
|
14638
14659
|
"use strict";
|
|
14639
14660
|
|
|
14640
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14661
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14641
14662
|
var $includes = (__webpack_require__(60).includes);
|
|
14642
14663
|
|
|
14643
14664
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
@@ -14656,7 +14677,7 @@ exportTypedArrayMethod('includes', function includes(searchElement /* , fromInde
|
|
|
14656
14677
|
|
|
14657
14678
|
"use strict";
|
|
14658
14679
|
|
|
14659
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14680
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14660
14681
|
var $indexOf = (__webpack_require__(60).indexOf);
|
|
14661
14682
|
|
|
14662
14683
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
@@ -14678,7 +14699,7 @@ exportTypedArrayMethod('indexOf', function indexOf(searchElement /* , fromIndex
|
|
|
14678
14699
|
var global = __webpack_require__(4);
|
|
14679
14700
|
var fails = __webpack_require__(7);
|
|
14680
14701
|
var uncurryThis = __webpack_require__(14);
|
|
14681
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14702
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14682
14703
|
var ArrayIterators = __webpack_require__(169);
|
|
14683
14704
|
var wellKnownSymbol = __webpack_require__(34);
|
|
14684
14705
|
|
|
@@ -14728,7 +14749,7 @@ exportTypedArrayMethod(ITERATOR, typedArrayValues, GENERIC || !ITERATOR_IS_VALUE
|
|
|
14728
14749
|
|
|
14729
14750
|
"use strict";
|
|
14730
14751
|
|
|
14731
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14752
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14732
14753
|
var uncurryThis = __webpack_require__(14);
|
|
14733
14754
|
|
|
14734
14755
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
@@ -14748,7 +14769,7 @@ exportTypedArrayMethod('join', function join(separator) {
|
|
|
14748
14769
|
|
|
14749
14770
|
"use strict";
|
|
14750
14771
|
|
|
14751
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14772
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14752
14773
|
var apply = __webpack_require__(96);
|
|
14753
14774
|
var $lastIndexOf = __webpack_require__(176);
|
|
14754
14775
|
|
|
@@ -14769,7 +14790,7 @@ exportTypedArrayMethod('lastIndexOf', function lastIndexOf(searchElement /* , fr
|
|
|
14769
14790
|
|
|
14770
14791
|
"use strict";
|
|
14771
14792
|
|
|
14772
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14793
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14773
14794
|
var $map = (__webpack_require__(85).map);
|
|
14774
14795
|
var typedArraySpeciesConstructor = __webpack_require__(456);
|
|
14775
14796
|
|
|
@@ -14791,7 +14812,7 @@ exportTypedArrayMethod('map', function map(mapfn /* , thisArg */) {
|
|
|
14791
14812
|
|
|
14792
14813
|
"use strict";
|
|
14793
14814
|
|
|
14794
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14815
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14795
14816
|
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = __webpack_require__(435);
|
|
14796
14817
|
|
|
14797
14818
|
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
|
|
@@ -14814,7 +14835,7 @@ exportTypedArrayStaticMethod('of', function of(/* ...items */) {
|
|
|
14814
14835
|
|
|
14815
14836
|
"use strict";
|
|
14816
14837
|
|
|
14817
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14838
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14818
14839
|
var $reduce = (__webpack_require__(182).left);
|
|
14819
14840
|
|
|
14820
14841
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
@@ -14834,7 +14855,7 @@ exportTypedArrayMethod('reduce', function reduce(callbackfn /* , initialValue */
|
|
|
14834
14855
|
|
|
14835
14856
|
"use strict";
|
|
14836
14857
|
|
|
14837
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14858
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14838
14859
|
var $reduceRight = (__webpack_require__(182).right);
|
|
14839
14860
|
|
|
14840
14861
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
@@ -14854,7 +14875,7 @@ exportTypedArrayMethod('reduceRight', function reduceRight(callbackfn /* , initi
|
|
|
14854
14875
|
|
|
14855
14876
|
"use strict";
|
|
14856
14877
|
|
|
14857
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14878
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14858
14879
|
|
|
14859
14880
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
14860
14881
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
@@ -14884,7 +14905,7 @@ exportTypedArrayMethod('reverse', function reverse() {
|
|
|
14884
14905
|
|
|
14885
14906
|
var global = __webpack_require__(4);
|
|
14886
14907
|
var call = __webpack_require__(8);
|
|
14887
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14908
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14888
14909
|
var lengthOfArrayLike = __webpack_require__(64);
|
|
14889
14910
|
var toOffset = __webpack_require__(436);
|
|
14890
14911
|
var toIndexedObject = __webpack_require__(40);
|
|
@@ -14933,7 +14954,7 @@ exportTypedArrayMethod('set', function set(arrayLike /* , offset */) {
|
|
|
14933
14954
|
|
|
14934
14955
|
"use strict";
|
|
14935
14956
|
|
|
14936
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14957
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14937
14958
|
var typedArraySpeciesConstructor = __webpack_require__(456);
|
|
14938
14959
|
var fails = __webpack_require__(7);
|
|
14939
14960
|
var arraySlice = __webpack_require__(97);
|
|
@@ -14965,7 +14986,7 @@ exportTypedArrayMethod('slice', function slice(start, end) {
|
|
|
14965
14986
|
|
|
14966
14987
|
"use strict";
|
|
14967
14988
|
|
|
14968
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
14989
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14969
14990
|
var $some = (__webpack_require__(85).some);
|
|
14970
14991
|
|
|
14971
14992
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
@@ -14989,7 +15010,7 @@ var uncurryThis = __webpack_require__(87);
|
|
|
14989
15010
|
var fails = __webpack_require__(7);
|
|
14990
15011
|
var aCallable = __webpack_require__(31);
|
|
14991
15012
|
var internalSort = __webpack_require__(189);
|
|
14992
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
15013
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
14993
15014
|
var FF = __webpack_require__(190);
|
|
14994
15015
|
var IE_OR_EDGE = __webpack_require__(191);
|
|
14995
15016
|
var V8 = __webpack_require__(28);
|
|
@@ -15061,7 +15082,7 @@ exportTypedArrayMethod('sort', function sort(comparefn) {
|
|
|
15061
15082
|
|
|
15062
15083
|
"use strict";
|
|
15063
15084
|
|
|
15064
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
15085
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
15065
15086
|
var toLength = __webpack_require__(65);
|
|
15066
15087
|
var toAbsoluteIndex = __webpack_require__(61);
|
|
15067
15088
|
var typedArraySpeciesConstructor = __webpack_require__(456);
|
|
@@ -15092,7 +15113,7 @@ exportTypedArrayMethod('subarray', function subarray(begin, end) {
|
|
|
15092
15113
|
|
|
15093
15114
|
var global = __webpack_require__(4);
|
|
15094
15115
|
var apply = __webpack_require__(96);
|
|
15095
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
15116
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
15096
15117
|
var fails = __webpack_require__(7);
|
|
15097
15118
|
var arraySlice = __webpack_require__(97);
|
|
15098
15119
|
|
|
@@ -15107,7 +15128,7 @@ var TO_LOCALE_STRING_BUG = !!Int8Array && fails(function () {
|
|
|
15107
15128
|
});
|
|
15108
15129
|
|
|
15109
15130
|
var FORCED = fails(function () {
|
|
15110
|
-
return [1, 2].toLocaleString()
|
|
15131
|
+
return [1, 2].toLocaleString() !== new Int8Array([1, 2]).toLocaleString();
|
|
15111
15132
|
}) || !fails(function () {
|
|
15112
15133
|
Int8Array.prototype.toLocaleString.call([1, 2]);
|
|
15113
15134
|
});
|
|
@@ -15130,7 +15151,7 @@ exportTypedArrayMethod('toLocaleString', function toLocaleString() {
|
|
|
15130
15151
|
"use strict";
|
|
15131
15152
|
|
|
15132
15153
|
var arrayToReversed = __webpack_require__(197);
|
|
15133
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
15154
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
15134
15155
|
|
|
15135
15156
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
15136
15157
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
@@ -15149,7 +15170,7 @@ exportTypedArrayMethod('toReversed', function toReversed() {
|
|
|
15149
15170
|
|
|
15150
15171
|
"use strict";
|
|
15151
15172
|
|
|
15152
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
15173
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
15153
15174
|
var uncurryThis = __webpack_require__(14);
|
|
15154
15175
|
var aCallable = __webpack_require__(31);
|
|
15155
15176
|
var arrayFromConstructorAndList = __webpack_require__(199);
|
|
@@ -15175,7 +15196,7 @@ exportTypedArrayMethod('toSorted', function toSorted(compareFn) {
|
|
|
15175
15196
|
|
|
15176
15197
|
"use strict";
|
|
15177
15198
|
|
|
15178
|
-
var exportTypedArrayMethod = (__webpack_require__(
|
|
15199
|
+
var exportTypedArrayMethod = (__webpack_require__(216).exportTypedArrayMethod);
|
|
15179
15200
|
var fails = __webpack_require__(7);
|
|
15180
15201
|
var global = __webpack_require__(4);
|
|
15181
15202
|
var uncurryThis = __webpack_require__(14);
|
|
@@ -15191,7 +15212,7 @@ if (fails(function () { arrayToString.call({}); })) {
|
|
|
15191
15212
|
};
|
|
15192
15213
|
}
|
|
15193
15214
|
|
|
15194
|
-
var IS_NOT_ARRAY_METHOD = Uint8ArrayPrototype.toString
|
|
15215
|
+
var IS_NOT_ARRAY_METHOD = Uint8ArrayPrototype.toString !== arrayToString;
|
|
15195
15216
|
|
|
15196
15217
|
// `%TypedArray%.prototype.toString` method
|
|
15197
15218
|
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tostring
|
|
@@ -15205,7 +15226,7 @@ exportTypedArrayMethod('toString', arrayToString, IS_NOT_ARRAY_METHOD);
|
|
|
15205
15226
|
"use strict";
|
|
15206
15227
|
|
|
15207
15228
|
var arrayWith = __webpack_require__(206);
|
|
15208
|
-
var ArrayBufferViewCore = __webpack_require__(
|
|
15229
|
+
var ArrayBufferViewCore = __webpack_require__(216);
|
|
15209
15230
|
var isBigIntArray = __webpack_require__(440);
|
|
15210
15231
|
var toIntegerOrInfinity = __webpack_require__(62);
|
|
15211
15232
|
var toBigInt = __webpack_require__(441);
|
|
@@ -15303,12 +15324,12 @@ __webpack_require__(485);
|
|
|
15303
15324
|
|
|
15304
15325
|
"use strict";
|
|
15305
15326
|
|
|
15306
|
-
var FREEZING = __webpack_require__(
|
|
15327
|
+
var FREEZING = __webpack_require__(247);
|
|
15307
15328
|
var global = __webpack_require__(4);
|
|
15308
15329
|
var uncurryThis = __webpack_require__(14);
|
|
15309
15330
|
var defineBuiltIns = __webpack_require__(210);
|
|
15310
|
-
var InternalMetadataModule = __webpack_require__(
|
|
15311
|
-
var collection = __webpack_require__(
|
|
15331
|
+
var InternalMetadataModule = __webpack_require__(244);
|
|
15332
|
+
var collection = __webpack_require__(243);
|
|
15312
15333
|
var collectionWeak = __webpack_require__(486);
|
|
15313
15334
|
var isObject = __webpack_require__(20);
|
|
15314
15335
|
var enforceInternalState = (__webpack_require__(52).enforce);
|
|
@@ -15405,8 +15426,8 @@ if (NATIVE_WEAK_MAP) if (IS_IE11) {
|
|
|
15405
15426
|
else if (isSealed(key)) arrayIntegrityLevel = SEALED;
|
|
15406
15427
|
}
|
|
15407
15428
|
nativeSet(this, key, value);
|
|
15408
|
-
if (arrayIntegrityLevel
|
|
15409
|
-
if (arrayIntegrityLevel
|
|
15429
|
+
if (arrayIntegrityLevel === FROZEN) freeze(key);
|
|
15430
|
+
if (arrayIntegrityLevel === SEALED) seal(key);
|
|
15410
15431
|
return this;
|
|
15411
15432
|
}
|
|
15412
15433
|
});
|
|
@@ -15421,7 +15442,7 @@ if (NATIVE_WEAK_MAP) if (IS_IE11) {
|
|
|
15421
15442
|
|
|
15422
15443
|
var uncurryThis = __webpack_require__(14);
|
|
15423
15444
|
var defineBuiltIns = __webpack_require__(210);
|
|
15424
|
-
var getWeakData = (__webpack_require__(
|
|
15445
|
+
var getWeakData = (__webpack_require__(244).getWeakData);
|
|
15425
15446
|
var anInstance = __webpack_require__(211);
|
|
15426
15447
|
var anObject = __webpack_require__(47);
|
|
15427
15448
|
var isNullOrUndefined = __webpack_require__(17);
|
|
@@ -15567,7 +15588,7 @@ __webpack_require__(488);
|
|
|
15567
15588
|
|
|
15568
15589
|
"use strict";
|
|
15569
15590
|
|
|
15570
|
-
var collection = __webpack_require__(
|
|
15591
|
+
var collection = __webpack_require__(243);
|
|
15571
15592
|
var collectionWeak = __webpack_require__(486);
|
|
15572
15593
|
|
|
15573
15594
|
// `WeakSet` constructor
|
|
@@ -15630,10 +15651,10 @@ $({ global: true, bind: true, enumerable: true, forced: NO_SPACES_IGNORE || NO_E
|
|
|
15630
15651
|
var position = 0;
|
|
15631
15652
|
var bc = 0;
|
|
15632
15653
|
var chr, bs;
|
|
15633
|
-
if (string.length % 4
|
|
15654
|
+
if (string.length % 4 === 0) {
|
|
15634
15655
|
string = replace(string, finalEq, '');
|
|
15635
15656
|
}
|
|
15636
|
-
if (string.length % 4
|
|
15657
|
+
if (string.length % 4 === 1 || exec(disallowed, string)) {
|
|
15637
15658
|
throw new (getBuiltIn('DOMException'))('The string is not correctly encoded', 'InvalidCharacterError');
|
|
15638
15659
|
}
|
|
15639
15660
|
while (chr = charAt(string, position++)) {
|
|
@@ -15888,7 +15909,7 @@ var NativeDOMException = getBuiltIn(DOM_EXCEPTION) || (function () {
|
|
|
15888
15909
|
// eslint-disable-next-line es/no-weak-map, unicorn/require-post-message-target-origin -- safe
|
|
15889
15910
|
new MessageChannel().port1.postMessage(new WeakMap());
|
|
15890
15911
|
} catch (error) {
|
|
15891
|
-
if (error.name
|
|
15912
|
+
if (error.name === DATA_CLONE_ERR && error.code === 25) return error.constructor;
|
|
15892
15913
|
}
|
|
15893
15914
|
})();
|
|
15894
15915
|
var NativeDOMExceptionPrototype = NativeDOMException && NativeDOMException.prototype;
|
|
@@ -16211,7 +16232,7 @@ var Function = global.Function;
|
|
|
16211
16232
|
// dirty IE9- and Bun 0.3.0- checks
|
|
16212
16233
|
var WRAP = /MSIE .\./.test(USER_AGENT) || ENGINE_IS_BUN && (function () {
|
|
16213
16234
|
var version = global.Bun.version.split('.');
|
|
16214
|
-
return version.length < 3 || version[0]
|
|
16235
|
+
return version.length < 3 || version[0] === '0' && (version[1] < 3 || version[1] === '3' && version[2] === '0');
|
|
16215
16236
|
})();
|
|
16216
16237
|
|
|
16217
16238
|
// IE9- / Bun 0.3.0- setTimeout / setInterval / setImmediate additional parameters fix
|
|
@@ -16385,7 +16406,7 @@ var checkBasicSemantic = function (structuredCloneImplementation) {
|
|
|
16385
16406
|
var set1 = new global.Set([7]);
|
|
16386
16407
|
var set2 = structuredCloneImplementation(set1);
|
|
16387
16408
|
var number = structuredCloneImplementation(Object(7));
|
|
16388
|
-
return set2
|
|
16409
|
+
return set2 === set1 || !set2.has(7) || typeof number != 'object' || number !== 7;
|
|
16389
16410
|
}) && structuredCloneImplementation;
|
|
16390
16411
|
};
|
|
16391
16412
|
|
|
@@ -16401,7 +16422,7 @@ var checkErrorsCloning = function (structuredCloneImplementation, $Error) {
|
|
|
16401
16422
|
var checkNewErrorsCloningSemantic = function (structuredCloneImplementation) {
|
|
16402
16423
|
return !fails(function () {
|
|
16403
16424
|
var test = structuredCloneImplementation(new global.AggregateError([1], PERFORMANCE_MARK, { cause: 3 }));
|
|
16404
|
-
return test.name
|
|
16425
|
+
return test.name !== 'AggregateError' || test.errors[0] !== 1 || test.message !== PERFORMANCE_MARK || test.cause !== 3;
|
|
16405
16426
|
});
|
|
16406
16427
|
};
|
|
16407
16428
|
|
|
@@ -16763,7 +16784,7 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
|
|
|
16763
16784
|
if (hasOwn(value, 'cause')) {
|
|
16764
16785
|
createNonEnumerableProperty(cloned, 'cause', structuredCloneInternal(value.cause, map, transferredBuffers));
|
|
16765
16786
|
}
|
|
16766
|
-
if (name
|
|
16787
|
+
if (name === 'AggregateError') {
|
|
16767
16788
|
cloned.errors = structuredCloneInternal(value.errors, map, transferredBuffers);
|
|
16768
16789
|
} // break omitted
|
|
16769
16790
|
case 'DOMException':
|
|
@@ -16831,7 +16852,7 @@ var replacePlaceholders = function (value, map) {
|
|
|
16831
16852
|
if (hasOwn(value, 'cause')) {
|
|
16832
16853
|
value.cause = replacePlaceholders(value.cause, map);
|
|
16833
16854
|
}
|
|
16834
|
-
if (value.name
|
|
16855
|
+
if (value.name === 'AggregateError') {
|
|
16835
16856
|
value.errors = replacePlaceholders(value.errors, map);
|
|
16836
16857
|
} // break omitted
|
|
16837
16858
|
case 'DOMException':
|
|
@@ -17024,7 +17045,7 @@ module.exports = !!structuredClone && !fails(function () {
|
|
|
17024
17045
|
if ((IS_DENO && V8 > 92) || (IS_NODE && V8 > 94) || (IS_BROWSER && V8 > 97)) return false;
|
|
17025
17046
|
var buffer = new ArrayBuffer(8);
|
|
17026
17047
|
var clone = structuredClone(buffer, { transfer: [buffer] });
|
|
17027
|
-
return buffer.byteLength
|
|
17048
|
+
return buffer.byteLength !== 0 || clone.byteLength !== 8;
|
|
17028
17049
|
});
|
|
17029
17050
|
|
|
17030
17051
|
|
|
@@ -17165,7 +17186,7 @@ var EOF;
|
|
|
17165
17186
|
var parseIPv4 = function (input) {
|
|
17166
17187
|
var parts = split(input, '.');
|
|
17167
17188
|
var partsLength, numbers, index, part, radix, number, ipv4;
|
|
17168
|
-
if (parts.length && parts[parts.length - 1]
|
|
17189
|
+
if (parts.length && parts[parts.length - 1] === '') {
|
|
17169
17190
|
parts.length--;
|
|
17170
17191
|
}
|
|
17171
17192
|
partsLength = parts.length;
|
|
@@ -17173,23 +17194,23 @@ var parseIPv4 = function (input) {
|
|
|
17173
17194
|
numbers = [];
|
|
17174
17195
|
for (index = 0; index < partsLength; index++) {
|
|
17175
17196
|
part = parts[index];
|
|
17176
|
-
if (part
|
|
17197
|
+
if (part === '') return input;
|
|
17177
17198
|
radix = 10;
|
|
17178
|
-
if (part.length > 1 && charAt(part, 0)
|
|
17199
|
+
if (part.length > 1 && charAt(part, 0) === '0') {
|
|
17179
17200
|
radix = exec(HEX_START, part) ? 16 : 8;
|
|
17180
|
-
part = stringSlice(part, radix
|
|
17201
|
+
part = stringSlice(part, radix === 8 ? 1 : 2);
|
|
17181
17202
|
}
|
|
17182
17203
|
if (part === '') {
|
|
17183
17204
|
number = 0;
|
|
17184
17205
|
} else {
|
|
17185
|
-
if (!exec(radix
|
|
17206
|
+
if (!exec(radix === 10 ? DEC : radix === 8 ? OCT : HEX, part)) return input;
|
|
17186
17207
|
number = parseInt(part, radix);
|
|
17187
17208
|
}
|
|
17188
17209
|
push(numbers, number);
|
|
17189
17210
|
}
|
|
17190
17211
|
for (index = 0; index < partsLength; index++) {
|
|
17191
17212
|
number = numbers[index];
|
|
17192
|
-
if (index
|
|
17213
|
+
if (index === partsLength - 1) {
|
|
17193
17214
|
if (number >= pow(256, 5 - partsLength)) return null;
|
|
17194
17215
|
} else if (number > 255) return null;
|
|
17195
17216
|
}
|
|
@@ -17213,15 +17234,15 @@ var parseIPv6 = function (input) {
|
|
|
17213
17234
|
return charAt(input, pointer);
|
|
17214
17235
|
};
|
|
17215
17236
|
|
|
17216
|
-
if (chr()
|
|
17217
|
-
if (charAt(input, 1)
|
|
17237
|
+
if (chr() === ':') {
|
|
17238
|
+
if (charAt(input, 1) !== ':') return;
|
|
17218
17239
|
pointer += 2;
|
|
17219
17240
|
pieceIndex++;
|
|
17220
17241
|
compress = pieceIndex;
|
|
17221
17242
|
}
|
|
17222
17243
|
while (chr()) {
|
|
17223
|
-
if (pieceIndex
|
|
17224
|
-
if (chr()
|
|
17244
|
+
if (pieceIndex === 8) return;
|
|
17245
|
+
if (chr() === ':') {
|
|
17225
17246
|
if (compress !== null) return;
|
|
17226
17247
|
pointer++;
|
|
17227
17248
|
pieceIndex++;
|
|
@@ -17234,33 +17255,33 @@ var parseIPv6 = function (input) {
|
|
|
17234
17255
|
pointer++;
|
|
17235
17256
|
length++;
|
|
17236
17257
|
}
|
|
17237
|
-
if (chr()
|
|
17238
|
-
if (length
|
|
17258
|
+
if (chr() === '.') {
|
|
17259
|
+
if (length === 0) return;
|
|
17239
17260
|
pointer -= length;
|
|
17240
17261
|
if (pieceIndex > 6) return;
|
|
17241
17262
|
numbersSeen = 0;
|
|
17242
17263
|
while (chr()) {
|
|
17243
17264
|
ipv4Piece = null;
|
|
17244
17265
|
if (numbersSeen > 0) {
|
|
17245
|
-
if (chr()
|
|
17266
|
+
if (chr() === '.' && numbersSeen < 4) pointer++;
|
|
17246
17267
|
else return;
|
|
17247
17268
|
}
|
|
17248
17269
|
if (!exec(DIGIT, chr())) return;
|
|
17249
17270
|
while (exec(DIGIT, chr())) {
|
|
17250
17271
|
number = parseInt(chr(), 10);
|
|
17251
17272
|
if (ipv4Piece === null) ipv4Piece = number;
|
|
17252
|
-
else if (ipv4Piece
|
|
17273
|
+
else if (ipv4Piece === 0) return;
|
|
17253
17274
|
else ipv4Piece = ipv4Piece * 10 + number;
|
|
17254
17275
|
if (ipv4Piece > 255) return;
|
|
17255
17276
|
pointer++;
|
|
17256
17277
|
}
|
|
17257
17278
|
address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
|
|
17258
17279
|
numbersSeen++;
|
|
17259
|
-
if (numbersSeen
|
|
17280
|
+
if (numbersSeen === 2 || numbersSeen === 4) pieceIndex++;
|
|
17260
17281
|
}
|
|
17261
|
-
if (numbersSeen
|
|
17282
|
+
if (numbersSeen !== 4) return;
|
|
17262
17283
|
break;
|
|
17263
|
-
} else if (chr()
|
|
17284
|
+
} else if (chr() === ':') {
|
|
17264
17285
|
pointer++;
|
|
17265
17286
|
if (!chr()) return;
|
|
17266
17287
|
} else if (chr()) return;
|
|
@@ -17269,12 +17290,12 @@ var parseIPv6 = function (input) {
|
|
|
17269
17290
|
if (compress !== null) {
|
|
17270
17291
|
swaps = pieceIndex - compress;
|
|
17271
17292
|
pieceIndex = 7;
|
|
17272
|
-
while (pieceIndex
|
|
17293
|
+
while (pieceIndex !== 0 && swaps > 0) {
|
|
17273
17294
|
swap = address[pieceIndex];
|
|
17274
17295
|
address[pieceIndex--] = address[compress + swaps - 1];
|
|
17275
17296
|
address[compress + --swaps] = swap;
|
|
17276
17297
|
}
|
|
17277
|
-
} else if (pieceIndex
|
|
17298
|
+
} else if (pieceIndex !== 8) return;
|
|
17278
17299
|
return address;
|
|
17279
17300
|
};
|
|
17280
17301
|
|
|
@@ -17362,15 +17383,15 @@ var specialSchemes = {
|
|
|
17362
17383
|
// https://url.spec.whatwg.org/#windows-drive-letter
|
|
17363
17384
|
var isWindowsDriveLetter = function (string, normalized) {
|
|
17364
17385
|
var second;
|
|
17365
|
-
return string.length
|
|
17366
|
-
&& ((second = charAt(string, 1))
|
|
17386
|
+
return string.length === 2 && exec(ALPHA, charAt(string, 0))
|
|
17387
|
+
&& ((second = charAt(string, 1)) === ':' || (!normalized && second === '|'));
|
|
17367
17388
|
};
|
|
17368
17389
|
|
|
17369
17390
|
// https://url.spec.whatwg.org/#start-with-a-windows-drive-letter
|
|
17370
17391
|
var startsWithWindowsDriveLetter = function (string) {
|
|
17371
17392
|
var third;
|
|
17372
17393
|
return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && (
|
|
17373
|
-
string.length
|
|
17394
|
+
string.length === 2 ||
|
|
17374
17395
|
((third = charAt(string, 2)) === '/' || third === '\\' || third === '?' || third === '#')
|
|
17375
17396
|
);
|
|
17376
17397
|
};
|
|
@@ -17474,27 +17495,27 @@ URLState.prototype = {
|
|
|
17474
17495
|
break;
|
|
17475
17496
|
|
|
17476
17497
|
case SCHEME:
|
|
17477
|
-
if (chr && (exec(ALPHANUMERIC, chr) || chr
|
|
17498
|
+
if (chr && (exec(ALPHANUMERIC, chr) || chr === '+' || chr === '-' || chr === '.')) {
|
|
17478
17499
|
buffer += toLowerCase(chr);
|
|
17479
|
-
} else if (chr
|
|
17500
|
+
} else if (chr === ':') {
|
|
17480
17501
|
if (stateOverride && (
|
|
17481
|
-
(url.isSpecial()
|
|
17482
|
-
(buffer
|
|
17483
|
-
(url.scheme
|
|
17502
|
+
(url.isSpecial() !== hasOwn(specialSchemes, buffer)) ||
|
|
17503
|
+
(buffer === 'file' && (url.includesCredentials() || url.port !== null)) ||
|
|
17504
|
+
(url.scheme === 'file' && !url.host)
|
|
17484
17505
|
)) return;
|
|
17485
17506
|
url.scheme = buffer;
|
|
17486
17507
|
if (stateOverride) {
|
|
17487
|
-
if (url.isSpecial() && specialSchemes[url.scheme]
|
|
17508
|
+
if (url.isSpecial() && specialSchemes[url.scheme] === url.port) url.port = null;
|
|
17488
17509
|
return;
|
|
17489
17510
|
}
|
|
17490
17511
|
buffer = '';
|
|
17491
|
-
if (url.scheme
|
|
17512
|
+
if (url.scheme === 'file') {
|
|
17492
17513
|
state = FILE;
|
|
17493
|
-
} else if (url.isSpecial() && base && base.scheme
|
|
17514
|
+
} else if (url.isSpecial() && base && base.scheme === url.scheme) {
|
|
17494
17515
|
state = SPECIAL_RELATIVE_OR_AUTHORITY;
|
|
17495
17516
|
} else if (url.isSpecial()) {
|
|
17496
17517
|
state = SPECIAL_AUTHORITY_SLASHES;
|
|
17497
|
-
} else if (codePoints[pointer + 1]
|
|
17518
|
+
} else if (codePoints[pointer + 1] === '/') {
|
|
17498
17519
|
state = PATH_OR_AUTHORITY;
|
|
17499
17520
|
pointer++;
|
|
17500
17521
|
} else {
|
|
@@ -17511,8 +17532,8 @@ URLState.prototype = {
|
|
|
17511
17532
|
break;
|
|
17512
17533
|
|
|
17513
17534
|
case NO_SCHEME:
|
|
17514
|
-
if (!base || (base.cannotBeABaseURL && chr
|
|
17515
|
-
if (base.cannotBeABaseURL && chr
|
|
17535
|
+
if (!base || (base.cannotBeABaseURL && chr !== '#')) return INVALID_SCHEME;
|
|
17536
|
+
if (base.cannotBeABaseURL && chr === '#') {
|
|
17516
17537
|
url.scheme = base.scheme;
|
|
17517
17538
|
url.path = arraySlice(base.path);
|
|
17518
17539
|
url.query = base.query;
|
|
@@ -17521,11 +17542,11 @@ URLState.prototype = {
|
|
|
17521
17542
|
state = FRAGMENT;
|
|
17522
17543
|
break;
|
|
17523
17544
|
}
|
|
17524
|
-
state = base.scheme
|
|
17545
|
+
state = base.scheme === 'file' ? FILE : RELATIVE;
|
|
17525
17546
|
continue;
|
|
17526
17547
|
|
|
17527
17548
|
case SPECIAL_RELATIVE_OR_AUTHORITY:
|
|
17528
|
-
if (chr
|
|
17549
|
+
if (chr === '/' && codePoints[pointer + 1] === '/') {
|
|
17529
17550
|
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
17530
17551
|
pointer++;
|
|
17531
17552
|
} else {
|
|
@@ -17534,7 +17555,7 @@ URLState.prototype = {
|
|
|
17534
17555
|
} break;
|
|
17535
17556
|
|
|
17536
17557
|
case PATH_OR_AUTHORITY:
|
|
17537
|
-
if (chr
|
|
17558
|
+
if (chr === '/') {
|
|
17538
17559
|
state = AUTHORITY;
|
|
17539
17560
|
break;
|
|
17540
17561
|
} else {
|
|
@@ -17544,16 +17565,16 @@ URLState.prototype = {
|
|
|
17544
17565
|
|
|
17545
17566
|
case RELATIVE:
|
|
17546
17567
|
url.scheme = base.scheme;
|
|
17547
|
-
if (chr
|
|
17568
|
+
if (chr === EOF) {
|
|
17548
17569
|
url.username = base.username;
|
|
17549
17570
|
url.password = base.password;
|
|
17550
17571
|
url.host = base.host;
|
|
17551
17572
|
url.port = base.port;
|
|
17552
17573
|
url.path = arraySlice(base.path);
|
|
17553
17574
|
url.query = base.query;
|
|
17554
|
-
} else if (chr
|
|
17575
|
+
} else if (chr === '/' || (chr === '\\' && url.isSpecial())) {
|
|
17555
17576
|
state = RELATIVE_SLASH;
|
|
17556
|
-
} else if (chr
|
|
17577
|
+
} else if (chr === '?') {
|
|
17557
17578
|
url.username = base.username;
|
|
17558
17579
|
url.password = base.password;
|
|
17559
17580
|
url.host = base.host;
|
|
@@ -17561,7 +17582,7 @@ URLState.prototype = {
|
|
|
17561
17582
|
url.path = arraySlice(base.path);
|
|
17562
17583
|
url.query = '';
|
|
17563
17584
|
state = QUERY;
|
|
17564
|
-
} else if (chr
|
|
17585
|
+
} else if (chr === '#') {
|
|
17565
17586
|
url.username = base.username;
|
|
17566
17587
|
url.password = base.password;
|
|
17567
17588
|
url.host = base.host;
|
|
@@ -17582,9 +17603,9 @@ URLState.prototype = {
|
|
|
17582
17603
|
} break;
|
|
17583
17604
|
|
|
17584
17605
|
case RELATIVE_SLASH:
|
|
17585
|
-
if (url.isSpecial() && (chr
|
|
17606
|
+
if (url.isSpecial() && (chr === '/' || chr === '\\')) {
|
|
17586
17607
|
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
17587
|
-
} else if (chr
|
|
17608
|
+
} else if (chr === '/') {
|
|
17588
17609
|
state = AUTHORITY;
|
|
17589
17610
|
} else {
|
|
17590
17611
|
url.username = base.username;
|
|
@@ -17597,24 +17618,24 @@ URLState.prototype = {
|
|
|
17597
17618
|
|
|
17598
17619
|
case SPECIAL_AUTHORITY_SLASHES:
|
|
17599
17620
|
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
17600
|
-
if (chr
|
|
17621
|
+
if (chr !== '/' || charAt(buffer, pointer + 1) !== '/') continue;
|
|
17601
17622
|
pointer++;
|
|
17602
17623
|
break;
|
|
17603
17624
|
|
|
17604
17625
|
case SPECIAL_AUTHORITY_IGNORE_SLASHES:
|
|
17605
|
-
if (chr
|
|
17626
|
+
if (chr !== '/' && chr !== '\\') {
|
|
17606
17627
|
state = AUTHORITY;
|
|
17607
17628
|
continue;
|
|
17608
17629
|
} break;
|
|
17609
17630
|
|
|
17610
17631
|
case AUTHORITY:
|
|
17611
|
-
if (chr
|
|
17632
|
+
if (chr === '@') {
|
|
17612
17633
|
if (seenAt) buffer = '%40' + buffer;
|
|
17613
17634
|
seenAt = true;
|
|
17614
17635
|
bufferCodePoints = arrayFrom(buffer);
|
|
17615
17636
|
for (var i = 0; i < bufferCodePoints.length; i++) {
|
|
17616
17637
|
var codePoint = bufferCodePoints[i];
|
|
17617
|
-
if (codePoint
|
|
17638
|
+
if (codePoint === ':' && !seenPasswordToken) {
|
|
17618
17639
|
seenPasswordToken = true;
|
|
17619
17640
|
continue;
|
|
17620
17641
|
}
|
|
@@ -17624,10 +17645,10 @@ URLState.prototype = {
|
|
|
17624
17645
|
}
|
|
17625
17646
|
buffer = '';
|
|
17626
17647
|
} else if (
|
|
17627
|
-
chr
|
|
17628
|
-
(chr
|
|
17648
|
+
chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
|
|
17649
|
+
(chr === '\\' && url.isSpecial())
|
|
17629
17650
|
) {
|
|
17630
|
-
if (seenAt && buffer
|
|
17651
|
+
if (seenAt && buffer === '') return INVALID_AUTHORITY;
|
|
17631
17652
|
pointer -= arrayFrom(buffer).length + 1;
|
|
17632
17653
|
buffer = '';
|
|
17633
17654
|
state = HOST;
|
|
@@ -17636,22 +17657,22 @@ URLState.prototype = {
|
|
|
17636
17657
|
|
|
17637
17658
|
case HOST:
|
|
17638
17659
|
case HOSTNAME:
|
|
17639
|
-
if (stateOverride && url.scheme
|
|
17660
|
+
if (stateOverride && url.scheme === 'file') {
|
|
17640
17661
|
state = FILE_HOST;
|
|
17641
17662
|
continue;
|
|
17642
|
-
} else if (chr
|
|
17643
|
-
if (buffer
|
|
17663
|
+
} else if (chr === ':' && !seenBracket) {
|
|
17664
|
+
if (buffer === '') return INVALID_HOST;
|
|
17644
17665
|
failure = url.parseHost(buffer);
|
|
17645
17666
|
if (failure) return failure;
|
|
17646
17667
|
buffer = '';
|
|
17647
17668
|
state = PORT;
|
|
17648
|
-
if (stateOverride
|
|
17669
|
+
if (stateOverride === HOSTNAME) return;
|
|
17649
17670
|
} else if (
|
|
17650
|
-
chr
|
|
17651
|
-
(chr
|
|
17671
|
+
chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
|
|
17672
|
+
(chr === '\\' && url.isSpecial())
|
|
17652
17673
|
) {
|
|
17653
|
-
if (url.isSpecial() && buffer
|
|
17654
|
-
if (stateOverride && buffer
|
|
17674
|
+
if (url.isSpecial() && buffer === '') return INVALID_HOST;
|
|
17675
|
+
if (stateOverride && buffer === '' && (url.includesCredentials() || url.port !== null)) return;
|
|
17655
17676
|
failure = url.parseHost(buffer);
|
|
17656
17677
|
if (failure) return failure;
|
|
17657
17678
|
buffer = '';
|
|
@@ -17659,8 +17680,8 @@ URLState.prototype = {
|
|
|
17659
17680
|
if (stateOverride) return;
|
|
17660
17681
|
continue;
|
|
17661
17682
|
} else {
|
|
17662
|
-
if (chr
|
|
17663
|
-
else if (chr
|
|
17683
|
+
if (chr === '[') seenBracket = true;
|
|
17684
|
+
else if (chr === ']') seenBracket = false;
|
|
17664
17685
|
buffer += chr;
|
|
17665
17686
|
} break;
|
|
17666
17687
|
|
|
@@ -17668,11 +17689,11 @@ URLState.prototype = {
|
|
|
17668
17689
|
if (exec(DIGIT, chr)) {
|
|
17669
17690
|
buffer += chr;
|
|
17670
17691
|
} else if (
|
|
17671
|
-
chr
|
|
17672
|
-
(chr
|
|
17692
|
+
chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
|
|
17693
|
+
(chr === '\\' && url.isSpecial()) ||
|
|
17673
17694
|
stateOverride
|
|
17674
17695
|
) {
|
|
17675
|
-
if (buffer
|
|
17696
|
+
if (buffer !== '') {
|
|
17676
17697
|
var port = parseInt(buffer, 10);
|
|
17677
17698
|
if (port > 0xFFFF) return INVALID_PORT;
|
|
17678
17699
|
url.port = (url.isSpecial() && port === specialSchemes[url.scheme]) ? null : port;
|
|
@@ -17686,31 +17707,35 @@ URLState.prototype = {
|
|
|
17686
17707
|
|
|
17687
17708
|
case FILE:
|
|
17688
17709
|
url.scheme = 'file';
|
|
17689
|
-
if (chr
|
|
17690
|
-
else if (base && base.scheme
|
|
17691
|
-
|
|
17692
|
-
|
|
17693
|
-
url.path = arraySlice(base.path);
|
|
17694
|
-
url.query = base.query;
|
|
17695
|
-
} else if (chr == '?') {
|
|
17696
|
-
url.host = base.host;
|
|
17697
|
-
url.path = arraySlice(base.path);
|
|
17698
|
-
url.query = '';
|
|
17699
|
-
state = QUERY;
|
|
17700
|
-
} else if (chr == '#') {
|
|
17701
|
-
url.host = base.host;
|
|
17702
|
-
url.path = arraySlice(base.path);
|
|
17703
|
-
url.query = base.query;
|
|
17704
|
-
url.fragment = '';
|
|
17705
|
-
state = FRAGMENT;
|
|
17706
|
-
} else {
|
|
17707
|
-
if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
|
|
17710
|
+
if (chr === '/' || chr === '\\') state = FILE_SLASH;
|
|
17711
|
+
else if (base && base.scheme === 'file') {
|
|
17712
|
+
switch (chr) {
|
|
17713
|
+
case EOF:
|
|
17708
17714
|
url.host = base.host;
|
|
17709
17715
|
url.path = arraySlice(base.path);
|
|
17710
|
-
url.
|
|
17711
|
-
|
|
17712
|
-
|
|
17713
|
-
|
|
17716
|
+
url.query = base.query;
|
|
17717
|
+
break;
|
|
17718
|
+
case '?':
|
|
17719
|
+
url.host = base.host;
|
|
17720
|
+
url.path = arraySlice(base.path);
|
|
17721
|
+
url.query = '';
|
|
17722
|
+
state = QUERY;
|
|
17723
|
+
break;
|
|
17724
|
+
case '#':
|
|
17725
|
+
url.host = base.host;
|
|
17726
|
+
url.path = arraySlice(base.path);
|
|
17727
|
+
url.query = base.query;
|
|
17728
|
+
url.fragment = '';
|
|
17729
|
+
state = FRAGMENT;
|
|
17730
|
+
break;
|
|
17731
|
+
default:
|
|
17732
|
+
if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
|
|
17733
|
+
url.host = base.host;
|
|
17734
|
+
url.path = arraySlice(base.path);
|
|
17735
|
+
url.shortenPath();
|
|
17736
|
+
}
|
|
17737
|
+
state = PATH;
|
|
17738
|
+
continue;
|
|
17714
17739
|
}
|
|
17715
17740
|
} else {
|
|
17716
17741
|
state = PATH;
|
|
@@ -17718,11 +17743,11 @@ URLState.prototype = {
|
|
|
17718
17743
|
} break;
|
|
17719
17744
|
|
|
17720
17745
|
case FILE_SLASH:
|
|
17721
|
-
if (chr
|
|
17746
|
+
if (chr === '/' || chr === '\\') {
|
|
17722
17747
|
state = FILE_HOST;
|
|
17723
17748
|
break;
|
|
17724
17749
|
}
|
|
17725
|
-
if (base && base.scheme
|
|
17750
|
+
if (base && base.scheme === 'file' && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
|
|
17726
17751
|
if (isWindowsDriveLetter(base.path[0], true)) push(url.path, base.path[0]);
|
|
17727
17752
|
else url.host = base.host;
|
|
17728
17753
|
}
|
|
@@ -17730,17 +17755,17 @@ URLState.prototype = {
|
|
|
17730
17755
|
continue;
|
|
17731
17756
|
|
|
17732
17757
|
case FILE_HOST:
|
|
17733
|
-
if (chr
|
|
17758
|
+
if (chr === EOF || chr === '/' || chr === '\\' || chr === '?' || chr === '#') {
|
|
17734
17759
|
if (!stateOverride && isWindowsDriveLetter(buffer)) {
|
|
17735
17760
|
state = PATH;
|
|
17736
|
-
} else if (buffer
|
|
17761
|
+
} else if (buffer === '') {
|
|
17737
17762
|
url.host = '';
|
|
17738
17763
|
if (stateOverride) return;
|
|
17739
17764
|
state = PATH_START;
|
|
17740
17765
|
} else {
|
|
17741
17766
|
failure = url.parseHost(buffer);
|
|
17742
17767
|
if (failure) return failure;
|
|
17743
|
-
if (url.host
|
|
17768
|
+
if (url.host === 'localhost') url.host = '';
|
|
17744
17769
|
if (stateOverride) return;
|
|
17745
17770
|
buffer = '';
|
|
17746
17771
|
state = PATH_START;
|
|
@@ -17751,50 +17776,50 @@ URLState.prototype = {
|
|
|
17751
17776
|
case PATH_START:
|
|
17752
17777
|
if (url.isSpecial()) {
|
|
17753
17778
|
state = PATH;
|
|
17754
|
-
if (chr
|
|
17755
|
-
} else if (!stateOverride && chr
|
|
17779
|
+
if (chr !== '/' && chr !== '\\') continue;
|
|
17780
|
+
} else if (!stateOverride && chr === '?') {
|
|
17756
17781
|
url.query = '';
|
|
17757
17782
|
state = QUERY;
|
|
17758
|
-
} else if (!stateOverride && chr
|
|
17783
|
+
} else if (!stateOverride && chr === '#') {
|
|
17759
17784
|
url.fragment = '';
|
|
17760
17785
|
state = FRAGMENT;
|
|
17761
|
-
} else if (chr
|
|
17786
|
+
} else if (chr !== EOF) {
|
|
17762
17787
|
state = PATH;
|
|
17763
|
-
if (chr
|
|
17788
|
+
if (chr !== '/') continue;
|
|
17764
17789
|
} break;
|
|
17765
17790
|
|
|
17766
17791
|
case PATH:
|
|
17767
17792
|
if (
|
|
17768
|
-
chr
|
|
17769
|
-
(chr
|
|
17770
|
-
(!stateOverride && (chr
|
|
17793
|
+
chr === EOF || chr === '/' ||
|
|
17794
|
+
(chr === '\\' && url.isSpecial()) ||
|
|
17795
|
+
(!stateOverride && (chr === '?' || chr === '#'))
|
|
17771
17796
|
) {
|
|
17772
17797
|
if (isDoubleDot(buffer)) {
|
|
17773
17798
|
url.shortenPath();
|
|
17774
|
-
if (chr
|
|
17799
|
+
if (chr !== '/' && !(chr === '\\' && url.isSpecial())) {
|
|
17775
17800
|
push(url.path, '');
|
|
17776
17801
|
}
|
|
17777
17802
|
} else if (isSingleDot(buffer)) {
|
|
17778
|
-
if (chr
|
|
17803
|
+
if (chr !== '/' && !(chr === '\\' && url.isSpecial())) {
|
|
17779
17804
|
push(url.path, '');
|
|
17780
17805
|
}
|
|
17781
17806
|
} else {
|
|
17782
|
-
if (url.scheme
|
|
17807
|
+
if (url.scheme === 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
|
|
17783
17808
|
if (url.host) url.host = '';
|
|
17784
17809
|
buffer = charAt(buffer, 0) + ':'; // normalize windows drive letter
|
|
17785
17810
|
}
|
|
17786
17811
|
push(url.path, buffer);
|
|
17787
17812
|
}
|
|
17788
17813
|
buffer = '';
|
|
17789
|
-
if (url.scheme
|
|
17814
|
+
if (url.scheme === 'file' && (chr === EOF || chr === '?' || chr === '#')) {
|
|
17790
17815
|
while (url.path.length > 1 && url.path[0] === '') {
|
|
17791
17816
|
shift(url.path);
|
|
17792
17817
|
}
|
|
17793
17818
|
}
|
|
17794
|
-
if (chr
|
|
17819
|
+
if (chr === '?') {
|
|
17795
17820
|
url.query = '';
|
|
17796
17821
|
state = QUERY;
|
|
17797
|
-
} else if (chr
|
|
17822
|
+
} else if (chr === '#') {
|
|
17798
17823
|
url.fragment = '';
|
|
17799
17824
|
state = FRAGMENT;
|
|
17800
17825
|
}
|
|
@@ -17803,28 +17828,28 @@ URLState.prototype = {
|
|
|
17803
17828
|
} break;
|
|
17804
17829
|
|
|
17805
17830
|
case CANNOT_BE_A_BASE_URL_PATH:
|
|
17806
|
-
if (chr
|
|
17831
|
+
if (chr === '?') {
|
|
17807
17832
|
url.query = '';
|
|
17808
17833
|
state = QUERY;
|
|
17809
|
-
} else if (chr
|
|
17834
|
+
} else if (chr === '#') {
|
|
17810
17835
|
url.fragment = '';
|
|
17811
17836
|
state = FRAGMENT;
|
|
17812
|
-
} else if (chr
|
|
17837
|
+
} else if (chr !== EOF) {
|
|
17813
17838
|
url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);
|
|
17814
17839
|
} break;
|
|
17815
17840
|
|
|
17816
17841
|
case QUERY:
|
|
17817
|
-
if (!stateOverride && chr
|
|
17842
|
+
if (!stateOverride && chr === '#') {
|
|
17818
17843
|
url.fragment = '';
|
|
17819
17844
|
state = FRAGMENT;
|
|
17820
|
-
} else if (chr
|
|
17821
|
-
if (chr
|
|
17822
|
-
else if (chr
|
|
17845
|
+
} else if (chr !== EOF) {
|
|
17846
|
+
if (chr === "'" && url.isSpecial()) url.query += '%27';
|
|
17847
|
+
else if (chr === '#') url.query += '%23';
|
|
17823
17848
|
else url.query += percentEncode(chr, C0ControlPercentEncodeSet);
|
|
17824
17849
|
} break;
|
|
17825
17850
|
|
|
17826
17851
|
case FRAGMENT:
|
|
17827
|
-
if (chr
|
|
17852
|
+
if (chr !== EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
|
|
17828
17853
|
break;
|
|
17829
17854
|
}
|
|
17830
17855
|
|
|
@@ -17834,8 +17859,8 @@ URLState.prototype = {
|
|
|
17834
17859
|
// https://url.spec.whatwg.org/#host-parsing
|
|
17835
17860
|
parseHost: function (input) {
|
|
17836
17861
|
var result, codePoints, index;
|
|
17837
|
-
if (charAt(input, 0)
|
|
17838
|
-
if (charAt(input, input.length - 1)
|
|
17862
|
+
if (charAt(input, 0) === '[') {
|
|
17863
|
+
if (charAt(input, input.length - 1) !== ']') return INVALID_HOST;
|
|
17839
17864
|
result = parseIPv6(stringSlice(input, 1, -1));
|
|
17840
17865
|
if (!result) return INVALID_HOST;
|
|
17841
17866
|
this.host = result;
|
|
@@ -17858,11 +17883,11 @@ URLState.prototype = {
|
|
|
17858
17883
|
},
|
|
17859
17884
|
// https://url.spec.whatwg.org/#cannot-have-a-username-password-port
|
|
17860
17885
|
cannotHaveUsernamePasswordPort: function () {
|
|
17861
|
-
return !this.host || this.cannotBeABaseURL || this.scheme
|
|
17886
|
+
return !this.host || this.cannotBeABaseURL || this.scheme === 'file';
|
|
17862
17887
|
},
|
|
17863
17888
|
// https://url.spec.whatwg.org/#include-credentials
|
|
17864
17889
|
includesCredentials: function () {
|
|
17865
|
-
return this.username
|
|
17890
|
+
return this.username !== '' || this.password !== '';
|
|
17866
17891
|
},
|
|
17867
17892
|
// https://url.spec.whatwg.org/#is-special
|
|
17868
17893
|
isSpecial: function () {
|
|
@@ -17872,7 +17897,7 @@ URLState.prototype = {
|
|
|
17872
17897
|
shortenPath: function () {
|
|
17873
17898
|
var path = this.path;
|
|
17874
17899
|
var pathSize = path.length;
|
|
17875
|
-
if (pathSize && (this.scheme
|
|
17900
|
+
if (pathSize && (this.scheme !== 'file' || pathSize !== 1 || !isWindowsDriveLetter(path[0], true))) {
|
|
17876
17901
|
path.length--;
|
|
17877
17902
|
}
|
|
17878
17903
|
},
|
|
@@ -17895,7 +17920,7 @@ URLState.prototype = {
|
|
|
17895
17920
|
}
|
|
17896
17921
|
output += serializeHost(host);
|
|
17897
17922
|
if (port !== null) output += ':' + port;
|
|
17898
|
-
} else if (scheme
|
|
17923
|
+
} else if (scheme === 'file') output += '//';
|
|
17899
17924
|
output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
|
|
17900
17925
|
if (query !== null) output += '?' + query;
|
|
17901
17926
|
if (fragment !== null) output += '#' + fragment;
|
|
@@ -17911,12 +17936,12 @@ URLState.prototype = {
|
|
|
17911
17936
|
getOrigin: function () {
|
|
17912
17937
|
var scheme = this.scheme;
|
|
17913
17938
|
var port = this.port;
|
|
17914
|
-
if (scheme
|
|
17939
|
+
if (scheme === 'blob') try {
|
|
17915
17940
|
return new URLConstructor(scheme.path[0]).origin;
|
|
17916
17941
|
} catch (error) {
|
|
17917
17942
|
return 'null';
|
|
17918
17943
|
}
|
|
17919
|
-
if (scheme
|
|
17944
|
+
if (scheme === 'file' || !this.isSpecial()) return 'null';
|
|
17920
17945
|
return scheme + '://' + serializeHost(this.host) + (port !== null ? ':' + port : '');
|
|
17921
17946
|
},
|
|
17922
17947
|
// https://url.spec.whatwg.org/#dom-url-protocol
|
|
@@ -17979,7 +18004,7 @@ URLState.prototype = {
|
|
|
17979
18004
|
setPort: function (port) {
|
|
17980
18005
|
if (this.cannotHaveUsernamePasswordPort()) return;
|
|
17981
18006
|
port = $toString(port);
|
|
17982
|
-
if (port
|
|
18007
|
+
if (port === '') this.port = null;
|
|
17983
18008
|
else this.parse(port, PORT);
|
|
17984
18009
|
},
|
|
17985
18010
|
// https://url.spec.whatwg.org/#dom-url-pathname
|
|
@@ -17999,10 +18024,10 @@ URLState.prototype = {
|
|
|
17999
18024
|
},
|
|
18000
18025
|
setSearch: function (search) {
|
|
18001
18026
|
search = $toString(search);
|
|
18002
|
-
if (search
|
|
18027
|
+
if (search === '') {
|
|
18003
18028
|
this.query = null;
|
|
18004
18029
|
} else {
|
|
18005
|
-
if (
|
|
18030
|
+
if (charAt(search, 0) === '?') search = stringSlice(search, 1);
|
|
18006
18031
|
this.query = '';
|
|
18007
18032
|
this.parse(search, QUERY);
|
|
18008
18033
|
}
|
|
@@ -18019,11 +18044,11 @@ URLState.prototype = {
|
|
|
18019
18044
|
},
|
|
18020
18045
|
setHash: function (hash) {
|
|
18021
18046
|
hash = $toString(hash);
|
|
18022
|
-
if (hash
|
|
18047
|
+
if (hash === '') {
|
|
18023
18048
|
this.fragment = null;
|
|
18024
18049
|
return;
|
|
18025
18050
|
}
|
|
18026
|
-
if (
|
|
18051
|
+
if (charAt(hash, 0) === '#') hash = stringSlice(hash, 1);
|
|
18027
18052
|
this.fragment = '';
|
|
18028
18053
|
this.parse(hash, FRAGMENT);
|
|
18029
18054
|
},
|
|
@@ -18237,7 +18262,7 @@ var ucs2decode = function (string) {
|
|
|
18237
18262
|
if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
|
|
18238
18263
|
// It's a high surrogate, and there is a next character.
|
|
18239
18264
|
var extra = charCodeAt(string, counter++);
|
|
18240
|
-
if ((extra & 0xFC00)
|
|
18265
|
+
if ((extra & 0xFC00) === 0xDC00) { // Low surrogate.
|
|
18241
18266
|
push(output, ((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
|
|
18242
18267
|
} else {
|
|
18243
18268
|
// It's an unmatched surrogate; only append this code unit, in case the
|
|
@@ -18336,7 +18361,7 @@ var encode = function (input) {
|
|
|
18336
18361
|
if (currentValue < n && ++delta > maxInt) {
|
|
18337
18362
|
throw $RangeError(OVERFLOW_ERROR);
|
|
18338
18363
|
}
|
|
18339
|
-
if (currentValue
|
|
18364
|
+
if (currentValue === n) {
|
|
18340
18365
|
// Represent delta as a generalized variable-length integer.
|
|
18341
18366
|
var q = delta;
|
|
18342
18367
|
var k = base;
|
|
@@ -18351,7 +18376,7 @@ var encode = function (input) {
|
|
|
18351
18376
|
}
|
|
18352
18377
|
|
|
18353
18378
|
push(output, fromCharCode(digitToBasic(q)));
|
|
18354
|
-
bias = adapt(delta, handledCPCountPlusOne, handledCPCount
|
|
18379
|
+
bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);
|
|
18355
18380
|
delta = 0;
|
|
18356
18381
|
handledCPCount++;
|
|
18357
18382
|
}
|
|
@@ -19011,304 +19036,304 @@ var _typeof = (__webpack_require__(529)["default"]);
|
|
|
19011
19036
|
function _regeneratorRuntime() {
|
|
19012
19037
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
19013
19038
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
19014
|
-
return
|
|
19039
|
+
return e;
|
|
19015
19040
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
19016
|
-
var
|
|
19017
|
-
|
|
19018
|
-
|
|
19019
|
-
|
|
19020
|
-
|
|
19041
|
+
var t,
|
|
19042
|
+
e = {},
|
|
19043
|
+
r = Object.prototype,
|
|
19044
|
+
n = r.hasOwnProperty,
|
|
19045
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
19046
|
+
t[e] = r.value;
|
|
19021
19047
|
},
|
|
19022
|
-
|
|
19023
|
-
|
|
19024
|
-
|
|
19025
|
-
|
|
19026
|
-
function define(
|
|
19027
|
-
return Object.defineProperty(
|
|
19028
|
-
value:
|
|
19048
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
19049
|
+
a = i.iterator || "@@iterator",
|
|
19050
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
19051
|
+
u = i.toStringTag || "@@toStringTag";
|
|
19052
|
+
function define(t, e, r) {
|
|
19053
|
+
return Object.defineProperty(t, e, {
|
|
19054
|
+
value: r,
|
|
19029
19055
|
enumerable: !0,
|
|
19030
19056
|
configurable: !0,
|
|
19031
19057
|
writable: !0
|
|
19032
|
-
}),
|
|
19058
|
+
}), t[e];
|
|
19033
19059
|
}
|
|
19034
19060
|
try {
|
|
19035
19061
|
define({}, "");
|
|
19036
|
-
} catch (
|
|
19037
|
-
define = function define(
|
|
19038
|
-
return
|
|
19062
|
+
} catch (t) {
|
|
19063
|
+
define = function define(t, e, r) {
|
|
19064
|
+
return t[e] = r;
|
|
19039
19065
|
};
|
|
19040
19066
|
}
|
|
19041
|
-
function wrap(
|
|
19042
|
-
var
|
|
19043
|
-
|
|
19044
|
-
|
|
19045
|
-
return
|
|
19046
|
-
value: makeInvokeMethod(
|
|
19047
|
-
}),
|
|
19067
|
+
function wrap(t, e, r, n) {
|
|
19068
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
19069
|
+
a = Object.create(i.prototype),
|
|
19070
|
+
c = new Context(n || []);
|
|
19071
|
+
return o(a, "_invoke", {
|
|
19072
|
+
value: makeInvokeMethod(t, r, c)
|
|
19073
|
+
}), a;
|
|
19048
19074
|
}
|
|
19049
|
-
function tryCatch(
|
|
19075
|
+
function tryCatch(t, e, r) {
|
|
19050
19076
|
try {
|
|
19051
19077
|
return {
|
|
19052
19078
|
type: "normal",
|
|
19053
|
-
arg:
|
|
19079
|
+
arg: t.call(e, r)
|
|
19054
19080
|
};
|
|
19055
|
-
} catch (
|
|
19081
|
+
} catch (t) {
|
|
19056
19082
|
return {
|
|
19057
19083
|
type: "throw",
|
|
19058
|
-
arg:
|
|
19084
|
+
arg: t
|
|
19059
19085
|
};
|
|
19060
19086
|
}
|
|
19061
19087
|
}
|
|
19062
|
-
|
|
19063
|
-
var
|
|
19088
|
+
e.wrap = wrap;
|
|
19089
|
+
var h = "suspendedStart",
|
|
19090
|
+
l = "suspendedYield",
|
|
19091
|
+
f = "executing",
|
|
19092
|
+
s = "completed",
|
|
19093
|
+
y = {};
|
|
19064
19094
|
function Generator() {}
|
|
19065
19095
|
function GeneratorFunction() {}
|
|
19066
19096
|
function GeneratorFunctionPrototype() {}
|
|
19067
|
-
var
|
|
19068
|
-
define(
|
|
19097
|
+
var p = {};
|
|
19098
|
+
define(p, a, function () {
|
|
19069
19099
|
return this;
|
|
19070
19100
|
});
|
|
19071
|
-
var
|
|
19072
|
-
|
|
19073
|
-
|
|
19074
|
-
var
|
|
19075
|
-
function defineIteratorMethods(
|
|
19076
|
-
["next", "throw", "return"].forEach(function (
|
|
19077
|
-
define(
|
|
19078
|
-
return this._invoke(
|
|
19101
|
+
var d = Object.getPrototypeOf,
|
|
19102
|
+
v = d && d(d(values([])));
|
|
19103
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
19104
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
19105
|
+
function defineIteratorMethods(t) {
|
|
19106
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
19107
|
+
define(t, e, function (t) {
|
|
19108
|
+
return this._invoke(e, t);
|
|
19079
19109
|
});
|
|
19080
19110
|
});
|
|
19081
19111
|
}
|
|
19082
|
-
function AsyncIterator(
|
|
19083
|
-
function invoke(
|
|
19084
|
-
var
|
|
19085
|
-
if ("throw" !==
|
|
19086
|
-
var
|
|
19087
|
-
|
|
19088
|
-
return
|
|
19089
|
-
invoke("next",
|
|
19090
|
-
}, function (
|
|
19091
|
-
invoke("throw",
|
|
19092
|
-
}) :
|
|
19093
|
-
|
|
19094
|
-
}, function (
|
|
19095
|
-
return invoke("throw",
|
|
19112
|
+
function AsyncIterator(t, e) {
|
|
19113
|
+
function invoke(r, o, i, a) {
|
|
19114
|
+
var c = tryCatch(t[r], t, o);
|
|
19115
|
+
if ("throw" !== c.type) {
|
|
19116
|
+
var u = c.arg,
|
|
19117
|
+
h = u.value;
|
|
19118
|
+
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
19119
|
+
invoke("next", t, i, a);
|
|
19120
|
+
}, function (t) {
|
|
19121
|
+
invoke("throw", t, i, a);
|
|
19122
|
+
}) : e.resolve(h).then(function (t) {
|
|
19123
|
+
u.value = t, i(u);
|
|
19124
|
+
}, function (t) {
|
|
19125
|
+
return invoke("throw", t, i, a);
|
|
19096
19126
|
});
|
|
19097
19127
|
}
|
|
19098
|
-
|
|
19128
|
+
a(c.arg);
|
|
19099
19129
|
}
|
|
19100
|
-
var
|
|
19101
|
-
|
|
19102
|
-
value: function value(
|
|
19130
|
+
var r;
|
|
19131
|
+
o(this, "_invoke", {
|
|
19132
|
+
value: function value(t, n) {
|
|
19103
19133
|
function callInvokeWithMethodAndArg() {
|
|
19104
|
-
return new
|
|
19105
|
-
invoke(
|
|
19134
|
+
return new e(function (e, r) {
|
|
19135
|
+
invoke(t, n, e, r);
|
|
19106
19136
|
});
|
|
19107
19137
|
}
|
|
19108
|
-
return
|
|
19138
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
19109
19139
|
}
|
|
19110
19140
|
});
|
|
19111
19141
|
}
|
|
19112
|
-
function makeInvokeMethod(
|
|
19113
|
-
var
|
|
19114
|
-
return function (
|
|
19115
|
-
if (
|
|
19116
|
-
if (
|
|
19117
|
-
if ("throw" ===
|
|
19118
|
-
return
|
|
19142
|
+
function makeInvokeMethod(e, r, n) {
|
|
19143
|
+
var o = h;
|
|
19144
|
+
return function (i, a) {
|
|
19145
|
+
if (o === f) throw new Error("Generator is already running");
|
|
19146
|
+
if (o === s) {
|
|
19147
|
+
if ("throw" === i) throw a;
|
|
19148
|
+
return {
|
|
19149
|
+
value: t,
|
|
19150
|
+
done: !0
|
|
19151
|
+
};
|
|
19119
19152
|
}
|
|
19120
|
-
for (
|
|
19121
|
-
var
|
|
19122
|
-
if (
|
|
19123
|
-
var
|
|
19124
|
-
if (
|
|
19125
|
-
if (
|
|
19126
|
-
return
|
|
19153
|
+
for (n.method = i, n.arg = a;;) {
|
|
19154
|
+
var c = n.delegate;
|
|
19155
|
+
if (c) {
|
|
19156
|
+
var u = maybeInvokeDelegate(c, n);
|
|
19157
|
+
if (u) {
|
|
19158
|
+
if (u === y) continue;
|
|
19159
|
+
return u;
|
|
19127
19160
|
}
|
|
19128
19161
|
}
|
|
19129
|
-
if ("next" ===
|
|
19130
|
-
if (
|
|
19131
|
-
|
|
19132
|
-
} else "return" ===
|
|
19133
|
-
|
|
19134
|
-
var
|
|
19135
|
-
if ("normal" ===
|
|
19136
|
-
if (
|
|
19162
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
19163
|
+
if (o === h) throw o = s, n.arg;
|
|
19164
|
+
n.dispatchException(n.arg);
|
|
19165
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
19166
|
+
o = f;
|
|
19167
|
+
var p = tryCatch(e, r, n);
|
|
19168
|
+
if ("normal" === p.type) {
|
|
19169
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
19137
19170
|
return {
|
|
19138
|
-
value:
|
|
19139
|
-
done:
|
|
19171
|
+
value: p.arg,
|
|
19172
|
+
done: n.done
|
|
19140
19173
|
};
|
|
19141
19174
|
}
|
|
19142
|
-
"throw" ===
|
|
19175
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
19143
19176
|
}
|
|
19144
19177
|
};
|
|
19145
19178
|
}
|
|
19146
|
-
function maybeInvokeDelegate(
|
|
19147
|
-
var
|
|
19148
|
-
|
|
19149
|
-
if (
|
|
19150
|
-
var
|
|
19151
|
-
if ("throw" ===
|
|
19152
|
-
var
|
|
19153
|
-
return
|
|
19154
|
-
}
|
|
19155
|
-
function pushTryEntry(
|
|
19156
|
-
var
|
|
19157
|
-
tryLoc:
|
|
19179
|
+
function maybeInvokeDelegate(e, r) {
|
|
19180
|
+
var n = r.method,
|
|
19181
|
+
o = e.iterator[n];
|
|
19182
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
19183
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
19184
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
19185
|
+
var a = i.arg;
|
|
19186
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
19187
|
+
}
|
|
19188
|
+
function pushTryEntry(t) {
|
|
19189
|
+
var e = {
|
|
19190
|
+
tryLoc: t[0]
|
|
19158
19191
|
};
|
|
19159
|
-
1 in
|
|
19192
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
19160
19193
|
}
|
|
19161
|
-
function resetTryEntry(
|
|
19162
|
-
var
|
|
19163
|
-
|
|
19194
|
+
function resetTryEntry(t) {
|
|
19195
|
+
var e = t.completion || {};
|
|
19196
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
19164
19197
|
}
|
|
19165
|
-
function Context(
|
|
19198
|
+
function Context(t) {
|
|
19166
19199
|
this.tryEntries = [{
|
|
19167
19200
|
tryLoc: "root"
|
|
19168
|
-
}],
|
|
19169
|
-
}
|
|
19170
|
-
function values(
|
|
19171
|
-
if (
|
|
19172
|
-
var
|
|
19173
|
-
if (
|
|
19174
|
-
if ("function" == typeof
|
|
19175
|
-
if (!isNaN(
|
|
19176
|
-
var
|
|
19177
|
-
|
|
19178
|
-
for (; ++
|
|
19179
|
-
return next.value =
|
|
19201
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
19202
|
+
}
|
|
19203
|
+
function values(e) {
|
|
19204
|
+
if (e || "" === e) {
|
|
19205
|
+
var r = e[a];
|
|
19206
|
+
if (r) return r.call(e);
|
|
19207
|
+
if ("function" == typeof e.next) return e;
|
|
19208
|
+
if (!isNaN(e.length)) {
|
|
19209
|
+
var o = -1,
|
|
19210
|
+
i = function next() {
|
|
19211
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
19212
|
+
return next.value = t, next.done = !0, next;
|
|
19180
19213
|
};
|
|
19181
|
-
return
|
|
19214
|
+
return i.next = i;
|
|
19182
19215
|
}
|
|
19183
19216
|
}
|
|
19184
|
-
|
|
19185
|
-
next: doneResult
|
|
19186
|
-
};
|
|
19187
|
-
}
|
|
19188
|
-
function doneResult() {
|
|
19189
|
-
return {
|
|
19190
|
-
value: undefined,
|
|
19191
|
-
done: !0
|
|
19192
|
-
};
|
|
19217
|
+
throw new TypeError(_typeof(e) + " is not iterable");
|
|
19193
19218
|
}
|
|
19194
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
19219
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
19195
19220
|
value: GeneratorFunctionPrototype,
|
|
19196
19221
|
configurable: !0
|
|
19197
|
-
}),
|
|
19222
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
19198
19223
|
value: GeneratorFunction,
|
|
19199
19224
|
configurable: !0
|
|
19200
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
19201
|
-
var
|
|
19202
|
-
return !!
|
|
19203
|
-
},
|
|
19204
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
19205
|
-
},
|
|
19225
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
19226
|
+
var e = "function" == typeof t && t.constructor;
|
|
19227
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
19228
|
+
}, e.mark = function (t) {
|
|
19229
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
19230
|
+
}, e.awrap = function (t) {
|
|
19206
19231
|
return {
|
|
19207
|
-
__await:
|
|
19232
|
+
__await: t
|
|
19208
19233
|
};
|
|
19209
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
19234
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
19210
19235
|
return this;
|
|
19211
|
-
}),
|
|
19212
|
-
void 0 ===
|
|
19213
|
-
var
|
|
19214
|
-
return
|
|
19215
|
-
return
|
|
19236
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
19237
|
+
void 0 === i && (i = Promise);
|
|
19238
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
19239
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
19240
|
+
return t.done ? t.value : a.next();
|
|
19216
19241
|
});
|
|
19217
|
-
}, defineIteratorMethods(
|
|
19242
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
19218
19243
|
return this;
|
|
19219
|
-
}), define(
|
|
19244
|
+
}), define(g, "toString", function () {
|
|
19220
19245
|
return "[object Generator]";
|
|
19221
|
-
}),
|
|
19222
|
-
var
|
|
19223
|
-
|
|
19224
|
-
for (var
|
|
19225
|
-
return
|
|
19226
|
-
for (;
|
|
19227
|
-
var
|
|
19228
|
-
if (
|
|
19246
|
+
}), e.keys = function (t) {
|
|
19247
|
+
var e = Object(t),
|
|
19248
|
+
r = [];
|
|
19249
|
+
for (var n in e) r.push(n);
|
|
19250
|
+
return r.reverse(), function next() {
|
|
19251
|
+
for (; r.length;) {
|
|
19252
|
+
var t = r.pop();
|
|
19253
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
19229
19254
|
}
|
|
19230
19255
|
return next.done = !0, next;
|
|
19231
19256
|
};
|
|
19232
|
-
},
|
|
19257
|
+
}, e.values = values, Context.prototype = {
|
|
19233
19258
|
constructor: Context,
|
|
19234
|
-
reset: function reset(
|
|
19235
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
19259
|
+
reset: function reset(e) {
|
|
19260
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
19236
19261
|
},
|
|
19237
19262
|
stop: function stop() {
|
|
19238
19263
|
this.done = !0;
|
|
19239
|
-
var
|
|
19240
|
-
if ("throw" ===
|
|
19264
|
+
var t = this.tryEntries[0].completion;
|
|
19265
|
+
if ("throw" === t.type) throw t.arg;
|
|
19241
19266
|
return this.rval;
|
|
19242
19267
|
},
|
|
19243
|
-
dispatchException: function dispatchException(
|
|
19244
|
-
if (this.done) throw
|
|
19245
|
-
var
|
|
19246
|
-
function handle(
|
|
19247
|
-
return
|
|
19268
|
+
dispatchException: function dispatchException(e) {
|
|
19269
|
+
if (this.done) throw e;
|
|
19270
|
+
var r = this;
|
|
19271
|
+
function handle(n, o) {
|
|
19272
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
19248
19273
|
}
|
|
19249
|
-
for (var
|
|
19250
|
-
var
|
|
19251
|
-
|
|
19252
|
-
if ("root" ===
|
|
19253
|
-
if (
|
|
19254
|
-
var
|
|
19255
|
-
|
|
19256
|
-
if (
|
|
19257
|
-
if (this.prev <
|
|
19258
|
-
if (this.prev <
|
|
19259
|
-
} else if (
|
|
19260
|
-
if (this.prev <
|
|
19274
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
19275
|
+
var i = this.tryEntries[o],
|
|
19276
|
+
a = i.completion;
|
|
19277
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
19278
|
+
if (i.tryLoc <= this.prev) {
|
|
19279
|
+
var c = n.call(i, "catchLoc"),
|
|
19280
|
+
u = n.call(i, "finallyLoc");
|
|
19281
|
+
if (c && u) {
|
|
19282
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
19283
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
19284
|
+
} else if (c) {
|
|
19285
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
19261
19286
|
} else {
|
|
19262
|
-
if (!
|
|
19263
|
-
if (this.prev <
|
|
19287
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
19288
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
19264
19289
|
}
|
|
19265
19290
|
}
|
|
19266
19291
|
}
|
|
19267
19292
|
},
|
|
19268
|
-
abrupt: function abrupt(
|
|
19269
|
-
for (var
|
|
19270
|
-
var
|
|
19271
|
-
if (
|
|
19272
|
-
var
|
|
19293
|
+
abrupt: function abrupt(t, e) {
|
|
19294
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
19295
|
+
var o = this.tryEntries[r];
|
|
19296
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
19297
|
+
var i = o;
|
|
19273
19298
|
break;
|
|
19274
19299
|
}
|
|
19275
19300
|
}
|
|
19276
|
-
|
|
19277
|
-
var
|
|
19278
|
-
return
|
|
19301
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
19302
|
+
var a = i ? i.completion : {};
|
|
19303
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
19279
19304
|
},
|
|
19280
|
-
complete: function complete(
|
|
19281
|
-
if ("throw" ===
|
|
19282
|
-
return "break" ===
|
|
19305
|
+
complete: function complete(t, e) {
|
|
19306
|
+
if ("throw" === t.type) throw t.arg;
|
|
19307
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
19283
19308
|
},
|
|
19284
|
-
finish: function finish(
|
|
19285
|
-
for (var
|
|
19286
|
-
var
|
|
19287
|
-
if (
|
|
19309
|
+
finish: function finish(t) {
|
|
19310
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
19311
|
+
var r = this.tryEntries[e];
|
|
19312
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
19288
19313
|
}
|
|
19289
19314
|
},
|
|
19290
|
-
"catch": function _catch(
|
|
19291
|
-
for (var
|
|
19292
|
-
var
|
|
19293
|
-
if (
|
|
19294
|
-
var
|
|
19295
|
-
if ("throw" ===
|
|
19296
|
-
var
|
|
19297
|
-
resetTryEntry(
|
|
19315
|
+
"catch": function _catch(t) {
|
|
19316
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
19317
|
+
var r = this.tryEntries[e];
|
|
19318
|
+
if (r.tryLoc === t) {
|
|
19319
|
+
var n = r.completion;
|
|
19320
|
+
if ("throw" === n.type) {
|
|
19321
|
+
var o = n.arg;
|
|
19322
|
+
resetTryEntry(r);
|
|
19298
19323
|
}
|
|
19299
|
-
return
|
|
19324
|
+
return o;
|
|
19300
19325
|
}
|
|
19301
19326
|
}
|
|
19302
19327
|
throw new Error("illegal catch attempt");
|
|
19303
19328
|
},
|
|
19304
|
-
delegateYield: function delegateYield(
|
|
19329
|
+
delegateYield: function delegateYield(e, r, n) {
|
|
19305
19330
|
return this.delegate = {
|
|
19306
|
-
iterator: values(
|
|
19307
|
-
resultName:
|
|
19308
|
-
nextLoc:
|
|
19309
|
-
}, "next" === this.method && (this.arg =
|
|
19331
|
+
iterator: values(e),
|
|
19332
|
+
resultName: r,
|
|
19333
|
+
nextLoc: n
|
|
19334
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
19310
19335
|
}
|
|
19311
|
-
},
|
|
19336
|
+
}, e;
|
|
19312
19337
|
}
|
|
19313
19338
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
19314
19339
|
|
|
@@ -19316,14 +19341,14 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
|
|
|
19316
19341
|
/* 529 */
|
|
19317
19342
|
/***/ (function(module) {
|
|
19318
19343
|
|
|
19319
|
-
function _typeof(
|
|
19344
|
+
function _typeof(o) {
|
|
19320
19345
|
"@babel/helpers - typeof";
|
|
19321
19346
|
|
|
19322
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
19323
|
-
return typeof
|
|
19324
|
-
} : function (
|
|
19325
|
-
return
|
|
19326
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(
|
|
19347
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
19348
|
+
return typeof o;
|
|
19349
|
+
} : function (o) {
|
|
19350
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
19351
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
|
19327
19352
|
}
|
|
19328
19353
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
19329
19354
|
|
|
@@ -22188,8 +22213,8 @@ function defaultGetY(p) {
|
|
|
22188
22213
|
}
|
|
22189
22214
|
|
|
22190
22215
|
;// CONCATENATED MODULE: ./node_modules/d3-delaunay/src/path.js
|
|
22191
|
-
|
|
22192
|
-
|
|
22216
|
+
const path_epsilon = 1e-6;
|
|
22217
|
+
let Path = /*#__PURE__*/function () {
|
|
22193
22218
|
function Path() {
|
|
22194
22219
|
this._x0 = this._y0 =
|
|
22195
22220
|
// start of current subpath
|
|
@@ -22211,7 +22236,7 @@ var Path = /*#__PURE__*/function () {
|
|
|
22211
22236
|
};
|
|
22212
22237
|
_proto.arc = function arc(x, y, r) {
|
|
22213
22238
|
x = +x, y = +y, r = +r;
|
|
22214
|
-
|
|
22239
|
+
const x0 = x + r,
|
|
22215
22240
|
y0 = y;
|
|
22216
22241
|
if (r < 0) throw new Error("negative radius");
|
|
22217
22242
|
if (this._x1 === null) this._ += "M" + x0 + "," + y0;else if (Math.abs(this._x1 - x0) > path_epsilon || Math.abs(this._y1 - y0) > path_epsilon) this._ += "L" + x0 + "," + y0;
|
|
@@ -22228,7 +22253,7 @@ var Path = /*#__PURE__*/function () {
|
|
|
22228
22253
|
}();
|
|
22229
22254
|
|
|
22230
22255
|
;// CONCATENATED MODULE: ./node_modules/d3-delaunay/src/polygon.js
|
|
22231
|
-
|
|
22256
|
+
let Polygon = /*#__PURE__*/function () {
|
|
22232
22257
|
function Polygon() {
|
|
22233
22258
|
this._ = [];
|
|
22234
22259
|
}
|
|
@@ -22248,21 +22273,16 @@ var Polygon = /*#__PURE__*/function () {
|
|
|
22248
22273
|
return Polygon;
|
|
22249
22274
|
}();
|
|
22250
22275
|
|
|
22251
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/readOnlyError.js
|
|
22252
|
-
function _readOnlyError(name) {
|
|
22253
|
-
throw new TypeError("\"" + name + "\" is read-only");
|
|
22254
|
-
}
|
|
22255
22276
|
;// CONCATENATED MODULE: ./node_modules/d3-delaunay/src/voronoi.js
|
|
22256
22277
|
|
|
22257
|
-
|
|
22258
22278
|
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: !0 }; return { done: !1, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
22259
22279
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
22260
22280
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
22261
22281
|
|
|
22262
22282
|
|
|
22263
|
-
|
|
22283
|
+
let Voronoi = /*#__PURE__*/function () {
|
|
22264
22284
|
function Voronoi(delaunay, _temp) {
|
|
22265
|
-
|
|
22285
|
+
let _ref = _temp === void 0 ? [0, 0, 960, 500] : _temp,
|
|
22266
22286
|
xmin = _ref[0],
|
|
22267
22287
|
ymin = _ref[1],
|
|
22268
22288
|
xmax = _ref[2],
|
|
@@ -22282,29 +22302,29 @@ var Voronoi = /*#__PURE__*/function () {
|
|
|
22282
22302
|
return this;
|
|
22283
22303
|
};
|
|
22284
22304
|
_proto._init = function _init() {
|
|
22285
|
-
|
|
22305
|
+
const _this$delaunay = this.delaunay,
|
|
22286
22306
|
points = _this$delaunay.points,
|
|
22287
22307
|
hull = _this$delaunay.hull,
|
|
22288
22308
|
triangles = _this$delaunay.triangles,
|
|
22289
22309
|
vectors = this.vectors;
|
|
22290
|
-
|
|
22310
|
+
let bx, by; // lazily computed barycenter of the hull
|
|
22291
22311
|
|
|
22292
22312
|
// Compute circumcenters.
|
|
22293
|
-
|
|
22294
|
-
for (
|
|
22295
|
-
|
|
22313
|
+
const circumcenters = this.circumcenters = this._circumcenters.subarray(0, triangles.length / 3 * 2);
|
|
22314
|
+
for (let i = 0, j = 0, n = triangles.length, x, y; i < n; i += 3, j += 2) {
|
|
22315
|
+
const t1 = triangles[i] * 2,
|
|
22296
22316
|
t2 = triangles[i + 1] * 2,
|
|
22297
22317
|
t3 = triangles[i + 2] * 2,
|
|
22298
|
-
|
|
22299
|
-
|
|
22318
|
+
x1 = points[t1],
|
|
22319
|
+
y1 = points[t1 + 1],
|
|
22300
22320
|
x2 = points[t2],
|
|
22301
22321
|
y2 = points[t2 + 1],
|
|
22302
22322
|
x3 = points[t3],
|
|
22303
22323
|
y3 = points[t3 + 1],
|
|
22304
|
-
dx = x2 -
|
|
22305
|
-
dy = y2 -
|
|
22306
|
-
ex = x3 -
|
|
22307
|
-
ey = y3 -
|
|
22324
|
+
dx = x2 - x1,
|
|
22325
|
+
dy = y2 - y1,
|
|
22326
|
+
ex = x3 - x1,
|
|
22327
|
+
ey = y3 - y1,
|
|
22308
22328
|
ab = (dx * ey - dy * ex) * 2;
|
|
22309
22329
|
if (Math.abs(ab) < 1e-9) {
|
|
22310
22330
|
// For a degenerate triangle, the circumcenter is at the infinity, in a
|
|
@@ -22313,44 +22333,44 @@ var Voronoi = /*#__PURE__*/function () {
|
|
|
22313
22333
|
if (bx === undefined) {
|
|
22314
22334
|
bx = by = 0;
|
|
22315
22335
|
for (var _iterator = _createForOfIteratorHelperLoose(hull), _step; !(_step = _iterator()).done;) {
|
|
22316
|
-
|
|
22317
|
-
bx += points[
|
|
22336
|
+
const i = _step.value;
|
|
22337
|
+
bx += points[i * 2], by += points[i * 2 + 1];
|
|
22318
22338
|
}
|
|
22319
22339
|
bx /= hull.length, by /= hull.length;
|
|
22320
22340
|
}
|
|
22321
|
-
|
|
22322
|
-
x = (
|
|
22323
|
-
y = (
|
|
22341
|
+
const a = 1e9 * Math.sign((bx - x1) * ey - (by - y1) * ex);
|
|
22342
|
+
x = (x1 + x3) / 2 - a * ey;
|
|
22343
|
+
y = (y1 + y3) / 2 + a * ex;
|
|
22324
22344
|
} else {
|
|
22325
|
-
|
|
22345
|
+
const d = 1 / ab,
|
|
22326
22346
|
bl = dx * dx + dy * dy,
|
|
22327
22347
|
cl = ex * ex + ey * ey;
|
|
22328
|
-
x =
|
|
22329
|
-
y =
|
|
22348
|
+
x = x1 + (ey * bl - dy * cl) * d;
|
|
22349
|
+
y = y1 + (dx * cl - ex * bl) * d;
|
|
22330
22350
|
}
|
|
22331
22351
|
circumcenters[j] = x;
|
|
22332
22352
|
circumcenters[j + 1] = y;
|
|
22333
22353
|
}
|
|
22334
22354
|
|
|
22335
22355
|
// Compute exterior cell rays.
|
|
22336
|
-
|
|
22356
|
+
let h = hull[hull.length - 1],
|
|
22337
22357
|
p0,
|
|
22338
22358
|
p1 = h * 4,
|
|
22339
22359
|
x0,
|
|
22340
|
-
|
|
22360
|
+
x1 = points[2 * h],
|
|
22341
22361
|
y0,
|
|
22342
|
-
|
|
22362
|
+
y1 = points[2 * h + 1];
|
|
22343
22363
|
vectors.fill(0);
|
|
22344
|
-
for (
|
|
22345
|
-
h = hull[
|
|
22346
|
-
p0 = p1, x0 =
|
|
22347
|
-
p1 = h * 4,
|
|
22348
|
-
vectors[p0 + 2] = vectors[p1] = y0 -
|
|
22349
|
-
vectors[p0 + 3] = vectors[p1 + 1] =
|
|
22364
|
+
for (let i = 0; i < hull.length; ++i) {
|
|
22365
|
+
h = hull[i];
|
|
22366
|
+
p0 = p1, x0 = x1, y0 = y1;
|
|
22367
|
+
p1 = h * 4, x1 = points[2 * h], y1 = points[2 * h + 1];
|
|
22368
|
+
vectors[p0 + 2] = vectors[p1] = y0 - y1;
|
|
22369
|
+
vectors[p0 + 3] = vectors[p1 + 1] = x1 - x0;
|
|
22350
22370
|
}
|
|
22351
22371
|
};
|
|
22352
22372
|
_proto.render = function render(context) {
|
|
22353
|
-
|
|
22373
|
+
const buffer = context == null ? context = new Path() : undefined,
|
|
22354
22374
|
_this$delaunay2 = this.delaunay,
|
|
22355
22375
|
halfedges = _this$delaunay2.halfedges,
|
|
22356
22376
|
inedges = _this$delaunay2.inedges,
|
|
@@ -22358,10 +22378,10 @@ var Voronoi = /*#__PURE__*/function () {
|
|
|
22358
22378
|
circumcenters = this.circumcenters,
|
|
22359
22379
|
vectors = this.vectors;
|
|
22360
22380
|
if (hull.length <= 1) return null;
|
|
22361
|
-
for (
|
|
22362
|
-
|
|
22381
|
+
for (let i = 0, n = halfedges.length; i < n; ++i) {
|
|
22382
|
+
const j = halfedges[i];
|
|
22363
22383
|
if (j < i) continue;
|
|
22364
|
-
|
|
22384
|
+
const ti = Math.floor(i / 3) * 2,
|
|
22365
22385
|
tj = Math.floor(j / 3) * 2,
|
|
22366
22386
|
xi = circumcenters[ti],
|
|
22367
22387
|
yi = circumcenters[ti + 1],
|
|
@@ -22369,11 +22389,11 @@ var Voronoi = /*#__PURE__*/function () {
|
|
|
22369
22389
|
yj = circumcenters[tj + 1];
|
|
22370
22390
|
this._renderSegment(xi, yi, xj, yj, context);
|
|
22371
22391
|
}
|
|
22372
|
-
|
|
22392
|
+
let h0,
|
|
22373
22393
|
h1 = hull[hull.length - 1];
|
|
22374
|
-
for (
|
|
22375
|
-
h0 = h1, h1 = hull[
|
|
22376
|
-
|
|
22394
|
+
for (let i = 0; i < hull.length; ++i) {
|
|
22395
|
+
h0 = h1, h1 = hull[i];
|
|
22396
|
+
const t = Math.floor(inedges[h1] / 3) * 2,
|
|
22377
22397
|
x = circumcenters[t],
|
|
22378
22398
|
y = circumcenters[t + 1],
|
|
22379
22399
|
v = h0 * 4,
|
|
@@ -22383,19 +22403,19 @@ var Voronoi = /*#__PURE__*/function () {
|
|
|
22383
22403
|
return buffer && buffer.value();
|
|
22384
22404
|
};
|
|
22385
22405
|
_proto.renderBounds = function renderBounds(context) {
|
|
22386
|
-
|
|
22406
|
+
const buffer = context == null ? context = new Path() : undefined;
|
|
22387
22407
|
context.rect(this.xmin, this.ymin, this.xmax - this.xmin, this.ymax - this.ymin);
|
|
22388
22408
|
return buffer && buffer.value();
|
|
22389
22409
|
};
|
|
22390
22410
|
_proto.renderCell = function renderCell(i, context) {
|
|
22391
|
-
|
|
22411
|
+
const buffer = context == null ? context = new Path() : undefined,
|
|
22392
22412
|
points = this._clip(i);
|
|
22393
22413
|
if (points === null || !points.length) return;
|
|
22394
22414
|
context.moveTo(points[0], points[1]);
|
|
22395
|
-
|
|
22415
|
+
let n = points.length;
|
|
22396
22416
|
while (points[0] === points[n - 2] && points[1] === points[n - 1] && n > 1) n -= 2;
|
|
22397
|
-
for (
|
|
22398
|
-
if (points[
|
|
22417
|
+
for (let i = 2; i < n; i += 2) {
|
|
22418
|
+
if (points[i] !== points[i - 2] || points[i + 1] !== points[i - 1]) context.lineTo(points[i], points[i + 1]);
|
|
22399
22419
|
}
|
|
22400
22420
|
context.closePath();
|
|
22401
22421
|
return buffer && buffer.value();
|
|
@@ -22431,13 +22451,13 @@ var Voronoi = /*#__PURE__*/function () {
|
|
|
22431
22451
|
}, cellPolygons, this);
|
|
22432
22452
|
});
|
|
22433
22453
|
_proto.cellPolygon = function cellPolygon(i) {
|
|
22434
|
-
|
|
22454
|
+
const polygon = new Polygon();
|
|
22435
22455
|
this.renderCell(i, polygon);
|
|
22436
22456
|
return polygon.value();
|
|
22437
22457
|
};
|
|
22438
22458
|
_proto._renderSegment = function _renderSegment(x0, y0, x1, y1, context) {
|
|
22439
|
-
|
|
22440
|
-
|
|
22459
|
+
let S;
|
|
22460
|
+
const c0 = this._regioncode(x0, y0),
|
|
22441
22461
|
c1 = this._regioncode(x1, y1);
|
|
22442
22462
|
if (c0 === 0 && c1 === 0) {
|
|
22443
22463
|
context.moveTo(x0, y0);
|
|
@@ -22510,17 +22530,17 @@ var Voronoi = /*#__PURE__*/function () {
|
|
|
22510
22530
|
}, neighbors, this);
|
|
22511
22531
|
});
|
|
22512
22532
|
_proto._cell = function _cell(i) {
|
|
22513
|
-
|
|
22533
|
+
const circumcenters = this.circumcenters,
|
|
22514
22534
|
_this$delaunay3 = this.delaunay,
|
|
22515
22535
|
inedges = _this$delaunay3.inedges,
|
|
22516
22536
|
halfedges = _this$delaunay3.halfedges,
|
|
22517
22537
|
triangles = _this$delaunay3.triangles,
|
|
22518
22538
|
e0 = inedges[i];
|
|
22519
22539
|
if (e0 === -1) return null; // coincident point
|
|
22520
|
-
|
|
22521
|
-
|
|
22540
|
+
const points = [];
|
|
22541
|
+
let e = e0;
|
|
22522
22542
|
do {
|
|
22523
|
-
|
|
22543
|
+
const t = Math.floor(e / 3);
|
|
22524
22544
|
points.push(circumcenters[t * 2], circumcenters[t * 2 + 1]);
|
|
22525
22545
|
e = e % 3 === 2 ? e - 2 : e + 1;
|
|
22526
22546
|
if (triangles[e] !== i) break; // bad triangulation
|
|
@@ -22533,15 +22553,15 @@ var Voronoi = /*#__PURE__*/function () {
|
|
|
22533
22553
|
if (i === 0 && this.delaunay.hull.length === 1) {
|
|
22534
22554
|
return [this.xmax, this.ymin, this.xmax, this.ymax, this.xmin, this.ymax, this.xmin, this.ymin];
|
|
22535
22555
|
}
|
|
22536
|
-
|
|
22556
|
+
const points = this._cell(i);
|
|
22537
22557
|
if (points === null) return null;
|
|
22538
|
-
|
|
22558
|
+
const V = this.vectors,
|
|
22539
22559
|
v = i * 4;
|
|
22540
22560
|
return this._simplify(V[v] || V[v + 1] ? this._clipInfinite(i, points, V[v], V[v + 1], V[v + 2], V[v + 3]) : this._clipFinite(i, points));
|
|
22541
22561
|
};
|
|
22542
22562
|
_proto._clipFinite = function _clipFinite(i, points) {
|
|
22543
|
-
|
|
22544
|
-
|
|
22563
|
+
const n = points.length;
|
|
22564
|
+
let P = null,
|
|
22545
22565
|
x0,
|
|
22546
22566
|
y0,
|
|
22547
22567
|
x1 = points[n - 2],
|
|
@@ -22550,18 +22570,14 @@ var Voronoi = /*#__PURE__*/function () {
|
|
|
22550
22570
|
c1 = this._regioncode(x1, y1),
|
|
22551
22571
|
e0,
|
|
22552
22572
|
e1 = 0;
|
|
22553
|
-
for (
|
|
22573
|
+
for (let j = 0; j < n; j += 2) {
|
|
22554
22574
|
x0 = x1, y0 = y1, x1 = points[j], y1 = points[j + 1];
|
|
22555
22575
|
c0 = c1, c1 = this._regioncode(x1, y1);
|
|
22556
22576
|
if (c0 === 0 && c1 === 0) {
|
|
22557
22577
|
e0 = e1, e1 = 0;
|
|
22558
22578
|
if (P) P.push(x1, y1);else P = [x1, y1];
|
|
22559
22579
|
} else {
|
|
22560
|
-
|
|
22561
|
-
sx0 = void 0,
|
|
22562
|
-
sy0 = void 0,
|
|
22563
|
-
sx1 = void 0,
|
|
22564
|
-
sy1 = void 0;
|
|
22580
|
+
let S, sx0, sy0, sx1, sy1;
|
|
22565
22581
|
if (c0 === 0) {
|
|
22566
22582
|
if ((S = this._clipSegment(x0, y0, x1, y1, c0, c1)) === null) continue;
|
|
22567
22583
|
var _S = S;
|
|
@@ -22595,7 +22611,7 @@ var Voronoi = /*#__PURE__*/function () {
|
|
|
22595
22611
|
};
|
|
22596
22612
|
_proto._clipSegment = function _clipSegment(x0, y0, x1, y1, c0, c1) {
|
|
22597
22613
|
// for more robustness, always consider the segment in the same order
|
|
22598
|
-
|
|
22614
|
+
const flip = c0 < c1;
|
|
22599
22615
|
if (flip) {
|
|
22600
22616
|
var _ref2 = [x1, y1, x0, y0, c1, c0];
|
|
22601
22617
|
x0 = _ref2[0];
|
|
@@ -22608,22 +22624,22 @@ var Voronoi = /*#__PURE__*/function () {
|
|
|
22608
22624
|
while (!0) {
|
|
22609
22625
|
if (c0 === 0 && c1 === 0) return flip ? [x1, y1, x0, y0] : [x0, y0, x1, y1];
|
|
22610
22626
|
if (c0 & c1) return null;
|
|
22611
|
-
|
|
22612
|
-
y
|
|
22627
|
+
let x,
|
|
22628
|
+
y,
|
|
22613
22629
|
c = c0 || c1;
|
|
22614
22630
|
if (c & 8) x = x0 + (x1 - x0) * (this.ymax - y0) / (y1 - y0), y = this.ymax;else if (c & 4) x = x0 + (x1 - x0) * (this.ymin - y0) / (y1 - y0), y = this.ymin;else if (c & 2) y = y0 + (y1 - y0) * (this.xmax - x0) / (x1 - x0), x = this.xmax;else y = y0 + (y1 - y0) * (this.xmin - x0) / (x1 - x0), x = this.xmin;
|
|
22615
22631
|
if (c0) x0 = x, y0 = y, c0 = this._regioncode(x0, y0);else x1 = x, y1 = y, c1 = this._regioncode(x1, y1);
|
|
22616
22632
|
}
|
|
22617
22633
|
};
|
|
22618
22634
|
_proto._clipInfinite = function _clipInfinite(i, points, vx0, vy0, vxn, vyn) {
|
|
22619
|
-
|
|
22635
|
+
let P = Array.from(points),
|
|
22620
22636
|
p;
|
|
22621
22637
|
if (p = this._project(P[0], P[1], vx0, vy0)) P.unshift(p[0], p[1]);
|
|
22622
22638
|
if (p = this._project(P[P.length - 2], P[P.length - 1], vxn, vyn)) P.push(p[0], p[1]);
|
|
22623
22639
|
if (P = this._clipFinite(i, P)) {
|
|
22624
|
-
for (
|
|
22625
|
-
|
|
22626
|
-
if (
|
|
22640
|
+
for (let j = 0, n = P.length, c0, c1 = this._edgecode(P[n - 2], P[n - 1]); j < n; j += 2) {
|
|
22641
|
+
c0 = c1, c1 = this._edgecode(P[j], P[j + 1]);
|
|
22642
|
+
if (c0 && c1) j = this._edge(i, c0, c1, P, j), n = P.length;
|
|
22627
22643
|
}
|
|
22628
22644
|
} else if (this.contains(i, (this.xmin + this.xmax) / 2, (this.ymin + this.ymax) / 2)) {
|
|
22629
22645
|
P = [this.xmin, this.ymin, this.xmax, this.ymin, this.xmax, this.ymax, this.xmin, this.ymax];
|
|
@@ -22632,8 +22648,7 @@ var Voronoi = /*#__PURE__*/function () {
|
|
|
22632
22648
|
};
|
|
22633
22649
|
_proto._edge = function _edge(i, e0, e1, P, j) {
|
|
22634
22650
|
while (e0 !== e1) {
|
|
22635
|
-
|
|
22636
|
-
y = void 0;
|
|
22651
|
+
let x, y;
|
|
22637
22652
|
switch (e0) {
|
|
22638
22653
|
case 5:
|
|
22639
22654
|
e0 = 4;
|
|
@@ -22677,7 +22692,7 @@ var Voronoi = /*#__PURE__*/function () {
|
|
|
22677
22692
|
return j;
|
|
22678
22693
|
};
|
|
22679
22694
|
_proto._project = function _project(x0, y0, vx, vy) {
|
|
22680
|
-
|
|
22695
|
+
let t = Infinity,
|
|
22681
22696
|
c,
|
|
22682
22697
|
x,
|
|
22683
22698
|
y;
|
|
@@ -22709,8 +22724,8 @@ var Voronoi = /*#__PURE__*/function () {
|
|
|
22709
22724
|
};
|
|
22710
22725
|
_proto._simplify = function _simplify(P) {
|
|
22711
22726
|
if (P && P.length > 4) {
|
|
22712
|
-
for (
|
|
22713
|
-
|
|
22727
|
+
for (let i = 0; i < P.length; i += 2) {
|
|
22728
|
+
const j = (i + 2) % P.length,
|
|
22714
22729
|
k = (i + 4) % P.length;
|
|
22715
22730
|
if (P[i] === P[j] && P[j] === P[k] || P[i + 1] === P[j + 1] && P[j + 1] === P[k + 1]) {
|
|
22716
22731
|
P.splice(j, 2), i -= 2;
|
|
@@ -22734,7 +22749,7 @@ function delaunay_arrayLikeToArray(arr, len) { if (len == null || len > arr.leng
|
|
|
22734
22749
|
|
|
22735
22750
|
|
|
22736
22751
|
|
|
22737
|
-
|
|
22752
|
+
const tau = 2 * Math.PI,
|
|
22738
22753
|
pow = Math.pow;
|
|
22739
22754
|
function pointX(p) {
|
|
22740
22755
|
return p[0];
|
|
@@ -22745,10 +22760,10 @@ function pointY(p) {
|
|
|
22745
22760
|
|
|
22746
22761
|
// A triangulation is collinear if all its triangles have a non-null area
|
|
22747
22762
|
function collinear(d) {
|
|
22748
|
-
|
|
22763
|
+
const triangles = d.triangles,
|
|
22749
22764
|
coords = d.coords;
|
|
22750
|
-
for (
|
|
22751
|
-
|
|
22765
|
+
for (let i = 0; i < triangles.length; i += 3) {
|
|
22766
|
+
const a = 2 * triangles[i],
|
|
22752
22767
|
b = 2 * triangles[i + 1],
|
|
22753
22768
|
c = 2 * triangles[i + 2],
|
|
22754
22769
|
cross = (coords[c] - coords[a]) * (coords[b + 1] - coords[a + 1]) - (coords[b] - coords[a]) * (coords[c + 1] - coords[a + 1]);
|
|
@@ -22759,7 +22774,7 @@ function collinear(d) {
|
|
|
22759
22774
|
function jitter(x, y, r) {
|
|
22760
22775
|
return [x + Math.sin(x + y) * r, y + Math.cos(x - y) * r];
|
|
22761
22776
|
}
|
|
22762
|
-
|
|
22777
|
+
let Delaunay = /*#__PURE__*/function () {
|
|
22763
22778
|
Delaunay.from = function from(points, fx, fy, that) {
|
|
22764
22779
|
if (fx === void 0) {
|
|
22765
22780
|
fx = pointX;
|
|
@@ -22783,9 +22798,10 @@ var Delaunay = /*#__PURE__*/function () {
|
|
|
22783
22798
|
return this;
|
|
22784
22799
|
};
|
|
22785
22800
|
_proto._init = function _init() {
|
|
22786
|
-
var _this = this
|
|
22787
|
-
|
|
22801
|
+
var _this = this;
|
|
22802
|
+
const d = this._delaunator,
|
|
22788
22803
|
points = this.points;
|
|
22804
|
+
|
|
22789
22805
|
// check for collinear
|
|
22790
22806
|
if (d.hull && d.hull.length > 2 && collinear(d)) {
|
|
22791
22807
|
this.collinear = Int32Array.from({
|
|
@@ -22797,12 +22813,12 @@ var Delaunay = /*#__PURE__*/function () {
|
|
|
22797
22813
|
_newArrowCheck(this, _this);
|
|
22798
22814
|
return points[2 * i] - points[2 * j] || points[2 * i + 1] - points[2 * j + 1];
|
|
22799
22815
|
}.bind(this)); // for exact neighbors
|
|
22800
|
-
|
|
22816
|
+
const e = this.collinear[0],
|
|
22801
22817
|
f = this.collinear[this.collinear.length - 1],
|
|
22802
22818
|
bounds = [points[2 * e], points[2 * e + 1], points[2 * f], points[2 * f + 1]],
|
|
22803
22819
|
r = 1e-8 * Math.hypot(bounds[3] - bounds[1], bounds[2] - bounds[0]);
|
|
22804
|
-
for (
|
|
22805
|
-
|
|
22820
|
+
for (let i = 0, n = points.length / 2; i < n; ++i) {
|
|
22821
|
+
const p = jitter(points[2 * i], points[2 * i + 1], r);
|
|
22806
22822
|
points[2 * i] = p[0];
|
|
22807
22823
|
points[2 * i + 1] = p[1];
|
|
22808
22824
|
}
|
|
@@ -22810,7 +22826,7 @@ var Delaunay = /*#__PURE__*/function () {
|
|
|
22810
22826
|
} else {
|
|
22811
22827
|
delete this.collinear;
|
|
22812
22828
|
}
|
|
22813
|
-
|
|
22829
|
+
const halfedges = this.halfedges = this._delaunator.halfedges,
|
|
22814
22830
|
hull = this.hull = this._delaunator.hull,
|
|
22815
22831
|
triangles = this.triangles = this._delaunator.triangles,
|
|
22816
22832
|
inedges = this.inedges.fill(-1),
|
|
@@ -22818,12 +22834,12 @@ var Delaunay = /*#__PURE__*/function () {
|
|
|
22818
22834
|
// Compute an index from each point to an (arbitrary) incoming halfedge
|
|
22819
22835
|
// Used to give the first neighbor of each point; for this reason,
|
|
22820
22836
|
// on the hull we give priority to exterior halfedges
|
|
22821
|
-
for (
|
|
22822
|
-
|
|
22823
|
-
if (halfedges[
|
|
22837
|
+
for (let e = 0, n = halfedges.length; e < n; ++e) {
|
|
22838
|
+
const p = triangles[e % 3 === 2 ? e - 2 : e + 1];
|
|
22839
|
+
if (halfedges[e] === -1 || inedges[p] === -1) inedges[p] = e;
|
|
22824
22840
|
}
|
|
22825
|
-
for (
|
|
22826
|
-
hullIndex[hull[
|
|
22841
|
+
for (let i = 0, n = hull.length; i < n; ++i) {
|
|
22842
|
+
hullIndex[hull[i]] = i;
|
|
22827
22843
|
}
|
|
22828
22844
|
|
|
22829
22845
|
// degenerate case: 1 or 2 (distinct) points
|
|
@@ -22920,26 +22936,26 @@ var Delaunay = /*#__PURE__*/function () {
|
|
|
22920
22936
|
i = 0;
|
|
22921
22937
|
}
|
|
22922
22938
|
if ((x = +x, x !== x) || (y = +y, y !== y)) return -1;
|
|
22923
|
-
|
|
22924
|
-
|
|
22939
|
+
const i0 = i;
|
|
22940
|
+
let c;
|
|
22925
22941
|
while ((c = this._step(i, x, y)) >= 0 && c !== i && c !== i0) i = c;
|
|
22926
22942
|
return c;
|
|
22927
22943
|
};
|
|
22928
22944
|
_proto._step = function _step(i, x, y) {
|
|
22929
|
-
|
|
22945
|
+
const inedges = this.inedges,
|
|
22930
22946
|
hull = this.hull,
|
|
22931
22947
|
_hullIndex = this._hullIndex,
|
|
22932
22948
|
halfedges = this.halfedges,
|
|
22933
22949
|
triangles = this.triangles,
|
|
22934
22950
|
points = this.points;
|
|
22935
22951
|
if (inedges[i] === -1 || !points.length) return (i + 1) % (points.length >> 1);
|
|
22936
|
-
|
|
22952
|
+
let c = i,
|
|
22937
22953
|
dc = pow(x - points[i * 2], 2) + pow(y - points[i * 2 + 1], 2);
|
|
22938
|
-
|
|
22939
|
-
|
|
22954
|
+
const e0 = inedges[i];
|
|
22955
|
+
let e = e0;
|
|
22940
22956
|
do {
|
|
22941
|
-
|
|
22942
|
-
|
|
22957
|
+
let t = triangles[e];
|
|
22958
|
+
const dt = pow(x - points[t * 2], 2) + pow(y - points[t * 2 + 1], 2);
|
|
22943
22959
|
if (dt < dc) dc = dt, c = t;
|
|
22944
22960
|
e = e % 3 === 2 ? e - 2 : e + 1;
|
|
22945
22961
|
if (triangles[e] !== i) break; // bad triangulation
|
|
@@ -22955,14 +22971,14 @@ var Delaunay = /*#__PURE__*/function () {
|
|
|
22955
22971
|
return c;
|
|
22956
22972
|
};
|
|
22957
22973
|
_proto.render = function render(context) {
|
|
22958
|
-
|
|
22974
|
+
const buffer = context == null ? context = new Path() : undefined,
|
|
22959
22975
|
points = this.points,
|
|
22960
22976
|
halfedges = this.halfedges,
|
|
22961
22977
|
triangles = this.triangles;
|
|
22962
|
-
for (
|
|
22963
|
-
|
|
22978
|
+
for (let i = 0, n = halfedges.length; i < n; ++i) {
|
|
22979
|
+
const j = halfedges[i];
|
|
22964
22980
|
if (j < i) continue;
|
|
22965
|
-
|
|
22981
|
+
const ti = triangles[i] * 2,
|
|
22966
22982
|
tj = triangles[j] * 2;
|
|
22967
22983
|
context.moveTo(points[ti], points[ti + 1]);
|
|
22968
22984
|
context.lineTo(points[tj], points[tj + 1]);
|
|
@@ -22973,10 +22989,10 @@ var Delaunay = /*#__PURE__*/function () {
|
|
|
22973
22989
|
_proto.renderPoints = function renderPoints(context, r) {
|
|
22974
22990
|
if (r === undefined && (!context || typeof context.moveTo !== "function")) r = context, context = null;
|
|
22975
22991
|
r = r == undefined ? 2 : +r;
|
|
22976
|
-
|
|
22992
|
+
const buffer = context == null ? context = new Path() : undefined,
|
|
22977
22993
|
points = this.points;
|
|
22978
|
-
for (
|
|
22979
|
-
|
|
22994
|
+
for (let i = 0, n = points.length; i < n; i += 2) {
|
|
22995
|
+
const x = points[i],
|
|
22980
22996
|
y = points[i + 1];
|
|
22981
22997
|
context.moveTo(x + r, y);
|
|
22982
22998
|
context.arc(x, y, r, 0, tau);
|
|
@@ -22984,26 +23000,26 @@ var Delaunay = /*#__PURE__*/function () {
|
|
|
22984
23000
|
return buffer && buffer.value();
|
|
22985
23001
|
};
|
|
22986
23002
|
_proto.renderHull = function renderHull(context) {
|
|
22987
|
-
|
|
23003
|
+
const buffer = context == null ? context = new Path() : undefined,
|
|
22988
23004
|
hull = this.hull,
|
|
22989
23005
|
points = this.points,
|
|
22990
23006
|
h = hull[0] * 2,
|
|
22991
23007
|
n = hull.length;
|
|
22992
23008
|
context.moveTo(points[h], points[h + 1]);
|
|
22993
|
-
for (
|
|
22994
|
-
|
|
22995
|
-
context.lineTo(points[
|
|
23009
|
+
for (let i = 1; i < n; ++i) {
|
|
23010
|
+
const h = 2 * hull[i];
|
|
23011
|
+
context.lineTo(points[h], points[h + 1]);
|
|
22996
23012
|
}
|
|
22997
23013
|
context.closePath();
|
|
22998
23014
|
return buffer && buffer.value();
|
|
22999
23015
|
};
|
|
23000
23016
|
_proto.hullPolygon = function hullPolygon() {
|
|
23001
|
-
|
|
23017
|
+
const polygon = new Polygon();
|
|
23002
23018
|
this.renderHull(polygon);
|
|
23003
23019
|
return polygon.value();
|
|
23004
23020
|
};
|
|
23005
23021
|
_proto.renderTriangle = function renderTriangle(i, context) {
|
|
23006
|
-
|
|
23022
|
+
const buffer = context == null ? context = new Path() : undefined,
|
|
23007
23023
|
points = this.points,
|
|
23008
23024
|
triangles = this.triangles,
|
|
23009
23025
|
t0 = triangles[i *= 3] * 2,
|
|
@@ -23040,7 +23056,7 @@ var Delaunay = /*#__PURE__*/function () {
|
|
|
23040
23056
|
}, trianglePolygons, this);
|
|
23041
23057
|
});
|
|
23042
23058
|
_proto.trianglePolygon = function trianglePolygon(i) {
|
|
23043
|
-
|
|
23059
|
+
const polygon = new Polygon();
|
|
23044
23060
|
this.renderTriangle(i, polygon);
|
|
23045
23061
|
return polygon.value();
|
|
23046
23062
|
};
|
|
@@ -23048,10 +23064,10 @@ var Delaunay = /*#__PURE__*/function () {
|
|
|
23048
23064
|
}();
|
|
23049
23065
|
|
|
23050
23066
|
function flatArray(points, fx, fy, that) {
|
|
23051
|
-
|
|
23067
|
+
const n = points.length,
|
|
23052
23068
|
array = new Float64Array(n * 2);
|
|
23053
|
-
for (
|
|
23054
|
-
|
|
23069
|
+
for (let i = 0; i < n; ++i) {
|
|
23070
|
+
const p = points[i];
|
|
23055
23071
|
array[i * 2] = fx.call(that, p, i, points);
|
|
23056
23072
|
array[i * 2 + 1] = fy.call(that, p, i, points);
|
|
23057
23073
|
}
|
|
@@ -23120,14 +23136,14 @@ function flatIterable(points, fx, fy, that) {
|
|
|
23120
23136
|
return area / 2;
|
|
23121
23137
|
}
|
|
23122
23138
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
23123
|
-
function _typeof(
|
|
23139
|
+
function _typeof(o) {
|
|
23124
23140
|
"@babel/helpers - typeof";
|
|
23125
23141
|
|
|
23126
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
23127
|
-
return typeof
|
|
23128
|
-
} : function (
|
|
23129
|
-
return
|
|
23130
|
-
}, _typeof(
|
|
23142
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
23143
|
+
return typeof o;
|
|
23144
|
+
} : function (o) {
|
|
23145
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
23146
|
+
}, _typeof(o);
|
|
23131
23147
|
}
|
|
23132
23148
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
23133
23149
|
|
|
@@ -23166,7 +23182,7 @@ function _defineProperty(obj, key, value) {
|
|
|
23166
23182
|
}
|
|
23167
23183
|
;// CONCATENATED MODULE: ./node_modules/d3-selection/src/sourceEvent.js
|
|
23168
23184
|
/* harmony default export */ function sourceEvent(event) {
|
|
23169
|
-
|
|
23185
|
+
let sourceEvent;
|
|
23170
23186
|
while (sourceEvent = event.sourceEvent) event = sourceEvent;
|
|
23171
23187
|
return event;
|
|
23172
23188
|
}
|
|
@@ -23649,7 +23665,7 @@ function size_createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeo
|
|
|
23649
23665
|
function size_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return size_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return size_arrayLikeToArray(o, minLen); }
|
|
23650
23666
|
function size_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
23651
23667
|
/* harmony default export */ function size() {
|
|
23652
|
-
|
|
23668
|
+
let size = 0;
|
|
23653
23669
|
for (var _iterator = size_createForOfIteratorHelperLoose(this), _step; !(_step = _iterator()).done;) {
|
|
23654
23670
|
_step.value;
|
|
23655
23671
|
++size;
|
|
@@ -24199,10 +24215,10 @@ Selection.prototype = selection.prototype = (_selection$prototype = {
|
|
|
24199
24215
|
;// CONCATENATED MODULE: ./node_modules/d3-drag/src/noevent.js
|
|
24200
24216
|
// These are typically used in conjunction with noevent to ensure that we can
|
|
24201
24217
|
// preventDefault on the event.
|
|
24202
|
-
|
|
24218
|
+
const nonpassive = {
|
|
24203
24219
|
passive: !1
|
|
24204
24220
|
};
|
|
24205
|
-
|
|
24221
|
+
const nonpassivecapture = {
|
|
24206
24222
|
capture: !0,
|
|
24207
24223
|
passive: !1
|
|
24208
24224
|
};
|
|
@@ -24517,7 +24533,7 @@ function rgb_formatHex8() {
|
|
|
24517
24533
|
return "#" + hex(this.r) + hex(this.g) + hex(this.b) + hex((isNaN(this.opacity) ? 1 : this.opacity) * 255);
|
|
24518
24534
|
}
|
|
24519
24535
|
function rgb_formatRgb() {
|
|
24520
|
-
|
|
24536
|
+
const a = clampa(this.opacity);
|
|
24521
24537
|
return "" + (a === 1 ? "rgb(" : "rgba(") + clampi(this.r) + ", " + clampi(this.g) + ", " + clampi(this.b) + (a === 1 ? ")" : ", " + a + ")");
|
|
24522
24538
|
}
|
|
24523
24539
|
function clampa(opacity) {
|
|
@@ -24590,7 +24606,7 @@ src_define(Hsl, hsl, extend(Color, {
|
|
|
24590
24606
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
24591
24607
|
},
|
|
24592
24608
|
formatHsl: function formatHsl() {
|
|
24593
|
-
|
|
24609
|
+
const a = clampa(this.opacity);
|
|
24594
24610
|
return "" + (a === 1 ? "hsl(" : "hsla(") + clamph(this.h) + ", " + clampt(this.s) * 100 + "%, " + clampt(this.l) * 100 + "%" + (a === 1 ? ")" : ", " + a + ")");
|
|
24595
24611
|
}
|
|
24596
24612
|
}));
|
|
@@ -25198,7 +25214,7 @@ var svgNode;
|
|
|
25198
25214
|
|
|
25199
25215
|
/* eslint-disable no-undef */
|
|
25200
25216
|
function parseCss(value) {
|
|
25201
|
-
|
|
25217
|
+
const m = new (typeof DOMMatrix === "function" ? DOMMatrix : WebKitCSSMatrix)(value + "");
|
|
25202
25218
|
return m.isIdentity ? identity : decompose(m.a, m.b, m.c, m.d, m.e, m.f);
|
|
25203
25219
|
}
|
|
25204
25220
|
function parseSvg(value) {
|
|
@@ -25953,7 +25969,7 @@ var src_constant_this = undefined;
|
|
|
25953
25969
|
}).bind(undefined));
|
|
25954
25970
|
;// CONCATENATED MODULE: ./node_modules/d3-brush/src/event.js
|
|
25955
25971
|
function BrushEvent(type, _ref) {
|
|
25956
|
-
|
|
25972
|
+
let sourceEvent = _ref.sourceEvent,
|
|
25957
25973
|
target = _ref.target,
|
|
25958
25974
|
selection = _ref.selection,
|
|
25959
25975
|
mode = _ref.mode,
|
|
@@ -26022,7 +26038,7 @@ var MODE_DRAG = {
|
|
|
26022
26038
|
MODE_CENTER = {
|
|
26023
26039
|
name: "center"
|
|
26024
26040
|
};
|
|
26025
|
-
|
|
26041
|
+
const abs = Math.abs,
|
|
26026
26042
|
max = Math.max,
|
|
26027
26043
|
min = Math.min;
|
|
26028
26044
|
function number1(e) {
|
|
@@ -26308,7 +26324,7 @@ function brush_brush(dim) {
|
|
|
26308
26324
|
lockY,
|
|
26309
26325
|
points = Array.from(event.touches || [event], function (t) {
|
|
26310
26326
|
_newArrowCheck(this, _this);
|
|
26311
|
-
|
|
26327
|
+
const i = t.identifier;
|
|
26312
26328
|
t = src_pointer(t, that);
|
|
26313
26329
|
t.point0 = t.slice();
|
|
26314
26330
|
t.identifier = i;
|
|
@@ -26318,7 +26334,7 @@ function brush_brush(dim) {
|
|
|
26318
26334
|
var emit = emitter(that, arguments, !0).beforestart();
|
|
26319
26335
|
if (type === "overlay") {
|
|
26320
26336
|
if (selection) moving = !0;
|
|
26321
|
-
|
|
26337
|
+
const pts = [points[0], points[1] || points[0]];
|
|
26322
26338
|
state.selection = selection = [[w0 = dim === Y ? W : min(pts[0][0], pts[1][0]), n0 = dim === X ? N : min(pts[0][1], pts[1][1])], [e0 = dim === Y ? E : max(pts[0][0], pts[1][0]), s0 = dim === X ? S : max(pts[0][1], pts[1][1])]];
|
|
26323
26339
|
if (points.length > 1) move(event);
|
|
26324
26340
|
} else {
|
|
@@ -26345,26 +26361,26 @@ function brush_brush(dim) {
|
|
|
26345
26361
|
emit.start(event, mode.name);
|
|
26346
26362
|
function moved(event) {
|
|
26347
26363
|
for (var _iterator = brush_createForOfIteratorHelperLoose(event.changedTouches || [event]), _step; !(_step = _iterator()).done;) {
|
|
26348
|
-
|
|
26364
|
+
const p = _step.value;
|
|
26349
26365
|
for (var _iterator3 = brush_createForOfIteratorHelperLoose(points), _step3; !(_step3 = _iterator3()).done;) {
|
|
26350
|
-
|
|
26366
|
+
const d = _step3.value;
|
|
26351
26367
|
if (d.identifier === p.identifier) d.cur = src_pointer(p, that);
|
|
26352
26368
|
}
|
|
26353
26369
|
}
|
|
26354
26370
|
if (shifting && !lockX && !lockY && points.length === 1) {
|
|
26355
|
-
|
|
26371
|
+
const point = points[0];
|
|
26356
26372
|
if (abs(point.cur[0] - point[0]) > abs(point.cur[1] - point[1])) lockY = !0;else lockX = !0;
|
|
26357
26373
|
}
|
|
26358
26374
|
for (var _iterator2 = brush_createForOfIteratorHelperLoose(points), _step2; !(_step2 = _iterator2()).done;) {
|
|
26359
|
-
|
|
26360
|
-
if (
|
|
26375
|
+
const point = _step2.value;
|
|
26376
|
+
if (point.cur) point[0] = point.cur[0], point[1] = point.cur[1];
|
|
26361
26377
|
}
|
|
26362
26378
|
moving = !0;
|
|
26363
26379
|
src_noevent(event);
|
|
26364
26380
|
move(event);
|
|
26365
26381
|
}
|
|
26366
26382
|
function move(event) {
|
|
26367
|
-
|
|
26383
|
+
const point = points[0],
|
|
26368
26384
|
point0 = point.point0;
|
|
26369
26385
|
var t;
|
|
26370
26386
|
dx = point[0] - point0[0];
|
|
@@ -26555,7 +26571,6 @@ function brush_brush(dim) {
|
|
|
26555
26571
|
|
|
26556
26572
|
;// CONCATENATED MODULE: ./src/module/browser.ts
|
|
26557
26573
|
|
|
26558
|
-
var browser_this = undefined;
|
|
26559
26574
|
/**
|
|
26560
26575
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
26561
26576
|
* billboard.js project is licensed under the MIT license
|
|
@@ -26566,32 +26581,47 @@ var browser_this = undefined;
|
|
|
26566
26581
|
*/
|
|
26567
26582
|
/* eslint-disable no-new-func, no-undef */
|
|
26568
26583
|
|
|
26569
|
-
|
|
26570
|
-
|
|
26571
|
-
|
|
26572
|
-
|
|
26573
|
-
|
|
26574
|
-
|
|
26575
|
-
|
|
26576
|
-
|
|
26577
|
-
|
|
26584
|
+
|
|
26585
|
+
/**
|
|
26586
|
+
* Get global object
|
|
26587
|
+
* @returns {object} window object
|
|
26588
|
+
* @private
|
|
26589
|
+
*/
|
|
26590
|
+
function getGlobal() {
|
|
26591
|
+
return typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis || typeof global === "object" && global !== null && global.Object === Object && global || typeof self === "object" && self !== null && self.Object === Object && self || Function("return this")();
|
|
26592
|
+
}
|
|
26593
|
+
|
|
26594
|
+
/**
|
|
26595
|
+
* Get fallback object
|
|
26596
|
+
* @param {object} w global object
|
|
26597
|
+
* @returns {Array} fallback object array
|
|
26598
|
+
* @private
|
|
26599
|
+
*/
|
|
26600
|
+
function getFallback(w) {
|
|
26601
|
+
var _this = this;
|
|
26602
|
+
const hasRAF = typeof (w == null ? void 0 : w.requestAnimationFrame) === "function",
|
|
26603
|
+
hasRIC = typeof (w == null ? void 0 : w.requestIdleCallback) === "function";
|
|
26604
|
+
return [hasRAF ? w.requestAnimationFrame : function (cb) {
|
|
26605
|
+
_newArrowCheck(this, _this);
|
|
26578
26606
|
return setTimeout(cb, 1);
|
|
26579
|
-
}.bind(
|
|
26580
|
-
|
|
26581
|
-
_newArrowCheck(this, browser_this);
|
|
26607
|
+
}.bind(this), hasRAF ? w.cancelAnimationFrame : function (id) {
|
|
26608
|
+
_newArrowCheck(this, _this);
|
|
26582
26609
|
return clearTimeout(id);
|
|
26583
|
-
}.bind(
|
|
26584
|
-
|
|
26585
|
-
|
|
26586
|
-
doc = win == null ? void 0 : win.document
|
|
26587
|
-
|
|
26588
|
-
|
|
26610
|
+
}.bind(this), hasRIC ? w.requestIdleCallback : requestAnimationFrame, hasRIC ? w.cancelIdleCallback : cancelAnimationFrame];
|
|
26611
|
+
}
|
|
26612
|
+
const win = getGlobal(),
|
|
26613
|
+
doc = win == null ? void 0 : win.document,
|
|
26614
|
+
_getFallback = getFallback(win),
|
|
26615
|
+
requestAnimationFrame = _getFallback[0],
|
|
26616
|
+
cancelAnimationFrame = _getFallback[1],
|
|
26617
|
+
requestIdleCallback = _getFallback[2],
|
|
26618
|
+
cancelIdleCallback = _getFallback[3];
|
|
26589
26619
|
;// CONCATENATED MODULE: ./src/module/util.ts
|
|
26590
26620
|
|
|
26591
26621
|
|
|
26592
26622
|
var util_this = undefined;
|
|
26593
|
-
function ownKeys(
|
|
26594
|
-
function _objectSpread(
|
|
26623
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26624
|
+
function _objectSpread(e) { for (var r = 1, t; r < arguments.length; r++) { t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26595
26625
|
/**
|
|
26596
26626
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
26597
26627
|
* billboard.js project is licensed under the MIT license
|
|
@@ -26601,7 +26631,7 @@ function _objectSpread(target) { for (var i = 1, source; i < arguments.length; i
|
|
|
26601
26631
|
|
|
26602
26632
|
|
|
26603
26633
|
|
|
26604
|
-
|
|
26634
|
+
const isValue = function (v) {
|
|
26605
26635
|
_newArrowCheck(this, util_this);
|
|
26606
26636
|
return v || v === 0;
|
|
26607
26637
|
}.bind(undefined),
|
|
@@ -26694,8 +26724,8 @@ function getOption(options, key, defaultValue) {
|
|
|
26694
26724
|
* @private
|
|
26695
26725
|
*/
|
|
26696
26726
|
function hasValue(dict, value) {
|
|
26697
|
-
var _this2 = this
|
|
26698
|
-
|
|
26727
|
+
var _this2 = this;
|
|
26728
|
+
let found = !1;
|
|
26699
26729
|
Object.keys(dict).forEach(function (key) {
|
|
26700
26730
|
_newArrowCheck(this, _this2);
|
|
26701
26731
|
return dict[key] === value && (found = !0);
|
|
@@ -26712,7 +26742,7 @@ function hasValue(dict, value) {
|
|
|
26712
26742
|
* @private
|
|
26713
26743
|
*/
|
|
26714
26744
|
function callFn(fn, thisArg) {
|
|
26715
|
-
|
|
26745
|
+
const isFn = isFunction(fn);
|
|
26716
26746
|
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
26717
26747
|
args[_key - 2] = arguments[_key];
|
|
26718
26748
|
}
|
|
@@ -26727,14 +26757,15 @@ function callFn(fn, thisArg) {
|
|
|
26727
26757
|
* @private
|
|
26728
26758
|
*/
|
|
26729
26759
|
function endall(transition, cb) {
|
|
26730
|
-
var _this3 = this
|
|
26731
|
-
|
|
26732
|
-
|
|
26733
|
-
|
|
26734
|
-
|
|
26735
|
-
|
|
26736
|
-
|
|
26737
|
-
|
|
26760
|
+
var _this3 = this;
|
|
26761
|
+
let n = 0;
|
|
26762
|
+
const end = function () {
|
|
26763
|
+
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
26764
|
+
args[_key2] = arguments[_key2];
|
|
26765
|
+
}
|
|
26766
|
+
--n || cb.apply.apply(cb, [this].concat(args));
|
|
26767
|
+
};
|
|
26768
|
+
|
|
26738
26769
|
// if is transition selection
|
|
26739
26770
|
if ("duration" in transition) {
|
|
26740
26771
|
transition.each(function () {
|
|
@@ -26753,8 +26784,8 @@ function endall(transition, cb) {
|
|
|
26753
26784
|
* @returns {string}
|
|
26754
26785
|
* @private
|
|
26755
26786
|
*/
|
|
26756
|
-
function
|
|
26757
|
-
return isString(str) ? str.replace(
|
|
26787
|
+
function sanitize(str) {
|
|
26788
|
+
return isString(str) ? str.replace(/<(script|img)?/ig, "<").replace(/(script)?>/ig, ">") : str;
|
|
26758
26789
|
}
|
|
26759
26790
|
|
|
26760
26791
|
/**
|
|
@@ -26779,12 +26810,12 @@ function setTextValue(node, text, dy, toMiddle) {
|
|
|
26779
26810
|
if (text.indexOf("\n") === -1) {
|
|
26780
26811
|
node.text(text);
|
|
26781
26812
|
} else {
|
|
26782
|
-
|
|
26813
|
+
const diff = [node.text(), text].map(function (v) {
|
|
26783
26814
|
_newArrowCheck(this, _this4);
|
|
26784
26815
|
return v.replace(/[\s\n]/g, "");
|
|
26785
26816
|
}.bind(this));
|
|
26786
26817
|
if (diff[0] !== diff[1]) {
|
|
26787
|
-
|
|
26818
|
+
const multiline = text.split("\n"),
|
|
26788
26819
|
len = toMiddle ? multiline.length - 1 : 1;
|
|
26789
26820
|
// reset possible text
|
|
26790
26821
|
node.html("");
|
|
@@ -26810,7 +26841,7 @@ function getRectSegList(path) {
|
|
|
26810
26841
|
* | |
|
|
26811
26842
|
* seg0 ---------- seg3
|
|
26812
26843
|
* */
|
|
26813
|
-
|
|
26844
|
+
const _path$getBBox = path.getBBox(),
|
|
26814
26845
|
x = _path$getBBox.x,
|
|
26815
26846
|
y = _path$getBBox.y,
|
|
26816
26847
|
width = _path$getBBox.width,
|
|
@@ -26844,7 +26875,7 @@ function getRectSegList(path) {
|
|
|
26844
26875
|
* @private
|
|
26845
26876
|
*/
|
|
26846
26877
|
function getPathBox(path) {
|
|
26847
|
-
|
|
26878
|
+
const _path$getBoundingClie = path.getBoundingClientRect(),
|
|
26848
26879
|
width = _path$getBoundingClie.width,
|
|
26849
26880
|
height = _path$getBoundingClie.height,
|
|
26850
26881
|
items = getRectSegList(path),
|
|
@@ -26867,9 +26898,12 @@ function getPathBox(path) {
|
|
|
26867
26898
|
*/
|
|
26868
26899
|
function getPointer(event, element) {
|
|
26869
26900
|
var _ref,
|
|
26870
|
-
touches = event && ((_ref = event.touches || event.sourceEvent && event.sourceEvent.touches) == null ? void 0 : _ref[0]),
|
|
26871
|
-
pointer = src_pointer(touches || event, element),
|
|
26872
26901
|
_this5 = this;
|
|
26902
|
+
const touches = event && ((_ref = event.touches || event.sourceEvent && event.sourceEvent.touches) == null ? void 0 : _ref[0]);
|
|
26903
|
+
let pointer = [0, 0];
|
|
26904
|
+
try {
|
|
26905
|
+
pointer = src_pointer(touches || event, element);
|
|
26906
|
+
} catch (e) {}
|
|
26873
26907
|
return pointer.map(function (v) {
|
|
26874
26908
|
_newArrowCheck(this, _this5);
|
|
26875
26909
|
return isNaN(v) ? 0 : v;
|
|
@@ -26883,10 +26917,10 @@ function getPointer(event, element) {
|
|
|
26883
26917
|
* @private
|
|
26884
26918
|
*/
|
|
26885
26919
|
function getBrushSelection(ctx) {
|
|
26886
|
-
|
|
26920
|
+
const event = ctx.event,
|
|
26887
26921
|
$el = ctx.$el,
|
|
26888
26922
|
main = $el.subchart.main || $el.main;
|
|
26889
|
-
|
|
26923
|
+
let selection;
|
|
26890
26924
|
|
|
26891
26925
|
// check from event
|
|
26892
26926
|
if (event && event.type === "brush") {
|
|
@@ -26906,7 +26940,7 @@ function getBrushSelection(ctx) {
|
|
|
26906
26940
|
* @private
|
|
26907
26941
|
*/
|
|
26908
26942
|
function getBoundingRect(node) {
|
|
26909
|
-
|
|
26943
|
+
const needEvaluate = !("rect" in node) || "rect" in node && node.hasAttribute("width") && node.rect.width !== +node.getAttribute("width");
|
|
26910
26944
|
return needEvaluate ? node.rect = node.getBoundingClientRect() : node.rect;
|
|
26911
26945
|
}
|
|
26912
26946
|
|
|
@@ -26928,7 +26962,7 @@ function getRandom(asStr, min, max) {
|
|
|
26928
26962
|
if (max === void 0) {
|
|
26929
26963
|
max = 1e4;
|
|
26930
26964
|
}
|
|
26931
|
-
|
|
26965
|
+
const crpt = win.crypto || win.msCrypto,
|
|
26932
26966
|
rand = crpt ? min + crpt.getRandomValues(new Uint32Array(1))[0] % (max - min + 1) : Math.floor(Math.random() * (max - min) + min);
|
|
26933
26967
|
return asStr ? rand + "" : rand;
|
|
26934
26968
|
}
|
|
@@ -26947,8 +26981,8 @@ function findIndex(arr, v, start, end, isRotated) {
|
|
|
26947
26981
|
if (start > end) {
|
|
26948
26982
|
return -1;
|
|
26949
26983
|
}
|
|
26950
|
-
|
|
26951
|
-
|
|
26984
|
+
const mid = Math.floor((start + end) / 2);
|
|
26985
|
+
let _arr$mid = arr[mid],
|
|
26952
26986
|
x = _arr$mid.x,
|
|
26953
26987
|
_arr$mid$w = _arr$mid.w,
|
|
26954
26988
|
w = _arr$mid$w === void 0 ? 0 : _arr$mid$w;
|
|
@@ -26969,7 +27003,7 @@ function findIndex(arr, v, start, end, isRotated) {
|
|
|
26969
27003
|
* @private
|
|
26970
27004
|
*/
|
|
26971
27005
|
function brushEmpty(ctx) {
|
|
26972
|
-
|
|
27006
|
+
const selection = getBrushSelection(ctx);
|
|
26973
27007
|
if (selection) {
|
|
26974
27008
|
// brush selected area
|
|
26975
27009
|
// two-dimensional: [[x0, y0], [x1, y1]]
|
|
@@ -26986,17 +27020,19 @@ function brushEmpty(ctx) {
|
|
|
26986
27020
|
* @private
|
|
26987
27021
|
*/
|
|
26988
27022
|
function deepClone() {
|
|
26989
|
-
|
|
26990
|
-
|
|
26991
|
-
|
|
26992
|
-
|
|
26993
|
-
|
|
26994
|
-
|
|
26995
|
-
|
|
26996
|
-
return r;
|
|
27023
|
+
var _this6 = this;
|
|
27024
|
+
const _clone = function clone(v) {
|
|
27025
|
+
_newArrowCheck(this, _this6);
|
|
27026
|
+
if (isObject(v) && v.constructor) {
|
|
27027
|
+
const r = new v.constructor();
|
|
27028
|
+
for (const k in v) {
|
|
27029
|
+
r[k] = _clone(v[k]);
|
|
26997
27030
|
}
|
|
26998
|
-
return
|
|
26999
|
-
}
|
|
27031
|
+
return r;
|
|
27032
|
+
}
|
|
27033
|
+
return v;
|
|
27034
|
+
}.bind(this);
|
|
27035
|
+
for (var _len3 = arguments.length, objectN = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
27000
27036
|
objectN[_key3] = arguments[_key3];
|
|
27001
27037
|
}
|
|
27002
27038
|
return objectN.map(function (v) {
|
|
@@ -27028,7 +27064,7 @@ function util_extend(target, source) {
|
|
|
27028
27064
|
}
|
|
27029
27065
|
|
|
27030
27066
|
// exclude name with only numbers
|
|
27031
|
-
for (
|
|
27067
|
+
for (const p in source) {
|
|
27032
27068
|
if (/^\d+$/.test(p) || p in target) {
|
|
27033
27069
|
continue;
|
|
27034
27070
|
}
|
|
@@ -27043,7 +27079,7 @@ function util_extend(target, source) {
|
|
|
27043
27079
|
* @returns {string} capitalized string
|
|
27044
27080
|
* @private
|
|
27045
27081
|
*/
|
|
27046
|
-
|
|
27082
|
+
const capitalize = function (str) {
|
|
27047
27083
|
_newArrowCheck(this, util_this);
|
|
27048
27084
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
27049
27085
|
}.bind(undefined);
|
|
@@ -27072,7 +27108,7 @@ function camelize(str, separator) {
|
|
|
27072
27108
|
* @returns {Array}
|
|
27073
27109
|
* @private
|
|
27074
27110
|
*/
|
|
27075
|
-
|
|
27111
|
+
const toArray = function (v) {
|
|
27076
27112
|
_newArrowCheck(this, util_this);
|
|
27077
27113
|
return [].slice.call(v);
|
|
27078
27114
|
}.bind(undefined);
|
|
@@ -27086,8 +27122,8 @@ var toArray = function (v) {
|
|
|
27086
27122
|
* @private
|
|
27087
27123
|
*/
|
|
27088
27124
|
function addCssRules(style, selector, prop) {
|
|
27089
|
-
var _this9 = this
|
|
27090
|
-
|
|
27125
|
+
var _this9 = this;
|
|
27126
|
+
const rootSelctor = style.rootSelctor,
|
|
27091
27127
|
sheet = style.sheet,
|
|
27092
27128
|
getSelector = function (s) {
|
|
27093
27129
|
_newArrowCheck(this, _this9);
|
|
@@ -27104,8 +27140,8 @@ function addCssRules(style, selector, prop) {
|
|
|
27104
27140
|
* @private
|
|
27105
27141
|
*/
|
|
27106
27142
|
function getCssRules(styleSheets) {
|
|
27107
|
-
var _this10 = this
|
|
27108
|
-
|
|
27143
|
+
var _this10 = this;
|
|
27144
|
+
let rules = [];
|
|
27109
27145
|
styleSheets.forEach(function (sheet) {
|
|
27110
27146
|
_newArrowCheck(this, _this10);
|
|
27111
27147
|
try {
|
|
@@ -27114,7 +27150,7 @@ function getCssRules(styleSheets) {
|
|
|
27114
27150
|
}
|
|
27115
27151
|
} catch (e) {
|
|
27116
27152
|
var _window$console;
|
|
27117
|
-
(_window$console = win.console) == null
|
|
27153
|
+
(_window$console = win.console) == null || _window$console.warn("Error while reading rules from " + sheet.href + ": " + e.toString());
|
|
27118
27154
|
}
|
|
27119
27155
|
}.bind(this));
|
|
27120
27156
|
return rules;
|
|
@@ -27127,7 +27163,7 @@ function getCssRules(styleSheets) {
|
|
|
27127
27163
|
* @private
|
|
27128
27164
|
*/
|
|
27129
27165
|
function getTranslation(node) {
|
|
27130
|
-
|
|
27166
|
+
const transform = node ? node.transform : null,
|
|
27131
27167
|
baseVal = transform && transform.baseVal;
|
|
27132
27168
|
return baseVal && baseVal.numberOfItems ? baseVal.getItem(0).matrix : {
|
|
27133
27169
|
a: 0,
|
|
@@ -27146,8 +27182,8 @@ function getTranslation(node) {
|
|
|
27146
27182
|
* @private
|
|
27147
27183
|
*/
|
|
27148
27184
|
function getUnique(data) {
|
|
27149
|
-
var _this11 = this
|
|
27150
|
-
|
|
27185
|
+
var _this11 = this;
|
|
27186
|
+
const isDate = data[0] instanceof Date,
|
|
27151
27187
|
d = (isDate ? data.map(Number) : data).filter(function (v, i, self) {
|
|
27152
27188
|
_newArrowCheck(this, _this11);
|
|
27153
27189
|
return self.indexOf(v) === i;
|
|
@@ -27186,11 +27222,11 @@ function mergeObj(target) {
|
|
|
27186
27222
|
if (!objectN.length || objectN.length === 1 && !objectN[0]) {
|
|
27187
27223
|
return target;
|
|
27188
27224
|
}
|
|
27189
|
-
|
|
27225
|
+
const source = objectN.shift();
|
|
27190
27226
|
if (isObject(target) && isObject(source)) {
|
|
27191
27227
|
Object.keys(source).forEach(function (key) {
|
|
27192
27228
|
_newArrowCheck(this, _this13);
|
|
27193
|
-
|
|
27229
|
+
const value = source[key];
|
|
27194
27230
|
if (isObject(value)) {
|
|
27195
27231
|
target[key] || (target[key] = {});
|
|
27196
27232
|
target[key] = mergeObj(target[key], value);
|
|
@@ -27214,7 +27250,7 @@ function sortValue(data, isAsc) {
|
|
|
27214
27250
|
if (isAsc === void 0) {
|
|
27215
27251
|
isAsc = !0;
|
|
27216
27252
|
}
|
|
27217
|
-
|
|
27253
|
+
let fn;
|
|
27218
27254
|
if (data[0] instanceof Date) {
|
|
27219
27255
|
fn = isAsc ? function (a, b) {
|
|
27220
27256
|
_newArrowCheck(this, _this14);
|
|
@@ -27247,11 +27283,11 @@ function sortValue(data, isAsc) {
|
|
|
27247
27283
|
* @private
|
|
27248
27284
|
*/
|
|
27249
27285
|
function getMinMax(type, data) {
|
|
27250
|
-
var _this15 = this
|
|
27251
|
-
|
|
27252
|
-
|
|
27253
|
-
|
|
27254
|
-
|
|
27286
|
+
var _this15 = this;
|
|
27287
|
+
let res = data.filter(function (v) {
|
|
27288
|
+
_newArrowCheck(this, _this15);
|
|
27289
|
+
return notEmpty(v);
|
|
27290
|
+
}.bind(this));
|
|
27255
27291
|
if (res.length) {
|
|
27256
27292
|
if (isNumber(res[0])) {
|
|
27257
27293
|
res = Math[type].apply(Math, res);
|
|
@@ -27272,14 +27308,14 @@ function getMinMax(type, data) {
|
|
|
27272
27308
|
* @returns {Array}
|
|
27273
27309
|
* @private
|
|
27274
27310
|
*/
|
|
27275
|
-
|
|
27311
|
+
const getRange = function (start, end, step) {
|
|
27276
27312
|
if (step === void 0) {
|
|
27277
27313
|
step = 1;
|
|
27278
27314
|
}
|
|
27279
27315
|
_newArrowCheck(this, util_this);
|
|
27280
|
-
|
|
27316
|
+
const res = [],
|
|
27281
27317
|
n = Math.max(0, Math.ceil((end - start) / step)) | 0;
|
|
27282
|
-
for (
|
|
27318
|
+
for (let i = start; i < n; i++) {
|
|
27283
27319
|
res.push(start + i * step);
|
|
27284
27320
|
}
|
|
27285
27321
|
return res;
|
|
@@ -27288,7 +27324,7 @@ var getRange = function (start, end, step) {
|
|
|
27288
27324
|
mouse: function () {
|
|
27289
27325
|
var _this16 = this;
|
|
27290
27326
|
_newArrowCheck(this, util_this);
|
|
27291
|
-
|
|
27327
|
+
const getParams = function () {
|
|
27292
27328
|
_newArrowCheck(this, _this16);
|
|
27293
27329
|
return {
|
|
27294
27330
|
bubbles: !1,
|
|
@@ -27316,7 +27352,7 @@ var getRange = function (start, end, step) {
|
|
|
27316
27352
|
params = getParams();
|
|
27317
27353
|
}
|
|
27318
27354
|
_newArrowCheck(this, _this16);
|
|
27319
|
-
|
|
27355
|
+
const mouseEvent = doc.createEvent("MouseEvent");
|
|
27320
27356
|
|
|
27321
27357
|
// https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent
|
|
27322
27358
|
mouseEvent.initMouseEvent(eventType, params.bubbles, params.cancelable, win, 0,
|
|
@@ -27328,7 +27364,7 @@ var getRange = function (start, end, step) {
|
|
|
27328
27364
|
}.bind(undefined)(),
|
|
27329
27365
|
touch: function touch(el, eventType, params) {
|
|
27330
27366
|
_newArrowCheck(this, util_this);
|
|
27331
|
-
|
|
27367
|
+
const touchObj = new Touch(mergeObj({
|
|
27332
27368
|
identifier: Date.now(),
|
|
27333
27369
|
target: el,
|
|
27334
27370
|
radiusX: 2.5,
|
|
@@ -27354,8 +27390,8 @@ var getRange = function (start, end, step) {
|
|
|
27354
27390
|
* @private
|
|
27355
27391
|
*/
|
|
27356
27392
|
function tplProcess(tpl, data) {
|
|
27357
|
-
|
|
27358
|
-
for (
|
|
27393
|
+
let res = tpl;
|
|
27394
|
+
for (const x in data) {
|
|
27359
27395
|
res = res.replace(new RegExp("{=" + x + "}", "g"), data[x]);
|
|
27360
27396
|
}
|
|
27361
27397
|
return res;
|
|
@@ -27369,13 +27405,14 @@ function tplProcess(tpl, data) {
|
|
|
27369
27405
|
* @private
|
|
27370
27406
|
*/
|
|
27371
27407
|
function parseDate(date) {
|
|
27372
|
-
|
|
27408
|
+
let parsedDate;
|
|
27373
27409
|
if (date instanceof Date) {
|
|
27374
27410
|
parsedDate = date;
|
|
27375
27411
|
} else if (isString(date)) {
|
|
27376
|
-
var _format$dataTime
|
|
27377
|
-
|
|
27412
|
+
var _format$dataTime;
|
|
27413
|
+
const config = this.config,
|
|
27378
27414
|
format = this.format;
|
|
27415
|
+
|
|
27379
27416
|
// if fails to parse, try by new Date()
|
|
27380
27417
|
// https://github.com/naver/billboard.js/issues/1714
|
|
27381
27418
|
parsedDate = (_format$dataTime = format.dataTime(config.data_xFormat)(date)) != null ? _format$dataTime : new Date(date);
|
|
@@ -27405,11 +27442,11 @@ function isTabVisible() {
|
|
|
27405
27442
|
* @private
|
|
27406
27443
|
*/
|
|
27407
27444
|
function convertInputType(mouse, touch) {
|
|
27408
|
-
var _this17 = this
|
|
27409
|
-
|
|
27445
|
+
var _this17 = this;
|
|
27446
|
+
const DocumentTouch = win.DocumentTouch,
|
|
27410
27447
|
matchMedia = win.matchMedia,
|
|
27411
|
-
navigator = win.navigator
|
|
27412
|
-
|
|
27448
|
+
navigator = win.navigator;
|
|
27449
|
+
let hasTouch = !1;
|
|
27413
27450
|
if (touch) {
|
|
27414
27451
|
// Some Edge desktop return true: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/20417074/
|
|
27415
27452
|
if (navigator && "maxTouchPoints" in navigator) {
|
|
@@ -27425,7 +27462,7 @@ function convertInputType(mouse, touch) {
|
|
|
27425
27462
|
hasTouch = !0;
|
|
27426
27463
|
} else {
|
|
27427
27464
|
// Only as a last resort, fall back to user agent sniffing
|
|
27428
|
-
|
|
27465
|
+
const UA = navigator.userAgent;
|
|
27429
27466
|
hasTouch = /\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(UA) || /\b(Android|Windows Phone|iPad|iPod)\b/i.test(UA);
|
|
27430
27467
|
}
|
|
27431
27468
|
}
|
|
@@ -27434,7 +27471,7 @@ function convertInputType(mouse, touch) {
|
|
|
27434
27471
|
// Check if agent has mouse using any-hover, touch devices (e.g iPad) with external mouse will return true as long as mouse is connected
|
|
27435
27472
|
// https://css-tricks.com/interaction-media-features-and-their-potential-for-incorrect-assumptions/#aa-testing-the-capabilities-of-all-inputs
|
|
27436
27473
|
// Demo: https://patrickhlauke.github.io/touch/pointer-hover-any-pointer-any-hover/
|
|
27437
|
-
|
|
27474
|
+
const hasMouse = mouse && ["any-hover:hover", "any-pointer:fine"].some(function (v) {
|
|
27438
27475
|
_newArrowCheck(this, _this17);
|
|
27439
27476
|
return matchMedia == null ? void 0 : matchMedia("(" + v + ")").matches;
|
|
27440
27477
|
}.bind(this));
|
|
@@ -27473,22 +27510,20 @@ function runUntil(fn, conditionFn) {
|
|
|
27473
27510
|
* @private
|
|
27474
27511
|
*/
|
|
27475
27512
|
function loadConfig(config) {
|
|
27476
|
-
var _this = this
|
|
27477
|
-
|
|
27478
|
-
|
|
27479
|
-
|
|
27480
|
-
|
|
27481
|
-
|
|
27482
|
-
|
|
27483
|
-
|
|
27484
|
-
|
|
27485
|
-
|
|
27486
|
-
|
|
27487
|
-
|
|
27488
|
-
|
|
27489
|
-
|
|
27490
|
-
return undefined;
|
|
27491
|
-
}.bind(this);
|
|
27513
|
+
var _this = this;
|
|
27514
|
+
const thisConfig = this.config;
|
|
27515
|
+
let target, keys, read;
|
|
27516
|
+
const _find = function find() {
|
|
27517
|
+
_newArrowCheck(this, _this);
|
|
27518
|
+
const key = keys.shift();
|
|
27519
|
+
if (key && target && isObjectType(target) && key in target) {
|
|
27520
|
+
target = target[key];
|
|
27521
|
+
return _find();
|
|
27522
|
+
} else if (!key) {
|
|
27523
|
+
return target;
|
|
27524
|
+
}
|
|
27525
|
+
return undefined;
|
|
27526
|
+
}.bind(this);
|
|
27492
27527
|
Object.keys(thisConfig).forEach(function (key) {
|
|
27493
27528
|
_newArrowCheck(this, _this);
|
|
27494
27529
|
target = config;
|
|
@@ -27523,7 +27558,7 @@ function loadConfig(config) {
|
|
|
27523
27558
|
* @example
|
|
27524
27559
|
* bb.plugin.stanford.version; // ex) 1.9.0
|
|
27525
27560
|
*/
|
|
27526
|
-
|
|
27561
|
+
let Plugin = /*#__PURE__*/function () {
|
|
27527
27562
|
/**
|
|
27528
27563
|
* Constructor
|
|
27529
27564
|
* @param {Any} options config option object
|
|
@@ -27577,7 +27612,7 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
27577
27612
|
};
|
|
27578
27613
|
return Plugin;
|
|
27579
27614
|
}();
|
|
27580
|
-
Plugin.version = "3.
|
|
27615
|
+
Plugin.version = "3.10.0-next.1";
|
|
27581
27616
|
|
|
27582
27617
|
;// CONCATENATED MODULE: ./src/Plugin/textoverlap/Options.ts
|
|
27583
27618
|
/**
|
|
@@ -27592,7 +27627,7 @@ Plugin.version = "3.9.2";
|
|
|
27592
27627
|
* @returns {TextOverlapOptions}
|
|
27593
27628
|
* @private
|
|
27594
27629
|
*/
|
|
27595
|
-
|
|
27630
|
+
let Options = function () {
|
|
27596
27631
|
return {
|
|
27597
27632
|
/**
|
|
27598
27633
|
* Selector string for target text nodes within chart element.
|
|
@@ -27687,7 +27722,7 @@ var Options = function () {
|
|
|
27687
27722
|
* ]
|
|
27688
27723
|
* })
|
|
27689
27724
|
*/
|
|
27690
|
-
|
|
27725
|
+
let TextOverlap = /*#__PURE__*/function (_Plugin) {
|
|
27691
27726
|
_inheritsLoose(TextOverlap, _Plugin);
|
|
27692
27727
|
function TextOverlap(options) {
|
|
27693
27728
|
var _this = _Plugin.call(this, options) || this;
|
|
@@ -27700,7 +27735,7 @@ var TextOverlap = /*#__PURE__*/function (_Plugin) {
|
|
|
27700
27735
|
loadConfig.call(this, this.options);
|
|
27701
27736
|
};
|
|
27702
27737
|
_proto.$redraw = function $redraw() {
|
|
27703
|
-
|
|
27738
|
+
const $el = this.$$.$el,
|
|
27704
27739
|
selector = this.config.selector,
|
|
27705
27740
|
text = selector ? $el.main.selectAll(selector) : $el.text;
|
|
27706
27741
|
text.empty() || this.preventLabelOverlap(text);
|
|
@@ -27713,16 +27748,16 @@ var TextOverlap = /*#__PURE__*/function (_Plugin) {
|
|
|
27713
27748
|
* @private
|
|
27714
27749
|
*/;
|
|
27715
27750
|
_proto.generateVoronoi = function generateVoronoi(points) {
|
|
27716
|
-
var _this2 = this
|
|
27717
|
-
|
|
27751
|
+
var _this2 = this;
|
|
27752
|
+
const $$ = this.$$,
|
|
27718
27753
|
scale = $$.scale,
|
|
27719
27754
|
_map = ["x", "y"].map(function (v) {
|
|
27720
27755
|
_newArrowCheck(this, _this2);
|
|
27721
27756
|
return scale[v].domain();
|
|
27722
27757
|
}.bind(this)),
|
|
27723
27758
|
min = _map[0],
|
|
27724
|
-
max = _map[1]
|
|
27725
|
-
|
|
27759
|
+
max = _map[1];
|
|
27760
|
+
var _ref = [max[0], min[1]];
|
|
27726
27761
|
min[1] = _ref[0];
|
|
27727
27762
|
max[0] = _ref[1];
|
|
27728
27763
|
return Delaunay.from(points).voronoi([].concat(min, max)); // bounds = [xmin, ymin, xmax, ymax], default value: [0, 0, 960, 500]
|
|
@@ -27734,20 +27769,20 @@ var TextOverlap = /*#__PURE__*/function (_Plugin) {
|
|
|
27734
27769
|
* @private
|
|
27735
27770
|
*/;
|
|
27736
27771
|
_proto.preventLabelOverlap = function preventLabelOverlap(text) {
|
|
27737
|
-
var _this3 = this
|
|
27738
|
-
|
|
27772
|
+
var _this3 = this;
|
|
27773
|
+
const _this$config = this.config,
|
|
27739
27774
|
extent = _this$config.extent,
|
|
27740
27775
|
area = _this$config.area,
|
|
27741
27776
|
points = text.data().map(function (v) {
|
|
27742
27777
|
_newArrowCheck(this, _this3);
|
|
27743
27778
|
return [v.index, v.value];
|
|
27744
27779
|
}.bind(this)),
|
|
27745
|
-
voronoi = this.generateVoronoi(points)
|
|
27746
|
-
|
|
27780
|
+
voronoi = this.generateVoronoi(points);
|
|
27781
|
+
let i = 0;
|
|
27747
27782
|
text.each(function () {
|
|
27748
|
-
|
|
27783
|
+
const cell = voronoi.cellPolygon(i);
|
|
27749
27784
|
if (cell && this) {
|
|
27750
|
-
|
|
27785
|
+
const _points$i = points[i],
|
|
27751
27786
|
x = _points$i[0],
|
|
27752
27787
|
y = _points$i[1],
|
|
27753
27788
|
_d3PolygonCentroid = centroid(cell),
|