@opengeoweb/sentry 19.5.1-nightly-20260831

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.
@@ -0,0 +1,3039 @@
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import { styled } from '@mui/system';
3
+ import { getReplay, addIntegration } from '@sentry/react';
4
+ import React from 'react';
5
+ import { safelyInitI18nForTestsAndStories, ErrorBoundary, CustomTooltip, CustomIconButton, ToolContainerDraggable } from '@opengeoweb/shared';
6
+ import i18n from 'i18next';
7
+ export { default as i18n } from 'i18next';
8
+ import { useTranslation } from 'react-i18next';
9
+ import { MenuItem, Grid, Backdrop, Typography, Switch } from '@mui/material';
10
+
11
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
12
+
13
+ var fails$c = function (exec) {
14
+ try {
15
+ return !!exec();
16
+ } catch (error) {
17
+ return true;
18
+ }
19
+ };
20
+
21
+ var fails$b = fails$c;
22
+
23
+ var functionBindNative = !fails$b(function () {
24
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
25
+ var test = function () { /* empty */ }.bind();
26
+ // eslint-disable-next-line no-prototype-builtins -- safe
27
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
28
+ });
29
+
30
+ var NATIVE_BIND$3 = functionBindNative;
31
+
32
+ var FunctionPrototype$2 = Function.prototype;
33
+ var call$c = FunctionPrototype$2.call;
34
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
35
+ var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$c, call$c);
36
+
37
+ var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
38
+ return function () {
39
+ return call$c.apply(fn, arguments);
40
+ };
41
+ };
42
+
43
+ var uncurryThis$d = functionUncurryThis;
44
+
45
+ var toString$1 = uncurryThis$d({}.toString);
46
+ var stringSlice$1 = uncurryThis$d(''.slice);
47
+
48
+ var classofRaw$2 = function (it) {
49
+ return stringSlice$1(toString$1(it), 8, -1);
50
+ };
51
+
52
+ var uncurryThis$c = functionUncurryThis;
53
+ var fails$a = fails$c;
54
+ var classof$4 = classofRaw$2;
55
+
56
+ var $Object$4 = Object;
57
+ var split = uncurryThis$c(''.split);
58
+
59
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
60
+ var indexedObject = fails$a(function () {
61
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
62
+ // eslint-disable-next-line no-prototype-builtins -- safe
63
+ return !$Object$4('z').propertyIsEnumerable(0);
64
+ }) ? function (it) {
65
+ return classof$4(it) === 'String' ? split(it, '') : $Object$4(it);
66
+ } : $Object$4;
67
+
68
+ // we can't use just `it == null` since of `document.all` special case
69
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
70
+ var isNullOrUndefined$4 = function (it) {
71
+ return it === null || it === undefined;
72
+ };
73
+
74
+ var isNullOrUndefined$3 = isNullOrUndefined$4;
75
+
76
+ var $TypeError$c = TypeError;
77
+
78
+ // `RequireObjectCoercible` abstract operation
79
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
80
+ var requireObjectCoercible$3 = function (it) {
81
+ if (isNullOrUndefined$3(it)) throw new $TypeError$c("Can't call method on " + it);
82
+ return it;
83
+ };
84
+
85
+ // toObject with fallback for non-array-like ES3 strings
86
+ var IndexedObject = indexedObject;
87
+ var requireObjectCoercible$2 = requireObjectCoercible$3;
88
+
89
+ var toIndexedObject$5 = function (it) {
90
+ return IndexedObject(requireObjectCoercible$2(it));
91
+ };
92
+
93
+ var check = function (it) {
94
+ return it && it.Math === Math && it;
95
+ };
96
+
97
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
98
+ var globalThis_1 =
99
+ // eslint-disable-next-line es/no-global-this -- safe
100
+ check(typeof globalThis == 'object' && globalThis) ||
101
+ check(typeof window == 'object' && window) ||
102
+ // eslint-disable-next-line no-restricted-globals -- safe
103
+ check(typeof self == 'object' && self) ||
104
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
105
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
106
+ // eslint-disable-next-line no-new-func -- fallback
107
+ (function () { return this; })() || Function('return this')();
108
+
109
+ var sharedStore = {exports: {}};
110
+
111
+ var globalThis$k = globalThis_1;
112
+
113
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
114
+ var defineProperty$5 = Object.defineProperty;
115
+
116
+ var defineGlobalProperty$3 = function (key, value) {
117
+ try {
118
+ defineProperty$5(globalThis$k, key, { value: value, configurable: true, writable: true });
119
+ } catch (error) {
120
+ globalThis$k[key] = value;
121
+ } return value;
122
+ };
123
+
124
+ var globalThis$j = globalThis_1;
125
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
126
+
127
+ var SHARED = '__core-js_shared__';
128
+ var store$3 = sharedStore.exports = globalThis$j[SHARED] || defineGlobalProperty$2(SHARED, {});
129
+
130
+ (store$3.versions || (store$3.versions = [])).push({
131
+ version: '3.49.0',
132
+ mode: 'global',
133
+ copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
134
+ license: 'https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE',
135
+ source: 'https://github.com/zloirock/core-js'
136
+ });
137
+
138
+ var sharedStoreExports = sharedStore.exports;
139
+
140
+ var store$2 = sharedStoreExports;
141
+
142
+ var shared$3 = function (key, value) {
143
+ return store$2[key] || (store$2[key] = value || {});
144
+ };
145
+
146
+ var requireObjectCoercible$1 = requireObjectCoercible$3;
147
+
148
+ var $Object$3 = Object;
149
+
150
+ // `ToObject` abstract operation
151
+ // https://tc39.es/ecma262/#sec-toobject
152
+ var toObject$2 = function (argument) {
153
+ return $Object$3(requireObjectCoercible$1(argument));
154
+ };
155
+
156
+ var uncurryThis$b = functionUncurryThis;
157
+ var toObject$1 = toObject$2;
158
+
159
+ var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
160
+
161
+ // `HasOwnProperty` abstract operation
162
+ // https://tc39.es/ecma262/#sec-hasownproperty
163
+ // eslint-disable-next-line es/no-object-hasown -- safe
164
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
165
+ return hasOwnProperty(toObject$1(it), key);
166
+ };
167
+
168
+ var uncurryThis$a = functionUncurryThis;
169
+
170
+ var id = 0;
171
+ var postfix = Math.random();
172
+ var toString = uncurryThis$a(1.1.toString);
173
+
174
+ var uid$2 = function (key) {
175
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
176
+ };
177
+
178
+ var globalThis$i = globalThis_1;
179
+
180
+ var navigator = globalThis$i.navigator;
181
+ var userAgent$5 = navigator && navigator.userAgent;
182
+
183
+ var environmentUserAgent = userAgent$5 ? String(userAgent$5) : '';
184
+
185
+ var globalThis$h = globalThis_1;
186
+ var userAgent$4 = environmentUserAgent;
187
+
188
+ var process$3 = globalThis$h.process;
189
+ var Deno$1 = globalThis$h.Deno;
190
+ var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
191
+ var v8 = versions && versions.v8;
192
+ var match, version;
193
+
194
+ if (v8) {
195
+ match = v8.split('.');
196
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
197
+ // but their correct versions are not interesting for us
198
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
199
+ }
200
+
201
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
202
+ // so check `userAgent` even if `.v8` exists, but 0
203
+ if (!version && userAgent$4) {
204
+ match = userAgent$4.match(/Edge\/(\d+)/);
205
+ if (!match || match[1] >= 74) {
206
+ match = userAgent$4.match(/Chrome\/(\d+)/);
207
+ if (match) version = +match[1];
208
+ }
209
+ }
210
+
211
+ var environmentV8Version = version;
212
+
213
+ /* eslint-disable es/no-symbol -- required for testing */
214
+ var V8_VERSION$1 = environmentV8Version;
215
+ var fails$9 = fails$c;
216
+ var globalThis$g = globalThis_1;
217
+
218
+ var $String$4 = globalThis$g.String;
219
+
220
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
221
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$9(function () {
222
+ var symbol = Symbol('symbol detection');
223
+ // Chrome 38 Symbol has incorrect toString conversion
224
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
225
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
226
+ // of course, fail.
227
+ return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
228
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
229
+ !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
230
+ });
231
+
232
+ /* eslint-disable es/no-symbol -- required for testing */
233
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
234
+
235
+ var useSymbolAsUid = NATIVE_SYMBOL$1 &&
236
+ !Symbol.sham &&
237
+ typeof Symbol.iterator == 'symbol';
238
+
239
+ var globalThis$f = globalThis_1;
240
+ var shared$2 = shared$3;
241
+ var hasOwn$9 = hasOwnProperty_1;
242
+ var uid$1 = uid$2;
243
+ var NATIVE_SYMBOL = symbolConstructorDetection;
244
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
245
+
246
+ var Symbol$1 = globalThis$f.Symbol;
247
+ var WellKnownSymbolsStore = shared$2('wks');
248
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
249
+
250
+ var wellKnownSymbol$e = function (name) {
251
+ if (!hasOwn$9(WellKnownSymbolsStore, name)) {
252
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
253
+ ? Symbol$1[name]
254
+ : createWellKnownSymbol('Symbol.' + name);
255
+ } return WellKnownSymbolsStore[name];
256
+ };
257
+
258
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
259
+ var documentAll = typeof document == 'object' && document.all;
260
+
261
+ // `IsCallable` abstract operation
262
+ // https://tc39.es/ecma262/#sec-iscallable
263
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
264
+ var isCallable$j = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
265
+ return typeof argument == 'function' || argument === documentAll;
266
+ } : function (argument) {
267
+ return typeof argument == 'function';
268
+ };
269
+
270
+ var isCallable$i = isCallable$j;
271
+
272
+ var isObject$a = function (it) {
273
+ return typeof it == 'object' ? it !== null : isCallable$i(it);
274
+ };
275
+
276
+ var isObject$9 = isObject$a;
277
+
278
+ var $String$3 = String;
279
+ var $TypeError$b = TypeError;
280
+
281
+ // `Assert: Type(argument) is Object`
282
+ var anObject$9 = function (argument) {
283
+ if (isObject$9(argument)) return argument;
284
+ throw new $TypeError$b($String$3(argument) + ' is not an object');
285
+ };
286
+
287
+ var objectDefineProperties = {};
288
+
289
+ var fails$8 = fails$c;
290
+
291
+ // Detect IE8's incomplete defineProperty implementation
292
+ var descriptors = !fails$8(function () {
293
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
294
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
295
+ });
296
+
297
+ var DESCRIPTORS$a = descriptors;
298
+ var fails$7 = fails$c;
299
+
300
+ // V8 ~ Chrome 36-
301
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
302
+ var v8PrototypeDefineBug = DESCRIPTORS$a && fails$7(function () {
303
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
304
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
305
+ value: 42,
306
+ writable: false
307
+ }).prototype !== 42;
308
+ });
309
+
310
+ var objectDefineProperty = {};
311
+
312
+ var globalThis$e = globalThis_1;
313
+ var isObject$8 = isObject$a;
314
+
315
+ var document$3 = globalThis$e.document;
316
+ // typeof document.createElement is 'object' in old IE
317
+ var EXISTS$1 = isObject$8(document$3) && isObject$8(document$3.createElement);
318
+
319
+ var documentCreateElement$2 = function (it) {
320
+ return EXISTS$1 ? document$3.createElement(it) : {};
321
+ };
322
+
323
+ var DESCRIPTORS$9 = descriptors;
324
+ var fails$6 = fails$c;
325
+ var createElement$1 = documentCreateElement$2;
326
+
327
+ // Thanks to IE8 for its funny defineProperty
328
+ var ie8DomDefine = !DESCRIPTORS$9 && !fails$6(function () {
329
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
330
+ return Object.defineProperty(createElement$1('div'), 'a', {
331
+ get: function () { return 7; }
332
+ }).a !== 7;
333
+ });
334
+
335
+ var NATIVE_BIND$2 = functionBindNative;
336
+
337
+ var call$b = Function.prototype.call;
338
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
339
+ var functionCall = NATIVE_BIND$2 ? call$b.bind(call$b) : function () {
340
+ return call$b.apply(call$b, arguments);
341
+ };
342
+
343
+ var globalThis$d = globalThis_1;
344
+ var isCallable$h = isCallable$j;
345
+
346
+ var aFunction = function (argument) {
347
+ return isCallable$h(argument) ? argument : undefined;
348
+ };
349
+
350
+ var getBuiltIn$7 = function (namespace, method) {
351
+ return arguments.length < 2 ? aFunction(globalThis$d[namespace]) : globalThis$d[namespace] && globalThis$d[namespace][method];
352
+ };
353
+
354
+ var uncurryThis$9 = functionUncurryThis;
355
+
356
+ var objectIsPrototypeOf = uncurryThis$9({}.isPrototypeOf);
357
+
358
+ var getBuiltIn$6 = getBuiltIn$7;
359
+ var isCallable$g = isCallable$j;
360
+ var isPrototypeOf$2 = objectIsPrototypeOf;
361
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
362
+
363
+ var $Object$2 = Object;
364
+
365
+ var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
366
+ return typeof it == 'symbol';
367
+ } : function (it) {
368
+ var $Symbol = getBuiltIn$6('Symbol');
369
+ return isCallable$g($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
370
+ };
371
+
372
+ var $String$2 = String;
373
+
374
+ var tryToString$4 = function (argument) {
375
+ try {
376
+ return $String$2(argument);
377
+ } catch (error) {
378
+ return 'Object';
379
+ }
380
+ };
381
+
382
+ var isCallable$f = isCallable$j;
383
+ var tryToString$3 = tryToString$4;
384
+
385
+ var $TypeError$a = TypeError;
386
+
387
+ // `Assert: IsCallable(argument) is true`
388
+ var aCallable$8 = function (argument) {
389
+ if (isCallable$f(argument)) return argument;
390
+ throw new $TypeError$a(tryToString$3(argument) + ' is not a function');
391
+ };
392
+
393
+ var aCallable$7 = aCallable$8;
394
+ var isNullOrUndefined$2 = isNullOrUndefined$4;
395
+
396
+ // `GetMethod` abstract operation
397
+ // https://tc39.es/ecma262/#sec-getmethod
398
+ var getMethod$3 = function (V, P) {
399
+ var func = V[P];
400
+ return isNullOrUndefined$2(func) ? undefined : aCallable$7(func);
401
+ };
402
+
403
+ var call$a = functionCall;
404
+ var isCallable$e = isCallable$j;
405
+ var isObject$7 = isObject$a;
406
+
407
+ var $TypeError$9 = TypeError;
408
+
409
+ // `OrdinaryToPrimitive` abstract operation
410
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
411
+ var ordinaryToPrimitive$1 = function (input, pref) {
412
+ var fn, val;
413
+ if (pref === 'string' && isCallable$e(fn = input.toString) && !isObject$7(val = call$a(fn, input))) return val;
414
+ if (isCallable$e(fn = input.valueOf) && !isObject$7(val = call$a(fn, input))) return val;
415
+ if (pref !== 'string' && isCallable$e(fn = input.toString) && !isObject$7(val = call$a(fn, input))) return val;
416
+ throw new $TypeError$9("Can't convert object to primitive value");
417
+ };
418
+
419
+ var call$9 = functionCall;
420
+ var isObject$6 = isObject$a;
421
+ var isSymbol$1 = isSymbol$2;
422
+ var getMethod$2 = getMethod$3;
423
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
424
+ var wellKnownSymbol$d = wellKnownSymbol$e;
425
+
426
+ var $TypeError$8 = TypeError;
427
+ var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
428
+
429
+ // `ToPrimitive` abstract operation
430
+ // https://tc39.es/ecma262/#sec-toprimitive
431
+ var toPrimitive$1 = function (input, pref) {
432
+ if (!isObject$6(input) || isSymbol$1(input)) return input;
433
+ var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
434
+ var result;
435
+ if (exoticToPrim) {
436
+ if (pref === undefined) pref = 'default';
437
+ result = call$9(exoticToPrim, input, pref);
438
+ if (!isObject$6(result) || isSymbol$1(result)) return result;
439
+ throw new $TypeError$8("Can't convert object to primitive value");
440
+ }
441
+ if (pref === undefined) pref = 'number';
442
+ return ordinaryToPrimitive(input, pref);
443
+ };
444
+
445
+ var toPrimitive = toPrimitive$1;
446
+ var isSymbol = isSymbol$2;
447
+
448
+ // `ToPropertyKey` abstract operation
449
+ // https://tc39.es/ecma262/#sec-topropertykey
450
+ var toPropertyKey$2 = function (argument) {
451
+ var key = toPrimitive(argument, 'string');
452
+ return isSymbol(key) ? key : key + '';
453
+ };
454
+
455
+ var DESCRIPTORS$8 = descriptors;
456
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
457
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
458
+ var anObject$8 = anObject$9;
459
+ var toPropertyKey$1 = toPropertyKey$2;
460
+
461
+ var $TypeError$7 = TypeError;
462
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
463
+ var $defineProperty = Object.defineProperty;
464
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
465
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
466
+ var ENUMERABLE = 'enumerable';
467
+ var CONFIGURABLE$1 = 'configurable';
468
+ var WRITABLE = 'writable';
469
+
470
+ // `Object.defineProperty` method
471
+ // https://tc39.es/ecma262/#sec-object.defineproperty
472
+ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
473
+ anObject$8(O);
474
+ P = toPropertyKey$1(P);
475
+ anObject$8(Attributes);
476
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
477
+ var current = $getOwnPropertyDescriptor$1(O, P);
478
+ if (current && current[WRITABLE]) {
479
+ O[P] = Attributes.value;
480
+ Attributes = {
481
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
482
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
483
+ writable: false
484
+ };
485
+ }
486
+ } return $defineProperty(O, P, Attributes);
487
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
488
+ anObject$8(O);
489
+ P = toPropertyKey$1(P);
490
+ anObject$8(Attributes);
491
+ if (IE8_DOM_DEFINE$1) try {
492
+ return $defineProperty(O, P, Attributes);
493
+ } catch (error) { /* empty */ }
494
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$7('Accessors not supported');
495
+ if ('value' in Attributes) O[P] = Attributes.value;
496
+ return O;
497
+ };
498
+
499
+ var ceil = Math.ceil;
500
+ var floor = Math.floor;
501
+
502
+ // `Math.trunc` method
503
+ // https://tc39.es/ecma262/#sec-math.trunc
504
+ // eslint-disable-next-line es/no-math-trunc -- safe
505
+ var mathTrunc = Math.trunc || function trunc(x) {
506
+ var n = +x;
507
+ return (n > 0 ? floor : ceil)(n);
508
+ };
509
+
510
+ var trunc = mathTrunc;
511
+
512
+ // `ToIntegerOrInfinity` abstract operation
513
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
514
+ var toIntegerOrInfinity$2 = function (argument) {
515
+ var number = +argument;
516
+ // eslint-disable-next-line no-self-compare -- NaN check
517
+ return number !== number || number === 0 ? 0 : trunc(number);
518
+ };
519
+
520
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
521
+
522
+ var max = Math.max;
523
+ var min$1 = Math.min;
524
+
525
+ // Helper for a popular repeating case of the spec:
526
+ // Let integer be ? ToInteger(index).
527
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
528
+ var toAbsoluteIndex$1 = function (index, length) {
529
+ var integer = toIntegerOrInfinity$1(index);
530
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
531
+ };
532
+
533
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
534
+
535
+ var min = Math.min;
536
+
537
+ // `ToLength` abstract operation
538
+ // https://tc39.es/ecma262/#sec-tolength
539
+ var toLength$1 = function (argument) {
540
+ var len = toIntegerOrInfinity(argument);
541
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
542
+ };
543
+
544
+ var toLength = toLength$1;
545
+
546
+ // `LengthOfArrayLike` abstract operation
547
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
548
+ var lengthOfArrayLike$2 = function (obj) {
549
+ return toLength(obj.length);
550
+ };
551
+
552
+ var toIndexedObject$4 = toIndexedObject$5;
553
+ var toAbsoluteIndex = toAbsoluteIndex$1;
554
+ var lengthOfArrayLike$1 = lengthOfArrayLike$2;
555
+
556
+ // `Array.prototype.{ indexOf, includes }` methods implementation
557
+ var createMethod = function (IS_INCLUDES) {
558
+ return function ($this, el, fromIndex) {
559
+ var O = toIndexedObject$4($this);
560
+ var length = lengthOfArrayLike$1(O);
561
+ if (length === 0) return !IS_INCLUDES && -1;
562
+ var index = toAbsoluteIndex(fromIndex, length);
563
+ var value;
564
+ // Array#includes uses SameValueZero equality algorithm
565
+ // eslint-disable-next-line no-self-compare -- NaN check
566
+ if (IS_INCLUDES && el !== el) while (length > index) {
567
+ value = O[index++];
568
+ // eslint-disable-next-line no-self-compare -- NaN check
569
+ if (value !== value) return true;
570
+ // Array#indexOf ignores holes, Array#includes - not
571
+ } else for (;length > index; index++) {
572
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
573
+ } return !IS_INCLUDES && -1;
574
+ };
575
+ };
576
+
577
+ var arrayIncludes = {
578
+ // `Array.prototype.indexOf` method
579
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
580
+ indexOf: createMethod(false)
581
+ };
582
+
583
+ var hiddenKeys$4 = {};
584
+
585
+ var uncurryThis$8 = functionUncurryThis;
586
+ var hasOwn$8 = hasOwnProperty_1;
587
+ var toIndexedObject$3 = toIndexedObject$5;
588
+ var indexOf = arrayIncludes.indexOf;
589
+ var hiddenKeys$3 = hiddenKeys$4;
590
+
591
+ var push = uncurryThis$8([].push);
592
+
593
+ var objectKeysInternal = function (object, names) {
594
+ var O = toIndexedObject$3(object);
595
+ var i = 0;
596
+ var result = [];
597
+ var key;
598
+ for (key in O) !hasOwn$8(hiddenKeys$3, key) && hasOwn$8(O, key) && push(result, key);
599
+ // Don't enum bug & hidden keys
600
+ while (names.length > i) if (hasOwn$8(O, key = names[i++])) {
601
+ ~indexOf(result, key) || push(result, key);
602
+ }
603
+ return result;
604
+ };
605
+
606
+ // IE8- don't enum bug keys
607
+ var enumBugKeys$3 = [
608
+ 'constructor',
609
+ 'hasOwnProperty',
610
+ 'isPrototypeOf',
611
+ 'propertyIsEnumerable',
612
+ 'toLocaleString',
613
+ 'toString',
614
+ 'valueOf'
615
+ ];
616
+
617
+ var internalObjectKeys$1 = objectKeysInternal;
618
+ var enumBugKeys$2 = enumBugKeys$3;
619
+
620
+ // `Object.keys` method
621
+ // https://tc39.es/ecma262/#sec-object.keys
622
+ // eslint-disable-next-line es/no-object-keys -- safe
623
+ var objectKeys$1 = Object.keys || function keys(O) {
624
+ return internalObjectKeys$1(O, enumBugKeys$2);
625
+ };
626
+
627
+ var DESCRIPTORS$7 = descriptors;
628
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
629
+ var definePropertyModule$3 = objectDefineProperty;
630
+ var anObject$7 = anObject$9;
631
+ var toIndexedObject$2 = toIndexedObject$5;
632
+ var objectKeys = objectKeys$1;
633
+
634
+ // `Object.defineProperties` method
635
+ // https://tc39.es/ecma262/#sec-object.defineproperties
636
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
637
+ objectDefineProperties.f = DESCRIPTORS$7 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
638
+ anObject$7(O);
639
+ var props = toIndexedObject$2(Properties);
640
+ var keys = objectKeys(Properties);
641
+ var length = keys.length;
642
+ var index = 0;
643
+ var key;
644
+ while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);
645
+ return O;
646
+ };
647
+
648
+ var getBuiltIn$5 = getBuiltIn$7;
649
+
650
+ var html$2 = getBuiltIn$5('document', 'documentElement');
651
+
652
+ var shared$1 = shared$3;
653
+ var uid = uid$2;
654
+
655
+ var keys = shared$1('keys');
656
+
657
+ var sharedKey$3 = function (key) {
658
+ return keys[key] || (keys[key] = uid(key));
659
+ };
660
+
661
+ /* global ActiveXObject -- old IE, WSH */
662
+ var anObject$6 = anObject$9;
663
+ var definePropertiesModule = objectDefineProperties;
664
+ var enumBugKeys$1 = enumBugKeys$3;
665
+ var hiddenKeys$2 = hiddenKeys$4;
666
+ var html$1 = html$2;
667
+ var documentCreateElement$1 = documentCreateElement$2;
668
+ var sharedKey$2 = sharedKey$3;
669
+
670
+ var GT = '>';
671
+ var LT = '<';
672
+ var PROTOTYPE = 'prototype';
673
+ var SCRIPT = 'script';
674
+ var IE_PROTO$1 = sharedKey$2('IE_PROTO');
675
+
676
+ var EmptyConstructor = function () { /* empty */ };
677
+
678
+ var scriptTag = function (content) {
679
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
680
+ };
681
+
682
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
683
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
684
+ activeXDocument.write(scriptTag(''));
685
+ activeXDocument.close();
686
+ var temp = activeXDocument.parentWindow.Object;
687
+ // eslint-disable-next-line no-useless-assignment -- avoid memory leak
688
+ activeXDocument = null;
689
+ return temp;
690
+ };
691
+
692
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
693
+ var NullProtoObjectViaIFrame = function () {
694
+ // Thrash, waste and sodomy: IE GC bug
695
+ var iframe = documentCreateElement$1('iframe');
696
+ var JS = 'java' + SCRIPT + ':';
697
+ var iframeDocument;
698
+ iframe.style.display = 'none';
699
+ html$1.appendChild(iframe);
700
+ // https://github.com/zloirock/core-js/issues/475
701
+ iframe.src = String(JS);
702
+ iframeDocument = iframe.contentWindow.document;
703
+ iframeDocument.open();
704
+ iframeDocument.write(scriptTag('document.F=Object'));
705
+ iframeDocument.close();
706
+ return iframeDocument.F;
707
+ };
708
+
709
+ // Check for document.domain and active x support
710
+ // No need to use active x approach when document.domain is not set
711
+ // see https://github.com/es-shims/es5-shim/issues/150
712
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
713
+ // avoid IE GC bug
714
+ var activeXDocument;
715
+ var NullProtoObject = function () {
716
+ try {
717
+ activeXDocument = new ActiveXObject('htmlfile');
718
+ } catch (error) { /* ignore */ }
719
+ NullProtoObject = typeof document != 'undefined'
720
+ ? document.domain && activeXDocument
721
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
722
+ : NullProtoObjectViaIFrame()
723
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
724
+ var length = enumBugKeys$1.length;
725
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
726
+ return NullProtoObject();
727
+ };
728
+
729
+ hiddenKeys$2[IE_PROTO$1] = true;
730
+
731
+ // `Object.create` method
732
+ // https://tc39.es/ecma262/#sec-object.create
733
+ // eslint-disable-next-line es/no-object-create -- safe
734
+ var objectCreate = Object.create || function create(O, Properties) {
735
+ var result;
736
+ if (O !== null) {
737
+ EmptyConstructor[PROTOTYPE] = anObject$6(O);
738
+ result = new EmptyConstructor();
739
+ EmptyConstructor[PROTOTYPE] = null;
740
+ // add "__proto__" for Object.getPrototypeOf polyfill
741
+ result[IE_PROTO$1] = O;
742
+ } else result = NullProtoObject();
743
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
744
+ };
745
+
746
+ var wellKnownSymbol$c = wellKnownSymbol$e;
747
+ var create$1 = objectCreate;
748
+ var defineProperty$4 = objectDefineProperty.f;
749
+
750
+ var UNSCOPABLES = wellKnownSymbol$c('unscopables');
751
+ var ArrayPrototype$1 = Array.prototype;
752
+
753
+ // Array.prototype[@@unscopables]
754
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
755
+ if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
756
+ defineProperty$4(ArrayPrototype$1, UNSCOPABLES, {
757
+ configurable: true,
758
+ value: create$1(null)
759
+ });
760
+ }
761
+
762
+ // add a key to Array.prototype[@@unscopables]
763
+ var addToUnscopables$1 = function (key) {
764
+ ArrayPrototype$1[UNSCOPABLES][key] = true;
765
+ };
766
+
767
+ var iterators = {};
768
+
769
+ var globalThis$c = globalThis_1;
770
+ var isCallable$d = isCallable$j;
771
+
772
+ var WeakMap$1 = globalThis$c.WeakMap;
773
+
774
+ var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
775
+
776
+ var createPropertyDescriptor$3 = function (bitmap, value) {
777
+ return {
778
+ enumerable: !(bitmap & 1),
779
+ configurable: !(bitmap & 2),
780
+ writable: !(bitmap & 4),
781
+ value: value
782
+ };
783
+ };
784
+
785
+ var DESCRIPTORS$6 = descriptors;
786
+ var definePropertyModule$2 = objectDefineProperty;
787
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
788
+
789
+ var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value) {
790
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
791
+ } : function (object, key, value) {
792
+ object[key] = value;
793
+ return object;
794
+ };
795
+
796
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
797
+ var globalThis$b = globalThis_1;
798
+ var isObject$5 = isObject$a;
799
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
800
+ var hasOwn$7 = hasOwnProperty_1;
801
+ var shared = sharedStoreExports;
802
+ var sharedKey$1 = sharedKey$3;
803
+ var hiddenKeys$1 = hiddenKeys$4;
804
+
805
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
806
+ var TypeError$2 = globalThis$b.TypeError;
807
+ var WeakMap = globalThis$b.WeakMap;
808
+ var set$1, get, has;
809
+
810
+ var enforce = function (it) {
811
+ return has(it) ? get(it) : set$1(it, {});
812
+ };
813
+
814
+ var getterFor = function (TYPE) {
815
+ return function (it) {
816
+ var state;
817
+ if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
818
+ throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
819
+ } return state;
820
+ };
821
+ };
822
+
823
+ if (NATIVE_WEAK_MAP || shared.state) {
824
+ var store$1 = shared.state || (shared.state = new WeakMap());
825
+ /* eslint-disable no-self-assign -- prototype methods protection */
826
+ store$1.get = store$1.get;
827
+ store$1.has = store$1.has;
828
+ store$1.set = store$1.set;
829
+ /* eslint-enable no-self-assign -- prototype methods protection */
830
+ set$1 = function (it, metadata) {
831
+ if (store$1.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
832
+ metadata.facade = it;
833
+ store$1.set(it, metadata);
834
+ return metadata;
835
+ };
836
+ get = function (it) {
837
+ return store$1.get(it) || {};
838
+ };
839
+ has = function (it) {
840
+ return store$1.has(it);
841
+ };
842
+ } else {
843
+ var STATE = sharedKey$1('state');
844
+ hiddenKeys$1[STATE] = true;
845
+ set$1 = function (it, metadata) {
846
+ if (hasOwn$7(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
847
+ metadata.facade = it;
848
+ createNonEnumerableProperty$3(it, STATE, metadata);
849
+ return metadata;
850
+ };
851
+ get = function (it) {
852
+ return hasOwn$7(it, STATE) ? it[STATE] : {};
853
+ };
854
+ has = function (it) {
855
+ return hasOwn$7(it, STATE);
856
+ };
857
+ }
858
+
859
+ var internalState = {
860
+ set: set$1,
861
+ get: get,
862
+ has: has,
863
+ enforce: enforce,
864
+ getterFor: getterFor
865
+ };
866
+
867
+ var objectGetOwnPropertyDescriptor = {};
868
+
869
+ var objectPropertyIsEnumerable = {};
870
+
871
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
872
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
873
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
874
+
875
+ // Nashorn ~ JDK8 bug
876
+ var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
877
+
878
+ // `Object.prototype.propertyIsEnumerable` method implementation
879
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
880
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
881
+ var descriptor = getOwnPropertyDescriptor$2(this, V);
882
+ return !!descriptor && descriptor.enumerable;
883
+ } : $propertyIsEnumerable;
884
+
885
+ var DESCRIPTORS$5 = descriptors;
886
+ var call$8 = functionCall;
887
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
888
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
889
+ var toIndexedObject$1 = toIndexedObject$5;
890
+ var toPropertyKey = toPropertyKey$2;
891
+ var hasOwn$6 = hasOwnProperty_1;
892
+ var IE8_DOM_DEFINE = ie8DomDefine;
893
+
894
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
895
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
896
+
897
+ // `Object.getOwnPropertyDescriptor` method
898
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
899
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
900
+ O = toIndexedObject$1(O);
901
+ P = toPropertyKey(P);
902
+ if (IE8_DOM_DEFINE) try {
903
+ return $getOwnPropertyDescriptor(O, P);
904
+ } catch (error) { /* empty */ }
905
+ if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call$8(propertyIsEnumerableModule.f, O, P), O[P]);
906
+ };
907
+
908
+ var makeBuiltIn$3 = {exports: {}};
909
+
910
+ var DESCRIPTORS$4 = descriptors;
911
+ var hasOwn$5 = hasOwnProperty_1;
912
+
913
+ var FunctionPrototype$1 = Function.prototype;
914
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
915
+ var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
916
+
917
+ var EXISTS = hasOwn$5(FunctionPrototype$1, 'name');
918
+ // additional protection from minified / mangled / dropped function names
919
+ var PROPER = EXISTS && function something() { /* empty */ }.name === 'something';
920
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype$1, 'name').configurable));
921
+
922
+ var functionName = {
923
+ PROPER: PROPER,
924
+ CONFIGURABLE: CONFIGURABLE
925
+ };
926
+
927
+ var uncurryThis$7 = functionUncurryThis;
928
+ var isCallable$c = isCallable$j;
929
+ var store = sharedStoreExports;
930
+
931
+ var functionToString = uncurryThis$7(Function.toString);
932
+
933
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
934
+ if (!isCallable$c(store.inspectSource)) {
935
+ store.inspectSource = function (it) {
936
+ return functionToString(it);
937
+ };
938
+ }
939
+
940
+ var inspectSource$3 = store.inspectSource;
941
+
942
+ var uncurryThis$6 = functionUncurryThis;
943
+ var fails$5 = fails$c;
944
+ var isCallable$b = isCallable$j;
945
+ var hasOwn$4 = hasOwnProperty_1;
946
+ var DESCRIPTORS$3 = descriptors;
947
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
948
+ var inspectSource$2 = inspectSource$3;
949
+ var InternalStateModule$2 = internalState;
950
+
951
+ var enforceInternalState = InternalStateModule$2.enforce;
952
+ var getInternalState$1 = InternalStateModule$2.get;
953
+ var $String$1 = String;
954
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
955
+ var defineProperty$3 = Object.defineProperty;
956
+ var stringSlice = uncurryThis$6(''.slice);
957
+ var replace = uncurryThis$6(''.replace);
958
+ var join = uncurryThis$6([].join);
959
+
960
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$5(function () {
961
+ return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
962
+ });
963
+
964
+ var TEMPLATE = String(String).split('String');
965
+
966
+ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
967
+ if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
968
+ name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
969
+ }
970
+ if (options && options.getter) name = 'get ' + name;
971
+ if (options && options.setter) name = 'set ' + name;
972
+ if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
973
+ if (DESCRIPTORS$3) defineProperty$3(value, 'name', { value: name, configurable: true });
974
+ else value.name = name;
975
+ }
976
+ if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
977
+ defineProperty$3(value, 'length', { value: options.arity });
978
+ }
979
+ try {
980
+ if (options && hasOwn$4(options, 'constructor') && options.constructor) {
981
+ if (DESCRIPTORS$3) defineProperty$3(value, 'prototype', { writable: false });
982
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
983
+ } else if (value.prototype) value.prototype = undefined;
984
+ } catch (error) { /* empty */ }
985
+ var state = enforceInternalState(value);
986
+ if (!hasOwn$4(state, 'source')) {
987
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
988
+ } return value;
989
+ };
990
+
991
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
992
+ // eslint-disable-next-line no-extend-native -- required
993
+ Function.prototype.toString = makeBuiltIn$2(function toString() {
994
+ return isCallable$b(this) && getInternalState$1(this).source || inspectSource$2(this);
995
+ }, 'toString');
996
+
997
+ var makeBuiltInExports = makeBuiltIn$3.exports;
998
+
999
+ var isCallable$a = isCallable$j;
1000
+ var definePropertyModule$1 = objectDefineProperty;
1001
+ var makeBuiltIn$1 = makeBuiltInExports;
1002
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
1003
+
1004
+ var defineBuiltIn$5 = function (O, key, value, options) {
1005
+ if (!options) options = {};
1006
+ var simple = options.enumerable;
1007
+ var name = options.name !== undefined ? options.name : key;
1008
+ if (isCallable$a(value)) makeBuiltIn$1(value, name, options);
1009
+ if (options.global) {
1010
+ if (simple) O[key] = value;
1011
+ else defineGlobalProperty$1(key, value);
1012
+ } else {
1013
+ try {
1014
+ if (!options.unsafe) delete O[key];
1015
+ else if (O[key]) simple = true;
1016
+ } catch (error) { /* empty */ }
1017
+ if (simple) O[key] = value;
1018
+ else definePropertyModule$1.f(O, key, {
1019
+ value: value,
1020
+ enumerable: false,
1021
+ configurable: !options.nonConfigurable,
1022
+ writable: !options.nonWritable
1023
+ });
1024
+ } return O;
1025
+ };
1026
+
1027
+ var objectGetOwnPropertyNames = {};
1028
+
1029
+ var internalObjectKeys = objectKeysInternal;
1030
+ var enumBugKeys = enumBugKeys$3;
1031
+
1032
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1033
+
1034
+ // `Object.getOwnPropertyNames` method
1035
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
1036
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1037
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1038
+ return internalObjectKeys(O, hiddenKeys);
1039
+ };
1040
+
1041
+ var objectGetOwnPropertySymbols = {};
1042
+
1043
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1044
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1045
+
1046
+ var getBuiltIn$4 = getBuiltIn$7;
1047
+ var uncurryThis$5 = functionUncurryThis;
1048
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1049
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1050
+ var anObject$5 = anObject$9;
1051
+
1052
+ var concat = uncurryThis$5([].concat);
1053
+
1054
+ // all object keys, includes non-enumerable and symbols
1055
+ var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
1056
+ var keys = getOwnPropertyNamesModule.f(anObject$5(it));
1057
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1058
+ return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
1059
+ };
1060
+
1061
+ var hasOwn$3 = hasOwnProperty_1;
1062
+ var ownKeys = ownKeys$1;
1063
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1064
+ var definePropertyModule = objectDefineProperty;
1065
+
1066
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
1067
+ var keys = ownKeys(source);
1068
+ var defineProperty = definePropertyModule.f;
1069
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1070
+ for (var i = 0; i < keys.length; i++) {
1071
+ var key = keys[i];
1072
+ if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
1073
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1074
+ }
1075
+ }
1076
+ };
1077
+
1078
+ var fails$4 = fails$c;
1079
+ var isCallable$9 = isCallable$j;
1080
+
1081
+ var replacement = /#|\.prototype\./;
1082
+
1083
+ var isForced$2 = function (feature, detection) {
1084
+ var value = data[normalize(feature)];
1085
+ return value === POLYFILL ? true
1086
+ : value === NATIVE ? false
1087
+ : isCallable$9(detection) ? fails$4(detection)
1088
+ : !!detection;
1089
+ };
1090
+
1091
+ var normalize = isForced$2.normalize = function (string) {
1092
+ return String(string).replace(replacement, '.').toLowerCase();
1093
+ };
1094
+
1095
+ var data = isForced$2.data = {};
1096
+ var NATIVE = isForced$2.NATIVE = 'N';
1097
+ var POLYFILL = isForced$2.POLYFILL = 'P';
1098
+
1099
+ var isForced_1 = isForced$2;
1100
+
1101
+ var globalThis$a = globalThis_1;
1102
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1103
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1104
+ var defineBuiltIn$4 = defineBuiltIn$5;
1105
+ var defineGlobalProperty = defineGlobalProperty$3;
1106
+ var copyConstructorProperties = copyConstructorProperties$1;
1107
+ var isForced$1 = isForced_1;
1108
+
1109
+ /*
1110
+ options.target - name of the target object
1111
+ options.global - target is the global object
1112
+ options.stat - export as static methods of target
1113
+ options.proto - export as prototype methods of target
1114
+ options.real - real prototype method for the `pure` version
1115
+ options.forced - export even if the native feature is available
1116
+ options.bind - bind methods to the target, required for the `pure` version
1117
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1118
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
1119
+ options.sham - add a flag to not completely full polyfills
1120
+ options.enumerable - export as enumerable property
1121
+ options.dontCallGetSet - prevent calling a getter on target
1122
+ options.name - the .name of the function if it does not match the key
1123
+ */
1124
+ var _export = function (options, source) {
1125
+ var TARGET = options.target;
1126
+ var GLOBAL = options.global;
1127
+ var STATIC = options.stat;
1128
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1129
+ if (GLOBAL) {
1130
+ target = globalThis$a;
1131
+ } else if (STATIC) {
1132
+ target = globalThis$a[TARGET] || defineGlobalProperty(TARGET, {});
1133
+ } else {
1134
+ target = globalThis$a[TARGET] && globalThis$a[TARGET].prototype;
1135
+ }
1136
+ if (target) for (key in source) {
1137
+ sourceProperty = source[key];
1138
+ if (options.dontCallGetSet) {
1139
+ descriptor = getOwnPropertyDescriptor$1(target, key);
1140
+ targetProperty = descriptor && descriptor.value;
1141
+ } else targetProperty = target[key];
1142
+ FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1143
+ // contained in target
1144
+ if (!FORCED && targetProperty !== undefined) {
1145
+ if (typeof sourceProperty == typeof targetProperty) continue;
1146
+ copyConstructorProperties(sourceProperty, targetProperty);
1147
+ }
1148
+ // add a flag to not completely full polyfills
1149
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1150
+ createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1151
+ }
1152
+ defineBuiltIn$4(target, key, sourceProperty, options);
1153
+ }
1154
+ };
1155
+
1156
+ var fails$3 = fails$c;
1157
+
1158
+ var correctPrototypeGetter = !fails$3(function () {
1159
+ function F() { /* empty */ }
1160
+ F.prototype.constructor = null;
1161
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1162
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1163
+ });
1164
+
1165
+ var hasOwn$2 = hasOwnProperty_1;
1166
+ var isCallable$8 = isCallable$j;
1167
+ var toObject = toObject$2;
1168
+ var sharedKey = sharedKey$3;
1169
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1170
+
1171
+ var IE_PROTO = sharedKey('IE_PROTO');
1172
+ var $Object$1 = Object;
1173
+ var ObjectPrototype = $Object$1.prototype;
1174
+
1175
+ // `Object.getPrototypeOf` method
1176
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
1177
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1178
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1179
+ var object = toObject(O);
1180
+ if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1181
+ var constructor = object.constructor;
1182
+ if (isCallable$8(constructor) && object instanceof constructor) {
1183
+ return constructor.prototype;
1184
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1185
+ };
1186
+
1187
+ var fails$2 = fails$c;
1188
+ var isCallable$7 = isCallable$j;
1189
+ var isObject$4 = isObject$a;
1190
+ var getPrototypeOf$1 = objectGetPrototypeOf;
1191
+ var defineBuiltIn$3 = defineBuiltIn$5;
1192
+ var wellKnownSymbol$b = wellKnownSymbol$e;
1193
+
1194
+ var ITERATOR$5 = wellKnownSymbol$b('iterator');
1195
+ var BUGGY_SAFARI_ITERATORS$1 = false;
1196
+
1197
+ // `%IteratorPrototype%` object
1198
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1199
+ var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1200
+
1201
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1202
+ if ([].keys) {
1203
+ arrayIterator = [].keys();
1204
+ // Safari 8 has buggy iterators w/o `next`
1205
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1206
+ else {
1207
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1208
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1209
+ }
1210
+ }
1211
+
1212
+ var NEW_ITERATOR_PROTOTYPE = !isObject$4(IteratorPrototype$2) || fails$2(function () {
1213
+ var test = {};
1214
+ // FF44- legacy iterators case
1215
+ return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
1216
+ });
1217
+
1218
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1219
+
1220
+ // `%IteratorPrototype%[@@iterator]()` method
1221
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1222
+ if (!isCallable$7(IteratorPrototype$2[ITERATOR$5])) {
1223
+ defineBuiltIn$3(IteratorPrototype$2, ITERATOR$5, function () {
1224
+ return this;
1225
+ });
1226
+ }
1227
+
1228
+ var iteratorsCore = {
1229
+ IteratorPrototype: IteratorPrototype$2,
1230
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1231
+ };
1232
+
1233
+ var defineProperty$2 = objectDefineProperty.f;
1234
+ var hasOwn$1 = hasOwnProperty_1;
1235
+ var wellKnownSymbol$a = wellKnownSymbol$e;
1236
+
1237
+ var TO_STRING_TAG$2 = wellKnownSymbol$a('toStringTag');
1238
+
1239
+ var setToStringTag$4 = function (target, TAG, STATIC) {
1240
+ if (target && !STATIC) target = target.prototype;
1241
+ if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
1242
+ defineProperty$2(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1243
+ }
1244
+ };
1245
+
1246
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1247
+ var create = objectCreate;
1248
+ var createPropertyDescriptor = createPropertyDescriptor$3;
1249
+ var setToStringTag$3 = setToStringTag$4;
1250
+ var Iterators$4 = iterators;
1251
+
1252
+ var returnThis$1 = function () { return this; };
1253
+
1254
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1255
+ var TO_STRING_TAG = NAME + ' Iterator';
1256
+ IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1257
+ setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
1258
+ Iterators$4[TO_STRING_TAG] = returnThis$1;
1259
+ return IteratorConstructor;
1260
+ };
1261
+
1262
+ var uncurryThis$4 = functionUncurryThis;
1263
+ var aCallable$6 = aCallable$8;
1264
+
1265
+ var functionUncurryThisAccessor = function (object, key, method) {
1266
+ try {
1267
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1268
+ return uncurryThis$4(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
1269
+ } catch (error) { /* empty */ }
1270
+ };
1271
+
1272
+ var isObject$3 = isObject$a;
1273
+
1274
+ var isPossiblePrototype$1 = function (argument) {
1275
+ return isObject$3(argument) || argument === null;
1276
+ };
1277
+
1278
+ var isPossiblePrototype = isPossiblePrototype$1;
1279
+
1280
+ var $String = String;
1281
+ var $TypeError$6 = TypeError;
1282
+
1283
+ var aPossiblePrototype$1 = function (argument) {
1284
+ if (isPossiblePrototype(argument)) return argument;
1285
+ throw new $TypeError$6("Can't set " + $String(argument) + ' as a prototype');
1286
+ };
1287
+
1288
+ /* eslint-disable no-proto -- safe */
1289
+ var uncurryThisAccessor = functionUncurryThisAccessor;
1290
+ var isObject$2 = isObject$a;
1291
+ var requireObjectCoercible = requireObjectCoercible$3;
1292
+ var aPossiblePrototype = aPossiblePrototype$1;
1293
+
1294
+ // `Object.setPrototypeOf` method
1295
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
1296
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1297
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1298
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1299
+ var CORRECT_SETTER = false;
1300
+ var test = {};
1301
+ var setter;
1302
+ try {
1303
+ setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1304
+ setter(test, []);
1305
+ CORRECT_SETTER = test instanceof Array;
1306
+ } catch (error) { /* empty */ }
1307
+ return function setPrototypeOf(O, proto) {
1308
+ requireObjectCoercible(O);
1309
+ aPossiblePrototype(proto);
1310
+ if (!isObject$2(O)) return O;
1311
+ if (CORRECT_SETTER) setter(O, proto);
1312
+ else O.__proto__ = proto;
1313
+ return O;
1314
+ };
1315
+ }() : undefined);
1316
+
1317
+ var $$6 = _export;
1318
+ var call$7 = functionCall;
1319
+ var FunctionName = functionName;
1320
+ var isCallable$6 = isCallable$j;
1321
+ var createIteratorConstructor = iteratorCreateConstructor;
1322
+ var getPrototypeOf = objectGetPrototypeOf;
1323
+ var setPrototypeOf$1 = objectSetPrototypeOf;
1324
+ var setToStringTag$2 = setToStringTag$4;
1325
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1326
+ var defineBuiltIn$2 = defineBuiltIn$5;
1327
+ var wellKnownSymbol$9 = wellKnownSymbol$e;
1328
+ var Iterators$3 = iterators;
1329
+ var IteratorsCore = iteratorsCore;
1330
+
1331
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1332
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1333
+ var IteratorPrototype = IteratorsCore.IteratorPrototype;
1334
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1335
+ var ITERATOR$4 = wellKnownSymbol$9('iterator');
1336
+ var KEYS = 'keys';
1337
+ var VALUES = 'values';
1338
+ var ENTRIES = 'entries';
1339
+
1340
+ var returnThis = function () { return this; };
1341
+
1342
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1343
+ createIteratorConstructor(IteratorConstructor, NAME, next);
1344
+
1345
+ var getIterationMethod = function (KIND) {
1346
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1347
+ if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1348
+
1349
+ switch (KIND) {
1350
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1351
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1352
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1353
+ }
1354
+
1355
+ return function () { return new IteratorConstructor(this); };
1356
+ };
1357
+
1358
+ var TO_STRING_TAG = NAME + ' Iterator';
1359
+ var INCORRECT_VALUES_NAME = false;
1360
+ var IterablePrototype = Iterable.prototype;
1361
+ var nativeIterator = IterablePrototype[ITERATOR$4]
1362
+ || IterablePrototype['@@iterator']
1363
+ || DEFAULT && IterablePrototype[DEFAULT];
1364
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1365
+ var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1366
+ var CurrentIteratorPrototype, methods, KEY;
1367
+
1368
+ // fix native
1369
+ if (anyNativeIterator) {
1370
+ CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1371
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1372
+ if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1373
+ if (setPrototypeOf$1) {
1374
+ setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
1375
+ } else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$4])) {
1376
+ defineBuiltIn$2(CurrentIteratorPrototype, ITERATOR$4, returnThis);
1377
+ }
1378
+ }
1379
+ // Set @@toStringTag to native iterators
1380
+ setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true);
1381
+ }
1382
+ }
1383
+
1384
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1385
+ if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1386
+ if (CONFIGURABLE_FUNCTION_NAME) {
1387
+ createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1388
+ } else {
1389
+ INCORRECT_VALUES_NAME = true;
1390
+ defaultIterator = function values() { return call$7(nativeIterator, this); };
1391
+ }
1392
+ }
1393
+
1394
+ // export additional methods
1395
+ if (DEFAULT) {
1396
+ methods = {
1397
+ values: getIterationMethod(VALUES),
1398
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1399
+ entries: getIterationMethod(ENTRIES)
1400
+ };
1401
+ if (FORCED) for (KEY in methods) {
1402
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1403
+ defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
1404
+ }
1405
+ } else $$6({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1406
+ }
1407
+
1408
+ // define iterator
1409
+ if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
1410
+ defineBuiltIn$2(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
1411
+ }
1412
+ Iterators$3[NAME] = defaultIterator;
1413
+
1414
+ return methods;
1415
+ };
1416
+
1417
+ // `CreateIterResultObject` abstract operation
1418
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1419
+ var createIterResultObject$1 = function (value, done) {
1420
+ return { value: value, done: done };
1421
+ };
1422
+
1423
+ var toIndexedObject = toIndexedObject$5;
1424
+ var addToUnscopables = addToUnscopables$1;
1425
+ var Iterators$2 = iterators;
1426
+ var InternalStateModule$1 = internalState;
1427
+ var defineProperty$1 = objectDefineProperty.f;
1428
+ var defineIterator = iteratorDefine;
1429
+ var createIterResultObject = createIterResultObject$1;
1430
+ var DESCRIPTORS$2 = descriptors;
1431
+
1432
+ var ARRAY_ITERATOR = 'Array Iterator';
1433
+ var setInternalState$1 = InternalStateModule$1.set;
1434
+ var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
1435
+
1436
+ // `Array.prototype.entries` method
1437
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
1438
+ // `Array.prototype.keys` method
1439
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
1440
+ // `Array.prototype.values` method
1441
+ // https://tc39.es/ecma262/#sec-array.prototype.values
1442
+ // `Array.prototype[@@iterator]` method
1443
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1444
+ // `CreateArrayIterator` internal method
1445
+ // https://tc39.es/ecma262/#sec-createarrayiterator
1446
+ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1447
+ setInternalState$1(this, {
1448
+ type: ARRAY_ITERATOR,
1449
+ target: toIndexedObject(iterated), // target
1450
+ index: 0, // next index
1451
+ kind: kind // kind
1452
+ });
1453
+ // `%ArrayIteratorPrototype%.next` method
1454
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1455
+ }, function () {
1456
+ var state = getInternalState(this);
1457
+ var target = state.target;
1458
+ var index = state.index++;
1459
+ if (!target || index >= target.length) {
1460
+ state.target = null;
1461
+ return createIterResultObject(undefined, true);
1462
+ }
1463
+ switch (state.kind) {
1464
+ case 'keys': return createIterResultObject(index, false);
1465
+ case 'values': return createIterResultObject(target[index], false);
1466
+ } return createIterResultObject([index, target[index]], false);
1467
+ }, 'values');
1468
+
1469
+ // argumentsList[@@iterator] is %ArrayProto_values%
1470
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1471
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1472
+ var values = Iterators$2.Arguments = Iterators$2.Array;
1473
+
1474
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1475
+ addToUnscopables('keys');
1476
+ addToUnscopables('values');
1477
+ addToUnscopables('entries');
1478
+
1479
+ // V8 ~ Chrome 45- bug
1480
+ if (DESCRIPTORS$2 && values.name !== 'values') try {
1481
+ defineProperty$1(values, 'name', { value: 'values' });
1482
+ } catch (error) { /* empty */ }
1483
+
1484
+ /* global Bun, Deno -- detection */
1485
+ var globalThis$9 = globalThis_1;
1486
+ var userAgent$3 = environmentUserAgent;
1487
+ var classof$3 = classofRaw$2;
1488
+
1489
+ var userAgentStartsWith = function (string) {
1490
+ return userAgent$3.slice(0, string.length) === string;
1491
+ };
1492
+
1493
+ var environment = (function () {
1494
+ if (userAgentStartsWith('Bun/')) return 'BUN';
1495
+ if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE';
1496
+ if (userAgentStartsWith('Deno/')) return 'DENO';
1497
+ if (userAgentStartsWith('Node.js/')) return 'NODE';
1498
+ if (globalThis$9.Bun && typeof Bun.version == 'string') return 'BUN';
1499
+ if (globalThis$9.Deno && typeof Deno.version == 'object') return 'DENO';
1500
+ if (classof$3(globalThis$9.process) === 'process') return 'NODE';
1501
+ if (globalThis$9.window && globalThis$9.document) return 'BROWSER';
1502
+ return 'REST';
1503
+ })();
1504
+
1505
+ var ENVIRONMENT$1 = environment;
1506
+
1507
+ var environmentIsNode = ENVIRONMENT$1 === 'NODE';
1508
+
1509
+ var globalThis$8 = globalThis_1;
1510
+
1511
+ var path$1 = globalThis$8;
1512
+
1513
+ var makeBuiltIn = makeBuiltInExports;
1514
+ var defineProperty = objectDefineProperty;
1515
+
1516
+ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1517
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1518
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1519
+ return defineProperty.f(target, name, descriptor);
1520
+ };
1521
+
1522
+ var getBuiltIn$3 = getBuiltIn$7;
1523
+ var defineBuiltInAccessor = defineBuiltInAccessor$1;
1524
+ var wellKnownSymbol$8 = wellKnownSymbol$e;
1525
+ var DESCRIPTORS$1 = descriptors;
1526
+
1527
+ var SPECIES$2 = wellKnownSymbol$8('species');
1528
+
1529
+ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1530
+ var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
1531
+
1532
+ if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$2]) {
1533
+ defineBuiltInAccessor(Constructor, SPECIES$2, {
1534
+ configurable: true,
1535
+ get: function () { return this; }
1536
+ });
1537
+ }
1538
+ };
1539
+
1540
+ var isPrototypeOf$1 = objectIsPrototypeOf;
1541
+
1542
+ var $TypeError$5 = TypeError;
1543
+
1544
+ var anInstance$1 = function (it, Prototype) {
1545
+ if (isPrototypeOf$1(Prototype, it)) return it;
1546
+ throw new $TypeError$5('Incorrect invocation');
1547
+ };
1548
+
1549
+ var wellKnownSymbol$7 = wellKnownSymbol$e;
1550
+
1551
+ var TO_STRING_TAG$1 = wellKnownSymbol$7('toStringTag');
1552
+ var test = {};
1553
+ // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
1554
+ test[TO_STRING_TAG$1] = 'z';
1555
+
1556
+ var toStringTagSupport = String(test) === '[object z]';
1557
+
1558
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1559
+ var isCallable$5 = isCallable$j;
1560
+ var classofRaw$1 = classofRaw$2;
1561
+ var wellKnownSymbol$6 = wellKnownSymbol$e;
1562
+
1563
+ var TO_STRING_TAG = wellKnownSymbol$6('toStringTag');
1564
+ var $Object = Object;
1565
+
1566
+ // ES3 wrong here
1567
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
1568
+
1569
+ // fallback for IE11 Script Access Denied error
1570
+ var tryGet = function (it, key) {
1571
+ try {
1572
+ return it[key];
1573
+ } catch (error) { /* empty */ }
1574
+ };
1575
+
1576
+ // getting tag from ES6+ `Object.prototype.toString`
1577
+ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1578
+ var O, tag, result;
1579
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1580
+ // @@toStringTag case
1581
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1582
+ // builtinTag case
1583
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
1584
+ // ES3 arguments fallback
1585
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
1586
+ };
1587
+
1588
+ var uncurryThis$3 = functionUncurryThis;
1589
+ var fails$1 = fails$c;
1590
+ var isCallable$4 = isCallable$j;
1591
+ var classof$1 = classof$2;
1592
+ var getBuiltIn$2 = getBuiltIn$7;
1593
+ var inspectSource$1 = inspectSource$3;
1594
+
1595
+ var noop = function () { /* empty */ };
1596
+ var construct = getBuiltIn$2('Reflect', 'construct');
1597
+ var constructorRegExp = /^\s*(?:class|function)\b/;
1598
+ var exec = uncurryThis$3(constructorRegExp.exec);
1599
+ var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
1600
+
1601
+ var isConstructorModern = function isConstructor(argument) {
1602
+ if (!isCallable$4(argument)) return false;
1603
+ try {
1604
+ construct(noop, [], argument);
1605
+ return true;
1606
+ } catch (error) {
1607
+ return false;
1608
+ }
1609
+ };
1610
+
1611
+ var isConstructorLegacy = function isConstructor(argument) {
1612
+ if (!isCallable$4(argument)) return false;
1613
+ switch (classof$1(argument)) {
1614
+ case 'AsyncFunction':
1615
+ case 'GeneratorFunction':
1616
+ case 'AsyncGeneratorFunction': return false;
1617
+ }
1618
+ try {
1619
+ // we can't check .prototype since constructors produced by .bind haven't it
1620
+ // `Function#toString` throws on some built-it function in some legacy engines
1621
+ // (for example, `DOMQuad` and similar in FF41-)
1622
+ return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
1623
+ } catch (error) {
1624
+ return true;
1625
+ }
1626
+ };
1627
+
1628
+ isConstructorLegacy.sham = true;
1629
+
1630
+ // `IsConstructor` abstract operation
1631
+ // https://tc39.es/ecma262/#sec-isconstructor
1632
+ var isConstructor$1 = !construct || fails$1(function () {
1633
+ var called;
1634
+ return isConstructorModern(isConstructorModern.call)
1635
+ || !isConstructorModern(Object)
1636
+ || !isConstructorModern(function () { called = true; })
1637
+ || called;
1638
+ }) ? isConstructorLegacy : isConstructorModern;
1639
+
1640
+ var isConstructor = isConstructor$1;
1641
+ var tryToString$2 = tryToString$4;
1642
+
1643
+ var $TypeError$4 = TypeError;
1644
+
1645
+ // `Assert: IsConstructor(argument) is true`
1646
+ var aConstructor$1 = function (argument) {
1647
+ if (isConstructor(argument)) return argument;
1648
+ throw new $TypeError$4(tryToString$2(argument) + ' is not a constructor');
1649
+ };
1650
+
1651
+ var anObject$4 = anObject$9;
1652
+ var aConstructor = aConstructor$1;
1653
+ var isNullOrUndefined$1 = isNullOrUndefined$4;
1654
+ var wellKnownSymbol$5 = wellKnownSymbol$e;
1655
+
1656
+ var SPECIES$1 = wellKnownSymbol$5('species');
1657
+
1658
+ // `SpeciesConstructor` abstract operation
1659
+ // https://tc39.es/ecma262/#sec-speciesconstructor
1660
+ var speciesConstructor$1 = function (O, defaultConstructor) {
1661
+ var C = anObject$4(O).constructor;
1662
+ var S;
1663
+ return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
1664
+ };
1665
+
1666
+ var NATIVE_BIND$1 = functionBindNative;
1667
+
1668
+ var FunctionPrototype = Function.prototype;
1669
+ var apply$1 = FunctionPrototype.apply;
1670
+ var call$6 = FunctionPrototype.call;
1671
+
1672
+ // eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
1673
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$6.bind(apply$1) : function () {
1674
+ return call$6.apply(apply$1, arguments);
1675
+ });
1676
+
1677
+ var classofRaw = classofRaw$2;
1678
+ var uncurryThis$2 = functionUncurryThis;
1679
+
1680
+ var functionUncurryThisClause = function (fn) {
1681
+ // Nashorn bug:
1682
+ // https://github.com/zloirock/core-js/issues/1128
1683
+ // https://github.com/zloirock/core-js/issues/1130
1684
+ if (classofRaw(fn) === 'Function') return uncurryThis$2(fn);
1685
+ };
1686
+
1687
+ var uncurryThis$1 = functionUncurryThisClause;
1688
+ var aCallable$5 = aCallable$8;
1689
+ var NATIVE_BIND = functionBindNative;
1690
+
1691
+ var bind$4 = uncurryThis$1(uncurryThis$1.bind);
1692
+
1693
+ // optional / simple context binding
1694
+ var functionBindContext = function (fn, that) {
1695
+ aCallable$5(fn);
1696
+ return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
1697
+ return fn.apply(that, arguments);
1698
+ };
1699
+ };
1700
+
1701
+ var uncurryThis = functionUncurryThis;
1702
+
1703
+ var arraySlice$1 = uncurryThis([].slice);
1704
+
1705
+ var $TypeError$3 = TypeError;
1706
+
1707
+ var validateArgumentsLength$1 = function (passed, required) {
1708
+ if (passed < required) throw new $TypeError$3('Not enough arguments');
1709
+ return passed;
1710
+ };
1711
+
1712
+ var userAgent$2 = environmentUserAgent;
1713
+
1714
+ var environmentIsIos = /ipad|iphone|ipod/i.test(userAgent$2) && /applewebkit/i.test(userAgent$2);
1715
+
1716
+ var globalThis$7 = globalThis_1;
1717
+ var apply = functionApply;
1718
+ var bind$3 = functionBindContext;
1719
+ var isCallable$3 = isCallable$j;
1720
+ var hasOwn = hasOwnProperty_1;
1721
+ var fails = fails$c;
1722
+ var html = html$2;
1723
+ var arraySlice = arraySlice$1;
1724
+ var createElement = documentCreateElement$2;
1725
+ var validateArgumentsLength = validateArgumentsLength$1;
1726
+ var IS_IOS$1 = environmentIsIos;
1727
+ var IS_NODE$2 = environmentIsNode;
1728
+
1729
+ var set = globalThis$7.setImmediate;
1730
+ var clear = globalThis$7.clearImmediate;
1731
+ var process$2 = globalThis$7.process;
1732
+ var Dispatch = globalThis$7.Dispatch;
1733
+ var Function$1 = globalThis$7.Function;
1734
+ var MessageChannel = globalThis$7.MessageChannel;
1735
+ var String$1 = globalThis$7.String;
1736
+ var counter = 0;
1737
+ var queue$2 = {};
1738
+ var ONREADYSTATECHANGE = 'onreadystatechange';
1739
+ var $location, defer, channel, port;
1740
+
1741
+ fails(function () {
1742
+ // Deno throws a ReferenceError on `location` access without `--location` flag
1743
+ $location = globalThis$7.location;
1744
+ });
1745
+
1746
+ var run = function (id) {
1747
+ if (hasOwn(queue$2, id)) {
1748
+ var fn = queue$2[id];
1749
+ delete queue$2[id];
1750
+ fn();
1751
+ }
1752
+ };
1753
+
1754
+ var runner = function (id) {
1755
+ return function () {
1756
+ run(id);
1757
+ };
1758
+ };
1759
+
1760
+ var eventListener = function (event) {
1761
+ run(event.data);
1762
+ };
1763
+
1764
+ var globalPostMessageDefer = function (id) {
1765
+ // old engines have not location.origin
1766
+ globalThis$7.postMessage(String$1(id), $location.protocol + '//' + $location.host);
1767
+ };
1768
+
1769
+ // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1770
+ if (!set || !clear) {
1771
+ set = function setImmediate(handler) {
1772
+ validateArgumentsLength(arguments.length, 1);
1773
+ var fn = isCallable$3(handler) ? handler : Function$1(handler);
1774
+ var args = arraySlice(arguments, 1);
1775
+ queue$2[++counter] = function () {
1776
+ apply(fn, undefined, args);
1777
+ };
1778
+ defer(counter);
1779
+ return counter;
1780
+ };
1781
+ clear = function clearImmediate(id) {
1782
+ delete queue$2[id];
1783
+ };
1784
+ // Node.js 0.8-
1785
+ if (IS_NODE$2) {
1786
+ defer = function (id) {
1787
+ process$2.nextTick(runner(id));
1788
+ };
1789
+ // Sphere (JS game engine) Dispatch API
1790
+ } else if (Dispatch && Dispatch.now) {
1791
+ defer = function (id) {
1792
+ Dispatch.now(runner(id));
1793
+ };
1794
+ // Browsers with MessageChannel, includes WebWorkers
1795
+ // except iOS - https://github.com/zloirock/core-js/issues/624
1796
+ } else if (MessageChannel && !IS_IOS$1) {
1797
+ channel = new MessageChannel();
1798
+ port = channel.port2;
1799
+ channel.port1.onmessage = eventListener;
1800
+ defer = bind$3(port.postMessage, port);
1801
+ // Browsers with postMessage, skip WebWorkers
1802
+ // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
1803
+ } else if (
1804
+ globalThis$7.addEventListener &&
1805
+ isCallable$3(globalThis$7.postMessage) &&
1806
+ !globalThis$7.importScripts &&
1807
+ $location && $location.protocol !== 'file:' &&
1808
+ !fails(globalPostMessageDefer)
1809
+ ) {
1810
+ defer = globalPostMessageDefer;
1811
+ globalThis$7.addEventListener('message', eventListener, false);
1812
+ // IE8-
1813
+ } else if (ONREADYSTATECHANGE in createElement('script')) {
1814
+ defer = function (id) {
1815
+ html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
1816
+ html.removeChild(this);
1817
+ run(id);
1818
+ };
1819
+ };
1820
+ // Rest old browsers
1821
+ } else {
1822
+ defer = function (id) {
1823
+ setTimeout(runner(id), 0);
1824
+ };
1825
+ }
1826
+ }
1827
+
1828
+ var task$1 = {
1829
+ set: set};
1830
+
1831
+ var globalThis$6 = globalThis_1;
1832
+ var DESCRIPTORS = descriptors;
1833
+
1834
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1835
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1836
+
1837
+ // Avoid NodeJS experimental warning
1838
+ var safeGetBuiltIn$1 = function (name) {
1839
+ if (!DESCRIPTORS) return globalThis$6[name];
1840
+ var descriptor = getOwnPropertyDescriptor(globalThis$6, name);
1841
+ return descriptor && descriptor.value;
1842
+ };
1843
+
1844
+ var Queue$2 = function () {
1845
+ this.head = null;
1846
+ this.tail = null;
1847
+ };
1848
+
1849
+ Queue$2.prototype = {
1850
+ add: function (item) {
1851
+ var entry = { item: item, next: null };
1852
+ var tail = this.tail;
1853
+ if (tail) tail.next = entry;
1854
+ else this.head = entry;
1855
+ this.tail = entry;
1856
+ },
1857
+ get: function () {
1858
+ var entry = this.head;
1859
+ if (entry) {
1860
+ var next = this.head = entry.next;
1861
+ if (next === null) this.tail = null;
1862
+ return entry.item;
1863
+ }
1864
+ }
1865
+ };
1866
+
1867
+ var queue$1 = Queue$2;
1868
+
1869
+ var userAgent$1 = environmentUserAgent;
1870
+
1871
+ var environmentIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
1872
+
1873
+ var userAgent = environmentUserAgent;
1874
+
1875
+ var environmentIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
1876
+
1877
+ var globalThis$5 = globalThis_1;
1878
+ var safeGetBuiltIn = safeGetBuiltIn$1;
1879
+ var bind$2 = functionBindContext;
1880
+ var macrotask = task$1.set;
1881
+ var Queue$1 = queue$1;
1882
+ var IS_IOS = environmentIsIos;
1883
+ var IS_IOS_PEBBLE = environmentIsIosPebble;
1884
+ var IS_WEBOS_WEBKIT = environmentIsWebosWebkit;
1885
+ var IS_NODE$1 = environmentIsNode;
1886
+
1887
+ var MutationObserver = globalThis$5.MutationObserver || globalThis$5.WebKitMutationObserver;
1888
+ var document$2 = globalThis$5.document;
1889
+ var process$1 = globalThis$5.process;
1890
+ var Promise$1 = globalThis$5.Promise;
1891
+ var microtask$1 = safeGetBuiltIn('queueMicrotask');
1892
+ var notify$1, toggle, node, promise, then;
1893
+
1894
+ // modern engines have queueMicrotask method
1895
+ if (!microtask$1) {
1896
+ var queue = new Queue$1();
1897
+
1898
+ var flush = function () {
1899
+ var parent, fn;
1900
+ if (IS_NODE$1 && (parent = process$1.domain)) parent.exit();
1901
+ while (fn = queue.get()) try {
1902
+ fn();
1903
+ } catch (error) {
1904
+ if (queue.head) notify$1();
1905
+ throw error;
1906
+ }
1907
+ if (parent) parent.enter();
1908
+ };
1909
+
1910
+ // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
1911
+ // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
1912
+ if (!IS_IOS && !IS_NODE$1 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
1913
+ toggle = true;
1914
+ node = document$2.createTextNode('');
1915
+ new MutationObserver(flush).observe(node, { characterData: true });
1916
+ notify$1 = function () {
1917
+ node.data = toggle = !toggle;
1918
+ };
1919
+ // environments with maybe non-completely correct, but existent Promise
1920
+ } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
1921
+ // Promise.resolve without an argument throws an error in LG WebOS 2
1922
+ promise = Promise$1.resolve(undefined);
1923
+ // workaround of WebKit ~ iOS Safari 10.1 bug
1924
+ promise.constructor = Promise$1;
1925
+ then = bind$2(promise.then, promise);
1926
+ notify$1 = function () {
1927
+ then(flush);
1928
+ };
1929
+ // Node.js without promises
1930
+ } else if (IS_NODE$1) {
1931
+ notify$1 = function () {
1932
+ process$1.nextTick(flush);
1933
+ };
1934
+ // for other environments - macrotask based on:
1935
+ // - setImmediate
1936
+ // - MessageChannel
1937
+ // - window.postMessage
1938
+ // - onreadystatechange
1939
+ // - setTimeout
1940
+ } else {
1941
+ // `webpack` dev server bug on IE global methods - use bind(fn, global)
1942
+ macrotask = bind$2(macrotask, globalThis$5);
1943
+ notify$1 = function () {
1944
+ macrotask(flush);
1945
+ };
1946
+ }
1947
+
1948
+ microtask$1 = function (fn) {
1949
+ if (!queue.head) notify$1();
1950
+ queue.add(fn);
1951
+ };
1952
+ }
1953
+
1954
+ var microtask_1 = microtask$1;
1955
+
1956
+ var hostReportErrors$1 = function (a, b) {
1957
+ try {
1958
+ // eslint-disable-next-line no-console -- safe
1959
+ arguments.length === 1 ? console.error(a) : console.error(a, b);
1960
+ } catch (error) { /* empty */ }
1961
+ };
1962
+
1963
+ var perform$3 = function (exec) {
1964
+ try {
1965
+ return { error: false, value: exec() };
1966
+ } catch (error) {
1967
+ return { error: true, value: error };
1968
+ }
1969
+ };
1970
+
1971
+ var globalThis$4 = globalThis_1;
1972
+
1973
+ var promiseNativeConstructor = globalThis$4.Promise;
1974
+
1975
+ var globalThis$3 = globalThis_1;
1976
+ var NativePromiseConstructor$3 = promiseNativeConstructor;
1977
+ var isCallable$2 = isCallable$j;
1978
+ var isForced = isForced_1;
1979
+ var inspectSource = inspectSource$3;
1980
+ var wellKnownSymbol$4 = wellKnownSymbol$e;
1981
+ var ENVIRONMENT = environment;
1982
+ var V8_VERSION = environmentV8Version;
1983
+
1984
+ NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
1985
+ var SPECIES = wellKnownSymbol$4('species');
1986
+ var SUBCLASSING = false;
1987
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(globalThis$3.PromiseRejectionEvent);
1988
+
1989
+ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
1990
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
1991
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
1992
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
1993
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
1994
+ // We can't detect it synchronously, so just check versions
1995
+ if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
1996
+ // We can't use @@species feature detection in V8 since it causes
1997
+ // deoptimization and performance degradation
1998
+ // https://github.com/zloirock/core-js/issues/679
1999
+ if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
2000
+ // Detect correctness of subclassing with @@species support
2001
+ var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
2002
+ var FakePromise = function (exec) {
2003
+ exec(function () { /* empty */ }, function () { /* empty */ });
2004
+ };
2005
+ var constructor = promise.constructor = {};
2006
+ constructor[SPECIES] = FakePromise;
2007
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
2008
+ if (!SUBCLASSING) return true;
2009
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
2010
+ } return !GLOBAL_CORE_JS_PROMISE && (ENVIRONMENT === 'BROWSER' || ENVIRONMENT === 'DENO') && !NATIVE_PROMISE_REJECTION_EVENT$1;
2011
+ });
2012
+
2013
+ var promiseConstructorDetection = {
2014
+ CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
2015
+ REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
2016
+ SUBCLASSING: SUBCLASSING
2017
+ };
2018
+
2019
+ var newPromiseCapability$2 = {};
2020
+
2021
+ var aCallable$4 = aCallable$8;
2022
+
2023
+ var $TypeError$2 = TypeError;
2024
+
2025
+ var PromiseCapability = function (C) {
2026
+ var resolve, reject;
2027
+ this.promise = new C(function ($$resolve, $$reject) {
2028
+ if (resolve !== undefined || reject !== undefined) throw new $TypeError$2('Bad Promise constructor');
2029
+ resolve = $$resolve;
2030
+ reject = $$reject;
2031
+ });
2032
+ this.resolve = aCallable$4(resolve);
2033
+ this.reject = aCallable$4(reject);
2034
+ };
2035
+
2036
+ // `NewPromiseCapability` abstract operation
2037
+ // https://tc39.es/ecma262/#sec-newpromisecapability
2038
+ newPromiseCapability$2.f = function (C) {
2039
+ return new PromiseCapability(C);
2040
+ };
2041
+
2042
+ var $$5 = _export;
2043
+ var IS_NODE = environmentIsNode;
2044
+ var globalThis$2 = globalThis_1;
2045
+ var path = path$1;
2046
+ var call$5 = functionCall;
2047
+ var defineBuiltIn$1 = defineBuiltIn$5;
2048
+ var setPrototypeOf = objectSetPrototypeOf;
2049
+ var setToStringTag$1 = setToStringTag$4;
2050
+ var setSpecies = setSpecies$1;
2051
+ var aCallable$3 = aCallable$8;
2052
+ var isCallable$1 = isCallable$j;
2053
+ var isObject$1 = isObject$a;
2054
+ var anInstance = anInstance$1;
2055
+ var speciesConstructor = speciesConstructor$1;
2056
+ var task = task$1.set;
2057
+ var microtask = microtask_1;
2058
+ var hostReportErrors = hostReportErrors$1;
2059
+ var perform$2 = perform$3;
2060
+ var Queue = queue$1;
2061
+ var InternalStateModule = internalState;
2062
+ var NativePromiseConstructor$2 = promiseNativeConstructor;
2063
+ var PromiseConstructorDetection = promiseConstructorDetection;
2064
+ var newPromiseCapabilityModule$3 = newPromiseCapability$2;
2065
+
2066
+ var PROMISE = 'Promise';
2067
+ var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
2068
+ var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
2069
+ var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
2070
+ var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
2071
+ var setInternalState = InternalStateModule.set;
2072
+ var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
2073
+ var PromiseConstructor = NativePromiseConstructor$2;
2074
+ var PromisePrototype = NativePromisePrototype$1;
2075
+ var TypeError$1 = globalThis$2.TypeError;
2076
+ var document$1 = globalThis$2.document;
2077
+ var process = globalThis$2.process;
2078
+ var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
2079
+ var newGenericPromiseCapability = newPromiseCapability$1;
2080
+
2081
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && globalThis$2.dispatchEvent);
2082
+ var UNHANDLED_REJECTION = 'unhandledrejection';
2083
+ var REJECTION_HANDLED = 'rejectionhandled';
2084
+ var PENDING = 0;
2085
+ var FULFILLED = 1;
2086
+ var REJECTED = 2;
2087
+ var HANDLED = 1;
2088
+ var UNHANDLED = 2;
2089
+
2090
+ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
2091
+
2092
+ // helpers
2093
+ var isThenable = function (it) {
2094
+ var then;
2095
+ return isObject$1(it) && isCallable$1(then = it.then) ? then : false;
2096
+ };
2097
+
2098
+ var callReaction = function (reaction, state) {
2099
+ var value = state.value;
2100
+ var ok = state.state === FULFILLED;
2101
+ var handler = ok ? reaction.ok : reaction.fail;
2102
+ var resolve = reaction.resolve;
2103
+ var reject = reaction.reject;
2104
+ var domain = reaction.domain;
2105
+ var result, then, exited;
2106
+ try {
2107
+ if (handler) {
2108
+ if (!ok) {
2109
+ if (state.rejection === UNHANDLED) onHandleUnhandled(state);
2110
+ state.rejection = HANDLED;
2111
+ }
2112
+ if (handler === true) result = value;
2113
+ else {
2114
+ if (domain) domain.enter();
2115
+ result = handler(value); // can throw
2116
+ if (domain) {
2117
+ domain.exit();
2118
+ exited = true;
2119
+ }
2120
+ }
2121
+ if (result === reaction.promise) {
2122
+ reject(new TypeError$1('Promise-chain cycle'));
2123
+ } else if (then = isThenable(result)) {
2124
+ call$5(then, result, resolve, reject);
2125
+ } else resolve(result);
2126
+ } else reject(value);
2127
+ } catch (error) {
2128
+ if (domain && !exited) domain.exit();
2129
+ reject(error);
2130
+ }
2131
+ };
2132
+
2133
+ var notify = function (state, isReject) {
2134
+ if (state.notified) return;
2135
+ state.notified = true;
2136
+ microtask(function () {
2137
+ var reactions = state.reactions;
2138
+ var reaction;
2139
+ while (reaction = reactions.get()) {
2140
+ callReaction(reaction, state);
2141
+ }
2142
+ state.notified = false;
2143
+ if (isReject && !state.rejection) onUnhandled(state);
2144
+ });
2145
+ };
2146
+
2147
+ var dispatchEvent = function (name, promise, reason) {
2148
+ var event, handler;
2149
+ if (DISPATCH_EVENT) {
2150
+ event = document$1.createEvent('Event');
2151
+ event.promise = promise;
2152
+ event.reason = reason;
2153
+ event.initEvent(name, false, true);
2154
+ globalThis$2.dispatchEvent(event);
2155
+ } else event = { promise: promise, reason: reason };
2156
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis$2['on' + name])) handler(event);
2157
+ else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
2158
+ };
2159
+
2160
+ var onUnhandled = function (state) {
2161
+ call$5(task, globalThis$2, function () {
2162
+ var promise = state.facade;
2163
+ var value = state.value;
2164
+ var IS_UNHANDLED = isUnhandled(state);
2165
+ var result;
2166
+ if (IS_UNHANDLED) {
2167
+ result = perform$2(function () {
2168
+ if (IS_NODE) {
2169
+ process.emit('unhandledRejection', value, promise);
2170
+ } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
2171
+ });
2172
+ // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
2173
+ state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
2174
+ if (result.error) throw result.value;
2175
+ }
2176
+ });
2177
+ };
2178
+
2179
+ var isUnhandled = function (state) {
2180
+ return state.rejection !== HANDLED && !state.parent;
2181
+ };
2182
+
2183
+ var onHandleUnhandled = function (state) {
2184
+ call$5(task, globalThis$2, function () {
2185
+ var promise = state.facade;
2186
+ if (IS_NODE) {
2187
+ process.emit('rejectionHandled', promise);
2188
+ } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
2189
+ });
2190
+ };
2191
+
2192
+ var bind$1 = function (fn, state, unwrap) {
2193
+ return function (value) {
2194
+ fn(state, value, unwrap);
2195
+ };
2196
+ };
2197
+
2198
+ var internalReject = function (state, value, unwrap) {
2199
+ if (state.done) return;
2200
+ state.done = true;
2201
+ if (unwrap) state = unwrap;
2202
+ state.value = value;
2203
+ state.state = REJECTED;
2204
+ notify(state, true);
2205
+ };
2206
+
2207
+ var internalResolve = function (state, value, unwrap) {
2208
+ if (state.done) return;
2209
+ state.done = true;
2210
+ if (unwrap) state = unwrap;
2211
+ try {
2212
+ if (state.facade === value) throw new TypeError$1("Promise can't be resolved itself");
2213
+ var then = isThenable(value);
2214
+ if (then) {
2215
+ microtask(function () {
2216
+ var wrapper = { done: false };
2217
+ try {
2218
+ call$5(then, value,
2219
+ bind$1(internalResolve, wrapper, state),
2220
+ bind$1(internalReject, wrapper, state)
2221
+ );
2222
+ } catch (error) {
2223
+ internalReject(wrapper, error, state);
2224
+ }
2225
+ });
2226
+ } else {
2227
+ state.value = value;
2228
+ state.state = FULFILLED;
2229
+ notify(state, false);
2230
+ }
2231
+ } catch (error) {
2232
+ internalReject({ done: false }, error, state);
2233
+ }
2234
+ };
2235
+
2236
+ // constructor polyfill
2237
+ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2238
+ // 25.4.3.1 Promise(executor)
2239
+ PromiseConstructor = function Promise(executor) {
2240
+ anInstance(this, PromisePrototype);
2241
+ aCallable$3(executor);
2242
+ call$5(Internal, this);
2243
+ var state = getInternalPromiseState(this);
2244
+ try {
2245
+ executor(bind$1(internalResolve, state), bind$1(internalReject, state));
2246
+ } catch (error) {
2247
+ internalReject(state, error);
2248
+ }
2249
+ };
2250
+
2251
+ PromisePrototype = PromiseConstructor.prototype;
2252
+
2253
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
2254
+ Internal = function Promise(executor) {
2255
+ setInternalState(this, {
2256
+ type: PROMISE,
2257
+ done: false,
2258
+ notified: false,
2259
+ parent: false,
2260
+ reactions: new Queue(),
2261
+ rejection: false,
2262
+ state: PENDING,
2263
+ value: null
2264
+ });
2265
+ };
2266
+
2267
+ // `Promise.prototype.then` method
2268
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
2269
+ Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
2270
+ var state = getInternalPromiseState(this);
2271
+ var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
2272
+ state.parent = true;
2273
+ reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
2274
+ reaction.fail = isCallable$1(onRejected) && onRejected;
2275
+ reaction.domain = IS_NODE ? process.domain : undefined;
2276
+ if (state.state === PENDING) state.reactions.add(reaction);
2277
+ else microtask(function () {
2278
+ callReaction(reaction, state);
2279
+ });
2280
+ return reaction.promise;
2281
+ });
2282
+
2283
+ OwnPromiseCapability = function () {
2284
+ var promise = new Internal();
2285
+ var state = getInternalPromiseState(promise);
2286
+ this.promise = promise;
2287
+ this.resolve = bind$1(internalResolve, state);
2288
+ this.reject = bind$1(internalReject, state);
2289
+ };
2290
+
2291
+ newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
2292
+ return C === PromiseConstructor || C === PromiseWrapper
2293
+ ? new OwnPromiseCapability(C)
2294
+ : newGenericPromiseCapability(C);
2295
+ };
2296
+
2297
+ if (isCallable$1(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
2298
+ nativeThen = NativePromisePrototype$1.then;
2299
+
2300
+ if (!NATIVE_PROMISE_SUBCLASSING) {
2301
+ // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
2302
+ defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
2303
+ var that = this;
2304
+ return new PromiseConstructor(function (resolve, reject) {
2305
+ call$5(nativeThen, that, resolve, reject);
2306
+ }).then(onFulfilled, onRejected);
2307
+ // https://github.com/zloirock/core-js/issues/640
2308
+ }, { unsafe: true });
2309
+ }
2310
+
2311
+ // make `.constructor === Promise` work for native promise-based APIs
2312
+ try {
2313
+ delete NativePromisePrototype$1.constructor;
2314
+ } catch (error) { /* empty */ }
2315
+
2316
+ // make `instanceof Promise` work for native promise-based APIs
2317
+ if (setPrototypeOf) {
2318
+ setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
2319
+ }
2320
+ }
2321
+ }
2322
+
2323
+ // `Promise` constructor
2324
+ // https://tc39.es/ecma262/#sec-promise-executor
2325
+ $$5({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2326
+ Promise: PromiseConstructor
2327
+ });
2328
+
2329
+ PromiseWrapper = path.Promise;
2330
+
2331
+ setToStringTag$1(PromiseConstructor, PROMISE, false);
2332
+ setSpecies(PROMISE);
2333
+
2334
+ var wellKnownSymbol$3 = wellKnownSymbol$e;
2335
+ var Iterators$1 = iterators;
2336
+
2337
+ var ITERATOR$3 = wellKnownSymbol$3('iterator');
2338
+ var ArrayPrototype = Array.prototype;
2339
+
2340
+ // check on default Array iterator
2341
+ var isArrayIteratorMethod$1 = function (it) {
2342
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$3] === it);
2343
+ };
2344
+
2345
+ var classof = classof$2;
2346
+ var getMethod$1 = getMethod$3;
2347
+ var isNullOrUndefined = isNullOrUndefined$4;
2348
+ var Iterators = iterators;
2349
+ var wellKnownSymbol$2 = wellKnownSymbol$e;
2350
+
2351
+ var ITERATOR$2 = wellKnownSymbol$2('iterator');
2352
+
2353
+ var getIteratorMethod$2 = function (it) {
2354
+ if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$2)
2355
+ || getMethod$1(it, '@@iterator')
2356
+ || Iterators[classof(it)];
2357
+ };
2358
+
2359
+ var call$4 = functionCall;
2360
+ var aCallable$2 = aCallable$8;
2361
+ var anObject$3 = anObject$9;
2362
+ var tryToString$1 = tryToString$4;
2363
+ var getIteratorMethod$1 = getIteratorMethod$2;
2364
+
2365
+ var $TypeError$1 = TypeError;
2366
+
2367
+ var getIterator$1 = function (argument, usingIterator) {
2368
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
2369
+ if (aCallable$2(iteratorMethod)) return anObject$3(call$4(iteratorMethod, argument));
2370
+ throw new $TypeError$1(tryToString$1(argument) + ' is not iterable');
2371
+ };
2372
+
2373
+ var call$3 = functionCall;
2374
+ var anObject$2 = anObject$9;
2375
+ var getMethod = getMethod$3;
2376
+
2377
+ var iteratorClose$1 = function (iterator, kind, value) {
2378
+ var innerResult, innerError;
2379
+ anObject$2(iterator);
2380
+ try {
2381
+ innerResult = getMethod(iterator, 'return');
2382
+ if (!innerResult) {
2383
+ if (kind === 'throw') throw value;
2384
+ return value;
2385
+ }
2386
+ innerResult = call$3(innerResult, iterator);
2387
+ } catch (error) {
2388
+ innerError = true;
2389
+ innerResult = error;
2390
+ }
2391
+ if (kind === 'throw') throw value;
2392
+ if (innerError) throw innerResult;
2393
+ anObject$2(innerResult);
2394
+ return value;
2395
+ };
2396
+
2397
+ var bind = functionBindContext;
2398
+ var call$2 = functionCall;
2399
+ var anObject$1 = anObject$9;
2400
+ var tryToString = tryToString$4;
2401
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
2402
+ var lengthOfArrayLike = lengthOfArrayLike$2;
2403
+ var isPrototypeOf = objectIsPrototypeOf;
2404
+ var getIterator = getIterator$1;
2405
+ var getIteratorMethod = getIteratorMethod$2;
2406
+ var iteratorClose = iteratorClose$1;
2407
+
2408
+ var $TypeError = TypeError;
2409
+
2410
+ var Result = function (stopped, result) {
2411
+ this.stopped = stopped;
2412
+ this.result = result;
2413
+ };
2414
+
2415
+ var ResultPrototype = Result.prototype;
2416
+
2417
+ var iterate$2 = function (iterable, unboundFunction, options) {
2418
+ var that = options && options.that;
2419
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
2420
+ var IS_RECORD = !!(options && options.IS_RECORD);
2421
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2422
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
2423
+ var fn = bind(unboundFunction, that);
2424
+ var iterator, iterFn, index, length, result, next, step;
2425
+
2426
+ var stop = function (condition) {
2427
+ var $iterator = iterator;
2428
+ iterator = undefined;
2429
+ if ($iterator) iteratorClose($iterator, 'normal');
2430
+ return new Result(true, condition);
2431
+ };
2432
+
2433
+ var callFn = function (value) {
2434
+ if (AS_ENTRIES) {
2435
+ anObject$1(value);
2436
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2437
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
2438
+ };
2439
+
2440
+ if (IS_RECORD) {
2441
+ iterator = iterable.iterator;
2442
+ } else if (IS_ITERATOR) {
2443
+ iterator = iterable;
2444
+ } else {
2445
+ iterFn = getIteratorMethod(iterable);
2446
+ if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
2447
+ // optimisation for array iterators
2448
+ if (isArrayIteratorMethod(iterFn)) {
2449
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2450
+ result = callFn(iterable[index]);
2451
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
2452
+ } return new Result(false);
2453
+ }
2454
+ iterator = getIterator(iterable, iterFn);
2455
+ }
2456
+
2457
+ next = IS_RECORD ? iterable.next : iterator.next;
2458
+ while (!(step = call$2(next, iterator)).done) {
2459
+ // `IteratorValue` errors should propagate without closing the iterator
2460
+ var value = step.value;
2461
+ try {
2462
+ result = callFn(value);
2463
+ } catch (error) {
2464
+ if (iterator) iteratorClose(iterator, 'throw', error);
2465
+ else throw error;
2466
+ }
2467
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
2468
+ } return new Result(false);
2469
+ };
2470
+
2471
+ var wellKnownSymbol$1 = wellKnownSymbol$e;
2472
+
2473
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
2474
+ var SAFE_CLOSING = false;
2475
+
2476
+ try {
2477
+ var called = 0;
2478
+ var iteratorWithReturn = {
2479
+ next: function () {
2480
+ return { done: !!called++ };
2481
+ },
2482
+ 'return': function () {
2483
+ SAFE_CLOSING = true;
2484
+ }
2485
+ };
2486
+ // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
2487
+ iteratorWithReturn[ITERATOR$1] = function () {
2488
+ return this;
2489
+ };
2490
+ // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
2491
+ Array.from(iteratorWithReturn, function () { throw 2; });
2492
+ } catch (error) { /* empty */ }
2493
+
2494
+ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
2495
+ try {
2496
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
2497
+ } catch (error) { return false; } // workaround of old WebKit + `eval` bug
2498
+ var ITERATION_SUPPORT = false;
2499
+ try {
2500
+ var object = {};
2501
+ // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
2502
+ object[ITERATOR$1] = function () {
2503
+ return {
2504
+ next: function () {
2505
+ return { done: ITERATION_SUPPORT = true };
2506
+ }
2507
+ };
2508
+ };
2509
+ exec(object);
2510
+ } catch (error) { /* empty */ }
2511
+ return ITERATION_SUPPORT;
2512
+ };
2513
+
2514
+ var NativePromiseConstructor$1 = promiseNativeConstructor;
2515
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
2516
+ var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
2517
+
2518
+ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
2519
+ NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2520
+ });
2521
+
2522
+ var $$4 = _export;
2523
+ var call$1 = functionCall;
2524
+ var aCallable$1 = aCallable$8;
2525
+ var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2526
+ var perform$1 = perform$3;
2527
+ var iterate$1 = iterate$2;
2528
+ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2529
+
2530
+ // `Promise.all` method
2531
+ // https://tc39.es/ecma262/#sec-promise.all
2532
+ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2533
+ all: function all(iterable) {
2534
+ var C = this;
2535
+ var capability = newPromiseCapabilityModule$2.f(C);
2536
+ var resolve = capability.resolve;
2537
+ var reject = capability.reject;
2538
+ var result = perform$1(function () {
2539
+ var $promiseResolve = aCallable$1(C.resolve);
2540
+ var values = [];
2541
+ var counter = 0;
2542
+ var remaining = 1;
2543
+ iterate$1(iterable, function (promise) {
2544
+ var index = counter++;
2545
+ var alreadyCalled = false;
2546
+ remaining++;
2547
+ call$1($promiseResolve, C, promise).then(function (value) {
2548
+ if (alreadyCalled) return;
2549
+ alreadyCalled = true;
2550
+ values[index] = value;
2551
+ --remaining || resolve(values);
2552
+ }, reject);
2553
+ });
2554
+ --remaining || resolve(values);
2555
+ });
2556
+ if (result.error) reject(result.value);
2557
+ return capability.promise;
2558
+ }
2559
+ });
2560
+
2561
+ var $$3 = _export;
2562
+ var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2563
+ var NativePromiseConstructor = promiseNativeConstructor;
2564
+ var getBuiltIn$1 = getBuiltIn$7;
2565
+ var isCallable = isCallable$j;
2566
+ var defineBuiltIn = defineBuiltIn$5;
2567
+
2568
+ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
2569
+
2570
+ // `Promise.prototype.catch` method
2571
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
2572
+ $$3({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2573
+ 'catch': function (onRejected) {
2574
+ return this.then(undefined, onRejected);
2575
+ }
2576
+ });
2577
+
2578
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2579
+ if (isCallable(NativePromiseConstructor)) {
2580
+ var method = getBuiltIn$1('Promise').prototype['catch'];
2581
+ if (NativePromisePrototype['catch'] !== method) {
2582
+ defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
2583
+ }
2584
+ }
2585
+
2586
+ var $$2 = _export;
2587
+ var call = functionCall;
2588
+ var aCallable = aCallable$8;
2589
+ var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2590
+ var perform = perform$3;
2591
+ var iterate = iterate$2;
2592
+ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2593
+
2594
+ // `Promise.race` method
2595
+ // https://tc39.es/ecma262/#sec-promise.race
2596
+ $$2({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2597
+ race: function race(iterable) {
2598
+ var C = this;
2599
+ var capability = newPromiseCapabilityModule$1.f(C);
2600
+ var reject = capability.reject;
2601
+ var result = perform(function () {
2602
+ var $promiseResolve = aCallable(C.resolve);
2603
+ iterate(iterable, function (promise) {
2604
+ call($promiseResolve, C, promise).then(capability.resolve, reject);
2605
+ });
2606
+ });
2607
+ if (result.error) reject(result.value);
2608
+ return capability.promise;
2609
+ }
2610
+ });
2611
+
2612
+ var $$1 = _export;
2613
+ var newPromiseCapabilityModule = newPromiseCapability$2;
2614
+ var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2615
+
2616
+ // `Promise.reject` method
2617
+ // https://tc39.es/ecma262/#sec-promise.reject
2618
+ $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2619
+ reject: function reject(r) {
2620
+ var capability = newPromiseCapabilityModule.f(this);
2621
+ var capabilityReject = capability.reject;
2622
+ capabilityReject(r);
2623
+ return capability.promise;
2624
+ }
2625
+ });
2626
+
2627
+ var anObject = anObject$9;
2628
+ var isObject = isObject$a;
2629
+ var newPromiseCapability = newPromiseCapability$2;
2630
+
2631
+ var promiseResolve$1 = function (C, x) {
2632
+ anObject(C);
2633
+ if (isObject(x) && x.constructor === C) return x;
2634
+ var promiseCapability = newPromiseCapability.f(C);
2635
+ var resolve = promiseCapability.resolve;
2636
+ resolve(x);
2637
+ return promiseCapability.promise;
2638
+ };
2639
+
2640
+ var $ = _export;
2641
+ var getBuiltIn = getBuiltIn$7;
2642
+ var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2643
+ var promiseResolve = promiseResolve$1;
2644
+
2645
+ getBuiltIn('Promise');
2646
+
2647
+ // `Promise.resolve` method
2648
+ // https://tc39.es/ecma262/#sec-promise.resolve
2649
+ $({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2650
+ resolve: function resolve(x) {
2651
+ return promiseResolve(this, x);
2652
+ }
2653
+ });
2654
+
2655
+ // iterable DOM collections
2656
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
2657
+ var domIterables = {
2658
+ CSSRuleList: 0,
2659
+ CSSStyleDeclaration: 0,
2660
+ CSSValueList: 0,
2661
+ ClientRectList: 0,
2662
+ DOMRectList: 0,
2663
+ DOMStringList: 0,
2664
+ DOMTokenList: 1,
2665
+ DataTransferItemList: 0,
2666
+ FileList: 0,
2667
+ HTMLAllCollection: 0,
2668
+ HTMLCollection: 0,
2669
+ HTMLFormElement: 0,
2670
+ HTMLSelectElement: 0,
2671
+ MediaList: 0,
2672
+ MimeTypeArray: 0,
2673
+ NamedNodeMap: 0,
2674
+ NodeList: 1,
2675
+ PaintRequestList: 0,
2676
+ Plugin: 0,
2677
+ PluginArray: 0,
2678
+ SVGLengthList: 0,
2679
+ SVGNumberList: 0,
2680
+ SVGPathSegList: 0,
2681
+ SVGPointList: 0,
2682
+ SVGStringList: 0,
2683
+ SVGTransformList: 0,
2684
+ SourceBufferList: 0,
2685
+ StyleSheetList: 0,
2686
+ TextTrackCueList: 0,
2687
+ TextTrackList: 0,
2688
+ TouchList: 0
2689
+ };
2690
+
2691
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
2692
+ var documentCreateElement = documentCreateElement$2;
2693
+
2694
+ var classList = documentCreateElement('span').classList;
2695
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
2696
+
2697
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2698
+
2699
+ var globalThis$1 = globalThis_1;
2700
+ var DOMIterables = domIterables;
2701
+ var DOMTokenListPrototype = domTokenListPrototype;
2702
+ var ArrayIteratorMethods = es_array_iterator;
2703
+ var createNonEnumerableProperty = createNonEnumerableProperty$4;
2704
+ var setToStringTag = setToStringTag$4;
2705
+ var wellKnownSymbol = wellKnownSymbol$e;
2706
+
2707
+ var ITERATOR = wellKnownSymbol('iterator');
2708
+ var ArrayValues = ArrayIteratorMethods.values;
2709
+
2710
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
2711
+ if (CollectionPrototype) {
2712
+ // some Chrome versions have non-configurable methods on DOMTokenList
2713
+ if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
2714
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
2715
+ } catch (error) {
2716
+ CollectionPrototype[ITERATOR] = ArrayValues;
2717
+ }
2718
+ setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
2719
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
2720
+ // some Chrome versions have non-configurable methods on DOMTokenList
2721
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
2722
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
2723
+ } catch (error) {
2724
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
2725
+ }
2726
+ }
2727
+ }
2728
+ };
2729
+
2730
+ for (var COLLECTION_NAME in DOMIterables) {
2731
+ handlePrototype(globalThis$1[COLLECTION_NAME] && globalThis$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
2732
+ }
2733
+
2734
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
2735
+
2736
+ var en = {
2737
+ "sentry-start-recording": "Start Recording",
2738
+ "sentry-stop-recording": "Stop Recording",
2739
+ "sentry-recording": "Sentry Recording",
2740
+ "sentry-information": "For monitoring performance and errors, GeoWeb is logging usage information. In this process, no sensitive user information will leave the browser.",
2741
+ "sentry-enable-message": "By enabling recording I understand that the recording related data will be send to Sentry´s servers for processing.",
2742
+ "sentry-disable": "Disable HTML recording",
2743
+ "sentry-enable": "Enable HTML recording",
2744
+ "sentry-enable-both": "Disable HTML + Canvas recording",
2745
+ "sentry-disable-both": "Enable HTML + Canvas recording",
2746
+ "sentry-cors-wait": "Disabled untill with and without CORS headers fetching mechanism has been implemented",
2747
+ "sentry-disclaimer": "I understand that while using canvas recording, adding a layer without correct CORS headers will cause error and make the recording to fail. A new recording without the canvas or the layer can be made after reloading the application."
2748
+ };
2749
+ var fi = {
2750
+ "sentry-start-recording": "Aloita tallennus",
2751
+ "sentry-stop-recording": "Pysäytä tallennus",
2752
+ "sentry-recording": "Sentry Tallennus",
2753
+ "sentry-information": "Geoweb tallentaa tietoja sovelluksen käytöstä monitoroidakseen suorituskykyä, sekä virhetilanteita. Arkaluonteista dataa ei kerätä tai lähetetä.",
2754
+ "sentry-enable-message": "Ymmärrän, että laittamalla tallennuksen päälle tallennukseen liittyvää dataa lähetetään Sentryn palvelimille.",
2755
+ "sentry-disable": "Laita HTML tallennus pois päältä",
2756
+ "sentry-enable": "Laita HTML tallennus päälle",
2757
+ "sentry-enable-both": "Laita HTML + Canvas tallennus päälle",
2758
+ "sentry-disable-both": "Laita HTML + Canvas tallennus pois päältä",
2759
+ "sentry-cors-wait": "Ominaisuus kytketty pois päältä, kunnes sovelluksen latausprosessit tukevat CORS headerien puuttumista.",
2760
+ "sentry-disclaimer": "Ymmärrän, että käyttäessäni Canvas-tallennusta ja lisätessäni karttatason, jonka CORS headerit eivät ola kunnosa, sovelluksessa tapahtuu virhe, joka johtaa tallennnuksen epäonnistumiseen. Uuden tallennuksen voi tehdä ilman Canvaksen tallentamista sen jälkeen, kun sovellus on ladattu uudelleen."
2761
+ };
2762
+ var no = {
2763
+ "sentry-start-recording": "Start opptak",
2764
+ "sentry-stop-recording": "Stopp opptak",
2765
+ "sentry-recording": "Skjermopptak av Sentry",
2766
+ "sentry-information": "GeoWeb tar opp brukerinformasjon for å monitorere ytelse og feilmeldinger. Underveis vil ingen sensitiv brukerinformasjon forlate nettleser.",
2767
+ "sentry-enable-message": "Ved å bruke skjermopptak forstår jeg at opptaksdata vil bli sendt til Sentry for analysering",
2768
+ "sentry-disable": "Skru av HTML-opptak",
2769
+ "sentry-enable": "Skru på HTML-opptak",
2770
+ "sentry-enable-both": "Skru av HTML + lerret-opptak",
2771
+ "sentry-disable-both": "Skru på HTML + lerret-opptak",
2772
+ "sentry-cors-wait": "Avskrudd inntil CORS-relaterte headere er implementert",
2773
+ "sentry-disclaimer": "Jeg forstår at ved å bruke lerretopptak vil opptaket feile dersom jeg legger til et lag uten riktig CORS-headere. Ved å laste inn applikasjonen på nytt kan man starte nytt opptak uten lerret eller lag."
2774
+ };
2775
+ var nl = {
2776
+ "sentry-start-recording": "Start opname",
2777
+ "sentry-stop-recording": "Stop opname",
2778
+ "sentry-recording": "Sentry Opname",
2779
+ "sentry-information": "Om performance en fouten te monitoren, registreert GeoWeb gebruiksinformatie. Tijdens dit proces verlaat geen enkele gevoelige gebruikersinformatie de browser.",
2780
+ "sentry-enable-message": "Door opname te starten, ga ik akkoord dat de opnamegerelateerde gegevens ter verwerking naar de servers van Sentry worden verzonden.",
2781
+ "sentry-disable": "HTML opname stoppen",
2782
+ "sentry-enable": "HTML opname starten",
2783
+ "sentry-enable-both": "HTML + Canvas opname stoppen",
2784
+ "sentry-disable-both": "HTML + Canvas opname starten",
2785
+ "sentry-cors-wait": "Uitgeschakeld totdat het fetching mechanisme met en zonder CORS-headers is geïmplementeerd",
2786
+ "sentry-disclaimer": "Ik begrijp dat bij het gebruik van canvasopnamen het toevoegen van een laag zonder de juiste CORS-headers fouten zal veroorzaken en ervoor zal zorgen dat de opname mislukt. Een nieuwe opname zonder het canvas of de laag kan worden gemaakt na het opnieuw laden van de applicatie."
2787
+ };
2788
+ var sentryTranslations = {
2789
+ en: en,
2790
+ fi: fi,
2791
+ no: no,
2792
+ nl: nl
2793
+ };
2794
+
2795
+ /* *
2796
+ * Licensed under the Apache License, Version 2.0 (the "License");
2797
+ * you may not use this file except in compliance with the License.
2798
+ * You may obtain a copy of the License at
2799
+ *
2800
+ * http://www.apache.org/licenses/LICENSE-2.0
2801
+ *
2802
+ * Unless required by applicable law or agreed to in writing, software
2803
+ * distributed under the License is distributed on an "AS IS" BASIS,
2804
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2805
+ * See the License for the specific language governing permissions and
2806
+ * limitations under the License.
2807
+ *
2808
+ * Copyright 2026 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2809
+ * Copyright 2026 - Finnish Meteorological Institute (FMI)
2810
+ * Copyright 2026 - The Norwegian Meteorological Institute (MET Norway)
2811
+ * */
2812
+ const SENTRY_NAMESPACE = 'sentry';
2813
+ const initSentryI18n = () => {
2814
+ safelyInitI18nForTestsAndStories(i18n, SENTRY_NAMESPACE, [{
2815
+ ns: SENTRY_NAMESPACE,
2816
+ translations: sentryTranslations
2817
+ }]);
2818
+ };
2819
+ const useSentryTranslation = () => useTranslation(SENTRY_NAMESPACE);
2820
+
2821
+ const Circle = styled('div')(({
2822
+ isRecording
2823
+ }) => ({
2824
+ width: '70%',
2825
+ height: '70%',
2826
+ borderRadius: '50%',
2827
+ backgroundColor: isRecording ? 'red' : 'gray',
2828
+ position: 'absolute',
2829
+ top: '50%',
2830
+ left: '50%',
2831
+ transform: 'translate(-50%, -50%)'
2832
+ }));
2833
+ const SentryRecordButton = () => {
2834
+ const {
2835
+ t
2836
+ } = useSentryTranslation();
2837
+ const [isRecording, setIsRecording] = React.useState(false);
2838
+ const replay = getReplay();
2839
+ const toggleRecord = async () => {
2840
+ if (!isRecording) {
2841
+ replay == null || replay.start();
2842
+ setIsRecording(true);
2843
+ } else {
2844
+ setIsRecording(false);
2845
+ await (replay == null ? void 0 : replay.stop());
2846
+ }
2847
+ };
2848
+ const title = isRecording ? t('sentry-stop-recording') : t('sentry-start-recording');
2849
+ return jsx(ErrorBoundary, {
2850
+ displayOnTop: true,
2851
+ handlePromiseRejections: true,
2852
+ children: jsx(CustomTooltip, {
2853
+ title: title,
2854
+ children: jsx(CustomIconButton, {
2855
+ "data-testid": "sentryRecordButton",
2856
+ onClick: toggleRecord,
2857
+ sx: {
2858
+ margin: '10px',
2859
+ border: 'solid 1px gray'
2860
+ },
2861
+ variant: "flat",
2862
+ children: jsx(Circle, {
2863
+ isRecording: isRecording
2864
+ })
2865
+ })
2866
+ })
2867
+ });
2868
+ };
2869
+
2870
+ const UserMenuItemSentryRecording = ({
2871
+ recordButtonEnabled,
2872
+ setRecordButtonEnabled
2873
+ }) => {
2874
+ const [open, setOpen] = React.useState(false);
2875
+ const [canvasIntegrationEnabled, setCanvasIntegrationEnabled] = React.useState(false);
2876
+ const [htmlRecordingEnabled, setHTMLRecordingEnabled] = React.useState(false);
2877
+ const {
2878
+ t
2879
+ } = useSentryTranslation();
2880
+ const onClose = () => {
2881
+ setOpen(false);
2882
+ };
2883
+ const onOpen = () => {
2884
+ setOpen(true);
2885
+ };
2886
+ const enableHTMLRecording = async () => {
2887
+ if (recordButtonEnabled) {
2888
+ return;
2889
+ }
2890
+ if (canvasIntegrationEnabled) {
2891
+ return;
2892
+ }
2893
+ try {
2894
+ const {
2895
+ replayIntegration
2896
+ } = await import('@sentry/react');
2897
+ addIntegration(replayIntegration({
2898
+ maskAllText: false,
2899
+ blockAllMedia: false
2900
+ }));
2901
+ setRecordButtonEnabled == null || setRecordButtonEnabled(!recordButtonEnabled);
2902
+ setHTMLRecordingEnabled(true);
2903
+ } catch (error) {
2904
+ // eslint-disable-next-line no-console
2905
+ console.log(error);
2906
+ }
2907
+ };
2908
+ const enableHTMLAndCanvasRecording = async () => {
2909
+ if (recordButtonEnabled) {
2910
+ return;
2911
+ }
2912
+ try {
2913
+ const {
2914
+ replayIntegration,
2915
+ replayCanvasIntegration
2916
+ } = await import('@sentry/react');
2917
+ addIntegration(replayIntegration({
2918
+ maskAllText: false,
2919
+ blockAllMedia: false
2920
+ }));
2921
+ addIntegration(replayCanvasIntegration());
2922
+ setCanvasIntegrationEnabled(!canvasIntegrationEnabled);
2923
+ setRecordButtonEnabled == null || setRecordButtonEnabled(!recordButtonEnabled);
2924
+ } catch (error) {
2925
+ // eslint-disable-next-line no-console
2926
+ console.log(error);
2927
+ }
2928
+ };
2929
+ return jsxs(ErrorBoundary, {
2930
+ children: [jsx(MenuItem, {
2931
+ "data-testid": "sentryRecording-btn",
2932
+ divider: true,
2933
+ onClick: onOpen,
2934
+ children: jsx(Grid, {
2935
+ container: true,
2936
+ children: jsx(Grid, {
2937
+ children: t('sentry-recording')
2938
+ })
2939
+ })
2940
+ }), jsx(Backdrop, {
2941
+ "data-testid": "sentryRecording-content",
2942
+ open: open,
2943
+ sx: {
2944
+ zIndex: 1
2945
+ },
2946
+ children: jsx(ToolContainerDraggable, {
2947
+ bounds: "parent",
2948
+ isOpen: true,
2949
+ minHeight: 300,
2950
+ minWidth: 500,
2951
+ onClose: onClose,
2952
+ startSize: {
2953
+ width: 700
2954
+ },
2955
+ title: t('sentry-recording'),
2956
+ children: jsxs(Grid, {
2957
+ container: true,
2958
+ spacing: 4,
2959
+ sx: {
2960
+ paddingLeft: '70px',
2961
+ paddingRight: '70px'
2962
+ },
2963
+ children: [jsx(Grid, {
2964
+ container: true,
2965
+ sx: {
2966
+ justifyContent: 'center',
2967
+ textAlign: 'center'
2968
+ },
2969
+ children: jsx(Typography, {
2970
+ children: t('sentry-information')
2971
+ })
2972
+ }), jsx(Grid, {
2973
+ container: true,
2974
+ sx: {
2975
+ justifyContent: 'center',
2976
+ textAlign: 'center'
2977
+ },
2978
+ children: jsx(Typography, {
2979
+ children: t('sentry-enable-message')
2980
+ })
2981
+ }), jsxs(Grid, {
2982
+ container: true,
2983
+ sx: {
2984
+ alignItems: 'center'
2985
+ },
2986
+ children: [jsx(Switch, {
2987
+ checked: recordButtonEnabled ? !canvasIntegrationEnabled : undefined,
2988
+ disabled: htmlRecordingEnabled,
2989
+ onChange: enableHTMLRecording
2990
+ }), recordButtonEnabled && !canvasIntegrationEnabled ? jsxs(Typography, {
2991
+ children: [" ", t('sentry-disable')]
2992
+ }) : jsxs(Typography, {
2993
+ children: [" ", t('sentry-enable')]
2994
+ })]
2995
+ }), jsxs(Grid, {
2996
+ container: true,
2997
+ sx: {
2998
+ alignItems: 'center'
2999
+ },
3000
+ children: [jsx(Switch, {
3001
+ checked: canvasIntegrationEnabled,
3002
+ disabled: true,
3003
+ onChange: enableHTMLAndCanvasRecording
3004
+ }), canvasIntegrationEnabled ? jsx(Typography, {
3005
+ children: t('sentry-disable-both')
3006
+ }) : jsxs(Fragment, {
3007
+ children: [jsx(Typography, {
3008
+ sx: {
3009
+ color: 'gray'
3010
+ },
3011
+ children: t('sentry-enable-both')
3012
+ }), jsxs(Typography, {
3013
+ sx: {
3014
+ textAlign: 'center',
3015
+ color: 'gray'
3016
+ },
3017
+ children: ["(", t('sentry-cors-wait'), ")"]
3018
+ })]
3019
+ })]
3020
+ }), jsx(Grid, {
3021
+ container: true,
3022
+ sx: {
3023
+ justifyContent: 'center'
3024
+ },
3025
+ children: jsx(Typography, {
3026
+ sx: {
3027
+ paddingTop: '20px',
3028
+ textAlign: 'center'
3029
+ },
3030
+ children: t('sentry-disclaimer')
3031
+ })
3032
+ })]
3033
+ })
3034
+ })
3035
+ })]
3036
+ });
3037
+ };
3038
+
3039
+ export { SENTRY_NAMESPACE, SentryRecordButton, UserMenuItemSentryRecording, initSentryI18n, sentryTranslations, useSentryTranslation };