@opengeoweb/cap 9.10.2 → 9.12.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.
Files changed (2) hide show
  1. package/index.esm.js +3903 -330
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -96,6 +96,1678 @@ const getLastUpdatedTimes = createSelector(getCapFeeds, feeds => {
96
96
  return feeds.map(feed => feed.lastUpdated);
97
97
  });
98
98
 
99
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
100
+
101
+ var fails$k = function (exec) {
102
+ try {
103
+ return !!exec();
104
+ } catch (error) {
105
+ return true;
106
+ }
107
+ };
108
+
109
+ var fails$j = fails$k;
110
+
111
+ var functionBindNative = !fails$j(function () {
112
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
113
+ var test = (function () { /* empty */ }).bind();
114
+ // eslint-disable-next-line no-prototype-builtins -- safe
115
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
116
+ });
117
+
118
+ var NATIVE_BIND$3 = functionBindNative;
119
+
120
+ var FunctionPrototype$2 = Function.prototype;
121
+ var call$i = FunctionPrototype$2.call;
122
+ var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$i, call$i);
123
+
124
+ var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
125
+ return function () {
126
+ return call$i.apply(fn, arguments);
127
+ };
128
+ };
129
+
130
+ var uncurryThis$k = functionUncurryThis;
131
+
132
+ var toString$7 = uncurryThis$k({}.toString);
133
+ var stringSlice$6 = uncurryThis$k(''.slice);
134
+
135
+ var classofRaw$2 = function (it) {
136
+ return stringSlice$6(toString$7(it), 8, -1);
137
+ };
138
+
139
+ var uncurryThis$j = functionUncurryThis;
140
+ var fails$i = fails$k;
141
+ var classof$8 = classofRaw$2;
142
+
143
+ var $Object$4 = Object;
144
+ var split = uncurryThis$j(''.split);
145
+
146
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
147
+ var indexedObject = fails$i(function () {
148
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
149
+ // eslint-disable-next-line no-prototype-builtins -- safe
150
+ return !$Object$4('z').propertyIsEnumerable(0);
151
+ }) ? function (it) {
152
+ return classof$8(it) === 'String' ? split(it, '') : $Object$4(it);
153
+ } : $Object$4;
154
+
155
+ // we can't use just `it == null` since of `document.all` special case
156
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
157
+ var isNullOrUndefined$5 = function (it) {
158
+ return it === null || it === undefined;
159
+ };
160
+
161
+ var isNullOrUndefined$4 = isNullOrUndefined$5;
162
+
163
+ var $TypeError$g = TypeError;
164
+
165
+ // `RequireObjectCoercible` abstract operation
166
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
167
+ var requireObjectCoercible$6 = function (it) {
168
+ if (isNullOrUndefined$4(it)) throw new $TypeError$g("Can't call method on " + it);
169
+ return it;
170
+ };
171
+
172
+ // toObject with fallback for non-array-like ES3 strings
173
+ var IndexedObject$2 = indexedObject;
174
+ var requireObjectCoercible$5 = requireObjectCoercible$6;
175
+
176
+ var toIndexedObject$5 = function (it) {
177
+ return IndexedObject$2(requireObjectCoercible$5(it));
178
+ };
179
+
180
+ var check = function (it) {
181
+ return it && it.Math === Math && it;
182
+ };
183
+
184
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
185
+ var global$m =
186
+ // eslint-disable-next-line es/no-global-this -- safe
187
+ check(typeof globalThis == 'object' && globalThis) ||
188
+ check(typeof window == 'object' && window) ||
189
+ // eslint-disable-next-line no-restricted-globals -- safe
190
+ check(typeof self == 'object' && self) ||
191
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
192
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
193
+ // eslint-disable-next-line no-new-func -- fallback
194
+ (function () { return this; })() || Function('return this')();
195
+
196
+ var shared$4 = {exports: {}};
197
+
198
+ var global$l = global$m;
199
+
200
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
201
+ var defineProperty$6 = Object.defineProperty;
202
+
203
+ var defineGlobalProperty$3 = function (key, value) {
204
+ try {
205
+ defineProperty$6(global$l, key, { value: value, configurable: true, writable: true });
206
+ } catch (error) {
207
+ global$l[key] = value;
208
+ } return value;
209
+ };
210
+
211
+ var global$k = global$m;
212
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
213
+
214
+ var SHARED = '__core-js_shared__';
215
+ var store$3 = global$k[SHARED] || defineGlobalProperty$2(SHARED, {});
216
+
217
+ var sharedStore = store$3;
218
+
219
+ var store$2 = sharedStore;
220
+
221
+ (shared$4.exports = function (key, value) {
222
+ return store$2[key] || (store$2[key] = value !== undefined ? value : {});
223
+ })('versions', []).push({
224
+ version: '3.35.1',
225
+ mode: 'global',
226
+ copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
227
+ license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
228
+ source: 'https://github.com/zloirock/core-js'
229
+ });
230
+
231
+ var requireObjectCoercible$4 = requireObjectCoercible$6;
232
+
233
+ var $Object$3 = Object;
234
+
235
+ // `ToObject` abstract operation
236
+ // https://tc39.es/ecma262/#sec-toobject
237
+ var toObject$6 = function (argument) {
238
+ return $Object$3(requireObjectCoercible$4(argument));
239
+ };
240
+
241
+ var uncurryThis$i = functionUncurryThis;
242
+ var toObject$5 = toObject$6;
243
+
244
+ var hasOwnProperty = uncurryThis$i({}.hasOwnProperty);
245
+
246
+ // `HasOwnProperty` abstract operation
247
+ // https://tc39.es/ecma262/#sec-hasownproperty
248
+ // eslint-disable-next-line es/no-object-hasown -- safe
249
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
250
+ return hasOwnProperty(toObject$5(it), key);
251
+ };
252
+
253
+ var uncurryThis$h = functionUncurryThis;
254
+
255
+ var id = 0;
256
+ var postfix = Math.random();
257
+ var toString$6 = uncurryThis$h(1.0.toString);
258
+
259
+ var uid$2 = function (key) {
260
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
261
+ };
262
+
263
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
264
+
265
+ var global$j = global$m;
266
+ var userAgent$3 = engineUserAgent;
267
+
268
+ var process$3 = global$j.process;
269
+ var Deno$1 = global$j.Deno;
270
+ var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
271
+ var v8 = versions && versions.v8;
272
+ var match, version;
273
+
274
+ if (v8) {
275
+ match = v8.split('.');
276
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
277
+ // but their correct versions are not interesting for us
278
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
279
+ }
280
+
281
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
282
+ // so check `userAgent` even if `.v8` exists, but 0
283
+ if (!version && userAgent$3) {
284
+ match = userAgent$3.match(/Edge\/(\d+)/);
285
+ if (!match || match[1] >= 74) {
286
+ match = userAgent$3.match(/Chrome\/(\d+)/);
287
+ if (match) version = +match[1];
288
+ }
289
+ }
290
+
291
+ var engineV8Version = version;
292
+
293
+ /* eslint-disable es/no-symbol -- required for testing */
294
+ var V8_VERSION$1 = engineV8Version;
295
+ var fails$h = fails$k;
296
+ var global$i = global$m;
297
+
298
+ var $String$5 = global$i.String;
299
+
300
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
301
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$h(function () {
302
+ var symbol = Symbol('symbol detection');
303
+ // Chrome 38 Symbol has incorrect toString conversion
304
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
305
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
306
+ // of course, fail.
307
+ return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
308
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
309
+ !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
310
+ });
311
+
312
+ /* eslint-disable es/no-symbol -- required for testing */
313
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
314
+
315
+ var useSymbolAsUid = NATIVE_SYMBOL$1
316
+ && !Symbol.sham
317
+ && typeof Symbol.iterator == 'symbol';
318
+
319
+ var global$h = global$m;
320
+ var shared$3 = shared$4.exports;
321
+ var hasOwn$9 = hasOwnProperty_1;
322
+ var uid$1 = uid$2;
323
+ var NATIVE_SYMBOL = symbolConstructorDetection;
324
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
325
+
326
+ var Symbol$1 = global$h.Symbol;
327
+ var WellKnownSymbolsStore = shared$3('wks');
328
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
329
+
330
+ var wellKnownSymbol$j = function (name) {
331
+ if (!hasOwn$9(WellKnownSymbolsStore, name)) {
332
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
333
+ ? Symbol$1[name]
334
+ : createWellKnownSymbol('Symbol.' + name);
335
+ } return WellKnownSymbolsStore[name];
336
+ };
337
+
338
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
339
+ var documentAll = typeof document == 'object' && document.all;
340
+
341
+ // `IsCallable` abstract operation
342
+ // https://tc39.es/ecma262/#sec-iscallable
343
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
344
+ var isCallable$l = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
345
+ return typeof argument == 'function' || argument === documentAll;
346
+ } : function (argument) {
347
+ return typeof argument == 'function';
348
+ };
349
+
350
+ var isCallable$k = isCallable$l;
351
+
352
+ var isObject$b = function (it) {
353
+ return typeof it == 'object' ? it !== null : isCallable$k(it);
354
+ };
355
+
356
+ var isObject$a = isObject$b;
357
+
358
+ var $String$4 = String;
359
+ var $TypeError$f = TypeError;
360
+
361
+ // `Assert: Type(argument) is Object`
362
+ var anObject$d = function (argument) {
363
+ if (isObject$a(argument)) return argument;
364
+ throw new $TypeError$f($String$4(argument) + ' is not an object');
365
+ };
366
+
367
+ var objectDefineProperties = {};
368
+
369
+ var fails$g = fails$k;
370
+
371
+ // Detect IE8's incomplete defineProperty implementation
372
+ var descriptors = !fails$g(function () {
373
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
374
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
375
+ });
376
+
377
+ var DESCRIPTORS$b = descriptors;
378
+ var fails$f = fails$k;
379
+
380
+ // V8 ~ Chrome 36-
381
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
382
+ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$f(function () {
383
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
384
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
385
+ value: 42,
386
+ writable: false
387
+ }).prototype !== 42;
388
+ });
389
+
390
+ var objectDefineProperty = {};
391
+
392
+ var global$g = global$m;
393
+ var isObject$9 = isObject$b;
394
+
395
+ var document$3 = global$g.document;
396
+ // typeof document.createElement is 'object' in old IE
397
+ var EXISTS$1 = isObject$9(document$3) && isObject$9(document$3.createElement);
398
+
399
+ var documentCreateElement$2 = function (it) {
400
+ return EXISTS$1 ? document$3.createElement(it) : {};
401
+ };
402
+
403
+ var DESCRIPTORS$a = descriptors;
404
+ var fails$e = fails$k;
405
+ var createElement$1 = documentCreateElement$2;
406
+
407
+ // Thanks to IE8 for its funny defineProperty
408
+ var ie8DomDefine = !DESCRIPTORS$a && !fails$e(function () {
409
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
410
+ return Object.defineProperty(createElement$1('div'), 'a', {
411
+ get: function () { return 7; }
412
+ }).a !== 7;
413
+ });
414
+
415
+ var NATIVE_BIND$2 = functionBindNative;
416
+
417
+ var call$h = Function.prototype.call;
418
+
419
+ var functionCall = NATIVE_BIND$2 ? call$h.bind(call$h) : function () {
420
+ return call$h.apply(call$h, arguments);
421
+ };
422
+
423
+ var global$f = global$m;
424
+ var isCallable$j = isCallable$l;
425
+
426
+ var aFunction = function (argument) {
427
+ return isCallable$j(argument) ? argument : undefined;
428
+ };
429
+
430
+ var getBuiltIn$7 = function (namespace, method) {
431
+ return arguments.length < 2 ? aFunction(global$f[namespace]) : global$f[namespace] && global$f[namespace][method];
432
+ };
433
+
434
+ var uncurryThis$g = functionUncurryThis;
435
+
436
+ var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
437
+
438
+ var getBuiltIn$6 = getBuiltIn$7;
439
+ var isCallable$i = isCallable$l;
440
+ var isPrototypeOf$2 = objectIsPrototypeOf;
441
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
442
+
443
+ var $Object$2 = Object;
444
+
445
+ var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
446
+ return typeof it == 'symbol';
447
+ } : function (it) {
448
+ var $Symbol = getBuiltIn$6('Symbol');
449
+ return isCallable$i($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
450
+ };
451
+
452
+ var $String$3 = String;
453
+
454
+ var tryToString$4 = function (argument) {
455
+ try {
456
+ return $String$3(argument);
457
+ } catch (error) {
458
+ return 'Object';
459
+ }
460
+ };
461
+
462
+ var isCallable$h = isCallable$l;
463
+ var tryToString$3 = tryToString$4;
464
+
465
+ var $TypeError$e = TypeError;
466
+
467
+ // `Assert: IsCallable(argument) is true`
468
+ var aCallable$b = function (argument) {
469
+ if (isCallable$h(argument)) return argument;
470
+ throw new $TypeError$e(tryToString$3(argument) + ' is not a function');
471
+ };
472
+
473
+ var aCallable$a = aCallable$b;
474
+ var isNullOrUndefined$3 = isNullOrUndefined$5;
475
+
476
+ // `GetMethod` abstract operation
477
+ // https://tc39.es/ecma262/#sec-getmethod
478
+ var getMethod$4 = function (V, P) {
479
+ var func = V[P];
480
+ return isNullOrUndefined$3(func) ? undefined : aCallable$a(func);
481
+ };
482
+
483
+ var call$g = functionCall;
484
+ var isCallable$g = isCallable$l;
485
+ var isObject$8 = isObject$b;
486
+
487
+ var $TypeError$d = TypeError;
488
+
489
+ // `OrdinaryToPrimitive` abstract operation
490
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
491
+ var ordinaryToPrimitive$1 = function (input, pref) {
492
+ var fn, val;
493
+ if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$8(val = call$g(fn, input))) return val;
494
+ if (isCallable$g(fn = input.valueOf) && !isObject$8(val = call$g(fn, input))) return val;
495
+ if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$8(val = call$g(fn, input))) return val;
496
+ throw new $TypeError$d("Can't convert object to primitive value");
497
+ };
498
+
499
+ var call$f = functionCall;
500
+ var isObject$7 = isObject$b;
501
+ var isSymbol$1 = isSymbol$2;
502
+ var getMethod$3 = getMethod$4;
503
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
504
+ var wellKnownSymbol$i = wellKnownSymbol$j;
505
+
506
+ var $TypeError$c = TypeError;
507
+ var TO_PRIMITIVE = wellKnownSymbol$i('toPrimitive');
508
+
509
+ // `ToPrimitive` abstract operation
510
+ // https://tc39.es/ecma262/#sec-toprimitive
511
+ var toPrimitive$1 = function (input, pref) {
512
+ if (!isObject$7(input) || isSymbol$1(input)) return input;
513
+ var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
514
+ var result;
515
+ if (exoticToPrim) {
516
+ if (pref === undefined) pref = 'default';
517
+ result = call$f(exoticToPrim, input, pref);
518
+ if (!isObject$7(result) || isSymbol$1(result)) return result;
519
+ throw new $TypeError$c("Can't convert object to primitive value");
520
+ }
521
+ if (pref === undefined) pref = 'number';
522
+ return ordinaryToPrimitive(input, pref);
523
+ };
524
+
525
+ var toPrimitive = toPrimitive$1;
526
+ var isSymbol = isSymbol$2;
527
+
528
+ // `ToPropertyKey` abstract operation
529
+ // https://tc39.es/ecma262/#sec-topropertykey
530
+ var toPropertyKey$2 = function (argument) {
531
+ var key = toPrimitive(argument, 'string');
532
+ return isSymbol(key) ? key : key + '';
533
+ };
534
+
535
+ var DESCRIPTORS$9 = descriptors;
536
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
537
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
538
+ var anObject$c = anObject$d;
539
+ var toPropertyKey$1 = toPropertyKey$2;
540
+
541
+ var $TypeError$b = TypeError;
542
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
543
+ var $defineProperty = Object.defineProperty;
544
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
545
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
546
+ var ENUMERABLE = 'enumerable';
547
+ var CONFIGURABLE$1 = 'configurable';
548
+ var WRITABLE = 'writable';
549
+
550
+ // `Object.defineProperty` method
551
+ // https://tc39.es/ecma262/#sec-object.defineproperty
552
+ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
553
+ anObject$c(O);
554
+ P = toPropertyKey$1(P);
555
+ anObject$c(Attributes);
556
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
557
+ var current = $getOwnPropertyDescriptor$1(O, P);
558
+ if (current && current[WRITABLE]) {
559
+ O[P] = Attributes.value;
560
+ Attributes = {
561
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
562
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
563
+ writable: false
564
+ };
565
+ }
566
+ } return $defineProperty(O, P, Attributes);
567
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
568
+ anObject$c(O);
569
+ P = toPropertyKey$1(P);
570
+ anObject$c(Attributes);
571
+ if (IE8_DOM_DEFINE$1) try {
572
+ return $defineProperty(O, P, Attributes);
573
+ } catch (error) { /* empty */ }
574
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$b('Accessors not supported');
575
+ if ('value' in Attributes) O[P] = Attributes.value;
576
+ return O;
577
+ };
578
+
579
+ var ceil = Math.ceil;
580
+ var floor$1 = Math.floor;
581
+
582
+ // `Math.trunc` method
583
+ // https://tc39.es/ecma262/#sec-math.trunc
584
+ // eslint-disable-next-line es/no-math-trunc -- safe
585
+ var mathTrunc = Math.trunc || function trunc(x) {
586
+ var n = +x;
587
+ return (n > 0 ? floor$1 : ceil)(n);
588
+ };
589
+
590
+ var trunc = mathTrunc;
591
+
592
+ // `ToIntegerOrInfinity` abstract operation
593
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
594
+ var toIntegerOrInfinity$4 = function (argument) {
595
+ var number = +argument;
596
+ // eslint-disable-next-line no-self-compare -- NaN check
597
+ return number !== number || number === 0 ? 0 : trunc(number);
598
+ };
599
+
600
+ var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
601
+
602
+ var max$1 = Math.max;
603
+ var min$3 = Math.min;
604
+
605
+ // Helper for a popular repeating case of the spec:
606
+ // Let integer be ? ToInteger(index).
607
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
608
+ var toAbsoluteIndex$1 = function (index, length) {
609
+ var integer = toIntegerOrInfinity$3(index);
610
+ return integer < 0 ? max$1(integer + length, 0) : min$3(integer, length);
611
+ };
612
+
613
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
614
+
615
+ var min$2 = Math.min;
616
+
617
+ // `ToLength` abstract operation
618
+ // https://tc39.es/ecma262/#sec-tolength
619
+ var toLength$3 = function (argument) {
620
+ var len = toIntegerOrInfinity$2(argument);
621
+ return len > 0 ? min$2(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
622
+ };
623
+
624
+ var toLength$2 = toLength$3;
625
+
626
+ // `LengthOfArrayLike` abstract operation
627
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
628
+ var lengthOfArrayLike$5 = function (obj) {
629
+ return toLength$2(obj.length);
630
+ };
631
+
632
+ var toIndexedObject$4 = toIndexedObject$5;
633
+ var toAbsoluteIndex = toAbsoluteIndex$1;
634
+ var lengthOfArrayLike$4 = lengthOfArrayLike$5;
635
+
636
+ // `Array.prototype.{ indexOf, includes }` methods implementation
637
+ var createMethod$2 = function (IS_INCLUDES) {
638
+ return function ($this, el, fromIndex) {
639
+ var O = toIndexedObject$4($this);
640
+ var length = lengthOfArrayLike$4(O);
641
+ var index = toAbsoluteIndex(fromIndex, length);
642
+ var value;
643
+ // Array#includes uses SameValueZero equality algorithm
644
+ // eslint-disable-next-line no-self-compare -- NaN check
645
+ if (IS_INCLUDES && el !== el) while (length > index) {
646
+ value = O[index++];
647
+ // eslint-disable-next-line no-self-compare -- NaN check
648
+ if (value !== value) return true;
649
+ // Array#indexOf ignores holes, Array#includes - not
650
+ } else for (;length > index; index++) {
651
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
652
+ } return !IS_INCLUDES && -1;
653
+ };
654
+ };
655
+
656
+ var arrayIncludes = {
657
+ // `Array.prototype.includes` method
658
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
659
+ includes: createMethod$2(true),
660
+ // `Array.prototype.indexOf` method
661
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
662
+ indexOf: createMethod$2(false)
663
+ };
664
+
665
+ var hiddenKeys$4 = {};
666
+
667
+ var uncurryThis$f = functionUncurryThis;
668
+ var hasOwn$8 = hasOwnProperty_1;
669
+ var toIndexedObject$3 = toIndexedObject$5;
670
+ var indexOf$1 = arrayIncludes.indexOf;
671
+ var hiddenKeys$3 = hiddenKeys$4;
672
+
673
+ var push$1 = uncurryThis$f([].push);
674
+
675
+ var objectKeysInternal = function (object, names) {
676
+ var O = toIndexedObject$3(object);
677
+ var i = 0;
678
+ var result = [];
679
+ var key;
680
+ for (key in O) !hasOwn$8(hiddenKeys$3, key) && hasOwn$8(O, key) && push$1(result, key);
681
+ // Don't enum bug & hidden keys
682
+ while (names.length > i) if (hasOwn$8(O, key = names[i++])) {
683
+ ~indexOf$1(result, key) || push$1(result, key);
684
+ }
685
+ return result;
686
+ };
687
+
688
+ // IE8- don't enum bug keys
689
+ var enumBugKeys$3 = [
690
+ 'constructor',
691
+ 'hasOwnProperty',
692
+ 'isPrototypeOf',
693
+ 'propertyIsEnumerable',
694
+ 'toLocaleString',
695
+ 'toString',
696
+ 'valueOf'
697
+ ];
698
+
699
+ var internalObjectKeys$1 = objectKeysInternal;
700
+ var enumBugKeys$2 = enumBugKeys$3;
701
+
702
+ // `Object.keys` method
703
+ // https://tc39.es/ecma262/#sec-object.keys
704
+ // eslint-disable-next-line es/no-object-keys -- safe
705
+ var objectKeys$2 = Object.keys || function keys(O) {
706
+ return internalObjectKeys$1(O, enumBugKeys$2);
707
+ };
708
+
709
+ var DESCRIPTORS$8 = descriptors;
710
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
711
+ var definePropertyModule$3 = objectDefineProperty;
712
+ var anObject$b = anObject$d;
713
+ var toIndexedObject$2 = toIndexedObject$5;
714
+ var objectKeys$1 = objectKeys$2;
715
+
716
+ // `Object.defineProperties` method
717
+ // https://tc39.es/ecma262/#sec-object.defineproperties
718
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
719
+ objectDefineProperties.f = DESCRIPTORS$8 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
720
+ anObject$b(O);
721
+ var props = toIndexedObject$2(Properties);
722
+ var keys = objectKeys$1(Properties);
723
+ var length = keys.length;
724
+ var index = 0;
725
+ var key;
726
+ while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);
727
+ return O;
728
+ };
729
+
730
+ var getBuiltIn$5 = getBuiltIn$7;
731
+
732
+ var html$2 = getBuiltIn$5('document', 'documentElement');
733
+
734
+ var shared$2 = shared$4.exports;
735
+ var uid = uid$2;
736
+
737
+ var keys = shared$2('keys');
738
+
739
+ var sharedKey$3 = function (key) {
740
+ return keys[key] || (keys[key] = uid(key));
741
+ };
742
+
743
+ /* global ActiveXObject -- old IE, WSH */
744
+ var anObject$a = anObject$d;
745
+ var definePropertiesModule = objectDefineProperties;
746
+ var enumBugKeys$1 = enumBugKeys$3;
747
+ var hiddenKeys$2 = hiddenKeys$4;
748
+ var html$1 = html$2;
749
+ var documentCreateElement$1 = documentCreateElement$2;
750
+ var sharedKey$2 = sharedKey$3;
751
+
752
+ var GT = '>';
753
+ var LT = '<';
754
+ var PROTOTYPE = 'prototype';
755
+ var SCRIPT = 'script';
756
+ var IE_PROTO$1 = sharedKey$2('IE_PROTO');
757
+
758
+ var EmptyConstructor = function () { /* empty */ };
759
+
760
+ var scriptTag = function (content) {
761
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
762
+ };
763
+
764
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
765
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
766
+ activeXDocument.write(scriptTag(''));
767
+ activeXDocument.close();
768
+ var temp = activeXDocument.parentWindow.Object;
769
+ activeXDocument = null; // avoid memory leak
770
+ return temp;
771
+ };
772
+
773
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
774
+ var NullProtoObjectViaIFrame = function () {
775
+ // Thrash, waste and sodomy: IE GC bug
776
+ var iframe = documentCreateElement$1('iframe');
777
+ var JS = 'java' + SCRIPT + ':';
778
+ var iframeDocument;
779
+ iframe.style.display = 'none';
780
+ html$1.appendChild(iframe);
781
+ // https://github.com/zloirock/core-js/issues/475
782
+ iframe.src = String(JS);
783
+ iframeDocument = iframe.contentWindow.document;
784
+ iframeDocument.open();
785
+ iframeDocument.write(scriptTag('document.F=Object'));
786
+ iframeDocument.close();
787
+ return iframeDocument.F;
788
+ };
789
+
790
+ // Check for document.domain and active x support
791
+ // No need to use active x approach when document.domain is not set
792
+ // see https://github.com/es-shims/es5-shim/issues/150
793
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
794
+ // avoid IE GC bug
795
+ var activeXDocument;
796
+ var NullProtoObject = function () {
797
+ try {
798
+ activeXDocument = new ActiveXObject('htmlfile');
799
+ } catch (error) { /* ignore */ }
800
+ NullProtoObject = typeof document != 'undefined'
801
+ ? document.domain && activeXDocument
802
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
803
+ : NullProtoObjectViaIFrame()
804
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
805
+ var length = enumBugKeys$1.length;
806
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
807
+ return NullProtoObject();
808
+ };
809
+
810
+ hiddenKeys$2[IE_PROTO$1] = true;
811
+
812
+ // `Object.create` method
813
+ // https://tc39.es/ecma262/#sec-object.create
814
+ // eslint-disable-next-line es/no-object-create -- safe
815
+ var objectCreate = Object.create || function create(O, Properties) {
816
+ var result;
817
+ if (O !== null) {
818
+ EmptyConstructor[PROTOTYPE] = anObject$a(O);
819
+ result = new EmptyConstructor();
820
+ EmptyConstructor[PROTOTYPE] = null;
821
+ // add "__proto__" for Object.getPrototypeOf polyfill
822
+ result[IE_PROTO$1] = O;
823
+ } else result = NullProtoObject();
824
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
825
+ };
826
+
827
+ var wellKnownSymbol$h = wellKnownSymbol$j;
828
+ var create$2 = objectCreate;
829
+ var defineProperty$5 = objectDefineProperty.f;
830
+
831
+ var UNSCOPABLES = wellKnownSymbol$h('unscopables');
832
+ var ArrayPrototype$1 = Array.prototype;
833
+
834
+ // Array.prototype[@@unscopables]
835
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
836
+ if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
837
+ defineProperty$5(ArrayPrototype$1, UNSCOPABLES, {
838
+ configurable: true,
839
+ value: create$2(null)
840
+ });
841
+ }
842
+
843
+ // add a key to Array.prototype[@@unscopables]
844
+ var addToUnscopables$3 = function (key) {
845
+ ArrayPrototype$1[UNSCOPABLES][key] = true;
846
+ };
847
+
848
+ var iterators = {};
849
+
850
+ var global$e = global$m;
851
+ var isCallable$f = isCallable$l;
852
+
853
+ var WeakMap$1 = global$e.WeakMap;
854
+
855
+ var weakMapBasicDetection = isCallable$f(WeakMap$1) && /native code/.test(String(WeakMap$1));
856
+
857
+ var createPropertyDescriptor$3 = function (bitmap, value) {
858
+ return {
859
+ enumerable: !(bitmap & 1),
860
+ configurable: !(bitmap & 2),
861
+ writable: !(bitmap & 4),
862
+ value: value
863
+ };
864
+ };
865
+
866
+ var DESCRIPTORS$7 = descriptors;
867
+ var definePropertyModule$2 = objectDefineProperty;
868
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
869
+
870
+ var createNonEnumerableProperty$5 = DESCRIPTORS$7 ? function (object, key, value) {
871
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
872
+ } : function (object, key, value) {
873
+ object[key] = value;
874
+ return object;
875
+ };
876
+
877
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
878
+ var global$d = global$m;
879
+ var isObject$6 = isObject$b;
880
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
881
+ var hasOwn$7 = hasOwnProperty_1;
882
+ var shared$1 = sharedStore;
883
+ var sharedKey$1 = sharedKey$3;
884
+ var hiddenKeys$1 = hiddenKeys$4;
885
+
886
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
887
+ var TypeError$2 = global$d.TypeError;
888
+ var WeakMap = global$d.WeakMap;
889
+ var set$1, get, has;
890
+
891
+ var enforce = function (it) {
892
+ return has(it) ? get(it) : set$1(it, {});
893
+ };
894
+
895
+ var getterFor = function (TYPE) {
896
+ return function (it) {
897
+ var state;
898
+ if (!isObject$6(it) || (state = get(it)).type !== TYPE) {
899
+ throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
900
+ } return state;
901
+ };
902
+ };
903
+
904
+ if (NATIVE_WEAK_MAP || shared$1.state) {
905
+ var store$1 = shared$1.state || (shared$1.state = new WeakMap());
906
+ /* eslint-disable no-self-assign -- prototype methods protection */
907
+ store$1.get = store$1.get;
908
+ store$1.has = store$1.has;
909
+ store$1.set = store$1.set;
910
+ /* eslint-enable no-self-assign -- prototype methods protection */
911
+ set$1 = function (it, metadata) {
912
+ if (store$1.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
913
+ metadata.facade = it;
914
+ store$1.set(it, metadata);
915
+ return metadata;
916
+ };
917
+ get = function (it) {
918
+ return store$1.get(it) || {};
919
+ };
920
+ has = function (it) {
921
+ return store$1.has(it);
922
+ };
923
+ } else {
924
+ var STATE = sharedKey$1('state');
925
+ hiddenKeys$1[STATE] = true;
926
+ set$1 = function (it, metadata) {
927
+ if (hasOwn$7(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
928
+ metadata.facade = it;
929
+ createNonEnumerableProperty$4(it, STATE, metadata);
930
+ return metadata;
931
+ };
932
+ get = function (it) {
933
+ return hasOwn$7(it, STATE) ? it[STATE] : {};
934
+ };
935
+ has = function (it) {
936
+ return hasOwn$7(it, STATE);
937
+ };
938
+ }
939
+
940
+ var internalState = {
941
+ set: set$1,
942
+ get: get,
943
+ has: has,
944
+ enforce: enforce,
945
+ getterFor: getterFor
946
+ };
947
+
948
+ var objectGetOwnPropertyDescriptor = {};
949
+
950
+ var objectPropertyIsEnumerable = {};
951
+
952
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
953
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
954
+ var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
955
+
956
+ // Nashorn ~ JDK8 bug
957
+ var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
958
+
959
+ // `Object.prototype.propertyIsEnumerable` method implementation
960
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
961
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
962
+ var descriptor = getOwnPropertyDescriptor$3(this, V);
963
+ return !!descriptor && descriptor.enumerable;
964
+ } : $propertyIsEnumerable;
965
+
966
+ var DESCRIPTORS$6 = descriptors;
967
+ var call$e = functionCall;
968
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
969
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
970
+ var toIndexedObject$1 = toIndexedObject$5;
971
+ var toPropertyKey = toPropertyKey$2;
972
+ var hasOwn$6 = hasOwnProperty_1;
973
+ var IE8_DOM_DEFINE = ie8DomDefine;
974
+
975
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
976
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
977
+
978
+ // `Object.getOwnPropertyDescriptor` method
979
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
980
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
981
+ O = toIndexedObject$1(O);
982
+ P = toPropertyKey(P);
983
+ if (IE8_DOM_DEFINE) try {
984
+ return $getOwnPropertyDescriptor(O, P);
985
+ } catch (error) { /* empty */ }
986
+ if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call$e(propertyIsEnumerableModule$1.f, O, P), O[P]);
987
+ };
988
+
989
+ var makeBuiltIn$3 = {exports: {}};
990
+
991
+ var DESCRIPTORS$5 = descriptors;
992
+ var hasOwn$5 = hasOwnProperty_1;
993
+
994
+ var FunctionPrototype$1 = Function.prototype;
995
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
996
+ var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
997
+
998
+ var EXISTS = hasOwn$5(FunctionPrototype$1, 'name');
999
+ // additional protection from minified / mangled / dropped function names
1000
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
1001
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
1002
+
1003
+ var functionName = {
1004
+ EXISTS: EXISTS,
1005
+ PROPER: PROPER,
1006
+ CONFIGURABLE: CONFIGURABLE
1007
+ };
1008
+
1009
+ var uncurryThis$e = functionUncurryThis;
1010
+ var isCallable$e = isCallable$l;
1011
+ var store = sharedStore;
1012
+
1013
+ var functionToString = uncurryThis$e(Function.toString);
1014
+
1015
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
1016
+ if (!isCallable$e(store.inspectSource)) {
1017
+ store.inspectSource = function (it) {
1018
+ return functionToString(it);
1019
+ };
1020
+ }
1021
+
1022
+ var inspectSource$3 = store.inspectSource;
1023
+
1024
+ var uncurryThis$d = functionUncurryThis;
1025
+ var fails$d = fails$k;
1026
+ var isCallable$d = isCallable$l;
1027
+ var hasOwn$4 = hasOwnProperty_1;
1028
+ var DESCRIPTORS$4 = descriptors;
1029
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
1030
+ var inspectSource$2 = inspectSource$3;
1031
+ var InternalStateModule$2 = internalState;
1032
+
1033
+ var enforceInternalState = InternalStateModule$2.enforce;
1034
+ var getInternalState$2 = InternalStateModule$2.get;
1035
+ var $String$2 = String;
1036
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1037
+ var defineProperty$4 = Object.defineProperty;
1038
+ var stringSlice$5 = uncurryThis$d(''.slice);
1039
+ var replace$2 = uncurryThis$d(''.replace);
1040
+ var join = uncurryThis$d([].join);
1041
+
1042
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$d(function () {
1043
+ return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
1044
+ });
1045
+
1046
+ var TEMPLATE = String(String).split('String');
1047
+
1048
+ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
1049
+ if (stringSlice$5($String$2(name), 0, 7) === 'Symbol(') {
1050
+ name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
1051
+ }
1052
+ if (options && options.getter) name = 'get ' + name;
1053
+ if (options && options.setter) name = 'set ' + name;
1054
+ if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
1055
+ if (DESCRIPTORS$4) defineProperty$4(value, 'name', { value: name, configurable: true });
1056
+ else value.name = name;
1057
+ }
1058
+ if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
1059
+ defineProperty$4(value, 'length', { value: options.arity });
1060
+ }
1061
+ try {
1062
+ if (options && hasOwn$4(options, 'constructor') && options.constructor) {
1063
+ if (DESCRIPTORS$4) defineProperty$4(value, 'prototype', { writable: false });
1064
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
1065
+ } else if (value.prototype) value.prototype = undefined;
1066
+ } catch (error) { /* empty */ }
1067
+ var state = enforceInternalState(value);
1068
+ if (!hasOwn$4(state, 'source')) {
1069
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
1070
+ } return value;
1071
+ };
1072
+
1073
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1074
+ // eslint-disable-next-line no-extend-native -- required
1075
+ Function.prototype.toString = makeBuiltIn$2(function toString() {
1076
+ return isCallable$d(this) && getInternalState$2(this).source || inspectSource$2(this);
1077
+ }, 'toString');
1078
+
1079
+ var isCallable$c = isCallable$l;
1080
+ var definePropertyModule$1 = objectDefineProperty;
1081
+ var makeBuiltIn$1 = makeBuiltIn$3.exports;
1082
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
1083
+
1084
+ var defineBuiltIn$6 = function (O, key, value, options) {
1085
+ if (!options) options = {};
1086
+ var simple = options.enumerable;
1087
+ var name = options.name !== undefined ? options.name : key;
1088
+ if (isCallable$c(value)) makeBuiltIn$1(value, name, options);
1089
+ if (options.global) {
1090
+ if (simple) O[key] = value;
1091
+ else defineGlobalProperty$1(key, value);
1092
+ } else {
1093
+ try {
1094
+ if (!options.unsafe) delete O[key];
1095
+ else if (O[key]) simple = true;
1096
+ } catch (error) { /* empty */ }
1097
+ if (simple) O[key] = value;
1098
+ else definePropertyModule$1.f(O, key, {
1099
+ value: value,
1100
+ enumerable: false,
1101
+ configurable: !options.nonConfigurable,
1102
+ writable: !options.nonWritable
1103
+ });
1104
+ } return O;
1105
+ };
1106
+
1107
+ var objectGetOwnPropertyNames = {};
1108
+
1109
+ var internalObjectKeys = objectKeysInternal;
1110
+ var enumBugKeys = enumBugKeys$3;
1111
+
1112
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1113
+
1114
+ // `Object.getOwnPropertyNames` method
1115
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
1116
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1117
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1118
+ return internalObjectKeys(O, hiddenKeys);
1119
+ };
1120
+
1121
+ var objectGetOwnPropertySymbols = {};
1122
+
1123
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1124
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1125
+
1126
+ var getBuiltIn$4 = getBuiltIn$7;
1127
+ var uncurryThis$c = functionUncurryThis;
1128
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1129
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1130
+ var anObject$9 = anObject$d;
1131
+
1132
+ var concat$2 = uncurryThis$c([].concat);
1133
+
1134
+ // all object keys, includes non-enumerable and symbols
1135
+ var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
1136
+ var keys = getOwnPropertyNamesModule.f(anObject$9(it));
1137
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1138
+ return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
1139
+ };
1140
+
1141
+ var hasOwn$3 = hasOwnProperty_1;
1142
+ var ownKeys = ownKeys$1;
1143
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1144
+ var definePropertyModule = objectDefineProperty;
1145
+
1146
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
1147
+ var keys = ownKeys(source);
1148
+ var defineProperty = definePropertyModule.f;
1149
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1150
+ for (var i = 0; i < keys.length; i++) {
1151
+ var key = keys[i];
1152
+ if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
1153
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1154
+ }
1155
+ }
1156
+ };
1157
+
1158
+ var fails$c = fails$k;
1159
+ var isCallable$b = isCallable$l;
1160
+
1161
+ var replacement = /#|\.prototype\./;
1162
+
1163
+ var isForced$2 = function (feature, detection) {
1164
+ var value = data[normalize(feature)];
1165
+ return value === POLYFILL ? true
1166
+ : value === NATIVE ? false
1167
+ : isCallable$b(detection) ? fails$c(detection)
1168
+ : !!detection;
1169
+ };
1170
+
1171
+ var normalize = isForced$2.normalize = function (string) {
1172
+ return String(string).replace(replacement, '.').toLowerCase();
1173
+ };
1174
+
1175
+ var data = isForced$2.data = {};
1176
+ var NATIVE = isForced$2.NATIVE = 'N';
1177
+ var POLYFILL = isForced$2.POLYFILL = 'P';
1178
+
1179
+ var isForced_1 = isForced$2;
1180
+
1181
+ var global$c = global$m;
1182
+ var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
1183
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
1184
+ var defineBuiltIn$5 = defineBuiltIn$6;
1185
+ var defineGlobalProperty = defineGlobalProperty$3;
1186
+ var copyConstructorProperties = copyConstructorProperties$1;
1187
+ var isForced$1 = isForced_1;
1188
+
1189
+ /*
1190
+ options.target - name of the target object
1191
+ options.global - target is the global object
1192
+ options.stat - export as static methods of target
1193
+ options.proto - export as prototype methods of target
1194
+ options.real - real prototype method for the `pure` version
1195
+ options.forced - export even if the native feature is available
1196
+ options.bind - bind methods to the target, required for the `pure` version
1197
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1198
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
1199
+ options.sham - add a flag to not completely full polyfills
1200
+ options.enumerable - export as enumerable property
1201
+ options.dontCallGetSet - prevent calling a getter on target
1202
+ options.name - the .name of the function if it does not match the key
1203
+ */
1204
+ var _export = function (options, source) {
1205
+ var TARGET = options.target;
1206
+ var GLOBAL = options.global;
1207
+ var STATIC = options.stat;
1208
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1209
+ if (GLOBAL) {
1210
+ target = global$c;
1211
+ } else if (STATIC) {
1212
+ target = global$c[TARGET] || defineGlobalProperty(TARGET, {});
1213
+ } else {
1214
+ target = global$c[TARGET] && global$c[TARGET].prototype;
1215
+ }
1216
+ if (target) for (key in source) {
1217
+ sourceProperty = source[key];
1218
+ if (options.dontCallGetSet) {
1219
+ descriptor = getOwnPropertyDescriptor$2(target, key);
1220
+ targetProperty = descriptor && descriptor.value;
1221
+ } else targetProperty = target[key];
1222
+ FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1223
+ // contained in target
1224
+ if (!FORCED && targetProperty !== undefined) {
1225
+ if (typeof sourceProperty == typeof targetProperty) continue;
1226
+ copyConstructorProperties(sourceProperty, targetProperty);
1227
+ }
1228
+ // add a flag to not completely full polyfills
1229
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1230
+ createNonEnumerableProperty$3(sourceProperty, 'sham', true);
1231
+ }
1232
+ defineBuiltIn$5(target, key, sourceProperty, options);
1233
+ }
1234
+ };
1235
+
1236
+ var fails$b = fails$k;
1237
+
1238
+ var correctPrototypeGetter = !fails$b(function () {
1239
+ function F() { /* empty */ }
1240
+ F.prototype.constructor = null;
1241
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1242
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1243
+ });
1244
+
1245
+ var hasOwn$2 = hasOwnProperty_1;
1246
+ var isCallable$a = isCallable$l;
1247
+ var toObject$4 = toObject$6;
1248
+ var sharedKey = sharedKey$3;
1249
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1250
+
1251
+ var IE_PROTO = sharedKey('IE_PROTO');
1252
+ var $Object$1 = Object;
1253
+ var ObjectPrototype = $Object$1.prototype;
1254
+
1255
+ // `Object.getPrototypeOf` method
1256
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
1257
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1258
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1259
+ var object = toObject$4(O);
1260
+ if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1261
+ var constructor = object.constructor;
1262
+ if (isCallable$a(constructor) && object instanceof constructor) {
1263
+ return constructor.prototype;
1264
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1265
+ };
1266
+
1267
+ var fails$a = fails$k;
1268
+ var isCallable$9 = isCallable$l;
1269
+ var isObject$5 = isObject$b;
1270
+ var getPrototypeOf$1 = objectGetPrototypeOf;
1271
+ var defineBuiltIn$4 = defineBuiltIn$6;
1272
+ var wellKnownSymbol$g = wellKnownSymbol$j;
1273
+
1274
+ var ITERATOR$5 = wellKnownSymbol$g('iterator');
1275
+ var BUGGY_SAFARI_ITERATORS$1 = false;
1276
+
1277
+ // `%IteratorPrototype%` object
1278
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1279
+ var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1280
+
1281
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1282
+ if ([].keys) {
1283
+ arrayIterator = [].keys();
1284
+ // Safari 8 has buggy iterators w/o `next`
1285
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1286
+ else {
1287
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1288
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1289
+ }
1290
+ }
1291
+
1292
+ var NEW_ITERATOR_PROTOTYPE = !isObject$5(IteratorPrototype$2) || fails$a(function () {
1293
+ var test = {};
1294
+ // FF44- legacy iterators case
1295
+ return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
1296
+ });
1297
+
1298
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1299
+
1300
+ // `%IteratorPrototype%[@@iterator]()` method
1301
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1302
+ if (!isCallable$9(IteratorPrototype$2[ITERATOR$5])) {
1303
+ defineBuiltIn$4(IteratorPrototype$2, ITERATOR$5, function () {
1304
+ return this;
1305
+ });
1306
+ }
1307
+
1308
+ var iteratorsCore = {
1309
+ IteratorPrototype: IteratorPrototype$2,
1310
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1311
+ };
1312
+
1313
+ var defineProperty$3 = objectDefineProperty.f;
1314
+ var hasOwn$1 = hasOwnProperty_1;
1315
+ var wellKnownSymbol$f = wellKnownSymbol$j;
1316
+
1317
+ var TO_STRING_TAG$2 = wellKnownSymbol$f('toStringTag');
1318
+
1319
+ var setToStringTag$4 = function (target, TAG, STATIC) {
1320
+ if (target && !STATIC) target = target.prototype;
1321
+ if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
1322
+ defineProperty$3(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1323
+ }
1324
+ };
1325
+
1326
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1327
+ var create$1 = objectCreate;
1328
+ var createPropertyDescriptor = createPropertyDescriptor$3;
1329
+ var setToStringTag$3 = setToStringTag$4;
1330
+ var Iterators$4 = iterators;
1331
+
1332
+ var returnThis$1 = function () { return this; };
1333
+
1334
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1335
+ var TO_STRING_TAG = NAME + ' Iterator';
1336
+ IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1337
+ setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
1338
+ Iterators$4[TO_STRING_TAG] = returnThis$1;
1339
+ return IteratorConstructor;
1340
+ };
1341
+
1342
+ var uncurryThis$b = functionUncurryThis;
1343
+ var aCallable$9 = aCallable$b;
1344
+
1345
+ var functionUncurryThisAccessor = function (object, key, method) {
1346
+ try {
1347
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1348
+ return uncurryThis$b(aCallable$9(Object.getOwnPropertyDescriptor(object, key)[method]));
1349
+ } catch (error) { /* empty */ }
1350
+ };
1351
+
1352
+ var isObject$4 = isObject$b;
1353
+
1354
+ var isPossiblePrototype$1 = function (argument) {
1355
+ return isObject$4(argument) || argument === null;
1356
+ };
1357
+
1358
+ var isPossiblePrototype = isPossiblePrototype$1;
1359
+
1360
+ var $String$1 = String;
1361
+ var $TypeError$a = TypeError;
1362
+
1363
+ var aPossiblePrototype$1 = function (argument) {
1364
+ if (isPossiblePrototype(argument)) return argument;
1365
+ throw new $TypeError$a("Can't set " + $String$1(argument) + ' as a prototype');
1366
+ };
1367
+
1368
+ /* eslint-disable no-proto -- safe */
1369
+ var uncurryThisAccessor = functionUncurryThisAccessor;
1370
+ var anObject$8 = anObject$d;
1371
+ var aPossiblePrototype = aPossiblePrototype$1;
1372
+
1373
+ // `Object.setPrototypeOf` method
1374
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
1375
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1376
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1377
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1378
+ var CORRECT_SETTER = false;
1379
+ var test = {};
1380
+ var setter;
1381
+ try {
1382
+ setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1383
+ setter(test, []);
1384
+ CORRECT_SETTER = test instanceof Array;
1385
+ } catch (error) { /* empty */ }
1386
+ return function setPrototypeOf(O, proto) {
1387
+ anObject$8(O);
1388
+ aPossiblePrototype(proto);
1389
+ if (CORRECT_SETTER) setter(O, proto);
1390
+ else O.__proto__ = proto;
1391
+ return O;
1392
+ };
1393
+ }() : undefined);
1394
+
1395
+ var $$e = _export;
1396
+ var call$d = functionCall;
1397
+ var FunctionName = functionName;
1398
+ var isCallable$8 = isCallable$l;
1399
+ var createIteratorConstructor = iteratorCreateConstructor;
1400
+ var getPrototypeOf = objectGetPrototypeOf;
1401
+ var setPrototypeOf$1 = objectSetPrototypeOf;
1402
+ var setToStringTag$2 = setToStringTag$4;
1403
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1404
+ var defineBuiltIn$3 = defineBuiltIn$6;
1405
+ var wellKnownSymbol$e = wellKnownSymbol$j;
1406
+ var Iterators$3 = iterators;
1407
+ var IteratorsCore = iteratorsCore;
1408
+
1409
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1410
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1411
+ var IteratorPrototype = IteratorsCore.IteratorPrototype;
1412
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1413
+ var ITERATOR$4 = wellKnownSymbol$e('iterator');
1414
+ var KEYS = 'keys';
1415
+ var VALUES = 'values';
1416
+ var ENTRIES = 'entries';
1417
+
1418
+ var returnThis = function () { return this; };
1419
+
1420
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1421
+ createIteratorConstructor(IteratorConstructor, NAME, next);
1422
+
1423
+ var getIterationMethod = function (KIND) {
1424
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1425
+ if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1426
+
1427
+ switch (KIND) {
1428
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1429
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1430
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1431
+ }
1432
+
1433
+ return function () { return new IteratorConstructor(this); };
1434
+ };
1435
+
1436
+ var TO_STRING_TAG = NAME + ' Iterator';
1437
+ var INCORRECT_VALUES_NAME = false;
1438
+ var IterablePrototype = Iterable.prototype;
1439
+ var nativeIterator = IterablePrototype[ITERATOR$4]
1440
+ || IterablePrototype['@@iterator']
1441
+ || DEFAULT && IterablePrototype[DEFAULT];
1442
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1443
+ var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1444
+ var CurrentIteratorPrototype, methods, KEY;
1445
+
1446
+ // fix native
1447
+ if (anyNativeIterator) {
1448
+ CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1449
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1450
+ if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1451
+ if (setPrototypeOf$1) {
1452
+ setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
1453
+ } else if (!isCallable$8(CurrentIteratorPrototype[ITERATOR$4])) {
1454
+ defineBuiltIn$3(CurrentIteratorPrototype, ITERATOR$4, returnThis);
1455
+ }
1456
+ }
1457
+ // Set @@toStringTag to native iterators
1458
+ setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true);
1459
+ }
1460
+ }
1461
+
1462
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1463
+ if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1464
+ if (CONFIGURABLE_FUNCTION_NAME) {
1465
+ createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
1466
+ } else {
1467
+ INCORRECT_VALUES_NAME = true;
1468
+ defaultIterator = function values() { return call$d(nativeIterator, this); };
1469
+ }
1470
+ }
1471
+
1472
+ // export additional methods
1473
+ if (DEFAULT) {
1474
+ methods = {
1475
+ values: getIterationMethod(VALUES),
1476
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1477
+ entries: getIterationMethod(ENTRIES)
1478
+ };
1479
+ if (FORCED) for (KEY in methods) {
1480
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1481
+ defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
1482
+ }
1483
+ } else $$e({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1484
+ }
1485
+
1486
+ // define iterator
1487
+ if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
1488
+ defineBuiltIn$3(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
1489
+ }
1490
+ Iterators$3[NAME] = defaultIterator;
1491
+
1492
+ return methods;
1493
+ };
1494
+
1495
+ // `CreateIterResultObject` abstract operation
1496
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1497
+ var createIterResultObject$1 = function (value, done) {
1498
+ return { value: value, done: done };
1499
+ };
1500
+
1501
+ var toIndexedObject = toIndexedObject$5;
1502
+ var addToUnscopables$2 = addToUnscopables$3;
1503
+ var Iterators$2 = iterators;
1504
+ var InternalStateModule$1 = internalState;
1505
+ var defineProperty$2 = objectDefineProperty.f;
1506
+ var defineIterator = iteratorDefine;
1507
+ var createIterResultObject = createIterResultObject$1;
1508
+ var DESCRIPTORS$3 = descriptors;
1509
+
1510
+ var ARRAY_ITERATOR = 'Array Iterator';
1511
+ var setInternalState$1 = InternalStateModule$1.set;
1512
+ var getInternalState$1 = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
1513
+
1514
+ // `Array.prototype.entries` method
1515
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
1516
+ // `Array.prototype.keys` method
1517
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
1518
+ // `Array.prototype.values` method
1519
+ // https://tc39.es/ecma262/#sec-array.prototype.values
1520
+ // `Array.prototype[@@iterator]` method
1521
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1522
+ // `CreateArrayIterator` internal method
1523
+ // https://tc39.es/ecma262/#sec-createarrayiterator
1524
+ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1525
+ setInternalState$1(this, {
1526
+ type: ARRAY_ITERATOR,
1527
+ target: toIndexedObject(iterated), // target
1528
+ index: 0, // next index
1529
+ kind: kind // kind
1530
+ });
1531
+ // `%ArrayIteratorPrototype%.next` method
1532
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1533
+ }, function () {
1534
+ var state = getInternalState$1(this);
1535
+ var target = state.target;
1536
+ var index = state.index++;
1537
+ if (!target || index >= target.length) {
1538
+ state.target = undefined;
1539
+ return createIterResultObject(undefined, true);
1540
+ }
1541
+ switch (state.kind) {
1542
+ case 'keys': return createIterResultObject(index, false);
1543
+ case 'values': return createIterResultObject(target[index], false);
1544
+ } return createIterResultObject([index, target[index]], false);
1545
+ }, 'values');
1546
+
1547
+ // argumentsList[@@iterator] is %ArrayProto_values%
1548
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1549
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1550
+ var values = Iterators$2.Arguments = Iterators$2.Array;
1551
+
1552
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1553
+ addToUnscopables$2('keys');
1554
+ addToUnscopables$2('values');
1555
+ addToUnscopables$2('entries');
1556
+
1557
+ // V8 ~ Chrome 45- bug
1558
+ if (DESCRIPTORS$3 && values.name !== 'values') try {
1559
+ defineProperty$2(values, 'name', { value: 'values' });
1560
+ } catch (error) { /* empty */ }
1561
+
1562
+ // iterable DOM collections
1563
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1564
+ var domIterables = {
1565
+ CSSRuleList: 0,
1566
+ CSSStyleDeclaration: 0,
1567
+ CSSValueList: 0,
1568
+ ClientRectList: 0,
1569
+ DOMRectList: 0,
1570
+ DOMStringList: 0,
1571
+ DOMTokenList: 1,
1572
+ DataTransferItemList: 0,
1573
+ FileList: 0,
1574
+ HTMLAllCollection: 0,
1575
+ HTMLCollection: 0,
1576
+ HTMLFormElement: 0,
1577
+ HTMLSelectElement: 0,
1578
+ MediaList: 0,
1579
+ MimeTypeArray: 0,
1580
+ NamedNodeMap: 0,
1581
+ NodeList: 1,
1582
+ PaintRequestList: 0,
1583
+ Plugin: 0,
1584
+ PluginArray: 0,
1585
+ SVGLengthList: 0,
1586
+ SVGNumberList: 0,
1587
+ SVGPathSegList: 0,
1588
+ SVGPointList: 0,
1589
+ SVGStringList: 0,
1590
+ SVGTransformList: 0,
1591
+ SourceBufferList: 0,
1592
+ StyleSheetList: 0,
1593
+ TextTrackCueList: 0,
1594
+ TextTrackList: 0,
1595
+ TouchList: 0
1596
+ };
1597
+
1598
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1599
+ var documentCreateElement = documentCreateElement$2;
1600
+
1601
+ var classList = documentCreateElement('span').classList;
1602
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1603
+
1604
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1605
+
1606
+ var global$b = global$m;
1607
+ var DOMIterables = domIterables;
1608
+ var DOMTokenListPrototype = domTokenListPrototype;
1609
+ var ArrayIteratorMethods = es_array_iterator;
1610
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1611
+ var setToStringTag$1 = setToStringTag$4;
1612
+ var wellKnownSymbol$d = wellKnownSymbol$j;
1613
+
1614
+ var ITERATOR$3 = wellKnownSymbol$d('iterator');
1615
+ var ArrayValues = ArrayIteratorMethods.values;
1616
+
1617
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1618
+ if (CollectionPrototype) {
1619
+ // some Chrome versions have non-configurable methods on DOMTokenList
1620
+ if (CollectionPrototype[ITERATOR$3] !== ArrayValues) try {
1621
+ createNonEnumerableProperty$1(CollectionPrototype, ITERATOR$3, ArrayValues);
1622
+ } catch (error) {
1623
+ CollectionPrototype[ITERATOR$3] = ArrayValues;
1624
+ }
1625
+ setToStringTag$1(CollectionPrototype, COLLECTION_NAME, true);
1626
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1627
+ // some Chrome versions have non-configurable methods on DOMTokenList
1628
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1629
+ createNonEnumerableProperty$1(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1630
+ } catch (error) {
1631
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1632
+ }
1633
+ }
1634
+ }
1635
+ };
1636
+
1637
+ for (var COLLECTION_NAME in DOMIterables) {
1638
+ handlePrototype(global$b[COLLECTION_NAME] && global$b[COLLECTION_NAME].prototype, COLLECTION_NAME);
1639
+ }
1640
+
1641
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1642
+
1643
+ var classofRaw$1 = classofRaw$2;
1644
+ var uncurryThis$a = functionUncurryThis;
1645
+
1646
+ var functionUncurryThisClause = function (fn) {
1647
+ // Nashorn bug:
1648
+ // https://github.com/zloirock/core-js/issues/1128
1649
+ // https://github.com/zloirock/core-js/issues/1130
1650
+ if (classofRaw$1(fn) === 'Function') return uncurryThis$a(fn);
1651
+ };
1652
+
1653
+ var wellKnownSymbol$c = wellKnownSymbol$j;
1654
+
1655
+ var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag');
1656
+ var test = {};
1657
+
1658
+ test[TO_STRING_TAG$1] = 'z';
1659
+
1660
+ var toStringTagSupport = String(test) === '[object z]';
1661
+
1662
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1663
+ var isCallable$7 = isCallable$l;
1664
+ var classofRaw = classofRaw$2;
1665
+ var wellKnownSymbol$b = wellKnownSymbol$j;
1666
+
1667
+ var TO_STRING_TAG = wellKnownSymbol$b('toStringTag');
1668
+ var $Object = Object;
1669
+
1670
+ // ES3 wrong here
1671
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1672
+
1673
+ // fallback for IE11 Script Access Denied error
1674
+ var tryGet = function (it, key) {
1675
+ try {
1676
+ return it[key];
1677
+ } catch (error) { /* empty */ }
1678
+ };
1679
+
1680
+ // getting tag from ES6+ `Object.prototype.toString`
1681
+ var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1682
+ var O, tag, result;
1683
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1684
+ // @@toStringTag case
1685
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1686
+ // builtinTag case
1687
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1688
+ // ES3 arguments fallback
1689
+ : (result = classofRaw(O)) === 'Object' && isCallable$7(O.callee) ? 'Arguments' : result;
1690
+ };
1691
+
1692
+ var classof$6 = classof$7;
1693
+
1694
+ var $String = String;
1695
+
1696
+ var toString$5 = function (argument) {
1697
+ if (classof$6(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1698
+ return $String(argument);
1699
+ };
1700
+
1701
+ var isObject$3 = isObject$b;
1702
+ var classof$5 = classofRaw$2;
1703
+ var wellKnownSymbol$a = wellKnownSymbol$j;
1704
+
1705
+ var MATCH$1 = wellKnownSymbol$a('match');
1706
+
1707
+ // `IsRegExp` abstract operation
1708
+ // https://tc39.es/ecma262/#sec-isregexp
1709
+ var isRegexp = function (it) {
1710
+ var isRegExp;
1711
+ return isObject$3(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$5(it) === 'RegExp');
1712
+ };
1713
+
1714
+ var isRegExp = isRegexp;
1715
+
1716
+ var $TypeError$9 = TypeError;
1717
+
1718
+ var notARegexp = function (it) {
1719
+ if (isRegExp(it)) {
1720
+ throw new $TypeError$9("The method doesn't accept regular expressions");
1721
+ } return it;
1722
+ };
1723
+
1724
+ var wellKnownSymbol$9 = wellKnownSymbol$j;
1725
+
1726
+ var MATCH = wellKnownSymbol$9('match');
1727
+
1728
+ var correctIsRegexpLogic = function (METHOD_NAME) {
1729
+ var regexp = /./;
1730
+ try {
1731
+ '/./'[METHOD_NAME](regexp);
1732
+ } catch (error1) {
1733
+ try {
1734
+ regexp[MATCH] = false;
1735
+ return '/./'[METHOD_NAME](regexp);
1736
+ } catch (error2) { /* empty */ }
1737
+ } return false;
1738
+ };
1739
+
1740
+ var $$d = _export;
1741
+ var uncurryThis$9 = functionUncurryThisClause;
1742
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1743
+ var toLength$1 = toLength$3;
1744
+ var toString$4 = toString$5;
1745
+ var notARegExp$1 = notARegexp;
1746
+ var requireObjectCoercible$3 = requireObjectCoercible$6;
1747
+ var correctIsRegExpLogic$1 = correctIsRegexpLogic;
1748
+
1749
+ var stringSlice$4 = uncurryThis$9(''.slice);
1750
+ var min$1 = Math.min;
1751
+
1752
+ var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic$1('startsWith');
1753
+ // https://github.com/zloirock/core-js/pull/702
1754
+ var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
1755
+ var descriptor = getOwnPropertyDescriptor$1(String.prototype, 'startsWith');
1756
+ return descriptor && !descriptor.writable;
1757
+ }();
1758
+
1759
+ // `String.prototype.startsWith` method
1760
+ // https://tc39.es/ecma262/#sec-string.prototype.startswith
1761
+ $$d({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
1762
+ startsWith: function startsWith(searchString /* , position = 0 */) {
1763
+ var that = toString$4(requireObjectCoercible$3(this));
1764
+ notARegExp$1(searchString);
1765
+ var index = toLength$1(min$1(arguments.length > 1 ? arguments[1] : undefined, that.length));
1766
+ var search = toString$4(searchString);
1767
+ return stringSlice$4(that, index, index + search.length) === search;
1768
+ }
1769
+ });
1770
+
99
1771
  /* *
100
1772
  * Licensed under the Apache License, Version 2.0 (the "License");
101
1773
  * you may not use this file except in compliance with the License.
@@ -130,6 +1802,73 @@ const findEventIndexInLanguage = (languages, capWarningPresets, feedAddressFromP
130
1802
  return languageIndex;
131
1803
  };
132
1804
 
1805
+ var DESCRIPTORS$2 = descriptors;
1806
+ var uncurryThis$8 = functionUncurryThis;
1807
+ var call$c = functionCall;
1808
+ var fails$9 = fails$k;
1809
+ var objectKeys = objectKeys$2;
1810
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1811
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1812
+ var toObject$3 = toObject$6;
1813
+ var IndexedObject$1 = indexedObject;
1814
+
1815
+ // eslint-disable-next-line es/no-object-assign -- safe
1816
+ var $assign = Object.assign;
1817
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1818
+ var defineProperty$1 = Object.defineProperty;
1819
+ var concat$1 = uncurryThis$8([].concat);
1820
+
1821
+ // `Object.assign` method
1822
+ // https://tc39.es/ecma262/#sec-object.assign
1823
+ var objectAssign = !$assign || fails$9(function () {
1824
+ // should have correct order of operations (Edge bug)
1825
+ if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
1826
+ enumerable: true,
1827
+ get: function () {
1828
+ defineProperty$1(this, 'b', {
1829
+ value: 3,
1830
+ enumerable: false
1831
+ });
1832
+ }
1833
+ }), { b: 2 })).b !== 1) return true;
1834
+ // should work with symbols and should have deterministic property order (V8 bug)
1835
+ var A = {};
1836
+ var B = {};
1837
+ // eslint-disable-next-line es/no-symbol -- safe
1838
+ var symbol = Symbol('assign detection');
1839
+ var alphabet = 'abcdefghijklmnopqrst';
1840
+ A[symbol] = 7;
1841
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1842
+ return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
1843
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1844
+ var T = toObject$3(target);
1845
+ var argumentsLength = arguments.length;
1846
+ var index = 1;
1847
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1848
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
1849
+ while (argumentsLength > index) {
1850
+ var S = IndexedObject$1(arguments[index++]);
1851
+ var keys = getOwnPropertySymbols ? concat$1(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1852
+ var length = keys.length;
1853
+ var j = 0;
1854
+ var key;
1855
+ while (length > j) {
1856
+ key = keys[j++];
1857
+ if (!DESCRIPTORS$2 || call$c(propertyIsEnumerable, S, key)) T[key] = S[key];
1858
+ }
1859
+ } return T;
1860
+ } : $assign;
1861
+
1862
+ var $$c = _export;
1863
+ var assign = objectAssign;
1864
+
1865
+ // `Object.assign` method
1866
+ // https://tc39.es/ecma262/#sec-object.assign
1867
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1868
+ $$c({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1869
+ assign: assign
1870
+ });
1871
+
133
1872
  var en = {
134
1873
  "map-view-cap-error-title": "Something went wrong with loading the configuration file",
135
1874
  "warning-list-cap-alert-banner-title": "Note: Only map is affected by timeslider based filtering",
@@ -153,6 +1892,259 @@ var capTrans = {
153
1892
  fi: fi
154
1893
  };
155
1894
 
1895
+ const CAP_NAMESPACE = 'cap';
1896
+
1897
+ /* *
1898
+ * Licensed under the Apache License, Version 2.0 (the "License");
1899
+ * you may not use this file except in compliance with the License.
1900
+ * You may obtain a copy of the License at
1901
+ *
1902
+ * http://www.apache.org/licenses/LICENSE-2.0
1903
+ *
1904
+ * Unless required by applicable law or agreed to in writing, software
1905
+ * distributed under the License is distributed on an "AS IS" BASIS,
1906
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1907
+ * See the License for the specific language governing permissions and
1908
+ * limitations under the License.
1909
+ *
1910
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1911
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
1912
+ * */
1913
+ const severityStyles = {
1914
+ Extreme: {
1915
+ border: 'solid 5px rgb(255, 9, 9)',
1916
+ background: 'rgba(255, 9, 9, 0.15)'
1917
+ },
1918
+ Severe: {
1919
+ border: 'solid 5px rgb(255, 165, 0)',
1920
+ background: 'rgba(255, 165, 0, 0.15)'
1921
+ },
1922
+ Moderate: {
1923
+ border: 'solid 5px rgb(248, 248, 0)',
1924
+ background: 'rgba(248, 248, 0, 0.15)'
1925
+ },
1926
+ Minor: {
1927
+ border: 'solid 5px rgb(106, 248, 108)',
1928
+ background: 'rgba(106, 248, 108, 0.15)'
1929
+ }
1930
+ };
1931
+ const WarningListRowCap = ({
1932
+ event,
1933
+ severity,
1934
+ expires
1935
+ }) => {
1936
+ const {
1937
+ t
1938
+ } = useTranslation(CAP_NAMESPACE);
1939
+ return /*#__PURE__*/React.createElement(Grid, {
1940
+ container: true,
1941
+ sx: {
1942
+ border: severityStyles[severity].border,
1943
+ background: severityStyles[severity].background,
1944
+ padding: '5px',
1945
+ marginTop: '20px',
1946
+ marginBottom: '20px',
1947
+ width: '100%'
1948
+ }
1949
+ }, /*#__PURE__*/React.createElement(Grid, {
1950
+ item: true,
1951
+ xs: 4
1952
+ }, /*#__PURE__*/React.createElement(Typography, {
1953
+ variant: "overline"
1954
+ }, t('warning-list-row-event')), /*#__PURE__*/React.createElement(Typography, {
1955
+ variant: "subtitle2",
1956
+ sx: {
1957
+ fontWeight: 'normal'
1958
+ },
1959
+ "data-testid": "event"
1960
+ }, event ? `${event}` : '')), /*#__PURE__*/React.createElement(Grid, {
1961
+ item: true,
1962
+ xs: 4
1963
+ }, /*#__PURE__*/React.createElement(Typography, {
1964
+ variant: "overline"
1965
+ }, t('warning-list-row-severity')), /*#__PURE__*/React.createElement(Typography, {
1966
+ variant: "subtitle2",
1967
+ sx: {
1968
+ fontWeight: 'normal'
1969
+ },
1970
+ "data-testid": "severity"
1971
+ }, severity ? `${severity}` : '')), /*#__PURE__*/React.createElement(Grid, {
1972
+ item: true,
1973
+ xs: 4
1974
+ }, /*#__PURE__*/React.createElement(Typography, {
1975
+ variant: "overline"
1976
+ }, t('warning-list-row-expires')), /*#__PURE__*/React.createElement(Typography, {
1977
+ variant: "subtitle2",
1978
+ sx: {
1979
+ fontWeight: 'normal'
1980
+ },
1981
+ "data-testid": "expires"
1982
+ }, expires ? dateUtils.dateToString(dateUtils.createDate(expires), "dd MMM yyyy, HH:mm 'UTC'") : t('warning-list-row-not-expired'))));
1983
+ };
1984
+
1985
+ const WarningListRowCapConnect = ({
1986
+ alertId,
1987
+ capWarningPresets
1988
+ }) => {
1989
+ const [languageIndex, setLanguageIndex] = React.useState(0);
1990
+ const alert = useSelector(store => getAlertById(store, alertId));
1991
+ React.useEffect(() => {
1992
+ if (alert) {
1993
+ const foundLanguageIndex = findEventIndexInLanguage(alert.languages, capWarningPresets, alert.feedAddress);
1994
+ setLanguageIndex(foundLanguageIndex);
1995
+ }
1996
+ }, [alert, capWarningPresets]);
1997
+ return /*#__PURE__*/React.createElement("div", null, alert && ( /*#__PURE__*/React.createElement(WarningListRowCap, {
1998
+ event: alert.languages[languageIndex].event,
1999
+ severity: alert.severity,
2000
+ expires: alert.expires
2001
+ })));
2002
+ };
2003
+
2004
+ /* *
2005
+ * Licensed under the Apache License, Version 2.0 (the "License");
2006
+ * you may not use this file except in compliance with the License.
2007
+ * You may obtain a copy of the License at
2008
+ *
2009
+ * http://www.apache.org/licenses/LICENSE-2.0
2010
+ *
2011
+ * Unless required by applicable law or agreed to in writing, software
2012
+ * distributed under the License is distributed on an "AS IS" BASIS,
2013
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2014
+ * See the License for the specific language governing permissions and
2015
+ * limitations under the License.
2016
+ *
2017
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2018
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
2019
+ * */
2020
+ const WarningListCap = ({
2021
+ capWarningPresets,
2022
+ alertIds
2023
+ }) => {
2024
+ const {
2025
+ t
2026
+ } = useTranslation(CAP_NAMESPACE);
2027
+ return /*#__PURE__*/React.createElement(Box, {
2028
+ sx: {
2029
+ width: '100%',
2030
+ height: '100%',
2031
+ display: 'flex'
2032
+ }
2033
+ }, /*#__PURE__*/React.createElement(Card, {
2034
+ sx: {
2035
+ justifyContent: 'center',
2036
+ alignItems: 'center',
2037
+ overflow: 'auto',
2038
+ height: '95%',
2039
+ width: '100%',
2040
+ padding: '10px',
2041
+ margin: '20px',
2042
+ marginBottom: '10px',
2043
+ position: 'relative'
2044
+ },
2045
+ "data-testid": "warningList"
2046
+ }, alertIds.length > 0 && ( /*#__PURE__*/React.createElement(Box, {
2047
+ sx: {
2048
+ position: 'sticky',
2049
+ top: 0,
2050
+ width: '100%',
2051
+ display: 'flex',
2052
+ justifyContent: 'center'
2053
+ }
2054
+ }, /*#__PURE__*/React.createElement(AlertBanner, {
2055
+ title: t('warning-list-cap-alert-banner-title')
2056
+ }))), alertIds.length === 0 ? ( /*#__PURE__*/React.createElement(Box, {
2057
+ sx: {
2058
+ position: 'absolute',
2059
+ left: '50%',
2060
+ top: '20%',
2061
+ zIndex: '100'
2062
+ }
2063
+ }, /*#__PURE__*/React.createElement(CircularProgress, null))) : null, alertIds.map(id => ( /*#__PURE__*/React.createElement(WarningListRowCapConnect, {
2064
+ key: id,
2065
+ alertId: id,
2066
+ capWarningPresets: capWarningPresets
2067
+ })))));
2068
+ };
2069
+
2070
+ /* *
2071
+ * Licensed under the Apache License, Version 2.0 (the "License");
2072
+ * you may not use this file except in compliance with the License.
2073
+ * You may obtain a copy of the License at
2074
+ *
2075
+ * http://www.apache.org/licenses/LICENSE-2.0
2076
+ *
2077
+ * Unless required by applicable law or agreed to in writing, software
2078
+ * distributed under the License is distributed on an "AS IS" BASIS,
2079
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2080
+ * See the License for the specific language governing permissions and
2081
+ * limitations under the License.
2082
+ *
2083
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2084
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
2085
+ * */
2086
+ const WarningListCapConnect = ({
2087
+ capWarningPresets
2088
+ }) => {
2089
+ const alertIDs = useSelector(store => getAlertIds(store));
2090
+ return /*#__PURE__*/React.createElement(WarningListCap, {
2091
+ capWarningPresets: capWarningPresets,
2092
+ alertIds: alertIDs
2093
+ });
2094
+ };
2095
+
2096
+ /* *
2097
+ * Licensed under the Apache License, Version 2.0 (the "License");
2098
+ * you may not use this file except in compliance with the License.
2099
+ * You may obtain a copy of the License at
2100
+ *
2101
+ * http://www.apache.org/licenses/LICENSE-2.0
2102
+ *
2103
+ * Unless required by applicable law or agreed to in writing, software
2104
+ * distributed under the License is distributed on an "AS IS" BASIS,
2105
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2106
+ * See the License for the specific language governing permissions and
2107
+ * limitations under the License.
2108
+ *
2109
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2110
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
2111
+ * */
2112
+ const WarningListCapConnectWrapper = ({
2113
+ productConfigKey
2114
+ }) => {
2115
+ const {
2116
+ api
2117
+ } = useApiContext();
2118
+ const {
2119
+ t
2120
+ } = useTranslation(CAP_NAMESPACE);
2121
+ const {
2122
+ result: productConfig,
2123
+ isLoading: isConfigLoading,
2124
+ error
2125
+ } = useApi(api.getCapConfiguration, productConfigKey);
2126
+ if (isConfigLoading) {
2127
+ return /*#__PURE__*/React.createElement(Box$1, {
2128
+ sx: {
2129
+ display: 'flex',
2130
+ justifyContent: 'center',
2131
+ alignItems: 'center'
2132
+ }
2133
+ }, /*#__PURE__*/React.createElement(CircularProgress, {
2134
+ "data-testid": "loadingSpinner"
2135
+ }));
2136
+ }
2137
+ if (error) {
2138
+ return /*#__PURE__*/React.createElement(AlertBanner, {
2139
+ title: t('warning-list-cap-error-title'),
2140
+ info: error.message
2141
+ });
2142
+ }
2143
+ return /*#__PURE__*/React.createElement(WarningListCapConnect, {
2144
+ capWarningPresets: productConfig
2145
+ });
2146
+ };
2147
+
156
2148
  /* *
157
2149
  * Licensed under the Apache License, Version 2.0 (the "License");
158
2150
  * you may not use this file except in compliance with the License.
@@ -169,314 +2161,1399 @@ var capTrans = {
169
2161
  * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
170
2162
  * Copyright 2023 - Finnish Meteorological Institute (FMI)
171
2163
  * */
172
- const CAP_NAMESPACE = 'cap';
173
-
174
- /* *
175
- * Licensed under the Apache License, Version 2.0 (the "License");
176
- * you may not use this file except in compliance with the License.
177
- * You may obtain a copy of the License at
178
- *
179
- * http://www.apache.org/licenses/LICENSE-2.0
180
- *
181
- * Unless required by applicable law or agreed to in writing, software
182
- * distributed under the License is distributed on an "AS IS" BASIS,
183
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
184
- * See the License for the specific language governing permissions and
185
- * limitations under the License.
186
- *
187
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
188
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
189
- * */
190
- const severityStyles = {
191
- Extreme: {
192
- border: 'solid 5px rgb(255, 9, 9)',
193
- background: 'rgba(255, 9, 9, 0.15)'
2164
+ const getApiRoutes = (axiosInstance, nonAuthAxiosInstance) => ({
2165
+ getCapConfiguration: productConfigKey => {
2166
+ return nonAuthAxiosInstance.get(`/assets/${productConfigKey}`);
194
2167
  },
195
- Severe: {
196
- border: 'solid 5px rgb(255, 165, 0)',
197
- background: 'rgba(255, 165, 0, 0.15)'
2168
+ getAllAlerts: thirdPartyApiUrl => {
2169
+ return axiosInstance.get(`/allalerts?url=${thirdPartyApiUrl}`);
198
2170
  },
199
- Moderate: {
200
- border: 'solid 5px rgb(248, 248, 0)',
201
- background: 'rgba(248, 248, 0, 0.15)'
2171
+ getFeedLinks: thirdPartyApiUrl => {
2172
+ return axiosInstance.get(`/feedlinks?url=${thirdPartyApiUrl}`);
202
2173
  },
203
- Minor: {
204
- border: 'solid 5px rgb(106, 248, 108)',
205
- background: 'rgba(106, 248, 108, 0.15)'
2174
+ getSingleAlert: alertUrl => {
2175
+ return axiosInstance.get(`/singlealert?url=${alertUrl}`);
2176
+ },
2177
+ getLastUpdated: thirdPartyApiUrl => {
2178
+ return axiosInstance.get(`/poll_feed?url=${thirdPartyApiUrl}`);
2179
+ }
2180
+ });
2181
+ const createApi = props => {
2182
+ const axiosInstance = createNonAuthApiInstance(props);
2183
+ const nonAuthAxiosInstance = createNonAuthApiInstance({});
2184
+ return getApiRoutes(axiosInstance, nonAuthAxiosInstance);
2185
+ };
2186
+
2187
+ var classof$4 = classofRaw$2;
2188
+
2189
+ // `IsArray` abstract operation
2190
+ // https://tc39.es/ecma262/#sec-isarray
2191
+ // eslint-disable-next-line es/no-array-isarray -- safe
2192
+ var isArray$2 = Array.isArray || function isArray(argument) {
2193
+ return classof$4(argument) === 'Array';
2194
+ };
2195
+
2196
+ var $TypeError$8 = TypeError;
2197
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
2198
+
2199
+ var doesNotExceedSafeInteger$1 = function (it) {
2200
+ if (it > MAX_SAFE_INTEGER) throw $TypeError$8('Maximum allowed index exceeded');
2201
+ return it;
2202
+ };
2203
+
2204
+ var uncurryThis$7 = functionUncurryThisClause;
2205
+ var aCallable$8 = aCallable$b;
2206
+ var NATIVE_BIND$1 = functionBindNative;
2207
+
2208
+ var bind$5 = uncurryThis$7(uncurryThis$7.bind);
2209
+
2210
+ // optional / simple context binding
2211
+ var functionBindContext = function (fn, that) {
2212
+ aCallable$8(fn);
2213
+ return that === undefined ? fn : NATIVE_BIND$1 ? bind$5(fn, that) : function (/* ...args */) {
2214
+ return fn.apply(that, arguments);
2215
+ };
2216
+ };
2217
+
2218
+ var isArray$1 = isArray$2;
2219
+ var lengthOfArrayLike$3 = lengthOfArrayLike$5;
2220
+ var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
2221
+ var bind$4 = functionBindContext;
2222
+
2223
+ // `FlattenIntoArray` abstract operation
2224
+ // https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
2225
+ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
2226
+ var targetIndex = start;
2227
+ var sourceIndex = 0;
2228
+ var mapFn = mapper ? bind$4(mapper, thisArg) : false;
2229
+ var element, elementLen;
2230
+
2231
+ while (sourceIndex < sourceLen) {
2232
+ if (sourceIndex in source) {
2233
+ element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
2234
+
2235
+ if (depth > 0 && isArray$1(element)) {
2236
+ elementLen = lengthOfArrayLike$3(element);
2237
+ targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;
2238
+ } else {
2239
+ doesNotExceedSafeInteger(targetIndex + 1);
2240
+ target[targetIndex] = element;
2241
+ }
2242
+
2243
+ targetIndex++;
2244
+ }
2245
+ sourceIndex++;
2246
+ }
2247
+ return targetIndex;
2248
+ };
2249
+
2250
+ var flattenIntoArray_1 = flattenIntoArray$1;
2251
+
2252
+ var uncurryThis$6 = functionUncurryThis;
2253
+ var fails$8 = fails$k;
2254
+ var isCallable$6 = isCallable$l;
2255
+ var classof$3 = classof$7;
2256
+ var getBuiltIn$3 = getBuiltIn$7;
2257
+ var inspectSource$1 = inspectSource$3;
2258
+
2259
+ var noop = function () { /* empty */ };
2260
+ var construct = getBuiltIn$3('Reflect', 'construct');
2261
+ var constructorRegExp = /^\s*(?:class|function)\b/;
2262
+ var exec$1 = uncurryThis$6(constructorRegExp.exec);
2263
+ var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
2264
+
2265
+ var isConstructorModern = function isConstructor(argument) {
2266
+ if (!isCallable$6(argument)) return false;
2267
+ try {
2268
+ construct(noop, [], argument);
2269
+ return true;
2270
+ } catch (error) {
2271
+ return false;
2272
+ }
2273
+ };
2274
+
2275
+ var isConstructorLegacy = function isConstructor(argument) {
2276
+ if (!isCallable$6(argument)) return false;
2277
+ switch (classof$3(argument)) {
2278
+ case 'AsyncFunction':
2279
+ case 'GeneratorFunction':
2280
+ case 'AsyncGeneratorFunction': return false;
2281
+ }
2282
+ try {
2283
+ // we can't check .prototype since constructors produced by .bind haven't it
2284
+ // `Function#toString` throws on some built-it function in some legacy engines
2285
+ // (for example, `DOMQuad` and similar in FF41-)
2286
+ return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
2287
+ } catch (error) {
2288
+ return true;
2289
+ }
2290
+ };
2291
+
2292
+ isConstructorLegacy.sham = true;
2293
+
2294
+ // `IsConstructor` abstract operation
2295
+ // https://tc39.es/ecma262/#sec-isconstructor
2296
+ var isConstructor$2 = !construct || fails$8(function () {
2297
+ var called;
2298
+ return isConstructorModern(isConstructorModern.call)
2299
+ || !isConstructorModern(Object)
2300
+ || !isConstructorModern(function () { called = true; })
2301
+ || called;
2302
+ }) ? isConstructorLegacy : isConstructorModern;
2303
+
2304
+ var isArray = isArray$2;
2305
+ var isConstructor$1 = isConstructor$2;
2306
+ var isObject$2 = isObject$b;
2307
+ var wellKnownSymbol$8 = wellKnownSymbol$j;
2308
+
2309
+ var SPECIES$4 = wellKnownSymbol$8('species');
2310
+ var $Array = Array;
2311
+
2312
+ // a part of `ArraySpeciesCreate` abstract operation
2313
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
2314
+ var arraySpeciesConstructor$1 = function (originalArray) {
2315
+ var C;
2316
+ if (isArray(originalArray)) {
2317
+ C = originalArray.constructor;
2318
+ // cross-realm fallback
2319
+ if (isConstructor$1(C) && (C === $Array || isArray(C.prototype))) C = undefined;
2320
+ else if (isObject$2(C)) {
2321
+ C = C[SPECIES$4];
2322
+ if (C === null) C = undefined;
2323
+ }
2324
+ } return C === undefined ? $Array : C;
2325
+ };
2326
+
2327
+ var arraySpeciesConstructor = arraySpeciesConstructor$1;
2328
+
2329
+ // `ArraySpeciesCreate` abstract operation
2330
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
2331
+ var arraySpeciesCreate$1 = function (originalArray, length) {
2332
+ return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
2333
+ };
2334
+
2335
+ var $$b = _export;
2336
+ var flattenIntoArray = flattenIntoArray_1;
2337
+ var aCallable$7 = aCallable$b;
2338
+ var toObject$2 = toObject$6;
2339
+ var lengthOfArrayLike$2 = lengthOfArrayLike$5;
2340
+ var arraySpeciesCreate = arraySpeciesCreate$1;
2341
+
2342
+ // `Array.prototype.flatMap` method
2343
+ // https://tc39.es/ecma262/#sec-array.prototype.flatmap
2344
+ $$b({ target: 'Array', proto: true }, {
2345
+ flatMap: function flatMap(callbackfn /* , thisArg */) {
2346
+ var O = toObject$2(this);
2347
+ var sourceLen = lengthOfArrayLike$2(O);
2348
+ var A;
2349
+ aCallable$7(callbackfn);
2350
+ A = arraySpeciesCreate(O, 0);
2351
+ A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2352
+ return A;
2353
+ }
2354
+ });
2355
+
2356
+ var $$a = _export;
2357
+ var $includes = arrayIncludes.includes;
2358
+ var fails$7 = fails$k;
2359
+ var addToUnscopables$1 = addToUnscopables$3;
2360
+
2361
+ // FF99+ bug
2362
+ var BROKEN_ON_SPARSE = fails$7(function () {
2363
+ // eslint-disable-next-line es/no-array-prototype-includes -- detection
2364
+ return !Array(1).includes();
2365
+ });
2366
+
2367
+ // `Array.prototype.includes` method
2368
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
2369
+ $$a({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2370
+ includes: function includes(el /* , fromIndex = 0 */) {
2371
+ return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2372
+ }
2373
+ });
2374
+
2375
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2376
+ addToUnscopables$1('includes');
2377
+
2378
+ var aCallable$6 = aCallable$b;
2379
+ var toObject$1 = toObject$6;
2380
+ var IndexedObject = indexedObject;
2381
+ var lengthOfArrayLike$1 = lengthOfArrayLike$5;
2382
+
2383
+ var $TypeError$7 = TypeError;
2384
+
2385
+ // `Array.prototype.{ reduce, reduceRight }` methods implementation
2386
+ var createMethod$1 = function (IS_RIGHT) {
2387
+ return function (that, callbackfn, argumentsLength, memo) {
2388
+ var O = toObject$1(that);
2389
+ var self = IndexedObject(O);
2390
+ var length = lengthOfArrayLike$1(O);
2391
+ aCallable$6(callbackfn);
2392
+ var index = IS_RIGHT ? length - 1 : 0;
2393
+ var i = IS_RIGHT ? -1 : 1;
2394
+ if (argumentsLength < 2) while (true) {
2395
+ if (index in self) {
2396
+ memo = self[index];
2397
+ index += i;
2398
+ break;
2399
+ }
2400
+ index += i;
2401
+ if (IS_RIGHT ? index < 0 : length <= index) {
2402
+ throw new $TypeError$7('Reduce of empty array with no initial value');
2403
+ }
2404
+ }
2405
+ for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
2406
+ memo = callbackfn(memo, self[index], index, O);
2407
+ }
2408
+ return memo;
2409
+ };
2410
+ };
2411
+
2412
+ var arrayReduce = {
2413
+ // `Array.prototype.reduce` method
2414
+ // https://tc39.es/ecma262/#sec-array.prototype.reduce
2415
+ left: createMethod$1(false),
2416
+ // `Array.prototype.reduceRight` method
2417
+ // https://tc39.es/ecma262/#sec-array.prototype.reduceright
2418
+ right: createMethod$1(true)
2419
+ };
2420
+
2421
+ var fails$6 = fails$k;
2422
+
2423
+ var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
2424
+ var method = [][METHOD_NAME];
2425
+ return !!method && fails$6(function () {
2426
+ // eslint-disable-next-line no-useless-call -- required for testing
2427
+ method.call(null, argument || function () { return 1; }, 1);
2428
+ });
2429
+ };
2430
+
2431
+ var global$a = global$m;
2432
+ var classof$2 = classofRaw$2;
2433
+
2434
+ var engineIsNode = classof$2(global$a.process) === 'process';
2435
+
2436
+ var $$9 = _export;
2437
+ var $reduce = arrayReduce.left;
2438
+ var arrayMethodIsStrict = arrayMethodIsStrict$1;
2439
+ var CHROME_VERSION = engineV8Version;
2440
+ var IS_NODE$4 = engineIsNode;
2441
+
2442
+ // Chrome 80-82 has a critical bug
2443
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
2444
+ var CHROME_BUG = !IS_NODE$4 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
2445
+ var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');
2446
+
2447
+ // `Array.prototype.reduce` method
2448
+ // https://tc39.es/ecma262/#sec-array.prototype.reduce
2449
+ $$9({ target: 'Array', proto: true, forced: FORCED }, {
2450
+ reduce: function reduce(callbackfn /* , initialValue */) {
2451
+ var length = arguments.length;
2452
+ return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
2453
+ }
2454
+ });
2455
+
2456
+ // this method was added to unscopables after implementation
2457
+ // in popular engines, so it's moved to a separate module
2458
+ var addToUnscopables = addToUnscopables$3;
2459
+
2460
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2461
+ addToUnscopables('flatMap');
2462
+
2463
+ var makeBuiltIn = makeBuiltIn$3.exports;
2464
+ var defineProperty = objectDefineProperty;
2465
+
2466
+ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
2467
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
2468
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
2469
+ return defineProperty.f(target, name, descriptor);
2470
+ };
2471
+
2472
+ var getBuiltIn$2 = getBuiltIn$7;
2473
+ var defineBuiltInAccessor = defineBuiltInAccessor$1;
2474
+ var wellKnownSymbol$7 = wellKnownSymbol$j;
2475
+ var DESCRIPTORS$1 = descriptors;
2476
+
2477
+ var SPECIES$3 = wellKnownSymbol$7('species');
2478
+
2479
+ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
2480
+ var Constructor = getBuiltIn$2(CONSTRUCTOR_NAME);
2481
+
2482
+ if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$3]) {
2483
+ defineBuiltInAccessor(Constructor, SPECIES$3, {
2484
+ configurable: true,
2485
+ get: function () { return this; }
2486
+ });
2487
+ }
2488
+ };
2489
+
2490
+ var isPrototypeOf$1 = objectIsPrototypeOf;
2491
+
2492
+ var $TypeError$6 = TypeError;
2493
+
2494
+ var anInstance$1 = function (it, Prototype) {
2495
+ if (isPrototypeOf$1(Prototype, it)) return it;
2496
+ throw new $TypeError$6('Incorrect invocation');
2497
+ };
2498
+
2499
+ var isConstructor = isConstructor$2;
2500
+ var tryToString$2 = tryToString$4;
2501
+
2502
+ var $TypeError$5 = TypeError;
2503
+
2504
+ // `Assert: IsConstructor(argument) is true`
2505
+ var aConstructor$1 = function (argument) {
2506
+ if (isConstructor(argument)) return argument;
2507
+ throw new $TypeError$5(tryToString$2(argument) + ' is not a constructor');
2508
+ };
2509
+
2510
+ var anObject$7 = anObject$d;
2511
+ var aConstructor = aConstructor$1;
2512
+ var isNullOrUndefined$2 = isNullOrUndefined$5;
2513
+ var wellKnownSymbol$6 = wellKnownSymbol$j;
2514
+
2515
+ var SPECIES$2 = wellKnownSymbol$6('species');
2516
+
2517
+ // `SpeciesConstructor` abstract operation
2518
+ // https://tc39.es/ecma262/#sec-speciesconstructor
2519
+ var speciesConstructor$1 = function (O, defaultConstructor) {
2520
+ var C = anObject$7(O).constructor;
2521
+ var S;
2522
+ return C === undefined || isNullOrUndefined$2(S = anObject$7(C)[SPECIES$2]) ? defaultConstructor : aConstructor(S);
2523
+ };
2524
+
2525
+ var NATIVE_BIND = functionBindNative;
2526
+
2527
+ var FunctionPrototype = Function.prototype;
2528
+ var apply$2 = FunctionPrototype.apply;
2529
+ var call$b = FunctionPrototype.call;
2530
+
2531
+ // eslint-disable-next-line es/no-reflect -- safe
2532
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$b.bind(apply$2) : function () {
2533
+ return call$b.apply(apply$2, arguments);
2534
+ });
2535
+
2536
+ var uncurryThis$5 = functionUncurryThis;
2537
+
2538
+ var arraySlice$1 = uncurryThis$5([].slice);
2539
+
2540
+ var $TypeError$4 = TypeError;
2541
+
2542
+ var validateArgumentsLength$1 = function (passed, required) {
2543
+ if (passed < required) throw new $TypeError$4('Not enough arguments');
2544
+ return passed;
2545
+ };
2546
+
2547
+ var userAgent$2 = engineUserAgent;
2548
+
2549
+ // eslint-disable-next-line redos/no-vulnerable -- safe
2550
+ var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
2551
+
2552
+ var global$9 = global$m;
2553
+ var apply$1 = functionApply;
2554
+ var bind$3 = functionBindContext;
2555
+ var isCallable$5 = isCallable$l;
2556
+ var hasOwn = hasOwnProperty_1;
2557
+ var fails$5 = fails$k;
2558
+ var html = html$2;
2559
+ var arraySlice = arraySlice$1;
2560
+ var createElement = documentCreateElement$2;
2561
+ var validateArgumentsLength = validateArgumentsLength$1;
2562
+ var IS_IOS$1 = engineIsIos;
2563
+ var IS_NODE$3 = engineIsNode;
2564
+
2565
+ var set = global$9.setImmediate;
2566
+ var clear = global$9.clearImmediate;
2567
+ var process$2 = global$9.process;
2568
+ var Dispatch = global$9.Dispatch;
2569
+ var Function$1 = global$9.Function;
2570
+ var MessageChannel = global$9.MessageChannel;
2571
+ var String$1 = global$9.String;
2572
+ var counter = 0;
2573
+ var queue$2 = {};
2574
+ var ONREADYSTATECHANGE = 'onreadystatechange';
2575
+ var $location, defer, channel, port;
2576
+
2577
+ fails$5(function () {
2578
+ // Deno throws a ReferenceError on `location` access without `--location` flag
2579
+ $location = global$9.location;
2580
+ });
2581
+
2582
+ var run = function (id) {
2583
+ if (hasOwn(queue$2, id)) {
2584
+ var fn = queue$2[id];
2585
+ delete queue$2[id];
2586
+ fn();
2587
+ }
2588
+ };
2589
+
2590
+ var runner = function (id) {
2591
+ return function () {
2592
+ run(id);
2593
+ };
2594
+ };
2595
+
2596
+ var eventListener = function (event) {
2597
+ run(event.data);
2598
+ };
2599
+
2600
+ var globalPostMessageDefer = function (id) {
2601
+ // old engines have not location.origin
2602
+ global$9.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2603
+ };
2604
+
2605
+ // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
2606
+ if (!set || !clear) {
2607
+ set = function setImmediate(handler) {
2608
+ validateArgumentsLength(arguments.length, 1);
2609
+ var fn = isCallable$5(handler) ? handler : Function$1(handler);
2610
+ var args = arraySlice(arguments, 1);
2611
+ queue$2[++counter] = function () {
2612
+ apply$1(fn, undefined, args);
2613
+ };
2614
+ defer(counter);
2615
+ return counter;
2616
+ };
2617
+ clear = function clearImmediate(id) {
2618
+ delete queue$2[id];
2619
+ };
2620
+ // Node.js 0.8-
2621
+ if (IS_NODE$3) {
2622
+ defer = function (id) {
2623
+ process$2.nextTick(runner(id));
2624
+ };
2625
+ // Sphere (JS game engine) Dispatch API
2626
+ } else if (Dispatch && Dispatch.now) {
2627
+ defer = function (id) {
2628
+ Dispatch.now(runner(id));
2629
+ };
2630
+ // Browsers with MessageChannel, includes WebWorkers
2631
+ // except iOS - https://github.com/zloirock/core-js/issues/624
2632
+ } else if (MessageChannel && !IS_IOS$1) {
2633
+ channel = new MessageChannel();
2634
+ port = channel.port2;
2635
+ channel.port1.onmessage = eventListener;
2636
+ defer = bind$3(port.postMessage, port);
2637
+ // Browsers with postMessage, skip WebWorkers
2638
+ // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2639
+ } else if (
2640
+ global$9.addEventListener &&
2641
+ isCallable$5(global$9.postMessage) &&
2642
+ !global$9.importScripts &&
2643
+ $location && $location.protocol !== 'file:' &&
2644
+ !fails$5(globalPostMessageDefer)
2645
+ ) {
2646
+ defer = globalPostMessageDefer;
2647
+ global$9.addEventListener('message', eventListener, false);
2648
+ // IE8-
2649
+ } else if (ONREADYSTATECHANGE in createElement('script')) {
2650
+ defer = function (id) {
2651
+ html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
2652
+ html.removeChild(this);
2653
+ run(id);
2654
+ };
2655
+ };
2656
+ // Rest old browsers
2657
+ } else {
2658
+ defer = function (id) {
2659
+ setTimeout(runner(id), 0);
2660
+ };
2661
+ }
2662
+ }
2663
+
2664
+ var task$1 = {
2665
+ set: set,
2666
+ clear: clear
2667
+ };
2668
+
2669
+ var global$8 = global$m;
2670
+ var DESCRIPTORS = descriptors;
2671
+
2672
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2673
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2674
+
2675
+ // Avoid NodeJS experimental warning
2676
+ var safeGetBuiltIn$1 = function (name) {
2677
+ if (!DESCRIPTORS) return global$8[name];
2678
+ var descriptor = getOwnPropertyDescriptor(global$8, name);
2679
+ return descriptor && descriptor.value;
2680
+ };
2681
+
2682
+ var Queue$2 = function () {
2683
+ this.head = null;
2684
+ this.tail = null;
2685
+ };
2686
+
2687
+ Queue$2.prototype = {
2688
+ add: function (item) {
2689
+ var entry = { item: item, next: null };
2690
+ var tail = this.tail;
2691
+ if (tail) tail.next = entry;
2692
+ else this.head = entry;
2693
+ this.tail = entry;
2694
+ },
2695
+ get: function () {
2696
+ var entry = this.head;
2697
+ if (entry) {
2698
+ var next = this.head = entry.next;
2699
+ if (next === null) this.tail = null;
2700
+ return entry.item;
2701
+ }
2702
+ }
2703
+ };
2704
+
2705
+ var queue$1 = Queue$2;
2706
+
2707
+ var userAgent$1 = engineUserAgent;
2708
+
2709
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
2710
+
2711
+ var userAgent = engineUserAgent;
2712
+
2713
+ var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
2714
+
2715
+ var global$7 = global$m;
2716
+ var safeGetBuiltIn = safeGetBuiltIn$1;
2717
+ var bind$2 = functionBindContext;
2718
+ var macrotask = task$1.set;
2719
+ var Queue$1 = queue$1;
2720
+ var IS_IOS = engineIsIos;
2721
+ var IS_IOS_PEBBLE = engineIsIosPebble;
2722
+ var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
2723
+ var IS_NODE$2 = engineIsNode;
2724
+
2725
+ var MutationObserver = global$7.MutationObserver || global$7.WebKitMutationObserver;
2726
+ var document$2 = global$7.document;
2727
+ var process$1 = global$7.process;
2728
+ var Promise$1 = global$7.Promise;
2729
+ var microtask$1 = safeGetBuiltIn('queueMicrotask');
2730
+ var notify$1, toggle, node, promise, then;
2731
+
2732
+ // modern engines have queueMicrotask method
2733
+ if (!microtask$1) {
2734
+ var queue = new Queue$1();
2735
+
2736
+ var flush = function () {
2737
+ var parent, fn;
2738
+ if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
2739
+ while (fn = queue.get()) try {
2740
+ fn();
2741
+ } catch (error) {
2742
+ if (queue.head) notify$1();
2743
+ throw error;
2744
+ }
2745
+ if (parent) parent.enter();
2746
+ };
2747
+
2748
+ // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
2749
+ // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
2750
+ if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
2751
+ toggle = true;
2752
+ node = document$2.createTextNode('');
2753
+ new MutationObserver(flush).observe(node, { characterData: true });
2754
+ notify$1 = function () {
2755
+ node.data = toggle = !toggle;
2756
+ };
2757
+ // environments with maybe non-completely correct, but existent Promise
2758
+ } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
2759
+ // Promise.resolve without an argument throws an error in LG WebOS 2
2760
+ promise = Promise$1.resolve(undefined);
2761
+ // workaround of WebKit ~ iOS Safari 10.1 bug
2762
+ promise.constructor = Promise$1;
2763
+ then = bind$2(promise.then, promise);
2764
+ notify$1 = function () {
2765
+ then(flush);
2766
+ };
2767
+ // Node.js without promises
2768
+ } else if (IS_NODE$2) {
2769
+ notify$1 = function () {
2770
+ process$1.nextTick(flush);
2771
+ };
2772
+ // for other environments - macrotask based on:
2773
+ // - setImmediate
2774
+ // - MessageChannel
2775
+ // - window.postMessage
2776
+ // - onreadystatechange
2777
+ // - setTimeout
2778
+ } else {
2779
+ // `webpack` dev server bug on IE global methods - use bind(fn, global)
2780
+ macrotask = bind$2(macrotask, global$7);
2781
+ notify$1 = function () {
2782
+ macrotask(flush);
2783
+ };
2784
+ }
2785
+
2786
+ microtask$1 = function (fn) {
2787
+ if (!queue.head) notify$1();
2788
+ queue.add(fn);
2789
+ };
2790
+ }
2791
+
2792
+ var microtask_1 = microtask$1;
2793
+
2794
+ var hostReportErrors$1 = function (a, b) {
2795
+ try {
2796
+ // eslint-disable-next-line no-console -- safe
2797
+ arguments.length === 1 ? console.error(a) : console.error(a, b);
2798
+ } catch (error) { /* empty */ }
2799
+ };
2800
+
2801
+ var perform$4 = function (exec) {
2802
+ try {
2803
+ return { error: false, value: exec() };
2804
+ } catch (error) {
2805
+ return { error: true, value: error };
2806
+ }
2807
+ };
2808
+
2809
+ var global$6 = global$m;
2810
+
2811
+ var promiseNativeConstructor = global$6.Promise;
2812
+
2813
+ /* global Deno -- Deno case */
2814
+ var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
2815
+
2816
+ var IS_DENO$1 = engineIsDeno;
2817
+ var IS_NODE$1 = engineIsNode;
2818
+
2819
+ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
2820
+ && typeof window == 'object'
2821
+ && typeof document == 'object';
2822
+
2823
+ var global$5 = global$m;
2824
+ var NativePromiseConstructor$3 = promiseNativeConstructor;
2825
+ var isCallable$4 = isCallable$l;
2826
+ var isForced = isForced_1;
2827
+ var inspectSource = inspectSource$3;
2828
+ var wellKnownSymbol$5 = wellKnownSymbol$j;
2829
+ var IS_BROWSER = engineIsBrowser;
2830
+ var IS_DENO = engineIsDeno;
2831
+ var V8_VERSION = engineV8Version;
2832
+
2833
+ NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
2834
+ var SPECIES$1 = wellKnownSymbol$5('species');
2835
+ var SUBCLASSING = false;
2836
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$5.PromiseRejectionEvent);
2837
+
2838
+ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
2839
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
2840
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
2841
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
2842
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
2843
+ // We can't detect it synchronously, so just check versions
2844
+ if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
2845
+ // We can't use @@species feature detection in V8 since it causes
2846
+ // deoptimization and performance degradation
2847
+ // https://github.com/zloirock/core-js/issues/679
2848
+ if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
2849
+ // Detect correctness of subclassing with @@species support
2850
+ var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
2851
+ var FakePromise = function (exec) {
2852
+ exec(function () { /* empty */ }, function () { /* empty */ });
2853
+ };
2854
+ var constructor = promise.constructor = {};
2855
+ constructor[SPECIES$1] = FakePromise;
2856
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
2857
+ if (!SUBCLASSING) return true;
2858
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
2859
+ } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
2860
+ });
2861
+
2862
+ var promiseConstructorDetection = {
2863
+ CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
2864
+ REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
2865
+ SUBCLASSING: SUBCLASSING
2866
+ };
2867
+
2868
+ var newPromiseCapability$2 = {};
2869
+
2870
+ var aCallable$5 = aCallable$b;
2871
+
2872
+ var $TypeError$3 = TypeError;
2873
+
2874
+ var PromiseCapability = function (C) {
2875
+ var resolve, reject;
2876
+ this.promise = new C(function ($$resolve, $$reject) {
2877
+ if (resolve !== undefined || reject !== undefined) throw new $TypeError$3('Bad Promise constructor');
2878
+ resolve = $$resolve;
2879
+ reject = $$reject;
2880
+ });
2881
+ this.resolve = aCallable$5(resolve);
2882
+ this.reject = aCallable$5(reject);
2883
+ };
2884
+
2885
+ // `NewPromiseCapability` abstract operation
2886
+ // https://tc39.es/ecma262/#sec-newpromisecapability
2887
+ newPromiseCapability$2.f = function (C) {
2888
+ return new PromiseCapability(C);
2889
+ };
2890
+
2891
+ var $$8 = _export;
2892
+ var IS_NODE = engineIsNode;
2893
+ var global$4 = global$m;
2894
+ var call$a = functionCall;
2895
+ var defineBuiltIn$2 = defineBuiltIn$6;
2896
+ var setPrototypeOf = objectSetPrototypeOf;
2897
+ var setToStringTag = setToStringTag$4;
2898
+ var setSpecies = setSpecies$1;
2899
+ var aCallable$4 = aCallable$b;
2900
+ var isCallable$3 = isCallable$l;
2901
+ var isObject$1 = isObject$b;
2902
+ var anInstance = anInstance$1;
2903
+ var speciesConstructor = speciesConstructor$1;
2904
+ var task = task$1.set;
2905
+ var microtask = microtask_1;
2906
+ var hostReportErrors = hostReportErrors$1;
2907
+ var perform$3 = perform$4;
2908
+ var Queue = queue$1;
2909
+ var InternalStateModule = internalState;
2910
+ var NativePromiseConstructor$2 = promiseNativeConstructor;
2911
+ var PromiseConstructorDetection = promiseConstructorDetection;
2912
+ var newPromiseCapabilityModule$4 = newPromiseCapability$2;
2913
+
2914
+ var PROMISE = 'Promise';
2915
+ var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
2916
+ var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
2917
+ var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
2918
+ var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
2919
+ var setInternalState = InternalStateModule.set;
2920
+ var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
2921
+ var PromiseConstructor = NativePromiseConstructor$2;
2922
+ var PromisePrototype = NativePromisePrototype$1;
2923
+ var TypeError$1 = global$4.TypeError;
2924
+ var document$1 = global$4.document;
2925
+ var process = global$4.process;
2926
+ var newPromiseCapability$1 = newPromiseCapabilityModule$4.f;
2927
+ var newGenericPromiseCapability = newPromiseCapability$1;
2928
+
2929
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$4.dispatchEvent);
2930
+ var UNHANDLED_REJECTION = 'unhandledrejection';
2931
+ var REJECTION_HANDLED = 'rejectionhandled';
2932
+ var PENDING = 0;
2933
+ var FULFILLED = 1;
2934
+ var REJECTED = 2;
2935
+ var HANDLED = 1;
2936
+ var UNHANDLED = 2;
2937
+
2938
+ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
2939
+
2940
+ // helpers
2941
+ var isThenable = function (it) {
2942
+ var then;
2943
+ return isObject$1(it) && isCallable$3(then = it.then) ? then : false;
2944
+ };
2945
+
2946
+ var callReaction = function (reaction, state) {
2947
+ var value = state.value;
2948
+ var ok = state.state === FULFILLED;
2949
+ var handler = ok ? reaction.ok : reaction.fail;
2950
+ var resolve = reaction.resolve;
2951
+ var reject = reaction.reject;
2952
+ var domain = reaction.domain;
2953
+ var result, then, exited;
2954
+ try {
2955
+ if (handler) {
2956
+ if (!ok) {
2957
+ if (state.rejection === UNHANDLED) onHandleUnhandled(state);
2958
+ state.rejection = HANDLED;
2959
+ }
2960
+ if (handler === true) result = value;
2961
+ else {
2962
+ if (domain) domain.enter();
2963
+ result = handler(value); // can throw
2964
+ if (domain) {
2965
+ domain.exit();
2966
+ exited = true;
2967
+ }
2968
+ }
2969
+ if (result === reaction.promise) {
2970
+ reject(new TypeError$1('Promise-chain cycle'));
2971
+ } else if (then = isThenable(result)) {
2972
+ call$a(then, result, resolve, reject);
2973
+ } else resolve(result);
2974
+ } else reject(value);
2975
+ } catch (error) {
2976
+ if (domain && !exited) domain.exit();
2977
+ reject(error);
206
2978
  }
207
2979
  };
