@opengeoweb/webmap 9.31.0 → 9.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -1,6 +1,5 @@
1
- import { compact, range, isEqual } from 'lodash';
1
+ import { compact, range, debounce, throttle, isEqual } from 'lodash';
2
2
  import { PROJECTION, dateUtils, defaultDelay as defaultDelay$1 } from '@opengeoweb/shared';
3
- import { debounce, throttle } from 'throttle-debounce';
4
3
  import proj4 from 'proj4';
5
4
  import i18n from 'i18next';
6
5
 
@@ -47,6 +46,30 @@ var webmapTranslations = {
47
46
  nl: nl
48
47
  };
49
48
 
49
+ function _objectWithoutPropertiesLoose(r, e) {
50
+ if (null == r) return {};
51
+ var t = {};
52
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
53
+ if (e.indexOf(n) >= 0) continue;
54
+ t[n] = r[n];
55
+ }
56
+ return t;
57
+ }
58
+ function _toPrimitive(t, r) {
59
+ if ("object" != typeof t || !t) return t;
60
+ var e = t[Symbol.toPrimitive];
61
+ if (void 0 !== e) {
62
+ var i = e.call(t, r );
63
+ if ("object" != typeof i) return i;
64
+ throw new TypeError("@@toPrimitive must return a primitive value.");
65
+ }
66
+ return (String )(t);
67
+ }
68
+ function _toPropertyKey(t) {
69
+ var i = _toPrimitive(t, "string");
70
+ return "symbol" == typeof i ? i : i + "";
71
+ }
72
+
50
73
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
51
74
 
52
75
  var check = function (it) {
@@ -54,7 +77,7 @@ var check = function (it) {
54
77
  };
55
78
 
56
79
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
57
- var global$C =
80
+ var globalThis_1 =
58
81
  // eslint-disable-next-line es/no-global-this -- safe
59
82
  check(typeof globalThis == 'object' && globalThis) ||
60
83
  check(typeof window == 'object' && window) ||
@@ -137,21 +160,21 @@ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
137
160
  };
138
161
  };
139
162
 
140
- var uncurryThis$K = functionUncurryThis;
163
+ var uncurryThis$L = functionUncurryThis;
141
164
 
142
- var toString$k = uncurryThis$K({}.toString);
143
- var stringSlice$a = uncurryThis$K(''.slice);
165
+ var toString$k = uncurryThis$L({}.toString);
166
+ var stringSlice$a = uncurryThis$L(''.slice);
144
167
 
145
168
  var classofRaw$2 = function (it) {
146
169
  return stringSlice$a(toString$k(it), 8, -1);
147
170
  };
148
171
 
149
- var uncurryThis$J = functionUncurryThis;
172
+ var uncurryThis$K = functionUncurryThis;
150
173
  var fails$D = fails$G;
151
174
  var classof$f = classofRaw$2;
152
175
 
153
176
  var $Object$4 = Object;
154
- var split$3 = uncurryThis$J(''.split);
177
+ var split$3 = uncurryThis$K(''.split);
155
178
 
