@opengeoweb/layer-select 9.12.0 → 9.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +797 -1302
- package/package.json +1 -1
- package/src/lib/components/LayerList/LayerList.d.ts +7 -3
- package/src/lib/components/LayerList/LayerList.spec.d.ts +3 -3
- package/src/lib/components/LayerList/LayerListDimensions.d.ts +1 -1
- package/src/lib/components/LayerList/LayerListRow.d.ts +4 -2
- package/src/lib/components/index.d.ts +0 -1
- package/src/lib/store/reducer.d.ts +2 -3
- package/src/lib/store/selectors.d.ts +3 -15
- package/src/lib/store/types.d.ts +3 -7
- package/src/lib/store/utils.d.ts +2 -1
- package/src/lib/components/LayerInfo/LayerInfoButton.d.ts +0 -10
- package/src/lib/components/LayerInfo/LayerInfoButton.spec.d.ts +0 -1
- package/src/lib/components/LayerInfo/LayerInfoButtonConnect.d.ts +0 -11
- package/src/lib/components/LayerInfo/LayerInfoButtonConnect.spec.d.ts +0 -1
- package/src/lib/components/LayerInfo/LayerInfoDialog.d.ts +0 -13
- package/src/lib/components/LayerInfo/LayerInfoDialog.spec.d.ts +0 -1
- package/src/lib/components/LayerInfo/LayerInfoDialog.stories.d.ts +0 -25
- package/src/lib/components/LayerInfo/LayerInfoDialogConnect.d.ts +0 -2
- package/src/lib/components/LayerInfo/LayerInfoLegend.d.ts +0 -9
- package/src/lib/components/LayerInfo/LayerInfoLegend.spec.d.ts +0 -1
- package/src/lib/components/LayerInfo/LayerInfoList.d.ts +0 -11
- package/src/lib/components/LayerInfo/LayerInfoText.d.ts +0 -15
- package/src/lib/components/LayerInfo/LayerInfoUtils.d.ts +0 -10
- package/src/lib/components/LayerInfo/LayerInfoUtils.spec.d.ts +0 -1
- package/src/lib/components/LayerInfo/index.d.ts +0 -8
package/index.esm.js
CHANGED
|
@@ -3,19 +3,16 @@ import * as React from 'react';
|
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import { useSelector, useDispatch } from 'react-redux';
|
|
5
5
|
import { CustomIconButton, ToolContainerDraggable, CustomAccordion, CustomToggleButton, CustomTooltip, SearchHighlight, SearchField, ToggleMenu } from '@opengeoweb/shared';
|
|
6
|
-
import { Filter,
|
|
7
|
-
import { uiTypes, serviceActions, selectorMemoizationOptions, serviceSelectors, uiActions, uiSelectors, useSetupDialog, mapSelectors,
|
|
6
|
+
import { Filter, LayersAdd, Add, Cached, Edit, Visibility, Delete, Close, Copy } from '@opengeoweb/theme';
|
|
7
|
+
import { uiTypes, serviceActions, selectorMemoizationOptions, serviceSelectors, uiActions, uiSelectors, layerSelectors, layerActions, useSetupDialog, mapSelectors, layerTypes } from '@opengeoweb/store';
|
|
8
8
|
import { createEntityAdapter, createSlice, createSelector } from '@reduxjs/toolkit';
|
|
9
9
|
import { compact, countBy, partition } from 'lodash';
|
|
10
10
|
import { createStore } from '@redux-eggs/redux-toolkit';
|
|
11
11
|
import { getSagaExtension } from '@redux-eggs/saga-extension';
|
|
12
12
|
import { takeEvery, select, put, all } from 'redux-saga/effects';
|
|
13
|
-
import { ListItem, ListItemIcon, Checkbox, Typography, ListItemSecondaryAction, Switch, Grid, List, Box
|
|
14
|
-
import Box from '@mui/material/Box';
|
|
15
|
-
import Typography$1 from '@mui/material/Typography';
|
|
16
|
-
import Grid$1 from '@mui/material/Grid';
|
|
17
|
-
import { LegendLayout } from '@opengeoweb/webmap-react';
|
|
13
|
+
import { ListItem, ListItemIcon, Checkbox, Typography, ListItemSecondaryAction, Switch, Grid, List, Box, Backdrop, CircularProgress, Button, ListItemText, Dialog, DialogTitle, LinearProgress, DialogContent, InputAdornment, DialogActions } from '@mui/material';
|
|
18
14
|
import { FixedSizeList } from 'react-window';
|
|
15
|
+
import { getDimensionsList, LayerInfoButton } from '@opengeoweb/webmap-react';
|
|
19
16
|
import { webmapUtils, LayerType, getCapabilities, WMGetServiceFromStore, clearImageCacheForAllMaps } from '@opengeoweb/webmap';
|
|
20
17
|
import { snackbarActions } from '@opengeoweb/snackbar';
|
|
21
18
|
import { ReactHookFormProvider, defaultFormOptions, ReactHookFormTextField } from '@opengeoweb/form-fields';
|
|
@@ -41,7 +38,7 @@ var global$g =
|
|
|
41
38
|
|
|
42
39
|
var objectGetOwnPropertyDescriptor = {};
|
|
43
40
|
|
|
44
|
-
var fails$
|
|
41
|
+
var fails$j = function (exec) {
|
|
45
42
|
try {
|
|
46
43
|
return !!exec();
|
|
47
44
|
} catch (error) {
|
|
@@ -49,28 +46,28 @@ var fails$k = function (exec) {
|
|
|
49
46
|
}
|
|
50
47
|
};
|
|
51
48
|
|
|
52
|
-
var fails$
|
|
49
|
+
var fails$i = fails$j;
|
|
53
50
|
|
|
54
51
|
// Detect IE8's incomplete defineProperty implementation
|
|
55
|
-
var descriptors = !fails$
|
|
52
|
+
var descriptors = !fails$i(function () {
|
|
56
53
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
57
54
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
58
55
|
});
|
|
59
56
|
|
|
60
|
-
var fails$
|
|
57
|
+
var fails$h = fails$j;
|
|
61
58
|
|
|
62
|
-
var functionBindNative = !fails$
|
|
59
|
+
var functionBindNative = !fails$h(function () {
|
|
63
60
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
64
61
|
var test = (function () { /* empty */ }).bind();
|
|
65
62
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
66
63
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
67
64
|
});
|
|
68
65
|
|
|
69
|
-
var NATIVE_BIND$
|
|
66
|
+
var NATIVE_BIND$3 = functionBindNative;
|
|
70
67
|
|
|
71
68
|
var call$a = Function.prototype.call;
|
|
72
69
|
|
|
73
|
-
var functionCall = NATIVE_BIND$
|
|
70
|
+
var functionCall = NATIVE_BIND$3 ? call$a.bind(call$a) : function () {
|
|
74
71
|
return call$a.apply(call$a, arguments);
|
|
75
72
|
};
|
|
76
73
|
|
|
@@ -99,36 +96,36 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
99
96
|
};
|
|
100
97
|
};
|
|
101
98
|
|
|
102
|
-
var NATIVE_BIND$
|
|
99
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
103
100
|
|
|
104
|
-
var FunctionPrototype$
|
|
105
|
-
var call$9 = FunctionPrototype$
|
|
106
|
-
var uncurryThisWithBind = NATIVE_BIND$
|
|
101
|
+
var FunctionPrototype$2 = Function.prototype;
|
|
102
|
+
var call$9 = FunctionPrototype$2.call;
|
|
103
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$9, call$9);
|
|
107
104
|
|
|
108
|
-
var functionUncurryThis = NATIVE_BIND$
|
|
105
|
+
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
109
106
|
return function () {
|
|
110
107
|
return call$9.apply(fn, arguments);
|
|
111
108
|
};
|
|
112
109
|
};
|
|
113
110
|
|
|
114
|
-
var uncurryThis$
|
|
111
|
+
var uncurryThis$j = functionUncurryThis;
|
|
115
112
|
|
|
116
|
-
var toString$7 = uncurryThis$
|
|
117
|
-
var stringSlice$
|
|
113
|
+
var toString$7 = uncurryThis$j({}.toString);
|
|
114
|
+
var stringSlice$2 = uncurryThis$j(''.slice);
|
|
118
115
|
|
|
119
116
|
var classofRaw$2 = function (it) {
|
|
120
|
-
return stringSlice$
|
|
117
|
+
return stringSlice$2(toString$7(it), 8, -1);
|
|
121
118
|
};
|
|
122
119
|
|
|
123
|
-
var uncurryThis$
|
|
124
|
-
var fails$
|
|
120
|
+
var uncurryThis$i = functionUncurryThis;
|
|
121
|
+
var fails$g = fails$j;
|
|
125
122
|
var classof$7 = classofRaw$2;
|
|
126
123
|
|
|
127
124
|
var $Object$4 = Object;
|
|
128
|
-
var split = uncurryThis$
|
|
125
|
+
var split = uncurryThis$i(''.split);
|
|
129
126
|
|
|
130
127
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
131
|
-
var indexedObject = fails$
|
|
128
|
+
var indexedObject = fails$g(function () {
|
|
132
129
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
133
130
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
134
131
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
@@ -138,27 +135,27 @@ var indexedObject = fails$h(function () {
|
|
|
138
135
|
|
|
139
136
|
// we can't use just `it == null` since of `document.all` special case
|
|
140
137
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
141
|
-
var isNullOrUndefined$
|
|
138
|
+
var isNullOrUndefined$2 = function (it) {
|
|
142
139
|
return it === null || it === undefined;
|
|
143
140
|
};
|
|
144
141
|
|
|
145
|
-
var isNullOrUndefined$
|
|
142
|
+
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
|
146
143
|
|
|
147
|
-
var $TypeError$
|
|
144
|
+
var $TypeError$a = TypeError;
|
|
148
145
|
|
|
149
146
|
// `RequireObjectCoercible` abstract operation
|
|
150
147
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
151
|
-
var requireObjectCoercible$
|
|
152
|
-
if (isNullOrUndefined$
|
|
148
|
+
var requireObjectCoercible$3 = function (it) {
|
|
149
|
+
if (isNullOrUndefined$1(it)) throw new $TypeError$a("Can't call method on " + it);
|
|
153
150
|
return it;
|
|
154
151
|
};
|
|
155
152
|
|
|
156
153
|
// toObject with fallback for non-array-like ES3 strings
|
|
157
154
|
var IndexedObject$2 = indexedObject;
|
|
158
|
-
var requireObjectCoercible$
|
|
155
|
+
var requireObjectCoercible$2 = requireObjectCoercible$3;
|
|
159
156
|
|
|
160
157
|
var toIndexedObject$5 = function (it) {
|
|
161
|
-
return IndexedObject$2(requireObjectCoercible$
|
|
158
|
+
return IndexedObject$2(requireObjectCoercible$2(it));
|
|
162
159
|
};
|
|
163
160
|
|
|
164
161
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
@@ -167,32 +164,32 @@ var documentAll = typeof document == 'object' && document.all;
|
|
|
167
164
|
// `IsCallable` abstract operation
|
|
168
165
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
169
166
|
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
170
|
-
var isCallable$
|
|
167
|
+
var isCallable$i = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
171
168
|
return typeof argument == 'function' || argument === documentAll;
|
|
172
169
|
} : function (argument) {
|
|
173
170
|
return typeof argument == 'function';
|
|
174
171
|
};
|
|
175
172
|
|
|
176
|
-
var isCallable$
|
|
173
|
+
var isCallable$h = isCallable$i;
|
|
177
174
|
|
|
178
175
|
var isObject$9 = function (it) {
|
|
179
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
176
|
+
return typeof it == 'object' ? it !== null : isCallable$h(it);
|
|
180
177
|
};
|
|
181
178
|
|
|
182
179
|
var global$f = global$g;
|
|
183
|
-
var isCallable$
|
|
180
|
+
var isCallable$g = isCallable$i;
|
|
184
181
|
|
|
185
182
|
var aFunction = function (argument) {
|
|
186
|
-
return isCallable$
|
|
183
|
+
return isCallable$g(argument) ? argument : undefined;
|
|
187
184
|
};
|
|
188
185
|
|
|
189
|
-
var getBuiltIn$
|
|
186
|
+
var getBuiltIn$5 = function (namespace, method) {
|
|
190
187
|
return arguments.length < 2 ? aFunction(global$f[namespace]) : global$f[namespace] && global$f[namespace][method];
|
|
191
188
|
};
|
|
192
189
|
|
|
193
|
-
var uncurryThis$
|
|
190
|
+
var uncurryThis$h = functionUncurryThis;
|
|
194
191
|
|
|
195
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
192
|
+
var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);
|
|
196
193
|
|
|
197
194
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
198
195
|
|
|
@@ -226,89 +223,89 @@ var engineV8Version = version;
|
|
|
226
223
|
|
|
227
224
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
228
225
|
var V8_VERSION = engineV8Version;
|
|
229
|
-
var fails$
|
|
226
|
+
var fails$f = fails$j;
|
|
230
227
|
var global$d = global$g;
|
|
231
228
|
|
|
232
|
-
var $String$
|
|
229
|
+
var $String$6 = global$d.String;
|
|
233
230
|
|
|
234
231
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
235
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
232
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$f(function () {
|
|
236
233
|
var symbol = Symbol('symbol detection');
|
|
237
234
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
238
235
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
239
236
|
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
240
237
|
// of course, fail.
|
|
241
|
-
return !$String$
|
|
238
|
+
return !$String$6(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
242
239
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
243
240
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
244
241
|
});
|
|
245
242
|
|
|
246
243
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
247
|
-
var NATIVE_SYMBOL$
|
|
244
|
+
var NATIVE_SYMBOL$2 = symbolConstructorDetection;
|
|
248
245
|
|
|
249
|
-
var useSymbolAsUid = NATIVE_SYMBOL$
|
|
246
|
+
var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
250
247
|
&& !Symbol.sham
|
|
251
248
|
&& typeof Symbol.iterator == 'symbol';
|
|
252
249
|
|
|
253
|
-
var getBuiltIn$
|
|
254
|
-
var isCallable$
|
|
250
|
+
var getBuiltIn$4 = getBuiltIn$5;
|
|
251
|
+
var isCallable$f = isCallable$i;
|
|
255
252
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
256
253
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
257
254
|
|
|
258
255
|
var $Object$3 = Object;
|
|
259
256
|
|
|
260
|
-
var isSymbol$
|
|
257
|
+
var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
261
258
|
return typeof it == 'symbol';
|
|
262
259
|
} : function (it) {
|
|
263
|
-
var $Symbol = getBuiltIn$
|
|
264
|
-
return isCallable$
|
|
260
|
+
var $Symbol = getBuiltIn$4('Symbol');
|
|
261
|
+
return isCallable$f($Symbol) && isPrototypeOf($Symbol.prototype, $Object$3(it));
|
|
265
262
|
};
|
|
266
263
|
|
|
267
|
-
var $String$
|
|
264
|
+
var $String$5 = String;
|
|
268
265
|
|
|
269
|
-
var tryToString$
|
|
266
|
+
var tryToString$2 = function (argument) {
|
|
270
267
|
try {
|
|
271
|
-
return $String$
|
|
268
|
+
return $String$5(argument);
|
|
272
269
|
} catch (error) {
|
|
273
270
|
return 'Object';
|
|
274
271
|
}
|
|
275
272
|
};
|
|
276
273
|
|
|
277
|
-
var isCallable$
|
|
278
|
-
var tryToString$
|
|
274
|
+
var isCallable$e = isCallable$i;
|
|
275
|
+
var tryToString$1 = tryToString$2;
|
|
279
276
|
|
|
280
|
-
var $TypeError$
|
|
277
|
+
var $TypeError$9 = TypeError;
|
|
281
278
|
|
|
282
279
|
// `Assert: IsCallable(argument) is true`
|
|
283
280
|
var aCallable$6 = function (argument) {
|
|
284
|
-
if (isCallable$
|
|
285
|
-
throw new $TypeError$
|
|
281
|
+
if (isCallable$e(argument)) return argument;
|
|
282
|
+
throw new $TypeError$9(tryToString$1(argument) + ' is not a function');
|
|
286
283
|
};
|
|
287
284
|
|
|
288
285
|
var aCallable$5 = aCallable$6;
|
|
289
|
-
var isNullOrUndefined
|
|
286
|
+
var isNullOrUndefined = isNullOrUndefined$2;
|
|
290
287
|
|
|
291
288
|
// `GetMethod` abstract operation
|
|
292
289
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
293
|
-
var getMethod$
|
|
290
|
+
var getMethod$1 = function (V, P) {
|
|
294
291
|
var func = V[P];
|
|
295
|
-
return isNullOrUndefined
|
|
292
|
+
return isNullOrUndefined(func) ? undefined : aCallable$5(func);
|
|
296
293
|
};
|
|
297
294
|
|
|
298
295
|
var call$8 = functionCall;
|
|
299
|
-
var isCallable$
|
|
296
|
+
var isCallable$d = isCallable$i;
|
|
300
297
|
var isObject$8 = isObject$9;
|
|
301
298
|
|
|
302
|
-
var $TypeError$
|
|
299
|
+
var $TypeError$8 = TypeError;
|
|
303
300
|
|
|
304
301
|
// `OrdinaryToPrimitive` abstract operation
|
|
305
302
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
306
303
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
307
304
|
var fn, val;
|
|
308
|
-
if (pref === 'string' && isCallable$
|
|
309
|
-
if (isCallable$
|
|
310
|
-
if (pref !== 'string' && isCallable$
|
|
311
|
-
throw new $TypeError$
|
|
305
|
+
if (pref === 'string' && isCallable$d(fn = input.toString) && !isObject$8(val = call$8(fn, input))) return val;
|
|
306
|
+
if (isCallable$d(fn = input.valueOf) && !isObject$8(val = call$8(fn, input))) return val;
|
|
307
|
+
if (pref !== 'string' && isCallable$d(fn = input.toString) && !isObject$8(val = call$8(fn, input))) return val;
|
|
308
|
+
throw new $TypeError$8("Can't convert object to primitive value");
|
|
312
309
|
};
|
|
313
310
|
|
|
314
311
|
var shared$4 = {exports: {}};
|
|
@@ -346,20 +343,20 @@ var store$2 = sharedStore;
|
|
|
346
343
|
source: 'https://github.com/zloirock/core-js'
|
|
347
344
|
});
|
|
348
345
|
|
|
349
|
-
var requireObjectCoercible$
|
|
346
|
+
var requireObjectCoercible$1 = requireObjectCoercible$3;
|
|
350
347
|
|
|
351
348
|
var $Object$2 = Object;
|
|
352
349
|
|
|
353
350
|
// `ToObject` abstract operation
|
|
354
351
|
// https://tc39.es/ecma262/#sec-toobject
|
|
355
352
|
var toObject$6 = function (argument) {
|
|
356
|
-
return $Object$2(requireObjectCoercible$
|
|
353
|
+
return $Object$2(requireObjectCoercible$1(argument));
|
|
357
354
|
};
|
|
358
355
|
|
|
359
|
-
var uncurryThis$
|
|
356
|
+
var uncurryThis$g = functionUncurryThis;
|
|
360
357
|
var toObject$5 = toObject$6;
|
|
361
358
|
|
|
362
|
-
var hasOwnProperty = uncurryThis$
|
|
359
|
+
var hasOwnProperty = uncurryThis$g({}.hasOwnProperty);
|
|
363
360
|
|
|
364
361
|
// `HasOwnProperty` abstract operation
|
|
365
362
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -368,11 +365,11 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
368
365
|
return hasOwnProperty(toObject$5(it), key);
|
|
369
366
|
};
|
|
370
367
|
|
|
371
|
-
var uncurryThis$
|
|
368
|
+
var uncurryThis$f = functionUncurryThis;
|
|
372
369
|
|
|
373
370
|
var id = 0;
|
|
374
371
|
var postfix = Math.random();
|
|
375
|
-
var toString$6 = uncurryThis$
|
|
372
|
+
var toString$6 = uncurryThis$f(1.0.toString);
|
|
376
373
|
|
|
377
374
|
var uid$2 = function (key) {
|
|
378
375
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
|
|
@@ -382,16 +379,16 @@ var global$a = global$g;
|
|
|
382
379
|
var shared$3 = shared$4.exports;
|
|
383
380
|
var hasOwn$8 = hasOwnProperty_1;
|
|
384
381
|
var uid$1 = uid$2;
|
|
385
|
-
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
382
|
+
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
386
383
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
387
384
|
|
|
388
385
|
var Symbol$1 = global$a.Symbol;
|
|
389
386
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
390
387
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
391
388
|
|
|
392
|
-
var wellKnownSymbol$
|
|
389
|
+
var wellKnownSymbol$b = function (name) {
|
|
393
390
|
if (!hasOwn$8(WellKnownSymbolsStore, name)) {
|
|
394
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
|
|
391
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$8(Symbol$1, name)
|
|
395
392
|
? Symbol$1[name]
|
|
396
393
|
: createWellKnownSymbol('Symbol.' + name);
|
|
397
394
|
} return WellKnownSymbolsStore[name];
|
|
@@ -399,38 +396,38 @@ var wellKnownSymbol$d = function (name) {
|
|
|
399
396
|
|
|
400
397
|
var call$7 = functionCall;
|
|
401
398
|
var isObject$7 = isObject$9;
|
|
402
|
-
var isSymbol$
|
|
403
|
-
var getMethod
|
|
399
|
+
var isSymbol$2 = isSymbol$3;
|
|
400
|
+
var getMethod = getMethod$1;
|
|
404
401
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
405
|
-
var wellKnownSymbol$
|
|
402
|
+
var wellKnownSymbol$a = wellKnownSymbol$b;
|
|
406
403
|
|
|
407
|
-
var $TypeError$
|
|
408
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
404
|
+
var $TypeError$7 = TypeError;
|
|
405
|
+
var TO_PRIMITIVE = wellKnownSymbol$a('toPrimitive');
|
|
409
406
|
|
|
410
407
|
// `ToPrimitive` abstract operation
|
|
411
408
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
412
409
|
var toPrimitive$1 = function (input, pref) {
|
|
413
|
-
if (!isObject$7(input) || isSymbol$
|
|
414
|
-
var exoticToPrim = getMethod
|
|
410
|
+
if (!isObject$7(input) || isSymbol$2(input)) return input;
|
|
411
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
415
412
|
var result;
|
|
416
413
|
if (exoticToPrim) {
|
|
417
414
|
if (pref === undefined) pref = 'default';
|
|
418
415
|
result = call$7(exoticToPrim, input, pref);
|
|
419
|
-
if (!isObject$7(result) || isSymbol$
|
|
420
|
-
throw new $TypeError$
|
|
416
|
+
if (!isObject$7(result) || isSymbol$2(result)) return result;
|
|
417
|
+
throw new $TypeError$7("Can't convert object to primitive value");
|
|
421
418
|
}
|
|
422
419
|
if (pref === undefined) pref = 'number';
|
|
423
420
|
return ordinaryToPrimitive(input, pref);
|
|
424
421
|
};
|
|
425
422
|
|
|
426
423
|
var toPrimitive = toPrimitive$1;
|
|
427
|
-
var isSymbol = isSymbol$
|
|
424
|
+
var isSymbol$1 = isSymbol$3;
|
|
428
425
|
|
|
429
426
|
// `ToPropertyKey` abstract operation
|
|
430
427
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
431
428
|
var toPropertyKey$2 = function (argument) {
|
|
432
429
|
var key = toPrimitive(argument, 'string');
|
|
433
|
-
return isSymbol(key) ? key : key + '';
|
|
430
|
+
return isSymbol$1(key) ? key : key + '';
|
|
434
431
|
};
|
|
435
432
|
|
|
436
433
|
var global$9 = global$g;
|
|
@@ -445,11 +442,11 @@ var documentCreateElement$2 = function (it) {
|
|
|
445
442
|
};
|
|
446
443
|
|
|
447
444
|
var DESCRIPTORS$9 = descriptors;
|
|
448
|
-
var fails$
|
|
445
|
+
var fails$e = fails$j;
|
|
449
446
|
var createElement = documentCreateElement$2;
|
|
450
447
|
|
|
451
448
|
// Thanks to IE8 for its funny defineProperty
|
|
452
|
-
var ie8DomDefine = !DESCRIPTORS$9 && !fails$
|
|
449
|
+
var ie8DomDefine = !DESCRIPTORS$9 && !fails$e(function () {
|
|
453
450
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
454
451
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
455
452
|
get: function () { return 7; }
|
|
@@ -482,11 +479,11 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 :
|
|
|
482
479
|
var objectDefineProperty = {};
|
|
483
480
|
|
|
484
481
|
var DESCRIPTORS$7 = descriptors;
|
|
485
|
-
var fails$
|
|
482
|
+
var fails$d = fails$j;
|
|
486
483
|
|
|
487
484
|
// V8 ~ Chrome 36-
|
|
488
485
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
489
|
-
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$
|
|
486
|
+
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$d(function () {
|
|
490
487
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
491
488
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
492
489
|
value: 42,
|
|
@@ -496,22 +493,22 @@ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$e(function () {
|
|
|
496
493
|
|
|
497
494
|
var isObject$5 = isObject$9;
|
|
498
495
|
|
|
499
|
-
var $String$
|
|
500
|
-
var $TypeError$
|
|
496
|
+
var $String$4 = String;
|
|
497
|
+
var $TypeError$6 = TypeError;
|
|
501
498
|
|
|
502
499
|
// `Assert: Type(argument) is Object`
|
|
503
|
-
var anObject$
|
|
500
|
+
var anObject$7 = function (argument) {
|
|
504
501
|
if (isObject$5(argument)) return argument;
|
|
505
|
-
throw new $TypeError$
|
|
502
|
+
throw new $TypeError$6($String$4(argument) + ' is not an object');
|
|
506
503
|
};
|
|
507
504
|
|
|
508
505
|
var DESCRIPTORS$6 = descriptors;
|
|
509
506
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
510
507
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
511
|
-
var anObject$
|
|
508
|
+
var anObject$6 = anObject$7;
|
|
512
509
|
var toPropertyKey = toPropertyKey$2;
|
|
513
510
|
|
|
514
|
-
var $TypeError$
|
|
511
|
+
var $TypeError$5 = TypeError;
|
|
515
512
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
516
513
|
var $defineProperty = Object.defineProperty;
|
|
517
514
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -523,9 +520,9 @@ var WRITABLE = 'writable';
|
|
|
523
520
|
// `Object.defineProperty` method
|
|
524
521
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
525
522
|
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
526
|
-
anObject$
|
|
523
|
+
anObject$6(O);
|
|
527
524
|
P = toPropertyKey(P);
|
|
528
|
-
anObject$
|
|
525
|
+
anObject$6(Attributes);
|
|
529
526
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
530
527
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
531
528
|
if (current && current[WRITABLE]) {
|
|
@@ -538,13 +535,13 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
538
535
|
}
|
|
539
536
|
} return $defineProperty(O, P, Attributes);
|
|
540
537
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
541
|
-
anObject$
|
|
538
|
+
anObject$6(O);
|
|
542
539
|
P = toPropertyKey(P);
|
|
543
|
-
anObject$
|
|
540
|
+
anObject$6(Attributes);
|
|
544
541
|
if (IE8_DOM_DEFINE) try {
|
|
545
542
|
return $defineProperty(O, P, Attributes);
|
|
546
543
|
} catch (error) { /* empty */ }
|
|
547
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
544
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
|
|
548
545
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
549
546
|
return O;
|
|
550
547
|
};
|
|
@@ -553,7 +550,7 @@ var DESCRIPTORS$5 = descriptors;
|
|
|
553
550
|
var definePropertyModule$3 = objectDefineProperty;
|
|
554
551
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
555
552
|
|
|
556
|
-
var createNonEnumerableProperty$
|
|
553
|
+
var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
557
554
|
return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
|
|
558
555
|
} : function (object, key, value) {
|
|
559
556
|
object[key] = value;
|
|
@@ -565,14 +562,14 @@ var makeBuiltIn$2 = {exports: {}};
|
|
|
565
562
|
var DESCRIPTORS$4 = descriptors;
|
|
566
563
|
var hasOwn$6 = hasOwnProperty_1;
|
|
567
564
|
|
|
568
|
-
var FunctionPrototype = Function.prototype;
|
|
565
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
569
566
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
570
567
|
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
571
568
|
|
|
572
|
-
var EXISTS = hasOwn$6(FunctionPrototype, 'name');
|
|
569
|
+
var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
|
|
573
570
|
// additional protection from minified / mangled / dropped function names
|
|
574
571
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
575
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
572
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
576
573
|
|
|
577
574
|
var functionName = {
|
|
578
575
|
EXISTS: EXISTS,
|
|
@@ -580,14 +577,14 @@ var functionName = {
|
|
|
580
577
|
CONFIGURABLE: CONFIGURABLE
|
|
581
578
|
};
|
|
582
579
|
|
|
583
|
-
var uncurryThis$
|
|
584
|
-
var isCallable$
|
|
580
|
+
var uncurryThis$e = functionUncurryThis;
|
|
581
|
+
var isCallable$c = isCallable$i;
|
|
585
582
|
var store$1 = sharedStore;
|
|
586
583
|
|
|
587
|
-
var functionToString = uncurryThis$
|
|
584
|
+
var functionToString = uncurryThis$e(Function.toString);
|
|
588
585
|
|
|
589
586
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
590
|
-
if (!isCallable$
|
|
587
|
+
if (!isCallable$c(store$1.inspectSource)) {
|
|
591
588
|
store$1.inspectSource = function (it) {
|
|
592
589
|
return functionToString(it);
|
|
593
590
|
};
|
|
@@ -596,11 +593,11 @@ if (!isCallable$a(store$1.inspectSource)) {
|
|
|
596
593
|
var inspectSource$2 = store$1.inspectSource;
|
|
597
594
|
|
|
598
595
|
var global$8 = global$g;
|
|
599
|
-
var isCallable$
|
|
596
|
+
var isCallable$b = isCallable$i;
|
|
600
597
|
|
|
601
598
|
var WeakMap$1 = global$8.WeakMap;
|
|
602
599
|
|
|
603
|
-
var weakMapBasicDetection = isCallable$
|
|
600
|
+
var weakMapBasicDetection = isCallable$b(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
604
601
|
|
|
605
602
|
var shared$2 = shared$4.exports;
|
|
606
603
|
var uid = uid$2;
|
|
@@ -616,7 +613,7 @@ var hiddenKeys$4 = {};
|
|
|
616
613
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
617
614
|
var global$7 = global$g;
|
|
618
615
|
var isObject$4 = isObject$9;
|
|
619
|
-
var createNonEnumerableProperty$
|
|
616
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
620
617
|
var hasOwn$5 = hasOwnProperty_1;
|
|
621
618
|
var shared$1 = sharedStore;
|
|
622
619
|
var sharedKey$2 = sharedKey$3;
|
|
@@ -665,7 +662,7 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
665
662
|
set = function (it, metadata) {
|
|
666
663
|
if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
667
664
|
metadata.facade = it;
|
|
668
|
-
createNonEnumerableProperty$
|
|
665
|
+
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
669
666
|
return metadata;
|
|
670
667
|
};
|
|
671
668
|
get = function (it) {
|
|
@@ -684,9 +681,9 @@ var internalState = {
|
|
|
684
681
|
getterFor: getterFor
|
|
685
682
|
};
|
|
686
683
|
|
|
687
|
-
var uncurryThis$
|
|
688
|
-
var fails$
|
|
689
|
-
var isCallable$
|
|
684
|
+
var uncurryThis$d = functionUncurryThis;
|
|
685
|
+
var fails$c = fails$j;
|
|
686
|
+
var isCallable$a = isCallable$i;
|
|
690
687
|
var hasOwn$4 = hasOwnProperty_1;
|
|
691
688
|
var DESCRIPTORS$3 = descriptors;
|
|
692
689
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
@@ -695,22 +692,22 @@ var InternalStateModule$1 = internalState;
|
|
|
695
692
|
|
|
696
693
|
var enforceInternalState = InternalStateModule$1.enforce;
|
|
697
694
|
var getInternalState$2 = InternalStateModule$1.get;
|
|
698
|
-
var $String$
|
|
695
|
+
var $String$3 = String;
|
|
699
696
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
700
697
|
var defineProperty$4 = Object.defineProperty;
|
|
701
|
-
var stringSlice$
|
|
702
|
-
var replace$
|
|
703
|
-
var join = uncurryThis$
|
|
698
|
+
var stringSlice$1 = uncurryThis$d(''.slice);
|
|
699
|
+
var replace$2 = uncurryThis$d(''.replace);
|
|
700
|
+
var join = uncurryThis$d([].join);
|
|
704
701
|
|
|
705
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$
|
|
702
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$c(function () {
|
|
706
703
|
return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
707
704
|
});
|
|
708
705
|
|
|
709
706
|
var TEMPLATE = String(String).split('String');
|
|
710
707
|
|
|
711
708
|
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
712
|
-
if (stringSlice$
|
|
713
|
-
name = '[' + replace$
|
|
709
|
+
if (stringSlice$1($String$3(name), 0, 7) === 'Symbol(') {
|
|
710
|
+
name = '[' + replace$2($String$3(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
714
711
|
}
|
|
715
712
|
if (options && options.getter) name = 'get ' + name;
|
|
716
713
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -736,19 +733,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
736
733
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
737
734
|
// eslint-disable-next-line no-extend-native -- required
|
|
738
735
|
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
739
|
-
return isCallable$
|
|
736
|
+
return isCallable$a(this) && getInternalState$2(this).source || inspectSource$1(this);
|
|
740
737
|
}, 'toString');
|
|
741
738
|
|
|
742
|
-
var isCallable$
|
|
739
|
+
var isCallable$9 = isCallable$i;
|
|
743
740
|
var definePropertyModule$2 = objectDefineProperty;
|
|
744
741
|
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
745
742
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
746
743
|
|
|
747
|
-
var defineBuiltIn$
|
|
744
|
+
var defineBuiltIn$3 = function (O, key, value, options) {
|
|
748
745
|
if (!options) options = {};
|
|
749
746
|
var simple = options.enumerable;
|
|
750
747
|
var name = options.name !== undefined ? options.name : key;
|
|
751
|
-
if (isCallable$
|
|
748
|
+
if (isCallable$9(value)) makeBuiltIn(value, name, options);
|
|
752
749
|
if (options.global) {
|
|
753
750
|
if (simple) O[key] = value;
|
|
754
751
|
else defineGlobalProperty$1(key, value);
|
|
@@ -784,42 +781,42 @@ var trunc = mathTrunc;
|
|
|
784
781
|
|
|
785
782
|
// `ToIntegerOrInfinity` abstract operation
|
|
786
783
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
787
|
-
var toIntegerOrInfinity$
|
|
784
|
+
var toIntegerOrInfinity$2 = function (argument) {
|
|
788
785
|
var number = +argument;
|
|
789
786
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
790
787
|
return number !== number || number === 0 ? 0 : trunc(number);
|
|
791
788
|
};
|
|
792
789
|
|
|
793
|
-
var toIntegerOrInfinity$
|
|
790
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
794
791
|
|
|
795
792
|
var max = Math.max;
|
|
796
|
-
var min$
|
|
793
|
+
var min$1 = Math.min;
|
|
797
794
|
|
|
798
795
|
// Helper for a popular repeating case of the spec:
|
|
799
796
|
// Let integer be ? ToInteger(index).
|
|
800
797
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
801
798
|
var toAbsoluteIndex$1 = function (index, length) {
|
|
802
|
-
var integer = toIntegerOrInfinity$
|
|
803
|
-
return integer < 0 ? max(integer + length, 0) : min$
|
|
799
|
+
var integer = toIntegerOrInfinity$1(index);
|
|
800
|
+
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
804
801
|
};
|
|
805
802
|
|
|
806
|
-
var toIntegerOrInfinity
|
|
803
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
807
804
|
|
|
808
|
-
var min
|
|
805
|
+
var min = Math.min;
|
|
809
806
|
|
|
810
807
|
// `ToLength` abstract operation
|
|
811
808
|
// https://tc39.es/ecma262/#sec-tolength
|
|
812
|
-
var toLength$
|
|
813
|
-
var len = toIntegerOrInfinity
|
|
814
|
-
return len > 0 ? min
|
|
809
|
+
var toLength$1 = function (argument) {
|
|
810
|
+
var len = toIntegerOrInfinity(argument);
|
|
811
|
+
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
815
812
|
};
|
|
816
813
|
|
|
817
|
-
var toLength
|
|
814
|
+
var toLength = toLength$1;
|
|
818
815
|
|
|
819
816
|
// `LengthOfArrayLike` abstract operation
|
|
820
817
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
821
818
|
var lengthOfArrayLike$5 = function (obj) {
|
|
822
|
-
return toLength
|
|
819
|
+
return toLength(obj.length);
|
|
823
820
|
};
|
|
824
821
|
|
|
825
822
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
@@ -827,7 +824,7 @@ var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
|
827
824
|
var lengthOfArrayLike$4 = lengthOfArrayLike$5;
|
|
828
825
|
|
|
829
826
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
830
|
-
var createMethod$
|
|
827
|
+
var createMethod$1 = function (IS_INCLUDES) {
|
|
831
828
|
return function ($this, el, fromIndex) {
|
|
832
829
|
var O = toIndexedObject$3($this);
|
|
833
830
|
var length = lengthOfArrayLike$4(O);
|
|
@@ -849,19 +846,19 @@ var createMethod$2 = function (IS_INCLUDES) {
|
|
|
849
846
|
var arrayIncludes = {
|
|
850
847
|
// `Array.prototype.includes` method
|
|
851
848
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
852
|
-
includes: createMethod$
|
|
849
|
+
includes: createMethod$1(true),
|
|
853
850
|
// `Array.prototype.indexOf` method
|
|
854
851
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
855
|
-
indexOf: createMethod$
|
|
852
|
+
indexOf: createMethod$1(false)
|
|
856
853
|
};
|
|
857
854
|
|
|
858
|
-
var uncurryThis$
|
|
855
|
+
var uncurryThis$c = functionUncurryThis;
|
|
859
856
|
var hasOwn$3 = hasOwnProperty_1;
|
|
860
857
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
861
858
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
862
859
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
863
860
|
|
|
864
|
-
var push$2 = uncurryThis$
|
|
861
|
+
var push$2 = uncurryThis$c([].push);
|
|
865
862
|
|
|
866
863
|
var objectKeysInternal = function (object, names) {
|
|
867
864
|
var O = toIndexedObject$2(object);
|
|
@@ -904,17 +901,17 @@ var objectGetOwnPropertySymbols = {};
|
|
|
904
901
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
905
902
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
906
903
|
|
|
907
|
-
var getBuiltIn$
|
|
908
|
-
var uncurryThis$
|
|
904
|
+
var getBuiltIn$3 = getBuiltIn$5;
|
|
905
|
+
var uncurryThis$b = functionUncurryThis;
|
|
909
906
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
910
907
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
911
|
-
var anObject$
|
|
908
|
+
var anObject$5 = anObject$7;
|
|
912
909
|
|
|
913
|
-
var concat$1 = uncurryThis$
|
|
910
|
+
var concat$1 = uncurryThis$b([].concat);
|
|
914
911
|
|
|
915
912
|
// all object keys, includes non-enumerable and symbols
|
|
916
|
-
var ownKeys$1 = getBuiltIn$
|
|
917
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
913
|
+
var ownKeys$1 = getBuiltIn$3('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
914
|
+
var keys = getOwnPropertyNamesModule.f(anObject$5(it));
|
|
918
915
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
919
916
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
920
917
|
};
|
|
@@ -936,8 +933,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
936
933
|
}
|
|
937
934
|
};
|
|
938
935
|
|
|
939
|
-
var fails$
|
|
940
|
-
var isCallable$
|
|
936
|
+
var fails$b = fails$j;
|
|
937
|
+
var isCallable$8 = isCallable$i;
|
|
941
938
|
|
|
942
939
|
var replacement = /#|\.prototype\./;
|
|
943
940
|
|
|
@@ -945,7 +942,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
945
942
|
var value = data[normalize(feature)];
|
|
946
943
|
return value === POLYFILL ? true
|
|
947
944
|
: value === NATIVE ? false
|
|
948
|
-
: isCallable$
|
|
945
|
+
: isCallable$8(detection) ? fails$b(detection)
|
|
949
946
|
: !!detection;
|
|
950
947
|
};
|
|
951
948
|
|
|
@@ -961,8 +958,8 @@ var isForced_1 = isForced$1;
|
|
|
961
958
|
|
|
962
959
|
var global$6 = global$g;
|
|
963
960
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
964
|
-
var createNonEnumerableProperty$
|
|
965
|
-
var defineBuiltIn$
|
|
961
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
962
|
+
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
966
963
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
967
964
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
968
965
|
var isForced = isForced_1;
|
|
@@ -1008,9 +1005,9 @@ var _export = function (options, source) {
|
|
|
1008
1005
|
}
|
|
1009
1006
|
// add a flag to not completely full polyfills
|
|
1010
1007
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1011
|
-
createNonEnumerableProperty$
|
|
1008
|
+
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
1012
1009
|
}
|
|
1013
|
-
defineBuiltIn$
|
|
1010
|
+
defineBuiltIn$2(target, key, sourceProperty, options);
|
|
1014
1011
|
}
|
|
1015
1012
|
};
|
|
1016
1013
|
|
|
@@ -1025,9 +1022,9 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1025
1022
|
};
|
|
1026
1023
|
|
|
1027
1024
|
var DESCRIPTORS$2 = descriptors;
|
|
1028
|
-
var uncurryThis$
|
|
1025
|
+
var uncurryThis$a = functionUncurryThis;
|
|
1029
1026
|
var call$5 = functionCall;
|
|
1030
|
-
var fails$
|
|
1027
|
+
var fails$a = fails$j;
|
|
1031
1028
|
var objectKeys$1 = objectKeys$2;
|
|
1032
1029
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1033
1030
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -1038,11 +1035,11 @@ var IndexedObject$1 = indexedObject;
|
|
|
1038
1035
|
var $assign = Object.assign;
|
|
1039
1036
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1040
1037
|
var defineProperty$3 = Object.defineProperty;
|
|
1041
|
-
var concat = uncurryThis$
|
|
1038
|
+
var concat = uncurryThis$a([].concat);
|
|
1042
1039
|
|
|
1043
1040
|
// `Object.assign` method
|
|
1044
1041
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1045
|
-
var objectAssign = !$assign || fails$
|
|
1042
|
+
var objectAssign = !$assign || fails$a(function () {
|
|
1046
1043
|
// should have correct order of operations (Edge bug)
|
|
1047
1044
|
if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
|
|
1048
1045
|
enumerable: true,
|
|
@@ -1081,13 +1078,13 @@ var objectAssign = !$assign || fails$b(function () {
|
|
|
1081
1078
|
} return T;
|
|
1082
1079
|
} : $assign;
|
|
1083
1080
|
|
|
1084
|
-
var $$
|
|
1081
|
+
var $$9 = _export;
|
|
1085
1082
|
var assign = objectAssign;
|
|
1086
1083
|
|
|
1087
1084
|
// `Object.assign` method
|
|
1088
1085
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1089
1086
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1090
|
-
$$
|
|
1087
|
+
$$9({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1091
1088
|
assign: assign
|
|
1092
1089
|
});
|
|
1093
1090
|
|
|
@@ -1096,10 +1093,10 @@ var toObject$3 = toObject$6;
|
|
|
1096
1093
|
var IndexedObject = indexedObject;
|
|
1097
1094
|
var lengthOfArrayLike$3 = lengthOfArrayLike$5;
|
|
1098
1095
|
|
|
1099
|
-
var $TypeError$
|
|
1096
|
+
var $TypeError$4 = TypeError;
|
|
1100
1097
|
|
|
1101
1098
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
1102
|
-
var createMethod
|
|
1099
|
+
var createMethod = function (IS_RIGHT) {
|
|
1103
1100
|
return function (that, callbackfn, argumentsLength, memo) {
|
|
1104
1101
|
var O = toObject$3(that);
|
|
1105
1102
|
var self = IndexedObject(O);
|
|
@@ -1115,7 +1112,7 @@ var createMethod$1 = function (IS_RIGHT) {
|
|
|
1115
1112
|
}
|
|
1116
1113
|
index += i;
|
|
1117
1114
|
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
1118
|
-
throw new $TypeError$
|
|
1115
|
+
throw new $TypeError$4('Reduce of empty array with no initial value');
|
|
1119
1116
|
}
|
|
1120
1117
|
}
|
|
1121
1118
|
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
@@ -1128,17 +1125,17 @@ var createMethod$1 = function (IS_RIGHT) {
|
|
|
1128
1125
|
var arrayReduce = {
|
|
1129
1126
|
// `Array.prototype.reduce` method
|
|
1130
1127
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1131
|
-
left: createMethod
|
|
1128
|
+
left: createMethod(false),
|
|
1132
1129
|
// `Array.prototype.reduceRight` method
|
|
1133
1130
|
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
1134
|
-
right: createMethod
|
|
1131
|
+
right: createMethod(true)
|
|
1135
1132
|
};
|
|
1136
1133
|
|
|
1137
|
-
var fails$
|
|
1134
|
+
var fails$9 = fails$j;
|
|
1138
1135
|
|
|
1139
1136
|
var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
|
|
1140
1137
|
var method = [][METHOD_NAME];
|
|
1141
|
-
return !!method && fails$
|
|
1138
|
+
return !!method && fails$9(function () {
|
|
1142
1139
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
1143
1140
|
method.call(null, argument || function () { return 1; }, 1);
|
|
1144
1141
|
});
|
|
@@ -1149,7 +1146,7 @@ var classof$6 = classofRaw$2;
|
|
|
1149
1146
|
|
|
1150
1147
|
var engineIsNode = classof$6(global$5.process) === 'process';
|
|
1151
1148
|
|
|
1152
|
-
var $$
|
|
1149
|
+
var $$8 = _export;
|
|
1153
1150
|
var $reduce = arrayReduce.left;
|
|
1154
1151
|
var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
|
|
1155
1152
|
var CHROME_VERSION = engineV8Version;
|
|
@@ -1162,7 +1159,7 @@ var FORCED$1 = CHROME_BUG || !arrayMethodIsStrict$1('reduce');
|
|
|
1162
1159
|
|
|
1163
1160
|
// `Array.prototype.reduce` method
|
|
1164
1161
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1165
|
-
$$
|
|
1162
|
+
$$8({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
|
1166
1163
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
1167
1164
|
var length = arguments.length;
|
|
1168
1165
|
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
@@ -1174,7 +1171,7 @@ var objectDefineProperties = {};
|
|
|
1174
1171
|
var DESCRIPTORS$1 = descriptors;
|
|
1175
1172
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1176
1173
|
var definePropertyModule = objectDefineProperty;
|
|
1177
|
-
var anObject$
|
|
1174
|
+
var anObject$4 = anObject$7;
|
|
1178
1175
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1179
1176
|
var objectKeys = objectKeys$2;
|
|
1180
1177
|
|
|
@@ -1182,7 +1179,7 @@ var objectKeys = objectKeys$2;
|
|
|
1182
1179
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1183
1180
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1184
1181
|
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1185
|
-
anObject$
|
|
1182
|
+
anObject$4(O);
|
|
1186
1183
|
var props = toIndexedObject$1(Properties);
|
|
1187
1184
|
var keys = objectKeys(Properties);
|
|
1188
1185
|
var length = keys.length;
|
|
@@ -1192,12 +1189,12 @@ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
1192
1189
|
return O;
|
|
1193
1190
|
};
|
|
1194
1191
|
|
|
1195
|
-
var getBuiltIn$
|
|
1192
|
+
var getBuiltIn$2 = getBuiltIn$5;
|
|
1196
1193
|
|
|
1197
|
-
var html$1 = getBuiltIn$
|
|
1194
|
+
var html$1 = getBuiltIn$2('document', 'documentElement');
|
|
1198
1195
|
|
|
1199
1196
|
/* global ActiveXObject -- old IE, WSH */
|
|
1200
|
-
var anObject$
|
|
1197
|
+
var anObject$3 = anObject$7;
|
|
1201
1198
|
var definePropertiesModule = objectDefineProperties;
|
|
1202
1199
|
var enumBugKeys = enumBugKeys$3;
|
|
1203
1200
|
var hiddenKeys = hiddenKeys$4;
|
|
@@ -1271,7 +1268,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
1271
1268
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1272
1269
|
var result;
|
|
1273
1270
|
if (O !== null) {
|
|
1274
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
1271
|
+
EmptyConstructor[PROTOTYPE] = anObject$3(O);
|
|
1275
1272
|
result = new EmptyConstructor();
|
|
1276
1273
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1277
1274
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -1280,11 +1277,11 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1280
1277
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1281
1278
|
};
|
|
1282
1279
|
|
|
1283
|
-
var wellKnownSymbol$
|
|
1280
|
+
var wellKnownSymbol$9 = wellKnownSymbol$b;
|
|
1284
1281
|
var create$2 = objectCreate;
|
|
1285
1282
|
var defineProperty$2 = objectDefineProperty.f;
|
|
1286
1283
|
|
|
1287
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
1284
|
+
var UNSCOPABLES = wellKnownSymbol$9('unscopables');
|
|
1288
1285
|
var ArrayPrototype = Array.prototype;
|
|
1289
1286
|
|
|
1290
1287
|
// Array.prototype[@@unscopables]
|
|
@@ -1301,20 +1298,20 @@ var addToUnscopables$3 = function (key) {
|
|
|
1301
1298
|
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
1302
1299
|
};
|
|
1303
1300
|
|
|
1304
|
-
var $$
|
|
1301
|
+
var $$7 = _export;
|
|
1305
1302
|
var $includes = arrayIncludes.includes;
|
|
1306
|
-
var fails$
|
|
1303
|
+
var fails$8 = fails$j;
|
|
1307
1304
|
var addToUnscopables$2 = addToUnscopables$3;
|
|
1308
1305
|
|
|
1309
1306
|
// FF99+ bug
|
|
1310
|
-
var BROKEN_ON_SPARSE = fails$
|
|
1307
|
+
var BROKEN_ON_SPARSE = fails$8(function () {
|
|
1311
1308
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
1312
1309
|
return !Array(1).includes();
|
|
1313
1310
|
});
|
|
1314
1311
|
|
|
1315
1312
|
// `Array.prototype.includes` method
|
|
1316
1313
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
1317
|
-
$$
|
|
1314
|
+
$$7({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
1318
1315
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
1319
1316
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
1320
1317
|
}
|
|
@@ -1325,9 +1322,9 @@ addToUnscopables$2('includes');
|
|
|
1325
1322
|
|
|
1326
1323
|
var isObject$3 = isObject$9;
|
|
1327
1324
|
var classof$5 = classofRaw$2;
|
|
1328
|
-
var wellKnownSymbol$
|
|
1325
|
+
var wellKnownSymbol$8 = wellKnownSymbol$b;
|
|
1329
1326
|
|
|
1330
|
-
var MATCH$1 = wellKnownSymbol$
|
|
1327
|
+
var MATCH$1 = wellKnownSymbol$8('match');
|
|
1331
1328
|
|
|
1332
1329
|
// `IsRegExp` abstract operation
|
|
1333
1330
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
@@ -1338,29 +1335,29 @@ var isRegexp = function (it) {
|
|
|
1338
1335
|
|
|
1339
1336
|
var isRegExp = isRegexp;
|
|
1340
1337
|
|
|
1341
|
-
var $TypeError$
|
|
1338
|
+
var $TypeError$3 = TypeError;
|
|
1342
1339
|
|
|
1343
1340
|
var notARegexp = function (it) {
|
|
1344
1341
|
if (isRegExp(it)) {
|
|
1345
|
-
throw new $TypeError$
|
|
1342
|
+
throw new $TypeError$3("The method doesn't accept regular expressions");
|
|
1346
1343
|
} return it;
|
|
1347
1344
|
};
|
|
1348
1345
|
|
|
1349
|
-
var wellKnownSymbol$
|
|
1346
|
+
var wellKnownSymbol$7 = wellKnownSymbol$b;
|
|
1350
1347
|
|
|
1351
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$
|
|
1352
|
-
var test$
|
|
1348
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$7('toStringTag');
|
|
1349
|
+
var test$1 = {};
|
|
1353
1350
|
|
|
1354
|
-
test$
|
|
1351
|
+
test$1[TO_STRING_TAG$2] = 'z';
|
|
1355
1352
|
|
|
1356
|
-
var toStringTagSupport = String(test$
|
|
1353
|
+
var toStringTagSupport = String(test$1) === '[object z]';
|
|
1357
1354
|
|
|
1358
1355
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1359
|
-
var isCallable$
|
|
1356
|
+
var isCallable$7 = isCallable$i;
|
|
1360
1357
|
var classofRaw$1 = classofRaw$2;
|
|
1361
|
-
var wellKnownSymbol$
|
|
1358
|
+
var wellKnownSymbol$6 = wellKnownSymbol$b;
|
|
1362
1359
|
|
|
1363
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$
|
|
1360
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
|
|
1364
1361
|
var $Object$1 = Object;
|
|
1365
1362
|
|
|
1366
1363
|
// ES3 wrong here
|
|
@@ -1382,21 +1379,21 @@ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1382
1379
|
// builtinTag case
|
|
1383
1380
|
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
1384
1381
|
// ES3 arguments fallback
|
|
1385
|
-
: (result = classofRaw$1(O)) === 'Object' && isCallable$
|
|
1382
|
+
: (result = classofRaw$1(O)) === 'Object' && isCallable$7(O.callee) ? 'Arguments' : result;
|
|
1386
1383
|
};
|
|
1387
1384
|
|
|
1388
1385
|
var classof$3 = classof$4;
|
|
1389
1386
|
|
|
1390
|
-
var $String$
|
|
1387
|
+
var $String$2 = String;
|
|
1391
1388
|
|
|
1392
1389
|
var toString$5 = function (argument) {
|
|
1393
1390
|
if (classof$3(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1394
|
-
return $String$
|
|
1391
|
+
return $String$2(argument);
|
|
1395
1392
|
};
|
|
1396
1393
|
|
|
1397
|
-
var wellKnownSymbol$
|
|
1394
|
+
var wellKnownSymbol$5 = wellKnownSymbol$b;
|
|
1398
1395
|
|
|
1399
|
-
var MATCH = wellKnownSymbol$
|
|
1396
|
+
var MATCH = wellKnownSymbol$5('match');
|
|
1400
1397
|
|
|
1401
1398
|
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
1402
1399
|
var regexp = /./;
|
|
@@ -1410,21 +1407,21 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
1410
1407
|
} return false;
|
|
1411
1408
|
};
|
|
1412
1409
|
|
|
1413
|
-
var $$
|
|
1414
|
-
var uncurryThis$
|
|
1410
|
+
var $$6 = _export;
|
|
1411
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1415
1412
|
var notARegExp = notARegexp;
|
|
1416
|
-
var requireObjectCoercible
|
|
1413
|
+
var requireObjectCoercible = requireObjectCoercible$3;
|
|
1417
1414
|
var toString$4 = toString$5;
|
|
1418
1415
|
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
1419
1416
|
|
|
1420
|
-
var stringIndexOf = uncurryThis$
|
|
1417
|
+
var stringIndexOf = uncurryThis$9(''.indexOf);
|
|
1421
1418
|
|
|
1422
1419
|
// `String.prototype.includes` method
|
|
1423
1420
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
1424
|
-
$$
|
|
1421
|
+
$$6({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
1425
1422
|
includes: function includes(searchString /* , position = 0 */) {
|
|
1426
1423
|
return !!~stringIndexOf(
|
|
1427
|
-
toString$4(requireObjectCoercible
|
|
1424
|
+
toString$4(requireObjectCoercible(this)),
|
|
1428
1425
|
toString$4(notARegExp(searchString)),
|
|
1429
1426
|
arguments.length > 1 ? arguments[1] : undefined
|
|
1430
1427
|
);
|
|
@@ -1506,13 +1503,6 @@ const initialState = {
|
|
|
1506
1503
|
filters: layerSelectFilterAdapter.getInitialState()
|
|
1507
1504
|
},
|
|
1508
1505
|
allServicesEnabled: true,
|
|
1509
|
-
activeLayerInfo: {
|
|
1510
|
-
name: '',
|
|
1511
|
-
title: '',
|
|
1512
|
-
leaf: true,
|
|
1513
|
-
path: [],
|
|
1514
|
-
serviceName: ''
|
|
1515
|
-
},
|
|
1516
1506
|
servicePopup: initialServicePopupState
|
|
1517
1507
|
};
|
|
1518
1508
|
const slice = createSlice({
|
|
@@ -1608,12 +1598,6 @@ const slice = createSlice({
|
|
|
1608
1598
|
draft.filters.filters.entities[filterId].checked = false;
|
|
1609
1599
|
});
|
|
1610
1600
|
draft.filters.filters.entities[filterId].checked = true;
|
|
1611
|
-
},
|
|
1612
|
-
setActiveLayerInfo: (draft, action) => {
|
|
1613
|
-
const {
|
|
1614
|
-
layer
|
|
1615
|
-
} = action.payload;
|
|
1616
|
-
draft.activeLayerInfo = layer;
|
|
1617
1601
|
}
|
|
1618
1602
|
},
|
|
1619
1603
|
extraReducers: builder => {
|
|
@@ -1703,34 +1687,34 @@ var isArray$3 = Array.isArray || function isArray(argument) {
|
|
|
1703
1687
|
return classof$2(argument) === 'Array';
|
|
1704
1688
|
};
|
|
1705
1689
|
|
|
1706
|
-
var $TypeError$
|
|
1690
|
+
var $TypeError$2 = TypeError;
|
|
1707
1691
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
1708
1692
|
|
|
1709
1693
|
var doesNotExceedSafeInteger$1 = function (it) {
|
|
1710
|
-
if (it > MAX_SAFE_INTEGER) throw $TypeError$
|
|
1694
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError$2('Maximum allowed index exceeded');
|
|
1711
1695
|
return it;
|
|
1712
1696
|
};
|
|
1713
1697
|
|
|
1714
1698
|
var classofRaw = classofRaw$2;
|
|
1715
|
-
var uncurryThis$
|
|
1699
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
1716
1700
|
|
|
1717
1701
|
var functionUncurryThisClause = function (fn) {
|
|
1718
1702
|
// Nashorn bug:
|
|
1719
1703
|
// https://github.com/zloirock/core-js/issues/1128
|
|
1720
1704
|
// https://github.com/zloirock/core-js/issues/1130
|
|
1721
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$
|
|
1705
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$8(fn);
|
|
1722
1706
|
};
|
|
1723
1707
|
|
|
1724
|
-
var uncurryThis$
|
|
1708
|
+
var uncurryThis$7 = functionUncurryThisClause;
|
|
1725
1709
|
var aCallable$3 = aCallable$6;
|
|
1726
|
-
var NATIVE_BIND = functionBindNative;
|
|
1710
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
1727
1711
|
|
|
1728
|
-
var bind$1 = uncurryThis$
|
|
1712
|
+
var bind$1 = uncurryThis$7(uncurryThis$7.bind);
|
|
1729
1713
|
|
|
1730
1714
|
// optional / simple context binding
|
|
1731
1715
|
var functionBindContext = function (fn, that) {
|
|
1732
1716
|
aCallable$3(fn);
|
|
1733
|
-
return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
|
|
1717
|
+
return that === undefined ? fn : NATIVE_BIND$1 ? bind$1(fn, that) : function (/* ...args */) {
|
|
1734
1718
|
return fn.apply(that, arguments);
|
|
1735
1719
|
};
|
|
1736
1720
|
};
|
|
@@ -1769,21 +1753,21 @@ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, d
|
|
|
1769
1753
|
|
|
1770
1754
|
var flattenIntoArray_1 = flattenIntoArray$1;
|
|
1771
1755
|
|
|
1772
|
-
var uncurryThis$
|
|
1773
|
-
var fails$
|
|
1774
|
-
var isCallable$
|
|
1756
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1757
|
+
var fails$7 = fails$j;
|
|
1758
|
+
var isCallable$6 = isCallable$i;
|
|
1775
1759
|
var classof$1 = classof$4;
|
|
1776
|
-
var getBuiltIn = getBuiltIn$
|
|
1760
|
+
var getBuiltIn$1 = getBuiltIn$5;
|
|
1777
1761
|
var inspectSource = inspectSource$2;
|
|
1778
1762
|
|
|
1779
1763
|
var noop = function () { /* empty */ };
|
|
1780
|
-
var construct = getBuiltIn('Reflect', 'construct');
|
|
1764
|
+
var construct = getBuiltIn$1('Reflect', 'construct');
|
|
1781
1765
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1782
|
-
var exec$
|
|
1766
|
+
var exec$2 = uncurryThis$6(constructorRegExp.exec);
|
|
1783
1767
|
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
1784
1768
|
|
|
1785
1769
|
var isConstructorModern = function isConstructor(argument) {
|
|
1786
|
-
if (!isCallable$
|
|
1770
|
+
if (!isCallable$6(argument)) return false;
|
|
1787
1771
|
try {
|
|
1788
1772
|
construct(noop, [], argument);
|
|
1789
1773
|
return true;
|
|
@@ -1793,7 +1777,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
1793
1777
|
};
|
|
1794
1778
|
|
|
1795
1779
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
1796
|
-
if (!isCallable$
|
|
1780
|
+
if (!isCallable$6(argument)) return false;
|
|
1797
1781
|
switch (classof$1(argument)) {
|
|
1798
1782
|
case 'AsyncFunction':
|
|
1799
1783
|
case 'GeneratorFunction':
|
|
@@ -1803,7 +1787,7 @@ var isConstructorLegacy = function isConstructor(argument) {
|
|
|
1803
1787
|
// we can't check .prototype since constructors produced by .bind haven't it
|
|
1804
1788
|
// `Function#toString` throws on some built-it function in some legacy engines
|
|
1805
1789
|
// (for example, `DOMQuad` and similar in FF41-)
|
|
1806
|
-
return INCORRECT_TO_STRING || !!exec$
|
|
1790
|
+
return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource(argument));
|
|
1807
1791
|
} catch (error) {
|
|
1808
1792
|
return true;
|
|
1809
1793
|
}
|
|
@@ -1813,7 +1797,7 @@ isConstructorLegacy.sham = true;
|
|
|
1813
1797
|
|
|
1814
1798
|
// `IsConstructor` abstract operation
|
|
1815
1799
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1816
|
-
var isConstructor$
|
|
1800
|
+
var isConstructor$1 = !construct || fails$7(function () {
|
|
1817
1801
|
var called;
|
|
1818
1802
|
return isConstructorModern(isConstructorModern.call)
|
|
1819
1803
|
|| !isConstructorModern(Object)
|
|
@@ -1822,11 +1806,11 @@ var isConstructor$2 = !construct || fails$8(function () {
|
|
|
1822
1806
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
1823
1807
|
|
|
1824
1808
|
var isArray$1 = isArray$3;
|
|
1825
|
-
var isConstructor
|
|
1809
|
+
var isConstructor = isConstructor$1;
|
|
1826
1810
|
var isObject$2 = isObject$9;
|
|
1827
|
-
var wellKnownSymbol$
|
|
1811
|
+
var wellKnownSymbol$4 = wellKnownSymbol$b;
|
|
1828
1812
|
|
|
1829
|
-
var SPECIES
|
|
1813
|
+
var SPECIES = wellKnownSymbol$4('species');
|
|
1830
1814
|
var $Array = Array;
|
|
1831
1815
|
|
|
1832
1816
|
// a part of `ArraySpeciesCreate` abstract operation
|
|
@@ -1836,9 +1820,9 @@ var arraySpeciesConstructor$1 = function (originalArray) {
|
|
|
1836
1820
|
if (isArray$1(originalArray)) {
|
|
1837
1821
|
C = originalArray.constructor;
|
|
1838
1822
|
// cross-realm fallback
|
|
1839
|
-
if (isConstructor
|
|
1823
|
+
if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
|
|
1840
1824
|
else if (isObject$2(C)) {
|
|
1841
|
-
C = C[SPECIES
|
|
1825
|
+
C = C[SPECIES];
|
|
1842
1826
|
if (C === null) C = undefined;
|
|
1843
1827
|
}
|
|
1844
1828
|
} return C === undefined ? $Array : C;
|
|
@@ -1852,7 +1836,7 @@ var arraySpeciesCreate$1 = function (originalArray, length) {
|
|
|
1852
1836
|
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
1853
1837
|
};
|
|
1854
1838
|
|
|
1855
|
-
var $$
|
|
1839
|
+
var $$5 = _export;
|
|
1856
1840
|
var flattenIntoArray = flattenIntoArray_1;
|
|
1857
1841
|
var aCallable$2 = aCallable$6;
|
|
1858
1842
|
var toObject$2 = toObject$6;
|
|
@@ -1861,7 +1845,7 @@ var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
|
1861
1845
|
|
|
1862
1846
|
// `Array.prototype.flatMap` method
|
|
1863
1847
|
// https://tc39.es/ecma262/#sec-array.prototype.flatmap
|
|
1864
|
-
$$
|
|
1848
|
+
$$5({ target: 'Array', proto: true }, {
|
|
1865
1849
|
flatMap: function flatMap(callbackfn /* , thisArg */) {
|
|
1866
1850
|
var O = toObject$2(this);
|
|
1867
1851
|
var sourceLen = lengthOfArrayLike$1(O);
|
|
@@ -1875,9 +1859,9 @@ $$4({ target: 'Array', proto: true }, {
|
|
|
1875
1859
|
|
|
1876
1860
|
var iterators = {};
|
|
1877
1861
|
|
|
1878
|
-
var fails$
|
|
1862
|
+
var fails$6 = fails$j;
|
|
1879
1863
|
|
|
1880
|
-
var correctPrototypeGetter = !fails$
|
|
1864
|
+
var correctPrototypeGetter = !fails$6(function () {
|
|
1881
1865
|
function F() { /* empty */ }
|
|
1882
1866
|
F.prototype.constructor = null;
|
|
1883
1867
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1885,7 +1869,7 @@ var correctPrototypeGetter = !fails$7(function () {
|
|
|
1885
1869
|
});
|
|
1886
1870
|
|
|
1887
1871
|
var hasOwn$1 = hasOwnProperty_1;
|
|
1888
|
-
var isCallable$
|
|
1872
|
+
var isCallable$5 = isCallable$i;
|
|
1889
1873
|
var toObject$1 = toObject$6;
|
|
1890
1874
|
var sharedKey = sharedKey$3;
|
|
1891
1875
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
@@ -1901,19 +1885,19 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : f
|
|
|
1901
1885
|
var object = toObject$1(O);
|
|
1902
1886
|
if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
|
|
1903
1887
|
var constructor = object.constructor;
|
|
1904
|
-
if (isCallable$
|
|
1888
|
+
if (isCallable$5(constructor) && object instanceof constructor) {
|
|
1905
1889
|
return constructor.prototype;
|
|
1906
1890
|
} return object instanceof $Object ? ObjectPrototype : null;
|
|
1907
1891
|
};
|
|
1908
1892
|
|
|
1909
|
-
var fails$
|
|
1910
|
-
var isCallable$
|
|
1893
|
+
var fails$5 = fails$j;
|
|
1894
|
+
var isCallable$4 = isCallable$i;
|
|
1911
1895
|
var isObject$1 = isObject$9;
|
|
1912
1896
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1913
|
-
var defineBuiltIn$
|
|
1914
|
-
var wellKnownSymbol$
|
|
1897
|
+
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1898
|
+
var wellKnownSymbol$3 = wellKnownSymbol$b;
|
|
1915
1899
|
|
|
1916
|
-
var ITERATOR$2 = wellKnownSymbol$
|
|
1900
|
+
var ITERATOR$2 = wellKnownSymbol$3('iterator');
|
|
1917
1901
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1918
1902
|
|
|
1919
1903
|
// `%IteratorPrototype%` object
|
|
@@ -1931,7 +1915,7 @@ if ([].keys) {
|
|
|
1931
1915
|
}
|
|
1932
1916
|
}
|
|
1933
1917
|
|
|
1934
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$1(IteratorPrototype$2) || fails$
|
|
1918
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$1(IteratorPrototype$2) || fails$5(function () {
|
|
1935
1919
|
var test = {};
|
|
1936
1920
|
// FF44- legacy iterators case
|
|
1937
1921
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -1941,8 +1925,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1941
1925
|
|
|
1942
1926
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1943
1927
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1944
|
-
if (!isCallable$
|
|
1945
|
-
defineBuiltIn$
|
|
1928
|
+
if (!isCallable$4(IteratorPrototype$2[ITERATOR$2])) {
|
|
1929
|
+
defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
|
|
1946
1930
|
return this;
|
|
1947
1931
|
});
|
|
1948
1932
|
}
|
|
@@ -1954,9 +1938,9 @@ var iteratorsCore = {
|
|
|
1954
1938
|
|
|
1955
1939
|
var defineProperty$1 = objectDefineProperty.f;
|
|
1956
1940
|
var hasOwn = hasOwnProperty_1;
|
|
1957
|
-
var wellKnownSymbol$
|
|
1941
|
+
var wellKnownSymbol$2 = wellKnownSymbol$b;
|
|
1958
1942
|
|
|
1959
|
-
var TO_STRING_TAG = wellKnownSymbol$
|
|
1943
|
+
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
1960
1944
|
|
|
1961
1945
|
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1962
1946
|
if (target && !STATIC) target = target.prototype;
|
|
@@ -1981,13 +1965,13 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
|
1981
1965
|
return IteratorConstructor;
|
|
1982
1966
|
};
|
|
1983
1967
|
|
|
1984
|
-
var uncurryThis$
|
|
1968
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1985
1969
|
var aCallable$1 = aCallable$6;
|
|
1986
1970
|
|
|
1987
1971
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1988
1972
|
try {
|
|
1989
1973
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1990
|
-
return uncurryThis$
|
|
1974
|
+
return uncurryThis$5(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1991
1975
|
} catch (error) { /* empty */ }
|
|
1992
1976
|
};
|
|
1993
1977
|
|
|
@@ -1999,17 +1983,17 @@ var isPossiblePrototype$1 = function (argument) {
|
|
|
1999
1983
|
|
|
2000
1984
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
2001
1985
|
|
|
2002
|
-
var $String = String;
|
|
2003
|
-
var $TypeError$
|
|
1986
|
+
var $String$1 = String;
|
|
1987
|
+
var $TypeError$1 = TypeError;
|
|
2004
1988
|
|
|
2005
1989
|
var aPossiblePrototype$1 = function (argument) {
|
|
2006
1990
|
if (isPossiblePrototype(argument)) return argument;
|
|
2007
|
-
throw new $TypeError$
|
|
1991
|
+
throw new $TypeError$1("Can't set " + $String$1(argument) + ' as a prototype');
|
|
2008
1992
|
};
|
|
2009
1993
|
|
|
2010
1994
|
/* eslint-disable no-proto -- safe */
|
|
2011
1995
|
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
2012
|
-
var anObject$
|
|
1996
|
+
var anObject$2 = anObject$7;
|
|
2013
1997
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
2014
1998
|
|
|
2015
1999
|
// `Object.setPrototypeOf` method
|
|
@@ -2026,7 +2010,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
2026
2010
|
CORRECT_SETTER = test instanceof Array;
|
|
2027
2011
|
} catch (error) { /* empty */ }
|
|
2028
2012
|
return function setPrototypeOf(O, proto) {
|
|
2029
|
-
anObject$
|
|
2013
|
+
anObject$2(O);
|
|
2030
2014
|
aPossiblePrototype(proto);
|
|
2031
2015
|
if (CORRECT_SETTER) setter(O, proto);
|
|
2032
2016
|
else O.__proto__ = proto;
|
|
@@ -2034,17 +2018,17 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
2034
2018
|
};
|
|
2035
2019
|
}() : undefined);
|
|
2036
2020
|
|
|
2037
|
-
var $$
|
|
2021
|
+
var $$4 = _export;
|
|
2038
2022
|
var call$4 = functionCall;
|
|
2039
2023
|
var FunctionName = functionName;
|
|
2040
|
-
var isCallable$
|
|
2024
|
+
var isCallable$3 = isCallable$i;
|
|
2041
2025
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
2042
2026
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
2043
2027
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
2044
2028
|
var setToStringTag$1 = setToStringTag$3;
|
|
2045
|
-
var createNonEnumerableProperty$
|
|
2046
|
-
var defineBuiltIn
|
|
2047
|
-
var wellKnownSymbol$
|
|
2029
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
|
2030
|
+
var defineBuiltIn = defineBuiltIn$3;
|
|
2031
|
+
var wellKnownSymbol$1 = wellKnownSymbol$b;
|
|
2048
2032
|
var Iterators$1 = iterators;
|
|
2049
2033
|
var IteratorsCore = iteratorsCore;
|
|
2050
2034
|
|
|
@@ -2052,7 +2036,7 @@ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
|
2052
2036
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
2053
2037
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
2054
2038
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
2055
|
-
var ITERATOR$1 = wellKnownSymbol$
|
|
2039
|
+
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
2056
2040
|
var KEYS = 'keys';
|
|
2057
2041
|
var VALUES = 'values';
|
|
2058
2042
|
var ENTRIES = 'entries';
|
|
@@ -2092,8 +2076,8 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
2092
2076
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
2093
2077
|
if (setPrototypeOf) {
|
|
2094
2078
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
2095
|
-
} else if (!isCallable$
|
|
2096
|
-
defineBuiltIn
|
|
2079
|
+
} else if (!isCallable$3(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
2080
|
+
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
2097
2081
|
}
|
|
2098
2082
|
}
|
|
2099
2083
|
// Set @@toStringTag to native iterators
|
|
@@ -2104,7 +2088,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
2104
2088
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
2105
2089
|
if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
2106
2090
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
2107
|
-
createNonEnumerableProperty$
|
|
2091
|
+
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
2108
2092
|
} else {
|
|
2109
2093
|
INCORRECT_VALUES_NAME = true;
|
|
2110
2094
|
defaultIterator = function values() { return call$4(nativeIterator, this); };
|
|
@@ -2120,14 +2104,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
2120
2104
|
};
|
|
2121
2105
|
if (FORCED) for (KEY in methods) {
|
|
2122
2106
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
2123
|
-
defineBuiltIn
|
|
2107
|
+
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
2124
2108
|
}
|
|
2125
|
-
} else $$
|
|
2109
|
+
} else $$4({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
2126
2110
|
}
|
|
2127
2111
|
|
|
2128
2112
|
// define iterator
|
|
2129
2113
|
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
2130
|
-
defineBuiltIn
|
|
2114
|
+
defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
2131
2115
|
}
|
|
2132
2116
|
Iterators$1[NAME] = defaultIterator;
|
|
2133
2117
|
|
|
@@ -2201,19 +2185,19 @@ if (DESCRIPTORS && values.name !== 'values') try {
|
|
|
2201
2185
|
defineProperty(values, 'name', { value: 'values' });
|
|
2202
2186
|
} catch (error) { /* empty */ }
|
|
2203
2187
|
|
|
2204
|
-
var tryToString
|
|
2188
|
+
var tryToString = tryToString$2;
|
|
2205
2189
|
|
|
2206
|
-
var $TypeError
|
|
2190
|
+
var $TypeError = TypeError;
|
|
2207
2191
|
|
|
2208
2192
|
var deletePropertyOrThrow$1 = function (O, P) {
|
|
2209
|
-
if (!delete O[P]) throw new $TypeError
|
|
2193
|
+
if (!delete O[P]) throw new $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
|
|
2210
2194
|
};
|
|
2211
2195
|
|
|
2212
|
-
var uncurryThis$
|
|
2196
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
2213
2197
|
|
|
2214
|
-
var arraySlice$
|
|
2198
|
+
var arraySlice$2 = uncurryThis$4([].slice);
|
|
2215
2199
|
|
|
2216
|
-
var arraySlice = arraySlice$
|
|
2200
|
+
var arraySlice$1 = arraySlice$2;
|
|
2217
2201
|
|
|
2218
2202
|
var floor = Math.floor;
|
|
2219
2203
|
|
|
@@ -2236,8 +2220,8 @@ var sort = function (array, comparefn) {
|
|
|
2236
2220
|
} else {
|
|
2237
2221
|
// merge sort
|
|
2238
2222
|
var middle = floor(length / 2);
|
|
2239
|
-
var left = sort(arraySlice(array, 0, middle), comparefn);
|
|
2240
|
-
var right = sort(arraySlice(array, middle), comparefn);
|
|
2223
|
+
var left = sort(arraySlice$1(array, 0, middle), comparefn);
|
|
2224
|
+
var right = sort(arraySlice$1(array, middle), comparefn);
|
|
2241
2225
|
var llength = left.length;
|
|
2242
2226
|
var rlength = right.length;
|
|
2243
2227
|
var lindex = 0;
|
|
@@ -2271,14 +2255,14 @@ var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
|
|
|
2271
2255
|
|
|
2272
2256
|
var engineWebkitVersion = !!webkit && +webkit[1];
|
|
2273
2257
|
|
|
2274
|
-
var $$
|
|
2275
|
-
var uncurryThis$
|
|
2258
|
+
var $$3 = _export;
|
|
2259
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
2276
2260
|
var aCallable = aCallable$6;
|
|
2277
2261
|
var toObject = toObject$6;
|
|
2278
2262
|
var lengthOfArrayLike = lengthOfArrayLike$5;
|
|
2279
2263
|
var deletePropertyOrThrow = deletePropertyOrThrow$1;
|
|
2280
2264
|
var toString$3 = toString$5;
|
|
2281
|
-
var fails$
|
|
2265
|
+
var fails$4 = fails$j;
|
|
2282
2266
|
var internalSort = arraySort;
|
|
2283
2267
|
var arrayMethodIsStrict = arrayMethodIsStrict$2;
|
|
2284
2268
|
var FF = engineFfVersion;
|
|
@@ -2286,22 +2270,22 @@ var IE_OR_EDGE = engineIsIeOrEdge;
|
|
|
2286
2270
|
var V8 = engineV8Version;
|
|
2287
2271
|
var WEBKIT = engineWebkitVersion;
|
|
2288
2272
|
|
|
2289
|
-
var test
|
|
2290
|
-
var nativeSort = uncurryThis$
|
|
2291
|
-
var push$1 = uncurryThis$
|
|
2273
|
+
var test = [];
|
|
2274
|
+
var nativeSort = uncurryThis$3(test.sort);
|
|
2275
|
+
var push$1 = uncurryThis$3(test.push);
|
|
2292
2276
|
|
|
2293
2277
|
// IE8-
|
|
2294
|
-
var FAILS_ON_UNDEFINED = fails$
|
|
2295
|
-
test
|
|
2278
|
+
var FAILS_ON_UNDEFINED = fails$4(function () {
|
|
2279
|
+
test.sort(undefined);
|
|
2296
2280
|
});
|
|
2297
2281
|
// V8 bug
|
|
2298
|
-
var FAILS_ON_NULL = fails$
|
|
2299
|
-
test
|
|
2282
|
+
var FAILS_ON_NULL = fails$4(function () {
|
|
2283
|
+
test.sort(null);
|
|
2300
2284
|
});
|
|
2301
2285
|
// Old WebKit
|
|
2302
2286
|
var STRICT_METHOD = arrayMethodIsStrict('sort');
|
|
2303
2287
|
|
|
2304
|
-
var STABLE_SORT = !fails$
|
|
2288
|
+
var STABLE_SORT = !fails$4(function () {
|
|
2305
2289
|
// feature detection can be too slow, so check engines versions
|
|
2306
2290
|
if (V8) return V8 < 70;
|
|
2307
2291
|
if (FF && FF > 3) return;
|
|
@@ -2322,14 +2306,14 @@ var STABLE_SORT = !fails$5(function () {
|
|
|
2322
2306
|
}
|
|
2323
2307
|
|
|
2324
2308
|
for (index = 0; index < 47; index++) {
|
|
2325
|
-
test
|
|
2309
|
+
test.push({ k: chr + index, v: value });
|
|
2326
2310
|
}
|
|
2327
2311
|
}
|
|
2328
2312
|
|
|
2329
|
-
test
|
|
2313
|
+
test.sort(function (a, b) { return b.v - a.v; });
|
|
2330
2314
|
|
|
2331
|
-
for (index = 0; index < test
|
|
2332
|
-
chr = test
|
|
2315
|
+
for (index = 0; index < test.length; index++) {
|
|
2316
|
+
chr = test[index].k.charAt(0);
|
|
2333
2317
|
if (result.charAt(result.length - 1) !== chr) result += chr;
|
|
2334
2318
|
}
|
|
2335
2319
|
|
|
@@ -2349,7 +2333,7 @@ var getSortCompare = function (comparefn) {
|
|
|
2349
2333
|
|
|
2350
2334
|
// `Array.prototype.sort` method
|
|
2351
2335
|
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
|
2352
|
-
$$
|
|
2336
|
+
$$3({ target: 'Array', proto: true, forced: FORCED }, {
|
|
2353
2337
|
sort: function sort(comparefn) {
|
|
2354
2338
|
if (comparefn !== undefined) aCallable(comparefn);
|
|
2355
2339
|
|
|
@@ -2432,18 +2416,18 @@ var global$4 = global$g;
|
|
|
2432
2416
|
var DOMIterables = domIterables;
|
|
2433
2417
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
2434
2418
|
var ArrayIteratorMethods = es_array_iterator;
|
|
2435
|
-
var createNonEnumerableProperty
|
|
2419
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
2436
2420
|
var setToStringTag = setToStringTag$3;
|
|
2437
|
-
var wellKnownSymbol
|
|
2421
|
+
var wellKnownSymbol = wellKnownSymbol$b;
|
|
2438
2422
|
|
|
2439
|
-
var ITERATOR = wellKnownSymbol
|
|
2423
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
2440
2424
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
2441
2425
|
|
|
2442
2426
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
2443
2427
|
if (CollectionPrototype) {
|
|
2444
2428
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
2445
2429
|
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
2446
|
-
createNonEnumerableProperty
|
|
2430
|
+
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
|
|
2447
2431
|
} catch (error) {
|
|
2448
2432
|
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
2449
2433
|
}
|
|
@@ -2451,7 +2435,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
2451
2435
|
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
2452
2436
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
2453
2437
|
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
2454
|
-
createNonEnumerableProperty
|
|
2438
|
+
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
2455
2439
|
} catch (error) {
|
|
2456
2440
|
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
2457
2441
|
}
|
|
@@ -2577,19 +2561,11 @@ const isAllFiltersChecked = createSelector(layerSelectStore, store => {
|
|
|
2577
2561
|
return (_c = (_b = (_a = store === null || store === void 0 ? void 0 : store.filters) === null || _a === void 0 ? void 0 : _a.filters) === null || _b === void 0 ? void 0 : _b.entities[filterId]) === null || _c === void 0 ? void 0 : _c.checked;
|
|
2578
2562
|
});
|
|
2579
2563
|
});
|
|
2580
|
-
/**
|
|
2581
|
-
* Returns the active layer info
|
|
2582
|
-
*
|
|
2583
|
-
* Example getActiveLayerInfo(store);
|
|
2584
|
-
* @param {object} store store: object - store object
|
|
2585
|
-
* @returns {object} returnType: ActiveLayerObject
|
|
2586
|
-
*/
|
|
2587
|
-
const getActiveLayerInfo = createSelector(layerSelectStore, store => store === null || store === void 0 ? void 0 : store.activeLayerInfo);
|
|
2588
2564
|
/**
|
|
2589
2565
|
* Returns a filtered active layer object based on the given filter settings
|
|
2590
2566
|
* Example: layerSelectSelectors.getFilteredLayers(store, filteredSettings);
|
|
2591
2567
|
* @param {object} store store: object - object from which the service state will be extracted
|
|
2592
|
-
* @returns {array} returnType:
|
|
2568
|
+
* @returns {array} returnType: LayerWithServiceName - an array of all filtered activelayers
|
|
2593
2569
|
*/
|
|
2594
2570
|
const getFilteredLayers = createSelector([getEnabledServiceIds, serviceSelectors.getServices, getCheckedFilterIds, isAllFiltersChecked, getSearchFilter], (enabledServiceIds, servicesStore, checkedFilterIds, allFiltersActive, searchFilter) => {
|
|
2595
2571
|
return enabledServiceIds.reduce((layerList, serviceId) => {
|
|
@@ -2626,7 +2602,6 @@ var selectors = /*#__PURE__*/Object.freeze({
|
|
|
2626
2602
|
getCheckedFilterIds: getCheckedFilterIds,
|
|
2627
2603
|
getFilters: getFilters,
|
|
2628
2604
|
isAllFiltersChecked: isAllFiltersChecked,
|
|
2629
|
-
getActiveLayerInfo: getActiveLayerInfo,
|
|
2630
2605
|
getFilteredLayers: getFilteredLayers,
|
|
2631
2606
|
getServicePopupDetails: getServicePopupDetails
|
|
2632
2607
|
});
|
|
@@ -2652,6 +2627,120 @@ var types = /*#__PURE__*/Object.freeze({
|
|
|
2652
2627
|
__proto__: null
|
|
2653
2628
|
});
|
|
2654
2629
|
|
|
2630
|
+
var NATIVE_BIND = functionBindNative;
|
|
2631
|
+
|
|
2632
|
+
var FunctionPrototype = Function.prototype;
|
|
2633
|
+
var apply$1 = FunctionPrototype.apply;
|
|
2634
|
+
var call$3 = FunctionPrototype.call;
|
|
2635
|
+
|
|
2636
|
+
// eslint-disable-next-line es/no-reflect -- safe
|
|
2637
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$3.bind(apply$1) : function () {
|
|
2638
|
+
return call$3.apply(apply$1, arguments);
|
|
2639
|
+
});
|
|
2640
|
+
|
|
2641
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
2642
|
+
var isArray = isArray$3;
|
|
2643
|
+
var isCallable$2 = isCallable$i;
|
|
2644
|
+
var classof = classofRaw$2;
|
|
2645
|
+
var toString$2 = toString$5;
|
|
2646
|
+
|
|
2647
|
+
var push = uncurryThis$2([].push);
|
|
2648
|
+
|
|
2649
|
+
var getJsonReplacerFunction = function (replacer) {
|
|
2650
|
+
if (isCallable$2(replacer)) return replacer;
|
|
2651
|
+
if (!isArray(replacer)) return;
|
|
2652
|
+
var rawLength = replacer.length;
|
|
2653
|
+
var keys = [];
|
|
2654
|
+
for (var i = 0; i < rawLength; i++) {
|
|
2655
|
+
var element = replacer[i];
|
|
2656
|
+
if (typeof element == 'string') push(keys, element);
|
|
2657
|
+
else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') push(keys, toString$2(element));
|
|
2658
|
+
}
|
|
2659
|
+
var keysLength = keys.length;
|
|
2660
|
+
var root = true;
|
|
2661
|
+
return function (key, value) {
|
|
2662
|
+
if (root) {
|
|
2663
|
+
root = false;
|
|
2664
|
+
return value;
|
|
2665
|
+
}
|
|
2666
|
+
if (isArray(this)) return value;
|
|
2667
|
+
for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
|
|
2668
|
+
};
|
|
2669
|
+
};
|
|
2670
|
+
|
|
2671
|
+
var $$2 = _export;
|
|
2672
|
+
var getBuiltIn = getBuiltIn$5;
|
|
2673
|
+
var apply = functionApply;
|
|
2674
|
+
var call$2 = functionCall;
|
|
2675
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
2676
|
+
var fails$3 = fails$j;
|
|
2677
|
+
var isCallable$1 = isCallable$i;
|
|
2678
|
+
var isSymbol = isSymbol$3;
|
|
2679
|
+
var arraySlice = arraySlice$2;
|
|
2680
|
+
var getReplacerFunction = getJsonReplacerFunction;
|
|
2681
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
2682
|
+
|
|
2683
|
+
var $String = String;
|
|
2684
|
+
var $stringify = getBuiltIn('JSON', 'stringify');
|
|
2685
|
+
var exec$1 = uncurryThis$1(/./.exec);
|
|
2686
|
+
var charAt$1 = uncurryThis$1(''.charAt);
|
|
2687
|
+
var charCodeAt = uncurryThis$1(''.charCodeAt);
|
|
2688
|
+
var replace$1 = uncurryThis$1(''.replace);
|
|
2689
|
+
var numberToString = uncurryThis$1(1.0.toString);
|
|
2690
|
+
|
|
2691
|
+
var tester = /[\uD800-\uDFFF]/g;
|
|
2692
|
+
var low = /^[\uD800-\uDBFF]$/;
|
|
2693
|
+
var hi = /^[\uDC00-\uDFFF]$/;
|
|
2694
|
+
|
|
2695
|
+
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$3(function () {
|
|
2696
|
+
var symbol = getBuiltIn('Symbol')('stringify detection');
|
|
2697
|
+
// MS Edge converts symbol values to JSON as {}
|
|
2698
|
+
return $stringify([symbol]) !== '[null]'
|
|
2699
|
+
// WebKit converts symbol values to JSON as null
|
|
2700
|
+
|| $stringify({ a: symbol }) !== '{}'
|
|
2701
|
+
// V8 throws on boxed symbols
|
|
2702
|
+
|| $stringify(Object(symbol)) !== '{}';
|
|
2703
|
+
});
|
|
2704
|
+
|
|
2705
|
+
// https://github.com/tc39/proposal-well-formed-stringify
|
|
2706
|
+
var ILL_FORMED_UNICODE = fails$3(function () {
|
|
2707
|
+
return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
|
|
2708
|
+
|| $stringify('\uDEAD') !== '"\\udead"';
|
|
2709
|
+
});
|
|
2710
|
+
|
|
2711
|
+
var stringifyWithSymbolsFix = function (it, replacer) {
|
|
2712
|
+
var args = arraySlice(arguments);
|
|
2713
|
+
var $replacer = getReplacerFunction(replacer);
|
|
2714
|
+
if (!isCallable$1($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
|
|
2715
|
+
args[1] = function (key, value) {
|
|
2716
|
+
// some old implementations (like WebKit) could pass numbers as keys
|
|
2717
|
+
if (isCallable$1($replacer)) value = call$2($replacer, this, $String(key), value);
|
|
2718
|
+
if (!isSymbol(value)) return value;
|
|
2719
|
+
};
|
|
2720
|
+
return apply($stringify, null, args);
|
|
2721
|
+
};
|
|
2722
|
+
|
|
2723
|
+
var fixIllFormed = function (match, offset, string) {
|
|
2724
|
+
var prev = charAt$1(string, offset - 1);
|
|
2725
|
+
var next = charAt$1(string, offset + 1);
|
|
2726
|
+
if ((exec$1(low, match) && !exec$1(hi, next)) || (exec$1(hi, match) && !exec$1(low, prev))) {
|
|
2727
|
+
return '\\u' + numberToString(charCodeAt(match, 0), 16);
|
|
2728
|
+
} return match;
|
|
2729
|
+
};
|
|
2730
|
+
|
|
2731
|
+
if ($stringify) {
|
|
2732
|
+
// `JSON.stringify` method
|
|
2733
|
+
// https://tc39.es/ecma262/#sec-json.stringify
|
|
2734
|
+
$$2({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
|
|
2735
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2736
|
+
stringify: function stringify(it, replacer, space) {
|
|
2737
|
+
var args = arraySlice(arguments);
|
|
2738
|
+
var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
|
|
2739
|
+
return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$1(result, tester, fixIllFormed) : result;
|
|
2740
|
+
}
|
|
2741
|
+
});
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2655
2744
|
/* *
|
|
2656
2745
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2657
2746
|
* you may not use this file except in compliance with the License.
|
|
@@ -2705,10 +2794,7 @@ function* layerSelectCloseInfoDialogSaga({
|
|
|
2705
2794
|
{
|
|
2706
2795
|
const togglePayload = payload;
|
|
2707
2796
|
if (!togglePayload.setOpen && togglePayload.type === uiTypes.DialogTypes.LayerSelect) {
|
|
2708
|
-
yield put(
|
|
2709
|
-
type: uiTypes.DialogTypes.LayerInfo,
|
|
2710
|
-
setOpen: false
|
|
2711
|
-
}));
|
|
2797
|
+
yield put(layerActions.hideLayerInfo());
|
|
2712
2798
|
}
|
|
2713
2799
|
break;
|
|
2714
2800
|
}
|
|
@@ -2718,10 +2804,7 @@ function* layerSelectCloseInfoDialogSaga({
|
|
|
2718
2804
|
if (!activeMapIdPayload.setOpen) {
|
|
2719
2805
|
const isLayerInfoDialogOpen = yield select(uiSelectors.getisDialogOpen, uiTypes.DialogTypes.LayerInfo);
|
|
2720
2806
|
if (isLayerInfoDialogOpen) {
|
|
2721
|
-
yield put(
|
|
2722
|
-
type: uiTypes.DialogTypes.LayerInfo,
|
|
2723
|
-
setOpen: false
|
|
2724
|
-
}));
|
|
2807
|
+
yield put(layerActions.hideLayerInfo());
|
|
2725
2808
|
}
|
|
2726
2809
|
}
|
|
2727
2810
|
break;
|
|
@@ -2731,12 +2814,10 @@ function* layerSelectCloseInfoDialogSaga({
|
|
|
2731
2814
|
const isLayerInfoDialogOpen = yield select(uiSelectors.getisDialogOpen, uiTypes.DialogTypes.LayerInfo);
|
|
2732
2815
|
if (isLayerInfoDialogOpen) {
|
|
2733
2816
|
const filteredLayers = yield select(getFilteredLayers);
|
|
2734
|
-
const dialogInfo = yield select(getActiveLayerInfo);
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
setOpen: false
|
|
2739
|
-
}));
|
|
2817
|
+
const dialogInfo = yield select(layerSelectors.getActiveLayerInfo);
|
|
2818
|
+
const layerWithData = yield select(serviceSelectors.getLayerFromService, dialogInfo.serviceUrl, dialogInfo.layerName);
|
|
2819
|
+
if (!filteredLayers.map(layer => layer.title).includes(layerWithData.title)) {
|
|
2820
|
+
yield put(layerActions.hideLayerInfo());
|
|
2740
2821
|
}
|
|
2741
2822
|
}
|
|
2742
2823
|
}
|
|
@@ -3124,944 +3205,56 @@ const KeywordFilterResultsConnect = ({
|
|
|
3124
3205
|
});
|
|
3125
3206
|
};
|
|
3126
3207
|
|
|
3127
|
-
|
|
3128
|
-
Copyright (c) Microsoft Corporation.
|
|
3129
|
-
|
|
3130
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
3131
|
-
purpose with or without fee is hereby granted.
|
|
3132
|
-
|
|
3133
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
3134
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
3135
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
3136
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
3137
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3138
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3139
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
3140
|
-
***************************************************************************** */
|
|
3141
|
-
|
|
3142
|
-
function __rest(s, e) {
|
|
3143
|
-
var t = {};
|
|
3144
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
3145
|
-
t[p] = s[p];
|
|
3146
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3147
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3148
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
3149
|
-
t[p[i]] = s[p[i]];
|
|
3150
|
-
}
|
|
3151
|
-
return t;
|
|
3152
|
-
}
|
|
3153
|
-
|
|
3154
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
3155
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3156
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
3157
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
3158
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
3159
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
3160
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
3161
|
-
});
|
|
3162
|
-
}
|
|
3163
|
-
|
|
3164
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
3165
|
-
var e = new Error(message);
|
|
3166
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
3167
|
-
};
|
|
3168
|
-
|
|
3169
|
-
const LayerInfoButton = _a => {
|
|
3170
|
-
var {
|
|
3171
|
-
isOpenInStore,
|
|
3172
|
-
isActive,
|
|
3173
|
-
onClick
|
|
3174
|
-
} = _a,
|
|
3175
|
-
props = __rest(_a, ["isOpenInStore", "isActive", "onClick"]);
|
|
3176
|
-
return jsx(CustomIconButton, Object.assign({
|
|
3177
|
-
variant: "flat",
|
|
3178
|
-
isSelected: isActive && isOpenInStore,
|
|
3179
|
-
onClick: onClick,
|
|
3180
|
-
id: "layerInfoButton",
|
|
3181
|
-
"data-testid": "layerInfoButton",
|
|
3182
|
-
"aria-label": "layer info",
|
|
3183
|
-
className: "layerInfoButton"
|
|
3184
|
-
}, props, {
|
|
3185
|
-
children: jsx(Info, {})
|
|
3186
|
-
}));
|
|
3187
|
-
};
|
|
3188
|
-
|
|
3189
|
-
const LayerInfoButtonConnect = ({
|
|
3190
|
-
isLayerMissing,
|
|
3208
|
+
const LayerAddRemoveButton = ({
|
|
3191
3209
|
layer,
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3210
|
+
layerIndex,
|
|
3211
|
+
serviceUrl,
|
|
3212
|
+
addLayer,
|
|
3213
|
+
deleteLayer,
|
|
3214
|
+
mapLayers
|
|
3195
3215
|
}) => {
|
|
3196
|
-
const
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
}
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
}, [dispatch, layer, serviceName]);
|
|
3219
|
-
const onClick = () => {
|
|
3220
|
-
if (isActive) {
|
|
3221
|
-
toggleInfoDialog();
|
|
3222
|
-
}
|
|
3223
|
-
if (!isActive && isOpenInStore) {
|
|
3224
|
-
setActiveLayerInfo();
|
|
3225
|
-
}
|
|
3226
|
-
if (!isActive && !isOpenInStore) {
|
|
3227
|
-
setActiveLayerInfo();
|
|
3228
|
-
toggleInfoDialog();
|
|
3229
|
-
}
|
|
3230
|
-
};
|
|
3231
|
-
return jsx(LayerInfoButton, {
|
|
3232
|
-
disabled: isLayerMissing,
|
|
3233
|
-
isActive: isActive,
|
|
3234
|
-
isOpenInStore: isOpenInStore,
|
|
3235
|
-
onClick: onClick
|
|
3236
|
-
});
|
|
3216
|
+
const foundLayer = mapLayers.find(lr => lr.name === layer.name && lr.service === serviceUrl);
|
|
3217
|
+
return jsx(CustomToggleButton, Object.assign({
|
|
3218
|
+
"data-testid": `layerAddRemoveButton-${layer.name}`,
|
|
3219
|
+
onClick: () => {
|
|
3220
|
+
!foundLayer ? addLayer({
|
|
3221
|
+
serviceUrl,
|
|
3222
|
+
layerName: layer.name
|
|
3223
|
+
}) : deleteLayer({
|
|
3224
|
+
layerId: foundLayer.id,
|
|
3225
|
+
layerIndex
|
|
3226
|
+
});
|
|
3227
|
+
},
|
|
3228
|
+
selected: !!foundLayer,
|
|
3229
|
+
variant: "tool",
|
|
3230
|
+
fullWidth: true,
|
|
3231
|
+
sx: {
|
|
3232
|
+
fontSize: '12px'
|
|
3233
|
+
},
|
|
3234
|
+
className: "layerAddRemoveButton"
|
|
3235
|
+
}, {
|
|
3236
|
+
children: !foundLayer ? 'Add' : 'Remove'
|
|
3237
|
+
}));
|
|
3237
3238
|
};
|
|
3238
3239
|
|
|
3239
|
-
const
|
|
3240
|
-
|
|
3241
|
-
letterSpacing: '0.25px'
|
|
3242
|
-
};
|
|
3243
|
-
const textStyleWithMargin = Object.assign(Object.assign({}, textStyle), {
|
|
3244
|
-
marginBottom: 1
|
|
3245
|
-
});
|
|
3246
|
-
const LayerInfoText = ({
|
|
3247
|
-
label,
|
|
3248
|
-
value
|
|
3240
|
+
const LayerListDimensions = ({
|
|
3241
|
+
dimensions
|
|
3249
3242
|
}) => {
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
})), jsx(Typography$1, Object.assign({
|
|
3257
|
-
variant: "body2",
|
|
3258
|
-
sx: textStyleWithMargin
|
|
3243
|
+
if (!dimensions || !dimensions.length) {
|
|
3244
|
+
return null;
|
|
3245
|
+
}
|
|
3246
|
+
return jsx(Fragment, {
|
|
3247
|
+
children: dimensions.map(dimension => jsx(CustomTooltip, Object.assign({
|
|
3248
|
+
title: `${dimension.label}: ${dimension.value}`
|
|
3259
3249
|
}, {
|
|
3260
|
-
children:
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
}
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
})
|
|
3268
|
-
const LayerInfoList = ({
|
|
3269
|
-
label,
|
|
3270
|
-
list
|
|
3271
|
-
}) => {
|
|
3272
|
-
return jsxs(Fragment, {
|
|
3273
|
-
children: [jsx(Typography$1, Object.assign({
|
|
3274
|
-
variant: "subtitle2",
|
|
3275
|
-
sx: textStyle
|
|
3276
|
-
}, {
|
|
3277
|
-
children: label
|
|
3278
|
-
})), list.length === 0 ? jsx(Typography$1, Object.assign({
|
|
3279
|
-
variant: "body2",
|
|
3280
|
-
sx: textStyleWithMargin
|
|
3281
|
-
}, {
|
|
3282
|
-
children: "-"
|
|
3283
|
-
})) : jsx(Grid$1, Object.assign({
|
|
3284
|
-
container: true,
|
|
3285
|
-
direction: "column"
|
|
3286
|
-
}, {
|
|
3287
|
-
children: list.map(item => jsxs("div", {
|
|
3288
|
-
children: [jsxs(Grid$1, Object.assign({
|
|
3289
|
-
item: true,
|
|
3290
|
-
container: true,
|
|
3291
|
-
direction: "row"
|
|
3292
|
-
}, {
|
|
3293
|
-
children: [item.icon, jsx(Grid$1, Object.assign({
|
|
3294
|
-
item: true,
|
|
3295
|
-
sx: {
|
|
3296
|
-
marginLeft: '10px'
|
|
3297
|
-
}
|
|
3298
|
-
}, {
|
|
3299
|
-
children: jsxs(Typography$1, Object.assign({
|
|
3300
|
-
variant: "body2",
|
|
3301
|
-
sx: textStyle
|
|
3302
|
-
}, {
|
|
3303
|
-
children: [item.label, ":"]
|
|
3304
|
-
}))
|
|
3305
|
-
}))]
|
|
3306
|
-
})), jsx(Grid$1, Object.assign({
|
|
3307
|
-
item: true,
|
|
3308
|
-
container: true,
|
|
3309
|
-
direction: "row",
|
|
3310
|
-
sx: {
|
|
3311
|
-
marginBottom: 1,
|
|
3312
|
-
paddingLeft: '34px'
|
|
3313
|
-
}
|
|
3314
|
-
}, {
|
|
3315
|
-
children: jsx(Typography$1, Object.assign({
|
|
3316
|
-
variant: "body2",
|
|
3317
|
-
sx: valueStyle
|
|
3318
|
-
}, {
|
|
3319
|
-
children: item.value
|
|
3320
|
-
}))
|
|
3321
|
-
}))]
|
|
3322
|
-
}, item.label))
|
|
3323
|
-
}))]
|
|
3324
|
-
});
|
|
3325
|
-
};
|
|
3326
|
-
|
|
3327
|
-
const LayerInfoLegend = ({
|
|
3328
|
-
title,
|
|
3329
|
-
name,
|
|
3330
|
-
dimensions,
|
|
3331
|
-
legendURL
|
|
3332
|
-
}) => {
|
|
3333
|
-
return jsxs(Fragment, {
|
|
3334
|
-
children: [jsx(Typography$1, Object.assign({
|
|
3335
|
-
variant: "subtitle2",
|
|
3336
|
-
sx: textStyleWithMargin
|
|
3337
|
-
}, {
|
|
3338
|
-
children: "Legend"
|
|
3339
|
-
})), jsx(LegendLayout, Object.assign({
|
|
3340
|
-
title: title,
|
|
3341
|
-
name: name,
|
|
3342
|
-
dimensions: dimensions
|
|
3343
|
-
}, {
|
|
3344
|
-
children: legendURL ? jsx("img", {
|
|
3345
|
-
alt: title,
|
|
3346
|
-
src: legendURL
|
|
3347
|
-
}) : '-'
|
|
3348
|
-
}))]
|
|
3349
|
-
});
|
|
3350
|
-
};
|
|
3351
|
-
|
|
3352
|
-
var $$1 = _export;
|
|
3353
|
-
var uncurryThis$3 = functionUncurryThis;
|
|
3354
|
-
var isArray = isArray$3;
|
|
3355
|
-
|
|
3356
|
-
var nativeReverse = uncurryThis$3([].reverse);
|
|
3357
|
-
var test = [1, 2];
|
|
3358
|
-
|
|
3359
|
-
// `Array.prototype.reverse` method
|
|
3360
|
-
// https://tc39.es/ecma262/#sec-array.prototype.reverse
|
|
3361
|
-
// fix for Safari 12.0 bug
|
|
3362
|
-
// https://bugs.webkit.org/show_bug.cgi?id=188794
|
|
3363
|
-
$$1({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {
|
|
3364
|
-
reverse: function reverse() {
|
|
3365
|
-
// eslint-disable-next-line no-self-assign -- dirty hack
|
|
3366
|
-
if (isArray(this)) this.length = this.length;
|
|
3367
|
-
return nativeReverse(this);
|
|
3368
|
-
}
|
|
3369
|
-
});
|
|
3370
|
-
|
|
3371
|
-
var anObject$3 = anObject$9;
|
|
3372
|
-
|
|
3373
|
-
// `RegExp.prototype.flags` getter implementation
|
|
3374
|
-
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
3375
|
-
var regexpFlags$1 = function () {
|
|
3376
|
-
var that = anObject$3(this);
|
|
3377
|
-
var result = '';
|
|
3378
|
-
if (that.hasIndices) result += 'd';
|
|
3379
|
-
if (that.global) result += 'g';
|
|
3380
|
-
if (that.ignoreCase) result += 'i';
|
|
3381
|
-
if (that.multiline) result += 'm';
|
|
3382
|
-
if (that.dotAll) result += 's';
|
|
3383
|
-
if (that.unicode) result += 'u';
|
|
3384
|
-
if (that.unicodeSets) result += 'v';
|
|
3385
|
-
if (that.sticky) result += 'y';
|
|
3386
|
-
return result;
|
|
3387
|
-
};
|
|
3388
|
-
|
|
3389
|
-
var fails$4 = fails$k;
|
|
3390
|
-
var global$3 = global$g;
|
|
3391
|
-
|
|
3392
|
-
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
3393
|
-
var $RegExp$2 = global$3.RegExp;
|
|
3394
|
-
|
|
3395
|
-
var UNSUPPORTED_Y$2 = fails$4(function () {
|
|
3396
|
-
var re = $RegExp$2('a', 'y');
|
|
3397
|
-
re.lastIndex = 2;
|
|
3398
|
-
return re.exec('abcd') !== null;
|
|
3399
|
-
});
|
|
3400
|
-
|
|
3401
|
-
// UC Browser bug
|
|
3402
|
-
// https://github.com/zloirock/core-js/issues/1008
|
|
3403
|
-
var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$4(function () {
|
|
3404
|
-
return !$RegExp$2('a', 'y').sticky;
|
|
3405
|
-
});
|
|
3406
|
-
|
|
3407
|
-
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$4(function () {
|
|
3408
|
-
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
3409
|
-
var re = $RegExp$2('^r', 'gy');
|
|
3410
|
-
re.lastIndex = 2;
|
|
3411
|
-
return re.exec('str') !== null;
|
|
3412
|
-
});
|
|
3413
|
-
|
|
3414
|
-
var regexpStickyHelpers = {
|
|
3415
|
-
BROKEN_CARET: BROKEN_CARET,
|
|
3416
|
-
MISSED_STICKY: MISSED_STICKY,
|
|
3417
|
-
UNSUPPORTED_Y: UNSUPPORTED_Y$2
|
|
3418
|
-
};
|
|
3419
|
-
|
|
3420
|
-
var fails$3 = fails$k;
|
|
3421
|
-
var global$2 = global$g;
|
|
3422
|
-
|
|
3423
|
-
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
3424
|
-
var $RegExp$1 = global$2.RegExp;
|
|
3425
|
-
|
|
3426
|
-
var regexpUnsupportedDotAll = fails$3(function () {
|
|
3427
|
-
var re = $RegExp$1('.', 's');
|
|
3428
|
-
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
3429
|
-
});
|
|
3430
|
-
|
|
3431
|
-
var fails$2 = fails$k;
|
|
3432
|
-
var global$1 = global$g;
|
|
3433
|
-
|
|
3434
|
-
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
3435
|
-
var $RegExp = global$1.RegExp;
|
|
3436
|
-
|
|
3437
|
-
var regexpUnsupportedNcg = fails$2(function () {
|
|
3438
|
-
var re = $RegExp('(?<a>b)', 'g');
|
|
3439
|
-
return re.exec('b').groups.a !== 'b' ||
|
|
3440
|
-
'b'.replace(re, '$<a>c') !== 'bc';
|
|
3441
|
-
});
|
|
3442
|
-
|
|
3443
|
-
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
3444
|
-
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
3445
|
-
var call$3 = functionCall;
|
|
3446
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
3447
|
-
var toString$2 = toString$5;
|
|
3448
|
-
var regexpFlags = regexpFlags$1;
|
|
3449
|
-
var stickyHelpers$1 = regexpStickyHelpers;
|
|
3450
|
-
var shared = shared$4.exports;
|
|
3451
|
-
var create = objectCreate;
|
|
3452
|
-
var getInternalState = internalState.get;
|
|
3453
|
-
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
3454
|
-
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
3455
|
-
|
|
3456
|
-
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
3457
|
-
var nativeExec = RegExp.prototype.exec;
|
|
3458
|
-
var patchedExec = nativeExec;
|
|
3459
|
-
var charAt$2 = uncurryThis$2(''.charAt);
|
|
3460
|
-
var indexOf = uncurryThis$2(''.indexOf);
|
|
3461
|
-
var replace = uncurryThis$2(''.replace);
|
|
3462
|
-
var stringSlice$2 = uncurryThis$2(''.slice);
|
|
3463
|
-
|
|
3464
|
-
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
3465
|
-
var re1 = /a/;
|
|
3466
|
-
var re2 = /b*/g;
|
|
3467
|
-
call$3(nativeExec, re1, 'a');
|
|
3468
|
-
call$3(nativeExec, re2, 'a');
|
|
3469
|
-
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
3470
|
-
})();
|
|
3471
|
-
|
|
3472
|
-
var UNSUPPORTED_Y$1 = stickyHelpers$1.BROKEN_CARET;
|
|
3473
|
-
|
|
3474
|
-
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
3475
|
-
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
3476
|
-
|
|
3477
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
3478
|
-
|
|
3479
|
-
if (PATCH) {
|
|
3480
|
-
patchedExec = function exec(string) {
|
|
3481
|
-
var re = this;
|
|
3482
|
-
var state = getInternalState(re);
|
|
3483
|
-
var str = toString$2(string);
|
|
3484
|
-
var raw = state.raw;
|
|
3485
|
-
var result, reCopy, lastIndex, match, i, object, group;
|
|
3486
|
-
|
|
3487
|
-
if (raw) {
|
|
3488
|
-
raw.lastIndex = re.lastIndex;
|
|
3489
|
-
result = call$3(patchedExec, raw, str);
|
|
3490
|
-
re.lastIndex = raw.lastIndex;
|
|
3491
|
-
return result;
|
|
3492
|
-
}
|
|
3493
|
-
|
|
3494
|
-
var groups = state.groups;
|
|
3495
|
-
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
|
3496
|
-
var flags = call$3(regexpFlags, re);
|
|
3497
|
-
var source = re.source;
|
|
3498
|
-
var charsAdded = 0;
|
|
3499
|
-
var strCopy = str;
|
|
3500
|
-
|
|
3501
|
-
if (sticky) {
|
|
3502
|
-
flags = replace(flags, 'y', '');
|
|
3503
|
-
if (indexOf(flags, 'g') === -1) {
|
|
3504
|
-
flags += 'g';
|
|
3505
|
-
}
|
|
3506
|
-
|
|
3507
|
-
strCopy = stringSlice$2(str, re.lastIndex);
|
|
3508
|
-
// Support anchored sticky behavior.
|
|
3509
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$2(str, re.lastIndex - 1) !== '\n')) {
|
|
3510
|
-
source = '(?: ' + source + ')';
|
|
3511
|
-
strCopy = ' ' + strCopy;
|
|
3512
|
-
charsAdded++;
|
|
3513
|
-
}
|
|
3514
|
-
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
3515
|
-
// simulate the 'y' flag.
|
|
3516
|
-
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
3517
|
-
}
|
|
3518
|
-
|
|
3519
|
-
if (NPCG_INCLUDED) {
|
|
3520
|
-
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
3521
|
-
}
|
|
3522
|
-
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
3523
|
-
|
|
3524
|
-
match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
|
|
3525
|
-
|
|
3526
|
-
if (sticky) {
|
|
3527
|
-
if (match) {
|
|
3528
|
-
match.input = stringSlice$2(match.input, charsAdded);
|
|
3529
|
-
match[0] = stringSlice$2(match[0], charsAdded);
|
|
3530
|
-
match.index = re.lastIndex;
|
|
3531
|
-
re.lastIndex += match[0].length;
|
|
3532
|
-
} else re.lastIndex = 0;
|
|
3533
|
-
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
3534
|
-
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
3535
|
-
}
|
|
3536
|
-
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
3537
|
-
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
3538
|
-
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
3539
|
-
call$3(nativeReplace, match[0], reCopy, function () {
|
|
3540
|
-
for (i = 1; i < arguments.length - 2; i++) {
|
|
3541
|
-
if (arguments[i] === undefined) match[i] = undefined;
|
|
3542
|
-
}
|
|
3543
|
-
});
|
|
3544
|
-
}
|
|
3545
|
-
|
|
3546
|
-
if (match && groups) {
|
|
3547
|
-
match.groups = object = create(null);
|
|
3548
|
-
for (i = 0; i < groups.length; i++) {
|
|
3549
|
-
group = groups[i];
|
|
3550
|
-
object[group[0]] = match[group[1]];
|
|
3551
|
-
}
|
|
3552
|
-
}
|
|
3553
|
-
|
|
3554
|
-
return match;
|
|
3555
|
-
};
|
|
3556
|
-
}
|
|
3557
|
-
|
|
3558
|
-
var regexpExec$2 = patchedExec;
|
|
3559
|
-
|
|
3560
|
-
var $ = _export;
|
|
3561
|
-
var exec = regexpExec$2;
|
|
3562
|
-
|
|
3563
|
-
// `RegExp.prototype.exec` method
|
|
3564
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
3565
|
-
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
3566
|
-
exec: exec
|
|
3567
|
-
});
|
|
3568
|
-
|
|
3569
|
-
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
3570
|
-
|
|
3571
|
-
var call$2 = functionCall;
|
|
3572
|
-
var defineBuiltIn = defineBuiltIn$4;
|
|
3573
|
-
var regexpExec$1 = regexpExec$2;
|
|
3574
|
-
var fails$1 = fails$k;
|
|
3575
|
-
var wellKnownSymbol$1 = wellKnownSymbol$d;
|
|
3576
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
3577
|
-
|
|
3578
|
-
var SPECIES$1 = wellKnownSymbol$1('species');
|
|
3579
|
-
var RegExpPrototype = RegExp.prototype;
|
|
3580
|
-
|
|
3581
|
-
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
3582
|
-
var SYMBOL = wellKnownSymbol$1(KEY);
|
|
3583
|
-
|
|
3584
|
-
var DELEGATES_TO_SYMBOL = !fails$1(function () {
|
|
3585
|
-
// String methods call symbol-named RegExp methods
|
|
3586
|
-
var O = {};
|
|
3587
|
-
O[SYMBOL] = function () { return 7; };
|
|
3588
|
-
return ''[KEY](O) !== 7;
|
|
3589
|
-
});
|
|
3590
|
-
|
|
3591
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
|
|
3592
|
-
// Symbol-named RegExp methods call .exec
|
|
3593
|
-
var execCalled = false;
|
|
3594
|
-
var re = /a/;
|
|
3595
|
-
|
|
3596
|
-
if (KEY === 'split') {
|
|
3597
|
-
// We can't use real regex here since it causes deoptimization
|
|
3598
|
-
// and serious performance degradation in V8
|
|
3599
|
-
// https://github.com/zloirock/core-js/issues/306
|
|
3600
|
-
re = {};
|
|
3601
|
-
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
3602
|
-
// a new one. We need to return the patched regex when creating the new one.
|
|
3603
|
-
re.constructor = {};
|
|
3604
|
-
re.constructor[SPECIES$1] = function () { return re; };
|
|
3605
|
-
re.flags = '';
|
|
3606
|
-
re[SYMBOL] = /./[SYMBOL];
|
|
3607
|
-
}
|
|
3608
|
-
|
|
3609
|
-
re.exec = function () {
|
|
3610
|
-
execCalled = true;
|
|
3611
|
-
return null;
|
|
3612
|
-
};
|
|
3613
|
-
|
|
3614
|
-
re[SYMBOL]('');
|
|
3615
|
-
return !execCalled;
|
|
3616
|
-
});
|
|
3617
|
-
|
|
3618
|
-
if (
|
|
3619
|
-
!DELEGATES_TO_SYMBOL ||
|
|
3620
|
-
!DELEGATES_TO_EXEC ||
|
|
3621
|
-
FORCED
|
|
3622
|
-
) {
|
|
3623
|
-
var nativeRegExpMethod = /./[SYMBOL];
|
|
3624
|
-
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
3625
|
-
var $exec = regexp.exec;
|
|
3626
|
-
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
3627
|
-
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
3628
|
-
// The native String method already delegates to @@method (this
|
|
3629
|
-
// polyfilled function), leasing to infinite recursion.
|
|
3630
|
-
// We avoid it by directly calling the native @@method method.
|
|
3631
|
-
return { done: true, value: call$2(nativeRegExpMethod, regexp, str, arg2) };
|
|
3632
|
-
}
|
|
3633
|
-
return { done: true, value: call$2(nativeMethod, str, regexp, arg2) };
|
|
3634
|
-
}
|
|
3635
|
-
return { done: false };
|
|
3636
|
-
});
|
|
3637
|
-
|
|
3638
|
-
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
3639
|
-
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
3640
|
-
}
|
|
3641
|
-
|
|
3642
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
3643
|
-
};
|
|
3644
|
-
|
|
3645
|
-
var isConstructor = isConstructor$2;
|
|
3646
|
-
var tryToString = tryToString$3;
|
|
3647
|
-
|
|
3648
|
-
var $TypeError$1 = TypeError;
|
|
3649
|
-
|
|
3650
|
-
// `Assert: IsConstructor(argument) is true`
|
|
3651
|
-
var aConstructor$1 = function (argument) {
|
|
3652
|
-
if (isConstructor(argument)) return argument;
|
|
3653
|
-
throw new $TypeError$1(tryToString(argument) + ' is not a constructor');
|
|
3654
|
-
};
|
|
3655
|
-
|
|
3656
|
-
var anObject$2 = anObject$9;
|
|
3657
|
-
var aConstructor = aConstructor$1;
|
|
3658
|
-
var isNullOrUndefined$1 = isNullOrUndefined$4;
|
|
3659
|
-
var wellKnownSymbol = wellKnownSymbol$d;
|
|
3660
|
-
|
|
3661
|
-
var SPECIES = wellKnownSymbol('species');
|
|
3662
|
-
|
|
3663
|
-
// `SpeciesConstructor` abstract operation
|
|
3664
|
-
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
3665
|
-
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
3666
|
-
var C = anObject$2(O).constructor;
|
|
3667
|
-
var S;
|
|
3668
|
-
return C === undefined || isNullOrUndefined$1(S = anObject$2(C)[SPECIES]) ? defaultConstructor : aConstructor(S);
|
|
3669
|
-
};
|
|
3670
|
-
|
|
3671
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
3672
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$3;
|
|
3673
|
-
var toString$1 = toString$5;
|
|
3674
|
-
var requireObjectCoercible$1 = requireObjectCoercible$5;
|
|
3675
|
-
|
|
3676
|
-
var charAt$1 = uncurryThis$1(''.charAt);
|
|
3677
|
-
var charCodeAt = uncurryThis$1(''.charCodeAt);
|
|
3678
|
-
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
3679
|
-
|
|
3680
|
-
var createMethod = function (CONVERT_TO_STRING) {
|
|
3681
|
-
return function ($this, pos) {
|
|
3682
|
-
var S = toString$1(requireObjectCoercible$1($this));
|
|
3683
|
-
var position = toIntegerOrInfinity(pos);
|
|
3684
|
-
var size = S.length;
|
|
3685
|
-
var first, second;
|
|
3686
|
-
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
3687
|
-
first = charCodeAt(S, position);
|
|
3688
|
-
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
3689
|
-
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
3690
|
-
? CONVERT_TO_STRING
|
|
3691
|
-
? charAt$1(S, position)
|
|
3692
|
-
: first
|
|
3693
|
-
: CONVERT_TO_STRING
|
|
3694
|
-
? stringSlice$1(S, position, position + 2)
|
|
3695
|
-
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
3696
|
-
};
|
|
3697
|
-
};
|
|
3698
|
-
|
|
3699
|
-
var stringMultibyte = {
|
|
3700
|
-
// `String.prototype.codePointAt` method
|
|
3701
|
-
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
3702
|
-
codeAt: createMethod(false),
|
|
3703
|
-
// `String.prototype.at` method
|
|
3704
|
-
// https://github.com/mathiasbynens/String.prototype.at
|
|
3705
|
-
charAt: createMethod(true)
|
|
3706
|
-
};
|
|
3707
|
-
|
|
3708
|
-
var charAt = stringMultibyte.charAt;
|
|
3709
|
-
|
|
3710
|
-
// `AdvanceStringIndex` abstract operation
|
|
3711
|
-
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
3712
|
-
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
3713
|
-
return index + (unicode ? charAt(S, index).length : 1);
|
|
3714
|
-
};
|
|
3715
|
-
|
|
3716
|
-
var call$1 = functionCall;
|
|
3717
|
-
var anObject$1 = anObject$9;
|
|
3718
|
-
var isCallable = isCallable$g;
|
|
3719
|
-
var classof = classofRaw$2;
|
|
3720
|
-
var regexpExec = regexpExec$2;
|
|
3721
|
-
|
|
3722
|
-
var $TypeError = TypeError;
|
|
3723
|
-
|
|
3724
|
-
// `RegExpExec` abstract operation
|
|
3725
|
-
// https://tc39.es/ecma262/#sec-regexpexec
|
|
3726
|
-
var regexpExecAbstract = function (R, S) {
|
|
3727
|
-
var exec = R.exec;
|
|
3728
|
-
if (isCallable(exec)) {
|
|
3729
|
-
var result = call$1(exec, R, S);
|
|
3730
|
-
if (result !== null) anObject$1(result);
|
|
3731
|
-
return result;
|
|
3732
|
-
}
|
|
3733
|
-
if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
|
|
3734
|
-
throw new $TypeError('RegExp#exec called on incompatible receiver');
|
|
3735
|
-
};
|
|
3736
|
-
|
|
3737
|
-
var call = functionCall;
|
|
3738
|
-
var uncurryThis = functionUncurryThis;
|
|
3739
|
-
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
3740
|
-
var anObject = anObject$9;
|
|
3741
|
-
var isNullOrUndefined = isNullOrUndefined$4;
|
|
3742
|
-
var requireObjectCoercible = requireObjectCoercible$5;
|
|
3743
|
-
var speciesConstructor = speciesConstructor$1;
|
|
3744
|
-
var advanceStringIndex = advanceStringIndex$1;
|
|
3745
|
-
var toLength = toLength$2;
|
|
3746
|
-
var toString = toString$5;
|
|
3747
|
-
var getMethod = getMethod$2;
|
|
3748
|
-
var regExpExec = regexpExecAbstract;
|
|
3749
|
-
var stickyHelpers = regexpStickyHelpers;
|
|
3750
|
-
var fails = fails$k;
|
|
3751
|
-
|
|
3752
|
-
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
|
3753
|
-
var MAX_UINT32 = 0xFFFFFFFF;
|
|
3754
|
-
var min = Math.min;
|
|
3755
|
-
var push = uncurryThis([].push);
|
|
3756
|
-
var stringSlice = uncurryThis(''.slice);
|
|
3757
|
-
|
|
3758
|
-
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
3759
|
-
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
|
3760
|
-
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
|
3761
|
-
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
3762
|
-
var re = /(?:)/;
|
|
3763
|
-
var originalExec = re.exec;
|
|
3764
|
-
re.exec = function () { return originalExec.apply(this, arguments); };
|
|
3765
|
-
var result = 'ab'.split(re);
|
|
3766
|
-
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
|
3767
|
-
});
|
|
3768
|
-
|
|
3769
|
-
var BUGGY = 'abbc'.split(/(b)*/)[1] === 'c' ||
|
|
3770
|
-
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
3771
|
-
'test'.split(/(?:)/, -1).length !== 4 ||
|
|
3772
|
-
'ab'.split(/(?:ab)*/).length !== 2 ||
|
|
3773
|
-
'.'.split(/(.?)(.?)/).length !== 4 ||
|
|
3774
|
-
// eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
|
3775
|
-
'.'.split(/()()/).length > 1 ||
|
|
3776
|
-
''.split(/.?/).length;
|
|
3777
|
-
|
|
3778
|
-
// @@split logic
|
|
3779
|
-
fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
|
|
3780
|
-
var internalSplit = '0'.split(undefined, 0).length ? function (separator, limit) {
|
|
3781
|
-
return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit);
|
|
3782
|
-
} : nativeSplit;
|
|
3783
|
-
|
|
3784
|
-
return [
|
|
3785
|
-
// `String.prototype.split` method
|
|
3786
|
-
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
3787
|
-
function split(separator, limit) {
|
|
3788
|
-
var O = requireObjectCoercible(this);
|
|
3789
|
-
var splitter = isNullOrUndefined(separator) ? undefined : getMethod(separator, SPLIT);
|
|
3790
|
-
return splitter
|
|
3791
|
-
? call(splitter, separator, O, limit)
|
|
3792
|
-
: call(internalSplit, toString(O), separator, limit);
|
|
3793
|
-
},
|
|
3794
|
-
// `RegExp.prototype[@@split]` method
|
|
3795
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
3796
|
-
//
|
|
3797
|
-
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
3798
|
-
// the 'y' flag.
|
|
3799
|
-
function (string, limit) {
|
|
3800
|
-
var rx = anObject(this);
|
|
3801
|
-
var S = toString(string);
|
|
3802
|
-
|
|
3803
|
-
if (!BUGGY) {
|
|
3804
|
-
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
|
3805
|
-
if (res.done) return res.value;
|
|
3806
|
-
}
|
|
3807
|
-
|
|
3808
|
-
var C = speciesConstructor(rx, RegExp);
|
|
3809
|
-
var unicodeMatching = rx.unicode;
|
|
3810
|
-
var flags = (rx.ignoreCase ? 'i' : '') +
|
|
3811
|
-
(rx.multiline ? 'm' : '') +
|
|
3812
|
-
(rx.unicode ? 'u' : '') +
|
|
3813
|
-
(UNSUPPORTED_Y ? 'g' : 'y');
|
|
3814
|
-
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
3815
|
-
// simulate the 'y' flag.
|
|
3816
|
-
var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
|
|
3817
|
-
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
3818
|
-
if (lim === 0) return [];
|
|
3819
|
-
if (S.length === 0) return regExpExec(splitter, S) === null ? [S] : [];
|
|
3820
|
-
var p = 0;
|
|
3821
|
-
var q = 0;
|
|
3822
|
-
var A = [];
|
|
3823
|
-
while (q < S.length) {
|
|
3824
|
-
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
|
|
3825
|
-
var z = regExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S);
|
|
3826
|
-
var e;
|
|
3827
|
-
if (
|
|
3828
|
-
z === null ||
|
|
3829
|
-
(e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
|
|
3830
|
-
) {
|
|
3831
|
-
q = advanceStringIndex(S, q, unicodeMatching);
|
|
3832
|
-
} else {
|
|
3833
|
-
push(A, stringSlice(S, p, q));
|
|
3834
|
-
if (A.length === lim) return A;
|
|
3835
|
-
for (var i = 1; i <= z.length - 1; i++) {
|
|
3836
|
-
push(A, z[i]);
|
|
3837
|
-
if (A.length === lim) return A;
|
|
3838
|
-
}
|
|
3839
|
-
q = p = e;
|
|
3840
|
-
}
|
|
3841
|
-
}
|
|
3842
|
-
push(A, stringSlice(S, p));
|
|
3843
|
-
return A;
|
|
3844
|
-
}
|
|
3845
|
-
];
|
|
3846
|
-
}, BUGGY || !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
|
|
3847
|
-
|
|
3848
|
-
const getLayerStyles = layer => {
|
|
3849
|
-
if (!layer.styles) {
|
|
3850
|
-
return '-';
|
|
3851
|
-
}
|
|
3852
|
-
const styles = layer.styles.map(style => style.title);
|
|
3853
|
-
if (!styles.length) {
|
|
3854
|
-
return '-';
|
|
3855
|
-
}
|
|
3856
|
-
return styles.join(', ');
|
|
3857
|
-
};
|
|
3858
|
-
const getDimensionValue = (name, dimensions) => {
|
|
3859
|
-
const dimension = dimensions === null || dimensions === void 0 ? void 0 : dimensions.find(dimension => dimension.name.toLowerCase() === name.toLowerCase());
|
|
3860
|
-
if (!dimension || !dimension.values) {
|
|
3861
|
-
return null;
|
|
3862
|
-
}
|
|
3863
|
-
const dimName = dimension.name.toLowerCase();
|
|
3864
|
-
const breakAt = dimName === 'time' ? '/' : ',';
|
|
3865
|
-
const includeUnit = dimName !== 'time' && dimName !== 'reference_time';
|
|
3866
|
-
const dimValue = dimension.values.split(breakAt).join(`${breakAt} `);
|
|
3867
|
-
if (includeUnit) {
|
|
3868
|
-
return `${dimValue} ${dimension.units}`;
|
|
3869
|
-
}
|
|
3870
|
-
return dimValue;
|
|
3871
|
-
};
|
|
3872
|
-
const getLayerBbox = layer => {
|
|
3873
|
-
return layer.geographicBoundingBox ? `west ${layer.geographicBoundingBox.west}, east ${layer.geographicBoundingBox.east}, north ${layer.geographicBoundingBox.north}, south ${layer.geographicBoundingBox.south}` : '-';
|
|
3874
|
-
};
|
|
3875
|
-
const getDimensionIcon = (name, dimensions) => {
|
|
3876
|
-
const dimension = dimensions === null || dimensions === void 0 ? void 0 : dimensions.find(dimension => dimension.name.toLowerCase() === name.toLowerCase());
|
|
3877
|
-
if (!dimension) {
|
|
3878
|
-
return null;
|
|
3879
|
-
}
|
|
3880
|
-
switch (dimension.name.toLowerCase()) {
|
|
3881
|
-
case 'time':
|
|
3882
|
-
return jsx(DimensionsTime, {});
|
|
3883
|
-
case 'reference_time':
|
|
3884
|
-
return jsx(DimensionsRefTime, {});
|
|
3885
|
-
case 'elevation':
|
|
3886
|
-
return jsx(DimensionsElevation, {});
|
|
3887
|
-
default:
|
|
3888
|
-
return jsx(DimensionsOther, {});
|
|
3889
|
-
}
|
|
3890
|
-
};
|
|
3891
|
-
const getDimensionLabel = name => {
|
|
3892
|
-
const dimName = name.toLowerCase().split('_').join(' ');
|
|
3893
|
-
return dimName.charAt(0).toUpperCase() + dimName.slice(1);
|
|
3894
|
-
};
|
|
3895
|
-
const getDimensionsList = dimensions => {
|
|
3896
|
-
const result = [];
|
|
3897
|
-
dimensions === null || dimensions === void 0 ? void 0 : dimensions.forEach(({
|
|
3898
|
-
name
|
|
3899
|
-
}) => {
|
|
3900
|
-
const value = getDimensionValue(name, dimensions);
|
|
3901
|
-
if (!value) {
|
|
3902
|
-
return;
|
|
3903
|
-
}
|
|
3904
|
-
const icon = getDimensionIcon(name, dimensions);
|
|
3905
|
-
const label = getDimensionLabel(name);
|
|
3906
|
-
result.push({
|
|
3907
|
-
label,
|
|
3908
|
-
value,
|
|
3909
|
-
icon
|
|
3910
|
-
});
|
|
3911
|
-
});
|
|
3912
|
-
// sort alphabetically so other dimensions are sorted
|
|
3913
|
-
result.sort((a, b) => a.label.localeCompare(b.label));
|
|
3914
|
-
// sort by fixed order
|
|
3915
|
-
const preferredOrder = ['Time', 'Reference time', 'Elevation'];
|
|
3916
|
-
// using reverse ordering to make sure the other dimensions come last
|
|
3917
|
-
preferredOrder.reverse();
|
|
3918
|
-
result.sort((a, b) => preferredOrder.indexOf(b.label) - preferredOrder.indexOf(a.label));
|
|
3919
|
-
return result;
|
|
3920
|
-
};
|
|
3921
|
-
|
|
3922
|
-
const LayerInfoDialog = ({
|
|
3923
|
-
onClose,
|
|
3924
|
-
layer,
|
|
3925
|
-
isOpen,
|
|
3926
|
-
onMouseDown: _onMouseDown = () => {},
|
|
3927
|
-
order: _order = 0,
|
|
3928
|
-
source: _source = 'app',
|
|
3929
|
-
dialogHeight
|
|
3930
|
-
}) => {
|
|
3931
|
-
var _a, _b, _c;
|
|
3932
|
-
const styles = getLayerStyles(layer);
|
|
3933
|
-
const bbox = getLayerBbox(layer);
|
|
3934
|
-
const dimensions = getDimensionsList(layer.dimensions);
|
|
3935
|
-
return jsx(ToolContainerDraggable, Object.assign({
|
|
3936
|
-
onClose: onClose,
|
|
3937
|
-
startSize: {
|
|
3938
|
-
width: 288,
|
|
3939
|
-
height: dialogHeight || 650
|
|
3940
|
-
},
|
|
3941
|
-
startPosition: {
|
|
3942
|
-
top: 150,
|
|
3943
|
-
left: 900
|
|
3944
|
-
},
|
|
3945
|
-
title: "Layer Info",
|
|
3946
|
-
isOpen: isOpen,
|
|
3947
|
-
onMouseDown: _onMouseDown,
|
|
3948
|
-
order: _order,
|
|
3949
|
-
source: _source
|
|
3950
|
-
}, {
|
|
3951
|
-
children: jsxs(Box, Object.assign({
|
|
3952
|
-
sx: {
|
|
3953
|
-
padding: 2
|
|
3954
|
-
}
|
|
3955
|
-
}, {
|
|
3956
|
-
children: [jsx(LayerInfoText, {
|
|
3957
|
-
label: "Title",
|
|
3958
|
-
value: layer.title
|
|
3959
|
-
}), jsx(LayerInfoText, {
|
|
3960
|
-
label: "Name",
|
|
3961
|
-
value: layer.name
|
|
3962
|
-
}), jsx(LayerInfoText, {
|
|
3963
|
-
label: "Service",
|
|
3964
|
-
value: layer.serviceName
|
|
3965
|
-
}), jsx(LayerInfoText, {
|
|
3966
|
-
label: "Abstract",
|
|
3967
|
-
value: layer.abstract || '-'
|
|
3968
|
-
}), jsx(LayerInfoList, {
|
|
3969
|
-
label: "Dimensions",
|
|
3970
|
-
list: dimensions
|
|
3971
|
-
}), jsx(LayerInfoText, {
|
|
3972
|
-
label: "Styles",
|
|
3973
|
-
value: styles
|
|
3974
|
-
}), jsx(LayerInfoText, {
|
|
3975
|
-
label: "Bounding Box",
|
|
3976
|
-
value: bbox
|
|
3977
|
-
}), jsx(LayerInfoText, {
|
|
3978
|
-
label: "Groups",
|
|
3979
|
-
value: ((_a = layer.path) === null || _a === void 0 ? void 0 : _a.join('/')) || '-'
|
|
3980
|
-
}), jsx(LayerInfoText, {
|
|
3981
|
-
label: "Keywords",
|
|
3982
|
-
value: ((_b = layer.keywords) === null || _b === void 0 ? void 0 : _b.join(', ')) || '-'
|
|
3983
|
-
}), jsx(LayerInfoLegend, {
|
|
3984
|
-
title: layer.title,
|
|
3985
|
-
name: layer.name,
|
|
3986
|
-
dimensions: layer.dimensions,
|
|
3987
|
-
legendURL: ((_c = layer.styles) === null || _c === void 0 ? void 0 : _c.length) ? layer.styles[0].legendURL : undefined
|
|
3988
|
-
})]
|
|
3989
|
-
}))
|
|
3990
|
-
}));
|
|
3991
|
-
};
|
|
3992
|
-
|
|
3993
|
-
const LayerInfoDialogConnect = () => {
|
|
3994
|
-
const layer = useAppSelector(store => getActiveLayerInfo(store));
|
|
3995
|
-
const {
|
|
3996
|
-
dialogOrder,
|
|
3997
|
-
onCloseDialog,
|
|
3998
|
-
setDialogOrder,
|
|
3999
|
-
uiSource,
|
|
4000
|
-
isDialogOpen
|
|
4001
|
-
} = useSetupDialog(uiTypes.DialogTypes.LayerInfo);
|
|
4002
|
-
if (!layer) {
|
|
4003
|
-
return null;
|
|
4004
|
-
}
|
|
4005
|
-
return jsx(LayerInfoDialog, {
|
|
4006
|
-
isOpen: isDialogOpen,
|
|
4007
|
-
onClose: onCloseDialog,
|
|
4008
|
-
onMouseDown: setDialogOrder,
|
|
4009
|
-
order: dialogOrder,
|
|
4010
|
-
source: uiSource,
|
|
4011
|
-
layer: layer
|
|
4012
|
-
});
|
|
4013
|
-
};
|
|
4014
|
-
|
|
4015
|
-
const LayerAddRemoveButton = ({
|
|
4016
|
-
layer,
|
|
4017
|
-
layerIndex,
|
|
4018
|
-
serviceUrl,
|
|
4019
|
-
addLayer,
|
|
4020
|
-
deleteLayer,
|
|
4021
|
-
mapLayers
|
|
4022
|
-
}) => {
|
|
4023
|
-
const foundLayer = mapLayers.find(lr => lr.name === layer.name && lr.service === serviceUrl);
|
|
4024
|
-
return jsx(CustomToggleButton, Object.assign({
|
|
4025
|
-
"data-testid": `layerAddRemoveButton-${layer.name}`,
|
|
4026
|
-
onClick: () => {
|
|
4027
|
-
!foundLayer ? addLayer({
|
|
4028
|
-
serviceUrl,
|
|
4029
|
-
layerName: layer.name
|
|
4030
|
-
}) : deleteLayer({
|
|
4031
|
-
layerId: foundLayer.id,
|
|
4032
|
-
layerIndex
|
|
4033
|
-
});
|
|
4034
|
-
},
|
|
4035
|
-
selected: !!foundLayer,
|
|
4036
|
-
variant: "tool",
|
|
4037
|
-
fullWidth: true,
|
|
4038
|
-
sx: {
|
|
4039
|
-
fontSize: '12px'
|
|
4040
|
-
},
|
|
4041
|
-
className: "layerAddRemoveButton"
|
|
4042
|
-
}, {
|
|
4043
|
-
children: !foundLayer ? 'Add' : 'Remove'
|
|
4044
|
-
}));
|
|
4045
|
-
};
|
|
4046
|
-
|
|
4047
|
-
const LayerListDimensions = ({
|
|
4048
|
-
dimensions
|
|
4049
|
-
}) => {
|
|
4050
|
-
if (!dimensions || !dimensions.length) {
|
|
4051
|
-
return null;
|
|
4052
|
-
}
|
|
4053
|
-
return jsx(Fragment, {
|
|
4054
|
-
children: dimensions.map(dimension => jsx(CustomTooltip, Object.assign({
|
|
4055
|
-
title: `${dimension.label}: ${dimension.value}`
|
|
4056
|
-
}, {
|
|
4057
|
-
children: jsx("span", Object.assign({
|
|
4058
|
-
style: {
|
|
4059
|
-
marginRight: 4
|
|
4060
|
-
}
|
|
4061
|
-
}, {
|
|
4062
|
-
children: dimension.icon
|
|
4063
|
-
}))
|
|
4064
|
-
}), dimension.label))
|
|
3250
|
+
children: jsx("span", Object.assign({
|
|
3251
|
+
style: {
|
|
3252
|
+
marginRight: 4
|
|
3253
|
+
}
|
|
3254
|
+
}, {
|
|
3255
|
+
children: dimension.icon
|
|
3256
|
+
}))
|
|
3257
|
+
}), dimension.label))
|
|
4065
3258
|
});
|
|
4066
3259
|
};
|
|
4067
3260
|
|
|
@@ -4188,9 +3381,10 @@ const LayerListRow = ({
|
|
|
4188
3381
|
addLayer,
|
|
4189
3382
|
deleteLayer,
|
|
4190
3383
|
mapLayers,
|
|
4191
|
-
mapId,
|
|
4192
3384
|
layerSelectWidth,
|
|
4193
|
-
searchFilter
|
|
3385
|
+
searchFilter,
|
|
3386
|
+
hasActiveLayer: _hasActiveLayer = false,
|
|
3387
|
+
onToggleActiveLayer
|
|
4194
3388
|
}) => {
|
|
4195
3389
|
var _a;
|
|
4196
3390
|
const rowHeight = widthToRowHeight(layerSelectWidth);
|
|
@@ -4219,7 +3413,7 @@ const LayerListRow = ({
|
|
|
4219
3413
|
item: true,
|
|
4220
3414
|
xs: 12
|
|
4221
3415
|
}, {
|
|
4222
|
-
children: jsx(Box
|
|
3416
|
+
children: jsx(Box, Object.assign({
|
|
4223
3417
|
sx: {
|
|
4224
3418
|
fontSize: '12px',
|
|
4225
3419
|
height: '14px',
|
|
@@ -4240,7 +3434,7 @@ const LayerListRow = ({
|
|
|
4240
3434
|
direction: "column",
|
|
4241
3435
|
sx: columns.column1
|
|
4242
3436
|
}, {
|
|
4243
|
-
children: [jsx(Box
|
|
3437
|
+
children: [jsx(Box, Object.assign({
|
|
4244
3438
|
sx: {
|
|
4245
3439
|
fontSize: '12px',
|
|
4246
3440
|
height: '18px',
|
|
@@ -4253,10 +3447,9 @@ const LayerListRow = ({
|
|
|
4253
3447
|
text: service.name,
|
|
4254
3448
|
search: searchFilter
|
|
4255
3449
|
})
|
|
4256
|
-
})), jsx(
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
serviceName: service.name
|
|
3450
|
+
})), jsx(LayerInfoButton, {
|
|
3451
|
+
isActive: _hasActiveLayer,
|
|
3452
|
+
onClick: onToggleActiveLayer
|
|
4260
3453
|
})]
|
|
4261
3454
|
})), jsxs(Grid, Object.assign({
|
|
4262
3455
|
item: true,
|
|
@@ -4318,7 +3511,7 @@ const LayerListRow = ({
|
|
|
4318
3511
|
justifyContent: "flex-end",
|
|
4319
3512
|
alignItems: "center"
|
|
4320
3513
|
}, {
|
|
4321
|
-
children: jsx(Box
|
|
3514
|
+
children: jsx(Box, Object.assign({
|
|
4322
3515
|
sx: columns.column7
|
|
4323
3516
|
}, {
|
|
4324
3517
|
children: jsx(LayerAddRemoveButton, {
|
|
@@ -4343,17 +3536,19 @@ const LayerList = ({
|
|
|
4343
3536
|
addLayer,
|
|
4344
3537
|
deleteLayer,
|
|
4345
3538
|
mapLayers,
|
|
4346
|
-
|
|
4347
|
-
|
|
3539
|
+
searchFilter,
|
|
3540
|
+
isLayerInfoVisibleInStore,
|
|
3541
|
+
onToggleActiveLayer,
|
|
3542
|
+
currentLayerInfo
|
|
4348
3543
|
}) => {
|
|
4349
3544
|
const rowMargin = 4;
|
|
4350
3545
|
const rowHeight = widthToRowHeight(layerSelectWidth);
|
|
4351
3546
|
const layerSelectFilterHeight = 155 + serviceListHeight;
|
|
4352
3547
|
const minHeight = 320;
|
|
4353
|
-
return jsxs(Box
|
|
3548
|
+
return jsxs(Box, Object.assign({
|
|
4354
3549
|
"data-testid": "layerList"
|
|
4355
3550
|
}, {
|
|
4356
|
-
children: [jsxs(Box
|
|
3551
|
+
children: [jsxs(Box, Object.assign({
|
|
4357
3552
|
sx: {
|
|
4358
3553
|
marginBottom: '4px',
|
|
4359
3554
|
fontSize: '12px'
|
|
@@ -4372,6 +3567,7 @@ const LayerList = ({
|
|
|
4372
3567
|
}) => {
|
|
4373
3568
|
const filter = filteredLayers[index];
|
|
4374
3569
|
const service = services[filter.serviceName];
|
|
3570
|
+
const isActiveLayer = isLayerInfoVisibleInStore && (currentLayerInfo === null || currentLayerInfo === void 0 ? void 0 : currentLayerInfo.serviceUrl) === service.serviceUrl && (currentLayerInfo === null || currentLayerInfo === void 0 ? void 0 : currentLayerInfo.layerName) === filter.name;
|
|
4375
3571
|
return jsx("div", Object.assign({
|
|
4376
3572
|
style: style
|
|
4377
3573
|
}, {
|
|
@@ -4382,9 +3578,14 @@ const LayerList = ({
|
|
|
4382
3578
|
addLayer: addLayer,
|
|
4383
3579
|
deleteLayer: deleteLayer,
|
|
4384
3580
|
mapLayers: mapLayers,
|
|
4385
|
-
mapId: mapId,
|
|
4386
3581
|
layerSelectWidth: layerSelectWidth,
|
|
4387
|
-
searchFilter: searchFilter
|
|
3582
|
+
searchFilter: searchFilter,
|
|
3583
|
+
hasActiveLayer: isActiveLayer,
|
|
3584
|
+
onToggleActiveLayer: () => onToggleActiveLayer({
|
|
3585
|
+
serviceUrl: service === null || service === void 0 ? void 0 : service.serviceUrl,
|
|
3586
|
+
layerName: filter.name,
|
|
3587
|
+
isActiveLayer
|
|
3588
|
+
})
|
|
4388
3589
|
})
|
|
4389
3590
|
}), filter.name);
|
|
4390
3591
|
}
|
|
@@ -4400,7 +3601,7 @@ const LayerListConnect = ({
|
|
|
4400
3601
|
}) => {
|
|
4401
3602
|
const dispatch = useDispatch();
|
|
4402
3603
|
const services = useAppSelector(store => serviceSelectors.getServices(store));
|
|
4403
|
-
const mapLayers = useAppSelector(store => mapSelectors.
|
|
3604
|
+
const mapLayers = useAppSelector(store => mapSelectors.getMapLayersWithoutDimensionCurrentValue(store, mapId));
|
|
4404
3605
|
const addLayer = ({
|
|
4405
3606
|
serviceUrl,
|
|
4406
3607
|
layerName
|
|
@@ -4436,6 +3637,23 @@ const LayerListConnect = ({
|
|
|
4436
3637
|
})), [dispatch, mapId]);
|
|
4437
3638
|
const filteredLayers = useAppSelector(store => getFilteredLayers(store));
|
|
4438
3639
|
const searchFilter = useAppSelector(store => getSearchFilter(store));
|
|
3640
|
+
const isLayerInfoVisibleInStore = useAppSelector(store => uiSelectors.getisDialogOpen(store, uiTypes.DialogTypes.LayerInfo));
|
|
3641
|
+
const currentLayerInfo = useAppSelector(store => layerSelectors.getActiveLayerInfo(store));
|
|
3642
|
+
const onToggleActiveLayer = React.useCallback(({
|
|
3643
|
+
serviceUrl,
|
|
3644
|
+
layerName,
|
|
3645
|
+
isActiveLayer
|
|
3646
|
+
}) => {
|
|
3647
|
+
if (!isActiveLayer) {
|
|
3648
|
+
dispatch(layerActions.showLayerInfo({
|
|
3649
|
+
layerName,
|
|
3650
|
+
serviceUrl,
|
|
3651
|
+
mapId
|
|
3652
|
+
}));
|
|
3653
|
+
} else {
|
|
3654
|
+
dispatch(layerActions.hideLayerInfo());
|
|
3655
|
+
}
|
|
3656
|
+
}, [mapId, dispatch]);
|
|
4439
3657
|
return jsx(LayerList, {
|
|
4440
3658
|
filteredLayers: filteredLayers,
|
|
4441
3659
|
services: services,
|
|
@@ -4445,8 +3663,10 @@ const LayerListConnect = ({
|
|
|
4445
3663
|
addLayer: addLayer,
|
|
4446
3664
|
deleteLayer: deleteLayer,
|
|
4447
3665
|
mapLayers: mapLayers,
|
|
4448
|
-
|
|
4449
|
-
|
|
3666
|
+
searchFilter: searchFilter,
|
|
3667
|
+
isLayerInfoVisibleInStore: isLayerInfoVisibleInStore,
|
|
3668
|
+
onToggleActiveLayer: onToggleActiveLayer,
|
|
3669
|
+
currentLayerInfo: currentLayerInfo
|
|
4450
3670
|
});
|
|
4451
3671
|
};
|
|
4452
3672
|
|
|
@@ -4609,7 +3829,7 @@ const ServiceList = ({
|
|
|
4609
3829
|
const activeServicesIds = Object.keys(activeServicesById);
|
|
4610
3830
|
const activeServices = Object.values(activeServicesById);
|
|
4611
3831
|
const isAllSelected = activeServices.every(activeService => activeService.enabled);
|
|
4612
|
-
return jsx(Box
|
|
3832
|
+
return jsx(Box, Object.assign({
|
|
4613
3833
|
sx: {
|
|
4614
3834
|
marginTop: '8px',
|
|
4615
3835
|
width: '100%',
|
|
@@ -4617,7 +3837,7 @@ const ServiceList = ({
|
|
|
4617
3837
|
},
|
|
4618
3838
|
"data-testid": "serviceList"
|
|
4619
3839
|
}, {
|
|
4620
|
-
children: jsxs(Box
|
|
3840
|
+
children: jsxs(Box, Object.assign({
|
|
4621
3841
|
sx: {
|
|
4622
3842
|
width: '100%',
|
|
4623
3843
|
display: 'block',
|
|
@@ -4652,6 +3872,48 @@ const ServiceListConnect = ({
|
|
|
4652
3872
|
});
|
|
4653
3873
|
};
|
|
4654
3874
|
|
|
3875
|
+
/******************************************************************************
|
|
3876
|
+
Copyright (c) Microsoft Corporation.
|
|
3877
|
+
|
|
3878
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
3879
|
+
purpose with or without fee is hereby granted.
|
|
3880
|
+
|
|
3881
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
3882
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
3883
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
3884
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
3885
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3886
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3887
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
3888
|
+
***************************************************************************** */
|
|
3889
|
+
|
|
3890
|
+
function __rest(s, e) {
|
|
3891
|
+
var t = {};
|
|
3892
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
3893
|
+
t[p] = s[p];
|
|
3894
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3895
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3896
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
3897
|
+
t[p[i]] = s[p[i]];
|
|
3898
|
+
}
|
|
3899
|
+
return t;
|
|
3900
|
+
}
|
|
3901
|
+
|
|
3902
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
3903
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3904
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
3905
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
3906
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
3907
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
3908
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
3909
|
+
});
|
|
3910
|
+
}
|
|
3911
|
+
|
|
3912
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
3913
|
+
var e = new Error(message);
|
|
3914
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
3915
|
+
};
|
|
3916
|
+
|
|
4655
3917
|
const styles = {
|
|
4656
3918
|
servicesContainer: {
|
|
4657
3919
|
width: '360px',
|
|
@@ -4713,7 +3975,7 @@ const ServiceOptionsDialog = ({
|
|
|
4713
3975
|
var _a;
|
|
4714
3976
|
(_a = dialogRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
4715
3977
|
}, []);
|
|
4716
|
-
return jsxs(Box
|
|
3978
|
+
return jsxs(Box, Object.assign({
|
|
4717
3979
|
sx: styles.servicesContainer,
|
|
4718
3980
|
"data-testid": "ServiceDialog",
|
|
4719
3981
|
onKeyDown: event => {
|
|
@@ -4724,7 +3986,7 @@ const ServiceOptionsDialog = ({
|
|
|
4724
3986
|
tabIndex: -1,
|
|
4725
3987
|
ref: dialogRef
|
|
4726
3988
|
}, {
|
|
4727
|
-
children: [jsx(Box
|
|
3989
|
+
children: [jsx(Box, Object.assign({
|
|
4728
3990
|
sx: styles.header
|
|
4729
3991
|
}, {
|
|
4730
3992
|
children: "Services"
|
|
@@ -4739,7 +4001,7 @@ const ServiceOptionsDialog = ({
|
|
|
4739
4001
|
layerSelectReloadService: layerSelectReloadService,
|
|
4740
4002
|
setServicePopupInfo: setServicePopupInfo,
|
|
4741
4003
|
selectedLayers: selectedLayers
|
|
4742
|
-
}), jsx(Box
|
|
4004
|
+
}), jsx(Box, Object.assign({
|
|
4743
4005
|
sx: styles.footer
|
|
4744
4006
|
}, {
|
|
4745
4007
|
children: jsx(Button, Object.assign({
|
|
@@ -4889,7 +4151,7 @@ const Rows = ({
|
|
|
4889
4151
|
children: jsx(Visibility, {})
|
|
4890
4152
|
}))
|
|
4891
4153
|
})
|
|
4892
|
-
})), userAddedService && jsx(Box
|
|
4154
|
+
})), userAddedService && jsx(Box, {
|
|
4893
4155
|
children: jsx(CustomTooltip, Object.assign({
|
|
4894
4156
|
title: deleteServiceTitle(serviceHasActiveLayers),
|
|
4895
4157
|
PopperProps: tooltipPopperProps,
|
|
@@ -4916,6 +4178,239 @@ const Rows = ({
|
|
|
4916
4178
|
}));
|
|
4917
4179
|
};
|
|
4918
4180
|
|
|
4181
|
+
var anObject$1 = anObject$7;
|
|
4182
|
+
|
|
4183
|
+
// `RegExp.prototype.flags` getter implementation
|
|
4184
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
4185
|
+
var regexpFlags$1 = function () {
|
|
4186
|
+
var that = anObject$1(this);
|
|
4187
|
+
var result = '';
|
|
4188
|
+
if (that.hasIndices) result += 'd';
|
|
4189
|
+
if (that.global) result += 'g';
|
|
4190
|
+
if (that.ignoreCase) result += 'i';
|
|
4191
|
+
if (that.multiline) result += 'm';
|
|
4192
|
+
if (that.dotAll) result += 's';
|
|
4193
|
+
if (that.unicode) result += 'u';
|
|
4194
|
+
if (that.unicodeSets) result += 'v';
|
|
4195
|
+
if (that.sticky) result += 'y';
|
|
4196
|
+
return result;
|
|
4197
|
+
};
|
|
4198
|
+
|
|
4199
|
+
var fails$2 = fails$j;
|
|
4200
|
+
var global$3 = global$g;
|
|
4201
|
+
|
|
4202
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
4203
|
+
var $RegExp$2 = global$3.RegExp;
|
|
4204
|
+
|
|
4205
|
+
var UNSUPPORTED_Y$1 = fails$2(function () {
|
|
4206
|
+
var re = $RegExp$2('a', 'y');
|
|
4207
|
+
re.lastIndex = 2;
|
|
4208
|
+
return re.exec('abcd') !== null;
|
|
4209
|
+
});
|
|
4210
|
+
|
|
4211
|
+
// UC Browser bug
|
|
4212
|
+
// https://github.com/zloirock/core-js/issues/1008
|
|
4213
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$2(function () {
|
|
4214
|
+
return !$RegExp$2('a', 'y').sticky;
|
|
4215
|
+
});
|
|
4216
|
+
|
|
4217
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$2(function () {
|
|
4218
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
4219
|
+
var re = $RegExp$2('^r', 'gy');
|
|
4220
|
+
re.lastIndex = 2;
|
|
4221
|
+
return re.exec('str') !== null;
|
|
4222
|
+
});
|
|
4223
|
+
|
|
4224
|
+
var regexpStickyHelpers = {
|
|
4225
|
+
BROKEN_CARET: BROKEN_CARET,
|
|
4226
|
+
MISSED_STICKY: MISSED_STICKY,
|
|
4227
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
4228
|
+
};
|
|
4229
|
+
|
|
4230
|
+
var fails$1 = fails$j;
|
|
4231
|
+
var global$2 = global$g;
|
|
4232
|
+
|
|
4233
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
4234
|
+
var $RegExp$1 = global$2.RegExp;
|
|
4235
|
+
|
|
4236
|
+
var regexpUnsupportedDotAll = fails$1(function () {
|
|
4237
|
+
var re = $RegExp$1('.', 's');
|
|
4238
|
+
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
4239
|
+
});
|
|
4240
|
+
|
|
4241
|
+
var fails = fails$j;
|
|
4242
|
+
var global$1 = global$g;
|
|
4243
|
+
|
|
4244
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
4245
|
+
var $RegExp = global$1.RegExp;
|
|
4246
|
+
|
|
4247
|
+
var regexpUnsupportedNcg = fails(function () {
|
|
4248
|
+
var re = $RegExp('(?<a>b)', 'g');
|
|
4249
|
+
return re.exec('b').groups.a !== 'b' ||
|
|
4250
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
|
4251
|
+
});
|
|
4252
|
+
|
|
4253
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
4254
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
4255
|
+
var call$1 = functionCall;
|
|
4256
|
+
var uncurryThis = functionUncurryThis;
|
|
4257
|
+
var toString$1 = toString$5;
|
|
4258
|
+
var regexpFlags = regexpFlags$1;
|
|
4259
|
+
var stickyHelpers = regexpStickyHelpers;
|
|
4260
|
+
var shared = shared$4.exports;
|
|
4261
|
+
var create = objectCreate;
|
|
4262
|
+
var getInternalState = internalState.get;
|
|
4263
|
+
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
4264
|
+
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
4265
|
+
|
|
4266
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
4267
|
+
var nativeExec = RegExp.prototype.exec;
|
|
4268
|
+
var patchedExec = nativeExec;
|
|
4269
|
+
var charAt = uncurryThis(''.charAt);
|
|
4270
|
+
var indexOf = uncurryThis(''.indexOf);
|
|
4271
|
+
var replace = uncurryThis(''.replace);
|
|
4272
|
+
var stringSlice = uncurryThis(''.slice);
|
|
4273
|
+
|
|
4274
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
4275
|
+
var re1 = /a/;
|
|
4276
|
+
var re2 = /b*/g;
|
|
4277
|
+
call$1(nativeExec, re1, 'a');
|
|
4278
|
+
call$1(nativeExec, re2, 'a');
|
|
4279
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
4280
|
+
})();
|
|
4281
|
+
|
|
4282
|
+
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
|
|
4283
|
+
|
|
4284
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
4285
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
4286
|
+
|
|
4287
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
4288
|
+
|
|
4289
|
+
if (PATCH) {
|
|
4290
|
+
patchedExec = function exec(string) {
|
|
4291
|
+
var re = this;
|
|
4292
|
+
var state = getInternalState(re);
|
|
4293
|
+
var str = toString$1(string);
|
|
4294
|
+
var raw = state.raw;
|
|
4295
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
|
4296
|
+
|
|
4297
|
+
if (raw) {
|
|
4298
|
+
raw.lastIndex = re.lastIndex;
|
|
4299
|
+
result = call$1(patchedExec, raw, str);
|
|
4300
|
+
re.lastIndex = raw.lastIndex;
|
|
4301
|
+
return result;
|
|
4302
|
+
}
|
|
4303
|
+
|
|
4304
|
+
var groups = state.groups;
|
|
4305
|
+
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
4306
|
+
var flags = call$1(regexpFlags, re);
|
|
4307
|
+
var source = re.source;
|
|
4308
|
+
var charsAdded = 0;
|
|
4309
|
+
var strCopy = str;
|
|
4310
|
+
|
|
4311
|
+
if (sticky) {
|
|
4312
|
+
flags = replace(flags, 'y', '');
|
|
4313
|
+
if (indexOf(flags, 'g') === -1) {
|
|
4314
|
+
flags += 'g';
|
|
4315
|
+
}
|
|
4316
|
+
|
|
4317
|
+
strCopy = stringSlice(str, re.lastIndex);
|
|
4318
|
+
// Support anchored sticky behavior.
|
|
4319
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
|
|
4320
|
+
source = '(?: ' + source + ')';
|
|
4321
|
+
strCopy = ' ' + strCopy;
|
|
4322
|
+
charsAdded++;
|
|
4323
|
+
}
|
|
4324
|
+
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
4325
|
+
// simulate the 'y' flag.
|
|
4326
|
+
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
4327
|
+
}
|
|
4328
|
+
|
|
4329
|
+
if (NPCG_INCLUDED) {
|
|
4330
|
+
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
4331
|
+
}
|
|
4332
|
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
4333
|
+
|
|
4334
|
+
match = call$1(nativeExec, sticky ? reCopy : re, strCopy);
|
|
4335
|
+
|
|
4336
|
+
if (sticky) {
|
|
4337
|
+
if (match) {
|
|
4338
|
+
match.input = stringSlice(match.input, charsAdded);
|
|
4339
|
+
match[0] = stringSlice(match[0], charsAdded);
|
|
4340
|
+
match.index = re.lastIndex;
|
|
4341
|
+
re.lastIndex += match[0].length;
|
|
4342
|
+
} else re.lastIndex = 0;
|
|
4343
|
+
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
4344
|
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
4345
|
+
}
|
|
4346
|
+
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
4347
|
+
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
4348
|
+
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
4349
|
+
call$1(nativeReplace, match[0], reCopy, function () {
|
|
4350
|
+
for (i = 1; i < arguments.length - 2; i++) {
|
|
4351
|
+
if (arguments[i] === undefined) match[i] = undefined;
|
|
4352
|
+
}
|
|
4353
|
+
});
|
|
4354
|
+
}
|
|
4355
|
+
|
|
4356
|
+
if (match && groups) {
|
|
4357
|
+
match.groups = object = create(null);
|
|
4358
|
+
for (i = 0; i < groups.length; i++) {
|
|
4359
|
+
group = groups[i];
|
|
4360
|
+
object[group[0]] = match[group[1]];
|
|
4361
|
+
}
|
|
4362
|
+
}
|
|
4363
|
+
|
|
4364
|
+
return match;
|
|
4365
|
+
};
|
|
4366
|
+
}
|
|
4367
|
+
|
|
4368
|
+
var regexpExec = patchedExec;
|
|
4369
|
+
|
|
4370
|
+
var $$1 = _export;
|
|
4371
|
+
var exec = regexpExec;
|
|
4372
|
+
|
|
4373
|
+
// `RegExp.prototype.exec` method
|
|
4374
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
4375
|
+
$$1({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
4376
|
+
exec: exec
|
|
4377
|
+
});
|
|
4378
|
+
|
|
4379
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
4380
|
+
|
|
4381
|
+
var $ = _export;
|
|
4382
|
+
var call = functionCall;
|
|
4383
|
+
var isCallable = isCallable$i;
|
|
4384
|
+
var anObject = anObject$7;
|
|
4385
|
+
var toString = toString$5;
|
|
4386
|
+
|
|
4387
|
+
var DELEGATES_TO_EXEC = function () {
|
|
4388
|
+
var execCalled = false;
|
|
4389
|
+
var re = /[ac]/;
|
|
4390
|
+
re.exec = function () {
|
|
4391
|
+
execCalled = true;
|
|
4392
|
+
return /./.exec.apply(this, arguments);
|
|
4393
|
+
};
|
|
4394
|
+
return re.test('abc') === true && execCalled;
|
|
4395
|
+
}();
|
|
4396
|
+
|
|
4397
|
+
var nativeTest = /./.test;
|
|
4398
|
+
|
|
4399
|
+
// `RegExp.prototype.test` method
|
|
4400
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
|
4401
|
+
$({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
4402
|
+
test: function (S) {
|
|
4403
|
+
var R = anObject(this);
|
|
4404
|
+
var string = toString(S);
|
|
4405
|
+
var exec = R.exec;
|
|
4406
|
+
if (!isCallable(exec)) return call(nativeTest, R, string);
|
|
4407
|
+
var result = call(exec, R, string);
|
|
4408
|
+
if (result === null) return false;
|
|
4409
|
+
anObject(result);
|
|
4410
|
+
return true;
|
|
4411
|
+
}
|
|
4412
|
+
});
|
|
4413
|
+
|
|
4919
4414
|
const VALIDATIONS_NAME_EXISTING = 'This name already exists. Choose another name.';
|
|
4920
4415
|
const VALIDATIONS_SERVICE_EXISTING = 'URL already exists.';
|
|
4921
4416
|
const VALIDATIONS_SERVICE_VALID_URL = 'Not a valid URL.';
|
|
@@ -5000,7 +4495,7 @@ const ServiceOptionsDialogConnect = ({
|
|
|
5000
4495
|
}));
|
|
5001
4496
|
}, [dispatch]);
|
|
5002
4497
|
const services = useAppSelector(store => getActiveServices(store));
|
|
5003
|
-
const selectedLayers = useAppSelector(store => mapSelectors.
|
|
4498
|
+
const selectedLayers = useAppSelector(store => mapSelectors.getMapLayersWithoutDimensionCurrentValue(store, mapId));
|
|
5004
4499
|
const layerSelectRemoveService = React.useCallback((serviceId, serviceUrl, serviceName) => {
|
|
5005
4500
|
const message = `Service "${serviceName}" has been deleted`;
|
|
5006
4501
|
showSnackbar(message);
|
|
@@ -5117,7 +4612,7 @@ const LayerSelect = ({
|
|
|
5117
4612
|
onMouseDown: event => {
|
|
5118
4613
|
const target = event.target;
|
|
5119
4614
|
const isButtonInScrollableList = target.closest('.layerInfoButton') || target.closest('.layerAddRemoveButton');
|
|
5120
|
-
//
|
|
4615
|
+
// don't propagate when clicking on layerInfoButton or addRemoveButton
|
|
5121
4616
|
if (isButtonInScrollableList) {
|
|
5122
4617
|
event.stopPropagation();
|
|
5123
4618
|
return;
|
|
@@ -5127,13 +4622,13 @@ const LayerSelect = ({
|
|
|
5127
4622
|
order: _order,
|
|
5128
4623
|
source: _source
|
|
5129
4624
|
}, {
|
|
5130
|
-
children: [jsx(Box
|
|
4625
|
+
children: [jsx(Box, Object.assign({
|
|
5131
4626
|
sx: {
|
|
5132
4627
|
padding: '4px 16px 0 16px'
|
|
5133
4628
|
}
|
|
5134
4629
|
}, {
|
|
5135
4630
|
children: jsx(SearchFieldConnect, {})
|
|
5136
|
-
})), jsx(Box
|
|
4631
|
+
})), jsx(Box, Object.assign({
|
|
5137
4632
|
sx: {
|
|
5138
4633
|
float: 'left',
|
|
5139
4634
|
position: 'absolute',
|
|
@@ -5145,7 +4640,7 @@ const LayerSelect = ({
|
|
|
5145
4640
|
mapId: mapId,
|
|
5146
4641
|
isMultiMap: _isMultiMap
|
|
5147
4642
|
})
|
|
5148
|
-
})), jsx(Box
|
|
4643
|
+
})), jsx(Box, Object.assign({
|
|
5149
4644
|
sx: {
|
|
5150
4645
|
position: 'absolute',
|
|
5151
4646
|
margin: '8px 0 0 calc(100% - 40px)',
|
|
@@ -5155,11 +4650,11 @@ const LayerSelect = ({
|
|
|
5155
4650
|
children: jsx(ServiceOptionsButton, {
|
|
5156
4651
|
mapId: mapId
|
|
5157
4652
|
})
|
|
5158
|
-
})), jsx(Box
|
|
4653
|
+
})), jsx(Box, {
|
|
5159
4654
|
children: jsx(ServiceListConnect, {
|
|
5160
4655
|
setHeight: handleHeightChange
|
|
5161
4656
|
})
|
|
5162
|
-
}), jsx(Box
|
|
4657
|
+
}), jsx(Box, Object.assign({
|
|
5163
4658
|
sx: {
|
|
5164
4659
|
padding: '0 16px'
|
|
5165
4660
|
}
|
|
@@ -5354,7 +4849,7 @@ const ServicePopupUnwrapped = ({
|
|
|
5354
4849
|
padding: '16px 16px 24px 16px'
|
|
5355
4850
|
}
|
|
5356
4851
|
}, {
|
|
5357
|
-
children: [jsxs(Box
|
|
4852
|
+
children: [jsxs(Box, Object.assign({
|
|
5358
4853
|
sx: {
|
|
5359
4854
|
display: 'flex',
|
|
5360
4855
|
justifyContent: 'space-between',
|
|
@@ -5387,7 +4882,7 @@ const ServicePopupUnwrapped = ({
|
|
|
5387
4882
|
}, {
|
|
5388
4883
|
children: jsx(Close, {})
|
|
5389
4884
|
}))]
|
|
5390
|
-
})), isLoading && jsx(Box
|
|
4885
|
+
})), isLoading && jsx(Box, Object.assign({
|
|
5391
4886
|
sx: {
|
|
5392
4887
|
position: 'relative'
|
|
5393
4888
|
}
|
|
@@ -5626,8 +5121,8 @@ const LayerSelectConnect = ({
|
|
|
5626
5121
|
}), jsx(KeywordFilterResultsConnect, {
|
|
5627
5122
|
mapId: mapId || initialMapId,
|
|
5628
5123
|
isMultiMap: _isMultiMap
|
|
5629
|
-
}), jsx(
|
|
5124
|
+
}), jsx(ServicePopupConnect, {})]
|
|
5630
5125
|
});
|
|
5631
5126
|
};
|
|
5632
5127
|
|
|
5633
|
-
export { ADD_HEADING, AllChipConnect, COPY_URL_MESSAGE, DIALOG_TITLE, EDIT_HEADING, FilterListItem, KeywordFilterButtonConnect, KeywordFilterResults, KeywordFilterResultsConnect, KeywordFilterResultsListItemConnect, KeywordFilterSelectAllSwitchConnect, LayerAddRemoveButton,
|
|
5128
|
+
export { ADD_HEADING, AllChipConnect, COPY_URL_MESSAGE, DIALOG_TITLE, EDIT_HEADING, FilterListItem, KeywordFilterButtonConnect, KeywordFilterResults, KeywordFilterResultsConnect, KeywordFilterResultsListItemConnect, KeywordFilterSelectAllSwitchConnect, LayerAddRemoveButton, LayerList, LayerListConnect, LayerListDimensions, LayerListRow, LayerSelectButtonConnect, LayerSelectConnect, SAVE_HEADING, SearchFieldConnect, ServiceChip, ServiceChipConnect, ServiceList, ServiceListConnect, ServiceOptionsButton, ServiceOptionsDialog, ServiceOptionsDialogConnect, ServicePopup, ServicePopupConnect, ServicePopupDialogConnect, getServiceFailedUpdateMessage, getServiceSuccesUpdateMessage, getSuccesMessage, getUserAddedServices, isUserAddedService, layerSelectActions, layerSelectConfig, initialState as layerSelectInitialState, reducer as layerSelectReducer, selectors as layerSelectSelectors, types as layerSelectTypes, setUserAddedServices, useAppSelector };
|