208
- const WarningListRowCap = ({
209
- event,
210
- severity,
211
- expires
212
- }) => {
213
- const {
214
- t
215
- } = useTranslation(CAP_NAMESPACE);
216
- return React.createElement(Grid, {
217
- container: true,
218
- sx: {
219
- border: severityStyles[severity].border,
220
- background: severityStyles[severity].background,
221
- padding: '5px',
222
- marginTop: '20px',
223
- marginBottom: '20px',
224
- width: '100%'
2980
+
2981
+ var notify = function (state, isReject) {
2982
+ if (state.notified) return;
2983
+ state.notified = true;
2984
+ microtask(function () {
2985
+ var reactions = state.reactions;
2986
+ var reaction;
2987
+ while (reaction = reactions.get()) {
2988
+ callReaction(reaction, state);
225
2989
  }
226
- }, React.createElement(Grid, {
227
- item: true,
228
- xs: 4
229
- }, React.createElement(Typography, {
230
- variant: "overline"
231
- }, t('warning-list-row-event')), React.createElement(Typography, {
232
- variant: "subtitle2",
233
- sx: {
234
- fontWeight: 'normal'
235
- },
236
- "data-testid": "event"
237
- }, event ? `${event}` : '')), React.createElement(Grid, {
238
- item: true,
239
- xs: 4
240
- }, React.createElement(Typography, {
241
- variant: "overline"
242
- }, t('warning-list-row-severity')), React.createElement(Typography, {
243
- variant: "subtitle2",
244
- sx: {
245
- fontWeight: 'normal'
246
- },
247
- "data-testid": "severity"
248
- }, severity ? `${severity}` : '')), React.createElement(Grid, {
249
- item: true,
250
- xs: 4
251
- }, React.createElement(Typography, {
252
- variant: "overline"
253
- }, t('warning-list-row-expires')), React.createElement(Typography, {
254
- variant: "subtitle2",
255
- sx: {
256
- fontWeight: 'normal'
257
- },
258
- "data-testid": "expires"
259
- }, expires ? dateUtils.dateToString(dateUtils.createDate(expires), "dd MMM yyyy, HH:mm 'UTC'") : t('warning-list-row-not-expired'))));
2990
+ state.notified = false;
2991
+ if (isReject && !state.rejection) onUnhandled(state);
2992
+ });
260
2993
  };
261
2994
 
262
- /* *
263
- * Licensed under the Apache License, Version 2.0 (the "License");
264
- * you may not use this file except in compliance with the License.
265
- * You may obtain a copy of the License at
266
- *
267
- * http://www.apache.org/licenses/LICENSE-2.0
268
- *
269
- * Unless required by applicable law or agreed to in writing, software
270
- * distributed under the License is distributed on an "AS IS" BASIS,
271
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
272
- * See the License for the specific language governing permissions and
273
- * limitations under the License.
274
- *
275
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
276
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
277
- * */
278
- const WarningListRowCapConnect = ({
279
- alertId,
280
- capWarningPresets
281
- }) => {
282
- const [languageIndex, setLanguageIndex] = React.useState(0);
283
- const alert = useSelector(store => getAlertById(store, alertId));
284
- React.useEffect(() => {
285
- if (alert) {
286
- const foundLanguageIndex = findEventIndexInLanguage(alert.languages, capWarningPresets, alert.feedAddress);
287
- setLanguageIndex(foundLanguageIndex);
2995
+ var dispatchEvent = function (name, promise, reason) {
2996
+ var event, handler;
2997
+ if (DISPATCH_EVENT) {
2998
+ event = document$1.createEvent('Event');
2999
+ event.promise = promise;
3000
+ event.reason = reason;
3001
+ event.initEvent(name, false, true);
3002
+ global$4.dispatchEvent(event);
3003
+ } else event = { promise: promise, reason: reason };
3004
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$4['on' + name])) handler(event);
3005
+ else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
3006
+ };
3007
+
3008
+ var onUnhandled = function (state) {
3009
+ call$a(task, global$4, function () {
3010
+ var promise = state.facade;
3011
+ var value = state.value;
3012
+ var IS_UNHANDLED = isUnhandled(state);
3013
+ var result;
3014
+ if (IS_UNHANDLED) {
3015
+ result = perform$3(function () {
3016
+ if (IS_NODE) {
3017
+ process.emit('unhandledRejection', value, promise);
3018
+ } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
3019
+ });
3020
+ // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
3021
+ state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
3022
+ if (result.error) throw result.value;
288
3023
  }
289
- }, [alert, capWarningPresets]);
290
- return React.createElement("div", null, alert && React.createElement(WarningListRowCap, {
291
- event: alert.languages[languageIndex].event,
292
- severity: alert.severity,
293
- expires: alert.expires
294
- }));
3024
+ });
295
3025
  };
296
3026
 
297
- /* *
298
- * Licensed under the Apache License, Version 2.0 (the "License");
299
- * you may not use this file except in compliance with the License.
300
- * You may obtain a copy of the License at
301
- *
302
- * http://www.apache.org/licenses/LICENSE-2.0
303
- *
304
- * Unless required by applicable law or agreed to in writing, software
305
- * distributed under the License is distributed on an "AS IS" BASIS,
306
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
307
- * See the License for the specific language governing permissions and
308
- * limitations under the License.
309
- *
310
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
311
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
312
- * */
313
- const WarningListCap = ({
314
- capWarningPresets,
315
- alertIds
316
- }) => {
317
- const {
318
- t
319
- } = useTranslation(CAP_NAMESPACE);
320
- return React.createElement(Box, {
321
- sx: {
322
- width: '100%',
323
- height: '100%',
324
- display: 'flex'
3027
+ var isUnhandled = function (state) {
3028
+ return state.rejection !== HANDLED && !state.parent;
3029
+ };
3030
+
3031
+ var onHandleUnhandled = function (state) {
3032
+ call$a(task, global$4, function () {
3033
+ var promise = state.facade;
3034
+ if (IS_NODE) {
3035
+ process.emit('rejectionHandled', promise);
3036
+ } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
3037
+ });
3038
+ };
3039
+
3040
+ var bind$1 = function (fn, state, unwrap) {
3041
+ return function (value) {
3042
+ fn(state, value, unwrap);
3043
+ };
3044
+ };
3045
+
3046
+ var internalReject = function (state, value, unwrap) {
3047
+ if (state.done) return;
3048
+ state.done = true;
3049
+ if (unwrap) state = unwrap;
3050
+ state.value = value;
3051
+ state.state = REJECTED;
3052
+ notify(state, true);
3053
+ };
3054
+
3055
+ var internalResolve = function (state, value, unwrap) {
3056
+ if (state.done) return;
3057
+ state.done = true;
3058
+ if (unwrap) state = unwrap;
3059
+ try {
3060
+ if (state.facade === value) throw new TypeError$1("Promise can't be resolved itself");
3061
+ var then = isThenable(value);
3062
+ if (then) {
3063
+ microtask(function () {
3064
+ var wrapper = { done: false };
3065
+ try {
3066
+ call$a(then, value,
3067
+ bind$1(internalResolve, wrapper, state),
3068
+ bind$1(internalReject, wrapper, state)
3069
+ );
3070
+ } catch (error) {
3071
+ internalReject(wrapper, error, state);
3072
+ }
3073
+ });
3074
+ } else {
3075
+ state.value = value;
3076
+ state.state = FULFILLED;
3077
+ notify(state, false);
325
3078
  }
326
- }, React.createElement(Card, {
327
- sx: {
328
- justifyContent: 'center',
329
- alignItems: 'center',
330
- overflow: 'auto',
331
- height: '95%',
332
- width: '100%',
333
- padding: '10px',
334
- margin: '20px',
335
- marginBottom: '10px',
336
- position: 'relative'
337
- },
338
- "data-testid": "warningList"
339
- }, alertIds.length > 0 && React.createElement(Box, {
340
- sx: {
341
- position: 'sticky',
342
- top: 0,
343
- width: '100%',
344
- display: 'flex',
345
- justifyContent: 'center'
3079
+ } catch (error) {
3080
+ internalReject({ done: false }, error, state);
3081
+ }
3082
+ };
3083
+
3084
+ // constructor polyfill
3085
+ if (FORCED_PROMISE_CONSTRUCTOR$4) {
3086
+ // 25.4.3.1 Promise(executor)
3087
+ PromiseConstructor = function Promise(executor) {
3088
+ anInstance(this, PromisePrototype);
3089
+ aCallable$4(executor);
3090
+ call$a(Internal, this);
3091
+ var state = getInternalPromiseState(this);
3092
+ try {
3093
+ executor(bind$1(internalResolve, state), bind$1(internalReject, state));
3094
+ } catch (error) {
3095
+ internalReject(state, error);
346
3096
  }
347
- }, React.createElement(AlertBanner, {
348
- title: t('warning-list-cap-alert-banner-title')
349
- })), alertIds.length === 0 ? React.createElement(Box, {
350
- sx: {
351
- position: 'absolute',
352
- left: '50%',
353
- top: '20%',
354
- zIndex: '100'
3097
+ };
3098
+
3099
+ PromisePrototype = PromiseConstructor.prototype;
3100
+
3101
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
3102
+ Internal = function Promise(executor) {
3103
+ setInternalState(this, {
3104
+ type: PROMISE,
3105
+ done: false,
3106
+ notified: false,
3107
+ parent: false,
3108
+ reactions: new Queue(),
3109
+ rejection: false,
3110
+ state: PENDING,
3111
+ value: undefined
3112
+ });
3113
+ };
3114
+
3115
+ // `Promise.prototype.then` method
3116
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
3117
+ Internal.prototype = defineBuiltIn$2(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
3118
+ var state = getInternalPromiseState(this);
3119
+ var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
3120
+ state.parent = true;
3121
+ reaction.ok = isCallable$3(onFulfilled) ? onFulfilled : true;
3122
+ reaction.fail = isCallable$3(onRejected) && onRejected;
3123
+ reaction.domain = IS_NODE ? process.domain : undefined;
3124
+ if (state.state === PENDING) state.reactions.add(reaction);
3125
+ else microtask(function () {
3126
+ callReaction(reaction, state);
3127
+ });
3128
+ return reaction.promise;
3129
+ });
3130
+
3131
+ OwnPromiseCapability = function () {
3132
+ var promise = new Internal();
3133
+ var state = getInternalPromiseState(promise);
3134
+ this.promise = promise;
3135
+ this.resolve = bind$1(internalResolve, state);
3136
+ this.reject = bind$1(internalReject, state);
3137
+ };
3138
+
3139
+ newPromiseCapabilityModule$4.f = newPromiseCapability$1 = function (C) {
3140
+ return C === PromiseConstructor || C === PromiseWrapper
3141
+ ? new OwnPromiseCapability(C)
3142
+ : newGenericPromiseCapability(C);
3143
+ };
3144
+
3145
+ if (isCallable$3(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
3146
+ nativeThen = NativePromisePrototype$1.then;
3147
+
3148
+ if (!NATIVE_PROMISE_SUBCLASSING) {
3149
+ // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
3150
+ defineBuiltIn$2(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
3151
+ var that = this;
3152
+ return new PromiseConstructor(function (resolve, reject) {
3153
+ call$a(nativeThen, that, resolve, reject);
3154
+ }).then(onFulfilled, onRejected);
3155
+ // https://github.com/zloirock/core-js/issues/640
3156
+ }, { unsafe: true });
355
3157
  }
356
- }, React.createElement(CircularProgress, null)) : null, alertIds.map(id => React.createElement(WarningListRowCapConnect, {
357
- key: id,
358
- alertId: id,
359
- capWarningPresets: capWarningPresets
360
- }))));
3158
+
3159
+ // make `.constructor === Promise` work for native promise-based APIs
3160
+ try {
3161
+ delete NativePromisePrototype$1.constructor;
3162
+ } catch (error) { /* empty */ }
3163
+
3164
+ // make `instanceof Promise` work for native promise-based APIs
3165
+ if (setPrototypeOf) {
3166
+ setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
3167
+ }
3168
+ }
3169
+ }
3170
+
3171
+ $$8({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
3172
+ Promise: PromiseConstructor
3173
+ });
3174
+
3175
+ setToStringTag(PromiseConstructor, PROMISE, false);
3176
+ setSpecies(PROMISE);
3177
+
3178
+ var wellKnownSymbol$4 = wellKnownSymbol$j;
3179
+ var Iterators$1 = iterators;
3180
+
3181
+ var ITERATOR$2 = wellKnownSymbol$4('iterator');
3182
+ var ArrayPrototype = Array.prototype;
3183
+
3184
+ // check on default Array iterator
3185
+ var isArrayIteratorMethod$1 = function (it) {
3186
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
361
3187
  };
362
3188
 
363
- /* *
364
- * Licensed under the Apache License, Version 2.0 (the "License");
365
- * you may not use this file except in compliance with the License.
366
- * You may obtain a copy of the License at
367
- *
368
- * http://www.apache.org/licenses/LICENSE-2.0
369
- *
370
- * Unless required by applicable law or agreed to in writing, software
371
- * distributed under the License is distributed on an "AS IS" BASIS,
372
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
373
- * See the License for the specific language governing permissions and
374
- * limitations under the License.
375
- *
376
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
377
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
378
- * */
379
- const WarningListCapConnect = ({
380
- capWarningPresets
381
- }) => {
382
- const alertIDs = useSelector(store => getAlertIds(store));
383
- return React.createElement(WarningListCap, {
384
- capWarningPresets: capWarningPresets,
385
- alertIds: alertIDs
386
- });
3189
+ var classof$1 = classof$7;
3190
+ var getMethod$2 = getMethod$4;
3191
+ var isNullOrUndefined$1 = isNullOrUndefined$5;
3192
+ var Iterators = iterators;
3193
+ var wellKnownSymbol$3 = wellKnownSymbol$j;
3194
+
3195
+ var ITERATOR$1 = wellKnownSymbol$3('iterator');
3196
+
3197
+ var getIteratorMethod$2 = function (it) {
3198
+ if (!isNullOrUndefined$1(it)) return getMethod$2(it, ITERATOR$1)
3199
+ || getMethod$2(it, '@@iterator')
3200
+ || Iterators[classof$1(it)];
387
3201
  };
388
3202
 
389
- /* *
390
- * Licensed under the Apache License, Version 2.0 (the "License");
391
- * you may not use this file except in compliance with the License.
392
- * You may obtain a copy of the License at
393
- *
394
- * http://www.apache.org/licenses/LICENSE-2.0
395
- *
396
- * Unless required by applicable law or agreed to in writing, software
397
- * distributed under the License is distributed on an "AS IS" BASIS,
398
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
399
- * See the License for the specific language governing permissions and
400
- * limitations under the License.
401
- *
402
- * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
403
- * Copyright 2023 - Finnish Meteorological Institute (FMI)
404
- * */
405
- const WarningListCapConnectWrapper = ({
406
- productConfigKey
407
- }) => {
408
- const {
409
- api
410
- } = useApiContext();
411
- const {
412
- t
413
- } = useTranslation(CAP_NAMESPACE);
414
- const {
415
- result: productConfig,
416
- isLoading: isConfigLoading,
417
- error
418
- } = useApi(api.getCapConfiguration, productConfigKey);
419
- if (isConfigLoading) {
420
- return React.createElement(Box$1, {
421
- sx: {
422
- display: 'flex',
423
- justifyContent: 'center',
424
- alignItems: 'center'
425
- }
426
- }, React.createElement(CircularProgress, {
427
- "data-testid": "loadingSpinner"
428
- }));
3203
+ var call$9 = functionCall;
3204
+ var aCallable$3 = aCallable$b;
3205
+ var anObject$6 = anObject$d;
3206
+ var tryToString$1 = tryToString$4;
3207
+ var getIteratorMethod$1 = getIteratorMethod$2;
3208
+
3209
+ var $TypeError$2 = TypeError;
3210
+
3211
+ var getIterator$1 = function (argument, usingIterator) {
3212
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
3213
+ if (aCallable$3(iteratorMethod)) return anObject$6(call$9(iteratorMethod, argument));
3214
+ throw new $TypeError$2(tryToString$1(argument) + ' is not iterable');
3215
+ };
3216
+
3217
+ var call$8 = functionCall;
3218
+ var anObject$5 = anObject$d;
3219
+ var getMethod$1 = getMethod$4;
3220
+
3221
+ var iteratorClose$1 = function (iterator, kind, value) {
3222
+ var innerResult, innerError;
3223
+ anObject$5(iterator);
3224
+ try {
3225
+ innerResult = getMethod$1(iterator, 'return');
3226
+ if (!innerResult) {
3227
+ if (kind === 'throw') throw value;
3228
+ return value;
3229
+ }
3230
+ innerResult = call$8(innerResult, iterator);
3231
+ } catch (error) {
3232
+ innerError = true;
3233
+ innerResult = error;
3234
+ }
3235
+ if (kind === 'throw') throw value;
3236
+ if (innerError) throw innerResult;
3237
+ anObject$5(innerResult);
3238
+ return value;
3239
+ };
3240
+
3241
+ var bind = functionBindContext;
3242
+ var call$7 = functionCall;
3243
+ var anObject$4 = anObject$d;
3244
+ var tryToString = tryToString$4;
3245
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
3246
+ var lengthOfArrayLike = lengthOfArrayLike$5;
3247
+ var isPrototypeOf = objectIsPrototypeOf;
3248
+ var getIterator = getIterator$1;
3249
+ var getIteratorMethod = getIteratorMethod$2;
3250
+ var iteratorClose = iteratorClose$1;
3251
+
3252
+ var $TypeError$1 = TypeError;
3253
+
3254
+ var Result = function (stopped, result) {
3255
+ this.stopped = stopped;
3256
+ this.result = result;
3257
+ };
3258
+
3259
+ var ResultPrototype = Result.prototype;
3260
+
3261
+ var iterate$3 = function (iterable, unboundFunction, options) {
3262
+ var that = options && options.that;
3263
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
3264
+ var IS_RECORD = !!(options && options.IS_RECORD);
3265
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
3266
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
3267
+ var fn = bind(unboundFunction, that);
3268
+ var iterator, iterFn, index, length, result, next, step;
3269
+
3270
+ var stop = function (condition) {
3271
+ if (iterator) iteratorClose(iterator, 'normal', condition);
3272
+ return new Result(true, condition);
3273
+ };
3274
+
3275
+ var callFn = function (value) {
3276
+ if (AS_ENTRIES) {
3277
+ anObject$4(value);
3278
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
3279
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
3280
+ };
3281
+
3282
+ if (IS_RECORD) {
3283
+ iterator = iterable.iterator;
3284
+ } else if (IS_ITERATOR) {
3285
+ iterator = iterable;
3286
+ } else {
3287
+ iterFn = getIteratorMethod(iterable);
3288
+ if (!iterFn) throw new $TypeError$1(tryToString(iterable) + ' is not iterable');
3289
+ // optimisation for array iterators
3290
+ if (isArrayIteratorMethod(iterFn)) {
3291
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
3292
+ result = callFn(iterable[index]);
3293
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
3294
+ } return new Result(false);
3295
+ }
3296
+ iterator = getIterator(iterable, iterFn);
3297
+ }
3298
+
3299
+ next = IS_RECORD ? iterable.next : iterator.next;
3300
+ while (!(step = call$7(next, iterator)).done) {
3301
+ try {
3302
+ result = callFn(step.value);
3303
+ } catch (error) {
3304
+ iteratorClose(iterator, 'throw', error);
3305
+ }
3306
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
3307
+ } return new Result(false);
3308
+ };
3309
+
3310
+ var wellKnownSymbol$2 = wellKnownSymbol$j;
3311
+
3312
+ var ITERATOR = wellKnownSymbol$2('iterator');
3313
+ var SAFE_CLOSING = false;
3314
+
3315
+ try {
3316
+ var called = 0;
3317
+ var iteratorWithReturn = {
3318
+ next: function () {
3319
+ return { done: !!called++ };
3320
+ },
3321
+ 'return': function () {
3322
+ SAFE_CLOSING = true;
3323
+ }
3324
+ };
3325
+ iteratorWithReturn[ITERATOR] = function () {
3326
+ return this;
3327
+ };
3328
+ // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
3329
+ Array.from(iteratorWithReturn, function () { throw 2; });
3330
+ } catch (error) { /* empty */ }
3331
+
3332
+ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
3333
+ try {
3334
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
3335
+ } catch (error) { return false; } // workaround of old WebKit + `eval` bug
3336
+ var ITERATION_SUPPORT = false;
3337
+ try {
3338
+ var object = {};
3339
+ object[ITERATOR] = function () {
3340
+ return {
3341
+ next: function () {
3342
+ return { done: ITERATION_SUPPORT = true };
3343
+ }
3344
+ };
3345
+ };
3346
+ exec(object);
3347
+ } catch (error) { /* empty */ }
3348
+ return ITERATION_SUPPORT;
3349
+ };
3350
+
3351
+ var NativePromiseConstructor$1 = promiseNativeConstructor;
3352
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
3353
+ var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
3354
+
3355
+ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
3356
+ NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
3357
+ });
3358
+
3359
+ var $$7 = _export;
3360
+ var call$6 = functionCall;
3361
+ var aCallable$2 = aCallable$b;
3362
+ var newPromiseCapabilityModule$3 = newPromiseCapability$2;
3363
+ var perform$2 = perform$4;
3364
+ var iterate$2 = iterate$3;
3365
+ var PROMISE_STATICS_INCORRECT_ITERATION$2 = promiseStaticsIncorrectIteration;
3366
+
3367
+ // `Promise.all` method
3368
+ // https://tc39.es/ecma262/#sec-promise.all
3369
+ $$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$2 }, {
3370
+ all: function all(iterable) {
3371
+ var C = this;
3372
+ var capability = newPromiseCapabilityModule$3.f(C);
3373
+ var resolve = capability.resolve;
3374
+ var reject = capability.reject;
3375
+ var result = perform$2(function () {
3376
+ var $promiseResolve = aCallable$2(C.resolve);
3377
+ var values = [];
3378
+ var counter = 0;
3379
+ var remaining = 1;
3380
+ iterate$2(iterable, function (promise) {
3381
+ var index = counter++;
3382
+ var alreadyCalled = false;
3383
+ remaining++;
3384
+ call$6($promiseResolve, C, promise).then(function (value) {
3385
+ if (alreadyCalled) return;
3386
+ alreadyCalled = true;
3387
+ values[index] = value;
3388
+ --remaining || resolve(values);
3389
+ }, reject);
3390
+ });
3391
+ --remaining || resolve(values);
3392
+ });
3393
+ if (result.error) reject(result.value);
3394
+ return capability.promise;
429
3395
  }
430
- if (error) {
431
- return React.createElement(AlertBanner, {
432
- title: t('warning-list-cap-error-title'),
433
- info: error.message
3396
+ });
3397
+
3398
+ var $$6 = _export;
3399
+ var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
3400
+ var NativePromiseConstructor = promiseNativeConstructor;
3401
+ var getBuiltIn$1 = getBuiltIn$7;
3402
+ var isCallable$2 = isCallable$l;
3403
+ var defineBuiltIn$1 = defineBuiltIn$6;
3404
+
3405
+ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
3406
+
3407
+ // `Promise.prototype.catch` method
3408
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
3409
+ $$6({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
3410
+ 'catch': function (onRejected) {
3411
+ return this.then(undefined, onRejected);
3412
+ }
3413
+ });
3414
+
3415
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
3416
+ if (isCallable$2(NativePromiseConstructor)) {
3417
+ var method = getBuiltIn$1('Promise').prototype['catch'];
3418
+ if (NativePromisePrototype['catch'] !== method) {
3419
+ defineBuiltIn$1(NativePromisePrototype, 'catch', method, { unsafe: true });
3420
+ }
3421
+ }
3422
+
3423
+ var $$5 = _export;
3424
+ var call$5 = functionCall;
3425
+ var aCallable$1 = aCallable$b;
3426
+ var newPromiseCapabilityModule$2 = newPromiseCapability$2;
3427
+ var perform$1 = perform$4;
3428
+ var iterate$1 = iterate$3;
3429
+ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
3430
+
3431
+ // `Promise.race` method
3432
+ // https://tc39.es/ecma262/#sec-promise.race
3433
+ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
3434
+ race: function race(iterable) {
3435
+ var C = this;
3436
+ var capability = newPromiseCapabilityModule$2.f(C);
3437
+ var reject = capability.reject;
3438
+ var result = perform$1(function () {
3439
+ var $promiseResolve = aCallable$1(C.resolve);
3440
+ iterate$1(iterable, function (promise) {
3441
+ call$5($promiseResolve, C, promise).then(capability.resolve, reject);
3442
+ });
434
3443
  });
3444
+ if (result.error) reject(result.value);
3445
+ return capability.promise;
435
3446
  }
436
- return React.createElement(WarningListCapConnect, {
437
- capWarningPresets: productConfig
438
- });
439
- };
3447
+ });
440
3448
 
441
- /* *
442
- * Licensed under the Apache License, Version 2.0 (the "License");
443
- * you may not use this file except in compliance with the License.
444
- * You may obtain a copy of the License at
445
- *
446
- * http://www.apache.org/licenses/LICENSE-2.0
447
- *
448
- * Unless required by applicable law or agreed to in writing, software
449
- * distributed under the License is distributed on an "AS IS" BASIS,
450
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
451
- * See the License for the specific language governing permissions and
452
- * limitations under the License.
453
- *
454
- * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
455
- * Copyright 2023 - Finnish Meteorological Institute (FMI)
456
- * */
457
- const getApiRoutes = (axiosInstance, nonAuthAxiosInstance) => ({
458
- getCapConfiguration: productConfigKey => {
459
- return nonAuthAxiosInstance.get(`/assets/${productConfigKey}`);
460
- },
461
- getAllAlerts: thirdPartyApiUrl => {
462
- return axiosInstance.get(`/allalerts?url=${thirdPartyApiUrl}`);
463
- },
464
- getFeedLinks: thirdPartyApiUrl => {
465
- return axiosInstance.get(`/feedlinks?url=${thirdPartyApiUrl}`);
466
- },
467
- getSingleAlert: alertUrl => {
468
- return axiosInstance.get(`/singlealert?url=${alertUrl}`);
469
- },
470
- getLastUpdated: thirdPartyApiUrl => {
471
- return axiosInstance.get(`/poll_feed?url=${thirdPartyApiUrl}`);
3449
+ var $$4 = _export;
3450
+ var newPromiseCapabilityModule$1 = newPromiseCapability$2;
3451
+ var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
3452
+
3453
+ // `Promise.reject` method
3454
+ // https://tc39.es/ecma262/#sec-promise.reject
3455
+ $$4({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
3456
+ reject: function reject(r) {
3457
+ var capability = newPromiseCapabilityModule$1.f(this);
3458
+ var capabilityReject = capability.reject;
3459
+ capabilityReject(r);
3460
+ return capability.promise;
472
3461
  }
473
3462
  });
474
- const createApi = props => {
475
- const axiosInstance = createNonAuthApiInstance(props);
476
- const nonAuthAxiosInstance = createNonAuthApiInstance({});
477
- return getApiRoutes(axiosInstance, nonAuthAxiosInstance);
3463
+
3464
+ var anObject$3 = anObject$d;
3465
+ var isObject = isObject$b;
3466
+ var newPromiseCapability = newPromiseCapability$2;
3467
+
3468
+ var promiseResolve$1 = function (C, x) {
3469
+ anObject$3(C);
3470
+ if (isObject(x) && x.constructor === C) return x;
3471
+ var promiseCapability = newPromiseCapability.f(C);
3472
+ var resolve = promiseCapability.resolve;
3473
+ resolve(x);
3474
+ return promiseCapability.promise;
478
3475
  };
479
3476
 
3477
+ var $$3 = _export;
3478
+ var getBuiltIn = getBuiltIn$7;
3479
+ var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
3480
+ var promiseResolve = promiseResolve$1;
3481
+
3482
+ getBuiltIn('Promise');
3483
+
3484
+ // `Promise.resolve` method
3485
+ // https://tc39.es/ecma262/#sec-promise.resolve
3486
+ $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
3487
+ resolve: function resolve(x) {
3488
+ return promiseResolve(this, x);
3489
+ }
3490
+ });
3491
+
3492
+ var $$2 = _export;
3493
+ var uncurryThis$4 = functionUncurryThis;
3494
+ var notARegExp = notARegexp;
3495
+ var requireObjectCoercible$2 = requireObjectCoercible$6;
3496
+ var toString$3 = toString$5;
3497
+ var correctIsRegExpLogic = correctIsRegexpLogic;
3498
+
3499
+ var stringIndexOf$1 = uncurryThis$4(''.indexOf);
3500
+
3501
+ // `String.prototype.includes` method
3502
+ // https://tc39.es/ecma262/#sec-string.prototype.includes
3503
+ $$2({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
3504
+ includes: function includes(searchString /* , position = 0 */) {
3505
+ return !!~stringIndexOf$1(
3506
+ toString$3(requireObjectCoercible$2(this)),
3507
+ toString$3(notARegExp(searchString)),
3508
+ arguments.length > 1 ? arguments[1] : undefined
3509
+ );
3510
+ }
3511
+ });
3512
+
3513
+ var $$1 = _export;
3514
+ var call$4 = functionCall;
3515
+ var aCallable = aCallable$b;
3516
+ var newPromiseCapabilityModule = newPromiseCapability$2;
3517
+ var perform = perform$4;
3518
+ var iterate = iterate$3;
3519
+ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
3520
+
3521
+ // `Promise.allSettled` method
3522
+ // https://tc39.es/ecma262/#sec-promise.allsettled
3523
+ $$1({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
3524
+ allSettled: function allSettled(iterable) {
3525
+ var C = this;
3526
+ var capability = newPromiseCapabilityModule.f(C);
3527
+ var resolve = capability.resolve;
3528
+ var reject = capability.reject;
3529
+ var result = perform(function () {
3530
+ var promiseResolve = aCallable(C.resolve);
3531
+ var values = [];
3532
+ var counter = 0;
3533
+ var remaining = 1;
3534
+ iterate(iterable, function (promise) {
3535
+ var index = counter++;
3536
+ var alreadyCalled = false;
3537
+ remaining++;
3538
+ call$4(promiseResolve, C, promise).then(function (value) {
3539
+ if (alreadyCalled) return;
3540
+ alreadyCalled = true;
3541
+ values[index] = { status: 'fulfilled', value: value };
3542
+ --remaining || resolve(values);
3543
+ }, function (error) {
3544
+ if (alreadyCalled) return;
3545
+ alreadyCalled = true;
3546
+ values[index] = { status: 'rejected', reason: error };
3547
+ --remaining || resolve(values);
3548
+ });
3549
+ });
3550
+ --remaining || resolve(values);
3551
+ });
3552
+ if (result.error) reject(result.value);
3553
+ return capability.promise;
3554
+ }
3555
+ });
3556
+
480
3557
  /******************************************************************************
481
3558
  Copyright (c) Microsoft Corporation.
482
3559
 
@@ -507,6 +3584,534 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
507
3584
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
508
3585
  };
509
3586
 
3587
+ var anObject$2 = anObject$d;
3588
+
3589
+ // `RegExp.prototype.flags` getter implementation
3590
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
3591
+ var regexpFlags$1 = function () {
3592
+ var that = anObject$2(this);
3593
+ var result = '';
3594
+ if (that.hasIndices) result += 'd';
3595
+ if (that.global) result += 'g';
3596
+ if (that.ignoreCase) result += 'i';
3597
+ if (that.multiline) result += 'm';
3598
+ if (that.dotAll) result += 's';
3599
+ if (that.unicode) result += 'u';
3600
+ if (that.unicodeSets) result += 'v';
3601
+ if (that.sticky) result += 'y';
3602
+ return result;
3603
+ };
3604
+
3605
+ var fails$4 = fails$k;
3606
+ var global$3 = global$m;
3607
+
3608
+ // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
3609
+ var $RegExp$2 = global$3.RegExp;
3610
+
3611
+ var UNSUPPORTED_Y$1 = fails$4(function () {
3612
+ var re = $RegExp$2('a', 'y');
3613
+ re.lastIndex = 2;
3614
+ return re.exec('abcd') !== null;
3615
+ });
3616
+
3617
+ // UC Browser bug
3618
+ // https://github.com/zloirock/core-js/issues/1008
3619
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
3620
+ return !$RegExp$2('a', 'y').sticky;
3621
+ });
3622
+
3623
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
3624
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
3625
+ var re = $RegExp$2('^r', 'gy');
3626
+ re.lastIndex = 2;
3627
+ return re.exec('str') !== null;
3628
+ });
3629
+
3630
+ var regexpStickyHelpers = {
3631
+ BROKEN_CARET: BROKEN_CARET,
3632
+ MISSED_STICKY: MISSED_STICKY,
3633
+ UNSUPPORTED_Y: UNSUPPORTED_Y$1
3634
+ };
3635
+
3636
+ var fails$3 = fails$k;
3637
+ var global$2 = global$m;
3638
+
3639
+ // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
3640
+ var $RegExp$1 = global$2.RegExp;
3641
+
3642
+ var regexpUnsupportedDotAll = fails$3(function () {
3643
+ var re = $RegExp$1('.', 's');
3644
+ return !(re.dotAll && re.test('\n') && re.flags === 's');
3645
+ });
3646
+
3647
+ var fails$2 = fails$k;
3648
+ var global$1 = global$m;
3649
+
3650
+ // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
3651
+ var $RegExp = global$1.RegExp;
3652
+
3653
+ var regexpUnsupportedNcg = fails$2(function () {
3654
+ var re = $RegExp('(?<a>b)', 'g');
3655
+ return re.exec('b').groups.a !== 'b' ||
3656
+ 'b'.replace(re, '$<a>c') !== 'bc';
3657
+ });
3658
+
3659
+ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
3660
+ /* eslint-disable regexp/no-useless-quantifier -- testing */
3661
+ var call$3 = functionCall;
3662
+ var uncurryThis$3 = functionUncurryThis;
3663
+ var toString$2 = toString$5;
3664
+ var regexpFlags = regexpFlags$1;
3665
+ var stickyHelpers = regexpStickyHelpers;
3666
+ var shared = shared$4.exports;
3667
+ var create = objectCreate;
3668
+ var getInternalState = internalState.get;
3669
+ var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
3670
+ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
3671
+
3672
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
3673
+ var nativeExec = RegExp.prototype.exec;
3674
+ var patchedExec = nativeExec;
3675
+ var charAt$3 = uncurryThis$3(''.charAt);
3676
+ var indexOf = uncurryThis$3(''.indexOf);
3677
+ var replace$1 = uncurryThis$3(''.replace);
3678
+ var stringSlice$3 = uncurryThis$3(''.slice);
3679
+
3680
+ var UPDATES_LAST_INDEX_WRONG = (function () {
3681
+ var re1 = /a/;
3682
+ var re2 = /b*/g;
3683
+ call$3(nativeExec, re1, 'a');
3684
+ call$3(nativeExec, re2, 'a');
3685
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
3686
+ })();
3687
+
3688
+ var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
3689
+
3690
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
3691
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
3692
+
3693
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
3694
+
3695
+ if (PATCH) {
3696
+ patchedExec = function exec(string) {
3697
+ var re = this;
3698
+ var state = getInternalState(re);
3699
+ var str = toString$2(string);
3700
+ var raw = state.raw;
3701
+ var result, reCopy, lastIndex, match, i, object, group;
3702
+
3703
+ if (raw) {
3704
+ raw.lastIndex = re.lastIndex;
3705
+ result = call$3(patchedExec, raw, str);
3706
+ re.lastIndex = raw.lastIndex;
3707
+ return result;
3708
+ }
3709
+
3710
+ var groups = state.groups;
3711
+ var sticky = UNSUPPORTED_Y && re.sticky;
3712
+ var flags = call$3(regexpFlags, re);
3713
+ var source = re.source;
3714
+ var charsAdded = 0;
3715
+ var strCopy = str;
3716
+
3717
+ if (sticky) {
3718
+ flags = replace$1(flags, 'y', '');
3719
+ if (indexOf(flags, 'g') === -1) {
3720
+ flags += 'g';
3721
+ }
3722
+
3723
+ strCopy = stringSlice$3(str, re.lastIndex);
3724
+ // Support anchored sticky behavior.
3725
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
3726
+ source = '(?: ' + source + ')';
3727
+ strCopy = ' ' + strCopy;
3728
+ charsAdded++;
3729
+ }
3730
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
3731
+ // simulate the 'y' flag.
3732
+ reCopy = new RegExp('^(?:' + source + ')', flags);
3733
+ }
3734
+
3735
+ if (NPCG_INCLUDED) {
3736
+ reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
3737
+ }
3738
+ if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
3739
+
3740
+ match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
3741
+
3742
+ if (sticky) {
3743
+ if (match) {
3744
+ match.input = stringSlice$3(match.input, charsAdded);
3745
+ match[0] = stringSlice$3(match[0], charsAdded);
3746
+ match.index = re.lastIndex;
3747
+ re.lastIndex += match[0].length;
3748
+ } else re.lastIndex = 0;
3749
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
3750
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
3751
+ }
3752
+ if (NPCG_INCLUDED && match && match.length > 1) {
3753
+ // Fix browsers whose `exec` methods don't consistently return `undefined`
3754
+ // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
3755
+ call$3(nativeReplace, match[0], reCopy, function () {
3756
+ for (i = 1; i < arguments.length - 2; i++) {
3757
+ if (arguments[i] === undefined) match[i] = undefined;
3758
+ }
3759
+ });
3760
+ }
3761
+
3762
+ if (match && groups) {
3763
+ match.groups = object = create(null);
3764
+ for (i = 0; i < groups.length; i++) {
3765
+ group = groups[i];
3766
+ object[group[0]] = match[group[1]];
3767
+ }
3768
+ }
3769
+
3770
+ return match;
3771
+ };
3772
+ }
3773
+
3774
+ var regexpExec$2 = patchedExec;
3775
+
3776
+ var $ = _export;
3777
+ var exec = regexpExec$2;
3778
+
3779
+ // `RegExp.prototype.exec` method
3780
+ // https://tc39.es/ecma262/#sec-regexp.prototype.exec
3781
+ $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
3782
+ exec: exec
3783
+ });
3784
+
3785
+ // TODO: Remove from `core-js@4` since it's moved to entry points
3786
+
3787
+ var call$2 = functionCall;
3788
+ var defineBuiltIn = defineBuiltIn$6;
3789
+ var regexpExec$1 = regexpExec$2;
3790
+ var fails$1 = fails$k;
3791
+ var wellKnownSymbol$1 = wellKnownSymbol$j;
3792
+ var createNonEnumerableProperty = createNonEnumerableProperty$5;
3793
+
3794
+ var SPECIES = wellKnownSymbol$1('species');
3795
+ var RegExpPrototype = RegExp.prototype;
3796
+
3797
+ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
3798
+ var SYMBOL = wellKnownSymbol$1(KEY);
3799
+
3800
+ var DELEGATES_TO_SYMBOL = !fails$1(function () {
3801
+ // String methods call symbol-named RegExp methods
3802
+ var O = {};
3803
+ O[SYMBOL] = function () { return 7; };
3804
+ return ''[KEY](O) !== 7;
3805
+ });
3806
+
3807
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
3808
+ // Symbol-named RegExp methods call .exec
3809
+ var execCalled = false;
3810
+ var re = /a/;
3811
+
3812
+ if (KEY === 'split') {
3813
+ // We can't use real regex here since it causes deoptimization
3814
+ // and serious performance degradation in V8
3815
+ // https://github.com/zloirock/core-js/issues/306
3816
+ re = {};
3817
+ // RegExp[@@split] doesn't call the regex's exec method, but first creates
3818
+ // a new one. We need to return the patched regex when creating the new one.
3819
+ re.constructor = {};
3820
+ re.constructor[SPECIES] = function () { return re; };
3821
+ re.flags = '';
3822
+ re[SYMBOL] = /./[SYMBOL];
3823
+ }
3824
+
3825
+ re.exec = function () {
3826
+ execCalled = true;
3827
+ return null;
3828
+ };
3829
+
3830
+ re[SYMBOL]('');
3831
+ return !execCalled;
3832
+ });
3833
+
3834
+ if (
3835
+ !DELEGATES_TO_SYMBOL ||
3836
+ !DELEGATES_TO_EXEC ||
3837
+ FORCED
3838
+ ) {
3839
+ var nativeRegExpMethod = /./[SYMBOL];
3840
+ var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
3841
+ var $exec = regexp.exec;
3842
+ if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
3843
+ if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
3844
+ // The native String method already delegates to @@method (this
3845
+ // polyfilled function), leasing to infinite recursion.
3846
+ // We avoid it by directly calling the native @@method method.
3847
+ return { done: true, value: call$2(nativeRegExpMethod, regexp, str, arg2) };
3848
+ }
3849
+ return { done: true, value: call$2(nativeMethod, str, regexp, arg2) };
3850
+ }
3851
+ return { done: false };
3852
+ });
3853
+
3854
+ defineBuiltIn(String.prototype, KEY, methods[0]);
3855
+ defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
3856
+ }
3857
+
3858
+ if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
3859
+ };
3860
+
3861
+ var uncurryThis$2 = functionUncurryThis;
3862
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
3863
+ var toString$1 = toString$5;
3864
+ var requireObjectCoercible$1 = requireObjectCoercible$6;
3865
+
3866
+ var charAt$2 = uncurryThis$2(''.charAt);
3867
+ var charCodeAt = uncurryThis$2(''.charCodeAt);
3868
+ var stringSlice$2 = uncurryThis$2(''.slice);
3869
+
3870
+ var createMethod = function (CONVERT_TO_STRING) {
3871
+ return function ($this, pos) {
3872
+ var S = toString$1(requireObjectCoercible$1($this));
3873
+ var position = toIntegerOrInfinity$1(pos);
3874
+ var size = S.length;
3875
+ var first, second;
3876
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
3877
+ first = charCodeAt(S, position);
3878
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
3879
+ || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
3880
+ ? CONVERT_TO_STRING
3881
+ ? charAt$2(S, position)
3882
+ : first
3883
+ : CONVERT_TO_STRING
3884
+ ? stringSlice$2(S, position, position + 2)
3885
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
3886
+ };
3887
+ };
3888
+
3889
+ var stringMultibyte = {
3890
+ // `String.prototype.codePointAt` method
3891
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
3892
+ codeAt: createMethod(false),
3893
+ // `String.prototype.at` method
3894
+ // https://github.com/mathiasbynens/String.prototype.at
3895
+ charAt: createMethod(true)
3896
+ };
3897
+
3898
+ var charAt$1 = stringMultibyte.charAt;
3899
+
3900
+ // `AdvanceStringIndex` abstract operation
3901
+ // https://tc39.es/ecma262/#sec-advancestringindex
3902
+ var advanceStringIndex$1 = function (S, index, unicode) {
3903
+ return index + (unicode ? charAt$1(S, index).length : 1);
3904
+ };
3905
+
3906
+ var uncurryThis$1 = functionUncurryThis;
3907
+ var toObject = toObject$6;
3908
+
3909
+ var floor = Math.floor;
3910
+ var charAt = uncurryThis$1(''.charAt);
3911
+ var replace = uncurryThis$1(''.replace);
3912
+ var stringSlice$1 = uncurryThis$1(''.slice);
3913
+ // eslint-disable-next-line redos/no-vulnerable -- safe
3914
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
3915
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
3916
+
3917
+ // `GetSubstitution` abstract operation
3918
+ // https://tc39.es/ecma262/#sec-getsubstitution
3919
+ var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
3920
+ var tailPos = position + matched.length;
3921
+ var m = captures.length;
3922
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
3923
+ if (namedCaptures !== undefined) {
3924
+ namedCaptures = toObject(namedCaptures);
3925
+ symbols = SUBSTITUTION_SYMBOLS;
3926
+ }
3927
+ return replace(replacement, symbols, function (match, ch) {
3928
+ var capture;
3929
+ switch (charAt(ch, 0)) {
3930
+ case '$': return '$';
3931
+ case '&': return matched;
3932
+ case '`': return stringSlice$1(str, 0, position);
3933
+ case "'": return stringSlice$1(str, tailPos);
3934
+ case '<':
3935
+ capture = namedCaptures[stringSlice$1(ch, 1, -1)];
3936
+ break;
3937
+ default: // \d\d?
3938
+ var n = +ch;
3939
+ if (n === 0) return match;
3940
+ if (n > m) {
3941
+ var f = floor(n / 10);
3942
+ if (f === 0) return match;
3943
+ if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
3944
+ return match;
3945
+ }
3946
+ capture = captures[n - 1];
3947
+ }
3948
+ return capture === undefined ? '' : capture;
3949
+ });
3950
+ };
3951
+
3952
+ var call$1 = functionCall;
3953
+ var anObject$1 = anObject$d;
3954
+ var isCallable$1 = isCallable$l;
3955
+ var classof = classofRaw$2;
3956
+ var regexpExec = regexpExec$2;
3957
+
3958
+ var $TypeError = TypeError;
3959
+
3960
+ // `RegExpExec` abstract operation
3961
+ // https://tc39.es/ecma262/#sec-regexpexec
3962
+ var regexpExecAbstract = function (R, S) {
3963
+ var exec = R.exec;
3964
+ if (isCallable$1(exec)) {
3965
+ var result = call$1(exec, R, S);
3966
+ if (result !== null) anObject$1(result);
3967
+ return result;
3968
+ }
3969
+ if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
3970
+ throw new $TypeError('RegExp#exec called on incompatible receiver');
3971
+ };
3972
+
3973
+ var apply = functionApply;
3974
+ var call = functionCall;
3975
+ var uncurryThis = functionUncurryThis;
3976
+ var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
3977
+ var fails = fails$k;
3978
+ var anObject = anObject$d;
3979
+ var isCallable = isCallable$l;
3980
+ var isNullOrUndefined = isNullOrUndefined$5;
3981
+ var toIntegerOrInfinity = toIntegerOrInfinity$4;
3982
+ var toLength = toLength$3;
3983
+ var toString = toString$5;
3984
+ var requireObjectCoercible = requireObjectCoercible$6;
3985
+ var advanceStringIndex = advanceStringIndex$1;
3986
+ var getMethod = getMethod$4;
3987
+ var getSubstitution = getSubstitution$1;
3988
+ var regExpExec = regexpExecAbstract;
3989
+ var wellKnownSymbol = wellKnownSymbol$j;
3990
+
3991
+ var REPLACE = wellKnownSymbol('replace');
3992
+ var max = Math.max;
3993
+ var min = Math.min;
3994
+ var concat = uncurryThis([].concat);
3995
+ var push = uncurryThis([].push);
3996
+ var stringIndexOf = uncurryThis(''.indexOf);
3997
+ var stringSlice = uncurryThis(''.slice);
3998
+
3999
+ var maybeToString = function (it) {
4000
+ return it === undefined ? it : String(it);
4001
+ };
4002
+
4003
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
4004
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
4005
+ var REPLACE_KEEPS_$0 = (function () {
4006
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
4007
+ return 'a'.replace(/./, '$0') === '$0';
4008
+ })();
4009
+
4010
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
4011
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
4012
+ if (/./[REPLACE]) {
4013
+ return /./[REPLACE]('a', '$0') === '';
4014
+ }
4015
+ return false;
4016
+ })();
4017
+
4018
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
4019
+ var re = /./;
4020
+ re.exec = function () {
4021
+ var result = [];
4022
+ result.groups = { a: '7' };
4023
+ return result;
4024
+ };
4025
+ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
4026
+ return ''.replace(re, '$<a>') !== '7';
4027
+ });
4028
+
4029
+ // @@replace logic
4030
+ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
4031
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
4032
+
4033
+ return [
4034
+ // `String.prototype.replace` method
4035
+ // https://tc39.es/ecma262/#sec-string.prototype.replace
4036
+ function replace(searchValue, replaceValue) {
4037
+ var O = requireObjectCoercible(this);
4038
+ var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
4039
+ return replacer
4040
+ ? call(replacer, searchValue, O, replaceValue)
4041
+ : call(nativeReplace, toString(O), searchValue, replaceValue);
4042
+ },
4043
+ // `RegExp.prototype[@@replace]` method
4044
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
4045
+ function (string, replaceValue) {
4046
+ var rx = anObject(this);
4047
+ var S = toString(string);
4048
+
4049
+ if (
4050
+ typeof replaceValue == 'string' &&
4051
+ stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
4052
+ stringIndexOf(replaceValue, '$<') === -1
4053
+ ) {
4054
+ var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
4055
+ if (res.done) return res.value;
4056
+ }
4057
+
4058
+ var functionalReplace = isCallable(replaceValue);
4059
+ if (!functionalReplace) replaceValue = toString(replaceValue);
4060
+
4061
+ var global = rx.global;
4062
+ var fullUnicode;
4063
+ if (global) {
4064
+ fullUnicode = rx.unicode;
4065
+ rx.lastIndex = 0;
4066
+ }
4067
+
4068
+ var results = [];
4069
+ var result;
4070
+ while (true) {
4071
+ result = regExpExec(rx, S);
4072
+ if (result === null) break;
4073
+
4074
+ push(results, result);
4075
+ if (!global) break;
4076
+
4077
+ var matchStr = toString(result[0]);
4078
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
4079
+ }
4080
+
4081
+ var accumulatedResult = '';
4082
+ var nextSourcePosition = 0;
4083
+ for (var i = 0; i < results.length; i++) {
4084
+ result = results[i];
4085
+
4086
+ var matched = toString(result[0]);
4087
+ var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
4088
+ var captures = [];
4089
+ var replacement;
4090
+ // NOTE: This is equivalent to
4091
+ // captures = result.slice(1).map(maybeToString)
4092
+ // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
4093
+ // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
4094
+ // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
4095
+ for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
4096
+ var namedCaptures = result.groups;
4097
+ if (functionalReplace) {
4098
+ var replacerArgs = concat([matched], captures, position, S);
4099
+ if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
4100
+ replacement = toString(apply(replaceValue, undefined, replacerArgs));
4101
+ } else {
4102
+ replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
4103
+ }
4104
+ if (position >= nextSourcePosition) {
4105
+ accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
4106
+ nextSourcePosition = position + matched.length;
4107
+ }
4108
+ }
4109
+
4110
+ return accumulatedResult + stringSlice(S, nextSourcePosition);
4111
+ }
4112
+ ];
4113
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
4114
+
510
4115
  /* *
511
4116
  * Licensed under the Apache License, Version 2.0 (the "License");
512
4117
  * you may not use this file except in compliance with the License.
@@ -610,22 +4215,6 @@ const addFeedAdressToCustomGeoJSonFeature = (feedAddress, features) => {
610
4215
  }, []);
611
4216
  };
612
4217
 
613
- /* *
614
- * Licensed under the Apache License, Version 2.0 (the "License");
615
- * you may not use this file except in compliance with the License.
616
- * You may obtain a copy of the License at
617
- *
618
- * http://www.apache.org/licenses/LICENSE-2.0
619
- *
620
- * Unless required by applicable law or agreed to in writing, software
621
- * distributed under the License is distributed on an "AS IS" BASIS,
622
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
623
- * See the License for the specific language governing permissions and
624
- * limitations under the License.
625
- *
626
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
627
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
628
- * */
629
4218
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-constraint
630
4219
  const isPromiseFulfilled = result => result.status === 'fulfilled';
