@opengeoweb/api 9.29.1 → 9.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -1,2228 +1,7 @@
1
- import { getConfig, useAuthenticationContext } from '@opengeoweb/authentication';
1
+ import { useAuthenticationContext } from '@opengeoweb/authentication';
2
2
  export * from '@opengeoweb/authentication';
3
3
  import { useQuery } from '@tanstack/react-query';
4
4
 
5
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
-
7
- var check = function (it) {
8
- return it && it.Math === Math && it;
9
- };
10
-
11
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
12
- var global$h =
13
- // eslint-disable-next-line es/no-global-this -- safe
14
- check(typeof globalThis == 'object' && globalThis) ||
15
- check(typeof window == 'object' && window) ||
16
- // eslint-disable-next-line no-restricted-globals -- safe
17
- check(typeof self == 'object' && self) ||
18
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
19
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
20
- // eslint-disable-next-line no-new-func -- fallback
21
- (function () { return this; })() || Function('return this')();
22
-
23
- var objectGetOwnPropertyDescriptor = {};
24
-
25
- var fails$a = function (exec) {
26
- try {
27
- return !!exec();
28
- } catch (error) {
29
- return true;
30
- }
31
- };
32
-
33
- var fails$9 = fails$a;
34
-
35
- // Detect IE8's incomplete defineProperty implementation
36
- var descriptors = !fails$9(function () {
37
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
38
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
39
- });
40
-
41
- var fails$8 = fails$a;
42
-
43
- var functionBindNative = !fails$8(function () {
44
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
45
- var test = (function () { /* empty */ }).bind();
46
- // eslint-disable-next-line no-prototype-builtins -- safe
47
- return typeof test != 'function' || test.hasOwnProperty('prototype');
48
- });
49
-
50
- var NATIVE_BIND$3 = functionBindNative;
51
-
52
- var call$b = Function.prototype.call;
53
-
54
- var functionCall = NATIVE_BIND$3 ? call$b.bind(call$b) : function () {
55
- return call$b.apply(call$b, arguments);
56
- };
57
-
58
- var objectPropertyIsEnumerable = {};
59
-
60
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
61
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
62
- var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
63
-
64
- // Nashorn ~ JDK8 bug
65
- var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
66
-
67
- // `Object.prototype.propertyIsEnumerable` method implementation
68
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
69
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
70
- var descriptor = getOwnPropertyDescriptor$2(this, V);
71
- return !!descriptor && descriptor.enumerable;
72
- } : $propertyIsEnumerable;
73
-
74
- var createPropertyDescriptor$2 = function (bitmap, value) {
75
- return {
76
- enumerable: !(bitmap & 1),
77
- configurable: !(bitmap & 2),
78
- writable: !(bitmap & 4),
79
- value: value
80
- };
81
- };
82
-
83
- var NATIVE_BIND$2 = functionBindNative;
84
-
85
- var FunctionPrototype$2 = Function.prototype;
86
- var call$a = FunctionPrototype$2.call;
87
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$a, call$a);
88
-
89
- var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
90
- return function () {
91
- return call$a.apply(fn, arguments);
92
- };
93
- };
94
-
95
- var uncurryThis$d = functionUncurryThis;
96
-
97
- var toString$1 = uncurryThis$d({}.toString);
98
- var stringSlice$1 = uncurryThis$d(''.slice);
99
-
100
- var classofRaw$2 = function (it) {
101
- return stringSlice$1(toString$1(it), 8, -1);
102
- };
103
-
104
- var uncurryThis$c = functionUncurryThis;
105
- var fails$7 = fails$a;
106
- var classof$4 = classofRaw$2;
107
-
108
- var $Object$3 = Object;
109
- var split = uncurryThis$c(''.split);
110
-
111
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
112
- var indexedObject = fails$7(function () {
113
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
114
- // eslint-disable-next-line no-prototype-builtins -- safe
115
- return !$Object$3('z').propertyIsEnumerable(0);
116
- }) ? function (it) {
117
- return classof$4(it) === 'String' ? split(it, '') : $Object$3(it);
118
- } : $Object$3;
119
-
120
- // we can't use just `it == null` since of `document.all` special case
121
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
122
- var isNullOrUndefined$4 = function (it) {
123
- return it === null || it === undefined;
124
- };
125
-
126
- var isNullOrUndefined$3 = isNullOrUndefined$4;
127
-
128
- var $TypeError$c = TypeError;
129
-
130
- // `RequireObjectCoercible` abstract operation
131
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
132
- var requireObjectCoercible$3 = function (it) {
133
- if (isNullOrUndefined$3(it)) throw new $TypeError$c("Can't call method on " + it);
134
- return it;
135
- };
136
-
137
- // toObject with fallback for non-array-like ES3 strings
138
- var IndexedObject = indexedObject;
139
- var requireObjectCoercible$2 = requireObjectCoercible$3;
140
-
141
- var toIndexedObject$3 = function (it) {
142
- return IndexedObject(requireObjectCoercible$2(it));
143
- };
144
-
145
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
146
- var documentAll = typeof document == 'object' && document.all;
147
-
148
- // `IsCallable` abstract operation
149
- // https://tc39.es/ecma262/#sec-iscallable
150
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
151
- var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
152
- return typeof argument == 'function' || argument === documentAll;
153
- } : function (argument) {
154
- return typeof argument == 'function';
155
- };
156
-
157
- var isCallable$f = isCallable$g;
158
-
159
- var isObject$9 = function (it) {
160
- return typeof it == 'object' ? it !== null : isCallable$f(it);
161
- };
162
-
163
- var global$g = global$h;
164
- var isCallable$e = isCallable$g;
165
-
166
- var aFunction = function (argument) {
167
- return isCallable$e(argument) ? argument : undefined;
168
- };
169
-
170
- var getBuiltIn$7 = function (namespace, method) {
171
- return arguments.length < 2 ? aFunction(global$g[namespace]) : global$g[namespace] && global$g[namespace][method];
172
- };
173
-
174
- var uncurryThis$b = functionUncurryThis;
175
-
176
- var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
177
-
178
- var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
179
-
180
- var global$f = global$h;
181
- var userAgent$3 = engineUserAgent;
182
-
183
- var process$3 = global$f.process;
184
- var Deno$1 = global$f.Deno;
185
- var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
186
- var v8 = versions && versions.v8;
187
- var match, version;
188
-
189
- if (v8) {
190
- match = v8.split('.');
191
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
192
- // but their correct versions are not interesting for us
193
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
194
- }
195
-
196
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
197
- // so check `userAgent` even if `.v8` exists, but 0
198
- if (!version && userAgent$3) {
199
- match = userAgent$3.match(/Edge\/(\d+)/);
200
- if (!match || match[1] >= 74) {
201
- match = userAgent$3.match(/Chrome\/(\d+)/);
202
- if (match) version = +match[1];
203
- }
204
- }
205
-
206
- var engineV8Version = version;
207
-
208
- /* eslint-disable es/no-symbol -- required for testing */
209
- var V8_VERSION$1 = engineV8Version;
210
- var fails$6 = fails$a;
211
- var global$e = global$h;
212
-
213
- var $String$4 = global$e.String;
214
-
215
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
216
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$6(function () {
217
- var symbol = Symbol('symbol detection');
218
- // Chrome 38 Symbol has incorrect toString conversion
219
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
220
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
221
- // of course, fail.
222
- return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
223
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
224
- !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
225
- });
226
-
227
- /* eslint-disable es/no-symbol -- required for testing */
228
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
229
-
230
- var useSymbolAsUid = NATIVE_SYMBOL$1
231
- && !Symbol.sham
232
- && typeof Symbol.iterator == 'symbol';
233
-
234
- var getBuiltIn$6 = getBuiltIn$7;
235
- var isCallable$d = isCallable$g;
236
- var isPrototypeOf$2 = objectIsPrototypeOf;
237
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
238
-
239
- var $Object$2 = Object;
240
-
241
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
242
- return typeof it == 'symbol';
243
- } : function (it) {
244
- var $Symbol = getBuiltIn$6('Symbol');
245
- return isCallable$d($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
246
- };
247
-
248
- var $String$3 = String;
249
-
250
- var tryToString$4 = function (argument) {
251
- try {
252
- return $String$3(argument);
253
- } catch (error) {
254
- return 'Object';
255
- }
256
- };
257
-
258
- var isCallable$c = isCallable$g;
259
- var tryToString$3 = tryToString$4;
260
-
261
- var $TypeError$b = TypeError;
262
-
263
- // `Assert: IsCallable(argument) is true`
264
- var aCallable$8 = function (argument) {
265
- if (isCallable$c(argument)) return argument;
266
- throw new $TypeError$b(tryToString$3(argument) + ' is not a function');
267
- };
268
-
269
- var aCallable$7 = aCallable$8;
270
- var isNullOrUndefined$2 = isNullOrUndefined$4;
271
-
272
- // `GetMethod` abstract operation
273
- // https://tc39.es/ecma262/#sec-getmethod
274
- var getMethod$3 = function (V, P) {
275
- var func = V[P];
276
- return isNullOrUndefined$2(func) ? undefined : aCallable$7(func);
277
- };
278
-
279
- var call$9 = functionCall;
280
- var isCallable$b = isCallable$g;
281
- var isObject$8 = isObject$9;
282
-
283
- var $TypeError$a = TypeError;
284
-
285
- // `OrdinaryToPrimitive` abstract operation
286
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
287
- var ordinaryToPrimitive$1 = function (input, pref) {
288
- var fn, val;
289
- if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$8(val = call$9(fn, input))) return val;
290
- if (isCallable$b(fn = input.valueOf) && !isObject$8(val = call$9(fn, input))) return val;
291
- if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$8(val = call$9(fn, input))) return val;
292
- throw new $TypeError$a("Can't convert object to primitive value");
293
- };
294
-
295
- var sharedStore = {exports: {}};
296
-
297
- var global$d = global$h;
298
-
299
- // eslint-disable-next-line es/no-object-defineproperty -- safe
300
- var defineProperty$3 = Object.defineProperty;
301
-
302
- var defineGlobalProperty$3 = function (key, value) {
303
- try {
304
- defineProperty$3(global$d, key, { value: value, configurable: true, writable: true });
305
- } catch (error) {
306
- global$d[key] = value;
307
- } return value;
308
- };
309
-
310
- var globalThis$1 = global$h;
311
- var defineGlobalProperty$2 = defineGlobalProperty$3;
312
-
313
- var SHARED = '__core-js_shared__';
314
- var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
315
-
316
- (store$3.versions || (store$3.versions = [])).push({
317
- version: '3.37.1',
318
- mode: 'global',
319
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
320
- license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
321
- source: 'https://github.com/zloirock/core-js'
322
- });
323
-
324
- var sharedStoreExports = sharedStore.exports;
325
-
326
- var store$2 = sharedStoreExports;
327
-
328
- var shared$3 = function (key, value) {
329
- return store$2[key] || (store$2[key] = value || {});
330
- };
331
-
332
- var requireObjectCoercible$1 = requireObjectCoercible$3;
333
-
334
- var $Object$1 = Object;
335
-
336
- // `ToObject` abstract operation
337
- // https://tc39.es/ecma262/#sec-toobject
338
- var toObject$1 = function (argument) {
339
- return $Object$1(requireObjectCoercible$1(argument));
340
- };
341
-
342
- var uncurryThis$a = functionUncurryThis;
343
- var toObject = toObject$1;
344
-
345
- var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
346
-
347
- // `HasOwnProperty` abstract operation
348
- // https://tc39.es/ecma262/#sec-hasownproperty
349
- // eslint-disable-next-line es/no-object-hasown -- safe
350
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
351
- return hasOwnProperty(toObject(it), key);
352
- };
353
-
354
- var uncurryThis$9 = functionUncurryThis;
355
-
356
- var id = 0;
357
- var postfix = Math.random();
358
- var toString = uncurryThis$9(1.0.toString);
359
-
360
- var uid$2 = function (key) {
361
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
362
- };
363
-
364
- var global$c = global$h;
365
- var shared$2 = shared$3;
366
- var hasOwn$8 = hasOwnProperty_1;
367
- var uid$1 = uid$2;
368
- var NATIVE_SYMBOL = symbolConstructorDetection;
369
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
370
-
371
- var Symbol$1 = global$c.Symbol;
372
- var WellKnownSymbolsStore = shared$2('wks');
373
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
374
-
375
- var wellKnownSymbol$a = function (name) {
376
- if (!hasOwn$8(WellKnownSymbolsStore, name)) {
377
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
378
- ? Symbol$1[name]
379
- : createWellKnownSymbol('Symbol.' + name);
380
- } return WellKnownSymbolsStore[name];
381
- };
382
-
383
- var call$8 = functionCall;
384
- var isObject$7 = isObject$9;
385
- var isSymbol$1 = isSymbol$2;
386
- var getMethod$2 = getMethod$3;
387
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
388
- var wellKnownSymbol$9 = wellKnownSymbol$a;
389
-
390
- var $TypeError$9 = TypeError;
391
- var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
392
-
393
- // `ToPrimitive` abstract operation
394
- // https://tc39.es/ecma262/#sec-toprimitive
395
- var toPrimitive$1 = function (input, pref) {
396
- if (!isObject$7(input) || isSymbol$1(input)) return input;
397
- var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
398
- var result;
399
- if (exoticToPrim) {
400
- if (pref === undefined) pref = 'default';
401
- result = call$8(exoticToPrim, input, pref);
402
- if (!isObject$7(result) || isSymbol$1(result)) return result;
403
- throw new $TypeError$9("Can't convert object to primitive value");
404
- }
405
- if (pref === undefined) pref = 'number';
406
- return ordinaryToPrimitive(input, pref);
407
- };
408
-
409
- var toPrimitive = toPrimitive$1;
410
- var isSymbol = isSymbol$2;
411
-
412
- // `ToPropertyKey` abstract operation
413
- // https://tc39.es/ecma262/#sec-topropertykey
414
- var toPropertyKey$2 = function (argument) {
415
- var key = toPrimitive(argument, 'string');
416
- return isSymbol(key) ? key : key + '';
417
- };
418
-
419
- var global$b = global$h;
420
- var isObject$6 = isObject$9;
421
-
422
- var document$3 = global$b.document;
423
- // typeof document.createElement is 'object' in old IE
424
- var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
425
-
426
- var documentCreateElement = function (it) {
427
- return EXISTS$1 ? document$3.createElement(it) : {};
428
- };
429
-
430
- var DESCRIPTORS$8 = descriptors;
431
- var fails$5 = fails$a;
432
- var createElement$1 = documentCreateElement;
433
-
434
- // Thanks to IE8 for its funny defineProperty
435
- var ie8DomDefine = !DESCRIPTORS$8 && !fails$5(function () {
436
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
437
- return Object.defineProperty(createElement$1('div'), 'a', {
438
- get: function () { return 7; }
439
- }).a !== 7;
440
- });
441
-
442
- var DESCRIPTORS$7 = descriptors;
443
- var call$7 = functionCall;
444
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
445
- var createPropertyDescriptor$1 = createPropertyDescriptor$2;
446
- var toIndexedObject$2 = toIndexedObject$3;
447
- var toPropertyKey$1 = toPropertyKey$2;
448
- var hasOwn$7 = hasOwnProperty_1;
449
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
450
-
451
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
452
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
453
-
454
- // `Object.getOwnPropertyDescriptor` method
455
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
456
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
457
- O = toIndexedObject$2(O);
458
- P = toPropertyKey$1(P);
459
- if (IE8_DOM_DEFINE$1) try {
460
- return $getOwnPropertyDescriptor$1(O, P);
461
- } catch (error) { /* empty */ }
462
- if (hasOwn$7(O, P)) return createPropertyDescriptor$1(!call$7(propertyIsEnumerableModule.f, O, P), O[P]);
463
- };
464
-
465
- var objectDefineProperty = {};
466
-
467
- var DESCRIPTORS$6 = descriptors;
468
- var fails$4 = fails$a;
469
-
470
- // V8 ~ Chrome 36-
471
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
472
- var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$4(function () {
473
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
474
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
475
- value: 42,
476
- writable: false
477
- }).prototype !== 42;
478
- });
479
-
480
- var isObject$5 = isObject$9;
481
-
482
- var $String$2 = String;
483
- var $TypeError$8 = TypeError;
484
-
485
- // `Assert: Type(argument) is Object`
486
- var anObject$7 = function (argument) {
487
- if (isObject$5(argument)) return argument;
488
- throw new $TypeError$8($String$2(argument) + ' is not an object');
489
- };
490
-
491
- var DESCRIPTORS$5 = descriptors;
492
- var IE8_DOM_DEFINE = ie8DomDefine;
493
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
494
- var anObject$6 = anObject$7;
495
- var toPropertyKey = toPropertyKey$2;
496
-
497
- var $TypeError$7 = TypeError;
498
- // eslint-disable-next-line es/no-object-defineproperty -- safe
499
- var $defineProperty = Object.defineProperty;
500
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
501
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
502
- var ENUMERABLE = 'enumerable';
503
- var CONFIGURABLE$1 = 'configurable';
504
- var WRITABLE = 'writable';
505
-
506
- // `Object.defineProperty` method
507
- // https://tc39.es/ecma262/#sec-object.defineproperty
508
- objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
509
- anObject$6(O);
510
- P = toPropertyKey(P);
511
- anObject$6(Attributes);
512
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
513
- var current = $getOwnPropertyDescriptor(O, P);
514
- if (current && current[WRITABLE]) {
515
- O[P] = Attributes.value;
516
- Attributes = {
517
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
518
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
519
- writable: false
520
- };
521
- }
522
- } return $defineProperty(O, P, Attributes);
523
- } : $defineProperty : function defineProperty(O, P, Attributes) {
524
- anObject$6(O);
525
- P = toPropertyKey(P);
526
- anObject$6(Attributes);
527
- if (IE8_DOM_DEFINE) try {
528
- return $defineProperty(O, P, Attributes);
529
- } catch (error) { /* empty */ }
530
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$7('Accessors not supported');
531
- if ('value' in Attributes) O[P] = Attributes.value;
532
- return O;
533
- };
534
-
535
- var DESCRIPTORS$4 = descriptors;
536
- var definePropertyModule$2 = objectDefineProperty;
537
- var createPropertyDescriptor = createPropertyDescriptor$2;
538
-
539
- var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value) {
540
- return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
541
- } : function (object, key, value) {
542
- object[key] = value;
543
- return object;
544
- };
545
-
546
- var makeBuiltIn$3 = {exports: {}};
547
-
548
- var DESCRIPTORS$3 = descriptors;
549
- var hasOwn$6 = hasOwnProperty_1;
550
-
551
- var FunctionPrototype$1 = Function.prototype;
552
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
553
- var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
554
-
555
- var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
556
- // additional protection from minified / mangled / dropped function names
557
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
558
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
559
-
560
- var functionName = {
561
- EXISTS: EXISTS,
562
- PROPER: PROPER,
563
- CONFIGURABLE: CONFIGURABLE
564
- };
565
-
566
- var uncurryThis$8 = functionUncurryThis;
567
- var isCallable$a = isCallable$g;
568
- var store$1 = sharedStoreExports;
569
-
570
- var functionToString = uncurryThis$8(Function.toString);
571
-
572
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
573
- if (!isCallable$a(store$1.inspectSource)) {
574
- store$1.inspectSource = function (it) {
575
- return functionToString(it);
576
- };
577
- }
578
-
579
- var inspectSource$3 = store$1.inspectSource;
580
-
581
- var global$a = global$h;
582
- var isCallable$9 = isCallable$g;
583
-
584
- var WeakMap$1 = global$a.WeakMap;
585
-
586
- var weakMapBasicDetection = isCallable$9(WeakMap$1) && /native code/.test(String(WeakMap$1));
587
-
588
- var shared$1 = shared$3;
589
- var uid = uid$2;
590
-
591
- var keys = shared$1('keys');
592
-
593
- var sharedKey$1 = function (key) {
594
- return keys[key] || (keys[key] = uid(key));
595
- };
596
-
597
- var hiddenKeys$3 = {};
598
-
599
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
600
- var global$9 = global$h;
601
- var isObject$4 = isObject$9;
602
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
603
- var hasOwn$5 = hasOwnProperty_1;
604
- var shared = sharedStoreExports;
605
- var sharedKey = sharedKey$1;
606
- var hiddenKeys$2 = hiddenKeys$3;
607
-
608
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
609
- var TypeError$2 = global$9.TypeError;
610
- var WeakMap = global$9.WeakMap;
611
- var set$1, get, has;
612
-
613
- var enforce = function (it) {
614
- return has(it) ? get(it) : set$1(it, {});
615
- };
616
-
617
- var getterFor = function (TYPE) {
618
- return function (it) {
619
- var state;
620
- if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
621
- throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
622
- } return state;
623
- };
624
- };
625
-
626
- if (NATIVE_WEAK_MAP || shared.state) {
627
- var store = shared.state || (shared.state = new WeakMap());
628
- /* eslint-disable no-self-assign -- prototype methods protection */
629
- store.get = store.get;
630
- store.has = store.has;
631
- store.set = store.set;
632
- /* eslint-enable no-self-assign -- prototype methods protection */
633
- set$1 = function (it, metadata) {
634
- if (store.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
635
- metadata.facade = it;
636
- store.set(it, metadata);
637
- return metadata;
638
- };
639
- get = function (it) {
640
- return store.get(it) || {};
641
- };
642
- has = function (it) {
643
- return store.has(it);
644
- };
645
- } else {
646
- var STATE = sharedKey('state');
647
- hiddenKeys$2[STATE] = true;
648
- set$1 = function (it, metadata) {
649
- if (hasOwn$5(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
650
- metadata.facade = it;
651
- createNonEnumerableProperty$1(it, STATE, metadata);
652
- return metadata;
653
- };
654
- get = function (it) {
655
- return hasOwn$5(it, STATE) ? it[STATE] : {};
656
- };
657
- has = function (it) {
658
- return hasOwn$5(it, STATE);
659
- };
660
- }
661
-
662
- var internalState = {
663
- set: set$1,
664
- get: get,
665
- has: has,
666
- enforce: enforce,
667
- getterFor: getterFor
668
- };
669
-
670
- var uncurryThis$7 = functionUncurryThis;
671
- var fails$3 = fails$a;
672
- var isCallable$8 = isCallable$g;
673
- var hasOwn$4 = hasOwnProperty_1;
674
- var DESCRIPTORS$2 = descriptors;
675
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
676
- var inspectSource$2 = inspectSource$3;
677
- var InternalStateModule$1 = internalState;
678
-
679
- var enforceInternalState = InternalStateModule$1.enforce;
680
- var getInternalState = InternalStateModule$1.get;
681
- var $String$1 = String;
682
- // eslint-disable-next-line es/no-object-defineproperty -- safe
683
- var defineProperty$2 = Object.defineProperty;
684
- var stringSlice = uncurryThis$7(''.slice);
685
- var replace = uncurryThis$7(''.replace);
686
- var join = uncurryThis$7([].join);
687
-
688
- var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$3(function () {
689
- return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
690
- });
691
-
692
- var TEMPLATE = String(String).split('String');
693
-
694
- var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
695
- if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
696
- name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
697
- }
698
- if (options && options.getter) name = 'get ' + name;
699
- if (options && options.setter) name = 'set ' + name;
700
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
701
- if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
702
- else value.name = name;
703
- }
704
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
705
- defineProperty$2(value, 'length', { value: options.arity });
706
- }
707
- try {
708
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
709
- if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
710
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
711
- } else if (value.prototype) value.prototype = undefined;
712
- } catch (error) { /* empty */ }
713
- var state = enforceInternalState(value);
714
- if (!hasOwn$4(state, 'source')) {
715
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
716
- } return value;
717
- };
718
-
719
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
720
- // eslint-disable-next-line no-extend-native -- required
721
- Function.prototype.toString = makeBuiltIn$2(function toString() {
722
- return isCallable$8(this) && getInternalState(this).source || inspectSource$2(this);
723
- }, 'toString');
724
-
725
- var makeBuiltInExports = makeBuiltIn$3.exports;
726
-
727
- var isCallable$7 = isCallable$g;
728
- var definePropertyModule$1 = objectDefineProperty;
729
- var makeBuiltIn$1 = makeBuiltInExports;
730
- var defineGlobalProperty$1 = defineGlobalProperty$3;
731
-
732
- var defineBuiltIn$3 = function (O, key, value, options) {
733
- if (!options) options = {};
734
- var simple = options.enumerable;
735
- var name = options.name !== undefined ? options.name : key;
736
- if (isCallable$7(value)) makeBuiltIn$1(value, name, options);
737
- if (options.global) {
738
- if (simple) O[key] = value;
739
- else defineGlobalProperty$1(key, value);
740
- } else {
741
- try {
742
- if (!options.unsafe) delete O[key];
743
- else if (O[key]) simple = true;
744
- } catch (error) { /* empty */ }
745
- if (simple) O[key] = value;
746
- else definePropertyModule$1.f(O, key, {
747
- value: value,
748
- enumerable: false,
749
- configurable: !options.nonConfigurable,
750
- writable: !options.nonWritable
751
- });
752
- } return O;
753
- };
754
-
755
- var objectGetOwnPropertyNames = {};
756
-
757
- var ceil = Math.ceil;
758
- var floor = Math.floor;
759
-
760
- // `Math.trunc` method
761
- // https://tc39.es/ecma262/#sec-math.trunc
762
- // eslint-disable-next-line es/no-math-trunc -- safe
763
- var mathTrunc = Math.trunc || function trunc(x) {
764
- var n = +x;
765
- return (n > 0 ? floor : ceil)(n);
766
- };
767
-
768
- var trunc = mathTrunc;
769
-
770
- // `ToIntegerOrInfinity` abstract operation
771
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
772
- var toIntegerOrInfinity$2 = function (argument) {
773
- var number = +argument;
774
- // eslint-disable-next-line no-self-compare -- NaN check
775
- return number !== number || number === 0 ? 0 : trunc(number);
776
- };
777
-
778
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
779
-
780
- var max = Math.max;
781
- var min$1 = Math.min;
782
-
783
- // Helper for a popular repeating case of the spec:
784
- // Let integer be ? ToInteger(index).
785
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
786
- var toAbsoluteIndex$1 = function (index, length) {
787
- var integer = toIntegerOrInfinity$1(index);
788
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
789
- };
790
-
791
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
792
-
793
- var min = Math.min;
794
-
795
- // `ToLength` abstract operation
796
- // https://tc39.es/ecma262/#sec-tolength
797
- var toLength$1 = function (argument) {
798
- var len = toIntegerOrInfinity(argument);
799
- return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
800
- };
801
-
802
- var toLength = toLength$1;
803
-
804
- // `LengthOfArrayLike` abstract operation
805
- // https://tc39.es/ecma262/#sec-lengthofarraylike
806
- var lengthOfArrayLike$2 = function (obj) {
807
- return toLength(obj.length);
808
- };
809
-
810
- var toIndexedObject$1 = toIndexedObject$3;
811
- var toAbsoluteIndex = toAbsoluteIndex$1;
812
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
813
-
814
- // `Array.prototype.{ indexOf, includes }` methods implementation
815
- var createMethod = function (IS_INCLUDES) {
816
- return function ($this, el, fromIndex) {
817
- var O = toIndexedObject$1($this);
818
- var length = lengthOfArrayLike$1(O);
819
- if (length === 0) return !IS_INCLUDES && -1;
820
- var index = toAbsoluteIndex(fromIndex, length);
821
- var value;
822
- // Array#includes uses SameValueZero equality algorithm
823
- // eslint-disable-next-line no-self-compare -- NaN check
824
- if (IS_INCLUDES && el !== el) while (length > index) {
825
- value = O[index++];
826
- // eslint-disable-next-line no-self-compare -- NaN check
827
- if (value !== value) return true;
828
- // Array#indexOf ignores holes, Array#includes - not
829
- } else for (;length > index; index++) {
830
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
831
- } return !IS_INCLUDES && -1;
832
- };
833
- };
834
-
835
- var arrayIncludes = {
836
- // `Array.prototype.includes` method
837
- // https://tc39.es/ecma262/#sec-array.prototype.includes
838
- includes: createMethod(true),
839
- // `Array.prototype.indexOf` method
840
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
841
- indexOf: createMethod(false)
842
- };
843
-
844
- var uncurryThis$6 = functionUncurryThis;
845
- var hasOwn$3 = hasOwnProperty_1;
846
- var toIndexedObject = toIndexedObject$3;
847
- var indexOf = arrayIncludes.indexOf;
848
- var hiddenKeys$1 = hiddenKeys$3;
849
-
850
- var push = uncurryThis$6([].push);
851
-
852
- var objectKeysInternal = function (object, names) {
853
- var O = toIndexedObject(object);
854
- var i = 0;
855
- var result = [];
856
- var key;
857
- for (key in O) !hasOwn$3(hiddenKeys$1, key) && hasOwn$3(O, key) && push(result, key);
858
- // Don't enum bug & hidden keys
859
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
860
- ~indexOf(result, key) || push(result, key);
861
- }
862
- return result;
863
- };
864
-
865
- // IE8- don't enum bug keys
866
- var enumBugKeys$1 = [
867
- 'constructor',
868
- 'hasOwnProperty',
869
- 'isPrototypeOf',
870
- 'propertyIsEnumerable',
871
- 'toLocaleString',
872
- 'toString',
873
- 'valueOf'
874
- ];
875
-
876
- var internalObjectKeys = objectKeysInternal;
877
- var enumBugKeys = enumBugKeys$1;
878
-
879
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
880
-
881
- // `Object.getOwnPropertyNames` method
882
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
883
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
884
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
885
- return internalObjectKeys(O, hiddenKeys);
886
- };
887
-
888
- var objectGetOwnPropertySymbols = {};
889
-
890
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
891
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
892
-
893
- var getBuiltIn$5 = getBuiltIn$7;
894
- var uncurryThis$5 = functionUncurryThis;
895
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
896
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
897
- var anObject$5 = anObject$7;
898
-
899
- var concat = uncurryThis$5([].concat);
900
-
901
- // all object keys, includes non-enumerable and symbols
902
- var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
903
- var keys = getOwnPropertyNamesModule.f(anObject$5(it));
904
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
905
- return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
906
- };
907
-
908
- var hasOwn$2 = hasOwnProperty_1;
909
- var ownKeys = ownKeys$1;
910
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
911
- var definePropertyModule = objectDefineProperty;
912
-
913
- var copyConstructorProperties$1 = function (target, source, exceptions) {
914
- var keys = ownKeys(source);
915
- var defineProperty = definePropertyModule.f;
916
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
917
- for (var i = 0; i < keys.length; i++) {
918
- var key = keys[i];
919
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
920
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
921
- }
922
- }
923
- };
924
-
925
- var fails$2 = fails$a;
926
- var isCallable$6 = isCallable$g;
927
-
928
- var replacement = /#|\.prototype\./;
929
-
930
- var isForced$2 = function (feature, detection) {
931
- var value = data[normalize(feature)];
932
- return value === POLYFILL ? true
933
- : value === NATIVE ? false
934
- : isCallable$6(detection) ? fails$2(detection)
935
- : !!detection;
936
- };
937
-
938
- var normalize = isForced$2.normalize = function (string) {
939
- return String(string).replace(replacement, '.').toLowerCase();
940
- };
941
-
942
- var data = isForced$2.data = {};
943
- var NATIVE = isForced$2.NATIVE = 'N';
944
- var POLYFILL = isForced$2.POLYFILL = 'P';
945
-
946
- var isForced_1 = isForced$2;
947
-
948
- var global$8 = global$h;
949
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
950
- var createNonEnumerableProperty = createNonEnumerableProperty$2;
951
- var defineBuiltIn$2 = defineBuiltIn$3;
952
- var defineGlobalProperty = defineGlobalProperty$3;
953
- var copyConstructorProperties = copyConstructorProperties$1;
954
- var isForced$1 = isForced_1;
955
-
956
- /*
957
- options.target - name of the target object
958
- options.global - target is the global object
959
- options.stat - export as static methods of target
960
- options.proto - export as prototype methods of target
961
- options.real - real prototype method for the `pure` version
962
- options.forced - export even if the native feature is available
963
- options.bind - bind methods to the target, required for the `pure` version
964
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
965
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
966
- options.sham - add a flag to not completely full polyfills
967
- options.enumerable - export as enumerable property
968
- options.dontCallGetSet - prevent calling a getter on target
969
- options.name - the .name of the function if it does not match the key
970
- */
971
- var _export = function (options, source) {
972
- var TARGET = options.target;
973
- var GLOBAL = options.global;
974
- var STATIC = options.stat;
975
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
976
- if (GLOBAL) {
977
- target = global$8;
978
- } else if (STATIC) {
979
- target = global$8[TARGET] || defineGlobalProperty(TARGET, {});
980
- } else {
981
- target = global$8[TARGET] && global$8[TARGET].prototype;
982
- }
983
- if (target) for (key in source) {
984
- sourceProperty = source[key];
985
- if (options.dontCallGetSet) {
986
- descriptor = getOwnPropertyDescriptor$1(target, key);
987
- targetProperty = descriptor && descriptor.value;
988
- } else targetProperty = target[key];
989
- FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
990
- // contained in target
991
- if (!FORCED && targetProperty !== undefined) {
992
- if (typeof sourceProperty == typeof targetProperty) continue;
993
- copyConstructorProperties(sourceProperty, targetProperty);
994
- }
995
- // add a flag to not completely full polyfills
996
- if (options.sham || (targetProperty && targetProperty.sham)) {
997
- createNonEnumerableProperty(sourceProperty, 'sham', true);
998
- }
999
- defineBuiltIn$2(target, key, sourceProperty, options);
1000
- }
1001
- };
1002
-
1003
- var global$7 = global$h;
1004
- var classof$3 = classofRaw$2;
1005
-
1006
- var engineIsNode = classof$3(global$7.process) === 'process';
1007
-
1008
- var uncurryThis$4 = functionUncurryThis;
1009
- var aCallable$6 = aCallable$8;
1010
-
1011
- var functionUncurryThisAccessor = function (object, key, method) {
1012
- try {
1013
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1014
- return uncurryThis$4(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
1015
- } catch (error) { /* empty */ }
1016
- };
1017
-
1018
- var isObject$3 = isObject$9;
1019
-
1020
- var isPossiblePrototype$1 = function (argument) {
1021
- return isObject$3(argument) || argument === null;
1022
- };
1023
-
1024
- var isPossiblePrototype = isPossiblePrototype$1;
1025
-
1026
- var $String = String;
1027
- var $TypeError$6 = TypeError;
1028
-
1029
- var aPossiblePrototype$1 = function (argument) {
1030
- if (isPossiblePrototype(argument)) return argument;
1031
- throw new $TypeError$6("Can't set " + $String(argument) + ' as a prototype');
1032
- };
1033
-
1034
- /* eslint-disable no-proto -- safe */
1035
- var uncurryThisAccessor = functionUncurryThisAccessor;
1036
- var isObject$2 = isObject$9;
1037
- var requireObjectCoercible = requireObjectCoercible$3;
1038
- var aPossiblePrototype = aPossiblePrototype$1;
1039
-
1040
- // `Object.setPrototypeOf` method
1041
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1042
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1043
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1044
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1045
- var CORRECT_SETTER = false;
1046
- var test = {};
1047
- var setter;
1048
- try {
1049
- setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1050
- setter(test, []);
1051
- CORRECT_SETTER = test instanceof Array;
1052
- } catch (error) { /* empty */ }
1053
- return function setPrototypeOf(O, proto) {
1054
- requireObjectCoercible(O);
1055
- aPossiblePrototype(proto);
1056
- if (!isObject$2(O)) return O;
1057
- if (CORRECT_SETTER) setter(O, proto);
1058
- else O.__proto__ = proto;
1059
- return O;
1060
- };
1061
- }() : undefined);
1062
-
1063
- var defineProperty$1 = objectDefineProperty.f;
1064
- var hasOwn$1 = hasOwnProperty_1;
1065
- var wellKnownSymbol$8 = wellKnownSymbol$a;
1066
-
1067
- var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
1068
-
1069
- var setToStringTag$1 = function (target, TAG, STATIC) {
1070
- if (target && !STATIC) target = target.prototype;
1071
- if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
1072
- defineProperty$1(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1073
- }
1074
- };
1075
-
1076
- var makeBuiltIn = makeBuiltInExports;
1077
- var defineProperty = objectDefineProperty;
1078
-
1079
- var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1080
- if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1081
- if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1082
- return defineProperty.f(target, name, descriptor);
1083
- };
1084
-
1085
- var getBuiltIn$4 = getBuiltIn$7;
1086
- var defineBuiltInAccessor = defineBuiltInAccessor$1;
1087
- var wellKnownSymbol$7 = wellKnownSymbol$a;
1088
- var DESCRIPTORS$1 = descriptors;
1089
-
1090
- var SPECIES$2 = wellKnownSymbol$7('species');
1091
-
1092
- var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1093
- var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
1094
-
1095
- if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$2]) {
1096
- defineBuiltInAccessor(Constructor, SPECIES$2, {
1097
- configurable: true,
1098
- get: function () { return this; }
1099
- });
1100
- }
1101
- };
1102
-
1103
- var isPrototypeOf$1 = objectIsPrototypeOf;
1104
-
1105
- var $TypeError$5 = TypeError;
1106
-
1107
- var anInstance$1 = function (it, Prototype) {
1108
- if (isPrototypeOf$1(Prototype, it)) return it;
1109
- throw new $TypeError$5('Incorrect invocation');
1110
- };
1111
-
1112
- var wellKnownSymbol$6 = wellKnownSymbol$a;
1113
-
1114
- var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
1115
- var test = {};
1116
-
1117
- test[TO_STRING_TAG$1] = 'z';
1118
-
1119
- var toStringTagSupport = String(test) === '[object z]';
1120
-
1121
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1122
- var isCallable$5 = isCallable$g;
1123
- var classofRaw$1 = classofRaw$2;
1124
- var wellKnownSymbol$5 = wellKnownSymbol$a;
1125
-
1126
- var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
1127
- var $Object = Object;
1128
-
1129
- // ES3 wrong here
1130
- var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
1131
-
1132
- // fallback for IE11 Script Access Denied error
1133
- var tryGet = function (it, key) {
1134
- try {
1135
- return it[key];
1136
- } catch (error) { /* empty */ }
1137
- };
1138
-
1139
- // getting tag from ES6+ `Object.prototype.toString`
1140
- var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1141
- var O, tag, result;
1142
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1143
- // @@toStringTag case
1144
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1145
- // builtinTag case
1146
- : CORRECT_ARGUMENTS ? classofRaw$1(O)
1147
- // ES3 arguments fallback
1148
- : (result = classofRaw$1(O)) === 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
1149
- };
1150
-
1151
- var uncurryThis$3 = functionUncurryThis;
1152
- var fails$1 = fails$a;
1153
- var isCallable$4 = isCallable$g;
1154
- var classof$1 = classof$2;
1155
- var getBuiltIn$3 = getBuiltIn$7;
1156
- var inspectSource$1 = inspectSource$3;
1157
-
1158
- var noop = function () { /* empty */ };
1159
- var construct = getBuiltIn$3('Reflect', 'construct');
1160
- var constructorRegExp = /^\s*(?:class|function)\b/;
1161
- var exec = uncurryThis$3(constructorRegExp.exec);
1162
- var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
1163
-
1164
- var isConstructorModern = function isConstructor(argument) {
1165
- if (!isCallable$4(argument)) return false;
1166
- try {
1167
- construct(noop, [], argument);
1168
- return true;
1169
- } catch (error) {
1170
- return false;
1171
- }
1172
- };
1173
-
1174
- var isConstructorLegacy = function isConstructor(argument) {
1175
- if (!isCallable$4(argument)) return false;
1176
- switch (classof$1(argument)) {
1177
- case 'AsyncFunction':
1178
- case 'GeneratorFunction':
1179
- case 'AsyncGeneratorFunction': return false;
1180
- }
1181
- try {
1182
- // we can't check .prototype since constructors produced by .bind haven't it
1183
- // `Function#toString` throws on some built-it function in some legacy engines
1184
- // (for example, `DOMQuad` and similar in FF41-)
1185
- return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
1186
- } catch (error) {
1187
- return true;
1188
- }
1189
- };
1190
-
1191
- isConstructorLegacy.sham = true;
1192
-
1193
- // `IsConstructor` abstract operation
1194
- // https://tc39.es/ecma262/#sec-isconstructor
1195
- var isConstructor$1 = !construct || fails$1(function () {
1196
- var called;
1197
- return isConstructorModern(isConstructorModern.call)
1198
- || !isConstructorModern(Object)
1199
- || !isConstructorModern(function () { called = true; })
1200
- || called;
1201
- }) ? isConstructorLegacy : isConstructorModern;
1202
-
1203
- var isConstructor = isConstructor$1;
1204
- var tryToString$2 = tryToString$4;
1205
-
1206
- var $TypeError$4 = TypeError;
1207
-
1208
- // `Assert: IsConstructor(argument) is true`
1209
- var aConstructor$1 = function (argument) {
1210
- if (isConstructor(argument)) return argument;
1211
- throw new $TypeError$4(tryToString$2(argument) + ' is not a constructor');
1212
- };
1213
-
1214
- var anObject$4 = anObject$7;
1215
- var aConstructor = aConstructor$1;
1216
- var isNullOrUndefined$1 = isNullOrUndefined$4;
1217
- var wellKnownSymbol$4 = wellKnownSymbol$a;
1218
-
1219
- var SPECIES$1 = wellKnownSymbol$4('species');
1220
-
1221
- // `SpeciesConstructor` abstract operation
1222
- // https://tc39.es/ecma262/#sec-speciesconstructor
1223
- var speciesConstructor$1 = function (O, defaultConstructor) {
1224
- var C = anObject$4(O).constructor;
1225
- var S;
1226
- return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
1227
- };
1228
-
1229
- var NATIVE_BIND$1 = functionBindNative;
1230
-
1231
- var FunctionPrototype = Function.prototype;
1232
- var apply$1 = FunctionPrototype.apply;
1233
- var call$6 = FunctionPrototype.call;
1234
-
1235
- // eslint-disable-next-line es/no-reflect -- safe
1236
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$6.bind(apply$1) : function () {
1237
- return call$6.apply(apply$1, arguments);
1238
- });
1239
-
1240
- var classofRaw = classofRaw$2;
1241
- var uncurryThis$2 = functionUncurryThis;
1242
-
1243
- var functionUncurryThisClause = function (fn) {
1244
- // Nashorn bug:
1245
- // https://github.com/zloirock/core-js/issues/1128
1246
- // https://github.com/zloirock/core-js/issues/1130
1247
- if (classofRaw(fn) === 'Function') return uncurryThis$2(fn);
1248
- };
1249
-
1250
- var uncurryThis$1 = functionUncurryThisClause;
1251
- var aCallable$5 = aCallable$8;
1252
- var NATIVE_BIND = functionBindNative;
1253
-
1254
- var bind$4 = uncurryThis$1(uncurryThis$1.bind);
1255
-
1256
- // optional / simple context binding
1257
- var functionBindContext = function (fn, that) {
1258
- aCallable$5(fn);
1259
- return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
1260
- return fn.apply(that, arguments);
1261
- };
1262
- };
1263
-
1264
- var getBuiltIn$2 = getBuiltIn$7;
1265
-
1266
- var html$1 = getBuiltIn$2('document', 'documentElement');
1267
-
1268
- var uncurryThis = functionUncurryThis;
1269
-
1270
- var arraySlice$1 = uncurryThis([].slice);
1271
-
1272
- var $TypeError$3 = TypeError;
1273
-
1274
- var validateArgumentsLength$1 = function (passed, required) {
1275
- if (passed < required) throw new $TypeError$3('Not enough arguments');
1276
- return passed;
1277
- };
1278
-
1279
- var userAgent$2 = engineUserAgent;
1280
-
1281
- // eslint-disable-next-line redos/no-vulnerable -- safe
1282
- var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1283
-
1284
- var global$6 = global$h;
1285
- var apply = functionApply;
1286
- var bind$3 = functionBindContext;
1287
- var isCallable$3 = isCallable$g;
1288
- var hasOwn = hasOwnProperty_1;
1289
- var fails = fails$a;
1290
- var html = html$1;
1291
- var arraySlice = arraySlice$1;
1292
- var createElement = documentCreateElement;
1293
- var validateArgumentsLength = validateArgumentsLength$1;
1294
- var IS_IOS$1 = engineIsIos;
1295
- var IS_NODE$3 = engineIsNode;
1296
-
1297
- var set = global$6.setImmediate;
1298
- var clear = global$6.clearImmediate;
1299
- var process$2 = global$6.process;
1300
- var Dispatch = global$6.Dispatch;
1301
- var Function$1 = global$6.Function;
1302
- var MessageChannel = global$6.MessageChannel;
1303
- var String$1 = global$6.String;
1304
- var counter = 0;
1305
- var queue$2 = {};
1306
- var ONREADYSTATECHANGE = 'onreadystatechange';
1307
- var $location, defer, channel, port;
1308
-
1309
- fails(function () {
1310
- // Deno throws a ReferenceError on `location` access without `--location` flag
1311
- $location = global$6.location;
1312
- });
1313
-
1314
- var run = function (id) {
1315
- if (hasOwn(queue$2, id)) {
1316
- var fn = queue$2[id];
1317
- delete queue$2[id];
1318
- fn();
1319
- }
1320
- };
1321
-
1322
- var runner = function (id) {
1323
- return function () {
1324
- run(id);
1325
- };
1326
- };
1327
-
1328
- var eventListener = function (event) {
1329
- run(event.data);
1330
- };
1331
-
1332
- var globalPostMessageDefer = function (id) {
1333
- // old engines have not location.origin
1334
- global$6.postMessage(String$1(id), $location.protocol + '//' + $location.host);
1335
- };
1336
-
1337
- // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1338
- if (!set || !clear) {
1339
- set = function setImmediate(handler) {
1340
- validateArgumentsLength(arguments.length, 1);
1341
- var fn = isCallable$3(handler) ? handler : Function$1(handler);
1342
- var args = arraySlice(arguments, 1);
1343
- queue$2[++counter] = function () {
1344
- apply(fn, undefined, args);
1345
- };
1346
- defer(counter);
1347
- return counter;
1348
- };
1349
- clear = function clearImmediate(id) {
1350
- delete queue$2[id];
1351
- };
1352
- // Node.js 0.8-
1353
- if (IS_NODE$3) {
1354
- defer = function (id) {
1355
- process$2.nextTick(runner(id));
1356
- };
1357
- // Sphere (JS game engine) Dispatch API
1358
- } else if (Dispatch && Dispatch.now) {
1359
- defer = function (id) {
1360
- Dispatch.now(runner(id));
1361
- };
1362
- // Browsers with MessageChannel, includes WebWorkers
1363
- // except iOS - https://github.com/zloirock/core-js/issues/624
1364
- } else if (MessageChannel && !IS_IOS$1) {
1365
- channel = new MessageChannel();
1366
- port = channel.port2;
1367
- channel.port1.onmessage = eventListener;
1368
- defer = bind$3(port.postMessage, port);
1369
- // Browsers with postMessage, skip WebWorkers
1370
- // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
1371
- } else if (
1372
- global$6.addEventListener &&
1373
- isCallable$3(global$6.postMessage) &&
1374
- !global$6.importScripts &&
1375
- $location && $location.protocol !== 'file:' &&
1376
- !fails(globalPostMessageDefer)
1377
- ) {
1378
- defer = globalPostMessageDefer;
1379
- global$6.addEventListener('message', eventListener, false);
1380
- // IE8-
1381
- } else if (ONREADYSTATECHANGE in createElement('script')) {
1382
- defer = function (id) {
1383
- html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
1384
- html.removeChild(this);
1385
- run(id);
1386
- };
1387
- };
1388
- // Rest old browsers
1389
- } else {
1390
- defer = function (id) {
1391
- setTimeout(runner(id), 0);
1392
- };
1393
- }
1394
- }
1395
-
1396
- var task$1 = {
1397
- set: set,
1398
- clear: clear
1399
- };
1400
-
1401
- var global$5 = global$h;
1402
- var DESCRIPTORS = descriptors;
1403
-
1404
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1405
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1406
-
1407
- // Avoid NodeJS experimental warning
1408
- var safeGetBuiltIn$1 = function (name) {
1409
- if (!DESCRIPTORS) return global$5[name];
1410
- var descriptor = getOwnPropertyDescriptor(global$5, name);
1411
- return descriptor && descriptor.value;
1412
- };
1413
-
1414
- var Queue$2 = function () {
1415
- this.head = null;
1416
- this.tail = null;
1417
- };
1418
-
1419
- Queue$2.prototype = {
1420
- add: function (item) {
1421
- var entry = { item: item, next: null };
1422
- var tail = this.tail;
1423
- if (tail) tail.next = entry;
1424
- else this.head = entry;
1425
- this.tail = entry;
1426
- },
1427
- get: function () {
1428
- var entry = this.head;
1429
- if (entry) {
1430
- var next = this.head = entry.next;
1431
- if (next === null) this.tail = null;
1432
- return entry.item;
1433
- }
1434
- }
1435
- };
1436
-
1437
- var queue$1 = Queue$2;
1438
-
1439
- var userAgent$1 = engineUserAgent;
1440
-
1441
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
1442
-
1443
- var userAgent = engineUserAgent;
1444
-
1445
- var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
1446
-
1447
- var global$4 = global$h;
1448
- var safeGetBuiltIn = safeGetBuiltIn$1;
1449
- var bind$2 = functionBindContext;
1450
- var macrotask = task$1.set;
1451
- var Queue$1 = queue$1;
1452
- var IS_IOS = engineIsIos;
1453
- var IS_IOS_PEBBLE = engineIsIosPebble;
1454
- var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
1455
- var IS_NODE$2 = engineIsNode;
1456
-
1457
- var MutationObserver = global$4.MutationObserver || global$4.WebKitMutationObserver;
1458
- var document$2 = global$4.document;
1459
- var process$1 = global$4.process;
1460
- var Promise$1 = global$4.Promise;
1461
- var microtask$1 = safeGetBuiltIn('queueMicrotask');
1462
- var notify$1, toggle, node, promise, then;
1463
-
1464
- // modern engines have queueMicrotask method
1465
- if (!microtask$1) {
1466
- var queue = new Queue$1();
1467
-
1468
- var flush = function () {
1469
- var parent, fn;
1470
- if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
1471
- while (fn = queue.get()) try {
1472
- fn();
1473
- } catch (error) {
1474
- if (queue.head) notify$1();
1475
- throw error;
1476
- }
1477
- if (parent) parent.enter();
1478
- };
1479
-
1480
- // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
1481
- // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
1482
- if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
1483
- toggle = true;
1484
- node = document$2.createTextNode('');
1485
- new MutationObserver(flush).observe(node, { characterData: true });
1486
- notify$1 = function () {
1487
- node.data = toggle = !toggle;
1488
- };
1489
- // environments with maybe non-completely correct, but existent Promise
1490
- } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
1491
- // Promise.resolve without an argument throws an error in LG WebOS 2
1492
- promise = Promise$1.resolve(undefined);
1493
- // workaround of WebKit ~ iOS Safari 10.1 bug
1494
- promise.constructor = Promise$1;
1495
- then = bind$2(promise.then, promise);
1496
- notify$1 = function () {
1497
- then(flush);
1498
- };
1499
- // Node.js without promises
1500
- } else if (IS_NODE$2) {
1501
- notify$1 = function () {
1502
- process$1.nextTick(flush);
1503
- };
1504
- // for other environments - macrotask based on:
1505
- // - setImmediate
1506
- // - MessageChannel
1507
- // - window.postMessage
1508
- // - onreadystatechange
1509
- // - setTimeout
1510
- } else {
1511
- // `webpack` dev server bug on IE global methods - use bind(fn, global)
1512
- macrotask = bind$2(macrotask, global$4);
1513
- notify$1 = function () {
1514
- macrotask(flush);
1515
- };
1516
- }
1517
-
1518
- microtask$1 = function (fn) {
1519
- if (!queue.head) notify$1();
1520
- queue.add(fn);
1521
- };
1522
- }
1523
-
1524
- var microtask_1 = microtask$1;
1525
-
1526
- var hostReportErrors$1 = function (a, b) {
1527
- try {
1528
- // eslint-disable-next-line no-console -- safe
1529
- arguments.length === 1 ? console.error(a) : console.error(a, b);
1530
- } catch (error) { /* empty */ }
1531
- };
1532
-
1533
- var perform$3 = function (exec) {
1534
- try {
1535
- return { error: false, value: exec() };
1536
- } catch (error) {
1537
- return { error: true, value: error };
1538
- }
1539
- };
1540
-
1541
- var global$3 = global$h;
1542
-
1543
- var promiseNativeConstructor = global$3.Promise;
1544
-
1545
- /* global Deno -- Deno case */
1546
- var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
1547
-
1548
- var IS_DENO$1 = engineIsDeno;
1549
- var IS_NODE$1 = engineIsNode;
1550
-
1551
- var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
1552
- && typeof window == 'object'
1553
- && typeof document == 'object';
1554
-
1555
- var global$2 = global$h;
1556
- var NativePromiseConstructor$3 = promiseNativeConstructor;
1557
- var isCallable$2 = isCallable$g;
1558
- var isForced = isForced_1;
1559
- var inspectSource = inspectSource$3;
1560
- var wellKnownSymbol$3 = wellKnownSymbol$a;
1561
- var IS_BROWSER = engineIsBrowser;
1562
- var IS_DENO = engineIsDeno;
1563
- var V8_VERSION = engineV8Version;
1564
-
1565
- NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
1566
- var SPECIES = wellKnownSymbol$3('species');
1567
- var SUBCLASSING = false;
1568
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$2.PromiseRejectionEvent);
1569
-
1570
- var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
1571
- var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
1572
- var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
1573
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
1574
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
1575
- // We can't detect it synchronously, so just check versions
1576
- if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
1577
- // We can't use @@species feature detection in V8 since it causes
1578
- // deoptimization and performance degradation
1579
- // https://github.com/zloirock/core-js/issues/679
1580
- if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
1581
- // Detect correctness of subclassing with @@species support
1582
- var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
1583
- var FakePromise = function (exec) {
1584
- exec(function () { /* empty */ }, function () { /* empty */ });
1585
- };
1586
- var constructor = promise.constructor = {};
1587
- constructor[SPECIES] = FakePromise;
1588
- SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
1589
- if (!SUBCLASSING) return true;
1590
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
1591
- } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
1592
- });
1593
-
1594
- var promiseConstructorDetection = {
1595
- CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
1596
- REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
1597
- SUBCLASSING: SUBCLASSING
1598
- };
1599
-
1600
- var newPromiseCapability$2 = {};
1601
-
1602
- var aCallable$4 = aCallable$8;
1603
-
1604
- var $TypeError$2 = TypeError;
1605
-
1606
- var PromiseCapability = function (C) {
1607
- var resolve, reject;
1608
- this.promise = new C(function ($$resolve, $$reject) {
1609
- if (resolve !== undefined || reject !== undefined) throw new $TypeError$2('Bad Promise constructor');
1610
- resolve = $$resolve;
1611
- reject = $$reject;
1612
- });
1613
- this.resolve = aCallable$4(resolve);
1614
- this.reject = aCallable$4(reject);
1615
- };
1616
-
1617
- // `NewPromiseCapability` abstract operation
1618
- // https://tc39.es/ecma262/#sec-newpromisecapability
1619
- newPromiseCapability$2.f = function (C) {
1620
- return new PromiseCapability(C);
1621
- };
1622
-
1623
- var $$5 = _export;
1624
- var IS_NODE = engineIsNode;
1625
- var global$1 = global$h;
1626
- var call$5 = functionCall;
1627
- var defineBuiltIn$1 = defineBuiltIn$3;
1628
- var setPrototypeOf = objectSetPrototypeOf;
1629
- var setToStringTag = setToStringTag$1;
1630
- var setSpecies = setSpecies$1;
1631
- var aCallable$3 = aCallable$8;
1632
- var isCallable$1 = isCallable$g;
1633
- var isObject$1 = isObject$9;
1634
- var anInstance = anInstance$1;
1635
- var speciesConstructor = speciesConstructor$1;
1636
- var task = task$1.set;
1637
- var microtask = microtask_1;
1638
- var hostReportErrors = hostReportErrors$1;
1639
- var perform$2 = perform$3;
1640
- var Queue = queue$1;
1641
- var InternalStateModule = internalState;
1642
- var NativePromiseConstructor$2 = promiseNativeConstructor;
1643
- var PromiseConstructorDetection = promiseConstructorDetection;
1644
- var newPromiseCapabilityModule$3 = newPromiseCapability$2;
1645
-
1646
- var PROMISE = 'Promise';
1647
- var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
1648
- var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
1649
- var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
1650
- var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
1651
- var setInternalState = InternalStateModule.set;
1652
- var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
1653
- var PromiseConstructor = NativePromiseConstructor$2;
1654
- var PromisePrototype = NativePromisePrototype$1;
1655
- var TypeError$1 = global$1.TypeError;
1656
- var document$1 = global$1.document;
1657
- var process = global$1.process;
1658
- var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
1659
- var newGenericPromiseCapability = newPromiseCapability$1;
1660
-
1661
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$1.dispatchEvent);
1662
- var UNHANDLED_REJECTION = 'unhandledrejection';
1663
- var REJECTION_HANDLED = 'rejectionhandled';
1664
- var PENDING = 0;
1665
- var FULFILLED = 1;
1666
- var REJECTED = 2;
1667
- var HANDLED = 1;
1668
- var UNHANDLED = 2;
1669
-
1670
- var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
1671
-
1672
- // helpers
1673
- var isThenable = function (it) {
1674
- var then;
1675
- return isObject$1(it) && isCallable$1(then = it.then) ? then : false;
1676
- };
1677
-
1678
- var callReaction = function (reaction, state) {
1679
- var value = state.value;
1680
- var ok = state.state === FULFILLED;
1681
- var handler = ok ? reaction.ok : reaction.fail;
1682
- var resolve = reaction.resolve;
1683
- var reject = reaction.reject;
1684
- var domain = reaction.domain;
1685
- var result, then, exited;
1686
- try {
1687
- if (handler) {
1688
- if (!ok) {
1689
- if (state.rejection === UNHANDLED) onHandleUnhandled(state);
1690
- state.rejection = HANDLED;
1691
- }
1692
- if (handler === true) result = value;
1693
- else {
1694
- if (domain) domain.enter();
1695
- result = handler(value); // can throw
1696
- if (domain) {
1697
- domain.exit();
1698
- exited = true;
1699
- }
1700
- }
1701
- if (result === reaction.promise) {
1702
- reject(new TypeError$1('Promise-chain cycle'));
1703
- } else if (then = isThenable(result)) {
1704
- call$5(then, result, resolve, reject);
1705
- } else resolve(result);
1706
- } else reject(value);
1707
- } catch (error) {
1708
- if (domain && !exited) domain.exit();
1709
- reject(error);
1710
- }
1711
- };
1712
-
1713
- var notify = function (state, isReject) {
1714
- if (state.notified) return;
1715
- state.notified = true;
1716
- microtask(function () {
1717
- var reactions = state.reactions;
1718
- var reaction;
1719
- while (reaction = reactions.get()) {
1720
- callReaction(reaction, state);
1721
- }
1722
- state.notified = false;
1723
- if (isReject && !state.rejection) onUnhandled(state);
1724
- });
1725
- };
1726
-
1727
- var dispatchEvent = function (name, promise, reason) {
1728
- var event, handler;
1729
- if (DISPATCH_EVENT) {
1730
- event = document$1.createEvent('Event');
1731
- event.promise = promise;
1732
- event.reason = reason;
1733
- event.initEvent(name, false, true);
1734
- global$1.dispatchEvent(event);
1735
- } else event = { promise: promise, reason: reason };
1736
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
1737
- else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
1738
- };
1739
-
1740
- var onUnhandled = function (state) {
1741
- call$5(task, global$1, function () {
1742
- var promise = state.facade;
1743
- var value = state.value;
1744
- var IS_UNHANDLED = isUnhandled(state);
1745
- var result;
1746
- if (IS_UNHANDLED) {
1747
- result = perform$2(function () {
1748
- if (IS_NODE) {
1749
- process.emit('unhandledRejection', value, promise);
1750
- } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
1751
- });
1752
- // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
1753
- state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
1754
- if (result.error) throw result.value;
1755
- }
1756
- });
1757
- };
1758
-
1759
- var isUnhandled = function (state) {
1760
- return state.rejection !== HANDLED && !state.parent;
1761
- };
1762
-
1763
- var onHandleUnhandled = function (state) {
1764
- call$5(task, global$1, function () {
1765
- var promise = state.facade;
1766
- if (IS_NODE) {
1767
- process.emit('rejectionHandled', promise);
1768
- } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
1769
- });
1770
- };
1771
-
1772
- var bind$1 = function (fn, state, unwrap) {
1773
- return function (value) {
1774
- fn(state, value, unwrap);
1775
- };
1776
- };
1777
-
1778
- var internalReject = function (state, value, unwrap) {
1779
- if (state.done) return;
1780
- state.done = true;
1781
- if (unwrap) state = unwrap;
1782
- state.value = value;
1783
- state.state = REJECTED;
1784
- notify(state, true);
1785
- };
1786
-
1787
- var internalResolve = function (state, value, unwrap) {
1788
- if (state.done) return;
1789
- state.done = true;
1790
- if (unwrap) state = unwrap;
1791
- try {
1792
- if (state.facade === value) throw new TypeError$1("Promise can't be resolved itself");
1793
- var then = isThenable(value);
1794
- if (then) {
1795
- microtask(function () {
1796
- var wrapper = { done: false };
1797
- try {
1798
- call$5(then, value,
1799
- bind$1(internalResolve, wrapper, state),
1800
- bind$1(internalReject, wrapper, state)
1801
- );
1802
- } catch (error) {
1803
- internalReject(wrapper, error, state);
1804
- }
1805
- });
1806
- } else {
1807
- state.value = value;
1808
- state.state = FULFILLED;
1809
- notify(state, false);
1810
- }
1811
- } catch (error) {
1812
- internalReject({ done: false }, error, state);
1813
- }
1814
- };
1815
-
1816
- // constructor polyfill
1817
- if (FORCED_PROMISE_CONSTRUCTOR$4) {
1818
- // 25.4.3.1 Promise(executor)
1819
- PromiseConstructor = function Promise(executor) {
1820
- anInstance(this, PromisePrototype);
1821
- aCallable$3(executor);
1822
- call$5(Internal, this);
1823
- var state = getInternalPromiseState(this);
1824
- try {
1825
- executor(bind$1(internalResolve, state), bind$1(internalReject, state));
1826
- } catch (error) {
1827
- internalReject(state, error);
1828
- }
1829
- };
1830
-
1831
- PromisePrototype = PromiseConstructor.prototype;
1832
-
1833
- // eslint-disable-next-line no-unused-vars -- required for `.length`
1834
- Internal = function Promise(executor) {
1835
- setInternalState(this, {
1836
- type: PROMISE,
1837
- done: false,
1838
- notified: false,
1839
- parent: false,
1840
- reactions: new Queue(),
1841
- rejection: false,
1842
- state: PENDING,
1843
- value: undefined
1844
- });
1845
- };
1846
-
1847
- // `Promise.prototype.then` method
1848
- // https://tc39.es/ecma262/#sec-promise.prototype.then
1849
- Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
1850
- var state = getInternalPromiseState(this);
1851
- var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
1852
- state.parent = true;
1853
- reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
1854
- reaction.fail = isCallable$1(onRejected) && onRejected;
1855
- reaction.domain = IS_NODE ? process.domain : undefined;
1856
- if (state.state === PENDING) state.reactions.add(reaction);
1857
- else microtask(function () {
1858
- callReaction(reaction, state);
1859
- });
1860
- return reaction.promise;
1861
- });
1862
-
1863
- OwnPromiseCapability = function () {
1864
- var promise = new Internal();
1865
- var state = getInternalPromiseState(promise);
1866
- this.promise = promise;
1867
- this.resolve = bind$1(internalResolve, state);
1868
- this.reject = bind$1(internalReject, state);
1869
- };
1870
-
1871
- newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
1872
- return C === PromiseConstructor || C === PromiseWrapper
1873
- ? new OwnPromiseCapability(C)
1874
- : newGenericPromiseCapability(C);
1875
- };
1876
-
1877
- if (isCallable$1(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
1878
- nativeThen = NativePromisePrototype$1.then;
1879
-
1880
- if (!NATIVE_PROMISE_SUBCLASSING) {
1881
- // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
1882
- defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
1883
- var that = this;
1884
- return new PromiseConstructor(function (resolve, reject) {
1885
- call$5(nativeThen, that, resolve, reject);
1886
- }).then(onFulfilled, onRejected);
1887
- // https://github.com/zloirock/core-js/issues/640
1888
- }, { unsafe: true });
1889
- }
1890
-
1891
- // make `.constructor === Promise` work for native promise-based APIs
1892
- try {
1893
- delete NativePromisePrototype$1.constructor;
1894
- } catch (error) { /* empty */ }
1895
-
1896
- // make `instanceof Promise` work for native promise-based APIs
1897
- if (setPrototypeOf) {
1898
- setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
1899
- }
1900
- }
1901
- }
1902
-
1903
- $$5({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
1904
- Promise: PromiseConstructor
1905
- });
1906
-
1907
- setToStringTag(PromiseConstructor, PROMISE, false);
1908
- setSpecies(PROMISE);
1909
-
1910
- var iterators = {};
1911
-
1912
- var wellKnownSymbol$2 = wellKnownSymbol$a;
1913
- var Iterators$1 = iterators;
1914
-
1915
- var ITERATOR$2 = wellKnownSymbol$2('iterator');
1916
- var ArrayPrototype = Array.prototype;
1917
-
1918
- // check on default Array iterator
1919
- var isArrayIteratorMethod$1 = function (it) {
1920
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
1921
- };
1922
-
1923
- var classof = classof$2;
1924
- var getMethod$1 = getMethod$3;
1925
- var isNullOrUndefined = isNullOrUndefined$4;
1926
- var Iterators = iterators;
1927
- var wellKnownSymbol$1 = wellKnownSymbol$a;
1928
-
1929
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
1930
-
1931
- var getIteratorMethod$2 = function (it) {
1932
- if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
1933
- || getMethod$1(it, '@@iterator')
1934
- || Iterators[classof(it)];
1935
- };
1936
-
1937
- var call$4 = functionCall;
1938
- var aCallable$2 = aCallable$8;
1939
- var anObject$3 = anObject$7;
1940
- var tryToString$1 = tryToString$4;
1941
- var getIteratorMethod$1 = getIteratorMethod$2;
1942
-
1943
- var $TypeError$1 = TypeError;
1944
-
1945
- var getIterator$1 = function (argument, usingIterator) {
1946
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1947
- if (aCallable$2(iteratorMethod)) return anObject$3(call$4(iteratorMethod, argument));
1948
- throw new $TypeError$1(tryToString$1(argument) + ' is not iterable');
1949
- };
1950
-
1951
- var call$3 = functionCall;
1952
- var anObject$2 = anObject$7;
1953
- var getMethod = getMethod$3;
1954
-
1955
- var iteratorClose$1 = function (iterator, kind, value) {
1956
- var innerResult, innerError;
1957
- anObject$2(iterator);
1958
- try {
1959
- innerResult = getMethod(iterator, 'return');
1960
- if (!innerResult) {
1961
- if (kind === 'throw') throw value;
1962
- return value;
1963
- }
1964
- innerResult = call$3(innerResult, iterator);
1965
- } catch (error) {
1966
- innerError = true;
1967
- innerResult = error;
1968
- }
1969
- if (kind === 'throw') throw value;
1970
- if (innerError) throw innerResult;
1971
- anObject$2(innerResult);
1972
- return value;
1973
- };
1974
-
1975
- var bind = functionBindContext;
1976
- var call$2 = functionCall;
1977
- var anObject$1 = anObject$7;
1978
- var tryToString = tryToString$4;
1979
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
1980
- var lengthOfArrayLike = lengthOfArrayLike$2;
1981
- var isPrototypeOf = objectIsPrototypeOf;
1982
- var getIterator = getIterator$1;
1983
- var getIteratorMethod = getIteratorMethod$2;
1984
- var iteratorClose = iteratorClose$1;
1985
-
1986
- var $TypeError = TypeError;
1987
-
1988
- var Result = function (stopped, result) {
1989
- this.stopped = stopped;
1990
- this.result = result;
1991
- };
1992
-
1993
- var ResultPrototype = Result.prototype;
1994
-
1995
- var iterate$2 = function (iterable, unboundFunction, options) {
1996
- var that = options && options.that;
1997
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1998
- var IS_RECORD = !!(options && options.IS_RECORD);
1999
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2000
- var INTERRUPTED = !!(options && options.INTERRUPTED);
2001
- var fn = bind(unboundFunction, that);
2002
- var iterator, iterFn, index, length, result, next, step;
2003
-
2004
- var stop = function (condition) {
2005
- if (iterator) iteratorClose(iterator, 'normal', condition);
2006
- return new Result(true, condition);
2007
- };
2008
-
2009
- var callFn = function (value) {
2010
- if (AS_ENTRIES) {
2011
- anObject$1(value);
2012
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2013
- } return INTERRUPTED ? fn(value, stop) : fn(value);
2014
- };
2015
-
2016
- if (IS_RECORD) {
2017
- iterator = iterable.iterator;
2018
- } else if (IS_ITERATOR) {
2019
- iterator = iterable;
2020
- } else {
2021
- iterFn = getIteratorMethod(iterable);
2022
- if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
2023
- // optimisation for array iterators
2024
- if (isArrayIteratorMethod(iterFn)) {
2025
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2026
- result = callFn(iterable[index]);
2027
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
2028
- } return new Result(false);
2029
- }
2030
- iterator = getIterator(iterable, iterFn);
2031
- }
2032
-
2033
- next = IS_RECORD ? iterable.next : iterator.next;
2034
- while (!(step = call$2(next, iterator)).done) {
2035
- try {
2036
- result = callFn(step.value);
2037
- } catch (error) {
2038
- iteratorClose(iterator, 'throw', error);
2039
- }
2040
- if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
2041
- } return new Result(false);
2042
- };
2043
-
2044
- var wellKnownSymbol = wellKnownSymbol$a;
2045
-
2046
- var ITERATOR = wellKnownSymbol('iterator');
2047
- var SAFE_CLOSING = false;
2048
-
2049
- try {
2050
- var called = 0;
2051
- var iteratorWithReturn = {
2052
- next: function () {
2053
- return { done: !!called++ };
2054
- },
2055
- 'return': function () {
2056
- SAFE_CLOSING = true;
2057
- }
2058
- };
2059
- iteratorWithReturn[ITERATOR] = function () {
2060
- return this;
2061
- };
2062
- // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
2063
- Array.from(iteratorWithReturn, function () { throw 2; });
2064
- } catch (error) { /* empty */ }
2065
-
2066
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
2067
- try {
2068
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
2069
- } catch (error) { return false; } // workaround of old WebKit + `eval` bug
2070
- var ITERATION_SUPPORT = false;
2071
- try {
2072
- var object = {};
2073
- object[ITERATOR] = function () {
2074
- return {
2075
- next: function () {
2076
- return { done: ITERATION_SUPPORT = true };
2077
- }
2078
- };
2079
- };
2080
- exec(object);
2081
- } catch (error) { /* empty */ }
2082
- return ITERATION_SUPPORT;
2083
- };
2084
-
2085
- var NativePromiseConstructor$1 = promiseNativeConstructor;
2086
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
2087
- var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
2088
-
2089
- var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
2090
- NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2091
- });
2092
-
2093
- var $$4 = _export;
2094
- var call$1 = functionCall;
2095
- var aCallable$1 = aCallable$8;
2096
- var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2097
- var perform$1 = perform$3;
2098
- var iterate$1 = iterate$2;
2099
- var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2100
-
2101
- // `Promise.all` method
2102
- // https://tc39.es/ecma262/#sec-promise.all
2103
- $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2104
- all: function all(iterable) {
2105
- var C = this;
2106
- var capability = newPromiseCapabilityModule$2.f(C);
2107
- var resolve = capability.resolve;
2108
- var reject = capability.reject;
2109
- var result = perform$1(function () {
2110
- var $promiseResolve = aCallable$1(C.resolve);
2111
- var values = [];
2112
- var counter = 0;
2113
- var remaining = 1;
2114
- iterate$1(iterable, function (promise) {
2115
- var index = counter++;
2116
- var alreadyCalled = false;
2117
- remaining++;
2118
- call$1($promiseResolve, C, promise).then(function (value) {
2119
- if (alreadyCalled) return;
2120
- alreadyCalled = true;
2121
- values[index] = value;
2122
- --remaining || resolve(values);
2123
- }, reject);
2124
- });
2125
- --remaining || resolve(values);
2126
- });
2127
- if (result.error) reject(result.value);
2128
- return capability.promise;
2129
- }
2130
- });
2131
-
2132
- var $$3 = _export;
2133
- var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2134
- var NativePromiseConstructor = promiseNativeConstructor;
2135
- var getBuiltIn$1 = getBuiltIn$7;
2136
- var isCallable = isCallable$g;
2137
- var defineBuiltIn = defineBuiltIn$3;
2138
-
2139
- var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
2140
-
2141
- // `Promise.prototype.catch` method
2142
- // https://tc39.es/ecma262/#sec-promise.prototype.catch
2143
- $$3({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2144
- 'catch': function (onRejected) {
2145
- return this.then(undefined, onRejected);
2146
- }
2147
- });
2148
-
2149
- // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2150
- if (isCallable(NativePromiseConstructor)) {
2151
- var method = getBuiltIn$1('Promise').prototype['catch'];
2152
- if (NativePromisePrototype['catch'] !== method) {
2153
- defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
2154
- }
2155
- }
2156
-
2157
- var $$2 = _export;
2158
- var call = functionCall;
2159
- var aCallable = aCallable$8;
2160
- var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2161
- var perform = perform$3;
2162
- var iterate = iterate$2;
2163
- var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2164
-
2165
- // `Promise.race` method
2166
- // https://tc39.es/ecma262/#sec-promise.race
2167
- $$2({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2168
- race: function race(iterable) {
2169
- var C = this;
2170
- var capability = newPromiseCapabilityModule$1.f(C);
2171
- var reject = capability.reject;
2172
- var result = perform(function () {
2173
- var $promiseResolve = aCallable(C.resolve);
2174
- iterate(iterable, function (promise) {
2175
- call($promiseResolve, C, promise).then(capability.resolve, reject);
2176
- });
2177
- });
2178
- if (result.error) reject(result.value);
2179
- return capability.promise;
2180
- }
2181
- });
2182
-
2183
- var $$1 = _export;
2184
- var newPromiseCapabilityModule = newPromiseCapability$2;
2185
- var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2186
-
2187
- // `Promise.reject` method
2188
- // https://tc39.es/ecma262/#sec-promise.reject
2189
- $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2190
- reject: function reject(r) {
2191
- var capability = newPromiseCapabilityModule.f(this);
2192
- var capabilityReject = capability.reject;
2193
- capabilityReject(r);
2194
- return capability.promise;
2195
- }
2196
- });
2197
-
2198
- var anObject = anObject$7;
2199
- var isObject = isObject$9;
2200
- var newPromiseCapability = newPromiseCapability$2;
2201
-
2202
- var promiseResolve$1 = function (C, x) {
2203
- anObject(C);
2204
- if (isObject(x) && x.constructor === C) return x;
2205
- var promiseCapability = newPromiseCapability.f(C);
2206
- var resolve = promiseCapability.resolve;
2207
- resolve(x);
2208
- return promiseCapability.promise;
2209
- };
2210
-
2211
- var $ = _export;
2212
- var getBuiltIn = getBuiltIn$7;
2213
- var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2214
- var promiseResolve = promiseResolve$1;
2215
-
2216
- getBuiltIn('Promise');
2217
-
2218
- // `Promise.resolve` method
2219
- // https://tc39.es/ecma262/#sec-promise.resolve
2220
- $({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2221
- resolve: function resolve(x) {
2222
- return promiseResolve(this, x);
2223
- }
2224
- });
2225
-
2226
5
  /* *
2227
6
  * Licensed under the Apache License, Version 2.0 (the "License");
2228
7
  * you may not use this file except in compliance with the License.
@@ -2245,27 +24,15 @@ const getHeaders = auth => ({
2245
24
  Authorization: `Bearer ${auth.token}`,
2246
25
  Accept: 'application/json'
2247
26
  });
2248
-
2249
- const config = getConfig();
2250
- const airmetBaseUrl = config.GW_AIRMET_BASE_URL;
2251
- const sigmetBaseUrl = config.GW_SIGMET_BASE_URL;
2252
- // API
2253
- const getAirmetList = auth => fetch(`${airmetBaseUrl}/airmetlist`, {
2254
- headers: getHeaders(auth)
2255
- }).then(r => r.json());
2256
- const getSigmetList = auth => fetch(`${sigmetBaseUrl}/sigmetlist`, {
2257
- headers: getHeaders(auth)
2258
- }).then(r => r.json());
2259
- const getlocalProductConfig = configUrl => fetch(`/assets/${configUrl}`).then(r => r.json());
2260
- const getAirmetConfig = auth => {
2261
- return fetch(`${airmetBaseUrl}/airmet-config`, {
2262
- headers: getHeaders(auth)
2263
- }).then(r => r.json());
2264
- };
2265
- const getSigmetConfig = auth => {
2266
- return fetch(`${sigmetBaseUrl}/sigmet-config`, {
2267
- headers: getHeaders(auth)
2268
- }).then(r => r.json());
27
+ const useAuthQuery = (queryKey, queryFn) => {
28
+ const {
29
+ auth
30
+ } = useAuthenticationContext();
31
+ return useQuery({
32
+ queryKey,
33
+ queryFn: () => queryFn(auth),
34
+ enabled: !!auth
35
+ });
2269
36
  };
2270
37
 
2271
38
  /* *
@@ -2411,46 +178,6 @@ var VisibilityCause;
2411
178
  VisibilityCause["VA"] = "Volcanic Ash";
2412
179
  })(VisibilityCause || (VisibilityCause = {}));
2413
180
 
2414
- /* *
2415
- * Licensed under the Apache License, Version 2.0 (the "License");
2416
- * you may not use this file except in compliance with the License.
2417
- * You may obtain a copy of the License at
2418
- *
2419
- * http://www.apache.org/licenses/LICENSE-2.0
2420
- *
2421
- * Unless required by applicable law or agreed to in writing, software
2422
- * distributed under the License is distributed on an "AS IS" BASIS,
2423
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2424
- * See the License for the specific language governing permissions and
2425
- * limitations under the License.
2426
- *
2427
- * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2428
- * Copyright 2024 - Finnish Meteorological Institute (FMI)
2429
- * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2430
- * */
2431
- const useAirmetList = () => {
2432
- const {
2433
- auth
2434
- } = useAuthenticationContext();
2435
- const data = useQuery({
2436
- queryKey: ['airmet-list'],
2437
- queryFn: () => getAirmetList(auth),
2438
- enabled: !!auth
2439
- });
2440
- return data;
2441
- };
2442
- const useSigmetList = () => {
2443
- const {
2444
- auth
2445
- } = useAuthenticationContext();
2446
- const data = useQuery({
2447
- queryKey: ['sigmet-list'],
2448
- queryFn: () => getSigmetList(auth),
2449
- enabled: !!auth
2450
- });
2451
- return data;
2452
- };
2453
-
2454
181
  /* *
2455
182
  * Licensed under the Apache License, Version 2.0 (the "License");
2456
183
  * you may not use this file except in compliance with the License.
@@ -2471,4 +198,4 @@ const useSigmetList = () => {
2471
198
  const API_NAMESPACE = 'api';
2472
199
  // Initialize and create provider if needed
2473
200
 
2474
- export { API_NAMESPACE, AirmetPhenomena, CloudLevelUnits, Direction, LevelUnits, MovementUnit, ProductStatus, SigmetPhenomena, VisibilityCause, WindUnit, getAirmetConfig, getAirmetList, getSigmetConfig, getSigmetList, getlocalProductConfig, useAirmetList, useSigmetList };
201
+ export { API_NAMESPACE, AirmetPhenomena, CloudLevelUnits, Direction, LevelUnits, MovementUnit, ProductStatus, SigmetPhenomena, VisibilityCause, WindUnit, getHeaders, useAuthQuery };