156
179
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
157
180
  var indexedObject = fails$D(function () {
@@ -205,28 +228,33 @@ var isObject$i = function (it) {
205
228
  return typeof it == 'object' ? it !== null : isCallable$p(it);
206
229
  };
207
230
 
208
- var global$B = global$C;
231
+ var globalThis$G = globalThis_1;
209
232
  var isCallable$o = isCallable$q;
210
233
 
211
234
  var aFunction = function (argument) {
212
235
  return isCallable$o(argument) ? argument : undefined;
213
236
  };
214
237
 
215
- var getBuiltIn$d = function (namespace, method) {
216
- return arguments.length < 2 ? aFunction(global$B[namespace]) : global$B[namespace] && global$B[namespace][method];
238
+ var getBuiltIn$e = function (namespace, method) {
239
+ return arguments.length < 2 ? aFunction(globalThis$G[namespace]) : globalThis$G[namespace] && globalThis$G[namespace][method];
217
240
  };
218
241
 
219
- var uncurryThis$I = functionUncurryThis;
242
+ var uncurryThis$J = functionUncurryThis;
243
+
244
+ var objectIsPrototypeOf = uncurryThis$J({}.isPrototypeOf);
220
245
 
221
- var objectIsPrototypeOf = uncurryThis$I({}.isPrototypeOf);
246
+ var globalThis$F = globalThis_1;
222
247
 
223
- var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
248
+ var navigator = globalThis$F.navigator;
249
+ var userAgent$7 = navigator && navigator.userAgent;
224
250
 
225
- var global$A = global$C;
226
- var userAgent$5 = engineUserAgent;
251
+ var environmentUserAgent = userAgent$7 ? String(userAgent$7) : '';
227
252
 
228
- var process$3 = global$A.process;
229
- var Deno$1 = global$A.Deno;
253
+ var globalThis$E = globalThis_1;
254
+ var userAgent$6 = environmentUserAgent;
255
+
256
+ var process$3 = globalThis$E.process;
257
+ var Deno$1 = globalThis$E.Deno;
230
258
  var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
231
259
  var v8 = versions && versions.v8;
232
260
  var match, version$1;
@@ -240,22 +268,22 @@ if (v8) {
240
268
 
241
269
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
242
270
  // so check `userAgent` even if `.v8` exists, but 0
243
- if (!version$1 && userAgent$5) {
244
- match = userAgent$5.match(/Edge\/(\d+)/);
271
+ if (!version$1 && userAgent$6) {
272
+ match = userAgent$6.match(/Edge\/(\d+)/);
245
273
  if (!match || match[1] >= 74) {
246
- match = userAgent$5.match(/Chrome\/(\d+)/);
274
+ match = userAgent$6.match(/Chrome\/(\d+)/);
247
275
  if (match) version$1 = +match[1];
248
276
  }
249
277
  }
250
278
 
251
- var engineV8Version = version$1;
279
+ var environmentV8Version = version$1;
252
280
 
253
281
  /* eslint-disable es/no-symbol -- required for testing */
254
- var V8_VERSION$1 = engineV8Version;
282
+ var V8_VERSION$1 = environmentV8Version;
255
283
  var fails$C = fails$G;
256
- var global$z = global$C;
284
+ var globalThis$D = globalThis_1;
257
285
 
258
- var $String$7 = global$z.String;
286
+ var $String$7 = globalThis$D.String;
259
287
 
260
288
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
261
289
  var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$C(function () {
@@ -272,11 +300,11 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$C(func
272
300
  /* eslint-disable es/no-symbol -- required for testing */
273
301
  var NATIVE_SYMBOL$2 = symbolConstructorDetection;
274
302
 
275
- var useSymbolAsUid = NATIVE_SYMBOL$2
276
- && !Symbol.sham
277
- && typeof Symbol.iterator == 'symbol';
303
+ var useSymbolAsUid = NATIVE_SYMBOL$2 &&
304
+ !Symbol.sham &&
305
+ typeof Symbol.iterator == 'symbol';
278
306
 
279
- var getBuiltIn$c = getBuiltIn$d;
307
+ var getBuiltIn$d = getBuiltIn$e;
280
308
  var isCallable$n = isCallable$q;
281
309
  var isPrototypeOf$6 = objectIsPrototypeOf;
282
310
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
@@ -286,7 +314,7 @@ var $Object$3 = Object;
286
314
  var isSymbol$4 = USE_SYMBOL_AS_UID$1 ? function (it) {
287
315
  return typeof it == 'symbol';
288
316
  } : function (it) {
289
- var $Symbol = getBuiltIn$c('Symbol');
317
+ var $Symbol = getBuiltIn$d('Symbol');
290
318
  return isCallable$n($Symbol) && isPrototypeOf$6($Symbol.prototype, $Object$3(it));
291
319
  };
292
320
 
@@ -341,30 +369,30 @@ var sharedStore = {exports: {}};
341
369
 
342
370
  var isPure = false;
343
371
 
344
- var global$y = global$C;
372
+ var globalThis$C = globalThis_1;
345
373
 
346
374
  // eslint-disable-next-line es/no-object-defineproperty -- safe
347
375
  var defineProperty$9 = Object.defineProperty;
348
376
 
349
377
  var defineGlobalProperty$3 = function (key, value) {
350
378
  try {
351
- defineProperty$9(global$y, key, { value: value, configurable: true, writable: true });
379
+ defineProperty$9(globalThis$C, key, { value: value, configurable: true, writable: true });
352
380
  } catch (error) {
353
- global$y[key] = value;
381
+ globalThis$C[key] = value;
354
382
  } return value;
355
383
  };
356
384
 
357
- var globalThis$1 = global$C;
385
+ var globalThis$B = globalThis_1;
358
386
  var defineGlobalProperty$2 = defineGlobalProperty$3;
359
387
 
360
388
  var SHARED = '__core-js_shared__';
361
- var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
389
+ var store$3 = sharedStore.exports = globalThis$B[SHARED] || defineGlobalProperty$2(SHARED, {});
362
390
 
363
391
  (store$3.versions || (store$3.versions = [])).push({
364
- version: '3.37.1',
392
+ version: '3.39.0',
365
393
  mode: 'global',
366
394
  copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
367
- license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
395
+ license: 'https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE',
368
396
  source: 'https://github.com/zloirock/core-js'
369
397
  });
370
398
 
@@ -386,10 +414,10 @@ var toObject$c = function (argument) {
386
414
  return $Object$2(requireObjectCoercible$9(argument));
387
415
  };
388
416
 
389
- var uncurryThis$H = functionUncurryThis;
417
+ var uncurryThis$I = functionUncurryThis;
390
418
  var toObject$b = toObject$c;
391
419
 
392
- var hasOwnProperty = uncurryThis$H({}.hasOwnProperty);
420
+ var hasOwnProperty = uncurryThis$I({}.hasOwnProperty);
393
421
 
394
422
  // `HasOwnProperty` abstract operation
395
423
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -398,24 +426,24 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
398
426
  return hasOwnProperty(toObject$b(it), key);
399
427
  };
400
428
 
401
- var uncurryThis$G = functionUncurryThis;
429
+ var uncurryThis$H = functionUncurryThis;
402
430
 
403
431
  var id = 0;
404
432
  var postfix = Math.random();
405
- var toString$j = uncurryThis$G(1.0.toString);
433
+ var toString$j = uncurryThis$H(1.0.toString);
406
434
 
407
435
  var uid$3 = function (key) {
408
436
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$j(++id + postfix, 36);
409
437
  };
410
438
 
411
- var global$x = global$C;
439
+ var globalThis$A = globalThis_1;
412
440
  var shared$3 = shared$4;
413
441
  var hasOwn$h = hasOwnProperty_1;
414
442
  var uid$2 = uid$3;
415
443
  var NATIVE_SYMBOL$1 = symbolConstructorDetection;
416
444
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
417
445
 
418
- var Symbol$3 = global$x.Symbol;
446
+ var Symbol$3 = globalThis$A.Symbol;
419
447
  var WellKnownSymbolsStore = shared$3('wks');
420
448
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$3['for'] || Symbol$3 : Symbol$3 && Symbol$3.withoutSetter || uid$2;
421
449
 
@@ -463,10 +491,10 @@ var toPropertyKey$3 = function (argument) {
463
491
  return isSymbol$2(key) ? key : key + '';
464
492
  };
465
493
 
466
- var global$w = global$C;
494
+ var globalThis$z = globalThis_1;
467
495
  var isObject$f = isObject$i;
468
496
 
469
- var document$3 = global$w.document;
497
+ var document$3 = globalThis$z.document;
470
498
  // typeof document.createElement is 'object' in old IE
471
499
  var EXISTS$1 = isObject$f(document$3) && isObject$f(document$3.createElement);
472
500
 
@@ -610,11 +638,11 @@ var functionName = {
610
638
  CONFIGURABLE: CONFIGURABLE
611
639
  };
612
640
 
613
- var uncurryThis$F = functionUncurryThis;
641
+ var uncurryThis$G = functionUncurryThis;
614
642
  var isCallable$k = isCallable$q;
615
643
  var store$1 = sharedStoreExports;
616
644
 
617
- var functionToString = uncurryThis$F(Function.toString);
645
+ var functionToString = uncurryThis$G(Function.toString);
618
646
 
619
647
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
620
648
  if (!isCallable$k(store$1.inspectSource)) {
@@ -625,10 +653,10 @@ if (!isCallable$k(store$1.inspectSource)) {
625
653
 
626
654
  var inspectSource$3 = store$1.inspectSource;
627
655
 
628
- var global$v = global$C;
656
+ var globalThis$y = globalThis_1;
629
657
  var isCallable$j = isCallable$q;
630
658
 
631
- var WeakMap$2 = global$v.WeakMap;
659
+ var WeakMap$2 = globalThis$y.WeakMap;
632
660
 
633
661
  var weakMapBasicDetection = isCallable$j(WeakMap$2) && /native code/.test(String(WeakMap$2));
634
662
 
@@ -644,7 +672,7 @@ var sharedKey$3 = function (key) {
644
672
  var hiddenKeys$4 = {};
645
673
 
646
674
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
647
- var global$u = global$C;
675
+ var globalThis$x = globalThis_1;
648
676
  var isObject$d = isObject$i;
649
677
  var createNonEnumerableProperty$a = createNonEnumerableProperty$b;
650
678
  var hasOwn$e = hasOwnProperty_1;
@@ -653,8 +681,8 @@ var sharedKey$2 = sharedKey$3;
653
681
  var hiddenKeys$3 = hiddenKeys$4;
654
682
 
655
683
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
656
- var TypeError$6 = global$u.TypeError;
657
- var WeakMap$1 = global$u.WeakMap;
684
+ var TypeError$6 = globalThis$x.TypeError;
685
+ var WeakMap$1 = globalThis$x.WeakMap;
658
686
  var set$2, get$1, has;
659
687
 
660
688
  var enforce = function (it) {
@@ -714,7 +742,7 @@ var internalState = {
714
742
  getterFor: getterFor$1
715
743
  };
716
744
 
717
- var uncurryThis$E = functionUncurryThis;
745
+ var uncurryThis$F = functionUncurryThis;
718
746
  var fails$z = fails$G;
719
747
  var isCallable$i = isCallable$q;
720
748
  var hasOwn$d = hasOwnProperty_1;
@@ -728,9 +756,9 @@ var getInternalState$6 = InternalStateModule$9.get;
728
756
  var $String$4 = String;
729
757
  // eslint-disable-next-line es/no-object-defineproperty -- safe
730
758
  var defineProperty$8 = Object.defineProperty;
731
- var stringSlice$9 = uncurryThis$E(''.slice);
732
- var replace$8 = uncurryThis$E(''.replace);
733
- var join$3 = uncurryThis$E([].join);
759
+ var stringSlice$9 = uncurryThis$F(''.slice);
760
+ var replace$8 = uncurryThis$F(''.replace);
761
+ var join$4 = uncurryThis$F([].join);
734
762
 
735
763
  var CONFIGURABLE_LENGTH = DESCRIPTORS$j && !fails$z(function () {
736
764
  return defineProperty$8(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
@@ -759,7 +787,7 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
759
787
  } catch (error) { /* empty */ }
760
788
  var state = enforceInternalState$2(value);
761
789
  if (!hasOwn$d(state, 'source')) {
762
- state.source = join$3(TEMPLATE, typeof name == 'string' ? name : '');
790
+ state.source = join$4(TEMPLATE, typeof name == 'string' ? name : '');
763
791
  } return value;
764
792
  };
765
793
 
@@ -830,7 +858,7 @@ var min$5 = Math.min;
830
858
  // Helper for a popular repeating case of the spec:
831
859
  // Let integer be ? ToInteger(index).
832
860
  // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
833
- var toAbsoluteIndex$3 = function (index, length) {
861
+ var toAbsoluteIndex$4 = function (index, length) {
834
862
  var integer = toIntegerOrInfinity$b(index);
835
863
  return integer < 0 ? max$1(integer + length, 0) : min$5(integer, length);
836
864
  };
@@ -855,7 +883,7 @@ var lengthOfArrayLike$f = function (obj) {
855
883
  };
856
884
 
857
885
  var toIndexedObject$4 = toIndexedObject$6;
858
- var toAbsoluteIndex$2 = toAbsoluteIndex$3;
886
+ var toAbsoluteIndex$3 = toAbsoluteIndex$4;
859
887
  var lengthOfArrayLike$e = lengthOfArrayLike$f;
860
888
 
861
889
  // `Array.prototype.{ indexOf, includes }` methods implementation
@@ -864,7 +892,7 @@ var createMethod$5 = function (IS_INCLUDES) {
864
892
  var O = toIndexedObject$4($this);
865
893
  var length = lengthOfArrayLike$e(O);
866
894
  if (length === 0) return !IS_INCLUDES && -1;
867
- var index = toAbsoluteIndex$2(fromIndex, length);
895
+ var index = toAbsoluteIndex$3(fromIndex, length);
868
896
  var value;
869
897
  // Array#includes uses SameValueZero equality algorithm
870
898
  // eslint-disable-next-line no-self-compare -- NaN check
@@ -888,13 +916,13 @@ var arrayIncludes = {
888
916
  indexOf: createMethod$5(false)
889
917
  };
890
918
 
891
- var uncurryThis$D = functionUncurryThis;
919
+ var uncurryThis$E = functionUncurryThis;
892
920
  var hasOwn$c = hasOwnProperty_1;
893
921
  var toIndexedObject$3 = toIndexedObject$6;
894
922
  var indexOf$1 = arrayIncludes.indexOf;
895
923
  var hiddenKeys$2 = hiddenKeys$4;
896
924
 
897
- var push$9 = uncurryThis$D([].push);
925
+ var push$9 = uncurryThis$E([].push);
898
926
 
899
927
  var objectKeysInternal = function (object, names) {
900
928
  var O = toIndexedObject$3(object);
@@ -937,16 +965,16 @@ var objectGetOwnPropertySymbols = {};
937
965
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
938
966
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
939
967
 
940
- var getBuiltIn$b = getBuiltIn$d;
941
- var uncurryThis$C = functionUncurryThis;
968
+ var getBuiltIn$c = getBuiltIn$e;
969
+ var uncurryThis$D = functionUncurryThis;
942
970
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
943
971
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
944
972
  var anObject$i = anObject$k;
945
973
 
946
- var concat$2 = uncurryThis$C([].concat);
974
+ var concat$2 = uncurryThis$D([].concat);
947
975
 
948
976
  // all object keys, includes non-enumerable and symbols
949
- var ownKeys$1 = getBuiltIn$b('Reflect', 'ownKeys') || function ownKeys(it) {
977
+ var ownKeys$1 = getBuiltIn$c('Reflect', 'ownKeys') || function ownKeys(it) {
950
978
  var keys = getOwnPropertyNamesModule.f(anObject$i(it));
951
979
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
952
980
  return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
@@ -992,7 +1020,7 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
992
1020
 
993
1021
  var isForced_1 = isForced$2;
994
1022
 
995
- var global$t = global$C;
1023
+ var globalThis$w = globalThis_1;
996
1024
  var getOwnPropertyDescriptor$3 = objectGetOwnPropertyDescriptor.f;
997
1025
  var createNonEnumerableProperty$9 = createNonEnumerableProperty$b;
998
1026
  var defineBuiltIn$d = defineBuiltIn$e;
@@ -1021,11 +1049,11 @@ var _export = function (options, source) {
1021
1049
  var STATIC = options.stat;
1022
1050
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1023
1051
  if (GLOBAL) {
1024
- target = global$t;
1052
+ target = globalThis$w;
1025
1053
  } else if (STATIC) {
1026
- target = global$t[TARGET] || defineGlobalProperty(TARGET, {});
1054
+ target = globalThis$w[TARGET] || defineGlobalProperty(TARGET, {});
1027
1055
  } else {
1028
- target = global$t[TARGET] && global$t[TARGET].prototype;
1056
+ target = globalThis$w[TARGET] && globalThis$w[TARGET].prototype;
1029
1057
  }
1030
1058
  if (target) for (key in source) {
1031
1059
  sourceProperty = source[key];
@@ -1058,13 +1086,13 @@ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$
1058
1086
  return call$o.apply(apply$5, arguments);
1059
1087
  });
1060
1088
 
1061
- var uncurryThis$B = functionUncurryThis;
1089
+ var uncurryThis$C = functionUncurryThis;
1062
1090
  var aCallable$a = aCallable$c;
1063
1091
 
1064
1092
  var functionUncurryThisAccessor = function (object, key, method) {
1065
1093
  try {
1066
1094
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1067
- return uncurryThis$B(aCallable$a(Object.getOwnPropertyDescriptor(object, key)[method]));
1095
+ return uncurryThis$C(aCallable$a(Object.getOwnPropertyDescriptor(object, key)[method]));
1068
1096
  } catch (error) { /* empty */ }
1069
1097
  };
1070
1098
 
@@ -1207,13 +1235,13 @@ var installErrorCause$1 = function (O, options) {
1207
1235
  }
1208
1236
  };
1209
1237
 
1210
- var uncurryThis$A = functionUncurryThis;
1238
+ var uncurryThis$B = functionUncurryThis;
1211
1239
 
1212
1240
  var $Error = Error;
1213
- var replace$7 = uncurryThis$A(''.replace);
1241
+ var replace$7 = uncurryThis$B(''.replace);
1214
1242
 
1215
1243
  var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
1216
- // eslint-disable-next-line redos/no-vulnerable -- safe
1244
+ // eslint-disable-next-line redos/no-vulnerable, sonarjs/slow-regex -- safe
1217
1245
  var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
1218
1246
  var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
1219
1247
 
@@ -1248,7 +1276,7 @@ var errorStackInstall = function (error, C, stack, dropEntries) {
1248
1276
  }
1249
1277
  };
1250
1278
 
1251
- var getBuiltIn$a = getBuiltIn$d;
1279
+ var getBuiltIn$b = getBuiltIn$e;
1252
1280
  var hasOwn$a = hasOwnProperty_1;
1253
1281
  var createNonEnumerableProperty$6 = createNonEnumerableProperty$b;
1254
1282
  var isPrototypeOf$5 = objectIsPrototypeOf;
@@ -1266,7 +1294,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
1266
1294
  var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
1267
1295
  var path = FULL_NAME.split('.');
1268
1296
  var ERROR_NAME = path[path.length - 1];
1269
- var OriginalError = getBuiltIn$a.apply(null, path);
1297
+ var OriginalError = getBuiltIn$b.apply(null, path);
1270
1298
 
1271
1299
  if (!OriginalError) return;
1272
1300
 
@@ -1277,7 +1305,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
1277
1305
 
1278
1306
  if (!FORCED) return OriginalError;
1279
1307
 
1280
- var BaseError = getBuiltIn$a('Error');
1308
+ var BaseError = getBuiltIn$b('Error');
1281
1309
 
1282
1310
  var WrappedError = wrapper(function (a, b) {
1283
1311
  var message = normalizeStringArgument$3(IS_AGGREGATE_ERROR ? b : a, undefined);
@@ -1313,13 +1341,13 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
1313
1341
  };
1314
1342
 
1315
1343
  /* eslint-disable no-unused-vars -- required for functions `.length` */
1316
- var $$v = _export;
1317
- var global$s = global$C;
1344
+ var $$w = _export;
1345
+ var globalThis$v = globalThis_1;
1318
1346
  var apply$4 = functionApply;
1319
1347
  var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
1320
1348
 
1321
1349
  var WEB_ASSEMBLY = 'WebAssembly';
1322
- var WebAssembly = global$s[WEB_ASSEMBLY];
1350
+ var WebAssembly = globalThis$v[WEB_ASSEMBLY];
1323
1351
 
1324
1352
  // eslint-disable-next-line es/no-error-cause -- feature detection
1325
1353
  var FORCED$7 = new Error('e', { cause: 7 }).cause !== 7;
@@ -1327,14 +1355,14 @@ var FORCED$7 = new Error('e', { cause: 7 }).cause !== 7;
1327
1355
  var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
1328
1356
  var O = {};
1329
1357
  O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$7);
1330
- $$v({ global: true, constructor: true, arity: 1, forced: FORCED$7 }, O);
1358
+ $$w({ global: true, constructor: true, arity: 1, forced: FORCED$7 }, O);
1331
1359
  };
1332
1360
 
1333
1361
  var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
1334
1362
  if (WebAssembly && WebAssembly[ERROR_NAME]) {
1335
1363
  var O = {};
1336
1364
  O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$7);
1337
- $$v({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$7 }, O);
1365
+ $$w({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$7 }, O);
1338
1366
  }
1339
1367
  };
1340
1368
 
@@ -1403,9 +1431,9 @@ objectDefineProperties.f = DESCRIPTORS$h && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
1403
1431
  return O;
1404
1432
  };
1405
1433
 
1406
- var getBuiltIn$9 = getBuiltIn$d;
1434
+ var getBuiltIn$a = getBuiltIn$e;
1407
1435
 
1408
- var html$2 = getBuiltIn$9('document', 'documentElement');
1436
+ var html$2 = getBuiltIn$a('document', 'documentElement');
1409
1437
 
1410
1438
  /* global ActiveXObject -- old IE, WSH */
1411
1439
  var anObject$g = anObject$k;
@@ -1433,7 +1461,8 @@ var NullProtoObjectViaActiveX = function (activeXDocument) {
1433
1461
  activeXDocument.write(scriptTag(''));
1434
1462
  activeXDocument.close();
1435
1463
  var temp = activeXDocument.parentWindow.Object;
1436
- activeXDocument = null; // avoid memory leak
1464
+ // eslint-disable-next-line no-useless-assignment -- avoid memory leak
1465
+ activeXDocument = null;
1437
1466
  return temp;
1438
1467
  };
1439
1468
 
@@ -1620,7 +1649,7 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
1620
1649
  return IteratorConstructor;
1621
1650
  };
1622
1651
 
1623
- var $$u = _export;
1652
+ var $$v = _export;
1624
1653
  var call$n = functionCall;
1625
1654
  var FunctionName$1 = functionName;
1626
1655
  var isCallable$b = isCallable$q;
@@ -1708,7 +1737,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1708
1737
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1709
1738
  defineBuiltIn$b(IterablePrototype, KEY, methods[KEY]);
1710
1739
  }
1711
- } else $$u({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1740
+ } else $$v({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1712
1741
  }
1713
1742
 
1714
1743
  // define iterator
@@ -1763,7 +1792,7 @@ var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kin
1763
1792
  var target = state.target;
1764
1793
  var index = state.index++;
1765
1794
  if (!target || index >= target.length) {
1766
- state.target = undefined;
1795
+ state.target = null;
1767
1796
  return createIterResultObject$2(undefined, true);
1768
1797
  }
1769
1798
  switch (state.kind) {
@@ -1831,7 +1860,7 @@ var doesNotExceedSafeInteger$1 = function (it) {
1831
1860
  return it;
1832
1861
  };
1833
1862
 
1834
- var $$t = _export;
1863
+ var $$u = _export;
1835
1864
  var toObject$9 = toObject$c;
1836
1865
  var lengthOfArrayLike$d = lengthOfArrayLike$f;
1837
1866
  var setArrayLength = arraySetLength;
@@ -1857,7 +1886,7 @@ var FORCED$6 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
1857
1886
 
1858
1887
  // `Array.prototype.push` method
1859
1888
  // https://tc39.es/ecma262/#sec-array.prototype.push
1860
- $$t({ target: 'Array', proto: true, arity: 1, forced: FORCED$6 }, {
1889
+ $$u({ target: 'Array', proto: true, arity: 1, forced: FORCED$6 }, {
1861
1890
  // eslint-disable-next-line no-unused-vars -- required for `.length`
1862
1891
  push: function push(item) {
1863
1892
  var O = toObject$9(this);
@@ -1929,43 +1958,63 @@ var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
1929
1958
  });
1930
1959
  };
1931
1960
 
1932
- var global$r = global$C;
1961
+ /* global Bun, Deno -- detection */
1962
+ var globalThis$u = globalThis_1;
1963
+ var userAgent$5 = environmentUserAgent;
1933
1964
  var classof$b = classofRaw$2;
1934
1965
 
1935
- var engineIsNode = classof$b(global$r.process) === 'process';
1966
+ var userAgentStartsWith = function (string) {
1967
+ return userAgent$5.slice(0, string.length) === string;
1968
+ };
1936
1969
 
1937
- var $$s = _export;
1970
+ var environment = (function () {
1971
+ if (userAgentStartsWith('Bun/')) return 'BUN';
1972
+ if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE';
1973
+ if (userAgentStartsWith('Deno/')) return 'DENO';
1974
+ if (userAgentStartsWith('Node.js/')) return 'NODE';
1975
+ if (globalThis$u.Bun && typeof Bun.version == 'string') return 'BUN';
1976
+ if (globalThis$u.Deno && typeof Deno.version == 'object') return 'DENO';
1977
+ if (classof$b(globalThis$u.process) === 'process') return 'NODE';
1978
+ if (globalThis$u.window && globalThis$u.document) return 'BROWSER';
1979
+ return 'REST';
1980
+ })();
1981
+
1982
+ var ENVIRONMENT$2 = environment;
1983
+
1984
+ var environmentIsNode = ENVIRONMENT$2 === 'NODE';
1985
+
1986
+ var $$t = _export;
1938
1987
  var $reduce = arrayReduce.left;
1939
1988
  var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
1940
- var CHROME_VERSION = engineV8Version;
1941
- var IS_NODE$6 = engineIsNode;
1989
+ var CHROME_VERSION = environmentV8Version;
1990
+ var IS_NODE$4 = environmentIsNode;
1942
1991
 
1943
1992
  // Chrome 80-82 has a critical bug
1944
1993
  // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
1945
- var CHROME_BUG = !IS_NODE$6 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
1994
+ var CHROME_BUG = !IS_NODE$4 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
1946
1995
  var FORCED$5 = CHROME_BUG || !arrayMethodIsStrict$1('reduce');
1947
1996
 
1948
1997
  // `Array.prototype.reduce` method
1949
1998
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
1950
- $$s({ target: 'Array', proto: true, forced: FORCED$5 }, {
1999
+ $$t({ target: 'Array', proto: true, forced: FORCED$5 }, {
1951
2000
  reduce: function reduce(callbackfn /* , initialValue */) {
1952
2001
  var length = arguments.length;
1953
2002
  return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
1954
2003
  }
1955
2004
  });
1956
2005
 
1957
- var $$r = _export;
1958
- var uncurryThis$z = functionUncurryThis;
2006
+ var $$s = _export;
2007
+ var uncurryThis$A = functionUncurryThis;
1959
2008
  var isArray$2 = isArray$4;
1960
2009
 
1961
- var nativeReverse = uncurryThis$z([].reverse);
2010
+ var nativeReverse = uncurryThis$A([].reverse);
1962
2011
  var test$1 = [1, 2];
1963
2012
 
1964
2013
  // `Array.prototype.reverse` method
1965
2014
  // https://tc39.es/ecma262/#sec-array.prototype.reverse
1966
2015
  // fix for Safari 12.0 bug
1967
2016
  // https://bugs.webkit.org/show_bug.cgi?id=188794
1968
- $$r({ target: 'Array', proto: true, forced: String(test$1) === String(test$1.reverse()) }, {
2017
+ $$s({ target: 'Array', proto: true, forced: String(test$1) === String(test$1.reverse()) }, {
1969
2018
  reverse: function reverse() {
1970
2019
  // eslint-disable-next-line no-self-assign -- dirty hack
1971
2020
  if (isArray$2(this)) this.length = this.length;
@@ -1981,9 +2030,9 @@ var deletePropertyOrThrow$1 = function (O, P) {
1981
2030
  if (!delete O[P]) throw new $TypeError$a('Cannot delete property ' + tryToString$4(P) + ' of ' + tryToString$4(O));
1982
2031
  };
1983
2032
 
1984
- var uncurryThis$y = functionUncurryThis;
2033
+ var uncurryThis$z = functionUncurryThis;
1985
2034
 
1986
- var arraySlice$6 = uncurryThis$y([].slice);
2035
+ var arraySlice$6 = uncurryThis$z([].slice);
1987
2036
 
1988
2037
  var arraySlice$5 = arraySlice$6;
1989
2038
 
@@ -2027,24 +2076,24 @@ var sort$1 = function (array, comparefn) {
2027
2076
 
2028
2077
  var arraySort$1 = sort$1;
2029
2078
 
2030
- var userAgent$4 = engineUserAgent;
2079
+ var userAgent$4 = environmentUserAgent;
2031
2080
 
2032
2081
  var firefox = userAgent$4.match(/firefox\/(\d+)/i);
2033
2082
 
2034
- var engineFfVersion = !!firefox && +firefox[1];
2083
+ var environmentFfVersion = !!firefox && +firefox[1];
2035
2084
 
2036
- var UA = engineUserAgent;
2085
+ var UA = environmentUserAgent;
2037
2086
 
2038
- var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
2087
+ var environmentIsIeOrEdge = /MSIE|Trident/.test(UA);
2039
2088
 
2040
- var userAgent$3 = engineUserAgent;
2089
+ var userAgent$3 = environmentUserAgent;
2041
2090
 
2042
2091
  var webkit = userAgent$3.match(/AppleWebKit\/(\d+)\./);
2043
2092
 
2044
- var engineWebkitVersion = !!webkit && +webkit[1];
2093
+ var environmentWebkitVersion = !!webkit && +webkit[1];
2045
2094
 
2046
- var $$q = _export;
2047
- var uncurryThis$x = functionUncurryThis;
2095
+ var $$r = _export;
2096
+ var uncurryThis$y = functionUncurryThis;
2048
2097
  var aCallable$8 = aCallable$c;
2049
2098
  var toObject$7 = toObject$c;
2050
2099
  var lengthOfArrayLike$b = lengthOfArrayLike$f;
@@ -2053,14 +2102,14 @@ var toString$g = toString$i;
2053
2102
  var fails$s = fails$G;
2054
2103
  var internalSort$1 = arraySort$1;
2055
2104
  var arrayMethodIsStrict = arrayMethodIsStrict$2;
2056
- var FF$1 = engineFfVersion;
2057
- var IE_OR_EDGE$1 = engineIsIeOrEdge;
2058
- var V8$2 = engineV8Version;
2059
- var WEBKIT$1 = engineWebkitVersion;
2105
+ var FF$1 = environmentFfVersion;
2106
+ var IE_OR_EDGE$1 = environmentIsIeOrEdge;
2107
+ var V8$2 = environmentV8Version;
2108
+ var WEBKIT$1 = environmentWebkitVersion;
2060
2109
 
2061
2110
  var test = [];
2062
- var nativeSort$1 = uncurryThis$x(test.sort);
2063
- var push$8 = uncurryThis$x(test.push);
2111
+ var nativeSort$1 = uncurryThis$y(test.sort);
2112
+ var push$8 = uncurryThis$y(test.push);
2064
2113
 
2065
2114
  // IE8-
2066
2115
  var FAILS_ON_UNDEFINED = fails$s(function () {
@@ -2121,7 +2170,7 @@ var getSortCompare$1 = function (comparefn) {
2121
2170
 
2122
2171
  // `Array.prototype.sort` method
2123
2172
  // https://tc39.es/ecma262/#sec-array.prototype.sort
2124
- $$q({ target: 'Array', proto: true, forced: FORCED$4 }, {
2173
+ $$r({ target: 'Array', proto: true, forced: FORCED$4 }, {
2125
2174
  sort: function sort(comparefn) {
2126
2175
  if (comparefn !== undefined) aCallable$8(comparefn);
2127
2176
 
@@ -2150,7 +2199,7 @@ $$q({ target: 'Array', proto: true, forced: FORCED$4 }, {
2150
2199
  });
2151
2200
 
2152
2201
  var DESCRIPTORS$e = descriptors;
2153
- var uncurryThis$w = functionUncurryThis;
2202
+ var uncurryThis$x = functionUncurryThis;
2154
2203
  var call$m = functionCall;
2155
2204
  var fails$r = fails$G;
2156
2205
  var objectKeys = objectKeys$2;
@@ -2163,7 +2212,7 @@ var IndexedObject$2 = indexedObject;
2163
2212
  var $assign = Object.assign;
2164
2213
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
2165
2214
  var defineProperty$3 = Object.defineProperty;
2166
- var concat$1 = uncurryThis$w([].concat);
2215
+ var concat$1 = uncurryThis$x([].concat);
2167
2216
 
2168
2217
  // `Object.assign` method
2169
2218
  // https://tc39.es/ecma262/#sec-object.assign
@@ -2206,13 +2255,13 @@ var objectAssign = !$assign || fails$r(function () {
2206
2255
  } return T;
2207
2256
  } : $assign;
2208
2257
 
2209
- var $$p = _export;
2258
+ var $$q = _export;
2210
2259
  var assign$1 = objectAssign;
2211
2260
 
2212
2261
  // `Object.assign` method
2213
2262
  // https://tc39.es/ecma262/#sec-object.assign
2214
2263
  // eslint-disable-next-line es/no-object-assign -- required for testing
2215
- $$p({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$1 }, {
2264
+ $$q({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$1 }, {
2216
2265
  assign: assign$1
2217
2266
  });
2218
2267
 
@@ -2220,12 +2269,12 @@ $$p({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$1
2220
2269
  var whitespaces$4 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
2221
2270
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
2222
2271
 
2223
- var uncurryThis$v = functionUncurryThis;
2272
+ var uncurryThis$w = functionUncurryThis;
2224
2273
  var requireObjectCoercible$7 = requireObjectCoercible$b;
2225
2274
  var toString$f = toString$i;
2226
2275
  var whitespaces$3 = whitespaces$4;
2227
2276
 
2228
- var replace$6 = uncurryThis$v(''.replace);
2277
+ var replace$6 = uncurryThis$w(''.replace);
2229
2278
  var ltrim = RegExp('^[' + whitespaces$3 + ']+');
2230
2279
  var rtrim = RegExp('(^|[^' + whitespaces$3 + '])[' + whitespaces$3 + ']+$');
2231
2280
 
@@ -2251,16 +2300,16 @@ var stringTrim = {
2251
2300
  trim: createMethod$3(3)
2252
2301
  };
2253
2302
 
2254
- var global$q = global$C;
2303
+ var globalThis$t = globalThis_1;
2255
2304
  var fails$q = fails$G;
2256
- var uncurryThis$u = functionUncurryThis;
2305
+ var uncurryThis$v = functionUncurryThis;
2257
2306
  var toString$e = toString$i;
2258
2307
  var trim$1 = stringTrim.trim;
2259
2308
  var whitespaces$2 = whitespaces$4;
2260
2309
 
2261
- var charAt$9 = uncurryThis$u(''.charAt);
2262
- var $parseFloat$1 = global$q.parseFloat;
2263
- var Symbol$2 = global$q.Symbol;
2310
+ var charAt$9 = uncurryThis$v(''.charAt);
2311
+ var $parseFloat$1 = globalThis$t.parseFloat;
2312
+ var Symbol$2 = globalThis$t.Symbol;
2264
2313
  var ITERATOR$7 = Symbol$2 && Symbol$2.iterator;
2265
2314
  var FORCED$3 = 1 / $parseFloat$1(whitespaces$2 + '-0') !== -Infinity
2266
2315
  // MS Edge 18- broken with boxed symbols
@@ -2274,45 +2323,45 @@ var numberParseFloat = FORCED$3 ? function parseFloat(string) {
2274
2323
  return result === 0 && charAt$9(trimmedString, 0) === '-' ? -0 : result;
2275
2324
  } : $parseFloat$1;
2276
2325
 
2277
- var $$o = _export;
2326
+ var $$p = _export;
2278
2327
  var $parseFloat = numberParseFloat;
2279
2328
 
2280
2329
  // `parseFloat` method
2281
2330
  // https://tc39.es/ecma262/#sec-parsefloat-string
2282
- $$o({ global: true, forced: parseFloat !== $parseFloat }, {
2331
+ $$p({ global: true, forced: parseFloat !== $parseFloat }, {
2283
2332
  parseFloat: $parseFloat
2284
2333
  });
2285
2334
 
2286
- var global$p = global$C;
2335
+ var globalThis$s = globalThis_1;
2287
2336
  var fails$p = fails$G;
2288
- var uncurryThis$t = functionUncurryThis;
2337
+ var uncurryThis$u = functionUncurryThis;
2289
2338
  var toString$d = toString$i;
2290
2339
  var trim = stringTrim.trim;
2291
2340
  var whitespaces$1 = whitespaces$4;
2292
2341
 
2293
- var $parseInt$1 = global$p.parseInt;
2294
- var Symbol$1 = global$p.Symbol;
2342
+ var $parseInt$2 = globalThis$s.parseInt;
2343
+ var Symbol$1 = globalThis$s.Symbol;
2295
2344
  var ITERATOR$6 = Symbol$1 && Symbol$1.iterator;
2296
2345
  var hex = /^[+-]?0x/i;
2297
- var exec$5 = uncurryThis$t(hex.exec);
2298
- var FORCED$2 = $parseInt$1(whitespaces$1 + '08') !== 8 || $parseInt$1(whitespaces$1 + '0x16') !== 22
2346
+ var exec$6 = uncurryThis$u(hex.exec);
2347
+ var FORCED$2 = $parseInt$2(whitespaces$1 + '08') !== 8 || $parseInt$2(whitespaces$1 + '0x16') !== 22
2299
2348
  // MS Edge 18- broken with boxed symbols
2300
- || (ITERATOR$6 && !fails$p(function () { $parseInt$1(Object(ITERATOR$6)); }));
2349
+ || (ITERATOR$6 && !fails$p(function () { $parseInt$2(Object(ITERATOR$6)); }));
2301
2350
 
2302
2351
  // `parseInt` method
2303
2352
  // https://tc39.es/ecma262/#sec-parseint-string-radix
2304
2353
  var numberParseInt = FORCED$2 ? function parseInt(string, radix) {
2305
2354
  var S = trim(toString$d(string));
2306
- return $parseInt$1(S, (radix >>> 0) || (exec$5(hex, S) ? 16 : 10));
2307
- } : $parseInt$1;
2355
+ return $parseInt$2(S, (radix >>> 0) || (exec$6(hex, S) ? 16 : 10));
2356
+ } : $parseInt$2;
2308
2357
 
2309
- var $$n = _export;
2310
- var $parseInt = numberParseInt;
2358
+ var $$o = _export;
2359
+ var $parseInt$1 = numberParseInt;
2311
2360
 
2312
2361
  // `parseInt` method
2313
2362
  // https://tc39.es/ecma262/#sec-parseint-string-radix
2314
- $$n({ global: true, forced: parseInt !== $parseInt }, {
2315
- parseInt: $parseInt
2363
+ $$o({ global: true, forced: parseInt !== $parseInt$1 }, {
2364
+ parseInt: $parseInt$1
2316
2365
  });
2317
2366
 
2318
2367
  var anObject$f = anObject$k;
@@ -2334,10 +2383,10 @@ var regexpFlags$1 = function () {
2334
2383
  };
2335
2384
 
2336
2385
  var fails$o = fails$G;
2337
- var global$o = global$C;
2386
+ var globalThis$r = globalThis_1;
2338
2387
 
2339
2388
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
2340
- var $RegExp$2 = global$o.RegExp;
2389
+ var $RegExp$2 = globalThis$r.RegExp;
2341
2390
 
2342
2391
  var UNSUPPORTED_Y$2 = fails$o(function () {
2343
2392
  var re = $RegExp$2('a', 'y');
@@ -2365,10 +2414,10 @@ var regexpStickyHelpers = {
2365
2414
  };
2366
2415
 
2367
2416
  var fails$n = fails$G;
2368
- var global$n = global$C;
2417
+ var globalThis$q = globalThis_1;
2369
2418
 
2370
2419
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
2371
- var $RegExp$1 = global$n.RegExp;
2420
+ var $RegExp$1 = globalThis$q.RegExp;
2372
2421
 
2373
2422
  var regexpUnsupportedDotAll = fails$n(function () {
2374
2423
  var re = $RegExp$1('.', 's');
@@ -2376,10 +2425,10 @@ var regexpUnsupportedDotAll = fails$n(function () {
2376
2425
  });
2377
2426
 
2378
2427
  var fails$m = fails$G;
2379
- var global$m = global$C;
2428
+ var globalThis$p = globalThis_1;
2380
2429
 
2381
2430
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
2382
- var $RegExp = global$m.RegExp;
2431
+ var $RegExp = globalThis$p.RegExp;
2383
2432
 
2384
2433
  var regexpUnsupportedNcg = fails$m(function () {
2385
2434
  var re = $RegExp('(?<a>b)', 'g');
@@ -2390,7 +2439,7 @@ var regexpUnsupportedNcg = fails$m(function () {
2390
2439
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
2391
2440
  /* eslint-disable regexp/no-useless-quantifier -- testing */
2392
2441
  var call$l = functionCall;
2393
- var uncurryThis$s = functionUncurryThis;
2442
+ var uncurryThis$t = functionUncurryThis;
2394
2443
  var toString$c = toString$i;
2395
2444
  var regexpFlags = regexpFlags$1;
2396
2445
  var stickyHelpers$1 = regexpStickyHelpers;
@@ -2403,10 +2452,10 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
2403
2452
  var nativeReplace = shared('native-string-replace', String.prototype.replace);
2404
2453
  var nativeExec = RegExp.prototype.exec;
2405
2454
  var patchedExec = nativeExec;
2406
- var charAt$8 = uncurryThis$s(''.charAt);
2407
- var indexOf = uncurryThis$s(''.indexOf);
2408
- var replace$5 = uncurryThis$s(''.replace);
2409
- var stringSlice$8 = uncurryThis$s(''.slice);
2455
+ var charAt$8 = uncurryThis$t(''.charAt);
2456
+ var indexOf = uncurryThis$t(''.indexOf);
2457
+ var replace$5 = uncurryThis$t(''.replace);
2458
+ var stringSlice$8 = uncurryThis$t(''.slice);
2410
2459
 
2411
2460
  var UPDATES_LAST_INDEX_WRONG = (function () {
2412
2461
  var re1 = /a/;
@@ -2504,13 +2553,13 @@ if (PATCH) {
2504
2553
 
2505
2554
  var regexpExec$2 = patchedExec;
2506
2555
 
2507
- var $$m = _export;
2508
- var exec$4 = regexpExec$2;
2556
+ var $$n = _export;
2557
+ var exec$5 = regexpExec$2;
2509
2558
 
2510
2559
  // `RegExp.prototype.exec` method
2511
2560
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
2512
- $$m({ target: 'RegExp', proto: true, forced: /./.exec !== exec$4 }, {
2513
- exec: exec$4
2561
+ $$n({ target: 'RegExp', proto: true, forced: /./.exec !== exec$5 }, {
2562
+ exec: exec$5
2514
2563
  });
2515
2564
 
2516
2565
  var call$k = functionCall;
@@ -2628,14 +2677,14 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2628
2677
  if (SHAM) createNonEnumerableProperty$4(RegExpPrototype[SYMBOL], 'sham', true);
2629
2678
  };
2630
2679
 
2631
- var uncurryThis$r = functionUncurryThis;
2680
+ var uncurryThis$s = functionUncurryThis;
2632
2681
  var toIntegerOrInfinity$9 = toIntegerOrInfinity$c;
2633
2682
  var toString$b = toString$i;
2634
2683
  var requireObjectCoercible$6 = requireObjectCoercible$b;
2635
2684
 
2636
- var charAt$7 = uncurryThis$r(''.charAt);
2637
- var charCodeAt$3 = uncurryThis$r(''.charCodeAt);
2638
- var stringSlice$7 = uncurryThis$r(''.slice);
2685
+ var charAt$7 = uncurryThis$s(''.charAt);
2686
+ var charCodeAt$3 = uncurryThis$s(''.charCodeAt);
2687
+ var stringSlice$7 = uncurryThis$s(''.slice);
2639
2688
 
2640
2689
  var createMethod$2 = function (CONVERT_TO_STRING) {
2641
2690
  return function ($this, pos) {
@@ -2673,13 +2722,13 @@ var advanceStringIndex$2 = function (S, index, unicode) {
2673
2722
  return index + (unicode ? charAt$6(S, index).length : 1);
2674
2723
  };
2675
2724
 
2676
- var uncurryThis$q = functionUncurryThis;
2725
+ var uncurryThis$r = functionUncurryThis;
2677
2726
  var toObject$5 = toObject$c;
2678
2727
 
2679
2728
  var floor$5 = Math.floor;
2680
- var charAt$5 = uncurryThis$q(''.charAt);
2681
- var replace$4 = uncurryThis$q(''.replace);
2682
- var stringSlice$6 = uncurryThis$q(''.slice);
2729
+ var charAt$5 = uncurryThis$r(''.charAt);
2730
+ var replace$4 = uncurryThis$r(''.replace);
2731
+ var stringSlice$6 = uncurryThis$r(''.slice);
2683
2732
  // eslint-disable-next-line redos/no-vulnerable -- safe
2684
2733
  var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
2685
2734
  var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
@@ -2742,7 +2791,7 @@ var regexpExecAbstract = function (R, S) {
2742
2791
 
2743
2792
  var apply$3 = functionApply;
2744
2793
  var call$h = functionCall;
2745
- var uncurryThis$p = functionUncurryThis;
2794
+ var uncurryThis$q = functionUncurryThis;
2746
2795
  var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
2747
2796
  var fails$j = fails$G;
2748
2797
  var anObject$c = anObject$k;
@@ -2761,10 +2810,10 @@ var wellKnownSymbol$d = wellKnownSymbol$m;
2761
2810
  var REPLACE = wellKnownSymbol$d('replace');
2762
2811
  var max = Math.max;
2763
2812
  var min$3 = Math.min;
2764
- var concat = uncurryThis$p([].concat);
2765
- var push$7 = uncurryThis$p([].push);
2766
- var stringIndexOf$1 = uncurryThis$p(''.indexOf);
2767
- var stringSlice$5 = uncurryThis$p(''.slice);
2813
+ var concat = uncurryThis$q([].concat);
2814
+ var push$7 = uncurryThis$q([].push);
2815
+ var stringIndexOf$1 = uncurryThis$q(''.indexOf);
2816
+ var stringSlice$5 = uncurryThis$q(''.slice);
2768
2817
 
2769
2818
  var maybeToString = function (it) {
2770
2819
  return it === undefined ? it : String(it);
@@ -2944,13 +2993,13 @@ var stringTrimForced = function (METHOD_NAME) {
2944
2993
  });
2945
2994
  };
2946
2995
 
2947
- var $$l = _export;
2996
+ var $$m = _export;
2948
2997
  var $trim = stringTrim.trim;
2949
2998
  var forcedStringTrimMethod = stringTrimForced;
2950
2999
 
2951
3000
  // `String.prototype.trim` method
2952
3001
  // https://tc39.es/ecma262/#sec-string.prototype.trim
2953
- $$l({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
3002
+ $$m({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
2954
3003
  trim: function trim() {
2955
3004
  return $trim(this);
2956
3005
  }
@@ -3000,7 +3049,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
3000
3049
 
3001
3050
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
3002
3051
 
3003
- var global$l = global$C;
3052
+ var globalThis$o = globalThis_1;
3004
3053
  var DOMIterables = domIterables;
3005
3054
  var DOMTokenListPrototype = domTokenListPrototype;
3006
3055
  var ArrayIteratorMethods = es_array_iterator;
@@ -3032,7 +3081,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
3032
3081
  };
3033
3082
 
3034
3083
  for (var COLLECTION_NAME in DOMIterables) {
3035
- handlePrototype(global$l[COLLECTION_NAME] && global$l[COLLECTION_NAME].prototype, COLLECTION_NAME);
3084
+ handlePrototype(globalThis$o[COLLECTION_NAME] && globalThis$o[COLLECTION_NAME].prototype, COLLECTION_NAME);
3036
3085
  }
3037
3086
 
3038
3087
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
@@ -3077,7 +3126,7 @@ var ITERATOR$4 = wellKnownSymbol$b('iterator');
3077
3126
 
3078
3127
  var urlConstructorDetection = !fails$h(function () {
3079
3128
  // eslint-disable-next-line unicorn/relative-url-style -- required for testing
3080
- var url = new URL('b?a=1&b=2&c=3', 'http://a');
3129
+ var url = new URL('b?a=1&b=2&c=3', 'https://a');
3081
3130
  var params = url.searchParams;
3082
3131
  var params2 = new URLSearchParams('a=1&a=2&b=3');
3083
3132
  var result = '';
@@ -3093,7 +3142,7 @@ var urlConstructorDetection = !fails$h(function () {
3093
3142
  return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))
3094
3143
  || (!params.size && (IS_PURE || !DESCRIPTORS$d))
3095
3144
  || !params.sort
3096
- || url.href !== 'http://a/c%20d?a=1&c=3'
3145
+ || url.href !== 'https://a/c%20d?a=1&c=3'
3097
3146
  || params.get('c') !== '3'
3098
3147
  || String(new URLSearchParams('?a=1')) !== 'a=1'
3099
3148
  || !params[ITERATOR$4]
@@ -3101,30 +3150,30 @@ var urlConstructorDetection = !fails$h(function () {
3101
3150
  || new URL('https://a@b').username !== 'a'
3102
3151
  || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
3103
3152
  // not punycoded in Edge
3104
- || new URL('http://тест').host !== 'xn--e1aybc'
3153
+ || new URL('https://тест').host !== 'xn--e1aybc'
3105
3154
  // not escaped in Chrome 62-
3106
- || new URL('http://a#б').hash !== '#%D0%B1'
3155
+ || new URL('https://a#б').hash !== '#%D0%B1'
3107
3156
  // fails in Chrome 66-
3108
3157
  || result !== 'a1c3'
3109
3158
  // throws in Safari
3110
- || new URL('http://x', undefined).host !== 'x';
3159
+ || new URL('https://x', undefined).host !== 'x';
3111
3160
  });
3112
3161
 
3113
3162
  var classofRaw = classofRaw$2;
3114
- var uncurryThis$o = functionUncurryThis;
3163
+ var uncurryThis$p = functionUncurryThis;
3115
3164
 
3116
3165
  var functionUncurryThisClause = function (fn) {
3117
3166
  // Nashorn bug:
3118
3167
  // https://github.com/zloirock/core-js/issues/1128
3119
3168
  // https://github.com/zloirock/core-js/issues/1130
3120
- if (classofRaw(fn) === 'Function') return uncurryThis$o(fn);
3169
+ if (classofRaw(fn) === 'Function') return uncurryThis$p(fn);
3121
3170
  };
3122
3171
 
3123
- var uncurryThis$n = functionUncurryThisClause;
3172
+ var uncurryThis$o = functionUncurryThisClause;
3124
3173
  var aCallable$7 = aCallable$c;
3125
3174
  var NATIVE_BIND = functionBindNative;
3126
3175
 
3127
- var bind$a = uncurryThis$n(uncurryThis$n.bind);
3176
+ var bind$a = uncurryThis$o(uncurryThis$o.bind);
3128
3177
 
3129
3178
  // optional / simple context binding
3130
3179
  var functionBindContext = function (fn, that) {
@@ -3199,17 +3248,17 @@ var isArrayIteratorMethod$3 = function (it) {
3199
3248
  return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$3] === it);
3200
3249
  };
3201
3250
 
3202
- var uncurryThis$m = functionUncurryThis;
3251
+ var uncurryThis$n = functionUncurryThis;
3203
3252
  var fails$g = fails$G;
3204
3253
  var isCallable$8 = isCallable$q;
3205
3254
  var classof$9 = classof$e;
3206
- var getBuiltIn$8 = getBuiltIn$d;
3255
+ var getBuiltIn$9 = getBuiltIn$e;
3207
3256
  var inspectSource$1 = inspectSource$3;
3208
3257
 
3209
3258
  var noop = function () { /* empty */ };
3210
- var construct = getBuiltIn$8('Reflect', 'construct');
3259
+ var construct = getBuiltIn$9('Reflect', 'construct');
3211
3260
  var constructorRegExp = /^\s*(?:class|function)\b/;
3212
- var exec$3 = uncurryThis$m(constructorRegExp.exec);
3261
+ var exec$4 = uncurryThis$n(constructorRegExp.exec);
3213
3262
  var INCORRECT_TO_STRING$2 = !constructorRegExp.test(noop);
3214
3263
 
3215
3264
  var isConstructorModern = function isConstructor(argument) {
@@ -3233,7 +3282,7 @@ var isConstructorLegacy = function isConstructor(argument) {
3233
3282
  // we can't check .prototype since constructors produced by .bind haven't it
3234
3283
  // `Function#toString` throws on some built-it function in some legacy engines
3235
3284
  // (for example, `DOMQuad` and similar in FF41-)
3236
- return INCORRECT_TO_STRING$2 || !!exec$3(constructorRegExp, inspectSource$1(argument));
3285
+ return INCORRECT_TO_STRING$2 || !!exec$4(constructorRegExp, inspectSource$1(argument));
3237
3286
  } catch (error) {
3238
3287
  return true;
3239
3288
  }
@@ -3335,7 +3384,7 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
3335
3384
  };
3336
3385
 
3337
3386
  // based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
3338
- var uncurryThis$l = functionUncurryThis;
3387
+ var uncurryThis$m = functionUncurryThis;
3339
3388
 
3340
3389
  var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
3341
3390
  var base = 36;
@@ -3351,16 +3400,16 @@ var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
3351
3400
  var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
3352
3401
  var baseMinusTMin = base - tMin;
3353
3402
 
3354
- var $RangeError$6 = RangeError;
3355
- var exec$2 = uncurryThis$l(regexSeparators.exec);
3403
+ var $RangeError$7 = RangeError;
3404
+ var exec$3 = uncurryThis$m(regexSeparators.exec);
3356
3405
  var floor$4 = Math.floor;
3357
- var fromCharCode = String.fromCharCode;
3358
- var charCodeAt$2 = uncurryThis$l(''.charCodeAt);
3359
- var join$2 = uncurryThis$l([].join);
3360
- var push$6 = uncurryThis$l([].push);
3361
- var replace$3 = uncurryThis$l(''.replace);
3362
- var split$2 = uncurryThis$l(''.split);
3363
- var toLowerCase$1 = uncurryThis$l(''.toLowerCase);
3406
+ var fromCharCode$2 = String.fromCharCode;
3407
+ var charCodeAt$2 = uncurryThis$m(''.charCodeAt);
3408
+ var join$3 = uncurryThis$m([].join);
3409
+ var push$6 = uncurryThis$m([].push);
3410
+ var replace$3 = uncurryThis$m(''.replace);
3411
+ var split$2 = uncurryThis$m(''.split);
3412
+ var toLowerCase$1 = uncurryThis$m(''.toLowerCase);
3364
3413
 
3365
3414
  /**
3366
3415
  * Creates an array containing the numeric code points of each Unicode
@@ -3440,7 +3489,7 @@ var encode = function (input) {
3440
3489
  for (i = 0; i < input.length; i++) {
3441
3490
  currentValue = input[i];
3442
3491
  if (currentValue < 0x80) {
3443
- push$6(output, fromCharCode(currentValue));
3492
+ push$6(output, fromCharCode$2(currentValue));
3444
3493
  }
3445
3494
  }
3446
3495
 
@@ -3466,7 +3515,7 @@ var encode = function (input) {
3466
3515
  // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
3467
3516
  var handledCPCountPlusOne = handledCPCount + 1;
3468
3517
  if (m - n > floor$4((maxInt - delta) / handledCPCountPlusOne)) {
3469
- throw new $RangeError$6(OVERFLOW_ERROR);
3518
+ throw new $RangeError$7(OVERFLOW_ERROR);
3470
3519
  }
3471
3520
 
3472
3521
  delta += (m - n) * handledCPCountPlusOne;
@@ -3475,7 +3524,7 @@ var encode = function (input) {
3475
3524
  for (i = 0; i < input.length; i++) {
3476
3525
  currentValue = input[i];
3477
3526
  if (currentValue < n && ++delta > maxInt) {
3478
- throw new $RangeError$6(OVERFLOW_ERROR);
3527
+ throw new $RangeError$7(OVERFLOW_ERROR);
3479
3528
  }
3480
3529
  if (currentValue === n) {
3481
3530
  // Represent delta as a generalized variable-length integer.
@@ -3486,12 +3535,12 @@ var encode = function (input) {
3486
3535
  if (q < t) break;
3487
3536
  var qMinusT = q - t;
3488
3537
  var baseMinusT = base - t;
3489
- push$6(output, fromCharCode(digitToBasic(t + qMinusT % baseMinusT)));
3538
+ push$6(output, fromCharCode$2(digitToBasic(t + qMinusT % baseMinusT)));
3490
3539
  q = floor$4(qMinusT / baseMinusT);
3491
3540
  k += base;
3492
3541
  }
3493
3542
 
3494
- push$6(output, fromCharCode(digitToBasic(q)));
3543
+ push$6(output, fromCharCode$2(digitToBasic(q)));
3495
3544
  bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);
3496
3545
  delta = 0;
3497
3546
  handledCPCount++;
@@ -3501,7 +3550,7 @@ var encode = function (input) {
3501
3550
  delta++;
3502
3551
  n++;
3503
3552
  }
3504
- return join$2(output, '');
3553
+ return join$3(output, '');
3505
3554
  };
3506
3555
 
3507
3556
  var stringPunycodeToAscii = function (input) {
@@ -3510,9 +3559,9 @@ var stringPunycodeToAscii = function (input) {
3510
3559
  var i, label;
3511
3560
  for (i = 0; i < labels.length; i++) {
3512
3561
  label = labels[i];
3513
- push$6(encoded, exec$2(regexNonASCII, label) ? 'xn--' + encode(label) : label);
3562
+ push$6(encoded, exec$3(regexNonASCII, label) ? 'xn--' + encode(label) : label);
3514
3563
  }
3515
- return join$2(encoded, '.');
3564
+ return join$3(encoded, '.');
3516
3565
  };
3517
3566
 
3518
3567
  var $TypeError$6 = TypeError;
@@ -3522,7 +3571,39 @@ var validateArgumentsLength$6 = function (passed, required) {
3522
3571
  return passed;
3523
3572
  };
3524
3573
 
3525
- var global$k = global$C;
3574
+ var $$l = _export;
3575
+ var uncurryThis$l = functionUncurryThis;
3576
+ var toAbsoluteIndex$2 = toAbsoluteIndex$4;
3577
+
3578
+ var $RangeError$6 = RangeError;
3579
+ var fromCharCode$1 = String.fromCharCode;
3580
+ // eslint-disable-next-line es/no-string-fromcodepoint -- required for testing
3581
+ var $fromCodePoint = String.fromCodePoint;
3582
+ var join$2 = uncurryThis$l([].join);
3583
+
3584
+ // length should be 1, old FF problem
3585
+ var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length !== 1;
3586
+
3587
+ // `String.fromCodePoint` method
3588
+ // https://tc39.es/ecma262/#sec-string.fromcodepoint
3589
+ $$l({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
3590
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
3591
+ fromCodePoint: function fromCodePoint(x) {
3592
+ var elements = [];
3593
+ var length = arguments.length;
3594
+ var i = 0;
3595
+ var code;
3596
+ while (length > i) {
3597
+ code = +arguments[i++];
3598
+ if (toAbsoluteIndex$2(code, 0x10FFFF) !== code) throw new $RangeError$6(code + ' is not a valid code point');
3599
+ elements[i] = code < 0x10000
3600
+ ? fromCharCode$1(code)
3601
+ : fromCharCode$1(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00);
3602
+ } return join$2(elements, '');
3603
+ }
3604
+ });
3605
+
3606
+ var globalThis$n = globalThis_1;
3526
3607
  var DESCRIPTORS$b = descriptors;
3527
3608
 
3528
3609
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -3530,8 +3611,8 @@ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
3530
3611
 
3531
3612
  // Avoid NodeJS experimental warning
3532
3613
  var safeGetBuiltIn$2 = function (name) {
3533
- if (!DESCRIPTORS$b) return global$k[name];
3534
- var descriptor = getOwnPropertyDescriptor$1(global$k, name);
3614
+ if (!DESCRIPTORS$b) return globalThis$n[name];
3615
+ var descriptor = getOwnPropertyDescriptor$1(globalThis$n, name);
3535
3616
  return descriptor && descriptor.value;
3536
3617
  };
3537
3618
 
@@ -3544,9 +3625,11 @@ var defineBuiltIns$2 = function (target, src, options) {
3544
3625
 
3545
3626
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
3546
3627
 
3628
+
3547
3629
  var $$k = _export;
3548
- var global$j = global$C;
3630
+ var globalThis$m = globalThis_1;
3549
3631
  var safeGetBuiltIn$1 = safeGetBuiltIn$2;
3632
+ var getBuiltIn$8 = getBuiltIn$e;
3550
3633
  var call$c = functionCall;
3551
3634
  var uncurryThis$k = functionUncurryThis;
3552
3635
  var DESCRIPTORS$a = descriptors;
@@ -3586,10 +3669,11 @@ var NativeRequest = safeGetBuiltIn$1('Request');
3586
3669
  var Headers$1 = safeGetBuiltIn$1('Headers');
3587
3670
  var RequestPrototype = NativeRequest && NativeRequest.prototype;
3588
3671
  var HeadersPrototype = Headers$1 && Headers$1.prototype;
3589
- var RegExp$1 = global$j.RegExp;
3590
- var TypeError$5 = global$j.TypeError;
3591
- var decodeURIComponent = global$j.decodeURIComponent;
3592
- var encodeURIComponent$1 = global$j.encodeURIComponent;
3672
+ var TypeError$5 = globalThis$m.TypeError;
3673
+ var encodeURIComponent$1 = globalThis$m.encodeURIComponent;
3674
+ var fromCharCode = String.fromCharCode;
3675
+ var fromCodePoint = getBuiltIn$8('String', 'fromCodePoint');
3676
+ var $parseInt = parseInt;
3593
3677
  var charAt$3 = uncurryThis$k(''.charAt);
3594
3678
  var join$1 = uncurryThis$k([].join);
3595
3679
  var push$5 = uncurryThis$k([].push);
@@ -3598,33 +3682,125 @@ var shift$1 = uncurryThis$k([].shift);
3598
3682
  var splice = uncurryThis$k([].splice);
3599
3683
  var split$1 = uncurryThis$k(''.split);
3600
3684
  var stringSlice$4 = uncurryThis$k(''.slice);
3685
+ var exec$2 = uncurryThis$k(/./.exec);
3601
3686
 
3602
3687
  var plus = /\+/g;
3603
- var sequences = Array(4);
3688
+ var FALLBACK_REPLACER = '\uFFFD';
3689
+ var VALID_HEX = /^[0-9a-f]+$/i;
3690
+
3691
+ var parseHexOctet = function (string, start) {
3692
+ var substr = stringSlice$4(string, start, start + 2);
3693
+ if (!exec$2(VALID_HEX, substr)) return NaN;
3604
3694
 
3605
- var percentSequence = function (bytes) {
3606
- return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp$1('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
3695
+ return $parseInt(substr, 16);
3607
3696
  };
3608
3697
 
3609
- var percentDecode = function (sequence) {
3610
- try {
3611
- return decodeURIComponent(sequence);
3612
- } catch (error) {
3613
- return sequence;
3698
+ var getLeadingOnes = function (octet) {
3699
+ var count = 0;
3700
+ for (var mask = 0x80; mask > 0 && (octet & mask) !== 0; mask >>= 1) {
3701
+ count++;
3614
3702
  }
3703
+ return count;
3615
3704
  };
3616
3705
 
3617
- var deserialize = function (it) {
3618
- var result = replace$2(it, plus, ' ');
3619
- var bytes = 4;
3620
- try {
3621
- return decodeURIComponent(result);
3622
- } catch (error) {
3623
- while (bytes) {
3624
- result = replace$2(result, percentSequence(bytes--), percentDecode);
3706
+ var utf8Decode = function (octets) {
3707
+ var codePoint = null;
3708
+
3709
+ switch (octets.length) {
3710
+ case 1:
3711
+ codePoint = octets[0];
3712
+ break;
3713
+ case 2:
3714
+ codePoint = (octets[0] & 0x1F) << 6 | (octets[1] & 0x3F);
3715
+ break;
3716
+ case 3:
3717
+ codePoint = (octets[0] & 0x0F) << 12 | (octets[1] & 0x3F) << 6 | (octets[2] & 0x3F);
3718
+ break;
3719
+ case 4:
3720
+ codePoint = (octets[0] & 0x07) << 18 | (octets[1] & 0x3F) << 12 | (octets[2] & 0x3F) << 6 | (octets[3] & 0x3F);
3721
+ break;
3722
+ }
3723
+
3724
+ return codePoint > 0x10FFFF ? null : codePoint;
3725
+ };
3726
+
3727
+ var decode = function (input) {
3728
+ input = replace$2(input, plus, ' ');
3729
+ var length = input.length;
3730
+ var result = '';
3731
+ var i = 0;
3732
+
3733
+ while (i < length) {
3734
+ var decodedChar = charAt$3(input, i);
3735
+
3736
+ if (decodedChar === '%') {
3737
+ if (charAt$3(input, i + 1) === '%' || i + 3 > length) {
3738
+ result += '%';
3739
+ i++;
3740
+ continue;
3741
+ }
3742
+
3743
+ var octet = parseHexOctet(input, i + 1);
3744
+
3745
+ // eslint-disable-next-line no-self-compare -- NaN check
3746
+ if (octet !== octet) {
3747
+ result += decodedChar;
3748
+ i++;
3749
+ continue;
3750
+ }
3751
+
3752
+ i += 2;
3753
+ var byteSequenceLength = getLeadingOnes(octet);
3754
+
3755
+ if (byteSequenceLength === 0) {
3756
+ decodedChar = fromCharCode(octet);
3757
+ } else {
3758
+ if (byteSequenceLength === 1 || byteSequenceLength > 4) {
3759
+ result += FALLBACK_REPLACER;
3760
+ i++;
3761
+ continue;
3762
+ }
3763
+
3764
+ var octets = [octet];
3765
+ var sequenceIndex = 1;
3766
+
3767
+ while (sequenceIndex < byteSequenceLength) {
3768
+ i++;
3769
+ if (i + 3 > length || charAt$3(input, i) !== '%') break;
3770
+
3771
+ var nextByte = parseHexOctet(input, i + 1);
3772
+
3773
+ // eslint-disable-next-line no-self-compare -- NaN check
3774
+ if (nextByte !== nextByte) {
3775
+ i += 3;
3776
+ break;
3777
+ }
3778
+ if (nextByte > 191 || nextByte < 128) break;
3779
+
3780
+ push$5(octets, nextByte);
3781
+ i += 2;
3782
+ sequenceIndex++;
3783
+ }
3784
+
3785
+ if (octets.length !== byteSequenceLength) {
3786
+ result += FALLBACK_REPLACER;
3787
+ continue;
3788
+ }
3789
+
3790
+ var codePoint = utf8Decode(octets);
3791
+ if (codePoint === null) {
3792
+ result += FALLBACK_REPLACER;
3793
+ } else {
3794
+ decodedChar = fromCodePoint(codePoint);
3795
+ }
3796
+ }
3625
3797
  }
3626
- return result;
3798
+
3799
+ result += decodedChar;
3800
+ i++;
3627
3801
  }
3802
+
3803
+ return result;
3628
3804
  };
3629
3805
 
3630
3806
  var find = /[!'()~]|%20/g;
@@ -3658,7 +3834,7 @@ var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params
3658
3834
  var target = state.target;
3659
3835
  var index = state.index++;
3660
3836
  if (!target || index >= target.length) {
3661
- state.target = undefined;
3837
+ state.target = null;
3662
3838
  return createIterResultObject(undefined, true);
3663
3839
  }
3664
3840
  var entry = target[index];
@@ -3717,8 +3893,8 @@ URLSearchParamsState.prototype = {
3717
3893
  if (attribute.length) {
3718
3894
  entry = split$1(attribute, '=');
3719
3895
  push$5(entries, {
3720
- key: deserialize(shift$1(entry)),
3721
- value: deserialize(join$1(entry, '='))
3896
+ key: decode(shift$1(entry)),
3897
+ value: decode(join$1(entry, '='))
3722
3898
  });
3723
3899
  }
3724
3900
  }
@@ -3963,7 +4139,7 @@ var web_urlSearchParams_constructor = {
3963
4139
  var $$j = _export;
3964
4140
  var DESCRIPTORS$9 = descriptors;
3965
4141
  var USE_NATIVE_URL = urlConstructorDetection;
3966
- var global$i = global$C;
4142
+ var globalThis$l = globalThis_1;
3967
4143
  var bind$7 = functionBindContext;
3968
4144
  var uncurryThis$j = functionUncurryThis;
3969
4145
  var defineBuiltIn$6 = defineBuiltIn$e;
@@ -3986,9 +4162,9 @@ var getInternalURLState = InternalStateModule$5.getterFor('URL');
3986
4162
  var URLSearchParams$1 = URLSearchParamsModule.URLSearchParams;
3987
4163
  var getInternalSearchParamsState = URLSearchParamsModule.getState;
3988
4164
 
3989
- var NativeURL = global$i.URL;
3990
- var TypeError$4 = global$i.TypeError;
3991
- var parseInt$1 = global$i.parseInt;
4165
+ var NativeURL = globalThis$l.URL;
4166
+ var TypeError$4 = globalThis$l.TypeError;
4167
+ var parseInt$1 = globalThis$l.parseInt;
3992
4168
  var floor$3 = Math.floor;
3993
4169
  var pow$2 = Math.pow;
3994
4170
  var charAt$2 = uncurryThis$j(''.charAt);
@@ -4162,25 +4338,25 @@ var findLongestZeroSequence = function (ipv6) {
4162
4338
  ++currLength;
4163
4339
  }
4164
4340
  }
4165
- if (currLength > maxLength) {
4166
- maxIndex = currStart;
4167
- maxLength = currLength;
4168
- }
4169
- return maxIndex;
4341
+ return currLength > maxLength ? currStart : maxIndex;
4170
4342
  };
4171
4343
 
4172
4344
  // https://url.spec.whatwg.org/#host-serializing
4173
4345
  var serializeHost = function (host) {
4174
4346
  var result, index, compress, ignore0;
4347
+
4175
4348
  // ipv4
4176
4349
  if (typeof host == 'number') {
4177
4350
  result = [];
4178
4351
  for (index = 0; index < 4; index++) {
4179
4352
  unshift(result, host % 256);
4180
4353
  host = floor$3(host / 256);
4181
- } return join(result, '.');
4354
+ }
4355
+ return join(result, '.');
4356
+ }
4357
+
4182
4358
  // ipv6
4183
- } else if (typeof host == 'object') {
4359
+ if (typeof host == 'object') {
4184
4360
  result = '';
4185
4361
  compress = findLongestZeroSequence(host);
4186
4362
  for (index = 0; index < 8; index++) {
@@ -4195,7 +4371,9 @@ var serializeHost = function (host) {
4195
4371
  }
4196
4372
  }
4197
4373
  return '[' + result + ']';
4198
- } return host;
4374
+ }
4375
+
4376
+ return host;
4199
4377
  };
4200
4378
 
4201
4379
  var C0ControlPercentEncodeSet = {};
@@ -5115,56 +5293,6 @@ if (DESCRIPTORS$8 && !('size' in URLSearchParamsPrototype)) {
5115
5293
  });
5116
5294
  }
5117
5295
 
5118
- /******************************************************************************
5119
- Copyright (c) Microsoft Corporation.
5120
-
5121
- Permission to use, copy, modify, and/or distribute this software for any
5122
- purpose with or without fee is hereby granted.
5123
-
5124
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
5125
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
5126
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
5127
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
5128
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
5129
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
5130
- PERFORMANCE OF THIS SOFTWARE.
5131
- ***************************************************************************** */
5132
- /* global Reflect, Promise, SuppressedError, Symbol */
5133
-
5134
-
5135
- function __rest(s, e) {
5136
- var t = {};
5137
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5138
- t[p] = s[p];
5139
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
5140
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
5141
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
5142
- t[p[i]] = s[p[i]];
5143
- }
5144
- return t;
5145
- }
5146
-
5147
- function __awaiter(thisArg, _arguments, P, generator) {
5148
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5149
- return new (P || (P = Promise))(function (resolve, reject) {
5150
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5151
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
5152
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
5153
- step((generator = generator.apply(thisArg, _arguments || [])).next());
5154
- });
5155
- }
5156
-
5157
- function __classPrivateFieldGet(receiver, state, kind, f) {
5158
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
5159
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
5160
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5161
- }
5162
-
5163
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
5164
- var e = new Error(message);
5165
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
5166
- };
5167
-
5168
5296
  /* *
5169
5297
  * Licensed under the Apache License, Version 2.0 (the "License");
5170
5298
  * you may not use this file except in compliance with the License.
@@ -5478,14 +5606,14 @@ const addDimensionsForLayer = layerObjectFromWMS => {
5478
5606
  return dimensionList;
5479
5607
  };
5480
5608
  const addBoundingBoxForLayer = layerObjectFromWMS => {
5481
- var _a, _b, _c, _d;
5482
5609
  if (layerObjectFromWMS.EX_GeographicBoundingBox) {
5610
+ var _layerBbox$eastBoundL, _layerBbox$westBoundL, _layerBbox$northBound, _layerBbox$southBound;
5483
5611
  const layerBbox = layerObjectFromWMS.EX_GeographicBoundingBox;
5484
5612
  return {
5485
- east: (_a = layerBbox.eastBoundLongitude) === null || _a === void 0 ? void 0 : _a.value,
5486
- west: (_b = layerBbox.westBoundLongitude) === null || _b === void 0 ? void 0 : _b.value,
5487
- north: (_c = layerBbox.northBoundLatitude) === null || _c === void 0 ? void 0 : _c.value,
5488
- south: (_d = layerBbox.southBoundLatitude) === null || _d === void 0 ? void 0 : _d.value
5613
+ east: (_layerBbox$eastBoundL = layerBbox.eastBoundLongitude) == null ? void 0 : _layerBbox$eastBoundL.value,
5614
+ west: (_layerBbox$westBoundL = layerBbox.westBoundLongitude) == null ? void 0 : _layerBbox$westBoundL.value,
5615
+ north: (_layerBbox$northBound = layerBbox.northBoundLatitude) == null ? void 0 : _layerBbox$northBound.value,
5616
+ south: (_layerBbox$southBound = layerBbox.southBoundLatitude) == null ? void 0 : _layerBbox$southBound.value
5489
5617
  };
5490
5618
  }
5491
5619
  if (layerObjectFromWMS.LatLonBoundingBox) {
@@ -5528,10 +5656,8 @@ function sortArrayOfObjectsByKey(array, key) {
5528
5656
  * @returns Flat array of layers as LayerProps[]
5529
5657
  */
5530
5658
  const flattenLayerTree = layerTree => {
5531
- const omit = (prop, _a) => {
5532
- var _b = prop;
5533
- _a[_b];
5534
- var rest = __rest(_a, [_b + ""]);
5659
+ const omit = (prop, _ref) => {
5660
+ let rest = _objectWithoutPropertiesLoose(_ref, [prop].map(_toPropertyKey));
5535
5661
  return rest;
5536
5662
  };
5537
5663
  const recurseLayerTree = data => {
@@ -5553,7 +5679,7 @@ const flattenLayerTree = layerTree => {
5553
5679
  * @returns
5554
5680
  */
5555
5681
  const makeNodeLayerFromWMSGetCapabilityLayer = (layer, path = [], isleaf = false, nestedLayerPath = []) => {
5556
- var _a, _b;
5682
+ var _layer$KeywordList$Ke, _layer$KeywordList;
5557
5683
  const geographicBoundingBox = nestedLayerPath.reverse().reduce((p, c) => {
5558
5684
  return p || c.geographicBoundingBox;
5559
5685
  }, addBoundingBoxForLayer(layer));
@@ -5592,7 +5718,7 @@ const makeNodeLayerFromWMSGetCapabilityLayer = (layer, path = [], isleaf = false
5592
5718
  title: layerTitle || 'Layer',
5593
5719
  leaf: isleaf,
5594
5720
  path,
5595
- keywords: toArray((_b = (_a = layer.KeywordList) === null || _a === void 0 ? void 0 : _a.Keyword) !== null && _b !== void 0 ? _b : []).map(keyword => keyword.value).filter(Boolean),
5721
+ keywords: toArray((_layer$KeywordList$Ke = (_layer$KeywordList = layer.KeywordList) == null ? void 0 : _layer$KeywordList.Keyword) != null ? _layer$KeywordList$Ke : []).map(keyword => keyword.value).filter(Boolean),
5596
5722
  abstract: layer.Abstract ? layer.Abstract.value : undefined,
5597
5723
  styles,
5598
5724
  dimensions,
@@ -5612,7 +5738,7 @@ const buildLayerTreeFromNestedWMSLayer = (wmsLayer, nestedPath = [], nestedLayer
5612
5738
  const isleaf = wmsLayer.Name && !wmsLayer.Layer;
5613
5739
  const layerProps = makeNodeLayerFromWMSGetCapabilityLayer(wmsLayer, nestedPath, isleaf, nestedLayerPath);
5614
5740
  const pathName = wmsLayer.Title && wmsLayer.Title.value || '';
5615
- const layerTree = Object.assign(Object.assign({}, layerProps), {
5741
+ const layerTree = Object.assign({}, layerProps, {
5616
5742
  children: []
5617
5743
  });
5618
5744
  if (wmsLayer.Layer) {
@@ -5649,7 +5775,7 @@ const WMServiceStoreXML2JSONRequest = {
5649
5775
  proxy: 'Check WMJSGlobals WMJSServiceStoreXML2JSONRequest'
5650
5776
  };
5651
5777
 
5652
- var getBuiltIn$7 = getBuiltIn$d;
5778
+ var getBuiltIn$7 = getBuiltIn$e;
5653
5779
  var defineBuiltInAccessor$5 = defineBuiltInAccessor$9;
5654
5780
  var wellKnownSymbol$7 = wellKnownSymbol$m;
5655
5781
  var DESCRIPTORS$7 = descriptors;
@@ -5687,18 +5813,18 @@ var SPECIES$2 = wellKnownSymbol$6('species');
5687
5813
 
5688
5814
  // `SpeciesConstructor` abstract operation
5689
5815
  // https://tc39.es/ecma262/#sec-speciesconstructor
5690
- var speciesConstructor$3 = function (O, defaultConstructor) {
5816
+ var speciesConstructor$2 = function (O, defaultConstructor) {
5691
5817
  var C = anObject$6(O).constructor;
5692
5818
  var S;
5693
5819
  return C === undefined || isNullOrUndefined$1(S = anObject$6(C)[SPECIES$2]) ? defaultConstructor : aConstructor$1(S);
5694
5820
  };
5695
5821
 
5696
- var userAgent$2 = engineUserAgent;
5822
+ var userAgent$2 = environmentUserAgent;
5697
5823
 
5698
5824
  // eslint-disable-next-line redos/no-vulnerable -- safe
5699
- var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
5825
+ var environmentIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
5700
5826
 
5701
- var global$h = global$C;
5827
+ var globalThis$k = globalThis_1;
5702
5828
  var apply$2 = functionApply;
5703
5829
  var bind$6 = functionBindContext;
5704
5830
  var isCallable$6 = isCallable$q;
@@ -5708,16 +5834,16 @@ var html = html$2;
5708
5834
  var arraySlice$3 = arraySlice$6;
5709
5835
  var createElement = documentCreateElement$2;
5710
5836
  var validateArgumentsLength$1 = validateArgumentsLength$6;
5711
- var IS_IOS$1 = engineIsIos;
5712
- var IS_NODE$5 = engineIsNode;
5713
-
5714
- var set$1 = global$h.setImmediate;
5715
- var clear = global$h.clearImmediate;
5716
- var process$2 = global$h.process;
5717
- var Dispatch = global$h.Dispatch;
5718
- var Function$1 = global$h.Function;
5719
- var MessageChannel = global$h.MessageChannel;
5720
- var String$1 = global$h.String;
5837
+ var IS_IOS$1 = environmentIsIos;
5838
+ var IS_NODE$3 = environmentIsNode;
5839
+
5840
+ var set$1 = globalThis$k.setImmediate;
5841
+ var clear = globalThis$k.clearImmediate;
5842
+ var process$2 = globalThis$k.process;
5843
+ var Dispatch = globalThis$k.Dispatch;
5844
+ var Function$1 = globalThis$k.Function;
5845
+ var MessageChannel = globalThis$k.MessageChannel;
5846
+ var String$1 = globalThis$k.String;
5721
5847
  var counter = 0;
5722
5848
  var queue$2 = {};
5723
5849
  var ONREADYSTATECHANGE = 'onreadystatechange';
@@ -5725,7 +5851,7 @@ var $location, defer, channel$1, port;
5725
5851
 
5726
5852
  fails$f(function () {
5727
5853
  // Deno throws a ReferenceError on `location` access without `--location` flag
5728
- $location = global$h.location;
5854
+ $location = globalThis$k.location;
5729
5855
  });
5730
5856
 
5731
5857
  var run = function (id) {
@@ -5748,7 +5874,7 @@ var eventListener = function (event) {
5748
5874
 
5749
5875
  var globalPostMessageDefer = function (id) {
5750
5876
  // old engines have not location.origin
5751
- global$h.postMessage(String$1(id), $location.protocol + '//' + $location.host);
5877
+ globalThis$k.postMessage(String$1(id), $location.protocol + '//' + $location.host);
5752
5878
  };
5753
5879
 
5754
5880
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
@@ -5767,7 +5893,7 @@ if (!set$1 || !clear) {
5767
5893
  delete queue$2[id];
5768
5894
  };
5769
5895
  // Node.js 0.8-
5770
- if (IS_NODE$5) {
5896
+ if (IS_NODE$3) {
5771
5897
  defer = function (id) {
5772
5898
  process$2.nextTick(runner(id));
5773
5899
  };
@@ -5786,14 +5912,14 @@ if (!set$1 || !clear) {
5786
5912
  // Browsers with postMessage, skip WebWorkers
5787
5913
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
5788
5914
  } else if (
5789
- global$h.addEventListener &&
5790
- isCallable$6(global$h.postMessage) &&
5791
- !global$h.importScripts &&
5915
+ globalThis$k.addEventListener &&
5916
+ isCallable$6(globalThis$k.postMessage) &&
5917
+ !globalThis$k.importScripts &&
5792
5918
  $location && $location.protocol !== 'file:' &&
5793
5919
  !fails$f(globalPostMessageDefer)
5794
5920
  ) {
5795
5921
  defer = globalPostMessageDefer;
5796
- global$h.addEventListener('message', eventListener, false);
5922
+ globalThis$k.addEventListener('message', eventListener, false);
5797
5923
  // IE8-
5798
5924
  } else if (ONREADYSTATECHANGE in createElement('script')) {
5799
5925
  defer = function (id) {
@@ -5840,28 +5966,28 @@ Queue$2.prototype = {
5840
5966
 
5841
5967
  var queue$1 = Queue$2;
5842
5968
 
5843
- var userAgent$1 = engineUserAgent;
5969
+ var userAgent$1 = environmentUserAgent;
5844
5970
 
5845
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
5971
+ var environmentIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
5846
5972
 
5847
- var userAgent = engineUserAgent;
5973
+ var userAgent = environmentUserAgent;
5848
5974
 
5849
- var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
5975
+ var environmentIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
5850
5976
 
5851
- var global$g = global$C;
5977
+ var globalThis$j = globalThis_1;
5852
5978
  var safeGetBuiltIn = safeGetBuiltIn$2;
5853
5979
  var bind$5 = functionBindContext;
5854
5980
  var macrotask = task$1.set;
5855
5981
  var Queue$1 = queue$1;
5856
- var IS_IOS = engineIsIos;
5857
- var IS_IOS_PEBBLE = engineIsIosPebble;
5858
- var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
5859
- var IS_NODE$4 = engineIsNode;
5860
-
5861
- var MutationObserver = global$g.MutationObserver || global$g.WebKitMutationObserver;
5862
- var document$2 = global$g.document;
5863
- var process$1 = global$g.process;
5864
- var Promise$1 = global$g.Promise;
5982
+ var IS_IOS = environmentIsIos;
5983
+ var IS_IOS_PEBBLE = environmentIsIosPebble;
5984
+ var IS_WEBOS_WEBKIT = environmentIsWebosWebkit;
5985
+ var IS_NODE$2 = environmentIsNode;
5986
+
5987
+ var MutationObserver = globalThis$j.MutationObserver || globalThis$j.WebKitMutationObserver;
5988
+ var document$2 = globalThis$j.document;
5989
+ var process$1 = globalThis$j.process;
5990
+ var Promise$1 = globalThis$j.Promise;
5865
5991
  var microtask$1 = safeGetBuiltIn('queueMicrotask');
5866
5992
  var notify$1, toggle, node, promise, then;
5867
5993
 
@@ -5871,7 +5997,7 @@ if (!microtask$1) {
5871
5997
 
5872
5998
  var flush = function () {
5873
5999
  var parent, fn;
5874
- if (IS_NODE$4 && (parent = process$1.domain)) parent.exit();
6000
+ if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
5875
6001
  while (fn = queue.get()) try {
5876
6002
  fn();
5877
6003
  } catch (error) {
@@ -5883,7 +6009,7 @@ if (!microtask$1) {
5883
6009
 
5884
6010
  // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
5885
6011
  // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
5886
- if (!IS_IOS && !IS_NODE$4 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
6012
+ if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
5887
6013
  toggle = true;
5888
6014
  node = document$2.createTextNode('');
5889
6015
  new MutationObserver(flush).observe(node, { characterData: true });
@@ -5901,7 +6027,7 @@ if (!microtask$1) {
5901
6027
  then(flush);
5902
6028
  };
5903
6029
  // Node.js without promises
5904
- } else if (IS_NODE$4) {
6030
+ } else if (IS_NODE$2) {
5905
6031
  notify$1 = function () {
5906
6032
  process$1.nextTick(flush);
5907
6033
  };
@@ -5913,7 +6039,7 @@ if (!microtask$1) {
5913
6039
  // - setTimeout
5914
6040
  } else {
5915
6041
  // `webpack` dev server bug on IE global methods - use bind(fn, global)
5916
- macrotask = bind$5(macrotask, global$g);
6042
+ macrotask = bind$5(macrotask, globalThis$j);
5917
6043
  notify$1 = function () {
5918
6044
  macrotask(flush);
5919
6045
  };
@@ -5942,34 +6068,23 @@ var perform$3 = function (exec) {
5942
6068
  }
5943
6069
  };
5944
6070
 
5945
- var global$f = global$C;
5946
-
5947
- var promiseNativeConstructor = global$f.Promise;
6071
+ var globalThis$i = globalThis_1;
5948
6072
 
5949
- /* global Deno -- Deno case */
5950
- var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
6073
+ var promiseNativeConstructor = globalThis$i.Promise;
5951
6074
 
5952
- var IS_DENO$2 = engineIsDeno;
5953
- var IS_NODE$3 = engineIsNode;
5954
-
5955
- var engineIsBrowser = !IS_DENO$2 && !IS_NODE$3
5956
- && typeof window == 'object'
5957
- && typeof document == 'object';
5958
-
5959
- var global$e = global$C;
6075
+ var globalThis$h = globalThis_1;
5960
6076
  var NativePromiseConstructor$3 = promiseNativeConstructor;
5961
6077
  var isCallable$5 = isCallable$q;
5962
6078
  var isForced = isForced_1;
5963
6079
  var inspectSource = inspectSource$3;
5964
6080
  var wellKnownSymbol$5 = wellKnownSymbol$m;
5965
- var IS_BROWSER$1 = engineIsBrowser;
5966
- var IS_DENO$1 = engineIsDeno;
5967
- var V8_VERSION = engineV8Version;
6081
+ var ENVIRONMENT$1 = environment;
6082
+ var V8_VERSION = environmentV8Version;
5968
6083
 
5969
6084
  NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
5970
6085
  var SPECIES$1 = wellKnownSymbol$5('species');
5971
6086
  var SUBCLASSING = false;
5972
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$5(global$e.PromiseRejectionEvent);
6087
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$5(globalThis$h.PromiseRejectionEvent);
5973
6088
 
5974
6089
  var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
5975
6090
  var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
@@ -5992,7 +6107,7 @@ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
5992
6107
  SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
5993
6108
  if (!SUBCLASSING) return true;
5994
6109
  // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
5995
- } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER$1 || IS_DENO$1) && !NATIVE_PROMISE_REJECTION_EVENT$1;
6110
+ } return !GLOBAL_CORE_JS_PROMISE && (ENVIRONMENT$1 === 'BROWSER' || ENVIRONMENT$1 === 'DENO') && !NATIVE_PROMISE_REJECTION_EVENT$1;
5996
6111
  });
5997
6112
 
5998
6113
  var promiseConstructorDetection = {
@@ -6025,8 +6140,8 @@ newPromiseCapability$2.f = function (C) {
6025
6140
  };
6026
6141
 
6027
6142
  var $$h = _export;
6028
- var IS_NODE$2 = engineIsNode;
6029
- var global$d = global$C;
6143
+ var IS_NODE$1 = environmentIsNode;
6144
+ var globalThis$g = globalThis_1;
6030
6145
  var call$a = functionCall;
6031
6146
  var defineBuiltIn$3 = defineBuiltIn$e;
6032
6147
  var setPrototypeOf$3 = objectSetPrototypeOf;
@@ -6036,7 +6151,7 @@ var aCallable$4 = aCallable$c;
6036
6151
  var isCallable$4 = isCallable$q;
6037
6152
  var isObject$6 = isObject$i;
6038
6153
  var anInstance$4 = anInstance$7;
6039
- var speciesConstructor$2 = speciesConstructor$3;
6154
+ var speciesConstructor$1 = speciesConstructor$2;
6040
6155
  var task = task$1.set;
6041
6156
  var microtask = microtask_1;
6042
6157
  var hostReportErrors = hostReportErrors$1;
@@ -6056,13 +6171,13 @@ var setInternalState$3 = InternalStateModule$4.set;
6056
6171
  var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
6057
6172
  var PromiseConstructor = NativePromiseConstructor$2;
6058
6173
  var PromisePrototype = NativePromisePrototype$1;
6059
- var TypeError$3 = global$d.TypeError;
6060
- var document$1 = global$d.document;
6061
- var process = global$d.process;
6174
+ var TypeError$3 = globalThis$g.TypeError;
6175
+ var document$1 = globalThis$g.document;
6176
+ var process = globalThis$g.process;
6062
6177
  var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
6063
6178
  var newGenericPromiseCapability = newPromiseCapability$1;
6064
6179
 
6065
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$d.dispatchEvent);
6180
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && globalThis$g.dispatchEvent);
6066
6181
  var UNHANDLED_REJECTION = 'unhandledrejection';
6067
6182
  var REJECTION_HANDLED = 'rejectionhandled';
6068
6183
  var PENDING = 0;
@@ -6135,26 +6250,26 @@ var dispatchEvent = function (name, promise, reason) {
6135
6250
  event.promise = promise;
6136
6251
  event.reason = reason;
6137
6252
  event.initEvent(name, false, true);
6138
- global$d.dispatchEvent(event);
6253
+ globalThis$g.dispatchEvent(event);
6139
6254
  } else event = { promise: promise, reason: reason };
6140
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$d['on' + name])) handler(event);
6255
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis$g['on' + name])) handler(event);
6141
6256
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
6142
6257
  };
6143
6258
 
6144
6259
  var onUnhandled = function (state) {
6145
- call$a(task, global$d, function () {
6260
+ call$a(task, globalThis$g, function () {
6146
6261
  var promise = state.facade;
6147
6262
  var value = state.value;
6148
6263
  var IS_UNHANDLED = isUnhandled(state);
6149
6264
  var result;
6150
6265
  if (IS_UNHANDLED) {
6151
6266
  result = perform$2(function () {
6152
- if (IS_NODE$2) {
6267
+ if (IS_NODE$1) {
6153
6268
  process.emit('unhandledRejection', value, promise);
6154
6269
  } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
6155
6270
  });
6156
6271
  // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
6157
- state.rejection = IS_NODE$2 || isUnhandled(state) ? UNHANDLED : HANDLED;
6272
+ state.rejection = IS_NODE$1 || isUnhandled(state) ? UNHANDLED : HANDLED;
6158
6273
  if (result.error) throw result.value;
6159
6274
  }
6160
6275
  });
@@ -6165,9 +6280,9 @@ var isUnhandled = function (state) {
6165
6280
  };
6166
6281
 
6167
6282
  var onHandleUnhandled = function (state) {
6168
- call$a(task, global$d, function () {
6283
+ call$a(task, globalThis$g, function () {
6169
6284
  var promise = state.facade;
6170
- if (IS_NODE$2) {
6285
+ if (IS_NODE$1) {
6171
6286
  process.emit('rejectionHandled', promise);
6172
6287
  } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
6173
6288
  });
@@ -6244,7 +6359,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
6244
6359
  reactions: new Queue(),
6245
6360
  rejection: false,
6246
6361
  state: PENDING,
6247
- value: undefined
6362
+ value: null
6248
6363
  });
6249
6364
  };
6250
6365
 
@@ -6252,11 +6367,11 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
6252
6367
  // https://tc39.es/ecma262/#sec-promise.prototype.then
6253
6368
  Internal.prototype = defineBuiltIn$3(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
6254
6369
  var state = getInternalPromiseState(this);
6255
- var reaction = newPromiseCapability$1(speciesConstructor$2(this, PromiseConstructor));
6370
+ var reaction = newPromiseCapability$1(speciesConstructor$1(this, PromiseConstructor));
6256
6371
  state.parent = true;
6257
6372
  reaction.ok = isCallable$4(onFulfilled) ? onFulfilled : true;
6258
6373
  reaction.fail = isCallable$4(onRejected) && onRejected;
6259
- reaction.domain = IS_NODE$2 ? process.domain : undefined;
6374
+ reaction.domain = IS_NODE$1 ? process.domain : undefined;
6260
6375
  if (state.state === PENDING) state.reactions.add(reaction);
6261
6376
  else microtask(function () {
6262
6377
  callReaction(reaction, state);
@@ -6304,6 +6419,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
6304
6419
  }
6305
6420
  }
6306
6421
 
6422
+ // `Promise` constructor
6423
+ // https://tc39.es/ecma262/#sec-promise-executor
6307
6424
  $$h({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
6308
6425
  Promise: PromiseConstructor
6309
6426
  });
@@ -6471,7 +6588,7 @@ $$g({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
6471
6588
  var $$f = _export;
6472
6589
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
6473
6590
  var NativePromiseConstructor = promiseNativeConstructor;
6474
- var getBuiltIn$6 = getBuiltIn$d;
6591
+ var getBuiltIn$6 = getBuiltIn$e;
6475
6592
  var isCallable$3 = isCallable$q;
6476
6593
  var defineBuiltIn$2 = defineBuiltIn$e;
6477
6594
 
@@ -6548,7 +6665,7 @@ var promiseResolve$1 = function (C, x) {
6548
6665
  };
6549
6666
 
6550
6667
  var $$c = _export;
6551
- var getBuiltIn$5 = getBuiltIn$d;
6668
+ var getBuiltIn$5 = getBuiltIn$e;
6552
6669
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
6553
6670
  var promiseResolve = promiseResolve$1;
6554
6671
 
@@ -6704,7 +6821,7 @@ class WMListener {
6704
6821
  addEventListener(name, functionpointer, keepOnCall = true) {
6705
6822
  const events = this.registeredEvents.get(name);
6706
6823
  // This event name has no function callbacks associated, just add it.
6707
- if (!events || (events === null || events === void 0 ? void 0 : events.length) === 0) {
6824
+ if (!events || (events == null ? void 0 : events.length) === 0) {
6708
6825
  this.registeredEvents.set(name, [{
6709
6826
  name,
6710
6827
  functionpointer,
@@ -6714,7 +6831,7 @@ class WMListener {
6714
6831
  return true;
6715
6832
  }
6716
6833
  // Check if this function callback was already associated. If so, do nothing.
6717
- if ((events === null || events === void 0 ? void 0 : events.findIndex(c => c.functionpointer === functionpointer)) !== -1) {
6834
+ if ((events == null ? void 0 : events.findIndex(c => c.functionpointer === functionpointer)) !== -1) {
6718
6835
  return false;
6719
6836
  }
6720
6837
  events.push({
@@ -6964,6 +7081,8 @@ const WMXMLParser = (url, headers) => {
6964
7081
  } catch (e) {
6965
7082
  return reject(e);
6966
7083
  }
7084
+ }).catch(e => {
7085
+ return reject(e);
6967
7086
  });
6968
7087
  });
6969
7088
  };
@@ -6979,7 +7098,7 @@ const loadGetCapabilitiesViaProxy = (url, succes, fail, xml2jsonrequestURL) => {
6979
7098
  }).catch(() => {
6980
7099
  fail(`Request failed for ${getcapreq}`);
6981
7100
  });
6982
- } catch (_a) {
7101
+ } catch (_unused) {
6983
7102
  fail(`Request failed for ${getcapreq}`);
6984
7103
  }
6985
7104
  };
@@ -7123,7 +7242,7 @@ class WMJSService {
7123
7242
  } catch (e) {
7124
7243
  try {
7125
7244
  capabilityObject = jsonData.WMS_Capabilities.Capability;
7126
- } catch (_a) {
7245
+ } catch (_unused2) {
7127
7246
  throw new Error(consoleErrorMessages.noCapabilityElementFound);
7128
7247
  }
7129
7248
  }
@@ -7152,7 +7271,7 @@ class WMJSService {
7152
7271
  if (WMSVersion.version130 === jsonData.WMS_Capabilities.attr.version) {
7153
7272
  version = WMSVersion.version130;
7154
7273
  }
7155
- } catch (_a) {
7274
+ } catch (_unused3) {
7156
7275
  const message = this.checkException(jsonData);
7157
7276
  if (message) {
7158
7277
  throw new Error(message);
@@ -7353,7 +7472,7 @@ var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
7353
7472
  var anObject$3 = anObject$k;
7354
7473
  var isNullOrUndefined = isNullOrUndefined$7;
7355
7474
  var requireObjectCoercible$1 = requireObjectCoercible$b;
7356
- var speciesConstructor$1 = speciesConstructor$3;
7475
+ var speciesConstructor = speciesConstructor$2;
7357
7476
  var advanceStringIndex = advanceStringIndex$2;
7358
7477
  var toLength$4 = toLength$8;
7359
7478
  var toString$3 = toString$i;
@@ -7418,7 +7537,7 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
7418
7537
  if (res.done) return res.value;
7419
7538
  }
7420
7539
 
7421
- var C = speciesConstructor$1(rx, RegExp);
7540
+ var C = speciesConstructor(rx, RegExp);
7422
7541
  var unicodeMatching = rx.unicode;
7423
7542
  var flags = (rx.ignoreCase ? 'i' : '') +
7424
7543
  (rx.multiline ? 'm' : '') +
@@ -8075,7 +8194,7 @@ var pack = function (number, mantissaLength, bytes) {
8075
8194
  exponent /= 256;
8076
8195
  exponentLength -= 8;
8077
8196
  }
8078
- buffer[--index] |= sign * 128;
8197
+ buffer[index - 1] |= sign * 128;
8079
8198
  return buffer;
8080
8199
  };
8081
8200
 
@@ -8117,7 +8236,7 @@ var ieee754 = {
8117
8236
  };
8118
8237
 
8119
8238
  var toObject$3 = toObject$c;
8120
- var toAbsoluteIndex$1 = toAbsoluteIndex$3;
8239
+ var toAbsoluteIndex$1 = toAbsoluteIndex$4;
8121
8240
  var lengthOfArrayLike$8 = lengthOfArrayLike$f;
8122
8241
 
8123
8242
  // `Array.prototype.fill` method implementation
@@ -8133,7 +8252,7 @@ var arrayFill$1 = function fill(value /* , start = 0, end = @length */) {
8133
8252
  return O;
8134
8253
  };
8135
8254
 
8136
- var global$c = global$C;
8255
+ var globalThis$f = globalThis_1;
8137
8256
  var uncurryThis$c = functionUncurryThis;
8138
8257
  var DESCRIPTORS$6 = descriptors;
8139
8258
  var NATIVE_ARRAY_BUFFER$1 = arrayBufferBasicDetection;
@@ -8167,14 +8286,14 @@ var WRONG_INDEX = 'Wrong index';
8167
8286
  var getInternalArrayBufferState = InternalStateModule$3.getterFor(ARRAY_BUFFER);
8168
8287
  var getInternalDataViewState = InternalStateModule$3.getterFor(DATA_VIEW);
8169
8288
  var setInternalState$2 = InternalStateModule$3.set;
8170
- var NativeArrayBuffer = global$c[ARRAY_BUFFER];
8289
+ var NativeArrayBuffer = globalThis$f[ARRAY_BUFFER];
8171
8290
  var $ArrayBuffer$1 = NativeArrayBuffer;
8172
- var ArrayBufferPrototype$3 = $ArrayBuffer$1 && $ArrayBuffer$1[PROTOTYPE];
8173
- var $DataView = global$c[DATA_VIEW];
8291
+ var ArrayBufferPrototype$4 = $ArrayBuffer$1 && $ArrayBuffer$1[PROTOTYPE];
8292
+ var $DataView = globalThis$f[DATA_VIEW];
8174
8293
  var DataViewPrototype$2 = $DataView && $DataView[PROTOTYPE];
8175
8294
  var ObjectPrototype$1 = Object.prototype;
8176
- var Array$1 = global$c.Array;
8177
- var RangeError$3 = global$c.RangeError;
8295
+ var Array$1 = globalThis$f.Array;
8296
+ var RangeError$3 = globalThis$f.RangeError;
8178
8297
  var fill = uncurryThis$c(arrayFill);
8179
8298
  var reverse = uncurryThis$c([].reverse);
8180
8299
 
@@ -8238,7 +8357,7 @@ var set = function (view, count, index, conversion, value, isLittleEndian) {
8238
8357
 
8239
8358
  if (!NATIVE_ARRAY_BUFFER$1) {
8240
8359
  $ArrayBuffer$1 = function ArrayBuffer(length) {
8241
- anInstance$3(this, ArrayBufferPrototype$3);
8360
+ anInstance$3(this, ArrayBufferPrototype$4);
8242
8361
  var byteLength = toIndex$2(length);
8243
8362
  setInternalState$2(this, {
8244
8363
  type: ARRAY_BUFFER,
@@ -8251,11 +8370,11 @@ if (!NATIVE_ARRAY_BUFFER$1) {
8251
8370
  }
8252
8371
  };
8253
8372
 
8254
- ArrayBufferPrototype$3 = $ArrayBuffer$1[PROTOTYPE];
8373
+ ArrayBufferPrototype$4 = $ArrayBuffer$1[PROTOTYPE];
8255
8374
 
8256
8375
  $DataView = function DataView(buffer, byteOffset, byteLength) {
8257
8376
  anInstance$3(this, DataViewPrototype$2);
8258
- anInstance$3(buffer, ArrayBufferPrototype$3);
8377
+ anInstance$3(buffer, ArrayBufferPrototype$4);
8259
8378
  var bufferState = getInternalArrayBufferState(buffer);
8260
8379
  var bufferLength = bufferState.byteLength;
8261
8380
  var offset = toIntegerOrInfinity$6(byteOffset);
@@ -8339,7 +8458,7 @@ if (!NATIVE_ARRAY_BUFFER$1) {
8339
8458
  });
8340
8459
  } else {
8341
8460
  var INCORRECT_ARRAY_BUFFER_NAME = PROPER_FUNCTION_NAME && NativeArrayBuffer.name !== ARRAY_BUFFER;
8342
- /* eslint-disable no-new -- required for testing */
8461
+ /* eslint-disable no-new, sonarjs/inconsistent-function-call -- required for testing */
8343
8462
  if (!fails$c(function () {
8344
8463
  NativeArrayBuffer(1);
8345
8464
  }) || !fails$c(function () {
@@ -8350,15 +8469,15 @@ if (!NATIVE_ARRAY_BUFFER$1) {
8350
8469
  new NativeArrayBuffer(NaN);
8351
8470
  return NativeArrayBuffer.length !== 1 || INCORRECT_ARRAY_BUFFER_NAME && !CONFIGURABLE_FUNCTION_NAME;
8352
8471
  })) {
8353
- /* eslint-enable no-new -- required for testing */
8472
+ /* eslint-enable no-new, sonarjs/inconsistent-function-call -- required for testing */
8354
8473
  $ArrayBuffer$1 = function ArrayBuffer(length) {
8355
- anInstance$3(this, ArrayBufferPrototype$3);
8474
+ anInstance$3(this, ArrayBufferPrototype$4);
8356
8475
  return inheritIfRequired$2(new NativeArrayBuffer(toIndex$2(length)), this, $ArrayBuffer$1);
8357
8476
  };
8358
8477
 
8359
- $ArrayBuffer$1[PROTOTYPE] = ArrayBufferPrototype$3;
8478
+ $ArrayBuffer$1[PROTOTYPE] = ArrayBufferPrototype$4;
8360
8479
 
8361
- ArrayBufferPrototype$3.constructor = $ArrayBuffer$1;
8480
+ ArrayBufferPrototype$4.constructor = $ArrayBuffer$1;
8362
8481
 
8363
8482
  copyConstructorProperties($ArrayBuffer$1, NativeArrayBuffer);
8364
8483
  } else if (INCORRECT_ARRAY_BUFFER_NAME && CONFIGURABLE_FUNCTION_NAME) {
@@ -8398,19 +8517,18 @@ var uncurryThis$b = functionUncurryThisClause;
8398
8517
  var fails$b = fails$G;
8399
8518
  var ArrayBufferModule$1 = arrayBuffer;
8400
8519
  var anObject$2 = anObject$k;
8401
- var toAbsoluteIndex = toAbsoluteIndex$3;
8520
+ var toAbsoluteIndex = toAbsoluteIndex$4;
8402
8521
  var toLength$1 = toLength$8;
8403
- var speciesConstructor = speciesConstructor$3;
8404
8522
 
8405
- var ArrayBuffer$4 = ArrayBufferModule$1.ArrayBuffer;
8523
+ var ArrayBuffer$6 = ArrayBufferModule$1.ArrayBuffer;
8406
8524
  var DataView$3 = ArrayBufferModule$1.DataView;
8407
8525
  var DataViewPrototype$1 = DataView$3.prototype;
8408
- var nativeArrayBufferSlice = uncurryThis$b(ArrayBuffer$4.prototype.slice);
8526
+ var nativeArrayBufferSlice = uncurryThis$b(ArrayBuffer$6.prototype.slice);
8409
8527
  var getUint8 = uncurryThis$b(DataViewPrototype$1.getUint8);
8410
8528
  var setUint8 = uncurryThis$b(DataViewPrototype$1.setUint8);
8411
8529
 
8412
8530
  var INCORRECT_SLICE = fails$b(function () {
8413
- return !new ArrayBuffer$4(2).slice(1, undefined).byteLength;
8531
+ return !new ArrayBuffer$6(2).slice(1, undefined).byteLength;
8414
8532
  });
8415
8533
 
8416
8534
  // `ArrayBuffer.prototype.slice` method
@@ -8423,7 +8541,7 @@ $$8({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE
8423
8541
  var length = anObject$2(this).byteLength;
8424
8542
  var first = toAbsoluteIndex(start, length);
8425
8543
  var fin = toAbsoluteIndex(end === undefined ? length : end, length);
8426
- var result = new (speciesConstructor(this, ArrayBuffer$4))(toLength$1(fin - first));
8544
+ var result = new ArrayBuffer$6(toLength$1(fin - first));
8427
8545
  var viewSource = new DataView$3(this);
8428
8546
  var viewTarget = new DataView$3(result);
8429
8547
  var index = 0;
@@ -8433,26 +8551,32 @@ $$8({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE
8433
8551
  }
8434
8552
  });
8435
8553
 
8554
+ var globalThis$e = globalThis_1;
8436
8555
  var uncurryThisAccessor$1 = functionUncurryThisAccessor;
8437
8556
  var classof$5 = classofRaw$2;
8438
8557
 
8439
- var $TypeError$1 = TypeError;
8558
+ var ArrayBuffer$5 = globalThis$e.ArrayBuffer;
8559
+ var TypeError$2 = globalThis$e.TypeError;
8440
8560
 
8441
8561
  // Includes
8442
8562
  // - Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
8443
8563
  // - If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
8444
- var arrayBufferByteLength$2 = uncurryThisAccessor$1(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) {
8445
- if (classof$5(O) !== 'ArrayBuffer') throw new $TypeError$1('ArrayBuffer expected');
8564
+ var arrayBufferByteLength$2 = ArrayBuffer$5 && uncurryThisAccessor$1(ArrayBuffer$5.prototype, 'byteLength', 'get') || function (O) {
8565
+ if (classof$5(O) !== 'ArrayBuffer') throw new TypeError$2('ArrayBuffer expected');
8446
8566
  return O.byteLength;
8447
8567
  };
8448
8568
 
8449
- var uncurryThis$a = functionUncurryThis;
8569
+ var globalThis$d = globalThis_1;
8570
+ var uncurryThis$a = functionUncurryThisClause;
8450
8571
  var arrayBufferByteLength$1 = arrayBufferByteLength$2;
8451
8572
 
8452
- var slice$2 = uncurryThis$a(ArrayBuffer.prototype.slice);
8573
+ var ArrayBuffer$4 = globalThis$d.ArrayBuffer;
8574
+ var ArrayBufferPrototype$3 = ArrayBuffer$4 && ArrayBuffer$4.prototype;
8575
+ var slice$2 = ArrayBufferPrototype$3 && uncurryThis$a(ArrayBufferPrototype$3.slice);
8453
8576
 
8454
8577
  var arrayBufferIsDetached = function (O) {
8455
8578
  if (arrayBufferByteLength$1(O) !== 0) return false;
8579
+ if (!slice$2) return false;
8456
8580
  try {
8457
8581
  slice$2(O, 0, 0);
8458
8582
  return false;
@@ -8467,6 +8591,8 @@ var isDetached$1 = arrayBufferIsDetached;
8467
8591
 
8468
8592
  var ArrayBufferPrototype$2 = ArrayBuffer.prototype;
8469
8593
 
8594
+ // `ArrayBuffer.prototype.detached` getter
8595
+ // https://tc39.es/ecma262/#sec-get-arraybuffer.prototype.detached
8470
8596
  if (DESCRIPTORS$5 && !('detached' in ArrayBufferPrototype$2)) {
8471
8597
  defineBuiltInAccessor$3(ArrayBufferPrototype$2, 'detached', {
8472
8598
  configurable: true,
@@ -8476,40 +8602,53 @@ if (DESCRIPTORS$5 && !('detached' in ArrayBufferPrototype$2)) {
8476
8602
  });
8477
8603
  }
8478
8604
 
8479
- var IS_NODE$1 = engineIsNode;
8605
+ var isDetached = arrayBufferIsDetached;
8480
8606
 
8481
- var tryNodeRequire$2 = function (name) {
8482
- try {
8483
- // eslint-disable-next-line no-new-func -- safe
8484
- if (IS_NODE$1) return Function('return require("' + name + '")')();
8485
- } catch (error) { /* empty */ }
8607
+ var $TypeError$1 = TypeError;
8608
+
8609
+ var arrayBufferNotDetached = function (it) {
8610
+ if (isDetached(it)) throw new $TypeError$1('ArrayBuffer is detached');
8611
+ return it;
8612
+ };
8613
+
8614
+ var globalThis$c = globalThis_1;
8615
+ var IS_NODE = environmentIsNode;
8616
+
8617
+ var getBuiltInNodeModule$2 = function (name) {
8618
+ if (IS_NODE) {
8619
+ try {
8620
+ return globalThis$c.process.getBuiltinModule(name);
8621
+ } catch (error) { /* empty */ }
8622
+ try {
8623
+ // eslint-disable-next-line no-new-func -- safe
8624
+ return Function('return require("' + name + '")')();
8625
+ } catch (error) { /* empty */ }
8626
+ }
8486
8627
  };
8487
8628
 
8488
- var global$b = global$C;
8629
+ var globalThis$b = globalThis_1;
8489
8630
  var fails$a = fails$G;
8490
- var V8$1 = engineV8Version;
8491
- var IS_BROWSER = engineIsBrowser;
8492
- var IS_DENO = engineIsDeno;
8493
- var IS_NODE = engineIsNode;
8631
+ var V8$1 = environmentV8Version;
8632
+ var ENVIRONMENT = environment;
8494
8633
 
8495
- var structuredClone$2 = global$b.structuredClone;
8634
+ var structuredClone$2 = globalThis$b.structuredClone;
8496
8635
 
8497
8636
  var structuredCloneProperTransfer = !!structuredClone$2 && !fails$a(function () {
8498
8637
  // prevent V8 ArrayBufferDetaching protector cell invalidation and performance degradation
8499
8638
  // https://github.com/zloirock/core-js/issues/679
8500
- if ((IS_DENO && V8$1 > 92) || (IS_NODE && V8$1 > 94) || (IS_BROWSER && V8$1 > 97)) return false;
8639
+ if ((ENVIRONMENT === 'DENO' && V8$1 > 92) || (ENVIRONMENT === 'NODE' && V8$1 > 94) || (ENVIRONMENT === 'BROWSER' && V8$1 > 97)) return false;
8501
8640
  var buffer = new ArrayBuffer(8);
8502
8641
  var clone = structuredClone$2(buffer, { transfer: [buffer] });
8503
8642
  return buffer.byteLength !== 0 || clone.byteLength !== 8;
8504
8643
  });
8505
8644
 
8506
- var global$a = global$C;
8507
- var tryNodeRequire$1 = tryNodeRequire$2;
8645
+ var globalThis$a = globalThis_1;
8646
+ var getBuiltInNodeModule$1 = getBuiltInNodeModule$2;
8508
8647
  var PROPER_STRUCTURED_CLONE_TRANSFER$1 = structuredCloneProperTransfer;
8509
8648
 
8510
- var structuredClone$1 = global$a.structuredClone;
8511
- var $ArrayBuffer = global$a.ArrayBuffer;
8512
- var $MessageChannel = global$a.MessageChannel;
8649
+ var structuredClone$1 = globalThis$a.structuredClone;
8650
+ var $ArrayBuffer = globalThis$a.ArrayBuffer;
8651
+ var $MessageChannel = globalThis$a.MessageChannel;
8513
8652
  var detach = false;
8514
8653
  var WorkerThreads, channel, buffer, $detach;
8515
8654
 
@@ -8519,7 +8658,7 @@ if (PROPER_STRUCTURED_CLONE_TRANSFER$1) {
8519
8658
  };
8520
8659
  } else if ($ArrayBuffer) try {
8521
8660
  if (!$MessageChannel) {
8522
- WorkerThreads = tryNodeRequire$1('worker_threads');
8661
+ WorkerThreads = getBuiltInNodeModule$1('worker_threads');
8523
8662
  if (WorkerThreads) $MessageChannel = WorkerThreads.MessageChannel;
8524
8663
  }
8525
8664
 
@@ -8540,19 +8679,18 @@ if (PROPER_STRUCTURED_CLONE_TRANSFER$1) {
8540
8679
 
8541
8680
  var detachTransferable$1 = detach;
8542
8681
 
8543
- var global$9 = global$C;
8682
+ var globalThis$9 = globalThis_1;
8544
8683
  var uncurryThis$9 = functionUncurryThis;
8545
8684
  var uncurryThisAccessor = functionUncurryThisAccessor;
8546
8685
  var toIndex$1 = toIndex$3;
8547
- var isDetached = arrayBufferIsDetached;
8686
+ var notDetached = arrayBufferNotDetached;
8548
8687
  var arrayBufferByteLength = arrayBufferByteLength$2;
8549
8688
  var detachTransferable = detachTransferable$1;
8550
8689
  var PROPER_STRUCTURED_CLONE_TRANSFER = structuredCloneProperTransfer;
8551
8690
 
8552
- var structuredClone = global$9.structuredClone;
8553
- var ArrayBuffer$3 = global$9.ArrayBuffer;
8554
- var DataView$2 = global$9.DataView;
8555
- var TypeError$2 = global$9.TypeError;
8691
+ var structuredClone = globalThis$9.structuredClone;
8692
+ var ArrayBuffer$3 = globalThis$9.ArrayBuffer;
8693
+ var DataView$2 = globalThis$9.DataView;
8556
8694
  var min = Math.min;
8557
8695
  var ArrayBufferPrototype$1 = ArrayBuffer$3.prototype;
8558
8696
  var DataViewPrototype = DataView$2.prototype;
@@ -8567,7 +8705,7 @@ var arrayBufferTransfer = (PROPER_STRUCTURED_CLONE_TRANSFER || detachTransferabl
8567
8705
  var newByteLength = newLength === undefined ? byteLength : toIndex$1(newLength);
8568
8706
  var fixedLength = !isResizable || !isResizable(arrayBuffer);
8569
8707
  var newBuffer;
8570
- if (isDetached(arrayBuffer)) throw new TypeError$2('ArrayBuffer is detached');
8708
+ notDetached(arrayBuffer);
8571
8709
  if (PROPER_STRUCTURED_CLONE_TRANSFER) {
8572
8710
  arrayBuffer = structuredClone(arrayBuffer, { transfer: [arrayBuffer] });
8573
8711
  if (byteLength === newByteLength && (preserveResizability || fixedLength)) return arrayBuffer;
@@ -8639,7 +8777,7 @@ var getJsonReplacerFunction = function (replacer) {
8639
8777
  };
8640
8778
 
8641
8779
  var $$5 = _export;
8642
- var getBuiltIn$4 = getBuiltIn$d;
8780
+ var getBuiltIn$4 = getBuiltIn$e;
8643
8781
  var apply$1 = functionApply;
8644
8782
  var call$5 = functionCall;
8645
8783
  var uncurryThis$7 = functionUncurryThis;
@@ -8715,7 +8853,7 @@ var typedArrayConstructor = {exports: {}};
8715
8853
 
8716
8854
  var NATIVE_ARRAY_BUFFER = arrayBufferBasicDetection;
8717
8855
  var DESCRIPTORS$4 = descriptors;
8718
- var global$8 = global$C;
8856
+ var globalThis$8 = globalThis_1;
8719
8857
  var isCallable = isCallable$q;
8720
8858
  var isObject$3 = isObject$i;
8721
8859
  var hasOwn$3 = hasOwnProperty_1;
@@ -8733,20 +8871,20 @@ var InternalStateModule$2 = internalState;
8733
8871
 
8734
8872
  var enforceInternalState$1 = InternalStateModule$2.enforce;
8735
8873
  var getInternalState$2 = InternalStateModule$2.get;
8736
- var Int8Array$4 = global$8.Int8Array;
8874
+ var Int8Array$4 = globalThis$8.Int8Array;
8737
8875
  var Int8ArrayPrototype$1 = Int8Array$4 && Int8Array$4.prototype;
8738
- var Uint8ClampedArray$1 = global$8.Uint8ClampedArray;
8876
+ var Uint8ClampedArray$1 = globalThis$8.Uint8ClampedArray;
8739
8877
  var Uint8ClampedArrayPrototype = Uint8ClampedArray$1 && Uint8ClampedArray$1.prototype;
8740
8878
  var TypedArray$1 = Int8Array$4 && getPrototypeOf(Int8Array$4);
8741
8879
  var TypedArrayPrototype$1 = Int8ArrayPrototype$1 && getPrototypeOf(Int8ArrayPrototype$1);
8742
8880
  var ObjectPrototype = Object.prototype;
8743
- var TypeError$1 = global$8.TypeError;
8881
+ var TypeError$1 = globalThis$8.TypeError;
8744
8882
 
8745
8883
  var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
8746
8884
  var TYPED_ARRAY_TAG$1 = uid('TYPED_ARRAY_TAG');
8747
8885
  var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
8748
8886
  // Fixing native typed arrays in Opera Presto crashes the browser, see #595
8749
- var NATIVE_ARRAY_BUFFER_VIEWS$2 = NATIVE_ARRAY_BUFFER && !!setPrototypeOf$1 && classof$3(global$8.opera) !== 'Opera';
8887
+ var NATIVE_ARRAY_BUFFER_VIEWS$2 = NATIVE_ARRAY_BUFFER && !!setPrototypeOf$1 && classof$3(globalThis$8.opera) !== 'Opera';
8750
8888
  var TYPED_ARRAY_TAG_REQUIRED = false;
8751
8889
  var NAME, Constructor, Prototype;
8752
8890
 
@@ -8802,7 +8940,7 @@ var aTypedArrayConstructor$1 = function (C) {
8802
8940
  var exportTypedArrayMethod$a = function (KEY, property, forced, options) {
8803
8941
  if (!DESCRIPTORS$4) return;
8804
8942
  if (forced) for (var ARRAY in TypedArrayConstructorsList) {
8805
- var TypedArrayConstructor = global$8[ARRAY];
8943
+ var TypedArrayConstructor = globalThis$8[ARRAY];
8806
8944
  if (TypedArrayConstructor && hasOwn$3(TypedArrayConstructor.prototype, KEY)) try {
8807
8945
  delete TypedArrayConstructor.prototype[KEY];
8808
8946
  } catch (error) {
@@ -8823,7 +8961,7 @@ var exportTypedArrayStaticMethod = function (KEY, property, forced) {
8823
8961
  if (!DESCRIPTORS$4) return;
8824
8962
  if (setPrototypeOf$1) {
8825
8963
  if (forced) for (ARRAY in TypedArrayConstructorsList) {
8826
- TypedArrayConstructor = global$8[ARRAY];
8964
+ TypedArrayConstructor = globalThis$8[ARRAY];
8827
8965
  if (TypedArrayConstructor && hasOwn$3(TypedArrayConstructor, KEY)) try {
8828
8966
  delete TypedArrayConstructor[KEY];
8829
8967
  } catch (error) { /* empty */ }
@@ -8836,7 +8974,7 @@ var exportTypedArrayStaticMethod = function (KEY, property, forced) {
8836
8974
  } else return;
8837
8975
  }
8838
8976
  for (ARRAY in TypedArrayConstructorsList) {
8839
- TypedArrayConstructor = global$8[ARRAY];
8977
+ TypedArrayConstructor = globalThis$8[ARRAY];
8840
8978
  if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {
8841
8979
  defineBuiltIn$1(TypedArrayConstructor, KEY, property);
8842
8980
  }
@@ -8844,14 +8982,14 @@ var exportTypedArrayStaticMethod = function (KEY, property, forced) {
8844
8982
  };
8845
8983
 
8846
8984
  for (NAME in TypedArrayConstructorsList) {
8847
- Constructor = global$8[NAME];
8985
+ Constructor = globalThis$8[NAME];
8848
8986
  Prototype = Constructor && Constructor.prototype;
8849
8987
  if (Prototype) enforceInternalState$1(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
8850
8988
  else NATIVE_ARRAY_BUFFER_VIEWS$2 = false;
8851
8989
  }
8852
8990
 
8853
8991
  for (NAME in BigIntArrayConstructorsList) {
8854
- Constructor = global$8[NAME];
8992
+ Constructor = globalThis$8[NAME];
8855
8993
  Prototype = Constructor && Constructor.prototype;
8856
8994
  if (Prototype) enforceInternalState$1(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
8857
8995
  }
@@ -8863,14 +9001,14 @@ if (!NATIVE_ARRAY_BUFFER_VIEWS$2 || !isCallable(TypedArray$1) || TypedArray$1 ==
8863
9001
  throw new TypeError$1('Incorrect invocation');
8864
9002
  };
8865
9003
  if (NATIVE_ARRAY_BUFFER_VIEWS$2) for (NAME in TypedArrayConstructorsList) {
8866
- if (global$8[NAME]) setPrototypeOf$1(global$8[NAME], TypedArray$1);
9004
+ if (globalThis$8[NAME]) setPrototypeOf$1(globalThis$8[NAME], TypedArray$1);
8867
9005
  }
8868
9006
  }
8869
9007
 
8870
9008
  if (!NATIVE_ARRAY_BUFFER_VIEWS$2 || !TypedArrayPrototype$1 || TypedArrayPrototype$1 === ObjectPrototype) {
8871
9009
  TypedArrayPrototype$1 = TypedArray$1.prototype;
8872
9010
  if (NATIVE_ARRAY_BUFFER_VIEWS$2) for (NAME in TypedArrayConstructorsList) {
8873
- if (global$8[NAME]) setPrototypeOf$1(global$8[NAME].prototype, TypedArrayPrototype$1);
9011
+ if (globalThis$8[NAME]) setPrototypeOf$1(globalThis$8[NAME].prototype, TypedArrayPrototype$1);
8874
9012
  }
8875
9013
  }
8876
9014
 
@@ -8887,8 +9025,8 @@ if (DESCRIPTORS$4 && !hasOwn$3(TypedArrayPrototype$1, TO_STRING_TAG)) {
8887
9025
  return isObject$3(this) ? this[TYPED_ARRAY_TAG$1] : undefined;
8888
9026
  }
8889
9027
  });
8890
- for (NAME in TypedArrayConstructorsList) if (global$8[NAME]) {
8891
- createNonEnumerableProperty$1(global$8[NAME], TYPED_ARRAY_TAG$1, NAME);
9028
+ for (NAME in TypedArrayConstructorsList) if (globalThis$8[NAME]) {
9029
+ createNonEnumerableProperty$1(globalThis$8[NAME], TYPED_ARRAY_TAG$1, NAME);
8892
9030
  }
8893
9031
  }
8894
9032
 
@@ -8906,14 +9044,14 @@ var arrayBufferViewCore = {
8906
9044
  TypedArrayPrototype: TypedArrayPrototype$1
8907
9045
  };
8908
9046
 
8909
- /* eslint-disable no-new -- required for testing */
8910
- var global$7 = global$C;
9047
+ /* eslint-disable no-new, sonarjs/inconsistent-function-call -- required for testing */
9048
+ var globalThis$7 = globalThis_1;
8911
9049
  var fails$8 = fails$G;
8912
9050
  var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2;
8913
9051
  var NATIVE_ARRAY_BUFFER_VIEWS$1 = arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
8914
9052
 
8915
- var ArrayBuffer$2 = global$7.ArrayBuffer;
8916
- var Int8Array$3 = global$7.Int8Array;
9053
+ var ArrayBuffer$2 = globalThis$7.ArrayBuffer;
9054
+ var Int8Array$3 = globalThis$7.Int8Array;
8917
9055
 
8918
9056
  var typedArrayConstructorsRequireWrappers = !NATIVE_ARRAY_BUFFER_VIEWS$1 || !fails$8(function () {
8919
9057
  Int8Array$3(1);
@@ -9145,7 +9283,7 @@ var arrayFromConstructorAndList$2 = function (Constructor, list, $length) {
9145
9283
  };
9146
9284
 
9147
9285
  var $$4 = _export;
9148
- var global$6 = global$C;
9286
+ var globalThis$6 = globalThis_1;
9149
9287
  var call$3 = functionCall;
9150
9288
  var DESCRIPTORS$3 = descriptors;
9151
9289
  var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = typedArrayConstructorsRequireWrappers;
@@ -9183,7 +9321,7 @@ var setInternalState$1 = InternalStateModule$1.set;
9183
9321
  var enforceInternalState = InternalStateModule$1.enforce;
9184
9322
  var nativeDefineProperty = definePropertyModule.f;
9185
9323
  var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
9186
- var RangeError$2 = global$6.RangeError;
9324
+ var RangeError$2 = globalThis$6.RangeError;
9187
9325
  var ArrayBuffer$1 = ArrayBufferModule.ArrayBuffer;
9188
9326
  var ArrayBufferPrototype = ArrayBuffer$1.prototype;
9189
9327
  var DataView$1 = ArrayBufferModule.DataView;
@@ -9261,7 +9399,7 @@ if (DESCRIPTORS$3) {
9261
9399
  var CONSTRUCTOR_NAME = TYPE + (CLAMPED ? 'Clamped' : '') + 'Array';
9262
9400
  var GETTER = 'get' + TYPE;
9263
9401
  var SETTER = 'set' + TYPE;
9264
- var NativeTypedArrayConstructor = global$6[CONSTRUCTOR_NAME];
9402
+ var NativeTypedArrayConstructor = globalThis$6[CONSTRUCTOR_NAME];
9265
9403
  var TypedArrayConstructor = NativeTypedArrayConstructor;
9266
9404
  var TypedArrayConstructorPrototype = TypedArrayConstructor && TypedArrayConstructor.prototype;
9267
9405
  var exported = {};
@@ -9497,7 +9635,7 @@ exportTypedArrayMethod$6('findLastIndex', function findLastIndex(predicate /* ,
9497
9635
  return $findLastIndex(aTypedArray$6(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
9498
9636
  });
9499
9637
 
9500
- var global$5 = global$C;
9638
+ var globalThis$5 = globalThis_1;
9501
9639
  var call$1 = functionCall;
9502
9640
  var ArrayBufferViewCore$5 = arrayBufferViewCore;
9503
9641
  var lengthOfArrayLike$2 = lengthOfArrayLike$f;
@@ -9505,8 +9643,8 @@ var toOffset = toOffset$2;
9505
9643
  var toIndexedObject = toObject$c;
9506
9644
  var fails$6 = fails$G;
9507
9645
 
9508
- var RangeError$1 = global$5.RangeError;
9509
- var Int8Array$2 = global$5.Int8Array;
9646
+ var RangeError$1 = globalThis$5.RangeError;
9647
+ var Int8Array$2 = globalThis$5.Int8Array;
9510
9648
  var Int8ArrayPrototype = Int8Array$2 && Int8Array$2.prototype;
9511
9649
  var $set = Int8ArrayPrototype && Int8ArrayPrototype.set;
9512
9650
  var aTypedArray$5 = ArrayBufferViewCore$5.aTypedArray;
@@ -9541,20 +9679,20 @@ exportTypedArrayMethod$5('set', function set(arrayLike /* , offset */) {
9541
9679
  while (index < len) this[offset + index] = src[index++];
9542
9680
  }, !WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS || TO_OBJECT_BUG);
9543
9681
 
9544
- var global$4 = global$C;
9682
+ var globalThis$4 = globalThis_1;
9545
9683
  var uncurryThis$4 = functionUncurryThisClause;
9546
9684
  var fails$5 = fails$G;
9547
9685
  var aCallable$1 = aCallable$c;
9548
9686
  var internalSort = arraySort$1;
9549
9687
  var ArrayBufferViewCore$4 = arrayBufferViewCore;
9550
- var FF = engineFfVersion;
9551
- var IE_OR_EDGE = engineIsIeOrEdge;
9552
- var V8 = engineV8Version;
9553
- var WEBKIT = engineWebkitVersion;
9688
+ var FF = environmentFfVersion;
9689
+ var IE_OR_EDGE = environmentIsIeOrEdge;
9690
+ var V8 = environmentV8Version;
9691
+ var WEBKIT = environmentWebkitVersion;
9554
9692
 
9555
9693
  var aTypedArray$4 = ArrayBufferViewCore$4.aTypedArray;
9556
9694
  var exportTypedArrayMethod$4 = ArrayBufferViewCore$4.exportTypedArrayMethod;
9557
- var Uint16Array = global$4.Uint16Array;
9695
+ var Uint16Array = globalThis$4.Uint16Array;
9558
9696
  var nativeSort = Uint16Array && uncurryThis$4(Uint16Array.prototype.sort);
9559
9697
 
9560
9698
  // WebKit
@@ -9611,13 +9749,13 @@ exportTypedArrayMethod$4('sort', function sort(comparefn) {
9611
9749
  return internalSort(aTypedArray$4(this), getSortCompare(comparefn));
9612
9750
  }, !STABLE_SORT || ACCEPT_INCORRECT_ARGUMENTS);
9613
9751
 
9614
- var global$3 = global$C;
9752
+ var globalThis$3 = globalThis_1;
9615
9753
  var apply = functionApply;
9616
9754
  var ArrayBufferViewCore$3 = arrayBufferViewCore;
9617
9755
  var fails$4 = fails$G;
9618
9756
  var arraySlice = arraySlice$6;
9619
9757
 
9620
- var Int8Array$1 = global$3.Int8Array;
9758
+ var Int8Array$1 = globalThis$3.Int8Array;
9621
9759
  var aTypedArray$3 = ArrayBufferViewCore$3.aTypedArray;
9622
9760
  var exportTypedArrayMethod$3 = ArrayBufferViewCore$3.exportTypedArrayMethod;
9623
9761
  var $toLocaleString = [].toLocaleString;
@@ -9755,8 +9893,8 @@ var base64Map = {
9755
9893
  };
9756
9894
 
9757
9895
  var $$3 = _export;
9758
- var global$2 = global$C;
9759
- var getBuiltIn$3 = getBuiltIn$d;
9896
+ var globalThis$2 = globalThis_1;
9897
+ var getBuiltIn$3 = getBuiltIn$e;
9760
9898
  var uncurryThis$2 = functionUncurryThis;
9761
9899
  var call = functionCall;
9762
9900
  var fails$3 = fails$G;
@@ -9788,7 +9926,7 @@ $$3({ global: true, bind: true, enumerable: true, forced: !BASIC || NO_ARG_RECEI
9788
9926
  btoa: function btoa(data) {
9789
9927
  validateArgumentsLength(arguments.length, 1);
9790
9928
  // `webpack` dev server bug on IE global methods - use call(fn, global, ...)
9791
- if (BASIC) return call($btoa, global$2, toString$1(data));
9929
+ if (BASIC) return call($btoa, globalThis$2, toString$1(data));
9792
9930
  var string = toString$1(data);
9793
9931
  var output = '';
9794
9932
  var position = 0;
@@ -9863,8 +10001,8 @@ var domExceptionConstants = {
9863
10001
  };
9864
10002
 
9865
10003
  var $$2 = _export;
9866
- var tryNodeRequire = tryNodeRequire$2;
9867
- var getBuiltIn$2 = getBuiltIn$d;
10004
+ var getBuiltIn$2 = getBuiltIn$e;
10005
+ var getBuiltInNodeModule = getBuiltInNodeModule$2;
9868
10006
  var fails$1 = fails$G;
9869
10007
  var create = objectCreate;
9870
10008
  var createPropertyDescriptor$1 = createPropertyDescriptor$9;
@@ -9888,7 +10026,7 @@ var Error$2 = getBuiltIn$2('Error');
9888
10026
  var NativeDOMException$1 = getBuiltIn$2(DOM_EXCEPTION$2) || (function () {
9889
10027
  try {
9890
10028
  // NodeJS < 15.0 does not expose `MessageChannel` to global
9891
- var MessageChannel = getBuiltIn$2('MessageChannel') || tryNodeRequire('worker_threads').MessageChannel;
10029
+ var MessageChannel = getBuiltIn$2('MessageChannel') || getBuiltInNodeModule('worker_threads').MessageChannel;
9892
10030
  // eslint-disable-next-line es/no-weak-map, unicorn/require-post-message-target-origin -- safe
9893
10031
  new MessageChannel().port1.postMessage(new WeakMap());
9894
10032
  } catch (error) {
@@ -10007,8 +10145,8 @@ for (var key$1 in DOMExceptionConstants$1) if (hasOwn$1(DOMExceptionConstants$1,
10007
10145
  }
10008
10146
 
10009
10147
  var $$1 = _export;
10010
- var global$1 = global$C;
10011
- var getBuiltIn$1 = getBuiltIn$d;
10148
+ var globalThis$1 = globalThis_1;
10149
+ var getBuiltIn$1 = getBuiltIn$e;
10012
10150
  var createPropertyDescriptor = createPropertyDescriptor$9;
10013
10151
  var defineProperty = objectDefineProperty.f;
10014
10152
  var hasOwn = hasOwnProperty_1;
@@ -10042,7 +10180,7 @@ var ERROR_HAS_STACK = 'stack' in new Error$1(DOM_EXCEPTION$1);
10042
10180
  var DOM_EXCEPTION_HAS_STACK = 'stack' in new NativeDOMException(1, 2);
10043
10181
 
10044
10182
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
10045
- var descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(global$1, DOM_EXCEPTION$1);
10183
+ var descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(globalThis$1, DOM_EXCEPTION$1);
10046
10184
 
10047
10185
  // Bun ~ 0.1.1 DOMException have incorrect descriptor and we can't redefine it
10048
10186
  // https://github.com/Jarred-Sumner/bun/issues/399
@@ -10073,7 +10211,7 @@ if (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) {
10073
10211
  }
10074
10212
  }
10075
10213
 
10076
- var getBuiltIn = getBuiltIn$d;
10214
+ var getBuiltIn = getBuiltIn$e;
10077
10215
  var setToStringTag = setToStringTag$8;
10078
10216
 
10079
10217
  var DOM_EXCEPTION = 'DOMException';
@@ -10204,12 +10342,12 @@ class WMImage {
10204
10342
  return !this._isLoaded && !this._isLoading;
10205
10343
  }
10206
10344
  isStale() {
10207
- var _a;
10208
10345
  if (this._fakeMaxAge === undefined) {
10209
10346
  try {
10210
10347
  const layerName = new URL(this.getSrc()).searchParams.get('LAYERS');
10211
10348
  if (layerName) {
10212
- this._fakeMaxAge = (_a = fakeMaxAgeResponsesByLayer[layerName]) !== null && _a !== void 0 ? _a : null;
10349
+ var _fakeMaxAgeResponsesB;
10350
+ this._fakeMaxAge = (_fakeMaxAgeResponsesB = fakeMaxAgeResponsesByLayer[layerName]) != null ? _fakeMaxAgeResponsesB : null;
10213
10351
  } else {
10214
10352
  this._fakeMaxAge = null;
10215
10353
  }
@@ -10328,6 +10466,8 @@ class WMImage {
10328
10466
  const base64Flag = 'data:image/png;base64,';
10329
10467
  const imageStr = arrayBufferToBase64(buffer);
10330
10468
  this.getElement().src = base64Flag + imageStr;
10469
+ }).catch(() => {
10470
+ debugLogger(DebugType.Error);
10331
10471
  });
10332
10472
  }).catch(() => {
10333
10473
  debugLogger(DebugType.Error, `Unable to fetch image ${url} with headers [${JSON.stringify(headers)}]`);
@@ -10338,7 +10478,7 @@ class WMImage {
10338
10478
  });
10339
10479
  }
10340
10480
  _load() {
10341
- var _a;
10481
+ var _this$headers;
10342
10482
  this._loadStartTime = getCurrentImageTime();
10343
10483
  this._hasError = false;
10344
10484
  if (this._isLoaded === true) {
@@ -10363,7 +10503,7 @@ class WMImage {
10363
10503
  this._loadEvent(false);
10364
10504
  return;
10365
10505
  }
10366
- if ((_a = this.headers) === null || _a === void 0 ? void 0 : _a.length) {
10506
+ if ((_this$headers = this.headers) != null && _this$headers.length) {
10367
10507
  /* Get an image which needs headers */
10368
10508
  this._getImageWithHeaders(this.srcToLoad, this.headers);
10369
10509
  } else if (this.randomize) {
@@ -10377,7 +10517,7 @@ class WMImage {
10377
10517
  const url = new URL(this.srcToLoad);
10378
10518
  url.searchParams.set('random', Math.random().toString());
10379
10519
  newSrc = url.toString();
10380
- } catch (_b) {
10520
+ } catch (_unused) {
10381
10521
  console.warn('failed to randomize url');
10382
10522
  }
10383
10523
  }
@@ -10388,13 +10528,13 @@ class WMImage {
10388
10528
  }
10389
10529
  }
10390
10530
  _loadEvent(hasError) {
10391
- var _a;
10531
+ var _this$loadEventCallba;
10392
10532
  this._loadDuration = hasError ? undefined : getCurrentImageTime() - this._loadStartTime;
10393
10533
  this._hasError = hasError;
10394
10534
  this._isLoading = false;
10395
10535
  this._isLoaded = true;
10396
10536
  this._srcLoaded = this.srcToLoad;
10397
- (_a = this.loadEventCallback) === null || _a === void 0 ? void 0 : _a.call(this, this);
10537
+ (_this$loadEventCallba = this.loadEventCallback) == null || _this$loadEventCallba.call(this, this);
10398
10538
  }
10399
10539
  getLoadDuration() {
10400
10540
  return this._loadDuration;
@@ -10943,7 +11083,7 @@ const getOverlappingAreaRatio = (boxA, boxB) => {
10943
11083
  * @returns
10944
11084
  */
10945
11085
  const getSortedListOfImages = (imagesList, bbox) => {
10946
- if (!(imagesList === null || imagesList === void 0 ? void 0 : imagesList.length)) {
11086
+ if (!(imagesList != null && imagesList.length)) {
10947
11087
  return;
10948
11088
  }
10949
11089
  const canvasBox = {
@@ -11089,7 +11229,7 @@ class WMCanvasBuffer {
11089
11229
  }
11090
11230
  }
11091
11231
  _display() {
11092
- var _a, _b, _c, _d, _e, _f;
11232
+ var _this$_internalCallba2, _this$_internalCallba3;
11093
11233
  if (!this._ready) {
11094
11234
  return;
11095
11235
  }
@@ -11109,7 +11249,7 @@ class WMCanvasBuffer {
11109
11249
  this._errorList.length = 0;
11110
11250
  this._canvasLayers.forEach(layer => {
11111
11251
  const imageToDisplay = this._imageStore.getImageForSrc(layer.imageSource);
11112
- if (imageToDisplay === null || imageToDisplay === void 0 ? void 0 : imageToDisplay.isLoadedWithoutErrors()) {
11252
+ if (imageToDisplay != null && imageToDisplay.isLoadedWithoutErrors()) {
11113
11253
  // Draw this image, it is loaded and OK
11114
11254
  this._drawCanvasGeoLayer(layer);
11115
11255
  } else {
@@ -11117,7 +11257,7 @@ class WMCanvasBuffer {
11117
11257
  * Check if this image has an error.
11118
11258
  * If the error has occured some time ago, and the amount of retries is low, just retry to load the image.
11119
11259
  */
11120
- if ((imageToDisplay === null || imageToDisplay === void 0 ? void 0 : imageToDisplay.hasError()) && imageToDisplay.isLoading() === false && imageToDisplay.getLastErrorMSecondsAgo() > 5000 && imageToDisplay.getNumFailedAttempts() < 10) {
11260
+ if (imageToDisplay != null && imageToDisplay.hasError() && imageToDisplay.isLoading() === false && imageToDisplay.getLastErrorMSecondsAgo() > 5000 && imageToDisplay.getNumFailedAttempts() < 10) {
11121
11261
  imageToDisplay.forceReload();
11122
11262
  }
11123
11263
  /* Find closest alternative and display instead image */
@@ -11130,14 +11270,15 @@ class WMCanvasBuffer {
11130
11270
  this._ctx.globalAlpha = 1;
11131
11271
  /* Display errors */
11132
11272
  if (this._errorList.length > 0) {
11273
+ var _this$_internalCallba;
11133
11274
  this._webMapJS.getListener().triggerEvent('canvasonerror', this._errorList);
11134
- (_b = (_a = this._internalCallbacks) === null || _a === void 0 ? void 0 : _a.canvasonerror) === null || _b === void 0 ? void 0 : _b.call(_a, this._errorList);
11275
+ (_this$_internalCallba = this._internalCallbacks) == null || _this$_internalCallba.canvasonerror == null || _this$_internalCallba.canvasonerror(this._errorList);
11135
11276
  }
11136
11277
  this._webMapJS.getListener().triggerEvent('beforecanvasdisplay', this._ctx);
11137
- (_d = (_c = this._internalCallbacks) === null || _c === void 0 ? void 0 : _c.beforecanvasdisplay) === null || _d === void 0 ? void 0 : _d.call(_c, this._ctx);
11278
+ (_this$_internalCallba2 = this._internalCallbacks) == null || _this$_internalCallba2.beforecanvasdisplay == null || _this$_internalCallba2.beforecanvasdisplay(this._ctx);
11138
11279
  this.canvas.style.display = 'inline-block';
11139
11280
  this._webMapJS.getListener().triggerEvent('aftercanvasdisplay', this._ctx);
11140
- (_f = (_e = this._internalCallbacks) === null || _e === void 0 ? void 0 : _e.aftercanvasdisplay) === null || _f === void 0 ? void 0 : _f.call(_e, this._ctx);
11281
+ (_this$_internalCallba3 = this._internalCallbacks) == null || _this$_internalCallba3.aftercanvasdisplay == null || _this$_internalCallba3.aftercanvasdisplay(this._ctx);
11141
11282
  this._ready = true;
11142
11283
  }
11143
11284
  _finishedLoading() {
@@ -11204,12 +11345,12 @@ class WMCanvasBuffer {
11204
11345
  getSortedListOfImages(this.sharedImagesList[sigImageUrl], bbox);
11205
11346
  const foundAltImages = imagesForUrl.filter(altImage => {
11206
11347
  // Images which are more then MIN_FRACTION_OF_OVERLAP smaller then previous will be discarded
11207
- if (filterUnsuitableAlternatives && (altImage === null || altImage === void 0 ? void 0 : altImage.areaFraction) < MIN_FRACTION_OF_OVERLAP) {
11348
+ if (filterUnsuitableAlternatives && (altImage == null ? void 0 : altImage.areaFraction) < MIN_FRACTION_OF_OVERLAP) {
11208
11349
  return false;
11209
11350
  }
11210
11351
  // Only use images which are already loaded
11211
11352
  const cachedImage = this._imageStore.getImageForSrc(altImage.imageSource);
11212
- return cachedImage === null || cachedImage === void 0 ? void 0 : cachedImage.isLoadedWithoutErrors();
11353
+ return cachedImage == null ? void 0 : cachedImage.isLoadedWithoutErrors();
11213
11354
  });
11214
11355
  return foundAltImages;
11215
11356
  }
@@ -11236,12 +11377,11 @@ class WMCanvasBuffer {
11236
11377
  * @param newLayer A canvaslayer object to add.
11237
11378
  */
11238
11379
  addAlternativeImage(newLayer) {
11239
- var _a;
11240
- var _b;
11380
+ var _this$sharedImagesLis, _this$sharedImagesLis2;
11241
11381
  /* Get a signature for images which belong to each other */
11242
11382
  const sigImageUrl = makeQueryStringWithoutGeoInfo(newLayer.imageSource);
11243
11383
  /* Make an entry for these images in the sharedImagesList */
11244
- (_a = (_b = this.sharedImagesList)[sigImageUrl]) !== null && _a !== void 0 ? _a : _b[sigImageUrl] = [];
11384
+ (_this$sharedImagesLis2 = (_this$sharedImagesLis = this.sharedImagesList)[sigImageUrl]) != null ? _this$sharedImagesLis2 : _this$sharedImagesLis[sigImageUrl] = [];
11245
11385
  /* Get the images for this signature */
11246
11386
  const imagesForUrl = this.sharedImagesList[sigImageUrl];
11247
11387
  const indexForExisting = imagesForUrl.findIndex(image => image.imageSource === newLayer.imageSource);
@@ -11287,13 +11427,13 @@ class WMCanvasBuffer {
11287
11427
  * @returns Void
11288
11428
  */
11289
11429
  addLayerToCanvas(layerIndex, imageSource, linkedInfo, opacity, bbox) {
11290
- var _a, _b;
11430
+ var _linkedInfo$layer$hea, _linkedInfo$layer;
11291
11431
  if (!isDefined(imageSource)) {
11292
11432
  debugLogger(DebugType.Warning);
11293
11433
  return;
11294
11434
  }
11295
11435
  /* HTTP Headers for the image, necessary in case of certain authentication forms */
11296
- const headers = (_b = (_a = linkedInfo === null || linkedInfo === void 0 ? void 0 : linkedInfo.layer) === null || _a === void 0 ? void 0 : _a.headers) !== null && _b !== void 0 ? _b : [];
11436
+ const headers = (_linkedInfo$layer$hea = linkedInfo == null || (_linkedInfo$layer = linkedInfo.layer) == null ? void 0 : _linkedInfo$layer.headers) != null ? _linkedInfo$layer$hea : [];
11297
11437
  /* Make a new CanvasLayer */
11298
11438
  const newLayer = {
11299
11439
  imageSource,
@@ -11366,9 +11506,37 @@ class WMCanvasBuffer {
11366
11506
  }
11367
11507
  }
11368
11508
 
11509
+ /******************************************************************************
11510
+ Copyright (c) Microsoft Corporation.
11511
+
11512
+ Permission to use, copy, modify, and/or distribute this software for any
11513
+ purpose with or without fee is hereby granted.
11514
+
11515
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
11516
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11517
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11518
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11519
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
11520
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
11521
+ PERFORMANCE OF THIS SOFTWARE.
11522
+ ***************************************************************************** */
11523
+ /* global Reflect, Promise, SuppressedError, Symbol */
11524
+
11525
+
11526
+ function __classPrivateFieldGet(receiver, state, kind, f) {
11527
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
11528
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11529
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11530
+ }
11531
+
11532
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
11533
+ var e = new Error(message);
11534
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
11535
+ };
11536
+
11369
11537
  const WEBMAP_NAMESPACE = 'webmap';
11370
11538
  // do not use `initReactI18next` as this is not a react library
11371
- i18n.init({
11539
+ void i18n.init({
11372
11540
  lng: 'en',
11373
11541
  ns: WEBMAP_NAMESPACE,
11374
11542
  interpolation: {
@@ -11415,7 +11583,7 @@ const getBBOXandProjString = (layer, projection) => {
11415
11583
  };
11416
11584
  // Build a valid WMS request for a certain layer
11417
11585
  const buildWMSGetMapRequest = (layer, projection, dimensionOverride) => {
11418
- var _a;
11586
+ var _layer$format;
11419
11587
  if (!isDefined(layer.name) || layer.name.length < 1) {
11420
11588
  return undefined;
11421
11589
  }
@@ -11427,7 +11595,7 @@ const buildWMSGetMapRequest = (layer, projection, dimensionOverride) => {
11427
11595
  } = projection;
11428
11596
  const mapBbox = bbox;
11429
11597
  // eslint-disable-next-line no-param-reassign
11430
- (_a = layer.format) !== null && _a !== void 0 ? _a : layer.format = 'image/png';
11598
+ (_layer$format = layer.format) != null ? _layer$format : layer.format = 'image/png';
11431
11599
  // GetFeatureInfo timeseries in the mapview
11432
11600
  if (srs === 'GFI:TIME_ELEVATION') {
11433
11601
  const x = 707;
@@ -11510,12 +11678,12 @@ const getWMSRequests = (map, dimensionOverride) => {
11510
11678
  width: map.getSize().width,
11511
11679
  height: map.getSize().height,
11512
11680
  bbox: map.getBBOX(),
11513
- srs: map === null || map === void 0 ? void 0 : map.getProjection().srs
11681
+ srs: map == null ? void 0 : map.getProjection().srs
11514
11682
  };
11515
11683
  map.getLayers(false).forEach(layer => {
11516
11684
  if (layer.service && layer.enabled) {
11517
11685
  const request = buildWMSGetMapRequest(layer, screenProj, dimensionOverride);
11518
- if (request === null || request === void 0 ? void 0 : request.url) {
11686
+ if (request != null && request.url) {
11519
11687
  requests.push(request);
11520
11688
  }
11521
11689
  }
@@ -11603,16 +11771,16 @@ const getGeoCoordFromPixelCoord = (coordinates, bbox, width, height) => {
11603
11771
  };
11604
11772
  };
11605
11773
  const getPixelCoordFromLatLong = (map, coordinates) => {
11606
- var _a;
11607
- const srs = (_a = map === null || map === void 0 ? void 0 : map.getProjection()) === null || _a === void 0 ? void 0 : _a.srs;
11774
+ var _map$getProjection;
11775
+ const srs = map == null || (_map$getProjection = map.getProjection()) == null ? void 0 : _map$getProjection.srs;
11608
11776
  if (!srs || srs === 'GFI:TIME_ELEVATION') {
11609
11777
  return coordinates;
11610
11778
  }
11611
11779
  return getPixelCoordFromGeoCoord(map, getGeoCoordFromLatLong(map, coordinates));
11612
11780
  };
11613
11781
  const getGeoCoordFromLatLong = (map, coordinates) => {
11614
- var _a;
11615
- const srs = (_a = map === null || map === void 0 ? void 0 : map.getProjection()) === null || _a === void 0 ? void 0 : _a.srs;
11782
+ var _map$getProjection2;
11783
+ const srs = map == null || (_map$getProjection2 = map.getProjection()) == null ? void 0 : _map$getProjection2.srs;
11616
11784
  if (!srs || srs === 'GFI:TIME_ELEVATION') {
11617
11785
  return coordinates;
11618
11786
  }
@@ -11708,14 +11876,14 @@ const getErrorsToDisplay = (canvasErrors, getLayerByServiceAndName, t) => {
11708
11876
  }, []);
11709
11877
  };
11710
11878
  const detectLeftButton = evt => {
11711
- if (evt === null || evt === void 0 ? void 0 : evt.buttons) {
11879
+ if (evt != null && evt.buttons) {
11712
11880
  return evt.buttons === 1;
11713
11881
  }
11714
11882
  return evt ? evt.button === 0 : false;
11715
11883
  };
11716
11884
  const detectRightButton = evt => {
11717
- if (evt === null || evt === void 0 ? void 0 : evt.buttons) {
11718
- return (evt === null || evt === void 0 ? void 0 : evt.buttons) === 2;
11885
+ if (evt != null && evt.buttons) {
11886
+ return (evt == null ? void 0 : evt.buttons) === 2;
11719
11887
  }
11720
11888
  return evt ? evt.button === 2 : false;
11721
11889
  };
@@ -11743,30 +11911,26 @@ function prefetchLayerImagesInOrderWithUrls(wmMap, animationStepsInOrder, maxIma
11743
11911
  prefetchLayerImagesForTime(wmMap, animationStep.requests || []);
11744
11912
  }
11745
11913
  }
11746
- function processBatch(wmMap, timesToPrefetchInOrder, maxImagesToPrefetch, batchSize, startIndex = 0) {
11747
- return __awaiter(this, void 0, void 0, function* () {
11748
- const batch = timesToPrefetchInOrder.slice(startIndex, startIndex + batchSize);
11749
- for (const timeToPrefetch of batch) {
11750
- const countImagesLoading = wmMap.getMapImageStore.getNumImagesLoading();
11751
- if (countImagesLoading > maxImagesToPrefetch - 1) {
11752
- return; // Stop processing if maximum prefetch count is reached
11753
- }
11754
- const layersImageUrls = getLayersImageUrlsForTime(wmMap, timeToPrefetch);
11755
- prefetchLayerImagesForTime(wmMap, layersImageUrls);
11756
- }
11757
- const nextIndex = startIndex + batchSize;
11758
- if (nextIndex < timesToPrefetchInOrder.length) {
11759
- yield new Promise(resolve => {
11760
- setTimeout(resolve, defaultDelay$1);
11761
- });
11762
- yield processBatch(wmMap, timesToPrefetchInOrder, maxImagesToPrefetch, batchSize, nextIndex);
11914
+ async function processBatch(wmMap, timesToPrefetchInOrder, maxImagesToPrefetch, batchSize, startIndex = 0) {
11915
+ const batch = timesToPrefetchInOrder.slice(startIndex, startIndex + batchSize);
11916
+ for (const timeToPrefetch of batch) {
11917
+ const countImagesLoading = wmMap.getMapImageStore.getNumImagesLoading();
11918
+ if (countImagesLoading > maxImagesToPrefetch - 1) {
11919
+ return; // Stop processing if maximum prefetch count is reached
11763
11920
  }
11764
- });
11921
+ const layersImageUrls = getLayersImageUrlsForTime(wmMap, timeToPrefetch);
11922
+ prefetchLayerImagesForTime(wmMap, layersImageUrls);
11923
+ }
11924
+ const nextIndex = startIndex + batchSize;
11925
+ if (nextIndex < timesToPrefetchInOrder.length) {
11926
+ await new Promise(resolve => {
11927
+ setTimeout(resolve, defaultDelay$1);
11928
+ });
11929
+ await processBatch(wmMap, timesToPrefetchInOrder, maxImagesToPrefetch, batchSize, nextIndex);
11930
+ }
11765
11931
  }
11766
- function prefetchLayerImagesInOrder(wmMap, timesToPrefetchInOrder, maxImagesToPrefetch, batchSize) {
11767
- return __awaiter(this, void 0, void 0, function* () {
11768
- yield processBatch(wmMap, timesToPrefetchInOrder, maxImagesToPrefetch, batchSize);
11769
- });
11932
+ async function prefetchLayerImagesInOrder(wmMap, timesToPrefetchInOrder, maxImagesToPrefetch, batchSize) {
11933
+ await processBatch(wmMap, timesToPrefetchInOrder, maxImagesToPrefetch, batchSize);
11770
11934
  }
11771
11935
  function getLayersImageUrlsForTime(wmMap, timeToPrefetch) {
11772
11936
  const layersImageUrls = getWMSRequests(wmMap, [{
@@ -11837,7 +12001,9 @@ function prefetchImagesForNonAnimation(wmMap, maxImagesToPrefetch = MAX_IMAGES_T
11837
12001
  const diffB = Math.abs(dateUtils.differenceInMinutes(currentTime, dateUtils.parseISO(b)));
11838
12002
  return diffA - diffB;
11839
12003
  });
11840
- prefetchLayerImagesInOrder(wmMap, timesToPrefetch, maxImagesToPrefetch, batchSize);
12004
+ prefetchLayerImagesInOrder(wmMap, timesToPrefetch, maxImagesToPrefetch, batchSize).catch(() => {
12005
+ debugLogger(DebugType.Error);
12006
+ });
11841
12007
  }
11842
12008
 
11843
12009
  /* *
@@ -11986,7 +12152,7 @@ class WMJSAnimate {
11986
12152
  } = request;
11987
12153
  const image = this._map.getMapImageStore.getImageForSrc(url);
11988
12154
  /* Get a loaded image which has no error */
11989
- if (image === null || image === void 0 ? void 0 : image.isLoadedWithoutErrors()) {
12155
+ if (image != null && image.isLoadedWithoutErrors()) {
11990
12156
  numberOfImagesReadyForNextAnimationStep += 1;
11991
12157
  return;
11992
12158
  }
@@ -11996,7 +12162,7 @@ class WMJSAnimate {
11996
12162
  numberOfImagesReadyForNextAnimationStep += 1;
11997
12163
  return;
11998
12164
  }
11999
- const imageHasntStartedLoading = !(image === null || image === void 0 ? void 0 : image.isLoading());
12165
+ const imageHasntStartedLoading = !(image != null && image.isLoading());
12000
12166
  if (imageHasntStartedLoading) {
12001
12167
  /* No alternatives and current image is not loading, so lets continue the animation */
12002
12168
  numberOfImagesReadyForNextAnimationStep += 1;
@@ -12115,7 +12281,7 @@ class WMTileRenderer {
12115
12281
  if (level > tileSettings.maxLevel) {
12116
12282
  level = tileSettings.maxLevel;
12117
12283
  }
12118
- const numTilesAtLevel = Math.pow(2, level);
12284
+ const numTilesAtLevel = 2 ** level;
12119
12285
  let numTilesAtLevelX = tileSetWidth / (initialResolution / numTilesAtLevel * tileSize);
12120
12286
  const numTilesAtLevelY = tileSetHeight / (initialResolution / numTilesAtLevel * tileSize);
12121
12287
  let tilenleft = Math.trunc(Math.round((currentBBOX.left - originShiftX) / tileSetWidth * numTilesAtLevelX / 1 + 0.5));
@@ -12123,7 +12289,7 @@ class WMTileRenderer {
12123
12289
  let tilentop = Math.trunc(Math.round(numTilesAtLevelY - (currentBBOX.bottom - originShiftY2) / tileSetHeight * numTilesAtLevelY + 0.5));
12124
12290
  let tilenbottom = Math.trunc(Math.round(numTilesAtLevelY - (currentBBOX.top - originShiftY2) / tileSetHeight * numTilesAtLevelY + 0.5));
12125
12291
  const tileXYZToMercator = (level, x, y) => {
12126
- const tileRes = initialResolution / Math.pow(2, level);
12292
+ const tileRes = initialResolution / 2 ** level;
12127
12293
  const p = {
12128
12294
  x: x * tileRes + originShiftX,
12129
12295
  y: originShiftY - y * tileRes
@@ -13061,7 +13227,7 @@ const getScaleBarProperties = map => {
13061
13227
  realWidth = desiredWidth / divFactor;
13062
13228
  } while (realWidth < desiredWidth);
13063
13229
  let roundedMapUnits = numMapUnits;
13064
- const d = Math.pow(10, Math.round(Math.log10(numMapUnits) + 0.5) - 1);
13230
+ const d = 10 ** (Math.round(Math.log10(numMapUnits) + 0.5) - 1);
13065
13231
  roundedMapUnits = Math.round(roundedMapUnits / d);
13066
13232
  if (roundedMapUnits < 2.5) {
13067
13233
  roundedMapUnits = 2.5;
@@ -13178,7 +13344,7 @@ const drawScaleBar = (scaleBarProps, ctx) => {
13178
13344
  const SCALE_DELAY = 10;
13179
13345
  const ZOOMED_CALLBACK_DELAY = 500;
13180
13346
  const THROTTLE_OPTIONS = {
13181
- noTrailing: true
13347
+ trailing: false
13182
13348
  };
13183
13349
  const THROTTLE_WAIT_TIME = 300;
13184
13350
  class WMFlyToBBox {
@@ -13226,7 +13392,7 @@ class WMFlyToBBox {
13226
13392
  };
13227
13393
  this.resetBBoxTimer = () => {
13228
13394
  this.flyZoomToBBOXDebounced.cancel();
13229
- this.flyZoomToBBOXDebounced = debounce(SCALE_DELAY, this.flyZoomToBBOXTimerFunc);
13395
+ this.flyZoomToBBOXDebounced = debounce(this.flyZoomToBBOXTimerFunc, SCALE_DELAY);
13230
13396
  };
13231
13397
  this.flyZoomToBBOXStop = () => {
13232
13398
  this.wmMap.setBBOX(this.flyZoomToBBOXFly);
@@ -13249,15 +13415,15 @@ class WMFlyToBBox {
13249
13415
  this.flyZoomToBBOXTimerFunc();
13250
13416
  }
13251
13417
  };
13252
- this.startZoomThrottled = throttle(THROTTLE_WAIT_TIME, (currentbox, newbox) => {
13418
+ this.startZoomThrottled = throttle((currentbox, newbox) => {
13253
13419
  this.flyZoomToBBOXStartZoom(currentbox, newbox);
13254
- }, THROTTLE_OPTIONS);
13420
+ }, THROTTLE_WAIT_TIME, THROTTLE_OPTIONS);
13255
13421
  this.flyZoomToBBOXStartZoomThrottled = (currentbox, newbox) => {
13256
13422
  this.startZoomThrottled(currentbox, newbox);
13257
13423
  };
13258
13424
  this.wmMap = wmMap;
13259
- this.flyZoomToBBOXTimerFuncReadyDebounced = debounce(ZOOMED_CALLBACK_DELAY, this.flyZoomToBBOXTimerFuncReadyDebounced);
13260
- this.flyZoomToBBOXDebounced = debounce(SCALE_DELAY, this.flyZoomToBBOXTimerFunc);
13425
+ this.flyZoomToBBOXTimerFuncReadyDebounced = debounce(this.flyZoomToBBOXTimerFuncReadyDebounced, ZOOMED_CALLBACK_DELAY);
13426
+ this.flyZoomToBBOXDebounced = debounce(this.flyZoomToBBOXTimerFunc, SCALE_DELAY);
13261
13427
  }
13262
13428
  }
13263
13429
 
@@ -13417,7 +13583,7 @@ class WMJSMap {
13417
13583
  ctx.textBaseline = 'middle';
13418
13584
  ctx.textAlign = 'left';
13419
13585
  if (isDefined(this.mouseGeoCoordXY)) {
13420
- let roundingFactor = 1.0 / Math.pow(10, parseInt(Math.log((this._bbox.right - this._bbox.left) / this._width) / Math.log(10), 10) - 2);
13586
+ let roundingFactor = 1.0 / 10 ** (parseInt(Math.log((this._bbox.right - this._bbox.left) / this._width) / Math.log(10), 10) - 2);
13421
13587
  if (roundingFactor < 1) {
13422
13588
  roundingFactor = 1;
13423
13589
  }
@@ -14066,7 +14232,7 @@ class WMJSMap {
14066
14232
  this._mapPan = this._mapPan.bind(this);
14067
14233
  this._mapPanEnd = this._mapPanEnd.bind(this);
14068
14234
  this.mapPanPercentage = this.mapPanPercentage.bind(this);
14069
- this._mapPanPercentageEnd = debounce(500, this._mapPanPercentageEnd);
14235
+ this._mapPanPercentageEnd = debounce(this._mapPanPercentageEnd, 500);
14070
14236
  this._mapZoomStart = this._mapZoomStart.bind(this);
14071
14237
  this._mapZoom = this._mapZoom.bind(this);
14072
14238
  this._mapZoomEnd = this._mapZoomEnd.bind(this);
@@ -14140,10 +14306,10 @@ class WMJSMap {
14140
14306
  this._numBaseLayers = 0;
14141
14307
  // Loop through baselayers
14142
14308
  this._baseLayers && this._baseLayers.forEach(baseLayer => {
14143
- var _a;
14144
14309
  if (baseLayer.enabled && baseLayer.keepOnTop === false && baseLayer.type && baseLayer.type !== 'twms') {
14310
+ var _buildWMSGetMapReques;
14145
14311
  this._numBaseLayers += 1;
14146
- const requestURL = (_a = buildWMSGetMapRequest(baseLayer, screenProjection)) === null || _a === void 0 ? void 0 : _a.url;
14312
+ const requestURL = (_buildWMSGetMapReques = buildWMSGetMapRequest(baseLayer, screenProjection)) == null ? void 0 : _buildWMSGetMapReques.url;
14147
14313
  if (requestURL) {
14148
14314
  this.canvasLayerBuffer.addLayerToCanvas(currentLayerIndex, requestURL, {
14149
14315
  layer: baseLayer
@@ -14157,9 +14323,9 @@ class WMJSMap {
14157
14323
  }
14158
14324
  // Loop through layers
14159
14325
  this._layers && this._layers.forEach(layer => {
14160
- var _a;
14161
14326
  if (layer.service && layer.enabled && layer.isConfigured) {
14162
- const requestURL = (_a = buildWMSGetMapRequest(layer, screenProjection)) === null || _a === void 0 ? void 0 : _a.url;
14327
+ var _buildWMSGetMapReques2;
14328
+ const requestURL = (_buildWMSGetMapReques2 = buildWMSGetMapRequest(layer, screenProjection)) == null ? void 0 : _buildWMSGetMapReques2.url;
14163
14329
  if (requestURL) {
14164
14330
  layer.setCurrentRequestedGetMapURL(requestURL);
14165
14331
  this.canvasLayerBuffer.addLayerToCanvas(currentLayerIndex, requestURL, {
@@ -14171,9 +14337,9 @@ class WMJSMap {
14171
14337
  });
14172
14338
  // Loop through overalys
14173
14339
  this._baseLayers && this._baseLayers.forEach(baseLayer => {
14174
- var _a;
14175
14340
  if (baseLayer.enabled && baseLayer.keepOnTop === true) {
14176
- const requestURL = (_a = buildWMSGetMapRequest(baseLayer, screenProjection)) === null || _a === void 0 ? void 0 : _a.url;
14341
+ var _buildWMSGetMapReques3;
14342
+ const requestURL = (_buildWMSGetMapReques3 = buildWMSGetMapRequest(baseLayer, screenProjection)) == null ? void 0 : _buildWMSGetMapReques3.url;
14177
14343
  if (requestURL) {
14178
14344
  this.canvasLayerBuffer.addLayerToCanvas(currentLayerIndex, requestURL, {
14179
14345
  layer: baseLayer
@@ -14610,7 +14776,7 @@ class WMJSMap {
14610
14776
  configureMapDimensions(layer) {
14611
14777
  layer.dimensions.forEach(dimension => {
14612
14778
  const mapDim = this.getDimension(dimension.name);
14613
- if ((mapDim === null || mapDim === void 0 ? void 0 : mapDim.currentValue) !== undefined && dimension.linked) {
14779
+ if ((mapDim == null ? void 0 : mapDim.currentValue) !== undefined && dimension.linked) {
14614
14780
  dimension.setClosestValue(mapDim.currentValue);
14615
14781
  }
14616
14782
  });
@@ -15363,9 +15529,9 @@ var LayerType;
15363
15529
  * @param layerDimNamesToRemove A set of dimensions names which are flagged for removal, this function removes the dimension from the set if found in the layer.
15364
15530
  */
15365
15531
  const addDimsForLayer = (layerProps, layer, layerDimNamesToRemove) => {
15366
- var _a;
15532
+ var _layerProps$dimension;
15367
15533
  /* Loop through all the dims from the WMS GetCapabilities document for this layer */
15368
- (_a = layerProps.dimensions) === null || _a === void 0 ? void 0 : _a.forEach(layerDimension => {
15534
+ (_layerProps$dimension = layerProps.dimensions) == null || _layerProps$dimension.forEach(layerDimension => {
15369
15535
  /* Obtain layerDim info from the GetCapabilities document and put into a WMSLayerDimInfo object */
15370
15536
  const dimName = (layerDimension.name || '').toLowerCase();
15371
15537
  const layerDim = {
@@ -15519,7 +15685,6 @@ class WMLayer {
15519
15685
  this.currentRequestedGetMapURL = undefined;
15520
15686
  }
15521
15687
  constructor(options) {
15522
- var _a;
15523
15688
  this.init = this.init.bind(this);
15524
15689
  this.getLayerName = this.getLayerName.bind(this);
15525
15690
  this.toggleAutoUpdate = this.toggleAutoUpdate.bind(this);
@@ -15554,6 +15719,7 @@ class WMLayer {
15554
15719
  this.sldURL = null;
15555
15720
  this.headers = [];
15556
15721
  if (options) {
15722
+ var _options$dimensions;
15557
15723
  this.service = options.service;
15558
15724
  this.getmapURL = options.service;
15559
15725
  this.getfeatureinfoURL = options.service;
@@ -15600,7 +15766,7 @@ class WMLayer {
15600
15766
  if (options.transparent === false) {
15601
15767
  this.transparent = false;
15602
15768
  }
15603
- if ((_a = options.dimensions) === null || _a === void 0 ? void 0 : _a.length) {
15769
+ if ((_options$dimensions = options.dimensions) != null && _options$dimensions.length) {
15604
15770
  options.dimensions.forEach(dimension => {
15605
15771
  this.dimensions.push(new WMJSDimension(dimension));
15606
15772
  });
@@ -15714,7 +15880,7 @@ class WMLayer {
15714
15880
  let capabilityObject;
15715
15881
  try {
15716
15882
  capabilityObject = wmjsService.getCapabilityElement(getcapabilitiesjson);
15717
- } catch (_a) {
15883
+ } catch (_unused) {
15718
15884
  fail(this, 'No capability element in service');
15719
15885
  return;
15720
15886
  }
@@ -16436,7 +16602,7 @@ const makeGeoservicesRadarLayer = dimensions => {
16436
16602
  id: generateLayerId(),
16437
16603
  layerType: LayerType.mapLayer,
16438
16604
  title: 'RAD_NL25_PCP_CM',
16439
- dimensions: dimensions !== null && dimensions !== void 0 ? dimensions : [{
16605
+ dimensions: dimensions != null ? dimensions : [{
16440
16606
  name: 'time',
16441
16607
  units: 'ISO8601',
16442
16608
  currentValue: '2021-04-15T00:00:00Z'
@@ -17342,6 +17508,23 @@ const WMS111GetCapabilitiesGeoServicesRADAR = `<?xml version="1.0" encoding="UTF
17342
17508
  </Capability>
17343
17509
  </WMT_MS_Capabilities>`;
17344
17510
 
17511
+ /* *
17512
+ * Licensed under the Apache License, Version 2.0 (the "License");
17513
+ * you may not use this file except in compliance with the License.
17514
+ * You may obtain a copy of the License at
17515
+ *
17516
+ * http://www.apache.org/licenses/LICENSE-2.0
17517
+ *
17518
+ * Unless required by applicable law or agreed to in writing, software
17519
+ * distributed under the License is distributed on an "AS IS" BASIS,
17520
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17521
+ * See the License for the specific language governing permissions and
17522
+ * limitations under the License.
17523
+ *
17524
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
17525
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
17526
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
17527
+ * */
17345
17528
  const MOCK_URL_WITH_CHILDREN = 'https://mockUrlWithChildren.nl';
17346
17529
  const MOCK_URL_NO_CHILDREN = 'https://mockUrlNoChildren.nl';
17347
17530
  const MOCK_URL_WITH_NO_TITLE = 'https://mockUrlWithNoTitle.nl';
@@ -17493,8 +17676,8 @@ const mockGetLayersFromService = url => {
17493
17676
  }
17494
17677
  }
17495
17678
  };
17496
- const mockGetLayersFlattenedFromService = url => __awaiter(void 0, void 0, void 0, function* () {
17497
- const layers = yield mockGetLayersFromService(url);
17679
+ const mockGetLayersFlattenedFromService = async url => {
17680
+ const layers = await mockGetLayersFromService(url);
17498
17681
  const serviceLayers = [];
17499
17682
  // TODO: Maarten Plieger, 2022-11-02: Harmonize types and use correct types: https://gitlab.com/opengeoweb/opengeoweb/-/issues/2817
17500
17683
  for (const object of layers.children) {
@@ -17511,7 +17694,7 @@ const mockGetLayersFlattenedFromService = url => __awaiter(void 0, void 0, void
17511
17694
  });
17512
17695
  }
17513
17696
  return serviceLayers;
17514
- });
17697
+ };
17515
17698
 
17516
17699
  var getCapabilities$1 = /*#__PURE__*/Object.freeze({
17517
17700
  __proto__: null,
@@ -17537,7 +17720,7 @@ var getCapabilities$1 = /*#__PURE__*/Object.freeze({
17537
17720
  mockLayersWithSubcategory: mockLayersWithSubcategory
17538
17721
  });
17539
17722
 
17540
- const mockGetCapabilities = Object.assign(Object.assign({}, getCapabilities$1), {
17723
+ const mockGetCapabilities = Object.assign({}, getCapabilities$1, {
17541
17724
  WMS111GetCapabilitiesGeoServicesRADAR
17542
17725
  });
17543
17726