631
4220
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-constraint
@@ -769,31 +4358,31 @@ const MapViewCapConnect = ({
769
4358
  type: 'FeatureCollection',
770
4359
  features: featuresInEffect
771
4360
  };
772
- return React.createElement("div", {
4361
+ return /*#__PURE__*/React.createElement("div", {
773
4362
  "data-testid": "mapViewCap",
774
4363
  style: {
775
4364
  height: '100%',
776
4365
  width: '100%'
777
4366
  },
778
4367
  ref: parentSizeRef
779
- }, React.createElement(ConfigurableMapConnect, {
4368
+ }, /*#__PURE__*/React.createElement(ConfigurableMapConnect, {
780
4369
  id: mapIdRef.current,
781
4370
  title: title,
782
4371
  layers: layers || [],
783
4372
  "data-testid": "capWarningMap",
784
4373
  bbox: bbox,
785
4374
  srs: srs
786
- }, React.createElement(MapViewLayer, {
4375
+ }, /*#__PURE__*/React.createElement(MapViewLayer, {
787
4376
  id: layerIdRef.current,
788
4377
  geojson: geoJsonObject,
789
4378
  onClickFeature: highLightGeoJsonOnClick,
790
4379
  "data-testid": "polygonLayer"
791
- }), selectedFeatureEvent && React.createElement(MapWarningProperties, {
4380
+ }), selectedFeatureEvent && ( /*#__PURE__*/React.createElement(MapWarningProperties, {
792
4381
  "data-testid": "mapWarnings",
793
4382
  selectedFeatureProperties: selectedFeatureEvent.feature.properties.details,
794
4383
  languageIndex: findEventIndexInLanguage(selectedFeatureEvent.feature.properties.details.languages, capWarningPresets, selectedFeatureEvent.feature.properties.details.feedAddress),
795
4384
  parentSize: parentSize
796
- })));
4385
+ }))));
797
4386
  };
