@sebgroup/green-react 1.13.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/index.esm.d.ts +1 -0
  2. package/{index.js → index.esm.js} +1737 -717
  3. package/package.json +6 -6
  4. package/src/lib/accordion/accordion-item.d.ts +1 -1
  5. package/src/lib/accordion/accordion.d.ts +1 -1
  6. package/src/lib/alert-ribbon/alert-ribbon.d.ts +1 -1
  7. package/src/lib/badge/badge.d.ts +1 -1
  8. package/src/lib/card/card.d.ts +1 -1
  9. package/src/lib/datepicker/datepicker.d.ts +1 -1
  10. package/src/lib/dropdown/dropdown.d.ts +52 -2
  11. package/src/lib/form/button/button.d.ts +1 -1
  12. package/src/lib/form/buttonGroup/buttonGroup.d.ts +1 -1
  13. package/src/lib/form/formContext.d.ts +1 -1
  14. package/src/lib/form/group/group.d.ts +1 -1
  15. package/src/lib/form/iconButton/iconButton.d.ts +1 -1
  16. package/src/lib/form/input/input.d.ts +1 -1
  17. package/src/lib/form/radioButton/radioGroup.d.ts +1 -1
  18. package/src/lib/form/text/text.d.ts +1 -1
  19. package/src/lib/formItem/formItem.d.ts +1 -1
  20. package/src/lib/icons/bankId.d.ts +1 -1
  21. package/src/lib/icons/check.d.ts +1 -1
  22. package/src/lib/icons/chevronDown.d.ts +1 -1
  23. package/src/lib/icons/infoCircle.d.ts +1 -1
  24. package/src/lib/icons/square-exclamation.d.ts +1 -1
  25. package/src/lib/icons/square-info.d.ts +1 -1
  26. package/src/lib/icons/times.d.ts +1 -1
  27. package/src/lib/layout/flexbox/flexbox.d.ts +1 -1
  28. package/src/lib/link/link.d.ts +1 -1
  29. package/src/lib/list/list.d.ts +1 -1
  30. package/src/lib/list/listItem.d.ts +1 -1
  31. package/src/lib/list/valueList.d.ts +6 -6
  32. package/src/lib/modal/modal.d.ts +1 -1
  33. package/src/lib/navbar/navbar.d.ts +1 -1
  34. package/src/lib/select/select.d.ts +4 -4
  35. package/src/lib/slider/slider.d.ts +1 -1
  36. package/src/lib/stepper/stepper.d.ts +1 -1
  37. package/src/lib/tabs/tabs.d.ts +1 -1
  38. package/src/types/props/index.d.ts +1 -0
  39. package/src/lib/dropdown/hooks.d.ts +0 -29
@@ -1,11 +1,13 @@
1
1
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
2
  import React, { useState, useEffect, useRef, useLayoutEffect, useMemo } from 'react';
3
- import { randomId, createDatepicker, createDropdown, dropdownValues, months, years, debounce, validateClassName, delay, sliderColors, getSliderTrackBackground, createStepper } from '@sebgroup/extract';
3
+ import { randomId, createDatepicker, months, years, debounce, validateClassName, delay, sliderColors, getSliderTrackBackground, createStepper } from '@sebgroup/extract';
4
+ import { getScopedTagName, GdsDropdown, GdsOption } from '@sebgroup/green-core';
5
+ import { registerTransitionalStyles } from '@sebgroup/green-core/transitional-styles';
4
6
  import classNames from 'classnames';
5
7
 
6
8
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
7
9
 
