@opengeoweb/webmap-react 9.12.0 → 9.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +1895 -741
- package/package.json +1 -1
- package/src/lib/components/LayerInfo/LayerInfoButton.d.ts +9 -0
- package/src/lib/components/LayerInfo/LayerInfoButton.spec.d.ts +1 -0
- package/src/lib/components/LayerInfo/LayerInfoDialog.d.ts +14 -0
- package/src/lib/components/LayerInfo/LayerInfoDialog.spec.d.ts +1 -0
- package/src/lib/components/LayerInfo/LayerInfoDialog.stories.d.ts +25 -0
- package/src/lib/components/LayerInfo/LayerInfoLegend.d.ts +9 -0
- package/src/lib/components/LayerInfo/LayerInfoLegend.spec.d.ts +1 -0
- package/src/lib/components/LayerInfo/LayerInfoList.d.ts +11 -0
- package/src/lib/components/LayerInfo/LayerInfoText.d.ts +15 -0
- package/src/lib/components/LayerInfo/LayerInfoUtils.d.ts +9 -0
- package/src/lib/components/LayerInfo/LayerInfoUtils.spec.d.ts +1 -0
- package/src/lib/components/LayerInfo/index.d.ts +6 -0
- package/src/lib/components/MapDraw/MapDraw.d.ts +7 -1
- package/src/lib/components/index.d.ts +1 -0
package/index.esm.js
CHANGED
|
@@ -7,14 +7,17 @@ import _, { cloneDeep } from 'lodash';
|
|
|
7
7
|
import proj4 from 'proj4';
|
|
8
8
|
import * as turf from '@turf/turf';
|
|
9
9
|
import { polygonToLineString, booleanClockwise, rewind } from '@turf/turf';
|
|
10
|
-
import { Delete, Edit, DrawRegion, DrawPolygon, Location, DrawFIRLand, ArrowUp, Home, Add, Minus, Equalizer, DimensionsElevation, Link, LinkOff } from '@opengeoweb/theme';
|
|
10
|
+
import { Delete, Edit, DrawRegion, DrawPolygon, Location, DrawFIRLand, ArrowUp, Home, Add, Minus, Equalizer, DimensionsElevation, Link, LinkOff, Info, DimensionsOther, DimensionsRefTime, DimensionsTime } from '@opengeoweb/theme';
|
|
11
11
|
import { produce } from 'immer';
|
|
12
12
|
import { debounce } from 'throttle-debounce';
|
|
13
13
|
import { useResizeDetector } from 'react-resize-detector';
|
|
14
|
+
import Box$1 from '@mui/material/Box';
|
|
15
|
+
import Typography$1 from '@mui/material/Typography';
|
|
16
|
+
import Grid$1 from '@mui/material/Grid';
|
|
14
17
|
|
|
15
18
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
16
19
|
|
|
17
|
-
var fails$
|
|
20
|
+
var fails$q = function (exec) {
|
|
18
21
|
try {
|
|
19
22
|
return !!exec();
|
|
20
23
|
} catch (error) {
|
|
@@ -22,9 +25,9 @@ var fails$i = function (exec) {
|
|
|
22
25
|
}
|
|
23
26
|
};
|
|
24
27
|
|
|
25
|
-
var fails$
|
|
28
|
+
var fails$p = fails$q;
|
|
26
29
|
|
|
27
|
-
var functionBindNative = !fails$
|
|
30
|
+
var functionBindNative = !fails$p(function () {
|
|
28
31
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
29
32
|
var test = (function () { /* empty */ }).bind();
|
|
30
33
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -34,63 +37,63 @@ var functionBindNative = !fails$h(function () {
|
|
|
34
37
|
var NATIVE_BIND$3 = functionBindNative;
|
|
35
38
|
|
|
36
39
|
var FunctionPrototype$2 = Function.prototype;
|
|
37
|
-
var call$
|
|
38
|
-
var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$
|
|
40
|
+
var call$j = FunctionPrototype$2.call;
|
|
41
|
+
var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$j, call$j);
|
|
39
42
|
|
|
40
43
|
var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
|
|
41
44
|
return function () {
|
|
42
|
-
return call$
|
|
45
|
+
return call$j.apply(fn, arguments);
|
|
43
46
|
};
|
|
44
47
|
};
|
|
45
48
|
|
|
46
|
-
var uncurryThis$
|
|
49
|
+
var uncurryThis$p = functionUncurryThis;
|
|
47
50
|
|
|
48
|
-
var toString$
|
|
49
|
-
var stringSlice$
|
|
51
|
+
var toString$b = uncurryThis$p({}.toString);
|
|
52
|
+
var stringSlice$4 = uncurryThis$p(''.slice);
|
|
50
53
|
|
|
51
54
|
var classofRaw$2 = function (it) {
|
|
52
|
-
return stringSlice$
|
|
55
|
+
return stringSlice$4(toString$b(it), 8, -1);
|
|
53
56
|
};
|
|
54
57
|
|
|
55
|
-
var uncurryThis$
|
|
56
|
-
var fails$
|
|
57
|
-
var classof$
|
|
58
|
+
var uncurryThis$o = functionUncurryThis;
|
|
59
|
+
var fails$o = fails$q;
|
|
60
|
+
var classof$9 = classofRaw$2;
|
|
58
61
|
|
|
59
62
|
var $Object$4 = Object;
|
|
60
|
-
var split = uncurryThis$
|
|
63
|
+
var split = uncurryThis$o(''.split);
|
|
61
64
|
|
|
62
65
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
63
|
-
var indexedObject = fails$
|
|
66
|
+
var indexedObject = fails$o(function () {
|
|
64
67
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
65
68
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
66
69
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
67
70
|
}) ? function (it) {
|
|
68
|
-
return classof$
|
|
71
|
+
return classof$9(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
69
72
|
} : $Object$4;
|
|
70
73
|
|
|
71
74
|
// we can't use just `it == null` since of `document.all` special case
|
|
72
75
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
73
|
-
var isNullOrUndefined$
|
|
76
|
+
var isNullOrUndefined$5 = function (it) {
|
|
74
77
|
return it === null || it === undefined;
|
|
75
78
|
};
|
|
76
79
|
|
|
77
|
-
var isNullOrUndefined$
|
|
80
|
+
var isNullOrUndefined$4 = isNullOrUndefined$5;
|
|
78
81
|
|
|
79
|
-
var $TypeError$
|
|
82
|
+
var $TypeError$i = TypeError;
|
|
80
83
|
|
|
81
84
|
// `RequireObjectCoercible` abstract operation
|
|
82
85
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
83
|
-
var requireObjectCoercible$
|
|
84
|
-
if (isNullOrUndefined$
|
|
86
|
+
var requireObjectCoercible$6 = function (it) {
|
|
87
|
+
if (isNullOrUndefined$4(it)) throw new $TypeError$i("Can't call method on " + it);
|
|
85
88
|
return it;
|
|
86
89
|
};
|
|
87
90
|
|
|
88
91
|
// toObject with fallback for non-array-like ES3 strings
|
|
89
92
|
var IndexedObject$2 = indexedObject;
|
|
90
|
-
var requireObjectCoercible$
|
|
93
|
+
var requireObjectCoercible$5 = requireObjectCoercible$6;
|
|
91
94
|
|
|
92
95
|
var toIndexedObject$5 = function (it) {
|
|
93
|
-
return IndexedObject$2(requireObjectCoercible$
|
|
96
|
+
return IndexedObject$2(requireObjectCoercible$5(it));
|
|
94
97
|
};
|
|
95
98
|
|
|
96
99
|
var check = function (it) {
|
|
@@ -98,7 +101,7 @@ var check = function (it) {
|
|
|
98
101
|
};
|
|
99
102
|
|
|
100
103
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
101
|
-
var global$
|
|
104
|
+
var global$o =
|
|
102
105
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
103
106
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
104
107
|
check(typeof window == 'object' && window) ||
|
|
@@ -109,32 +112,32 @@ var global$k =
|
|
|
109
112
|
// eslint-disable-next-line no-new-func -- fallback
|
|
110
113
|
(function () { return this; })() || Function('return this')();
|
|
111
114
|
|
|
112
|
-
var shared$
|
|
115
|
+
var shared$4 = {exports: {}};
|
|
113
116
|
|
|
114
|
-
var global$
|
|
117
|
+
var global$n = global$o;
|
|
115
118
|
|
|
116
119
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
117
|
-
var defineProperty$
|
|
120
|
+
var defineProperty$7 = Object.defineProperty;
|
|
118
121
|
|
|
119
122
|
var defineGlobalProperty$3 = function (key, value) {
|
|
120
123
|
try {
|
|
121
|
-
defineProperty$
|
|
124
|
+
defineProperty$7(global$n, key, { value: value, configurable: true, writable: true });
|
|
122
125
|
} catch (error) {
|
|
123
|
-
global$
|
|
126
|
+
global$n[key] = value;
|
|
124
127
|
} return value;
|
|
125
128
|
};
|
|
126
129
|
|
|
127
|
-
var global$
|
|
130
|
+
var global$m = global$o;
|
|
128
131
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
129
132
|
|
|
130
133
|
var SHARED = '__core-js_shared__';
|
|
131
|
-
var store$3 = global$
|
|
134
|
+
var store$3 = global$m[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
132
135
|
|
|
133
136
|
var sharedStore = store$3;
|
|
134
137
|
|
|
135
138
|
var store$2 = sharedStore;
|
|
136
139
|
|
|
137
|
-
(shared$
|
|
140
|
+
(shared$4.exports = function (key, value) {
|
|
138
141
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
139
142
|
})('versions', []).push({
|
|
140
143
|
version: '3.35.1',
|
|
@@ -144,45 +147,45 @@ var store$2 = sharedStore;
|
|
|
144
147
|
source: 'https://github.com/zloirock/core-js'
|
|
145
148
|
});
|
|
146
149
|
|
|
147
|
-
var requireObjectCoercible$
|
|
150
|
+
var requireObjectCoercible$4 = requireObjectCoercible$6;
|
|
148
151
|
|
|
149
152
|
var $Object$3 = Object;
|
|
150
153
|
|
|
151
154
|
// `ToObject` abstract operation
|
|
152
155
|
// https://tc39.es/ecma262/#sec-toobject
|
|
153
|
-
var toObject$
|
|
154
|
-
return $Object$3(requireObjectCoercible$
|
|
156
|
+
var toObject$7 = function (argument) {
|
|
157
|
+
return $Object$3(requireObjectCoercible$4(argument));
|
|
155
158
|
};
|
|
156
159
|
|
|
157
|
-
var uncurryThis$
|
|
158
|
-
var toObject$
|
|
160
|
+
var uncurryThis$n = functionUncurryThis;
|
|
161
|
+
var toObject$6 = toObject$7;
|
|
159
162
|
|
|
160
|
-
var hasOwnProperty = uncurryThis$
|
|
163
|
+
var hasOwnProperty = uncurryThis$n({}.hasOwnProperty);
|
|
161
164
|
|
|
162
165
|
// `HasOwnProperty` abstract operation
|
|
163
166
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
164
167
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
165
168
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
166
|
-
return hasOwnProperty(toObject$
|
|
169
|
+
return hasOwnProperty(toObject$6(it), key);
|
|
167
170
|
};
|
|
168
171
|
|
|
169
|
-
var uncurryThis$
|
|
172
|
+
var uncurryThis$m = functionUncurryThis;
|
|
170
173
|
|
|
171
174
|
var id = 0;
|
|
172
175
|
var postfix = Math.random();
|
|
173
|
-
var toString$
|
|
176
|
+
var toString$a = uncurryThis$m(1.0.toString);
|
|
174
177
|
|
|
175
178
|
var uid$2 = function (key) {
|
|
176
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
179
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id + postfix, 36);
|
|
177
180
|
};
|
|
178
181
|
|
|
179
182
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
180
183
|
|
|
181
|
-
var global$
|
|
184
|
+
var global$l = global$o;
|
|
182
185
|
var userAgent$5 = engineUserAgent;
|
|
183
186
|
|
|
184
|
-
var process$3 = global$
|
|
185
|
-
var Deno$1 = global$
|
|
187
|
+
var process$3 = global$l.process;
|
|
188
|
+
var Deno$1 = global$l.Deno;
|
|
186
189
|
var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
|
|
187
190
|
var v8 = versions && versions.v8;
|
|
188
191
|
var match, version;
|
|
@@ -208,44 +211,44 @@ var engineV8Version = version;
|
|
|
208
211
|
|
|
209
212
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
210
213
|
var V8_VERSION$1 = engineV8Version;
|
|
211
|
-
var fails$
|
|
212
|
-
var global$
|
|
214
|
+
var fails$n = fails$q;
|
|
215
|
+
var global$k = global$o;
|
|
213
216
|
|
|
214
|
-
var $String$
|
|
217
|
+
var $String$6 = global$k.String;
|
|
215
218
|
|
|
216
219
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
217
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
220
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$n(function () {
|
|
218
221
|
var symbol = Symbol('symbol detection');
|
|
219
222
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
220
223
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
221
224
|
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
222
225
|
// of course, fail.
|
|
223
|
-
return !$String$
|
|
226
|
+
return !$String$6(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
224
227
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
225
228
|
!Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
|
|
226
229
|
});
|
|
227
230
|
|
|
228
231
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
229
|
-
var NATIVE_SYMBOL$
|
|
232
|
+
var NATIVE_SYMBOL$2 = symbolConstructorDetection;
|
|
230
233
|
|
|
231
|
-
var useSymbolAsUid = NATIVE_SYMBOL$
|
|
234
|
+
var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
232
235
|
&& !Symbol.sham
|
|
233
236
|
&& typeof Symbol.iterator == 'symbol';
|
|
234
237
|
|
|
235
|
-
var global$
|
|
236
|
-
var shared$
|
|
237
|
-
var hasOwn$
|
|
238
|
+
var global$j = global$o;
|
|
239
|
+
var shared$3 = shared$4.exports;
|
|
240
|
+
var hasOwn$b = hasOwnProperty_1;
|
|
238
241
|
var uid$1 = uid$2;
|
|
239
|
-
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
242
|
+
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
240
243
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
241
244
|
|
|
242
|
-
var Symbol$2 = global$
|
|
243
|
-
var WellKnownSymbolsStore = shared$
|
|
245
|
+
var Symbol$2 = global$j.Symbol;
|
|
246
|
+
var WellKnownSymbolsStore = shared$3('wks');
|
|
244
247
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
|
|
245
248
|
|
|
246
|
-
var wellKnownSymbol$
|
|
247
|
-
if (!hasOwn$
|
|
248
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$
|
|
249
|
+
var wellKnownSymbol$h = function (name) {
|
|
250
|
+
if (!hasOwn$b(WellKnownSymbolsStore, name)) {
|
|
251
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$b(Symbol$2, name)
|
|
249
252
|
? Symbol$2[name]
|
|
250
253
|
: createWellKnownSymbol('Symbol.' + name);
|
|
251
254
|
} return WellKnownSymbolsStore[name];
|
|
@@ -257,45 +260,45 @@ var documentAll = typeof document == 'object' && document.all;
|
|
|
257
260
|
// `IsCallable` abstract operation
|
|
258
261
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
259
262
|
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
260
|
-
var isCallable$
|
|
263
|
+
var isCallable$n = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
261
264
|
return typeof argument == 'function' || argument === documentAll;
|
|
262
265
|
} : function (argument) {
|
|
263
266
|
return typeof argument == 'function';
|
|
264
267
|
};
|
|
265
268
|
|
|
266
|
-
var isCallable$
|
|
269
|
+
var isCallable$m = isCallable$n;
|
|
267
270
|
|
|
268
|
-
var isObject$
|
|
269
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
271
|
+
var isObject$c = function (it) {
|
|
272
|
+
return typeof it == 'object' ? it !== null : isCallable$m(it);
|
|
270
273
|
};
|
|
271
274
|
|
|
272
|
-
var isObject$
|
|
275
|
+
var isObject$b = isObject$c;
|
|
273
276
|
|
|
274
|
-
var $String$
|
|
275
|
-
var $TypeError$
|
|
277
|
+
var $String$5 = String;
|
|
278
|
+
var $TypeError$h = TypeError;
|
|
276
279
|
|
|
277
280
|
// `Assert: Type(argument) is Object`
|
|
278
|
-
var anObject$
|
|
279
|
-
if (isObject$
|
|
280
|
-
throw new $TypeError$
|
|
281
|
+
var anObject$e = function (argument) {
|
|
282
|
+
if (isObject$b(argument)) return argument;
|
|
283
|
+
throw new $TypeError$h($String$5(argument) + ' is not an object');
|
|
281
284
|
};
|
|
282
285
|
|
|
283
286
|
var objectDefineProperties = {};
|
|
284
287
|
|
|
285
|
-
var fails$
|
|
288
|
+
var fails$m = fails$q;
|
|
286
289
|
|
|
287
290
|
// Detect IE8's incomplete defineProperty implementation
|
|
288
|
-
var descriptors = !fails$
|
|
291
|
+
var descriptors = !fails$m(function () {
|
|
289
292
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
290
293
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
291
294
|
});
|
|
292
295
|
|
|
293
|
-
var DESCRIPTORS$
|
|
294
|
-
var fails$
|
|
296
|
+
var DESCRIPTORS$d = descriptors;
|
|
297
|
+
var fails$l = fails$q;
|
|
295
298
|
|
|
296
299
|
// V8 ~ Chrome 36-
|
|
297
300
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
298
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
301
|
+
var v8PrototypeDefineBug = DESCRIPTORS$d && fails$l(function () {
|
|
299
302
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
300
303
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
301
304
|
value: 42,
|
|
@@ -305,23 +308,23 @@ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$d(function () {
|
|
|
305
308
|
|
|
306
309
|
var objectDefineProperty = {};
|
|
307
310
|
|
|
308
|
-
var global$
|
|
309
|
-
var isObject$
|
|
311
|
+
var global$i = global$o;
|
|
312
|
+
var isObject$a = isObject$c;
|
|
310
313
|
|
|
311
|
-
var document$3 = global$
|
|
314
|
+
var document$3 = global$i.document;
|
|
312
315
|
// typeof document.createElement is 'object' in old IE
|
|
313
|
-
var EXISTS$1 = isObject$
|
|
316
|
+
var EXISTS$1 = isObject$a(document$3) && isObject$a(document$3.createElement);
|
|
314
317
|
|
|
315
318
|
var documentCreateElement$2 = function (it) {
|
|
316
319
|
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
317
320
|
};
|
|
318
321
|
|
|
319
|
-
var DESCRIPTORS$
|
|
320
|
-
var fails$
|
|
322
|
+
var DESCRIPTORS$c = descriptors;
|
|
323
|
+
var fails$k = fails$q;
|
|
321
324
|
var createElement$1 = documentCreateElement$2;
|
|
322
325
|
|
|
323
326
|
// Thanks to IE8 for its funny defineProperty
|
|
324
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
327
|
+
var ie8DomDefine = !DESCRIPTORS$c && !fails$k(function () {
|
|
325
328
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
326
329
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
327
330
|
get: function () { return 7; }
|
|
@@ -330,131 +333,131 @@ var ie8DomDefine = !DESCRIPTORS$a && !fails$c(function () {
|
|
|
330
333
|
|
|
331
334
|
var NATIVE_BIND$2 = functionBindNative;
|
|
332
335
|
|
|
333
|
-
var call$
|
|
336
|
+
var call$i = Function.prototype.call;
|
|
334
337
|
|
|
335
|
-
var functionCall = NATIVE_BIND$2 ? call$
|
|
336
|
-
return call$
|
|
338
|
+
var functionCall = NATIVE_BIND$2 ? call$i.bind(call$i) : function () {
|
|
339
|
+
return call$i.apply(call$i, arguments);
|
|
337
340
|
};
|
|
338
341
|
|
|
339
|
-
var global$
|
|
340
|
-
var isCallable$
|
|
342
|
+
var global$h = global$o;
|
|
343
|
+
var isCallable$l = isCallable$n;
|
|
341
344
|
|
|
342
345
|
var aFunction = function (argument) {
|
|
343
|
-
return isCallable$
|
|
346
|
+
return isCallable$l(argument) ? argument : undefined;
|
|
344
347
|
};
|
|
345
348
|
|
|
346
|
-
var getBuiltIn$
|
|
347
|
-
return arguments.length < 2 ? aFunction(global$
|
|
349
|
+
var getBuiltIn$9 = function (namespace, method) {
|
|
350
|
+
return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method];
|
|
348
351
|
};
|
|
349
352
|
|
|
350
|
-
var uncurryThis$
|
|
353
|
+
var uncurryThis$l = functionUncurryThis;
|
|
351
354
|
|
|
352
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
355
|
+
var objectIsPrototypeOf = uncurryThis$l({}.isPrototypeOf);
|
|
353
356
|
|
|
354
|
-
var getBuiltIn$
|
|
355
|
-
var isCallable$
|
|
356
|
-
var isPrototypeOf$
|
|
357
|
+
var getBuiltIn$8 = getBuiltIn$9;
|
|
358
|
+
var isCallable$k = isCallable$n;
|
|
359
|
+
var isPrototypeOf$4 = objectIsPrototypeOf;
|
|
357
360
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
358
361
|
|
|
359
362
|
var $Object$2 = Object;
|
|
360
363
|
|
|
361
|
-
var isSymbol$
|
|
364
|
+
var isSymbol$3 = USE_SYMBOL_AS_UID ? function (it) {
|
|
362
365
|
return typeof it == 'symbol';
|
|
363
366
|
} : function (it) {
|
|
364
|
-
var $Symbol = getBuiltIn$
|
|
365
|
-
return isCallable$
|
|
367
|
+
var $Symbol = getBuiltIn$8('Symbol');
|
|
368
|
+
return isCallable$k($Symbol) && isPrototypeOf$4($Symbol.prototype, $Object$2(it));
|
|
366
369
|
};
|
|
367
370
|
|
|
368
|
-
var $String$
|
|
371
|
+
var $String$4 = String;
|
|
369
372
|
|
|
370
373
|
var tryToString$5 = function (argument) {
|
|
371
374
|
try {
|
|
372
|
-
return $String$
|
|
375
|
+
return $String$4(argument);
|
|
373
376
|
} catch (error) {
|
|
374
377
|
return 'Object';
|
|
375
378
|
}
|
|
376
379
|
};
|
|
377
380
|
|
|
378
|
-
var isCallable$
|
|
381
|
+
var isCallable$j = isCallable$n;
|
|
379
382
|
var tryToString$4 = tryToString$5;
|
|
380
383
|
|
|
381
|
-
var $TypeError$
|
|
384
|
+
var $TypeError$g = TypeError;
|
|
382
385
|
|
|
383
386
|
// `Assert: IsCallable(argument) is true`
|
|
384
387
|
var aCallable$a = function (argument) {
|
|
385
|
-
if (isCallable$
|
|
386
|
-
throw new $TypeError$
|
|
388
|
+
if (isCallable$j(argument)) return argument;
|
|
389
|
+
throw new $TypeError$g(tryToString$4(argument) + ' is not a function');
|
|
387
390
|
};
|
|
388
391
|
|
|
389
392
|
var aCallable$9 = aCallable$a;
|
|
390
|
-
var isNullOrUndefined$
|
|
393
|
+
var isNullOrUndefined$3 = isNullOrUndefined$5;
|
|
391
394
|
|
|
392
395
|
// `GetMethod` abstract operation
|
|
393
396
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
394
|
-
var getMethod$
|
|
397
|
+
var getMethod$4 = function (V, P) {
|
|
395
398
|
var func = V[P];
|
|
396
|
-
return isNullOrUndefined$
|
|
399
|
+
return isNullOrUndefined$3(func) ? undefined : aCallable$9(func);
|
|
397
400
|
};
|
|
398
401
|
|
|
399
|
-
var call$
|
|
400
|
-
var isCallable$
|
|
401
|
-
var isObject$
|
|
402
|
+
var call$h = functionCall;
|
|
403
|
+
var isCallable$i = isCallable$n;
|
|
404
|
+
var isObject$9 = isObject$c;
|
|
402
405
|
|
|
403
|
-
var $TypeError$
|
|
406
|
+
var $TypeError$f = TypeError;
|
|
404
407
|
|
|
405
408
|
// `OrdinaryToPrimitive` abstract operation
|
|
406
409
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
407
410
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
408
411
|
var fn, val;
|
|
409
|
-
if (pref === 'string' && isCallable$
|
|
410
|
-
if (isCallable$
|
|
411
|
-
if (pref !== 'string' && isCallable$
|
|
412
|
-
throw new $TypeError$
|
|
412
|
+
if (pref === 'string' && isCallable$i(fn = input.toString) && !isObject$9(val = call$h(fn, input))) return val;
|
|
413
|
+
if (isCallable$i(fn = input.valueOf) && !isObject$9(val = call$h(fn, input))) return val;
|
|
414
|
+
if (pref !== 'string' && isCallable$i(fn = input.toString) && !isObject$9(val = call$h(fn, input))) return val;
|
|
415
|
+
throw new $TypeError$f("Can't convert object to primitive value");
|
|
413
416
|
};
|
|
414
417
|
|
|
415
|
-
var call$
|
|
416
|
-
var isObject$
|
|
417
|
-
var isSymbol$
|
|
418
|
-
var getMethod$
|
|
418
|
+
var call$g = functionCall;
|
|
419
|
+
var isObject$8 = isObject$c;
|
|
420
|
+
var isSymbol$2 = isSymbol$3;
|
|
421
|
+
var getMethod$3 = getMethod$4;
|
|
419
422
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
420
|
-
var wellKnownSymbol$
|
|
423
|
+
var wellKnownSymbol$g = wellKnownSymbol$h;
|
|
421
424
|
|
|
422
|
-
var $TypeError$
|
|
423
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
425
|
+
var $TypeError$e = TypeError;
|
|
426
|
+
var TO_PRIMITIVE = wellKnownSymbol$g('toPrimitive');
|
|
424
427
|
|
|
425
428
|
// `ToPrimitive` abstract operation
|
|
426
429
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
427
430
|
var toPrimitive$1 = function (input, pref) {
|
|
428
|
-
if (!isObject$
|
|
429
|
-
var exoticToPrim = getMethod$
|
|
431
|
+
if (!isObject$8(input) || isSymbol$2(input)) return input;
|
|
432
|
+
var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
|
|
430
433
|
var result;
|
|
431
434
|
if (exoticToPrim) {
|
|
432
435
|
if (pref === undefined) pref = 'default';
|
|
433
|
-
result = call$
|
|
434
|
-
if (!isObject$
|
|
435
|
-
throw new $TypeError$
|
|
436
|
+
result = call$g(exoticToPrim, input, pref);
|
|
437
|
+
if (!isObject$8(result) || isSymbol$2(result)) return result;
|
|
438
|
+
throw new $TypeError$e("Can't convert object to primitive value");
|
|
436
439
|
}
|
|
437
440
|
if (pref === undefined) pref = 'number';
|
|
438
441
|
return ordinaryToPrimitive(input, pref);
|
|
439
442
|
};
|
|
440
443
|
|
|
441
444
|
var toPrimitive = toPrimitive$1;
|
|
442
|
-
var isSymbol = isSymbol$
|
|
445
|
+
var isSymbol$1 = isSymbol$3;
|
|
443
446
|
|
|
444
447
|
// `ToPropertyKey` abstract operation
|
|
445
448
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
446
449
|
var toPropertyKey$2 = function (argument) {
|
|
447
450
|
var key = toPrimitive(argument, 'string');
|
|
448
|
-
return isSymbol(key) ? key : key + '';
|
|
451
|
+
return isSymbol$1(key) ? key : key + '';
|
|
449
452
|
};
|
|
450
453
|
|
|
451
|
-
var DESCRIPTORS$
|
|
454
|
+
var DESCRIPTORS$b = descriptors;
|
|
452
455
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
453
456
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
454
|
-
var anObject$
|
|
457
|
+
var anObject$d = anObject$e;
|
|
455
458
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
456
459
|
|
|
457
|
-
var $TypeError$
|
|
460
|
+
var $TypeError$d = TypeError;
|
|
458
461
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
459
462
|
var $defineProperty = Object.defineProperty;
|
|
460
463
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -465,10 +468,10 @@ var WRITABLE = 'writable';
|
|
|
465
468
|
|
|
466
469
|
// `Object.defineProperty` method
|
|
467
470
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
468
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
469
|
-
anObject$
|
|
471
|
+
objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
472
|
+
anObject$d(O);
|
|
470
473
|
P = toPropertyKey$1(P);
|
|
471
|
-
anObject$
|
|
474
|
+
anObject$d(Attributes);
|
|
472
475
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
473
476
|
var current = $getOwnPropertyDescriptor$1(O, P);
|
|
474
477
|
if (current && current[WRITABLE]) {
|
|
@@ -481,13 +484,13 @@ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
481
484
|
}
|
|
482
485
|
} return $defineProperty(O, P, Attributes);
|
|
483
486
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
484
|
-
anObject$
|
|
487
|
+
anObject$d(O);
|
|
485
488
|
P = toPropertyKey$1(P);
|
|
486
|
-
anObject$
|
|
489
|
+
anObject$d(Attributes);
|
|
487
490
|
if (IE8_DOM_DEFINE$1) try {
|
|
488
491
|
return $defineProperty(O, P, Attributes);
|
|
489
492
|
} catch (error) { /* empty */ }
|
|
490
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
493
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$d('Accessors not supported');
|
|
491
494
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
492
495
|
return O;
|
|
493
496
|
};
|
|
@@ -507,53 +510,53 @@ var trunc = mathTrunc;
|
|
|
507
510
|
|
|
508
511
|
// `ToIntegerOrInfinity` abstract operation
|
|
509
512
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
510
|
-
var toIntegerOrInfinity$
|
|
513
|
+
var toIntegerOrInfinity$3 = function (argument) {
|
|
511
514
|
var number = +argument;
|
|
512
515
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
513
516
|
return number !== number || number === 0 ? 0 : trunc(number);
|
|
514
517
|
};
|
|
515
518
|
|
|
516
|
-
var toIntegerOrInfinity$
|
|
519
|
+
var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
|
|
517
520
|
|
|
518
521
|
var max = Math.max;
|
|
519
|
-
var min$
|
|
522
|
+
var min$2 = Math.min;
|
|
520
523
|
|
|
521
524
|
// Helper for a popular repeating case of the spec:
|
|
522
525
|
// Let integer be ? ToInteger(index).
|
|
523
526
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
524
527
|
var toAbsoluteIndex$1 = function (index, length) {
|
|
525
|
-
var integer = toIntegerOrInfinity$
|
|
526
|
-
return integer < 0 ? max(integer + length, 0) : min$
|
|
528
|
+
var integer = toIntegerOrInfinity$2(index);
|
|
529
|
+
return integer < 0 ? max(integer + length, 0) : min$2(integer, length);
|
|
527
530
|
};
|
|
528
531
|
|
|
529
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$
|
|
532
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
|
|
530
533
|
|
|
531
|
-
var min = Math.min;
|
|
534
|
+
var min$1 = Math.min;
|
|
532
535
|
|
|
533
536
|
// `ToLength` abstract operation
|
|
534
537
|
// https://tc39.es/ecma262/#sec-tolength
|
|
535
|
-
var toLength$
|
|
536
|
-
var len = toIntegerOrInfinity(argument);
|
|
537
|
-
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
538
|
+
var toLength$2 = function (argument) {
|
|
539
|
+
var len = toIntegerOrInfinity$1(argument);
|
|
540
|
+
return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
538
541
|
};
|
|
539
542
|
|
|
540
|
-
var toLength = toLength$
|
|
543
|
+
var toLength$1 = toLength$2;
|
|
541
544
|
|
|
542
545
|
// `LengthOfArrayLike` abstract operation
|
|
543
546
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
544
|
-
var lengthOfArrayLike$
|
|
545
|
-
return toLength(obj.length);
|
|
547
|
+
var lengthOfArrayLike$6 = function (obj) {
|
|
548
|
+
return toLength$1(obj.length);
|
|
546
549
|
};
|
|
547
550
|
|
|
548
551
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
549
552
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
550
|
-
var lengthOfArrayLike$
|
|
553
|
+
var lengthOfArrayLike$5 = lengthOfArrayLike$6;
|
|
551
554
|
|
|
552
555
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
553
|
-
var createMethod$
|
|
556
|
+
var createMethod$3 = function (IS_INCLUDES) {
|
|
554
557
|
return function ($this, el, fromIndex) {
|
|
555
558
|
var O = toIndexedObject$4($this);
|
|
556
|
-
var length = lengthOfArrayLike$
|
|
559
|
+
var length = lengthOfArrayLike$5(O);
|
|
557
560
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
558
561
|
var value;
|
|
559
562
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -572,31 +575,31 @@ var createMethod$2 = function (IS_INCLUDES) {
|
|
|
572
575
|
var arrayIncludes = {
|
|
573
576
|
// `Array.prototype.includes` method
|
|
574
577
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
575
|
-
includes: createMethod$
|
|
578
|
+
includes: createMethod$3(true),
|
|
576
579
|
// `Array.prototype.indexOf` method
|
|
577
580
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
578
|
-
indexOf: createMethod$
|
|
581
|
+
indexOf: createMethod$3(false)
|
|
579
582
|
};
|
|
580
583
|
|
|
581
584
|
var hiddenKeys$4 = {};
|
|
582
585
|
|
|
583
|
-
var uncurryThis$
|
|
584
|
-
var hasOwn$
|
|
586
|
+
var uncurryThis$k = functionUncurryThis;
|
|
587
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
585
588
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
586
|
-
var indexOf = arrayIncludes.indexOf;
|
|
589
|
+
var indexOf$1 = arrayIncludes.indexOf;
|
|
587
590
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
588
591
|
|
|
589
|
-
var push$
|
|
592
|
+
var push$3 = uncurryThis$k([].push);
|
|
590
593
|
|
|
591
594
|
var objectKeysInternal = function (object, names) {
|
|
592
595
|
var O = toIndexedObject$3(object);
|
|
593
596
|
var i = 0;
|
|
594
597
|
var result = [];
|
|
595
598
|
var key;
|
|
596
|
-
for (key in O) !hasOwn$
|
|
599
|
+
for (key in O) !hasOwn$a(hiddenKeys$3, key) && hasOwn$a(O, key) && push$3(result, key);
|
|
597
600
|
// Don't enum bug & hidden keys
|
|
598
|
-
while (names.length > i) if (hasOwn$
|
|
599
|
-
~indexOf(result, key) || push$
|
|
601
|
+
while (names.length > i) if (hasOwn$a(O, key = names[i++])) {
|
|
602
|
+
~indexOf$1(result, key) || push$3(result, key);
|
|
600
603
|
}
|
|
601
604
|
return result;
|
|
602
605
|
};
|
|
@@ -622,18 +625,18 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
622
625
|
return internalObjectKeys$1(O, enumBugKeys$2);
|
|
623
626
|
};
|
|
624
627
|
|
|
625
|
-
var DESCRIPTORS$
|
|
628
|
+
var DESCRIPTORS$a = descriptors;
|
|
626
629
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
627
630
|
var definePropertyModule$3 = objectDefineProperty;
|
|
628
|
-
var anObject$
|
|
631
|
+
var anObject$c = anObject$e;
|
|
629
632
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
630
633
|
var objectKeys$1 = objectKeys$2;
|
|
631
634
|
|
|
632
635
|
// `Object.defineProperties` method
|
|
633
636
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
634
637
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
635
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
636
|
-
anObject$
|
|
638
|
+
objectDefineProperties.f = DESCRIPTORS$a && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
639
|
+
anObject$c(O);
|
|
637
640
|
var props = toIndexedObject$2(Properties);
|
|
638
641
|
var keys = objectKeys$1(Properties);
|
|
639
642
|
var length = keys.length;
|
|
@@ -643,21 +646,21 @@ objectDefineProperties.f = DESCRIPTORS$8 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
643
646
|
return O;
|
|
644
647
|
};
|
|
645
648
|
|
|
646
|
-
var getBuiltIn$
|
|
649
|
+
var getBuiltIn$7 = getBuiltIn$9;
|
|
647
650
|
|
|
648
|
-
var html$2 = getBuiltIn$
|
|
651
|
+
var html$2 = getBuiltIn$7('document', 'documentElement');
|
|
649
652
|
|
|
650
|
-
var shared$
|
|
653
|
+
var shared$2 = shared$4.exports;
|
|
651
654
|
var uid = uid$2;
|
|
652
655
|
|
|
653
|
-
var keys = shared$
|
|
656
|
+
var keys = shared$2('keys');
|
|
654
657
|
|
|
655
658
|
var sharedKey$3 = function (key) {
|
|
656
659
|
return keys[key] || (keys[key] = uid(key));
|
|
657
660
|
};
|
|
658
661
|
|
|
659
662
|
/* global ActiveXObject -- old IE, WSH */
|
|
660
|
-
var anObject$
|
|
663
|
+
var anObject$b = anObject$e;
|
|
661
664
|
var definePropertiesModule = objectDefineProperties;
|
|
662
665
|
var enumBugKeys$1 = enumBugKeys$3;
|
|
663
666
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
@@ -731,7 +734,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
|
|
|
731
734
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
732
735
|
var result;
|
|
733
736
|
if (O !== null) {
|
|
734
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
737
|
+
EmptyConstructor[PROTOTYPE] = anObject$b(O);
|
|
735
738
|
result = new EmptyConstructor();
|
|
736
739
|
EmptyConstructor[PROTOTYPE] = null;
|
|
737
740
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -740,19 +743,19 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
740
743
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
741
744
|
};
|
|
742
745
|
|
|
743
|
-
var wellKnownSymbol$
|
|
744
|
-
var create$
|
|
745
|
-
var defineProperty$
|
|
746
|
+
var wellKnownSymbol$f = wellKnownSymbol$h;
|
|
747
|
+
var create$2 = objectCreate;
|
|
748
|
+
var defineProperty$6 = objectDefineProperty.f;
|
|
746
749
|
|
|
747
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
750
|
+
var UNSCOPABLES = wellKnownSymbol$f('unscopables');
|
|
748
751
|
var ArrayPrototype$1 = Array.prototype;
|
|
749
752
|
|
|
750
753
|
// Array.prototype[@@unscopables]
|
|
751
754
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
752
755
|
if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
|
|
753
|
-
defineProperty$
|
|
756
|
+
defineProperty$6(ArrayPrototype$1, UNSCOPABLES, {
|
|
754
757
|
configurable: true,
|
|
755
|
-
value: create$
|
|
758
|
+
value: create$2(null)
|
|
756
759
|
});
|
|
757
760
|
}
|
|
758
761
|
|
|
@@ -763,14 +766,14 @@ var addToUnscopables$2 = function (key) {
|
|
|
763
766
|
|
|
764
767
|
var iterators = {};
|
|
765
768
|
|
|
766
|
-
var global$
|
|
767
|
-
var isCallable$
|
|
769
|
+
var global$g = global$o;
|
|
770
|
+
var isCallable$h = isCallable$n;
|
|
768
771
|
|
|
769
|
-
var WeakMap$1 = global$
|
|
772
|
+
var WeakMap$1 = global$g.WeakMap;
|
|
770
773
|
|
|
771
|
-
var weakMapBasicDetection = isCallable$
|
|
774
|
+
var weakMapBasicDetection = isCallable$h(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
772
775
|
|
|
773
|
-
var createPropertyDescriptor$
|
|
776
|
+
var createPropertyDescriptor$4 = function (bitmap, value) {
|
|
774
777
|
return {
|
|
775
778
|
enumerable: !(bitmap & 1),
|
|
776
779
|
configurable: !(bitmap & 2),
|
|
@@ -779,29 +782,29 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
779
782
|
};
|
|
780
783
|
};
|
|
781
784
|
|
|
782
|
-
var DESCRIPTORS$
|
|
785
|
+
var DESCRIPTORS$9 = descriptors;
|
|
783
786
|
var definePropertyModule$2 = objectDefineProperty;
|
|
784
|
-
var createPropertyDescriptor$
|
|
787
|
+
var createPropertyDescriptor$3 = createPropertyDescriptor$4;
|
|
785
788
|
|
|
786
|
-
var createNonEnumerableProperty$
|
|
787
|
-
return definePropertyModule$2.f(object, key, createPropertyDescriptor$
|
|
789
|
+
var createNonEnumerableProperty$8 = DESCRIPTORS$9 ? function (object, key, value) {
|
|
790
|
+
return definePropertyModule$2.f(object, key, createPropertyDescriptor$3(1, value));
|
|
788
791
|
} : function (object, key, value) {
|
|
789
792
|
object[key] = value;
|
|
790
793
|
return object;
|
|
791
794
|
};
|
|
792
795
|
|
|
793
796
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
794
|
-
var global$
|
|
795
|
-
var isObject$
|
|
796
|
-
var createNonEnumerableProperty$
|
|
797
|
-
var hasOwn$
|
|
798
|
-
var shared = sharedStore;
|
|
797
|
+
var global$f = global$o;
|
|
798
|
+
var isObject$7 = isObject$c;
|
|
799
|
+
var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
|
|
800
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
801
|
+
var shared$1 = sharedStore;
|
|
799
802
|
var sharedKey$1 = sharedKey$3;
|
|
800
803
|
var hiddenKeys$1 = hiddenKeys$4;
|
|
801
804
|
|
|
802
805
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
803
|
-
var TypeError$2 = global$
|
|
804
|
-
var WeakMap = global$
|
|
806
|
+
var TypeError$2 = global$f.TypeError;
|
|
807
|
+
var WeakMap = global$f.WeakMap;
|
|
805
808
|
var set$1, get, has;
|
|
806
809
|
|
|
807
810
|
var enforce = function (it) {
|
|
@@ -811,14 +814,14 @@ var enforce = function (it) {
|
|
|
811
814
|
var getterFor = function (TYPE) {
|
|
812
815
|
return function (it) {
|
|
813
816
|
var state;
|
|
814
|
-
if (!isObject$
|
|
817
|
+
if (!isObject$7(it) || (state = get(it)).type !== TYPE) {
|
|
815
818
|
throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
|
816
819
|
} return state;
|
|
817
820
|
};
|
|
818
821
|
};
|
|
819
822
|
|
|
820
|
-
if (NATIVE_WEAK_MAP || shared.state) {
|
|
821
|
-
var store$1 = shared.state || (shared.state = new WeakMap());
|
|
823
|
+
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
824
|
+
var store$1 = shared$1.state || (shared$1.state = new WeakMap());
|
|
822
825
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
823
826
|
store$1.get = store$1.get;
|
|
824
827
|
store$1.has = store$1.has;
|
|
@@ -840,16 +843,16 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
840
843
|
var STATE = sharedKey$1('state');
|
|
841
844
|
hiddenKeys$1[STATE] = true;
|
|
842
845
|
set$1 = function (it, metadata) {
|
|
843
|
-
if (hasOwn$
|
|
846
|
+
if (hasOwn$9(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
844
847
|
metadata.facade = it;
|
|
845
|
-
createNonEnumerableProperty$
|
|
848
|
+
createNonEnumerableProperty$7(it, STATE, metadata);
|
|
846
849
|
return metadata;
|
|
847
850
|
};
|
|
848
851
|
get = function (it) {
|
|
849
|
-
return hasOwn$
|
|
852
|
+
return hasOwn$9(it, STATE) ? it[STATE] : {};
|
|
850
853
|
};
|
|
851
854
|
has = function (it) {
|
|
852
|
-
return hasOwn$
|
|
855
|
+
return hasOwn$9(it, STATE);
|
|
853
856
|
};
|
|
854
857
|
}
|
|
855
858
|
|
|
@@ -867,25 +870,25 @@ var objectPropertyIsEnumerable = {};
|
|
|
867
870
|
|
|
868
871
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
869
872
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
870
|
-
var getOwnPropertyDescriptor$
|
|
873
|
+
var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
|
|
871
874
|
|
|
872
875
|
// Nashorn ~ JDK8 bug
|
|
873
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
876
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
874
877
|
|
|
875
878
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
876
879
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
877
880
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
878
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
881
|
+
var descriptor = getOwnPropertyDescriptor$3(this, V);
|
|
879
882
|
return !!descriptor && descriptor.enumerable;
|
|
880
883
|
} : $propertyIsEnumerable;
|
|
881
884
|
|
|
882
|
-
var DESCRIPTORS$
|
|
883
|
-
var call$
|
|
885
|
+
var DESCRIPTORS$8 = descriptors;
|
|
886
|
+
var call$f = functionCall;
|
|
884
887
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
885
|
-
var createPropertyDescriptor$
|
|
888
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$4;
|
|
886
889
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
887
890
|
var toPropertyKey = toPropertyKey$2;
|
|
888
|
-
var hasOwn$
|
|
891
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
889
892
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
890
893
|
|
|
891
894
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -893,28 +896,28 @@ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
|
893
896
|
|
|
894
897
|
// `Object.getOwnPropertyDescriptor` method
|
|
895
898
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
896
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
899
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
897
900
|
O = toIndexedObject$1(O);
|
|
898
901
|
P = toPropertyKey(P);
|
|
899
902
|
if (IE8_DOM_DEFINE) try {
|
|
900
903
|
return $getOwnPropertyDescriptor(O, P);
|
|
901
904
|
} catch (error) { /* empty */ }
|
|
902
|
-
if (hasOwn$
|
|
905
|
+
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$f(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
903
906
|
};
|
|
904
907
|
|
|
905
908
|
var makeBuiltIn$3 = {exports: {}};
|
|
906
909
|
|
|
907
|
-
var DESCRIPTORS$
|
|
908
|
-
var hasOwn$
|
|
910
|
+
var DESCRIPTORS$7 = descriptors;
|
|
911
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
909
912
|
|
|
910
913
|
var FunctionPrototype$1 = Function.prototype;
|
|
911
914
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
912
|
-
var getDescriptor = DESCRIPTORS$
|
|
915
|
+
var getDescriptor = DESCRIPTORS$7 && Object.getOwnPropertyDescriptor;
|
|
913
916
|
|
|
914
|
-
var EXISTS = hasOwn$
|
|
917
|
+
var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
|
|
915
918
|
// additional protection from minified / mangled / dropped function names
|
|
916
919
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
917
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
920
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$7 || (DESCRIPTORS$7 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
918
921
|
|
|
919
922
|
var functionName = {
|
|
920
923
|
EXISTS: EXISTS,
|
|
@@ -922,14 +925,14 @@ var functionName = {
|
|
|
922
925
|
CONFIGURABLE: CONFIGURABLE
|
|
923
926
|
};
|
|
924
927
|
|
|
925
|
-
var uncurryThis$
|
|
926
|
-
var isCallable$
|
|
928
|
+
var uncurryThis$j = functionUncurryThis;
|
|
929
|
+
var isCallable$g = isCallable$n;
|
|
927
930
|
var store = sharedStore;
|
|
928
931
|
|
|
929
|
-
var functionToString = uncurryThis$
|
|
932
|
+
var functionToString = uncurryThis$j(Function.toString);
|
|
930
933
|
|
|
931
934
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
932
|
-
if (!isCallable$
|
|
935
|
+
if (!isCallable$g(store.inspectSource)) {
|
|
933
936
|
store.inspectSource = function (it) {
|
|
934
937
|
return functionToString(it);
|
|
935
938
|
};
|
|
@@ -937,51 +940,51 @@ if (!isCallable$c(store.inspectSource)) {
|
|
|
937
940
|
|
|
938
941
|
var inspectSource$3 = store.inspectSource;
|
|
939
942
|
|
|
940
|
-
var uncurryThis$
|
|
941
|
-
var fails$
|
|
942
|
-
var isCallable$
|
|
943
|
-
var hasOwn$
|
|
944
|
-
var DESCRIPTORS$
|
|
943
|
+
var uncurryThis$i = functionUncurryThis;
|
|
944
|
+
var fails$j = fails$q;
|
|
945
|
+
var isCallable$f = isCallable$n;
|
|
946
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
947
|
+
var DESCRIPTORS$6 = descriptors;
|
|
945
948
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
946
949
|
var inspectSource$2 = inspectSource$3;
|
|
947
950
|
var InternalStateModule$2 = internalState;
|
|
948
951
|
|
|
949
952
|
var enforceInternalState = InternalStateModule$2.enforce;
|
|
950
|
-
var getInternalState$
|
|
951
|
-
var $String$
|
|
953
|
+
var getInternalState$2 = InternalStateModule$2.get;
|
|
954
|
+
var $String$3 = String;
|
|
952
955
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
953
|
-
var defineProperty$
|
|
954
|
-
var stringSlice = uncurryThis$
|
|
955
|
-
var replace$
|
|
956
|
-
var join = uncurryThis$
|
|
956
|
+
var defineProperty$5 = Object.defineProperty;
|
|
957
|
+
var stringSlice$3 = uncurryThis$i(''.slice);
|
|
958
|
+
var replace$4 = uncurryThis$i(''.replace);
|
|
959
|
+
var join = uncurryThis$i([].join);
|
|
957
960
|
|
|
958
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
959
|
-
return defineProperty$
|
|
961
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$6 && !fails$j(function () {
|
|
962
|
+
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
960
963
|
});
|
|
961
964
|
|
|
962
965
|
var TEMPLATE = String(String).split('String');
|
|
963
966
|
|
|
964
967
|
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
965
|
-
if (stringSlice($String$
|
|
966
|
-
name = '[' + replace$
|
|
968
|
+
if (stringSlice$3($String$3(name), 0, 7) === 'Symbol(') {
|
|
969
|
+
name = '[' + replace$4($String$3(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
967
970
|
}
|
|
968
971
|
if (options && options.getter) name = 'get ' + name;
|
|
969
972
|
if (options && options.setter) name = 'set ' + name;
|
|
970
|
-
if (!hasOwn$
|
|
971
|
-
if (DESCRIPTORS$
|
|
973
|
+
if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
974
|
+
if (DESCRIPTORS$6) defineProperty$5(value, 'name', { value: name, configurable: true });
|
|
972
975
|
else value.name = name;
|
|
973
976
|
}
|
|
974
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
975
|
-
defineProperty$
|
|
977
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
|
|
978
|
+
defineProperty$5(value, 'length', { value: options.arity });
|
|
976
979
|
}
|
|
977
980
|
try {
|
|
978
|
-
if (options && hasOwn$
|
|
979
|
-
if (DESCRIPTORS$
|
|
981
|
+
if (options && hasOwn$6(options, 'constructor') && options.constructor) {
|
|
982
|
+
if (DESCRIPTORS$6) defineProperty$5(value, 'prototype', { writable: false });
|
|
980
983
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
981
984
|
} else if (value.prototype) value.prototype = undefined;
|
|
982
985
|
} catch (error) { /* empty */ }
|
|
983
986
|
var state = enforceInternalState(value);
|
|
984
|
-
if (!hasOwn$
|
|
987
|
+
if (!hasOwn$6(state, 'source')) {
|
|
985
988
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
986
989
|
} return value;
|
|
987
990
|
};
|
|
@@ -989,19 +992,19 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
989
992
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
990
993
|
// eslint-disable-next-line no-extend-native -- required
|
|
991
994
|
Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
992
|
-
return isCallable$
|
|
995
|
+
return isCallable$f(this) && getInternalState$2(this).source || inspectSource$2(this);
|
|
993
996
|
}, 'toString');
|
|
994
997
|
|
|
995
|
-
var isCallable$
|
|
998
|
+
var isCallable$e = isCallable$n;
|
|
996
999
|
var definePropertyModule$1 = objectDefineProperty;
|
|
997
1000
|
var makeBuiltIn$1 = makeBuiltIn$3.exports;
|
|
998
1001
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
999
1002
|
|
|
1000
|
-
var defineBuiltIn$
|
|
1003
|
+
var defineBuiltIn$7 = function (O, key, value, options) {
|
|
1001
1004
|
if (!options) options = {};
|
|
1002
1005
|
var simple = options.enumerable;
|
|
1003
1006
|
var name = options.name !== undefined ? options.name : key;
|
|
1004
|
-
if (isCallable$
|
|
1007
|
+
if (isCallable$e(value)) makeBuiltIn$1(value, name, options);
|
|
1005
1008
|
if (options.global) {
|
|
1006
1009
|
if (simple) O[key] = value;
|
|
1007
1010
|
else defineGlobalProperty$1(key, value);
|
|
@@ -1039,40 +1042,40 @@ var objectGetOwnPropertySymbols = {};
|
|
|
1039
1042
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
1040
1043
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
1041
1044
|
|
|
1042
|
-
var getBuiltIn$
|
|
1043
|
-
var uncurryThis$
|
|
1045
|
+
var getBuiltIn$6 = getBuiltIn$9;
|
|
1046
|
+
var uncurryThis$h = functionUncurryThis;
|
|
1044
1047
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1045
1048
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1046
|
-
var anObject$
|
|
1049
|
+
var anObject$a = anObject$e;
|
|
1047
1050
|
|
|
1048
|
-
var concat$1 = uncurryThis$
|
|
1051
|
+
var concat$1 = uncurryThis$h([].concat);
|
|
1049
1052
|
|
|
1050
1053
|
// all object keys, includes non-enumerable and symbols
|
|
1051
|
-
var ownKeys$1 = getBuiltIn$
|
|
1052
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
1054
|
+
var ownKeys$1 = getBuiltIn$6('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1055
|
+
var keys = getOwnPropertyNamesModule.f(anObject$a(it));
|
|
1053
1056
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
1054
1057
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
1055
1058
|
};
|
|
1056
1059
|
|
|
1057
|
-
var hasOwn$
|
|
1060
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
1058
1061
|
var ownKeys = ownKeys$1;
|
|
1059
1062
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1060
1063
|
var definePropertyModule = objectDefineProperty;
|
|
1061
1064
|
|
|
1062
|
-
var copyConstructorProperties$
|
|
1065
|
+
var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
1063
1066
|
var keys = ownKeys(source);
|
|
1064
1067
|
var defineProperty = definePropertyModule.f;
|
|
1065
1068
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1066
1069
|
for (var i = 0; i < keys.length; i++) {
|
|
1067
1070
|
var key = keys[i];
|
|
1068
|
-
if (!hasOwn$
|
|
1071
|
+
if (!hasOwn$5(target, key) && !(exceptions && hasOwn$5(exceptions, key))) {
|
|
1069
1072
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1070
1073
|
}
|
|
1071
1074
|
}
|
|
1072
1075
|
};
|
|
1073
1076
|
|
|
1074
|
-
var fails$
|
|
1075
|
-
var isCallable$
|
|
1077
|
+
var fails$i = fails$q;
|
|
1078
|
+
var isCallable$d = isCallable$n;
|
|
1076
1079
|
|
|
1077
1080
|
var replacement = /#|\.prototype\./;
|
|
1078
1081
|
|
|
@@ -1080,7 +1083,7 @@ var isForced$2 = function (feature, detection) {
|
|
|
1080
1083
|
var value = data[normalize(feature)];
|
|
1081
1084
|
return value === POLYFILL ? true
|
|
1082
1085
|
: value === NATIVE ? false
|
|
1083
|
-
: isCallable$
|
|
1086
|
+
: isCallable$d(detection) ? fails$i(detection)
|
|
1084
1087
|
: !!detection;
|
|
1085
1088
|
};
|
|
1086
1089
|
|
|
@@ -1094,12 +1097,12 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
|
1094
1097
|
|
|
1095
1098
|
var isForced_1 = isForced$2;
|
|
1096
1099
|
|
|
1097
|
-
var global$
|
|
1098
|
-
var getOwnPropertyDescriptor$
|
|
1099
|
-
var createNonEnumerableProperty$
|
|
1100
|
-
var defineBuiltIn$
|
|
1100
|
+
var global$e = global$o;
|
|
1101
|
+
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
1102
|
+
var createNonEnumerableProperty$6 = createNonEnumerableProperty$8;
|
|
1103
|
+
var defineBuiltIn$6 = defineBuiltIn$7;
|
|
1101
1104
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
1102
|
-
var copyConstructorProperties = copyConstructorProperties$
|
|
1105
|
+
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
1103
1106
|
var isForced$1 = isForced_1;
|
|
1104
1107
|
|
|
1105
1108
|
/*
|
|
@@ -1123,44 +1126,44 @@ var _export = function (options, source) {
|
|
|
1123
1126
|
var STATIC = options.stat;
|
|
1124
1127
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1125
1128
|
if (GLOBAL) {
|
|
1126
|
-
target = global$
|
|
1129
|
+
target = global$e;
|
|
1127
1130
|
} else if (STATIC) {
|
|
1128
|
-
target = global$
|
|
1131
|
+
target = global$e[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1129
1132
|
} else {
|
|
1130
|
-
target = global$
|
|
1133
|
+
target = global$e[TARGET] && global$e[TARGET].prototype;
|
|
1131
1134
|
}
|
|
1132
1135
|
if (target) for (key in source) {
|
|
1133
1136
|
sourceProperty = source[key];
|
|
1134
1137
|
if (options.dontCallGetSet) {
|
|
1135
|
-
descriptor = getOwnPropertyDescriptor$
|
|
1138
|
+
descriptor = getOwnPropertyDescriptor$2(target, key);
|
|
1136
1139
|
targetProperty = descriptor && descriptor.value;
|
|
1137
1140
|
} else targetProperty = target[key];
|
|
1138
1141
|
FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1139
1142
|
// contained in target
|
|
1140
1143
|
if (!FORCED && targetProperty !== undefined) {
|
|
1141
1144
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
1142
|
-
copyConstructorProperties(sourceProperty, targetProperty);
|
|
1145
|
+
copyConstructorProperties$1(sourceProperty, targetProperty);
|
|
1143
1146
|
}
|
|
1144
1147
|
// add a flag to not completely full polyfills
|
|
1145
1148
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1146
|
-
createNonEnumerableProperty$
|
|
1149
|
+
createNonEnumerableProperty$6(sourceProperty, 'sham', true);
|
|
1147
1150
|
}
|
|
1148
|
-
defineBuiltIn$
|
|
1151
|
+
defineBuiltIn$6(target, key, sourceProperty, options);
|
|
1149
1152
|
}
|
|
1150
1153
|
};
|
|
1151
1154
|
|
|
1152
|
-
var fails$
|
|
1155
|
+
var fails$h = fails$q;
|
|
1153
1156
|
|
|
1154
|
-
var correctPrototypeGetter = !fails$
|
|
1157
|
+
var correctPrototypeGetter = !fails$h(function () {
|
|
1155
1158
|
function F() { /* empty */ }
|
|
1156
1159
|
F.prototype.constructor = null;
|
|
1157
1160
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1158
1161
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1159
1162
|
});
|
|
1160
1163
|
|
|
1161
|
-
var hasOwn$
|
|
1162
|
-
var isCallable$
|
|
1163
|
-
var toObject$
|
|
1164
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
1165
|
+
var isCallable$c = isCallable$n;
|
|
1166
|
+
var toObject$5 = toObject$7;
|
|
1164
1167
|
var sharedKey = sharedKey$3;
|
|
1165
1168
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1166
1169
|
|
|
@@ -1172,22 +1175,22 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1172
1175
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1173
1176
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1174
1177
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1175
|
-
var object = toObject$
|
|
1176
|
-
if (hasOwn$
|
|
1178
|
+
var object = toObject$5(O);
|
|
1179
|
+
if (hasOwn$4(object, IE_PROTO)) return object[IE_PROTO];
|
|
1177
1180
|
var constructor = object.constructor;
|
|
1178
|
-
if (isCallable$
|
|
1181
|
+
if (isCallable$c(constructor) && object instanceof constructor) {
|
|
1179
1182
|
return constructor.prototype;
|
|
1180
1183
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1181
1184
|
};
|
|
1182
1185
|
|
|
1183
|
-
var fails$
|
|
1184
|
-
var isCallable$
|
|
1185
|
-
var isObject$
|
|
1186
|
+
var fails$g = fails$q;
|
|
1187
|
+
var isCallable$b = isCallable$n;
|
|
1188
|
+
var isObject$6 = isObject$c;
|
|
1186
1189
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1187
|
-
var defineBuiltIn$
|
|
1188
|
-
var wellKnownSymbol$
|
|
1190
|
+
var defineBuiltIn$5 = defineBuiltIn$7;
|
|
1191
|
+
var wellKnownSymbol$e = wellKnownSymbol$h;
|
|
1189
1192
|
|
|
1190
|
-
var ITERATOR$6 = wellKnownSymbol$
|
|
1193
|
+
var ITERATOR$6 = wellKnownSymbol$e('iterator');
|
|
1191
1194
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1192
1195
|
|
|
1193
1196
|
// `%IteratorPrototype%` object
|
|
@@ -1205,7 +1208,7 @@ if ([].keys) {
|
|
|
1205
1208
|
}
|
|
1206
1209
|
}
|
|
1207
1210
|
|
|
1208
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$
|
|
1211
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$6(IteratorPrototype$2) || fails$g(function () {
|
|
1209
1212
|
var test = {};
|
|
1210
1213
|
// FF44- legacy iterators case
|
|
1211
1214
|
return IteratorPrototype$2[ITERATOR$6].call(test) !== test;
|
|
@@ -1215,8 +1218,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1215
1218
|
|
|
1216
1219
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1217
1220
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1218
|
-
if (!isCallable$
|
|
1219
|
-
defineBuiltIn$
|
|
1221
|
+
if (!isCallable$b(IteratorPrototype$2[ITERATOR$6])) {
|
|
1222
|
+
defineBuiltIn$5(IteratorPrototype$2, ITERATOR$6, function () {
|
|
1220
1223
|
return this;
|
|
1221
1224
|
});
|
|
1222
1225
|
}
|
|
@@ -1226,22 +1229,22 @@ var iteratorsCore = {
|
|
|
1226
1229
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1227
1230
|
};
|
|
1228
1231
|
|
|
1229
|
-
var defineProperty$
|
|
1230
|
-
var hasOwn$
|
|
1231
|
-
var wellKnownSymbol$
|
|
1232
|
+
var defineProperty$4 = objectDefineProperty.f;
|
|
1233
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1234
|
+
var wellKnownSymbol$d = wellKnownSymbol$h;
|
|
1232
1235
|
|
|
1233
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$
|
|
1236
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$d('toStringTag');
|
|
1234
1237
|
|
|
1235
1238
|
var setToStringTag$4 = function (target, TAG, STATIC) {
|
|
1236
1239
|
if (target && !STATIC) target = target.prototype;
|
|
1237
|
-
if (target && !hasOwn$
|
|
1238
|
-
defineProperty$
|
|
1240
|
+
if (target && !hasOwn$3(target, TO_STRING_TAG$2)) {
|
|
1241
|
+
defineProperty$4(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
|
|
1239
1242
|
}
|
|
1240
1243
|
};
|
|
1241
1244
|
|
|
1242
1245
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1243
|
-
var create = objectCreate;
|
|
1244
|
-
var createPropertyDescriptor = createPropertyDescriptor$
|
|
1246
|
+
var create$1 = objectCreate;
|
|
1247
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$4;
|
|
1245
1248
|
var setToStringTag$3 = setToStringTag$4;
|
|
1246
1249
|
var Iterators$4 = iterators;
|
|
1247
1250
|
|
|
@@ -1249,41 +1252,41 @@ var returnThis$1 = function () { return this; };
|
|
|
1249
1252
|
|
|
1250
1253
|
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1251
1254
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1252
|
-
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1255
|
+
IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
|
|
1253
1256
|
setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
|
|
1254
1257
|
Iterators$4[TO_STRING_TAG] = returnThis$1;
|
|
1255
1258
|
return IteratorConstructor;
|
|
1256
1259
|
};
|
|
1257
1260
|
|
|
1258
|
-
var uncurryThis$
|
|
1261
|
+
var uncurryThis$g = functionUncurryThis;
|
|
1259
1262
|
var aCallable$8 = aCallable$a;
|
|
1260
1263
|
|
|
1261
1264
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1262
1265
|
try {
|
|
1263
1266
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1264
|
-
return uncurryThis$
|
|
1267
|
+
return uncurryThis$g(aCallable$8(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1265
1268
|
} catch (error) { /* empty */ }
|
|
1266
1269
|
};
|
|
1267
1270
|
|
|
1268
|
-
var isObject$
|
|
1271
|
+
var isObject$5 = isObject$c;
|
|
1269
1272
|
|
|
1270
1273
|
var isPossiblePrototype$1 = function (argument) {
|
|
1271
|
-
return isObject$
|
|
1274
|
+
return isObject$5(argument) || argument === null;
|
|
1272
1275
|
};
|
|
1273
1276
|
|
|
1274
1277
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1275
1278
|
|
|
1276
|
-
var $String$
|
|
1277
|
-
var $TypeError$
|
|
1279
|
+
var $String$2 = String;
|
|
1280
|
+
var $TypeError$c = TypeError;
|
|
1278
1281
|
|
|
1279
1282
|
var aPossiblePrototype$1 = function (argument) {
|
|
1280
1283
|
if (isPossiblePrototype(argument)) return argument;
|
|
1281
|
-
throw new $TypeError$
|
|
1284
|
+
throw new $TypeError$c("Can't set " + $String$2(argument) + ' as a prototype');
|
|
1282
1285
|
};
|
|
1283
1286
|
|
|
1284
1287
|
/* eslint-disable no-proto -- safe */
|
|
1285
1288
|
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1286
|
-
var anObject$
|
|
1289
|
+
var anObject$9 = anObject$e;
|
|
1287
1290
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1288
1291
|
|
|
1289
1292
|
// `Object.setPrototypeOf` method
|
|
@@ -1300,7 +1303,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1300
1303
|
CORRECT_SETTER = test instanceof Array;
|
|
1301
1304
|
} catch (error) { /* empty */ }
|
|
1302
1305
|
return function setPrototypeOf(O, proto) {
|
|
1303
|
-
anObject$
|
|
1306
|
+
anObject$9(O);
|
|
1304
1307
|
aPossiblePrototype(proto);
|
|
1305
1308
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1306
1309
|
else O.__proto__ = proto;
|
|
@@ -1308,17 +1311,17 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1308
1311
|
};
|
|
1309
1312
|
}() : undefined);
|
|
1310
1313
|
|
|
1311
|
-
var $$
|
|
1312
|
-
var call$
|
|
1314
|
+
var $$i = _export;
|
|
1315
|
+
var call$e = functionCall;
|
|
1313
1316
|
var FunctionName = functionName;
|
|
1314
|
-
var isCallable$
|
|
1317
|
+
var isCallable$a = isCallable$n;
|
|
1315
1318
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1316
1319
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1317
|
-
var setPrototypeOf$
|
|
1320
|
+
var setPrototypeOf$3 = objectSetPrototypeOf;
|
|
1318
1321
|
var setToStringTag$2 = setToStringTag$4;
|
|
1319
|
-
var createNonEnumerableProperty$
|
|
1320
|
-
var defineBuiltIn$
|
|
1321
|
-
var wellKnownSymbol$
|
|
1322
|
+
var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
|
|
1323
|
+
var defineBuiltIn$4 = defineBuiltIn$7;
|
|
1324
|
+
var wellKnownSymbol$c = wellKnownSymbol$h;
|
|
1322
1325
|
var Iterators$3 = iterators;
|
|
1323
1326
|
var IteratorsCore = iteratorsCore;
|
|
1324
1327
|
|
|
@@ -1326,7 +1329,7 @@ var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
|
|
|
1326
1329
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1327
1330
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1328
1331
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1329
|
-
var ITERATOR$5 = wellKnownSymbol$
|
|
1332
|
+
var ITERATOR$5 = wellKnownSymbol$c('iterator');
|
|
1330
1333
|
var KEYS = 'keys';
|
|
1331
1334
|
var VALUES = 'values';
|
|
1332
1335
|
var ENTRIES = 'entries';
|
|
@@ -1364,10 +1367,10 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1364
1367
|
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1365
1368
|
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1366
1369
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1367
|
-
if (setPrototypeOf$
|
|
1368
|
-
setPrototypeOf$
|
|
1369
|
-
} else if (!isCallable$
|
|
1370
|
-
defineBuiltIn$
|
|
1370
|
+
if (setPrototypeOf$3) {
|
|
1371
|
+
setPrototypeOf$3(CurrentIteratorPrototype, IteratorPrototype);
|
|
1372
|
+
} else if (!isCallable$a(CurrentIteratorPrototype[ITERATOR$5])) {
|
|
1373
|
+
defineBuiltIn$4(CurrentIteratorPrototype, ITERATOR$5, returnThis);
|
|
1371
1374
|
}
|
|
1372
1375
|
}
|
|
1373
1376
|
// Set @@toStringTag to native iterators
|
|
@@ -1378,10 +1381,10 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1378
1381
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1379
1382
|
if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1380
1383
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1381
|
-
createNonEnumerableProperty$
|
|
1384
|
+
createNonEnumerableProperty$5(IterablePrototype, 'name', VALUES);
|
|
1382
1385
|
} else {
|
|
1383
1386
|
INCORRECT_VALUES_NAME = true;
|
|
1384
|
-
defaultIterator = function values() { return call$
|
|
1387
|
+
defaultIterator = function values() { return call$e(nativeIterator, this); };
|
|
1385
1388
|
}
|
|
1386
1389
|
}
|
|
1387
1390
|
|
|
@@ -1394,14 +1397,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1394
1397
|
};
|
|
1395
1398
|
if (FORCED) for (KEY in methods) {
|
|
1396
1399
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1397
|
-
defineBuiltIn$
|
|
1400
|
+
defineBuiltIn$4(IterablePrototype, KEY, methods[KEY]);
|
|
1398
1401
|
}
|
|
1399
|
-
} else $$
|
|
1402
|
+
} else $$i({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1400
1403
|
}
|
|
1401
1404
|
|
|
1402
1405
|
// define iterator
|
|
1403
1406
|
if (IterablePrototype[ITERATOR$5] !== defaultIterator) {
|
|
1404
|
-
defineBuiltIn$
|
|
1407
|
+
defineBuiltIn$4(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });
|
|
1405
1408
|
}
|
|
1406
1409
|
Iterators$3[NAME] = defaultIterator;
|
|
1407
1410
|
|
|
@@ -1418,14 +1421,14 @@ var toIndexedObject = toIndexedObject$5;
|
|
|
1418
1421
|
var addToUnscopables$1 = addToUnscopables$2;
|
|
1419
1422
|
var Iterators$2 = iterators;
|
|
1420
1423
|
var InternalStateModule$1 = internalState;
|
|
1421
|
-
var defineProperty$
|
|
1424
|
+
var defineProperty$3 = objectDefineProperty.f;
|
|
1422
1425
|
var defineIterator = iteratorDefine;
|
|
1423
1426
|
var createIterResultObject = createIterResultObject$1;
|
|
1424
|
-
var DESCRIPTORS$
|
|
1427
|
+
var DESCRIPTORS$5 = descriptors;
|
|
1425
1428
|
|
|
1426
1429
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1427
1430
|
var setInternalState$1 = InternalStateModule$1.set;
|
|
1428
|
-
var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
|
|
1431
|
+
var getInternalState$1 = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
|
|
1429
1432
|
|
|
1430
1433
|
// `Array.prototype.entries` method
|
|
1431
1434
|
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
@@ -1447,7 +1450,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1447
1450
|
// `%ArrayIteratorPrototype%.next` method
|
|
1448
1451
|
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1449
1452
|
}, function () {
|
|
1450
|
-
var state = getInternalState(this);
|
|
1453
|
+
var state = getInternalState$1(this);
|
|
1451
1454
|
var target = state.target;
|
|
1452
1455
|
var index = state.index++;
|
|
1453
1456
|
if (!target || index >= target.length) {
|
|
@@ -1471,8 +1474,8 @@ addToUnscopables$1('values');
|
|
|
1471
1474
|
addToUnscopables$1('entries');
|
|
1472
1475
|
|
|
1473
1476
|
// V8 ~ Chrome 45- bug
|
|
1474
|
-
if (DESCRIPTORS$
|
|
1475
|
-
defineProperty$
|
|
1477
|
+
if (DESCRIPTORS$5 && values.name !== 'values') try {
|
|
1478
|
+
defineProperty$3(values, 'name', { value: 'values' });
|
|
1476
1479
|
} catch (error) { /* empty */ }
|
|
1477
1480
|
|
|
1478
1481
|
// iterable DOM collections
|
|
@@ -1519,22 +1522,22 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1519
1522
|
|
|
1520
1523
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1521
1524
|
|
|
1522
|
-
var global$
|
|
1525
|
+
var global$d = global$o;
|
|
1523
1526
|
var DOMIterables = domIterables;
|
|
1524
1527
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1525
1528
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1526
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
1529
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
|
|
1527
1530
|
var setToStringTag$1 = setToStringTag$4;
|
|
1528
|
-
var wellKnownSymbol$
|
|
1531
|
+
var wellKnownSymbol$b = wellKnownSymbol$h;
|
|
1529
1532
|
|
|
1530
|
-
var ITERATOR$4 = wellKnownSymbol$
|
|
1533
|
+
var ITERATOR$4 = wellKnownSymbol$b('iterator');
|
|
1531
1534
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
1532
1535
|
|
|
1533
1536
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1534
1537
|
if (CollectionPrototype) {
|
|
1535
1538
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1536
1539
|
if (CollectionPrototype[ITERATOR$4] !== ArrayValues) try {
|
|
1537
|
-
createNonEnumerableProperty(CollectionPrototype, ITERATOR$4, ArrayValues);
|
|
1540
|
+
createNonEnumerableProperty$4(CollectionPrototype, ITERATOR$4, ArrayValues);
|
|
1538
1541
|
} catch (error) {
|
|
1539
1542
|
CollectionPrototype[ITERATOR$4] = ArrayValues;
|
|
1540
1543
|
}
|
|
@@ -1542,7 +1545,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1542
1545
|
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1543
1546
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1544
1547
|
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1545
|
-
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1548
|
+
createNonEnumerableProperty$4(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1546
1549
|
} catch (error) {
|
|
1547
1550
|
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1548
1551
|
}
|
|
@@ -1551,35 +1554,35 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1551
1554
|
};
|
|
1552
1555
|
|
|
1553
1556
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1554
|
-
handlePrototype(global$
|
|
1557
|
+
handlePrototype(global$d[COLLECTION_NAME] && global$d[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1555
1558
|
}
|
|
1556
1559
|
|
|
1557
1560
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1558
1561
|
|
|
1559
|
-
var DESCRIPTORS$
|
|
1560
|
-
var uncurryThis$
|
|
1561
|
-
var call$
|
|
1562
|
-
var fails$
|
|
1562
|
+
var DESCRIPTORS$4 = descriptors;
|
|
1563
|
+
var uncurryThis$f = functionUncurryThis;
|
|
1564
|
+
var call$d = functionCall;
|
|
1565
|
+
var fails$f = fails$q;
|
|
1563
1566
|
var objectKeys = objectKeys$2;
|
|
1564
1567
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1565
1568
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1566
|
-
var toObject$
|
|
1569
|
+
var toObject$4 = toObject$7;
|
|
1567
1570
|
var IndexedObject$1 = indexedObject;
|
|
1568
1571
|
|
|
1569
1572
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1570
1573
|
var $assign = Object.assign;
|
|
1571
1574
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1572
|
-
var defineProperty$
|
|
1573
|
-
var concat = uncurryThis$
|
|
1575
|
+
var defineProperty$2 = Object.defineProperty;
|
|
1576
|
+
var concat = uncurryThis$f([].concat);
|
|
1574
1577
|
|
|
1575
1578
|
// `Object.assign` method
|
|
1576
1579
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1577
|
-
var objectAssign = !$assign || fails$
|
|
1580
|
+
var objectAssign = !$assign || fails$f(function () {
|
|
1578
1581
|
// should have correct order of operations (Edge bug)
|
|
1579
|
-
if (DESCRIPTORS$
|
|
1582
|
+
if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
|
|
1580
1583
|
enumerable: true,
|
|
1581
1584
|
get: function () {
|
|
1582
|
-
defineProperty$
|
|
1585
|
+
defineProperty$2(this, 'b', {
|
|
1583
1586
|
value: 3,
|
|
1584
1587
|
enumerable: false
|
|
1585
1588
|
});
|
|
@@ -1595,7 +1598,7 @@ var objectAssign = !$assign || fails$7(function () {
|
|
|
1595
1598
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1596
1599
|
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
1597
1600
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1598
|
-
var T = toObject$
|
|
1601
|
+
var T = toObject$4(target);
|
|
1599
1602
|
var argumentsLength = arguments.length;
|
|
1600
1603
|
var index = 1;
|
|
1601
1604
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
@@ -1608,18 +1611,18 @@ var objectAssign = !$assign || fails$7(function () {
|
|
|
1608
1611
|
var key;
|
|
1609
1612
|
while (length > j) {
|
|
1610
1613
|
key = keys[j++];
|
|
1611
|
-
if (!DESCRIPTORS$
|
|
1614
|
+
if (!DESCRIPTORS$4 || call$d(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1612
1615
|
}
|
|
1613
1616
|
} return T;
|
|
1614
1617
|
} : $assign;
|
|
1615
1618
|
|
|
1616
|
-
var $$
|
|
1619
|
+
var $$h = _export;
|
|
1617
1620
|
var assign = objectAssign;
|
|
1618
1621
|
|
|
1619
1622
|
// `Object.assign` method
|
|
1620
1623
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1621
1624
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1622
|
-
$$
|
|
1625
|
+
$$h({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1623
1626
|
assign: assign
|
|
1624
1627
|
});
|
|
1625
1628
|
|
|
@@ -1872,9 +1875,9 @@ const LegendDialog = ({
|
|
|
1872
1875
|
}, "No layers"))));
|
|
1873
1876
|
};
|
|
1874
1877
|
|
|
1875
|
-
var wellKnownSymbol$
|
|
1878
|
+
var wellKnownSymbol$a = wellKnownSymbol$h;
|
|
1876
1879
|
|
|
1877
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$
|
|
1880
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$a('toStringTag');
|
|
1878
1881
|
var test$2 = {};
|
|
1879
1882
|
|
|
1880
1883
|
test$2[TO_STRING_TAG$1] = 'z';
|
|
@@ -1882,11 +1885,11 @@ test$2[TO_STRING_TAG$1] = 'z';
|
|
|
1882
1885
|
var toStringTagSupport = String(test$2) === '[object z]';
|
|
1883
1886
|
|
|
1884
1887
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1885
|
-
var isCallable$
|
|
1888
|
+
var isCallable$9 = isCallable$n;
|
|
1886
1889
|
var classofRaw$1 = classofRaw$2;
|
|
1887
|
-
var wellKnownSymbol$
|
|
1890
|
+
var wellKnownSymbol$9 = wellKnownSymbol$h;
|
|
1888
1891
|
|
|
1889
|
-
var TO_STRING_TAG = wellKnownSymbol$
|
|
1892
|
+
var TO_STRING_TAG = wellKnownSymbol$9('toStringTag');
|
|
1890
1893
|
var $Object = Object;
|
|
1891
1894
|
|
|
1892
1895
|
// ES3 wrong here
|
|
@@ -1900,7 +1903,7 @@ var tryGet = function (it, key) {
|
|
|
1900
1903
|
};
|
|
1901
1904
|
|
|
1902
1905
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1903
|
-
var classof$
|
|
1906
|
+
var classof$8 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1904
1907
|
var O, tag, result;
|
|
1905
1908
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1906
1909
|
// @@toStringTag case
|
|
@@ -1908,37 +1911,37 @@ var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1908
1911
|
// builtinTag case
|
|
1909
1912
|
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
1910
1913
|
// ES3 arguments fallback
|
|
1911
|
-
: (result = classofRaw$1(O)) === 'Object' && isCallable$
|
|
1914
|
+
: (result = classofRaw$1(O)) === 'Object' && isCallable$9(O.callee) ? 'Arguments' : result;
|
|
1912
1915
|
};
|
|
1913
1916
|
|
|
1914
|
-
var classof$
|
|
1917
|
+
var classof$7 = classof$8;
|
|
1915
1918
|
|
|
1916
|
-
var $String = String;
|
|
1919
|
+
var $String$1 = String;
|
|
1917
1920
|
|
|
1918
|
-
var toString$
|
|
1919
|
-
if (classof$
|
|
1920
|
-
return $String(argument);
|
|
1921
|
+
var toString$9 = function (argument) {
|
|
1922
|
+
if (classof$7(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1923
|
+
return $String$1(argument);
|
|
1921
1924
|
};
|
|
1922
1925
|
|
|
1923
1926
|
// a string of all valid unicode whitespaces
|
|
1924
1927
|
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
1925
1928
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
1926
1929
|
|
|
1927
|
-
var uncurryThis$
|
|
1928
|
-
var requireObjectCoercible$
|
|
1929
|
-
var toString$
|
|
1930
|
+
var uncurryThis$e = functionUncurryThis;
|
|
1931
|
+
var requireObjectCoercible$3 = requireObjectCoercible$6;
|
|
1932
|
+
var toString$8 = toString$9;
|
|
1930
1933
|
var whitespaces$1 = whitespaces$2;
|
|
1931
1934
|
|
|
1932
|
-
var replace = uncurryThis$
|
|
1935
|
+
var replace$3 = uncurryThis$e(''.replace);
|
|
1933
1936
|
var ltrim = RegExp('^[' + whitespaces$1 + ']+');
|
|
1934
1937
|
var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
|
|
1935
1938
|
|
|
1936
1939
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
1937
|
-
var createMethod$
|
|
1940
|
+
var createMethod$2 = function (TYPE) {
|
|
1938
1941
|
return function ($this) {
|
|
1939
|
-
var string = toString$
|
|
1940
|
-
if (TYPE & 1) string = replace(string, ltrim, '');
|
|
1941
|
-
if (TYPE & 2) string = replace(string, rtrim, '$1');
|
|
1942
|
+
var string = toString$8(requireObjectCoercible$3($this));
|
|
1943
|
+
if (TYPE & 1) string = replace$3(string, ltrim, '');
|
|
1944
|
+
if (TYPE & 2) string = replace$3(string, rtrim, '$1');
|
|
1942
1945
|
return string;
|
|
1943
1946
|
};
|
|
1944
1947
|
};
|
|
@@ -1946,88 +1949,165 @@ var createMethod$1 = function (TYPE) {
|
|
|
1946
1949
|
var stringTrim = {
|
|
1947
1950
|
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
1948
1951
|
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
1949
|
-
start: createMethod$
|
|
1952
|
+
start: createMethod$2(1),
|
|
1950
1953
|
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
1951
1954
|
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
1952
|
-
end: createMethod$
|
|
1955
|
+
end: createMethod$2(2),
|
|
1953
1956
|
// `String.prototype.trim` method
|
|
1954
1957
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
1955
|
-
trim: createMethod$
|
|
1958
|
+
trim: createMethod$2(3)
|
|
1956
1959
|
};
|
|
1957
1960
|
|
|
1958
|
-
var global$
|
|
1959
|
-
var fails$
|
|
1960
|
-
var uncurryThis$
|
|
1961
|
-
var toString$
|
|
1961
|
+
var global$c = global$o;
|
|
1962
|
+
var fails$e = fails$q;
|
|
1963
|
+
var uncurryThis$d = functionUncurryThis;
|
|
1964
|
+
var toString$7 = toString$9;
|
|
1962
1965
|
var trim = stringTrim.trim;
|
|
1963
1966
|
var whitespaces = whitespaces$2;
|
|
1964
1967
|
|
|
1965
|
-
var $parseInt$1 = global$
|
|
1966
|
-
var Symbol$1 = global$
|
|
1968
|
+
var $parseInt$1 = global$c.parseInt;
|
|
1969
|
+
var Symbol$1 = global$c.Symbol;
|
|
1967
1970
|
var ITERATOR$3 = Symbol$1 && Symbol$1.iterator;
|
|
1968
1971
|
var hex = /^[+-]?0x/i;
|
|
1969
|
-
var exec$
|
|
1970
|
-
var FORCED$
|
|
1972
|
+
var exec$3 = uncurryThis$d(hex.exec);
|
|
1973
|
+
var FORCED$5 = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
|
|
1971
1974
|
// MS Edge 18- broken with boxed symbols
|
|
1972
|
-
|| (ITERATOR$3 && !fails$
|
|
1975
|
+
|| (ITERATOR$3 && !fails$e(function () { $parseInt$1(Object(ITERATOR$3)); }));
|
|
1973
1976
|
|
|
1974
1977
|
// `parseInt` method
|
|
1975
1978
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
1976
|
-
var numberParseInt = FORCED$
|
|
1977
|
-
var S = trim(toString$
|
|
1978
|
-
return $parseInt$1(S, (radix >>> 0) || (exec$
|
|
1979
|
+
var numberParseInt = FORCED$5 ? function parseInt(string, radix) {
|
|
1980
|
+
var S = trim(toString$7(string));
|
|
1981
|
+
return $parseInt$1(S, (radix >>> 0) || (exec$3(hex, S) ? 16 : 10));
|
|
1979
1982
|
} : $parseInt$1;
|
|
1980
1983
|
|
|
1981
|
-
var $$
|
|
1984
|
+
var $$g = _export;
|
|
1982
1985
|
var $parseInt = numberParseInt;
|
|
1983
1986
|
|
|
1984
1987
|
// `parseInt` method
|
|
1985
1988
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
1986
|
-
$$
|
|
1989
|
+
$$g({ global: true, forced: parseInt !== $parseInt }, {
|
|
1987
1990
|
parseInt: $parseInt
|
|
1988
1991
|
});
|
|
1989
1992
|
|
|
1990
|
-
var classof$
|
|
1993
|
+
var classof$6 = classofRaw$2;
|
|
1991
1994
|
|
|
1992
1995
|
// `IsArray` abstract operation
|
|
1993
1996
|
// https://tc39.es/ecma262/#sec-isarray
|
|
1994
1997
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
1995
|
-
var isArray$
|
|
1996
|
-
return classof$
|
|
1998
|
+
var isArray$3 = Array.isArray || function isArray(argument) {
|
|
1999
|
+
return classof$6(argument) === 'Array';
|
|
1997
2000
|
};
|
|
1998
2001
|
|
|
1999
|
-
var
|
|
2000
|
-
var
|
|
2001
|
-
|
|
2002
|
+
var DESCRIPTORS$3 = descriptors;
|
|
2003
|
+
var isArray$2 = isArray$3;
|
|
2004
|
+
|
|
2005
|
+
var $TypeError$b = TypeError;
|
|
2006
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2007
|
+
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
2008
|
+
|
|
2009
|
+
// Safari < 13 does not throw an error in this case
|
|
2010
|
+
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$3 && !function () {
|
|
2011
|
+
// makes no sense without proper strict mode support
|
|
2012
|
+
if (this !== undefined) return true;
|
|
2013
|
+
try {
|
|
2014
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2015
|
+
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
2016
|
+
} catch (error) {
|
|
2017
|
+
return error instanceof TypeError;
|
|
2018
|
+
}
|
|
2019
|
+
}();
|
|
2020
|
+
|
|
2021
|
+
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
2022
|
+
if (isArray$2(O) && !getOwnPropertyDescriptor$1(O, 'length').writable) {
|
|
2023
|
+
throw new $TypeError$b('Cannot set read only .length');
|
|
2024
|
+
} return O.length = length;
|
|
2025
|
+
} : function (O, length) {
|
|
2026
|
+
return O.length = length;
|
|
2027
|
+
};
|
|
2028
|
+
|
|
2029
|
+
var $TypeError$a = TypeError;
|
|
2030
|
+
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
2031
|
+
|
|
2032
|
+
var doesNotExceedSafeInteger$2 = function (it) {
|
|
2033
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError$a('Maximum allowed index exceeded');
|
|
2034
|
+
return it;
|
|
2035
|
+
};
|
|
2036
|
+
|
|
2037
|
+
var $$f = _export;
|
|
2038
|
+
var toObject$3 = toObject$7;
|
|
2039
|
+
var lengthOfArrayLike$4 = lengthOfArrayLike$6;
|
|
2040
|
+
var setArrayLength$1 = arraySetLength;
|
|
2041
|
+
var doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$2;
|
|
2042
|
+
var fails$d = fails$q;
|
|
2043
|
+
|
|
2044
|
+
var INCORRECT_TO_LENGTH = fails$d(function () {
|
|
2045
|
+
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
2046
|
+
});
|
|
2047
|
+
|
|
2048
|
+
// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
|
|
2049
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
|
|
2050
|
+
var properErrorOnNonWritableLength$1 = function () {
|
|
2051
|
+
try {
|
|
2052
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2053
|
+
Object.defineProperty([], 'length', { writable: false }).push();
|
|
2054
|
+
} catch (error) {
|
|
2055
|
+
return error instanceof TypeError;
|
|
2056
|
+
}
|
|
2057
|
+
};
|
|
2058
|
+
|
|
2059
|
+
var FORCED$4 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength$1();
|
|
2060
|
+
|
|
2061
|
+
// `Array.prototype.push` method
|
|
2062
|
+
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
2063
|
+
$$f({ target: 'Array', proto: true, arity: 1, forced: FORCED$4 }, {
|
|
2064
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2065
|
+
push: function push(item) {
|
|
2066
|
+
var O = toObject$3(this);
|
|
2067
|
+
var len = lengthOfArrayLike$4(O);
|
|
2068
|
+
var argCount = arguments.length;
|
|
2069
|
+
doesNotExceedSafeInteger$1(len + argCount);
|
|
2070
|
+
for (var i = 0; i < argCount; i++) {
|
|
2071
|
+
O[len] = arguments[i];
|
|
2072
|
+
len++;
|
|
2073
|
+
}
|
|
2074
|
+
setArrayLength$1(O, len);
|
|
2075
|
+
return len;
|
|
2076
|
+
}
|
|
2077
|
+
});
|
|
2078
|
+
|
|
2079
|
+
var $$e = _export;
|
|
2080
|
+
var uncurryThis$c = functionUncurryThis;
|
|
2081
|
+
var isArray$1 = isArray$3;
|
|
2002
2082
|
|
|
2003
|
-
var nativeReverse = uncurryThis$
|
|
2083
|
+
var nativeReverse = uncurryThis$c([].reverse);
|
|
2004
2084
|
var test$1 = [1, 2];
|
|
2005
2085
|
|
|
2006
2086
|
// `Array.prototype.reverse` method
|
|
2007
2087
|
// https://tc39.es/ecma262/#sec-array.prototype.reverse
|
|
2008
2088
|
// fix for Safari 12.0 bug
|
|
2009
2089
|
// https://bugs.webkit.org/show_bug.cgi?id=188794
|
|
2010
|
-
$$
|
|
2090
|
+
$$e({ target: 'Array', proto: true, forced: String(test$1) === String(test$1.reverse()) }, {
|
|
2011
2091
|
reverse: function reverse() {
|
|
2012
2092
|
// eslint-disable-next-line no-self-assign -- dirty hack
|
|
2013
|
-
if (isArray(this)) this.length = this.length;
|
|
2093
|
+
if (isArray$1(this)) this.length = this.length;
|
|
2014
2094
|
return nativeReverse(this);
|
|
2015
2095
|
}
|
|
2016
2096
|
});
|
|
2017
2097
|
|
|
2018
2098
|
var tryToString$3 = tryToString$5;
|
|
2019
2099
|
|
|
2020
|
-
var $TypeError$
|
|
2100
|
+
var $TypeError$9 = TypeError;
|
|
2021
2101
|
|
|
2022
|
-
var deletePropertyOrThrow$
|
|
2023
|
-
if (!delete O[P]) throw new $TypeError$
|
|
2102
|
+
var deletePropertyOrThrow$2 = function (O, P) {
|
|
2103
|
+
if (!delete O[P]) throw new $TypeError$9('Cannot delete property ' + tryToString$3(P) + ' of ' + tryToString$3(O));
|
|
2024
2104
|
};
|
|
2025
2105
|
|
|
2026
|
-
var uncurryThis$
|
|
2106
|
+
var uncurryThis$b = functionUncurryThis;
|
|
2027
2107
|
|
|
2028
|
-
var arraySlice$
|
|
2108
|
+
var arraySlice$3 = uncurryThis$b([].slice);
|
|
2029
2109
|
|
|
2030
|
-
var arraySlice$
|
|
2110
|
+
var arraySlice$2 = arraySlice$3;
|
|
2031
2111
|
|
|
2032
2112
|
var floor = Math.floor;
|
|
2033
2113
|
|
|
@@ -2050,8 +2130,8 @@ var sort = function (array, comparefn) {
|
|
|
2050
2130
|
} else {
|
|
2051
2131
|
// merge sort
|
|
2052
2132
|
var middle = floor(length / 2);
|
|
2053
|
-
var left = sort(arraySlice$
|
|
2054
|
-
var right = sort(arraySlice$
|
|
2133
|
+
var left = sort(arraySlice$2(array, 0, middle), comparefn);
|
|
2134
|
+
var right = sort(arraySlice$2(array, middle), comparefn);
|
|
2055
2135
|
var llength = left.length;
|
|
2056
2136
|
var rlength = right.length;
|
|
2057
2137
|
var lindex = 0;
|
|
@@ -2069,11 +2149,11 @@ var sort = function (array, comparefn) {
|
|
|
2069
2149
|
|
|
2070
2150
|
var arraySort = sort;
|
|
2071
2151
|
|
|
2072
|
-
var fails$
|
|
2152
|
+
var fails$c = fails$q;
|
|
2073
2153
|
|
|
2074
2154
|
var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
|
|
2075
2155
|
var method = [][METHOD_NAME];
|
|
2076
|
-
return !!method && fails$
|
|
2156
|
+
return !!method && fails$c(function () {
|
|
2077
2157
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
2078
2158
|
method.call(null, argument || function () { return 1; }, 1);
|
|
2079
2159
|
});
|
|
@@ -2095,14 +2175,14 @@ var webkit = userAgent$3.match(/AppleWebKit\/(\d+)\./);
|
|
|
2095
2175
|
|
|
2096
2176
|
var engineWebkitVersion = !!webkit && +webkit[1];
|
|
2097
2177
|
|
|
2098
|
-
var $$
|
|
2099
|
-
var uncurryThis$
|
|
2178
|
+
var $$d = _export;
|
|
2179
|
+
var uncurryThis$a = functionUncurryThis;
|
|
2100
2180
|
var aCallable$7 = aCallable$a;
|
|
2101
|
-
var toObject$
|
|
2102
|
-
var lengthOfArrayLike$
|
|
2103
|
-
var deletePropertyOrThrow = deletePropertyOrThrow$
|
|
2104
|
-
var toString$
|
|
2105
|
-
var fails$
|
|
2181
|
+
var toObject$2 = toObject$7;
|
|
2182
|
+
var lengthOfArrayLike$3 = lengthOfArrayLike$6;
|
|
2183
|
+
var deletePropertyOrThrow$1 = deletePropertyOrThrow$2;
|
|
2184
|
+
var toString$6 = toString$9;
|
|
2185
|
+
var fails$b = fails$q;
|
|
2106
2186
|
var internalSort = arraySort;
|
|
2107
2187
|
var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
|
|
2108
2188
|
var FF = engineFfVersion;
|
|
@@ -2111,21 +2191,21 @@ var V8 = engineV8Version;
|
|
|
2111
2191
|
var WEBKIT = engineWebkitVersion;
|
|
2112
2192
|
|
|
2113
2193
|
var test = [];
|
|
2114
|
-
var nativeSort = uncurryThis$
|
|
2115
|
-
var push = uncurryThis$
|
|
2194
|
+
var nativeSort = uncurryThis$a(test.sort);
|
|
2195
|
+
var push$2 = uncurryThis$a(test.push);
|
|
2116
2196
|
|
|
2117
2197
|
// IE8-
|
|
2118
|
-
var FAILS_ON_UNDEFINED = fails$
|
|
2198
|
+
var FAILS_ON_UNDEFINED = fails$b(function () {
|
|
2119
2199
|
test.sort(undefined);
|
|
2120
2200
|
});
|
|
2121
2201
|
// V8 bug
|
|
2122
|
-
var FAILS_ON_NULL = fails$
|
|
2202
|
+
var FAILS_ON_NULL = fails$b(function () {
|
|
2123
2203
|
test.sort(null);
|
|
2124
2204
|
});
|
|
2125
2205
|
// Old WebKit
|
|
2126
2206
|
var STRICT_METHOD = arrayMethodIsStrict$1('sort');
|
|
2127
2207
|
|
|
2128
|
-
var STABLE_SORT = !fails$
|
|
2208
|
+
var STABLE_SORT = !fails$b(function () {
|
|
2129
2209
|
// feature detection can be too slow, so check engines versions
|
|
2130
2210
|
if (V8) return V8 < 70;
|
|
2131
2211
|
if (FF && FF > 3) return;
|
|
@@ -2160,53 +2240,53 @@ var STABLE_SORT = !fails$4(function () {
|
|
|
2160
2240
|
return result !== 'DGBEFHACIJK';
|
|
2161
2241
|
});
|
|
2162
2242
|
|
|
2163
|
-
var FORCED$
|
|
2243
|
+
var FORCED$3 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
|
|
2164
2244
|
|
|
2165
2245
|
var getSortCompare = function (comparefn) {
|
|
2166
2246
|
return function (x, y) {
|
|
2167
2247
|
if (y === undefined) return -1;
|
|
2168
2248
|
if (x === undefined) return 1;
|
|
2169
2249
|
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
|
2170
|
-
return toString$
|
|
2250
|
+
return toString$6(x) > toString$6(y) ? 1 : -1;
|
|
2171
2251
|
};
|
|
2172
2252
|
};
|
|
2173
2253
|
|
|
2174
2254
|
// `Array.prototype.sort` method
|
|
2175
2255
|
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
|
2176
|
-
$$
|
|
2256
|
+
$$d({ target: 'Array', proto: true, forced: FORCED$3 }, {
|
|
2177
2257
|
sort: function sort(comparefn) {
|
|
2178
2258
|
if (comparefn !== undefined) aCallable$7(comparefn);
|
|
2179
2259
|
|
|
2180
|
-
var array = toObject$
|
|
2260
|
+
var array = toObject$2(this);
|
|
2181
2261
|
|
|
2182
2262
|
if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
|
|
2183
2263
|
|
|
2184
2264
|
var items = [];
|
|
2185
|
-
var arrayLength = lengthOfArrayLike$
|
|
2265
|
+
var arrayLength = lengthOfArrayLike$3(array);
|
|
2186
2266
|
var itemsLength, index;
|
|
2187
2267
|
|
|
2188
2268
|
for (index = 0; index < arrayLength; index++) {
|
|
2189
|
-
if (index in array) push(items, array[index]);
|
|
2269
|
+
if (index in array) push$2(items, array[index]);
|
|
2190
2270
|
}
|
|
2191
2271
|
|
|
2192
2272
|
internalSort(items, getSortCompare(comparefn));
|
|
2193
2273
|
|
|
2194
|
-
itemsLength = lengthOfArrayLike$
|
|
2274
|
+
itemsLength = lengthOfArrayLike$3(items);
|
|
2195
2275
|
index = 0;
|
|
2196
2276
|
|
|
2197
2277
|
while (index < itemsLength) array[index] = items[index++];
|
|
2198
|
-
while (index < arrayLength) deletePropertyOrThrow(array, index++);
|
|
2278
|
+
while (index < arrayLength) deletePropertyOrThrow$1(array, index++);
|
|
2199
2279
|
|
|
2200
2280
|
return array;
|
|
2201
2281
|
}
|
|
2202
2282
|
});
|
|
2203
2283
|
|
|
2204
|
-
var anObject$
|
|
2284
|
+
var anObject$8 = anObject$e;
|
|
2205
2285
|
|
|
2206
2286
|
// `RegExp.prototype.flags` getter implementation
|
|
2207
2287
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
2208
|
-
var regexpFlags = function () {
|
|
2209
|
-
var that = anObject$
|
|
2288
|
+
var regexpFlags$1 = function () {
|
|
2289
|
+
var that = anObject$8(this);
|
|
2210
2290
|
var result = '';
|
|
2211
2291
|
if (that.hasIndices) result += 'd';
|
|
2212
2292
|
if (that.global) result += 'g';
|
|
@@ -2219,61 +2299,45 @@ var regexpFlags = function () {
|
|
|
2219
2299
|
return result;
|
|
2220
2300
|
};
|
|
2221
2301
|
|
|
2222
|
-
var call$
|
|
2223
|
-
var hasOwn$
|
|
2224
|
-
var isPrototypeOf$
|
|
2225
|
-
var regExpFlags = regexpFlags;
|
|
2302
|
+
var call$c = functionCall;
|
|
2303
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
2304
|
+
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
2305
|
+
var regExpFlags = regexpFlags$1;
|
|
2226
2306
|
|
|
2227
|
-
var RegExpPrototype$
|
|
2307
|
+
var RegExpPrototype$2 = RegExp.prototype;
|
|
2228
2308
|
|
|
2229
2309
|
var regexpGetFlags = function (R) {
|
|
2230
2310
|
var flags = R.flags;
|
|
2231
|
-
return flags === undefined && !('flags' in RegExpPrototype$
|
|
2232
|
-
? call$
|
|
2311
|
+
return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn$2(R, 'flags') && isPrototypeOf$3(RegExpPrototype$2, R)
|
|
2312
|
+
? call$c(regExpFlags, R) : flags;
|
|
2233
2313
|
};
|
|
2234
2314
|
|
|
2235
2315
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
2236
|
-
var defineBuiltIn$
|
|
2237
|
-
var anObject$
|
|
2238
|
-
var $toString = toString$
|
|
2239
|
-
var fails$
|
|
2316
|
+
var defineBuiltIn$3 = defineBuiltIn$7;
|
|
2317
|
+
var anObject$7 = anObject$e;
|
|
2318
|
+
var $toString = toString$9;
|
|
2319
|
+
var fails$a = fails$q;
|
|
2240
2320
|
var getRegExpFlags = regexpGetFlags;
|
|
2241
2321
|
|
|
2242
2322
|
var TO_STRING = 'toString';
|
|
2243
|
-
var RegExpPrototype = RegExp.prototype;
|
|
2244
|
-
var nativeToString = RegExpPrototype[TO_STRING];
|
|
2323
|
+
var RegExpPrototype$1 = RegExp.prototype;
|
|
2324
|
+
var nativeToString = RegExpPrototype$1[TO_STRING];
|
|
2245
2325
|
|
|
2246
|
-
var NOT_GENERIC = fails$
|
|
2326
|
+
var NOT_GENERIC = fails$a(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
|
|
2247
2327
|
// FF44- RegExp#toString has a wrong name
|
|
2248
2328
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
|
|
2249
2329
|
|
|
2250
2330
|
// `RegExp.prototype.toString` method
|
|
2251
2331
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
2252
2332
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
2253
|
-
defineBuiltIn$
|
|
2254
|
-
var R = anObject$
|
|
2333
|
+
defineBuiltIn$3(RegExpPrototype$1, TO_STRING, function toString() {
|
|
2334
|
+
var R = anObject$7(this);
|
|
2255
2335
|
var pattern = $toString(R.source);
|
|
2256
2336
|
var flags = $toString(getRegExpFlags(R));
|
|
2257
2337
|
return '/' + pattern + '/' + flags;
|
|
2258
2338
|
}, { unsafe: true });
|
|
2259
2339
|
}
|
|
2260
2340
|
|
|
2261
|
-
/* *
|
|
2262
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2263
|
-
* you may not use this file except in compliance with the License.
|
|
2264
|
-
* You may obtain a copy of the License at
|
|
2265
|
-
*
|
|
2266
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2267
|
-
*
|
|
2268
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2269
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2270
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2271
|
-
* See the License for the specific language governing permissions and
|
|
2272
|
-
* limitations under the License.
|
|
2273
|
-
*
|
|
2274
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
2275
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
2276
|
-
* */
|
|
2277
2341
|
/* Function which calculates the distance between two points */
|
|
2278
2342
|
const distance = (a, b) => {
|
|
2279
2343
|
return Math.sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
|
|
@@ -2553,6 +2617,26 @@ var DRAGMODE;
|
|
|
2553
2617
|
DRAGMODE["VERTEX"] = "VERTEX";
|
|
2554
2618
|
DRAGMODE["FEATURE"] = "FEATURE";
|
|
2555
2619
|
})(DRAGMODE || (DRAGMODE = {}));
|
|
2620
|
+
/**
|
|
2621
|
+
* Initializes a new feature for given type
|
|
2622
|
+
* @param type
|
|
2623
|
+
* @returns
|
|
2624
|
+
*/
|
|
2625
|
+
const getNewFeature = type => {
|
|
2626
|
+
switch (type) {
|
|
2627
|
+
case DRAWMODE.POINT:
|
|
2628
|
+
return cloneDeep(featurePoint);
|
|
2629
|
+
case DRAWMODE.MULTIPOINT:
|
|
2630
|
+
return cloneDeep(featureMultiPoint);
|
|
2631
|
+
case DRAWMODE.POLYGON:
|
|
2632
|
+
return cloneDeep(featurePolygon);
|
|
2633
|
+
case DRAWMODE.BOX:
|
|
2634
|
+
return cloneDeep(featureBox);
|
|
2635
|
+
case DRAWMODE.LINESTRING:
|
|
2636
|
+
return cloneDeep(lineString);
|
|
2637
|
+
}
|
|
2638
|
+
return undefined;
|
|
2639
|
+
};
|
|
2556
2640
|
class MapDraw extends React.PureComponent {
|
|
2557
2641
|
constructor(props) {
|
|
2558
2642
|
super(props);
|
|
@@ -2625,7 +2709,7 @@ class MapDraw extends React.PureComponent {
|
|
|
2625
2709
|
this.mouseDoubleClick = this.mouseDoubleClick.bind(this);
|
|
2626
2710
|
this.handleDrawMode = this.handleDrawMode.bind(this);
|
|
2627
2711
|
this.componentCleanup = this.componentCleanup.bind(this);
|
|
2628
|
-
this.
|
|
2712
|
+
this.initializeFeatureCoordinates = this.initializeFeatureCoordinates.bind(this);
|
|
2629
2713
|
this.validatePolys = this.validatePolys.bind(this);
|
|
2630
2714
|
this.insertVertexInEdge = this.insertVertexInEdge.bind(this);
|
|
2631
2715
|
this.createNewFeature = this.createNewFeature.bind(this);
|
|
@@ -2633,6 +2717,7 @@ class MapDraw extends React.PureComponent {
|
|
|
2633
2717
|
this.addVerticesToPolygonFeature = this.addVerticesToPolygonFeature.bind(this);
|
|
2634
2718
|
this.checkIfFeatureIsBox = this.checkIfFeatureIsBox.bind(this);
|
|
2635
2719
|
this.handleGeoJSONUpdate = this.handleGeoJSONUpdate.bind(this);
|
|
2720
|
+
this.handleNewFeatureIndex = this.handleNewFeatureIndex.bind(this);
|
|
2636
2721
|
this.handleDrawMode(props.drawMode);
|
|
2637
2722
|
this.textPositions = [];
|
|
2638
2723
|
this.mouseOverPolygonCoordinates = [];
|
|
@@ -2730,7 +2815,7 @@ class MapDraw extends React.PureComponent {
|
|
|
2730
2815
|
}
|
|
2731
2816
|
}
|
|
2732
2817
|
if (selectedFeatureIndex !== prevSelectedFeatureIndex) {
|
|
2733
|
-
|
|
2818
|
+
this.handleNewFeatureIndex();
|
|
2734
2819
|
}
|
|
2735
2820
|
/* Handle new drawmode */
|
|
2736
2821
|
if (drawMode !== prevDrawMode) {
|
|
@@ -2747,6 +2832,20 @@ class MapDraw extends React.PureComponent {
|
|
|
2747
2832
|
this.handleExitDrawMode('escaped');
|
|
2748
2833
|
}
|
|
2749
2834
|
}
|
|
2835
|
+
handleNewFeatureIndex() {
|
|
2836
|
+
var _a;
|
|
2837
|
+
// Another feature was selected. The mouseIsOverVertexNr should be updated
|
|
2838
|
+
const {
|
|
2839
|
+
selectedFeatureIndex,
|
|
2840
|
+
mapId
|
|
2841
|
+
} = this.props;
|
|
2842
|
+
const feature = this.geojson.features[selectedFeatureIndex];
|
|
2843
|
+
if (feature) {
|
|
2844
|
+
const featureCoords = feature.geometry.coordinates;
|
|
2845
|
+
this.mouseIsOverVertexNr = featureCoords.length - 1;
|
|
2846
|
+
}
|
|
2847
|
+
(_a = webmapUtils.getWMJSMapById(mapId)) === null || _a === void 0 ? void 0 : _a.draw('MapDraw::componentDidUpdateSelectedFeatureIndex');
|
|
2848
|
+
}
|
|
2750
2849
|
/* Converts string input into right drawmode */
|
|
2751
2850
|
handleDrawMode(_drawMode) {
|
|
2752
2851
|
if (_drawMode) {
|
|
@@ -3080,7 +3179,11 @@ class MapDraw extends React.PureComponent {
|
|
|
3080
3179
|
}
|
|
3081
3180
|
return true;
|
|
3082
3181
|
}
|
|
3083
|
-
|
|
3182
|
+
/**
|
|
3183
|
+
* This creates a new feature in the geojson features array at the selectedFeatureIndex location
|
|
3184
|
+
* @param event
|
|
3185
|
+
* @returns
|
|
3186
|
+
*/
|
|
3084
3187
|
createNewFeature(event) {
|
|
3085
3188
|
const {
|
|
3086
3189
|
mouseX,
|
|
@@ -3093,9 +3196,11 @@ class MapDraw extends React.PureComponent {
|
|
|
3093
3196
|
const webmapjs = webmapUtils.getWMJSMapById(mapId);
|
|
3094
3197
|
if (this.myEditMode === EDITMODE.EMPTY) {
|
|
3095
3198
|
this.myEditMode = EDITMODE.ADD_FEATURE;
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3199
|
+
if (!this.geojson.features[selectedFeatureIndex]) {
|
|
3200
|
+
this.geojson.features[selectedFeatureIndex] = getNewFeature(this.myDrawMode);
|
|
3201
|
+
}
|
|
3202
|
+
const feature = this.geojson.features[selectedFeatureIndex];
|
|
3203
|
+
this.initializeFeatureCoordinates(feature, this.myDrawMode);
|
|
3099
3204
|
this.mouseGeoCoord = webmapjs.getLatLongFromPixelCoord({
|
|
3100
3205
|
x: mouseX,
|
|
3101
3206
|
y: mouseY
|
|
@@ -4300,58 +4405,43 @@ class MapDraw extends React.PureComponent {
|
|
|
4300
4405
|
}
|
|
4301
4406
|
return XYCoords;
|
|
4302
4407
|
}
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
case DRAWMODE.POLYGON:
|
|
4341
|
-
feature.geometry.type = 'Polygon';
|
|
4342
|
-
if (feature.geometry.coordinates.length === 0) {
|
|
4343
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4344
|
-
feature.geometry.coordinates.push([]);
|
|
4345
|
-
}
|
|
4346
|
-
break;
|
|
4347
|
-
case DRAWMODE.LINESTRING:
|
|
4348
|
-
feature.geometry.type = 'LineString';
|
|
4349
|
-
if (feature.geometry.coordinates.length === 0) {
|
|
4350
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4351
|
-
feature.geometry.coordinates.push([]);
|
|
4352
|
-
}
|
|
4353
|
-
break;
|
|
4354
|
-
}
|
|
4408
|
+
initializeFeatureCoordinates(feature, type) {
|
|
4409
|
+
this.validateFeature(feature);
|
|
4410
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
4411
|
+
if (feature.properties._type) {
|
|
4412
|
+
delete feature.properties._type;
|
|
4413
|
+
}
|
|
4414
|
+
// eslint-disable-next-line default-case
|
|
4415
|
+
switch (type) {
|
|
4416
|
+
case DRAWMODE.POINT:
|
|
4417
|
+
feature.geometry.type = 'Point';
|
|
4418
|
+
break;
|
|
4419
|
+
case DRAWMODE.MULTIPOINT:
|
|
4420
|
+
feature.geometry.type = 'MultiPoint';
|
|
4421
|
+
if (feature.geometry.coordinates.length === 0) {
|
|
4422
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4423
|
+
feature.geometry.coordinates.push([]);
|
|
4424
|
+
}
|
|
4425
|
+
break;
|
|
4426
|
+
case DRAWMODE.BOX:
|
|
4427
|
+
feature.geometry.type = 'Polygon';
|
|
4428
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
4429
|
+
feature.properties._type = 'box';
|
|
4430
|
+
break;
|
|
4431
|
+
case DRAWMODE.POLYGON:
|
|
4432
|
+
feature.geometry.type = 'Polygon';
|
|
4433
|
+
if (feature.geometry.coordinates.length === 0) {
|
|
4434
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4435
|
+
feature.geometry.coordinates.push([]);
|
|
4436
|
+
}
|
|
4437
|
+
break;
|
|
4438
|
+
case DRAWMODE.LINESTRING:
|
|
4439
|
+
feature.geometry.type = 'LineString';
|
|
4440
|
+
if (feature.geometry.coordinates.length === 0) {
|
|
4441
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4442
|
+
feature.geometry.coordinates.push([]);
|
|
4443
|
+
}
|
|
4444
|
+
break;
|
|
4355
4445
|
}
|
|
4356
4446
|
return feature;
|
|
4357
4447
|
}
|
|
@@ -4425,6 +4515,120 @@ const MapDrawContainer = ({
|
|
|
4425
4515
|
}));
|
|
4426
4516
|
})));
|
|
4427
4517
|
|
|
4518
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
4519
|
+
|
|
4520
|
+
var FunctionPrototype = Function.prototype;
|
|
4521
|
+
var apply$3 = FunctionPrototype.apply;
|
|
4522
|
+
var call$b = FunctionPrototype.call;
|
|
4523
|
+
|
|
4524
|
+
// eslint-disable-next-line es/no-reflect -- safe
|
|
4525
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$b.bind(apply$3) : function () {
|
|
4526
|
+
return call$b.apply(apply$3, arguments);
|
|
4527
|
+
});
|
|
4528
|
+
|
|
4529
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
4530
|
+
var isArray = isArray$3;
|
|
4531
|
+
var isCallable$8 = isCallable$n;
|
|
4532
|
+
var classof$5 = classofRaw$2;
|
|
4533
|
+
var toString$5 = toString$9;
|
|
4534
|
+
|
|
4535
|
+
var push$1 = uncurryThis$9([].push);
|
|
4536
|
+
|
|
4537
|
+
var getJsonReplacerFunction = function (replacer) {
|
|
4538
|
+
if (isCallable$8(replacer)) return replacer;
|
|
4539
|
+
if (!isArray(replacer)) return;
|
|
4540
|
+
var rawLength = replacer.length;
|
|
4541
|
+
var keys = [];
|
|
4542
|
+
for (var i = 0; i < rawLength; i++) {
|
|
4543
|
+
var element = replacer[i];
|
|
4544
|
+
if (typeof element == 'string') push$1(keys, element);
|
|
4545
|
+
else if (typeof element == 'number' || classof$5(element) === 'Number' || classof$5(element) === 'String') push$1(keys, toString$5(element));
|
|
4546
|
+
}
|
|
4547
|
+
var keysLength = keys.length;
|
|
4548
|
+
var root = true;
|
|
4549
|
+
return function (key, value) {
|
|
4550
|
+
if (root) {
|
|
4551
|
+
root = false;
|
|
4552
|
+
return value;
|
|
4553
|
+
}
|
|
4554
|
+
if (isArray(this)) return value;
|
|
4555
|
+
for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
|
|
4556
|
+
};
|
|
4557
|
+
};
|
|
4558
|
+
|
|
4559
|
+
var $$c = _export;
|
|
4560
|
+
var getBuiltIn$5 = getBuiltIn$9;
|
|
4561
|
+
var apply$2 = functionApply;
|
|
4562
|
+
var call$a = functionCall;
|
|
4563
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
4564
|
+
var fails$9 = fails$q;
|
|
4565
|
+
var isCallable$7 = isCallable$n;
|
|
4566
|
+
var isSymbol = isSymbol$3;
|
|
4567
|
+
var arraySlice$1 = arraySlice$3;
|
|
4568
|
+
var getReplacerFunction = getJsonReplacerFunction;
|
|
4569
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
4570
|
+
|
|
4571
|
+
var $String = String;
|
|
4572
|
+
var $stringify = getBuiltIn$5('JSON', 'stringify');
|
|
4573
|
+
var exec$2 = uncurryThis$8(/./.exec);
|
|
4574
|
+
var charAt$3 = uncurryThis$8(''.charAt);
|
|
4575
|
+
var charCodeAt$1 = uncurryThis$8(''.charCodeAt);
|
|
4576
|
+
var replace$2 = uncurryThis$8(''.replace);
|
|
4577
|
+
var numberToString = uncurryThis$8(1.0.toString);
|
|
4578
|
+
|
|
4579
|
+
var tester = /[\uD800-\uDFFF]/g;
|
|
4580
|
+
var low = /^[\uD800-\uDBFF]$/;
|
|
4581
|
+
var hi = /^[\uDC00-\uDFFF]$/;
|
|
4582
|
+
|
|
4583
|
+
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$9(function () {
|
|
4584
|
+
var symbol = getBuiltIn$5('Symbol')('stringify detection');
|
|
4585
|
+
// MS Edge converts symbol values to JSON as {}
|
|
4586
|
+
return $stringify([symbol]) !== '[null]'
|
|
4587
|
+
// WebKit converts symbol values to JSON as null
|
|
4588
|
+
|| $stringify({ a: symbol }) !== '{}'
|
|
4589
|
+
// V8 throws on boxed symbols
|
|
4590
|
+
|| $stringify(Object(symbol)) !== '{}';
|
|
4591
|
+
});
|
|
4592
|
+
|
|
4593
|
+
// https://github.com/tc39/proposal-well-formed-stringify
|
|
4594
|
+
var ILL_FORMED_UNICODE = fails$9(function () {
|
|
4595
|
+
return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
|
|
4596
|
+
|| $stringify('\uDEAD') !== '"\\udead"';
|
|
4597
|
+
});
|
|
4598
|
+
|
|
4599
|
+
var stringifyWithSymbolsFix = function (it, replacer) {
|
|
4600
|
+
var args = arraySlice$1(arguments);
|
|
4601
|
+
var $replacer = getReplacerFunction(replacer);
|
|
4602
|
+
if (!isCallable$7($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
|
|
4603
|
+
args[1] = function (key, value) {
|
|
4604
|
+
// some old implementations (like WebKit) could pass numbers as keys
|
|
4605
|
+
if (isCallable$7($replacer)) value = call$a($replacer, this, $String(key), value);
|
|
4606
|
+
if (!isSymbol(value)) return value;
|
|
4607
|
+
};
|
|
4608
|
+
return apply$2($stringify, null, args);
|
|
4609
|
+
};
|
|
4610
|
+
|
|
4611
|
+
var fixIllFormed = function (match, offset, string) {
|
|
4612
|
+
var prev = charAt$3(string, offset - 1);
|
|
4613
|
+
var next = charAt$3(string, offset + 1);
|
|
4614
|
+
if ((exec$2(low, match) && !exec$2(hi, next)) || (exec$2(hi, match) && !exec$2(low, prev))) {
|
|
4615
|
+
return '\\u' + numberToString(charCodeAt$1(match, 0), 16);
|
|
4616
|
+
} return match;
|
|
4617
|
+
};
|
|
4618
|
+
|
|
4619
|
+
if ($stringify) {
|
|
4620
|
+
// `JSON.stringify` method
|
|
4621
|
+
// https://tc39.es/ecma262/#sec-json.stringify
|
|
4622
|
+
$$c({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
|
|
4623
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
4624
|
+
stringify: function stringify(it, replacer, space) {
|
|
4625
|
+
var args = arraySlice$1(arguments);
|
|
4626
|
+
var result = apply$2(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
|
|
4627
|
+
return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$2(result, tester, fixIllFormed) : result;
|
|
4628
|
+
}
|
|
4629
|
+
});
|
|
4630
|
+
}
|
|
4631
|
+
|
|
4428
4632
|
const GeoJSONTextField = ({
|
|
4429
4633
|
onChangeGeoJSON,
|
|
4430
4634
|
geoJSON,
|
|
@@ -5158,10 +5362,10 @@ const moveFeature = (currentGeoJSON, newGeoJSON, featureLayerIndex, reason, sele
|
|
|
5158
5362
|
return newGeoJSON.features.length - 1;
|
|
5159
5363
|
}
|
|
5160
5364
|
if (geometry.type === 'LineString' && geometry.coordinates.length > 2 && reason === NEW_LINESTRING_CREATED) {
|
|
5161
|
-
const lastCoordinate = geometry.coordinates.pop();
|
|
5365
|
+
const lastCoordinate = geometry.coordinates.pop() || [0, 0];
|
|
5162
5366
|
const copyFeature = Object.assign(Object.assign(Object.assign({}, feature), {
|
|
5163
5367
|
geometry: Object.assign(Object.assign({}, geometry), {
|
|
5164
|
-
coordinates: [lastCoordinate, lastCoordinate]
|
|
5368
|
+
coordinates: [[...lastCoordinate], [...lastCoordinate]]
|
|
5165
5369
|
})
|
|
5166
5370
|
}), selectionType && {
|
|
5167
5371
|
properties: Object.assign(Object.assign({}, feature.properties), {
|
|
@@ -6191,41 +6395,250 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
6191
6395
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
6192
6396
|
};
|
|
6193
6397
|
|
|
6194
|
-
var
|
|
6195
|
-
var $includes = arrayIncludes.includes;
|
|
6196
|
-
var fails$2 = fails$i;
|
|
6197
|
-
var addToUnscopables = addToUnscopables$2;
|
|
6398
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
6198
6399
|
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6400
|
+
var proxyAccessor$1 = function (Target, Source, key) {
|
|
6401
|
+
key in Target || defineProperty$1(Target, key, {
|
|
6402
|
+
configurable: true,
|
|
6403
|
+
get: function () { return Source[key]; },
|
|
6404
|
+
set: function (it) { Source[key] = it; }
|
|
6405
|
+
});
|
|
6406
|
+
};
|
|
6204
6407
|
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
includes: function includes(el /* , fromIndex = 0 */) {
|
|
6209
|
-
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
6210
|
-
}
|
|
6211
|
-
});
|
|
6408
|
+
var isCallable$6 = isCallable$n;
|
|
6409
|
+
var isObject$4 = isObject$c;
|
|
6410
|
+
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
6212
6411
|
|
|
6213
|
-
//
|
|
6214
|
-
|
|
6412
|
+
// makes subclassing work correct for wrapped built-ins
|
|
6413
|
+
var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
|
|
6414
|
+
var NewTarget, NewTargetPrototype;
|
|
6415
|
+
if (
|
|
6416
|
+
// it can work only with native `setPrototypeOf`
|
|
6417
|
+
setPrototypeOf$2 &&
|
|
6418
|
+
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
6419
|
+
isCallable$6(NewTarget = dummy.constructor) &&
|
|
6420
|
+
NewTarget !== Wrapper &&
|
|
6421
|
+
isObject$4(NewTargetPrototype = NewTarget.prototype) &&
|
|
6422
|
+
NewTargetPrototype !== Wrapper.prototype
|
|
6423
|
+
) setPrototypeOf$2($this, NewTargetPrototype);
|
|
6424
|
+
return $this;
|
|
6425
|
+
};
|
|
6215
6426
|
|
|
6216
|
-
var
|
|
6217
|
-
var toObject = toObject$5;
|
|
6218
|
-
var IndexedObject = indexedObject;
|
|
6219
|
-
var lengthOfArrayLike$1 = lengthOfArrayLike$4;
|
|
6427
|
+
var toString$4 = toString$9;
|
|
6220
6428
|
|
|
6221
|
-
var $
|
|
6429
|
+
var normalizeStringArgument$1 = function (argument, $default) {
|
|
6430
|
+
return argument === undefined ? arguments.length < 2 ? '' : $default : toString$4(argument);
|
|
6431
|
+
};
|
|
6432
|
+
|
|
6433
|
+
var isObject$3 = isObject$c;
|
|
6434
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
|
|
6435
|
+
|
|
6436
|
+
// `InstallErrorCause` abstract operation
|
|
6437
|
+
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
|
|
6438
|
+
var installErrorCause$1 = function (O, options) {
|
|
6439
|
+
if (isObject$3(options) && 'cause' in options) {
|
|
6440
|
+
createNonEnumerableProperty$3(O, 'cause', options.cause);
|
|
6441
|
+
}
|
|
6442
|
+
};
|
|
6443
|
+
|
|
6444
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
6445
|
+
|
|
6446
|
+
var $Error = Error;
|
|
6447
|
+
var replace$1 = uncurryThis$7(''.replace);
|
|
6448
|
+
|
|
6449
|
+
var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
|
|
6450
|
+
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
6451
|
+
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
6452
|
+
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
6453
|
+
|
|
6454
|
+
var errorStackClear = function (stack, dropEntries) {
|
|
6455
|
+
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
|
|
6456
|
+
while (dropEntries--) stack = replace$1(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
|
|
6457
|
+
} return stack;
|
|
6458
|
+
};
|
|
6459
|
+
|
|
6460
|
+
var fails$8 = fails$q;
|
|
6461
|
+
var createPropertyDescriptor = createPropertyDescriptor$4;
|
|
6462
|
+
|
|
6463
|
+
var errorStackInstallable = !fails$8(function () {
|
|
6464
|
+
var error = new Error('a');
|
|
6465
|
+
if (!('stack' in error)) return true;
|
|
6466
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
6467
|
+
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
|
6468
|
+
return error.stack !== 7;
|
|
6469
|
+
});
|
|
6470
|
+
|
|
6471
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
|
|
6472
|
+
var clearErrorStack = errorStackClear;
|
|
6473
|
+
var ERROR_STACK_INSTALLABLE = errorStackInstallable;
|
|
6474
|
+
|
|
6475
|
+
// non-standard V8
|
|
6476
|
+
var captureStackTrace = Error.captureStackTrace;
|
|
6477
|
+
|
|
6478
|
+
var errorStackInstall = function (error, C, stack, dropEntries) {
|
|
6479
|
+
if (ERROR_STACK_INSTALLABLE) {
|
|
6480
|
+
if (captureStackTrace) captureStackTrace(error, C);
|
|
6481
|
+
else createNonEnumerableProperty$2(error, 'stack', clearErrorStack(stack, dropEntries));
|
|
6482
|
+
}
|
|
6483
|
+
};
|
|
6484
|
+
|
|
6485
|
+
var getBuiltIn$4 = getBuiltIn$9;
|
|
6486
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
6487
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
|
|
6488
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
6489
|
+
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
6490
|
+
var copyConstructorProperties = copyConstructorProperties$2;
|
|
6491
|
+
var proxyAccessor = proxyAccessor$1;
|
|
6492
|
+
var inheritIfRequired = inheritIfRequired$1;
|
|
6493
|
+
var normalizeStringArgument = normalizeStringArgument$1;
|
|
6494
|
+
var installErrorCause = installErrorCause$1;
|
|
6495
|
+
var installErrorStack = errorStackInstall;
|
|
6496
|
+
var DESCRIPTORS$2 = descriptors;
|
|
6497
|
+
|
|
6498
|
+
var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
6499
|
+
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
6500
|
+
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
|
6501
|
+
var path = FULL_NAME.split('.');
|
|
6502
|
+
var ERROR_NAME = path[path.length - 1];
|
|
6503
|
+
var OriginalError = getBuiltIn$4.apply(null, path);
|
|
6504
|
+
|
|
6505
|
+
if (!OriginalError) return;
|
|
6506
|
+
|
|
6507
|
+
var OriginalErrorPrototype = OriginalError.prototype;
|
|
6508
|
+
|
|
6509
|
+
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
6510
|
+
if (hasOwn$1(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
6511
|
+
|
|
6512
|
+
if (!FORCED) return OriginalError;
|
|
6513
|
+
|
|
6514
|
+
var BaseError = getBuiltIn$4('Error');
|
|
6515
|
+
|
|
6516
|
+
var WrappedError = wrapper(function (a, b) {
|
|
6517
|
+
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
6518
|
+
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
6519
|
+
if (message !== undefined) createNonEnumerableProperty$1(result, 'message', message);
|
|
6520
|
+
installErrorStack(result, WrappedError, result.stack, 2);
|
|
6521
|
+
if (this && isPrototypeOf$2(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
6522
|
+
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
6523
|
+
return result;
|
|
6524
|
+
});
|
|
6525
|
+
|
|
6526
|
+
WrappedError.prototype = OriginalErrorPrototype;
|
|
6527
|
+
|
|
6528
|
+
if (ERROR_NAME !== 'Error') {
|
|
6529
|
+
if (setPrototypeOf$1) setPrototypeOf$1(WrappedError, BaseError);
|
|
6530
|
+
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
6531
|
+
} else if (DESCRIPTORS$2 && STACK_TRACE_LIMIT in OriginalError) {
|
|
6532
|
+
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
6533
|
+
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
6534
|
+
}
|
|
6535
|
+
|
|
6536
|
+
copyConstructorProperties(WrappedError, OriginalError);
|
|
6537
|
+
|
|
6538
|
+
try {
|
|
6539
|
+
// Safari 13- bug: WebAssembly errors does not have a proper `.name`
|
|
6540
|
+
if (OriginalErrorPrototype.name !== ERROR_NAME) {
|
|
6541
|
+
createNonEnumerableProperty$1(OriginalErrorPrototype, 'name', ERROR_NAME);
|
|
6542
|
+
}
|
|
6543
|
+
OriginalErrorPrototype.constructor = WrappedError;
|
|
6544
|
+
} catch (error) { /* empty */ }
|
|
6545
|
+
|
|
6546
|
+
return WrappedError;
|
|
6547
|
+
};
|
|
6548
|
+
|
|
6549
|
+
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
6550
|
+
var $$b = _export;
|
|
6551
|
+
var global$b = global$o;
|
|
6552
|
+
var apply$1 = functionApply;
|
|
6553
|
+
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
6554
|
+
|
|
6555
|
+
var WEB_ASSEMBLY = 'WebAssembly';
|
|
6556
|
+
var WebAssembly = global$b[WEB_ASSEMBLY];
|
|
6557
|
+
|
|
6558
|
+
// eslint-disable-next-line es/no-error-cause -- feature detection
|
|
6559
|
+
var FORCED$2 = new Error('e', { cause: 7 }).cause !== 7;
|
|
6560
|
+
|
|
6561
|
+
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
6562
|
+
var O = {};
|
|
6563
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$2);
|
|
6564
|
+
$$b({ global: true, constructor: true, arity: 1, forced: FORCED$2 }, O);
|
|
6565
|
+
};
|
|
6566
|
+
|
|
6567
|
+
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
6568
|
+
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
6569
|
+
var O = {};
|
|
6570
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$2);
|
|
6571
|
+
$$b({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$2 }, O);
|
|
6572
|
+
}
|
|
6573
|
+
};
|
|
6574
|
+
|
|
6575
|
+
// https://tc39.es/ecma262/#sec-nativeerror
|
|
6576
|
+
exportGlobalErrorCauseWrapper('Error', function (init) {
|
|
6577
|
+
return function Error(message) { return apply$1(init, this, arguments); };
|
|
6578
|
+
});
|
|
6579
|
+
exportGlobalErrorCauseWrapper('EvalError', function (init) {
|
|
6580
|
+
return function EvalError(message) { return apply$1(init, this, arguments); };
|
|
6581
|
+
});
|
|
6582
|
+
exportGlobalErrorCauseWrapper('RangeError', function (init) {
|
|
6583
|
+
return function RangeError(message) { return apply$1(init, this, arguments); };
|
|
6584
|
+
});
|
|
6585
|
+
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
|
|
6586
|
+
return function ReferenceError(message) { return apply$1(init, this, arguments); };
|
|
6587
|
+
});
|
|
6588
|
+
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
|
|
6589
|
+
return function SyntaxError(message) { return apply$1(init, this, arguments); };
|
|
6590
|
+
});
|
|
6591
|
+
exportGlobalErrorCauseWrapper('TypeError', function (init) {
|
|
6592
|
+
return function TypeError(message) { return apply$1(init, this, arguments); };
|
|
6593
|
+
});
|
|
6594
|
+
exportGlobalErrorCauseWrapper('URIError', function (init) {
|
|
6595
|
+
return function URIError(message) { return apply$1(init, this, arguments); };
|
|
6596
|
+
});
|
|
6597
|
+
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
|
|
6598
|
+
return function CompileError(message) { return apply$1(init, this, arguments); };
|
|
6599
|
+
});
|
|
6600
|
+
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
|
|
6601
|
+
return function LinkError(message) { return apply$1(init, this, arguments); };
|
|
6602
|
+
});
|
|
6603
|
+
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
6604
|
+
return function RuntimeError(message) { return apply$1(init, this, arguments); };
|
|
6605
|
+
});
|
|
6606
|
+
|
|
6607
|
+
var $$a = _export;
|
|
6608
|
+
var $includes = arrayIncludes.includes;
|
|
6609
|
+
var fails$7 = fails$q;
|
|
6610
|
+
var addToUnscopables = addToUnscopables$2;
|
|
6611
|
+
|
|
6612
|
+
// FF99+ bug
|
|
6613
|
+
var BROKEN_ON_SPARSE = fails$7(function () {
|
|
6614
|
+
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
6615
|
+
return !Array(1).includes();
|
|
6616
|
+
});
|
|
6617
|
+
|
|
6618
|
+
// `Array.prototype.includes` method
|
|
6619
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
6620
|
+
$$a({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
6621
|
+
includes: function includes(el /* , fromIndex = 0 */) {
|
|
6622
|
+
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
6623
|
+
}
|
|
6624
|
+
});
|
|
6625
|
+
|
|
6626
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
6627
|
+
addToUnscopables('includes');
|
|
6628
|
+
|
|
6629
|
+
var aCallable$6 = aCallable$a;
|
|
6630
|
+
var toObject$1 = toObject$7;
|
|
6631
|
+
var IndexedObject = indexedObject;
|
|
6632
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$6;
|
|
6633
|
+
|
|
6634
|
+
var $TypeError$8 = TypeError;
|
|
6222
6635
|
|
|
6223
6636
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
6224
|
-
var createMethod = function (IS_RIGHT) {
|
|
6637
|
+
var createMethod$1 = function (IS_RIGHT) {
|
|
6225
6638
|
return function (that, callbackfn, argumentsLength, memo) {
|
|
6226
|
-
var O = toObject(that);
|
|
6639
|
+
var O = toObject$1(that);
|
|
6227
6640
|
var self = IndexedObject(O);
|
|
6228
|
-
var length = lengthOfArrayLike$
|
|
6641
|
+
var length = lengthOfArrayLike$2(O);
|
|
6229
6642
|
aCallable$6(callbackfn);
|
|
6230
6643
|
var index = IS_RIGHT ? length - 1 : 0;
|
|
6231
6644
|
var i = IS_RIGHT ? -1 : 1;
|
|
@@ -6237,7 +6650,7 @@ var createMethod = function (IS_RIGHT) {
|
|
|
6237
6650
|
}
|
|
6238
6651
|
index += i;
|
|
6239
6652
|
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
6240
|
-
throw new $TypeError$
|
|
6653
|
+
throw new $TypeError$8('Reduce of empty array with no initial value');
|
|
6241
6654
|
}
|
|
6242
6655
|
}
|
|
6243
6656
|
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
@@ -6250,18 +6663,18 @@ var createMethod = function (IS_RIGHT) {
|
|
|
6250
6663
|
var arrayReduce = {
|
|
6251
6664
|
// `Array.prototype.reduce` method
|
|
6252
6665
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
6253
|
-
left: createMethod(false),
|
|
6666
|
+
left: createMethod$1(false),
|
|
6254
6667
|
// `Array.prototype.reduceRight` method
|
|
6255
6668
|
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
6256
|
-
right: createMethod(true)
|
|
6669
|
+
right: createMethod$1(true)
|
|
6257
6670
|
};
|
|
6258
6671
|
|
|
6259
|
-
var global$
|
|
6260
|
-
var classof$
|
|
6672
|
+
var global$a = global$o;
|
|
6673
|
+
var classof$4 = classofRaw$2;
|
|
6261
6674
|
|
|
6262
|
-
var engineIsNode = classof$
|
|
6675
|
+
var engineIsNode = classof$4(global$a.process) === 'process';
|
|
6263
6676
|
|
|
6264
|
-
var $$
|
|
6677
|
+
var $$9 = _export;
|
|
6265
6678
|
var $reduce = arrayReduce.left;
|
|
6266
6679
|
var arrayMethodIsStrict = arrayMethodIsStrict$2;
|
|
6267
6680
|
var CHROME_VERSION = engineV8Version;
|
|
@@ -6270,17 +6683,62 @@ var IS_NODE$4 = engineIsNode;
|
|
|
6270
6683
|
// Chrome 80-82 has a critical bug
|
|
6271
6684
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
6272
6685
|
var CHROME_BUG = !IS_NODE$4 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
6273
|
-
var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');
|
|
6686
|
+
var FORCED$1 = CHROME_BUG || !arrayMethodIsStrict('reduce');
|
|
6274
6687
|
|
|
6275
6688
|
// `Array.prototype.reduce` method
|
|
6276
6689
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
6277
|
-
$$
|
|
6690
|
+
$$9({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
|
6278
6691
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
6279
6692
|
var length = arguments.length;
|
|
6280
6693
|
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
6281
6694
|
}
|
|
6282
6695
|
});
|
|
6283
6696
|
|
|
6697
|
+
var $$8 = _export;
|
|
6698
|
+
var toObject = toObject$7;
|
|
6699
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$6;
|
|
6700
|
+
var setArrayLength = arraySetLength;
|
|
6701
|
+
var deletePropertyOrThrow = deletePropertyOrThrow$2;
|
|
6702
|
+
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$2;
|
|
6703
|
+
|
|
6704
|
+
// IE8-
|
|
6705
|
+
var INCORRECT_RESULT = [].unshift(0) !== 1;
|
|
6706
|
+
|
|
6707
|
+
// V8 ~ Chrome < 71 and Safari <= 15.4, FF < 23 throws InternalError
|
|
6708
|
+
var properErrorOnNonWritableLength = function () {
|
|
6709
|
+
try {
|
|
6710
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
6711
|
+
Object.defineProperty([], 'length', { writable: false }).unshift();
|
|
6712
|
+
} catch (error) {
|
|
6713
|
+
return error instanceof TypeError;
|
|
6714
|
+
}
|
|
6715
|
+
};
|
|
6716
|
+
|
|
6717
|
+
var FORCED = INCORRECT_RESULT || !properErrorOnNonWritableLength();
|
|
6718
|
+
|
|
6719
|
+
// `Array.prototype.unshift` method
|
|
6720
|
+
// https://tc39.es/ecma262/#sec-array.prototype.unshift
|
|
6721
|
+
$$8({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
6722
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
6723
|
+
unshift: function unshift(item) {
|
|
6724
|
+
var O = toObject(this);
|
|
6725
|
+
var len = lengthOfArrayLike$1(O);
|
|
6726
|
+
var argCount = arguments.length;
|
|
6727
|
+
if (argCount) {
|
|
6728
|
+
doesNotExceedSafeInteger(len + argCount);
|
|
6729
|
+
var k = len;
|
|
6730
|
+
while (k--) {
|
|
6731
|
+
var to = k + argCount;
|
|
6732
|
+
if (k in O) O[to] = O[k];
|
|
6733
|
+
else deletePropertyOrThrow(O, to);
|
|
6734
|
+
}
|
|
6735
|
+
for (var j = 0; j < argCount; j++) {
|
|
6736
|
+
O[j] = arguments[j];
|
|
6737
|
+
}
|
|
6738
|
+
} return setArrayLength(O, len + argCount);
|
|
6739
|
+
}
|
|
6740
|
+
});
|
|
6741
|
+
|
|
6284
6742
|
var makeBuiltIn = makeBuiltIn$3.exports;
|
|
6285
6743
|
var defineProperty = objectDefineProperty;
|
|
6286
6744
|
|
|
@@ -6290,18 +6748,18 @@ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
|
6290
6748
|
return defineProperty.f(target, name, descriptor);
|
|
6291
6749
|
};
|
|
6292
6750
|
|
|
6293
|
-
var getBuiltIn$3 = getBuiltIn$
|
|
6751
|
+
var getBuiltIn$3 = getBuiltIn$9;
|
|
6294
6752
|
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
6295
|
-
var wellKnownSymbol$
|
|
6753
|
+
var wellKnownSymbol$8 = wellKnownSymbol$h;
|
|
6296
6754
|
var DESCRIPTORS$1 = descriptors;
|
|
6297
6755
|
|
|
6298
|
-
var SPECIES$
|
|
6756
|
+
var SPECIES$3 = wellKnownSymbol$8('species');
|
|
6299
6757
|
|
|
6300
6758
|
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
6301
6759
|
var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
|
|
6302
6760
|
|
|
6303
|
-
if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$
|
|
6304
|
-
defineBuiltInAccessor(Constructor, SPECIES$
|
|
6761
|
+
if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$3]) {
|
|
6762
|
+
defineBuiltInAccessor(Constructor, SPECIES$3, {
|
|
6305
6763
|
configurable: true,
|
|
6306
6764
|
get: function () { return this; }
|
|
6307
6765
|
});
|
|
@@ -6310,28 +6768,28 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
|
6310
6768
|
|
|
6311
6769
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
6312
6770
|
|
|
6313
|
-
var $TypeError$
|
|
6771
|
+
var $TypeError$7 = TypeError;
|
|
6314
6772
|
|
|
6315
6773
|
var anInstance$1 = function (it, Prototype) {
|
|
6316
6774
|
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
6317
|
-
throw new $TypeError$
|
|
6775
|
+
throw new $TypeError$7('Incorrect invocation');
|
|
6318
6776
|
};
|
|
6319
6777
|
|
|
6320
|
-
var uncurryThis$
|
|
6321
|
-
var fails$
|
|
6322
|
-
var isCallable$
|
|
6323
|
-
var classof$
|
|
6324
|
-
var getBuiltIn$2 = getBuiltIn$
|
|
6778
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
6779
|
+
var fails$6 = fails$q;
|
|
6780
|
+
var isCallable$5 = isCallable$n;
|
|
6781
|
+
var classof$3 = classof$8;
|
|
6782
|
+
var getBuiltIn$2 = getBuiltIn$9;
|
|
6325
6783
|
var inspectSource$1 = inspectSource$3;
|
|
6326
6784
|
|
|
6327
6785
|
var noop = function () { /* empty */ };
|
|
6328
6786
|
var construct = getBuiltIn$2('Reflect', 'construct');
|
|
6329
6787
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
6330
|
-
var exec = uncurryThis$
|
|
6788
|
+
var exec$1 = uncurryThis$6(constructorRegExp.exec);
|
|
6331
6789
|
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
6332
6790
|
|
|
6333
6791
|
var isConstructorModern = function isConstructor(argument) {
|
|
6334
|
-
if (!isCallable$
|
|
6792
|
+
if (!isCallable$5(argument)) return false;
|
|
6335
6793
|
try {
|
|
6336
6794
|
construct(noop, [], argument);
|
|
6337
6795
|
return true;
|
|
@@ -6341,8 +6799,8 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
6341
6799
|
};
|
|
6342
6800
|
|
|
6343
6801
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
6344
|
-
if (!isCallable$
|
|
6345
|
-
switch (classof$
|
|
6802
|
+
if (!isCallable$5(argument)) return false;
|
|
6803
|
+
switch (classof$3(argument)) {
|
|
6346
6804
|
case 'AsyncFunction':
|
|
6347
6805
|
case 'GeneratorFunction':
|
|
6348
6806
|
case 'AsyncGeneratorFunction': return false;
|
|
@@ -6351,7 +6809,7 @@ var isConstructorLegacy = function isConstructor(argument) {
|
|
|
6351
6809
|
// we can't check .prototype since constructors produced by .bind haven't it
|
|
6352
6810
|
// `Function#toString` throws on some built-it function in some legacy engines
|
|
6353
6811
|
// (for example, `DOMQuad` and similar in FF41-)
|
|
6354
|
-
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
|
|
6812
|
+
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
|
|
6355
6813
|
} catch (error) {
|
|
6356
6814
|
return true;
|
|
6357
6815
|
}
|
|
@@ -6361,7 +6819,7 @@ isConstructorLegacy.sham = true;
|
|
|
6361
6819
|
|
|
6362
6820
|
// `IsConstructor` abstract operation
|
|
6363
6821
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
6364
|
-
var isConstructor$1 = !construct || fails$
|
|
6822
|
+
var isConstructor$1 = !construct || fails$6(function () {
|
|
6365
6823
|
var called;
|
|
6366
6824
|
return isConstructorModern(isConstructorModern.call)
|
|
6367
6825
|
|| !isConstructorModern(Object)
|
|
@@ -6372,55 +6830,44 @@ var isConstructor$1 = !construct || fails$1(function () {
|
|
|
6372
6830
|
var isConstructor = isConstructor$1;
|
|
6373
6831
|
var tryToString$2 = tryToString$5;
|
|
6374
6832
|
|
|
6375
|
-
var $TypeError$
|
|
6833
|
+
var $TypeError$6 = TypeError;
|
|
6376
6834
|
|
|
6377
6835
|
// `Assert: IsConstructor(argument) is true`
|
|
6378
6836
|
var aConstructor$1 = function (argument) {
|
|
6379
6837
|
if (isConstructor(argument)) return argument;
|
|
6380
|
-
throw new $TypeError$
|
|
6838
|
+
throw new $TypeError$6(tryToString$2(argument) + ' is not a constructor');
|
|
6381
6839
|
};
|
|
6382
6840
|
|
|
6383
|
-
var anObject$
|
|
6841
|
+
var anObject$6 = anObject$e;
|
|
6384
6842
|
var aConstructor = aConstructor$1;
|
|
6385
|
-
var isNullOrUndefined$
|
|
6386
|
-
var wellKnownSymbol$
|
|
6843
|
+
var isNullOrUndefined$2 = isNullOrUndefined$5;
|
|
6844
|
+
var wellKnownSymbol$7 = wellKnownSymbol$h;
|
|
6387
6845
|
|
|
6388
|
-
var SPECIES$
|
|
6846
|
+
var SPECIES$2 = wellKnownSymbol$7('species');
|
|
6389
6847
|
|
|
6390
6848
|
// `SpeciesConstructor` abstract operation
|
|
6391
6849
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
6392
|
-
var speciesConstructor$
|
|
6393
|
-
var C = anObject$
|
|
6850
|
+
var speciesConstructor$2 = function (O, defaultConstructor) {
|
|
6851
|
+
var C = anObject$6(O).constructor;
|
|
6394
6852
|
var S;
|
|
6395
|
-
return C === undefined || isNullOrUndefined$
|
|
6853
|
+
return C === undefined || isNullOrUndefined$2(S = anObject$6(C)[SPECIES$2]) ? defaultConstructor : aConstructor(S);
|
|
6396
6854
|
};
|
|
6397
6855
|
|
|
6398
|
-
var NATIVE_BIND$1 = functionBindNative;
|
|
6399
|
-
|
|
6400
|
-
var FunctionPrototype = Function.prototype;
|
|
6401
|
-
var apply$1 = FunctionPrototype.apply;
|
|
6402
|
-
var call$6 = FunctionPrototype.call;
|
|
6403
|
-
|
|
6404
|
-
// eslint-disable-next-line es/no-reflect -- safe
|
|
6405
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$6.bind(apply$1) : function () {
|
|
6406
|
-
return call$6.apply(apply$1, arguments);
|
|
6407
|
-
});
|
|
6408
|
-
|
|
6409
6856
|
var classofRaw = classofRaw$2;
|
|
6410
|
-
var uncurryThis$
|
|
6857
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
6411
6858
|
|
|
6412
6859
|
var functionUncurryThisClause = function (fn) {
|
|
6413
6860
|
// Nashorn bug:
|
|
6414
6861
|
// https://github.com/zloirock/core-js/issues/1128
|
|
6415
6862
|
// https://github.com/zloirock/core-js/issues/1130
|
|
6416
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$
|
|
6863
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$5(fn);
|
|
6417
6864
|
};
|
|
6418
6865
|
|
|
6419
|
-
var uncurryThis$
|
|
6866
|
+
var uncurryThis$4 = functionUncurryThisClause;
|
|
6420
6867
|
var aCallable$5 = aCallable$a;
|
|
6421
6868
|
var NATIVE_BIND = functionBindNative;
|
|
6422
6869
|
|
|
6423
|
-
var bind$4 = uncurryThis$
|
|
6870
|
+
var bind$4 = uncurryThis$4(uncurryThis$4.bind);
|
|
6424
6871
|
|
|
6425
6872
|
// optional / simple context binding
|
|
6426
6873
|
var functionBindContext = function (fn, that) {
|
|
@@ -6430,10 +6877,10 @@ var functionBindContext = function (fn, that) {
|
|
|
6430
6877
|
};
|
|
6431
6878
|
};
|
|
6432
6879
|
|
|
6433
|
-
var $TypeError$
|
|
6880
|
+
var $TypeError$5 = TypeError;
|
|
6434
6881
|
|
|
6435
6882
|
var validateArgumentsLength$1 = function (passed, required) {
|
|
6436
|
-
if (passed < required) throw new $TypeError$
|
|
6883
|
+
if (passed < required) throw new $TypeError$5('Not enough arguments');
|
|
6437
6884
|
return passed;
|
|
6438
6885
|
};
|
|
6439
6886
|
|
|
@@ -6442,34 +6889,34 @@ var userAgent$2 = engineUserAgent;
|
|
|
6442
6889
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
6443
6890
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
6444
6891
|
|
|
6445
|
-
var global$
|
|
6892
|
+
var global$9 = global$o;
|
|
6446
6893
|
var apply = functionApply;
|
|
6447
6894
|
var bind$3 = functionBindContext;
|
|
6448
|
-
var isCallable$
|
|
6895
|
+
var isCallable$4 = isCallable$n;
|
|
6449
6896
|
var hasOwn = hasOwnProperty_1;
|
|
6450
|
-
var fails = fails$
|
|
6897
|
+
var fails$5 = fails$q;
|
|
6451
6898
|
var html = html$2;
|
|
6452
|
-
var arraySlice = arraySlice$
|
|
6899
|
+
var arraySlice = arraySlice$3;
|
|
6453
6900
|
var createElement = documentCreateElement$2;
|
|
6454
6901
|
var validateArgumentsLength = validateArgumentsLength$1;
|
|
6455
6902
|
var IS_IOS$1 = engineIsIos;
|
|
6456
6903
|
var IS_NODE$3 = engineIsNode;
|
|
6457
6904
|
|
|
6458
|
-
var set = global$
|
|
6459
|
-
var clear = global$
|
|
6460
|
-
var process$2 = global$
|
|
6461
|
-
var Dispatch = global$
|
|
6462
|
-
var Function$1 = global$
|
|
6463
|
-
var MessageChannel = global$
|
|
6464
|
-
var String$1 = global$
|
|
6905
|
+
var set = global$9.setImmediate;
|
|
6906
|
+
var clear = global$9.clearImmediate;
|
|
6907
|
+
var process$2 = global$9.process;
|
|
6908
|
+
var Dispatch = global$9.Dispatch;
|
|
6909
|
+
var Function$1 = global$9.Function;
|
|
6910
|
+
var MessageChannel = global$9.MessageChannel;
|
|
6911
|
+
var String$1 = global$9.String;
|
|
6465
6912
|
var counter = 0;
|
|
6466
6913
|
var queue$2 = {};
|
|
6467
6914
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
6468
6915
|
var $location, defer, channel, port;
|
|
6469
6916
|
|
|
6470
|
-
fails(function () {
|
|
6917
|
+
fails$5(function () {
|
|
6471
6918
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
6472
|
-
$location = global$
|
|
6919
|
+
$location = global$9.location;
|
|
6473
6920
|
});
|
|
6474
6921
|
|
|
6475
6922
|
var run = function (id) {
|
|
@@ -6492,14 +6939,14 @@ var eventListener = function (event) {
|
|
|
6492
6939
|
|
|
6493
6940
|
var globalPostMessageDefer = function (id) {
|
|
6494
6941
|
// old engines have not location.origin
|
|
6495
|
-
global$
|
|
6942
|
+
global$9.postMessage(String$1(id), $location.protocol + '//' + $location.host);
|
|
6496
6943
|
};
|
|
6497
6944
|
|
|
6498
6945
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
6499
6946
|
if (!set || !clear) {
|
|
6500
6947
|
set = function setImmediate(handler) {
|
|
6501
6948
|
validateArgumentsLength(arguments.length, 1);
|
|
6502
|
-
var fn = isCallable$
|
|
6949
|
+
var fn = isCallable$4(handler) ? handler : Function$1(handler);
|
|
6503
6950
|
var args = arraySlice(arguments, 1);
|
|
6504
6951
|
queue$2[++counter] = function () {
|
|
6505
6952
|
apply(fn, undefined, args);
|
|
@@ -6530,14 +6977,14 @@ if (!set || !clear) {
|
|
|
6530
6977
|
// Browsers with postMessage, skip WebWorkers
|
|
6531
6978
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
6532
6979
|
} else if (
|
|
6533
|
-
global$
|
|
6534
|
-
isCallable$
|
|
6535
|
-
!global$
|
|
6980
|
+
global$9.addEventListener &&
|
|
6981
|
+
isCallable$4(global$9.postMessage) &&
|
|
6982
|
+
!global$9.importScripts &&
|
|
6536
6983
|
$location && $location.protocol !== 'file:' &&
|
|
6537
|
-
!fails(globalPostMessageDefer)
|
|
6984
|
+
!fails$5(globalPostMessageDefer)
|
|
6538
6985
|
) {
|
|
6539
6986
|
defer = globalPostMessageDefer;
|
|
6540
|
-
global$
|
|
6987
|
+
global$9.addEventListener('message', eventListener, false);
|
|
6541
6988
|
// IE8-
|
|
6542
6989
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
6543
6990
|
defer = function (id) {
|
|
@@ -6559,7 +7006,7 @@ var task$1 = {
|
|
|
6559
7006
|
clear: clear
|
|
6560
7007
|
};
|
|
6561
7008
|
|
|
6562
|
-
var global$
|
|
7009
|
+
var global$8 = global$o;
|
|
6563
7010
|
var DESCRIPTORS = descriptors;
|
|
6564
7011
|
|
|
6565
7012
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -6567,8 +7014,8 @@ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
|
6567
7014
|
|
|
6568
7015
|
// Avoid NodeJS experimental warning
|
|
6569
7016
|
var safeGetBuiltIn$1 = function (name) {
|
|
6570
|
-
if (!DESCRIPTORS) return global$
|
|
6571
|
-
var descriptor = getOwnPropertyDescriptor(global$
|
|
7017
|
+
if (!DESCRIPTORS) return global$8[name];
|
|
7018
|
+
var descriptor = getOwnPropertyDescriptor(global$8, name);
|
|
6572
7019
|
return descriptor && descriptor.value;
|
|
6573
7020
|
};
|
|
6574
7021
|
|
|
@@ -6605,7 +7052,7 @@ var userAgent = engineUserAgent;
|
|
|
6605
7052
|
|
|
6606
7053
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
6607
7054
|
|
|
6608
|
-
var global$
|
|
7055
|
+
var global$7 = global$o;
|
|
6609
7056
|
var safeGetBuiltIn = safeGetBuiltIn$1;
|
|
6610
7057
|
var bind$2 = functionBindContext;
|
|
6611
7058
|
var macrotask = task$1.set;
|
|
@@ -6615,10 +7062,10 @@ var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
|
6615
7062
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
6616
7063
|
var IS_NODE$2 = engineIsNode;
|
|
6617
7064
|
|
|
6618
|
-
var MutationObserver = global$
|
|
6619
|
-
var document$2 = global$
|
|
6620
|
-
var process$1 = global$
|
|
6621
|
-
var Promise$1 = global$
|
|
7065
|
+
var MutationObserver = global$7.MutationObserver || global$7.WebKitMutationObserver;
|
|
7066
|
+
var document$2 = global$7.document;
|
|
7067
|
+
var process$1 = global$7.process;
|
|
7068
|
+
var Promise$1 = global$7.Promise;
|
|
6622
7069
|
var microtask$1 = safeGetBuiltIn('queueMicrotask');
|
|
6623
7070
|
var notify$1, toggle, node, promise, then;
|
|
6624
7071
|
|
|
@@ -6670,7 +7117,7 @@ if (!microtask$1) {
|
|
|
6670
7117
|
// - setTimeout
|
|
6671
7118
|
} else {
|
|
6672
7119
|
// `webpack` dev server bug on IE global methods - use bind(fn, global)
|
|
6673
|
-
macrotask = bind$2(macrotask, global$
|
|
7120
|
+
macrotask = bind$2(macrotask, global$7);
|
|
6674
7121
|
notify$1 = function () {
|
|
6675
7122
|
macrotask(flush);
|
|
6676
7123
|
};
|
|
@@ -6699,9 +7146,9 @@ var perform$3 = function (exec) {
|
|
|
6699
7146
|
}
|
|
6700
7147
|
};
|
|
6701
7148
|
|
|
6702
|
-
var global$
|
|
7149
|
+
var global$6 = global$o;
|
|
6703
7150
|
|
|
6704
|
-
var promiseNativeConstructor = global$
|
|
7151
|
+
var promiseNativeConstructor = global$6.Promise;
|
|
6705
7152
|
|
|
6706
7153
|
/* global Deno -- Deno case */
|
|
6707
7154
|
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
@@ -6713,20 +7160,20 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
|
6713
7160
|
&& typeof window == 'object'
|
|
6714
7161
|
&& typeof document == 'object';
|
|
6715
7162
|
|
|
6716
|
-
var global$
|
|
7163
|
+
var global$5 = global$o;
|
|
6717
7164
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
6718
|
-
var isCallable$
|
|
7165
|
+
var isCallable$3 = isCallable$n;
|
|
6719
7166
|
var isForced = isForced_1;
|
|
6720
7167
|
var inspectSource = inspectSource$3;
|
|
6721
|
-
var wellKnownSymbol$
|
|
7168
|
+
var wellKnownSymbol$6 = wellKnownSymbol$h;
|
|
6722
7169
|
var IS_BROWSER = engineIsBrowser;
|
|
6723
7170
|
var IS_DENO = engineIsDeno;
|
|
6724
7171
|
var V8_VERSION = engineV8Version;
|
|
6725
7172
|
|
|
6726
7173
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
6727
|
-
var SPECIES = wellKnownSymbol$
|
|
7174
|
+
var SPECIES$1 = wellKnownSymbol$6('species');
|
|
6728
7175
|
var SUBCLASSING = false;
|
|
6729
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$
|
|
7176
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(global$5.PromiseRejectionEvent);
|
|
6730
7177
|
|
|
6731
7178
|
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
6732
7179
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
@@ -6745,7 +7192,7 @@ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
|
6745
7192
|
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
6746
7193
|
};
|
|
6747
7194
|
var constructor = promise.constructor = {};
|
|
6748
|
-
constructor[SPECIES] = FakePromise;
|
|
7195
|
+
constructor[SPECIES$1] = FakePromise;
|
|
6749
7196
|
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
6750
7197
|
if (!SUBCLASSING) return true;
|
|
6751
7198
|
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
@@ -6762,12 +7209,12 @@ var newPromiseCapability$2 = {};
|
|
|
6762
7209
|
|
|
6763
7210
|
var aCallable$4 = aCallable$a;
|
|
6764
7211
|
|
|
6765
|
-
var $TypeError$
|
|
7212
|
+
var $TypeError$4 = TypeError;
|
|
6766
7213
|
|
|
6767
7214
|
var PromiseCapability = function (C) {
|
|
6768
7215
|
var resolve, reject;
|
|
6769
7216
|
this.promise = new C(function ($$resolve, $$reject) {
|
|
6770
|
-
if (resolve !== undefined || reject !== undefined) throw new $TypeError$
|
|
7217
|
+
if (resolve !== undefined || reject !== undefined) throw new $TypeError$4('Bad Promise constructor');
|
|
6771
7218
|
resolve = $$resolve;
|
|
6772
7219
|
reject = $$reject;
|
|
6773
7220
|
});
|
|
@@ -6781,19 +7228,19 @@ newPromiseCapability$2.f = function (C) {
|
|
|
6781
7228
|
return new PromiseCapability(C);
|
|
6782
7229
|
};
|
|
6783
7230
|
|
|
6784
|
-
var $$
|
|
7231
|
+
var $$7 = _export;
|
|
6785
7232
|
var IS_NODE = engineIsNode;
|
|
6786
|
-
var global$
|
|
6787
|
-
var call$
|
|
6788
|
-
var defineBuiltIn$
|
|
7233
|
+
var global$4 = global$o;
|
|
7234
|
+
var call$9 = functionCall;
|
|
7235
|
+
var defineBuiltIn$2 = defineBuiltIn$7;
|
|
6789
7236
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
6790
7237
|
var setToStringTag = setToStringTag$4;
|
|
6791
7238
|
var setSpecies = setSpecies$1;
|
|
6792
7239
|
var aCallable$3 = aCallable$a;
|
|
6793
|
-
var isCallable$
|
|
6794
|
-
var isObject$2 = isObject$
|
|
7240
|
+
var isCallable$2 = isCallable$n;
|
|
7241
|
+
var isObject$2 = isObject$c;
|
|
6795
7242
|
var anInstance = anInstance$1;
|
|
6796
|
-
var speciesConstructor = speciesConstructor$
|
|
7243
|
+
var speciesConstructor$1 = speciesConstructor$2;
|
|
6797
7244
|
var task = task$1.set;
|
|
6798
7245
|
var microtask = microtask_1;
|
|
6799
7246
|
var hostReportErrors = hostReportErrors$1;
|
|
@@ -6813,13 +7260,13 @@ var setInternalState = InternalStateModule.set;
|
|
|
6813
7260
|
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
6814
7261
|
var PromiseConstructor = NativePromiseConstructor$2;
|
|
6815
7262
|
var PromisePrototype = NativePromisePrototype$1;
|
|
6816
|
-
var TypeError$1 = global$
|
|
6817
|
-
var document$1 = global$
|
|
6818
|
-
var process = global$
|
|
7263
|
+
var TypeError$1 = global$4.TypeError;
|
|
7264
|
+
var document$1 = global$4.document;
|
|
7265
|
+
var process = global$4.process;
|
|
6819
7266
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
6820
7267
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
6821
7268
|
|
|
6822
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
7269
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$4.dispatchEvent);
|
|
6823
7270
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
6824
7271
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
6825
7272
|
var PENDING = 0;
|
|
@@ -6833,7 +7280,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
|
6833
7280
|
// helpers
|
|
6834
7281
|
var isThenable = function (it) {
|
|
6835
7282
|
var then;
|
|
6836
|
-
return isObject$2(it) && isCallable$
|
|
7283
|
+
return isObject$2(it) && isCallable$2(then = it.then) ? then : false;
|
|
6837
7284
|
};
|
|
6838
7285
|
|
|
6839
7286
|
var callReaction = function (reaction, state) {
|
|
@@ -6862,7 +7309,7 @@ var callReaction = function (reaction, state) {
|
|
|
6862
7309
|
if (result === reaction.promise) {
|
|
6863
7310
|
reject(new TypeError$1('Promise-chain cycle'));
|
|
6864
7311
|
} else if (then = isThenable(result)) {
|
|
6865
|
-
call$
|
|
7312
|
+
call$9(then, result, resolve, reject);
|
|
6866
7313
|
} else resolve(result);
|
|
6867
7314
|
} else reject(value);
|
|
6868
7315
|
} catch (error) {
|
|
@@ -6892,14 +7339,14 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
6892
7339
|
event.promise = promise;
|
|
6893
7340
|
event.reason = reason;
|
|
6894
7341
|
event.initEvent(name, false, true);
|
|
6895
|
-
global$
|
|
7342
|
+
global$4.dispatchEvent(event);
|
|
6896
7343
|
} else event = { promise: promise, reason: reason };
|
|
6897
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$
|
|
7344
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$4['on' + name])) handler(event);
|
|
6898
7345
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
6899
7346
|
};
|
|
6900
7347
|
|
|
6901
7348
|
var onUnhandled = function (state) {
|
|
6902
|
-
call$
|
|
7349
|
+
call$9(task, global$4, function () {
|
|
6903
7350
|
var promise = state.facade;
|
|
6904
7351
|
var value = state.value;
|
|
6905
7352
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -6922,7 +7369,7 @@ var isUnhandled = function (state) {
|
|
|
6922
7369
|
};
|
|
6923
7370
|
|
|
6924
7371
|
var onHandleUnhandled = function (state) {
|
|
6925
|
-
call$
|
|
7372
|
+
call$9(task, global$4, function () {
|
|
6926
7373
|
var promise = state.facade;
|
|
6927
7374
|
if (IS_NODE) {
|
|
6928
7375
|
process.emit('rejectionHandled', promise);
|
|
@@ -6956,7 +7403,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
6956
7403
|
microtask(function () {
|
|
6957
7404
|
var wrapper = { done: false };
|
|
6958
7405
|
try {
|
|
6959
|
-
call$
|
|
7406
|
+
call$9(then, value,
|
|
6960
7407
|
bind$1(internalResolve, wrapper, state),
|
|
6961
7408
|
bind$1(internalReject, wrapper, state)
|
|
6962
7409
|
);
|
|
@@ -6980,7 +7427,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
6980
7427
|
PromiseConstructor = function Promise(executor) {
|
|
6981
7428
|
anInstance(this, PromisePrototype);
|
|
6982
7429
|
aCallable$3(executor);
|
|
6983
|
-
call$
|
|
7430
|
+
call$9(Internal, this);
|
|
6984
7431
|
var state = getInternalPromiseState(this);
|
|
6985
7432
|
try {
|
|
6986
7433
|
executor(bind$1(internalResolve, state), bind$1(internalReject, state));
|
|
@@ -7007,12 +7454,12 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
7007
7454
|
|
|
7008
7455
|
// `Promise.prototype.then` method
|
|
7009
7456
|
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
7010
|
-
Internal.prototype = defineBuiltIn$
|
|
7457
|
+
Internal.prototype = defineBuiltIn$2(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
7011
7458
|
var state = getInternalPromiseState(this);
|
|
7012
|
-
var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
|
|
7459
|
+
var reaction = newPromiseCapability$1(speciesConstructor$1(this, PromiseConstructor));
|
|
7013
7460
|
state.parent = true;
|
|
7014
|
-
reaction.ok = isCallable$
|
|
7015
|
-
reaction.fail = isCallable$
|
|
7461
|
+
reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
|
|
7462
|
+
reaction.fail = isCallable$2(onRejected) && onRejected;
|
|
7016
7463
|
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
7017
7464
|
if (state.state === PENDING) state.reactions.add(reaction);
|
|
7018
7465
|
else microtask(function () {
|
|
@@ -7035,15 +7482,15 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
7035
7482
|
: newGenericPromiseCapability(C);
|
|
7036
7483
|
};
|
|
7037
7484
|
|
|
7038
|
-
if (isCallable$
|
|
7485
|
+
if (isCallable$2(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
|
|
7039
7486
|
nativeThen = NativePromisePrototype$1.then;
|
|
7040
7487
|
|
|
7041
7488
|
if (!NATIVE_PROMISE_SUBCLASSING) {
|
|
7042
7489
|
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
7043
|
-
defineBuiltIn$
|
|
7490
|
+
defineBuiltIn$2(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
7044
7491
|
var that = this;
|
|
7045
7492
|
return new PromiseConstructor(function (resolve, reject) {
|
|
7046
|
-
call$
|
|
7493
|
+
call$9(nativeThen, that, resolve, reject);
|
|
7047
7494
|
}).then(onFulfilled, onRejected);
|
|
7048
7495
|
// https://github.com/zloirock/core-js/issues/640
|
|
7049
7496
|
}, { unsafe: true });
|
|
@@ -7061,17 +7508,17 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
7061
7508
|
}
|
|
7062
7509
|
}
|
|
7063
7510
|
|
|
7064
|
-
$$
|
|
7511
|
+
$$7({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
7065
7512
|
Promise: PromiseConstructor
|
|
7066
7513
|
});
|
|
7067
7514
|
|
|
7068
7515
|
setToStringTag(PromiseConstructor, PROMISE, false);
|
|
7069
7516
|
setSpecies(PROMISE);
|
|
7070
7517
|
|
|
7071
|
-
var wellKnownSymbol$
|
|
7518
|
+
var wellKnownSymbol$5 = wellKnownSymbol$h;
|
|
7072
7519
|
var Iterators$1 = iterators;
|
|
7073
7520
|
|
|
7074
|
-
var ITERATOR$2 = wellKnownSymbol$
|
|
7521
|
+
var ITERATOR$2 = wellKnownSymbol$5('iterator');
|
|
7075
7522
|
var ArrayPrototype = Array.prototype;
|
|
7076
7523
|
|
|
7077
7524
|
// check on default Array iterator
|
|
@@ -7079,70 +7526,70 @@ var isArrayIteratorMethod$1 = function (it) {
|
|
|
7079
7526
|
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
|
7080
7527
|
};
|
|
7081
7528
|
|
|
7082
|
-
var classof$
|
|
7083
|
-
var getMethod$
|
|
7084
|
-
var isNullOrUndefined = isNullOrUndefined$
|
|
7529
|
+
var classof$2 = classof$8;
|
|
7530
|
+
var getMethod$2 = getMethod$4;
|
|
7531
|
+
var isNullOrUndefined$1 = isNullOrUndefined$5;
|
|
7085
7532
|
var Iterators = iterators;
|
|
7086
|
-
var wellKnownSymbol$
|
|
7533
|
+
var wellKnownSymbol$4 = wellKnownSymbol$h;
|
|
7087
7534
|
|
|
7088
|
-
var ITERATOR$1 = wellKnownSymbol$
|
|
7535
|
+
var ITERATOR$1 = wellKnownSymbol$4('iterator');
|
|
7089
7536
|
|
|
7090
7537
|
var getIteratorMethod$2 = function (it) {
|
|
7091
|
-
if (!isNullOrUndefined(it)) return getMethod$
|
|
7092
|
-
|| getMethod$
|
|
7093
|
-
|| Iterators[classof$
|
|
7538
|
+
if (!isNullOrUndefined$1(it)) return getMethod$2(it, ITERATOR$1)
|
|
7539
|
+
|| getMethod$2(it, '@@iterator')
|
|
7540
|
+
|| Iterators[classof$2(it)];
|
|
7094
7541
|
};
|
|
7095
7542
|
|
|
7096
|
-
var call$
|
|
7543
|
+
var call$8 = functionCall;
|
|
7097
7544
|
var aCallable$2 = aCallable$a;
|
|
7098
|
-
var anObject$
|
|
7545
|
+
var anObject$5 = anObject$e;
|
|
7099
7546
|
var tryToString$1 = tryToString$5;
|
|
7100
7547
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
7101
7548
|
|
|
7102
|
-
var $TypeError$
|
|
7549
|
+
var $TypeError$3 = TypeError;
|
|
7103
7550
|
|
|
7104
7551
|
var getIterator$1 = function (argument, usingIterator) {
|
|
7105
7552
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
7106
|
-
if (aCallable$2(iteratorMethod)) return anObject$
|
|
7107
|
-
throw new $TypeError$
|
|
7553
|
+
if (aCallable$2(iteratorMethod)) return anObject$5(call$8(iteratorMethod, argument));
|
|
7554
|
+
throw new $TypeError$3(tryToString$1(argument) + ' is not iterable');
|
|
7108
7555
|
};
|
|
7109
7556
|
|
|
7110
|
-
var call$
|
|
7111
|
-
var anObject$
|
|
7112
|
-
var getMethod = getMethod$
|
|
7557
|
+
var call$7 = functionCall;
|
|
7558
|
+
var anObject$4 = anObject$e;
|
|
7559
|
+
var getMethod$1 = getMethod$4;
|
|
7113
7560
|
|
|
7114
7561
|
var iteratorClose$1 = function (iterator, kind, value) {
|
|
7115
7562
|
var innerResult, innerError;
|
|
7116
|
-
anObject$
|
|
7563
|
+
anObject$4(iterator);
|
|
7117
7564
|
try {
|
|
7118
|
-
innerResult = getMethod(iterator, 'return');
|
|
7565
|
+
innerResult = getMethod$1(iterator, 'return');
|
|
7119
7566
|
if (!innerResult) {
|
|
7120
7567
|
if (kind === 'throw') throw value;
|
|
7121
7568
|
return value;
|
|
7122
7569
|
}
|
|
7123
|
-
innerResult = call$
|
|
7570
|
+
innerResult = call$7(innerResult, iterator);
|
|
7124
7571
|
} catch (error) {
|
|
7125
7572
|
innerError = true;
|
|
7126
7573
|
innerResult = error;
|
|
7127
7574
|
}
|
|
7128
7575
|
if (kind === 'throw') throw value;
|
|
7129
7576
|
if (innerError) throw innerResult;
|
|
7130
|
-
anObject$
|
|
7577
|
+
anObject$4(innerResult);
|
|
7131
7578
|
return value;
|
|
7132
7579
|
};
|
|
7133
7580
|
|
|
7134
7581
|
var bind = functionBindContext;
|
|
7135
|
-
var call$
|
|
7136
|
-
var anObject$
|
|
7582
|
+
var call$6 = functionCall;
|
|
7583
|
+
var anObject$3 = anObject$e;
|
|
7137
7584
|
var tryToString = tryToString$5;
|
|
7138
7585
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
7139
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
7586
|
+
var lengthOfArrayLike = lengthOfArrayLike$6;
|
|
7140
7587
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
7141
7588
|
var getIterator = getIterator$1;
|
|
7142
7589
|
var getIteratorMethod = getIteratorMethod$2;
|
|
7143
7590
|
var iteratorClose = iteratorClose$1;
|
|
7144
7591
|
|
|
7145
|
-
var $TypeError$
|
|
7592
|
+
var $TypeError$2 = TypeError;
|
|
7146
7593
|
|
|
7147
7594
|
var Result = function (stopped, result) {
|
|
7148
7595
|
this.stopped = stopped;
|
|
@@ -7167,7 +7614,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
7167
7614
|
|
|
7168
7615
|
var callFn = function (value) {
|
|
7169
7616
|
if (AS_ENTRIES) {
|
|
7170
|
-
anObject$
|
|
7617
|
+
anObject$3(value);
|
|
7171
7618
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
7172
7619
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
7173
7620
|
};
|
|
@@ -7178,7 +7625,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
7178
7625
|
iterator = iterable;
|
|
7179
7626
|
} else {
|
|
7180
7627
|
iterFn = getIteratorMethod(iterable);
|
|
7181
|
-
if (!iterFn) throw new $TypeError$
|
|
7628
|
+
if (!iterFn) throw new $TypeError$2(tryToString(iterable) + ' is not iterable');
|
|
7182
7629
|
// optimisation for array iterators
|
|
7183
7630
|
if (isArrayIteratorMethod(iterFn)) {
|
|
7184
7631
|
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
@@ -7190,7 +7637,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
7190
7637
|
}
|
|
7191
7638
|
|
|
7192
7639
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
7193
|
-
while (!(step = call$
|
|
7640
|
+
while (!(step = call$6(next, iterator)).done) {
|
|
7194
7641
|
try {
|
|
7195
7642
|
result = callFn(step.value);
|
|
7196
7643
|
} catch (error) {
|
|
@@ -7200,9 +7647,9 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
7200
7647
|
} return new Result(false);
|
|
7201
7648
|
};
|
|
7202
7649
|
|
|
7203
|
-
var wellKnownSymbol$
|
|
7650
|
+
var wellKnownSymbol$3 = wellKnownSymbol$h;
|
|
7204
7651
|
|
|
7205
|
-
var ITERATOR = wellKnownSymbol$
|
|
7652
|
+
var ITERATOR = wellKnownSymbol$3('iterator');
|
|
7206
7653
|
var SAFE_CLOSING = false;
|
|
7207
7654
|
|
|
7208
7655
|
try {
|
|
@@ -7249,8 +7696,8 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
7249
7696
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
7250
7697
|
});
|
|
7251
7698
|
|
|
7252
|
-
var $$
|
|
7253
|
-
var call$
|
|
7699
|
+
var $$6 = _export;
|
|
7700
|
+
var call$5 = functionCall;
|
|
7254
7701
|
var aCallable$1 = aCallable$a;
|
|
7255
7702
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
7256
7703
|
var perform$1 = perform$3;
|
|
@@ -7259,7 +7706,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
|
7259
7706
|
|
|
7260
7707
|
// `Promise.all` method
|
|
7261
7708
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
7262
|
-
$$
|
|
7709
|
+
$$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
7263
7710
|
all: function all(iterable) {
|
|
7264
7711
|
var C = this;
|
|
7265
7712
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
@@ -7274,7 +7721,7 @@ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
7274
7721
|
var index = counter++;
|
|
7275
7722
|
var alreadyCalled = false;
|
|
7276
7723
|
remaining++;
|
|
7277
|
-
call$
|
|
7724
|
+
call$5($promiseResolve, C, promise).then(function (value) {
|
|
7278
7725
|
if (alreadyCalled) return;
|
|
7279
7726
|
alreadyCalled = true;
|
|
7280
7727
|
values[index] = value;
|
|
@@ -7288,33 +7735,33 @@ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
7288
7735
|
}
|
|
7289
7736
|
});
|
|
7290
7737
|
|
|
7291
|
-
var $$
|
|
7738
|
+
var $$5 = _export;
|
|
7292
7739
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
7293
7740
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
7294
|
-
var getBuiltIn$1 = getBuiltIn$
|
|
7295
|
-
var isCallable = isCallable$
|
|
7296
|
-
var defineBuiltIn = defineBuiltIn$
|
|
7741
|
+
var getBuiltIn$1 = getBuiltIn$9;
|
|
7742
|
+
var isCallable$1 = isCallable$n;
|
|
7743
|
+
var defineBuiltIn$1 = defineBuiltIn$7;
|
|
7297
7744
|
|
|
7298
7745
|
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
7299
7746
|
|
|
7300
7747
|
// `Promise.prototype.catch` method
|
|
7301
7748
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
7302
|
-
$$
|
|
7749
|
+
$$5({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
7303
7750
|
'catch': function (onRejected) {
|
|
7304
7751
|
return this.then(undefined, onRejected);
|
|
7305
7752
|
}
|
|
7306
7753
|
});
|
|
7307
7754
|
|
|
7308
7755
|
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
7309
|
-
if (isCallable(NativePromiseConstructor)) {
|
|
7756
|
+
if (isCallable$1(NativePromiseConstructor)) {
|
|
7310
7757
|
var method = getBuiltIn$1('Promise').prototype['catch'];
|
|
7311
7758
|
if (NativePromisePrototype['catch'] !== method) {
|
|
7312
|
-
defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
7759
|
+
defineBuiltIn$1(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
7313
7760
|
}
|
|
7314
7761
|
}
|
|
7315
7762
|
|
|
7316
|
-
var $$
|
|
7317
|
-
var call = functionCall;
|
|
7763
|
+
var $$4 = _export;
|
|
7764
|
+
var call$4 = functionCall;
|
|
7318
7765
|
var aCallable = aCallable$a;
|
|
7319
7766
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
7320
7767
|
var perform = perform$3;
|
|
@@ -7323,7 +7770,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
|
7323
7770
|
|
|
7324
7771
|
// `Promise.race` method
|
|
7325
7772
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
7326
|
-
$$
|
|
7773
|
+
$$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
7327
7774
|
race: function race(iterable) {
|
|
7328
7775
|
var C = this;
|
|
7329
7776
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
@@ -7331,7 +7778,7 @@ $$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
7331
7778
|
var result = perform(function () {
|
|
7332
7779
|
var $promiseResolve = aCallable(C.resolve);
|
|
7333
7780
|
iterate(iterable, function (promise) {
|
|
7334
|
-
call($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
7781
|
+
call$4($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
7335
7782
|
});
|
|
7336
7783
|
});
|
|
7337
7784
|
if (result.error) reject(result.value);
|
|
@@ -7339,13 +7786,13 @@ $$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
7339
7786
|
}
|
|
7340
7787
|
});
|
|
7341
7788
|
|
|
7342
|
-
var $$
|
|
7789
|
+
var $$3 = _export;
|
|
7343
7790
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
7344
7791
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
7345
7792
|
|
|
7346
7793
|
// `Promise.reject` method
|
|
7347
7794
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
7348
|
-
$$
|
|
7795
|
+
$$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
7349
7796
|
reject: function reject(r) {
|
|
7350
7797
|
var capability = newPromiseCapabilityModule.f(this);
|
|
7351
7798
|
var capabilityReject = capability.reject;
|
|
@@ -7354,12 +7801,12 @@ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
|
7354
7801
|
}
|
|
7355
7802
|
});
|
|
7356
7803
|
|
|
7357
|
-
var anObject = anObject$
|
|
7358
|
-
var isObject$1 = isObject$
|
|
7804
|
+
var anObject$2 = anObject$e;
|
|
7805
|
+
var isObject$1 = isObject$c;
|
|
7359
7806
|
var newPromiseCapability = newPromiseCapability$2;
|
|
7360
7807
|
|
|
7361
7808
|
var promiseResolve$1 = function (C, x) {
|
|
7362
|
-
anObject(C);
|
|
7809
|
+
anObject$2(C);
|
|
7363
7810
|
if (isObject$1(x) && x.constructor === C) return x;
|
|
7364
7811
|
var promiseCapability = newPromiseCapability.f(C);
|
|
7365
7812
|
var resolve = promiseCapability.resolve;
|
|
@@ -7367,8 +7814,8 @@ var promiseResolve$1 = function (C, x) {
|
|
|
7367
7814
|
return promiseCapability.promise;
|
|
7368
7815
|
};
|
|
7369
7816
|
|
|
7370
|
-
var $$
|
|
7371
|
-
var getBuiltIn = getBuiltIn$
|
|
7817
|
+
var $$2 = _export;
|
|
7818
|
+
var getBuiltIn = getBuiltIn$9;
|
|
7372
7819
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
7373
7820
|
var promiseResolve = promiseResolve$1;
|
|
7374
7821
|
|
|
@@ -7376,38 +7823,38 @@ getBuiltIn('Promise');
|
|
|
7376
7823
|
|
|
7377
7824
|
// `Promise.resolve` method
|
|
7378
7825
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
7379
|
-
$$
|
|
7826
|
+
$$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
7380
7827
|
resolve: function resolve(x) {
|
|
7381
7828
|
return promiseResolve(this, x);
|
|
7382
7829
|
}
|
|
7383
7830
|
});
|
|
7384
7831
|
|
|
7385
|
-
var isObject = isObject$
|
|
7386
|
-
var classof = classofRaw$2;
|
|
7387
|
-
var wellKnownSymbol$
|
|
7832
|
+
var isObject = isObject$c;
|
|
7833
|
+
var classof$1 = classofRaw$2;
|
|
7834
|
+
var wellKnownSymbol$2 = wellKnownSymbol$h;
|
|
7388
7835
|
|
|
7389
|
-
var MATCH$1 = wellKnownSymbol$
|
|
7836
|
+
var MATCH$1 = wellKnownSymbol$2('match');
|
|
7390
7837
|
|
|
7391
7838
|
// `IsRegExp` abstract operation
|
|
7392
7839
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
7393
7840
|
var isRegexp = function (it) {
|
|
7394
7841
|
var isRegExp;
|
|
7395
|
-
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');
|
|
7842
|
+
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) === 'RegExp');
|
|
7396
7843
|
};
|
|
7397
7844
|
|
|
7398
7845
|
var isRegExp = isRegexp;
|
|
7399
7846
|
|
|
7400
|
-
var $TypeError = TypeError;
|
|
7847
|
+
var $TypeError$1 = TypeError;
|
|
7401
7848
|
|
|
7402
7849
|
var notARegexp = function (it) {
|
|
7403
7850
|
if (isRegExp(it)) {
|
|
7404
|
-
throw new $TypeError("The method doesn't accept regular expressions");
|
|
7851
|
+
throw new $TypeError$1("The method doesn't accept regular expressions");
|
|
7405
7852
|
} return it;
|
|
7406
7853
|
};
|
|
7407
7854
|
|
|
7408
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
7855
|
+
var wellKnownSymbol$1 = wellKnownSymbol$h;
|
|
7409
7856
|
|
|
7410
|
-
var MATCH = wellKnownSymbol('match');
|
|
7857
|
+
var MATCH = wellKnownSymbol$1('match');
|
|
7411
7858
|
|
|
7412
7859
|
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
7413
7860
|
var regexp = /./;
|
|
@@ -7421,22 +7868,22 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
7421
7868
|
} return false;
|
|
7422
7869
|
};
|
|
7423
7870
|
|
|
7424
|
-
var
|
|
7425
|
-
var uncurryThis = functionUncurryThis;
|
|
7871
|
+
var $$1 = _export;
|
|
7872
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
7426
7873
|
var notARegExp = notARegexp;
|
|
7427
|
-
var requireObjectCoercible = requireObjectCoercible$
|
|
7428
|
-
var toString = toString$
|
|
7874
|
+
var requireObjectCoercible$2 = requireObjectCoercible$6;
|
|
7875
|
+
var toString$3 = toString$9;
|
|
7429
7876
|
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
7430
7877
|
|
|
7431
|
-
var stringIndexOf = uncurryThis(''.indexOf);
|
|
7878
|
+
var stringIndexOf = uncurryThis$3(''.indexOf);
|
|
7432
7879
|
|
|
7433
7880
|
// `String.prototype.includes` method
|
|
7434
7881
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
7435
|
-
|
|
7882
|
+
$$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
7436
7883
|
includes: function includes(searchString /* , position = 0 */) {
|
|
7437
7884
|
return !!~stringIndexOf(
|
|
7438
|
-
toString(requireObjectCoercible(this)),
|
|
7439
|
-
toString(notARegExp(searchString)),
|
|
7885
|
+
toString$3(requireObjectCoercible$2(this)),
|
|
7886
|
+
toString$3(notARegExp(searchString)),
|
|
7440
7887
|
arguments.length > 1 ? arguments[1] : undefined
|
|
7441
7888
|
);
|
|
7442
7889
|
}
|
|
@@ -8804,7 +9251,7 @@ const dimensionConfig = [{
|
|
|
8804
9251
|
reversed: false,
|
|
8805
9252
|
iconType: 'IconLevels'
|
|
8806
9253
|
}];
|
|
8807
|
-
const getDimensionIcon = iconType => {
|
|
9254
|
+
const getDimensionIcon$1 = iconType => {
|
|
8808
9255
|
if (iconType === 'IconEnsemble') {
|
|
8809
9256
|
return Equalizer;
|
|
8810
9257
|
}
|
|
@@ -8850,7 +9297,7 @@ const DimensionSelectButton = ({
|
|
|
8850
9297
|
isActive: _isActive = false
|
|
8851
9298
|
}) => {
|
|
8852
9299
|
const dimConfig = dimensionConfig.find(cnf => cnf.name === dimension);
|
|
8853
|
-
const Icon = getDimensionIcon(dimConfig && dimConfig.iconType || 'IconLevels');
|
|
9300
|
+
const Icon = getDimensionIcon$1(dimConfig && dimConfig.iconType || 'IconLevels');
|
|
8854
9301
|
const title = `Show ${dimConfig ? dimConfig.label.toLowerCase() : dimension.toLowerCase()}`;
|
|
8855
9302
|
return /*#__PURE__*/React.createElement(MapControlButton, {
|
|
8856
9303
|
title: title,
|
|
@@ -9062,6 +9509,713 @@ const MapDimensionSelect = ({
|
|
|
9062
9509
|
}));
|
|
9063
9510
|
};
|
|
9064
9511
|
|
|
9512
|
+
const LayerInfoButton = _a => {
|
|
9513
|
+
var {
|
|
9514
|
+
isActive,
|
|
9515
|
+
onClick
|
|
9516
|
+
} = _a,
|
|
9517
|
+
props = __rest(_a, ["isActive", "onClick"]);
|
|
9518
|
+
return /*#__PURE__*/React__default.createElement(CustomIconButton, Object.assign({
|
|
9519
|
+
variant: "flat",
|
|
9520
|
+
isSelected: isActive,
|
|
9521
|
+
onClick: onClick,
|
|
9522
|
+
id: "layerInfoButton",
|
|
9523
|
+
"data-testid": "layerInfoButton",
|
|
9524
|
+
"aria-label": "layer info",
|
|
9525
|
+
className: "layerInfoButton"
|
|
9526
|
+
}, props), /*#__PURE__*/React__default.createElement(Info, null));
|
|
9527
|
+
};
|
|
9528
|
+
|
|
9529
|
+
const textStyle = {
|
|
9530
|
+
lineHeight: '20px',
|
|
9531
|
+
letterSpacing: '0.25px'
|
|
9532
|
+
};
|
|
9533
|
+
const textStyleWithMargin = Object.assign(Object.assign({}, textStyle), {
|
|
9534
|
+
marginBottom: 1
|
|
9535
|
+
});
|
|
9536
|
+
const LayerInfoText = ({
|
|
9537
|
+
label,
|
|
9538
|
+
value
|
|
9539
|
+
}) => {
|
|
9540
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
9541
|
+
variant: "subtitle2",
|
|
9542
|
+
sx: textStyle
|
|
9543
|
+
}, label), /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
9544
|
+
variant: "body2",
|
|
9545
|
+
sx: textStyleWithMargin
|
|
9546
|
+
}, value));
|
|
9547
|
+
};
|
|
9548
|
+
|
|
9549
|
+
const valueStyle = Object.assign(Object.assign({}, textStyle), {
|
|
9550
|
+
overflowWrap: 'break-word'
|
|
9551
|
+
});
|
|
9552
|
+
const LayerInfoList = ({
|
|
9553
|
+
label,
|
|
9554
|
+
list
|
|
9555
|
+
}) => {
|
|
9556
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
9557
|
+
variant: "subtitle2",
|
|
9558
|
+
sx: textStyle
|
|
9559
|
+
}, label), list.length === 0 ? ( /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
9560
|
+
variant: "body2",
|
|
9561
|
+
sx: textStyleWithMargin
|
|
9562
|
+
}, "-")) : ( /*#__PURE__*/React__default.createElement(Grid$1, {
|
|
9563
|
+
container: true,
|
|
9564
|
+
direction: "column"
|
|
9565
|
+
}, list.map(item => ( /*#__PURE__*/React__default.createElement("div", {
|
|
9566
|
+
key: item.label
|
|
9567
|
+
}, /*#__PURE__*/React__default.createElement(Grid$1, {
|
|
9568
|
+
item: true,
|
|
9569
|
+
container: true,
|
|
9570
|
+
direction: "row"
|
|
9571
|
+
}, item.icon, /*#__PURE__*/React__default.createElement(Grid$1, {
|
|
9572
|
+
item: true,
|
|
9573
|
+
sx: {
|
|
9574
|
+
marginLeft: '10px'
|
|
9575
|
+
}
|
|
9576
|
+
}, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
9577
|
+
variant: "body2",
|
|
9578
|
+
sx: textStyle
|
|
9579
|
+
}, item.label, ":"))), /*#__PURE__*/React__default.createElement(Grid$1, {
|
|
9580
|
+
item: true,
|
|
9581
|
+
container: true,
|
|
9582
|
+
direction: "row",
|
|
9583
|
+
sx: {
|
|
9584
|
+
marginBottom: 1,
|
|
9585
|
+
paddingLeft: '34px'
|
|
9586
|
+
}
|
|
9587
|
+
}, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
9588
|
+
variant: "body2",
|
|
9589
|
+
sx: valueStyle
|
|
9590
|
+
}, item.value))))))));
|
|
9591
|
+
};
|
|
9592
|
+
|
|
9593
|
+
/* *
|
|
9594
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9595
|
+
* you may not use this file except in compliance with the License.
|
|
9596
|
+
* You may obtain a copy of the License at
|
|
9597
|
+
*
|
|
9598
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9599
|
+
*
|
|
9600
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
9601
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
9602
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9603
|
+
* See the License for the specific language governing permissions and
|
|
9604
|
+
* limitations under the License.
|
|
9605
|
+
*
|
|
9606
|
+
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
9607
|
+
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
9608
|
+
* */
|
|
9609
|
+
const LayerInfoLegend = ({
|
|
9610
|
+
title,
|
|
9611
|
+
name,
|
|
9612
|
+
dimensions,
|
|
9613
|
+
legendURL
|
|
9614
|
+
}) => {
|
|
9615
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
9616
|
+
variant: "subtitle2",
|
|
9617
|
+
sx: textStyleWithMargin
|
|
9618
|
+
}, "Legend"), /*#__PURE__*/React__default.createElement(LegendLayout, {
|
|
9619
|
+
title: title,
|
|
9620
|
+
name: name,
|
|
9621
|
+
dimensions: dimensions
|
|
9622
|
+
}, legendURL ? /*#__PURE__*/React__default.createElement("img", {
|
|
9623
|
+
alt: title,
|
|
9624
|
+
src: legendURL
|
|
9625
|
+
}) : '-'));
|
|
9626
|
+
};
|
|
9627
|
+
|
|
9628
|
+
var fails$4 = fails$q;
|
|
9629
|
+
var global$3 = global$o;
|
|
9630
|
+
|
|
9631
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
9632
|
+
var $RegExp$2 = global$3.RegExp;
|
|
9633
|
+
|
|
9634
|
+
var UNSUPPORTED_Y$2 = fails$4(function () {
|
|
9635
|
+
var re = $RegExp$2('a', 'y');
|
|
9636
|
+
re.lastIndex = 2;
|
|
9637
|
+
return re.exec('abcd') !== null;
|
|
9638
|
+
});
|
|
9639
|
+
|
|
9640
|
+
// UC Browser bug
|
|
9641
|
+
// https://github.com/zloirock/core-js/issues/1008
|
|
9642
|
+
var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$4(function () {
|
|
9643
|
+
return !$RegExp$2('a', 'y').sticky;
|
|
9644
|
+
});
|
|
9645
|
+
|
|
9646
|
+
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$4(function () {
|
|
9647
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
9648
|
+
var re = $RegExp$2('^r', 'gy');
|
|
9649
|
+
re.lastIndex = 2;
|
|
9650
|
+
return re.exec('str') !== null;
|
|
9651
|
+
});
|
|
9652
|
+
|
|
9653
|
+
var regexpStickyHelpers = {
|
|
9654
|
+
BROKEN_CARET: BROKEN_CARET,
|
|
9655
|
+
MISSED_STICKY: MISSED_STICKY,
|
|
9656
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$2
|
|
9657
|
+
};
|
|
9658
|
+
|
|
9659
|
+
var fails$3 = fails$q;
|
|
9660
|
+
var global$2 = global$o;
|
|
9661
|
+
|
|
9662
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
9663
|
+
var $RegExp$1 = global$2.RegExp;
|
|
9664
|
+
|
|
9665
|
+
var regexpUnsupportedDotAll = fails$3(function () {
|
|
9666
|
+
var re = $RegExp$1('.', 's');
|
|
9667
|
+
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
9668
|
+
});
|
|
9669
|
+
|
|
9670
|
+
var fails$2 = fails$q;
|
|
9671
|
+
var global$1 = global$o;
|
|
9672
|
+
|
|
9673
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
9674
|
+
var $RegExp = global$1.RegExp;
|
|
9675
|
+
|
|
9676
|
+
var regexpUnsupportedNcg = fails$2(function () {
|
|
9677
|
+
var re = $RegExp('(?<a>b)', 'g');
|
|
9678
|
+
return re.exec('b').groups.a !== 'b' ||
|
|
9679
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
|
9680
|
+
});
|
|
9681
|
+
|
|
9682
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
9683
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
9684
|
+
var call$3 = functionCall;
|
|
9685
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
9686
|
+
var toString$2 = toString$9;
|
|
9687
|
+
var regexpFlags = regexpFlags$1;
|
|
9688
|
+
var stickyHelpers$1 = regexpStickyHelpers;
|
|
9689
|
+
var shared = shared$4.exports;
|
|
9690
|
+
var create = objectCreate;
|
|
9691
|
+
var getInternalState = internalState.get;
|
|
9692
|
+
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
9693
|
+
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
9694
|
+
|
|
9695
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
9696
|
+
var nativeExec = RegExp.prototype.exec;
|
|
9697
|
+
var patchedExec = nativeExec;
|
|
9698
|
+
var charAt$2 = uncurryThis$2(''.charAt);
|
|
9699
|
+
var indexOf = uncurryThis$2(''.indexOf);
|
|
9700
|
+
var replace = uncurryThis$2(''.replace);
|
|
9701
|
+
var stringSlice$2 = uncurryThis$2(''.slice);
|
|
9702
|
+
|
|
9703
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
9704
|
+
var re1 = /a/;
|
|
9705
|
+
var re2 = /b*/g;
|
|
9706
|
+
call$3(nativeExec, re1, 'a');
|
|
9707
|
+
call$3(nativeExec, re2, 'a');
|
|
9708
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
9709
|
+
})();
|
|
9710
|
+
|
|
9711
|
+
var UNSUPPORTED_Y$1 = stickyHelpers$1.BROKEN_CARET;
|
|
9712
|
+
|
|
9713
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
9714
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
9715
|
+
|
|
9716
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
9717
|
+
|
|
9718
|
+
if (PATCH) {
|
|
9719
|
+
patchedExec = function exec(string) {
|
|
9720
|
+
var re = this;
|
|
9721
|
+
var state = getInternalState(re);
|
|
9722
|
+
var str = toString$2(string);
|
|
9723
|
+
var raw = state.raw;
|
|
9724
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
|
9725
|
+
|
|
9726
|
+
if (raw) {
|
|
9727
|
+
raw.lastIndex = re.lastIndex;
|
|
9728
|
+
result = call$3(patchedExec, raw, str);
|
|
9729
|
+
re.lastIndex = raw.lastIndex;
|
|
9730
|
+
return result;
|
|
9731
|
+
}
|
|
9732
|
+
|
|
9733
|
+
var groups = state.groups;
|
|
9734
|
+
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
|
9735
|
+
var flags = call$3(regexpFlags, re);
|
|
9736
|
+
var source = re.source;
|
|
9737
|
+
var charsAdded = 0;
|
|
9738
|
+
var strCopy = str;
|
|
9739
|
+
|
|
9740
|
+
if (sticky) {
|
|
9741
|
+
flags = replace(flags, 'y', '');
|
|
9742
|
+
if (indexOf(flags, 'g') === -1) {
|
|
9743
|
+
flags += 'g';
|
|
9744
|
+
}
|
|
9745
|
+
|
|
9746
|
+
strCopy = stringSlice$2(str, re.lastIndex);
|
|
9747
|
+
// Support anchored sticky behavior.
|
|
9748
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$2(str, re.lastIndex - 1) !== '\n')) {
|
|
9749
|
+
source = '(?: ' + source + ')';
|
|
9750
|
+
strCopy = ' ' + strCopy;
|
|
9751
|
+
charsAdded++;
|
|
9752
|
+
}
|
|
9753
|
+
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
9754
|
+
// simulate the 'y' flag.
|
|
9755
|
+
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
9756
|
+
}
|
|
9757
|
+
|
|
9758
|
+
if (NPCG_INCLUDED) {
|
|
9759
|
+
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
9760
|
+
}
|
|
9761
|
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
9762
|
+
|
|
9763
|
+
match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
|
|
9764
|
+
|
|
9765
|
+
if (sticky) {
|
|
9766
|
+
if (match) {
|
|
9767
|
+
match.input = stringSlice$2(match.input, charsAdded);
|
|
9768
|
+
match[0] = stringSlice$2(match[0], charsAdded);
|
|
9769
|
+
match.index = re.lastIndex;
|
|
9770
|
+
re.lastIndex += match[0].length;
|
|
9771
|
+
} else re.lastIndex = 0;
|
|
9772
|
+
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
9773
|
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
9774
|
+
}
|
|
9775
|
+
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
9776
|
+
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
9777
|
+
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
9778
|
+
call$3(nativeReplace, match[0], reCopy, function () {
|
|
9779
|
+
for (i = 1; i < arguments.length - 2; i++) {
|
|
9780
|
+
if (arguments[i] === undefined) match[i] = undefined;
|
|
9781
|
+
}
|
|
9782
|
+
});
|
|
9783
|
+
}
|
|
9784
|
+
|
|
9785
|
+
if (match && groups) {
|
|
9786
|
+
match.groups = object = create(null);
|
|
9787
|
+
for (i = 0; i < groups.length; i++) {
|
|
9788
|
+
group = groups[i];
|
|
9789
|
+
object[group[0]] = match[group[1]];
|
|
9790
|
+
}
|
|
9791
|
+
}
|
|
9792
|
+
|
|
9793
|
+
return match;
|
|
9794
|
+
};
|
|
9795
|
+
}
|
|
9796
|
+
|
|
9797
|
+
var regexpExec$2 = patchedExec;
|
|
9798
|
+
|
|
9799
|
+
var $ = _export;
|
|
9800
|
+
var exec = regexpExec$2;
|
|
9801
|
+
|
|
9802
|
+
// `RegExp.prototype.exec` method
|
|
9803
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
9804
|
+
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
9805
|
+
exec: exec
|
|
9806
|
+
});
|
|
9807
|
+
|
|
9808
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
9809
|
+
|
|
9810
|
+
var call$2 = functionCall;
|
|
9811
|
+
var defineBuiltIn = defineBuiltIn$7;
|
|
9812
|
+
var regexpExec$1 = regexpExec$2;
|
|
9813
|
+
var fails$1 = fails$q;
|
|
9814
|
+
var wellKnownSymbol = wellKnownSymbol$h;
|
|
9815
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$8;
|
|
9816
|
+
|
|
9817
|
+
var SPECIES = wellKnownSymbol('species');
|
|
9818
|
+
var RegExpPrototype = RegExp.prototype;
|
|
9819
|
+
|
|
9820
|
+
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
9821
|
+
var SYMBOL = wellKnownSymbol(KEY);
|
|
9822
|
+
|
|
9823
|
+
var DELEGATES_TO_SYMBOL = !fails$1(function () {
|
|
9824
|
+
// String methods call symbol-named RegExp methods
|
|
9825
|
+
var O = {};
|
|
9826
|
+
O[SYMBOL] = function () { return 7; };
|
|
9827
|
+
return ''[KEY](O) !== 7;
|
|
9828
|
+
});
|
|
9829
|
+
|
|
9830
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
|
|
9831
|
+
// Symbol-named RegExp methods call .exec
|
|
9832
|
+
var execCalled = false;
|
|
9833
|
+
var re = /a/;
|
|
9834
|
+
|
|
9835
|
+
if (KEY === 'split') {
|
|
9836
|
+
// We can't use real regex here since it causes deoptimization
|
|
9837
|
+
// and serious performance degradation in V8
|
|
9838
|
+
// https://github.com/zloirock/core-js/issues/306
|
|
9839
|
+
re = {};
|
|
9840
|
+
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
9841
|
+
// a new one. We need to return the patched regex when creating the new one.
|
|
9842
|
+
re.constructor = {};
|
|
9843
|
+
re.constructor[SPECIES] = function () { return re; };
|
|
9844
|
+
re.flags = '';
|
|
9845
|
+
re[SYMBOL] = /./[SYMBOL];
|
|
9846
|
+
}
|
|
9847
|
+
|
|
9848
|
+
re.exec = function () {
|
|
9849
|
+
execCalled = true;
|
|
9850
|
+
return null;
|
|
9851
|
+
};
|
|
9852
|
+
|
|
9853
|
+
re[SYMBOL]('');
|
|
9854
|
+
return !execCalled;
|
|
9855
|
+
});
|
|
9856
|
+
|
|
9857
|
+
if (
|
|
9858
|
+
!DELEGATES_TO_SYMBOL ||
|
|
9859
|
+
!DELEGATES_TO_EXEC ||
|
|
9860
|
+
FORCED
|
|
9861
|
+
) {
|
|
9862
|
+
var nativeRegExpMethod = /./[SYMBOL];
|
|
9863
|
+
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
9864
|
+
var $exec = regexp.exec;
|
|
9865
|
+
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
9866
|
+
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
9867
|
+
// The native String method already delegates to @@method (this
|
|
9868
|
+
// polyfilled function), leasing to infinite recursion.
|
|
9869
|
+
// We avoid it by directly calling the native @@method method.
|
|
9870
|
+
return { done: true, value: call$2(nativeRegExpMethod, regexp, str, arg2) };
|
|
9871
|
+
}
|
|
9872
|
+
return { done: true, value: call$2(nativeMethod, str, regexp, arg2) };
|
|
9873
|
+
}
|
|
9874
|
+
return { done: false };
|
|
9875
|
+
});
|
|
9876
|
+
|
|
9877
|
+
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
9878
|
+
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
9879
|
+
}
|
|
9880
|
+
|
|
9881
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
9882
|
+
};
|
|
9883
|
+
|
|
9884
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
9885
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$3;
|
|
9886
|
+
var toString$1 = toString$9;
|
|
9887
|
+
var requireObjectCoercible$1 = requireObjectCoercible$6;
|
|
9888
|
+
|
|
9889
|
+
var charAt$1 = uncurryThis$1(''.charAt);
|
|
9890
|
+
var charCodeAt = uncurryThis$1(''.charCodeAt);
|
|
9891
|
+
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
9892
|
+
|
|
9893
|
+
var createMethod = function (CONVERT_TO_STRING) {
|
|
9894
|
+
return function ($this, pos) {
|
|
9895
|
+
var S = toString$1(requireObjectCoercible$1($this));
|
|
9896
|
+
var position = toIntegerOrInfinity(pos);
|
|
9897
|
+
var size = S.length;
|
|
9898
|
+
var first, second;
|
|
9899
|
+
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
9900
|
+
first = charCodeAt(S, position);
|
|
9901
|
+
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
9902
|
+
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
9903
|
+
? CONVERT_TO_STRING
|
|
9904
|
+
? charAt$1(S, position)
|
|
9905
|
+
: first
|
|
9906
|
+
: CONVERT_TO_STRING
|
|
9907
|
+
? stringSlice$1(S, position, position + 2)
|
|
9908
|
+
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
9909
|
+
};
|
|
9910
|
+
};
|
|
9911
|
+
|
|
9912
|
+
var stringMultibyte = {
|
|
9913
|
+
// `String.prototype.codePointAt` method
|
|
9914
|
+
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
9915
|
+
codeAt: createMethod(false),
|
|
9916
|
+
// `String.prototype.at` method
|
|
9917
|
+
// https://github.com/mathiasbynens/String.prototype.at
|
|
9918
|
+
charAt: createMethod(true)
|
|
9919
|
+
};
|
|
9920
|
+
|
|
9921
|
+
var charAt = stringMultibyte.charAt;
|
|
9922
|
+
|
|
9923
|
+
// `AdvanceStringIndex` abstract operation
|
|
9924
|
+
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
9925
|
+
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
9926
|
+
return index + (unicode ? charAt(S, index).length : 1);
|
|
9927
|
+
};
|
|
9928
|
+
|
|
9929
|
+
var call$1 = functionCall;
|
|
9930
|
+
var anObject$1 = anObject$e;
|
|
9931
|
+
var isCallable = isCallable$n;
|
|
9932
|
+
var classof = classofRaw$2;
|
|
9933
|
+
var regexpExec = regexpExec$2;
|
|
9934
|
+
|
|
9935
|
+
var $TypeError = TypeError;
|
|
9936
|
+
|
|
9937
|
+
// `RegExpExec` abstract operation
|
|
9938
|
+
// https://tc39.es/ecma262/#sec-regexpexec
|
|
9939
|
+
var regexpExecAbstract = function (R, S) {
|
|
9940
|
+
var exec = R.exec;
|
|
9941
|
+
if (isCallable(exec)) {
|
|
9942
|
+
var result = call$1(exec, R, S);
|
|
9943
|
+
if (result !== null) anObject$1(result);
|
|
9944
|
+
return result;
|
|
9945
|
+
}
|
|
9946
|
+
if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
|
|
9947
|
+
throw new $TypeError('RegExp#exec called on incompatible receiver');
|
|
9948
|
+
};
|
|
9949
|
+
|
|
9950
|
+
var call = functionCall;
|
|
9951
|
+
var uncurryThis = functionUncurryThis;
|
|
9952
|
+
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
9953
|
+
var anObject = anObject$e;
|
|
9954
|
+
var isNullOrUndefined = isNullOrUndefined$5;
|
|
9955
|
+
var requireObjectCoercible = requireObjectCoercible$6;
|
|
9956
|
+
var speciesConstructor = speciesConstructor$2;
|
|
9957
|
+
var advanceStringIndex = advanceStringIndex$1;
|
|
9958
|
+
var toLength = toLength$2;
|
|
9959
|
+
var toString = toString$9;
|
|
9960
|
+
var getMethod = getMethod$4;
|
|
9961
|
+
var regExpExec = regexpExecAbstract;
|
|
9962
|
+
var stickyHelpers = regexpStickyHelpers;
|
|
9963
|
+
var fails = fails$q;
|
|
9964
|
+
|
|
9965
|
+
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
|
9966
|
+
var MAX_UINT32 = 0xFFFFFFFF;
|
|
9967
|
+
var min = Math.min;
|
|
9968
|
+
var push = uncurryThis([].push);
|
|
9969
|
+
var stringSlice = uncurryThis(''.slice);
|
|
9970
|
+
|
|
9971
|
+
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
9972
|
+
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
|
9973
|
+
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
|
9974
|
+
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
9975
|
+
var re = /(?:)/;
|
|
9976
|
+
var originalExec = re.exec;
|
|
9977
|
+
re.exec = function () { return originalExec.apply(this, arguments); };
|
|
9978
|
+
var result = 'ab'.split(re);
|
|
9979
|
+
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
|
9980
|
+
});
|
|
9981
|
+
|
|
9982
|
+
var BUGGY = 'abbc'.split(/(b)*/)[1] === 'c' ||
|
|
9983
|
+
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
9984
|
+
'test'.split(/(?:)/, -1).length !== 4 ||
|
|
9985
|
+
'ab'.split(/(?:ab)*/).length !== 2 ||
|
|
9986
|
+
'.'.split(/(.?)(.?)/).length !== 4 ||
|
|
9987
|
+
// eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
|
9988
|
+
'.'.split(/()()/).length > 1 ||
|
|
9989
|
+
''.split(/.?/).length;
|
|
9990
|
+
|
|
9991
|
+
// @@split logic
|
|
9992
|
+
fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
|
|
9993
|
+
var internalSplit = '0'.split(undefined, 0).length ? function (separator, limit) {
|
|
9994
|
+
return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit);
|
|
9995
|
+
} : nativeSplit;
|
|
9996
|
+
|
|
9997
|
+
return [
|
|
9998
|
+
// `String.prototype.split` method
|
|
9999
|
+
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
10000
|
+
function split(separator, limit) {
|
|
10001
|
+
var O = requireObjectCoercible(this);
|
|
10002
|
+
var splitter = isNullOrUndefined(separator) ? undefined : getMethod(separator, SPLIT);
|
|
10003
|
+
return splitter
|
|
10004
|
+
? call(splitter, separator, O, limit)
|
|
10005
|
+
: call(internalSplit, toString(O), separator, limit);
|
|
10006
|
+
},
|
|
10007
|
+
// `RegExp.prototype[@@split]` method
|
|
10008
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
10009
|
+
//
|
|
10010
|
+
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
10011
|
+
// the 'y' flag.
|
|
10012
|
+
function (string, limit) {
|
|
10013
|
+
var rx = anObject(this);
|
|
10014
|
+
var S = toString(string);
|
|
10015
|
+
|
|
10016
|
+
if (!BUGGY) {
|
|
10017
|
+
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
|
10018
|
+
if (res.done) return res.value;
|
|
10019
|
+
}
|
|
10020
|
+
|
|
10021
|
+
var C = speciesConstructor(rx, RegExp);
|
|
10022
|
+
var unicodeMatching = rx.unicode;
|
|
10023
|
+
var flags = (rx.ignoreCase ? 'i' : '') +
|
|
10024
|
+
(rx.multiline ? 'm' : '') +
|
|
10025
|
+
(rx.unicode ? 'u' : '') +
|
|
10026
|
+
(UNSUPPORTED_Y ? 'g' : 'y');
|
|
10027
|
+
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
10028
|
+
// simulate the 'y' flag.
|
|
10029
|
+
var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
|
|
10030
|
+
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
10031
|
+
if (lim === 0) return [];
|
|
10032
|
+
if (S.length === 0) return regExpExec(splitter, S) === null ? [S] : [];
|
|
10033
|
+
var p = 0;
|
|
10034
|
+
var q = 0;
|
|
10035
|
+
var A = [];
|
|
10036
|
+
while (q < S.length) {
|
|
10037
|
+
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
|
|
10038
|
+
var z = regExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S);
|
|
10039
|
+
var e;
|
|
10040
|
+
if (
|
|
10041
|
+
z === null ||
|
|
10042
|
+
(e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
|
|
10043
|
+
) {
|
|
10044
|
+
q = advanceStringIndex(S, q, unicodeMatching);
|
|
10045
|
+
} else {
|
|
10046
|
+
push(A, stringSlice(S, p, q));
|
|
10047
|
+
if (A.length === lim) return A;
|
|
10048
|
+
for (var i = 1; i <= z.length - 1; i++) {
|
|
10049
|
+
push(A, z[i]);
|
|
10050
|
+
if (A.length === lim) return A;
|
|
10051
|
+
}
|
|
10052
|
+
q = p = e;
|
|
10053
|
+
}
|
|
10054
|
+
}
|
|
10055
|
+
push(A, stringSlice(S, p));
|
|
10056
|
+
return A;
|
|
10057
|
+
}
|
|
10058
|
+
];
|
|
10059
|
+
}, BUGGY || !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
|
|
10060
|
+
|
|
10061
|
+
const getLayerStyles = layer => {
|
|
10062
|
+
if (!layer.styles) {
|
|
10063
|
+
return '-';
|
|
10064
|
+
}
|
|
10065
|
+
const styles = layer.styles.map(style => style.title);
|
|
10066
|
+
if (!styles.length) {
|
|
10067
|
+
return '-';
|
|
10068
|
+
}
|
|
10069
|
+
return styles.join(', ');
|
|
10070
|
+
};
|
|
10071
|
+
const getDimensionValue = (name, dimensions) => {
|
|
10072
|
+
const dimension = dimensions === null || dimensions === void 0 ? void 0 : dimensions.find(dimension => dimension.name.toLowerCase() === name.toLowerCase());
|
|
10073
|
+
if (!dimension || !dimension.values) {
|
|
10074
|
+
return null;
|
|
10075
|
+
}
|
|
10076
|
+
const dimName = dimension.name.toLowerCase();
|
|
10077
|
+
const breakAt = dimName === 'time' ? '/' : ',';
|
|
10078
|
+
const includeUnit = dimName !== 'time' && dimName !== 'reference_time';
|
|
10079
|
+
const dimValue = dimension.values.split(breakAt).join(`${breakAt} `);
|
|
10080
|
+
if (includeUnit) {
|
|
10081
|
+
return `${dimValue} ${dimension.units}`;
|
|
10082
|
+
}
|
|
10083
|
+
return dimValue;
|
|
10084
|
+
};
|
|
10085
|
+
const getLayerBbox = layer => {
|
|
10086
|
+
return layer.geographicBoundingBox ? `west ${layer.geographicBoundingBox.west}, east ${layer.geographicBoundingBox.east}, north ${layer.geographicBoundingBox.north}, south ${layer.geographicBoundingBox.south}` : '-';
|
|
10087
|
+
};
|
|
10088
|
+
const getDimensionIcon = (name, dimensions) => {
|
|
10089
|
+
const dimension = dimensions === null || dimensions === void 0 ? void 0 : dimensions.find(dimension => dimension.name.toLowerCase() === name.toLowerCase());
|
|
10090
|
+
if (!dimension) {
|
|
10091
|
+
return null;
|
|
10092
|
+
}
|
|
10093
|
+
switch (dimension.name.toLowerCase()) {
|
|
10094
|
+
case 'time':
|
|
10095
|
+
return /*#__PURE__*/React__default.createElement(DimensionsTime, null);
|
|
10096
|
+
case 'reference_time':
|
|
10097
|
+
return /*#__PURE__*/React__default.createElement(DimensionsRefTime, null);
|
|
10098
|
+
case 'elevation':
|
|
10099
|
+
return /*#__PURE__*/React__default.createElement(DimensionsElevation, null);
|
|
10100
|
+
default:
|
|
10101
|
+
return /*#__PURE__*/React__default.createElement(DimensionsOther, null);
|
|
10102
|
+
}
|
|
10103
|
+
};
|
|
10104
|
+
const getDimensionLabel = name => {
|
|
10105
|
+
const dimName = name.toLowerCase().split('_').join(' ');
|
|
10106
|
+
return dimName.charAt(0).toUpperCase() + dimName.slice(1);
|
|
10107
|
+
};
|
|
10108
|
+
const getDimensionsList = dimensions => {
|
|
10109
|
+
const result = [];
|
|
10110
|
+
dimensions === null || dimensions === void 0 ? void 0 : dimensions.forEach(({
|
|
10111
|
+
name
|
|
10112
|
+
}) => {
|
|
10113
|
+
const value = getDimensionValue(name, dimensions);
|
|
10114
|
+
if (!value) {
|
|
10115
|
+
return;
|
|
10116
|
+
}
|
|
10117
|
+
const icon = getDimensionIcon(name, dimensions);
|
|
10118
|
+
const label = getDimensionLabel(name);
|
|
10119
|
+
result.push({
|
|
10120
|
+
label,
|
|
10121
|
+
value,
|
|
10122
|
+
icon
|
|
10123
|
+
});
|
|
10124
|
+
});
|
|
10125
|
+
// sort alphabetically so other dimensions are sorted
|
|
10126
|
+
result.sort((a, b) => a.label.localeCompare(b.label));
|
|
10127
|
+
// sort by fixed order
|
|
10128
|
+
const preferredOrder = ['Time', 'Reference time', 'Elevation'];
|
|
10129
|
+
// using reverse ordering to make sure the other dimensions come last
|
|
10130
|
+
preferredOrder.reverse();
|
|
10131
|
+
result.sort((a, b) => preferredOrder.indexOf(b.label) - preferredOrder.indexOf(a.label));
|
|
10132
|
+
return result;
|
|
10133
|
+
};
|
|
10134
|
+
|
|
10135
|
+
/* *
|
|
10136
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10137
|
+
* you may not use this file except in compliance with the License.
|
|
10138
|
+
* You may obtain a copy of the License at
|
|
10139
|
+
*
|
|
10140
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10141
|
+
*
|
|
10142
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
10143
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
10144
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10145
|
+
* See the License for the specific language governing permissions and
|
|
10146
|
+
* limitations under the License.
|
|
10147
|
+
*
|
|
10148
|
+
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
10149
|
+
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
10150
|
+
* */
|
|
10151
|
+
const LayerInfoDialog = ({
|
|
10152
|
+
onClose,
|
|
10153
|
+
layer,
|
|
10154
|
+
serviceName,
|
|
10155
|
+
isOpen,
|
|
10156
|
+
onMouseDown: _onMouseDown = () => {},
|
|
10157
|
+
order: _order = 0,
|
|
10158
|
+
source: _source = 'app',
|
|
10159
|
+
dialogHeight
|
|
10160
|
+
}) => {
|
|
10161
|
+
var _a, _b, _c;
|
|
10162
|
+
const styles = getLayerStyles(layer);
|
|
10163
|
+
const bbox = getLayerBbox(layer);
|
|
10164
|
+
const dimensions = getDimensionsList(layer.dimensions);
|
|
10165
|
+
return /*#__PURE__*/React__default.createElement(ToolContainerDraggable, {
|
|
10166
|
+
onClose: onClose,
|
|
10167
|
+
startSize: {
|
|
10168
|
+
width: 288,
|
|
10169
|
+
height: dialogHeight || 650
|
|
10170
|
+
},
|
|
10171
|
+
startPosition: {
|
|
10172
|
+
top: 150,
|
|
10173
|
+
left: 900
|
|
10174
|
+
},
|
|
10175
|
+
title: "Layer Info",
|
|
10176
|
+
isOpen: isOpen,
|
|
10177
|
+
onMouseDown: _onMouseDown,
|
|
10178
|
+
order: _order,
|
|
10179
|
+
source: _source
|
|
10180
|
+
}, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
10181
|
+
sx: {
|
|
10182
|
+
padding: 2
|
|
10183
|
+
}
|
|
10184
|
+
}, /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10185
|
+
label: "Title",
|
|
10186
|
+
value: layer.title
|
|
10187
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10188
|
+
label: "Name",
|
|
10189
|
+
value: layer.name
|
|
10190
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10191
|
+
label: "Service",
|
|
10192
|
+
value: serviceName
|
|
10193
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10194
|
+
label: "Abstract",
|
|
10195
|
+
value: layer.abstract || '-'
|
|
10196
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoList, {
|
|
10197
|
+
label: "Dimensions",
|
|
10198
|
+
list: dimensions
|
|
10199
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10200
|
+
label: "Styles",
|
|
10201
|
+
value: styles
|
|
10202
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10203
|
+
label: "Bounding Box",
|
|
10204
|
+
value: bbox
|
|
10205
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10206
|
+
label: "Groups",
|
|
10207
|
+
value: ((_a = layer.path) === null || _a === void 0 ? void 0 : _a.join('/')) || '-'
|
|
10208
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10209
|
+
label: "Keywords",
|
|
10210
|
+
value: ((_b = layer.keywords) === null || _b === void 0 ? void 0 : _b.join(', ')) || '-'
|
|
10211
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoLegend, {
|
|
10212
|
+
title: layer.title,
|
|
10213
|
+
name: layer.name,
|
|
10214
|
+
dimensions: layer.dimensions,
|
|
10215
|
+
legendURL: ((_c = layer.styles) === null || _c === void 0 ? void 0 : _c.length) ? layer.styles[0].legendURL : undefined
|
|
10216
|
+
})));
|
|
10217
|
+
};
|
|
10218
|
+
|
|
9065
10219
|
/* *
|
|
9066
10220
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9067
10221
|
* you may not use this file except in compliance with the License.
|
|
@@ -9622,4 +10776,4 @@ var publicLayers = /*#__PURE__*/Object.freeze({
|
|
|
9622
10776
|
msgNaturalEUMETSAT: msgNaturalEUMETSAT
|
|
9623
10777
|
});
|
|
9624
10778
|
|
|
9625
|
-
export { DRAWMODE, DimensionSelectButton, DimensionSelectDialog, DimensionSelectSlider, EDITMODE, EditModeButton as EditModeButtonField, FeatureLayers, GeoJSONTextField, IntersectionSelect, Legend, LegendDialog, LegendLayout, MapControlButton, MapControls, MapDimensionSelect, MapDrawContainer, MapTime, MapView, MapViewLayer, MapWarningProperties, NEW_FEATURE_CREATED, NEW_LINESTRING_CREATED, NEW_POINT_CREATED, ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION, ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO, ReactMapView, ReactMapViewLayer, SelectField, StoryLayoutGrid, ZoomControls, addFeatureProperties, addGeoJSONProperties, addSelectionTypeToGeoJSON, basicExampleDrawOptions, basicExampleMultipleShapeDrawOptions, basicExampleMultipleShapeWithValuesDrawOptions, checkHoverFeatures, createInterSections, currentlySupportedDrawModes, defaultBox, defaultDelete, defaultGeoJSONStyleProperties, defaultIntersectionStyleProperties, defaultLayers, defaultModes, defaultPoint, defaultPolygon, defaultTimeFormat, dimensionConfig, distance, drawPolyStoryStyles, emptyGeoJSON, endToolExampleConfig, exampleIntersectionOptions, exampleIntersectionWithShapeOptions, exampleIntersections, exampleIntersectionsMultiDrawTool, featureBox, featureMultiPoint, featurePoint, featurePolygon, fillOptions, firSelectionType, formatTime, getDoubleControlToolIcon, getDrawFunctionFromStore, getFeatureCollection, getFirTitle, getGeoJSONPropertyValue, getGeoJson, getIcon, getIntersectionToolIcon, getLastEmptyFeatureIndex, getTimeDimension, getToolIcon, intersectPointGeoJSONS, intersectPolygonGeoJSONS, intersectionFeatureBE, intersectionFeatureNL, isGeoJSONFeatureCreatedByTool, isPointFeatureCollection, lineString, marksByDimension, moveFeature, opacityOptions, publicLayers, publicServices, registerDrawFunction, rewindGeometry, simpleBoxGeoJSON, simpleBoxGeoJSONWrongOrder, simpleFlightRouteLineStringGeoJSON, simpleFlightRoutePointsGeoJSON, simpleLineStringGeoJSON, simpleMultiPolygon, simplePointsGeojson, simplePolygonGeoJSON, simpleSmallLineStringGeoJSON, startToolExampleConfig, strokeWidthOptions, updateEditModeButtonsWithFir, useGeoJSON, useMapDrawTool };
|
|
10779
|
+
export { DRAWMODE, DimensionSelectButton, DimensionSelectDialog, DimensionSelectSlider, EDITMODE, EditModeButton as EditModeButtonField, FeatureLayers, GeoJSONTextField, IntersectionSelect, LayerInfoButton, LayerInfoDialog, LayerInfoLegend, LayerInfoList, LayerInfoText, Legend, LegendDialog, LegendLayout, MapControlButton, MapControls, MapDimensionSelect, MapDrawContainer, MapTime, MapView, MapViewLayer, MapWarningProperties, NEW_FEATURE_CREATED, NEW_LINESTRING_CREATED, NEW_POINT_CREATED, ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION, ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO, ReactMapView, ReactMapViewLayer, SelectField, StoryLayoutGrid, ZoomControls, addFeatureProperties, addGeoJSONProperties, addSelectionTypeToGeoJSON, basicExampleDrawOptions, basicExampleMultipleShapeDrawOptions, basicExampleMultipleShapeWithValuesDrawOptions, checkHoverFeatures, createInterSections, currentlySupportedDrawModes, defaultBox, defaultDelete, defaultGeoJSONStyleProperties, defaultIntersectionStyleProperties, defaultLayers, defaultModes, defaultPoint, defaultPolygon, defaultTimeFormat, dimensionConfig, distance, drawPolyStoryStyles, emptyGeoJSON, endToolExampleConfig, exampleIntersectionOptions, exampleIntersectionWithShapeOptions, exampleIntersections, exampleIntersectionsMultiDrawTool, featureBox, featureMultiPoint, featurePoint, featurePolygon, fillOptions, firSelectionType, formatTime, getDimensionIcon, getDimensionLabel, getDimensionValue, getDimensionsList, getDoubleControlToolIcon, getDrawFunctionFromStore, getFeatureCollection, getFirTitle, getGeoJSONPropertyValue, getGeoJson, getIcon, getIntersectionToolIcon, getLastEmptyFeatureIndex, getLayerBbox, getLayerStyles, getTimeDimension, getToolIcon, intersectPointGeoJSONS, intersectPolygonGeoJSONS, intersectionFeatureBE, intersectionFeatureNL, isGeoJSONFeatureCreatedByTool, isPointFeatureCollection, lineString, marksByDimension, moveFeature, opacityOptions, publicLayers, publicServices, registerDrawFunction, rewindGeometry, simpleBoxGeoJSON, simpleBoxGeoJSONWrongOrder, simpleFlightRouteLineStringGeoJSON, simpleFlightRoutePointsGeoJSON, simpleLineStringGeoJSON, simpleMultiPolygon, simplePointsGeojson, simplePolygonGeoJSON, simpleSmallLineStringGeoJSON, startToolExampleConfig, strokeWidthOptions, textStyle, textStyleWithMargin, updateEditModeButtonsWithFir, useGeoJSON, useMapDrawTool };
|