@opengeoweb/core 9.13.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 +966 -431
- package/package.json +1 -2
- package/src/lib/components/LayerInfoConnect/LayerInfoButtonConnect.d.ts +11 -0
- package/src/lib/components/LayerInfoConnect/LayerInfoButtonConnect.spec.d.ts +1 -0
- package/src/lib/components/LayerInfoConnect/LayerInfoDialogConnect.d.ts +2 -0
- package/src/lib/components/LayerInfoConnect/index.d.ts +2 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadDuration.d.ts +10 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadDuration.spec.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerManagerUtils.d.ts +8 -2
- package/src/lib/components/SyncGroups/SimpleTimeSlider.d.ts +2 -3
- package/src/lib/index.d.ts +1 -0
package/index.esm.js
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { useState, useCallback, useRef } from 'react';
|
|
3
|
-
import { Grid, Box, MenuItem, Typography, useTheme, Popper, Fade, LinearProgress, FormControl, InputLabel, Paper, List, ListItemButton, ListItemText, CircularProgress, ListSubheader, Dialog, DialogTitle, DialogContent, DialogContentText, TextField, InputAdornment, DialogActions, Button, ListItemIcon, Checkbox } from '@mui/material';
|
|
3
|
+
import { Grid, Box, MenuItem, Typography, useTheme, Popper, Fade, Tooltip, LinearProgress, FormControl, InputLabel, Paper, List, ListItemButton, ListItemText, CircularProgress, ListSubheader, Dialog, DialogTitle, DialogContent, DialogContentText, TextField, InputAdornment, DialogActions, Button, ListItemIcon, Checkbox } from '@mui/material';
|
|
4
4
|
import { CustomIconButton, TooltipSelect, AlertIcon, sliderHeaderStyle, CustomSlider, ToggleMenu, CustomTooltip, renderCounter, AlertBanner, CustomAccordion, calculateStartSize, ToolContainerDraggable, dateUtils, withEggs } from '@opengeoweb/shared';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { CollapseSmall, CollapseMedium, CollapseLarge, CollapseWindow, ExpandWindow, CloudLoading, Copy, None, FastForward, AutoUpdateActive, Both, Visibility, VisibilityOff, Delete, DragHandle as DragHandle$1, Cached, Add, MapAdd, WorldMapProjection, Layers, List as List$1, ExitDomain, Info, Search, MyLocation, Close, ThemeWrapper, lightTheme } from '@opengeoweb/theme';
|
|
6
|
+
import { LayerSelectButtonConnect, getUserAddedServices, layerSelectConfig } from '@opengeoweb/layer-select';
|
|
7
7
|
import { useDispatch, useSelector, connect, useStore, Provider } from 'react-redux';
|
|
8
8
|
import { ReactSortable } from 'react-sortablejs';
|
|
9
9
|
import Sortable from 'sortablejs';
|
|
10
|
-
import { layerTypes, layerUtils, layerActions, layerSelectors, serviceSelectors, serviceActions, mapSelectors, mapActions, mapEnums,
|
|
11
|
-
import {
|
|
10
|
+
import { layerTypes, layerUtils, layerActions, layerSelectors, serviceSelectors, serviceActions, mapSelectors, mapActions, mapEnums, uiSelectors, uiTypes, useSetupDialog, filterLayers, uiActions, genericActions, drawtoolSelectors, syncConstants, loadingIndicatorActions, IS_LEGEND_OPEN_BY_DEFAULT, defaultLayers, mapStoreActions, getSingularDrawtoolDrawLayerId, syncGroupsSelectors, syncGroupsSelector, coreModuleConfig, routerUtils, routerModuleConfig } from '@opengeoweb/store';
|
|
11
|
+
import { LayerInfoButton, LayerInfoDialog, MapControlButton, MapDimensionSelect, dimensionConfig, DimensionSelectDialog, DimensionSelectButton, ZoomControls, MapView, MapViewLayer, LegendDialog, registerDrawFunction, emptyGeoJSON, MapControls, publicLayers } from '@opengeoweb/webmap-react';
|
|
12
|
+
import { webmapUtils, getCapabilities, WMGetServiceFromStore, LayerType, handleDateUtilsISOString, wmServiceListener, EVENT_GETCAPABILITIES_START, EVENT_GETCAPABILITIES_READY, WMLayer } from '@opengeoweb/webmap';
|
|
12
13
|
import { Box as Box$1 } from '@mui/system';
|
|
13
14
|
import { defaultTimeSpan, TIME_SLIDER_LEGEND_HEIGHT, SpeedButton, TimeStepButton, NowButton, handleSetNowEvent, AnimationLengthButton, AnimationLength, TimeSpanButton, marks as marks$1, secondsPerPxFromCanvasWidth, getNewCenterOfFixedPointZoom, AutoUpdateButton, OptionsMenuButton, PlayButton, defaultTimeStep, BackwardForwardStepButton, TimeSliderButtons, TimeSliderCurrentTimeBox, TimeSliderLegend, TimeSlider, onsetNewDateDebounced, getFilteredTime, ControlButtons, OptionsMenu, TimeSliderClock } from '@opengeoweb/timeslider';
|
|
14
15
|
import _, { isEqual, range } from 'lodash';
|
|
15
|
-
import { MapControlButton, MapDimensionSelect, dimensionConfig, DimensionSelectDialog, DimensionSelectButton, ZoomControls, MapView, MapViewLayer, LegendDialog, registerDrawFunction, emptyGeoJSON, MapControls, publicLayers } from '@opengeoweb/webmap-react';
|
|
16
16
|
import axios from 'axios';
|
|
17
17
|
import { useDebounce } from '@opengeoweb/api';
|
|
18
18
|
import * as DOMPurify from 'dompurify';
|
|
19
|
-
import moment from 'moment';
|
|
20
19
|
import { SnackbarWrapperConnect } from '@opengeoweb/snackbar';
|
|
21
20
|
import { useNavigate } from 'react-router-dom';
|
|
22
21
|
|
|
23
22
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
24
23
|
|
|
25
|
-
var fails$
|
|
24
|
+
var fails$n = function (exec) {
|
|
26
25
|
try {
|
|
27
26
|
return !!exec();
|
|
28
27
|
} catch (error) {
|
|
@@ -30,9 +29,9 @@ var fails$l = function (exec) {
|
|
|
30
29
|
}
|
|
31
30
|
};
|
|
32
31
|
|
|
33
|
-
var fails$
|
|
32
|
+
var fails$m = fails$n;
|
|
34
33
|
|
|
35
|
-
var functionBindNative = !fails$
|
|
34
|
+
var functionBindNative = !fails$m(function () {
|
|
36
35
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
37
36
|
var test = (function () { /* empty */ }).bind();
|
|
38
37
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -42,33 +41,33 @@ var functionBindNative = !fails$k(function () {
|
|
|
42
41
|
var NATIVE_BIND$2 = functionBindNative;
|
|
43
42
|
|
|
44
43
|
var FunctionPrototype$2 = Function.prototype;
|
|
45
|
-
var call$
|
|
46
|
-
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$
|
|
44
|
+
var call$e = FunctionPrototype$2.call;
|
|
45
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$e, call$e);
|
|
47
46
|
|
|
48
47
|
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
49
48
|
return function () {
|
|
50
|
-
return call$
|
|
49
|
+
return call$e.apply(fn, arguments);
|
|
51
50
|
};
|
|
52
51
|
};
|
|
53
52
|
|
|
54
|
-
var uncurryThis$
|
|
53
|
+
var uncurryThis$k = functionUncurryThis;
|
|
55
54
|
|
|
56
|
-
var toString$
|
|
57
|
-
var stringSlice$5 = uncurryThis$
|
|
55
|
+
var toString$b = uncurryThis$k({}.toString);
|
|
56
|
+
var stringSlice$5 = uncurryThis$k(''.slice);
|
|
58
57
|
|
|
59
58
|
var classofRaw$1 = function (it) {
|
|
60
|
-
return stringSlice$5(toString$
|
|
59
|
+
return stringSlice$5(toString$b(it), 8, -1);
|
|
61
60
|
};
|
|
62
61
|
|
|
63
|
-
var uncurryThis$
|
|
64
|
-
var fails$
|
|
62
|
+
var uncurryThis$j = functionUncurryThis;
|
|
63
|
+
var fails$l = fails$n;
|
|
65
64
|
var classof$6 = classofRaw$1;
|
|
66
65
|
|
|
67
66
|
var $Object$4 = Object;
|
|
68
|
-
var split = uncurryThis$
|
|
67
|
+
var split = uncurryThis$j(''.split);
|
|
69
68
|
|
|
70
69
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
71
|
-
var indexedObject = fails$
|
|
70
|
+
var indexedObject = fails$l(function () {
|
|
72
71
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
73
72
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
74
73
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
@@ -84,12 +83,12 @@ var isNullOrUndefined$4 = function (it) {
|
|
|
84
83
|
|
|
85
84
|
var isNullOrUndefined$3 = isNullOrUndefined$4;
|
|
86
85
|
|
|
87
|
-
var $TypeError$
|
|
86
|
+
var $TypeError$c = TypeError;
|
|
88
87
|
|
|
89
88
|
// `RequireObjectCoercible` abstract operation
|
|
90
89
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
91
90
|
var requireObjectCoercible$7 = function (it) {
|
|
92
|
-
if (isNullOrUndefined$3(it)) throw new $TypeError$
|
|
91
|
+
if (isNullOrUndefined$3(it)) throw new $TypeError$c("Can't call method on " + it);
|
|
93
92
|
return it;
|
|
94
93
|
};
|
|
95
94
|
|
|
@@ -106,7 +105,7 @@ var check = function (it) {
|
|
|
106
105
|
};
|
|
107
106
|
|
|
108
107
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
109
|
-
var global$
|
|
108
|
+
var global$h =
|
|
110
109
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
111
110
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
112
111
|
check(typeof window == 'object' && window) ||
|
|
@@ -119,24 +118,24 @@ var global$g =
|
|
|
119
118
|
|
|
120
119
|
var shared$4 = {exports: {}};
|
|
121
120
|
|
|
122
|
-
var global$
|
|
121
|
+
var global$g = global$h;
|
|
123
122
|
|
|
124
123
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
125
|
-
var defineProperty$
|
|
124
|
+
var defineProperty$6 = Object.defineProperty;
|
|
126
125
|
|
|
127
126
|
var defineGlobalProperty$3 = function (key, value) {
|
|
128
127
|
try {
|
|
129
|
-
defineProperty$
|
|
128
|
+
defineProperty$6(global$g, key, { value: value, configurable: true, writable: true });
|
|
130
129
|
} catch (error) {
|
|
131
|
-
global$
|
|
130
|
+
global$g[key] = value;
|
|
132
131
|
} return value;
|
|
133
132
|
};
|
|
134
133
|
|
|
135
|
-
var global$
|
|
134
|
+
var global$f = global$h;
|
|
136
135
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
137
136
|
|
|
138
137
|
var SHARED = '__core-js_shared__';
|
|
139
|
-
var store$3 = global$
|
|
138
|
+
var store$3 = global$f[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
140
139
|
|
|
141
140
|
var sharedStore = store$3;
|
|
142
141
|
|
|
@@ -158,39 +157,39 @@ var $Object$3 = Object;
|
|
|
158
157
|
|
|
159
158
|
// `ToObject` abstract operation
|
|
160
159
|
// https://tc39.es/ecma262/#sec-toobject
|
|
161
|
-
var toObject$
|
|
160
|
+
var toObject$7 = function (argument) {
|
|
162
161
|
return $Object$3(requireObjectCoercible$5(argument));
|
|
163
162
|
};
|
|
164
163
|
|
|
165
|
-
var uncurryThis$
|
|
166
|
-
var toObject$
|
|
164
|
+
var uncurryThis$i = functionUncurryThis;
|
|
165
|
+
var toObject$6 = toObject$7;
|
|
167
166
|
|
|
168
|
-
var hasOwnProperty = uncurryThis$
|
|
167
|
+
var hasOwnProperty = uncurryThis$i({}.hasOwnProperty);
|
|
169
168
|
|
|
170
169
|
// `HasOwnProperty` abstract operation
|
|
171
170
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
172
171
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
173
172
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
174
|
-
return hasOwnProperty(toObject$
|
|
173
|
+
return hasOwnProperty(toObject$6(it), key);
|
|
175
174
|
};
|
|
176
175
|
|
|
177
|
-
var uncurryThis$
|
|
176
|
+
var uncurryThis$h = functionUncurryThis;
|
|
178
177
|
|
|
179
178
|
var id = 0;
|
|
180
179
|
var postfix = Math.random();
|
|
181
|
-
var toString$
|
|
180
|
+
var toString$a = uncurryThis$h(1.0.toString);
|
|
182
181
|
|
|
183
182
|
var uid$2 = function (key) {
|
|
184
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
183
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id + postfix, 36);
|
|
185
184
|
};
|
|
186
185
|
|
|
187
186
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
188
187
|
|
|
189
|
-
var global$
|
|
188
|
+
var global$e = global$h;
|
|
190
189
|
var userAgent$2 = engineUserAgent;
|
|
191
190
|
|
|
192
|
-
var process = global$
|
|
193
|
-
var Deno = global$
|
|
191
|
+
var process = global$e.process;
|
|
192
|
+
var Deno = global$e.Deno;
|
|
194
193
|
var versions = process && process.versions || Deno && Deno.version;
|
|
195
194
|
var v8 = versions && versions.v8;
|
|
196
195
|
var match, version;
|
|
@@ -216,13 +215,13 @@ var engineV8Version = version;
|
|
|
216
215
|
|
|
217
216
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
218
217
|
var V8_VERSION = engineV8Version;
|
|
219
|
-
var fails$
|
|
220
|
-
var global$
|
|
218
|
+
var fails$k = fails$n;
|
|
219
|
+
var global$d = global$h;
|
|
221
220
|
|
|
222
|
-
var $String$5 = global$
|
|
221
|
+
var $String$5 = global$d.String;
|
|
223
222
|
|
|
224
223
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
225
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
224
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$k(function () {
|
|
226
225
|
var symbol = Symbol('symbol detection');
|
|
227
226
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
228
227
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -240,20 +239,20 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
240
239
|
&& !Symbol.sham
|
|
241
240
|
&& typeof Symbol.iterator == 'symbol';
|
|
242
241
|
|
|
243
|
-
var global$
|
|
242
|
+
var global$c = global$h;
|
|
244
243
|
var shared$3 = shared$4.exports;
|
|
245
|
-
var hasOwn$
|
|
244
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
246
245
|
var uid$1 = uid$2;
|
|
247
246
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
248
247
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
249
248
|
|
|
250
|
-
var Symbol$1 = global$
|
|
249
|
+
var Symbol$1 = global$c.Symbol;
|
|
251
250
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
252
251
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
253
252
|
|
|
254
253
|
var wellKnownSymbol$c = function (name) {
|
|
255
|
-
if (!hasOwn$
|
|
256
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$
|
|
254
|
+
if (!hasOwn$a(WellKnownSymbolsStore, name)) {
|
|
255
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$a(Symbol$1, name)
|
|
257
256
|
? Symbol$1[name]
|
|
258
257
|
: createWellKnownSymbol('Symbol.' + name);
|
|
259
258
|
} return WellKnownSymbolsStore[name];
|
|
@@ -265,45 +264,45 @@ var documentAll = typeof document == 'object' && document.all;
|
|
|
265
264
|
// `IsCallable` abstract operation
|
|
266
265
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
267
266
|
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
268
|
-
var isCallable$
|
|
267
|
+
var isCallable$i = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
269
268
|
return typeof argument == 'function' || argument === documentAll;
|
|
270
269
|
} : function (argument) {
|
|
271
270
|
return typeof argument == 'function';
|
|
272
271
|
};
|
|
273
272
|
|
|
274
|
-
var isCallable$
|
|
273
|
+
var isCallable$h = isCallable$i;
|
|
275
274
|
|
|
276
|
-
var isObject$
|
|
277
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
275
|
+
var isObject$a = function (it) {
|
|
276
|
+
return typeof it == 'object' ? it !== null : isCallable$h(it);
|
|
278
277
|
};
|
|
279
278
|
|
|
280
|
-
var isObject$
|
|
279
|
+
var isObject$9 = isObject$a;
|
|
281
280
|
|
|
282
281
|
var $String$4 = String;
|
|
283
|
-
var $TypeError$
|
|
282
|
+
var $TypeError$b = TypeError;
|
|
284
283
|
|
|
285
284
|
// `Assert: Type(argument) is Object`
|
|
286
|
-
var anObject$
|
|
287
|
-
if (isObject$
|
|
288
|
-
throw new $TypeError$
|
|
285
|
+
var anObject$b = function (argument) {
|
|
286
|
+
if (isObject$9(argument)) return argument;
|
|
287
|
+
throw new $TypeError$b($String$4(argument) + ' is not an object');
|
|
289
288
|
};
|
|
290
289
|
|
|
291
290
|
var objectDefineProperties = {};
|
|
292
291
|
|
|
293
|
-
var fails$
|
|
292
|
+
var fails$j = fails$n;
|
|
294
293
|
|
|
295
294
|
// Detect IE8's incomplete defineProperty implementation
|
|
296
|
-
var descriptors = !fails$
|
|
295
|
+
var descriptors = !fails$j(function () {
|
|
297
296
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
298
297
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
299
298
|
});
|
|
300
299
|
|
|
301
|
-
var DESCRIPTORS$
|
|
302
|
-
var fails$
|
|
300
|
+
var DESCRIPTORS$b = descriptors;
|
|
301
|
+
var fails$i = fails$n;
|
|
303
302
|
|
|
304
303
|
// V8 ~ Chrome 36-
|
|
305
304
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
306
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
305
|
+
var v8PrototypeDefineBug = DESCRIPTORS$b && fails$i(function () {
|
|
307
306
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
308
307
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
309
308
|
value: 42,
|
|
@@ -313,23 +312,23 @@ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$g(function () {
|
|
|
313
312
|
|
|
314
313
|
var objectDefineProperty = {};
|
|
315
314
|
|
|
316
|
-
var global$
|
|
317
|
-
var isObject$
|
|
315
|
+
var global$b = global$h;
|
|
316
|
+
var isObject$8 = isObject$a;
|
|
318
317
|
|
|
319
|
-
var document$1 = global$
|
|
318
|
+
var document$1 = global$b.document;
|
|
320
319
|
// typeof document.createElement is 'object' in old IE
|
|
321
|
-
var EXISTS$1 = isObject$
|
|
320
|
+
var EXISTS$1 = isObject$8(document$1) && isObject$8(document$1.createElement);
|
|
322
321
|
|
|
323
322
|
var documentCreateElement$2 = function (it) {
|
|
324
323
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
325
324
|
};
|
|
326
325
|
|
|
327
|
-
var DESCRIPTORS$
|
|
328
|
-
var fails$
|
|
326
|
+
var DESCRIPTORS$a = descriptors;
|
|
327
|
+
var fails$h = fails$n;
|
|
329
328
|
var createElement = documentCreateElement$2;
|
|
330
329
|
|
|
331
330
|
// Thanks to IE8 for its funny defineProperty
|
|
332
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
331
|
+
var ie8DomDefine = !DESCRIPTORS$a && !fails$h(function () {
|
|
333
332
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
334
333
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
335
334
|
get: function () { return 7; }
|
|
@@ -338,30 +337,30 @@ var ie8DomDefine = !DESCRIPTORS$8 && !fails$f(function () {
|
|
|
338
337
|
|
|
339
338
|
var NATIVE_BIND$1 = functionBindNative;
|
|
340
339
|
|
|
341
|
-
var call$
|
|
340
|
+
var call$d = Function.prototype.call;
|
|
342
341
|
|
|
343
|
-
var functionCall = NATIVE_BIND$1 ? call$
|
|
344
|
-
return call$
|
|
342
|
+
var functionCall = NATIVE_BIND$1 ? call$d.bind(call$d) : function () {
|
|
343
|
+
return call$d.apply(call$d, arguments);
|
|
345
344
|
};
|
|
346
345
|
|
|
347
|
-
var global$
|
|
348
|
-
var isCallable$
|
|
346
|
+
var global$a = global$h;
|
|
347
|
+
var isCallable$g = isCallable$i;
|
|
349
348
|
|
|
350
349
|
var aFunction = function (argument) {
|
|
351
|
-
return isCallable$
|
|
350
|
+
return isCallable$g(argument) ? argument : undefined;
|
|
352
351
|
};
|
|
353
352
|
|
|
354
|
-
var getBuiltIn$
|
|
355
|
-
return arguments.length < 2 ? aFunction(global$
|
|
353
|
+
var getBuiltIn$4 = function (namespace, method) {
|
|
354
|
+
return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
|
|
356
355
|
};
|
|
357
356
|
|
|
358
|
-
var uncurryThis$
|
|
357
|
+
var uncurryThis$g = functionUncurryThis;
|
|
359
358
|
|
|
360
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
359
|
+
var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
|
|
361
360
|
|
|
362
|
-
var getBuiltIn$
|
|
363
|
-
var isCallable$
|
|
364
|
-
var isPrototypeOf$
|
|
361
|
+
var getBuiltIn$3 = getBuiltIn$4;
|
|
362
|
+
var isCallable$f = isCallable$i;
|
|
363
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
365
364
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
366
365
|
|
|
367
366
|
var $Object$2 = Object;
|
|
@@ -369,8 +368,8 @@ var $Object$2 = Object;
|
|
|
369
368
|
var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
|
|
370
369
|
return typeof it == 'symbol';
|
|
371
370
|
} : function (it) {
|
|
372
|
-
var $Symbol = getBuiltIn$
|
|
373
|
-
return isCallable$
|
|
371
|
+
var $Symbol = getBuiltIn$3('Symbol');
|
|
372
|
+
return isCallable$f($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
|
|
374
373
|
};
|
|
375
374
|
|
|
376
375
|
var $String$3 = String;
|
|
@@ -383,15 +382,15 @@ var tryToString$2 = function (argument) {
|
|
|
383
382
|
}
|
|
384
383
|
};
|
|
385
384
|
|
|
386
|
-
var isCallable$
|
|
385
|
+
var isCallable$e = isCallable$i;
|
|
387
386
|
var tryToString$1 = tryToString$2;
|
|
388
387
|
|
|
389
|
-
var $TypeError$
|
|
388
|
+
var $TypeError$a = TypeError;
|
|
390
389
|
|
|
391
390
|
// `Assert: IsCallable(argument) is true`
|
|
392
391
|
var aCallable$4 = function (argument) {
|
|
393
|
-
if (isCallable$
|
|
394
|
-
throw new $TypeError$
|
|
392
|
+
if (isCallable$e(argument)) return argument;
|
|
393
|
+
throw new $TypeError$a(tryToString$1(argument) + ' is not a function');
|
|
395
394
|
};
|
|
396
395
|
|
|
397
396
|
var aCallable$3 = aCallable$4;
|
|
@@ -404,43 +403,43 @@ var getMethod$3 = function (V, P) {
|
|
|
404
403
|
return isNullOrUndefined$2(func) ? undefined : aCallable$3(func);
|
|
405
404
|
};
|
|
406
405
|
|
|
407
|
-
var call$
|
|
408
|
-
var isCallable$
|
|
409
|
-
var isObject$
|
|
406
|
+
var call$c = functionCall;
|
|
407
|
+
var isCallable$d = isCallable$i;
|
|
408
|
+
var isObject$7 = isObject$a;
|
|
410
409
|
|
|
411
|
-
var $TypeError$
|
|
410
|
+
var $TypeError$9 = TypeError;
|
|
412
411
|
|
|
413
412
|
// `OrdinaryToPrimitive` abstract operation
|
|
414
413
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
415
414
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
416
415
|
var fn, val;
|
|
417
|
-
if (pref === 'string' && isCallable$
|
|
418
|
-
if (isCallable$
|
|
419
|
-
if (pref !== 'string' && isCallable$
|
|
420
|
-
throw new $TypeError$
|
|
416
|
+
if (pref === 'string' && isCallable$d(fn = input.toString) && !isObject$7(val = call$c(fn, input))) return val;
|
|
417
|
+
if (isCallable$d(fn = input.valueOf) && !isObject$7(val = call$c(fn, input))) return val;
|
|
418
|
+
if (pref !== 'string' && isCallable$d(fn = input.toString) && !isObject$7(val = call$c(fn, input))) return val;
|
|
419
|
+
throw new $TypeError$9("Can't convert object to primitive value");
|
|
421
420
|
};
|
|
422
421
|
|
|
423
|
-
var call$
|
|
424
|
-
var isObject$
|
|
422
|
+
var call$b = functionCall;
|
|
423
|
+
var isObject$6 = isObject$a;
|
|
425
424
|
var isSymbol$1 = isSymbol$2;
|
|
426
425
|
var getMethod$2 = getMethod$3;
|
|
427
426
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
428
427
|
var wellKnownSymbol$b = wellKnownSymbol$c;
|
|
429
428
|
|
|
430
|
-
var $TypeError$
|
|
429
|
+
var $TypeError$8 = TypeError;
|
|
431
430
|
var TO_PRIMITIVE = wellKnownSymbol$b('toPrimitive');
|
|
432
431
|
|
|
433
432
|
// `ToPrimitive` abstract operation
|
|
434
433
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
435
434
|
var toPrimitive$1 = function (input, pref) {
|
|
436
|
-
if (!isObject$
|
|
435
|
+
if (!isObject$6(input) || isSymbol$1(input)) return input;
|
|
437
436
|
var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
|
|
438
437
|
var result;
|
|
439
438
|
if (exoticToPrim) {
|
|
440
439
|
if (pref === undefined) pref = 'default';
|
|
441
|
-
result = call$
|
|
442
|
-
if (!isObject$
|
|
443
|
-
throw new $TypeError$
|
|
440
|
+
result = call$b(exoticToPrim, input, pref);
|
|
441
|
+
if (!isObject$6(result) || isSymbol$1(result)) return result;
|
|
442
|
+
throw new $TypeError$8("Can't convert object to primitive value");
|
|
444
443
|
}
|
|
445
444
|
if (pref === undefined) pref = 'number';
|
|
446
445
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -456,13 +455,13 @@ var toPropertyKey$2 = function (argument) {
|
|
|
456
455
|
return isSymbol(key) ? key : key + '';
|
|
457
456
|
};
|
|
458
457
|
|
|
459
|
-
var DESCRIPTORS$
|
|
458
|
+
var DESCRIPTORS$9 = descriptors;
|
|
460
459
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
461
460
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
462
|
-
var anObject$
|
|
461
|
+
var anObject$a = anObject$b;
|
|
463
462
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
464
463
|
|
|
465
|
-
var $TypeError$
|
|
464
|
+
var $TypeError$7 = TypeError;
|
|
466
465
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
467
466
|
var $defineProperty = Object.defineProperty;
|
|
468
467
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -473,10 +472,10 @@ var WRITABLE = 'writable';
|
|
|
473
472
|
|
|
474
473
|
// `Object.defineProperty` method
|
|
475
474
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
476
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
477
|
-
anObject$
|
|
475
|
+
objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
476
|
+
anObject$a(O);
|
|
478
477
|
P = toPropertyKey$1(P);
|
|
479
|
-
anObject$
|
|
478
|
+
anObject$a(Attributes);
|
|
480
479
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
481
480
|
var current = $getOwnPropertyDescriptor$1(O, P);
|
|
482
481
|
if (current && current[WRITABLE]) {
|
|
@@ -489,13 +488,13 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
489
488
|
}
|
|
490
489
|
} return $defineProperty(O, P, Attributes);
|
|
491
490
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
492
|
-
anObject$
|
|
491
|
+
anObject$a(O);
|
|
493
492
|
P = toPropertyKey$1(P);
|
|
494
|
-
anObject$
|
|
493
|
+
anObject$a(Attributes);
|
|
495
494
|
if (IE8_DOM_DEFINE$1) try {
|
|
496
495
|
return $defineProperty(O, P, Attributes);
|
|
497
496
|
} catch (error) { /* empty */ }
|
|
498
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
497
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$7('Accessors not supported');
|
|
499
498
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
500
499
|
return O;
|
|
501
500
|
};
|
|
@@ -549,19 +548,19 @@ var toLength$2 = toLength$3;
|
|
|
549
548
|
|
|
550
549
|
// `LengthOfArrayLike` abstract operation
|
|
551
550
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
552
|
-
var lengthOfArrayLike$
|
|
551
|
+
var lengthOfArrayLike$4 = function (obj) {
|
|
553
552
|
return toLength$2(obj.length);
|
|
554
553
|
};
|
|
555
554
|
|
|
556
555
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
557
556
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
558
|
-
var lengthOfArrayLike$
|
|
557
|
+
var lengthOfArrayLike$3 = lengthOfArrayLike$4;
|
|
559
558
|
|
|
560
559
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
561
560
|
var createMethod$3 = function (IS_INCLUDES) {
|
|
562
561
|
return function ($this, el, fromIndex) {
|
|
563
562
|
var O = toIndexedObject$4($this);
|
|
564
|
-
var length = lengthOfArrayLike$
|
|
563
|
+
var length = lengthOfArrayLike$3(O);
|
|
565
564
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
566
565
|
var value;
|
|
567
566
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -588,22 +587,22 @@ var arrayIncludes = {
|
|
|
588
587
|
|
|
589
588
|
var hiddenKeys$4 = {};
|
|
590
589
|
|
|
591
|
-
var uncurryThis$
|
|
592
|
-
var hasOwn$
|
|
590
|
+
var uncurryThis$f = functionUncurryThis;
|
|
591
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
593
592
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
594
593
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
595
594
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
596
595
|
|
|
597
|
-
var push$2 = uncurryThis$
|
|
596
|
+
var push$2 = uncurryThis$f([].push);
|
|
598
597
|
|
|
599
598
|
var objectKeysInternal = function (object, names) {
|
|
600
599
|
var O = toIndexedObject$3(object);
|
|
601
600
|
var i = 0;
|
|
602
601
|
var result = [];
|
|
603
602
|
var key;
|
|
604
|
-
for (key in O) !hasOwn$
|
|
603
|
+
for (key in O) !hasOwn$9(hiddenKeys$3, key) && hasOwn$9(O, key) && push$2(result, key);
|
|
605
604
|
// Don't enum bug & hidden keys
|
|
606
|
-
while (names.length > i) if (hasOwn$
|
|
605
|
+
while (names.length > i) if (hasOwn$9(O, key = names[i++])) {
|
|
607
606
|
~indexOf$1(result, key) || push$2(result, key);
|
|
608
607
|
}
|
|
609
608
|
return result;
|
|
@@ -630,18 +629,18 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
630
629
|
return internalObjectKeys$1(O, enumBugKeys$2);
|
|
631
630
|
};
|
|
632
631
|
|
|
633
|
-
var DESCRIPTORS$
|
|
632
|
+
var DESCRIPTORS$8 = descriptors;
|
|
634
633
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
635
634
|
var definePropertyModule$3 = objectDefineProperty;
|
|
636
|
-
var anObject$
|
|
635
|
+
var anObject$9 = anObject$b;
|
|
637
636
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
638
637
|
var objectKeys$1 = objectKeys$2;
|
|
639
638
|
|
|
640
639
|
// `Object.defineProperties` method
|
|
641
640
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
642
641
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
643
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
644
|
-
anObject$
|
|
642
|
+
objectDefineProperties.f = DESCRIPTORS$8 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
643
|
+
anObject$9(O);
|
|
645
644
|
var props = toIndexedObject$2(Properties);
|
|
646
645
|
var keys = objectKeys$1(Properties);
|
|
647
646
|
var length = keys.length;
|
|
@@ -651,9 +650,9 @@ objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
651
650
|
return O;
|
|
652
651
|
};
|
|
653
652
|
|
|
654
|
-
var getBuiltIn$
|
|
653
|
+
var getBuiltIn$2 = getBuiltIn$4;
|
|
655
654
|
|
|
656
|
-
var html$1 = getBuiltIn$
|
|
655
|
+
var html$1 = getBuiltIn$2('document', 'documentElement');
|
|
657
656
|
|
|
658
657
|
var shared$2 = shared$4.exports;
|
|
659
658
|
var uid = uid$2;
|
|
@@ -665,7 +664,7 @@ var sharedKey$3 = function (key) {
|
|
|
665
664
|
};
|
|
666
665
|
|
|
667
666
|
/* global ActiveXObject -- old IE, WSH */
|
|
668
|
-
var anObject$
|
|
667
|
+
var anObject$8 = anObject$b;
|
|
669
668
|
var definePropertiesModule = objectDefineProperties;
|
|
670
669
|
var enumBugKeys$1 = enumBugKeys$3;
|
|
671
670
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
@@ -739,7 +738,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
|
|
|
739
738
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
740
739
|
var result;
|
|
741
740
|
if (O !== null) {
|
|
742
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
741
|
+
EmptyConstructor[PROTOTYPE] = anObject$8(O);
|
|
743
742
|
result = new EmptyConstructor();
|
|
744
743
|
EmptyConstructor[PROTOTYPE] = null;
|
|
745
744
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -750,7 +749,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
750
749
|
|
|
751
750
|
var wellKnownSymbol$a = wellKnownSymbol$c;
|
|
752
751
|
var create$2 = objectCreate;
|
|
753
|
-
var defineProperty$
|
|
752
|
+
var defineProperty$5 = objectDefineProperty.f;
|
|
754
753
|
|
|
755
754
|
var UNSCOPABLES = wellKnownSymbol$a('unscopables');
|
|
756
755
|
var ArrayPrototype = Array.prototype;
|
|
@@ -758,7 +757,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
758
757
|
// Array.prototype[@@unscopables]
|
|
759
758
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
760
759
|
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
761
|
-
defineProperty$
|
|
760
|
+
defineProperty$5(ArrayPrototype, UNSCOPABLES, {
|
|
762
761
|
configurable: true,
|
|
763
762
|
value: create$2(null)
|
|
764
763
|
});
|
|
@@ -771,14 +770,14 @@ var addToUnscopables$2 = function (key) {
|
|
|
771
770
|
|
|
772
771
|
var iterators = {};
|
|
773
772
|
|
|
774
|
-
var global$
|
|
775
|
-
var isCallable$
|
|
773
|
+
var global$9 = global$h;
|
|
774
|
+
var isCallable$c = isCallable$i;
|
|
776
775
|
|
|
777
|
-
var WeakMap$1 = global$
|
|
776
|
+
var WeakMap$1 = global$9.WeakMap;
|
|
778
777
|
|
|
779
|
-
var weakMapBasicDetection = isCallable$
|
|
778
|
+
var weakMapBasicDetection = isCallable$c(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
780
779
|
|
|
781
|
-
var createPropertyDescriptor$
|
|
780
|
+
var createPropertyDescriptor$4 = function (bitmap, value) {
|
|
782
781
|
return {
|
|
783
782
|
enumerable: !(bitmap & 1),
|
|
784
783
|
configurable: !(bitmap & 2),
|
|
@@ -787,29 +786,29 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
787
786
|
};
|
|
788
787
|
};
|
|
789
788
|
|
|
790
|
-
var DESCRIPTORS$
|
|
789
|
+
var DESCRIPTORS$7 = descriptors;
|
|
791
790
|
var definePropertyModule$2 = objectDefineProperty;
|
|
792
|
-
var createPropertyDescriptor$
|
|
791
|
+
var createPropertyDescriptor$3 = createPropertyDescriptor$4;
|
|
793
792
|
|
|
794
|
-
var createNonEnumerableProperty$
|
|
795
|
-
return definePropertyModule$2.f(object, key, createPropertyDescriptor$
|
|
793
|
+
var createNonEnumerableProperty$8 = DESCRIPTORS$7 ? function (object, key, value) {
|
|
794
|
+
return definePropertyModule$2.f(object, key, createPropertyDescriptor$3(1, value));
|
|
796
795
|
} : function (object, key, value) {
|
|
797
796
|
object[key] = value;
|
|
798
797
|
return object;
|
|
799
798
|
};
|
|
800
799
|
|
|
801
800
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
802
|
-
var global$
|
|
803
|
-
var isObject$
|
|
804
|
-
var createNonEnumerableProperty$
|
|
805
|
-
var hasOwn$
|
|
801
|
+
var global$8 = global$h;
|
|
802
|
+
var isObject$5 = isObject$a;
|
|
803
|
+
var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
|
|
804
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
806
805
|
var shared$1 = sharedStore;
|
|
807
806
|
var sharedKey$1 = sharedKey$3;
|
|
808
807
|
var hiddenKeys$1 = hiddenKeys$4;
|
|
809
808
|
|
|
810
809
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
811
|
-
var TypeError$1 = global$
|
|
812
|
-
var WeakMap = global$
|
|
810
|
+
var TypeError$1 = global$8.TypeError;
|
|
811
|
+
var WeakMap = global$8.WeakMap;
|
|
813
812
|
var set, get, has;
|
|
814
813
|
|
|
815
814
|
var enforce = function (it) {
|
|
@@ -819,7 +818,7 @@ var enforce = function (it) {
|
|
|
819
818
|
var getterFor = function (TYPE) {
|
|
820
819
|
return function (it) {
|
|
821
820
|
var state;
|
|
822
|
-
if (!isObject$
|
|
821
|
+
if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
|
|
823
822
|
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
824
823
|
} return state;
|
|
825
824
|
};
|
|
@@ -848,16 +847,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
848
847
|
var STATE = sharedKey$1('state');
|
|
849
848
|
hiddenKeys$1[STATE] = true;
|
|
850
849
|
set = function (it, metadata) {
|
|
851
|
-
if (hasOwn$
|
|
850
|
+
if (hasOwn$8(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
852
851
|
metadata.facade = it;
|
|
853
|
-
createNonEnumerableProperty$
|
|
852
|
+
createNonEnumerableProperty$7(it, STATE, metadata);
|
|
854
853
|
return metadata;
|
|
855
854
|
};
|
|
856
855
|
get = function (it) {
|
|
857
|
-
return hasOwn$
|
|
856
|
+
return hasOwn$8(it, STATE) ? it[STATE] : {};
|
|
858
857
|
};
|
|
859
858
|
has = function (it) {
|
|
860
|
-
return hasOwn$
|
|
859
|
+
return hasOwn$8(it, STATE);
|
|
861
860
|
};
|
|
862
861
|
}
|
|
863
862
|
|
|
@@ -875,25 +874,25 @@ var objectPropertyIsEnumerable = {};
|
|
|
875
874
|
|
|
876
875
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
877
876
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
878
|
-
var getOwnPropertyDescriptor$
|
|
877
|
+
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
879
878
|
|
|
880
879
|
// Nashorn ~ JDK8 bug
|
|
881
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
880
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
882
881
|
|
|
883
882
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
884
883
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
885
884
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
886
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
885
|
+
var descriptor = getOwnPropertyDescriptor$2(this, V);
|
|
887
886
|
return !!descriptor && descriptor.enumerable;
|
|
888
887
|
} : $propertyIsEnumerable;
|
|
889
888
|
|
|
890
|
-
var DESCRIPTORS$
|
|
891
|
-
var call$
|
|
889
|
+
var DESCRIPTORS$6 = descriptors;
|
|
890
|
+
var call$a = functionCall;
|
|
892
891
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
893
|
-
var createPropertyDescriptor$
|
|
892
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$4;
|
|
894
893
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
895
894
|
var toPropertyKey = toPropertyKey$2;
|
|
896
|
-
var hasOwn$
|
|
895
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
897
896
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
898
897
|
|
|
899
898
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -901,28 +900,28 @@ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
|
901
900
|
|
|
902
901
|
// `Object.getOwnPropertyDescriptor` method
|
|
903
902
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
904
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
903
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
905
904
|
O = toIndexedObject$1(O);
|
|
906
905
|
P = toPropertyKey(P);
|
|
907
906
|
if (IE8_DOM_DEFINE) try {
|
|
908
907
|
return $getOwnPropertyDescriptor(O, P);
|
|
909
908
|
} catch (error) { /* empty */ }
|
|
910
|
-
if (hasOwn$
|
|
909
|
+
if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$a(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
911
910
|
};
|
|
912
911
|
|
|
913
912
|
var makeBuiltIn$2 = {exports: {}};
|
|
914
913
|
|
|
915
|
-
var DESCRIPTORS$
|
|
916
|
-
var hasOwn$
|
|
914
|
+
var DESCRIPTORS$5 = descriptors;
|
|
915
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
917
916
|
|
|
918
917
|
var FunctionPrototype$1 = Function.prototype;
|
|
919
918
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
920
|
-
var getDescriptor = DESCRIPTORS$
|
|
919
|
+
var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
|
|
921
920
|
|
|
922
|
-
var EXISTS = hasOwn$
|
|
921
|
+
var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
|
|
923
922
|
// additional protection from minified / mangled / dropped function names
|
|
924
923
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
925
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
924
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
926
925
|
|
|
927
926
|
var functionName = {
|
|
928
927
|
EXISTS: EXISTS,
|
|
@@ -930,14 +929,14 @@ var functionName = {
|
|
|
930
929
|
CONFIGURABLE: CONFIGURABLE
|
|
931
930
|
};
|
|
932
931
|
|
|
933
|
-
var uncurryThis$
|
|
934
|
-
var isCallable$
|
|
932
|
+
var uncurryThis$e = functionUncurryThis;
|
|
933
|
+
var isCallable$b = isCallable$i;
|
|
935
934
|
var store = sharedStore;
|
|
936
935
|
|
|
937
|
-
var functionToString = uncurryThis$
|
|
936
|
+
var functionToString = uncurryThis$e(Function.toString);
|
|
938
937
|
|
|
939
938
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
940
|
-
if (!isCallable$
|
|
939
|
+
if (!isCallable$b(store.inspectSource)) {
|
|
941
940
|
store.inspectSource = function (it) {
|
|
942
941
|
return functionToString(it);
|
|
943
942
|
};
|
|
@@ -945,11 +944,11 @@ if (!isCallable$9(store.inspectSource)) {
|
|
|
945
944
|
|
|
946
945
|
var inspectSource$1 = store.inspectSource;
|
|
947
946
|
|
|
948
|
-
var uncurryThis$
|
|
949
|
-
var fails$
|
|
950
|
-
var isCallable$
|
|
951
|
-
var hasOwn$
|
|
952
|
-
var DESCRIPTORS$
|
|
947
|
+
var uncurryThis$d = functionUncurryThis;
|
|
948
|
+
var fails$g = fails$n;
|
|
949
|
+
var isCallable$a = isCallable$i;
|
|
950
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
951
|
+
var DESCRIPTORS$4 = descriptors;
|
|
953
952
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
954
953
|
var inspectSource = inspectSource$1;
|
|
955
954
|
var InternalStateModule$1 = internalState;
|
|
@@ -958,38 +957,38 @@ var enforceInternalState = InternalStateModule$1.enforce;
|
|
|
958
957
|
var getInternalState$2 = InternalStateModule$1.get;
|
|
959
958
|
var $String$2 = String;
|
|
960
959
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
961
|
-
var defineProperty$
|
|
962
|
-
var stringSlice$4 = uncurryThis$
|
|
963
|
-
var replace$
|
|
964
|
-
var join = uncurryThis$
|
|
960
|
+
var defineProperty$4 = Object.defineProperty;
|
|
961
|
+
var stringSlice$4 = uncurryThis$d(''.slice);
|
|
962
|
+
var replace$4 = uncurryThis$d(''.replace);
|
|
963
|
+
var join = uncurryThis$d([].join);
|
|
965
964
|
|
|
966
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
967
|
-
return defineProperty$
|
|
965
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$g(function () {
|
|
966
|
+
return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
968
967
|
});
|
|
969
968
|
|
|
970
969
|
var TEMPLATE = String(String).split('String');
|
|
971
970
|
|
|
972
971
|
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
973
972
|
if (stringSlice$4($String$2(name), 0, 7) === 'Symbol(') {
|
|
974
|
-
name = '[' + replace$
|
|
973
|
+
name = '[' + replace$4($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
975
974
|
}
|
|
976
975
|
if (options && options.getter) name = 'get ' + name;
|
|
977
976
|
if (options && options.setter) name = 'set ' + name;
|
|
978
|
-
if (!hasOwn$
|
|
979
|
-
if (DESCRIPTORS$
|
|
977
|
+
if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
978
|
+
if (DESCRIPTORS$4) defineProperty$4(value, 'name', { value: name, configurable: true });
|
|
980
979
|
else value.name = name;
|
|
981
980
|
}
|
|
982
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
983
|
-
defineProperty$
|
|
981
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
|
|
982
|
+
defineProperty$4(value, 'length', { value: options.arity });
|
|
984
983
|
}
|
|
985
984
|
try {
|
|
986
|
-
if (options && hasOwn$
|
|
987
|
-
if (DESCRIPTORS$
|
|
985
|
+
if (options && hasOwn$5(options, 'constructor') && options.constructor) {
|
|
986
|
+
if (DESCRIPTORS$4) defineProperty$4(value, 'prototype', { writable: false });
|
|
988
987
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
989
988
|
} else if (value.prototype) value.prototype = undefined;
|
|
990
989
|
} catch (error) { /* empty */ }
|
|
991
990
|
var state = enforceInternalState(value);
|
|
992
|
-
if (!hasOwn$
|
|
991
|
+
if (!hasOwn$5(state, 'source')) {
|
|
993
992
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
994
993
|
} return value;
|
|
995
994
|
};
|
|
@@ -997,10 +996,10 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
997
996
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
998
997
|
// eslint-disable-next-line no-extend-native -- required
|
|
999
998
|
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
1000
|
-
return isCallable$
|
|
999
|
+
return isCallable$a(this) && getInternalState$2(this).source || inspectSource(this);
|
|
1001
1000
|
}, 'toString');
|
|
1002
1001
|
|
|
1003
|
-
var isCallable$
|
|
1002
|
+
var isCallable$9 = isCallable$i;
|
|
1004
1003
|
var definePropertyModule$1 = objectDefineProperty;
|
|
1005
1004
|
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
1006
1005
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
@@ -1009,7 +1008,7 @@ var defineBuiltIn$5 = function (O, key, value, options) {
|
|
|
1009
1008
|
if (!options) options = {};
|
|
1010
1009
|
var simple = options.enumerable;
|
|
1011
1010
|
var name = options.name !== undefined ? options.name : key;
|
|
1012
|
-
if (isCallable$
|
|
1011
|
+
if (isCallable$9(value)) makeBuiltIn(value, name, options);
|
|
1013
1012
|
if (options.global) {
|
|
1014
1013
|
if (simple) O[key] = value;
|
|
1015
1014
|
else defineGlobalProperty$1(key, value);
|
|
@@ -1047,40 +1046,40 @@ var objectGetOwnPropertySymbols = {};
|
|
|
1047
1046
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
1048
1047
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
1049
1048
|
|
|
1050
|
-
var getBuiltIn = getBuiltIn$
|
|
1051
|
-
var uncurryThis$
|
|
1049
|
+
var getBuiltIn$1 = getBuiltIn$4;
|
|
1050
|
+
var uncurryThis$c = functionUncurryThis;
|
|
1052
1051
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1053
1052
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1054
|
-
var anObject$
|
|
1053
|
+
var anObject$7 = anObject$b;
|
|
1055
1054
|
|
|
1056
|
-
var concat$2 = uncurryThis$
|
|
1055
|
+
var concat$2 = uncurryThis$c([].concat);
|
|
1057
1056
|
|
|
1058
1057
|
// all object keys, includes non-enumerable and symbols
|
|
1059
|
-
var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1060
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
1058
|
+
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1059
|
+
var keys = getOwnPropertyNamesModule.f(anObject$7(it));
|
|
1061
1060
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
1062
1061
|
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
1063
1062
|
};
|
|
1064
1063
|
|
|
1065
|
-
var hasOwn$
|
|
1064
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
1066
1065
|
var ownKeys = ownKeys$1;
|
|
1067
1066
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1068
1067
|
var definePropertyModule = objectDefineProperty;
|
|
1069
1068
|
|
|
1070
|
-
var copyConstructorProperties$
|
|
1069
|
+
var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
1071
1070
|
var keys = ownKeys(source);
|
|
1072
1071
|
var defineProperty = definePropertyModule.f;
|
|
1073
1072
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1074
1073
|
for (var i = 0; i < keys.length; i++) {
|
|
1075
1074
|
var key = keys[i];
|
|
1076
|
-
if (!hasOwn$
|
|
1075
|
+
if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
|
|
1077
1076
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1078
1077
|
}
|
|
1079
1078
|
}
|
|
1080
1079
|
};
|
|
1081
1080
|
|
|
1082
|
-
var fails$
|
|
1083
|
-
var isCallable$
|
|
1081
|
+
var fails$f = fails$n;
|
|
1082
|
+
var isCallable$8 = isCallable$i;
|
|
1084
1083
|
|
|
1085
1084
|
var replacement = /#|\.prototype\./;
|
|
1086
1085
|
|
|
@@ -1088,7 +1087,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
1088
1087
|
var value = data[normalize(feature)];
|
|
1089
1088
|
return value === POLYFILL ? true
|
|
1090
1089
|
: value === NATIVE ? false
|
|
1091
|
-
: isCallable$
|
|
1090
|
+
: isCallable$8(detection) ? fails$f(detection)
|
|
1092
1091
|
: !!detection;
|
|
1093
1092
|
};
|
|
1094
1093
|
|
|
@@ -1102,12 +1101,12 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
1102
1101
|
|
|
1103
1102
|
var isForced_1 = isForced$1;
|
|
1104
1103
|
|
|
1105
|
-
var global$
|
|
1106
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1107
|
-
var createNonEnumerableProperty$
|
|
1104
|
+
var global$7 = global$h;
|
|
1105
|
+
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
1106
|
+
var createNonEnumerableProperty$6 = createNonEnumerableProperty$8;
|
|
1108
1107
|
var defineBuiltIn$4 = defineBuiltIn$5;
|
|
1109
1108
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
1110
|
-
var copyConstructorProperties = copyConstructorProperties$
|
|
1109
|
+
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
1111
1110
|
var isForced = isForced_1;
|
|
1112
1111
|
|
|
1113
1112
|
/*
|
|
@@ -1131,44 +1130,44 @@ var _export = function (options, source) {
|
|
|
1131
1130
|
var STATIC = options.stat;
|
|
1132
1131
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1133
1132
|
if (GLOBAL) {
|
|
1134
|
-
target = global$
|
|
1133
|
+
target = global$7;
|
|
1135
1134
|
} else if (STATIC) {
|
|
1136
|
-
target = global$
|
|
1135
|
+
target = global$7[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1137
1136
|
} else {
|
|
1138
|
-
target = global$
|
|
1137
|
+
target = global$7[TARGET] && global$7[TARGET].prototype;
|
|
1139
1138
|
}
|
|
1140
1139
|
if (target) for (key in source) {
|
|
1141
1140
|
sourceProperty = source[key];
|
|
1142
1141
|
if (options.dontCallGetSet) {
|
|
1143
|
-
descriptor = getOwnPropertyDescriptor(target, key);
|
|
1142
|
+
descriptor = getOwnPropertyDescriptor$1(target, key);
|
|
1144
1143
|
targetProperty = descriptor && descriptor.value;
|
|
1145
1144
|
} else targetProperty = target[key];
|
|
1146
1145
|
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1147
1146
|
// contained in target
|
|
1148
1147
|
if (!FORCED && targetProperty !== undefined) {
|
|
1149
1148
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
1150
|
-
copyConstructorProperties(sourceProperty, targetProperty);
|
|
1149
|
+
copyConstructorProperties$1(sourceProperty, targetProperty);
|
|
1151
1150
|
}
|
|
1152
1151
|
// add a flag to not completely full polyfills
|
|
1153
1152
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1154
|
-
createNonEnumerableProperty$
|
|
1153
|
+
createNonEnumerableProperty$6(sourceProperty, 'sham', true);
|
|
1155
1154
|
}
|
|
1156
1155
|
defineBuiltIn$4(target, key, sourceProperty, options);
|
|
1157
1156
|
}
|
|
1158
1157
|
};
|
|
1159
1158
|
|
|
1160
|
-
var fails$
|
|
1159
|
+
var fails$e = fails$n;
|
|
1161
1160
|
|
|
1162
|
-
var correctPrototypeGetter = !fails$
|
|
1161
|
+
var correctPrototypeGetter = !fails$e(function () {
|
|
1163
1162
|
function F() { /* empty */ }
|
|
1164
1163
|
F.prototype.constructor = null;
|
|
1165
1164
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1166
1165
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1167
1166
|
});
|
|
1168
1167
|
|
|
1169
|
-
var hasOwn$
|
|
1170
|
-
var isCallable$
|
|
1171
|
-
var toObject$
|
|
1168
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1169
|
+
var isCallable$7 = isCallable$i;
|
|
1170
|
+
var toObject$5 = toObject$7;
|
|
1172
1171
|
var sharedKey = sharedKey$3;
|
|
1173
1172
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1174
1173
|
|
|
@@ -1180,17 +1179,17 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1180
1179
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1181
1180
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1182
1181
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1183
|
-
var object = toObject$
|
|
1184
|
-
if (hasOwn$
|
|
1182
|
+
var object = toObject$5(O);
|
|
1183
|
+
if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
|
|
1185
1184
|
var constructor = object.constructor;
|
|
1186
|
-
if (isCallable$
|
|
1185
|
+
if (isCallable$7(constructor) && object instanceof constructor) {
|
|
1187
1186
|
return constructor.prototype;
|
|
1188
1187
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1189
1188
|
};
|
|
1190
1189
|
|
|
1191
|
-
var fails$
|
|
1192
|
-
var isCallable$
|
|
1193
|
-
var isObject$
|
|
1190
|
+
var fails$d = fails$n;
|
|
1191
|
+
var isCallable$6 = isCallable$i;
|
|
1192
|
+
var isObject$4 = isObject$a;
|
|
1194
1193
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1195
1194
|
var defineBuiltIn$3 = defineBuiltIn$5;
|
|
1196
1195
|
var wellKnownSymbol$9 = wellKnownSymbol$c;
|
|
@@ -1213,7 +1212,7 @@ if ([].keys) {
|
|
|
1213
1212
|
}
|
|
1214
1213
|
}
|
|
1215
1214
|
|
|
1216
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$
|
|
1215
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$4(IteratorPrototype$2) || fails$d(function () {
|
|
1217
1216
|
var test = {};
|
|
1218
1217
|
// FF44- legacy iterators case
|
|
1219
1218
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -1223,7 +1222,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1223
1222
|
|
|
1224
1223
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1225
1224
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1226
|
-
if (!isCallable$
|
|
1225
|
+
if (!isCallable$6(IteratorPrototype$2[ITERATOR$2])) {
|
|
1227
1226
|
defineBuiltIn$3(IteratorPrototype$2, ITERATOR$2, function () {
|
|
1228
1227
|
return this;
|
|
1229
1228
|
});
|
|
@@ -1234,22 +1233,22 @@ var iteratorsCore = {
|
|
|
1234
1233
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1235
1234
|
};
|
|
1236
1235
|
|
|
1237
|
-
var defineProperty$
|
|
1238
|
-
var hasOwn$
|
|
1236
|
+
var defineProperty$3 = objectDefineProperty.f;
|
|
1237
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
1239
1238
|
var wellKnownSymbol$8 = wellKnownSymbol$c;
|
|
1240
1239
|
|
|
1241
1240
|
var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
|
|
1242
1241
|
|
|
1243
1242
|
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1244
1243
|
if (target && !STATIC) target = target.prototype;
|
|
1245
|
-
if (target && !hasOwn$
|
|
1246
|
-
defineProperty$
|
|
1244
|
+
if (target && !hasOwn$2(target, TO_STRING_TAG$2)) {
|
|
1245
|
+
defineProperty$3(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
|
|
1247
1246
|
}
|
|
1248
1247
|
};
|
|
1249
1248
|
|
|
1250
1249
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1251
1250
|
var create$1 = objectCreate;
|
|
1252
|
-
var createPropertyDescriptor = createPropertyDescriptor$
|
|
1251
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$4;
|
|
1253
1252
|
var setToStringTag$2 = setToStringTag$3;
|
|
1254
1253
|
var Iterators$2 = iterators;
|
|
1255
1254
|
|
|
@@ -1257,41 +1256,41 @@ var returnThis$1 = function () { return this; };
|
|
|
1257
1256
|
|
|
1258
1257
|
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1259
1258
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1260
|
-
IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1259
|
+
IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
|
|
1261
1260
|
setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
|
|
1262
1261
|
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
1263
1262
|
return IteratorConstructor;
|
|
1264
1263
|
};
|
|
1265
1264
|
|
|
1266
|
-
var uncurryThis$
|
|
1265
|
+
var uncurryThis$b = functionUncurryThis;
|
|
1267
1266
|
var aCallable$2 = aCallable$4;
|
|
1268
1267
|
|
|
1269
1268
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1270
1269
|
try {
|
|
1271
1270
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1272
|
-
return uncurryThis$
|
|
1271
|
+
return uncurryThis$b(aCallable$2(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1273
1272
|
} catch (error) { /* empty */ }
|
|
1274
1273
|
};
|
|
1275
1274
|
|
|
1276
|
-
var isObject$
|
|
1275
|
+
var isObject$3 = isObject$a;
|
|
1277
1276
|
|
|
1278
1277
|
var isPossiblePrototype$1 = function (argument) {
|
|
1279
|
-
return isObject$
|
|
1278
|
+
return isObject$3(argument) || argument === null;
|
|
1280
1279
|
};
|
|
1281
1280
|
|
|
1282
1281
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1283
1282
|
|
|
1284
1283
|
var $String$1 = String;
|
|
1285
|
-
var $TypeError$
|
|
1284
|
+
var $TypeError$6 = TypeError;
|
|
1286
1285
|
|
|
1287
1286
|
var aPossiblePrototype$1 = function (argument) {
|
|
1288
1287
|
if (isPossiblePrototype(argument)) return argument;
|
|
1289
|
-
throw new $TypeError$
|
|
1288
|
+
throw new $TypeError$6("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1290
1289
|
};
|
|
1291
1290
|
|
|
1292
1291
|
/* eslint-disable no-proto -- safe */
|
|
1293
1292
|
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1294
|
-
var anObject$
|
|
1293
|
+
var anObject$6 = anObject$b;
|
|
1295
1294
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1296
1295
|
|
|
1297
1296
|
// `Object.setPrototypeOf` method
|
|
@@ -1308,7 +1307,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1308
1307
|
CORRECT_SETTER = test instanceof Array;
|
|
1309
1308
|
} catch (error) { /* empty */ }
|
|
1310
1309
|
return function setPrototypeOf(O, proto) {
|
|
1311
|
-
anObject$
|
|
1310
|
+
anObject$6(O);
|
|
1312
1311
|
aPossiblePrototype(proto);
|
|
1313
1312
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1314
1313
|
else O.__proto__ = proto;
|
|
@@ -1316,15 +1315,15 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1316
1315
|
};
|
|
1317
1316
|
}() : undefined);
|
|
1318
1317
|
|
|
1319
|
-
var $$
|
|
1320
|
-
var call$
|
|
1318
|
+
var $$b = _export;
|
|
1319
|
+
var call$9 = functionCall;
|
|
1321
1320
|
var FunctionName = functionName;
|
|
1322
|
-
var isCallable$
|
|
1321
|
+
var isCallable$5 = isCallable$i;
|
|
1323
1322
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1324
1323
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1325
|
-
var setPrototypeOf = objectSetPrototypeOf;
|
|
1324
|
+
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
1326
1325
|
var setToStringTag$1 = setToStringTag$3;
|
|
1327
|
-
var createNonEnumerableProperty$
|
|
1326
|
+
var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
|
|
1328
1327
|
var defineBuiltIn$2 = defineBuiltIn$5;
|
|
1329
1328
|
var wellKnownSymbol$7 = wellKnownSymbol$c;
|
|
1330
1329
|
var Iterators$1 = iterators;
|
|
@@ -1372,9 +1371,9 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1372
1371
|
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1373
1372
|
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1374
1373
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1375
|
-
if (setPrototypeOf) {
|
|
1376
|
-
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
1377
|
-
} else if (!isCallable$
|
|
1374
|
+
if (setPrototypeOf$2) {
|
|
1375
|
+
setPrototypeOf$2(CurrentIteratorPrototype, IteratorPrototype);
|
|
1376
|
+
} else if (!isCallable$5(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1378
1377
|
defineBuiltIn$2(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
1379
1378
|
}
|
|
1380
1379
|
}
|
|
@@ -1386,10 +1385,10 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1386
1385
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1387
1386
|
if (PROPER_FUNCTION_NAME$2 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1388
1387
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1389
|
-
createNonEnumerableProperty$
|
|
1388
|
+
createNonEnumerableProperty$5(IterablePrototype, 'name', VALUES);
|
|
1390
1389
|
} else {
|
|
1391
1390
|
INCORRECT_VALUES_NAME = true;
|
|
1392
|
-
defaultIterator = function values() { return call$
|
|
1391
|
+
defaultIterator = function values() { return call$9(nativeIterator, this); };
|
|
1393
1392
|
}
|
|
1394
1393
|
}
|
|
1395
1394
|
|
|
@@ -1404,7 +1403,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1404
1403
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1405
1404
|
defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
|
|
1406
1405
|
}
|
|
1407
|
-
} else $$
|
|
1406
|
+
} else $$b({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1408
1407
|
}
|
|
1409
1408
|
|
|
1410
1409
|
// define iterator
|
|
@@ -1426,10 +1425,10 @@ var toIndexedObject = toIndexedObject$5;
|
|
|
1426
1425
|
var addToUnscopables$1 = addToUnscopables$2;
|
|
1427
1426
|
var Iterators = iterators;
|
|
1428
1427
|
var InternalStateModule = internalState;
|
|
1429
|
-
var defineProperty$
|
|
1428
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
1430
1429
|
var defineIterator = iteratorDefine;
|
|
1431
1430
|
var createIterResultObject = createIterResultObject$1;
|
|
1432
|
-
var DESCRIPTORS$
|
|
1431
|
+
var DESCRIPTORS$3 = descriptors;
|
|
1433
1432
|
|
|
1434
1433
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1435
1434
|
var setInternalState = InternalStateModule.set;
|
|
@@ -1479,34 +1478,34 @@ addToUnscopables$1('values');
|
|
|
1479
1478
|
addToUnscopables$1('entries');
|
|
1480
1479
|
|
|
1481
1480
|
// V8 ~ Chrome 45- bug
|
|
1482
|
-
if (DESCRIPTORS$
|
|
1483
|
-
defineProperty$
|
|
1481
|
+
if (DESCRIPTORS$3 && values.name !== 'values') try {
|
|
1482
|
+
defineProperty$2(values, 'name', { value: 'values' });
|
|
1484
1483
|
} catch (error) { /* empty */ }
|
|
1485
1484
|
|
|
1486
|
-
var DESCRIPTORS = descriptors;
|
|
1487
|
-
var uncurryThis$
|
|
1488
|
-
var call$
|
|
1489
|
-
var fails$
|
|
1485
|
+
var DESCRIPTORS$2 = descriptors;
|
|
1486
|
+
var uncurryThis$a = functionUncurryThis;
|
|
1487
|
+
var call$8 = functionCall;
|
|
1488
|
+
var fails$c = fails$n;
|
|
1490
1489
|
var objectKeys = objectKeys$2;
|
|
1491
1490
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1492
1491
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1493
|
-
var toObject$
|
|
1492
|
+
var toObject$4 = toObject$7;
|
|
1494
1493
|
var IndexedObject$1 = indexedObject;
|
|
1495
1494
|
|
|
1496
1495
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1497
1496
|
var $assign = Object.assign;
|
|
1498
1497
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1499
|
-
var defineProperty = Object.defineProperty;
|
|
1500
|
-
var concat$1 = uncurryThis$
|
|
1498
|
+
var defineProperty$1 = Object.defineProperty;
|
|
1499
|
+
var concat$1 = uncurryThis$a([].concat);
|
|
1501
1500
|
|
|
1502
1501
|
// `Object.assign` method
|
|
1503
1502
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1504
|
-
var objectAssign = !$assign || fails$
|
|
1503
|
+
var objectAssign = !$assign || fails$c(function () {
|
|
1505
1504
|
// should have correct order of operations (Edge bug)
|
|
1506
|
-
if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
1505
|
+
if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
|
|
1507
1506
|
enumerable: true,
|
|
1508
1507
|
get: function () {
|
|
1509
|
-
defineProperty(this, 'b', {
|
|
1508
|
+
defineProperty$1(this, 'b', {
|
|
1510
1509
|
value: 3,
|
|
1511
1510
|
enumerable: false
|
|
1512
1511
|
});
|
|
@@ -1522,7 +1521,7 @@ var objectAssign = !$assign || fails$a(function () {
|
|
|
1522
1521
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1523
1522
|
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
1524
1523
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1525
|
-
var T = toObject$
|
|
1524
|
+
var T = toObject$4(target);
|
|
1526
1525
|
var argumentsLength = arguments.length;
|
|
1527
1526
|
var index = 1;
|
|
1528
1527
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
@@ -1535,18 +1534,18 @@ var objectAssign = !$assign || fails$a(function () {
|
|
|
1535
1534
|
var key;
|
|
1536
1535
|
while (length > j) {
|
|
1537
1536
|
key = keys[j++];
|
|
1538
|
-
if (!DESCRIPTORS || call$
|
|
1537
|
+
if (!DESCRIPTORS$2 || call$8(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1539
1538
|
}
|
|
1540
1539
|
} return T;
|
|
1541
1540
|
} : $assign;
|
|
1542
1541
|
|
|
1543
|
-
var $$
|
|
1542
|
+
var $$a = _export;
|
|
1544
1543
|
var assign = objectAssign;
|
|
1545
1544
|
|
|
1546
1545
|
// `Object.assign` method
|
|
1547
1546
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1548
1547
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1549
|
-
$$
|
|
1548
|
+
$$a({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1550
1549
|
assign: assign
|
|
1551
1550
|
});
|
|
1552
1551
|
|
|
@@ -1594,11 +1593,11 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1594
1593
|
|
|
1595
1594
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1596
1595
|
|
|
1597
|
-
var global$
|
|
1596
|
+
var global$6 = global$h;
|
|
1598
1597
|
var DOMIterables = domIterables;
|
|
1599
1598
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1600
1599
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1601
|
-
var createNonEnumerableProperty$
|
|
1600
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
|
|
1602
1601
|
var setToStringTag = setToStringTag$3;
|
|
1603
1602
|
var wellKnownSymbol$6 = wellKnownSymbol$c;
|
|
1604
1603
|
|
|
@@ -1609,7 +1608,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1609
1608
|
if (CollectionPrototype) {
|
|
1610
1609
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1611
1610
|
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
1612
|
-
createNonEnumerableProperty$
|
|
1611
|
+
createNonEnumerableProperty$4(CollectionPrototype, ITERATOR, ArrayValues);
|
|
1613
1612
|
} catch (error) {
|
|
1614
1613
|
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
1615
1614
|
}
|
|
@@ -1617,7 +1616,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1617
1616
|
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1618
1617
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1619
1618
|
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1620
|
-
createNonEnumerableProperty$
|
|
1619
|
+
createNonEnumerableProperty$4(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1621
1620
|
} catch (error) {
|
|
1622
1621
|
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1623
1622
|
}
|
|
@@ -1626,7 +1625,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1626
1625
|
};
|
|
1627
1626
|
|
|
1628
1627
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1629
|
-
handlePrototype(global$
|
|
1628
|
+
handlePrototype(global$6[COLLECTION_NAME] && global$6[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1630
1629
|
}
|
|
1631
1630
|
|
|
1632
1631
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
@@ -1797,15 +1796,17 @@ const columnClasses = {
|
|
|
1797
1796
|
column5: 'column-5',
|
|
1798
1797
|
column6: 'column-6',
|
|
1799
1798
|
column7: 'column-7',
|
|
1800
|
-
acceptanceTime: 'column-acceptanceTime'
|
|
1799
|
+
acceptanceTime: 'column-acceptanceTime',
|
|
1800
|
+
loadDuration: 'column-loadDuration'
|
|
1801
1801
|
};
|
|
1802
1802
|
const DRAG_VISIBILITY_LEADING_BUTTONS = 3;
|
|
1803
1803
|
const DELETE_MORE_BUTTONS = 3;
|
|
1804
1804
|
const MISSING = 4;
|
|
1805
1805
|
const leftButtonsWidth = iconButtonSize * DRAG_VISIBILITY_LEADING_BUTTONS + MISSING;
|
|
1806
1806
|
const rightButtonsWidth = iconButtonSize * DELETE_MORE_BUTTONS;
|
|
1807
|
-
const acceptanceTimeWidth =
|
|
1808
|
-
const
|
|
1807
|
+
const acceptanceTimeWidth = 65;
|
|
1808
|
+
const loadDurationWidth = 50;
|
|
1809
|
+
const nonFlexibleAreaWidth = leftButtonsWidth + rightButtonsWidth + acceptanceTimeWidth + loadDurationWidth;
|
|
1809
1810
|
const flexibleAreaWidth = `(100% - ${nonFlexibleAreaWidth}px)`;
|
|
1810
1811
|
const leftButtonsStyle = {
|
|
1811
1812
|
width: leftButtonsWidth,
|
|
@@ -1839,6 +1840,11 @@ const layerManagerStyle = {
|
|
|
1839
1840
|
'.column-acceptanceTime': {
|
|
1840
1841
|
width: acceptanceTimeWidth
|
|
1841
1842
|
},
|
|
1843
|
+
'.column-loadDuration': {
|
|
1844
|
+
width: loadDurationWidth,
|
|
1845
|
+
paddingLeft: 1,
|
|
1846
|
+
paddingRight: 1
|
|
1847
|
+
},
|
|
1842
1848
|
'.column-6': {
|
|
1843
1849
|
width: rightButtonsWidth,
|
|
1844
1850
|
display: 'inline-flex',
|
|
@@ -1872,7 +1878,7 @@ const layerManagerStyle = {
|
|
|
1872
1878
|
'.enable-btn-mini': {
|
|
1873
1879
|
display: 'inline-flex'
|
|
1874
1880
|
},
|
|
1875
|
-
'.activateLayer-btn, .enable-btn, .column-2, .column-3, .column-4, .column-5, .column-6, .column-7, .column-acceptanceTime': {
|
|
1881
|
+
'.activateLayer-btn, .enable-btn, .column-2, .column-3, .column-4, .column-5, .column-6, .column-7, .column-acceptanceTime, .column-loadDuration': {
|
|
1876
1882
|
display: 'none'
|
|
1877
1883
|
},
|
|
1878
1884
|
'#mappresets-menubutton, .addLayer-column, .setProjection-column': {
|
|
@@ -1906,7 +1912,7 @@ const layerManagerStyle = {
|
|
|
1906
1912
|
// sizes: medium
|
|
1907
1913
|
'@container (max-width: 600px)': {
|
|
1908
1914
|
'.layermanager': {
|
|
1909
|
-
'.column-3, .column-4, .column-5, .column-6, .column-7, .column-acceptanceTime': {
|
|
1915
|
+
'.column-3, .column-4, .column-5, .column-6, .column-7, .column-acceptanceTime, .column-loadDuration': {
|
|
1910
1916
|
display: 'none'
|
|
1911
1917
|
},
|
|
1912
1918
|
'.column-2': {
|
|
@@ -2051,24 +2057,31 @@ const DescriptionRow = _a => {
|
|
|
2051
2057
|
whiteSpace: 'nowrap'
|
|
2052
2058
|
}]
|
|
2053
2059
|
}, (_o = (_m = settings === null || settings === void 0 ? void 0 : settings.acceptanceTime) === null || _m === void 0 ? void 0 : _m.title) !== null && _o !== void 0 ? _o : 'Acc Time')), /*#__PURE__*/React.createElement(Grid, {
|
|
2060
|
+
className: columnClasses.loadDuration
|
|
2061
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
2062
|
+
sx: [styles$3.text, {
|
|
2063
|
+
display: 'flex',
|
|
2064
|
+
justifyContent: 'flex-end'
|
|
2065
|
+
}]
|
|
2066
|
+
}, /*#__PURE__*/React.createElement(CloudLoading, null))), /*#__PURE__*/React.createElement(Grid, {
|
|
2054
2067
|
className: columnClasses.column6
|
|
2055
2068
|
}));
|
|
2056
2069
|
};
|
|
2057
2070
|
|
|
2058
|
-
var $$
|
|
2071
|
+
var $$9 = _export;
|
|
2059
2072
|
var $includes = arrayIncludes.includes;
|
|
2060
|
-
var fails$
|
|
2073
|
+
var fails$b = fails$n;
|
|
2061
2074
|
var addToUnscopables = addToUnscopables$2;
|
|
2062
2075
|
|
|
2063
2076
|
// FF99+ bug
|
|
2064
|
-
var BROKEN_ON_SPARSE = fails$
|
|
2077
|
+
var BROKEN_ON_SPARSE = fails$b(function () {
|
|
2065
2078
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
2066
2079
|
return !Array(1).includes();
|
|
2067
2080
|
});
|
|
2068
2081
|
|
|
2069
2082
|
// `Array.prototype.includes` method
|
|
2070
2083
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
2071
|
-
$$
|
|
2084
|
+
$$9({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
2072
2085
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
2073
2086
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
2074
2087
|
}
|
|
@@ -2077,7 +2090,7 @@ $$6({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
|
2077
2090
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
2078
2091
|
addToUnscopables('includes');
|
|
2079
2092
|
|
|
2080
|
-
var isObject = isObject$
|
|
2093
|
+
var isObject$2 = isObject$a;
|
|
2081
2094
|
var classof$5 = classofRaw$1;
|
|
2082
2095
|
var wellKnownSymbol$5 = wellKnownSymbol$c;
|
|
2083
2096
|
|
|
@@ -2087,16 +2100,16 @@ var MATCH$1 = wellKnownSymbol$5('match');
|
|
|
2087
2100
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
2088
2101
|
var isRegexp = function (it) {
|
|
2089
2102
|
var isRegExp;
|
|
2090
|
-
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$5(it) === 'RegExp');
|
|
2103
|
+
return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$5(it) === 'RegExp');
|
|
2091
2104
|
};
|
|
2092
2105
|
|
|
2093
2106
|
var isRegExp = isRegexp;
|
|
2094
2107
|
|
|
2095
|
-
var $TypeError$
|
|
2108
|
+
var $TypeError$5 = TypeError;
|
|
2096
2109
|
|
|
2097
2110
|
var notARegexp = function (it) {
|
|
2098
2111
|
if (isRegExp(it)) {
|
|
2099
|
-
throw new $TypeError$
|
|
2112
|
+
throw new $TypeError$5("The method doesn't accept regular expressions");
|
|
2100
2113
|
} return it;
|
|
2101
2114
|
};
|
|
2102
2115
|
|
|
@@ -2110,7 +2123,7 @@ test$2[TO_STRING_TAG$1] = 'z';
|
|
|
2110
2123
|
var toStringTagSupport = String(test$2) === '[object z]';
|
|
2111
2124
|
|
|
2112
2125
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
2113
|
-
var isCallable$
|
|
2126
|
+
var isCallable$4 = isCallable$i;
|
|
2114
2127
|
var classofRaw = classofRaw$1;
|
|
2115
2128
|
var wellKnownSymbol$3 = wellKnownSymbol$c;
|
|
2116
2129
|
|
|
@@ -2136,14 +2149,14 @@ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
2136
2149
|
// builtinTag case
|
|
2137
2150
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
2138
2151
|
// ES3 arguments fallback
|
|
2139
|
-
: (result = classofRaw(O)) === 'Object' && isCallable$
|
|
2152
|
+
: (result = classofRaw(O)) === 'Object' && isCallable$4(O.callee) ? 'Arguments' : result;
|
|
2140
2153
|
};
|
|
2141
2154
|
|
|
2142
2155
|
var classof$3 = classof$4;
|
|
2143
2156
|
|
|
2144
2157
|
var $String = String;
|
|
2145
2158
|
|
|
2146
|
-
var toString$
|
|
2159
|
+
var toString$9 = function (argument) {
|
|
2147
2160
|
if (classof$3(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
2148
2161
|
return $String(argument);
|
|
2149
2162
|
};
|
|
@@ -2164,22 +2177,22 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
2164
2177
|
} return false;
|
|
2165
2178
|
};
|
|
2166
2179
|
|
|
2167
|
-
var $$
|
|
2168
|
-
var uncurryThis$
|
|
2180
|
+
var $$8 = _export;
|
|
2181
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
2169
2182
|
var notARegExp = notARegexp;
|
|
2170
2183
|
var requireObjectCoercible$4 = requireObjectCoercible$7;
|
|
2171
|
-
var toString$
|
|
2184
|
+
var toString$8 = toString$9;
|
|
2172
2185
|
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
2173
2186
|
|
|
2174
|
-
var stringIndexOf$1 = uncurryThis$
|
|
2187
|
+
var stringIndexOf$1 = uncurryThis$9(''.indexOf);
|
|
2175
2188
|
|
|
2176
2189
|
// `String.prototype.includes` method
|
|
2177
2190
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
2178
|
-
$$
|
|
2191
|
+
$$8({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
2179
2192
|
includes: function includes(searchString /* , position = 0 */) {
|
|
2180
2193
|
return !!~stringIndexOf$1(
|
|
2181
|
-
toString$
|
|
2182
|
-
toString$
|
|
2194
|
+
toString$8(requireObjectCoercible$4(this)),
|
|
2195
|
+
toString$8(notARegExp(searchString)),
|
|
2183
2196
|
arguments.length > 1 ? arguments[1] : undefined
|
|
2184
2197
|
);
|
|
2185
2198
|
}
|
|
@@ -2190,25 +2203,25 @@ var classof$2 = classofRaw$1;
|
|
|
2190
2203
|
// `IsArray` abstract operation
|
|
2191
2204
|
// https://tc39.es/ecma262/#sec-isarray
|
|
2192
2205
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
2193
|
-
var isArray$
|
|
2206
|
+
var isArray$2 = Array.isArray || function isArray(argument) {
|
|
2194
2207
|
return classof$2(argument) === 'Array';
|
|
2195
2208
|
};
|
|
2196
2209
|
|
|
2197
|
-
var $$
|
|
2198
|
-
var uncurryThis$
|
|
2199
|
-
var isArray = isArray$
|
|
2210
|
+
var $$7 = _export;
|
|
2211
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
2212
|
+
var isArray$1 = isArray$2;
|
|
2200
2213
|
|
|
2201
|
-
var nativeReverse = uncurryThis$
|
|
2214
|
+
var nativeReverse = uncurryThis$8([].reverse);
|
|
2202
2215
|
var test$1 = [1, 2];
|
|
2203
2216
|
|
|
2204
2217
|
// `Array.prototype.reverse` method
|
|
2205
2218
|
// https://tc39.es/ecma262/#sec-array.prototype.reverse
|
|
2206
2219
|
// fix for Safari 12.0 bug
|
|
2207
2220
|
// https://bugs.webkit.org/show_bug.cgi?id=188794
|
|
2208
|
-
$$
|
|
2221
|
+
$$7({ target: 'Array', proto: true, forced: String(test$1) === String(test$1.reverse()) }, {
|
|
2209
2222
|
reverse: function reverse() {
|
|
2210
2223
|
// eslint-disable-next-line no-self-assign -- dirty hack
|
|
2211
|
-
if (isArray(this)) this.length = this.length;
|
|
2224
|
+
if (isArray$1(this)) this.length = this.length;
|
|
2212
2225
|
return nativeReverse(this);
|
|
2213
2226
|
}
|
|
2214
2227
|
});
|
|
@@ -2689,6 +2702,83 @@ const LayerManagerMenuButton = ({
|
|
|
2689
2702
|
});
|
|
2690
2703
|
};
|
|
2691
2704
|
|
|
2705
|
+
var DESCRIPTORS$1 = descriptors;
|
|
2706
|
+
var isArray = isArray$2;
|
|
2707
|
+
|
|
2708
|
+
var $TypeError$4 = TypeError;
|
|
2709
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2710
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2711
|
+
|
|
2712
|
+
// Safari < 13 does not throw an error in this case
|
|
2713
|
+
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$1 && !function () {
|
|
2714
|
+
// makes no sense without proper strict mode support
|
|
2715
|
+
if (this !== undefined) return true;
|
|
2716
|
+
try {
|
|
2717
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2718
|
+
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
2719
|
+
} catch (error) {
|
|
2720
|
+
return error instanceof TypeError;
|
|
2721
|
+
}
|
|
2722
|
+
}();
|
|
2723
|
+
|
|
2724
|
+
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
2725
|
+
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
2726
|
+
throw new $TypeError$4('Cannot set read only .length');
|
|
2727
|
+
} return O.length = length;
|
|
2728
|
+
} : function (O, length) {
|
|
2729
|
+
return O.length = length;
|
|
2730
|
+
};
|
|
2731
|
+
|
|
2732
|
+
var $TypeError$3 = TypeError;
|
|
2733
|
+
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
2734
|
+
|
|
2735
|
+
var doesNotExceedSafeInteger$1 = function (it) {
|
|
2736
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError$3('Maximum allowed index exceeded');
|
|
2737
|
+
return it;
|
|
2738
|
+
};
|
|
2739
|
+
|
|
2740
|
+
var $$6 = _export;
|
|
2741
|
+
var toObject$3 = toObject$7;
|
|
2742
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$4;
|
|
2743
|
+
var setArrayLength = arraySetLength;
|
|
2744
|
+
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
2745
|
+
var fails$a = fails$n;
|
|
2746
|
+
|
|
2747
|
+
var INCORRECT_TO_LENGTH = fails$a(function () {
|
|
2748
|
+
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
2749
|
+
});
|
|
2750
|
+
|
|
2751
|
+
// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
|
|
2752
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
|
|
2753
|
+
var properErrorOnNonWritableLength = function () {
|
|
2754
|
+
try {
|
|
2755
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2756
|
+
Object.defineProperty([], 'length', { writable: false }).push();
|
|
2757
|
+
} catch (error) {
|
|
2758
|
+
return error instanceof TypeError;
|
|
2759
|
+
}
|
|
2760
|
+
};
|
|
2761
|
+
|
|
2762
|
+
var FORCED$3 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
|
2763
|
+
|
|
2764
|
+
// `Array.prototype.push` method
|
|
2765
|
+
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
2766
|
+
$$6({ target: 'Array', proto: true, arity: 1, forced: FORCED$3 }, {
|
|
2767
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2768
|
+
push: function push(item) {
|
|
2769
|
+
var O = toObject$3(this);
|
|
2770
|
+
var len = lengthOfArrayLike$2(O);
|
|
2771
|
+
var argCount = arguments.length;
|
|
2772
|
+
doesNotExceedSafeInteger(len + argCount);
|
|
2773
|
+
for (var i = 0; i < argCount; i++) {
|
|
2774
|
+
O[len] = arguments[i];
|
|
2775
|
+
len++;
|
|
2776
|
+
}
|
|
2777
|
+
setArrayLength(O, len);
|
|
2778
|
+
return len;
|
|
2779
|
+
}
|
|
2780
|
+
});
|
|
2781
|
+
|
|
2692
2782
|
const RenderStyles = ({
|
|
2693
2783
|
layerStyles,
|
|
2694
2784
|
currentLayerStyle,
|
|
@@ -2861,12 +2951,12 @@ function getIcon(isActive, isEnabled, current) {
|
|
|
2861
2951
|
});
|
|
2862
2952
|
}
|
|
2863
2953
|
|
|
2864
|
-
var anObject$
|
|
2954
|
+
var anObject$5 = anObject$b;
|
|
2865
2955
|
|
|
2866
2956
|
// `RegExp.prototype.flags` getter implementation
|
|
2867
2957
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
2868
2958
|
var regexpFlags$1 = function () {
|
|
2869
|
-
var that = anObject$
|
|
2959
|
+
var that = anObject$5(this);
|
|
2870
2960
|
var result = '';
|
|
2871
2961
|
if (that.hasIndices) result += 'd';
|
|
2872
2962
|
if (that.global) result += 'g';
|
|
@@ -2879,31 +2969,31 @@ var regexpFlags$1 = function () {
|
|
|
2879
2969
|
return result;
|
|
2880
2970
|
};
|
|
2881
2971
|
|
|
2882
|
-
var call$
|
|
2883
|
-
var hasOwn = hasOwnProperty_1;
|
|
2884
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
2972
|
+
var call$7 = functionCall;
|
|
2973
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
2974
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
2885
2975
|
var regExpFlags = regexpFlags$1;
|
|
2886
2976
|
|
|
2887
2977
|
var RegExpPrototype$2 = RegExp.prototype;
|
|
2888
2978
|
|
|
2889
2979
|
var regexpGetFlags = function (R) {
|
|
2890
2980
|
var flags = R.flags;
|
|
2891
|
-
return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$2, R)
|
|
2892
|
-
? call$
|
|
2981
|
+
return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn$1(R, 'flags') && isPrototypeOf$1(RegExpPrototype$2, R)
|
|
2982
|
+
? call$7(regExpFlags, R) : flags;
|
|
2893
2983
|
};
|
|
2894
2984
|
|
|
2895
2985
|
var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
|
|
2896
2986
|
var defineBuiltIn$1 = defineBuiltIn$5;
|
|
2897
|
-
var anObject$
|
|
2898
|
-
var $toString = toString$
|
|
2899
|
-
var fails$
|
|
2987
|
+
var anObject$4 = anObject$b;
|
|
2988
|
+
var $toString = toString$9;
|
|
2989
|
+
var fails$9 = fails$n;
|
|
2900
2990
|
var getRegExpFlags = regexpGetFlags;
|
|
2901
2991
|
|
|
2902
2992
|
var TO_STRING = 'toString';
|
|
2903
2993
|
var RegExpPrototype$1 = RegExp.prototype;
|
|
2904
2994
|
var nativeToString = RegExpPrototype$1[TO_STRING];
|
|
2905
2995
|
|
|
2906
|
-
var NOT_GENERIC = fails$
|
|
2996
|
+
var NOT_GENERIC = fails$9(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
|
|
2907
2997
|
// FF44- RegExp#toString has a wrong name
|
|
2908
2998
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && nativeToString.name !== TO_STRING;
|
|
2909
2999
|
|
|
@@ -2911,7 +3001,7 @@ var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && nativeToString.name !== TO_STRING
|
|
|
2911
3001
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
2912
3002
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
2913
3003
|
defineBuiltIn$1(RegExpPrototype$1, TO_STRING, function toString() {
|
|
2914
|
-
var R = anObject$
|
|
3004
|
+
var R = anObject$4(this);
|
|
2915
3005
|
var pattern = $toString(R.source);
|
|
2916
3006
|
var flags = $toString(getRegExpFlags(R));
|
|
2917
3007
|
return '/' + pattern + '/' + flags;
|
|
@@ -3057,6 +3147,101 @@ const getTextAndColor = layerIsInsideAcceptanceTime => {
|
|
|
3057
3147
|
};
|
|
3058
3148
|
};
|
|
3059
3149
|
|
|
3150
|
+
const MILLISECONDS_PER_SECOND = 1e3;
|
|
3151
|
+
const MAX_DURATION_IN_SECONDS = 60;
|
|
3152
|
+
const MIN_DURATION_IN_SECONDS = 0.1;
|
|
3153
|
+
const DECIMALS_IN_LABEL = 1;
|
|
3154
|
+
const DECIMALS_IN_TOOLTIP = 3;
|
|
3155
|
+
const LoadDuration = ({
|
|
3156
|
+
mapId,
|
|
3157
|
+
layerId
|
|
3158
|
+
}) => {
|
|
3159
|
+
const loadDurationLabel = useLoadDurationLabel(mapId, layerId);
|
|
3160
|
+
const [tooltipText, setTooltipText] = React.useState();
|
|
3161
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
3162
|
+
placement: "top",
|
|
3163
|
+
title: tooltipText,
|
|
3164
|
+
open: tooltipText !== undefined,
|
|
3165
|
+
onClose: () => setTooltipText(undefined),
|
|
3166
|
+
onOpen: () => {
|
|
3167
|
+
const duration = getImageLoadDuration(layerId);
|
|
3168
|
+
if (duration) {
|
|
3169
|
+
setTooltipText(getDurationTooltip(duration));
|
|
3170
|
+
}
|
|
3171
|
+
}
|
|
3172
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
3173
|
+
component: "div",
|
|
3174
|
+
variant: "subtitle2",
|
|
3175
|
+
whiteSpace: "nowrap",
|
|
3176
|
+
"data-testid": "loadDuration",
|
|
3177
|
+
sx: {
|
|
3178
|
+
fontSize: 12
|
|
3179
|
+
}
|
|
3180
|
+
}, loadDurationLabel));
|
|
3181
|
+
};
|
|
3182
|
+
const getDurationTooltip = milliSeconds => {
|
|
3183
|
+
if (milliSeconds === undefined) {
|
|
3184
|
+
return '-';
|
|
3185
|
+
}
|
|
3186
|
+
return `${roundToDecimals(milliSeconds / MILLISECONDS_PER_SECOND, DECIMALS_IN_TOOLTIP)} s`;
|
|
3187
|
+
};
|
|
3188
|
+
const getImageLoadDuration = layerId => {
|
|
3189
|
+
const layer = webmapUtils.getWMLayerById(layerId);
|
|
3190
|
+
const currentRequestedGetMapURL = layer === null || layer === void 0 ? void 0 : layer.getCurrentRequestedGetMapURL();
|
|
3191
|
+
if (currentRequestedGetMapURL === undefined) {
|
|
3192
|
+
return undefined;
|
|
3193
|
+
}
|
|
3194
|
+
const imageStore = layer.parentMap.getImageStore();
|
|
3195
|
+
const img = imageStore.getImageForSrc(currentRequestedGetMapURL);
|
|
3196
|
+
const loadDurationMs = img === null || img === void 0 ? void 0 : img.getLoadDuration();
|
|
3197
|
+
return loadDurationMs;
|
|
3198
|
+
};
|
|
3199
|
+
const roundToDecimals = (num, decimals) => {
|
|
3200
|
+
return num.toLocaleString(undefined, {
|
|
3201
|
+
maximumFractionDigits: decimals,
|
|
3202
|
+
useGrouping: false
|
|
3203
|
+
});
|
|
3204
|
+
};
|
|
3205
|
+
/**
|
|
3206
|
+
* Hook to subscribe to changes in the load duration for a map layer.
|
|
3207
|
+
* This will only trigger a render when the load duration rounded down to seconds changes for the given layer and map combination
|
|
3208
|
+
* @param mapId
|
|
3209
|
+
* @param layerId
|
|
3210
|
+
* @returns {number}
|
|
3211
|
+
*/
|
|
3212
|
+
const useLoadDurationLabel = (mapId, layerId) => {
|
|
3213
|
+
const subscribe = React.useCallback(onStoreChange => {
|
|
3214
|
+
const map = webmapUtils.getWMJSMapById(mapId);
|
|
3215
|
+
const layer = webmapUtils.getWMLayerById(layerId);
|
|
3216
|
+
const onImageLoad = image => {
|
|
3217
|
+
const currentRequestedGetMapURL = layer === null || layer === void 0 ? void 0 : layer.getCurrentRequestedGetMapURL();
|
|
3218
|
+
if (image.getSrc() === currentRequestedGetMapURL) {
|
|
3219
|
+
onStoreChange();
|
|
3220
|
+
}
|
|
3221
|
+
};
|
|
3222
|
+
map === null || map === void 0 ? void 0 : map.getListener().addEventListener('onimagebufferimageload', onImageLoad);
|
|
3223
|
+
return () => {
|
|
3224
|
+
var _a;
|
|
3225
|
+
(_a = map === null || map === void 0 ? void 0 : map.getListener()) === null || _a === void 0 ? void 0 : _a.removeEventListener('onimagebufferimageload', onImageLoad);
|
|
3226
|
+
};
|
|
3227
|
+
}, [mapId, layerId]);
|
|
3228
|
+
const getSnapshot = React.useCallback(() => {
|
|
3229
|
+
const loadDurationMs = getImageLoadDuration(layerId);
|
|
3230
|
+
if (loadDurationMs === undefined) {
|
|
3231
|
+
return '-';
|
|
3232
|
+
}
|
|
3233
|
+
const loadDurationInSeconds = loadDurationMs / MILLISECONDS_PER_SECOND;
|
|
3234
|
+
if (loadDurationInSeconds > MAX_DURATION_IN_SECONDS) {
|
|
3235
|
+
return `> ${MAX_DURATION_IN_SECONDS.toLocaleString()} s`;
|
|
3236
|
+
}
|
|
3237
|
+
if (loadDurationInSeconds < MIN_DURATION_IN_SECONDS) {
|
|
3238
|
+
return `< ${MIN_DURATION_IN_SECONDS.toLocaleString()} s`;
|
|
3239
|
+
}
|
|
3240
|
+
return `${roundToDecimals(loadDurationInSeconds, DECIMALS_IN_LABEL)} s`;
|
|
3241
|
+
}, [layerId]);
|
|
3242
|
+
return React.useSyncExternalStore(subscribe, getSnapshot);
|
|
3243
|
+
};
|
|
3244
|
+
|
|
3060
3245
|
/* *
|
|
3061
3246
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3062
3247
|
* you may not use this file except in compliance with the License.
|
|
@@ -3164,7 +3349,8 @@ const LayerRow = ({
|
|
|
3164
3349
|
disableActivateLayer,
|
|
3165
3350
|
dragHandle,
|
|
3166
3351
|
layerAcceptanceTimeLayout,
|
|
3167
|
-
layerMissingDataLayout
|
|
3352
|
+
layerMissingDataLayout,
|
|
3353
|
+
layerLoadDurationLayout
|
|
3168
3354
|
}) => {
|
|
3169
3355
|
const onClickRow = () => _onLayerRowClick(layerId);
|
|
3170
3356
|
const changeEnable = event => {
|
|
@@ -3244,6 +3430,10 @@ const LayerRow = ({
|
|
|
3244
3430
|
acceptanceTime: layer.acceptanceTimeInMinutes,
|
|
3245
3431
|
onChangeAcceptanceTime: changeAcceptanceTime
|
|
3246
3432
|
})),
|
|
3433
|
+
LoadDuration: layerLoadDurationLayout || ( /*#__PURE__*/React__default.createElement(LoadDuration, {
|
|
3434
|
+
layerId: layerId,
|
|
3435
|
+
mapId: mapId
|
|
3436
|
+
})),
|
|
3247
3437
|
ShowLayerInfo: layerShowLayerInfoLayout || /*#__PURE__*/React__default.createElement(ShowLayerInfo, {
|
|
3248
3438
|
onClick: () => {}
|
|
3249
3439
|
}),
|
|
@@ -3316,6 +3506,14 @@ const LayerRow = ({
|
|
|
3316
3506
|
}, layerAcceptanceTimeLayout || ( /*#__PURE__*/React__default.createElement(Acceptance, {
|
|
3317
3507
|
acceptanceTime: layer.acceptanceTimeInMinutes,
|
|
3318
3508
|
onChangeAcceptanceTime: changeAcceptanceTime
|
|
3509
|
+
}))), /*#__PURE__*/React__default.createElement(Grid, {
|
|
3510
|
+
item: true,
|
|
3511
|
+
display: "flex",
|
|
3512
|
+
justifyContent: "flex-end",
|
|
3513
|
+
className: columnClasses.loadDuration
|
|
3514
|
+
}, layerLoadDurationLayout || ( /*#__PURE__*/React__default.createElement(LoadDuration, {
|
|
3515
|
+
layerId: layerId,
|
|
3516
|
+
mapId: mapId
|
|
3319
3517
|
}))))), /*#__PURE__*/React__default.createElement(Grid, {
|
|
3320
3518
|
item: true,
|
|
3321
3519
|
className: columnClasses.column6,
|
|
@@ -3337,7 +3535,8 @@ const Accordion = ({
|
|
|
3337
3535
|
DeleteLayer,
|
|
3338
3536
|
Opacity,
|
|
3339
3537
|
layerName,
|
|
3340
|
-
LeftButtons
|
|
3538
|
+
LeftButtons,
|
|
3539
|
+
LoadDuration
|
|
3341
3540
|
}) => {
|
|
3342
3541
|
return /*#__PURE__*/React__default.createElement(CustomAccordion, {
|
|
3343
3542
|
className: "medium-layermanager",
|
|
@@ -3388,6 +3587,12 @@ const Accordion = ({
|
|
|
3388
3587
|
}, /*#__PURE__*/React__default.createElement(Grid, {
|
|
3389
3588
|
item: true
|
|
3390
3589
|
}, "Acc Time"), Acceptance), /*#__PURE__*/React__default.createElement(Grid, {
|
|
3590
|
+
container: true,
|
|
3591
|
+
item: true,
|
|
3592
|
+
flexDirection: "column"
|
|
3593
|
+
}, /*#__PURE__*/React__default.createElement(Grid, {
|
|
3594
|
+
item: true
|
|
3595
|
+
}, /*#__PURE__*/React__default.createElement(CloudLoading, null)), LoadDuration), /*#__PURE__*/React__default.createElement(Grid, {
|
|
3391
3596
|
container: true,
|
|
3392
3597
|
item: true,
|
|
3393
3598
|
justifyContent: "center",
|
|
@@ -4130,6 +4335,93 @@ const CustomDimensionSelectConnect = _a => {
|
|
|
4130
4335
|
}, props));
|
|
4131
4336
|
};
|
|
4132
4337
|
|
|
4338
|
+
/* *
|
|
4339
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4340
|
+
* you may not use this file except in compliance with the License.
|
|
4341
|
+
* You may obtain a copy of the License at
|
|
4342
|
+
*
|
|
4343
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4344
|
+
*
|
|
4345
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4346
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4347
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4348
|
+
* See the License for the specific language governing permissions and
|
|
4349
|
+
* limitations under the License.
|
|
4350
|
+
*
|
|
4351
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
4352
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
4353
|
+
* */
|
|
4354
|
+
const LayerInfoButtonConnect = ({
|
|
4355
|
+
isLayerMissing,
|
|
4356
|
+
mapId,
|
|
4357
|
+
serviceUrl,
|
|
4358
|
+
layerName,
|
|
4359
|
+
source: _source = 'app'
|
|
4360
|
+
}) => {
|
|
4361
|
+
const dispatch = useDispatch();
|
|
4362
|
+
const isOpenInStore = useSelector(store => uiSelectors.getisDialogOpen(store, uiTypes.DialogTypes.LayerInfo));
|
|
4363
|
+
const currentLayerInfo = useSelector(store => layerSelectors.getActiveLayerInfo(store));
|
|
4364
|
+
const isActive = layerName === (currentLayerInfo === null || currentLayerInfo === void 0 ? void 0 : currentLayerInfo.layerName) && serviceUrl === (currentLayerInfo === null || currentLayerInfo === void 0 ? void 0 : currentLayerInfo.serviceUrl) && isOpenInStore;
|
|
4365
|
+
const onClick = () => {
|
|
4366
|
+
if (!isActive) {
|
|
4367
|
+
dispatch(layerActions.showLayerInfo({
|
|
4368
|
+
layerName,
|
|
4369
|
+
serviceUrl,
|
|
4370
|
+
source: _source,
|
|
4371
|
+
mapId
|
|
4372
|
+
}));
|
|
4373
|
+
} else {
|
|
4374
|
+
dispatch(layerActions.hideLayerInfo());
|
|
4375
|
+
}
|
|
4376
|
+
};
|
|
4377
|
+
return /*#__PURE__*/React__default.createElement(LayerInfoButton, {
|
|
4378
|
+
disabled: isLayerMissing,
|
|
4379
|
+
isActive: isActive,
|
|
4380
|
+
onClick: onClick
|
|
4381
|
+
});
|
|
4382
|
+
};
|
|
4383
|
+
|
|
4384
|
+
/* *
|
|
4385
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4386
|
+
* you may not use this file except in compliance with the License.
|
|
4387
|
+
* You may obtain a copy of the License at
|
|
4388
|
+
*
|
|
4389
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4390
|
+
*
|
|
4391
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4392
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4393
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4394
|
+
* See the License for the specific language governing permissions and
|
|
4395
|
+
* limitations under the License.
|
|
4396
|
+
*
|
|
4397
|
+
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
4398
|
+
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
4399
|
+
* */
|
|
4400
|
+
const LayerInfoDialogConnect = () => {
|
|
4401
|
+
const layerInfo = useSelector(store => layerSelectors.getActiveLayerInfo(store));
|
|
4402
|
+
const layer = useSelector(store => serviceSelectors.getLayerFromService(store, (layerInfo === null || layerInfo === void 0 ? void 0 : layerInfo.serviceUrl) || '', layerInfo === null || layerInfo === void 0 ? void 0 : layerInfo.layerName));
|
|
4403
|
+
const currentService = useSelector(store => serviceSelectors.getServiceByUrl(store, (layerInfo === null || layerInfo === void 0 ? void 0 : layerInfo.serviceUrl) || ''));
|
|
4404
|
+
const {
|
|
4405
|
+
dialogOrder,
|
|
4406
|
+
onCloseDialog,
|
|
4407
|
+
setDialogOrder,
|
|
4408
|
+
uiSource,
|
|
4409
|
+
isDialogOpen
|
|
4410
|
+
} = useSetupDialog(uiTypes.DialogTypes.LayerInfo);
|
|
4411
|
+
if (!layer) {
|
|
4412
|
+
return null;
|
|
4413
|
+
}
|
|
4414
|
+
return /*#__PURE__*/React__default.createElement(LayerInfoDialog, {
|
|
4415
|
+
isOpen: isDialogOpen,
|
|
4416
|
+
onClose: onCloseDialog,
|
|
4417
|
+
onMouseDown: setDialogOrder,
|
|
4418
|
+
order: dialogOrder,
|
|
4419
|
+
source: uiSource,
|
|
4420
|
+
layer: layer,
|
|
4421
|
+
serviceName: currentService === null || currentService === void 0 ? void 0 : currentService.name
|
|
4422
|
+
});
|
|
4423
|
+
};
|
|
4424
|
+
|
|
4133
4425
|
// Whenever a new layer is added index is updated in the dragHandle, which modifies the testing text. Below we ignore this text, as it serves no other purpose.
|
|
4134
4426
|
const areEqual = (prevProps, nextProps) => {
|
|
4135
4427
|
if (prevProps.layerId === nextProps.layerId && prevProps.mapId === nextProps.mapId && prevProps.settings === nextProps.settings && prevProps.dragHandle.props.isDisabled === nextProps.dragHandle.props.isDisabled && prevProps.dragHandle.props.toolTipTitle === nextProps.dragHandle.props.toolTipTitle) {
|
|
@@ -4157,9 +4449,6 @@ const LayerRowConnect = /*#__PURE__*/React.memo(({
|
|
|
4157
4449
|
const currentService = useSelector(store => {
|
|
4158
4450
|
return serviceSelectors.getServiceByUrl(store, layerServiceUrl);
|
|
4159
4451
|
});
|
|
4160
|
-
const selectedLayer = Object.assign(Object.assign({}, layerWithAllData), {
|
|
4161
|
-
serviceName: currentService === null || currentService === void 0 ? void 0 : currentService.name
|
|
4162
|
-
});
|
|
4163
4452
|
const fullLayerName = serviceLayer === null || serviceLayer === void 0 ? void 0 : serviceLayer.title;
|
|
4164
4453
|
renderCounter.count(LayerRowConnect.name);
|
|
4165
4454
|
return /*#__PURE__*/React.createElement(LayerRow, {
|
|
@@ -4213,9 +4502,9 @@ const LayerRowConnect = /*#__PURE__*/React.memo(({
|
|
|
4213
4502
|
}, settings === null || settings === void 0 ? void 0 : settings.deleteLayer)),
|
|
4214
4503
|
layerShowLayerInfoLayout: /*#__PURE__*/React.createElement(LayerInfoButtonConnect, {
|
|
4215
4504
|
isLayerMissing: !serviceLayer,
|
|
4216
|
-
layer: selectedLayer,
|
|
4217
4505
|
mapId: mapId,
|
|
4218
|
-
|
|
4506
|
+
serviceUrl: currentService === null || currentService === void 0 ? void 0 : currentService.serviceUrl,
|
|
4507
|
+
layerName: (layerWithAllData === null || layerWithAllData === void 0 ? void 0 : layerWithAllData.name) || ''
|
|
4219
4508
|
}),
|
|
4220
4509
|
layerMenuLayout: /*#__PURE__*/React.createElement(LayerManagerMenuButtonConnect, Object.assign({
|
|
4221
4510
|
mapId: mapId,
|
|
@@ -4400,9 +4689,9 @@ const LayerContainerRow = /*#__PURE__*/React.memo(_a => {
|
|
|
4400
4689
|
});
|
|
4401
4690
|
|
|
4402
4691
|
var aCallable$1 = aCallable$4;
|
|
4403
|
-
var toObject$2 = toObject$
|
|
4692
|
+
var toObject$2 = toObject$7;
|
|
4404
4693
|
var IndexedObject = indexedObject;
|
|
4405
|
-
var lengthOfArrayLike$1 = lengthOfArrayLike$
|
|
4694
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$4;
|
|
4406
4695
|
|
|
4407
4696
|
var $TypeError$2 = TypeError;
|
|
4408
4697
|
|
|
@@ -4442,22 +4731,22 @@ var arrayReduce = {
|
|
|
4442
4731
|
right: createMethod$2(true)
|
|
4443
4732
|
};
|
|
4444
4733
|
|
|
4445
|
-
var fails$
|
|
4734
|
+
var fails$8 = fails$n;
|
|
4446
4735
|
|
|
4447
4736
|
var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
|
|
4448
4737
|
var method = [][METHOD_NAME];
|
|
4449
|
-
return !!method && fails$
|
|
4738
|
+
return !!method && fails$8(function () {
|
|
4450
4739
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
4451
4740
|
method.call(null, argument || function () { return 1; }, 1);
|
|
4452
4741
|
});
|
|
4453
4742
|
};
|
|
4454
4743
|
|
|
4455
|
-
var global$
|
|
4744
|
+
var global$5 = global$h;
|
|
4456
4745
|
var classof$1 = classofRaw$1;
|
|
4457
4746
|
|
|
4458
|
-
var engineIsNode = classof$1(global$
|
|
4747
|
+
var engineIsNode = classof$1(global$5.process) === 'process';
|
|
4459
4748
|
|
|
4460
|
-
var $$
|
|
4749
|
+
var $$5 = _export;
|
|
4461
4750
|
var $reduce = arrayReduce.left;
|
|
4462
4751
|
var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
|
|
4463
4752
|
var CHROME_VERSION = engineV8Version;
|
|
@@ -4466,11 +4755,11 @@ var IS_NODE = engineIsNode;
|
|
|
4466
4755
|
// Chrome 80-82 has a critical bug
|
|
4467
4756
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
4468
4757
|
var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
4469
|
-
var FORCED$
|
|
4758
|
+
var FORCED$2 = CHROME_BUG || !arrayMethodIsStrict$1('reduce');
|
|
4470
4759
|
|
|
4471
4760
|
// `Array.prototype.reduce` method
|
|
4472
4761
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
4473
|
-
$$
|
|
4762
|
+
$$5({ target: 'Array', proto: true, forced: FORCED$2 }, {
|
|
4474
4763
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
4475
4764
|
var length = arguments.length;
|
|
4476
4765
|
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
@@ -4610,13 +4899,13 @@ const BaseLayersConnect = ({
|
|
|
4610
4899
|
});
|
|
4611
4900
|
};
|
|
4612
4901
|
|
|
4613
|
-
var fails$
|
|
4614
|
-
var global$
|
|
4902
|
+
var fails$7 = fails$n;
|
|
4903
|
+
var global$4 = global$h;
|
|
4615
4904
|
|
|
4616
4905
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
4617
|
-
var $RegExp$2 = global$
|
|
4906
|
+
var $RegExp$2 = global$4.RegExp;
|
|
4618
4907
|
|
|
4619
|
-
var UNSUPPORTED_Y$1 = fails$
|
|
4908
|
+
var UNSUPPORTED_Y$1 = fails$7(function () {
|
|
4620
4909
|
var re = $RegExp$2('a', 'y');
|
|
4621
4910
|
re.lastIndex = 2;
|
|
4622
4911
|
return re.exec('abcd') !== null;
|
|
@@ -4624,11 +4913,11 @@ var UNSUPPORTED_Y$1 = fails$6(function () {
|
|
|
4624
4913
|
|
|
4625
4914
|
// UC Browser bug
|
|
4626
4915
|
// https://github.com/zloirock/core-js/issues/1008
|
|
4627
|
-
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$
|
|
4916
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$7(function () {
|
|
4628
4917
|
return !$RegExp$2('a', 'y').sticky;
|
|
4629
4918
|
});
|
|
4630
4919
|
|
|
4631
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$
|
|
4920
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$7(function () {
|
|
4632
4921
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
4633
4922
|
var re = $RegExp$2('^r', 'gy');
|
|
4634
4923
|
re.lastIndex = 2;
|
|
@@ -4641,24 +4930,24 @@ var regexpStickyHelpers = {
|
|
|
4641
4930
|
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
4642
4931
|
};
|
|
4643
4932
|
|
|
4644
|
-
var fails$
|
|
4645
|
-
var global$
|
|
4933
|
+
var fails$6 = fails$n;
|
|
4934
|
+
var global$3 = global$h;
|
|
4646
4935
|
|
|
4647
4936
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
4648
|
-
var $RegExp$1 = global$
|
|
4937
|
+
var $RegExp$1 = global$3.RegExp;
|
|
4649
4938
|
|
|
4650
|
-
var regexpUnsupportedDotAll = fails$
|
|
4939
|
+
var regexpUnsupportedDotAll = fails$6(function () {
|
|
4651
4940
|
var re = $RegExp$1('.', 's');
|
|
4652
4941
|
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
4653
4942
|
});
|
|
4654
4943
|
|
|
4655
|
-
var fails$
|
|
4656
|
-
var global$
|
|
4944
|
+
var fails$5 = fails$n;
|
|
4945
|
+
var global$2 = global$h;
|
|
4657
4946
|
|
|
4658
4947
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
4659
|
-
var $RegExp = global$
|
|
4948
|
+
var $RegExp = global$2.RegExp;
|
|
4660
4949
|
|
|
4661
|
-
var regexpUnsupportedNcg = fails$
|
|
4950
|
+
var regexpUnsupportedNcg = fails$5(function () {
|
|
4662
4951
|
var re = $RegExp('(?<a>b)', 'g');
|
|
4663
4952
|
return re.exec('b').groups.a !== 'b' ||
|
|
4664
4953
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -4666,9 +4955,9 @@ var regexpUnsupportedNcg = fails$4(function () {
|
|
|
4666
4955
|
|
|
4667
4956
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
4668
4957
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
4669
|
-
var call$
|
|
4670
|
-
var uncurryThis$
|
|
4671
|
-
var toString$
|
|
4958
|
+
var call$6 = functionCall;
|
|
4959
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
4960
|
+
var toString$7 = toString$9;
|
|
4672
4961
|
var regexpFlags = regexpFlags$1;
|
|
4673
4962
|
var stickyHelpers = regexpStickyHelpers;
|
|
4674
4963
|
var shared = shared$4.exports;
|
|
@@ -4680,16 +4969,16 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
|
4680
4969
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
4681
4970
|
var nativeExec = RegExp.prototype.exec;
|
|
4682
4971
|
var patchedExec = nativeExec;
|
|
4683
|
-
var charAt$3 = uncurryThis$
|
|
4684
|
-
var indexOf = uncurryThis$
|
|
4685
|
-
var replace$
|
|
4686
|
-
var stringSlice$3 = uncurryThis$
|
|
4972
|
+
var charAt$3 = uncurryThis$7(''.charAt);
|
|
4973
|
+
var indexOf = uncurryThis$7(''.indexOf);
|
|
4974
|
+
var replace$3 = uncurryThis$7(''.replace);
|
|
4975
|
+
var stringSlice$3 = uncurryThis$7(''.slice);
|
|
4687
4976
|
|
|
4688
4977
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
4689
4978
|
var re1 = /a/;
|
|
4690
4979
|
var re2 = /b*/g;
|
|
4691
|
-
call$
|
|
4692
|
-
call$
|
|
4980
|
+
call$6(nativeExec, re1, 'a');
|
|
4981
|
+
call$6(nativeExec, re2, 'a');
|
|
4693
4982
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
4694
4983
|
})();
|
|
4695
4984
|
|
|
@@ -4704,26 +4993,26 @@ if (PATCH) {
|
|
|
4704
4993
|
patchedExec = function exec(string) {
|
|
4705
4994
|
var re = this;
|
|
4706
4995
|
var state = getInternalState(re);
|
|
4707
|
-
var str = toString$
|
|
4996
|
+
var str = toString$7(string);
|
|
4708
4997
|
var raw = state.raw;
|
|
4709
4998
|
var result, reCopy, lastIndex, match, i, object, group;
|
|
4710
4999
|
|
|
4711
5000
|
if (raw) {
|
|
4712
5001
|
raw.lastIndex = re.lastIndex;
|
|
4713
|
-
result = call$
|
|
5002
|
+
result = call$6(patchedExec, raw, str);
|
|
4714
5003
|
re.lastIndex = raw.lastIndex;
|
|
4715
5004
|
return result;
|
|
4716
5005
|
}
|
|
4717
5006
|
|
|
4718
5007
|
var groups = state.groups;
|
|
4719
5008
|
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
4720
|
-
var flags = call$
|
|
5009
|
+
var flags = call$6(regexpFlags, re);
|
|
4721
5010
|
var source = re.source;
|
|
4722
5011
|
var charsAdded = 0;
|
|
4723
5012
|
var strCopy = str;
|
|
4724
5013
|
|
|
4725
5014
|
if (sticky) {
|
|
4726
|
-
flags = replace$
|
|
5015
|
+
flags = replace$3(flags, 'y', '');
|
|
4727
5016
|
if (indexOf(flags, 'g') === -1) {
|
|
4728
5017
|
flags += 'g';
|
|
4729
5018
|
}
|
|
@@ -4745,7 +5034,7 @@ if (PATCH) {
|
|
|
4745
5034
|
}
|
|
4746
5035
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
4747
5036
|
|
|
4748
|
-
match = call$
|
|
5037
|
+
match = call$6(nativeExec, sticky ? reCopy : re, strCopy);
|
|
4749
5038
|
|
|
4750
5039
|
if (sticky) {
|
|
4751
5040
|
if (match) {
|
|
@@ -4760,7 +5049,7 @@ if (PATCH) {
|
|
|
4760
5049
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
4761
5050
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
4762
5051
|
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
4763
|
-
call$
|
|
5052
|
+
call$6(nativeReplace, match[0], reCopy, function () {
|
|
4764
5053
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
4765
5054
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
4766
5055
|
}
|
|
@@ -4781,34 +5070,69 @@ if (PATCH) {
|
|
|
4781
5070
|
|
|
4782
5071
|
var regexpExec$2 = patchedExec;
|
|
4783
5072
|
|
|
4784
|
-
var $$
|
|
5073
|
+
var $$4 = _export;
|
|
4785
5074
|
var exec = regexpExec$2;
|
|
4786
5075
|
|
|
4787
5076
|
// `RegExp.prototype.exec` method
|
|
4788
5077
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
4789
|
-
$$
|
|
5078
|
+
$$4({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
4790
5079
|
exec: exec
|
|
4791
5080
|
});
|
|
4792
5081
|
|
|
5082
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
5083
|
+
|
|
5084
|
+
var $$3 = _export;
|
|
5085
|
+
var call$5 = functionCall;
|
|
5086
|
+
var isCallable$3 = isCallable$i;
|
|
5087
|
+
var anObject$3 = anObject$b;
|
|
5088
|
+
var toString$6 = toString$9;
|
|
5089
|
+
|
|
5090
|
+
var DELEGATES_TO_EXEC = function () {
|
|
5091
|
+
var execCalled = false;
|
|
5092
|
+
var re = /[ac]/;
|
|
5093
|
+
re.exec = function () {
|
|
5094
|
+
execCalled = true;
|
|
5095
|
+
return /./.exec.apply(this, arguments);
|
|
5096
|
+
};
|
|
5097
|
+
return re.test('abc') === true && execCalled;
|
|
5098
|
+
}();
|
|
5099
|
+
|
|
5100
|
+
var nativeTest = /./.test;
|
|
5101
|
+
|
|
5102
|
+
// `RegExp.prototype.test` method
|
|
5103
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
|
5104
|
+
$$3({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
5105
|
+
test: function (S) {
|
|
5106
|
+
var R = anObject$3(this);
|
|
5107
|
+
var string = toString$6(S);
|
|
5108
|
+
var exec = R.exec;
|
|
5109
|
+
if (!isCallable$3(exec)) return call$5(nativeTest, R, string);
|
|
5110
|
+
var result = call$5(exec, R, string);
|
|
5111
|
+
if (result === null) return false;
|
|
5112
|
+
anObject$3(result);
|
|
5113
|
+
return true;
|
|
5114
|
+
}
|
|
5115
|
+
});
|
|
5116
|
+
|
|
4793
5117
|
// a string of all valid unicode whitespaces
|
|
4794
5118
|
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
4795
5119
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
4796
5120
|
|
|
4797
|
-
var uncurryThis$
|
|
5121
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
4798
5122
|
var requireObjectCoercible$3 = requireObjectCoercible$7;
|
|
4799
|
-
var toString$
|
|
5123
|
+
var toString$5 = toString$9;
|
|
4800
5124
|
var whitespaces$1 = whitespaces$2;
|
|
4801
5125
|
|
|
4802
|
-
var replace$
|
|
5126
|
+
var replace$2 = uncurryThis$6(''.replace);
|
|
4803
5127
|
var ltrim = RegExp('^[' + whitespaces$1 + ']+');
|
|
4804
5128
|
var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
|
|
4805
5129
|
|
|
4806
5130
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
4807
5131
|
var createMethod$1 = function (TYPE) {
|
|
4808
5132
|
return function ($this) {
|
|
4809
|
-
var string = toString$
|
|
4810
|
-
if (TYPE & 1) string = replace$
|
|
4811
|
-
if (TYPE & 2) string = replace$
|
|
5133
|
+
var string = toString$5(requireObjectCoercible$3($this));
|
|
5134
|
+
if (TYPE & 1) string = replace$2(string, ltrim, '');
|
|
5135
|
+
if (TYPE & 2) string = replace$2(string, rtrim, '$1');
|
|
4812
5136
|
return string;
|
|
4813
5137
|
};
|
|
4814
5138
|
};
|
|
@@ -4826,7 +5150,7 @@ var stringTrim = {
|
|
|
4826
5150
|
};
|
|
4827
5151
|
|
|
4828
5152
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
4829
|
-
var fails$
|
|
5153
|
+
var fails$4 = fails$n;
|
|
4830
5154
|
var whitespaces = whitespaces$2;
|
|
4831
5155
|
|
|
4832
5156
|
var non = '\u200B\u0085\u180E';
|
|
@@ -4834,20 +5158,20 @@ var non = '\u200B\u0085\u180E';
|
|
|
4834
5158
|
// check that a method works with the correct list
|
|
4835
5159
|
// of whitespaces and has a correct name
|
|
4836
5160
|
var stringTrimForced = function (METHOD_NAME) {
|
|
4837
|
-
return fails$
|
|
5161
|
+
return fails$4(function () {
|
|
4838
5162
|
return !!whitespaces[METHOD_NAME]()
|
|
4839
5163
|
|| non[METHOD_NAME]() !== non
|
|
4840
5164
|
|| (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
|
|
4841
5165
|
});
|
|
4842
5166
|
};
|
|
4843
5167
|
|
|
4844
|
-
var $$
|
|
5168
|
+
var $$2 = _export;
|
|
4845
5169
|
var $trim = stringTrim.trim;
|
|
4846
5170
|
var forcedStringTrimMethod = stringTrimForced;
|
|
4847
5171
|
|
|
4848
5172
|
// `String.prototype.trim` method
|
|
4849
5173
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
4850
|
-
$$
|
|
5174
|
+
$$2({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
|
4851
5175
|
trim: function trim() {
|
|
4852
5176
|
return $trim(this);
|
|
4853
5177
|
}
|
|
@@ -4861,9 +5185,9 @@ var deletePropertyOrThrow$1 = function (O, P) {
|
|
|
4861
5185
|
if (!delete O[P]) throw new $TypeError$1('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
|
|
4862
5186
|
};
|
|
4863
5187
|
|
|
4864
|
-
var uncurryThis$
|
|
5188
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
4865
5189
|
|
|
4866
|
-
var arraySlice$1 = uncurryThis$
|
|
5190
|
+
var arraySlice$1 = uncurryThis$5([].slice);
|
|
4867
5191
|
|
|
4868
5192
|
var arraySlice = arraySlice$1;
|
|
4869
5193
|
|
|
@@ -4923,14 +5247,14 @@ var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
|
|
|
4923
5247
|
|
|
4924
5248
|
var engineWebkitVersion = !!webkit && +webkit[1];
|
|
4925
5249
|
|
|
4926
|
-
var
|
|
4927
|
-
var uncurryThis$
|
|
5250
|
+
var $$1 = _export;
|
|
5251
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
4928
5252
|
var aCallable = aCallable$4;
|
|
4929
|
-
var toObject$1 = toObject$
|
|
4930
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
5253
|
+
var toObject$1 = toObject$7;
|
|
5254
|
+
var lengthOfArrayLike = lengthOfArrayLike$4;
|
|
4931
5255
|
var deletePropertyOrThrow = deletePropertyOrThrow$1;
|
|
4932
|
-
var toString$
|
|
4933
|
-
var fails$
|
|
5256
|
+
var toString$4 = toString$9;
|
|
5257
|
+
var fails$3 = fails$n;
|
|
4934
5258
|
var internalSort = arraySort;
|
|
4935
5259
|
var arrayMethodIsStrict = arrayMethodIsStrict$2;
|
|
4936
5260
|
var FF = engineFfVersion;
|
|
@@ -4939,21 +5263,21 @@ var V8 = engineV8Version;
|
|
|
4939
5263
|
var WEBKIT = engineWebkitVersion;
|
|
4940
5264
|
|
|
4941
5265
|
var test = [];
|
|
4942
|
-
var nativeSort = uncurryThis$
|
|
4943
|
-
var push$1 = uncurryThis$
|
|
5266
|
+
var nativeSort = uncurryThis$4(test.sort);
|
|
5267
|
+
var push$1 = uncurryThis$4(test.push);
|
|
4944
5268
|
|
|
4945
5269
|
// IE8-
|
|
4946
|
-
var FAILS_ON_UNDEFINED = fails$
|
|
5270
|
+
var FAILS_ON_UNDEFINED = fails$3(function () {
|
|
4947
5271
|
test.sort(undefined);
|
|
4948
5272
|
});
|
|
4949
5273
|
// V8 bug
|
|
4950
|
-
var FAILS_ON_NULL = fails$
|
|
5274
|
+
var FAILS_ON_NULL = fails$3(function () {
|
|
4951
5275
|
test.sort(null);
|
|
4952
5276
|
});
|
|
4953
5277
|
// Old WebKit
|
|
4954
5278
|
var STRICT_METHOD = arrayMethodIsStrict('sort');
|
|
4955
5279
|
|
|
4956
|
-
var STABLE_SORT = !fails$
|
|
5280
|
+
var STABLE_SORT = !fails$3(function () {
|
|
4957
5281
|
// feature detection can be too slow, so check engines versions
|
|
4958
5282
|
if (V8) return V8 < 70;
|
|
4959
5283
|
if (FF && FF > 3) return;
|
|
@@ -4988,20 +5312,20 @@ var STABLE_SORT = !fails$2(function () {
|
|
|
4988
5312
|
return result !== 'DGBEFHACIJK';
|
|
4989
5313
|
});
|
|
4990
5314
|
|
|
4991
|
-
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
|
|
5315
|
+
var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
|
|
4992
5316
|
|
|
4993
5317
|
var getSortCompare = function (comparefn) {
|
|
4994
5318
|
return function (x, y) {
|
|
4995
5319
|
if (y === undefined) return -1;
|
|
4996
5320
|
if (x === undefined) return 1;
|
|
4997
5321
|
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
|
4998
|
-
return toString$
|
|
5322
|
+
return toString$4(x) > toString$4(y) ? 1 : -1;
|
|
4999
5323
|
};
|
|
5000
5324
|
};
|
|
5001
5325
|
|
|
5002
5326
|
// `Array.prototype.sort` method
|
|
5003
5327
|
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
|
5004
|
-
|
|
5328
|
+
$$1({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
|
5005
5329
|
sort: function sort(comparefn) {
|
|
5006
5330
|
if (comparefn !== undefined) aCallable(comparefn);
|
|
5007
5331
|
|
|
@@ -6621,14 +6945,234 @@ const ZoomControlConnect = ({
|
|
|
6621
6945
|
});
|
|
6622
6946
|
};
|
|
6623
6947
|
|
|
6948
|
+
var NATIVE_BIND = functionBindNative;
|
|
6949
|
+
|
|
6950
|
+
var FunctionPrototype = Function.prototype;
|
|
6951
|
+
var apply$2 = FunctionPrototype.apply;
|
|
6952
|
+
var call$4 = FunctionPrototype.call;
|
|
6953
|
+
|
|
6954
|
+
// eslint-disable-next-line es/no-reflect -- safe
|
|
6955
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$4.bind(apply$2) : function () {
|
|
6956
|
+
return call$4.apply(apply$2, arguments);
|
|
6957
|
+
});
|
|
6958
|
+
|
|
6959
|
+
var defineProperty = objectDefineProperty.f;
|
|
6960
|
+
|
|
6961
|
+
var proxyAccessor$1 = function (Target, Source, key) {
|
|
6962
|
+
key in Target || defineProperty(Target, key, {
|
|
6963
|
+
configurable: true,
|
|
6964
|
+
get: function () { return Source[key]; },
|
|
6965
|
+
set: function (it) { Source[key] = it; }
|
|
6966
|
+
});
|
|
6967
|
+
};
|
|
6968
|
+
|
|
6969
|
+
var isCallable$2 = isCallable$i;
|
|
6970
|
+
var isObject$1 = isObject$a;
|
|
6971
|
+
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
6972
|
+
|
|
6973
|
+
// makes subclassing work correct for wrapped built-ins
|
|
6974
|
+
var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
|
|
6975
|
+
var NewTarget, NewTargetPrototype;
|
|
6976
|
+
if (
|
|
6977
|
+
// it can work only with native `setPrototypeOf`
|
|
6978
|
+
setPrototypeOf$1 &&
|
|
6979
|
+
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
6980
|
+
isCallable$2(NewTarget = dummy.constructor) &&
|
|
6981
|
+
NewTarget !== Wrapper &&
|
|
6982
|
+
isObject$1(NewTargetPrototype = NewTarget.prototype) &&
|
|
6983
|
+
NewTargetPrototype !== Wrapper.prototype
|
|
6984
|
+
) setPrototypeOf$1($this, NewTargetPrototype);
|
|
6985
|
+
return $this;
|
|
6986
|
+
};
|
|
6987
|
+
|
|
6988
|
+
var toString$3 = toString$9;
|
|
6989
|
+
|
|
6990
|
+
var normalizeStringArgument$1 = function (argument, $default) {
|
|
6991
|
+
return argument === undefined ? arguments.length < 2 ? '' : $default : toString$3(argument);
|
|
6992
|
+
};
|
|
6993
|
+
|
|
6994
|
+
var isObject = isObject$a;
|
|
6995
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
|
|
6996
|
+
|
|
6997
|
+
// `InstallErrorCause` abstract operation
|
|
6998
|
+
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
|
|
6999
|
+
var installErrorCause$1 = function (O, options) {
|
|
7000
|
+
if (isObject(options) && 'cause' in options) {
|
|
7001
|
+
createNonEnumerableProperty$3(O, 'cause', options.cause);
|
|
7002
|
+
}
|
|
7003
|
+
};
|
|
7004
|
+
|
|
7005
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
7006
|
+
|
|
7007
|
+
var $Error = Error;
|
|
7008
|
+
var replace$1 = uncurryThis$3(''.replace);
|
|
7009
|
+
|
|
7010
|
+
var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
|
|
7011
|
+
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
7012
|
+
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
7013
|
+
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
7014
|
+
|
|
7015
|
+
var errorStackClear = function (stack, dropEntries) {
|
|
7016
|
+
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
|
|
7017
|
+
while (dropEntries--) stack = replace$1(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
|
|
7018
|
+
} return stack;
|
|
7019
|
+
};
|
|
7020
|
+
|
|
7021
|
+
var fails$2 = fails$n;
|
|
7022
|
+
var createPropertyDescriptor = createPropertyDescriptor$4;
|
|
7023
|
+
|
|
7024
|
+
var errorStackInstallable = !fails$2(function () {
|
|
7025
|
+
var error = new Error('a');
|
|
7026
|
+
if (!('stack' in error)) return true;
|
|
7027
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
7028
|
+
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
|
7029
|
+
return error.stack !== 7;
|
|
7030
|
+
});
|
|
7031
|
+
|
|
7032
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
|
|
7033
|
+
var clearErrorStack = errorStackClear;
|
|
7034
|
+
var ERROR_STACK_INSTALLABLE = errorStackInstallable;
|
|
7035
|
+
|
|
7036
|
+
// non-standard V8
|
|
7037
|
+
var captureStackTrace = Error.captureStackTrace;
|
|
7038
|
+
|
|
7039
|
+
var errorStackInstall = function (error, C, stack, dropEntries) {
|
|
7040
|
+
if (ERROR_STACK_INSTALLABLE) {
|
|
7041
|
+
if (captureStackTrace) captureStackTrace(error, C);
|
|
7042
|
+
else createNonEnumerableProperty$2(error, 'stack', clearErrorStack(stack, dropEntries));
|
|
7043
|
+
}
|
|
7044
|
+
};
|
|
7045
|
+
|
|
7046
|
+
var getBuiltIn = getBuiltIn$4;
|
|
7047
|
+
var hasOwn = hasOwnProperty_1;
|
|
7048
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
|
|
7049
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
7050
|
+
var setPrototypeOf = objectSetPrototypeOf;
|
|
7051
|
+
var copyConstructorProperties = copyConstructorProperties$2;
|
|
7052
|
+
var proxyAccessor = proxyAccessor$1;
|
|
7053
|
+
var inheritIfRequired = inheritIfRequired$1;
|
|
7054
|
+
var normalizeStringArgument = normalizeStringArgument$1;
|
|
7055
|
+
var installErrorCause = installErrorCause$1;
|
|
7056
|
+
var installErrorStack = errorStackInstall;
|
|
7057
|
+
var DESCRIPTORS = descriptors;
|
|
7058
|
+
|
|
7059
|
+
var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
7060
|
+
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
7061
|
+
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
|
7062
|
+
var path = FULL_NAME.split('.');
|
|
7063
|
+
var ERROR_NAME = path[path.length - 1];
|
|
7064
|
+
var OriginalError = getBuiltIn.apply(null, path);
|
|
7065
|
+
|
|
7066
|
+
if (!OriginalError) return;
|
|
7067
|
+
|
|
7068
|
+
var OriginalErrorPrototype = OriginalError.prototype;
|
|
7069
|
+
|
|
7070
|
+
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
7071
|
+
if (hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
7072
|
+
|
|
7073
|
+
if (!FORCED) return OriginalError;
|
|
7074
|
+
|
|
7075
|
+
var BaseError = getBuiltIn('Error');
|
|
7076
|
+
|
|
7077
|
+
var WrappedError = wrapper(function (a, b) {
|
|
7078
|
+
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
7079
|
+
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
7080
|
+
if (message !== undefined) createNonEnumerableProperty$1(result, 'message', message);
|
|
7081
|
+
installErrorStack(result, WrappedError, result.stack, 2);
|
|
7082
|
+
if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
7083
|
+
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
7084
|
+
return result;
|
|
7085
|
+
});
|
|
7086
|
+
|
|
7087
|
+
WrappedError.prototype = OriginalErrorPrototype;
|
|
7088
|
+
|
|
7089
|
+
if (ERROR_NAME !== 'Error') {
|
|
7090
|
+
if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
|
|
7091
|
+
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
7092
|
+
} else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
|
|
7093
|
+
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
7094
|
+
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
7095
|
+
}
|
|
7096
|
+
|
|
7097
|
+
copyConstructorProperties(WrappedError, OriginalError);
|
|
7098
|
+
|
|
7099
|
+
try {
|
|
7100
|
+
// Safari 13- bug: WebAssembly errors does not have a proper `.name`
|
|
7101
|
+
if (OriginalErrorPrototype.name !== ERROR_NAME) {
|
|
7102
|
+
createNonEnumerableProperty$1(OriginalErrorPrototype, 'name', ERROR_NAME);
|
|
7103
|
+
}
|
|
7104
|
+
OriginalErrorPrototype.constructor = WrappedError;
|
|
7105
|
+
} catch (error) { /* empty */ }
|
|
7106
|
+
|
|
7107
|
+
return WrappedError;
|
|
7108
|
+
};
|
|
7109
|
+
|
|
7110
|
+
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
7111
|
+
var $ = _export;
|
|
7112
|
+
var global$1 = global$h;
|
|
7113
|
+
var apply$1 = functionApply;
|
|
7114
|
+
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
7115
|
+
|
|
7116
|
+
var WEB_ASSEMBLY = 'WebAssembly';
|
|
7117
|
+
var WebAssembly = global$1[WEB_ASSEMBLY];
|
|
7118
|
+
|
|
7119
|
+
// eslint-disable-next-line es/no-error-cause -- feature detection
|
|
7120
|
+
var FORCED = new Error('e', { cause: 7 }).cause !== 7;
|
|
7121
|
+
|
|
7122
|
+
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
7123
|
+
var O = {};
|
|
7124
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
|
|
7125
|
+
$({ global: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
7126
|
+
};
|
|
7127
|
+
|
|
7128
|
+
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
7129
|
+
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
7130
|
+
var O = {};
|
|
7131
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
|
|
7132
|
+
$({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
7133
|
+
}
|
|
7134
|
+
};
|
|
7135
|
+
|
|
7136
|
+
// https://tc39.es/ecma262/#sec-nativeerror
|
|
7137
|
+
exportGlobalErrorCauseWrapper('Error', function (init) {
|
|
7138
|
+
return function Error(message) { return apply$1(init, this, arguments); };
|
|
7139
|
+
});
|
|
7140
|
+
exportGlobalErrorCauseWrapper('EvalError', function (init) {
|
|
7141
|
+
return function EvalError(message) { return apply$1(init, this, arguments); };
|
|
7142
|
+
});
|
|
7143
|
+
exportGlobalErrorCauseWrapper('RangeError', function (init) {
|
|
7144
|
+
return function RangeError(message) { return apply$1(init, this, arguments); };
|
|
7145
|
+
});
|
|
7146
|
+
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
|
|
7147
|
+
return function ReferenceError(message) { return apply$1(init, this, arguments); };
|
|
7148
|
+
});
|
|
7149
|
+
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
|
|
7150
|
+
return function SyntaxError(message) { return apply$1(init, this, arguments); };
|
|
7151
|
+
});
|
|
7152
|
+
exportGlobalErrorCauseWrapper('TypeError', function (init) {
|
|
7153
|
+
return function TypeError(message) { return apply$1(init, this, arguments); };
|
|
7154
|
+
});
|
|
7155
|
+
exportGlobalErrorCauseWrapper('URIError', function (init) {
|
|
7156
|
+
return function URIError(message) { return apply$1(init, this, arguments); };
|
|
7157
|
+
});
|
|
7158
|
+
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
|
|
7159
|
+
return function CompileError(message) { return apply$1(init, this, arguments); };
|
|
7160
|
+
});
|
|
7161
|
+
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
|
|
7162
|
+
return function LinkError(message) { return apply$1(init, this, arguments); };
|
|
7163
|
+
});
|
|
7164
|
+
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
7165
|
+
return function RuntimeError(message) { return apply$1(init, this, arguments); };
|
|
7166
|
+
});
|
|
7167
|
+
|
|
6624
7168
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
6625
7169
|
|
|
6626
|
-
var call$
|
|
7170
|
+
var call$3 = functionCall;
|
|
6627
7171
|
var defineBuiltIn = defineBuiltIn$5;
|
|
6628
7172
|
var regexpExec$1 = regexpExec$2;
|
|
6629
|
-
var fails$1 = fails$
|
|
7173
|
+
var fails$1 = fails$n;
|
|
6630
7174
|
var wellKnownSymbol$1 = wellKnownSymbol$c;
|
|
6631
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
7175
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$8;
|
|
6632
7176
|
|
|
6633
7177
|
var SPECIES = wellKnownSymbol$1('species');
|
|
6634
7178
|
var RegExpPrototype = RegExp.prototype;
|
|
@@ -6683,9 +7227,9 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
6683
7227
|
// The native String method already delegates to @@method (this
|
|
6684
7228
|
// polyfilled function), leasing to infinite recursion.
|
|
6685
7229
|
// We avoid it by directly calling the native @@method method.
|
|
6686
|
-
return { done: true, value: call$
|
|
7230
|
+
return { done: true, value: call$3(nativeRegExpMethod, regexp, str, arg2) };
|
|
6687
7231
|
}
|
|
6688
|
-
return { done: true, value: call$
|
|
7232
|
+
return { done: true, value: call$3(nativeMethod, str, regexp, arg2) };
|
|
6689
7233
|
}
|
|
6690
7234
|
return { done: false };
|
|
6691
7235
|
});
|
|
@@ -6699,7 +7243,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
6699
7243
|
|
|
6700
7244
|
var uncurryThis$2 = functionUncurryThis;
|
|
6701
7245
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
|
6702
|
-
var toString$2 = toString$
|
|
7246
|
+
var toString$2 = toString$9;
|
|
6703
7247
|
var requireObjectCoercible$2 = requireObjectCoercible$7;
|
|
6704
7248
|
|
|
6705
7249
|
var charAt$2 = uncurryThis$2(''.charAt);
|
|
@@ -6742,9 +7286,9 @@ var advanceStringIndex$2 = function (S, index, unicode) {
|
|
|
6742
7286
|
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
6743
7287
|
};
|
|
6744
7288
|
|
|
6745
|
-
var call$
|
|
6746
|
-
var anObject$2 = anObject$
|
|
6747
|
-
var isCallable$1 = isCallable$
|
|
7289
|
+
var call$2 = functionCall;
|
|
7290
|
+
var anObject$2 = anObject$b;
|
|
7291
|
+
var isCallable$1 = isCallable$i;
|
|
6748
7292
|
var classof = classofRaw$1;
|
|
6749
7293
|
var regexpExec = regexpExec$2;
|
|
6750
7294
|
|
|
@@ -6755,20 +7299,20 @@ var $TypeError = TypeError;
|
|
|
6755
7299
|
var regexpExecAbstract = function (R, S) {
|
|
6756
7300
|
var exec = R.exec;
|
|
6757
7301
|
if (isCallable$1(exec)) {
|
|
6758
|
-
var result = call$
|
|
7302
|
+
var result = call$2(exec, R, S);
|
|
6759
7303
|
if (result !== null) anObject$2(result);
|
|
6760
7304
|
return result;
|
|
6761
7305
|
}
|
|
6762
|
-
if (classof(R) === 'RegExp') return call$
|
|
7306
|
+
if (classof(R) === 'RegExp') return call$2(regexpExec, R, S);
|
|
6763
7307
|
throw new $TypeError('RegExp#exec called on incompatible receiver');
|
|
6764
7308
|
};
|
|
6765
7309
|
|
|
6766
|
-
var call$
|
|
7310
|
+
var call$1 = functionCall;
|
|
6767
7311
|
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
6768
|
-
var anObject$1 = anObject$
|
|
7312
|
+
var anObject$1 = anObject$b;
|
|
6769
7313
|
var isNullOrUndefined$1 = isNullOrUndefined$4;
|
|
6770
7314
|
var toLength$1 = toLength$3;
|
|
6771
|
-
var toString$1 = toString$
|
|
7315
|
+
var toString$1 = toString$9;
|
|
6772
7316
|
var requireObjectCoercible$1 = requireObjectCoercible$7;
|
|
6773
7317
|
var getMethod$1 = getMethod$3;
|
|
6774
7318
|
var advanceStringIndex$1 = advanceStringIndex$2;
|
|
@@ -6782,7 +7326,7 @@ fixRegExpWellKnownSymbolLogic$1('match', function (MATCH, nativeMatch, maybeCall
|
|
|
6782
7326
|
function match(regexp) {
|
|
6783
7327
|
var O = requireObjectCoercible$1(this);
|
|
6784
7328
|
var matcher = isNullOrUndefined$1(regexp) ? undefined : getMethod$1(regexp, MATCH);
|
|
6785
|
-
return matcher ? call$
|
|
7329
|
+
return matcher ? call$1(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$1(O));
|
|
6786
7330
|
},
|
|
6787
7331
|
// `RegExp.prototype[@@match]` method
|
|
6788
7332
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
|
@@ -7183,7 +7727,7 @@ const MapViewConnect = _a => {
|
|
|
7183
7727
|
setTime({
|
|
7184
7728
|
sourceId: mapId,
|
|
7185
7729
|
origin: `${mapDimensionPayload.origin}==> ${ORIGIN_REACTMAPVIEWCONNECT_ONMAPCHANGEDIMENSION}`,
|
|
7186
|
-
value:
|
|
7730
|
+
value: handleDateUtilsISOString(mapDimensionPayload.dimension.currentValue)
|
|
7187
7731
|
});
|
|
7188
7732
|
} else {
|
|
7189
7733
|
mapChangeDimension(mapDimensionPayload);
|
|
@@ -8125,7 +8669,7 @@ const NowButtonConnect = ({
|
|
|
8125
8669
|
isDisabled
|
|
8126
8670
|
}) => {
|
|
8127
8671
|
const dispatch = useDispatch();
|
|
8128
|
-
const currentTime =
|
|
8672
|
+
const currentTime = dateUtils.unix(dateUtils.utc());
|
|
8129
8673
|
const timeStep = useSelector(store => mapSelectors.getMapTimeStep(store, mapId));
|
|
8130
8674
|
const [dataStartTime, dataEndTime] = useSelector(store => mapSelectors.getDataLimitsFromLayers(store, mapId));
|
|
8131
8675
|
const isAnimating = useSelector(store => mapSelectors.isAnimating(store, mapId));
|
|
@@ -8140,7 +8684,7 @@ const NowButtonConnect = ({
|
|
|
8140
8684
|
dispatch(genericActions.setTime({
|
|
8141
8685
|
sourceId,
|
|
8142
8686
|
origin: 'NowButtonConnect, 140',
|
|
8143
|
-
value:
|
|
8687
|
+
value: handleDateUtilsISOString(newDate)
|
|
8144
8688
|
}));
|
|
8145
8689
|
};
|
|
8146
8690
|
const onSetCenterTime = newTime => {
|
|
@@ -8178,12 +8722,14 @@ const AnimationLengthButtonConnect = ({
|
|
|
8178
8722
|
const isAnimating = useSelector(store => mapSelectors.isAnimating(store, mapId));
|
|
8179
8723
|
const animationStartTime = useSelector(store => mapSelectors.getAnimationStartTime(store, mapId));
|
|
8180
8724
|
const animationEndTime = useSelector(store => mapSelectors.getAnimationEndTime(store, mapId));
|
|
8181
|
-
const currentDiffInMinutes =
|
|
8725
|
+
const currentDiffInMinutes = dateUtils.differenceInMinutes(dateUtils.utc(animationEndTime), dateUtils.utc(animationStartTime));
|
|
8182
8726
|
const handlechangeAnimationLength = length => {
|
|
8183
|
-
const animationEndTime =
|
|
8727
|
+
const animationEndTime = dateUtils.dateToIsoString(dateUtils.add(dateUtils.utc(animationStartTime), {
|
|
8728
|
+
minutes: length
|
|
8729
|
+
}));
|
|
8184
8730
|
dispatch(mapActions.setAnimationEndTime({
|
|
8185
8731
|
mapId,
|
|
8186
|
-
animationEndTime,
|
|
8732
|
+
animationEndTime: animationEndTime || dateUtils.dateToIsoString(dateUtils.utc()),
|
|
8187
8733
|
origin: mapEnums.MapActionOrigin.map
|
|
8188
8734
|
}));
|
|
8189
8735
|
};
|
|
@@ -8721,7 +9267,7 @@ const useUpdateTimeSpan = (mapId, myOnSetTimeSliderSpan) => {
|
|
|
8721
9267
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
8722
9268
|
}, [autoTimeStepLayerId, isTimeSpanAuto, activeLayerTimeDimension, mapId]);
|
|
8723
9269
|
};
|
|
8724
|
-
const timeToIso = selectedTime =>
|
|
9270
|
+
const timeToIso = selectedTime => handleDateUtilsISOString(dateUtils.fromUnix(selectedTime).toISOString());
|
|
8725
9271
|
const TimeSliderConnect = ({
|
|
8726
9272
|
sourceId,
|
|
8727
9273
|
mapId,
|
|
@@ -8796,7 +9342,7 @@ const TimeSliderConnect = ({
|
|
|
8796
9342
|
dispatch(genericActions.setTime({
|
|
8797
9343
|
sourceId,
|
|
8798
9344
|
origin: 'TimeSliderConnect',
|
|
8799
|
-
value:
|
|
9345
|
+
value: handleDateUtilsISOString(newDate)
|
|
8800
9346
|
}));
|
|
8801
9347
|
};
|
|
8802
9348
|
// Update local state when time is updated outside of this component, e.g. during animation or syncgroups
|
|
@@ -8957,7 +9503,7 @@ const TimeSliderClockConnect = ({
|
|
|
8957
9503
|
mapId: mapId,
|
|
8958
9504
|
sourceId: mapId
|
|
8959
9505
|
}),
|
|
8960
|
-
time:
|
|
9506
|
+
time: selectedTime
|
|
8961
9507
|
});
|
|
8962
9508
|
};
|
|
8963
9509
|
|
|
@@ -9138,19 +9684,8 @@ const ConfigurableMapConnect = _a => {
|
|
|
9138
9684
|
}, [children, disableTimeSlider, displayDimensionSelectButtonInMap, displayGetFeatureInfoButtonInMap, displayLayerManagerAndLegendButtonInMap, displaySearchButtonInMap, displayTimeInMap, id, mapControls, mapControlsPositionTop, mapId, multiLegend, showClock, shouldAutoFetch, title, mapWidthRef]);
|
|
9139
9685
|
};
|
|
9140
9686
|
|
|
9141
|
-
var NATIVE_BIND = functionBindNative;
|
|
9142
|
-
|
|
9143
|
-
var FunctionPrototype = Function.prototype;
|
|
9144
|
-
var apply$1 = FunctionPrototype.apply;
|
|
9145
|
-
var call$1 = FunctionPrototype.call;
|
|
9146
|
-
|
|
9147
|
-
// eslint-disable-next-line es/no-reflect -- safe
|
|
9148
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$1.bind(apply$1) : function () {
|
|
9149
|
-
return call$1.apply(apply$1, arguments);
|
|
9150
|
-
});
|
|
9151
|
-
|
|
9152
9687
|
var uncurryThis$1 = functionUncurryThis;
|
|
9153
|
-
var toObject = toObject$
|
|
9688
|
+
var toObject = toObject$7;
|
|
9154
9689
|
|
|
9155
9690
|
var floor = Math.floor;
|
|
9156
9691
|
var charAt = uncurryThis$1(''.charAt);
|
|
@@ -9199,13 +9734,13 @@ var apply = functionApply;
|
|
|
9199
9734
|
var call = functionCall;
|
|
9200
9735
|
var uncurryThis = functionUncurryThis;
|
|
9201
9736
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
9202
|
-
var fails = fails$
|
|
9203
|
-
var anObject = anObject$
|
|
9204
|
-
var isCallable = isCallable$
|
|
9737
|
+
var fails = fails$n;
|
|
9738
|
+
var anObject = anObject$b;
|
|
9739
|
+
var isCallable = isCallable$i;
|
|
9205
9740
|
var isNullOrUndefined = isNullOrUndefined$4;
|
|
9206
9741
|
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
9207
9742
|
var toLength = toLength$3;
|
|
9208
|
-
var toString = toString$
|
|
9743
|
+
var toString = toString$9;
|
|
9209
9744
|
var requireObjectCoercible = requireObjectCoercible$7;
|
|
9210
9745
|
var advanceStringIndex = advanceStringIndex$2;
|
|
9211
9746
|
var getMethod = getMethod$3;
|
|
@@ -10168,4 +10703,4 @@ const RouterWrapperConnect = withEggs([routerModuleConfig])(props => {
|
|
|
10168
10703
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(NavigateSetter, null), props.children);
|
|
10169
10704
|
});
|
|
10170
10705
|
|
|
10171
|
-
export { ConfigurableMapConnect, CoreThemeProvider, CoreThemeStoreProvider, HarmonieTempAndPrecipPreset, LayerManager, BaseLayerRow as LayerManagerBaseLayerRow, LayerManagerConnect, DescriptionRow as LayerManagerDescriptionRow, HeaderOptions as LayerManagerHeaderOptions, LayerContainerRow as LayerManagerLayerContainerRow, LayerManagerMapButtonConnect, LegendConnect, LegendMapButtonConnect, MapViewConnect, MultiDimensionSelectMapButtonsConnect, MultiMapMultiDimensionSelectConnect as MultiMapDimensionSelectConnect, MultiMapViewConnect, MyMapLocation, RouterWrapperConnect, SearchControlButtonConnect, SearchControlConnect, SearchDialog, SyncGroupViewerConnect, TimeSliderConnect, ZoomControlConnect, componentsLookUp, defaultBbox, defaultConfigurations, filterMapPresets, filterServices, filterTimeSeriesServices, testLayers, useFetchServices, useUpdateTimeSpan, useUpdateTimestep };
|
|
10706
|
+
export { ConfigurableMapConnect, CoreThemeProvider, CoreThemeStoreProvider, HarmonieTempAndPrecipPreset, LayerInfoButtonConnect, LayerInfoDialogConnect, LayerManager, BaseLayerRow as LayerManagerBaseLayerRow, LayerManagerConnect, DescriptionRow as LayerManagerDescriptionRow, HeaderOptions as LayerManagerHeaderOptions, LayerContainerRow as LayerManagerLayerContainerRow, LayerManagerMapButtonConnect, LegendConnect, LegendMapButtonConnect, MapViewConnect, MultiDimensionSelectMapButtonsConnect, MultiMapMultiDimensionSelectConnect as MultiMapDimensionSelectConnect, MultiMapViewConnect, MyMapLocation, RouterWrapperConnect, SearchControlButtonConnect, SearchControlConnect, SearchDialog, SyncGroupViewerConnect, TimeSliderConnect, ZoomControlConnect, componentsLookUp, defaultBbox, defaultConfigurations, filterMapPresets, filterServices, filterTimeSeriesServices, testLayers, useFetchServices, useUpdateTimeSpan, useUpdateTimestep };
|