@bolttech/molecules-dropdown 0.37.2 → 0.37.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -16,7 +16,7 @@ var styled__default = /*#__PURE__*/_interopDefault(styled);
16
16
 
17
17
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
18
18
 
19
- var fails$j = function (exec) {
19
+ var fails$i = function (exec) {
20
20
  try {
21
21
  return !!exec();
22
22
  } catch (error) {
@@ -24,11 +24,11 @@ var fails$j = function (exec) {
24
24
  }
25
25
  };
26
26
 
27
- var fails$i = fails$j;
27
+ var fails$h = fails$i;
28
28
 
29
- var functionBindNative = !fails$i(function () {
29
+ var functionBindNative = !fails$h(function () {
30
30
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
31
- var test = (function () { /* empty */ }).bind();
31
+ var test = function () { /* empty */ }.bind();
32
32
  // eslint-disable-next-line no-prototype-builtins -- safe
33
33
  return typeof test != 'function' || test.hasOwnProperty('prototype');
34
34
  });
@@ -46,24 +46,24 @@ var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
46
46
  };
47
47
  };
48
48
 
49
- var uncurryThis$h = functionUncurryThis;
49
+ var uncurryThis$g = functionUncurryThis;
50
50
 
51
- var toString$7 = uncurryThis$h({}.toString);
52
- var stringSlice$5 = uncurryThis$h(''.slice);
51
+ var toString$6 = uncurryThis$g({}.toString);
52
+ var stringSlice$5 = uncurryThis$g(''.slice);
53
53
 
54
54
  var classofRaw$2 = function (it) {
55
- return stringSlice$5(toString$7(it), 8, -1);
55
+ return stringSlice$5(toString$6(it), 8, -1);
56
56
  };
57
57
 
58
- var uncurryThis$g = functionUncurryThis;
59
- var fails$h = fails$j;
58
+ var uncurryThis$f = functionUncurryThis;
59
+ var fails$g = fails$i;
60
60
  var classof$4 = classofRaw$2;
61
61
 
62
62
  var $Object$4 = Object;
63
- var split = uncurryThis$g(''.split);
63
+ var split = uncurryThis$f(''.split);
64
64
 
65
65
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
66
- var indexedObject = fails$h(function () {
66
+ var indexedObject = fails$g(function () {
67
67
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
68
68
  // eslint-disable-next-line no-prototype-builtins -- safe
69
69
  return !$Object$4('z').propertyIsEnumerable(0);
@@ -83,17 +83,17 @@ var $TypeError$b = TypeError;
83
83
 
84
84
  // `RequireObjectCoercible` abstract operation
85
85
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
86
- var requireObjectCoercible$7 = function (it) {
86
+ var requireObjectCoercible$6 = function (it) {
87
87
  if (isNullOrUndefined$2(it)) throw new $TypeError$b("Can't call method on " + it);
88
88
  return it;
89
89
  };
90
90
 
91
91
  // toObject with fallback for non-array-like ES3 strings
92
92
  var IndexedObject$1 = indexedObject;
93
- var requireObjectCoercible$6 = requireObjectCoercible$7;
93
+ var requireObjectCoercible$5 = requireObjectCoercible$6;
94
94
 
95
95
  var toIndexedObject$5 = function (it) {
96
- return IndexedObject$1(requireObjectCoercible$6(it));
96
+ return IndexedObject$1(requireObjectCoercible$5(it));
97
97
  };
98
98
 
99
99
  var check = function (it) {
@@ -134,10 +134,10 @@ var SHARED = '__core-js_shared__';
134
134
  var store$3 = sharedStore.exports = globalThis$h[SHARED] || defineGlobalProperty$2(SHARED, {});
135
135
 
136
136
  (store$3.versions || (store$3.versions = [])).push({
137
- version: '3.48.0',
137
+ version: '3.49.0',
138
138
  mode: 'global',
139
139
  copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
140
- license: 'https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE',
140
+ license: 'https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE',
141
141
  source: 'https://github.com/zloirock/core-js'
142
142
  });
143
143
 
@@ -149,20 +149,20 @@ var shared$4 = function (key, value) {
149
149
  return store$2[key] || (store$2[key] = value || {});
150
150
  };
151
151
 
152
- var requireObjectCoercible$5 = requireObjectCoercible$7;
152
+ var requireObjectCoercible$4 = requireObjectCoercible$6;
153
153
 
154
154
  var $Object$3 = Object;
155
155
 
156
156
  // `ToObject` abstract operation
157
157
  // https://tc39.es/ecma262/#sec-toobject
158
158
  var toObject$4 = function (argument) {
159
- return $Object$3(requireObjectCoercible$5(argument));
159
+ return $Object$3(requireObjectCoercible$4(argument));
160
160
  };
161
161
 
162
- var uncurryThis$f = functionUncurryThis;
162
+ var uncurryThis$e = functionUncurryThis;
163
163
  var toObject$3 = toObject$4;
164
164
 
165
- var hasOwnProperty = uncurryThis$f({}.hasOwnProperty);
165
+ var hasOwnProperty = uncurryThis$e({}.hasOwnProperty);
166
166
 
167
167
  // `HasOwnProperty` abstract operation
168
168
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -171,14 +171,14 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
171
171
  return hasOwnProperty(toObject$3(it), key);
172
172
  };
173
173
 
174
- var uncurryThis$e = functionUncurryThis;
174
+ var uncurryThis$d = functionUncurryThis;
175
175
 
176
176
  var id = 0;
177
177
  var postfix = Math.random();
178
- var toString$6 = uncurryThis$e(1.1.toString);
178
+ var toString$5 = uncurryThis$d(1.1.toString);
179
179
 
180
180
  var uid$2 = function (key) {
181
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
181
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
182
182
  };
183
183
 
184
184
  var globalThis$g = globalThis_1;
@@ -218,13 +218,13 @@ var environmentV8Version = version;
218
218
 
219
219
  /* eslint-disable es/no-symbol -- required for testing */
220
220
  var V8_VERSION = environmentV8Version;
221
- var fails$g = fails$j;
221
+ var fails$f = fails$i;
222
222
  var globalThis$e = globalThis_1;
223
223
 
224
224
  var $String$5 = globalThis$e.String;
225
225
 
226
226
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
227
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$g(function () {
227
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$f(function () {
228
228
  var symbol = Symbol('symbol detection');
229
229
  // Chrome 38 Symbol has incorrect toString conversion
230
230
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -292,20 +292,20 @@ var anObject$i = function (argument) {
292
292
 
293
293
  var objectDefineProperties = {};
294
294
 
295
- var fails$f = fails$j;
295
+ var fails$e = fails$i;
296
296
 
297
297
  // Detect IE8's incomplete defineProperty implementation
298
- var descriptors = !fails$f(function () {
298
+ var descriptors = !fails$e(function () {
299
299
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
300
300
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
301
301
  });
302
302
 
303
303
  var DESCRIPTORS$b = descriptors;
304
- var fails$e = fails$j;
304
+ var fails$d = fails$i;
305
305
 
306
306
  // V8 ~ Chrome 36-
307
307
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
308
- var v8PrototypeDefineBug = DESCRIPTORS$b && fails$e(function () {
308
+ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$d(function () {
309
309
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
310
310
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
311
311
  value: 42,
@@ -327,11 +327,11 @@ var documentCreateElement$2 = function (it) {
327
327
  };
328
328
 
329
329
  var DESCRIPTORS$a = descriptors;
330
- var fails$d = fails$j;
330
+ var fails$c = fails$i;
331
331
  var createElement = documentCreateElement$2;
332
332
 
333
333
  // Thanks to IE8 for its funny defineProperty
334
- var ie8DomDefine = !DESCRIPTORS$a && !fails$d(function () {
334
+ var ie8DomDefine = !DESCRIPTORS$a && !fails$c(function () {
335
335
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
336
336
  return Object.defineProperty(createElement('div'), 'a', {
337
337
  get: function () { return 7; }
@@ -357,9 +357,9 @@ var getBuiltIn$3 = function (namespace, method) {
357
357
  return arguments.length < 2 ? aFunction(globalThis$b[namespace]) : globalThis$b[namespace] && globalThis$b[namespace][method];
358
358
  };
359
359
 
360
- var uncurryThis$d = functionUncurryThis;
360
+ var uncurryThis$c = functionUncurryThis;
361
361
 
362
- var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
362
+ var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
363
363
 
364
364
  var getBuiltIn$2 = getBuiltIn$3;
365
365
  var isCallable$e = isCallable$h;
@@ -560,7 +560,7 @@ var toAbsoluteIndex = toAbsoluteIndex$1;
560
560
  var lengthOfArrayLike$1 = lengthOfArrayLike$2;
561
561
 
562
562
  // `Array.prototype.{ indexOf, includes }` methods implementation
563
- var createMethod$2 = function (IS_INCLUDES) {
563
+ var createMethod$1 = function (IS_INCLUDES) {
564
564
  return function ($this, el, fromIndex) {
565
565
  var O = toIndexedObject$4($this);
566
566
  var length = lengthOfArrayLike$1(O);
@@ -583,18 +583,18 @@ var createMethod$2 = function (IS_INCLUDES) {
583
583
  var arrayIncludes = {
584
584
  // `Array.prototype.indexOf` method
585
585
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
586
- indexOf: createMethod$2(false)
586
+ indexOf: createMethod$1(false)
587
587
  };
588
588
 
589
589
  var hiddenKeys$4 = {};
590
590
 
591
- var uncurryThis$c = functionUncurryThis;
591
+ var uncurryThis$b = functionUncurryThis;
592
592
  var hasOwn$9 = hasOwnProperty_1;
593
593
  var toIndexedObject$3 = toIndexedObject$5;
594
594
  var indexOf$1 = arrayIncludes.indexOf;
595
595
  var hiddenKeys$3 = hiddenKeys$4;
596
596
 
597
- var push$1 = uncurryThis$c([].push);
597
+ var push$1 = uncurryThis$b([].push);
598
598
 
599
599
  var objectKeysInternal = function (object, names) {
600
600
  var O = toIndexedObject$3(object);
@@ -922,7 +922,7 @@ var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
922
922
 
923
923
  var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
924
924
  // additional protection from minified / mangled / dropped function names
925
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
925
+ var PROPER = EXISTS && function something() { /* empty */ }.name === 'something';
926
926
  var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
927
927
 
928
928
  var functionName = {
@@ -930,11 +930,11 @@ var functionName = {
930
930
  CONFIGURABLE: CONFIGURABLE
931
931
  };
932
932
 
933
- var uncurryThis$b = functionUncurryThis;
933
+ var uncurryThis$a = functionUncurryThis;
934
934
  var isCallable$a = isCallable$h;
935
935
  var store = sharedStoreExports;
936
936
 
937
- var functionToString = uncurryThis$b(Function.toString);
937
+ var functionToString = uncurryThis$a(Function.toString);
938
938
 
939
939
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
940
940
  if (!isCallable$a(store.inspectSource)) {
@@ -945,8 +945,8 @@ if (!isCallable$a(store.inspectSource)) {
945
945
 
946
946
  var inspectSource$1 = store.inspectSource;
947
947
 
948
- var uncurryThis$a = functionUncurryThis;
949
- var fails$c = fails$j;
948
+ var uncurryThis$9 = functionUncurryThis;
949
+ var fails$b = fails$i;
950
950
  var isCallable$9 = isCallable$h;
951
951
  var hasOwn$5 = hasOwnProperty_1;
952
952
  var DESCRIPTORS$4 = descriptors;
@@ -959,11 +959,11 @@ var getInternalState$2 = InternalStateModule$2.get;
959
959
  var $String$2 = String;
960
960
  // eslint-disable-next-line es/no-object-defineproperty -- safe
961
961
  var defineProperty$4 = Object.defineProperty;
962
- var stringSlice$4 = uncurryThis$a(''.slice);
963
- var replace$3 = uncurryThis$a(''.replace);
964
- var join = uncurryThis$a([].join);
962
+ var stringSlice$4 = uncurryThis$9(''.slice);
963
+ var replace$2 = uncurryThis$9(''.replace);
964
+ var join = uncurryThis$9([].join);
965
965
 
966
- var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$c(function () {
966
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$b(function () {
967
967
  return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
968
968
  });
969
969
 
@@ -971,7 +971,7 @@ var TEMPLATE = String(String).split('String');
971
971
 
972
972
  var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
973
973
  if (stringSlice$4($String$2(name), 0, 7) === 'Symbol(') {
974
- name = '[' + replace$3($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
974
+ name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
975
975
  }
976
976
  if (options && options.getter) name = 'get ' + name;
977
977
  if (options && options.setter) name = 'set ' + name;
@@ -1050,12 +1050,12 @@ var objectGetOwnPropertySymbols = {};
1050
1050
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1051
1051
 
1052
1052
  var getBuiltIn = getBuiltIn$3;
1053
- var uncurryThis$9 = functionUncurryThis;
1053
+ var uncurryThis$8 = functionUncurryThis;
1054
1054
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1055
1055
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1056
1056
  var anObject$e = anObject$i;
1057
1057
 
1058
- var concat$2 = uncurryThis$9([].concat);
1058
+ var concat$2 = uncurryThis$8([].concat);
1059
1059
 
1060
1060
  // all object keys, includes non-enumerable and symbols
1061
1061
  var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
@@ -1081,7 +1081,7 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
1081
1081
  }
1082
1082
  };
1083
1083
 
1084
- var fails$b = fails$j;
1084
+ var fails$a = fails$i;
1085
1085
  var isCallable$7 = isCallable$h;
1086
1086
 
1087
1087
  var replacement = /#|\.prototype\./;
@@ -1090,7 +1090,7 @@ var isForced$1 = function (feature, detection) {
1090
1090
  var value = data[normalize(feature)];
1091
1091
  return value === POLYFILL ? true
1092
1092
  : value === NATIVE ? false
1093
- : isCallable$7(detection) ? fails$b(detection)
1093
+ : isCallable$7(detection) ? fails$a(detection)
1094
1094
  : !!detection;
1095
1095
  };
1096
1096
 
@@ -1159,9 +1159,9 @@ var _export = function (options, source) {
1159
1159
  }
1160
1160
  };
1161
1161
 
1162
- var fails$a = fails$j;
1162
+ var fails$9 = fails$i;
1163
1163
 
1164
- var correctPrototypeGetter = !fails$a(function () {
1164
+ var correctPrototypeGetter = !fails$9(function () {
1165
1165
  function F() { /* empty */ }
1166
1166
  F.prototype.constructor = null;
1167
1167
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
@@ -1190,7 +1190,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
1190
1190
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1191
1191
  };
1192
1192
 
1193
- var fails$9 = fails$j;
1193
+ var fails$8 = fails$i;
1194
1194
  var isCallable$5 = isCallable$h;
1195
1195
  var isObject$4 = isObject$a;
1196
1196
  var getPrototypeOf$2 = objectGetPrototypeOf;
@@ -1215,7 +1215,7 @@ if ([].keys) {
1215
1215
  }
1216
1216
  }
1217
1217
 
1218
- var NEW_ITERATOR_PROTOTYPE = !isObject$4(IteratorPrototype$4) || fails$9(function () {
1218
+ var NEW_ITERATOR_PROTOTYPE = !isObject$4(IteratorPrototype$4) || fails$8(function () {
1219
1219
  var test = {};
1220
1220
  // FF44- legacy iterators case
1221
1221
  return IteratorPrototype$4[ITERATOR$5].call(test) !== test;
@@ -1265,13 +1265,13 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
1265
1265
  return IteratorConstructor;
1266
1266
  };
1267
1267
 
1268
- var uncurryThis$8 = functionUncurryThis;
1268
+ var uncurryThis$7 = functionUncurryThis;
1269
1269
  var aCallable$7 = aCallable$9;
1270
1270
 
1271
1271
  var functionUncurryThisAccessor = function (object, key, method) {
1272
1272
  try {
1273
1273
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1274
- return uncurryThis$8(aCallable$7(Object.getOwnPropertyDescriptor(object, key)[method]));
1274
+ return uncurryThis$7(aCallable$7(Object.getOwnPropertyDescriptor(object, key)[method]));
1275
1275
  } catch (error) { /* empty */ }
1276
1276
  };
1277
1277
 
@@ -1294,7 +1294,7 @@ var aPossiblePrototype$1 = function (argument) {
1294
1294
  /* eslint-disable no-proto -- safe */
1295
1295
  var uncurryThisAccessor = functionUncurryThisAccessor;
1296
1296
  var isObject$2 = isObject$a;
1297
- var requireObjectCoercible$4 = requireObjectCoercible$7;
1297
+ var requireObjectCoercible$3 = requireObjectCoercible$6;
1298
1298
  var aPossiblePrototype = aPossiblePrototype$1;
1299
1299
 
1300
1300
  // `Object.setPrototypeOf` method
@@ -1311,7 +1311,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1311
1311
  CORRECT_SETTER = test instanceof Array;
1312
1312
  } catch (error) { /* empty */ }
1313
1313
  return function setPrototypeOf(O, proto) {
1314
- requireObjectCoercible$4(O);
1314
+ requireObjectCoercible$3(O);
1315
1315
  aPossiblePrototype(proto);
1316
1316
  if (!isObject$2(O)) return O;
1317
1317
  if (CORRECT_SETTER) setter(O, proto);
@@ -1320,7 +1320,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1320
1320
  };
1321
1321
  }() : undefined);
1322
1322
 
1323
- var $$9 = _export;
1323
+ var $$8 = _export;
1324
1324
  var call$h = functionCall;
1325
1325
  var FunctionName = functionName;
1326
1326
  var isCallable$4 = isCallable$h;
@@ -1334,7 +1334,7 @@ var wellKnownSymbol$9 = wellKnownSymbol$e;
1334
1334
  var Iterators$3 = iterators;
1335
1335
  var IteratorsCore = iteratorsCore;
1336
1336
 
1337
- var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
1337
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1338
1338
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1339
1339
  var IteratorPrototype$2 = IteratorsCore.IteratorPrototype;
1340
1340
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
@@ -1388,7 +1388,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1388
1388
  }
1389
1389
 
1390
1390
  // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1391
- if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1391
+ if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1392
1392
  if (CONFIGURABLE_FUNCTION_NAME) {
1393
1393
  createNonEnumerableProperty$3(IterablePrototype, 'name', VALUES);
1394
1394
  } else {
@@ -1408,7 +1408,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1408
1408
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1409
1409
  defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
1410
1410
  }
1411
- } else $$9({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1411
+ } else $$8({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1412
1412
  }
1413
1413
 
1414
1414
  // define iterator
@@ -1514,7 +1514,7 @@ var createProperty$1 = function (object, key, value) {
1514
1514
  else object[key] = value;
1515
1515
  };
1516
1516
 
1517
- var $$8 = _export;
1517
+ var $$7 = _export;
1518
1518
  var globalThis$7 = globalThis_1;
1519
1519
  var anInstance = anInstance$1;
1520
1520
  var anObject$d = anObject$i;
@@ -1522,7 +1522,7 @@ var isCallable$3 = isCallable$h;
1522
1522
  var getPrototypeOf = objectGetPrototypeOf;
1523
1523
  var defineBuiltInAccessor = defineBuiltInAccessor$1;
1524
1524
  var createProperty = createProperty$1;
1525
- var fails$8 = fails$j;
1525
+ var fails$7 = fails$i;
1526
1526
  var hasOwn$1 = hasOwnProperty_1;
1527
1527
  var wellKnownSymbol$8 = wellKnownSymbol$e;
1528
1528
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
@@ -1539,7 +1539,7 @@ var NativeIterator = globalThis$7[ITERATOR$3];
1539
1539
  var FORCED$2 = !isCallable$3(NativeIterator)
1540
1540
  || NativeIterator.prototype !== IteratorPrototype$1
1541
1541
  // FF44- non-standard `Iterator` passes previous tests
1542
- || !fails$8(function () { NativeIterator({}); });
1542
+ || !fails$7(function () { NativeIterator({}); });
1543
1543
 
1544
1544
  var IteratorConstructor = function Iterator() {
1545
1545
  anInstance(this, IteratorPrototype$1);
@@ -1573,25 +1573,25 @@ IteratorConstructor.prototype = IteratorPrototype$1;
1573
1573
 
1574
1574
  // `Iterator` constructor
1575
1575
  // https://tc39.es/ecma262/#sec-iterator
1576
- $$8({ global: true, constructor: true, forced: FORCED$2 }, {
1576
+ $$7({ global: true, constructor: true, forced: FORCED$2 }, {
1577
1577
  Iterator: IteratorConstructor
1578
1578
  });
1579
1579
 
1580
1580
  var classofRaw$1 = classofRaw$2;
1581
- var uncurryThis$7 = functionUncurryThis;
1581
+ var uncurryThis$6 = functionUncurryThis;
1582
1582
 
1583
1583
  var functionUncurryThisClause = function (fn) {
1584
1584
  // Nashorn bug:
1585
1585
  // https://github.com/zloirock/core-js/issues/1128
1586
1586
  // https://github.com/zloirock/core-js/issues/1130
1587
- if (classofRaw$1(fn) === 'Function') return uncurryThis$7(fn);
1587
+ if (classofRaw$1(fn) === 'Function') return uncurryThis$6(fn);
1588
1588
  };
1589
1589
 
1590
- var uncurryThis$6 = functionUncurryThisClause;
1590
+ var uncurryThis$5 = functionUncurryThisClause;
1591
1591
  var aCallable$6 = aCallable$9;
1592
1592
  var NATIVE_BIND$1 = functionBindNative;
1593
1593
 
1594
- var bind$1 = uncurryThis$6(uncurryThis$6.bind);
1594
+ var bind$1 = uncurryThis$5(uncurryThis$5.bind);
1595
1595
 
1596
1596
  // optional / simple context binding
1597
1597
  var functionBindContext = function (fn, that) {
@@ -1733,7 +1733,9 @@ var iterate$3 = function (iterable, unboundFunction, options) {
1733
1733
  var iterator, iterFn, index, length, result, next, step;
1734
1734
 
1735
1735
  var stop = function (condition) {
1736
- if (iterator) iteratorClose$8(iterator, 'normal');
1736
+ var $iterator = iterator;
1737
+ iterator = undefined;
1738
+ if ($iterator) iteratorClose$8($iterator, 'normal');
1737
1739
  return new Result(true, condition);
1738
1740
  };
1739
1741
 
@@ -1763,10 +1765,13 @@ var iterate$3 = function (iterable, unboundFunction, options) {
1763
1765
 
1764
1766
  next = IS_RECORD ? iterable.next : iterator.next;
1765
1767
  while (!(step = call$e(next, iterator)).done) {
1768
+ // `IteratorValue` errors should propagate without closing the iterator
1769
+ var value = step.value;
1766
1770
  try {
1767
- result = callFn(step.value);
1771
+ result = callFn(value);
1768
1772
  } catch (error) {
1769
- iteratorClose$8(iterator, 'throw', error);
1773
+ if (iterator) iteratorClose$8(iterator, 'throw', error);
1774
+ else throw error;
1770
1775
  }
1771
1776
  if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
1772
1777
  } return new Result(false);
@@ -1805,7 +1810,7 @@ var iteratorHelperWithoutClosingOnEarlyError$5 = function (METHOD_NAME, Expected
1805
1810
  if (!CLOSED) return method;
1806
1811
  };
1807
1812
 
1808
- var $$7 = _export;
1813
+ var $$6 = _export;
1809
1814
  var call$d = functionCall;
1810
1815
  var iterate$2 = iterate$3;
1811
1816
  var aCallable$4 = aCallable$9;
@@ -1818,7 +1823,7 @@ var findWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$4(
1818
1823
 
1819
1824
  // `Iterator.prototype.find` method
1820
1825
  // https://tc39.es/ecma262/#sec-iterator.prototype.find
1821
- $$7({ target: 'Iterator', proto: true, real: true, forced: findWithoutClosingOnEarlyError }, {
1826
+ $$6({ target: 'Iterator', proto: true, real: true, forced: findWithoutClosingOnEarlyError }, {
1822
1827
  find: function find(predicate) {
1823
1828
  anObject$9(this);
1824
1829
  try {
@@ -1837,7 +1842,7 @@ $$7({ target: 'Iterator', proto: true, real: true, forced: findWithoutClosingOnE
1837
1842
  }
1838
1843
  });
1839
1844
 
1840
- var $$6 = _export;
1845
+ var $$5 = _export;
1841
1846
  var call$c = functionCall;
1842
1847
  var iterate$1 = iterate$3;
1843
1848
  var aCallable$3 = aCallable$9;
@@ -1850,7 +1855,7 @@ var someWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$3(
1850
1855
 
1851
1856
  // `Iterator.prototype.some` method
1852
1857
  // https://tc39.es/ecma262/#sec-iterator.prototype.some
1853
- $$6({ target: 'Iterator', proto: true, real: true, forced: someWithoutClosingOnEarlyError }, {
1858
+ $$5({ target: 'Iterator', proto: true, real: true, forced: someWithoutClosingOnEarlyError }, {
1854
1859
  some: function some(predicate) {
1855
1860
  anObject$8(this);
1856
1861
  try {
@@ -1870,9 +1875,9 @@ $$6({ target: 'Iterator', proto: true, real: true, forced: someWithoutClosingOnE
1870
1875
  });
1871
1876
 
1872
1877
  var DESCRIPTORS = descriptors;
1873
- var uncurryThis$5 = functionUncurryThis;
1878
+ var uncurryThis$4 = functionUncurryThis;
1874
1879
  var call$b = functionCall;
1875
- var fails$7 = fails$j;
1880
+ var fails$6 = fails$i;
1876
1881
  var objectKeys = objectKeys$2;
1877
1882
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1878
1883
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
@@ -1883,11 +1888,11 @@ var IndexedObject = indexedObject;
1883
1888
  var $assign = Object.assign;
1884
1889
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1885
1890
  var defineProperty = Object.defineProperty;
1886
- var concat$1 = uncurryThis$5([].concat);
1891
+ var concat$1 = uncurryThis$4([].concat);
1887
1892
 
1888
1893
  // `Object.assign` method
1889
1894
  // https://tc39.es/ecma262/#sec-object.assign
1890
- var objectAssign = !$assign || fails$7(function () {
1895
+ var objectAssign = !$assign || fails$6(function () {
1891
1896
  // should have correct order of operations (Edge bug)
1892
1897
  if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1893
1898
  enumerable: true,
@@ -1927,13 +1932,13 @@ var objectAssign = !$assign || fails$7(function () {
1927
1932
  } return T;
1928
1933
  } : $assign;
1929
1934
 
1930
- var $$5 = _export;
1935
+ var $$4 = _export;
1931
1936
  var assign = objectAssign;
1932
1937
 
1933
1938
  // `Object.assign` method
1934
1939
  // https://tc39.es/ecma262/#sec-object.assign
1935
1940
  // eslint-disable-next-line es/no-object-assign -- required for testing
1936
- $$5({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1941
+ $$4({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1937
1942
  assign: assign
1938
1943
  });
1939
1944
 
@@ -2066,7 +2071,7 @@ var classof$1 = classof$3;
2066
2071
 
2067
2072
  var $String = String;
2068
2073
 
2069
- var toString$5 = function (argument) {
2074
+ var toString$4 = function (argument) {
2070
2075
  if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
2071
2076
  return $String(argument);
2072
2077
  };
@@ -2089,13 +2094,13 @@ var regexpFlags$1 = function () {
2089
2094
  return result;
2090
2095
  };
2091
2096
 
2092
- var fails$6 = fails$j;
2097
+ var fails$5 = fails$i;
2093
2098
  var globalThis$4 = globalThis_1;
2094
2099
 
2095
2100
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
2096
2101
  var $RegExp$2 = globalThis$4.RegExp;
2097
2102
 
2098
- var UNSUPPORTED_Y$1 = fails$6(function () {
2103
+ var UNSUPPORTED_Y$1 = fails$5(function () {
2099
2104
  var re = $RegExp$2('a', 'y');
2100
2105
  re.lastIndex = 2;
2101
2106
  return re.exec('abcd') !== null;
@@ -2103,11 +2108,11 @@ var UNSUPPORTED_Y$1 = fails$6(function () {
2103
2108
 
2104
2109
  // UC Browser bug
2105
2110
  // https://github.com/zloirock/core-js/issues/1008
2106
- UNSUPPORTED_Y$1 || fails$6(function () {
2111
+ UNSUPPORTED_Y$1 || fails$5(function () {
2107
2112
  return !$RegExp$2('a', 'y').sticky;
2108
2113
  });
2109
2114
 
2110
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$6(function () {
2115
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$5(function () {
2111
2116
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
2112
2117
  var re = $RegExp$2('^r', 'gy');
2113
2118
  re.lastIndex = 2;
@@ -2117,24 +2122,24 @@ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$6(function () {
2117
2122
  var regexpStickyHelpers = {
2118
2123
  BROKEN_CARET: BROKEN_CARET};
2119
2124
 
2120
- var fails$5 = fails$j;
2125
+ var fails$4 = fails$i;
2121
2126
  var globalThis$3 = globalThis_1;
2122
2127
 
2123
2128
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
2124
2129
  var $RegExp$1 = globalThis$3.RegExp;
2125
2130
 
2126
- var regexpUnsupportedDotAll = fails$5(function () {
2131
+ var regexpUnsupportedDotAll = fails$4(function () {
2127
2132
  var re = $RegExp$1('.', 's');
2128
2133
  return !(re.dotAll && re.test('\n') && re.flags === 's');
2129
2134
  });
2130
2135
 
2131
- var fails$4 = fails$j;
2136
+ var fails$3 = fails$i;
2132
2137
  var globalThis$2 = globalThis_1;
2133
2138
 
2134
2139
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
2135
2140
  var $RegExp = globalThis$2.RegExp;
2136
2141
 
2137
- var regexpUnsupportedNcg = fails$4(function () {
2142
+ var regexpUnsupportedNcg = fails$3(function () {
2138
2143
  var re = $RegExp('(?<a>b)', 'g');
2139
2144
  return re.exec('b').groups.a !== 'b' ||
2140
2145
  'b'.replace(re, '$<a>c') !== 'bc';
@@ -2143,8 +2148,8 @@ var regexpUnsupportedNcg = fails$4(function () {
2143
2148
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
2144
2149
  /* eslint-disable regexp/no-useless-quantifier -- testing */
2145
2150
  var call$a = functionCall;
2146
- var uncurryThis$4 = functionUncurryThis;
2147
- var toString$4 = toString$5;
2151
+ var uncurryThis$3 = functionUncurryThis;
2152
+ var toString$3 = toString$4;
2148
2153
  var regexpFlags = regexpFlags$1;
2149
2154
  var stickyHelpers = regexpStickyHelpers;
2150
2155
  var shared = shared$4;
@@ -2156,10 +2161,10 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
2156
2161
  var nativeReplace = shared('native-string-replace', String.prototype.replace);
2157
2162
  var nativeExec = RegExp.prototype.exec;
2158
2163
  var patchedExec = nativeExec;
2159
- var charAt$3 = uncurryThis$4(''.charAt);
2160
- var indexOf = uncurryThis$4(''.indexOf);
2161
- var replace$2 = uncurryThis$4(''.replace);
2162
- var stringSlice$3 = uncurryThis$4(''.slice);
2164
+ var charAt$3 = uncurryThis$3(''.charAt);
2165
+ var indexOf = uncurryThis$3(''.indexOf);
2166
+ var replace$1 = uncurryThis$3(''.replace);
2167
+ var stringSlice$3 = uncurryThis$3(''.slice);
2163
2168
 
2164
2169
  var UPDATES_LAST_INDEX_WRONG = (function () {
2165
2170
  var re1 = /a/;
@@ -2176,18 +2181,29 @@ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
2176
2181
 
2177
2182
  var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
2178
2183
 
2184
+ var setGroups = function (re, groups) {
2185
+ var object = re.groups = create$1(null);
2186
+ for (var i = 0; i < groups.length; i++) {
2187
+ var group = groups[i];
2188
+ object[group[0]] = re[group[1]];
2189
+ }
2190
+ };
2191
+
2179
2192
  if (PATCH) {
2180
2193
  patchedExec = function exec(string) {
2181
2194
  var re = this;
2182
2195
  var state = getInternalState(re);
2183
- var str = toString$4(string);
2196
+ var str = toString$3(string);
2184
2197
  var raw = state.raw;
2185
- var result, reCopy, lastIndex, match, i, object, group;
2198
+ var result, reCopy, lastIndex;
2186
2199
 
2187
2200
  if (raw) {
2188
2201
  raw.lastIndex = re.lastIndex;
2189
2202
  result = call$a(patchedExec, raw, str);
2190
2203
  re.lastIndex = raw.lastIndex;
2204
+
2205
+ if (result && state.groups) setGroups(result, state.groups);
2206
+
2191
2207
  return result;
2192
2208
  }
2193
2209
 
@@ -2199,15 +2215,17 @@ if (PATCH) {
2199
2215
  var strCopy = str;
2200
2216
 
2201
2217
  if (sticky) {
2202
- flags = replace$2(flags, 'y', '');
2218
+ flags = replace$1(flags, 'y', '');
2203
2219
  if (indexOf(flags, 'g') === -1) {
2204
2220
  flags += 'g';
2205
2221
  }
2206
2222
 
2207
2223
  strCopy = stringSlice$3(str, re.lastIndex);
2208
2224
  // Support anchored sticky behavior.
2209
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
2210
- source = '(?: ' + source + ')';
2225
+ var prevChar = re.lastIndex > 0 && charAt$3(str, re.lastIndex - 1);
2226
+ if (re.lastIndex > 0 &&
2227
+ (!re.multiline || re.multiline && prevChar !== '\n' && prevChar !== '\r' && prevChar !== '\u2028' && prevChar !== '\u2029')) {
2228
+ source = '(?: (?:' + source + '))';
2211
2229
  strCopy = ' ' + strCopy;
2212
2230
  charsAdded++;
2213
2231
  }
@@ -2221,11 +2239,11 @@ if (PATCH) {
2221
2239
  }
2222
2240
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
2223
2241
 
2224
- match = call$a(nativeExec, sticky ? reCopy : re, strCopy);
2242
+ var match = call$a(nativeExec, sticky ? reCopy : re, strCopy);
2225
2243
 
2226
2244
  if (sticky) {
2227
2245
  if (match) {
2228
- match.input = stringSlice$3(match.input, charsAdded);
2246
+ match.input = str;
2229
2247
  match[0] = stringSlice$3(match[0], charsAdded);
2230
2248
  match.index = re.lastIndex;
2231
2249
  re.lastIndex += match[0].length;
@@ -2237,19 +2255,13 @@ if (PATCH) {
2237
2255
  // Fix browsers whose `exec` methods don't consistently return `undefined`
2238
2256
  // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
2239
2257
  call$a(nativeReplace, match[0], reCopy, function () {
2240
- for (i = 1; i < arguments.length - 2; i++) {
2258
+ for (var i = 1; i < arguments.length - 2; i++) {
2241
2259
  if (arguments[i] === undefined) match[i] = undefined;
2242
2260
  }
2243
2261
  });
2244
2262
  }
2245
2263
 
2246
- if (match && groups) {
2247
- match.groups = object = create$1(null);
2248
- for (i = 0; i < groups.length; i++) {
2249
- group = groups[i];
2250
- object[group[0]] = match[group[1]];
2251
- }
2252
- }
2264
+ if (match && groups) setGroups(match, groups);
2253
2265
 
2254
2266
  return match;
2255
2267
  };
@@ -2257,12 +2269,12 @@ if (PATCH) {
2257
2269
 
2258
2270
  var regexpExec$2 = patchedExec;
2259
2271
 
2260
- var $$4 = _export;
2272
+ var $$3 = _export;
2261
2273
  var exec = regexpExec$2;
2262
2274
 
2263
2275
  // `RegExp.prototype.exec` method
2264
2276
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
2265
- $$4({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
2277
+ $$3({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
2266
2278
  exec: exec
2267
2279
  });
2268
2280
 
@@ -2282,7 +2294,7 @@ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND
2282
2294
  var call$8 = functionCall;
2283
2295
  var defineBuiltIn$1 = defineBuiltIn$5;
2284
2296
  var regexpExec$1 = regexpExec$2;
2285
- var fails$3 = fails$j;
2297
+ var fails$2 = fails$i;
2286
2298
  var wellKnownSymbol$2 = wellKnownSymbol$e;
2287
2299
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$6;
2288
2300
 
@@ -2292,7 +2304,7 @@ var RegExpPrototype$1 = RegExp.prototype;
2292
2304
  var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2293
2305
  var SYMBOL = wellKnownSymbol$2(KEY);
2294
2306
 
2295
- var DELEGATES_TO_SYMBOL = !fails$3(function () {
2307
+ var DELEGATES_TO_SYMBOL = !fails$2(function () {
2296
2308
  // String methods call symbol-named RegExp methods
2297
2309
  var O = {};
2298
2310
  // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
@@ -2300,7 +2312,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2300
2312
  return ''[KEY](O) !== 7;
2301
2313
  });
2302
2314
 
2303
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$3(function () {
2315
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$2(function () {
2304
2316
  // Symbol-named RegExp methods call .exec
2305
2317
  var execCalled = false;
2306
2318
  var re = /a/;
@@ -2355,18 +2367,18 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2355
2367
  if (SHAM) createNonEnumerableProperty$1(RegExpPrototype$1[SYMBOL], 'sham', true);
2356
2368
  };
2357
2369
 
2358
- var uncurryThis$3 = functionUncurryThis;
2370
+ var uncurryThis$2 = functionUncurryThis;
2359
2371
  var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
2360
- var toString$3 = toString$5;
2361
- var requireObjectCoercible$3 = requireObjectCoercible$7;
2372
+ var toString$2 = toString$4;
2373
+ var requireObjectCoercible$2 = requireObjectCoercible$6;
2362
2374
 
2363
- var charAt$2 = uncurryThis$3(''.charAt);
2364
- var charCodeAt = uncurryThis$3(''.charCodeAt);
2365
- var stringSlice$2 = uncurryThis$3(''.slice);
2375
+ var charAt$2 = uncurryThis$2(''.charAt);
2376
+ var charCodeAt = uncurryThis$2(''.charCodeAt);
2377
+ var stringSlice$2 = uncurryThis$2(''.slice);
2366
2378
 
2367
- var createMethod$1 = function (CONVERT_TO_STRING) {
2379
+ var createMethod = function (CONVERT_TO_STRING) {
2368
2380
  return function ($this, pos) {
2369
- var S = toString$3(requireObjectCoercible$3($this));
2381
+ var S = toString$2(requireObjectCoercible$2($this));
2370
2382
  var position = toIntegerOrInfinity$1(pos);
2371
2383
  var size = S.length;
2372
2384
  var first, second;
@@ -2386,7 +2398,7 @@ var createMethod$1 = function (CONVERT_TO_STRING) {
2386
2398
  var stringMultibyte = {
2387
2399
  // `String.prototype.at` method
2388
2400
  // https://github.com/mathiasbynens/String.prototype.at
2389
- charAt: createMethod$1(true)
2401
+ charAt: createMethod(true)
2390
2402
  };
2391
2403
 
2392
2404
  var charAt$1 = stringMultibyte.charAt;
@@ -2394,16 +2406,16 @@ var charAt$1 = stringMultibyte.charAt;
2394
2406
  // `AdvanceStringIndex` abstract operation
2395
2407
  // https://tc39.es/ecma262/#sec-advancestringindex
2396
2408
  var advanceStringIndex$1 = function (S, index, unicode) {
2397
- return index + (unicode ? charAt$1(S, index).length : 1);
2409
+ return index + (unicode ? charAt$1(S, index).length || 1 : 1);
2398
2410
  };
2399
2411
 
2400
- var uncurryThis$2 = functionUncurryThis;
2412
+ var uncurryThis$1 = functionUncurryThis;
2401
2413
  var toObject = toObject$4;
2402
2414
 
2403
2415
  var floor = Math.floor;
2404
- var charAt = uncurryThis$2(''.charAt);
2405
- var replace$1 = uncurryThis$2(''.replace);
2406
- var stringSlice$1 = uncurryThis$2(''.slice);
2416
+ var charAt = uncurryThis$1(''.charAt);
2417
+ var replace = uncurryThis$1(''.replace);
2418
+ var stringSlice$1 = uncurryThis$1(''.slice);
2407
2419
  // eslint-disable-next-line redos/no-vulnerable -- safe
2408
2420
  var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
2409
2421
  var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
@@ -2418,7 +2430,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
2418
2430
  namedCaptures = toObject(namedCaptures);
2419
2431
  symbols = SUBSTITUTION_SYMBOLS;
2420
2432
  }
2421
- return replace$1(replacement, symbols, function (match, ch) {
2433
+ return replace(replacement, symbols, function (match, ch) {
2422
2434
  var capture;
2423
2435
  switch (charAt(ch, 0)) {
2424
2436
  case '$': return '$';
@@ -2444,12 +2456,12 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
2444
2456
  };
2445
2457
 
2446
2458
  var globalThis$1 = globalThis_1;
2447
- var fails$2 = fails$j;
2459
+ var fails$1 = fails$i;
2448
2460
 
2449
2461
  // babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError
2450
2462
  var RegExp$1 = globalThis$1.RegExp;
2451
2463
 
2452
- var FLAGS_GETTER_IS_CORRECT = !fails$2(function () {
2464
+ var FLAGS_GETTER_IS_CORRECT = !fails$1(function () {
2453
2465
  var INDICES_SUPPORT = true;
2454
2466
  try {
2455
2467
  RegExp$1('.', 'd');
@@ -2529,16 +2541,16 @@ var regexpExecAbstract = function (R, S) {
2529
2541
 
2530
2542
  var apply = functionApply;
2531
2543
  var call$5 = functionCall;
2532
- var uncurryThis$1 = functionUncurryThis;
2544
+ var uncurryThis = functionUncurryThis;
2533
2545
  var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
2534
- var fails$1 = fails$j;
2546
+ var fails = fails$i;
2535
2547
  var anObject$5 = anObject$i;
2536
2548
  var isCallable = isCallable$h;
2537
2549
  var isObject$1 = isObject$a;
2538
2550
  var toIntegerOrInfinity = toIntegerOrInfinity$4;
2539
2551
  var toLength = toLength$2;
2540
- var toString$2 = toString$5;
2541
- var requireObjectCoercible$2 = requireObjectCoercible$7;
2552
+ var toString$1 = toString$4;
2553
+ var requireObjectCoercible$1 = requireObjectCoercible$6;
2542
2554
  var advanceStringIndex = advanceStringIndex$1;
2543
2555
  var getMethod$2 = getMethod$6;
2544
2556
  var getSubstitution = getSubstitution$1;
@@ -2549,10 +2561,10 @@ var wellKnownSymbol$1 = wellKnownSymbol$e;
2549
2561
  var REPLACE = wellKnownSymbol$1('replace');
2550
2562
  var max = Math.max;
2551
2563
  var min = Math.min;
2552
- var concat = uncurryThis$1([].concat);
2553
- var push = uncurryThis$1([].push);
2554
- var stringIndexOf = uncurryThis$1(''.indexOf);
2555
- var stringSlice = uncurryThis$1(''.slice);
2564
+ var concat = uncurryThis([].concat);
2565
+ var push = uncurryThis([].push);
2566
+ var stringIndexOf = uncurryThis(''.indexOf);
2567
+ var stringSlice = uncurryThis(''.slice);
2556
2568
 
2557
2569
  var maybeToString = function (it) {
2558
2570
  return it === undefined ? it : String(it);
@@ -2573,7 +2585,7 @@ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
2573
2585
  return false;
2574
2586
  })();
2575
2587
 
2576
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$1(function () {
2588
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
2577
2589
  var re = /./;
2578
2590
  re.exec = function () {
2579
2591
  var result = [];
@@ -2592,35 +2604,36 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
2592
2604
  // `String.prototype.replace` method
2593
2605
  // https://tc39.es/ecma262/#sec-string.prototype.replace
2594
2606
  function replace(searchValue, replaceValue) {
2595
- var O = requireObjectCoercible$2(this);
2607
+ var O = requireObjectCoercible$1(this);
2596
2608
  var replacer = isObject$1(searchValue) ? getMethod$2(searchValue, REPLACE) : undefined;
2597
2609
  return replacer
2598
2610
  ? call$5(replacer, searchValue, O, replaceValue)
2599
- : call$5(nativeReplace, toString$2(O), searchValue, replaceValue);
2611
+ : call$5(nativeReplace, toString$1(O), searchValue, replaceValue);
2600
2612
  },
2601
2613
  // `RegExp.prototype[@@replace]` method
2602
2614
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
2603
2615
  function (string, replaceValue) {
2604
2616
  var rx = anObject$5(this);
2605
- var S = toString$2(string);
2617
+ var S = toString$1(string);
2618
+
2619
+ var functionalReplace = isCallable(replaceValue);
2620
+ if (!functionalReplace) replaceValue = toString$1(replaceValue);
2621
+ var flags = toString$1(getRegExpFlags(rx));
2606
2622
 
2607
2623
  if (
2608
2624
  typeof replaceValue == 'string' &&
2609
- stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
2610
- stringIndexOf(replaceValue, '$<') === -1
2625
+ !~stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) &&
2626
+ !~stringIndexOf(replaceValue, '$<') &&
2627
+ !~stringIndexOf(flags, 'y')
2611
2628
  ) {
2612
2629
  var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
2613
2630
  if (res.done) return res.value;
2614
2631
  }
2615
2632
 
2616
- var functionalReplace = isCallable(replaceValue);
2617
- if (!functionalReplace) replaceValue = toString$2(replaceValue);
2618
-
2619
- var flags = toString$2(getRegExpFlags(rx));
2620
- var global = stringIndexOf(flags, 'g') !== -1;
2633
+ var global = !!~stringIndexOf(flags, 'g');
2621
2634
  var fullUnicode;
2622
2635
  if (global) {
2623
- fullUnicode = stringIndexOf(flags, 'u') !== -1;
2636
+ fullUnicode = !!~stringIndexOf(flags, 'u') || !!~stringIndexOf(flags, 'v');
2624
2637
  rx.lastIndex = 0;
2625
2638
  }
2626
2639
 
@@ -2633,7 +2646,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
2633
2646
  push(results, result);
2634
2647
  if (!global) break;
2635
2648
 
2636
- var matchStr = toString$2(result[0]);
2649
+ var matchStr = toString$1(result[0]);
2637
2650
  if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
2638
2651
  }
2639
2652
 
@@ -2642,7 +2655,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
2642
2655
  for (var i = 0; i < results.length; i++) {
2643
2656
  result = results[i];
2644
2657
 
2645
- var matched = toString$2(result[0]);
2658
+ var matched = toString$1(result[0]);
2646
2659
  var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
2647
2660
  var captures = [];
2648
2661
  var replacement;
@@ -2656,7 +2669,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
2656
2669
  if (functionalReplace) {
2657
2670
  var replacerArgs = concat([matched], captures, position, S);
2658
2671
  if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
2659
- replacement = toString$2(apply(replaceValue, undefined, replacerArgs));
2672
+ replacement = toString$1(apply(replaceValue, undefined, replacerArgs));
2660
2673
  } else {
2661
2674
  replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
2662
2675
  }
@@ -2675,7 +2688,7 @@ const ClickableElement = /*#__PURE__*/styled__default.default.div.withConfig({
2675
2688
  displayName: "molecules-dropdownstyles__ClickableElement",
2676
2689
  componentId: "sc-3wugi4-0"
2677
2690
  })(["display:flex;flex-direction:column;justify-content:center;cursor:pointer;"]);
2678
- const ContainerDropdown = /*#__PURE__*/styled__default.default.section.withConfig({
2691
+ const ContainerDropdown = /*#__PURE__*/styled__default.default.div.withConfig({
2679
2692
  displayName: "molecules-dropdownstyles__ContainerDropdown",
2680
2693
  componentId: "sc-3wugi4-1"
2681
2694
  })(["display:flex;padding-top:", ";padding-bottom:", ";padding-right:", ";padding-left:", ";gap:", ";background-color:", ";outline:", ";outline-offset:calc( ", "* -1 );border-radius:", ";box-shadow:", ";margin-bottom:", ";input{display:inline-block;text-overflow:ellipsis;white-space:nowrap;width:100%;overflow-x:hidden;}.fieldLabel{color:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";margin:0;}.requiredLabel{color:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}label.material-symbols-sharp{color:", ";}&:focus-within{background-color:", ";outline:", ";", "}", " ", ""], ({
@@ -2799,7 +2812,7 @@ const ContainerDropdown = /*#__PURE__*/styled__default.default.section.withConfi
2799
2812
  theme,
2800
2813
  $variant
2801
2814
  }) => theme.components.dropdown[$variant].text.color.fieldLabel.disable));
2802
- const SectionContainer = /*#__PURE__*/styled__default.default.section.withConfig({
2815
+ const SectionContainer = /*#__PURE__*/styled__default.default.div.withConfig({
2803
2816
  displayName: "molecules-dropdownstyles__SectionContainer",
2804
2817
  componentId: "sc-3wugi4-2"
2805
2818
  })(["position:relative;.top{top:-", ";transform:translateY(-100%);}.bottom{top:", ";}.errorMessage{padding-right:", ";padding-left:", ";p{color:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}}.helperMessage{padding-right:", ";padding-left:", ";margin-top:", ";p{color:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}}"], ({
@@ -2890,9 +2903,10 @@ const ReusableDropdownComponent = _a => {
2890
2903
  onBlur,
2891
2904
  onFocus,
2892
2905
  onKeyUp,
2893
- onKeyDown
2906
+ onKeyDown,
2907
+ activeDescendantId
2894
2908
  } = _a,
2895
- props = __rest(_a, ["id", "dataTestId", "label", "variant", "required", "inputValue", "inputLabel", "disabled", "errorMessage", "helperMessage", "onChangeInputValue", "onChangeInputLabel", "setShowSelectComponent", "showSelectComponent", "setSelectedOptionOnInputValue", "disableSearch", "inputRef", "placeholder", "onBlur", "onFocus", "onKeyUp", "onKeyDown"]);
2909
+ props = __rest(_a, ["id", "dataTestId", "label", "variant", "required", "inputValue", "inputLabel", "disabled", "errorMessage", "helperMessage", "onChangeInputValue", "onChangeInputLabel", "setShowSelectComponent", "showSelectComponent", "setSelectedOptionOnInputValue", "disableSearch", "inputRef", "placeholder", "onBlur", "onFocus", "onKeyUp", "onKeyDown", "activeDescendantId"]);
2896
2910
  const hasError = !!errorMessage;
2897
2911
  // we have to type cast because of jest. when testing it sets the type of useTheme to DefaultTheme
2898
2912
  const theme = /*#__PURE__*/styled.useTheme();
@@ -2910,6 +2924,9 @@ const ReusableDropdownComponent = _a => {
2910
2924
  e.preventDefault();
2911
2925
  if (showSelectComponent === false) {
2912
2926
  (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
2927
+ onChangeInputValue('');
2928
+ onChangeInputLabel('');
2929
+ setShowSelectComponent(true);
2913
2930
  } else {
2914
2931
  (_b = inputRef.current) === null || _b === void 0 ? void 0 : _b.blur();
2915
2932
  }
@@ -2924,18 +2941,23 @@ const ReusableDropdownComponent = _a => {
2924
2941
  }), required && jsxRuntime.jsx("span", {
2925
2942
  className: "requiredLabel",
2926
2943
  "data-testid": `${dataTestId}-label-required`,
2944
+ "aria-hidden": "true",
2927
2945
  children: "*"
2928
2946
  })]
2929
2947
  }), jsxRuntime.jsx(InputAndIconDropdown, {
2930
2948
  children: jsxRuntime.jsx(atomsInput.InputStyled, Object.assign({
2931
2949
  role: "combobox",
2932
2950
  "aria-haspopup": "listbox",
2933
- "aria-owns": `${id}-listbox`,
2951
+ "aria-owns": `${id}-select-container`,
2952
+ "aria-labelledby": label ? `${id}-label` : undefined,
2934
2953
  "aria-disabled": disabled,
2935
2954
  "aria-invalid": hasError,
2936
2955
  "aria-required": required,
2956
+ required: required,
2937
2957
  "aria-describedby": hasError ? `${id}-error` : helperMessage ? `${id}-helper` : undefined,
2938
2958
  "aria-expanded": showSelectComponent,
2959
+ "aria-autocomplete": disableSearch ? 'none' : 'list',
2960
+ "aria-activedescendant": showSelectComponent ? activeDescendantId : undefined,
2939
2961
  id: `${id}-input`,
2940
2962
  "data-testid": `${dataTestId}-input`,
2941
2963
  ref: inputRef,
@@ -2948,13 +2970,13 @@ const ReusableDropdownComponent = _a => {
2948
2970
  readOnly: disableSearch,
2949
2971
  onChange: e => {
2950
2972
  var _a, _b;
2973
+ if (!showSelectComponent) {
2974
+ setShowSelectComponent(true);
2975
+ }
2951
2976
  onChangeInputValue(((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.value) || '');
2952
2977
  onChangeInputLabel(((_b = e === null || e === void 0 ? void 0 : e.target) === null || _b === void 0 ? void 0 : _b.value) || '');
2953
2978
  },
2954
2979
  onFocus: event => {
2955
- setShowSelectComponent(true);
2956
- onChangeInputValue('');
2957
- onChangeInputLabel('');
2958
2980
  onFocus && onFocus(event);
2959
2981
  },
2960
2982
  onBlur: event => {
@@ -2972,6 +2994,7 @@ const ReusableDropdownComponent = _a => {
2972
2994
  }, uiUtils.applyDataAttributes(props, 'input')))
2973
2995
  })]
2974
2996
  }), jsxRuntime.jsx(ClickableElement, {
2997
+ "aria-hidden": "true",
2975
2998
  children: jsxRuntime.jsx(atomsIcon.Icon, {
2976
2999
  ariaHidden: true,
2977
3000
  dataTestId: `${dataTestId}-icon`,
@@ -2981,7 +3004,8 @@ const ReusableDropdownComponent = _a => {
2981
3004
  })]
2982
3005
  }), !showSelectComponent && hasError && errorMessage && jsxRuntime.jsx("div", {
2983
3006
  id: `${id}-error`,
2984
- role: "alert",
3007
+ "aria-live": "assertive",
3008
+ "aria-atomic": "true",
2985
3009
  className: "errorMessage",
2986
3010
  children: jsxRuntime.jsx("p", {
2987
3011
  "data-testid": `${dataTestId}-label-error-message`,
@@ -2989,7 +3013,7 @@ const ReusableDropdownComponent = _a => {
2989
3013
  })
2990
3014
  }), !showSelectComponent && !errorMessage && helperMessage && jsxRuntime.jsx("div", {
2991
3015
  id: `${id}-helper`,
2992
- role: "status",
3016
+ "aria-live": "polite",
2993
3017
  className: "helperMessage",
2994
3018
  children: jsxRuntime.jsx("p", {
2995
3019
  "data-testid": `${dataTestId}-label-helper-message`,
@@ -3063,11 +3087,13 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
3063
3087
  'return': function () {
3064
3088
  var state = getInternalState(this);
3065
3089
  var iterator = state.iterator;
3090
+ var done = state.done;
3066
3091
  state.done = true;
3067
3092
  if (IS_ITERATOR) {
3068
3093
  var returnMethod = getMethod$1(iterator, 'return');
3069
3094
  return returnMethod ? call$4(returnMethod, iterator) : createIterResultObject(undefined, true);
3070
3095
  }
3096
+ if (done) return createIterResultObject(undefined, true);
3071
3097
  if (state.inner) try {
3072
3098
  iteratorClose$4(state.inner.iterator, NORMAL);
3073
3099
  } catch (error) {
@@ -3076,7 +3102,8 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
3076
3102
  if (state.openIters) try {
3077
3103
  iteratorCloseAll(state.openIters, NORMAL);
3078
3104
  } catch (error) {
3079
- return iteratorClose$4(iterator, THROW, error);
3105
+ if (iterator) return iteratorClose$4(iterator, THROW, error);
3106
+ throw error;
3080
3107
  }
3081
3108
  if (iterator) iteratorClose$4(iterator, NORMAL);
3082
3109
  return createIterResultObject(undefined, true);
@@ -3132,7 +3159,7 @@ var iteratorHelperThrowsOnInvalidIterator$2 = function (methodName, argument) {
3132
3159
  }
3133
3160
  };
3134
3161
 
3135
- var $$3 = _export;
3162
+ var $$2 = _export;
3136
3163
  var call$3 = functionCall;
3137
3164
  var aCallable$2 = aCallable$9;
3138
3165
  var anObject$3 = anObject$i;
@@ -3165,7 +3192,7 @@ var IteratorProxy$1 = createIteratorProxy$1(function () {
3165
3192
 
3166
3193
  // `Iterator.prototype.filter` method
3167
3194
  // https://tc39.es/ecma262/#sec-iterator.prototype.filter
3168
- $$3({ target: 'Iterator', proto: true, real: true, forced: FORCED$1 }, {
3195
+ $$2({ target: 'Iterator', proto: true, real: true, forced: FORCED$1 }, {
3169
3196
  filter: function filter(predicate) {
3170
3197
  anObject$3(this);
3171
3198
  try {
@@ -3182,7 +3209,7 @@ $$3({ target: 'Iterator', proto: true, real: true, forced: FORCED$1 }, {
3182
3209
  }
3183
3210
  });
3184
3211
 
3185
- var $$2 = _export;
3212
+ var $$1 = _export;
3186
3213
  var call$2 = functionCall;
3187
3214
  var aCallable$1 = aCallable$9;
3188
3215
  var anObject$2 = anObject$i;
@@ -3208,7 +3235,7 @@ var IteratorProxy = createIteratorProxy(function () {
3208
3235
 
3209
3236
  // `Iterator.prototype.map` method
3210
3237
  // https://tc39.es/ecma262/#sec-iterator.prototype.map
3211
- $$2({ target: 'Iterator', proto: true, real: true, forced: FORCED }, {
3238
+ $$1({ target: 'Iterator', proto: true, real: true, forced: FORCED }, {
3212
3239
  map: function map(mapper) {
3213
3240
  anObject$2(this);
3214
3241
  try {
@@ -3237,9 +3264,9 @@ var call$1 = functionCall;
3237
3264
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
3238
3265
  var anObject$1 = anObject$i;
3239
3266
  var isObject = isObject$a;
3240
- var requireObjectCoercible$1 = requireObjectCoercible$7;
3267
+ var requireObjectCoercible = requireObjectCoercible$6;
3241
3268
  var sameValue = sameValue$1;
3242
- var toString$1 = toString$5;
3269
+ var toString = toString$4;
3243
3270
  var getMethod = getMethod$6;
3244
3271
  var regExpExec = regexpExecAbstract;
3245
3272
 
@@ -3249,15 +3276,15 @@ fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCal
3249
3276
  // `String.prototype.search` method
3250
3277
  // https://tc39.es/ecma262/#sec-string.prototype.search
3251
3278
  function search(regexp) {
3252
- var O = requireObjectCoercible$1(this);
3279
+ var O = requireObjectCoercible(this);
3253
3280
  var searcher = isObject(regexp) ? getMethod(regexp, SEARCH) : undefined;
3254
- return searcher ? call$1(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$1(O));
3281
+ return searcher ? call$1(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
3255
3282
  },
3256
3283
  // `RegExp.prototype[@@search]` method
3257
3284
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
3258
3285
  function (string) {
3259
3286
  var rx = anObject$1(this);
3260
- var S = toString$1(string);
3287
+ var S = toString(string);
3261
3288
  var res = maybeCallNative(nativeSearch, rx, S);
3262
3289
 
3263
3290
  if (res.done) return res.value;
@@ -3271,74 +3298,17 @@ fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCal
3271
3298
  ];
3272
3299
  });
3273
3300
 
3274
- // a string of all valid unicode whitespaces
3275
- var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
3276
- '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
3277
-
3278
- var uncurryThis = functionUncurryThis;
3279
- var requireObjectCoercible = requireObjectCoercible$7;
3280
- var toString = toString$5;
3281
- var whitespaces$1 = whitespaces$2;
3282
-
3283
- var replace = uncurryThis(''.replace);
3284
- var ltrim = RegExp('^[' + whitespaces$1 + ']+');
3285
- var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
3286
-
3287
- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
3288
- var createMethod = function (TYPE) {
3289
- return function ($this) {
3290
- var string = toString(requireObjectCoercible($this));
3291
- if (TYPE & 1) string = replace(string, ltrim, '');
3292
- if (TYPE & 2) string = replace(string, rtrim, '$1');
3293
- return string;
3294
- };
3295
- };
3296
-
3297
- var stringTrim = {
3298
- // `String.prototype.trim` method
3299
- // https://tc39.es/ecma262/#sec-string.prototype.trim
3300
- trim: createMethod(3)
3301
- };
3302
-
3303
- var PROPER_FUNCTION_NAME = functionName.PROPER;
3304
- var fails = fails$j;
3305
- var whitespaces = whitespaces$2;
3306
-
3307
- var non = '\u200B\u0085\u180E';
3308
-
3309
- // check that a method works with the correct list
3310
- // of whitespaces and has a correct name
3311
- var stringTrimForced = function (METHOD_NAME) {
3312
- return fails(function () {
3313
- return !!whitespaces[METHOD_NAME]()
3314
- || non[METHOD_NAME]() !== non
3315
- || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
3316
- });
3317
- };
3318
-
3319
- var $$1 = _export;
3320
- var $trim = stringTrim.trim;
3321
- var forcedStringTrimMethod = stringTrimForced;
3322
-
3323
- // `String.prototype.trim` method
3324
- // https://tc39.es/ecma262/#sec-string.prototype.trim
3325
- $$1({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
3326
- trim: function trim() {
3327
- return $trim(this);
3328
- }
3329
- });
3330
-
3331
3301
  function filterOptions(inputValue, optionList) {
3332
3302
  if (!optionList) return [];
3333
3303
  if (!inputValue) return optionList;
3334
- return optionList.filter(opt => opt.label.toLowerCase().search(inputValue.trim().toLowerCase()) !== -1);
3304
+ return optionList.filter(opt => opt.label.toLowerCase().search(inputValue.toLowerCase()) !== -1);
3335
3305
  }
3336
3306
  function filterOptionsWithHeaders(inputValue, optionList) {
3337
3307
  if (!optionList) return [];
3338
3308
  if (!inputValue) return optionList;
3339
3309
  return optionList.map(element => {
3340
3310
  return Object.assign(Object.assign({}, element), {
3341
- options: element.options.filter(subElement => subElement.label.toLowerCase().search(inputValue.trim().toLowerCase()) !== -1)
3311
+ options: element.options.filter(subElement => subElement.label.toLowerCase().search(inputValue.toLowerCase()) !== -1)
3342
3312
  });
3343
3313
  });
3344
3314
  }
@@ -3437,19 +3407,46 @@ const Dropdown = /*#__PURE__*/react.forwardRef((_a, ref) => {
3437
3407
  }, [currentOptionList, setSelectedOptionOnInputValue, value, internalSelectedOption, optionList, isFirstRender, onKeyUp, onKeyDown, asyncOptionList]);
3438
3408
  const [focusedIndex, setFocusedIndex] = react.useState(0);
3439
3409
  const flatOptions = currentOptionList;
3410
+ const activeFocusedOption = flatOptions[focusedIndex];
3411
+ const activeDescendantId = showSelectComponent && activeFocusedOption ? `${id}-select-${activeFocusedOption.id}-select` : undefined;
3440
3412
  const handleKeyDown = event => {
3441
- var _a;
3413
+ var _a, _b;
3442
3414
  const total = flatOptions.length;
3415
+ if (event.key === 'Escape') {
3416
+ event.preventDefault();
3417
+ setShowSelectComponent(false);
3418
+ setSelectedOptionOnInputValue();
3419
+ (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
3420
+ return;
3421
+ }
3443
3422
  if (event.key === 'ArrowDown') {
3444
3423
  event.preventDefault();
3445
- setFocusedIndex(prev => (prev + 1) % total);
3424
+ if (!showSelectComponent) {
3425
+ setInputValue('');
3426
+ setInputLabel('');
3427
+ setShowSelectComponent(true);
3428
+ } else {
3429
+ setFocusedIndex(prev => (prev + 1) % total);
3430
+ }
3446
3431
  }
3447
3432
  if (event.key === 'ArrowUp') {
3448
3433
  event.preventDefault();
3449
- setFocusedIndex(prev => (prev - 1 + total) % total);
3434
+ if (!showSelectComponent) {
3435
+ setInputValue('');
3436
+ setInputLabel('');
3437
+ setShowSelectComponent(true);
3438
+ } else {
3439
+ setFocusedIndex(prev => (prev - 1 + total) % total);
3440
+ }
3450
3441
  }
3451
- if (event.key === 'Enter' || event.key === ' ') {
3442
+ if (event.key === 'Enter' || event.key === ' ' && disableSearch) {
3452
3443
  event.preventDefault();
3444
+ if (!showSelectComponent) {
3445
+ setInputValue('');
3446
+ setInputLabel('');
3447
+ setShowSelectComponent(true);
3448
+ return;
3449
+ }
3453
3450
  const selected = flatOptions[focusedIndex];
3454
3451
  if (selected && !selected.disabled) {
3455
3452
  setInputValue(selected.value);
@@ -3459,7 +3456,7 @@ const Dropdown = /*#__PURE__*/react.forwardRef((_a, ref) => {
3459
3456
  onChange(selected);
3460
3457
  });
3461
3458
  setShowSelectComponent(false);
3462
- (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
3459
+ (_b = inputRef.current) === null || _b === void 0 ? void 0 : _b.blur();
3463
3460
  }
3464
3461
  }
3465
3462
  onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
@@ -3506,7 +3503,8 @@ const Dropdown = /*#__PURE__*/react.forwardRef((_a, ref) => {
3506
3503
  onFocus: onFocus,
3507
3504
  onKeyUp: onKeyUp,
3508
3505
  onKeyDown: onKeyDown ? onKeyDown : handleKeyDown,
3509
- disableSearch: disableSearch
3506
+ disableSearch: disableSearch,
3507
+ activeDescendantId: activeDescendantId
3510
3508
  }, props)), showSelectComponent && !disabled && (() => {
3511
3509
  const selectElement = jsxRuntime.jsx(atomsSelect.Select, Object.assign({
3512
3510
  id: `${id}-select`,