@opengeoweb/webmap 9.14.0 → 9.16.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
@@ -10,7 +10,7 @@ var check = function (it) {
10
10
  };
11
11
 
12
12
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
13
- var global$D =
13
+ var global$C =
14
14
  // eslint-disable-next-line es/no-global-this -- safe
15
15
  check(typeof globalThis == 'object' && globalThis) ||
16
16
  check(typeof window == 'object' && window) ||
@@ -130,17 +130,17 @@ var $TypeError$k = TypeError;
130
130
 
131
131
  // `RequireObjectCoercible` abstract operation
132
132
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
133
- var requireObjectCoercible$a = function (it) {
133
+ var requireObjectCoercible$b = function (it) {
134
134
  if (isNullOrUndefined$6(it)) throw new $TypeError$k("Can't call method on " + it);
135
135
  return it;
136
136
  };
137
137
 
138
138
  // toObject with fallback for non-array-like ES3 strings
139
139
  var IndexedObject$4 = indexedObject;
140
- var requireObjectCoercible$9 = requireObjectCoercible$a;
140
+ var requireObjectCoercible$a = requireObjectCoercible$b;
141
141
 
142
142
  var toIndexedObject$6 = function (it) {
143
- return IndexedObject$4(requireObjectCoercible$9(it));
143
+ return IndexedObject$4(requireObjectCoercible$a(it));
144
144
  };
145
145
 
146
146
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
@@ -157,11 +157,11 @@ var isCallable$q = typeof documentAll == 'undefined' && documentAll !== undefine
157
157
 
158
158
  var isCallable$p = isCallable$q;
159
159
 
160
- var isObject$h = function (it) {
160
+ var isObject$i = function (it) {
161
161
  return typeof it == 'object' ? it !== null : isCallable$p(it);
162
162
  };
163
163
 
164
- var global$C = global$D;
164
+ var global$B = global$C;
165
165
  var isCallable$o = isCallable$q;
166
166
 
167
167
  var aFunction = function (argument) {
@@ -169,7 +169,7 @@ var aFunction = function (argument) {
169
169
  };
170
170
 
171
171
  var getBuiltIn$d = function (namespace, method) {
172
- return arguments.length < 2 ? aFunction(global$C[namespace]) : global$C[namespace] && global$C[namespace][method];
172
+ return arguments.length < 2 ? aFunction(global$B[namespace]) : global$B[namespace] && global$B[namespace][method];
173
173
  };
174
174
 
175
175
  var uncurryThis$I = functionUncurryThis;
@@ -178,11 +178,11 @@ var objectIsPrototypeOf = uncurryThis$I({}.isPrototypeOf);
178
178
 
179
179
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
180
180
 
181
- var global$B = global$D;
181
+ var global$A = global$C;
182
182
  var userAgent$5 = engineUserAgent;
183
183
 
184
- var process$3 = global$B.process;
185
- var Deno$1 = global$B.Deno;
184
+ var process$3 = global$A.process;
185
+ var Deno$1 = global$A.Deno;
186
186
  var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
187
187
  var v8 = versions && versions.v8;
188
188
  var match, version$1;
@@ -209,9 +209,9 @@ var engineV8Version = version$1;
209
209
  /* eslint-disable es/no-symbol -- required for testing */
210
210
  var V8_VERSION$1 = engineV8Version;
211
211
  var fails$C = fails$G;
212
- var global$A = global$D;
212
+ var global$z = global$C;
213
213
 
214
- var $String$7 = global$A.String;
214
+ var $String$7 = global$z.String;
215
215
 
216
216
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
217
217
  var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$C(function () {
@@ -279,7 +279,7 @@ var getMethod$6 = function (V, P) {
279
279
 
280
280
  var call$r = functionCall;
281
281
  var isCallable$l = isCallable$q;
282
- var isObject$g = isObject$h;
282
+ var isObject$h = isObject$i;
283
283
 
284
284
  var $TypeError$i = TypeError;
285
285
 
@@ -287,61 +287,61 @@ var $TypeError$i = TypeError;
287
287
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
288
288
  var ordinaryToPrimitive$1 = function (input, pref) {
289
289
  var fn, val;
290
- if (pref === 'string' && isCallable$l(fn = input.toString) && !isObject$g(val = call$r(fn, input))) return val;
291
- if (isCallable$l(fn = input.valueOf) && !isObject$g(val = call$r(fn, input))) return val;
292
- if (pref !== 'string' && isCallable$l(fn = input.toString) && !isObject$g(val = call$r(fn, input))) return val;
290
+ if (pref === 'string' && isCallable$l(fn = input.toString) && !isObject$h(val = call$r(fn, input))) return val;
291
+ if (isCallable$l(fn = input.valueOf) && !isObject$h(val = call$r(fn, input))) return val;
292
+ if (pref !== 'string' && isCallable$l(fn = input.toString) && !isObject$h(val = call$r(fn, input))) return val;
293
293
  throw new $TypeError$i("Can't convert object to primitive value");
294
294
  };
295
295
 
296
- var shared$4 = {exports: {}};
296
+ var sharedStore = {exports: {}};
297
297
 
298
298
  var isPure = false;
299
299
 
300
- var global$z = global$D;
300
+ var global$y = global$C;
301
301
 
302
302
  // eslint-disable-next-line es/no-object-defineproperty -- safe
303
303
  var defineProperty$9 = Object.defineProperty;
304
304
 
305
305
  var defineGlobalProperty$3 = function (key, value) {
306
306
  try {
307
- defineProperty$9(global$z, key, { value: value, configurable: true, writable: true });
307
+ defineProperty$9(global$y, key, { value: value, configurable: true, writable: true });
308
308
  } catch (error) {
309
- global$z[key] = value;
309
+ global$y[key] = value;
310
310
  } return value;
311
311
  };
312
312
 
313
- var global$y = global$D;
313
+ var globalThis$1 = global$C;
314
314
  var defineGlobalProperty$2 = defineGlobalProperty$3;
315
315
 
316
316
  var SHARED = '__core-js_shared__';
317
- var store$3 = global$y[SHARED] || defineGlobalProperty$2(SHARED, {});
317
+ var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
318
318
 
319
- var sharedStore = store$3;
320
-
321
- var store$2 = sharedStore;
322
-
323
- (shared$4.exports = function (key, value) {
324
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
325
- })('versions', []).push({
326
- version: '3.35.1',
319
+ (store$3.versions || (store$3.versions = [])).push({
320
+ version: '3.36.1',
327
321
  mode: 'global',
328
322
  copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
329
- license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
323
+ license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
330
324
  source: 'https://github.com/zloirock/core-js'
331
325
  });
332
326
 
333
- var requireObjectCoercible$8 = requireObjectCoercible$a;
327
+ var store$2 = sharedStore.exports;
328
+
329
+ var shared$4 = function (key, value) {
330
+ return store$2[key] || (store$2[key] = value || {});
331
+ };
332
+
333
+ var requireObjectCoercible$9 = requireObjectCoercible$b;
334
334
 
335
335
  var $Object$2 = Object;
336
336
 
337
337
  // `ToObject` abstract operation
338
338
  // https://tc39.es/ecma262/#sec-toobject
339
- var toObject$d = function (argument) {
340
- return $Object$2(requireObjectCoercible$8(argument));
339
+ var toObject$c = function (argument) {
340
+ return $Object$2(requireObjectCoercible$9(argument));
341
341
  };
342
342
 
343
343
  var uncurryThis$H = functionUncurryThis;
344
- var toObject$c = toObject$d;
344
+ var toObject$b = toObject$c;
345
345
 
346
346
  var hasOwnProperty = uncurryThis$H({}.hasOwnProperty);
347
347
 
@@ -349,7 +349,7 @@ var hasOwnProperty = uncurryThis$H({}.hasOwnProperty);
349
349
  // https://tc39.es/ecma262/#sec-hasownproperty
350
350
  // eslint-disable-next-line es/no-object-hasown -- safe
351
351
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
352
- return hasOwnProperty(toObject$c(it), key);
352
+ return hasOwnProperty(toObject$b(it), key);
353
353
  };
354
354
 
355
355
  var uncurryThis$G = functionUncurryThis;
@@ -362,8 +362,8 @@ var uid$3 = function (key) {
362
362
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$j(++id + postfix, 36);
363
363
  };
364
364
 
365
- var global$x = global$D;
366
- var shared$3 = shared$4.exports;
365
+ var global$x = global$C;
366
+ var shared$3 = shared$4;
367
367
  var hasOwn$h = hasOwnProperty_1;
368
368
  var uid$2 = uid$3;
369
369
  var NATIVE_SYMBOL$1 = symbolConstructorDetection;
@@ -382,7 +382,7 @@ var wellKnownSymbol$m = function (name) {
382
382
  };
383
383
 
384
384
  var call$q = functionCall;
385
- var isObject$f = isObject$h;
385
+ var isObject$g = isObject$i;
386
386
  var isSymbol$3 = isSymbol$4;
387
387
  var getMethod$5 = getMethod$6;
388
388
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
@@ -394,13 +394,13 @@ var TO_PRIMITIVE = wellKnownSymbol$l('toPrimitive');
394
394
  // `ToPrimitive` abstract operation
395
395
  // https://tc39.es/ecma262/#sec-toprimitive
396
396
  var toPrimitive$2 = function (input, pref) {
397
- if (!isObject$f(input) || isSymbol$3(input)) return input;
397
+ if (!isObject$g(input) || isSymbol$3(input)) return input;
398
398
  var exoticToPrim = getMethod$5(input, TO_PRIMITIVE);
399
399
  var result;
400
400
  if (exoticToPrim) {
401
401
  if (pref === undefined) pref = 'default';
402
402
  result = call$q(exoticToPrim, input, pref);
403
- if (!isObject$f(result) || isSymbol$3(result)) return result;
403
+ if (!isObject$g(result) || isSymbol$3(result)) return result;
404
404
  throw new $TypeError$h("Can't convert object to primitive value");
405
405
  }
406
406
  if (pref === undefined) pref = 'number';
@@ -412,40 +412,40 @@ var isSymbol$2 = isSymbol$4;
412
412
 
413
413
  // `ToPropertyKey` abstract operation
414
414
  // https://tc39.es/ecma262/#sec-topropertykey
415
- var toPropertyKey$4 = function (argument) {
415
+ var toPropertyKey$3 = function (argument) {
416
416
  var key = toPrimitive$1(argument, 'string');
417
417
  return isSymbol$2(key) ? key : key + '';
418
418
  };
419
419
 
420
- var global$w = global$D;
421
- var isObject$e = isObject$h;
420
+ var global$w = global$C;
421
+ var isObject$f = isObject$i;
422
422
 
423
423
  var document$3 = global$w.document;
424
424
  // typeof document.createElement is 'object' in old IE
425
- var EXISTS$1 = isObject$e(document$3) && isObject$e(document$3.createElement);
425
+ var EXISTS$1 = isObject$f(document$3) && isObject$f(document$3.createElement);
426
426
 
427
427
  var documentCreateElement$2 = function (it) {
428
428
  return EXISTS$1 ? document$3.createElement(it) : {};
429
429
  };
430
430
 
431
- var DESCRIPTORS$o = descriptors;
431
+ var DESCRIPTORS$p = descriptors;
432
432
  var fails$B = fails$G;
433
433
  var createElement$1 = documentCreateElement$2;
434
434
 
435
435
  // Thanks to IE8 for its funny defineProperty
436
- var ie8DomDefine = !DESCRIPTORS$o && !fails$B(function () {
436
+ var ie8DomDefine = !DESCRIPTORS$p && !fails$B(function () {
437
437
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
438
438
  return Object.defineProperty(createElement$1('div'), 'a', {
439
439
  get: function () { return 7; }
440
440
  }).a !== 7;
441
441
  });
442
442
 
443
- var DESCRIPTORS$n = descriptors;
443
+ var DESCRIPTORS$o = descriptors;
444
444
  var call$p = functionCall;
445
445
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
446
446
  var createPropertyDescriptor$8 = createPropertyDescriptor$9;
447
447
  var toIndexedObject$5 = toIndexedObject$6;
448
- var toPropertyKey$3 = toPropertyKey$4;
448
+ var toPropertyKey$2 = toPropertyKey$3;
449
449
  var hasOwn$g = hasOwnProperty_1;
450
450
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
451
451
 
@@ -454,9 +454,9 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
454
454
 
455
455
  // `Object.getOwnPropertyDescriptor` method
456
456
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
457
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$n ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
457
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$o ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
458
458
  O = toIndexedObject$5(O);
459
- P = toPropertyKey$3(P);
459
+ P = toPropertyKey$2(P);
460
460
  if (IE8_DOM_DEFINE$1) try {
461
461
  return $getOwnPropertyDescriptor$1(O, P);
462
462
  } catch (error) { /* empty */ }
@@ -465,12 +465,12 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$n ? $getOwnPropertyDescriptor$1 :
465
465
 
466
466
  var objectDefineProperty = {};
467
467
 
468
- var DESCRIPTORS$m = descriptors;
468
+ var DESCRIPTORS$n = descriptors;
469
469
  var fails$A = fails$G;
470
470
 
471
471
  // V8 ~ Chrome 36-
472
472
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
473
- var v8PrototypeDefineBug = DESCRIPTORS$m && fails$A(function () {
473
+ var v8PrototypeDefineBug = DESCRIPTORS$n && fails$A(function () {
474
474
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
475
475
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
476
476
  value: 42,
@@ -478,22 +478,22 @@ var v8PrototypeDefineBug = DESCRIPTORS$m && fails$A(function () {
478
478
  }).prototype !== 42;
479
479
  });
480
480
 
481
- var isObject$d = isObject$h;
481
+ var isObject$e = isObject$i;
482
482
 
483
483
  var $String$5 = String;
484
484
  var $TypeError$g = TypeError;
485
485
 
486
486
  // `Assert: Type(argument) is Object`
487
- var anObject$l = function (argument) {
488
- if (isObject$d(argument)) return argument;
487
+ var anObject$k = function (argument) {
488
+ if (isObject$e(argument)) return argument;
489
489
  throw new $TypeError$g($String$5(argument) + ' is not an object');
490
490
  };
491
491
 
492
- var DESCRIPTORS$l = descriptors;
492
+ var DESCRIPTORS$m = descriptors;
493
493
  var IE8_DOM_DEFINE = ie8DomDefine;
494
494
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
495
- var anObject$k = anObject$l;
496
- var toPropertyKey$2 = toPropertyKey$4;
495
+ var anObject$j = anObject$k;
496
+ var toPropertyKey$1 = toPropertyKey$3;
497
497
 
498
498
  var $TypeError$f = TypeError;
499
499
  // eslint-disable-next-line es/no-object-defineproperty -- safe
@@ -506,10 +506,10 @@ var WRITABLE = 'writable';
506
506
 
507
507
  // `Object.defineProperty` method
508
508
  // https://tc39.es/ecma262/#sec-object.defineproperty
509
- objectDefineProperty.f = DESCRIPTORS$l ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
510
- anObject$k(O);
511
- P = toPropertyKey$2(P);
512
- anObject$k(Attributes);
509
+ objectDefineProperty.f = DESCRIPTORS$m ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
510
+ anObject$j(O);
511
+ P = toPropertyKey$1(P);
512
+ anObject$j(Attributes);
513
513
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
514
514
  var current = $getOwnPropertyDescriptor(O, P);
515
515
  if (current && current[WRITABLE]) {
@@ -522,9 +522,9 @@ objectDefineProperty.f = DESCRIPTORS$l ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
522
522
  }
523
523
  } return $defineProperty(O, P, Attributes);
524
524
  } : $defineProperty : function defineProperty(O, P, Attributes) {
525
- anObject$k(O);
526
- P = toPropertyKey$2(P);
527
- anObject$k(Attributes);
525
+ anObject$j(O);
526
+ P = toPropertyKey$1(P);
527
+ anObject$j(Attributes);
528
528
  if (IE8_DOM_DEFINE) try {
529
529
  return $defineProperty(O, P, Attributes);
530
530
  } catch (error) { /* empty */ }
@@ -533,11 +533,11 @@ objectDefineProperty.f = DESCRIPTORS$l ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
533
533
  return O;
534
534
  };
535
535
 
536
- var DESCRIPTORS$k = descriptors;
536
+ var DESCRIPTORS$l = descriptors;
537
537
  var definePropertyModule$5 = objectDefineProperty;
538
538
  var createPropertyDescriptor$7 = createPropertyDescriptor$9;
539
539
 
540
- var createNonEnumerableProperty$b = DESCRIPTORS$k ? function (object, key, value) {
540
+ var createNonEnumerableProperty$b = DESCRIPTORS$l ? function (object, key, value) {
541
541
  return definePropertyModule$5.f(object, key, createPropertyDescriptor$7(1, value));
542
542
  } : function (object, key, value) {
543
543
  object[key] = value;
@@ -546,17 +546,17 @@ var createNonEnumerableProperty$b = DESCRIPTORS$k ? function (object, key, value
546
546
 
547
547
  var makeBuiltIn$3 = {exports: {}};
548
548
 
549
- var DESCRIPTORS$j = descriptors;
549
+ var DESCRIPTORS$k = descriptors;
550
550
  var hasOwn$f = hasOwnProperty_1;
551
551
 
552
552
  var FunctionPrototype$1 = Function.prototype;
553
553
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
554
- var getDescriptor = DESCRIPTORS$j && Object.getOwnPropertyDescriptor;
554
+ var getDescriptor = DESCRIPTORS$k && Object.getOwnPropertyDescriptor;
555
555
 
556
556
  var EXISTS = hasOwn$f(FunctionPrototype$1, 'name');
557
557
  // additional protection from minified / mangled / dropped function names
558
558
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
559
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$j || (DESCRIPTORS$j && getDescriptor(FunctionPrototype$1, 'name').configurable));
559
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$k || (DESCRIPTORS$k && getDescriptor(FunctionPrototype$1, 'name').configurable));
560
560
 
561
561
  var functionName = {
562
562
  EXISTS: EXISTS,
@@ -566,7 +566,7 @@ var functionName = {
566
566
 
567
567
  var uncurryThis$F = functionUncurryThis;
568
568
  var isCallable$k = isCallable$q;
569
- var store$1 = sharedStore;
569
+ var store$1 = sharedStore.exports;
570
570
 
571
571
  var functionToString = uncurryThis$F(Function.toString);
572
572
 
@@ -579,14 +579,14 @@ if (!isCallable$k(store$1.inspectSource)) {
579
579
 
580
580
  var inspectSource$3 = store$1.inspectSource;
581
581
 
582
- var global$v = global$D;
582
+ var global$v = global$C;
583
583
  var isCallable$j = isCallable$q;
584
584
 
585
585
  var WeakMap$2 = global$v.WeakMap;
586
586
 
587
587
  var weakMapBasicDetection = isCallable$j(WeakMap$2) && /native code/.test(String(WeakMap$2));
588
588
 
589
- var shared$2 = shared$4.exports;
589
+ var shared$2 = shared$4;
590
590
  var uid$1 = uid$3;
591
591
 
592
592
  var keys = shared$2('keys');
@@ -598,11 +598,11 @@ var sharedKey$3 = function (key) {
598
598
  var hiddenKeys$4 = {};
599
599
 
600
600
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
601
- var global$u = global$D;
602
- var isObject$c = isObject$h;
601
+ var global$u = global$C;
602
+ var isObject$d = isObject$i;
603
603
  var createNonEnumerableProperty$a = createNonEnumerableProperty$b;
604
604
  var hasOwn$e = hasOwnProperty_1;
605
- var shared$1 = sharedStore;
605
+ var shared$1 = sharedStore.exports;
606
606
  var sharedKey$2 = sharedKey$3;
607
607
  var hiddenKeys$3 = hiddenKeys$4;
608
608
 
@@ -618,7 +618,7 @@ var enforce = function (it) {
618
618
  var getterFor$1 = function (TYPE) {
619
619
  return function (it) {
620
620
  var state;
621
- if (!isObject$c(it) || (state = get$1(it)).type !== TYPE) {
621
+ if (!isObject$d(it) || (state = get$1(it)).type !== TYPE) {
622
622
  throw new TypeError$6('Incompatible receiver, ' + TYPE + ' required');
623
623
  } return state;
624
624
  };
@@ -672,7 +672,7 @@ var uncurryThis$E = functionUncurryThis;
672
672
  var fails$z = fails$G;
673
673
  var isCallable$i = isCallable$q;
674
674
  var hasOwn$d = hasOwnProperty_1;
675
- var DESCRIPTORS$i = descriptors;
675
+ var DESCRIPTORS$j = descriptors;
676
676
  var CONFIGURABLE_FUNCTION_NAME$2 = functionName.CONFIGURABLE;
677
677
  var inspectSource$2 = inspectSource$3;
678
678
  var InternalStateModule$9 = internalState;
@@ -686,7 +686,7 @@ var stringSlice$9 = uncurryThis$E(''.slice);
686
686
  var replace$8 = uncurryThis$E(''.replace);
687
687
  var join$3 = uncurryThis$E([].join);
688
688
 
689
- var CONFIGURABLE_LENGTH = DESCRIPTORS$i && !fails$z(function () {
689
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$j && !fails$z(function () {
690
690
  return defineProperty$8(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
691
691
  });
692
692
 
@@ -699,7 +699,7 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
699
699
  if (options && options.getter) name = 'get ' + name;
700
700
  if (options && options.setter) name = 'set ' + name;
701
701
  if (!hasOwn$d(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$2 && value.name !== name)) {
702
- if (DESCRIPTORS$i) defineProperty$8(value, 'name', { value: name, configurable: true });
702
+ if (DESCRIPTORS$j) defineProperty$8(value, 'name', { value: name, configurable: true });
703
703
  else value.name = name;
704
704
  }
705
705
  if (CONFIGURABLE_LENGTH && options && hasOwn$d(options, 'arity') && value.length !== options.arity) {
@@ -707,7 +707,7 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
707
707
  }
708
708
  try {
709
709
  if (options && hasOwn$d(options, 'constructor') && options.constructor) {
710
- if (DESCRIPTORS$i) defineProperty$8(value, 'prototype', { writable: false });
710
+ if (DESCRIPTORS$j) defineProperty$8(value, 'prototype', { writable: false });
711
711
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
712
712
  } else if (value.prototype) value.prototype = undefined;
713
713
  } catch (error) { /* empty */ }
@@ -802,19 +802,20 @@ var toLength$7 = toLength$8;
802
802
 
803
803
  // `LengthOfArrayLike` abstract operation
804
804
  // https://tc39.es/ecma262/#sec-lengthofarraylike
805
- var lengthOfArrayLike$g = function (obj) {
805
+ var lengthOfArrayLike$f = function (obj) {
806
806
  return toLength$7(obj.length);
807
807
  };
808
808
 
809
809
  var toIndexedObject$4 = toIndexedObject$6;
810
810
  var toAbsoluteIndex$2 = toAbsoluteIndex$3;
811
- var lengthOfArrayLike$f = lengthOfArrayLike$g;
811
+ var lengthOfArrayLike$e = lengthOfArrayLike$f;
812
812
 
813
813
  // `Array.prototype.{ indexOf, includes }` methods implementation
814
814
  var createMethod$5 = function (IS_INCLUDES) {
815
815
  return function ($this, el, fromIndex) {
816
816
  var O = toIndexedObject$4($this);
817
- var length = lengthOfArrayLike$f(O);
817
+ var length = lengthOfArrayLike$e(O);
818
+ if (length === 0) return !IS_INCLUDES && -1;
818
819
  var index = toAbsoluteIndex$2(fromIndex, length);
819
820
  var value;
820
821
  // Array#includes uses SameValueZero equality algorithm
@@ -892,13 +893,13 @@ var getBuiltIn$b = getBuiltIn$d;
892
893
  var uncurryThis$C = functionUncurryThis;
893
894
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
894
895
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
895
- var anObject$j = anObject$l;
896
+ var anObject$i = anObject$k;
896
897
 
897
898
  var concat$2 = uncurryThis$C([].concat);
898
899
 
899
900
  // all object keys, includes non-enumerable and symbols
900
901
  var ownKeys$1 = getBuiltIn$b('Reflect', 'ownKeys') || function ownKeys(it) {
901
- var keys = getOwnPropertyNamesModule.f(anObject$j(it));
902
+ var keys = getOwnPropertyNamesModule.f(anObject$i(it));
902
903
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
903
904
  return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
904
905
  };
@@ -943,7 +944,7 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
943
944
 
944
945
  var isForced_1 = isForced$2;
945
946
 
946
- var global$t = global$D;
947
+ var global$t = global$C;
947
948
  var getOwnPropertyDescriptor$3 = objectGetOwnPropertyDescriptor.f;
948
949
  var createNonEnumerableProperty$9 = createNonEnumerableProperty$b;
949
950
  var defineBuiltIn$d = defineBuiltIn$e;
@@ -1019,10 +1020,10 @@ var functionUncurryThisAccessor = function (object, key, method) {
1019
1020
  } catch (error) { /* empty */ }
1020
1021
  };
1021
1022
 
1022
- var isObject$b = isObject$h;
1023
+ var isObject$c = isObject$i;
1023
1024
 
1024
1025
  var isPossiblePrototype$1 = function (argument) {
1025
- return isObject$b(argument) || argument === null;
1026
+ return isObject$c(argument) || argument === null;
1026
1027
  };
1027
1028
 
1028
1029
  var isPossiblePrototype = isPossiblePrototype$1;
@@ -1037,7 +1038,8 @@ var aPossiblePrototype$1 = function (argument) {
1037
1038
 
1038
1039
  /* eslint-disable no-proto -- safe */
1039
1040
  var uncurryThisAccessor$2 = functionUncurryThisAccessor;
1040
- var anObject$i = anObject$l;
1041
+ var isObject$b = isObject$i;
1042
+ var requireObjectCoercible$8 = requireObjectCoercible$b;
1041
1043
  var aPossiblePrototype = aPossiblePrototype$1;
1042
1044
 
1043
1045
  // `Object.setPrototypeOf` method
@@ -1054,8 +1056,9 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1054
1056
  CORRECT_SETTER = test instanceof Array;
1055
1057
  } catch (error) { /* empty */ }
1056
1058
  return function setPrototypeOf(O, proto) {
1057
- anObject$i(O);
1059
+ requireObjectCoercible$8(O);
1058
1060
  aPossiblePrototype(proto);
1061
+ if (!isObject$b(O)) return O;
1059
1062
  if (CORRECT_SETTER) setter(O, proto);
1060
1063
  else O.__proto__ = proto;
1061
1064
  return O;
@@ -1073,7 +1076,7 @@ var proxyAccessor$1 = function (Target, Source, key) {
1073
1076
  };
1074
1077
 
1075
1078
  var isCallable$f = isCallable$q;
1076
- var isObject$a = isObject$h;
1079
+ var isObject$a = isObject$i;
1077
1080
  var setPrototypeOf$6 = objectSetPrototypeOf;
1078
1081
 
1079
1082
  // makes subclassing work correct for wrapped built-ins
@@ -1145,7 +1148,7 @@ var normalizeStringArgument$4 = function (argument, $default) {
1145
1148
  return argument === undefined ? arguments.length < 2 ? '' : $default : toString$h(argument);
1146
1149
  };
1147
1150
 
1148
- var isObject$9 = isObject$h;
1151
+ var isObject$9 = isObject$i;
1149
1152
  var createNonEnumerableProperty$8 = createNonEnumerableProperty$b;
1150
1153
 
1151
1154
  // `InstallErrorCause` abstract operation
@@ -1208,7 +1211,7 @@ var inheritIfRequired$3 = inheritIfRequired$4;
1208
1211
  var normalizeStringArgument$3 = normalizeStringArgument$4;
1209
1212
  var installErrorCause = installErrorCause$1;
1210
1213
  var installErrorStack = errorStackInstall;
1211
- var DESCRIPTORS$h = descriptors;
1214
+ var DESCRIPTORS$i = descriptors;
1212
1215
 
1213
1216
  var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
1214
1217
  var STACK_TRACE_LIMIT = 'stackTraceLimit';
@@ -1243,7 +1246,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
1243
1246
  if (ERROR_NAME !== 'Error') {
1244
1247
  if (setPrototypeOf$5) setPrototypeOf$5(WrappedError, BaseError);
1245
1248
  else copyConstructorProperties$1(WrappedError, BaseError, { name: true });
1246
- } else if (DESCRIPTORS$h && STACK_TRACE_LIMIT in OriginalError) {
1249
+ } else if (DESCRIPTORS$i && STACK_TRACE_LIMIT in OriginalError) {
1247
1250
  proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
1248
1251
  proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
1249
1252
  }
@@ -1262,8 +1265,8 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
1262
1265
  };
1263
1266
 
1264
1267
  /* eslint-disable no-unused-vars -- required for functions `.length` */
1265
- var $$w = _export;
1266
- var global$s = global$D;
1268
+ var $$v = _export;
1269
+ var global$s = global$C;
1267
1270
  var apply$4 = functionApply;
1268
1271
  var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
1269
1272
 
@@ -1271,19 +1274,19 @@ var WEB_ASSEMBLY = 'WebAssembly';
1271
1274
  var WebAssembly = global$s[WEB_ASSEMBLY];
1272
1275
 
1273
1276
  // eslint-disable-next-line es/no-error-cause -- feature detection
1274
- var FORCED$8 = new Error('e', { cause: 7 }).cause !== 7;
1277
+ var FORCED$7 = new Error('e', { cause: 7 }).cause !== 7;
1275
1278
 
1276
1279
  var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
1277
1280
  var O = {};
1278
- O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$8);
1279
- $$w({ global: true, constructor: true, arity: 1, forced: FORCED$8 }, O);
1281
+ O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$7);
1282
+ $$v({ global: true, constructor: true, arity: 1, forced: FORCED$7 }, O);
1280
1283
  };
1281
1284
 
1282
1285
  var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
1283
1286
  if (WebAssembly && WebAssembly[ERROR_NAME]) {
1284
1287
  var O = {};
1285
- O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$8);
1286
- $$w({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$8 }, O);
1288
+ O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$7);
1289
+ $$v({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$7 }, O);
1287
1290
  }
1288
1291
  };
1289
1292
 
@@ -1331,17 +1334,17 @@ var objectKeys$2 = Object.keys || function keys(O) {
1331
1334
  return internalObjectKeys(O, enumBugKeys$1);
1332
1335
  };
1333
1336
 
1334
- var DESCRIPTORS$g = descriptors;
1337
+ var DESCRIPTORS$h = descriptors;
1335
1338
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1336
1339
  var definePropertyModule$2 = objectDefineProperty;
1337
- var anObject$h = anObject$l;
1340
+ var anObject$h = anObject$k;
1338
1341
  var toIndexedObject$2 = toIndexedObject$6;
1339
1342
  var objectKeys$1 = objectKeys$2;
1340
1343
 
1341
1344
  // `Object.defineProperties` method
1342
1345
  // https://tc39.es/ecma262/#sec-object.defineproperties
1343
1346
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1344
- objectDefineProperties.f = DESCRIPTORS$g && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1347
+ objectDefineProperties.f = DESCRIPTORS$h && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1345
1348
  anObject$h(O);
1346
1349
  var props = toIndexedObject$2(Properties);
1347
1350
  var keys = objectKeys$1(Properties);
@@ -1357,7 +1360,7 @@ var getBuiltIn$9 = getBuiltIn$d;
1357
1360
  var html$2 = getBuiltIn$9('document', 'documentElement');
1358
1361
 
1359
1362
  /* global ActiveXObject -- old IE, WSH */
1360
- var anObject$g = anObject$l;
1363
+ var anObject$g = anObject$k;
1361
1364
  var definePropertiesModule = objectDefineProperties;
1362
1365
  var enumBugKeys = enumBugKeys$3;
1363
1366
  var hiddenKeys = hiddenKeys$4;
@@ -1461,7 +1464,7 @@ var addToUnscopables$2 = function (key) {
1461
1464
  ArrayPrototype$1[UNSCOPABLES][key] = true;
1462
1465
  };
1463
1466
 
1464
- var $$v = _export;
1467
+ var $$u = _export;
1465
1468
  var $includes = arrayIncludes.includes;
1466
1469
  var fails$w = fails$G;
1467
1470
  var addToUnscopables$1 = addToUnscopables$2;
@@ -1474,7 +1477,7 @@ var BROKEN_ON_SPARSE = fails$w(function () {
1474
1477
 
1475
1478
  // `Array.prototype.includes` method
1476
1479
  // https://tc39.es/ecma262/#sec-array.prototype.includes
1477
- $$v({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1480
+ $$u({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1478
1481
  includes: function includes(el /* , fromIndex = 0 */) {
1479
1482
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
1480
1483
  }
@@ -1496,7 +1499,7 @@ var correctPrototypeGetter = !fails$v(function () {
1496
1499
 
1497
1500
  var hasOwn$9 = hasOwnProperty_1;
1498
1501
  var isCallable$d = isCallable$q;
1499
- var toObject$b = toObject$d;
1502
+ var toObject$a = toObject$c;
1500
1503
  var sharedKey = sharedKey$3;
1501
1504
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1502
1505
 
@@ -1508,7 +1511,7 @@ var ObjectPrototype$2 = $Object.prototype;
1508
1511
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1509
1512
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1510
1513
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1511
- var object = toObject$b(O);
1514
+ var object = toObject$a(O);
1512
1515
  if (hasOwn$9(object, IE_PROTO)) return object[IE_PROTO];
1513
1516
  var constructor = object.constructor;
1514
1517
  if (isCallable$d(constructor) && object instanceof constructor) {
@@ -1518,7 +1521,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : f
1518
1521
 
1519
1522
  var fails$u = fails$G;
1520
1523
  var isCallable$c = isCallable$q;
1521
- var isObject$8 = isObject$h;
1524
+ var isObject$8 = isObject$i;
1522
1525
  var getPrototypeOf$3 = objectGetPrototypeOf;
1523
1526
  var defineBuiltIn$c = defineBuiltIn$e;
1524
1527
  var wellKnownSymbol$h = wellKnownSymbol$m;
@@ -1591,7 +1594,7 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
1591
1594
  return IteratorConstructor;
1592
1595
  };
1593
1596
 
1594
- var $$u = _export;
1597
+ var $$t = _export;
1595
1598
  var call$n = functionCall;
1596
1599
  var FunctionName$1 = functionName;
1597
1600
  var isCallable$b = isCallable$q;
@@ -1679,7 +1682,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1679
1682
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1680
1683
  defineBuiltIn$b(IterablePrototype, KEY, methods[KEY]);
1681
1684
  }
1682
- } else $$u({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1685
+ } else $$t({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1683
1686
  }
1684
1687
 
1685
1688
  // define iterator
@@ -1704,7 +1707,7 @@ var InternalStateModule$8 = internalState;
1704
1707
  var defineProperty$4 = objectDefineProperty.f;
1705
1708
  var defineIterator$1 = iteratorDefine;
1706
1709
  var createIterResultObject$2 = createIterResultObject$3;
1707
- var DESCRIPTORS$f = descriptors;
1710
+ var DESCRIPTORS$g = descriptors;
1708
1711
 
1709
1712
  var ARRAY_ITERATOR = 'Array Iterator';
1710
1713
  var setInternalState$7 = InternalStateModule$8.set;
@@ -1754,7 +1757,7 @@ addToUnscopables('values');
1754
1757
  addToUnscopables('entries');
1755
1758
 
1756
1759
  // V8 ~ Chrome 45- bug
1757
- if (DESCRIPTORS$f && values.name !== 'values') try {
1760
+ if (DESCRIPTORS$g && values.name !== 'values') try {
1758
1761
  defineProperty$4(values, 'name', { value: 'values' });
1759
1762
  } catch (error) { /* empty */ }
1760
1763
 
@@ -1767,7 +1770,7 @@ var isArray$4 = Array.isArray || function isArray(argument) {
1767
1770
  return classof$c(argument) === 'Array';
1768
1771
  };
1769
1772
 
1770
- var DESCRIPTORS$e = descriptors;
1773
+ var DESCRIPTORS$f = descriptors;
1771
1774
  var isArray$3 = isArray$4;
1772
1775
 
1773
1776
  var $TypeError$d = TypeError;
@@ -1775,7 +1778,7 @@ var $TypeError$d = TypeError;
1775
1778
  var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
1776
1779
 
1777
1780
  // Safari < 13 does not throw an error in this case
1778
- var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$e && !function () {
1781
+ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$f && !function () {
1779
1782
  // makes no sense without proper strict mode support
1780
1783
  if (this !== undefined) return true;
1781
1784
  try {
@@ -1797,16 +1800,16 @@ var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
1797
1800
  var $TypeError$c = TypeError;
1798
1801
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1799
1802
 
1800
- var doesNotExceedSafeInteger$2 = function (it) {
1803
+ var doesNotExceedSafeInteger$1 = function (it) {
1801
1804
  if (it > MAX_SAFE_INTEGER) throw $TypeError$c('Maximum allowed index exceeded');
1802
1805
  return it;
1803
1806
  };
1804
1807
 
1805
- var $$t = _export;
1806
- var toObject$a = toObject$d;
1807
- var lengthOfArrayLike$e = lengthOfArrayLike$g;
1808
- var setArrayLength$1 = arraySetLength;
1809
- var doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$2;
1808
+ var $$s = _export;
1809
+ var toObject$9 = toObject$c;
1810
+ var lengthOfArrayLike$d = lengthOfArrayLike$f;
1811
+ var setArrayLength = arraySetLength;
1812
+ var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
1810
1813
  var fails$t = fails$G;
1811
1814
 
1812
1815
  var INCORRECT_TO_LENGTH = fails$t(function () {
@@ -1815,7 +1818,7 @@ var INCORRECT_TO_LENGTH = fails$t(function () {
1815
1818
 
1816
1819
  // V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
1817
1820
  // https://bugs.chromium.org/p/v8/issues/detail?id=12681
1818
- var properErrorOnNonWritableLength$1 = function () {
1821
+ var properErrorOnNonWritableLength = function () {
1819
1822
  try {
1820
1823
  // eslint-disable-next-line es/no-object-defineproperty -- safe
1821
1824
  Object.defineProperty([], 'length', { writable: false }).push();
@@ -1824,40 +1827,43 @@ var properErrorOnNonWritableLength$1 = function () {
1824
1827
  }
1825
1828
  };
1826
1829
 
1827
- var FORCED$7 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength$1();
1830
+ var FORCED$6 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
1828
1831
 
1829
1832
  // `Array.prototype.push` method
1830
1833
  // https://tc39.es/ecma262/#sec-array.prototype.push
1831
- $$t({ target: 'Array', proto: true, arity: 1, forced: FORCED$7 }, {
1834
+ $$s({ target: 'Array', proto: true, arity: 1, forced: FORCED$6 }, {
1832
1835
  // eslint-disable-next-line no-unused-vars -- required for `.length`
1833
1836
  push: function push(item) {
1834
- var O = toObject$a(this);
1835
- var len = lengthOfArrayLike$e(O);
1837
+ var O = toObject$9(this);
1838
+ var len = lengthOfArrayLike$d(O);
1836
1839
  var argCount = arguments.length;
1837
- doesNotExceedSafeInteger$1(len + argCount);
1840
+ doesNotExceedSafeInteger(len + argCount);
1838
1841
  for (var i = 0; i < argCount; i++) {
1839
1842
  O[len] = arguments[i];
1840
1843
  len++;
1841
1844
  }
1842
- setArrayLength$1(O, len);
1845
+ setArrayLength(O, len);
1843
1846
  return len;
1844
1847
  }
1845
1848
  });
1846
1849
 
1847
1850
  var aCallable$9 = aCallable$c;
1848
- var toObject$9 = toObject$d;
1851
+ var toObject$8 = toObject$c;
1849
1852
  var IndexedObject$3 = indexedObject;
1850
- var lengthOfArrayLike$d = lengthOfArrayLike$g;
1853
+ var lengthOfArrayLike$c = lengthOfArrayLike$f;
1851
1854
 
1852
1855
  var $TypeError$b = TypeError;
1853
1856
 
1857
+ var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
1858
+
1854
1859
  // `Array.prototype.{ reduce, reduceRight }` methods implementation
1855
1860
  var createMethod$4 = function (IS_RIGHT) {
1856
1861
  return function (that, callbackfn, argumentsLength, memo) {
1857
- var O = toObject$9(that);
1862
+ var O = toObject$8(that);
1858
1863
  var self = IndexedObject$3(O);
1859
- var length = lengthOfArrayLike$d(O);
1864
+ var length = lengthOfArrayLike$c(O);
1860
1865
  aCallable$9(callbackfn);
1866
+ if (length === 0 && argumentsLength < 2) throw new $TypeError$b(REDUCE_EMPTY);
1861
1867
  var index = IS_RIGHT ? length - 1 : 0;
1862
1868
  var i = IS_RIGHT ? -1 : 1;
1863
1869
  if (argumentsLength < 2) while (true) {
@@ -1868,7 +1874,7 @@ var createMethod$4 = function (IS_RIGHT) {
1868
1874
  }
1869
1875
  index += i;
1870
1876
  if (IS_RIGHT ? index < 0 : length <= index) {
1871
- throw new $TypeError$b('Reduce of empty array with no initial value');
1877
+ throw new $TypeError$b(REDUCE_EMPTY);
1872
1878
  }
1873
1879
  }
1874
1880
  for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
@@ -1897,12 +1903,12 @@ var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
1897
1903
  });
1898
1904
  };
1899
1905
 
1900
- var global$r = global$D;
1906
+ var global$r = global$C;
1901
1907
  var classof$b = classofRaw$2;
1902
1908
 
1903
1909
  var engineIsNode = classof$b(global$r.process) === 'process';
1904
1910
 
1905
- var $$s = _export;
1911
+ var $$r = _export;
1906
1912
  var $reduce = arrayReduce.left;
1907
1913
  var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
1908
1914
  var CHROME_VERSION = engineV8Version;
@@ -1911,11 +1917,11 @@ var IS_NODE$6 = engineIsNode;
1911
1917
  // Chrome 80-82 has a critical bug
1912
1918
  // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
1913
1919
  var CHROME_BUG = !IS_NODE$6 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
1914
- var FORCED$6 = CHROME_BUG || !arrayMethodIsStrict$1('reduce');
1920
+ var FORCED$5 = CHROME_BUG || !arrayMethodIsStrict$1('reduce');
1915
1921
 
1916
1922
  // `Array.prototype.reduce` method
1917
1923
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
1918
- $$s({ target: 'Array', proto: true, forced: FORCED$6 }, {
1924
+ $$r({ target: 'Array', proto: true, forced: FORCED$5 }, {
1919
1925
  reduce: function reduce(callbackfn /* , initialValue */) {
1920
1926
  var length = arguments.length;
1921
1927
  return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
@@ -1956,7 +1962,7 @@ var getJsonReplacerFunction = function (replacer) {
1956
1962
  };
1957
1963
  };
1958
1964
 
1959
- var $$r = _export;
1965
+ var $$q = _export;
1960
1966
  var getBuiltIn$8 = getBuiltIn$d;
1961
1967
  var apply$3 = functionApply;
1962
1968
  var call$m = functionCall;
@@ -2019,7 +2025,7 @@ var fixIllFormed = function (match, offset, string) {
2019
2025
  if ($stringify) {
2020
2026
  // `JSON.stringify` method
2021
2027
  // https://tc39.es/ecma262/#sec-json.stringify
2022
- $$r({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
2028
+ $$q({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
2023
2029
  // eslint-disable-next-line no-unused-vars -- required for `.length`
2024
2030
  stringify: function stringify(it, replacer, space) {
2025
2031
  var args = arraySlice$5(arguments);
@@ -2037,7 +2043,7 @@ var thisNumberValue$1 = uncurryThis$w(1.0.valueOf);
2037
2043
 
2038
2044
  var toIntegerOrInfinity$9 = toIntegerOrInfinity$c;
2039
2045
  var toString$f = toString$i;
2040
- var requireObjectCoercible$7 = requireObjectCoercible$a;
2046
+ var requireObjectCoercible$7 = requireObjectCoercible$b;
2041
2047
 
2042
2048
  var $RangeError$6 = RangeError;
2043
2049
 
@@ -2052,7 +2058,7 @@ var stringRepeat = function repeat(count) {
2052
2058
  return result;
2053
2059
  };
2054
2060
 
2055
- var $$q = _export;
2061
+ var $$p = _export;
2056
2062
  var uncurryThis$v = functionUncurryThis;
2057
2063
  var toIntegerOrInfinity$8 = toIntegerOrInfinity$c;
2058
2064
  var thisNumberValue = thisNumberValue$1;
@@ -2114,7 +2120,7 @@ var dataToString = function (data) {
2114
2120
  } return s;
2115
2121
  };
2116
2122
 
2117
- var FORCED$5 = fails$q(function () {
2123
+ var FORCED$4 = fails$q(function () {
2118
2124
  return nativeToFixed(0.00008, 3) !== '0.000' ||
2119
2125
  nativeToFixed(0.9, 0) !== '1' ||
2120
2126
  nativeToFixed(1.255, 2) !== '1.25' ||
@@ -2126,7 +2132,7 @@ var FORCED$5 = fails$q(function () {
2126
2132
 
2127
2133
  // `Number.prototype.toFixed` method
2128
2134
  // https://tc39.es/ecma262/#sec-number.prototype.tofixed
2129
- $$q({ target: 'Number', proto: true, forced: FORCED$5 }, {
2135
+ $$p({ target: 'Number', proto: true, forced: FORCED$4 }, {
2130
2136
  toFixed: function toFixed(fractionDigits) {
2131
2137
  var number = thisNumberValue(this);
2132
2138
  var fractDigits = toIntegerOrInfinity$8(fractionDigits);
@@ -2183,14 +2189,14 @@ $$q({ target: 'Number', proto: true, forced: FORCED$5 }, {
2183
2189
  }
2184
2190
  });
2185
2191
 
2186
- var DESCRIPTORS$d = descriptors;
2192
+ var DESCRIPTORS$e = descriptors;
2187
2193
  var uncurryThis$u = functionUncurryThis;
2188
2194
  var call$l = functionCall;
2189
2195
  var fails$p = fails$G;
2190
2196
  var objectKeys = objectKeys$2;
2191
2197
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
2192
2198
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
2193
- var toObject$8 = toObject$d;
2199
+ var toObject$7 = toObject$c;
2194
2200
  var IndexedObject$2 = indexedObject;
2195
2201
 
2196
2202
  // eslint-disable-next-line es/no-object-assign -- safe
@@ -2203,7 +2209,7 @@ var concat$1 = uncurryThis$u([].concat);
2203
2209
  // https://tc39.es/ecma262/#sec-object.assign
2204
2210
  var objectAssign = !$assign || fails$p(function () {
2205
2211
  // should have correct order of operations (Edge bug)
2206
- if (DESCRIPTORS$d && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
2212
+ if (DESCRIPTORS$e && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
2207
2213
  enumerable: true,
2208
2214
  get: function () {
2209
2215
  defineProperty$3(this, 'b', {
@@ -2222,7 +2228,7 @@ var objectAssign = !$assign || fails$p(function () {
2222
2228
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
2223
2229
  return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
2224
2230
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
2225
- var T = toObject$8(target);
2231
+ var T = toObject$7(target);
2226
2232
  var argumentsLength = arguments.length;
2227
2233
  var index = 1;
2228
2234
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
@@ -2235,18 +2241,18 @@ var objectAssign = !$assign || fails$p(function () {
2235
2241
  var key;
2236
2242
  while (length > j) {
2237
2243
  key = keys[j++];
2238
- if (!DESCRIPTORS$d || call$l(propertyIsEnumerable, S, key)) T[key] = S[key];
2244
+ if (!DESCRIPTORS$e || call$l(propertyIsEnumerable, S, key)) T[key] = S[key];
2239
2245
  }
2240
2246
  } return T;
2241
2247
  } : $assign;
2242
2248
 
2243
- var $$p = _export;
2249
+ var $$o = _export;
2244
2250
  var assign$1 = objectAssign;
2245
2251
 
2246
2252
  // `Object.assign` method
2247
2253
  // https://tc39.es/ecma262/#sec-object.assign
2248
2254
  // eslint-disable-next-line es/no-object-assign -- required for testing
2249
- $$p({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$1 }, {
2255
+ $$o({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$1 }, {
2250
2256
  assign: assign$1
2251
2257
  });
2252
2258
 
@@ -2255,7 +2261,7 @@ var whitespaces$4 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u200
2255
2261
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
2256
2262
 
2257
2263
  var uncurryThis$t = functionUncurryThis;
2258
- var requireObjectCoercible$6 = requireObjectCoercible$a;
2264
+ var requireObjectCoercible$6 = requireObjectCoercible$b;
2259
2265
  var toString$e = toString$i;
2260
2266
  var whitespaces$3 = whitespaces$4;
2261
2267
 
@@ -2285,7 +2291,7 @@ var stringTrim = {
2285
2291
  trim: createMethod$3(3)
2286
2292
  };
2287
2293
 
2288
- var global$q = global$D;
2294
+ var global$q = global$C;
2289
2295
  var fails$o = fails$G;
2290
2296
  var uncurryThis$s = functionUncurryThis;
2291
2297
  var toString$d = toString$i;
@@ -2296,28 +2302,28 @@ var charAt$8 = uncurryThis$s(''.charAt);
2296
2302
  var $parseFloat$1 = global$q.parseFloat;
2297
2303
  var Symbol$2 = global$q.Symbol;
2298
2304
  var ITERATOR$7 = Symbol$2 && Symbol$2.iterator;
2299
- var FORCED$4 = 1 / $parseFloat$1(whitespaces$2 + '-0') !== -Infinity
2305
+ var FORCED$3 = 1 / $parseFloat$1(whitespaces$2 + '-0') !== -Infinity
2300
2306
  // MS Edge 18- broken with boxed symbols
2301
2307
  || (ITERATOR$7 && !fails$o(function () { $parseFloat$1(Object(ITERATOR$7)); }));
2302
2308
 
2303
2309
  // `parseFloat` method
2304
2310
  // https://tc39.es/ecma262/#sec-parsefloat-string
2305
- var numberParseFloat = FORCED$4 ? function parseFloat(string) {
2311
+ var numberParseFloat = FORCED$3 ? function parseFloat(string) {
2306
2312
  var trimmedString = trim$1(toString$d(string));
2307
2313
  var result = $parseFloat$1(trimmedString);
2308
2314
  return result === 0 && charAt$8(trimmedString, 0) === '-' ? -0 : result;
2309
2315
  } : $parseFloat$1;
2310
2316
 
2311
- var $$o = _export;
2317
+ var $$n = _export;
2312
2318
  var $parseFloat = numberParseFloat;
2313
2319
 
2314
2320
  // `parseFloat` method
2315
2321
  // https://tc39.es/ecma262/#sec-parsefloat-string
2316
- $$o({ global: true, forced: parseFloat !== $parseFloat }, {
2322
+ $$n({ global: true, forced: parseFloat !== $parseFloat }, {
2317
2323
  parseFloat: $parseFloat
2318
2324
  });
2319
2325
 
2320
- var global$p = global$D;
2326
+ var global$p = global$C;
2321
2327
  var fails$n = fails$G;
2322
2328
  var uncurryThis$r = functionUncurryThis;
2323
2329
  var toString$c = toString$i;
@@ -2329,23 +2335,23 @@ var Symbol$1 = global$p.Symbol;
2329
2335
  var ITERATOR$6 = Symbol$1 && Symbol$1.iterator;
2330
2336
  var hex = /^[+-]?0x/i;
2331
2337
  var exec$4 = uncurryThis$r(hex.exec);
2332
- var FORCED$3 = $parseInt$1(whitespaces$1 + '08') !== 8 || $parseInt$1(whitespaces$1 + '0x16') !== 22
2338
+ var FORCED$2 = $parseInt$1(whitespaces$1 + '08') !== 8 || $parseInt$1(whitespaces$1 + '0x16') !== 22
2333
2339
  // MS Edge 18- broken with boxed symbols
2334
2340
  || (ITERATOR$6 && !fails$n(function () { $parseInt$1(Object(ITERATOR$6)); }));
2335
2341
 
2336
2342
  // `parseInt` method
2337
2343
  // https://tc39.es/ecma262/#sec-parseint-string-radix
2338
- var numberParseInt = FORCED$3 ? function parseInt(string, radix) {
2344
+ var numberParseInt = FORCED$2 ? function parseInt(string, radix) {
2339
2345
  var S = trim(toString$c(string));
2340
2346
  return $parseInt$1(S, (radix >>> 0) || (exec$4(hex, S) ? 16 : 10));
2341
2347
  } : $parseInt$1;
2342
2348
 
2343
- var $$n = _export;
2349
+ var $$m = _export;
2344
2350
  var $parseInt = numberParseInt;
2345
2351
 
2346
2352
  // `parseInt` method
2347
2353
  // https://tc39.es/ecma262/#sec-parseint-string-radix
2348
- $$n({ global: true, forced: parseInt !== $parseInt }, {
2354
+ $$m({ global: true, forced: parseInt !== $parseInt }, {
2349
2355
  parseInt: $parseInt
2350
2356
  });
2351
2357
 
@@ -2361,14 +2367,14 @@ var defineBuiltInAccessor$9 = function (target, name, descriptor) {
2361
2367
  var getBuiltIn$7 = getBuiltIn$d;
2362
2368
  var defineBuiltInAccessor$8 = defineBuiltInAccessor$9;
2363
2369
  var wellKnownSymbol$e = wellKnownSymbol$m;
2364
- var DESCRIPTORS$c = descriptors;
2370
+ var DESCRIPTORS$d = descriptors;
2365
2371
 
2366
2372
  var SPECIES$4 = wellKnownSymbol$e('species');
2367
2373
 
2368
2374
  var setSpecies$2 = function (CONSTRUCTOR_NAME) {
2369
2375
  var Constructor = getBuiltIn$7(CONSTRUCTOR_NAME);
2370
2376
 
2371
- if (DESCRIPTORS$c && Constructor && !Constructor[SPECIES$4]) {
2377
+ if (DESCRIPTORS$d && Constructor && !Constructor[SPECIES$4]) {
2372
2378
  defineBuiltInAccessor$8(Constructor, SPECIES$4, {
2373
2379
  configurable: true,
2374
2380
  get: function () { return this; }
@@ -2448,7 +2454,7 @@ var aConstructor$2 = function (argument) {
2448
2454
  throw new $TypeError$9(tryToString$4(argument) + ' is not a constructor');
2449
2455
  };
2450
2456
 
2451
- var anObject$f = anObject$l;
2457
+ var anObject$f = anObject$k;
2452
2458
  var aConstructor$1 = aConstructor$2;
2453
2459
  var isNullOrUndefined$4 = isNullOrUndefined$7;
2454
2460
  var wellKnownSymbol$d = wellKnownSymbol$m;
@@ -2499,7 +2505,7 @@ var userAgent$4 = engineUserAgent;
2499
2505
  // eslint-disable-next-line redos/no-vulnerable -- safe
2500
2506
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$4);
2501
2507
 
2502
- var global$o = global$D;
2508
+ var global$o = global$C;
2503
2509
  var apply$2 = functionApply;
2504
2510
  var bind$9 = functionBindContext;
2505
2511
  var isCallable$7 = isCallable$q;
@@ -2616,15 +2622,15 @@ var task$1 = {
2616
2622
  clear: clear
2617
2623
  };
2618
2624
 
2619
- var global$n = global$D;
2620
- var DESCRIPTORS$b = descriptors;
2625
+ var global$n = global$C;
2626
+ var DESCRIPTORS$c = descriptors;
2621
2627
 
2622
2628
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2623
2629
  var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
2624
2630
 
2625
2631
  // Avoid NodeJS experimental warning
2626
2632
  var safeGetBuiltIn$2 = function (name) {
2627
- if (!DESCRIPTORS$b) return global$n[name];
2633
+ if (!DESCRIPTORS$c) return global$n[name];
2628
2634
  var descriptor = getOwnPropertyDescriptor$1(global$n, name);
2629
2635
  return descriptor && descriptor.value;
2630
2636
  };
@@ -2662,7 +2668,7 @@ var userAgent$2 = engineUserAgent;
2662
2668
 
2663
2669
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$2);
2664
2670
 
2665
- var global$m = global$D;
2671
+ var global$m = global$C;
2666
2672
  var safeGetBuiltIn$1 = safeGetBuiltIn$2;
2667
2673
  var bind$8 = functionBindContext;
2668
2674
  var macrotask = task$1.set;
@@ -2756,7 +2762,7 @@ var perform$3 = function (exec) {
2756
2762
  }
2757
2763
  };
2758
2764
 
2759
- var global$l = global$D;
2765
+ var global$l = global$C;
2760
2766
 
2761
2767
  var promiseNativeConstructor = global$l.Promise;
2762
2768
 
@@ -2770,7 +2776,7 @@ var engineIsBrowser = !IS_DENO$2 && !IS_NODE$3
2770
2776
  && typeof window == 'object'
2771
2777
  && typeof document == 'object';
2772
2778
 
2773
- var global$k = global$D;
2779
+ var global$k = global$C;
2774
2780
  var NativePromiseConstructor$3 = promiseNativeConstructor;
2775
2781
  var isCallable$6 = isCallable$q;
2776
2782
  var isForced = isForced_1;
@@ -2838,9 +2844,9 @@ newPromiseCapability$2.f = function (C) {
2838
2844
  return new PromiseCapability(C);
2839
2845
  };
2840
2846
 
2841
- var $$m = _export;
2847
+ var $$l = _export;
2842
2848
  var IS_NODE$2 = engineIsNode;
2843
- var global$j = global$D;
2849
+ var global$j = global$C;
2844
2850
  var call$k = functionCall;
2845
2851
  var defineBuiltIn$a = defineBuiltIn$e;
2846
2852
  var setPrototypeOf$3 = objectSetPrototypeOf;
@@ -2848,7 +2854,7 @@ var setToStringTag$5 = setToStringTag$8;
2848
2854
  var setSpecies$1 = setSpecies$2;
2849
2855
  var aCallable$6 = aCallable$c;
2850
2856
  var isCallable$5 = isCallable$q;
2851
- var isObject$7 = isObject$h;
2857
+ var isObject$7 = isObject$i;
2852
2858
  var anInstance$6 = anInstance$7;
2853
2859
  var speciesConstructor$2 = speciesConstructor$3;
2854
2860
  var task = task$1.set;
@@ -3118,7 +3124,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
3118
3124
  }
3119
3125
  }
3120
3126
 
3121
- $$m({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
3127
+ $$l({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
3122
3128
  Promise: PromiseConstructor
3123
3129
  });
3124
3130
 
@@ -3152,7 +3158,7 @@ var getIteratorMethod$5 = function (it) {
3152
3158
 
3153
3159
  var call$j = functionCall;
3154
3160
  var aCallable$5 = aCallable$c;
3155
- var anObject$e = anObject$l;
3161
+ var anObject$e = anObject$k;
3156
3162
  var tryToString$3 = tryToString$6;
3157
3163
  var getIteratorMethod$4 = getIteratorMethod$5;
3158
3164
 
@@ -3165,7 +3171,7 @@ var getIterator$4 = function (argument, usingIterator) {
3165
3171
  };
3166
3172
 
3167
3173
  var call$i = functionCall;
3168
- var anObject$d = anObject$l;
3174
+ var anObject$d = anObject$k;
3169
3175
  var getMethod$3 = getMethod$6;
3170
3176
 
3171
3177
  var iteratorClose$2 = function (iterator, kind, value) {
@@ -3190,10 +3196,10 @@ var iteratorClose$2 = function (iterator, kind, value) {
3190
3196
 
3191
3197
  var bind$6 = functionBindContext;
3192
3198
  var call$h = functionCall;
3193
- var anObject$c = anObject$l;
3199
+ var anObject$c = anObject$k;
3194
3200
  var tryToString$2 = tryToString$6;
3195
3201
  var isArrayIteratorMethod$2 = isArrayIteratorMethod$3;
3196
- var lengthOfArrayLike$c = lengthOfArrayLike$g;
3202
+ var lengthOfArrayLike$b = lengthOfArrayLike$f;
3197
3203
  var isPrototypeOf$3 = objectIsPrototypeOf;
3198
3204
  var getIterator$3 = getIterator$4;
3199
3205
  var getIteratorMethod$3 = getIteratorMethod$5;
@@ -3238,7 +3244,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
3238
3244
  if (!iterFn) throw new $TypeError$5(tryToString$2(iterable) + ' is not iterable');
3239
3245
  // optimisation for array iterators
3240
3246
  if (isArrayIteratorMethod$2(iterFn)) {
3241
- for (index = 0, length = lengthOfArrayLike$c(iterable); length > index; index++) {
3247
+ for (index = 0, length = lengthOfArrayLike$b(iterable); length > index; index++) {
3242
3248
  result = callFn(iterable[index]);
3243
3249
  if (result && isPrototypeOf$3(ResultPrototype, result)) return result;
3244
3250
  } return new Result(false);
@@ -3306,7 +3312,7 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
3306
3312
  NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
3307
3313
  });
3308
3314
 
3309
- var $$l = _export;
3315
+ var $$k = _export;
3310
3316
  var call$g = functionCall;
3311
3317
  var aCallable$4 = aCallable$c;
3312
3318
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
@@ -3316,7 +3322,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
3316
3322
 
3317
3323
  // `Promise.all` method
3318
3324
  // https://tc39.es/ecma262/#sec-promise.all
3319
- $$l({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
3325
+ $$k({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
3320
3326
  all: function all(iterable) {
3321
3327
  var C = this;
3322
3328
  var capability = newPromiseCapabilityModule$2.f(C);
@@ -3345,7 +3351,7 @@ $$l({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
3345
3351
  }
3346
3352
  });
3347
3353
 
3348
- var $$k = _export;
3354
+ var $$j = _export;
3349
3355
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
3350
3356
  var NativePromiseConstructor = promiseNativeConstructor;
3351
3357
  var getBuiltIn$5 = getBuiltIn$d;
@@ -3356,7 +3362,7 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructo
3356
3362
 
3357
3363
  // `Promise.prototype.catch` method
3358
3364
  // https://tc39.es/ecma262/#sec-promise.prototype.catch
3359
- $$k({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
3365
+ $$j({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
3360
3366
  'catch': function (onRejected) {
3361
3367
  return this.then(undefined, onRejected);
3362
3368
  }
@@ -3370,7 +3376,7 @@ if (isCallable$4(NativePromiseConstructor)) {
3370
3376
  }
3371
3377
  }
3372
3378
 
3373
- var $$j = _export;
3379
+ var $$i = _export;
3374
3380
  var call$f = functionCall;
3375
3381
  var aCallable$3 = aCallable$c;
3376
3382
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
@@ -3380,7 +3386,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
3380
3386
 
3381
3387
  // `Promise.race` method
3382
3388
  // https://tc39.es/ecma262/#sec-promise.race
3383
- $$j({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
3389
+ $$i({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
3384
3390
  race: function race(iterable) {
3385
3391
  var C = this;
3386
3392
  var capability = newPromiseCapabilityModule$1.f(C);
@@ -3396,13 +3402,13 @@ $$j({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
3396
3402
  }
3397
3403
  });
3398
3404
 
3399
- var $$i = _export;
3405
+ var $$h = _export;
3400
3406
  var newPromiseCapabilityModule = newPromiseCapability$2;
3401
3407
  var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
3402
3408
 
3403
3409
  // `Promise.reject` method
3404
3410
  // https://tc39.es/ecma262/#sec-promise.reject
3405
- $$i({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
3411
+ $$h({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
3406
3412
  reject: function reject(r) {
3407
3413
  var capability = newPromiseCapabilityModule.f(this);
3408
3414
  var capabilityReject = capability.reject;
@@ -3411,8 +3417,8 @@ $$i({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
3411
3417
  }
3412
3418
  });
3413
3419
 
3414
- var anObject$b = anObject$l;
3415
- var isObject$6 = isObject$h;
3420
+ var anObject$b = anObject$k;
3421
+ var isObject$6 = isObject$i;
3416
3422
  var newPromiseCapability = newPromiseCapability$2;
3417
3423
 
3418
3424
  var promiseResolve$1 = function (C, x) {
@@ -3424,7 +3430,7 @@ var promiseResolve$1 = function (C, x) {
3424
3430
  return promiseCapability.promise;
3425
3431
  };
3426
3432
 
3427
- var $$h = _export;
3433
+ var $$g = _export;
3428
3434
  var getBuiltIn$4 = getBuiltIn$d;
3429
3435
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
3430
3436
  var promiseResolve = promiseResolve$1;
@@ -3433,13 +3439,13 @@ getBuiltIn$4('Promise');
3433
3439
 
3434
3440
  // `Promise.resolve` method
3435
3441
  // https://tc39.es/ecma262/#sec-promise.resolve
3436
- $$h({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
3442
+ $$g({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
3437
3443
  resolve: function resolve(x) {
3438
3444
  return promiseResolve(this, x);
3439
3445
  }
3440
3446
  });
3441
3447
 
3442
- var anObject$a = anObject$l;
3448
+ var anObject$a = anObject$k;
3443
3449
 
3444
3450
  // `RegExp.prototype.flags` getter implementation
3445
3451
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
@@ -3472,7 +3478,7 @@ var regexpGetFlags = function (R) {
3472
3478
 
3473
3479
  var PROPER_FUNCTION_NAME$2 = functionName.PROPER;
3474
3480
  var defineBuiltIn$8 = defineBuiltIn$e;
3475
- var anObject$9 = anObject$l;
3481
+ var anObject$9 = anObject$k;
3476
3482
  var $toString$2 = toString$i;
3477
3483
  var fails$k = fails$G;
3478
3484
  var getRegExpFlags = regexpGetFlags;
@@ -3496,7 +3502,7 @@ if (NOT_GENERIC || INCORRECT_NAME) {
3496
3502
  }, { unsafe: true });
3497
3503
  }
3498
3504
 
3499
- var isObject$5 = isObject$h;
3505
+ var isObject$5 = isObject$i;
3500
3506
  var classof$7 = classofRaw$2;
3501
3507
  var wellKnownSymbol$8 = wellKnownSymbol$m;
3502
3508
 
@@ -3535,10 +3541,10 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
3535
3541
  } return false;
3536
3542
  };
3537
3543
 
3538
- var $$g = _export;
3544
+ var $$f = _export;
3539
3545
  var uncurryThis$n = functionUncurryThis;
3540
3546
  var notARegExp$1 = notARegexp;
3541
- var requireObjectCoercible$5 = requireObjectCoercible$a;
3547
+ var requireObjectCoercible$5 = requireObjectCoercible$b;
3542
3548
  var toString$b = toString$i;
3543
3549
  var correctIsRegExpLogic$1 = correctIsRegexpLogic;
3544
3550
 
@@ -3546,7 +3552,7 @@ var stringIndexOf$1 = uncurryThis$n(''.indexOf);
3546
3552
 
3547
3553
  // `String.prototype.includes` method
3548
3554
  // https://tc39.es/ecma262/#sec-string.prototype.includes
3549
- $$g({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
3555
+ $$f({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
3550
3556
  includes: function includes(searchString /* , position = 0 */) {
3551
3557
  return !!~stringIndexOf$1(
3552
3558
  toString$b(requireObjectCoercible$5(this)),
@@ -3600,7 +3606,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
3600
3606
 
3601
3607
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
3602
3608
 
3603
- var global$i = global$D;
3609
+ var global$i = global$C;
3604
3610
  var DOMIterables = domIterables;
3605
3611
  var DOMTokenListPrototype = domTokenListPrototype;
3606
3612
  var ArrayIteratorMethods = es_array_iterator;
@@ -3810,15 +3816,15 @@ var ieee754 = {
3810
3816
  unpack: unpack
3811
3817
  };
3812
3818
 
3813
- var toObject$7 = toObject$d;
3819
+ var toObject$6 = toObject$c;
3814
3820
  var toAbsoluteIndex$1 = toAbsoluteIndex$3;
3815
- var lengthOfArrayLike$b = lengthOfArrayLike$g;
3821
+ var lengthOfArrayLike$a = lengthOfArrayLike$f;
3816
3822
 
3817
3823
  // `Array.prototype.fill` method implementation
3818
3824
  // https://tc39.es/ecma262/#sec-array.prototype.fill
3819
3825
  var arrayFill$1 = function fill(value /* , start = 0, end = @length */) {
3820
- var O = toObject$7(this);
3821
- var length = lengthOfArrayLike$b(O);
3826
+ var O = toObject$6(this);
3827
+ var length = lengthOfArrayLike$a(O);
3822
3828
  var argumentsLength = arguments.length;
3823
3829
  var index = toAbsoluteIndex$1(argumentsLength > 1 ? arguments[1] : undefined, length);
3824
3830
  var end = argumentsLength > 2 ? arguments[2] : undefined;
@@ -3827,9 +3833,9 @@ var arrayFill$1 = function fill(value /* , start = 0, end = @length */) {
3827
3833
  return O;
3828
3834
  };
3829
3835
 
3830
- var global$h = global$D;
3836
+ var global$h = global$C;
3831
3837
  var uncurryThis$m = functionUncurryThis;
3832
- var DESCRIPTORS$a = descriptors;
3838
+ var DESCRIPTORS$b = descriptors;
3833
3839
  var NATIVE_ARRAY_BUFFER$1 = arrayBufferBasicDetection;
3834
3840
  var FunctionName = functionName;
3835
3841
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$b;
@@ -3939,7 +3945,7 @@ if (!NATIVE_ARRAY_BUFFER$1) {
3939
3945
  bytes: fill(Array$1(byteLength), 0),
3940
3946
  byteLength: byteLength
3941
3947
  });
3942
- if (!DESCRIPTORS$a) {
3948
+ if (!DESCRIPTORS$b) {
3943
3949
  this.byteLength = byteLength;
3944
3950
  this.detached = false;
3945
3951
  }
@@ -3963,7 +3969,7 @@ if (!NATIVE_ARRAY_BUFFER$1) {
3963
3969
  byteOffset: offset,
3964
3970
  bytes: bufferState.bytes
3965
3971
  });
3966
- if (!DESCRIPTORS$a) {
3972
+ if (!DESCRIPTORS$b) {
3967
3973
  this.buffer = buffer;
3968
3974
  this.byteLength = byteLength;
3969
3975
  this.byteOffset = offset;
@@ -3972,7 +3978,7 @@ if (!NATIVE_ARRAY_BUFFER$1) {
3972
3978
 
3973
3979
  DataViewPrototype$2 = $DataView[PROTOTYPE];
3974
3980
 
3975
- if (DESCRIPTORS$a) {
3981
+ if (DESCRIPTORS$b) {
3976
3982
  addGetter$1($ArrayBuffer$1, 'byteLength', getInternalArrayBufferState);
3977
3983
  addGetter$1($DataView, 'buffer', getInternalDataViewState);
3978
3984
  addGetter$1($DataView, 'byteLength', getInternalDataViewState);
@@ -4087,11 +4093,11 @@ var arrayBuffer = {
4087
4093
  DataView: $DataView
4088
4094
  };
4089
4095
 
4090
- var $$f = _export;
4096
+ var $$e = _export;
4091
4097
  var uncurryThis$l = functionUncurryThisClause;
4092
4098
  var fails$i = fails$G;
4093
4099
  var ArrayBufferModule$1 = arrayBuffer;
4094
- var anObject$8 = anObject$l;
4100
+ var anObject$8 = anObject$k;
4095
4101
  var toAbsoluteIndex = toAbsoluteIndex$3;
4096
4102
  var toLength$4 = toLength$8;
4097
4103
  var speciesConstructor$1 = speciesConstructor$3;
@@ -4109,7 +4115,7 @@ var INCORRECT_SLICE = fails$i(function () {
4109
4115
 
4110
4116
  // `ArrayBuffer.prototype.slice` method
4111
4117
  // https://tc39.es/ecma262/#sec-arraybuffer.prototype.slice
4112
- $$f({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE }, {
4118
+ $$e({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE }, {
4113
4119
  slice: function slice(start, end) {
4114
4120
  if (nativeArrayBufferSlice && end === undefined) {
4115
4121
  return nativeArrayBufferSlice(anObject$8(this), start); // FF fix
@@ -4127,17 +4133,192 @@ $$f({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE
4127
4133
  }
4128
4134
  });
4129
4135
 
4130
- var $$e = _export;
4131
- var uncurryThis$k = functionUncurryThisClause;
4136
+ var uncurryThisAccessor$1 = functionUncurryThisAccessor;
4137
+ var classof$6 = classofRaw$2;
4138
+
4139
+ var $TypeError$3 = TypeError;
4140
+
4141
+ // Includes
4142
+ // - Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
4143
+ // - If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
4144
+ var arrayBufferByteLength$2 = uncurryThisAccessor$1(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) {
4145
+ if (classof$6(O) !== 'ArrayBuffer') throw new $TypeError$3('ArrayBuffer expected');
4146
+ return O.byteLength;
4147
+ };
4148
+
4149
+ var uncurryThis$k = functionUncurryThis;
4150
+ var arrayBufferByteLength$1 = arrayBufferByteLength$2;
4151
+
4152
+ var slice$2 = uncurryThis$k(ArrayBuffer.prototype.slice);
4153
+
4154
+ var arrayBufferIsDetached = function (O) {
4155
+ if (arrayBufferByteLength$1(O) !== 0) return false;
4156
+ try {
4157
+ slice$2(O, 0, 0);
4158
+ return false;
4159
+ } catch (error) {
4160
+ return true;
4161
+ }
4162
+ };
4163
+
4164
+ var DESCRIPTORS$a = descriptors;
4165
+ var defineBuiltInAccessor$6 = defineBuiltInAccessor$9;
4166
+ var isDetached$1 = arrayBufferIsDetached;
4167
+
4168
+ var ArrayBufferPrototype$2 = ArrayBuffer.prototype;
4169
+
4170
+ if (DESCRIPTORS$a && !('detached' in ArrayBufferPrototype$2)) {
4171
+ defineBuiltInAccessor$6(ArrayBufferPrototype$2, 'detached', {
4172
+ configurable: true,
4173
+ get: function detached() {
4174
+ return isDetached$1(this);
4175
+ }
4176
+ });
4177
+ }
4178
+
4179
+ var IS_NODE$1 = engineIsNode;
4180
+
4181
+ var tryNodeRequire$2 = function (name) {
4182
+ try {
4183
+ // eslint-disable-next-line no-new-func -- safe
4184
+ if (IS_NODE$1) return Function('return require("' + name + '")')();
4185
+ } catch (error) { /* empty */ }
4186
+ };
4187
+
4188
+ var global$g = global$C;
4189
+ var fails$h = fails$G;
4190
+ var V8$2 = engineV8Version;
4191
+ var IS_BROWSER = engineIsBrowser;
4192
+ var IS_DENO = engineIsDeno;
4193
+ var IS_NODE = engineIsNode;
4194
+
4195
+ var structuredClone$2 = global$g.structuredClone;
4196
+
4197
+ var structuredCloneProperTransfer = !!structuredClone$2 && !fails$h(function () {
4198
+ // prevent V8 ArrayBufferDetaching protector cell invalidation and performance degradation
4199
+ // https://github.com/zloirock/core-js/issues/679
4200
+ if ((IS_DENO && V8$2 > 92) || (IS_NODE && V8$2 > 94) || (IS_BROWSER && V8$2 > 97)) return false;
4201
+ var buffer = new ArrayBuffer(8);
4202
+ var clone = structuredClone$2(buffer, { transfer: [buffer] });
4203
+ return buffer.byteLength !== 0 || clone.byteLength !== 8;
4204
+ });
4205
+
4206
+ var global$f = global$C;
4207
+ var tryNodeRequire$1 = tryNodeRequire$2;
4208
+ var PROPER_STRUCTURED_CLONE_TRANSFER$1 = structuredCloneProperTransfer;
4209
+
4210
+ var structuredClone$1 = global$f.structuredClone;
4211
+ var $ArrayBuffer = global$f.ArrayBuffer;
4212
+ var $MessageChannel = global$f.MessageChannel;
4213
+ var detach = false;
4214
+ var WorkerThreads, channel, buffer, $detach;
4215
+
4216
+ if (PROPER_STRUCTURED_CLONE_TRANSFER$1) {
4217
+ detach = function (transferable) {
4218
+ structuredClone$1(transferable, { transfer: [transferable] });
4219
+ };
4220
+ } else if ($ArrayBuffer) try {
4221
+ if (!$MessageChannel) {
4222
+ WorkerThreads = tryNodeRequire$1('worker_threads');
4223
+ if (WorkerThreads) $MessageChannel = WorkerThreads.MessageChannel;
4224
+ }
4225
+
4226
+ if ($MessageChannel) {
4227
+ channel = new $MessageChannel();
4228
+ buffer = new $ArrayBuffer(2);
4229
+
4230
+ $detach = function (transferable) {
4231
+ channel.port1.postMessage(null, [transferable]);
4232
+ };
4233
+
4234
+ if (buffer.byteLength === 2) {
4235
+ $detach(buffer);
4236
+ if (buffer.byteLength === 0) detach = $detach;
4237
+ }
4238
+ }
4239
+ } catch (error) { /* empty */ }
4240
+
4241
+ var detachTransferable$1 = detach;
4242
+
4243
+ var global$e = global$C;
4244
+ var uncurryThis$j = functionUncurryThis;
4245
+ var uncurryThisAccessor = functionUncurryThisAccessor;
4246
+ var toIndex$1 = toIndex$3;
4247
+ var isDetached = arrayBufferIsDetached;
4248
+ var arrayBufferByteLength = arrayBufferByteLength$2;
4249
+ var detachTransferable = detachTransferable$1;
4250
+ var PROPER_STRUCTURED_CLONE_TRANSFER = structuredCloneProperTransfer;
4251
+
4252
+ var structuredClone = global$e.structuredClone;
4253
+ var ArrayBuffer$3 = global$e.ArrayBuffer;
4254
+ var DataView$2 = global$e.DataView;
4255
+ var TypeError$4 = global$e.TypeError;
4256
+ var min$3 = Math.min;
4257
+ var ArrayBufferPrototype$1 = ArrayBuffer$3.prototype;
4258
+ var DataViewPrototype = DataView$2.prototype;
4259
+ var slice$1 = uncurryThis$j(ArrayBufferPrototype$1.slice);
4260
+ var isResizable = uncurryThisAccessor(ArrayBufferPrototype$1, 'resizable', 'get');
4261
+ var maxByteLength = uncurryThisAccessor(ArrayBufferPrototype$1, 'maxByteLength', 'get');
4262
+ var getInt8 = uncurryThis$j(DataViewPrototype.getInt8);
4263
+ var setInt8 = uncurryThis$j(DataViewPrototype.setInt8);
4264
+
4265
+ var arrayBufferTransfer = (PROPER_STRUCTURED_CLONE_TRANSFER || detachTransferable) && function (arrayBuffer, newLength, preserveResizability) {
4266
+ var byteLength = arrayBufferByteLength(arrayBuffer);
4267
+ var newByteLength = newLength === undefined ? byteLength : toIndex$1(newLength);
4268
+ var fixedLength = !isResizable || !isResizable(arrayBuffer);
4269
+ var newBuffer;
4270
+ if (isDetached(arrayBuffer)) throw new TypeError$4('ArrayBuffer is detached');
4271
+ if (PROPER_STRUCTURED_CLONE_TRANSFER) {
4272
+ arrayBuffer = structuredClone(arrayBuffer, { transfer: [arrayBuffer] });
4273
+ if (byteLength === newByteLength && (preserveResizability || fixedLength)) return arrayBuffer;
4274
+ }
4275
+ if (byteLength >= newByteLength && (!preserveResizability || fixedLength)) {
4276
+ newBuffer = slice$1(arrayBuffer, 0, newByteLength);
4277
+ } else {
4278
+ var options = preserveResizability && !fixedLength && maxByteLength ? { maxByteLength: maxByteLength(arrayBuffer) } : undefined;
4279
+ newBuffer = new ArrayBuffer$3(newByteLength, options);
4280
+ var a = new DataView$2(arrayBuffer);
4281
+ var b = new DataView$2(newBuffer);
4282
+ var copyLength = min$3(newByteLength, byteLength);
4283
+ for (var i = 0; i < copyLength; i++) setInt8(b, i, getInt8(a, i));
4284
+ }
4285
+ if (!PROPER_STRUCTURED_CLONE_TRANSFER) detachTransferable(arrayBuffer);
4286
+ return newBuffer;
4287
+ };
4288
+
4289
+ var $$d = _export;
4290
+ var $transfer$1 = arrayBufferTransfer;
4291
+
4292
+ // `ArrayBuffer.prototype.transfer` method
4293
+ // https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfer
4294
+ if ($transfer$1) $$d({ target: 'ArrayBuffer', proto: true }, {
4295
+ transfer: function transfer() {
4296
+ return $transfer$1(this, arguments.length ? arguments[0] : undefined, true);
4297
+ }
4298
+ });
4299
+
4300
+ var $$c = _export;
4301
+ var $transfer = arrayBufferTransfer;
4302
+
4303
+ // `ArrayBuffer.prototype.transferToFixedLength` method
4304
+ // https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfertofixedlength
4305
+ if ($transfer) $$c({ target: 'ArrayBuffer', proto: true }, {
4306
+ transferToFixedLength: function transferToFixedLength() {
4307
+ return $transfer(this, arguments.length ? arguments[0] : undefined, false);
4308
+ }
4309
+ });
4310
+
4311
+ var $$b = _export;
4312
+ var uncurryThis$i = functionUncurryThisClause;
4132
4313
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
4133
4314
  var toLength$3 = toLength$8;
4134
4315
  var toString$a = toString$i;
4135
4316
  var notARegExp = notARegexp;
4136
- var requireObjectCoercible$4 = requireObjectCoercible$a;
4317
+ var requireObjectCoercible$4 = requireObjectCoercible$b;
4137
4318
  var correctIsRegExpLogic = correctIsRegexpLogic;
4138
4319
 
4139
- var stringSlice$7 = uncurryThis$k(''.slice);
4140
- var min$3 = Math.min;
4320
+ var stringSlice$7 = uncurryThis$i(''.slice);
4321
+ var min$2 = Math.min;
4141
4322
 
4142
4323
  var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
4143
4324
  // https://github.com/zloirock/core-js/pull/702
@@ -4148,11 +4329,11 @@ var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
4148
4329
 
4149
4330
  // `String.prototype.startsWith` method
4150
4331
  // https://tc39.es/ecma262/#sec-string.prototype.startswith
4151
- $$e({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
4332
+ $$b({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
4152
4333
  startsWith: function startsWith(searchString /* , position = 0 */) {
4153
4334
  var that = toString$a(requireObjectCoercible$4(this));
4154
4335
  notARegExp(searchString);
4155
- var index = toLength$3(min$3(arguments.length > 1 ? arguments[1] : undefined, that.length));
4336
+ var index = toLength$3(min$2(arguments.length > 1 ? arguments[1] : undefined, that.length));
4156
4337
  var search = toString$a(searchString);
4157
4338
  return stringSlice$7(that, index, index + search.length) === search;
4158
4339
  }
@@ -4162,15 +4343,15 @@ var typedArrayConstructor = {exports: {}};
4162
4343
 
4163
4344
  var NATIVE_ARRAY_BUFFER = arrayBufferBasicDetection;
4164
4345
  var DESCRIPTORS$9 = descriptors;
4165
- var global$g = global$D;
4346
+ var global$d = global$C;
4166
4347
  var isCallable$3 = isCallable$q;
4167
- var isObject$4 = isObject$h;
4348
+ var isObject$4 = isObject$i;
4168
4349
  var hasOwn$5 = hasOwnProperty_1;
4169
- var classof$6 = classof$e;
4350
+ var classof$5 = classof$e;
4170
4351
  var tryToString$1 = tryToString$6;
4171
4352
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$b;
4172
4353
  var defineBuiltIn$6 = defineBuiltIn$e;
4173
- var defineBuiltInAccessor$6 = defineBuiltInAccessor$9;
4354
+ var defineBuiltInAccessor$5 = defineBuiltInAccessor$9;
4174
4355
  var isPrototypeOf$1 = objectIsPrototypeOf;
4175
4356
  var getPrototypeOf = objectGetPrototypeOf;
4176
4357
  var setPrototypeOf$1 = objectSetPrototypeOf;
@@ -4180,20 +4361,20 @@ var InternalStateModule$5 = internalState;
4180
4361
 
4181
4362
  var enforceInternalState$1 = InternalStateModule$5.enforce;
4182
4363
  var getInternalState$4 = InternalStateModule$5.get;
4183
- var Int8Array$4 = global$g.Int8Array;
4364
+ var Int8Array$4 = global$d.Int8Array;
4184
4365
  var Int8ArrayPrototype$1 = Int8Array$4 && Int8Array$4.prototype;
4185
- var Uint8ClampedArray$1 = global$g.Uint8ClampedArray;
4366
+ var Uint8ClampedArray$1 = global$d.Uint8ClampedArray;
4186
4367
  var Uint8ClampedArrayPrototype = Uint8ClampedArray$1 && Uint8ClampedArray$1.prototype;
4187
4368
  var TypedArray$1 = Int8Array$4 && getPrototypeOf(Int8Array$4);
4188
4369
  var TypedArrayPrototype$1 = Int8ArrayPrototype$1 && getPrototypeOf(Int8ArrayPrototype$1);
4189
4370
  var ObjectPrototype = Object.prototype;
4190
- var TypeError$4 = global$g.TypeError;
4371
+ var TypeError$3 = global$d.TypeError;
4191
4372
 
4192
4373
  var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
4193
4374
  var TYPED_ARRAY_TAG$1 = uid('TYPED_ARRAY_TAG');
4194
4375
  var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
4195
4376
  // Fixing native typed arrays in Opera Presto crashes the browser, see #595
4196
- var NATIVE_ARRAY_BUFFER_VIEWS$2 = NATIVE_ARRAY_BUFFER && !!setPrototypeOf$1 && classof$6(global$g.opera) !== 'Opera';
4377
+ var NATIVE_ARRAY_BUFFER_VIEWS$2 = NATIVE_ARRAY_BUFFER && !!setPrototypeOf$1 && classof$5(global$d.opera) !== 'Opera';
4197
4378
  var TYPED_ARRAY_TAG_REQUIRED = false;
4198
4379
  var NAME, Constructor, Prototype;
4199
4380
 
@@ -4216,7 +4397,7 @@ var BigIntArrayConstructorsList = {
4216
4397
 
4217
4398
  var isView = function isView(it) {
4218
4399
  if (!isObject$4(it)) return false;
4219
- var klass = classof$6(it);
4400
+ var klass = classof$5(it);
4220
4401
  return klass === 'DataView'
4221
4402
  || hasOwn$5(TypedArrayConstructorsList, klass)
4222
4403
  || hasOwn$5(BigIntArrayConstructorsList, klass);
@@ -4231,25 +4412,25 @@ var getTypedArrayConstructor$3 = function (it) {
4231
4412
 
4232
4413
  var isTypedArray$1 = function (it) {
4233
4414
  if (!isObject$4(it)) return false;
4234
- var klass = classof$6(it);
4415
+ var klass = classof$5(it);
4235
4416
  return hasOwn$5(TypedArrayConstructorsList, klass)
4236
4417
  || hasOwn$5(BigIntArrayConstructorsList, klass);
4237
4418
  };
4238
4419
 
4239
4420
  var aTypedArray$a = function (it) {
4240
4421
  if (isTypedArray$1(it)) return it;
4241
- throw new TypeError$4('Target is not a typed array');
4422
+ throw new TypeError$3('Target is not a typed array');
4242
4423
  };
4243
4424
 
4244
4425
  var aTypedArrayConstructor$1 = function (C) {
4245
4426
  if (isCallable$3(C) && (!setPrototypeOf$1 || isPrototypeOf$1(TypedArray$1, C))) return C;
4246
- throw new TypeError$4(tryToString$1(C) + ' is not a typed array constructor');
4427
+ throw new TypeError$3(tryToString$1(C) + ' is not a typed array constructor');
4247
4428
  };
4248
4429
 
4249
4430
  var exportTypedArrayMethod$a = function (KEY, property, forced, options) {
4250
4431
  if (!DESCRIPTORS$9) return;
4251
4432
  if (forced) for (var ARRAY in TypedArrayConstructorsList) {
4252
- var TypedArrayConstructor = global$g[ARRAY];
4433
+ var TypedArrayConstructor = global$d[ARRAY];
4253
4434
  if (TypedArrayConstructor && hasOwn$5(TypedArrayConstructor.prototype, KEY)) try {
4254
4435
  delete TypedArrayConstructor.prototype[KEY];
4255
4436
  } catch (error) {
@@ -4270,7 +4451,7 @@ var exportTypedArrayStaticMethod = function (KEY, property, forced) {
4270
4451
  if (!DESCRIPTORS$9) return;
4271
4452
  if (setPrototypeOf$1) {
4272
4453
  if (forced) for (ARRAY in TypedArrayConstructorsList) {
4273
- TypedArrayConstructor = global$g[ARRAY];
4454
+ TypedArrayConstructor = global$d[ARRAY];
4274
4455
  if (TypedArrayConstructor && hasOwn$5(TypedArrayConstructor, KEY)) try {
4275
4456
  delete TypedArrayConstructor[KEY];
4276
4457
  } catch (error) { /* empty */ }
@@ -4283,7 +4464,7 @@ var exportTypedArrayStaticMethod = function (KEY, property, forced) {
4283
4464
  } else return;
4284
4465
  }
4285
4466
  for (ARRAY in TypedArrayConstructorsList) {
4286
- TypedArrayConstructor = global$g[ARRAY];
4467
+ TypedArrayConstructor = global$d[ARRAY];
4287
4468
  if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {
4288
4469
  defineBuiltIn$6(TypedArrayConstructor, KEY, property);
4289
4470
  }
@@ -4291,14 +4472,14 @@ var exportTypedArrayStaticMethod = function (KEY, property, forced) {
4291
4472
  };
4292
4473
 
4293
4474
  for (NAME in TypedArrayConstructorsList) {
4294
- Constructor = global$g[NAME];
4475
+ Constructor = global$d[NAME];
4295
4476
  Prototype = Constructor && Constructor.prototype;
4296
4477
  if (Prototype) enforceInternalState$1(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
4297
4478
  else NATIVE_ARRAY_BUFFER_VIEWS$2 = false;
4298
4479
  }
4299
4480
 
4300
4481
  for (NAME in BigIntArrayConstructorsList) {
4301
- Constructor = global$g[NAME];
4482
+ Constructor = global$d[NAME];
4302
4483
  Prototype = Constructor && Constructor.prototype;
4303
4484
  if (Prototype) enforceInternalState$1(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
4304
4485
  }
@@ -4307,17 +4488,17 @@ for (NAME in BigIntArrayConstructorsList) {
4307
4488
  if (!NATIVE_ARRAY_BUFFER_VIEWS$2 || !isCallable$3(TypedArray$1) || TypedArray$1 === Function.prototype) {
4308
4489
  // eslint-disable-next-line no-shadow -- safe
4309
4490
  TypedArray$1 = function TypedArray() {
4310
- throw new TypeError$4('Incorrect invocation');
4491
+ throw new TypeError$3('Incorrect invocation');
4311
4492
  };
4312
4493
  if (NATIVE_ARRAY_BUFFER_VIEWS$2) for (NAME in TypedArrayConstructorsList) {
4313
- if (global$g[NAME]) setPrototypeOf$1(global$g[NAME], TypedArray$1);
4494
+ if (global$d[NAME]) setPrototypeOf$1(global$d[NAME], TypedArray$1);
4314
4495
  }
4315
4496
  }
4316
4497
 
4317
4498
  if (!NATIVE_ARRAY_BUFFER_VIEWS$2 || !TypedArrayPrototype$1 || TypedArrayPrototype$1 === ObjectPrototype) {
4318
4499
  TypedArrayPrototype$1 = TypedArray$1.prototype;
4319
4500
  if (NATIVE_ARRAY_BUFFER_VIEWS$2) for (NAME in TypedArrayConstructorsList) {
4320
- if (global$g[NAME]) setPrototypeOf$1(global$g[NAME].prototype, TypedArrayPrototype$1);
4501
+ if (global$d[NAME]) setPrototypeOf$1(global$d[NAME].prototype, TypedArrayPrototype$1);
4321
4502
  }
4322
4503
  }
4323
4504
 
@@ -4328,14 +4509,14 @@ if (NATIVE_ARRAY_BUFFER_VIEWS$2 && getPrototypeOf(Uint8ClampedArrayPrototype) !=
4328
4509
 
4329
4510
  if (DESCRIPTORS$9 && !hasOwn$5(TypedArrayPrototype$1, TO_STRING_TAG)) {
4330
4511
  TYPED_ARRAY_TAG_REQUIRED = true;
4331
- defineBuiltInAccessor$6(TypedArrayPrototype$1, TO_STRING_TAG, {
4512
+ defineBuiltInAccessor$5(TypedArrayPrototype$1, TO_STRING_TAG, {
4332
4513
  configurable: true,
4333
4514
  get: function () {
4334
4515
  return isObject$4(this) ? this[TYPED_ARRAY_TAG$1] : undefined;
4335
4516
  }
4336
4517
  });
4337
- for (NAME in TypedArrayConstructorsList) if (global$g[NAME]) {
4338
- createNonEnumerableProperty$2(global$g[NAME], TYPED_ARRAY_TAG$1, NAME);
4518
+ for (NAME in TypedArrayConstructorsList) if (global$d[NAME]) {
4519
+ createNonEnumerableProperty$2(global$d[NAME], TYPED_ARRAY_TAG$1, NAME);
4339
4520
  }
4340
4521
  }
4341
4522
 
@@ -4354,29 +4535,29 @@ var arrayBufferViewCore = {
4354
4535
  };
4355
4536
 
4356
4537
  /* eslint-disable no-new -- required for testing */
4357
- var global$f = global$D;
4358
- var fails$h = fails$G;
4538
+ var global$c = global$C;
4539
+ var fails$g = fails$G;
4359
4540
  var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2;
4360
4541
  var NATIVE_ARRAY_BUFFER_VIEWS$1 = arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
4361
4542
 
4362
- var ArrayBuffer$3 = global$f.ArrayBuffer;
4363
- var Int8Array$3 = global$f.Int8Array;
4543
+ var ArrayBuffer$2 = global$c.ArrayBuffer;
4544
+ var Int8Array$3 = global$c.Int8Array;
4364
4545
 
4365
- var typedArrayConstructorsRequireWrappers = !NATIVE_ARRAY_BUFFER_VIEWS$1 || !fails$h(function () {
4546
+ var typedArrayConstructorsRequireWrappers = !NATIVE_ARRAY_BUFFER_VIEWS$1 || !fails$g(function () {
4366
4547
  Int8Array$3(1);
4367
- }) || !fails$h(function () {
4548
+ }) || !fails$g(function () {
4368
4549
  new Int8Array$3(-1);
4369
4550
  }) || !checkCorrectnessOfIteration(function (iterable) {
4370
4551
  new Int8Array$3();
4371
4552
  new Int8Array$3(null);
4372
4553
  new Int8Array$3(1.5);
4373
4554
  new Int8Array$3(iterable);
4374
- }, true) || fails$h(function () {
4555
+ }, true) || fails$g(function () {
4375
4556
  // Safari (11+) bug - a reason why even Safari 13 should load a typed array polyfill
4376
- return new Int8Array$3(new ArrayBuffer$3(2), 1, undefined).length !== 1;
4557
+ return new Int8Array$3(new ArrayBuffer$2(2), 1, undefined).length !== 1;
4377
4558
  });
4378
4559
 
4379
- var isObject$3 = isObject$h;
4560
+ var isObject$3 = isObject$i;
4380
4561
 
4381
4562
  var floor$4 = Math.floor;
4382
4563
 
@@ -4414,22 +4595,22 @@ var toUint8Clamped$1 = function (it) {
4414
4595
  return value < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF;
4415
4596
  };
4416
4597
 
4417
- var classof$5 = classof$e;
4598
+ var classof$4 = classof$e;
4418
4599
 
4419
4600
  var isBigIntArray$2 = function (it) {
4420
- var klass = classof$5(it);
4601
+ var klass = classof$4(it);
4421
4602
  return klass === 'BigInt64Array' || klass === 'BigUint64Array';
4422
4603
  };
4423
4604
 
4424
4605
  var toPrimitive = toPrimitive$2;
4425
4606
 
4426
- var $TypeError$3 = TypeError;
4607
+ var $TypeError$2 = TypeError;
4427
4608
 
4428
4609
  // `ToBigInt` abstract operation
4429
4610
  // https://tc39.es/ecma262/#sec-tobigint
4430
4611
  var toBigInt$3 = function (argument) {
4431
4612
  var prim = toPrimitive(argument, 'number');
4432
- if (typeof prim == 'number') throw new $TypeError$3("Can't convert number to bigint");
4613
+ if (typeof prim == 'number') throw new $TypeError$2("Can't convert number to bigint");
4433
4614
  // eslint-disable-next-line es/no-bigint -- safe
4434
4615
  return BigInt(prim);
4435
4616
  };
@@ -4437,8 +4618,8 @@ var toBigInt$3 = function (argument) {
4437
4618
  var bind$5 = functionBindContext;
4438
4619
  var call$d = functionCall;
4439
4620
  var aConstructor = aConstructor$2;
4440
- var toObject$6 = toObject$d;
4441
- var lengthOfArrayLike$a = lengthOfArrayLike$g;
4621
+ var toObject$5 = toObject$c;
4622
+ var lengthOfArrayLike$9 = lengthOfArrayLike$f;
4442
4623
  var getIterator$2 = getIterator$4;
4443
4624
  var getIteratorMethod$2 = getIteratorMethod$5;
4444
4625
  var isArrayIteratorMethod$1 = isArrayIteratorMethod$3;
@@ -4448,7 +4629,7 @@ var toBigInt$2 = toBigInt$3;
4448
4629
 
4449
4630
  var typedArrayFrom$1 = function from(source /* , mapfn, thisArg */) {
4450
4631
  var C = aConstructor(this);
4451
- var O = toObject$6(source);
4632
+ var O = toObject$5(source);
4452
4633
  var argumentsLength = arguments.length;
4453
4634
  var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
4454
4635
  var mapping = mapfn !== undefined;
@@ -4465,7 +4646,7 @@ var typedArrayFrom$1 = function from(source /* , mapfn, thisArg */) {
4465
4646
  if (mapping && argumentsLength > 2) {
4466
4647
  mapfn = bind$5(mapfn, arguments[2]);
4467
4648
  }
4468
- length = lengthOfArrayLike$a(O);
4649
+ length = lengthOfArrayLike$9(O);
4469
4650
  result = new (aTypedArrayConstructor(C))(length);
4470
4651
  thisIsBigIntArray = isBigIntArray$1(result);
4471
4652
  for (i = 0; length > i; i++) {
@@ -4478,7 +4659,7 @@ var typedArrayFrom$1 = function from(source /* , mapfn, thisArg */) {
4478
4659
 
4479
4660
  var isArray$1 = isArray$4;
4480
4661
  var isConstructor$1 = isConstructor$3;
4481
- var isObject$2 = isObject$h;
4662
+ var isObject$2 = isObject$i;
4482
4663
  var wellKnownSymbol$4 = wellKnownSymbol$m;
4483
4664
 
4484
4665
  var SPECIES$1 = wellKnownSymbol$4('species');
@@ -4508,13 +4689,13 @@ var arraySpeciesCreate$1 = function (originalArray, length) {
4508
4689
  };
4509
4690
 
4510
4691
  var bind$4 = functionBindContext;
4511
- var uncurryThis$j = functionUncurryThis;
4692
+ var uncurryThis$h = functionUncurryThis;
4512
4693
  var IndexedObject$1 = indexedObject;
4513
- var toObject$5 = toObject$d;
4514
- var lengthOfArrayLike$9 = lengthOfArrayLike$g;
4694
+ var toObject$4 = toObject$c;
4695
+ var lengthOfArrayLike$8 = lengthOfArrayLike$f;
4515
4696
  var arraySpeciesCreate = arraySpeciesCreate$1;
4516
4697
 
4517
- var push$7 = uncurryThis$j([].push);
4698
+ var push$7 = uncurryThis$h([].push);
4518
4699
 
4519
4700
  // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
4520
4701
  var createMethod$2 = function (TYPE) {
@@ -4526,9 +4707,9 @@ var createMethod$2 = function (TYPE) {
4526
4707
  var IS_FILTER_REJECT = TYPE === 7;
4527
4708
  var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
4528
4709
  return function ($this, callbackfn, that, specificCreate) {
4529
- var O = toObject$5($this);
4710
+ var O = toObject$4($this);
4530
4711
  var self = IndexedObject$1(O);
4531
- var length = lengthOfArrayLike$9(self);
4712
+ var length = lengthOfArrayLike$8(self);
4532
4713
  var boundFunction = bind$4(callbackfn, that);
4533
4714
  var index = 0;
4534
4715
  var create = specificCreate || arraySpeciesCreate;
@@ -4581,18 +4762,18 @@ var arrayIteration = {
4581
4762
  filterReject: createMethod$2(7)
4582
4763
  };
4583
4764
 
4584
- var lengthOfArrayLike$8 = lengthOfArrayLike$g;
4765
+ var lengthOfArrayLike$7 = lengthOfArrayLike$f;
4585
4766
 
4586
4767
  var arrayFromConstructorAndList$2 = function (Constructor, list, $length) {
4587
4768
  var index = 0;
4588
- var length = arguments.length > 2 ? $length : lengthOfArrayLike$8(list);
4769
+ var length = arguments.length > 2 ? $length : lengthOfArrayLike$7(list);
4589
4770
  var result = new Constructor(length);
4590
4771
  while (length > index) result[index] = list[index++];
4591
4772
  return result;
4592
4773
  };
4593
4774
 
4594
- var $$d = _export;
4595
- var global$e = global$D;
4775
+ var $$a = _export;
4776
+ var global$b = global$C;
4596
4777
  var call$c = functionCall;
4597
4778
  var DESCRIPTORS$8 = descriptors;
4598
4779
  var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = typedArrayConstructorsRequireWrappers;
@@ -4603,13 +4784,13 @@ var createPropertyDescriptor$4 = createPropertyDescriptor$9;
4603
4784
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$b;
4604
4785
  var isIntegralNumber = isIntegralNumber$1;
4605
4786
  var toLength$2 = toLength$8;
4606
- var toIndex$1 = toIndex$3;
4787
+ var toIndex = toIndex$3;
4607
4788
  var toOffset$1 = toOffset$2;
4608
4789
  var toUint8Clamped = toUint8Clamped$1;
4609
- var toPropertyKey$1 = toPropertyKey$4;
4790
+ var toPropertyKey = toPropertyKey$3;
4610
4791
  var hasOwn$4 = hasOwnProperty_1;
4611
- var classof$4 = classof$e;
4612
- var isObject$1 = isObject$h;
4792
+ var classof$3 = classof$e;
4793
+ var isObject$1 = isObject$i;
4613
4794
  var isSymbol = isSymbol$4;
4614
4795
  var create$3 = objectCreate;
4615
4796
  var isPrototypeOf = objectIsPrototypeOf;
@@ -4618,7 +4799,7 @@ var getOwnPropertyNames = objectGetOwnPropertyNames.f;
4618
4799
  var typedArrayFrom = typedArrayFrom$1;
4619
4800
  var forEach$2 = arrayIteration.forEach;
4620
4801
  var setSpecies = setSpecies$2;
4621
- var defineBuiltInAccessor$5 = defineBuiltInAccessor$9;
4802
+ var defineBuiltInAccessor$4 = defineBuiltInAccessor$9;
4622
4803
  var definePropertyModule$1 = objectDefineProperty;
4623
4804
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
4624
4805
  var arrayFromConstructorAndList$1 = arrayFromConstructorAndList$2;
@@ -4630,10 +4811,10 @@ var setInternalState$4 = InternalStateModule$4.set;
4630
4811
  var enforceInternalState = InternalStateModule$4.enforce;
4631
4812
  var nativeDefineProperty = definePropertyModule$1.f;
4632
4813
  var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
4633
- var RangeError$2 = global$e.RangeError;
4634
- var ArrayBuffer$2 = ArrayBufferModule.ArrayBuffer;
4635
- var ArrayBufferPrototype$2 = ArrayBuffer$2.prototype;
4636
- var DataView$2 = ArrayBufferModule.DataView;
4814
+ var RangeError$2 = global$b.RangeError;
4815
+ var ArrayBuffer$1 = ArrayBufferModule.ArrayBuffer;
4816
+ var ArrayBufferPrototype = ArrayBuffer$1.prototype;
4817
+ var DataView$1 = ArrayBufferModule.DataView;
4637
4818
  var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore$a.NATIVE_ARRAY_BUFFER_VIEWS;
4638
4819
  var TYPED_ARRAY_TAG = ArrayBufferViewCore$a.TYPED_ARRAY_TAG;
4639
4820
  var TypedArray = ArrayBufferViewCore$a.TypedArray;
@@ -4643,7 +4824,7 @@ var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT';
4643
4824
  var WRONG_LENGTH = 'Wrong length';
4644
4825
 
4645
4826
  var addGetter = function (it, key) {
4646
- defineBuiltInAccessor$5(it, key, {
4827
+ defineBuiltInAccessor$4(it, key, {
4647
4828
  configurable: true,
4648
4829
  get: function () {
4649
4830
  return getInternalState$3(this)[key];
@@ -4653,7 +4834,7 @@ var addGetter = function (it, key) {
4653
4834
 
4654
4835
  var isArrayBuffer = function (it) {
4655
4836
  var klass;
4656
- return isPrototypeOf(ArrayBufferPrototype$2, it) || (klass = classof$4(it)) === 'ArrayBuffer' || klass === 'SharedArrayBuffer';
4837
+ return isPrototypeOf(ArrayBufferPrototype, it) || (klass = classof$3(it)) === 'ArrayBuffer' || klass === 'SharedArrayBuffer';
4657
4838
  };
4658
4839
 
4659
4840
  var isTypedArrayIndex = function (target, key) {
@@ -4665,14 +4846,14 @@ var isTypedArrayIndex = function (target, key) {
4665
4846
  };
4666
4847
 
4667
4848
  var wrappedGetOwnPropertyDescriptor = function getOwnPropertyDescriptor(target, key) {
4668
- key = toPropertyKey$1(key);
4849
+ key = toPropertyKey(key);
4669
4850
  return isTypedArrayIndex(target, key)
4670
4851
  ? createPropertyDescriptor$4(2, target[key])
4671
4852
  : nativeGetOwnPropertyDescriptor(target, key);
4672
4853
  };
4673
4854
 
4674
4855
  var wrappedDefineProperty = function defineProperty(target, key, descriptor) {
4675
- key = toPropertyKey$1(key);
4856
+ key = toPropertyKey(key);
4676
4857
  if (isTypedArrayIndex(target, key)
4677
4858
  && isObject$1(descriptor)
4678
4859
  && hasOwn$4(descriptor, 'value')
@@ -4698,7 +4879,7 @@ if (DESCRIPTORS$8) {
4698
4879
  addGetter(TypedArrayPrototype, 'length');
4699
4880
  }
4700
4881
 
4701
- $$d({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {
4882
+ $$a({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {
4702
4883
  getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor,
4703
4884
  defineProperty: wrappedDefineProperty
4704
4885
  });
@@ -4708,7 +4889,7 @@ if (DESCRIPTORS$8) {
4708
4889
  var CONSTRUCTOR_NAME = TYPE + (CLAMPED ? 'Clamped' : '') + 'Array';
4709
4890
  var GETTER = 'get' + TYPE;
4710
4891
  var SETTER = 'set' + TYPE;
4711
- var NativeTypedArrayConstructor = global$e[CONSTRUCTOR_NAME];
4892
+ var NativeTypedArrayConstructor = global$b[CONSTRUCTOR_NAME];
4712
4893
  var TypedArrayConstructor = NativeTypedArrayConstructor;
4713
4894
  var TypedArrayConstructorPrototype = TypedArrayConstructor && TypedArrayConstructor.prototype;
4714
4895
  var exported = {};
@@ -4742,9 +4923,9 @@ if (DESCRIPTORS$8) {
4742
4923
  var byteOffset = 0;
4743
4924
  var buffer, byteLength, length;
4744
4925
  if (!isObject$1(data)) {
4745
- length = toIndex$1(data);
4926
+ length = toIndex(data);
4746
4927
  byteLength = length * BYTES;
4747
- buffer = new ArrayBuffer$2(byteLength);
4928
+ buffer = new ArrayBuffer$1(byteLength);
4748
4929
  } else if (isArrayBuffer(data)) {
4749
4930
  buffer = data;
4750
4931
  byteOffset = toOffset$1(offset, BYTES);
@@ -4768,7 +4949,7 @@ if (DESCRIPTORS$8) {
4768
4949
  byteOffset: byteOffset,
4769
4950
  byteLength: byteLength,
4770
4951
  length: length,
4771
- view: new DataView$2(buffer)
4952
+ view: new DataView$1(buffer)
4772
4953
  });
4773
4954
  while (index < length) addElement(that, index++);
4774
4955
  });
@@ -4779,7 +4960,7 @@ if (DESCRIPTORS$8) {
4779
4960
  TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) {
4780
4961
  anInstance$4(dummy, TypedArrayConstructorPrototype);
4781
4962
  return inheritIfRequired$1(function () {
4782
- if (!isObject$1(data)) return new NativeTypedArrayConstructor(toIndex$1(data));
4963
+ if (!isObject$1(data)) return new NativeTypedArrayConstructor(toIndex(data));
4783
4964
  if (isArrayBuffer(data)) return $length !== undefined
4784
4965
  ? new NativeTypedArrayConstructor(data, toOffset$1(typedArrayOffset, BYTES), $length)
4785
4966
  : typedArrayOffset !== undefined
@@ -4813,7 +4994,7 @@ if (DESCRIPTORS$8) {
4813
4994
 
4814
4995
  exported[CONSTRUCTOR_NAME] = TypedArrayConstructor;
4815
4996
 
4816
- $$d({ global: true, constructor: true, forced: FORCED, sham: !NATIVE_ARRAY_BUFFER_VIEWS }, exported);
4997
+ $$a({ global: true, constructor: true, forced: FORCED, sham: !NATIVE_ARRAY_BUFFER_VIEWS }, exported);
4817
4998
 
4818
4999
  if (!(BYTES_PER_ELEMENT in TypedArrayConstructor)) {
4819
5000
  createNonEnumerableProperty$1(TypedArrayConstructor, BYTES_PER_ELEMENT, BYTES);
@@ -4838,7 +5019,7 @@ createTypedArrayConstructor('Uint8', function (init) {
4838
5019
  });
4839
5020
 
4840
5021
  var ArrayBufferViewCore$9 = arrayBufferViewCore;
4841
- var lengthOfArrayLike$7 = lengthOfArrayLike$g;
5022
+ var lengthOfArrayLike$6 = lengthOfArrayLike$f;
4842
5023
  var toIntegerOrInfinity$4 = toIntegerOrInfinity$c;
4843
5024
 
4844
5025
  var aTypedArray$9 = ArrayBufferViewCore$9.aTypedArray;
@@ -4848,7 +5029,7 @@ var exportTypedArrayMethod$9 = ArrayBufferViewCore$9.exportTypedArrayMethod;
4848
5029
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.at
4849
5030
  exportTypedArrayMethod$9('at', function at(index) {
4850
5031
  var O = aTypedArray$9(this);
4851
- var len = lengthOfArrayLike$7(O);
5032
+ var len = lengthOfArrayLike$6(O);
4852
5033
  var relativeIndex = toIntegerOrInfinity$4(index);
4853
5034
  var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
4854
5035
  return (k < 0 || k >= len) ? undefined : O[k];
@@ -4857,17 +5038,17 @@ exportTypedArrayMethod$9('at', function at(index) {
4857
5038
  var ArrayBufferViewCore$8 = arrayBufferViewCore;
4858
5039
  var $fill = arrayFill$1;
4859
5040
  var toBigInt$1 = toBigInt$3;
4860
- var classof$3 = classof$e;
5041
+ var classof$2 = classof$e;
4861
5042
  var call$b = functionCall;
4862
- var uncurryThis$i = functionUncurryThis;
4863
- var fails$g = fails$G;
5043
+ var uncurryThis$g = functionUncurryThis;
5044
+ var fails$f = fails$G;
4864
5045
 
4865
5046
  var aTypedArray$8 = ArrayBufferViewCore$8.aTypedArray;
4866
5047
  var exportTypedArrayMethod$8 = ArrayBufferViewCore$8.exportTypedArrayMethod;
4867
- var slice$2 = uncurryThis$i(''.slice);
5048
+ var slice = uncurryThis$g(''.slice);
4868
5049
 
4869
5050
  // V8 ~ Chrome < 59, Safari < 14.1, FF < 55, Edge <=18
4870
- var CONVERSION_BUG = fails$g(function () {
5051
+ var CONVERSION_BUG = fails$f(function () {
4871
5052
  var count = 0;
4872
5053
  // eslint-disable-next-line es/no-typed-arrays -- safe
4873
5054
  new Int8Array(2).fill({ valueOf: function () { return count++; } });
@@ -4879,22 +5060,22 @@ var CONVERSION_BUG = fails$g(function () {
4879
5060
  exportTypedArrayMethod$8('fill', function fill(value /* , start, end */) {
4880
5061
  var length = arguments.length;
4881
5062
  aTypedArray$8(this);
4882
- var actualValue = slice$2(classof$3(this), 0, 3) === 'Big' ? toBigInt$1(value) : +value;
5063
+ var actualValue = slice(classof$2(this), 0, 3) === 'Big' ? toBigInt$1(value) : +value;
4883
5064
  return call$b($fill, this, actualValue, length > 1 ? arguments[1] : undefined, length > 2 ? arguments[2] : undefined);
4884
5065
  }, CONVERSION_BUG);
4885
5066
 
4886
5067
  var bind$3 = functionBindContext;
4887
5068
  var IndexedObject = indexedObject;
4888
- var toObject$4 = toObject$d;
4889
- var lengthOfArrayLike$6 = lengthOfArrayLike$g;
5069
+ var toObject$3 = toObject$c;
5070
+ var lengthOfArrayLike$5 = lengthOfArrayLike$f;
4890
5071
 
4891
5072
  // `Array.prototype.{ findLast, findLastIndex }` methods implementation
4892
5073
  var createMethod$1 = function (TYPE) {
4893
5074
  var IS_FIND_LAST_INDEX = TYPE === 1;
4894
5075
  return function ($this, callbackfn, that) {
4895
- var O = toObject$4($this);
5076
+ var O = toObject$3($this);
4896
5077
  var self = IndexedObject(O);
4897
- var index = lengthOfArrayLike$6(self);
5078
+ var index = lengthOfArrayLike$5(self);
4898
5079
  var boundFunction = bind$3(callbackfn, that);
4899
5080
  var value, result;
4900
5081
  while (index-- > 0) {
@@ -4942,22 +5123,22 @@ exportTypedArrayMethod$6('findLastIndex', function findLastIndex(predicate /* ,
4942
5123
  return $findLastIndex(aTypedArray$6(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
4943
5124
  });
4944
5125
 
4945
- var global$d = global$D;
5126
+ var global$a = global$C;
4946
5127
  var call$a = functionCall;
4947
5128
  var ArrayBufferViewCore$5 = arrayBufferViewCore;
4948
- var lengthOfArrayLike$5 = lengthOfArrayLike$g;
5129
+ var lengthOfArrayLike$4 = lengthOfArrayLike$f;
4949
5130
  var toOffset = toOffset$2;
4950
- var toIndexedObject = toObject$d;
4951
- var fails$f = fails$G;
5131
+ var toIndexedObject = toObject$c;
5132
+ var fails$e = fails$G;
4952
5133
 
4953
- var RangeError$1 = global$d.RangeError;
4954
- var Int8Array$2 = global$d.Int8Array;
5134
+ var RangeError$1 = global$a.RangeError;
5135
+ var Int8Array$2 = global$a.Int8Array;
4955
5136
  var Int8ArrayPrototype = Int8Array$2 && Int8Array$2.prototype;
4956
5137
  var $set = Int8ArrayPrototype && Int8ArrayPrototype.set;
4957
5138
  var aTypedArray$5 = ArrayBufferViewCore$5.aTypedArray;
4958
5139
  var exportTypedArrayMethod$5 = ArrayBufferViewCore$5.exportTypedArrayMethod;
4959
5140
 
4960
- var WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS = !fails$f(function () {
5141
+ var WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS = !fails$e(function () {
4961
5142
  // eslint-disable-next-line es/no-typed-arrays -- required for testing
4962
5143
  var array = new Uint8ClampedArray(2);
4963
5144
  call$a($set, array, { length: 1, 0: 3 }, 1);
@@ -4965,7 +5146,7 @@ var WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS = !fails$f(function () {
4965
5146
  });
4966
5147
 
4967
5148
  // https://bugs.chromium.org/p/v8/issues/detail?id=11294 and other
4968
- var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore$5.NATIVE_ARRAY_BUFFER_VIEWS && fails$f(function () {
5149
+ var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore$5.NATIVE_ARRAY_BUFFER_VIEWS && fails$e(function () {
4969
5150
  var array = new Int8Array$2(2);
4970
5151
  array.set(1);
4971
5152
  array.set('2', 1);
@@ -4980,7 +5161,7 @@ exportTypedArrayMethod$5('set', function set(arrayLike /* , offset */) {
4980
5161
  var src = toIndexedObject(arrayLike);
4981
5162
  if (WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS) return call$a($set, this, src, offset);
4982
5163
  var length = this.length;
4983
- var len = lengthOfArrayLike$5(src);
5164
+ var len = lengthOfArrayLike$4(src);
4984
5165
  var index = 0;
4985
5166
  if (len + offset > length) throw new RangeError$1('Wrong length');
4986
5167
  while (index < len) this[offset + index] = src[index++];
@@ -5044,32 +5225,32 @@ var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
5044
5225
 
5045
5226
  var engineWebkitVersion = !!webkit && +webkit[1];
5046
5227
 
5047
- var global$c = global$D;
5048
- var uncurryThis$h = functionUncurryThisClause;
5049
- var fails$e = fails$G;
5228
+ var global$9 = global$C;
5229
+ var uncurryThis$f = functionUncurryThisClause;
5230
+ var fails$d = fails$G;
5050
5231
  var aCallable$2 = aCallable$c;
5051
5232
  var internalSort$1 = arraySort$1;
5052
5233
  var ArrayBufferViewCore$4 = arrayBufferViewCore;
5053
5234
  var FF$1 = engineFfVersion;
5054
5235
  var IE_OR_EDGE$1 = engineIsIeOrEdge;
5055
- var V8$2 = engineV8Version;
5236
+ var V8$1 = engineV8Version;
5056
5237
  var WEBKIT$1 = engineWebkitVersion;
5057
5238
 
5058
5239
  var aTypedArray$4 = ArrayBufferViewCore$4.aTypedArray;
5059
5240
  var exportTypedArrayMethod$4 = ArrayBufferViewCore$4.exportTypedArrayMethod;
5060
- var Uint16Array = global$c.Uint16Array;
5061
- var nativeSort$1 = Uint16Array && uncurryThis$h(Uint16Array.prototype.sort);
5241
+ var Uint16Array = global$9.Uint16Array;
5242
+ var nativeSort$1 = Uint16Array && uncurryThis$f(Uint16Array.prototype.sort);
5062
5243
 
5063
5244
  // WebKit
5064
- var ACCEPT_INCORRECT_ARGUMENTS = !!nativeSort$1 && !(fails$e(function () {
5245
+ var ACCEPT_INCORRECT_ARGUMENTS = !!nativeSort$1 && !(fails$d(function () {
5065
5246
  nativeSort$1(new Uint16Array(2), null);
5066
- }) && fails$e(function () {
5247
+ }) && fails$d(function () {
5067
5248
  nativeSort$1(new Uint16Array(2), {});
5068
5249
  }));
5069
5250
 
5070
- var STABLE_SORT$1 = !!nativeSort$1 && !fails$e(function () {
5251
+ var STABLE_SORT$1 = !!nativeSort$1 && !fails$d(function () {
5071
5252
  // feature detection can be too slow, so check engines versions
5072
- if (V8$2) return V8$2 < 74;
5253
+ if (V8$1) return V8$1 < 74;
5073
5254
  if (FF$1) return FF$1 < 67;
5074
5255
  if (IE_OR_EDGE$1) return true;
5075
5256
  if (WEBKIT$1) return WEBKIT$1 < 602;
@@ -5114,25 +5295,25 @@ exportTypedArrayMethod$4('sort', function sort(comparefn) {
5114
5295
  return internalSort$1(aTypedArray$4(this), getSortCompare$1(comparefn));
5115
5296
  }, !STABLE_SORT$1 || ACCEPT_INCORRECT_ARGUMENTS);
5116
5297
 
5117
- var global$b = global$D;
5298
+ var global$8 = global$C;
5118
5299
  var apply$1 = functionApply;
5119
5300
  var ArrayBufferViewCore$3 = arrayBufferViewCore;
5120
- var fails$d = fails$G;
5301
+ var fails$c = fails$G;
5121
5302
  var arraySlice$1 = arraySlice$6;
5122
5303
 
5123
- var Int8Array$1 = global$b.Int8Array;
5304
+ var Int8Array$1 = global$8.Int8Array;
5124
5305
  var aTypedArray$3 = ArrayBufferViewCore$3.aTypedArray;
5125
5306
  var exportTypedArrayMethod$3 = ArrayBufferViewCore$3.exportTypedArrayMethod;
5126
5307
  var $toLocaleString = [].toLocaleString;
5127
5308
 
5128
5309
  // iOS Safari 6.x fails here
5129
- var TO_LOCALE_STRING_BUG = !!Int8Array$1 && fails$d(function () {
5310
+ var TO_LOCALE_STRING_BUG = !!Int8Array$1 && fails$c(function () {
5130
5311
  $toLocaleString.call(new Int8Array$1(1));
5131
5312
  });
5132
5313
 
5133
- var FORCED$2 = fails$d(function () {
5314
+ var FORCED$1 = fails$c(function () {
5134
5315
  return [1, 2].toLocaleString() !== new Int8Array$1([1, 2]).toLocaleString();
5135
- }) || !fails$d(function () {
5316
+ }) || !fails$c(function () {
5136
5317
  Int8Array$1.prototype.toLocaleString.call([1, 2]);
5137
5318
  });
5138
5319
 
@@ -5144,14 +5325,14 @@ exportTypedArrayMethod$3('toLocaleString', function toLocaleString() {
5144
5325
  TO_LOCALE_STRING_BUG ? arraySlice$1(aTypedArray$3(this)) : aTypedArray$3(this),
5145
5326
  arraySlice$1(arguments)
5146
5327
  );
5147
- }, FORCED$2);
5328
+ }, FORCED$1);
5148
5329
 
5149
- var lengthOfArrayLike$4 = lengthOfArrayLike$g;
5330
+ var lengthOfArrayLike$3 = lengthOfArrayLike$f;
5150
5331
 
5151
5332
  // https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toReversed
5152
5333
  // https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toReversed
5153
5334
  var arrayToReversed$1 = function (O, C) {
5154
- var len = lengthOfArrayLike$4(O);
5335
+ var len = lengthOfArrayLike$3(O);
5155
5336
  var A = new C(len);
5156
5337
  var k = 0;
5157
5338
  for (; k < len; k++) A[k] = O[len - k - 1];
@@ -5172,14 +5353,14 @@ exportTypedArrayMethod$2('toReversed', function toReversed() {
5172
5353
  });
5173
5354
 
5174
5355
  var ArrayBufferViewCore$1 = arrayBufferViewCore;
5175
- var uncurryThis$g = functionUncurryThis;
5356
+ var uncurryThis$e = functionUncurryThis;
5176
5357
  var aCallable$1 = aCallable$c;
5177
5358
  var arrayFromConstructorAndList = arrayFromConstructorAndList$2;
5178
5359
 
5179
5360
  var aTypedArray$1 = ArrayBufferViewCore$1.aTypedArray;
5180
5361
  var getTypedArrayConstructor$1 = ArrayBufferViewCore$1.getTypedArrayConstructor;
5181
5362
  var exportTypedArrayMethod$1 = ArrayBufferViewCore$1.exportTypedArrayMethod;
5182
- var sort = uncurryThis$g(ArrayBufferViewCore$1.TypedArrayPrototype.sort);
5363
+ var sort = uncurryThis$e(ArrayBufferViewCore$1.TypedArrayPrototype.sort);
5183
5364
 
5184
5365
  // `%TypedArray%.prototype.toSorted` method
5185
5366
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.tosorted
@@ -5190,7 +5371,7 @@ exportTypedArrayMethod$1('toSorted', function toSorted(compareFn) {
5190
5371
  return sort(A, compareFn);
5191
5372
  });
5192
5373
 
5193
- var lengthOfArrayLike$3 = lengthOfArrayLike$g;
5374
+ var lengthOfArrayLike$2 = lengthOfArrayLike$f;
5194
5375
  var toIntegerOrInfinity$3 = toIntegerOrInfinity$c;
5195
5376
 
5196
5377
  var $RangeError$1 = RangeError;
@@ -5198,7 +5379,7 @@ var $RangeError$1 = RangeError;
5198
5379
  // https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.with
5199
5380
  // https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.with
5200
5381
  var arrayWith$1 = function (O, C, index, value) {
5201
- var len = lengthOfArrayLike$3(O);
5382
+ var len = lengthOfArrayLike$2(O);
5202
5383
  var relativeIndex = toIntegerOrInfinity$3(index);
5203
5384
  var actualIndex = relativeIndex < 0 ? len + relativeIndex : relativeIndex;
5204
5385
  if (actualIndex >= len || actualIndex < 0) throw new $RangeError$1('Incorrect index');
@@ -5227,191 +5408,16 @@ var PROPER_ORDER = !!function () {
5227
5408
  // https://github.com/tc39/proposal-change-array-by-copy/pull/86
5228
5409
  return error === 8;
5229
5410
  }
5230
- }();
5231
-
5232
- // `%TypedArray%.prototype.with` method
5233
- // https://tc39.es/ecma262/#sec-%typedarray%.prototype.with
5234
- exportTypedArrayMethod('with', { 'with': function (index, value) {
5235
- var O = aTypedArray(this);
5236
- var relativeIndex = toIntegerOrInfinity$2(index);
5237
- var actualValue = isBigIntArray(O) ? toBigInt(value) : +value;
5238
- return arrayWith(O, getTypedArrayConstructor(O), relativeIndex, actualValue);
5239
- } }['with'], !PROPER_ORDER);
5240
-
5241
- var uncurryThisAccessor$1 = functionUncurryThisAccessor;
5242
- var classof$2 = classofRaw$2;
5243
-
5244
- var $TypeError$2 = TypeError;
5245
-
5246
- // Includes
5247
- // - Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
5248
- // - If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
5249
- var arrayBufferByteLength$2 = uncurryThisAccessor$1(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) {
5250
- if (classof$2(O) !== 'ArrayBuffer') throw new $TypeError$2('ArrayBuffer expected');
5251
- return O.byteLength;
5252
- };
5253
-
5254
- var uncurryThis$f = functionUncurryThis;
5255
- var arrayBufferByteLength$1 = arrayBufferByteLength$2;
5256
-
5257
- var slice$1 = uncurryThis$f(ArrayBuffer.prototype.slice);
5258
-
5259
- var arrayBufferIsDetached = function (O) {
5260
- if (arrayBufferByteLength$1(O) !== 0) return false;
5261
- try {
5262
- slice$1(O, 0, 0);
5263
- return false;
5264
- } catch (error) {
5265
- return true;
5266
- }
5267
- };
5268
-
5269
- var DESCRIPTORS$7 = descriptors;
5270
- var defineBuiltInAccessor$4 = defineBuiltInAccessor$9;
5271
- var isDetached$1 = arrayBufferIsDetached;
5272
-
5273
- var ArrayBufferPrototype$1 = ArrayBuffer.prototype;
5274
-
5275
- if (DESCRIPTORS$7 && !('detached' in ArrayBufferPrototype$1)) {
5276
- defineBuiltInAccessor$4(ArrayBufferPrototype$1, 'detached', {
5277
- configurable: true,
5278
- get: function detached() {
5279
- return isDetached$1(this);
5280
- }
5281
- });
5282
- }
5283
-
5284
- var IS_NODE$1 = engineIsNode;
5285
-
5286
- var tryNodeRequire$2 = function (name) {
5287
- try {
5288
- // eslint-disable-next-line no-new-func -- safe
5289
- if (IS_NODE$1) return Function('return require("' + name + '")')();
5290
- } catch (error) { /* empty */ }
5291
- };
5292
-
5293
- var global$a = global$D;
5294
- var fails$c = fails$G;
5295
- var V8$1 = engineV8Version;
5296
- var IS_BROWSER = engineIsBrowser;
5297
- var IS_DENO = engineIsDeno;
5298
- var IS_NODE = engineIsNode;
5299
-
5300
- var structuredClone$2 = global$a.structuredClone;
5301
-
5302
- var structuredCloneProperTransfer = !!structuredClone$2 && !fails$c(function () {
5303
- // prevent V8 ArrayBufferDetaching protector cell invalidation and performance degradation
5304
- // https://github.com/zloirock/core-js/issues/679
5305
- if ((IS_DENO && V8$1 > 92) || (IS_NODE && V8$1 > 94) || (IS_BROWSER && V8$1 > 97)) return false;
5306
- var buffer = new ArrayBuffer(8);
5307
- var clone = structuredClone$2(buffer, { transfer: [buffer] });
5308
- return buffer.byteLength !== 0 || clone.byteLength !== 8;
5309
- });
5310
-
5311
- var global$9 = global$D;
5312
- var tryNodeRequire$1 = tryNodeRequire$2;
5313
- var PROPER_STRUCTURED_CLONE_TRANSFER$1 = structuredCloneProperTransfer;
5314
-
5315
- var structuredClone$1 = global$9.structuredClone;
5316
- var $ArrayBuffer = global$9.ArrayBuffer;
5317
- var $MessageChannel = global$9.MessageChannel;
5318
- var detach = false;
5319
- var WorkerThreads, channel, buffer, $detach;
5320
-
5321
- if (PROPER_STRUCTURED_CLONE_TRANSFER$1) {
5322
- detach = function (transferable) {
5323
- structuredClone$1(transferable, { transfer: [transferable] });
5324
- };
5325
- } else if ($ArrayBuffer) try {
5326
- if (!$MessageChannel) {
5327
- WorkerThreads = tryNodeRequire$1('worker_threads');
5328
- if (WorkerThreads) $MessageChannel = WorkerThreads.MessageChannel;
5329
- }
5330
-
5331
- if ($MessageChannel) {
5332
- channel = new $MessageChannel();
5333
- buffer = new $ArrayBuffer(2);
5334
-
5335
- $detach = function (transferable) {
5336
- channel.port1.postMessage(null, [transferable]);
5337
- };
5338
-
5339
- if (buffer.byteLength === 2) {
5340
- $detach(buffer);
5341
- if (buffer.byteLength === 0) detach = $detach;
5342
- }
5343
- }
5344
- } catch (error) { /* empty */ }
5345
-
5346
- var detachTransferable$1 = detach;
5347
-
5348
- var global$8 = global$D;
5349
- var uncurryThis$e = functionUncurryThis;
5350
- var uncurryThisAccessor = functionUncurryThisAccessor;
5351
- var toIndex = toIndex$3;
5352
- var isDetached = arrayBufferIsDetached;
5353
- var arrayBufferByteLength = arrayBufferByteLength$2;
5354
- var detachTransferable = detachTransferable$1;
5355
- var PROPER_STRUCTURED_CLONE_TRANSFER = structuredCloneProperTransfer;
5356
-
5357
- var structuredClone = global$8.structuredClone;
5358
- var ArrayBuffer$1 = global$8.ArrayBuffer;
5359
- var DataView$1 = global$8.DataView;
5360
- var TypeError$3 = global$8.TypeError;
5361
- var min$2 = Math.min;
5362
- var ArrayBufferPrototype = ArrayBuffer$1.prototype;
5363
- var DataViewPrototype = DataView$1.prototype;
5364
- var slice = uncurryThis$e(ArrayBufferPrototype.slice);
5365
- var isResizable = uncurryThisAccessor(ArrayBufferPrototype, 'resizable', 'get');
5366
- var maxByteLength = uncurryThisAccessor(ArrayBufferPrototype, 'maxByteLength', 'get');
5367
- var getInt8 = uncurryThis$e(DataViewPrototype.getInt8);
5368
- var setInt8 = uncurryThis$e(DataViewPrototype.setInt8);
5369
-
5370
- var arrayBufferTransfer = (PROPER_STRUCTURED_CLONE_TRANSFER || detachTransferable) && function (arrayBuffer, newLength, preserveResizability) {
5371
- var byteLength = arrayBufferByteLength(arrayBuffer);
5372
- var newByteLength = newLength === undefined ? byteLength : toIndex(newLength);
5373
- var fixedLength = !isResizable || !isResizable(arrayBuffer);
5374
- var newBuffer;
5375
- if (isDetached(arrayBuffer)) throw new TypeError$3('ArrayBuffer is detached');
5376
- if (PROPER_STRUCTURED_CLONE_TRANSFER) {
5377
- arrayBuffer = structuredClone(arrayBuffer, { transfer: [arrayBuffer] });
5378
- if (byteLength === newByteLength && (preserveResizability || fixedLength)) return arrayBuffer;
5379
- }
5380
- if (byteLength >= newByteLength && (!preserveResizability || fixedLength)) {
5381
- newBuffer = slice(arrayBuffer, 0, newByteLength);
5382
- } else {
5383
- var options = preserveResizability && !fixedLength && maxByteLength ? { maxByteLength: maxByteLength(arrayBuffer) } : undefined;
5384
- newBuffer = new ArrayBuffer$1(newByteLength, options);
5385
- var a = new DataView$1(arrayBuffer);
5386
- var b = new DataView$1(newBuffer);
5387
- var copyLength = min$2(newByteLength, byteLength);
5388
- for (var i = 0; i < copyLength; i++) setInt8(b, i, getInt8(a, i));
5389
- }
5390
- if (!PROPER_STRUCTURED_CLONE_TRANSFER) detachTransferable(arrayBuffer);
5391
- return newBuffer;
5392
- };
5393
-
5394
- var $$c = _export;
5395
- var $transfer$1 = arrayBufferTransfer;
5396
-
5397
- // `ArrayBuffer.prototype.transfer` method
5398
- // https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfer
5399
- if ($transfer$1) $$c({ target: 'ArrayBuffer', proto: true }, {
5400
- transfer: function transfer() {
5401
- return $transfer$1(this, arguments.length ? arguments[0] : undefined, true);
5402
- }
5403
- });
5404
-
5405
- var $$b = _export;
5406
- var $transfer = arrayBufferTransfer;
5407
-
5408
- // `ArrayBuffer.prototype.transferToFixedLength` method
5409
- // https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfertofixedlength
5410
- if ($transfer) $$b({ target: 'ArrayBuffer', proto: true }, {
5411
- transferToFixedLength: function transferToFixedLength() {
5412
- return $transfer(this, arguments.length ? arguments[0] : undefined, false);
5413
- }
5414
- });
5411
+ }();
5412
+
5413
+ // `%TypedArray%.prototype.with` method
5414
+ // https://tc39.es/ecma262/#sec-%typedarray%.prototype.with
5415
+ exportTypedArrayMethod('with', { 'with': function (index, value) {
5416
+ var O = aTypedArray(this);
5417
+ var relativeIndex = toIntegerOrInfinity$2(index);
5418
+ var actualValue = isBigIntArray(O) ? toBigInt(value) : +value;
5419
+ return arrayWith(O, getTypedArrayConstructor(O), relativeIndex, actualValue);
5420
+ } }['with'], !PROPER_ORDER);
5415
5421
 
5416
5422
  var commonAlphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
5417
5423
  var base64Alphabet = commonAlphabet + '+/';
@@ -5432,8 +5438,8 @@ var base64Map = {
5432
5438
  c2iUrl: inverse(base64UrlAlphabet)
5433
5439
  };
5434
5440
 
5435
- var $$a = _export;
5436
- var global$7 = global$D;
5441
+ var $$9 = _export;
5442
+ var global$7 = global$C;
5437
5443
  var getBuiltIn$3 = getBuiltIn$d;
5438
5444
  var uncurryThis$d = functionUncurryThis;
5439
5445
  var call$9 = functionCall;
@@ -5462,7 +5468,7 @@ var WRONG_ARITY = BASIC && $btoa.length !== 1;
5462
5468
 
5463
5469
  // `btoa` method
5464
5470
  // https://html.spec.whatwg.org/multipage/webappapis.html#dom-btoa
5465
- $$a({ global: true, bind: true, enumerable: true, forced: !BASIC || NO_ARG_RECEIVING_CHECK || WRONG_ARG_CONVERSION || WRONG_ARITY }, {
5471
+ $$9({ global: true, bind: true, enumerable: true, forced: !BASIC || NO_ARG_RECEIVING_CHECK || WRONG_ARG_CONVERSION || WRONG_ARITY }, {
5466
5472
  btoa: function btoa(data) {
5467
5473
  validateArgumentsLength$4(arguments.length, 1);
5468
5474
  // `webpack` dev server bug on IE global methods - use call(fn, global, ...)
@@ -5483,15 +5489,15 @@ $$a({ global: true, bind: true, enumerable: true, forced: !BASIC || NO_ARG_RECEI
5483
5489
  }
5484
5490
  });
5485
5491
 
5486
- var DESCRIPTORS$6 = descriptors;
5492
+ var DESCRIPTORS$7 = descriptors;
5487
5493
  var fails$a = fails$G;
5488
- var anObject$7 = anObject$l;
5494
+ var anObject$7 = anObject$k;
5489
5495
  var normalizeStringArgument$2 = normalizeStringArgument$4;
5490
5496
 
5491
5497
  var nativeErrorToString = Error.prototype.toString;
5492
5498
 
5493
5499
  var INCORRECT_TO_STRING$1 = fails$a(function () {
5494
- if (DESCRIPTORS$6) {
5500
+ if (DESCRIPTORS$7) {
5495
5501
  // Chrome 32- incorrectly call accessor
5496
5502
  // eslint-disable-next-line es/no-object-create, es/no-object-defineproperty -- safe
5497
5503
  var object = Object.create(Object.defineProperty({}, 'name', { get: function () {
@@ -5540,7 +5546,7 @@ var domExceptionConstants = {
5540
5546
  DataCloneError: { s: 'DATA_CLONE_ERR', c: 25, m: 1 }
5541
5547
  };
5542
5548
 
5543
- var $$9 = _export;
5549
+ var $$8 = _export;
5544
5550
  var tryNodeRequire = tryNodeRequire$2;
5545
5551
  var getBuiltIn$2 = getBuiltIn$d;
5546
5552
  var fails$9 = fails$G;
@@ -5551,13 +5557,13 @@ var defineBuiltIn$5 = defineBuiltIn$e;
5551
5557
  var defineBuiltInAccessor$3 = defineBuiltInAccessor$9;
5552
5558
  var hasOwn$3 = hasOwnProperty_1;
5553
5559
  var anInstance$3 = anInstance$7;
5554
- var anObject$6 = anObject$l;
5560
+ var anObject$6 = anObject$k;
5555
5561
  var errorToString = errorToString$1;
5556
5562
  var normalizeStringArgument$1 = normalizeStringArgument$4;
5557
5563
  var DOMExceptionConstants$1 = domExceptionConstants;
5558
5564
  var clearErrorStack$1 = errorStackClear;
5559
5565
  var InternalStateModule$3 = internalState;
5560
- var DESCRIPTORS$5 = descriptors;
5566
+ var DESCRIPTORS$6 = descriptors;
5561
5567
 
5562
5568
  var DOM_EXCEPTION$2 = 'DOMException';
5563
5569
  var DATA_CLONE_ERR = 'DATA_CLONE_ERR';
@@ -5595,7 +5601,7 @@ var $DOMException$1 = function DOMException() {
5595
5601
  message: message,
5596
5602
  code: code
5597
5603
  });
5598
- if (!DESCRIPTORS$5) {
5604
+ if (!DESCRIPTORS$6) {
5599
5605
  this.name = name;
5600
5606
  this.message = message;
5601
5607
  this.code = code;
@@ -5619,7 +5625,7 @@ var getterFor = function (key) {
5619
5625
  });
5620
5626
  };
5621
5627
 
5622
- if (DESCRIPTORS$5) {
5628
+ if (DESCRIPTORS$6) {
5623
5629
  // `DOMException.prototype.code` getter
5624
5630
  defineBuiltInAccessor$3(DOMExceptionPrototype$1, 'code', getterFor('code'));
5625
5631
  // `DOMException.prototype.message` getter
@@ -5654,7 +5660,7 @@ var FORCED_CONSTRUCTOR$1 = INCORRECT_CONSTRUCTOR;
5654
5660
 
5655
5661
  // `DOMException` constructor
5656
5662
  // https://webidl.spec.whatwg.org/#idl-DOMException
5657
- $$9({ global: true, constructor: true, forced: FORCED_CONSTRUCTOR$1 }, {
5663
+ $$8({ global: true, constructor: true, forced: FORCED_CONSTRUCTOR$1 }, {
5658
5664
  DOMException: FORCED_CONSTRUCTOR$1 ? $DOMException$1 : NativeDOMException$1
5659
5665
  });
5660
5666
 
@@ -5665,7 +5671,7 @@ if (INCORRECT_TO_STRING && (NativeDOMException$1 === PolyfilledDOMException$1))
5665
5671
  defineBuiltIn$5(PolyfilledDOMExceptionPrototype$1, 'toString', errorToString);
5666
5672
  }
5667
5673
 
5668
- if (INCORRECT_CODE && DESCRIPTORS$5 && NativeDOMException$1 === PolyfilledDOMException$1) {
5674
+ if (INCORRECT_CODE && DESCRIPTORS$6 && NativeDOMException$1 === PolyfilledDOMException$1) {
5669
5675
  defineBuiltInAccessor$3(PolyfilledDOMExceptionPrototype$1, 'code', createGetterDescriptor(function () {
5670
5676
  return codeFor(anObject$6(this).name);
5671
5677
  }));
@@ -5684,8 +5690,8 @@ for (var key$1 in DOMExceptionConstants$1) if (hasOwn$3(DOMExceptionConstants$1,
5684
5690
  }
5685
5691
  }
5686
5692
 
5687
- var $$8 = _export;
5688
- var global$6 = global$D;
5693
+ var $$7 = _export;
5694
+ var global$6 = global$C;
5689
5695
  var getBuiltIn$1 = getBuiltIn$d;
5690
5696
  var createPropertyDescriptor$2 = createPropertyDescriptor$9;
5691
5697
  var defineProperty = objectDefineProperty.f;
@@ -5695,7 +5701,7 @@ var inheritIfRequired = inheritIfRequired$4;
5695
5701
  var normalizeStringArgument = normalizeStringArgument$4;
5696
5702
  var DOMExceptionConstants = domExceptionConstants;
5697
5703
  var clearErrorStack = errorStackClear;
5698
- var DESCRIPTORS$4 = descriptors;
5704
+ var DESCRIPTORS$5 = descriptors;
5699
5705
 
5700
5706
  var DOM_EXCEPTION$1 = 'DOMException';
5701
5707
  var Error$1 = getBuiltIn$1('Error');
@@ -5720,7 +5726,7 @@ var ERROR_HAS_STACK = 'stack' in new Error$1(DOM_EXCEPTION$1);
5720
5726
  var DOM_EXCEPTION_HAS_STACK = 'stack' in new NativeDOMException(1, 2);
5721
5727
 
5722
5728
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
5723
- var descriptor = NativeDOMException && DESCRIPTORS$4 && Object.getOwnPropertyDescriptor(global$6, DOM_EXCEPTION$1);
5729
+ var descriptor = NativeDOMException && DESCRIPTORS$5 && Object.getOwnPropertyDescriptor(global$6, DOM_EXCEPTION$1);
5724
5730
 
5725
5731
  // Bun ~ 0.1.1 DOMException have incorrect descriptor and we can't redefine it
5726
5732
  // https://github.com/Jarred-Sumner/bun/issues/399
@@ -5730,7 +5736,7 @@ var FORCED_CONSTRUCTOR = ERROR_HAS_STACK && !BUGGY_DESCRIPTOR && !DOM_EXCEPTION_
5730
5736
 
5731
5737
  // `DOMException` constructor patch for `.stack` where it's required
5732
5738
  // https://webidl.spec.whatwg.org/#es-DOMException-specialness
5733
- $$8({ global: true, constructor: true, forced: FORCED_CONSTRUCTOR }, { // TODO: fix export logic
5739
+ $$7({ global: true, constructor: true, forced: FORCED_CONSTRUCTOR }, { // TODO: fix export logic
5734
5740
  DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException
5735
5741
  });
5736
5742
 
@@ -5759,7 +5765,7 @@ var DOM_EXCEPTION = 'DOMException';
5759
5765
  // `DOMException.prototype[@@toStringTag]` property
5760
5766
  setToStringTag$2(getBuiltIn(DOM_EXCEPTION), DOM_EXCEPTION);
5761
5767
 
5762
- var $$7 = _export;
5768
+ var $$6 = _export;
5763
5769
  var uncurryThis$c = functionUncurryThis;
5764
5770
  var isArray = isArray$4;
5765
5771
 
@@ -5770,7 +5776,7 @@ var test$1 = [1, 2];
5770
5776
  // https://tc39.es/ecma262/#sec-array.prototype.reverse
5771
5777
  // fix for Safari 12.0 bug
5772
5778
  // https://bugs.webkit.org/show_bug.cgi?id=188794
5773
- $$7({ target: 'Array', proto: true, forced: String(test$1) === String(test$1.reverse()) }, {
5779
+ $$6({ target: 'Array', proto: true, forced: String(test$1) === String(test$1.reverse()) }, {
5774
5780
  reverse: function reverse() {
5775
5781
  // eslint-disable-next-line no-self-assign -- dirty hack
5776
5782
  if (isArray(this)) this.length = this.length;
@@ -5782,16 +5788,16 @@ var tryToString = tryToString$6;
5782
5788
 
5783
5789
  var $TypeError$1 = TypeError;
5784
5790
 
5785
- var deletePropertyOrThrow$2 = function (O, P) {
5791
+ var deletePropertyOrThrow$1 = function (O, P) {
5786
5792
  if (!delete O[P]) throw new $TypeError$1('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
5787
5793
  };
5788
5794
 
5789
- var $$6 = _export;
5795
+ var $$5 = _export;
5790
5796
  var uncurryThis$b = functionUncurryThis;
5791
5797
  var aCallable = aCallable$c;
5792
- var toObject$3 = toObject$d;
5793
- var lengthOfArrayLike$2 = lengthOfArrayLike$g;
5794
- var deletePropertyOrThrow$1 = deletePropertyOrThrow$2;
5798
+ var toObject$2 = toObject$c;
5799
+ var lengthOfArrayLike$1 = lengthOfArrayLike$f;
5800
+ var deletePropertyOrThrow = deletePropertyOrThrow$1;
5795
5801
  var toString$8 = toString$i;
5796
5802
  var fails$8 = fails$G;
5797
5803
  var internalSort = arraySort$1;
@@ -5851,7 +5857,7 @@ var STABLE_SORT = !fails$8(function () {
5851
5857
  return result !== 'DGBEFHACIJK';
5852
5858
  });
5853
5859
 
5854
- var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
5860
+ var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
5855
5861
 
5856
5862
  var getSortCompare = function (comparefn) {
5857
5863
  return function (x, y) {
@@ -5864,16 +5870,16 @@ var getSortCompare = function (comparefn) {
5864
5870
 
5865
5871
  // `Array.prototype.sort` method
5866
5872
  // https://tc39.es/ecma262/#sec-array.prototype.sort
5867
- $$6({ target: 'Array', proto: true, forced: FORCED$1 }, {
5873
+ $$5({ target: 'Array', proto: true, forced: FORCED }, {
5868
5874
  sort: function sort(comparefn) {
5869
5875
  if (comparefn !== undefined) aCallable(comparefn);
5870
5876
 
5871
- var array = toObject$3(this);
5877
+ var array = toObject$2(this);
5872
5878
 
5873
5879
  if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
5874
5880
 
5875
5881
  var items = [];
5876
- var arrayLength = lengthOfArrayLike$2(array);
5882
+ var arrayLength = lengthOfArrayLike$1(array);
5877
5883
  var itemsLength, index;
5878
5884
 
5879
5885
  for (index = 0; index < arrayLength; index++) {
@@ -5882,18 +5888,18 @@ $$6({ target: 'Array', proto: true, forced: FORCED$1 }, {
5882
5888
 
5883
5889
  internalSort(items, getSortCompare(comparefn));
5884
5890
 
5885
- itemsLength = lengthOfArrayLike$2(items);
5891
+ itemsLength = lengthOfArrayLike$1(items);
5886
5892
  index = 0;
5887
5893
 
5888
5894
  while (index < itemsLength) array[index] = items[index++];
5889
- while (index < arrayLength) deletePropertyOrThrow$1(array, index++);
5895
+ while (index < arrayLength) deletePropertyOrThrow(array, index++);
5890
5896
 
5891
5897
  return array;
5892
5898
  }
5893
5899
  });
5894
5900
 
5895
5901
  var fails$7 = fails$G;
5896
- var global$5 = global$D;
5902
+ var global$5 = global$C;
5897
5903
 
5898
5904
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
5899
5905
  var $RegExp$2 = global$5.RegExp;
@@ -5924,7 +5930,7 @@ var regexpStickyHelpers = {
5924
5930
  };
5925
5931
 
5926
5932
  var fails$6 = fails$G;
5927
- var global$4 = global$D;
5933
+ var global$4 = global$C;
5928
5934
 
5929
5935
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
5930
5936
  var $RegExp$1 = global$4.RegExp;
@@ -5935,7 +5941,7 @@ var regexpUnsupportedDotAll = fails$6(function () {
5935
5941
  });
5936
5942
 
5937
5943
  var fails$5 = fails$G;
5938
- var global$3 = global$D;
5944
+ var global$3 = global$C;
5939
5945
 
5940
5946
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
5941
5947
  var $RegExp = global$3.RegExp;
@@ -5953,7 +5959,7 @@ var uncurryThis$a = functionUncurryThis;
5953
5959
  var toString$7 = toString$i;
5954
5960
  var regexpFlags = regexpFlags$1;
5955
5961
  var stickyHelpers$1 = regexpStickyHelpers;
5956
- var shared = shared$4.exports;
5962
+ var shared = shared$4;
5957
5963
  var create$1 = objectCreate;
5958
5964
  var getInternalState$1 = internalState.get;
5959
5965
  var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
@@ -6063,12 +6069,12 @@ if (PATCH) {
6063
6069
 
6064
6070
  var regexpExec$2 = patchedExec;
6065
6071
 
6066
- var $$5 = _export;
6072
+ var $$4 = _export;
6067
6073
  var exec$2 = regexpExec$2;
6068
6074
 
6069
6075
  // `RegExp.prototype.exec` method
6070
6076
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
6071
- $$5({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
6077
+ $$4({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
6072
6078
  exec: exec$2
6073
6079
  });
6074
6080
 
@@ -6151,7 +6157,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
6151
6157
  var uncurryThis$9 = functionUncurryThis;
6152
6158
  var toIntegerOrInfinity$1 = toIntegerOrInfinity$c;
6153
6159
  var toString$6 = toString$i;
6154
- var requireObjectCoercible$3 = requireObjectCoercible$a;
6160
+ var requireObjectCoercible$3 = requireObjectCoercible$b;
6155
6161
 
6156
6162
  var charAt$5 = uncurryThis$9(''.charAt);
6157
6163
  var charCodeAt$1 = uncurryThis$9(''.charCodeAt);
@@ -6194,7 +6200,7 @@ var advanceStringIndex$2 = function (S, index, unicode) {
6194
6200
  };
6195
6201
 
6196
6202
  var uncurryThis$8 = functionUncurryThis;
6197
- var toObject$2 = toObject$d;
6203
+ var toObject$1 = toObject$c;
6198
6204
 
6199
6205
  var floor$2 = Math.floor;
6200
6206
  var charAt$3 = uncurryThis$8(''.charAt);
@@ -6211,7 +6217,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
6211
6217
  var m = captures.length;
6212
6218
  var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
6213
6219
  if (namedCaptures !== undefined) {
6214
- namedCaptures = toObject$2(namedCaptures);
6220
+ namedCaptures = toObject$1(namedCaptures);
6215
6221
  symbols = SUBSTITUTION_SYMBOLS;
6216
6222
  }
6217
6223
  return replace$3(replacement, symbols, function (match, ch) {
@@ -6240,7 +6246,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
6240
6246
  };
6241
6247
 
6242
6248
  var call$6 = functionCall;
6243
- var anObject$5 = anObject$l;
6249
+ var anObject$5 = anObject$k;
6244
6250
  var isCallable$2 = isCallable$q;
6245
6251
  var classof$1 = classofRaw$2;
6246
6252
  var regexpExec = regexpExec$2;
@@ -6265,13 +6271,13 @@ var call$5 = functionCall;
6265
6271
  var uncurryThis$7 = functionUncurryThis;
6266
6272
  var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
6267
6273
  var fails$3 = fails$G;
6268
- var anObject$4 = anObject$l;
6274
+ var anObject$4 = anObject$k;
6269
6275
  var isCallable$1 = isCallable$q;
6270
6276
  var isNullOrUndefined$2 = isNullOrUndefined$7;
6271
6277
  var toIntegerOrInfinity = toIntegerOrInfinity$c;
6272
6278
  var toLength$1 = toLength$8;
6273
6279
  var toString$5 = toString$i;
6274
- var requireObjectCoercible$2 = requireObjectCoercible$a;
6280
+ var requireObjectCoercible$2 = requireObjectCoercible$b;
6275
6281
  var advanceStringIndex$1 = advanceStringIndex$2;
6276
6282
  var getMethod$2 = getMethod$6;
6277
6283
  var getSubstitution = getSubstitution$1;
@@ -6412,9 +6418,9 @@ var sameValue$1 = Object.is || function is(x, y) {
6412
6418
 
6413
6419
  var call$4 = functionCall;
6414
6420
  var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
6415
- var anObject$3 = anObject$l;
6421
+ var anObject$3 = anObject$k;
6416
6422
  var isNullOrUndefined$1 = isNullOrUndefined$7;
6417
- var requireObjectCoercible$1 = requireObjectCoercible$a;
6423
+ var requireObjectCoercible$1 = requireObjectCoercible$b;
6418
6424
  var sameValue = sameValue$1;
6419
6425
  var toString$4 = toString$i;
6420
6426
  var getMethod$1 = getMethod$6;
@@ -6464,13 +6470,13 @@ var stringTrimForced = function (METHOD_NAME) {
6464
6470
  });
6465
6471
  };
6466
6472
 
6467
- var $$4 = _export;
6473
+ var $$3 = _export;
6468
6474
  var $trim = stringTrim.trim;
6469
6475
  var forcedStringTrimMethod = stringTrimForced;
6470
6476
 
6471
6477
  // `String.prototype.trim` method
6472
6478
  // https://tc39.es/ecma262/#sec-string.prototype.trim
6473
- $$4({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
6479
+ $$3({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
6474
6480
  trim: function trim() {
6475
6481
  return $trim(this);
6476
6482
  }
@@ -6509,7 +6515,7 @@ defineIterator(String, 'String', function (iterated) {
6509
6515
 
6510
6516
  var fails$1 = fails$G;
6511
6517
  var wellKnownSymbol$1 = wellKnownSymbol$m;
6512
- var DESCRIPTORS$3 = descriptors;
6518
+ var DESCRIPTORS$4 = descriptors;
6513
6519
  var IS_PURE = isPure;
6514
6520
 
6515
6521
  var ITERATOR$1 = wellKnownSymbol$1('iterator');
@@ -6530,7 +6536,7 @@ var urlConstructorDetection = !fails$1(function () {
6530
6536
  // https://bugs.chromium.org/p/v8/issues/detail?id=14222
6531
6537
  params2['delete']('b', undefined);
6532
6538
  return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))
6533
- || (!params.size && (IS_PURE || !DESCRIPTORS$3))
6539
+ || (!params.size && (IS_PURE || !DESCRIPTORS$4))
6534
6540
  || !params.sort
6535
6541
  || url.href !== 'http://a/c%20d?a=1&c=3'
6536
6542
  || params.get('c') !== '3'
@@ -6549,7 +6555,7 @@ var urlConstructorDetection = !fails$1(function () {
6549
6555
  || new URL('http://x', undefined).host !== 'x';
6550
6556
  });
6551
6557
 
6552
- var anObject$2 = anObject$l;
6558
+ var anObject$2 = anObject$k;
6553
6559
  var iteratorClose = iteratorClose$2;
6554
6560
 
6555
6561
  // call something on iterator step with safe closing on error
@@ -6561,23 +6567,22 @@ var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
6561
6567
  }
6562
6568
  };
6563
6569
 
6564
- var toPropertyKey = toPropertyKey$4;
6570
+ var DESCRIPTORS$3 = descriptors;
6565
6571
  var definePropertyModule = objectDefineProperty;
6566
6572
  var createPropertyDescriptor$1 = createPropertyDescriptor$9;
6567
6573
 
6568
6574
  var createProperty$1 = function (object, key, value) {
6569
- var propertyKey = toPropertyKey(key);
6570
- if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor$1(0, value));
6571
- else object[propertyKey] = value;
6575
+ if (DESCRIPTORS$3) definePropertyModule.f(object, key, createPropertyDescriptor$1(0, value));
6576
+ else object[key] = value;
6572
6577
  };
6573
6578
 
6574
6579
  var bind$2 = functionBindContext;
6575
6580
  var call$3 = functionCall;
6576
- var toObject$1 = toObject$d;
6581
+ var toObject = toObject$c;
6577
6582
  var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
6578
6583
  var isArrayIteratorMethod = isArrayIteratorMethod$3;
6579
6584
  var isConstructor = isConstructor$3;
6580
- var lengthOfArrayLike$1 = lengthOfArrayLike$g;
6585
+ var lengthOfArrayLike = lengthOfArrayLike$f;
6581
6586
  var createProperty = createProperty$1;
6582
6587
  var getIterator$1 = getIterator$4;
6583
6588
  var getIteratorMethod$1 = getIteratorMethod$5;
@@ -6587,7 +6592,7 @@ var $Array = Array;
6587
6592
  // `Array.from` method implementation
6588
6593
  // https://tc39.es/ecma262/#sec-array.from
6589
6594
  var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
6590
- var O = toObject$1(arrayLike);
6595
+ var O = toObject(arrayLike);
6591
6596
  var IS_CONSTRUCTOR = isConstructor(this);
6592
6597
  var argumentsLength = arguments.length;
6593
6598
  var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
@@ -6598,15 +6603,15 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
6598
6603
  var length, result, step, iterator, next, value;
6599
6604
  // if the target is not iterable or it's an array with the default iterator - use a simple case
6600
6605
  if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
6606
+ result = IS_CONSTRUCTOR ? new this() : [];
6601
6607
  iterator = getIterator$1(O, iteratorMethod);
6602
6608
  next = iterator.next;
6603
- result = IS_CONSTRUCTOR ? new this() : [];
6604
6609
  for (;!(step = call$3(next, iterator)).done; index++) {
6605
6610
  value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
6606
6611
  createProperty(result, index, value);
6607
6612
  }
6608
6613
  } else {
6609
- length = lengthOfArrayLike$1(O);
6614
+ length = lengthOfArrayLike(O);
6610
6615
  result = IS_CONSTRUCTOR ? new this(length) : $Array(length);
6611
6616
  for (;length > index; index++) {
6612
6617
  value = mapping ? mapfn(O[index], index) : O[index];
@@ -6800,8 +6805,8 @@ var stringPunycodeToAscii = function (input) {
6800
6805
 
6801
6806
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
6802
6807
 
6803
- var $$3 = _export;
6804
- var global$2 = global$D;
6808
+ var $$2 = _export;
6809
+ var global$2 = global$C;
6805
6810
  var safeGetBuiltIn = safeGetBuiltIn$2;
6806
6811
  var call$2 = functionCall;
6807
6812
  var uncurryThis$5 = functionUncurryThis;
@@ -6818,8 +6823,8 @@ var isCallable = isCallable$q;
6818
6823
  var hasOwn$1 = hasOwnProperty_1;
6819
6824
  var bind$1 = functionBindContext;
6820
6825
  var classof = classof$e;
6821
- var anObject$1 = anObject$l;
6822
- var isObject = isObject$h;
6826
+ var anObject$1 = anObject$k;
6827
+ var isObject = isObject$i;
6823
6828
  var $toString$1 = toString$i;
6824
6829
  var create = objectCreate;
6825
6830
  var createPropertyDescriptor = createPropertyDescriptor$9;
@@ -7160,7 +7165,7 @@ if (DESCRIPTORS$2) defineBuiltInAccessor$2(URLSearchParamsPrototype$3, 'size', {
7160
7165
 
7161
7166
  setToStringTag$1(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
7162
7167
 
7163
- $$3({ global: true, constructor: true, forced: !USE_NATIVE_URL$1 }, {
7168
+ $$2({ global: true, constructor: true, forced: !USE_NATIVE_URL$1 }, {
7164
7169
  URLSearchParams: URLSearchParamsConstructor
7165
7170
  });
7166
7171
 
@@ -7187,7 +7192,7 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers$1)) {
7187
7192
  };
7188
7193
 
7189
7194
  if (isCallable(nativeFetch)) {
7190
- $$3({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
7195
+ $$2({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
7191
7196
  fetch: function fetch(input /* , init */) {
7192
7197
  return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
7193
7198
  }
@@ -7203,7 +7208,7 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers$1)) {
7203
7208
  RequestPrototype.constructor = RequestConstructor;
7204
7209
  RequestConstructor.prototype = RequestPrototype;
7205
7210
 
7206
- $$3({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
7211
+ $$2({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
7207
7212
  Request: RequestConstructor
7208
7213
  });
7209
7214
  }
@@ -7216,10 +7221,10 @@ var web_urlSearchParams_constructor = {
7216
7221
 
7217
7222
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
7218
7223
 
7219
- var $$2 = _export;
7224
+ var $$1 = _export;
7220
7225
  var DESCRIPTORS$1 = descriptors;
7221
7226
  var USE_NATIVE_URL = urlConstructorDetection;
7222
- var global$1 = global$D;
7227
+ var global$1 = global$C;
7223
7228
  var bind = functionBindContext;
7224
7229
  var uncurryThis$4 = functionUncurryThis;
7225
7230
  var defineBuiltIn$2 = defineBuiltIn$e;
@@ -8258,16 +8263,16 @@ if (NativeURL) {
8258
8263
 
8259
8264
  setToStringTag(URLConstructor, 'URL');
8260
8265
 
8261
- $$2({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$1 }, {
8266
+ $$1({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$1 }, {
8262
8267
  URL: URLConstructor
8263
8268
  });
8264
8269
 
8265
- var $$1 = _export;
8270
+ var $ = _export;
8266
8271
  var call$1 = functionCall;
8267
8272
 
8268
8273
  // `URL.prototype.toJSON` method
8269
8274
  // https://url.spec.whatwg.org/#dom-url-tojson
8270
- $$1({ target: 'URL', proto: true, enumerable: true }, {
8275
+ $({ target: 'URL', proto: true, enumerable: true }, {
8271
8276
  toJSON: function toJSON() {
8272
8277
  return call$1(URL.prototype.toString, this);
8273
8278
  }
@@ -9593,54 +9598,8 @@ class WMListener {
9593
9598
  }
9594
9599
  }
9595
9600
 
9596
- var $ = _export;
9597
- var toObject = toObject$d;
9598
- var lengthOfArrayLike = lengthOfArrayLike$g;
9599
- var setArrayLength = arraySetLength;
9600
- var deletePropertyOrThrow = deletePropertyOrThrow$2;
9601
- var doesNotExceedSafeInteger = doesNotExceedSafeInteger$2;
9602
-
9603
- // IE8-
9604
- var INCORRECT_RESULT = [].unshift(0) !== 1;
9605
-
9606
- // V8 ~ Chrome < 71 and Safari <= 15.4, FF < 23 throws InternalError
9607
- var properErrorOnNonWritableLength = function () {
9608
- try {
9609
- // eslint-disable-next-line es/no-object-defineproperty -- safe
9610
- Object.defineProperty([], 'length', { writable: false }).unshift();
9611
- } catch (error) {
9612
- return error instanceof TypeError;
9613
- }
9614
- };
9615
-
9616
- var FORCED = INCORRECT_RESULT || !properErrorOnNonWritableLength();
9617
-
9618
- // `Array.prototype.unshift` method
9619
- // https://tc39.es/ecma262/#sec-array.prototype.unshift
9620
- $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
9621
- // eslint-disable-next-line no-unused-vars -- required for `.length`
9622
- unshift: function unshift(item) {
9623
- var O = toObject(this);
9624
- var len = lengthOfArrayLike(O);
9625
- var argCount = arguments.length;
9626
- if (argCount) {
9627
- doesNotExceedSafeInteger(len + argCount);
9628
- var k = len;
9629
- while (k--) {
9630
- var to = k + argCount;
9631
- if (k in O) O[to] = O[k];
9632
- else deletePropertyOrThrow(O, to);
9633
- }
9634
- for (var j = 0; j < argCount; j++) {
9635
- O[j] = arguments[j];
9636
- }
9637
- } return setArrayLength(O, len + argCount);
9638
- }
9639
- });
9640
-
9641
- /* Global variable, shared across multiple WMCanvasBuffers */
9642
- const sharedImagesList = {};
9643
9601
  const ANIMATIONFRAMEREQUEST_DONE = -1;
9602
+ const MIN_FRACTION_OF_OVERLAP = 0.75;
9644
9603
  /**
9645
9604
  * Function to find image url's which are similar to other images, without taking width, height and bbox into account
9646
9605
  * @param imageSource The source / url of the image to check
@@ -9663,81 +9622,72 @@ const makeQueryStringWithoutGeoInfo = imageSource => {
9663
9622
  });
9664
9623
  };
9665
9624
  /**
9666
- * Add an image to the sharedimages list
9667
- * @param newLayer A canvaslayer object to add.
9668
- */
9669
- const addAlternativeImage = newLayer => {
9670
- var _a;
9671
- /* Get a signature for images which belong to each other */
9672
- const sigImageUrl = makeQueryStringWithoutGeoInfo(newLayer.imageSource);
9673
- /* Make an entry for these images in the sharedImagesList */
9674
- (_a = sharedImagesList[sigImageUrl]) !== null && _a !== void 0 ? _a : sharedImagesList[sigImageUrl] = [];
9675
- /* Get the images for this signature */
9676
- const imagesForUrl = sharedImagesList[sigImageUrl];
9677
- /* Check if the image is not already in the sharedImagesList */
9678
- const imageIsAlreadyIndex = imagesForUrl.find(i => {
9679
- return i.imageSource === newLayer.imageSource;
9680
- });
9681
- /* It is not in the list, so add it */
9682
- if (!imageIsAlreadyIndex) {
9683
- /* Ensure that the oldest images are removed, keep a maximum of 10 images per signature url */
9684
- while (sharedImagesList[sigImageUrl].length >= 10) {
9685
- sharedImagesList[sigImageUrl].pop();
9686
- }
9687
- /* Add it to the beginning of the array for efficieny in searching at a later stage */
9688
- sharedImagesList[sigImageUrl].unshift(newLayer);
9689
- }
9690
- };
9691
- /**
9692
- * Removes the image from the alternative imageslist (in case imagestore cache gets cleaned), this used when the imagestore triggers a delete event for an image
9693
- * @param imageUrl The url for the image to remove
9625
+ * Function which returns how much two bbox areas have the same area and do overlap.
9626
+ * See test in WMCanvasBuffer.spec.ts for details
9627
+ * @param boxA
9628
+ * @param boxB
9629
+ * @returns
9694
9630
  */
9695
- const removeAlternativeImage = imageUrl => {
9696
- const sigImageUrl = makeQueryStringWithoutGeoInfo(imageUrl);
9697
- const imagesForUrl = sharedImagesList[sigImageUrl];
9698
- if (imagesForUrl && imagesForUrl.length > 0) {
9699
- imagesForUrl.forEach((altImage, index) => {
9700
- if (altImage.imageSource === imageUrl) {
9701
- imagesForUrl.splice(index, 1);
9702
- }
9703
- });
9704
- }
9705
- if (!imagesForUrl || imagesForUrl.length === 0) {
9706
- delete sharedImagesList[sigImageUrl];
9631
+ const getOverlappingAreaRatio = (boxA, boxB) => {
9632
+ const area1 = Math.abs(boxA.left - boxA.right) * Math.abs(boxA.bottom - boxA.top);
9633
+ const area2 = Math.abs(boxB.left - boxB.right) * Math.abs(boxB.bottom - boxB.top);
9634
+ if (area1 === 0 || area2 === 0) {
9635
+ return [0, 0];
9707
9636
  }
9637
+ const areaFraction = area1 / area2;
9638
+ const intersectingArea = Math.max(0, Math.min(boxA.right, boxB.right) - Math.max(boxA.left, boxB.left)) * Math.max(0, Math.min(boxA.top, boxB.top) - Math.max(boxA.bottom, boxB.bottom));
9639
+ const intersectingFraction = intersectingArea / area1;
9640
+ return [areaFraction, intersectingFraction];
9708
9641
  };
9709
9642
  /**
9710
- * Sort the imageslist by imagedate, newewst image first.
9643
+ * Sort the imageslist
9711
9644
  * @param imagesList
9712
9645
  * @returns
9713
9646
  */
9714
- const sortByImageDate = imagesList => {
9715
- const sorted = imagesList.sort((a, b) => a.imageAge < b.imageAge ? 1 : -1);
9716
- return sorted.map(i => i);
9717
- };
9718
- /**
9719
- * Function to find the an alternative available image for an image url that is not yet loaded
9720
- * @param imageUrl The image source / url to find an alternative for
9721
- * @param imageStore The imagestore where the other images are located
9722
- * @param bbox The boundingbox to search this image for
9723
- * @returns A canvasLayer, containing the new image source with its geo properties
9724
- */
9725
- const getAlternativeImage = (imageUrl, imageStore,
9726
- // eslint-disable-next-line no-unused-vars
9727
- _bbox) => {
9728
- const sigImageUrl = makeQueryStringWithoutGeoInfo(imageUrl);
9729
- const imagesForUrl = sharedImagesList[sigImageUrl];
9730
- if (imagesForUrl === null || imagesForUrl === void 0 ? void 0 : imagesForUrl.length) {
9731
- const sortedImagesForUrl = sortByImageDate(imagesForUrl);
9732
- return sortedImagesForUrl.find(altImage => {
9733
- const cachedImage = imageStore.getImageForSrc(altImage.imageSource);
9734
- return cachedImage === null || cachedImage === void 0 ? void 0 : cachedImage.isLoadedWithoutErrors();
9735
- });
9647
+ const getSortedListOfImages = (imagesList, bbox) => {
9648
+ if (!(imagesList === null || imagesList === void 0 ? void 0 : imagesList.length)) {
9649
+ return;
9650
+ }
9651
+ const canvasBox = {
9652
+ left: bbox.left,
9653
+ right: bbox.right,
9654
+ top: bbox.top,
9655
+ bottom: bbox.bottom
9656
+ };
9657
+ // Calculate and assign amount of overlap to each image in image list
9658
+ imagesList.forEach(image => {
9659
+ const [areaFraction, intersect] = getOverlappingAreaRatio(image.bbox, canvasBox);
9660
+ // 1.0 is perfect overlap, 0.8 and 1.2 are less suitable. Filter by having images with overlap closest to 1.0 on top.
9661
+ const areaFractionClosest = Math.abs(1 - Math.min(areaFraction, 1.2));
9662
+ // Note: directly assigning properties here for efficiency
9663
+ image.areaFraction = areaFraction; // eslint-disable-line no-param-reassign
9664
+ image.intersect = intersect; // eslint-disable-line no-param-reassign
9665
+ image.areaFractionClosest = areaFractionClosest; // eslint-disable-line no-param-reassign
9666
+ });
9667
+ // Sort the images by overlap
9668
+ imagesList.sort((a, b) => {
9669
+ if (a.areaFractionClosest > b.areaFractionClosest) {
9670
+ return 1;
9671
+ }
9672
+ if (a.areaFractionClosest < b.areaFractionClosest) {
9673
+ return -1;
9674
+ }
9675
+ if (a.intersect < b.intersect) {
9676
+ return 1;
9677
+ }
9678
+ if (a.intersect > b.intersect) {
9679
+ return -1;
9680
+ }
9681
+ return 0;
9682
+ });
9683
+ // Only keep 10 images as reference for speed.
9684
+ if (imagesList.length >= 10) {
9685
+ imagesList.length = 10; // eslint-disable-line no-param-reassign
9736
9686
  }
9737
- return undefined;
9738
9687
  };
9739
9688
  class WMCanvasBuffer {
9740
9689
  constructor(webMapJS, w, h, internalCallbacks) {
9690
+ this.sharedImagesList = {};
9741
9691
  this.canvas = document.createElement('canvas');
9742
9692
  this.canvas.width = w;
9743
9693
  this.canvas.height = h;
@@ -9745,75 +9695,63 @@ class WMCanvasBuffer {
9745
9695
  this._ctx.canvas.width = w;
9746
9696
  this._ctx.canvas.height = h;
9747
9697
  this._imageStore = webMapJS.getImageStore();
9748
- this.ready = true;
9749
- this.layers = [];
9750
- this._currentbbox = undefined;
9698
+ this._ready = true;
9699
+ this._canvasLayers = [];
9751
9700
  this._currentnewbbox = undefined;
9752
9701
  this._width = w;
9753
9702
  this._height = h;
9754
9703
  this._webMapJS = webMapJS;
9755
9704
  this._internalCallbacks = internalCallbacks;
9756
- /* Bind */
9757
- this.getCanvasContext = this.getCanvasContext.bind(this);
9758
- this.imageLoadComplete = this.imageLoadComplete.bind(this);
9759
- this._statDivBufferImageLoaded = this._statDivBufferImageLoaded.bind(this);
9760
- this.display = this.display.bind(this);
9761
- this.finishedLoading = this.finishedLoading.bind(this);
9762
- this.resize = this.resize.bind(this);
9763
- this.setSrc = this.setSrc.bind(this);
9705
+ /* Bind methods */
9706
+ this._imageLoadComplete = this._imageLoadComplete.bind(this);
9707
+ this._finishedLoading = this._finishedLoading.bind(this);
9764
9708
  this._getPixelCoordFromGeoCoord = this._getPixelCoordFromGeoCoord.bind(this);
9765
- this.setBBOX = this.setBBOX.bind(this);
9766
- this.getBuffer = this.getBuffer.bind(this);
9767
- this._drawImage = this._drawImage.bind(this);
9768
- this.isImageStoreLoading = this.isImageStoreLoading.bind(this);
9709
+ this._drawCanvasGeoLayer = this._drawCanvasGeoLayer.bind(this);
9710
+ this._isImageStoreLoading = this._isImageStoreLoading.bind(this);
9769
9711
  this._display = this._display.bind(this);
9712
+ this._checkIfLoading = this._checkIfLoading.bind(this);
9713
+ this.getAlternativeImage = this.getAlternativeImage.bind(this);
9714
+ this.removeAlternativeImage = this.removeAlternativeImage.bind(this);
9715
+ this.addAlternativeImage = this.addAlternativeImage.bind(this);
9716
+ this.setBBOX = this.setBBOX.bind(this);
9770
9717
  this.destroy = this.destroy.bind(this);
9718
+ this.display = this.display.bind(this);
9719
+ this.resize = this.resize.bind(this);
9720
+ this.addLayerToCanvas = this.addLayerToCanvas.bind(this);
9721
+ this.getHTMLCanvasElement = this.getHTMLCanvasElement.bind(this);
9771
9722
  this._imageStore.addImageEventCallback((image, id, imageEventType) => {
9772
9723
  if (imageEventType === WMImageEventType.Loaded) {
9773
- this.imageLoadComplete(image);
9724
+ this._imageLoadComplete(image);
9774
9725
  }
9775
9726
  if (imageEventType === WMImageEventType.Deleted) {
9776
- removeAlternativeImage(image.getSrc());
9727
+ this.removeAlternativeImage(image.getSrc());
9777
9728
  }
9778
9729
  }, 'WMCanvasBuffer');
9779
9730
  this._errorList = [];
9780
- this.animationFrameRequest = ANIMATIONFRAMEREQUEST_DONE;
9731
+ this._animationFrameRequest = ANIMATIONFRAMEREQUEST_DONE;
9781
9732
  this._isBufferLoading = false;
9782
9733
  }
9783
- getCanvasContext() {
9784
- return this._ctx;
9785
- }
9786
9734
  /**
9787
9735
  * Triggered by the WMImageStore when an image completes loading
9788
9736
  * @param image
9789
9737
  */
9790
- imageLoadComplete(image) {
9738
+ _imageLoadComplete(image) {
9791
9739
  if (!this._webMapJS) {
9792
9740
  return;
9793
9741
  }
9794
- this._statDivBufferImageLoaded();
9742
+ const loadingLayers = this._canvasLayers.filter(layer => {
9743
+ const image = this._imageStore.getImageForSrc(layer.imageSource);
9744
+ return !image || image.isLoaded() === false;
9745
+ });
9746
+ if (loadingLayers.length === 0) {
9747
+ this._finishedLoading();
9748
+ }
9795
9749
  this._webMapJS.getListener().triggerEvent('onimageload', undefined);
9796
9750
  this._webMapJS.getListener().triggerEvent('onimagebufferimageload', image);
9797
9751
  this.display();
9798
- this.checkIfLoading();
9799
- }
9800
- /**
9801
- * Checks if all images are loaded, if so it will call finishedLoading
9802
- * @returns
9803
- */
9804
- _statDivBufferImageLoaded() {
9805
- for (const layer of this.layers) {
9806
- const image = this._imageStore.getImageForSrc(layer.imageSource);
9807
- if (!image || image.isLoaded() === false) {
9808
- return;
9809
- }
9810
- }
9811
- this.finishedLoading();
9812
- }
9813
- reset() {
9814
- this.layers.length = 0;
9752
+ this._checkIfLoading();
9815
9753
  }
9816
- _drawImage(canvasLayer) {
9754
+ _drawCanvasGeoLayer(canvasLayer, debug = false) {
9817
9755
  const {
9818
9756
  bbox: imageBBox,
9819
9757
  opacity,
@@ -9840,40 +9778,26 @@ class WMCanvasBuffer {
9840
9778
  const imageH = coord2.y - coord1.y;
9841
9779
  try {
9842
9780
  this._ctx.drawImage(imageElement, imageX, imageY, imageW, imageH);
9781
+ if (debug) {
9782
+ this._ctx.lineWidth = 1;
9783
+ this._ctx.strokeStyle = '#0000ff';
9784
+ this._ctx.beginPath();
9785
+ this._ctx.rect(imageX, imageY, imageW, imageH);
9786
+ this._ctx.stroke();
9787
+ }
9843
9788
  if (enableConsoleDebugging) ;
9844
9789
  } catch (e) {
9845
9790
  debugLogger(DebugType.Error);
9846
9791
  }
9847
9792
  }
9848
- display() {
9849
- if (!this._webMapJS) {
9850
- return;
9851
- }
9852
- // Check if the response from window.requestAnimationFrame is set. If this is the case, debounce the next display.
9853
- if (this.animationFrameRequest !== ANIMATIONFRAMEREQUEST_DONE) {
9854
- clearTimeout(this.timerHandle);
9855
- this.timerHandle = setTimeout(() => {
9856
- if (this._webMapJS) {
9857
- this._display();
9858
- }
9859
- }, 100);
9860
- return;
9861
- }
9862
- // Display the next frame based on window.requestAnimationFrame, e.g. when the screen is ready to display.
9863
- this.animationFrameRequest = window.requestAnimationFrame(() => {
9864
- if (this._webMapJS) {
9865
- this._display();
9866
- }
9867
- });
9868
- }
9869
9793
  _display() {
9870
9794
  var _a, _b, _c, _d, _e, _f;
9871
- if (!this.ready) {
9795
+ if (!this._ready) {
9872
9796
  return;
9873
9797
  }
9874
- this.ready = false;
9798
+ this._ready = false;
9875
9799
  // Frame is displayed, so reset animationFrameRequest back to default.
9876
- this.animationFrameRequest = ANIMATIONFRAMEREQUEST_DONE;
9800
+ this._animationFrameRequest = ANIMATIONFRAMEREQUEST_DONE;
9877
9801
  this._ctx.globalAlpha = 1;
9878
9802
  this._ctx.fillStyle = 'white';
9879
9803
  this._ctx.beginPath();
@@ -9885,11 +9809,11 @@ class WMCanvasBuffer {
9885
9809
  }
9886
9810
  /* Reset errors */
9887
9811
  this._errorList.length = 0;
9888
- this.layers.forEach(layer => {
9812
+ this._canvasLayers.forEach(layer => {
9889
9813
  const imageToDisplay = this._imageStore.getImageForSrc(layer.imageSource);
9890
9814
  if (imageToDisplay === null || imageToDisplay === void 0 ? void 0 : imageToDisplay.isLoadedWithoutErrors()) {
9891
9815
  // Draw this image, it is loaded and OK
9892
- this._drawImage(layer);
9816
+ this._drawCanvasGeoLayer(layer);
9893
9817
  } else {
9894
9818
  /**
9895
9819
  * Check if this image has an error.
@@ -9899,9 +9823,9 @@ class WMCanvasBuffer {
9899
9823
  imageToDisplay.forceReload();
9900
9824
  }
9901
9825
  /* Find closest alternative and display instead image */
9902
- const im = getAlternativeImage(layer.imageSource, this._imageStore, this._currentnewbbox);
9903
- if (im) {
9904
- this._drawImage(im);
9826
+ const ims = this.getAlternativeImage(layer.imageSource, this._currentnewbbox);
9827
+ if (ims.length > 0) {
9828
+ this._drawCanvasGeoLayer(ims[0]);
9905
9829
  }
9906
9830
  }
9907
9831
  });
@@ -9916,28 +9840,125 @@ class WMCanvasBuffer {
9916
9840
  this.canvas.style.display = 'inline-block';
9917
9841
  this._webMapJS.getListener().triggerEvent('aftercanvasdisplay', this._ctx);
9918
9842
  (_f = (_e = this._internalCallbacks) === null || _e === void 0 ? void 0 : _e.aftercanvasdisplay) === null || _f === void 0 ? void 0 : _f.call(_e, this._ctx);
9919
- this.ready = true;
9843
+ this._ready = true;
9920
9844
  }
9921
- finishedLoading() {
9922
- if (this.ready) {
9923
- // console.log('finishedLoading');
9845
+ _finishedLoading() {
9846
+ if (this._ready) {
9924
9847
  return;
9925
9848
  }
9926
- this.ready = true;
9927
- for (const layer of this.layers) {
9849
+ this._ready = true;
9850
+ for (const layer of this._canvasLayers) {
9928
9851
  const image = this._imageStore.getImageForSrc(layer.imageSource);
9929
9852
  if (image && image.hasError()) {
9930
9853
  debugLogger(DebugType.Error, `image error: ${image.getSrc()}`);
9931
9854
  }
9932
9855
  }
9933
9856
  try {
9934
- if (isDefined(this.onLoadReadyFunction)) {
9935
- this.onLoadReadyFunction(this);
9857
+ if (isDefined(this._onLoadReadyFunction)) {
9858
+ this._onLoadReadyFunction(this);
9936
9859
  }
9937
9860
  } catch (e) {
9938
9861
  debugLogger(DebugType.Error);
9939
9862
  }
9940
9863
  }
9864
+ _checkIfLoading() {
9865
+ const isLoading = this._isImageStoreLoading();
9866
+ if (!isLoading && this._isBufferLoading) {
9867
+ this._isBufferLoading = false;
9868
+ this._webMapJS.getListener().triggerEvent('onloadready');
9869
+ } else if (isLoading && !this._isBufferLoading) {
9870
+ this._isBufferLoading = true;
9871
+ this._webMapJS.getListener().triggerEvent('onloadstart');
9872
+ }
9873
+ }
9874
+ _isImageStoreLoading() {
9875
+ return this._imageStore.getNumImagesLoading() !== 0;
9876
+ }
9877
+ _getPixelCoordFromGeoCoord(coordinates, b) {
9878
+ const x = this._width * (coordinates.x - b.left) / (b.right - b.left);
9879
+ const y = this._height * (coordinates.y - b.top) / (b.bottom - b.top);
9880
+ return {
9881
+ x,
9882
+ y
9883
+ };
9884
+ }
9885
+ /**
9886
+ * Made accessible for testing purposes
9887
+ * @returns
9888
+ */
9889
+ getSharedImagesList() {
9890
+ return this.sharedImagesList;
9891
+ }
9892
+ /**
9893
+ * Function to find the an alternative available image for an image url that is not yet loaded
9894
+ * @param imageUrl The image source / url to find an alternative for
9895
+ * @param imageStore The imagestore where the other images are located
9896
+ * @param bbox The boundingbox to search this image for
9897
+ * @param filterUnsuitableAlternatives When true, images which have an overlap or ratio less then given threshold will be discarded as alternative
9898
+ * @returns A canvasLayer, containing the new image source with its geo properties
9899
+ */
9900
+ getAlternativeImage(imageUrl, bbox, filterUnsuitableAlternatives = false) {
9901
+ const sigImageUrl = makeQueryStringWithoutGeoInfo(imageUrl);
9902
+ if (!this.sharedImagesList[sigImageUrl]) {
9903
+ this.sharedImagesList[sigImageUrl] = [];
9904
+ }
9905
+ const imagesForUrl = this.sharedImagesList[sigImageUrl];
9906
+ getSortedListOfImages(this.sharedImagesList[sigImageUrl], bbox);
9907
+ const foundAltImages = imagesForUrl.filter(altImage => {
9908
+ // Images which are more then MIN_FRACTION_OF_OVERLAP smaller then previous will be discarded
9909
+ if (filterUnsuitableAlternatives && (altImage === null || altImage === void 0 ? void 0 : altImage.areaFraction) < MIN_FRACTION_OF_OVERLAP) {
9910
+ return false;
9911
+ }
9912
+ // Only use images which are already loaded
9913
+ const cachedImage = this._imageStore.getImageForSrc(altImage.imageSource);
9914
+ return cachedImage === null || cachedImage === void 0 ? void 0 : cachedImage.isLoadedWithoutErrors();
9915
+ });
9916
+ return foundAltImages;
9917
+ }
9918
+ /**
9919
+ * Removes the image from the alternative imageslist (in case imagestore cache gets cleaned), this used when the imagestore triggers a delete event for an image
9920
+ * @param imageUrl The url for the image to remove
9921
+ */
9922
+ removeAlternativeImage(imageUrl) {
9923
+ const sigImageUrl = makeQueryStringWithoutGeoInfo(imageUrl);
9924
+ const imagesForUrl = this.sharedImagesList[sigImageUrl];
9925
+ if (!imagesForUrl || imagesForUrl.length === 0) {
9926
+ return;
9927
+ }
9928
+ const indexToRemove = imagesForUrl.findIndex(image => image.imageSource === imageUrl);
9929
+ if (indexToRemove >= 0) {
9930
+ imagesForUrl.splice(indexToRemove, 1);
9931
+ }
9932
+ if (imagesForUrl.length === 0) {
9933
+ delete this.sharedImagesList[sigImageUrl];
9934
+ }
9935
+ }
9936
+ /**
9937
+ * Add an image to the sharedimages list
9938
+ * @param newLayer A canvaslayer object to add.
9939
+ */
9940
+ addAlternativeImage(newLayer) {
9941
+ var _a;
9942
+ var _b;
9943
+ /* Get a signature for images which belong to each other */
9944
+ const sigImageUrl = makeQueryStringWithoutGeoInfo(newLayer.imageSource);
9945
+ /* Make an entry for these images in the sharedImagesList */
9946
+ (_a = (_b = this.sharedImagesList)[sigImageUrl]) !== null && _a !== void 0 ? _a : _b[sigImageUrl] = [];
9947
+ /* Get the images for this signature */
9948
+ const imagesForUrl = this.sharedImagesList[sigImageUrl];
9949
+ const indexForExisting = imagesForUrl.findIndex(image => image.imageSource === newLayer.imageSource);
9950
+ if (indexForExisting === -1) {
9951
+ imagesForUrl.push(newLayer);
9952
+ } else {
9953
+ imagesForUrl[indexForExisting] = newLayer;
9954
+ }
9955
+ }
9956
+ /**
9957
+ * Used to tell the canvas that the map is resized,
9958
+ * @param w
9959
+ * @param h
9960
+ * @returns
9961
+ */
9941
9962
  resize(w, h) {
9942
9963
  const width = parseInt(w, 10);
9943
9964
  const height = parseInt(h, 10);
@@ -9951,6 +9972,12 @@ class WMCanvasBuffer {
9951
9972
  this._ctx.canvas.height = height;
9952
9973
  this._ctx.canvas.width = width;
9953
9974
  }
9975
+ /**
9976
+ * Reset when a new set of layers have been added
9977
+ */
9978
+ initCanvasLayers() {
9979
+ this._canvasLayers.length = 0;
9980
+ }
9954
9981
  /**
9955
9982
  * Set's a layer inside the canvasbuffer with given index and imagesource.
9956
9983
  * The image is directly loaded, but if loading is not complete when drawing, an alternative image is search in the alternative images list
@@ -9961,7 +9988,7 @@ class WMCanvasBuffer {
9961
9988
  * @param bbox The boundingbox for this layer
9962
9989
  * @returns Void
9963
9990
  */
9964
- setSrc(layerIndex, imageSource, linkedInfo, opacity, bbox) {
9991
+ addLayerToCanvas(layerIndex, imageSource, linkedInfo, opacity, bbox) {
9965
9992
  var _a, _b;
9966
9993
  if (!isDefined(imageSource)) {
9967
9994
  debugLogger(DebugType.Warning);
@@ -9979,15 +10006,20 @@ class WMCanvasBuffer {
9979
10006
  right: bbox.right,
9980
10007
  top: bbox.top,
9981
10008
  bottom: bbox.bottom
9982
- }
10009
+ },
10010
+ width: this._width,
10011
+ height: this._height,
10012
+ areaFraction: 1,
10013
+ intersect: 1,
10014
+ areaFractionClosest: 1
9983
10015
  };
9984
10016
  /* Build same layers array as map layers array */
9985
- while (layerIndex >= this.layers.length) {
9986
- this.layers.push(newLayer);
10017
+ while (layerIndex >= this._canvasLayers.length) {
10018
+ this._canvasLayers.push(newLayer);
9987
10019
  }
9988
- this.layers[layerIndex] = newLayer;
10020
+ this._canvasLayers[layerIndex] = newLayer;
9989
10021
  /* Track this layer in the alternative images list */
9990
- addAlternativeImage(newLayer);
10022
+ this.addAlternativeImage(newLayer);
9991
10023
  /* Get the image with this imagesource from the imagestore and load it */
9992
10024
  const image = this._imageStore.getImage(imageSource, {
9993
10025
  headers
@@ -9995,40 +10027,43 @@ class WMCanvasBuffer {
9995
10027
  if (!image.isLoaded() && !image.isLoading()) {
9996
10028
  image.load();
9997
10029
  }
9998
- this.checkIfLoading();
10030
+ this._checkIfLoading();
9999
10031
  }
10000
- checkIfLoading() {
10001
- const isLoading = this.isImageStoreLoading();
10002
- if (!isLoading && this._isBufferLoading) {
10003
- this._isBufferLoading = false;
10004
- this._webMapJS.getListener().triggerEvent('onloadready');
10005
- } else if (isLoading && !this._isBufferLoading) {
10006
- this._isBufferLoading = true;
10007
- this._webMapJS.getListener().triggerEvent('onloadstart');
10032
+ display() {
10033
+ if (!this._webMapJS) {
10034
+ return;
10008
10035
  }
10036
+ // Check if the response from window.requestAnimationFrame is set. If this is the case, debounce the next display.
10037
+ if (this._animationFrameRequest !== ANIMATIONFRAMEREQUEST_DONE) {
10038
+ clearTimeout(this._timerHandle);
10039
+ this._timerHandle = setTimeout(() => {
10040
+ if (this._webMapJS) {
10041
+ this._display();
10042
+ }
10043
+ }, 100);
10044
+ return;
10045
+ }
10046
+ // Display the next frame based on window.requestAnimationFrame, e.g. when the screen is ready to display.
10047
+ this._animationFrameRequest = window.requestAnimationFrame(() => {
10048
+ if (this._webMapJS) {
10049
+ this._display();
10050
+ }
10051
+ });
10009
10052
  }
10010
- isImageStoreLoading() {
10011
- return this._imageStore.getNumImagesLoading() !== 0;
10012
- }
10013
- _getPixelCoordFromGeoCoord(coordinates, b) {
10014
- const x = this._width * (coordinates.x - b.left) / (b.right - b.left);
10015
- const y = this._height * (coordinates.y - b.top) / (b.bottom - b.top);
10016
- return {
10017
- x,
10018
- y
10019
- };
10020
- }
10021
- setBBOX(newbbox, loadedbbox) {
10022
- this._currentbbox = loadedbbox;
10053
+ setBBOX(newbbox) {
10023
10054
  this._currentnewbbox = newbbox;
10024
10055
  this.display();
10025
10056
  }
10057
+ /**
10058
+ * Used when the map is destroyed
10059
+ */
10026
10060
  destroy() {
10027
- clearTimeout(this.timerHandle);
10028
- cancelAnimationFrame(this.animationFrameRequest);
10061
+ this.sharedImagesList = null;
10062
+ clearTimeout(this._timerHandle);
10063
+ cancelAnimationFrame(this._animationFrameRequest);
10029
10064
  this._webMapJS = null;
10030
10065
  }
10031
- getBuffer() {
10066
+ getHTMLCanvasElement() {
10032
10067
  return this.canvas;
10033
10068
  }
10034
10069
  }
@@ -10303,7 +10338,7 @@ class WMJSAnimate {
10303
10338
  return;
10304
10339
  }
10305
10340
  /* Check if a similar image is available instead, then we can continue with the smoother animation */
10306
- const alternativeImage = getAlternativeImage(url, this._map.getMapImageStore, this._map.getDrawBBOX());
10341
+ const alternativeImage = this._map.getAlternativeImage(url, this._map.getDrawBBOX());
10307
10342
  if (alternativeImage) {
10308
10343
  numberOfImagesReadyForNextAnimationStep += 1;
10309
10344
  return;
@@ -10350,9 +10385,7 @@ _WMJSAnimate_instances = new WeakSet(), _WMJSAnimate_animate = function _WMJSAni
10350
10385
  };
10351
10386
 
10352
10387
  class WMTileRenderer {
10353
- render(currentBBOX, newBBOX, srs, width, height, ctx, bgMapImageStore,
10354
- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
10355
- tileOptions, layerName) {
10388
+ render(currentBBOX, newBBOX, srs, width, height, ctx, bgMapImageStore, tileOptions, layerName) {
10356
10389
  const renderedURLs = {};
10357
10390
  const imagesToRender = [];
10358
10391
  if (!layerName) {
@@ -10369,7 +10402,7 @@ class WMTileRenderer {
10369
10402
  if (layerName === 'naturalearth2') {
10370
10403
  layerName = 'NaturalEarth2';
10371
10404
  }
10372
- const tileLayer = tileOptions[layerName];
10405
+ const tileLayer = tileOptions.get(layerName);
10373
10406
  if (!tileLayer) {
10374
10407
  debugLogger(DebugType.Error);
10375
10408
  return undefined;
@@ -10377,19 +10410,14 @@ class WMTileRenderer {
10377
10410
  let tileSettings = tileLayer[srs];
10378
10411
  /* If current map projection is missing in the tilesets, try to find an alternative */
10379
10412
  if (!tileSettings) {
10380
- for (const tileOption in tileOptions) {
10381
- // eslint-disable-next-line no-prototype-builtins
10382
- if (tileOptions.hasOwnProperty(tileOption)) {
10383
- for (const epsgCode in tileOptions[tileOption]) {
10384
- // eslint-disable-next-line no-prototype-builtins
10385
- if (tileOptions[tileOption].hasOwnProperty(epsgCode)) {
10386
- if (epsgCode === srs) {
10387
- tileSettings = tileOptions[tileOption][epsgCode];
10388
- }
10389
- }
10390
- }
10413
+ tileOptions.forEach(tileServerDef => {
10414
+ if (srs in tileServerDef) {
10415
+ tileSettings = tileServerDef[srs];
10391
10416
  }
10392
- }
10417
+ });
10418
+ }
10419
+ if (!tileSettings) {
10420
+ return undefined;
10393
10421
  }
10394
10422
  const pi = Math.PI;
10395
10423
  /* Default settings for OSM Mercator */
@@ -10417,13 +10445,10 @@ class WMTileRenderer {
10417
10445
  const tileSetHeight = originShiftY - originShiftY2;
10418
10446
  const levelF = Math.log(Math.abs(originShiftX2 - originShiftX) / (bboxw / screenWidth * tileSize)) / Math.log(2);
10419
10447
  const level = Math.trunc(levelF + 0.5);
10420
- const getAttribution = textileLayer => {
10421
- if (!textileLayer || !srs || !tileLayer[srs] || !tileLayer[srs].copyRight) {
10422
- return null;
10423
- }
10424
- return tileLayer[srs].copyRight;
10425
- };
10426
10448
  const drawBGTiles = level => {
10449
+ if (!tileSettings) {
10450
+ return;
10451
+ }
10427
10452
  const {
10428
10453
  home
10429
10454
  } = tileSettings;
@@ -10431,7 +10456,7 @@ class WMTileRenderer {
10431
10456
  tileServerType
10432
10457
  } = tileSettings; // 'osm' or 'argisonline'
10433
10458
  const tileServerFormat = tileSettings.tileServerFormat || 'png';
10434
- const tmsEnabled = tileSettings.tms || false; // 'osm' or 'argisonline'
10459
+ const tmsEnabled = tileSettings.tms || false;
10435
10460
  if (level < tileSettings.minLevel) {
10436
10461
  level = tileSettings.minLevel;
10437
10462
  }
@@ -10594,10 +10619,7 @@ class WMTileRenderer {
10594
10619
  }
10595
10620
  }
10596
10621
  }
10597
- const attributionText = getAttribution(tileLayer);
10598
- return {
10599
- attributionText
10600
- };
10622
+ return tileSettings;
10601
10623
  }
10602
10624
  }
10603
10625
 
@@ -10679,9 +10701,9 @@ const drawLegend = (canvasContext, width, height, layers) => {
10679
10701
  var call = functionCall;
10680
10702
  var uncurryThis = functionUncurryThis;
10681
10703
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
10682
- var anObject = anObject$l;
10704
+ var anObject = anObject$k;
10683
10705
  var isNullOrUndefined = isNullOrUndefined$7;
10684
- var requireObjectCoercible = requireObjectCoercible$a;
10706
+ var requireObjectCoercible = requireObjectCoercible$b;
10685
10707
  var speciesConstructor = speciesConstructor$3;
10686
10708
  var advanceStringIndex = advanceStringIndex$2;
10687
10709
  var toLength = toLength$8;
@@ -12293,6 +12315,7 @@ class WMJSMap {
12293
12315
  constructor(_element) {
12294
12316
  this.prefetchLayerImagesForTimeMemo = new WMMemo();
12295
12317
  this.internalMapId = '';
12318
+ this.tileRenderSettings = new Map();
12296
12319
  // eslint-disable-next-line class-methods-use-this
12297
12320
  this.onContextMenu = () => {
12298
12321
  return false;
@@ -12326,7 +12349,7 @@ class WMJSMap {
12326
12349
  this.bbox = new WMBBOX(); // Boundingbox that will be used for map loading
12327
12350
  this.updateBBOX = new WMBBOX(); // Boundingbox to move map without loading anything
12328
12351
  this.drawnBBOX = new WMBBOX(); // Boundingbox that is used when map is drawn
12329
- this.divBuffer = undefined;
12352
+ this.canvasLayerBuffer = undefined;
12330
12353
  this.isDestroyed = false;
12331
12354
  this.mapHeader = {
12332
12355
  height: 0,
@@ -12418,6 +12441,7 @@ class WMJSMap {
12418
12441
  this.shouldPrefetch = true;
12419
12442
  /* Binds */
12420
12443
  this.setWMTileRendererTileSettings = this.setWMTileRendererTileSettings.bind(this);
12444
+ this.addWMTileRendererTileSetting = this.addWMTileRendererTileSetting.bind(this);
12421
12445
  this.makeComponentId = this.makeComponentId.bind(this);
12422
12446
  this.setMessage = this.setMessage.bind(this);
12423
12447
  this.setTimeOffset = this.setTimeOffset.bind(this);
@@ -12518,6 +12542,7 @@ class WMJSMap {
12518
12542
  this.getGeoCoordFromPixelCoord = this.getGeoCoordFromPixelCoord.bind(this);
12519
12543
  this.getProj4 = this.getProj4.bind(this);
12520
12544
  this.getPixelCoordFromLatLong = this.getPixelCoordFromLatLong.bind(this);
12545
+ this.getGeoCoordFromLatLong = this.getGeoCoordFromLatLong.bind(this);
12521
12546
  this.calculateBoundingBoxAndZoom = this.calculateBoundingBoxAndZoom.bind(this);
12522
12547
  this.getLatLongFromPixelCoord = this.getLatLongFromPixelCoord.bind(this);
12523
12548
  this.getPixelCoordFromGeoCoord = this.getPixelCoordFromGeoCoord.bind(this);
@@ -12543,6 +12568,7 @@ class WMJSMap {
12543
12568
  this.configureMapDimensions = this.configureMapDimensions.bind(this);
12544
12569
  this.getImageStore = this.getImageStore.bind(this);
12545
12570
  this.clearImageCache = this.clearImageCache.bind(this);
12571
+ this.getAlternativeImage = this.getAlternativeImage.bind(this);
12546
12572
  this.mapPin = new MapPin(this);
12547
12573
  this.loadingDiv = document.createElement('div');
12548
12574
  this.loadingDiv.className = 'WMJSDivBuffer-loading';
@@ -12553,8 +12579,22 @@ class WMJSMap {
12553
12579
  });
12554
12580
  this.init();
12555
12581
  }
12556
- setWMTileRendererTileSettings(_WMTileRendererTileSettings) {
12557
- this.tileRenderSettings = _WMTileRendererTileSettings;
12582
+ setWMTileRendererTileSettings(tileRenderSettings) {
12583
+ Object.entries(tileRenderSettings).forEach(tileRenderSetting => {
12584
+ if (tileRenderSetting.length === 2) {
12585
+ const key = tileRenderSetting[0];
12586
+ const value = tileRenderSetting[1];
12587
+ this.tileRenderSettings.set(key, value);
12588
+ }
12589
+ });
12590
+ }
12591
+ addWMTileRendererTileSetting(tileRenderSetting) {
12592
+ const tileRenderSettingEntry = Object.entries(tileRenderSetting)[0];
12593
+ if (tileRenderSettingEntry.length === 2) {
12594
+ const key = tileRenderSettingEntry[0];
12595
+ const value = tileRenderSettingEntry[1];
12596
+ this.tileRenderSettings.set(key, value);
12597
+ }
12558
12598
  }
12559
12599
  /**
12560
12600
  * Function which make a component ID which is unique over several WebMapJS instances
@@ -12588,9 +12628,8 @@ class WMJSMap {
12588
12628
  for (const baseLayer of this.baseLayers) {
12589
12629
  if (baseLayer.enabled && baseLayer.keepOnTop === false && baseLayer.type && baseLayer.type === 'twms' && this.tileRenderSettings) {
12590
12630
  ctx.globalAlpha = baseLayer.opacity;
12591
- const {
12592
- attributionText
12593
- } = this.wmTileRenderer.render(this.bbox, this.updateBBOX, this.srs, this.width, this.height, ctx, bgMapImageStore, this.tileRenderSettings, baseLayer.name);
12631
+ const tileSettings = this.wmTileRenderer.render(this.bbox, this.updateBBOX, this.srs, this.width, this.height, ctx, bgMapImageStore, this.tileRenderSettings, baseLayer.name);
12632
+ const attributionText = tileSettings.copyRight || '';
12594
12633
  ctx.globalAlpha = 1.0;
12595
12634
  const adagucAttribution = `ADAGUC webmapjs ${this.WebMapJSMapVersion}`;
12596
12635
  const txt = attributionText ? `${adagucAttribution} | ${attributionText}` : adagucAttribution;
@@ -12984,14 +13023,14 @@ class WMJSMap {
12984
13023
  this.bbox.top = 90;
12985
13024
  this.srs = 'EPSG:4326';
12986
13025
  // IMAGE buffer
12987
- this.divBuffer = new WMCanvasBuffer(this, this.getWidth(), this.getHeight(), {
13026
+ this.canvasLayerBuffer = new WMCanvasBuffer(this, this.getWidth(), this.getHeight(), {
12988
13027
  beforecanvasstartdraw: this._adagucBeforeDraw,
12989
13028
  beforecanvasdisplay: this._adagucBeforeCanvasDisplay,
12990
13029
  canvasonerror: e => {
12991
13030
  this.canvasErrors = e;
12992
13031
  }
12993
13032
  });
12994
- this.baseDiv.appendChild(this.divBuffer.getBuffer());
13033
+ this.baseDiv.appendChild(this.canvasLayerBuffer.getHTMLCanvasElement());
12995
13034
  getLegendImageStore().addImageEventCallback((image, id, imageEventType) => {
12996
13035
  if (imageEventType === WMImageEventType.Loaded) {
12997
13036
  this.draw('legendImageStore loaded');
@@ -13370,7 +13409,7 @@ class WMJSMap {
13370
13409
  this.mainElement.style.height = `${this.height}px`;
13371
13410
  this.setBBOX(this.resizeBBOX);
13372
13411
  this.showBoundingBox();
13373
- this.divBuffer.resize(this.getWidth().toString(), this.getHeight().toString());
13412
+ this.canvasLayerBuffer.resize(this.getWidth().toString(), this.getHeight().toString());
13374
13413
  this.repositionLegendGraphic();
13375
13414
  /* Fire the onresize event, to notify listeners that something happened. */
13376
13415
  this.callBack.triggerEvent('onresize', [this.width, this.height]);
@@ -13461,10 +13500,10 @@ class WMJSMap {
13461
13500
  this.showScaleBarInMap = display;
13462
13501
  }
13463
13502
  display() {
13464
- if (!this.divBuffer) {
13503
+ if (!this.canvasLayerBuffer) {
13465
13504
  return;
13466
13505
  }
13467
- this.divBuffer.display();
13506
+ this.canvasLayerBuffer.display();
13468
13507
  this.drawnBBOX.setBBOX(this.bbox);
13469
13508
  }
13470
13509
  _animFrameRedraw() {
@@ -13558,9 +13597,12 @@ class WMJSMap {
13558
13597
  });
13559
13598
  return requests;
13560
13599
  }
13600
+ getAlternativeImage(imageUrl, bbox, filterBad = false) {
13601
+ return this.canvasLayerBuffer.getAlternativeImage(imageUrl, bbox, filterBad);
13602
+ }
13561
13603
  addLayersToCanvasAndDisplayThem() {
13562
13604
  debugLogger(DebugType.Log);
13563
- this.divBuffer.reset();
13605
+ this.canvasLayerBuffer.initCanvasLayers();
13564
13606
  let currentLayerIndex = 0;
13565
13607
  this.numBaseLayers = 0;
13566
13608
  this.baseLayers && this.baseLayers.forEach(baseLayer => {
@@ -13569,7 +13611,7 @@ class WMJSMap {
13569
13611
  this.numBaseLayers += 1;
13570
13612
  const requestURL = (_a = buildWMSGetMapRequest(this, baseLayer)) === null || _a === void 0 ? void 0 : _a.url;
13571
13613
  if (requestURL) {
13572
- this.divBuffer.setSrc(currentLayerIndex, requestURL, {
13614
+ this.canvasLayerBuffer.addLayerToCanvas(currentLayerIndex, requestURL, {
13573
13615
  layer: baseLayer
13574
13616
  }, baseLayer.opacity, this.getDrawBBOX());
13575
13617
  currentLayerIndex += 1;
@@ -13586,7 +13628,7 @@ class WMJSMap {
13586
13628
  const requestURL = (_a = buildWMSGetMapRequest(this, layer)) === null || _a === void 0 ? void 0 : _a.url;
13587
13629
  if (requestURL) {
13588
13630
  layer.setCurrentRequestedGetMapURL(requestURL);
13589
- this.divBuffer.setSrc(currentLayerIndex, requestURL, {
13631
+ this.canvasLayerBuffer.addLayerToCanvas(currentLayerIndex, requestURL, {
13590
13632
  layer
13591
13633
  }, layer.opacity, this.getDrawBBOX());
13592
13634
  currentLayerIndex += 1;
@@ -13598,18 +13640,18 @@ class WMJSMap {
13598
13640
  if (baseLayer.enabled && baseLayer.keepOnTop === true) {
13599
13641
  const requestURL = (_a = buildWMSGetMapRequest(this, baseLayer)) === null || _a === void 0 ? void 0 : _a.url;
13600
13642
  if (requestURL) {
13601
- this.divBuffer.setSrc(currentLayerIndex, requestURL, {
13643
+ this.canvasLayerBuffer.addLayerToCanvas(currentLayerIndex, requestURL, {
13602
13644
  layer: baseLayer
13603
13645
  }, baseLayer.opacity, this.getDrawBBOX());
13604
13646
  currentLayerIndex += 1;
13605
13647
  }
13606
13648
  }
13607
13649
  });
13608
- this.divBuffer.display();
13650
+ this.canvasLayerBuffer.display();
13609
13651
  this.callBack.triggerEvent('onmapready', this);
13610
13652
  }
13611
13653
  _updateBoundingBox(_mapbbox, triggerEvent = true) {
13612
- if (!this.divBuffer) {
13654
+ if (!this.canvasLayerBuffer) {
13613
13655
  return;
13614
13656
  }
13615
13657
  let mapbbox = this.bbox;
@@ -13617,7 +13659,7 @@ class WMJSMap {
13617
13659
  mapbbox = _mapbbox;
13618
13660
  }
13619
13661
  this.updateBBOX.setBBOX(mapbbox);
13620
- this.divBuffer.setBBOX(this.updateBBOX, this.drawnBBOX);
13662
+ this.canvasLayerBuffer.setBBOX(this.updateBBOX);
13621
13663
  this.drawnBBOX.setBBOX(mapbbox);
13622
13664
  this.showBoundingBox(this.divBoundingBox.bbox, this.updateBBOX);
13623
13665
  this.mapPin.repositionMapPin(_mapbbox);
@@ -13626,7 +13668,7 @@ class WMJSMap {
13626
13668
  }
13627
13669
  }
13628
13670
  redrawBuffer() {
13629
- this.divBuffer.display();
13671
+ this.canvasLayerBuffer.display();
13630
13672
  debugLogger(DebugType.Log);
13631
13673
  this.drawnBBOX.setBBOX(this.bbox);
13632
13674
  this.draw();
@@ -13670,6 +13712,16 @@ class WMJSMap {
13670
13712
  return this.baseDiv;
13671
13713
  }
13672
13714
  mouseWheelEvent(event) {
13715
+ if (this.holdShiftToScroll && !event.shiftKey) {
13716
+ this.setMessageValue = 'Hold SHIFT to zoom';
13717
+ this.draw();
13718
+ // Clear text after 500ms
13719
+ setTimeout(() => {
13720
+ this.setMessageValue = '';
13721
+ this.draw();
13722
+ }, 500);
13723
+ return;
13724
+ }
13673
13725
  preventdefaultEvent(event);
13674
13726
  if (this.mouseWheelBusy === 1) {
13675
13727
  return;
@@ -13738,8 +13790,8 @@ class WMJSMap {
13738
13790
  this.getMapImageStore.removeEventCallback(this.internalMapId);
13739
13791
  bgMapImageStore.removeEventCallback(this.internalMapId);
13740
13792
  getLegendImageStore().removeEventCallback(this.internalMapId);
13741
- this.divBuffer.destroy();
13742
- this.divBuffer = null;
13793
+ this.canvasLayerBuffer.destroy();
13794
+ this.canvasLayerBuffer = null;
13743
13795
  this.internalMapId = '';
13744
13796
  this.mainElement.removeChild(this.baseDiv);
13745
13797
  this.baseDiv.innerHTML = '';
@@ -14551,7 +14603,12 @@ class WMJSMap {
14551
14603
  if (!this.srs || this.srs === 'GFI:TIME_ELEVATION') {
14552
14604
  return coordinates;
14553
14605
  }
14554
- let result;
14606
+ return this.getPixelCoordFromGeoCoord(this.getGeoCoordFromLatLong(coordinates));
14607
+ }
14608
+ getGeoCoordFromLatLong(coordinates) {
14609
+ if (!this.srs || this.srs === 'GFI:TIME_ELEVATION') {
14610
+ return coordinates;
14611
+ }
14555
14612
  try {
14556
14613
  const p = {
14557
14614
  x: undefined,
@@ -14563,33 +14620,34 @@ class WMJSMap {
14563
14620
  this.proj4.projection = this.srs;
14564
14621
  this.proj4.srs = this.srs;
14565
14622
  }
14566
- result = proj4(this.longlat, this.proj4.projection, [p.x, p.y]);
14623
+ const result = proj4(this.longlat, this.proj4.projection, [p.x, p.y]);
14624
+ return {
14625
+ x: result[0],
14626
+ y: result[1]
14627
+ };
14567
14628
  } catch (e) {
14568
14629
  debugLogger(DebugType.Error);
14569
14630
  return undefined;
14570
14631
  }
14571
- return this.getPixelCoordFromGeoCoord({
14572
- x: result[0],
14573
- y: result[1]
14574
- });
14575
14632
  }
14576
14633
  calculateBoundingBoxAndZoom(lat, lng) {
14577
- let lengthToBBOX = 500000;
14578
- if (this.srs === 'EPSG:4326' || this.srs === 'EPSG:50001') {
14579
- lengthToBBOX = 5;
14580
- }
14581
- const latlng = this.getPixelCoordFromLatLong({
14634
+ const pixCoord = this.getPixelCoordFromLatLong({
14582
14635
  x: lng,
14583
14636
  y: lat
14584
14637
  });
14585
- const geolatlng = this.getGeoCoordFromPixelCoord(latlng);
14586
- const searchZoomBBOX = new WMBBOX();
14587
- /* Making the boundingbox. */
14588
- searchZoomBBOX.left = geolatlng.x - lengthToBBOX;
14589
- searchZoomBBOX.bottom = geolatlng.y - lengthToBBOX;
14590
- searchZoomBBOX.right = geolatlng.x + lengthToBBOX;
14591
- searchZoomBBOX.top = geolatlng.y + lengthToBBOX;
14592
- this.zoomTo(searchZoomBBOX);
14638
+ const geolatlng = this.getGeoCoordFromPixelCoord(pixCoord);
14639
+ const isOutsideBoundingBox = geolatlng.x < this.getBBOX().left || geolatlng.x > this.getBBOX().right || geolatlng.y > this.getBBOX().top || geolatlng.y < this.getBBOX().bottom;
14640
+ if (isOutsideBoundingBox) {
14641
+ const expandScaler = 0.5;
14642
+ const horizontalExpand = expandScaler * (this.bbox.right - this.bbox.left);
14643
+ const verticalExpand = expandScaler * (this.bbox.top - this.bbox.bottom);
14644
+ const searchZoomBBOX = new WMBBOX();
14645
+ searchZoomBBOX.left = geolatlng.x - horizontalExpand;
14646
+ searchZoomBBOX.bottom = geolatlng.y - verticalExpand;
14647
+ searchZoomBBOX.right = geolatlng.x + horizontalExpand;
14648
+ searchZoomBBOX.top = geolatlng.y + verticalExpand;
14649
+ this.zoomTo(searchZoomBBOX);
14650
+ }
14593
14651
  this.mapPin.positionMapPinByLatLon({
14594
14652
  x: lng,
14595
14653
  y: lat
@@ -14787,8 +14845,12 @@ class WMJSMap {
14787
14845
  }
14788
14846
  return true;
14789
14847
  }
14790
- zoomOut() {
14791
- const a = (this.resizeBBOX.right - this.resizeBBOX.left) / 6;
14848
+ /**
14849
+ *
14850
+ * @param ratio 1.0, meanse zoomout using full boundingbox width, 0.1 means zoom out 10% of full boundingbox width
14851
+ */
14852
+ zoomOut(ratio = 1 / 6) {
14853
+ const a = (this.resizeBBOX.right - this.resizeBBOX.left) * ratio;
14792
14854
  this.zoomTo(new WMBBOX(this.resizeBBOX.left - a, this.resizeBBOX.bottom - a, this.resizeBBOX.right + a, this.resizeBBOX.top + a));
14793
14855
  this.draw('zoomOut');
14794
14856
  }
@@ -18035,4 +18097,4 @@ var getCapabilities = /*#__PURE__*/Object.freeze({
18035
18097
  getLayersFlattenedFromService: getLayersFlattenedFromService
18036
18098
  });
18037
18099
 
18038
- export { DateInterval, DebugType, EPSGCode, EVENT_GETCAPABILITIES_READY, EVENT_GETCAPABILITIES_START, I18n, LayerType, ParseISOTimeRangeDuration, URLDecode, URLEncode, WMBBOX, WMDateOutSideRange, WMDateTooEarlyString, WMDateTooLateString, WMEmptyLayerName, WMEmptyLayerTitle, WMGetServiceFromStore, WMImage, WMImageEventType, WMJSDimension, WMJSMap, WMJSService, WMJScheckURL, WMLayer, WMListener, WMProj4Defs, WMSVersion, bgImageStoreLength, buildWMSGetMapRequest, clearImageCacheForAllMaps, debugLogger, defaultReduxLayerRadarKNMI, epsgDescriptionLookup, generateLayerId, generateMapId, generateTimesliderId, getAlternativeImage, getBBOXandProjString, getCapabilities, getLegendGraphicURLForLayer, getSpeedDelay, getUriWithParam, getWMJSDimensionForLayerAndDimension, getWMJSMapById, getWMJSMapIds, getWMJSTimeDimensionForLayerId, getWMLayerById, handleDateUtilsISOString, isDefined, isProjectionSupported, legendImageStore, legendImageStoreLength, mapConstants, mapImageStoreLength, mockGetCapabilities, multiDimensionLayer, parseISO8601DateToDate, parseISO8601IntervalToDateInterval, registerWMJSMap, registerWMLayer, roundWithTimeStep, speedFactors, tilesettings, toArray, unRegisterAllWMJSLayersAndMaps, unRegisterWMJSLayer, unRegisterWMJSMap, testSettings as webmapTestSettings, utils as webmapUtils, wmServiceListener };
18100
+ export { DateInterval, DebugType, EPSGCode, EVENT_GETCAPABILITIES_READY, EVENT_GETCAPABILITIES_START, I18n, LayerType, ParseISOTimeRangeDuration, URLDecode, URLEncode, WMBBOX, WMDateOutSideRange, WMDateTooEarlyString, WMDateTooLateString, WMEmptyLayerName, WMEmptyLayerTitle, WMGetServiceFromStore, WMImage, WMImageEventType, WMJSDimension, WMJSMap, WMJSService, WMJScheckURL, WMLayer, WMListener, WMProj4Defs, WMSVersion, bgImageStoreLength, buildWMSGetMapRequest, clearImageCacheForAllMaps, debugLogger, defaultReduxLayerRadarKNMI, epsgDescriptionLookup, generateLayerId, generateMapId, generateTimesliderId, getBBOXandProjString, getCapabilities, getLegendGraphicURLForLayer, getSpeedDelay, getUriWithParam, getWMJSDimensionForLayerAndDimension, getWMJSMapById, getWMJSMapIds, getWMJSTimeDimensionForLayerId, getWMLayerById, handleDateUtilsISOString, isDefined, isProjectionSupported, legendImageStore, legendImageStoreLength, mapConstants, mapImageStoreLength, mockGetCapabilities, multiDimensionLayer, parseISO8601DateToDate, parseISO8601IntervalToDateInterval, registerWMJSMap, registerWMLayer, roundWithTimeStep, speedFactors, tilesettings, toArray, unRegisterAllWMJSLayersAndMaps, unRegisterWMJSLayer, unRegisterWMJSMap, testSettings as webmapTestSettings, utils as webmapUtils, wmServiceListener };