8
- var fails$d = function (exec) {
10
+ var fails$g = function (exec) {
9
11
  try {
10
12
  return !!exec();
11
13
  } catch (error) {
@@ -13,83 +15,83 @@ var fails$d = function (exec) {
13
15
  }
14
16
  };
15
17
 
16
- var fails$c = fails$d;
18
+ var fails$f = fails$g;
17
19
 
18
- var functionBindNative = !fails$c(function () {
20
+ var functionBindNative = !fails$f(function () {
19
21
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
20
22
  var test = (function () { /* empty */ }).bind();
21
23
  // eslint-disable-next-line no-prototype-builtins -- safe
22
24
  return typeof test != 'function' || test.hasOwnProperty('prototype');
23
25
  });
24
26
 
25
- var NATIVE_BIND$1 = functionBindNative;
27
+ var NATIVE_BIND$3 = functionBindNative;
26
28
 
27
- var FunctionPrototype$1 = Function.prototype;
28
- var call$7 = FunctionPrototype$1.call;
29
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$7, call$7);
29
+ var FunctionPrototype$2 = Function.prototype;
30
+ var call$f = FunctionPrototype$2.call;
31
+ var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$f, call$f);
30
32
 
31
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
33
+ var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
32
34
  return function () {
33
- return call$7.apply(fn, arguments);
35
+ return call$f.apply(fn, arguments);
34
36
  };
35
37
  };
36
38
 
37
- var uncurryThis$d = functionUncurryThis;
39
+ var uncurryThis$i = functionUncurryThis;
38
40
 
39
- var toString$5 = uncurryThis$d({}.toString);
40
- var stringSlice$2 = uncurryThis$d(''.slice);
41
+ var toString$6 = uncurryThis$i({}.toString);
42
+ var stringSlice$2 = uncurryThis$i(''.slice);
41
43
 
42
- var classofRaw$1 = function (it) {
43
- return stringSlice$2(toString$5(it), 8, -1);
44
+ var classofRaw$2 = function (it) {
45
+ return stringSlice$2(toString$6(it), 8, -1);
44
46
  };
45
47
 
46
- var uncurryThis$c = functionUncurryThis;
47
- var fails$b = fails$d;
48
- var classof$2 = classofRaw$1;
48
+ var uncurryThis$h = functionUncurryThis;
49
+ var fails$e = fails$g;
50
+ var classof$6 = classofRaw$2;
49
51
 
50
52
  var $Object$4 = Object;
51
- var split = uncurryThis$c(''.split);
53
+ var split = uncurryThis$h(''.split);
52
54
 
53
55
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
54
- var indexedObject = fails$b(function () {
56
+ var indexedObject = fails$e(function () {
55
57
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
56
58
  // eslint-disable-next-line no-prototype-builtins -- safe
57
59
  return !$Object$4('z').propertyIsEnumerable(0);
58
60
  }) ? function (it) {
59
- return classof$2(it) == 'String' ? split(it, '') : $Object$4(it);
61
+ return classof$6(it) === 'String' ? split(it, '') : $Object$4(it);
60
62
  } : $Object$4;
61
63
 
62
64
  // we can't use just `it == null` since of `document.all` special case
63
65
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
64
- var isNullOrUndefined$2 = function (it) {
66
+ var isNullOrUndefined$4 = function (it) {
65
67
  return it === null || it === undefined;
66
68
  };
67
69
 
68
- var isNullOrUndefined$1 = isNullOrUndefined$2;
70
+ var isNullOrUndefined$3 = isNullOrUndefined$4;
69
71
 
70
- var $TypeError$6 = TypeError;
72
+ var $TypeError$d = TypeError;
71
73
 
72
74
  // `RequireObjectCoercible` abstract operation
73
75
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
74
- var requireObjectCoercible$3 = function (it) {
75
- if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it);
76
+ var requireObjectCoercible$4 = function (it) {
77
+ if (isNullOrUndefined$3(it)) throw new $TypeError$d("Can't call method on " + it);
76
78
  return it;
77
79
  };
78
80
 
79
81
  // toObject with fallback for non-array-like ES3 strings
80
82
  var IndexedObject$1 = indexedObject;
81
- var requireObjectCoercible$2 = requireObjectCoercible$3;
83
+ var requireObjectCoercible$3 = requireObjectCoercible$4;
82
84
 
83
85
  var toIndexedObject$5 = function (it) {
84
- return IndexedObject$1(requireObjectCoercible$2(it));
86
+ return IndexedObject$1(requireObjectCoercible$3(it));
85
87
  };
86
88
 
87
89
  var check = function (it) {
88
- return it && it.Math == Math && it;
90
+ return it && it.Math === Math && it;
89
91
  };
90
92
 
91
93
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
92
- var global$d =
94
+ var global$k =
93
95
  // eslint-disable-next-line es/no-global-this -- safe
94
96
  check(typeof globalThis == 'object' && globalThis) ||
95
97
  check(typeof window == 'object' && window) ||
@@ -97,28 +99,28 @@ var global$d =
97
99
  check(typeof self == 'object' && self) ||
98
100
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
99
101
  // eslint-disable-next-line no-new-func -- fallback
100
- (function () { return this; })() || Function('return this')();
102
+ (function () { return this; })() || commonjsGlobal || Function('return this')();
101
103
 
102
104
  var shared$3 = {exports: {}};
103
105
 
104
- var global$c = global$d;
106
+ var global$j = global$k;
105
107
 
106
108
  // eslint-disable-next-line es/no-object-defineproperty -- safe
107
109
  var defineProperty$6 = Object.defineProperty;
108
110
 
109
111
  var defineGlobalProperty$3 = function (key, value) {
110
112
  try {
111
- defineProperty$6(global$c, key, { value: value, configurable: true, writable: true });
113
+ defineProperty$6(global$j, key, { value: value, configurable: true, writable: true });
112
114
  } catch (error) {
113
- global$c[key] = value;
115
+ global$j[key] = value;
114
116
  } return value;
115
117
  };
116
118
 
117
- var global$b = global$d;
119
+ var global$i = global$k;
118
120
  var defineGlobalProperty$2 = defineGlobalProperty$3;
119
121
 
120
122
  var SHARED = '__core-js_shared__';
121
- var store$3 = global$b[SHARED] || defineGlobalProperty$2(SHARED, {});
123
+ var store$3 = global$i[SHARED] || defineGlobalProperty$2(SHARED, {});
122
124
 
123
125
  var sharedStore = store$3;
124
126
 
@@ -127,27 +129,27 @@ var store$2 = sharedStore;
127
129
  (shared$3.exports = function (key, value) {
128
130
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
129
131
  })('versions', []).push({
130
- version: '3.30.1',
132
+ version: '3.33.1',
131
133
  mode: 'global',
132
134
  copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
133
- license: 'https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE',
135
+ license: 'https://github.com/zloirock/core-js/blob/v3.33.1/LICENSE',
134
136
  source: 'https://github.com/zloirock/core-js'
135
137
  });
136
138
 
137
- var requireObjectCoercible$1 = requireObjectCoercible$3;
139
+ var requireObjectCoercible$2 = requireObjectCoercible$4;
138
140
 
139
141
  var $Object$3 = Object;
140
142
 
141
143
  // `ToObject` abstract operation
142
144
  // https://tc39.es/ecma262/#sec-toobject
143
145
  var toObject$3 = function (argument) {
144
- return $Object$3(requireObjectCoercible$1(argument));
146
+ return $Object$3(requireObjectCoercible$2(argument));
145
147
  };
146
148
 
147
- var uncurryThis$b = functionUncurryThis;
149
+ var uncurryThis$g = functionUncurryThis;
148
150
  var toObject$2 = toObject$3;
149
151
 
150
- var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
152
+ var hasOwnProperty = uncurryThis$g({}.hasOwnProperty);
151
153
 
152
154
  // `HasOwnProperty` abstract operation
153
155
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -156,24 +158,24 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
156
158
  return hasOwnProperty(toObject$2(it), key);
157
159
  };
158
160
 
159
- var uncurryThis$a = functionUncurryThis;
161
+ var uncurryThis$f = functionUncurryThis;
160
162
 
161
163
  var id = 0;
162
164
  var postfix = Math.random();
163
- var toString$4 = uncurryThis$a(1.0.toString);
165
+ var toString$5 = uncurryThis$f(1.0.toString);
164
166
 
165
167
  var uid$2 = function (key) {
166
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
168
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
167
169
  };
168
170
 
169
171
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
170
172
 
171
- var global$a = global$d;
172
- var userAgent = engineUserAgent;
173
+ var global$h = global$k;
174
+ var userAgent$3 = engineUserAgent;
173
175
 
174
- var process = global$a.process;
175
- var Deno = global$a.Deno;
176
- var versions = process && process.versions || Deno && Deno.version;
176
+ var process$3 = global$h.process;
177
+ var Deno$1 = global$h.Deno;
178
+ var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
177
179
  var v8 = versions && versions.v8;
178
180
  var match, version;
179
181
 
@@ -186,10 +188,10 @@ if (v8) {
186
188
 
187
189
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
188
190
  // so check `userAgent` even if `.v8` exists, but 0
189
- if (!version && userAgent) {
190
- match = userAgent.match(/Edge\/(\d+)/);
191
+ if (!version && userAgent$3) {
192
+ match = userAgent$3.match(/Edge\/(\d+)/);
191
193
  if (!match || match[1] >= 74) {
192
- match = userAgent.match(/Chrome\/(\d+)/);
194
+ match = userAgent$3.match(/Chrome\/(\d+)/);
193
195
  if (match) version = +match[1];
194
196
  }
195
197
  }
@@ -197,42 +199,45 @@ if (!version && userAgent) {
197
199
  var engineV8Version = version;
198
200
 
199
201
  /* eslint-disable es/no-symbol -- required for testing */
202
+ var V8_VERSION$1 = engineV8Version;
203
+ var fails$d = fails$g;
204
+ var global$g = global$k;
200
205
 
201
- var V8_VERSION = engineV8Version;
202
- var fails$a = fails$d;
206
+ var $String$5 = global$g.String;
203
207
 
204
208
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
205
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$a(function () {
206
- var symbol = Symbol();
209
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$d(function () {
210
+ var symbol = Symbol('symbol detection');
207
211
  // Chrome 38 Symbol has incorrect toString conversion
208
212
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
209
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
213
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
214
+ // of course, fail.
215
+ return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
210
216
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
211
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
217
+ !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
212
218
  });
213
219
 
214
220
  /* eslint-disable es/no-symbol -- required for testing */
215
-
216
221
  var NATIVE_SYMBOL$2 = symbolConstructorDetection;
217
222
 
218
223
  var useSymbolAsUid = NATIVE_SYMBOL$2
219
224
  && !Symbol.sham
220
225
  && typeof Symbol.iterator == 'symbol';
221
226
 
222
- var global$9 = global$d;
227
+ var global$f = global$k;
223
228
  var shared$2 = shared$3.exports;
224
- var hasOwn$a = hasOwnProperty_1;
229
+ var hasOwn$b = hasOwnProperty_1;
225
230
  var uid$1 = uid$2;
226
231
  var NATIVE_SYMBOL$1 = symbolConstructorDetection;
227
232
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
228
233
 
229
- var Symbol$2 = global$9.Symbol;
234
+ var Symbol$2 = global$f.Symbol;
230
235
  var WellKnownSymbolsStore = shared$2('wks');
231
236
  var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
232
237
 
233
- var wellKnownSymbol$8 = function (name) {
234
- if (!hasOwn$a(WellKnownSymbolsStore, name)) {
235
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$a(Symbol$2, name)
238
+ var wellKnownSymbol$g = function (name) {
239
+ if (!hasOwn$b(WellKnownSymbolsStore, name)) {
240
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$b(Symbol$2, name)
236
241
  ? Symbol$2[name]
237
242
  : createWellKnownSymbol('Symbol.' + name);
238
243
  } return WellKnownSymbolsStore[name];
@@ -255,108 +260,108 @@ var documentAll$1 = $documentAll$1.all;
255
260
 
256
261
  // `IsCallable` abstract operation
257
262
  // https://tc39.es/ecma262/#sec-iscallable
258
- var isCallable$g = $documentAll$1.IS_HTMLDDA ? function (argument) {
263
+ var isCallable$l = $documentAll$1.IS_HTMLDDA ? function (argument) {
259
264
  return typeof argument == 'function' || argument === documentAll$1;
260
265
  } : function (argument) {
261
266
  return typeof argument == 'function';
262
267
  };
263
268
 
264
- var isCallable$f = isCallable$g;
269
+ var isCallable$k = isCallable$l;
265
270
  var $documentAll = documentAll_1;
266
271
 
267
272
  var documentAll = $documentAll.all;
268
273
 
269
- var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
270
- return typeof it == 'object' ? it !== null : isCallable$f(it) || it === documentAll;
274
+ var isObject$9 = $documentAll.IS_HTMLDDA ? function (it) {
275
+ return typeof it == 'object' ? it !== null : isCallable$k(it) || it === documentAll;
271
276
  } : function (it) {
272
- return typeof it == 'object' ? it !== null : isCallable$f(it);
277
+ return typeof it == 'object' ? it !== null : isCallable$k(it);
273
278
  };
274
279
 
275
- var isObject$5 = isObject$6;
280
+ var isObject$8 = isObject$9;
276
281
 
277
282
  var $String$4 = String;
278
- var $TypeError$5 = TypeError;
283
+ var $TypeError$c = TypeError;
279
284
 
280
285
  // `Assert: Type(argument) is Object`
281
- var anObject$7 = function (argument) {
282
- if (isObject$5(argument)) return argument;
283
- throw $TypeError$5($String$4(argument) + ' is not an object');
286
+ var anObject$c = function (argument) {
287
+ if (isObject$8(argument)) return argument;
288
+ throw new $TypeError$c($String$4(argument) + ' is not an object');
284
289
  };
285
290
 
286
291
  var objectDefineProperties = {};
287
292
 
288
- var fails$9 = fails$d;
293
+ var fails$c = fails$g;
289
294
 
290
295
  // Detect IE8's incomplete defineProperty implementation
291
- var descriptors = !fails$9(function () {
296
+ var descriptors = !fails$c(function () {
292
297
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
293
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
298
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
294
299
  });
295
300
 
296
- var DESCRIPTORS$a = descriptors;
297
- var fails$8 = fails$d;
301
+ var DESCRIPTORS$b = descriptors;
302
+ var fails$b = fails$g;
298
303
 
299
304
  // V8 ~ Chrome 36-
300
305
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
301
- var v8PrototypeDefineBug = DESCRIPTORS$a && fails$8(function () {
306
+ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$b(function () {
302
307
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
303
308
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
304
309
  value: 42,
305
310
  writable: false
306
- }).prototype != 42;
311
+ }).prototype !== 42;
307
312
  });
308
313
 
309
314
  var objectDefineProperty = {};
310
315
 
311
- var global$8 = global$d;
312
- var isObject$4 = isObject$6;
316
+ var global$e = global$k;
317
+ var isObject$7 = isObject$9;
313
318
 
314
- var document$1 = global$8.document;
319
+ var document$3 = global$e.document;
315
320
  // typeof document.createElement is 'object' in old IE
316
- var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
321
+ var EXISTS$1 = isObject$7(document$3) && isObject$7(document$3.createElement);
317
322
 
318
323
  var documentCreateElement$2 = function (it) {
319
- return EXISTS$1 ? document$1.createElement(it) : {};
324
+ return EXISTS$1 ? document$3.createElement(it) : {};
320
325
  };
321
326
 
322
- var DESCRIPTORS$9 = descriptors;
323
- var fails$7 = fails$d;
324
- var createElement = documentCreateElement$2;
327
+ var DESCRIPTORS$a = descriptors;
328
+ var fails$a = fails$g;
329
+ var createElement$1 = documentCreateElement$2;
325
330
 
326
331
  // Thanks to IE8 for its funny defineProperty
327
- var ie8DomDefine = !DESCRIPTORS$9 && !fails$7(function () {
332
+ var ie8DomDefine = !DESCRIPTORS$a && !fails$a(function () {
328
333
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
329
- return Object.defineProperty(createElement('div'), 'a', {
334
+ return Object.defineProperty(createElement$1('div'), 'a', {
330
335
  get: function () { return 7; }
331
- }).a != 7;
336
+ }).a !== 7;
332
337
  });
333
338
 
334
- var NATIVE_BIND = functionBindNative;
339
+ var NATIVE_BIND$2 = functionBindNative;
335
340
 
336
- var call$6 = Function.prototype.call;
341
+ var call$e = Function.prototype.call;
337
342
 
338
- var functionCall = NATIVE_BIND ? call$6.bind(call$6) : function () {
339
- return call$6.apply(call$6, arguments);
343
+ var functionCall = NATIVE_BIND$2 ? call$e.bind(call$e) : function () {
344
+ return call$e.apply(call$e, arguments);
340
345
  };
341
346
 
342
- var global$7 = global$d;
343
- var isCallable$e = isCallable$g;
347
+ var global$d = global$k;
348
+ var isCallable$j = isCallable$l;
344
349
 
345
350
  var aFunction = function (argument) {
346
- return isCallable$e(argument) ? argument : undefined;
351
+ return isCallable$j(argument) ? argument : undefined;
347
352
  };
348
353
 
349
- var getBuiltIn$3 = function (namespace, method) {
350
- return arguments.length < 2 ? aFunction(global$7[namespace]) : global$7[namespace] && global$7[namespace][method];
354
+ var getBuiltIn$7 = function (namespace, method) {
355
+ return arguments.length < 2 ? aFunction(global$d[namespace]) : global$d[namespace] && global$d[namespace][method];
351
356
  };
352
357
 
353
- var uncurryThis$9 = functionUncurryThis;
358
+ var uncurryThis$e = functionUncurryThis;
354
359
 
355
- var objectIsPrototypeOf = uncurryThis$9({}.isPrototypeOf);
360
+ var objectIsPrototypeOf = uncurryThis$e({}.isPrototypeOf);
356
361
 
357
- var getBuiltIn$2 = getBuiltIn$3;
358
- var isCallable$d = isCallable$g;
359
- var isPrototypeOf$2 = objectIsPrototypeOf;
362
+ var getBuiltIn$6 = getBuiltIn$7;
363
+ var isCallable$i = isCallable$l;
364
+ var isPrototypeOf$4 = objectIsPrototypeOf;
360
365
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
361
366
 
362
367
  var $Object$2 = Object;
@@ -364,13 +369,13 @@ var $Object$2 = Object;
364
369
  var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
365
370
  return typeof it == 'symbol';
366
371
  } : function (it) {
367
- var $Symbol = getBuiltIn$2('Symbol');
368
- return isCallable$d($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
372
+ var $Symbol = getBuiltIn$6('Symbol');
373
+ return isCallable$i($Symbol) && isPrototypeOf$4($Symbol.prototype, $Object$2(it));
369
374
  };
370
375
 
371
376
  var $String$3 = String;
372
377
 
373
- var tryToString$1 = function (argument) {
378
+ var tryToString$4 = function (argument) {
374
379
  try {
375
380
  return $String$3(argument);
376
381
  } catch (error) {
@@ -378,64 +383,64 @@ var tryToString$1 = function (argument) {
378
383
  }
379
384
  };
380
385
 
381
- var isCallable$c = isCallable$g;
382
- var tryToString = tryToString$1;
386
+ var isCallable$h = isCallable$l;
387
+ var tryToString$3 = tryToString$4;
383
388
 
384
- var $TypeError$4 = TypeError;
389
+ var $TypeError$b = TypeError;
385
390
 
386
391
  // `Assert: IsCallable(argument) is true`
387
- var aCallable$2 = function (argument) {
388
- if (isCallable$c(argument)) return argument;
389
- throw $TypeError$4(tryToString(argument) + ' is not a function');
392
+ var aCallable$8 = function (argument) {
393
+ if (isCallable$h(argument)) return argument;
394
+ throw new $TypeError$b(tryToString$3(argument) + ' is not a function');
390
395
  };
391
396
 
392
- var aCallable$1 = aCallable$2;
393
- var isNullOrUndefined = isNullOrUndefined$2;
397
+ var aCallable$7 = aCallable$8;
398
+ var isNullOrUndefined$2 = isNullOrUndefined$4;
394
399
 
395
400
  // `GetMethod` abstract operation
396
401
  // https://tc39.es/ecma262/#sec-getmethod
397
- var getMethod$1 = function (V, P) {
402
+ var getMethod$3 = function (V, P) {
398
403
  var func = V[P];
399
- return isNullOrUndefined(func) ? undefined : aCallable$1(func);
404
+ return isNullOrUndefined$2(func) ? undefined : aCallable$7(func);
400
405
  };
401
406
 
402
- var call$5 = functionCall;
403
- var isCallable$b = isCallable$g;
404
- var isObject$3 = isObject$6;
407
+ var call$d = functionCall;
408
+ var isCallable$g = isCallable$l;
409
+ var isObject$6 = isObject$9;
405
410
 
406
- var $TypeError$3 = TypeError;
411
+ var $TypeError$a = TypeError;
407
412
 
408
413
  // `OrdinaryToPrimitive` abstract operation
409
414
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
410
415
  var ordinaryToPrimitive$1 = function (input, pref) {
411
416
  var fn, val;
412
- if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$3(val = call$5(fn, input))) return val;
413
- if (isCallable$b(fn = input.valueOf) && !isObject$3(val = call$5(fn, input))) return val;
414
- if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$3(val = call$5(fn, input))) return val;
415
- throw $TypeError$3("Can't convert object to primitive value");
417
+ if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$6(val = call$d(fn, input))) return val;
418
+ if (isCallable$g(fn = input.valueOf) && !isObject$6(val = call$d(fn, input))) return val;
419
+ if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$6(val = call$d(fn, input))) return val;
420
+ throw new $TypeError$a("Can't convert object to primitive value");
416
421
  };
417
422
 
418
- var call$4 = functionCall;
419
- var isObject$2 = isObject$6;
423
+ var call$c = functionCall;
424
+ var isObject$5 = isObject$9;
420
425
  var isSymbol$1 = isSymbol$2;
421
- var getMethod = getMethod$1;
426
+ var getMethod$2 = getMethod$3;
422
427
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
423
- var wellKnownSymbol$7 = wellKnownSymbol$8;
428
+ var wellKnownSymbol$f = wellKnownSymbol$g;
424
429
 
425
- var $TypeError$2 = TypeError;
426
- var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
430
+ var $TypeError$9 = TypeError;
431
+ var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive');
427
432
 
428
433
  // `ToPrimitive` abstract operation
429
434
  // https://tc39.es/ecma262/#sec-toprimitive
430
435
  var toPrimitive$1 = function (input, pref) {
431
- if (!isObject$2(input) || isSymbol$1(input)) return input;
432
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
436
+ if (!isObject$5(input) || isSymbol$1(input)) return input;
437
+ var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
433
438
  var result;
434
439
  if (exoticToPrim) {
435
440
  if (pref === undefined) pref = 'default';
436
- result = call$4(exoticToPrim, input, pref);
437
- if (!isObject$2(result) || isSymbol$1(result)) return result;
438
- throw $TypeError$2("Can't convert object to primitive value");
441
+ result = call$c(exoticToPrim, input, pref);
442
+ if (!isObject$5(result) || isSymbol$1(result)) return result;
443
+ throw new $TypeError$9("Can't convert object to primitive value");
439
444
  }
440
445
  if (pref === undefined) pref = 'number';
441
446
  return ordinaryToPrimitive(input, pref);
@@ -451,13 +456,13 @@ var toPropertyKey$2 = function (argument) {
451
456
  return isSymbol(key) ? key : key + '';
452
457
  };
453
458
 
454
- var DESCRIPTORS$8 = descriptors;
459
+ var DESCRIPTORS$9 = descriptors;
455
460
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
456
461
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
457
- var anObject$6 = anObject$7;
462
+ var anObject$b = anObject$c;
458
463
  var toPropertyKey$1 = toPropertyKey$2;
459
464
 
460
- var $TypeError$1 = TypeError;
465
+ var $TypeError$8 = TypeError;
461
466
  // eslint-disable-next-line es/no-object-defineproperty -- safe
462
467
  var $defineProperty = Object.defineProperty;
463
468
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -468,10 +473,10 @@ var WRITABLE = 'writable';
468
473
 
469
474
  // `Object.defineProperty` method
470
475
  // https://tc39.es/ecma262/#sec-object.defineproperty
471
- objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
472
- anObject$6(O);
476
+ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
477
+ anObject$b(O);
473
478
  P = toPropertyKey$1(P);
474
- anObject$6(Attributes);
479
+ anObject$b(Attributes);
475
480
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
476
481
  var current = $getOwnPropertyDescriptor$1(O, P);
477
482
  if (current && current[WRITABLE]) {
@@ -484,13 +489,13 @@ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
484
489
  }
485
490
  } return $defineProperty(O, P, Attributes);
486
491
  } : $defineProperty : function defineProperty(O, P, Attributes) {
487
- anObject$6(O);
492
+ anObject$b(O);
488
493
  P = toPropertyKey$1(P);
489
- anObject$6(Attributes);
494
+ anObject$b(Attributes);
490
495
  if (IE8_DOM_DEFINE$1) try {
491
496
  return $defineProperty(O, P, Attributes);
492
497
  } catch (error) { /* empty */ }
493
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
498
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$8('Accessors not supported');
494
499
  if ('value' in Attributes) O[P] = Attributes.value;
495
500
  return O;
496
501
  };
@@ -543,27 +548,27 @@ var toLength = toLength$1;
543
548
 
544
549
  // `LengthOfArrayLike` abstract operation
545
550
  // https://tc39.es/ecma262/#sec-lengthofarraylike
546
- var lengthOfArrayLike$1 = function (obj) {
551
+ var lengthOfArrayLike$2 = function (obj) {
547
552
  return toLength(obj.length);
548
553
  };
549
554
 
550
555
  var toIndexedObject$4 = toIndexedObject$5;
551
556
  var toAbsoluteIndex = toAbsoluteIndex$1;
552
- var lengthOfArrayLike = lengthOfArrayLike$1;
557
+ var lengthOfArrayLike$1 = lengthOfArrayLike$2;
553
558
 
554
559
  // `Array.prototype.{ indexOf, includes }` methods implementation
555
560
  var createMethod$1 = function (IS_INCLUDES) {
556
561
  return function ($this, el, fromIndex) {
557
562
  var O = toIndexedObject$4($this);
558
- var length = lengthOfArrayLike(O);
563
+ var length = lengthOfArrayLike$1(O);
559
564
  var index = toAbsoluteIndex(fromIndex, length);
560
565
  var value;
561
566
  // Array#includes uses SameValueZero equality algorithm
562
567
  // eslint-disable-next-line no-self-compare -- NaN check
563
- if (IS_INCLUDES && el != el) while (length > index) {
568
+ if (IS_INCLUDES && el !== el) while (length > index) {
564
569
  value = O[index++];
565
570
  // eslint-disable-next-line no-self-compare -- NaN check
566
- if (value != value) return true;
571
+ if (value !== value) return true;
567
572
  // Array#indexOf ignores holes, Array#includes - not
568
573
  } else for (;length > index; index++) {
569
574
  if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
@@ -582,22 +587,22 @@ var arrayIncludes = {
582
587
 
583
588
  var hiddenKeys$4 = {};
584
589
 
585
- var uncurryThis$8 = functionUncurryThis;
586
- var hasOwn$9 = hasOwnProperty_1;
590
+ var uncurryThis$d = functionUncurryThis;
591
+ var hasOwn$a = hasOwnProperty_1;
587
592
  var toIndexedObject$3 = toIndexedObject$5;
588
593
  var indexOf = arrayIncludes.indexOf;
589
594
  var hiddenKeys$3 = hiddenKeys$4;
590
595
 
591
- var push = uncurryThis$8([].push);
596
+ var push = uncurryThis$d([].push);
592
597
 
593
598
  var objectKeysInternal = function (object, names) {
594
599
  var O = toIndexedObject$3(object);
595
600
  var i = 0;
596
601
  var result = [];
597
602
  var key;
598
- for (key in O) !hasOwn$9(hiddenKeys$3, key) && hasOwn$9(O, key) && push(result, key);
603
+ for (key in O) !hasOwn$a(hiddenKeys$3, key) && hasOwn$a(O, key) && push(result, key);
599
604
  // Don't enum bug & hidden keys
600
- while (names.length > i) if (hasOwn$9(O, key = names[i++])) {
605
+ while (names.length > i) if (hasOwn$a(O, key = names[i++])) {
601
606
  ~indexOf(result, key) || push(result, key);
602
607
  }
603
608
  return result;
@@ -624,18 +629,18 @@ var objectKeys$2 = Object.keys || function keys(O) {
624
629
  return internalObjectKeys$1(O, enumBugKeys$2);
625
630
  };
626
631
 
627
- var DESCRIPTORS$7 = descriptors;
632
+ var DESCRIPTORS$8 = descriptors;
628
633
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
629
634
  var definePropertyModule$3 = objectDefineProperty;
630
- var anObject$5 = anObject$7;
635
+ var anObject$a = anObject$c;
631
636
  var toIndexedObject$2 = toIndexedObject$5;
632
637
  var objectKeys$1 = objectKeys$2;
633
638
 
634
639
  // `Object.defineProperties` method
635
640
  // https://tc39.es/ecma262/#sec-object.defineproperties
636
641
  // 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$5(O);
642
+ objectDefineProperties.f = DESCRIPTORS$8 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
643
+ anObject$a(O);
639
644
  var props = toIndexedObject$2(Properties);
640
645
  var keys = objectKeys$1(Properties);
641
646
  var length = keys.length;
@@ -645,9 +650,9 @@ objectDefineProperties.f = DESCRIPTORS$7 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
645
650
  return O;
646
651
  };
647
652
 
648
- var getBuiltIn$1 = getBuiltIn$3;
653
+ var getBuiltIn$5 = getBuiltIn$7;
649
654
 
650
- var html$1 = getBuiltIn$1('document', 'documentElement');
655
+ var html$2 = getBuiltIn$5('document', 'documentElement');
651
656
 
652
657
  var shared$1 = shared$3.exports;
653
658
  var uid = uid$2;
@@ -659,12 +664,11 @@ var sharedKey$3 = function (key) {
659
664
  };
660
665
 
661
666
  /* global ActiveXObject -- old IE, WSH */
662
-
663
- var anObject$4 = anObject$7;
667
+ var anObject$9 = anObject$c;
664
668
  var definePropertiesModule = objectDefineProperties;
665
669
  var enumBugKeys$1 = enumBugKeys$3;
666
670
  var hiddenKeys$2 = hiddenKeys$4;
667
- var html = html$1;
671
+ var html$1 = html$2;
668
672
  var documentCreateElement$1 = documentCreateElement$2;
669
673
  var sharedKey$2 = sharedKey$3;
670
674
 
@@ -696,7 +700,7 @@ var NullProtoObjectViaIFrame = function () {
696
700
  var JS = 'java' + SCRIPT + ':';
697
701
  var iframeDocument;
698
702
  iframe.style.display = 'none';
699
- html.appendChild(iframe);
703
+ html$1.appendChild(iframe);
700
704
  // https://github.com/zloirock/core-js/issues/475
701
705
  iframe.src = String(JS);
702
706
  iframeDocument = iframe.contentWindow.document;
@@ -734,7 +738,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
734
738
  var objectCreate = Object.create || function create(O, Properties) {
735
739
  var result;
736
740
  if (O !== null) {
737
- EmptyConstructor[PROTOTYPE] = anObject$4(O);
741
+ EmptyConstructor[PROTOTYPE] = anObject$9(O);
738
742
  result = new EmptyConstructor();
739
743
  EmptyConstructor[PROTOTYPE] = null;
740
744
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -743,35 +747,35 @@ var objectCreate = Object.create || function create(O, Properties) {
743
747
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
744
748
  };
745
749
 
746
- var wellKnownSymbol$6 = wellKnownSymbol$8;
750
+ var wellKnownSymbol$e = wellKnownSymbol$g;
747
751
  var create$1 = objectCreate;
748
752
  var defineProperty$5 = objectDefineProperty.f;
749
753
 
750
- var UNSCOPABLES = wellKnownSymbol$6('unscopables');
751
- var ArrayPrototype = Array.prototype;
754
+ var UNSCOPABLES = wellKnownSymbol$e('unscopables');
755
+ var ArrayPrototype$1 = Array.prototype;
752
756
 
753
757
  // Array.prototype[@@unscopables]
754
758
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
755
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
756
- defineProperty$5(ArrayPrototype, UNSCOPABLES, {
759
+ if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
760
+ defineProperty$5(ArrayPrototype$1, UNSCOPABLES, {
757
761
  configurable: true,
758
762
  value: create$1(null)
759
763
  });
760
764
  }
761
765
 
762
766
  // add a key to Array.prototype[@@unscopables]
763
- var addToUnscopables$1 = function (key) {
764
- ArrayPrototype[UNSCOPABLES][key] = true;
767
+ var addToUnscopables$2 = function (key) {
768
+ ArrayPrototype$1[UNSCOPABLES][key] = true;
765
769
  };
766
770
 
767
771
  var iterators = {};
768
772
 
769
- var global$6 = global$d;
770
- var isCallable$a = isCallable$g;
773
+ var global$c = global$k;
774
+ var isCallable$f = isCallable$l;
771
775
 
772
- var WeakMap$1 = global$6.WeakMap;
776
+ var WeakMap$2 = global$c.WeakMap;
773
777
 
774
- var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
778
+ var weakMapBasicDetection = isCallable$f(WeakMap$2) && /native code/.test(String(WeakMap$2));
775
779
 
776
780
  var createPropertyDescriptor$3 = function (bitmap, value) {
777
781
  return {
@@ -782,11 +786,11 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
782
786
  };
783
787
  };
784
788
 
785
- var DESCRIPTORS$6 = descriptors;
789
+ var DESCRIPTORS$7 = descriptors;
786
790
  var definePropertyModule$2 = objectDefineProperty;
787
791
  var createPropertyDescriptor$2 = createPropertyDescriptor$3;
788
792
 
789
- var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value) {
793
+ var createNonEnumerableProperty$4 = DESCRIPTORS$7 ? function (object, key, value) {
790
794
  return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
791
795
  } : function (object, key, value) {
792
796
  object[key] = value;
@@ -794,41 +798,41 @@ var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value
794
798
  };
795
799
 
796
800
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
797
- var global$5 = global$d;
798
- var isObject$1 = isObject$6;
801
+ var global$b = global$k;
802
+ var isObject$4 = isObject$9;
799
803
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
800
- var hasOwn$8 = hasOwnProperty_1;
804
+ var hasOwn$9 = hasOwnProperty_1;
801
805
  var shared = sharedStore;
802
806
  var sharedKey$1 = sharedKey$3;
803
807
  var hiddenKeys$1 = hiddenKeys$4;
804
808
 
805
809
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
806
- var TypeError$1 = global$5.TypeError;
807
- var WeakMap = global$5.WeakMap;
808
- var set, get, has;
810
+ var TypeError$2 = global$b.TypeError;
811
+ var WeakMap$1 = global$b.WeakMap;
812
+ var set$1, get, has;
809
813
 
810
814
  var enforce = function (it) {
811
- return has(it) ? get(it) : set(it, {});
815
+ return has(it) ? get(it) : set$1(it, {});
812
816
  };
813
817
 
814
818
  var getterFor = function (TYPE) {
815
819
  return function (it) {
816
820
  var state;
817
- if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
818
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
821
+ if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
822
+ throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
819
823
  } return state;
820
824
  };
821
825
  };
822
826
 
823
827
  if (NATIVE_WEAK_MAP || shared.state) {
824
- var store$1 = shared.state || (shared.state = new WeakMap());
828
+ var store$1 = shared.state || (shared.state = new WeakMap$1());
825
829
  /* eslint-disable no-self-assign -- prototype methods protection */
826
830
  store$1.get = store$1.get;
827
831
  store$1.has = store$1.has;
828
832
  store$1.set = store$1.set;
829
833
  /* eslint-enable no-self-assign -- prototype methods protection */
830
- set = function (it, metadata) {
831
- if (store$1.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
834
+ set$1 = function (it, metadata) {
835
+ if (store$1.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
832
836
  metadata.facade = it;
833
837
  store$1.set(it, metadata);
834
838
  return metadata;
@@ -842,22 +846,22 @@ if (NATIVE_WEAK_MAP || shared.state) {
842
846
  } else {
843
847
  var STATE = sharedKey$1('state');
844
848
  hiddenKeys$1[STATE] = true;
845
- set = function (it, metadata) {
846
- if (hasOwn$8(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
849
+ set$1 = function (it, metadata) {
850
+ if (hasOwn$9(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
847
851
  metadata.facade = it;
848
852
  createNonEnumerableProperty$3(it, STATE, metadata);
849
853
  return metadata;
850
854
  };
851
855
  get = function (it) {
852
- return hasOwn$8(it, STATE) ? it[STATE] : {};
856
+ return hasOwn$9(it, STATE) ? it[STATE] : {};
853
857
  };
854
858
  has = function (it) {
855
- return hasOwn$8(it, STATE);
859
+ return hasOwn$9(it, STATE);
856
860
  };
857
861
  }
858
862
 
859
863
  var internalState = {
860
- set: set,
864
+ set: set$1,
861
865
  get: get,
862
866
  has: has,
863
867
  enforce: enforce,
@@ -870,25 +874,25 @@ var objectPropertyIsEnumerable = {};
870
874
 
871
875
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
872
876
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
873
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
877
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
874
878
 
875
879
  // Nashorn ~ JDK8 bug
876
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
880
+ var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
877
881
 
878
882
  // `Object.prototype.propertyIsEnumerable` method implementation
879
883
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
880
884
  objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
881
- var descriptor = getOwnPropertyDescriptor$1(this, V);
885
+ var descriptor = getOwnPropertyDescriptor$2(this, V);
882
886
  return !!descriptor && descriptor.enumerable;
883
887
  } : $propertyIsEnumerable;
884
888
 
885
- var DESCRIPTORS$5 = descriptors;
886
- var call$3 = functionCall;
889
+ var DESCRIPTORS$6 = descriptors;
890
+ var call$b = functionCall;
887
891
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
888
892
  var createPropertyDescriptor$1 = createPropertyDescriptor$3;
889
893
  var toIndexedObject$1 = toIndexedObject$5;
890
894
  var toPropertyKey = toPropertyKey$2;
891
- var hasOwn$7 = hasOwnProperty_1;
895
+ var hasOwn$8 = hasOwnProperty_1;
892
896
  var IE8_DOM_DEFINE = ie8DomDefine;
893
897
 
894
898
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -896,28 +900,28 @@ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
896
900
 
897
901
  // `Object.getOwnPropertyDescriptor` method
898
902
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
899
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
903
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
900
904
  O = toIndexedObject$1(O);
901
905
  P = toPropertyKey(P);
902
906
  if (IE8_DOM_DEFINE) try {
903
907
  return $getOwnPropertyDescriptor(O, P);
904
908
  } catch (error) { /* empty */ }
905
- if (hasOwn$7(O, P)) return createPropertyDescriptor$1(!call$3(propertyIsEnumerableModule$1.f, O, P), O[P]);
909
+ if (hasOwn$8(O, P)) return createPropertyDescriptor$1(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
906
910
  };
907
911
 
908
912
  var makeBuiltIn$3 = {exports: {}};
909
913
 
910
- var DESCRIPTORS$4 = descriptors;
911
- var hasOwn$6 = hasOwnProperty_1;
914
+ var DESCRIPTORS$5 = descriptors;
915
+ var hasOwn$7 = hasOwnProperty_1;
912
916
 
913
- var FunctionPrototype = Function.prototype;
917
+ var FunctionPrototype$1 = Function.prototype;
914
918
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
915
- var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
919
+ var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
916
920
 
917
- var EXISTS = hasOwn$6(FunctionPrototype, 'name');
921
+ var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
918
922
  // additional protection from minified / mangled / dropped function names
919
923
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
920
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
924
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
921
925
 
922
926
  var functionName = {
923
927
  EXISTS: EXISTS,
@@ -925,40 +929,40 @@ var functionName = {
925
929
  CONFIGURABLE: CONFIGURABLE
926
930
  };
927
931
 
928
- var uncurryThis$7 = functionUncurryThis;
929
- var isCallable$9 = isCallable$g;
932
+ var uncurryThis$c = functionUncurryThis;
933
+ var isCallable$e = isCallable$l;
930
934
  var store = sharedStore;
931
935
 
932
- var functionToString = uncurryThis$7(Function.toString);
936
+ var functionToString = uncurryThis$c(Function.toString);
933
937
 
934
938
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
935
- if (!isCallable$9(store.inspectSource)) {
939
+ if (!isCallable$e(store.inspectSource)) {
936
940
  store.inspectSource = function (it) {
937
941
  return functionToString(it);
938
942
  };
939
943
  }
940
944
 
941
- var inspectSource$1 = store.inspectSource;
945
+ var inspectSource$3 = store.inspectSource;
942
946
 
943
- var uncurryThis$6 = functionUncurryThis;
944
- var fails$6 = fails$d;
945
- var isCallable$8 = isCallable$g;
946
- var hasOwn$5 = hasOwnProperty_1;
947
- var DESCRIPTORS$3 = descriptors;
947
+ var uncurryThis$b = functionUncurryThis;
948
+ var fails$9 = fails$g;
949
+ var isCallable$d = isCallable$l;
950
+ var hasOwn$6 = hasOwnProperty_1;
951
+ var DESCRIPTORS$4 = descriptors;
948
952
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
949
- var inspectSource = inspectSource$1;
950
- var InternalStateModule$1 = internalState;
953
+ var inspectSource$2 = inspectSource$3;
954
+ var InternalStateModule$2 = internalState;
951
955
 
952
- var enforceInternalState = InternalStateModule$1.enforce;
953
- var getInternalState$1 = InternalStateModule$1.get;
956
+ var enforceInternalState = InternalStateModule$2.enforce;
957
+ var getInternalState$1 = InternalStateModule$2.get;
954
958
  var $String$2 = String;
955
959
  // eslint-disable-next-line es/no-object-defineproperty -- safe
956
960
  var defineProperty$4 = Object.defineProperty;
957
- var stringSlice$1 = uncurryThis$6(''.slice);
958
- var replace$2 = uncurryThis$6(''.replace);
959
- var join = uncurryThis$6([].join);
961
+ var stringSlice$1 = uncurryThis$b(''.slice);
962
+ var replace$2 = uncurryThis$b(''.replace);
963
+ var join = uncurryThis$b([].join);
960
964
 
961
- var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$6(function () {
965
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$9(function () {
962
966
  return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
963
967
  });
964
968
 
@@ -970,21 +974,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
970
974
  }
971
975
  if (options && options.getter) name = 'get ' + name;
972
976
  if (options && options.setter) name = 'set ' + name;
973
- if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
974
- if (DESCRIPTORS$3) defineProperty$4(value, 'name', { value: name, configurable: true });
977
+ if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
978
+ if (DESCRIPTORS$4) defineProperty$4(value, 'name', { value: name, configurable: true });
975
979
  else value.name = name;
976
980
  }
977
- if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
981
+ if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
978
982
  defineProperty$4(value, 'length', { value: options.arity });
979
983
  }
980
984
  try {
981
- if (options && hasOwn$5(options, 'constructor') && options.constructor) {
982
- if (DESCRIPTORS$3) defineProperty$4(value, 'prototype', { writable: false });
985
+ if (options && hasOwn$6(options, 'constructor') && options.constructor) {
986
+ if (DESCRIPTORS$4) defineProperty$4(value, 'prototype', { writable: false });
983
987
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
984
988
  } else if (value.prototype) value.prototype = undefined;
985
989
  } catch (error) { /* empty */ }
986
990
  var state = enforceInternalState(value);
987
- if (!hasOwn$5(state, 'source')) {
991
+ if (!hasOwn$6(state, 'source')) {
988
992
  state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
989
993
  } return value;
990
994
  };
@@ -992,19 +996,19 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
992
996
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
993
997
  // eslint-disable-next-line no-extend-native -- required
994
998
  Function.prototype.toString = makeBuiltIn$2(function toString() {
995
- return isCallable$8(this) && getInternalState$1(this).source || inspectSource(this);
999
+ return isCallable$d(this) && getInternalState$1(this).source || inspectSource$2(this);
996
1000
  }, 'toString');
997
1001
 
998
- var isCallable$7 = isCallable$g;
1002
+ var isCallable$c = isCallable$l;
999
1003
  var definePropertyModule$1 = objectDefineProperty;
1000
1004
  var makeBuiltIn$1 = makeBuiltIn$3.exports;
1001
1005
  var defineGlobalProperty$1 = defineGlobalProperty$3;
1002
1006
 
1003
- var defineBuiltIn$4 = function (O, key, value, options) {
1007
+ var defineBuiltIn$6 = function (O, key, value, options) {
1004
1008
  if (!options) options = {};
1005
1009
  var simple = options.enumerable;
1006
1010
  var name = options.name !== undefined ? options.name : key;
1007
- if (isCallable$7(value)) makeBuiltIn$1(value, name, options);
1011
+ if (isCallable$c(value)) makeBuiltIn$1(value, name, options);
1008
1012
  if (options.global) {
1009
1013
  if (simple) O[key] = value;
1010
1014
  else defineGlobalProperty$1(key, value);
@@ -1042,22 +1046,22 @@ var objectGetOwnPropertySymbols = {};
1042
1046
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1043
1047
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1044
1048
 
1045
- var getBuiltIn = getBuiltIn$3;
1046
- var uncurryThis$5 = functionUncurryThis;
1049
+ var getBuiltIn$4 = getBuiltIn$7;
1050
+ var uncurryThis$a = functionUncurryThis;
1047
1051
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1048
1052
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1049
- var anObject$3 = anObject$7;
1053
+ var anObject$8 = anObject$c;
1050
1054
 
1051
- var concat$1 = uncurryThis$5([].concat);
1055
+ var concat$1 = uncurryThis$a([].concat);
1052
1056
 
1053
1057
  // all object keys, includes non-enumerable and symbols
1054
- var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1055
- var keys = getOwnPropertyNamesModule.f(anObject$3(it));
1058
+ var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
1059
+ var keys = getOwnPropertyNamesModule.f(anObject$8(it));
1056
1060
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1057
1061
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1058
1062
  };
1059
1063
 
1060
- var hasOwn$4 = hasOwnProperty_1;
1064
+ var hasOwn$5 = hasOwnProperty_1;
1061
1065
  var ownKeys = ownKeys$1;
1062
1066
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1063
1067
  var definePropertyModule = objectDefineProperty;
@@ -1068,42 +1072,42 @@ var copyConstructorProperties$2 = function (target, source, exceptions) {
1068
1072
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1069
1073
  for (var i = 0; i < keys.length; i++) {
1070
1074
  var key = keys[i];
1071
- if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
1075
+ if (!hasOwn$5(target, key) && !(exceptions && hasOwn$5(exceptions, key))) {
1072
1076
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1073
1077
  }
1074
1078
  }
1075
1079
  };
1076
1080
 
1077
- var fails$5 = fails$d;
1078
- var isCallable$6 = isCallable$g;
1081
+ var fails$8 = fails$g;
1082
+ var isCallable$b = isCallable$l;
1079
1083
 
1080
1084
  var replacement = /#|\.prototype\./;
1081
1085
 
1082
- var isForced$1 = function (feature, detection) {
1086
+ var isForced$2 = function (feature, detection) {
1083
1087
  var value = data[normalize(feature)];
1084
- return value == POLYFILL ? true
1085
- : value == NATIVE ? false
1086
- : isCallable$6(detection) ? fails$5(detection)
1088
+ return value === POLYFILL ? true
1089
+ : value === NATIVE ? false
1090
+ : isCallable$b(detection) ? fails$8(detection)
1087
1091
  : !!detection;
1088
1092
  };
1089
1093
 
1090
- var normalize = isForced$1.normalize = function (string) {
1094
+ var normalize = isForced$2.normalize = function (string) {
1091
1095
  return String(string).replace(replacement, '.').toLowerCase();
1092
1096
  };
1093
1097
 
1094
- var data = isForced$1.data = {};
1095
- var NATIVE = isForced$1.NATIVE = 'N';
1096
- var POLYFILL = isForced$1.POLYFILL = 'P';
1098
+ var data = isForced$2.data = {};
1099
+ var NATIVE = isForced$2.NATIVE = 'N';
1100
+ var POLYFILL = isForced$2.POLYFILL = 'P';
1097
1101
 
1098
- var isForced_1 = isForced$1;
1102
+ var isForced_1 = isForced$2;
1099
1103
 
1100
- var global$4 = global$d;
1101
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1104
+ var global$a = global$k;
1105
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1102
1106
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1103
- var defineBuiltIn$3 = defineBuiltIn$4;
1107
+ var defineBuiltIn$5 = defineBuiltIn$6;
1104
1108
  var defineGlobalProperty = defineGlobalProperty$3;
1105
1109
  var copyConstructorProperties$1 = copyConstructorProperties$2;
1106
- var isForced = isForced_1;
1110
+ var isForced$1 = isForced_1;
1107
1111
 
1108
1112
  /*
1109
1113
  options.target - name of the target object
@@ -1126,19 +1130,19 @@ var _export = function (options, source) {
1126
1130
  var STATIC = options.stat;
1127
1131
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1128
1132
  if (GLOBAL) {
1129
- target = global$4;
1133
+ target = global$a;
1130
1134
  } else if (STATIC) {
1131
- target = global$4[TARGET] || defineGlobalProperty(TARGET, {});
1135
+ target = global$a[TARGET] || defineGlobalProperty(TARGET, {});
1132
1136
  } else {
1133
- target = (global$4[TARGET] || {}).prototype;
1137
+ target = (global$a[TARGET] || {}).prototype;
1134
1138
  }
1135
1139
  if (target) for (key in source) {
1136
1140
  sourceProperty = source[key];
1137
1141
  if (options.dontCallGetSet) {
1138
- descriptor = getOwnPropertyDescriptor(target, key);
1142
+ descriptor = getOwnPropertyDescriptor$1(target, key);
1139
1143
  targetProperty = descriptor && descriptor.value;
1140
1144
  } else targetProperty = target[key];
1141
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1145
+ FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1142
1146
  // contained in target
1143
1147
  if (!FORCED && targetProperty !== undefined) {
1144
1148
  if (typeof sourceProperty == typeof targetProperty) continue;
@@ -1148,21 +1152,21 @@ var _export = function (options, source) {
1148
1152
  if (options.sham || (targetProperty && targetProperty.sham)) {
1149
1153
  createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1150
1154
  }
1151
- defineBuiltIn$3(target, key, sourceProperty, options);
1155
+ defineBuiltIn$5(target, key, sourceProperty, options);
1152
1156
  }
1153
1157
  };
1154
1158
 
1155
- var fails$4 = fails$d;
1159
+ var fails$7 = fails$g;
1156
1160
 
1157
- var correctPrototypeGetter = !fails$4(function () {
1161
+ var correctPrototypeGetter = !fails$7(function () {
1158
1162
  function F() { /* empty */ }
1159
1163
  F.prototype.constructor = null;
1160
1164
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1161
1165
  return Object.getPrototypeOf(new F()) !== F.prototype;
1162
1166
  });
1163
1167
 
1164
- var hasOwn$3 = hasOwnProperty_1;
1165
- var isCallable$5 = isCallable$g;
1168
+ var hasOwn$4 = hasOwnProperty_1;
1169
+ var isCallable$a = isCallable$l;
1166
1170
  var toObject$1 = toObject$3;
1167
1171
  var sharedKey = sharedKey$3;
1168
1172
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
@@ -1176,21 +1180,21 @@ var ObjectPrototype = $Object$1.prototype;
1176
1180
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1177
1181
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1178
1182
  var object = toObject$1(O);
1179
- if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
1183
+ if (hasOwn$4(object, IE_PROTO)) return object[IE_PROTO];
1180
1184
  var constructor = object.constructor;
1181
- if (isCallable$5(constructor) && object instanceof constructor) {
1185
+ if (isCallable$a(constructor) && object instanceof constructor) {
1182
1186
  return constructor.prototype;
1183
1187
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1184
1188
  };
1185
1189
 
1186
- var fails$3 = fails$d;
1187
- var isCallable$4 = isCallable$g;
1188
- var isObject = isObject$6;
1190
+ var fails$6 = fails$g;
1191
+ var isCallable$9 = isCallable$l;
1192
+ var isObject$3 = isObject$9;
1189
1193
  var getPrototypeOf$1 = objectGetPrototypeOf;
1190
- var defineBuiltIn$2 = defineBuiltIn$4;
1191
- var wellKnownSymbol$5 = wellKnownSymbol$8;
1194
+ var defineBuiltIn$4 = defineBuiltIn$6;
1195
+ var wellKnownSymbol$d = wellKnownSymbol$g;
1192
1196
 
1193
- var ITERATOR$3 = wellKnownSymbol$5('iterator');
1197
+ var ITERATOR$6 = wellKnownSymbol$d('iterator');
1194
1198
  var BUGGY_SAFARI_ITERATORS$1 = false;
1195
1199
 
1196
1200
  // `%IteratorPrototype%` object
@@ -1208,18 +1212,18 @@ if ([].keys) {
1208
1212
  }
1209
1213
  }
1210
1214
 
1211
- var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$3(function () {
1215
+ var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$6(function () {
1212
1216
  var test = {};
1213
1217
  // FF44- legacy iterators case
1214
- return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
1218
+ return IteratorPrototype$2[ITERATOR$6].call(test) !== test;
1215
1219
  });
1216
1220
 
1217
1221
  if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1218
1222
 
1219
1223
  // `%IteratorPrototype%[@@iterator]()` method
1220
1224
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1221
- if (!isCallable$4(IteratorPrototype$2[ITERATOR$3])) {
1222
- defineBuiltIn$2(IteratorPrototype$2, ITERATOR$3, function () {
1225
+ if (!isCallable$9(IteratorPrototype$2[ITERATOR$6])) {
1226
+ defineBuiltIn$4(IteratorPrototype$2, ITERATOR$6, function () {
1223
1227
  return this;
1224
1228
  });
1225
1229
  }
@@ -1230,14 +1234,14 @@ var iteratorsCore = {
1230
1234
  };
1231
1235
 
1232
1236
  var defineProperty$3 = objectDefineProperty.f;
1233
- var hasOwn$2 = hasOwnProperty_1;
1234
- var wellKnownSymbol$4 = wellKnownSymbol$8;
1237
+ var hasOwn$3 = hasOwnProperty_1;
1238
+ var wellKnownSymbol$c = wellKnownSymbol$g;
1235
1239
 
1236
- var TO_STRING_TAG$3 = wellKnownSymbol$4('toStringTag');
1240
+ var TO_STRING_TAG$3 = wellKnownSymbol$c('toStringTag');
1237
1241
 
1238
- var setToStringTag$2 = function (target, TAG, STATIC) {
1242
+ var setToStringTag$3 = function (target, TAG, STATIC) {
1239
1243
  if (target && !STATIC) target = target.prototype;
1240
- if (target && !hasOwn$2(target, TO_STRING_TAG$3)) {
1244
+ if (target && !hasOwn$3(target, TO_STRING_TAG$3)) {
1241
1245
  defineProperty$3(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1242
1246
  }
1243
1247
  };
@@ -1245,43 +1249,42 @@ var setToStringTag$2 = function (target, TAG, STATIC) {
1245
1249
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1246
1250
  var create = objectCreate;
1247
1251
  var createPropertyDescriptor = createPropertyDescriptor$3;
1248
- var setToStringTag$1 = setToStringTag$2;
1249
- var Iterators$2 = iterators;
1252
+ var setToStringTag$2 = setToStringTag$3;
1253
+ var Iterators$4 = iterators;
1250
1254
 
1251
1255
  var returnThis$1 = function () { return this; };
1252
1256
 
1253
1257
  var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1254
1258
  var TO_STRING_TAG = NAME + ' Iterator';
1255
1259
  IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1256
- setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
1257
- Iterators$2[TO_STRING_TAG] = returnThis$1;
1260
+ setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
1261
+ Iterators$4[TO_STRING_TAG] = returnThis$1;
1258
1262
  return IteratorConstructor;
1259
1263
  };
1260
1264
 
1261
- var uncurryThis$4 = functionUncurryThis;
1262
- var aCallable = aCallable$2;
1265
+ var uncurryThis$9 = functionUncurryThis;
1266
+ var aCallable$6 = aCallable$8;
1263
1267
 
1264
1268
  var functionUncurryThisAccessor = function (object, key, method) {
1265
1269
  try {
1266
1270
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1267
- return uncurryThis$4(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1271
+ return uncurryThis$9(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
1268
1272
  } catch (error) { /* empty */ }
1269
1273
  };
1270
1274
 
1271
- var isCallable$3 = isCallable$g;
1275
+ var isCallable$8 = isCallable$l;
1272
1276
 
1273
1277
  var $String$1 = String;
1274
- var $TypeError = TypeError;
1278
+ var $TypeError$7 = TypeError;
1275
1279
 
1276
1280
  var aPossiblePrototype$1 = function (argument) {
1277
- if (typeof argument == 'object' || isCallable$3(argument)) return argument;
1278
- throw $TypeError("Can't set " + $String$1(argument) + ' as a prototype');
1281
+ if (typeof argument == 'object' || isCallable$8(argument)) return argument;
1282
+ throw new $TypeError$7("Can't set " + $String$1(argument) + ' as a prototype');
1279
1283
  };
1280
1284
 
1281
1285
  /* eslint-disable no-proto -- safe */
1282
-
1283
1286
  var uncurryThisAccessor = functionUncurryThisAccessor;
1284
- var anObject$2 = anObject$7;
1287
+ var anObject$7 = anObject$c;
1285
1288
  var aPossiblePrototype = aPossiblePrototype$1;
1286
1289
 
1287
1290
  // `Object.setPrototypeOf` method
@@ -1298,7 +1301,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1298
1301
  CORRECT_SETTER = test instanceof Array;
1299
1302
  } catch (error) { /* empty */ }
1300
1303
  return function setPrototypeOf(O, proto) {
1301
- anObject$2(O);
1304
+ anObject$7(O);
1302
1305
  aPossiblePrototype(proto);
1303
1306
  if (CORRECT_SETTER) setter(O, proto);
1304
1307
  else O.__proto__ = proto;
@@ -1306,25 +1309,25 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1306
1309
  };
1307
1310
  }() : undefined);
1308
1311
 
1309
- var $$3 = _export;
1310
- var call$2 = functionCall;
1312
+ var $$b = _export;
1313
+ var call$a = functionCall;
1311
1314
  var FunctionName = functionName;
1312
- var isCallable$2 = isCallable$g;
1315
+ var isCallable$7 = isCallable$l;
1313
1316
  var createIteratorConstructor = iteratorCreateConstructor;
1314
1317
  var getPrototypeOf = objectGetPrototypeOf;
1315
- var setPrototypeOf = objectSetPrototypeOf;
1316
- var setToStringTag = setToStringTag$2;
1318
+ var setPrototypeOf$1 = objectSetPrototypeOf;
1319
+ var setToStringTag$1 = setToStringTag$3;
1317
1320
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1318
- var defineBuiltIn$1 = defineBuiltIn$4;
1319
- var wellKnownSymbol$3 = wellKnownSymbol$8;
1320
- var Iterators$1 = iterators;
1321
+ var defineBuiltIn$3 = defineBuiltIn$6;
1322
+ var wellKnownSymbol$b = wellKnownSymbol$g;
1323
+ var Iterators$3 = iterators;
1321
1324
  var IteratorsCore = iteratorsCore;
1322
1325
 
1323
1326
  var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
1324
1327
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1325
1328
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
1326
1329
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1327
- var ITERATOR$2 = wellKnownSymbol$3('iterator');
1330
+ var ITERATOR$5 = wellKnownSymbol$b('iterator');
1328
1331
  var KEYS = 'keys';
1329
1332
  var VALUES = 'values';
1330
1333
  var ENTRIES = 'entries';
@@ -1336,22 +1339,25 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1336
1339
 
1337
1340
  var getIterationMethod = function (KIND) {
1338
1341
  if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1339
- if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
1342
+ if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1343
+
1340
1344
  switch (KIND) {
1341
1345
  case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1342
1346
  case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1343
1347
  case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1344
- } return function () { return new IteratorConstructor(this); };
1348
+ }
1349
+
1350
+ return function () { return new IteratorConstructor(this); };
1345
1351
  };
1346
1352
 
1347
1353
  var TO_STRING_TAG = NAME + ' Iterator';
1348
1354
  var INCORRECT_VALUES_NAME = false;
1349
1355
  var IterablePrototype = Iterable.prototype;
1350
- var nativeIterator = IterablePrototype[ITERATOR$2]
1356
+ var nativeIterator = IterablePrototype[ITERATOR$5]
1351
1357
  || IterablePrototype['@@iterator']
1352
1358
  || DEFAULT && IterablePrototype[DEFAULT];
1353
1359
  var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1354
- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1360
+ var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1355
1361
  var CurrentIteratorPrototype, methods, KEY;
1356
1362
 
1357
1363
  // fix native
@@ -1359,24 +1365,24 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1359
1365
  CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1360
1366
  if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1361
1367
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1362
- if (setPrototypeOf) {
1363
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1364
- } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$2])) {
1365
- defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$2, returnThis);
1368
+ if (setPrototypeOf$1) {
1369
+ setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
1370
+ } else if (!isCallable$7(CurrentIteratorPrototype[ITERATOR$5])) {
1371
+ defineBuiltIn$3(CurrentIteratorPrototype, ITERATOR$5, returnThis);
1366
1372
  }
1367
1373
  }
1368
1374
  // Set @@toStringTag to native iterators
1369
- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1375
+ setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
1370
1376
  }
1371
1377
  }
1372
1378
 
1373
1379
  // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1374
- if (PROPER_FUNCTION_NAME$1 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1380
+ if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1375
1381
  if (CONFIGURABLE_FUNCTION_NAME) {
1376
1382
  createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1377
1383
  } else {
1378
1384
  INCORRECT_VALUES_NAME = true;
1379
- defaultIterator = function values() { return call$2(nativeIterator, this); };
1385
+ defaultIterator = function values() { return call$a(nativeIterator, this); };
1380
1386
  }
1381
1387
  }
1382
1388
 
@@ -1389,16 +1395,16 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1389
1395
  };
1390
1396
  if (FORCED) for (KEY in methods) {
1391
1397
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1392
- defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
1398
+ defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
1393
1399
  }
1394
- } else $$3({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1400
+ } else $$b({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1395
1401
  }
1396
1402
 
1397
1403
  // define iterator
1398
- if (IterablePrototype[ITERATOR$2] !== defaultIterator) {
1399
- defineBuiltIn$1(IterablePrototype, ITERATOR$2, defaultIterator, { name: DEFAULT });
1404
+ if (IterablePrototype[ITERATOR$5] !== defaultIterator) {
1405
+ defineBuiltIn$3(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });
1400
1406
  }
1401
- Iterators$1[NAME] = defaultIterator;
1407
+ Iterators$3[NAME] = defaultIterator;
1402
1408
 
1403
1409
  return methods;
1404
1410
  };
@@ -1410,17 +1416,17 @@ var createIterResultObject$1 = function (value, done) {
1410
1416
  };
1411
1417
 
1412
1418
  var toIndexedObject = toIndexedObject$5;
1413
- var addToUnscopables = addToUnscopables$1;
1414
- var Iterators = iterators;
1415
- var InternalStateModule = internalState;
1419
+ var addToUnscopables$1 = addToUnscopables$2;
1420
+ var Iterators$2 = iterators;
1421
+ var InternalStateModule$1 = internalState;
1416
1422
  var defineProperty$2 = objectDefineProperty.f;
1417
1423
  var defineIterator = iteratorDefine;
1418
1424
  var createIterResultObject = createIterResultObject$1;
1419
- var DESCRIPTORS$2 = descriptors;
1425
+ var DESCRIPTORS$3 = descriptors;
1420
1426
 
1421
1427
  var ARRAY_ITERATOR = 'Array Iterator';
1422
- var setInternalState = InternalStateModule.set;
1423
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
1428
+ var setInternalState$1 = InternalStateModule$1.set;
1429
+ var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
1424
1430
 
1425
1431
  // `Array.prototype.entries` method
1426
1432
  // https://tc39.es/ecma262/#sec-array.prototype.entries
@@ -1433,7 +1439,7 @@ var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
1433
1439
  // `CreateArrayIterator` internal method
1434
1440
  // https://tc39.es/ecma262/#sec-createarrayiterator
1435
1441
  var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1436
- setInternalState(this, {
1442
+ setInternalState$1(this, {
1437
1443
  type: ARRAY_ITERATOR,
1438
1444
  target: toIndexedObject(iterated), // target
1439
1445
  index: 0, // next index
@@ -1444,29 +1450,29 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
1444
1450
  }, function () {
1445
1451
  var state = getInternalState(this);
1446
1452
  var target = state.target;
1447
- var kind = state.kind;
1448
1453
  var index = state.index++;
1449
1454
  if (!target || index >= target.length) {
1450
1455
  state.target = undefined;
1451
1456
  return createIterResultObject(undefined, true);
1452
1457
  }
1453
- if (kind == 'keys') return createIterResultObject(index, false);
1454
- if (kind == 'values') return createIterResultObject(target[index], false);
1455
- return createIterResultObject([index, target[index]], false);
1458
+ switch (state.kind) {
1459
+ case 'keys': return createIterResultObject(index, false);
1460
+ case 'values': return createIterResultObject(target[index], false);
1461
+ } return createIterResultObject([index, target[index]], false);
1456
1462
  }, 'values');
1457
1463
 
1458
1464
  // argumentsList[@@iterator] is %ArrayProto_values%
1459
1465
  // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1460
1466
  // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1461
- var values = Iterators.Arguments = Iterators.Array;
1467
+ var values = Iterators$2.Arguments = Iterators$2.Array;
1462
1468
 
1463
1469
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1464
- addToUnscopables('keys');
1465
- addToUnscopables('values');
1466
- addToUnscopables('entries');
1470
+ addToUnscopables$1('keys');
1471
+ addToUnscopables$1('values');
1472
+ addToUnscopables$1('entries');
1467
1473
 
1468
1474
  // V8 ~ Chrome 45- bug
1469
- if (DESCRIPTORS$2 && values.name !== 'values') try {
1475
+ if (DESCRIPTORS$3 && values.name !== 'values') try {
1470
1476
  defineProperty$2(values, 'name', { value: 'values' });
1471
1477
  } catch (error) { /* empty */ }
1472
1478
 
@@ -1514,24 +1520,24 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1514
1520
 
1515
1521
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1516
1522
 
1517
- var global$3 = global$d;
1523
+ var global$9 = global$k;
1518
1524
  var DOMIterables = domIterables;
1519
1525
  var DOMTokenListPrototype = domTokenListPrototype;
1520
1526
  var ArrayIteratorMethods = es_array_iterator;
1521
1527
  var createNonEnumerableProperty = createNonEnumerableProperty$4;
1522
- var wellKnownSymbol$2 = wellKnownSymbol$8;
1528
+ var wellKnownSymbol$a = wellKnownSymbol$g;
1523
1529
 
1524
- var ITERATOR$1 = wellKnownSymbol$2('iterator');
1525
- var TO_STRING_TAG$2 = wellKnownSymbol$2('toStringTag');
1530
+ var ITERATOR$4 = wellKnownSymbol$a('iterator');
1531
+ var TO_STRING_TAG$2 = wellKnownSymbol$a('toStringTag');
1526
1532
  var ArrayValues = ArrayIteratorMethods.values;
1527
1533
 
1528
1534
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1529
1535
  if (CollectionPrototype) {
1530
1536
  // some Chrome versions have non-configurable methods on DOMTokenList
1531
- if (CollectionPrototype[ITERATOR$1] !== ArrayValues) try {
1532
- createNonEnumerableProperty(CollectionPrototype, ITERATOR$1, ArrayValues);
1537
+ if (CollectionPrototype[ITERATOR$4] !== ArrayValues) try {
1538
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR$4, ArrayValues);
1533
1539
  } catch (error) {
1534
- CollectionPrototype[ITERATOR$1] = ArrayValues;
1540
+ CollectionPrototype[ITERATOR$4] = ArrayValues;
1535
1541
  }
1536
1542
  if (!CollectionPrototype[TO_STRING_TAG$2]) {
1537
1543
  createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
@@ -1548,15 +1554,15 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1548
1554
  };
1549
1555
 
1550
1556
  for (var COLLECTION_NAME in DOMIterables) {
1551
- handlePrototype(global$3[COLLECTION_NAME] && global$3[COLLECTION_NAME].prototype, COLLECTION_NAME);
1557
+ handlePrototype(global$9[COLLECTION_NAME] && global$9[COLLECTION_NAME].prototype, COLLECTION_NAME);
1552
1558
  }
1553
1559
 
1554
1560
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1555
1561
 
1556
- var DESCRIPTORS$1 = descriptors;
1557
- var uncurryThis$3 = functionUncurryThis;
1558
- var call$1 = functionCall;
1559
- var fails$2 = fails$d;
1562
+ var DESCRIPTORS$2 = descriptors;
1563
+ var uncurryThis$8 = functionUncurryThis;
1564
+ var call$9 = functionCall;
1565
+ var fails$5 = fails$g;
1560
1566
  var objectKeys = objectKeys$2;
1561
1567
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1562
1568
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
@@ -1567,13 +1573,13 @@ var IndexedObject = indexedObject;
1567
1573
  var $assign = Object.assign;
1568
1574
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1569
1575
  var defineProperty$1 = Object.defineProperty;
1570
- var concat = uncurryThis$3([].concat);
1576
+ var concat = uncurryThis$8([].concat);
1571
1577
 
1572
1578
  // `Object.assign` method
1573
1579
  // https://tc39.es/ecma262/#sec-object.assign
1574
- var objectAssign = !$assign || fails$2(function () {
1580
+ var objectAssign = !$assign || fails$5(function () {
1575
1581
  // should have correct order of operations (Edge bug)
1576
- if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
1582
+ if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
1577
1583
  enumerable: true,
1578
1584
  get: function () {
1579
1585
  defineProperty$1(this, 'b', {
@@ -1586,11 +1592,11 @@ var objectAssign = !$assign || fails$2(function () {
1586
1592
  var A = {};
1587
1593
  var B = {};
1588
1594
  // eslint-disable-next-line es/no-symbol -- safe
1589
- var symbol = Symbol();
1595
+ var symbol = Symbol('assign detection');
1590
1596
  var alphabet = 'abcdefghijklmnopqrst';
1591
1597
  A[symbol] = 7;
1592
1598
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1593
- return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
1599
+ return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
1594
1600
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1595
1601
  var T = toObject(target);
1596
1602
  var argumentsLength = arguments.length;
@@ -1605,18 +1611,18 @@ var objectAssign = !$assign || fails$2(function () {
1605
1611
  var key;
1606
1612
  while (length > j) {
1607
1613
  key = keys[j++];
1608
- if (!DESCRIPTORS$1 || call$1(propertyIsEnumerable, S, key)) T[key] = S[key];
1614
+ if (!DESCRIPTORS$2 || call$9(propertyIsEnumerable, S, key)) T[key] = S[key];
1609
1615
  }
1610
1616
  } return T;
1611
1617
  } : $assign;
1612
1618
 
1613
- var $$2 = _export;
1619
+ var $$a = _export;
1614
1620
  var assign = objectAssign;
1615
1621
 
1616
1622
  // `Object.assign` method
1617
1623
  // https://tc39.es/ecma262/#sec-object.assign
1618
1624
  // eslint-disable-next-line es/no-object-assign -- required for testing
1619
- $$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1625
+ $$a({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1620
1626
  assign: assign
1621
1627
  });
1622
1628
 
@@ -1726,15 +1732,10 @@ function __rest(s, e) {
1726
1732
  return t;
1727
1733
  }
1728
1734
 
1729
- function __awaiter(thisArg, _arguments, P, generator) {
1730
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1731
- return new (P || (P = Promise))(function (resolve, reject) {
1732
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
1733
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
1734
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
1735
- step((generator = generator.apply(thisArg, _arguments || [])).next());
1736
- });
1737
- }
1735
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1736
+ var e = new Error(message);
1737
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1738
+ };
1738
1739
 
1739
1740
  const Check = ({
1740
1741
  focusable: _focusable = false,
@@ -1937,6 +1938,16 @@ function AlertRibbon({
1937
1938
  });
1938
1939
  }
1939
1940
  };
1941
+ const renderHeader = () => {
1942
+ if (!header) {
1943
+ return null;
1944
+ }
1945
+ return /*#__PURE__*/React.isValidElement(header) ? header : jsx("span", Object.assign({
1946
+ className: "header"
1947
+ }, {
1948
+ children: header
1949
+ }));
1950
+ };
1940
1951
  return jsxs("div", Object.assign({
1941
1952
  className: `alert-ribbon ${type}`,
1942
1953
  role: role,
@@ -1949,11 +1960,7 @@ function AlertRibbon({
1949
1960
  })), jsxs("div", Object.assign({
1950
1961
  className: "alert-ribbon__content"
1951
1962
  }, {
1952
- children: [header && /*#__PURE__*/React.isValidElement(header) ? header : jsx("span", Object.assign({
1953
- className: "header"
1954
- }, {
1955
- children: header
1956
- })), jsx("p", {
1963
+ children: [renderHeader(), jsx("p", {
1957
1964
  children: children
1958
1965
  })]
1959
1966
  })), closeButton && jsx("button", Object.assign({
@@ -2057,156 +2064,160 @@ const useDatepicker = (datepickerRef, datepickerDialogRef, dateInputRef, datepic
2057
2064
  };
2058
2065
  };
2059
2066
 
2060
- const useDropdown = ({
2061
- id,
2062
- value,
2063
- texts,
2064
- options,
2065
- loop,
2066
- multiSelect,
2067
- searchable,
2068
- searchFilter,
2069
- compareWith,
2070
- useValue,
2071
- display,
2072
- togglerRef,
2073
- listboxRef,
2074
- onChange,
2075
- validator
2076
- }) => {
2077
- const [handler, setHandler] = useState();
2078
- const [dropdown, setDropdown] = useState();
2079
- const [togglerProps, setTogglerProps] = useState({});
2080
- const [listboxProps, setListboxProps] = useState({});
2081
- const [listItems, setListItems] = useState([]);
2082
- const [multiSelectProps, setMultiSelectProps] = useState({});
2083
- // When dropdown data changes
2084
- useEffect(() => {
2085
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
2086
- if (!dropdown) return;
2087
- const {
2088
- elements: {
2089
- toggler,
2090
- listbox
2091
- }
2092
- } = dropdown;
2093
- const newToggleProps = Object.assign(Object.assign({}, toggler === null || toggler === void 0 ? void 0 : toggler.attributes), {
2094
- className: (_a = toggler === null || toggler === void 0 ? void 0 : toggler.classes) === null || _a === void 0 ? void 0 : _a.join(' '),
2095
- children: (_b = dropdown === null || dropdown === void 0 ? void 0 : dropdown.texts) === null || _b === void 0 ? void 0 : _b.select,
2096
- onClick: () => handler === null || handler === void 0 ? void 0 : handler.toggle()
2097
- });
2098
- setTogglerProps(newToggleProps);
2099
- const newListboxProps = Object.assign(Object.assign({}, listbox === null || listbox === void 0 ? void 0 : listbox.attributes), {
2100
- className: (_c = listbox === null || listbox === void 0 ? void 0 : listbox.classes) === null || _c === void 0 ? void 0 : _c.join(' ')
2101
- });
2102
- setListboxProps(newListboxProps);
2103
- if (!dropdown.isMultiSelect) {
2104
- const newListItems = dropdown.options.map(o => {
2105
- var _a;
2106
- return Object.assign(Object.assign({}, o.attributes), {
2107
- className: (_a = o.classes) === null || _a === void 0 ? void 0 : _a.join(' '),
2108
- children: o[dropdown.display],
2109
- selected: o.selected,
2110
- onClick: () => handler === null || handler === void 0 ? void 0 : handler.select(o)
2111
- });
2112
- });
2113
- setListItems(newListItems);
2114
- } else {
2115
- const checkboxes = dropdown.options.map(o => ({
2116
- labelProps: Object.assign(Object.assign({}, o.attributes), {
2117
- className: ['form-control', ...o.classes].join(' ')
2118
- }),
2119
- inputProps: {
2120
- defaultChecked: o.selected,
2121
- type: 'checkbox',
2122
- onClick: () => handler === null || handler === void 0 ? void 0 : handler.select(o, false)
2123
- },
2124
- spanProps: {
2125
- children: o[dropdown.display]
2126
- }
2127
- }));
2128
- const newMultiselect = {
2129
- fieldsetProps: {
2130
- 'aria-describedby': (_f = (_e = (_d = dropdown === null || dropdown === void 0 ? void 0 : dropdown.elements) === null || _d === void 0 ? void 0 : _d.fieldset) === null || _e === void 0 ? void 0 : _e.attributes) === null || _f === void 0 ? void 0 : _f.id,
2131
- 'aria-multiselectable': true,
2132
- role: 'listbox',
2133
- tabIndex: -1
2134
- },
2135
- legendProps: {
2136
- className: 'sr-only',
2137
- id: (_j = (_h = (_g = dropdown === null || dropdown === void 0 ? void 0 : dropdown.elements) === null || _g === void 0 ? void 0 : _g.fieldset) === null || _h === void 0 ? void 0 : _h.attributes) === null || _j === void 0 ? void 0 : _j.id,
2138
- children: dropdown.texts.optionsDescription
2139
- },
2140
- checkboxes
2141
- };
2142
- setMultiSelectProps(newMultiselect);
2143
- }
2144
- // eslint-disable-next-line react-hooks/exhaustive-deps
2145
- }, [dropdown]);
2146
- // When dropdown properties change
2147
- useEffect(() => {
2148
- if (!dropdown) return;
2149
- handler === null || handler === void 0 ? void 0 : handler.update({
2150
- id,
2151
- value,
2152
- texts,
2153
- options,
2154
- loop,
2155
- multiSelect,
2156
- searchable,
2157
- searchFilter,
2158
- compareWith,
2159
- useValue,
2160
- display,
2161
- validator
2162
- });
2163
- // eslint-disable-next-line react-hooks/exhaustive-deps
2164
- }, [id, texts, options, loop, multiSelect, searchable, searchFilter, compareWith, useValue, display]);
2165
- useEffect(() => {
2166
- if (!dropdown) return;
2167
- handler === null || handler === void 0 ? void 0 : handler.selectByValue(value);
2168
- console.log('new value');
2169
- // eslint-disable-next-line react-hooks/exhaustive-deps
2170
- }, [value]);
2171
- // When validator changes
2172
- useEffect(() => {
2173
- if (!dropdown) return;
2174
- if (validator) handler === null || handler === void 0 ? void 0 : handler.validate(validator);
2175
- // eslint-disable-next-line react-hooks/exhaustive-deps
2176
- }, [validator]);
2177
- // Create dropdown handler
2178
- useEffect(() => {
2179
- if (!handler && togglerRef.current && listboxRef.current) {
2180
- setHandler(createDropdown({
2181
- id,
2182
- value,
2183
- texts,
2184
- options,
2185
- loop,
2186
- multiSelect,
2187
- searchable,
2188
- searchFilter,
2189
- compareWith,
2190
- useValue,
2191
- display,
2192
- validator
2193
- }, togglerRef.current, listboxRef.current, listboxRef.current, dd => setDropdown(dd), value => onChange === null || onChange === void 0 ? void 0 : onChange(value)));
2194
- }
2195
- return () => handler === null || handler === void 0 ? void 0 : handler.destroy();
2196
- // eslint-disable-next-line react-hooks/exhaustive-deps
2197
- }, [togglerRef, listboxRef]);
2198
- return {
2199
- dropdown: handler,
2200
- togglerProps,
2201
- listboxProps,
2202
- listItems,
2203
- multiSelectProps
2204
- };
2067
+ var $$9 = _export;
2068
+ var $includes = arrayIncludes.includes;
2069
+ var fails$4 = fails$g;
2070
+ var addToUnscopables = addToUnscopables$2;
2071
+
2072
+ // FF99+ bug
2073
+ var BROKEN_ON_SPARSE = fails$4(function () {
2074
+ // eslint-disable-next-line es/no-array-prototype-includes -- detection
2075
+ return !Array(1).includes();
2076
+ });
2077
+
2078
+ // `Array.prototype.includes` method
2079
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
2080
+ $$9({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2081
+ includes: function includes(el /* , fromIndex = 0 */) {
2082
+ return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2083
+ }
2084
+ });
2085
+
2086
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2087
+ addToUnscopables('includes');
2088
+
2089
+ var isObject$2 = isObject$9;
2090
+ var classof$5 = classofRaw$2;
2091
+ var wellKnownSymbol$9 = wellKnownSymbol$g;
2092
+
2093
+ var MATCH$1 = wellKnownSymbol$9('match');
2094
+
2095
+ // `IsRegExp` abstract operation
2096
+ // https://tc39.es/ecma262/#sec-isregexp
2097
+ var isRegexp = function (it) {
2098
+ var isRegExp;
2099
+ return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$5(it) === 'RegExp');
2100
+ };
2101
+
2102
+ var isRegExp = isRegexp;
2103
+
2104
+ var $TypeError$6 = TypeError;
2105
+
2106
+ var notARegexp = function (it) {
2107
+ if (isRegExp(it)) {
2108
+ throw new $TypeError$6("The method doesn't accept regular expressions");
2109
+ } return it;
2110
+ };
2111
+
2112
+ var wellKnownSymbol$8 = wellKnownSymbol$g;
2113
+
2114
+ var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
2115
+ var test = {};
2116
+
2117
+ test[TO_STRING_TAG$1] = 'z';
2118
+
2119
+ var toStringTagSupport = String(test) === '[object z]';
2120
+
2121
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
2122
+ var isCallable$6 = isCallable$l;
2123
+ var classofRaw$1 = classofRaw$2;
2124
+ var wellKnownSymbol$7 = wellKnownSymbol$g;
2125
+
2126
+ var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
2127
+ var $Object = Object;
2128
+
2129
+ // ES3 wrong here
2130
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
2131
+
2132
+ // fallback for IE11 Script Access Denied error
2133
+ var tryGet = function (it, key) {
2134
+ try {
2135
+ return it[key];
2136
+ } catch (error) { /* empty */ }
2137
+ };
2138
+
2139
+ // getting tag from ES6+ `Object.prototype.toString`
2140
+ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
2141
+ var O, tag, result;
2142
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
2143
+ // @@toStringTag case
2144
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
2145
+ // builtinTag case
2146
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
2147
+ // ES3 arguments fallback
2148
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$6(O.callee) ? 'Arguments' : result;
2149
+ };
2150
+
2151
+ var classof$3 = classof$4;
2152
+
2153
+ var $String = String;
2154
+
2155
+ var toString$4 = function (argument) {
2156
+ if (classof$3(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
2157
+ return $String(argument);
2158
+ };
2159
+
2160
+ var wellKnownSymbol$6 = wellKnownSymbol$g;
2161
+
2162
+ var MATCH = wellKnownSymbol$6('match');
2163
+
2164
+ var correctIsRegexpLogic = function (METHOD_NAME) {
2165
+ var regexp = /./;
2166
+ try {
2167
+ '/./'[METHOD_NAME](regexp);
2168
+ } catch (error1) {
2169
+ try {
2170
+ regexp[MATCH] = false;
2171
+ return '/./'[METHOD_NAME](regexp);
2172
+ } catch (error2) { /* empty */ }
2173
+ } return false;
2205
2174
  };
2206
2175
 
2176
+ var $$8 = _export;
2177
+ var uncurryThis$7 = functionUncurryThis;
2178
+ var notARegExp = notARegexp;
2179
+ var requireObjectCoercible$1 = requireObjectCoercible$4;
2180
+ var toString$3 = toString$4;
2181
+ var correctIsRegExpLogic = correctIsRegexpLogic;
2182
+
2183
+ var stringIndexOf = uncurryThis$7(''.indexOf);
2184
+
2185
+ // `String.prototype.includes` method
2186
+ // https://tc39.es/ecma262/#sec-string.prototype.includes
2187
+ $$8({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
2188
+ includes: function includes(searchString /* , position = 0 */) {
2189
+ return !!~stringIndexOf(
2190
+ toString$3(requireObjectCoercible$1(this)),
2191
+ toString$3(notARegExp(searchString)),
2192
+ arguments.length > 1 ? arguments[1] : undefined
2193
+ );
2194
+ }
2195
+ });
2196
+
2197
+ /**
2198
+ * @license
2199
+ * Copyright 2018 Google LLC
2200
+ * SPDX-License-Identifier: BSD-3-Clause
2201
+ */
2202
+ const t=new Set(["children","localName","ref","style","className"]),e=new WeakMap,n=(t,n,s,i,o)=>{const l=null==o?void 0:o[n];void 0===l||s===i?null==s&&n in HTMLElement.prototype?t.removeAttribute(n):t[n]=s:((t,n,s)=>{let i=e.get(t);void 0===i&&e.set(t,i=new Map);let o=i.get(n);void 0!==s?void 0===o?(i.set(n,o={handleEvent:s}),t.addEventListener(n,o)):o.handleEvent=s:void 0!==o&&(i.delete(n),t.removeEventListener(n,o));})(t,l,s);},s=(t,e)=>{"function"==typeof t?t(e):t.current=e;};function i(e=window.React,i,o,l,d){let a,c,r;if(void 0===i){const t=e;(({tagName:c,elementClass:r,events:l,displayName:d}=t)),a=t.react;}else a=e,r=o,c=i;const h=a.Component,u=a.createElement,f=new Set(Object.keys(null!=l?l:{}));class v extends h{constructor(){super(...arguments),this.o=null;}t(t){if(null!==this.o)for(const e in this.i)n(this.o,e,this.props[e],t?t[e]:void 0,l);}componentDidMount(){var t;this.t(),null===(t=this.o)||void 0===t||t.removeAttribute("defer-hydration");}componentDidUpdate(t){this.t(t);}render(){const{_$Gl:e,...n}=this.props;this.h!==e&&(this.u=t=>{null!==e&&s(e,t),this.o=t,this.h=e;}),this.i={};const i={ref:this.u};for(const[e,s]of Object.entries(n))t.has(e)?i["className"===e?"class":e]=s:f.has(e)||e in r.prototype?this.i[e]=s:i[e]=s;return i.suppressHydrationWarning=!0,u(c,i)}}v.displayName=null!=d?d:r.name;const m=a.forwardRef(((t,e)=>u(v,{...t,_$Gl:e},null==t?void 0:t.children)));return m.displayName=v.displayName,m}
2203
+
2204
+ registerTransitionalStyles();
2205
+ const CoreDropdown = i({
2206
+ tagName: getScopedTagName('gds-dropdown'),
2207
+ elementClass: GdsDropdown,
2208
+ events: {
2209
+ onchange: 'change'
2210
+ },
2211
+ react: React
2212
+ });
2213
+ const CoreOption = i({
2214
+ tagName: getScopedTagName('gds-option'),
2215
+ elementClass: GdsOption,
2216
+ react: React
2217
+ });
2207
2218
  const Dropdown = ({
2208
2219
  compareWith,
2209
- display,
2220
+ display: _display = 'label',
2210
2221
  id,
2211
2222
  informationLabel,
2212
2223
  label,
@@ -2217,100 +2228,60 @@ const Dropdown = ({
2217
2228
  searchFilter,
2218
2229
  searchable,
2219
2230
  texts,
2220
- useValue,
2231
+ useValue: _useValue = 'value',
2221
2232
  validator,
2222
2233
  value
2223
2234
  }) => {
2224
- var _a;
2225
- const togglerRef = useRef(null);
2226
- const listboxRef = useRef(null);
2227
- const {
2228
- dropdown,
2229
- listboxProps,
2230
- togglerProps,
2231
- listItems,
2232
- multiSelectProps
2233
- } = useDropdown({
2234
- id,
2235
- value,
2236
- options,
2237
- loop,
2238
- multiSelect,
2239
- searchable,
2240
- searchFilter,
2241
- compareWith,
2242
- useValue,
2243
- display,
2244
- togglerRef,
2245
- listboxRef,
2246
- texts,
2247
- onChange,
2248
- validator
2249
- });
2250
- const getListBoxProps = props => {
2251
- var _a, _b, _c;
2252
- if (Object.keys(props).length === 0) return {
2253
- role: 'listbox',
2254
- tabIndex: -1,
2255
- className: (_c = (_b = (_a = dropdownValues().elements) === null || _a === void 0 ? void 0 : _a.listbox) === null || _b === void 0 ? void 0 : _b.classes) === null || _c === void 0 ? void 0 : _c.join(' ')
2256
- };
2257
- return props;
2235
+ const [selectedOption, setSelectedOption] = React.useState(options.find(o => o.value === value));
2236
+ const handleOnChange = e => {
2237
+ var _a, _b;
2238
+ if ((_a = e.detail) === null || _a === void 0 ? void 0 : _a.value) {
2239
+ setSelectedOption(options.find(o => o[_useValue] === e.detail.value));
2240
+ onChange === null || onChange === void 0 ? void 0 : onChange((_b = e.detail) === null || _b === void 0 ? void 0 : _b.value);
2241
+ }
2258
2242
  };
2259
- return jsxs("div", Object.assign({
2243
+ // These adapter functions are used to maintain backwards compatibility with the old interface
2244
+ const compareWithAdapter = (o1, o2) => {
2245
+ const compareFn = compareWith || ((a, b) => a === b);
2246
+ return compareFn(o1, o2);
2247
+ };
2248
+ const searchFilterAdapter = (q, o) => {
2249
+ if (searchFilter) return searchFilter(q, o.value[_useValue]);else return ((q, o) => o.innerHTML.toLowerCase().includes(q.toLowerCase()))(q, o);
2250
+ };
2251
+ return jsx("div", Object.assign({
2260
2252
  className: "form-group"
2261
2253
  }, {
2262
- children: [label && jsx("label", Object.assign({
2263
- htmlFor: togglerProps.id
2264
- }, {
2265
- children: label
2266
- })), informationLabel && jsx("div", Object.assign({
2267
- className: "form-info"
2268
- }, {
2269
- children: informationLabel
2270
- })), jsx("button", Object.assign({
2271
- type: "button"
2272
- }, togglerProps, {
2273
- ref: togglerRef
2274
- }, {
2275
- children: jsx("span", {
2276
- children: togglerProps.children
2277
- })
2278
- })), jsxs("div", Object.assign({}, getListBoxProps(listboxProps), {
2279
- ref: listboxRef
2254
+ children: jsxs(CoreDropdown, Object.assign({
2255
+ id: id,
2256
+ label: label,
2257
+ searchable: searchable,
2258
+ multiple: multiSelect,
2259
+ value: selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value,
2260
+ onchange: handleOnChange,
2261
+ invalid: (validator === null || validator === void 0 ? void 0 : validator.indicator) === 'error',
2262
+ compareWith: compareWithAdapter,
2263
+ searchFilter: searchFilterAdapter
2280
2264
  }, {
2281
- children: [jsxs("div", Object.assign({
2282
- className: "d-flex d-sm-none align-items-center"
2265
+ children: [informationLabel && jsx("span", Object.assign({
2266
+ slot: "sub-label"
2283
2267
  }, {
2284
- children: [jsx("span", Object.assign({
2285
- className: "flex-grow-1 ps-4 fs-2 fw-bolder"
2286
- }, {
2287
- children: label
2288
- })), jsx("button", Object.assign({
2289
- type: "button",
2290
- className: "close m-4 m-sm-2 d-block d-sm-none",
2291
- onClick: dropdown === null || dropdown === void 0 ? void 0 : dropdown.close,
2292
- "aria-label": dropdown === null || dropdown === void 0 ? void 0 : dropdown.dropdown.texts.close
2293
- }, {
2294
- children: jsx("i", {})
2295
- }))]
2296
- })), (dropdown === null || dropdown === void 0 ? void 0 : dropdown.dropdown.isMultiSelect) ? jsx("div", Object.assign({
2297
- className: "sg-fieldset-container"
2268
+ children: informationLabel
2269
+ })), validator && jsx("span", Object.assign({
2270
+ slot: "message"
2298
2271
  }, {
2299
- children: jsxs("fieldset", Object.assign({}, multiSelectProps.fieldsetProps, {
2300
- children: [jsx("legend", Object.assign({}, multiSelectProps.legendProps)), (_a = multiSelectProps.checkboxes) === null || _a === void 0 ? void 0 : _a.map(checkboxItem => jsxs("label", Object.assign({}, checkboxItem.labelProps, {
2301
- children: [jsx("input", Object.assign({}, checkboxItem.inputProps)), jsx("span", Object.assign({}, checkboxItem.spanProps)), jsx("i", {})]
2302
- }), checkboxItem.labelProps.id))]
2303
- }))
2304
- })) : jsx("ul", Object.assign({
2305
- role: "listbox"
2272
+ children: validator.message
2273
+ })), jsx(CoreOption, Object.assign({
2274
+ isPlaceholder: true,
2275
+ "aria-hidden": true
2306
2276
  }, {
2307
- children: listItems.map(liProps => jsx("li", Object.assign({}, liProps), liProps.id))
2308
- }))]
2309
- })), validator && jsx("span", Object.assign({
2310
- className: "form-info"
2311
- }, {
2312
- children: validator === null || validator === void 0 ? void 0 : validator.message
2313
- }))]
2277
+ children: (texts === null || texts === void 0 ? void 0 : texts.placeholder) || 'Select'
2278
+ })), options.map(option => jsx(CoreOption, Object.assign({
2279
+ value: option[_useValue],
2280
+ selected: option.selected
2281
+ }, {
2282
+ children: option[_display]
2283
+ }), option[_useValue]))]
2284
+ }))
2314
2285
  }));
2315
2286
  };
2316
2287
 
@@ -2401,14 +2372,16 @@ const Datepicker = (options = {}) => {
2401
2372
  texts: {
2402
2373
  placeholder: data.monthName
2403
2374
  },
2404
- onChange: datepicker.setMonth
2375
+ onChange: datepicker.setMonth,
2376
+ value: data.month
2405
2377
  }), jsx(Dropdown, {
2406
2378
  options: years({}),
2407
2379
  display: "key",
2408
2380
  texts: {
2409
2381
  placeholder: data.year + ''
2410
2382
  },
2411
- onChange: datepicker.setYear
2383
+ onChange: datepicker.setYear,
2384
+ value: data.year
2412
2385
  }), jsx("button", Object.assign({
2413
2386
  className: "link",
2414
2387
  onClick: () => datepicker.add(1, 'months')
@@ -2745,27 +2718,1127 @@ function Group({
2745
2718
  }));
2746
2719
  }
2747
2720
 
2748
- const FormItem = ({
2749
- expandableInfo,
2750
- label,
2751
- labelInformation,
2752
- validator,
2753
- inputId,
2754
- children,
2755
- expandableInfoButtonLabel,
2756
- role
2757
- }) => {
2758
- const expandableInnerRef = useRef(null);
2759
- const expandableRef = useRef(null);
2760
- const [expandableHeight, setExpandableHeight] = useState(0);
2761
- const [isExpanded, setIsExpanded] = useState(false);
2762
- const [isHidden, setIsHidden] = useState(false);
2763
- useLayoutEffect(() => {
2764
- expandableInnerRef.current && setExpandableHeight(expandableInnerRef.current['clientHeight']);
2765
- setIsHidden(true);
2766
- }, []);
2767
- useEffect(() => {
2768
- const handleResize = debounce(function setExpandableHeightAfterResize() {
2721
+ var global$8 = global$k;
2722
+ var classof$2 = classofRaw$2;
2723
+
2724
+ var engineIsNode = classof$2(global$8.process) === 'process';
2725
+
2726
+ var makeBuiltIn = makeBuiltIn$3.exports;
2727
+ var defineProperty = objectDefineProperty;
2728
+
2729
+ var defineBuiltInAccessor$2 = function (target, name, descriptor) {
2730
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
2731
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
2732
+ return defineProperty.f(target, name, descriptor);
2733
+ };
2734
+
2735
+ var getBuiltIn$3 = getBuiltIn$7;
2736
+ var defineBuiltInAccessor$1 = defineBuiltInAccessor$2;
2737
+ var wellKnownSymbol$5 = wellKnownSymbol$g;
2738
+ var DESCRIPTORS$1 = descriptors;
2739
+
2740
+ var SPECIES$2 = wellKnownSymbol$5('species');
2741
+
2742
+ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
2743
+ var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
2744
+
2745
+ if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$2]) {
2746
+ defineBuiltInAccessor$1(Constructor, SPECIES$2, {
2747
+ configurable: true,
2748
+ get: function () { return this; }
2749
+ });
2750
+ }
2751
+ };
2752
+
2753
+ var isPrototypeOf$3 = objectIsPrototypeOf;
2754
+
2755
+ var $TypeError$5 = TypeError;
2756
+
2757
+ var anInstance$1 = function (it, Prototype) {
2758
+ if (isPrototypeOf$3(Prototype, it)) return it;
2759
+ throw new $TypeError$5('Incorrect invocation');
2760
+ };
2761
+
2762
+ var uncurryThis$6 = functionUncurryThis;
2763
+ var fails$3 = fails$g;
2764
+ var isCallable$5 = isCallable$l;
2765
+ var classof$1 = classof$4;
2766
+ var getBuiltIn$2 = getBuiltIn$7;
2767
+ var inspectSource$1 = inspectSource$3;
2768
+
2769
+ var noop$1 = function () { /* empty */ };
2770
+ var empty = [];
2771
+ var construct = getBuiltIn$2('Reflect', 'construct');
2772
+ var constructorRegExp = /^\s*(?:class|function)\b/;
2773
+ var exec$1 = uncurryThis$6(constructorRegExp.exec);
2774
+ var INCORRECT_TO_STRING = !constructorRegExp.test(noop$1);
2775
+
2776
+ var isConstructorModern = function isConstructor(argument) {
2777
+ if (!isCallable$5(argument)) return false;
2778
+ try {
2779
+ construct(noop$1, empty, argument);
2780
+ return true;
2781
+ } catch (error) {
2782
+ return false;
2783
+ }
2784
+ };
2785
+
2786
+ var isConstructorLegacy = function isConstructor(argument) {
2787
+ if (!isCallable$5(argument)) return false;
2788
+ switch (classof$1(argument)) {
2789
+ case 'AsyncFunction':
2790
+ case 'GeneratorFunction':
2791
+ case 'AsyncGeneratorFunction': return false;
2792
+ }
2793
+ try {
2794
+ // we can't check .prototype since constructors produced by .bind haven't it
2795
+ // `Function#toString` throws on some built-it function in some legacy engines
2796
+ // (for example, `DOMQuad` and similar in FF41-)
2797
+ return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
2798
+ } catch (error) {
2799
+ return true;
2800
+ }
2801
+ };
2802
+
2803
+ isConstructorLegacy.sham = true;
2804
+
2805
+ // `IsConstructor` abstract operation
2806
+ // https://tc39.es/ecma262/#sec-isconstructor
2807
+ var isConstructor$1 = !construct || fails$3(function () {
2808
+ var called;
2809
+ return isConstructorModern(isConstructorModern.call)
2810
+ || !isConstructorModern(Object)
2811
+ || !isConstructorModern(function () { called = true; })
2812
+ || called;
2813
+ }) ? isConstructorLegacy : isConstructorModern;
2814
+
2815
+ var isConstructor = isConstructor$1;
2816
+ var tryToString$2 = tryToString$4;
2817
+
2818
+ var $TypeError$4 = TypeError;
2819
+
2820
+ // `Assert: IsConstructor(argument) is true`
2821
+ var aConstructor$1 = function (argument) {
2822
+ if (isConstructor(argument)) return argument;
2823
+ throw new $TypeError$4(tryToString$2(argument) + ' is not a constructor');
2824
+ };
2825
+
2826
+ var anObject$6 = anObject$c;
2827
+ var aConstructor = aConstructor$1;
2828
+ var isNullOrUndefined$1 = isNullOrUndefined$4;
2829
+ var wellKnownSymbol$4 = wellKnownSymbol$g;
2830
+
2831
+ var SPECIES$1 = wellKnownSymbol$4('species');
2832
+
2833
+ // `SpeciesConstructor` abstract operation
2834
+ // https://tc39.es/ecma262/#sec-speciesconstructor
2835
+ var speciesConstructor$1 = function (O, defaultConstructor) {
2836
+ var C = anObject$6(O).constructor;
2837
+ var S;
2838
+ return C === undefined || isNullOrUndefined$1(S = anObject$6(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
2839
+ };
2840
+
2841
+ var NATIVE_BIND$1 = functionBindNative;
2842
+
2843
+ var FunctionPrototype = Function.prototype;
2844
+ var apply$1 = FunctionPrototype.apply;
2845
+ var call$8 = FunctionPrototype.call;
2846
+
2847
+ // eslint-disable-next-line es/no-reflect -- safe
2848
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$8.bind(apply$1) : function () {
2849
+ return call$8.apply(apply$1, arguments);
2850
+ });
2851
+
2852
+ var classofRaw = classofRaw$2;
2853
+ var uncurryThis$5 = functionUncurryThis;
2854
+
2855
+ var functionUncurryThisClause = function (fn) {
2856
+ // Nashorn bug:
2857
+ // https://github.com/zloirock/core-js/issues/1128
2858
+ // https://github.com/zloirock/core-js/issues/1130
2859
+ if (classofRaw(fn) === 'Function') return uncurryThis$5(fn);
2860
+ };
2861
+
2862
+ var uncurryThis$4 = functionUncurryThisClause;
2863
+ var aCallable$5 = aCallable$8;
2864
+ var NATIVE_BIND = functionBindNative;
2865
+
2866
+ var bind$4 = uncurryThis$4(uncurryThis$4.bind);
2867
+
2868
+ // optional / simple context binding
2869
+ var functionBindContext = function (fn, that) {
2870
+ aCallable$5(fn);
2871
+ return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
2872
+ return fn.apply(that, arguments);
2873
+ };
2874
+ };
2875
+
2876
+ var uncurryThis$3 = functionUncurryThis;
2877
+
2878
+ var arraySlice$1 = uncurryThis$3([].slice);
2879
+
2880
+ var $TypeError$3 = TypeError;
2881
+
2882
+ var validateArgumentsLength$1 = function (passed, required) {
2883
+ if (passed < required) throw new $TypeError$3('Not enough arguments');
2884
+ return passed;
2885
+ };
2886
+
2887
+ var userAgent$2 = engineUserAgent;
2888
+
2889
+ // eslint-disable-next-line redos/no-vulnerable -- safe
2890
+ var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
2891
+
2892
+ var global$7 = global$k;
2893
+ var apply = functionApply;
2894
+ var bind$3 = functionBindContext;
2895
+ var isCallable$4 = isCallable$l;
2896
+ var hasOwn$2 = hasOwnProperty_1;
2897
+ var fails$2 = fails$g;
2898
+ var html = html$2;
2899
+ var arraySlice = arraySlice$1;
2900
+ var createElement = documentCreateElement$2;
2901
+ var validateArgumentsLength = validateArgumentsLength$1;
2902
+ var IS_IOS$1 = engineIsIos;
2903
+ var IS_NODE$3 = engineIsNode;
2904
+
2905
+ var set = global$7.setImmediate;
2906
+ var clear = global$7.clearImmediate;
2907
+ var process$2 = global$7.process;
2908
+ var Dispatch = global$7.Dispatch;
2909
+ var Function$1 = global$7.Function;
2910
+ var MessageChannel = global$7.MessageChannel;
2911
+ var String$1 = global$7.String;
2912
+ var counter = 0;
2913
+ var queue$2 = {};
2914
+ var ONREADYSTATECHANGE = 'onreadystatechange';
2915
+ var $location, defer, channel, port;
2916
+
2917
+ fails$2(function () {
2918
+ // Deno throws a ReferenceError on `location` access without `--location` flag
2919
+ $location = global$7.location;
2920
+ });
2921
+
2922
+ var run = function (id) {
2923
+ if (hasOwn$2(queue$2, id)) {
2924
+ var fn = queue$2[id];
2925
+ delete queue$2[id];
2926
+ fn();
2927
+ }
2928
+ };
2929
+
2930
+ var runner = function (id) {
2931
+ return function () {
2932
+ run(id);
2933
+ };
2934
+ };
2935
+
2936
+ var eventListener = function (event) {
2937
+ run(event.data);
2938
+ };
2939
+
2940
+ var globalPostMessageDefer = function (id) {
2941
+ // old engines have not location.origin
2942
+ global$7.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2943
+ };
2944
+
2945
+ // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
2946
+ if (!set || !clear) {
2947
+ set = function setImmediate(handler) {
2948
+ validateArgumentsLength(arguments.length, 1);
2949
+ var fn = isCallable$4(handler) ? handler : Function$1(handler);
2950
+ var args = arraySlice(arguments, 1);
2951
+ queue$2[++counter] = function () {
2952
+ apply(fn, undefined, args);
2953
+ };
2954
+ defer(counter);
2955
+ return counter;
2956
+ };
2957
+ clear = function clearImmediate(id) {
2958
+ delete queue$2[id];
2959
+ };
2960
+ // Node.js 0.8-
2961
+ if (IS_NODE$3) {
2962
+ defer = function (id) {
2963
+ process$2.nextTick(runner(id));
2964
+ };
2965
+ // Sphere (JS game engine) Dispatch API
2966
+ } else if (Dispatch && Dispatch.now) {
2967
+ defer = function (id) {
2968
+ Dispatch.now(runner(id));
2969
+ };
2970
+ // Browsers with MessageChannel, includes WebWorkers
2971
+ // except iOS - https://github.com/zloirock/core-js/issues/624
2972
+ } else if (MessageChannel && !IS_IOS$1) {
2973
+ channel = new MessageChannel();
2974
+ port = channel.port2;
2975
+ channel.port1.onmessage = eventListener;
2976
+ defer = bind$3(port.postMessage, port);
2977
+ // Browsers with postMessage, skip WebWorkers
2978
+ // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2979
+ } else if (
2980
+ global$7.addEventListener &&
2981
+ isCallable$4(global$7.postMessage) &&
2982
+ !global$7.importScripts &&
2983
+ $location && $location.protocol !== 'file:' &&
2984
+ !fails$2(globalPostMessageDefer)
2985
+ ) {
2986
+ defer = globalPostMessageDefer;
2987
+ global$7.addEventListener('message', eventListener, false);
2988
+ // IE8-
2989
+ } else if (ONREADYSTATECHANGE in createElement('script')) {
2990
+ defer = function (id) {
2991
+ html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
2992
+ html.removeChild(this);
2993
+ run(id);
2994
+ };
2995
+ };
2996
+ // Rest old browsers
2997
+ } else {
2998
+ defer = function (id) {
2999
+ setTimeout(runner(id), 0);
3000
+ };
3001
+ }
3002
+ }
3003
+
3004
+ var task$1 = {
3005
+ set: set,
3006
+ clear: clear
3007
+ };
3008
+
3009
+ var Queue$2 = function () {
3010
+ this.head = null;
3011
+ this.tail = null;
3012
+ };
3013
+
3014
+ Queue$2.prototype = {
3015
+ add: function (item) {
3016
+ var entry = { item: item, next: null };
3017
+ var tail = this.tail;
3018
+ if (tail) tail.next = entry;
3019
+ else this.head = entry;
3020
+ this.tail = entry;
3021
+ },
3022
+ get: function () {
3023
+ var entry = this.head;
3024
+ if (entry) {
3025
+ var next = this.head = entry.next;
3026
+ if (next === null) this.tail = null;
3027
+ return entry.item;
3028
+ }
3029
+ }
3030
+ };
3031
+
3032
+ var queue$1 = Queue$2;
3033
+
3034
+ var userAgent$1 = engineUserAgent;
3035
+
3036
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
3037
+
3038
+ var userAgent = engineUserAgent;
3039
+
3040
+ var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
3041
+
3042
+ var global$6 = global$k;
3043
+ var bind$2 = functionBindContext;
3044
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
3045
+ var macrotask = task$1.set;
3046
+ var Queue$1 = queue$1;
3047
+ var IS_IOS = engineIsIos;
3048
+ var IS_IOS_PEBBLE = engineIsIosPebble;
3049
+ var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
3050
+ var IS_NODE$2 = engineIsNode;
3051
+
3052
+ var MutationObserver = global$6.MutationObserver || global$6.WebKitMutationObserver;
3053
+ var document$2 = global$6.document;
3054
+ var process$1 = global$6.process;
3055
+ var Promise$1 = global$6.Promise;
3056
+ // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
3057
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$6, 'queueMicrotask');
3058
+ var microtask$1 = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
3059
+ var notify$1, toggle, node, promise, then;
3060
+
3061
+ // modern engines have queueMicrotask method
3062
+ if (!microtask$1) {
3063
+ var queue = new Queue$1();
3064
+
3065
+ var flush = function () {
3066
+ var parent, fn;
3067
+ if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
3068
+ while (fn = queue.get()) try {
3069
+ fn();
3070
+ } catch (error) {
3071
+ if (queue.head) notify$1();
3072
+ throw error;
3073
+ }
3074
+ if (parent) parent.enter();
3075
+ };
3076
+
3077
+ // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
3078
+ // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
3079
+ if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
3080
+ toggle = true;
3081
+ node = document$2.createTextNode('');
3082
+ new MutationObserver(flush).observe(node, { characterData: true });
3083
+ notify$1 = function () {
3084
+ node.data = toggle = !toggle;
3085
+ };
3086
+ // environments with maybe non-completely correct, but existent Promise
3087
+ } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
3088
+ // Promise.resolve without an argument throws an error in LG WebOS 2
3089
+ promise = Promise$1.resolve(undefined);
3090
+ // workaround of WebKit ~ iOS Safari 10.1 bug
3091
+ promise.constructor = Promise$1;
3092
+ then = bind$2(promise.then, promise);
3093
+ notify$1 = function () {
3094
+ then(flush);
3095
+ };
3096
+ // Node.js without promises
3097
+ } else if (IS_NODE$2) {
3098
+ notify$1 = function () {
3099
+ process$1.nextTick(flush);
3100
+ };
3101
+ // for other environments - macrotask based on:
3102
+ // - setImmediate
3103
+ // - MessageChannel
3104
+ // - window.postMessage
3105
+ // - onreadystatechange
3106
+ // - setTimeout
3107
+ } else {
3108
+ // `webpack` dev server bug on IE global methods - use bind(fn, global)
3109
+ macrotask = bind$2(macrotask, global$6);
3110
+ notify$1 = function () {
3111
+ macrotask(flush);
3112
+ };
3113
+ }
3114
+
3115
+ microtask$1 = function (fn) {
3116
+ if (!queue.head) notify$1();
3117
+ queue.add(fn);
3118
+ };
3119
+ }
3120
+
3121
+ var microtask_1 = microtask$1;
3122
+
3123
+ var hostReportErrors$1 = function (a, b) {
3124
+ try {
3125
+ // eslint-disable-next-line no-console -- safe
3126
+ arguments.length === 1 ? console.error(a) : console.error(a, b);
3127
+ } catch (error) { /* empty */ }
3128
+ };
3129
+
3130
+ var perform$3 = function (exec) {
3131
+ try {
3132
+ return { error: false, value: exec() };
3133
+ } catch (error) {
3134
+ return { error: true, value: error };
3135
+ }
3136
+ };
3137
+
3138
+ var global$5 = global$k;
3139
+
3140
+ var promiseNativeConstructor = global$5.Promise;
3141
+
3142
+ /* global Deno -- Deno case */
3143
+ var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
3144
+
3145
+ var IS_DENO$1 = engineIsDeno;
3146
+ var IS_NODE$1 = engineIsNode;
3147
+
3148
+ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
3149
+ && typeof window == 'object'
3150
+ && typeof document == 'object';
3151
+
3152
+ var global$4 = global$k;
3153
+ var NativePromiseConstructor$3 = promiseNativeConstructor;
3154
+ var isCallable$3 = isCallable$l;
3155
+ var isForced = isForced_1;
3156
+ var inspectSource = inspectSource$3;
3157
+ var wellKnownSymbol$3 = wellKnownSymbol$g;
3158
+ var IS_BROWSER = engineIsBrowser;
3159
+ var IS_DENO = engineIsDeno;
3160
+ var V8_VERSION = engineV8Version;
3161
+
3162
+ NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
3163
+ var SPECIES = wellKnownSymbol$3('species');
3164
+ var SUBCLASSING = false;
3165
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(global$4.PromiseRejectionEvent);
3166
+
3167
+ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
3168
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
3169
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
3170
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
3171
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
3172
+ // We can't detect it synchronously, so just check versions
3173
+ if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
3174
+ // We can't use @@species feature detection in V8 since it causes
3175
+ // deoptimization and performance degradation
3176
+ // https://github.com/zloirock/core-js/issues/679
3177
+ if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
3178
+ // Detect correctness of subclassing with @@species support
3179
+ var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
3180
+ var FakePromise = function (exec) {
3181
+ exec(function () { /* empty */ }, function () { /* empty */ });
3182
+ };
3183
+ var constructor = promise.constructor = {};
3184
+ constructor[SPECIES] = FakePromise;
3185
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
3186
+ if (!SUBCLASSING) return true;
3187
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
3188
+ } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
3189
+ });
3190
+
3191
+ var promiseConstructorDetection = {
3192
+ CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
3193
+ REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
3194
+ SUBCLASSING: SUBCLASSING
3195
+ };
3196
+
3197
+ var newPromiseCapability$2 = {};
3198
+
3199
+ var aCallable$4 = aCallable$8;
3200
+
3201
+ var $TypeError$2 = TypeError;
3202
+
3203
+ var PromiseCapability = function (C) {
3204
+ var resolve, reject;
3205
+ this.promise = new C(function ($$resolve, $$reject) {
3206
+ if (resolve !== undefined || reject !== undefined) throw new $TypeError$2('Bad Promise constructor');
3207
+ resolve = $$resolve;
3208
+ reject = $$reject;
3209
+ });
3210
+ this.resolve = aCallable$4(resolve);
3211
+ this.reject = aCallable$4(reject);
3212
+ };
3213
+
3214
+ // `NewPromiseCapability` abstract operation
3215
+ // https://tc39.es/ecma262/#sec-newpromisecapability
3216
+ newPromiseCapability$2.f = function (C) {
3217
+ return new PromiseCapability(C);
3218
+ };
3219
+
3220
+ var $$7 = _export;
3221
+ var IS_NODE = engineIsNode;
3222
+ var global$3 = global$k;
3223
+ var call$7 = functionCall;
3224
+ var defineBuiltIn$2 = defineBuiltIn$6;
3225
+ var setPrototypeOf = objectSetPrototypeOf;
3226
+ var setToStringTag = setToStringTag$3;
3227
+ var setSpecies = setSpecies$1;
3228
+ var aCallable$3 = aCallable$8;
3229
+ var isCallable$2 = isCallable$l;
3230
+ var isObject$1 = isObject$9;
3231
+ var anInstance = anInstance$1;
3232
+ var speciesConstructor = speciesConstructor$1;
3233
+ var task = task$1.set;
3234
+ var microtask = microtask_1;
3235
+ var hostReportErrors = hostReportErrors$1;
3236
+ var perform$2 = perform$3;
3237
+ var Queue = queue$1;
3238
+ var InternalStateModule = internalState;
3239
+ var NativePromiseConstructor$2 = promiseNativeConstructor;
3240
+ var PromiseConstructorDetection = promiseConstructorDetection;
3241
+ var newPromiseCapabilityModule$3 = newPromiseCapability$2;
3242
+
3243
+ var PROMISE = 'Promise';
3244
+ var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
3245
+ var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
3246
+ var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
3247
+ var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
3248
+ var setInternalState = InternalStateModule.set;
3249
+ var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
3250
+ var PromiseConstructor = NativePromiseConstructor$2;
3251
+ var PromisePrototype = NativePromisePrototype$1;
3252
+ var TypeError$1 = global$3.TypeError;
3253
+ var document$1 = global$3.document;
3254
+ var process = global$3.process;
3255
+ var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
3256
+ var newGenericPromiseCapability = newPromiseCapability$1;
3257
+
3258
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$3.dispatchEvent);
3259
+ var UNHANDLED_REJECTION = 'unhandledrejection';
3260
+ var REJECTION_HANDLED = 'rejectionhandled';
3261
+ var PENDING = 0;
3262
+ var FULFILLED = 1;
3263
+ var REJECTED = 2;
3264
+ var HANDLED = 1;
3265
+ var UNHANDLED = 2;
3266
+
3267
+ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
3268
+
3269
+ // helpers
3270
+ var isThenable = function (it) {
3271
+ var then;
3272
+ return isObject$1(it) && isCallable$2(then = it.then) ? then : false;
3273
+ };
3274
+
3275
+ var callReaction = function (reaction, state) {
3276
+ var value = state.value;
3277
+ var ok = state.state === FULFILLED;
3278
+ var handler = ok ? reaction.ok : reaction.fail;
3279
+ var resolve = reaction.resolve;
3280
+ var reject = reaction.reject;
3281
+ var domain = reaction.domain;
3282
+ var result, then, exited;
3283
+ try {
3284
+ if (handler) {
3285
+ if (!ok) {
3286
+ if (state.rejection === UNHANDLED) onHandleUnhandled(state);
3287
+ state.rejection = HANDLED;
3288
+ }
3289
+ if (handler === true) result = value;
3290
+ else {
3291
+ if (domain) domain.enter();
3292
+ result = handler(value); // can throw
3293
+ if (domain) {
3294
+ domain.exit();
3295
+ exited = true;
3296
+ }
3297
+ }
3298
+ if (result === reaction.promise) {
3299
+ reject(new TypeError$1('Promise-chain cycle'));
3300
+ } else if (then = isThenable(result)) {
3301
+ call$7(then, result, resolve, reject);
3302
+ } else resolve(result);
3303
+ } else reject(value);
3304
+ } catch (error) {
3305
+ if (domain && !exited) domain.exit();
3306
+ reject(error);
3307
+ }
3308
+ };
3309
+
3310
+ var notify = function (state, isReject) {
3311
+ if (state.notified) return;
3312
+ state.notified = true;
3313
+ microtask(function () {
3314
+ var reactions = state.reactions;
3315
+ var reaction;
3316
+ while (reaction = reactions.get()) {
3317
+ callReaction(reaction, state);
3318
+ }
3319
+ state.notified = false;
3320
+ if (isReject && !state.rejection) onUnhandled(state);
3321
+ });
3322
+ };
3323
+
3324
+ var dispatchEvent = function (name, promise, reason) {
3325
+ var event, handler;
3326
+ if (DISPATCH_EVENT) {
3327
+ event = document$1.createEvent('Event');
3328
+ event.promise = promise;
3329
+ event.reason = reason;
3330
+ event.initEvent(name, false, true);
3331
+ global$3.dispatchEvent(event);
3332
+ } else event = { promise: promise, reason: reason };
3333
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$3['on' + name])) handler(event);
3334
+ else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
3335
+ };
3336
+
3337
+ var onUnhandled = function (state) {
3338
+ call$7(task, global$3, function () {
3339
+ var promise = state.facade;
3340
+ var value = state.value;
3341
+ var IS_UNHANDLED = isUnhandled(state);
3342
+ var result;
3343
+ if (IS_UNHANDLED) {
3344
+ result = perform$2(function () {
3345
+ if (IS_NODE) {
3346
+ process.emit('unhandledRejection', value, promise);
3347
+ } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
3348
+ });
3349
+ // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
3350
+ state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
3351
+ if (result.error) throw result.value;
3352
+ }
3353
+ });
3354
+ };
3355
+
3356
+ var isUnhandled = function (state) {
3357
+ return state.rejection !== HANDLED && !state.parent;
3358
+ };
3359
+
3360
+ var onHandleUnhandled = function (state) {
3361
+ call$7(task, global$3, function () {
3362
+ var promise = state.facade;
3363
+ if (IS_NODE) {
3364
+ process.emit('rejectionHandled', promise);
3365
+ } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
3366
+ });
3367
+ };
3368
+
3369
+ var bind$1 = function (fn, state, unwrap) {
3370
+ return function (value) {
3371
+ fn(state, value, unwrap);
3372
+ };
3373
+ };
3374
+
3375
+ var internalReject = function (state, value, unwrap) {
3376
+ if (state.done) return;
3377
+ state.done = true;
3378
+ if (unwrap) state = unwrap;
3379
+ state.value = value;
3380
+ state.state = REJECTED;
3381
+ notify(state, true);
3382
+ };
3383
+
3384
+ var internalResolve = function (state, value, unwrap) {
3385
+ if (state.done) return;
3386
+ state.done = true;
3387
+ if (unwrap) state = unwrap;
3388
+ try {
3389
+ if (state.facade === value) throw new TypeError$1("Promise can't be resolved itself");
3390
+ var then = isThenable(value);
3391
+ if (then) {
3392
+ microtask(function () {
3393
+ var wrapper = { done: false };
3394
+ try {
3395
+ call$7(then, value,
3396
+ bind$1(internalResolve, wrapper, state),
3397
+ bind$1(internalReject, wrapper, state)
3398
+ );
3399
+ } catch (error) {
3400
+ internalReject(wrapper, error, state);
3401
+ }
3402
+ });
3403
+ } else {
3404
+ state.value = value;
3405
+ state.state = FULFILLED;
3406
+ notify(state, false);
3407
+ }
3408
+ } catch (error) {
3409
+ internalReject({ done: false }, error, state);
3410
+ }
3411
+ };
3412
+
3413
+ // constructor polyfill
3414
+ if (FORCED_PROMISE_CONSTRUCTOR$4) {
3415
+ // 25.4.3.1 Promise(executor)
3416
+ PromiseConstructor = function Promise(executor) {
3417
+ anInstance(this, PromisePrototype);
3418
+ aCallable$3(executor);
3419
+ call$7(Internal, this);
3420
+ var state = getInternalPromiseState(this);
3421
+ try {
3422
+ executor(bind$1(internalResolve, state), bind$1(internalReject, state));
3423
+ } catch (error) {
3424
+ internalReject(state, error);
3425
+ }
3426
+ };
3427
+
3428
+ PromisePrototype = PromiseConstructor.prototype;
3429
+
3430
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
3431
+ Internal = function Promise(executor) {
3432
+ setInternalState(this, {
3433
+ type: PROMISE,
3434
+ done: false,
3435
+ notified: false,
3436
+ parent: false,
3437
+ reactions: new Queue(),
3438
+ rejection: false,
3439
+ state: PENDING,
3440
+ value: undefined
3441
+ });
3442
+ };
3443
+
3444
+ // `Promise.prototype.then` method
3445
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
3446
+ Internal.prototype = defineBuiltIn$2(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
3447
+ var state = getInternalPromiseState(this);
3448
+ var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
3449
+ state.parent = true;
3450
+ reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
3451
+ reaction.fail = isCallable$2(onRejected) && onRejected;
3452
+ reaction.domain = IS_NODE ? process.domain : undefined;
3453
+ if (state.state === PENDING) state.reactions.add(reaction);
3454
+ else microtask(function () {
3455
+ callReaction(reaction, state);
3456
+ });
3457
+ return reaction.promise;
3458
+ });
3459
+
3460
+ OwnPromiseCapability = function () {
3461
+ var promise = new Internal();
3462
+ var state = getInternalPromiseState(promise);
3463
+ this.promise = promise;
3464
+ this.resolve = bind$1(internalResolve, state);
3465
+ this.reject = bind$1(internalReject, state);
3466
+ };
3467
+
3468
+ newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
3469
+ return C === PromiseConstructor || C === PromiseWrapper
3470
+ ? new OwnPromiseCapability(C)
3471
+ : newGenericPromiseCapability(C);
3472
+ };
3473
+
3474
+ if (isCallable$2(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
3475
+ nativeThen = NativePromisePrototype$1.then;
3476
+
3477
+ if (!NATIVE_PROMISE_SUBCLASSING) {
3478
+ // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
3479
+ defineBuiltIn$2(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
3480
+ var that = this;
3481
+ return new PromiseConstructor(function (resolve, reject) {
3482
+ call$7(nativeThen, that, resolve, reject);
3483
+ }).then(onFulfilled, onRejected);
3484
+ // https://github.com/zloirock/core-js/issues/640
3485
+ }, { unsafe: true });
3486
+ }
3487
+
3488
+ // make `.constructor === Promise` work for native promise-based APIs
3489
+ try {
3490
+ delete NativePromisePrototype$1.constructor;
3491
+ } catch (error) { /* empty */ }
3492
+
3493
+ // make `instanceof Promise` work for native promise-based APIs
3494
+ if (setPrototypeOf) {
3495
+ setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
3496
+ }
3497
+ }
3498
+ }
3499
+
3500
+ $$7({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
3501
+ Promise: PromiseConstructor
3502
+ });
3503
+
3504
+ setToStringTag(PromiseConstructor, PROMISE, false);
3505
+ setSpecies(PROMISE);
3506
+
3507
+ var wellKnownSymbol$2 = wellKnownSymbol$g;
3508
+ var Iterators$1 = iterators;
3509
+
3510
+ var ITERATOR$3 = wellKnownSymbol$2('iterator');
3511
+ var ArrayPrototype = Array.prototype;
3512
+
3513
+ // check on default Array iterator
3514
+ var isArrayIteratorMethod$1 = function (it) {
3515
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$3] === it);
3516
+ };
3517
+
3518
+ var classof = classof$4;
3519
+ var getMethod$1 = getMethod$3;
3520
+ var isNullOrUndefined = isNullOrUndefined$4;
3521
+ var Iterators = iterators;
3522
+ var wellKnownSymbol$1 = wellKnownSymbol$g;
3523
+
3524
+ var ITERATOR$2 = wellKnownSymbol$1('iterator');
3525
+
3526
+ var getIteratorMethod$2 = function (it) {
3527
+ if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$2)
3528
+ || getMethod$1(it, '@@iterator')
3529
+ || Iterators[classof(it)];
3530
+ };
3531
+
3532
+ var call$6 = functionCall;
3533
+ var aCallable$2 = aCallable$8;
3534
+ var anObject$5 = anObject$c;
3535
+ var tryToString$1 = tryToString$4;
3536
+ var getIteratorMethod$1 = getIteratorMethod$2;
3537
+
3538
+ var $TypeError$1 = TypeError;
3539
+
3540
+ var getIterator$1 = function (argument, usingIterator) {
3541
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
3542
+ if (aCallable$2(iteratorMethod)) return anObject$5(call$6(iteratorMethod, argument));
3543
+ throw new $TypeError$1(tryToString$1(argument) + ' is not iterable');
3544
+ };
3545
+
3546
+ var call$5 = functionCall;
3547
+ var anObject$4 = anObject$c;
3548
+ var getMethod = getMethod$3;
3549
+
3550
+ var iteratorClose$1 = function (iterator, kind, value) {
3551
+ var innerResult, innerError;
3552
+ anObject$4(iterator);
3553
+ try {
3554
+ innerResult = getMethod(iterator, 'return');
3555
+ if (!innerResult) {
3556
+ if (kind === 'throw') throw value;
3557
+ return value;
3558
+ }
3559
+ innerResult = call$5(innerResult, iterator);
3560
+ } catch (error) {
3561
+ innerError = true;
3562
+ innerResult = error;
3563
+ }
3564
+ if (kind === 'throw') throw value;
3565
+ if (innerError) throw innerResult;
3566
+ anObject$4(innerResult);
3567
+ return value;
3568
+ };
3569
+
3570
+ var bind = functionBindContext;
3571
+ var call$4 = functionCall;
3572
+ var anObject$3 = anObject$c;
3573
+ var tryToString = tryToString$4;
3574
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
3575
+ var lengthOfArrayLike = lengthOfArrayLike$2;
3576
+ var isPrototypeOf$2 = objectIsPrototypeOf;
3577
+ var getIterator = getIterator$1;
3578
+ var getIteratorMethod = getIteratorMethod$2;
3579
+ var iteratorClose = iteratorClose$1;
3580
+
3581
+ var $TypeError = TypeError;
3582
+
3583
+ var Result = function (stopped, result) {
3584
+ this.stopped = stopped;
3585
+ this.result = result;
3586
+ };
3587
+
3588
+ var ResultPrototype = Result.prototype;
3589
+
3590
+ var iterate$2 = function (iterable, unboundFunction, options) {
3591
+ var that = options && options.that;
3592
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
3593
+ var IS_RECORD = !!(options && options.IS_RECORD);
3594
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
3595
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
3596
+ var fn = bind(unboundFunction, that);
3597
+ var iterator, iterFn, index, length, result, next, step;
3598
+
3599
+ var stop = function (condition) {
3600
+ if (iterator) iteratorClose(iterator, 'normal', condition);
3601
+ return new Result(true, condition);
3602
+ };
3603
+
3604
+ var callFn = function (value) {
3605
+ if (AS_ENTRIES) {
3606
+ anObject$3(value);
3607
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
3608
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
3609
+ };
3610
+
3611
+ if (IS_RECORD) {
3612
+ iterator = iterable.iterator;
3613
+ } else if (IS_ITERATOR) {
3614
+ iterator = iterable;
3615
+ } else {
3616
+ iterFn = getIteratorMethod(iterable);
3617
+ if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
3618
+ // optimisation for array iterators
3619
+ if (isArrayIteratorMethod(iterFn)) {
3620
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
3621
+ result = callFn(iterable[index]);
3622
+ if (result && isPrototypeOf$2(ResultPrototype, result)) return result;
3623
+ } return new Result(false);
3624
+ }
3625
+ iterator = getIterator(iterable, iterFn);
3626
+ }
3627
+
3628
+ next = IS_RECORD ? iterable.next : iterator.next;
3629
+ while (!(step = call$4(next, iterator)).done) {
3630
+ try {
3631
+ result = callFn(step.value);
3632
+ } catch (error) {
3633
+ iteratorClose(iterator, 'throw', error);
3634
+ }
3635
+ if (typeof result == 'object' && result && isPrototypeOf$2(ResultPrototype, result)) return result;
3636
+ } return new Result(false);
3637
+ };
3638
+
3639
+ var wellKnownSymbol = wellKnownSymbol$g;
3640
+
3641
+ var ITERATOR$1 = wellKnownSymbol('iterator');
3642
+ var SAFE_CLOSING = false;
3643
+
3644
+ try {
3645
+ var called = 0;
3646
+ var iteratorWithReturn = {
3647
+ next: function () {
3648
+ return { done: !!called++ };
3649
+ },
3650
+ 'return': function () {
3651
+ SAFE_CLOSING = true;
3652
+ }
3653
+ };
3654
+ iteratorWithReturn[ITERATOR$1] = function () {
3655
+ return this;
3656
+ };
3657
+ // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
3658
+ Array.from(iteratorWithReturn, function () { throw 2; });
3659
+ } catch (error) { /* empty */ }
3660
+
3661
+ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
3662
+ try {
3663
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
3664
+ } catch (error) { return false; } // workaround of old WebKit + `eval` bug
3665
+ var ITERATION_SUPPORT = false;
3666
+ try {
3667
+ var object = {};
3668
+ object[ITERATOR$1] = function () {
3669
+ return {
3670
+ next: function () {
3671
+ return { done: ITERATION_SUPPORT = true };
3672
+ }
3673
+ };
3674
+ };
3675
+ exec(object);
3676
+ } catch (error) { /* empty */ }
3677
+ return ITERATION_SUPPORT;
3678
+ };
3679
+
3680
+ var NativePromiseConstructor$1 = promiseNativeConstructor;
3681
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
3682
+ var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
3683
+
3684
+ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
3685
+ NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
3686
+ });
3687
+
3688
+ var $$6 = _export;
3689
+ var call$3 = functionCall;
3690
+ var aCallable$1 = aCallable$8;
3691
+ var newPromiseCapabilityModule$2 = newPromiseCapability$2;
3692
+ var perform$1 = perform$3;
3693
+ var iterate$1 = iterate$2;
3694
+ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
3695
+
3696
+ // `Promise.all` method
3697
+ // https://tc39.es/ecma262/#sec-promise.all
3698
+ $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
3699
+ all: function all(iterable) {
3700
+ var C = this;
3701
+ var capability = newPromiseCapabilityModule$2.f(C);
3702
+ var resolve = capability.resolve;
3703
+ var reject = capability.reject;
3704
+ var result = perform$1(function () {
3705
+ var $promiseResolve = aCallable$1(C.resolve);
3706
+ var values = [];
3707
+ var counter = 0;
3708
+ var remaining = 1;
3709
+ iterate$1(iterable, function (promise) {
3710
+ var index = counter++;
3711
+ var alreadyCalled = false;
3712
+ remaining++;
3713
+ call$3($promiseResolve, C, promise).then(function (value) {
3714
+ if (alreadyCalled) return;
3715
+ alreadyCalled = true;
3716
+ values[index] = value;
3717
+ --remaining || resolve(values);
3718
+ }, reject);
3719
+ });
3720
+ --remaining || resolve(values);
3721
+ });
3722
+ if (result.error) reject(result.value);
3723
+ return capability.promise;
3724
+ }
3725
+ });
3726
+
3727
+ var $$5 = _export;
3728
+ var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
3729
+ var NativePromiseConstructor = promiseNativeConstructor;
3730
+ var getBuiltIn$1 = getBuiltIn$7;
3731
+ var isCallable$1 = isCallable$l;
3732
+ var defineBuiltIn$1 = defineBuiltIn$6;
3733
+
3734
+ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
3735
+
3736
+ // `Promise.prototype.catch` method
3737
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
3738
+ $$5({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
3739
+ 'catch': function (onRejected) {
3740
+ return this.then(undefined, onRejected);
3741
+ }
3742
+ });
3743
+
3744
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
3745
+ if (isCallable$1(NativePromiseConstructor)) {
3746
+ var method = getBuiltIn$1('Promise').prototype['catch'];
3747
+ if (NativePromisePrototype['catch'] !== method) {
3748
+ defineBuiltIn$1(NativePromisePrototype, 'catch', method, { unsafe: true });
3749
+ }
3750
+ }
3751
+
3752
+ var $$4 = _export;
3753
+ var call$2 = functionCall;
3754
+ var aCallable = aCallable$8;
3755
+ var newPromiseCapabilityModule$1 = newPromiseCapability$2;
3756
+ var perform = perform$3;
3757
+ var iterate = iterate$2;
3758
+ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
3759
+
3760
+ // `Promise.race` method
3761
+ // https://tc39.es/ecma262/#sec-promise.race
3762
+ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
3763
+ race: function race(iterable) {
3764
+ var C = this;
3765
+ var capability = newPromiseCapabilityModule$1.f(C);
3766
+ var reject = capability.reject;
3767
+ var result = perform(function () {
3768
+ var $promiseResolve = aCallable(C.resolve);
3769
+ iterate(iterable, function (promise) {
3770
+ call$2($promiseResolve, C, promise).then(capability.resolve, reject);
3771
+ });
3772
+ });
3773
+ if (result.error) reject(result.value);
3774
+ return capability.promise;
3775
+ }
3776
+ });
3777
+
3778
+ var $$3 = _export;
3779
+ var call$1 = functionCall;
3780
+ var newPromiseCapabilityModule = newPromiseCapability$2;
3781
+ var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
3782
+
3783
+ // `Promise.reject` method
3784
+ // https://tc39.es/ecma262/#sec-promise.reject
3785
+ $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
3786
+ reject: function reject(r) {
3787
+ var capability = newPromiseCapabilityModule.f(this);
3788
+ call$1(capability.reject, undefined, r);
3789
+ return capability.promise;
3790
+ }
3791
+ });
3792
+
3793
+ var anObject$2 = anObject$c;
3794
+ var isObject = isObject$9;
3795
+ var newPromiseCapability = newPromiseCapability$2;
3796
+
3797
+ var promiseResolve$1 = function (C, x) {
3798
+ anObject$2(C);
3799
+ if (isObject(x) && x.constructor === C) return x;
3800
+ var promiseCapability = newPromiseCapability.f(C);
3801
+ var resolve = promiseCapability.resolve;
3802
+ resolve(x);
3803
+ return promiseCapability.promise;
3804
+ };
3805
+
3806
+ var $$2 = _export;
3807
+ var getBuiltIn = getBuiltIn$7;
3808
+ var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
3809
+ var promiseResolve = promiseResolve$1;
3810
+
3811
+ getBuiltIn('Promise');
3812
+
3813
+ // `Promise.resolve` method
3814
+ // https://tc39.es/ecma262/#sec-promise.resolve
3815
+ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
3816
+ resolve: function resolve(x) {
3817
+ return promiseResolve(this, x);
3818
+ }
3819
+ });
3820
+
3821
+ const FormItem = ({
3822
+ expandableInfo,
3823
+ label,
3824
+ labelInformation,
3825
+ validator,
3826
+ inputId,
3827
+ children,
3828
+ expandableInfoButtonLabel,
3829
+ role
3830
+ }) => {
3831
+ const expandableInnerRef = useRef(null);
3832
+ const expandableRef = useRef(null);
3833
+ const [expandableHeight, setExpandableHeight] = useState(0);
3834
+ const [isExpanded, setIsExpanded] = useState(false);
3835
+ const [isHidden, setIsHidden] = useState(false);
3836
+ useLayoutEffect(() => {
3837
+ expandableInnerRef.current && setExpandableHeight(expandableInnerRef.current['clientHeight']);
3838
+ setIsHidden(true);
3839
+ }, []);
3840
+ useEffect(() => {
3841
+ const handleResize = debounce(function setExpandableHeightAfterResize() {
2769
3842
  isExpanded && expandableInnerRef.current && setExpandableHeight(expandableInnerRef.current['clientHeight']);
2770
3843
  }, 300);
2771
3844
  if (expandableRef.current) {
@@ -2805,18 +3878,18 @@ const FormItem = ({
2805
3878
  size: "small",
2806
3879
  "aria-expanded": isExpanded,
2807
3880
  "aria-controls": `${inputId}-expandable-info`,
2808
- onClick: event => __awaiter(void 0, void 0, void 0, function* () {
3881
+ onClick: async event => {
2809
3882
  if (!isExpanded) {
2810
3883
  setIsHidden(false);
2811
- yield delay(10);
3884
+ await delay(10);
2812
3885
  expandableInnerRef.current && setExpandableHeight(expandableInnerRef.current['clientHeight']);
2813
3886
  setIsExpanded(true);
2814
3887
  } else {
2815
3888
  setIsExpanded(false);
2816
- yield delay(300);
3889
+ await delay(300);
2817
3890
  setIsHidden(true);
2818
3891
  }
2819
- })
3892
+ }
2820
3893
  }, {
2821
3894
  children: isExpanded ? jsx(Times, {
2822
3895
  title: expandableInfoButtonLabel
@@ -3007,72 +4080,15 @@ const Text = ({
3007
4080
  children: children
3008
4081
  }));
3009
4082
 
3010
- var wellKnownSymbol$1 = wellKnownSymbol$8;
3011
-
3012
- var TO_STRING_TAG$1 = wellKnownSymbol$1('toStringTag');
3013
- var test = {};
3014
-
3015
- test[TO_STRING_TAG$1] = 'z';
3016
-
3017
- var toStringTagSupport = String(test) === '[object z]';
3018
-
3019
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
3020
- var isCallable$1 = isCallable$g;
3021
- var classofRaw = classofRaw$1;
3022
- var wellKnownSymbol = wellKnownSymbol$8;
3023
-
3024
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
3025
- var $Object = Object;
3026
-
3027
- // ES3 wrong here
3028
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
3029
-
3030
- // fallback for IE11 Script Access Denied error
3031
- var tryGet = function (it, key) {
3032
- try {
3033
- return it[key];
3034
- } catch (error) { /* empty */ }
3035
- };
3036
-
3037
- // getting tag from ES6+ `Object.prototype.toString`
3038
- var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
3039
- var O, tag, result;
3040
- return it === undefined ? 'Undefined' : it === null ? 'Null'
3041
- // @@toStringTag case
3042
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
3043
- // builtinTag case
3044
- : CORRECT_ARGUMENTS ? classofRaw(O)
3045
- // ES3 arguments fallback
3046
- : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
3047
- };
3048
-
3049
- var classof = classof$1;
3050
-
3051
- var $String = String;
3052
-
3053
- var toString$3 = function (argument) {
3054
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
3055
- return $String(argument);
3056
- };
3057
-
3058
- var makeBuiltIn = makeBuiltIn$3.exports;
3059
- var defineProperty = objectDefineProperty;
3060
-
3061
- var defineBuiltInAccessor$1 = function (target, name, descriptor) {
3062
- if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
3063
- if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
3064
- return defineProperty.f(target, name, descriptor);
3065
- };
3066
-
3067
4083
  var $$1 = _export;
3068
4084
  var DESCRIPTORS = descriptors;
3069
- var global$2 = global$d;
4085
+ var global$2 = global$k;
3070
4086
  var uncurryThis$2 = functionUncurryThis;
3071
4087
  var hasOwn$1 = hasOwnProperty_1;
3072
- var isCallable = isCallable$g;
4088
+ var isCallable = isCallable$l;
3073
4089
  var isPrototypeOf$1 = objectIsPrototypeOf;
3074
- var toString$2 = toString$3;
3075
- var defineBuiltInAccessor = defineBuiltInAccessor$1;
4090
+ var toString$2 = toString$4;
4091
+ var defineBuiltInAccessor = defineBuiltInAccessor$2;
3076
4092
  var copyConstructorProperties = copyConstructorProperties$2;
3077
4093
 
3078
4094
  var NativeSymbol = global$2.Symbol;
@@ -3098,7 +4114,7 @@ if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototy
3098
4114
  SymbolWrapper.prototype = SymbolPrototype;
3099
4115
  SymbolPrototype.constructor = SymbolWrapper;
3100
4116
 
3101
- var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)';
4117
+ var NATIVE_SYMBOL = String(NativeSymbol('description detection')) === 'Symbol(description detection)';
3102
4118
  var thisSymbolValue = uncurryThis$2(SymbolPrototype.valueOf);
3103
4119
  var symbolDescriptiveString = uncurryThis$2(SymbolPrototype.toString);
3104
4120
  var regexp = /^Symbol\((.*)\)[^)]+$/;
@@ -3491,7 +4507,7 @@ const OptionGroup = ({
3491
4507
  }));
3492
4508
  };
3493
4509
 
3494
- var anObject$1 = anObject$7;
4510
+ var anObject$1 = anObject$c;
3495
4511
 
3496
4512
  // `RegExp.prototype.flags` getter implementation
3497
4513
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
@@ -3523,19 +4539,19 @@ var regexpGetFlags = function (R) {
3523
4539
  };
3524
4540
 
3525
4541
  var PROPER_FUNCTION_NAME = functionName.PROPER;
3526
- var defineBuiltIn = defineBuiltIn$4;
3527
- var anObject = anObject$7;
3528
- var $toString = toString$3;
3529
- var fails$1 = fails$d;
4542
+ var defineBuiltIn = defineBuiltIn$6;
4543
+ var anObject = anObject$c;
4544
+ var $toString = toString$4;
4545
+ var fails$1 = fails$g;
3530
4546
  var getRegExpFlags = regexpGetFlags;
3531
4547
 
3532
4548
  var TO_STRING = 'toString';
3533
4549
  var RegExpPrototype = RegExp.prototype;
3534
4550
  var nativeToString = RegExpPrototype[TO_STRING];
3535
4551
 
3536
- var NOT_GENERIC = fails$1(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
4552
+ var NOT_GENERIC = fails$1(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
3537
4553
  // FF44- RegExp#toString has a wrong name
3538
- var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;
4554
+ var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
3539
4555
 
3540
4556
  // `RegExp.prototype.toString` method
3541
4557
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
@@ -3553,7 +4569,7 @@ const InputWrapper = ({
3553
4569
  unitLabel
3554
4570
  }) => jsx(Fragment, {
3555
4571
  children: unitLabel ? jsxs("div", Object.assign({
3556
- className: "group group-border"
4572
+ className: "group group-border group-focus"
3557
4573
  }, {
3558
4574
  children: [children, jsx("span", Object.assign({
3559
4575
  className: "form-text"
@@ -3583,7 +4599,8 @@ function Slider({
3583
4599
  disabled = false,
3584
4600
  onChange,
3585
4601
  enableClamping = true,
3586
- onClamp
4602
+ onClamp,
4603
+ enterKeyHint
3587
4604
  }) {
3588
4605
  const [background, setBackground] = React.useState();
3589
4606
  const [sliderValue, setSliderValue] = React.useState(value !== null && value !== void 0 ? value : defaultValue);
@@ -3643,11 +4660,14 @@ function Slider({
3643
4660
  unitLabel: unitLabel
3644
4661
  }, {
3645
4662
  children: jsx("input", {
3646
- type: "number",
4663
+ type: "text",
4664
+ inputMode: "numeric",
4665
+ pattern: "[0-9]*",
3647
4666
  value: inputFieldValue,
3648
4667
  id: `${name}-textbox`,
3649
4668
  name: name,
3650
4669
  "aria-labelledby": `${name}-label`,
4670
+ enterKeyHint: enterKeyHint,
3651
4671
  className: errorMessage ? 'is-invalid' : '',
3652
4672
  disabled: disabled,
3653
4673
  onChange: e => handleInputFieldChange(e.currentTarget.value),
@@ -3809,8 +4829,8 @@ var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u200
3809
4829
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
3810
4830
 
3811
4831
  var uncurryThis$1 = functionUncurryThis;
3812
- var requireObjectCoercible = requireObjectCoercible$3;
3813
- var toString$1 = toString$3;
4832
+ var requireObjectCoercible = requireObjectCoercible$4;
4833
+ var toString$1 = toString$4;
3814
4834
  var whitespaces$1 = whitespaces$2;
3815
4835
 
3816
4836
  var replace = uncurryThis$1(''.replace);
@@ -3839,10 +4859,10 @@ var stringTrim = {
3839
4859
  trim: createMethod(3)
3840
4860
  };
3841
4861
 
3842
- var global$1 = global$d;
3843
- var fails = fails$d;
4862
+ var global$1 = global$k;
4863
+ var fails = fails$g;
3844
4864
  var uncurryThis = functionUncurryThis;
3845
- var toString = toString$3;
4865
+ var toString = toString$4;
3846
4866
  var trim = stringTrim.trim;
3847
4867
  var whitespaces = whitespaces$2;
3848
4868
 
@@ -3867,7 +4887,7 @@ var $parseInt = numberParseInt;
3867
4887
 
3868
4888
  // `parseInt` method
3869
4889
  // https://tc39.es/ecma262/#sec-parseint-string-radix
3870
- $({ global: true, forced: parseInt != $parseInt }, {
4890
+ $({ global: true, forced: parseInt !== $parseInt }, {
3871
4891
  parseInt: $parseInt
3872
4892
  });
3873
4893
 
@@ -4033,4 +5053,4 @@ const Modal = _a => {
4033
5053
  return isOpen ? modalContent() : null;
4034
5054
  };
4035
5055
 
4036
- export { Accordion, AlertRibbon as Alert, AlertRibbon, Badge, Button, ButtonGroup, Card, Checkbox, Datepicker, Dropdown, EmailInput, Flexbox, Form, FormItem, FormItems, Group, Link, List$1 as List, Modal, Navbar, NumberInput, Option, OptionGroup, RadioButton, RadioGroup, RenderInput, Select, Slider, Stepper, Tab, Tabs, Text, TextInput, valueList$1 as ValueList };
5056
+ export { Accordion, AlertRibbon as Alert, AlertRibbon, Badge, Button, ButtonGroup, Card, Checkbox, CoreDropdown, CoreOption, Datepicker, Dropdown, EmailInput, Flexbox, Form, FormItem, FormItems, Group, Link, List$1 as List, Modal, Navbar, NumberInput, Option, OptionGroup, RadioButton, RadioGroup, RenderInput, Select, Slider, Stepper, Tab, Tabs, Text, TextInput, valueList$1 as ValueList };