798
4387
 
799
4388
  /* *
@@ -832,23 +4421,23 @@ const MapViewCapConnectWrapper = ({
832
4421
  error
833
4422
  } = useApi(api.getCapConfiguration, productConfigKey);
834
4423
  if (isConfigLoading) {
835
- return React.createElement(Box$1, {
4424
+ return /*#__PURE__*/React.createElement(Box$1, {
836
4425
  sx: {
837
4426
  display: 'flex',
838
4427
  justifyContent: 'center',
839
4428
  alignItems: 'center'
840
4429
  }
841
- }, React.createElement(CircularProgress, {
4430
+ }, /*#__PURE__*/React.createElement(CircularProgress, {
842
4431
  "data-testid": "loadingSpinner"
843
4432
  }));
844
4433
  }
845
4434
  if (error) {
846
- return React.createElement(AlertBanner, {
4435
+ return /*#__PURE__*/React.createElement(AlertBanner, {
847
4436
  title: t('map-view-cap-error-title'),
848
4437
  info: error.message
849
4438
  });
850
4439
  }
851
- return React.createElement(MapViewCapConnect, {
4440
+ return /*#__PURE__*/React.createElement(MapViewCapConnect, {
852
4441
  capWarningPresets: capWarningPresets,
853
4442
  id: id,
854
4443
  title: title,
@@ -881,34 +4470,18 @@ const capModuleConfig = {
881
4470
  }
882
4471
  };
883
4472
 
884
- /* *
885
- * Licensed under the Apache License, Version 2.0 (the "License");
886
- * you may not use this file except in compliance with the License.
887
- * You may obtain a copy of the License at
888
- *
889
- * http://www.apache.org/licenses/LICENSE-2.0
890
- *
891
- * Unless required by applicable law or agreed to in writing, software
892
- * distributed under the License is distributed on an "AS IS" BASIS,
893
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
894
- * See the License for the specific language governing permissions and
895
- * limitations under the License.
896
- *
897
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
898
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
899
- * */
900
4473
  const CapThemeWrapper = ({
901
4474
  theme,
902
4475
  children
903
- }) => React.createElement(ThemeWrapper, {
4476
+ }) => /*#__PURE__*/React.createElement(ThemeWrapper, {
904
4477
  theme: theme
905
4478
  }, children);
906
4479
  withEggs([capModuleConfig, ...coreModuleConfig])(({
907
4480
  theme,
908
4481
  children
909
- }) => React.createElement(CapThemeWrapper, {
4482
+ }) => ( /*#__PURE__*/React.createElement(CapThemeWrapper, {
910
4483
  theme: theme
911
- }, children));
4484
+ }, children)));
912
4485
  const CapTranslationsWrapper = ({
913
4486
  children
914
4487
  }) => {
@@ -957,12 +4530,12 @@ const ComponentsLookUp = ({
957
4530
  switch (componentType) {
958
4531
  case 'CapWarningMap':
959
4532
  {
960
- return React.createElement(CapTranslationsWrapper, null, React.createElement(ApiProvider, {
4533
+ return /*#__PURE__*/React.createElement(CapTranslationsWrapper, null, /*#__PURE__*/React.createElement(ApiProvider, {
961
4534
  config: {
962
4535
  baseURL: config.baseURL
963
4536
  },
964
4537
  createApi: createApi
965
- }, React.createElement(MapViewCapConnectWrapper, {
4538
+ }, /*#__PURE__*/React.createElement(MapViewCapConnectWrapper, {
966
4539
  id: id,
967
4540
  bbox: (_a = initialProps.mapPreset.proj) === null || _a === void 0 ? void 0 : _a.bbox,
968
4541
  srs: (_b = initialProps.mapPreset.proj) === null || _b === void 0 ? void 0 : _b.srs,
@@ -972,12 +4545,12 @@ const ComponentsLookUp = ({
972
4545
  }
973
4546
  case 'CapWarningList':
974
4547
  {
975
- return React.createElement(CapTranslationsWrapper, null, React.createElement(ApiProvider, {
4548
+ return /*#__PURE__*/React.createElement(CapTranslationsWrapper, null, /*#__PURE__*/React.createElement(ApiProvider, {
976
4549
  config: {
977
4550
  baseURL: config.baseURL
978
4551
  },
979
4552
  createApi: createApi
980
- }, React.createElement(WarningListCapConnectWrapper, {
4553
+ }, /*#__PURE__*/React.createElement(WarningListCapConnectWrapper, {
981
4554
  productConfigKey: productConfigKey
982
4555
  })));
983
4556
  }