@vonage/vivid 3.0.0-next.8 → 3.0.0-next.80

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 (176) hide show
  1. package/README.md +141 -4
  2. package/accordion/index.js +2 -4
  3. package/accordion-item/index.js +26 -20
  4. package/action-group/index.js +47 -0
  5. package/avatar/index.js +70 -0
  6. package/badge/index.js +17 -21
  7. package/banner/index.js +23 -87
  8. package/breadcrumb/index.js +21 -18
  9. package/breadcrumb-item/index.js +19 -12
  10. package/button/index.js +19 -757
  11. package/calendar/index.js +67 -25
  12. package/calendar-event/index.js +115 -0
  13. package/card/index.js +132 -0
  14. package/checkbox/index.js +184 -0
  15. package/dialog/index.js +281 -0
  16. package/divider/index.js +3 -0
  17. package/elevation/index.js +3 -31
  18. package/fab/index.js +105 -0
  19. package/focus/index.js +18 -3
  20. package/header/index.js +66 -0
  21. package/icon/index.js +9 -5
  22. package/index.js +53 -20
  23. package/layout/index.js +4 -6
  24. package/lib/accordion-item/accordion-item.d.ts +2 -2
  25. package/lib/accordion-item/index.d.ts +2 -1
  26. package/lib/action-group/action-group.d.ts +10 -0
  27. package/lib/{sidenav-item/sidenav-item.template.d.ts → action-group/action-group.template.d.ts} +2 -2
  28. package/lib/{sidenav-item → action-group}/index.d.ts +1 -2
  29. package/lib/avatar/avatar.d.ts +15 -0
  30. package/lib/avatar/avatar.template.d.ts +4 -0
  31. package/lib/avatar/index.d.ts +3 -0
  32. package/lib/badge/badge.d.ts +5 -5
  33. package/lib/badge/index.d.ts +1 -1
  34. package/lib/banner/banner.d.ts +1 -1
  35. package/lib/banner/banner.template.d.ts +0 -2
  36. package/lib/banner/index.d.ts +1 -0
  37. package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
  38. package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  39. package/lib/breadcrumb-item/index.d.ts +1 -0
  40. package/lib/button/button.d.ts +6 -5
  41. package/lib/button/index.d.ts +2 -19
  42. package/lib/calendar/calendar.d.ts +3 -1
  43. package/lib/calendar/index.d.ts +0 -1
  44. package/lib/calendar-event/calendar-event.d.ts +14 -0
  45. package/lib/calendar-event/calendar-event.template.d.ts +4 -0
  46. package/lib/calendar-event/index.d.ts +2 -0
  47. package/lib/card/card.d.ts +10 -0
  48. package/lib/{text/text.template.d.ts → card/card.template.d.ts} +2 -2
  49. package/lib/card/index.d.ts +4 -0
  50. package/lib/checkbox/checkbox.d.ts +5 -0
  51. package/lib/checkbox/checkbox.template.d.ts +4 -0
  52. package/lib/checkbox/index.d.ts +4 -0
  53. package/lib/components.d.ts +27 -10
  54. package/lib/dialog/dialog.d.ts +20 -0
  55. package/lib/dialog/dialog.template.d.ts +4 -0
  56. package/lib/dialog/index.d.ts +5 -0
  57. package/lib/divider/divider.d.ts +3 -0
  58. package/lib/divider/divider.template.d.ts +4 -0
  59. package/lib/divider/index.d.ts +2 -0
  60. package/lib/elevation/elevation.d.ts +1 -0
  61. package/lib/elevation/index.d.ts +1 -1
  62. package/lib/enums.d.ts +11 -6
  63. package/lib/fab/fab.d.ts +13 -0
  64. package/lib/fab/fab.template.d.ts +4 -0
  65. package/lib/fab/index.d.ts +4 -0
  66. package/lib/focus/index.d.ts +1 -1
  67. package/lib/header/header.d.ts +5 -0
  68. package/lib/header/header.template.d.ts +4 -0
  69. package/lib/header/index.d.ts +3 -0
  70. package/lib/icon/icon.d.ts +4 -3
  71. package/lib/layout/index.d.ts +1 -1
  72. package/lib/layout/layout.d.ts +3 -3
  73. package/lib/menu/index.d.ts +12 -0
  74. package/lib/menu/menu.d.ts +10 -0
  75. package/lib/menu/menu.template.d.ts +3 -0
  76. package/lib/menu-item/index.d.ts +3 -0
  77. package/lib/menu-item/menu-item.d.ts +7 -0
  78. package/lib/menu-item/menu-item.template.d.ts +5 -0
  79. package/lib/nav/index.d.ts +2 -0
  80. package/lib/nav/nav.d.ts +3 -0
  81. package/lib/nav/nav.template.d.ts +4 -0
  82. package/lib/nav-disclosure/index.d.ts +4 -0
  83. package/lib/nav-disclosure/nav-disclosure.d.ts +10 -0
  84. package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -0
  85. package/lib/nav-item/index.d.ts +4 -0
  86. package/lib/{sidenav-item/sidenav-item.d.ts → nav-item/nav-item.d.ts} +2 -2
  87. package/lib/nav-item/nav-item.template.d.ts +4 -0
  88. package/lib/{text → note}/index.d.ts +1 -1
  89. package/lib/note/note.d.ts +10 -0
  90. package/lib/note/note.template.d.ts +5 -0
  91. package/lib/number-field/index.d.ts +4 -0
  92. package/lib/number-field/number-field.d.ts +16 -0
  93. package/lib/number-field/number-field.template.d.ts +4 -0
  94. package/lib/popup/index.d.ts +1 -1
  95. package/lib/popup/popup.d.ts +2 -1
  96. package/lib/progress/progress.d.ts +1 -1
  97. package/lib/progress-ring/progress-ring.d.ts +2 -1
  98. package/lib/radio/index.d.ts +3 -0
  99. package/lib/radio/radio.d.ts +4 -0
  100. package/lib/radio/radio.template.d.ts +4 -0
  101. package/lib/side-drawer/index.d.ts +1 -1
  102. package/lib/side-drawer/side-drawer.d.ts +3 -2
  103. package/lib/text-anchor/text-anchor.d.ts +1 -1
  104. package/lib/text-area/index.d.ts +3 -0
  105. package/lib/text-area/text-area.d.ts +9 -0
  106. package/lib/text-area/text-area.template.d.ts +4 -0
  107. package/lib/text-field/index.d.ts +4 -0
  108. package/lib/text-field/text-field.d.ts +16 -0
  109. package/lib/text-field/text-field.template.d.ts +5 -0
  110. package/lib/tooltip/tooltip.d.ts +2 -2
  111. package/menu/index.js +381 -0
  112. package/menu-item/index.js +19 -0
  113. package/nav/index.js +17 -0
  114. package/nav-disclosure/index.js +88 -0
  115. package/nav-item/index.js +45 -0
  116. package/note/index.js +66 -0
  117. package/number-field/index.js +529 -0
  118. package/package.json +51 -7
  119. package/popup/index.js +23 -2061
  120. package/progress/index.js +35 -28
  121. package/progress-ring/index.js +9 -5
  122. package/radio/index.js +174 -0
  123. package/shared/anchor.js +10 -2
  124. package/shared/aria-global.js +2 -86
  125. package/shared/base-progress.js +5 -0
  126. package/shared/breadcrumb-item.js +1 -1
  127. package/shared/button.js +200 -0
  128. package/shared/calendar-event.js +26 -0
  129. package/shared/dialog-polyfill.esm.js +858 -0
  130. package/shared/enums.js +79 -0
  131. package/shared/es.object.assign.js +7 -6
  132. package/shared/export.js +995 -0
  133. package/shared/focus.js +5 -0
  134. package/shared/focus2.js +11 -0
  135. package/shared/form-associated.js +466 -0
  136. package/shared/form-elements.js +299 -0
  137. package/shared/icon.js +533 -520
  138. package/shared/index.js +71 -55
  139. package/shared/index2.js +110 -13
  140. package/shared/index3.js +35 -0
  141. package/shared/index4.js +86 -0
  142. package/shared/index5.js +2100 -0
  143. package/shared/index6.js +371 -0
  144. package/shared/iterators.js +61 -0
  145. package/shared/key-codes.js +90 -0
  146. package/shared/object-keys.js +13 -0
  147. package/shared/patterns/focus.d.ts +3 -0
  148. package/shared/patterns/form-elements.d.ts +22 -0
  149. package/shared/patterns/index.d.ts +1 -0
  150. package/shared/ref.js +41 -0
  151. package/shared/regexp-flags.js +21 -0
  152. package/shared/start-end.js +50 -0
  153. package/shared/text-anchor.js +2 -11
  154. package/shared/text-anchor.template.js +5 -2
  155. package/shared/to-string.js +51 -0
  156. package/shared/web.dom-collections.iterator.js +78 -1083
  157. package/side-drawer/index.js +44 -23
  158. package/styles/core/all.css +75 -0
  159. package/styles/core/theme.css +11 -0
  160. package/styles/core/typography.css +69 -0
  161. package/styles/fonts/SpeziaCompleteVariableItalicWeb.woff2 +0 -0
  162. package/styles/fonts/SpeziaCompleteVariableUprightWeb.woff2 +0 -0
  163. package/styles/fonts/SpeziaMonoCompleteVariableWeb.woff2 +0 -0
  164. package/styles/fonts/spezia.css +9 -12
  165. package/styles/tokens/theme-dark.css +211 -0
  166. package/styles/tokens/theme-light.css +211 -0
  167. package/text-anchor/index.js +9 -1
  168. package/text-area/index.js +304 -0
  169. package/text-field/index.js +152 -0
  170. package/tooltip/index.js +23 -16
  171. package/lib/text/text.d.ts +0 -10
  172. package/shared/style-inject.es.js +0 -28
  173. package/sidenav-item/index.js +0 -38
  174. package/styles/themes/dark.css +0 -205
  175. package/styles/themes/light.css +0 -205
  176. package/text/index.js +0 -45
package/shared/icon.js CHANGED
@@ -1,27 +1,23 @@
1
- import { g as global$e, r as redefine$3, w as wellKnownSymbol$8, a as getBuiltIn$4, o as objectDefineProperty, d as descriptors, b as objectIsPrototypeOf, f as functionUncurryThis, c as functionBindNative, e as aCallable$4, i as iterators, h as classofRaw$1, j as isCallable$5, k as getMethod$2, l as functionCall, m as anObject$5, t as tryToString$3, n as lengthOfArrayLike$1, p as fails$4, q as inspectSource$2, s as engineUserAgent, u as html$1, v as documentCreateElement, x as hasOwnProperty_1, y as objectGetOwnPropertyDescriptor, z as isObject$2, _ as _export, A as objectSetPrototypeOf, B as setToStringTag$1, C as isForced_1, D as engineV8Version, E as internalState, F as requireObjectCoercible$1, G as functionName } from './web.dom-collections.iterator.js';
1
+ import { c as classofRaw, g as global$8, w as wellKnownSymbol$6, a as getBuiltIn$5, o as objectDefineProperty, d as descriptors, b as objectIsPrototypeOf, f as functionUncurryThis, e as fails$4, i as isCallable$6, h as inspectSource$2, t as tryToString$3, j as anObject$5, k as isNullOrUndefined$2, l as functionBindNative, m as aCallable$6, n as engineUserAgent, p as documentCreateElement, q as hasOwnProperty_1, r as objectGetOwnPropertyDescriptor, s as isForced_1, u as engineV8Version, _ as _export, v as defineBuiltIn$3, x as functionCall, y as isObject$2, z as internalState, A as getMethod$2, B as lengthOfArrayLike$1, C as requireObjectCoercible$1, D as functionName } from './export.js';
2
+ import { h as html$1, o as objectSetPrototypeOf, s as setToStringTag$1, i as iterators } from './iterators.js';
3
+ import { c as classof$3, t as toString$1 } from './to-string.js';
2
4
  import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, o as observable } from './index.js';
3
5
  import { _ as _curry1, a as _curry2, b as _has } from './_has.js';
4
6
 
5
- var global$d = global$e;
7
+ var classof$2 = classofRaw;
8
+ var global$7 = global$8;
6
9
 
7
- var nativePromiseConstructor = global$d.Promise;
10
+ var engineIsNode = classof$2(global$7.process) == 'process';
8
11
 
9
- var redefine$2 = redefine$3.exports;
10
-
11
- var redefineAll$1 = function (target, src, options) {
12
- for (var key in src) redefine$2(target, key, src[key], options);
13
- return target;
14
- };
15
-
16
- var getBuiltIn$3 = getBuiltIn$4;
12
+ var getBuiltIn$4 = getBuiltIn$5;
17
13
  var definePropertyModule = objectDefineProperty;
18
- var wellKnownSymbol$7 = wellKnownSymbol$8;
14
+ var wellKnownSymbol$5 = wellKnownSymbol$6;
19
15
  var DESCRIPTORS = descriptors;
20
16
 
21
- var SPECIES$2 = wellKnownSymbol$7('species');
17
+ var SPECIES$2 = wellKnownSymbol$5('species');
22
18
 
23
19
  var setSpecies$1 = function (CONSTRUCTOR_NAME) {
24
- var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
20
+ var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
25
21
  var defineProperty = definePropertyModule.f;
26
22
 
27
23
  if (DESCRIPTORS && Constructor && !Constructor[SPECIES$2]) {
@@ -32,255 +28,31 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
32
28
  }
33
29
  };
34
30
 
35
- var global$c = global$e;
36
31
  var isPrototypeOf$1 = objectIsPrototypeOf;
37
32
 
38
- var TypeError$6 = global$c.TypeError;
33
+ var $TypeError$5 = TypeError;
39
34
 
40
35
  var anInstance$1 = function (it, Prototype) {
41
36
  if (isPrototypeOf$1(Prototype, it)) return it;
42
- throw TypeError$6('Incorrect invocation');
37
+ throw $TypeError$5('Incorrect invocation');
43
38
  };
44
39
 
45
40
  var uncurryThis$3 = functionUncurryThis;
46
- var aCallable$3 = aCallable$4;
47
- var NATIVE_BIND$1 = functionBindNative;
48
-
49
- var bind$4 = uncurryThis$3(uncurryThis$3.bind);
50
-
51
- // optional / simple context binding
52
- var functionBindContext = function (fn, that) {
53
- aCallable$3(fn);
54
- return that === undefined ? fn : NATIVE_BIND$1 ? bind$4(fn, that) : function (/* ...args */) {
55
- return fn.apply(that, arguments);
56
- };
57
- };
58
-
59
- var wellKnownSymbol$6 = wellKnownSymbol$8;
60
- var Iterators$1 = iterators;
61
-
62
- var ITERATOR$2 = wellKnownSymbol$6('iterator');
63
- var ArrayPrototype = Array.prototype;
64
-
65
- // check on default Array iterator
66
- var isArrayIteratorMethod$1 = function (it) {
67
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
68
- };
69
-
70
- var wellKnownSymbol$5 = wellKnownSymbol$8;
71
-
72
- var TO_STRING_TAG$1 = wellKnownSymbol$5('toStringTag');
73
- var test = {};
74
-
75
- test[TO_STRING_TAG$1] = 'z';
76
-
77
- var toStringTagSupport = String(test) === '[object z]';
78
-
79
- var global$b = global$e;
80
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
81
- var isCallable$4 = isCallable$5;
82
- var classofRaw = classofRaw$1;
83
- var wellKnownSymbol$4 = wellKnownSymbol$8;
84
-
85
- var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
86
- var Object$1 = global$b.Object;
87
-
88
- // ES3 wrong here
89
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
90
-
91
- // fallback for IE11 Script Access Denied error
92
- var tryGet = function (it, key) {
93
- try {
94
- return it[key];
95
- } catch (error) { /* empty */ }
96
- };
97
-
98
- // getting tag from ES6+ `Object.prototype.toString`
99
- var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
100
- var O, tag, result;
101
- return it === undefined ? 'Undefined' : it === null ? 'Null'
102
- // @@toStringTag case
103
- : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
104
- // builtinTag case
105
- : CORRECT_ARGUMENTS ? classofRaw(O)
106
- // ES3 arguments fallback
107
- : (result = classofRaw(O)) == 'Object' && isCallable$4(O.callee) ? 'Arguments' : result;
108
- };
109
-
110
- var classof$3 = classof$4;
111
- var getMethod$1 = getMethod$2;
112
- var Iterators = iterators;
113
- var wellKnownSymbol$3 = wellKnownSymbol$8;
114
-
115
- var ITERATOR$1 = wellKnownSymbol$3('iterator');
116
-
117
- var getIteratorMethod$2 = function (it) {
118
- if (it != undefined) return getMethod$1(it, ITERATOR$1)
119
- || getMethod$1(it, '@@iterator')
120
- || Iterators[classof$3(it)];
121
- };
122
-
123
- var global$a = global$e;
124
- var call$4 = functionCall;
125
- var aCallable$2 = aCallable$4;
126
- var anObject$4 = anObject$5;
127
- var tryToString$2 = tryToString$3;
128
- var getIteratorMethod$1 = getIteratorMethod$2;
129
-
130
- var TypeError$5 = global$a.TypeError;
131
-
132
- var getIterator$1 = function (argument, usingIterator) {
133
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
134
- if (aCallable$2(iteratorMethod)) return anObject$4(call$4(iteratorMethod, argument));
135
- throw TypeError$5(tryToString$2(argument) + ' is not iterable');
136
- };
137
-
138
- var call$3 = functionCall;
139
- var anObject$3 = anObject$5;
140
- var getMethod = getMethod$2;
141
-
142
- var iteratorClose$1 = function (iterator, kind, value) {
143
- var innerResult, innerError;
144
- anObject$3(iterator);
145
- try {
146
- innerResult = getMethod(iterator, 'return');
147
- if (!innerResult) {
148
- if (kind === 'throw') throw value;
149
- return value;
150
- }
151
- innerResult = call$3(innerResult, iterator);
152
- } catch (error) {
153
- innerError = true;
154
- innerResult = error;
155
- }
156
- if (kind === 'throw') throw value;
157
- if (innerError) throw innerResult;
158
- anObject$3(innerResult);
159
- return value;
160
- };
161
-
162
- var global$9 = global$e;
163
- var bind$3 = functionBindContext;
164
- var call$2 = functionCall;
165
- var anObject$2 = anObject$5;
166
- var tryToString$1 = tryToString$3;
167
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
168
- var lengthOfArrayLike = lengthOfArrayLike$1;
169
- var isPrototypeOf = objectIsPrototypeOf;
170
- var getIterator = getIterator$1;
171
- var getIteratorMethod = getIteratorMethod$2;
172
- var iteratorClose = iteratorClose$1;
173
-
174
- var TypeError$4 = global$9.TypeError;
175
-
176
- var Result = function (stopped, result) {
177
- this.stopped = stopped;
178
- this.result = result;
179
- };
180
-
181
- var ResultPrototype = Result.prototype;
182
-
183
- var iterate$1 = function (iterable, unboundFunction, options) {
184
- var that = options && options.that;
185
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
186
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
187
- var INTERRUPTED = !!(options && options.INTERRUPTED);
188
- var fn = bind$3(unboundFunction, that);
189
- var iterator, iterFn, index, length, result, next, step;
190
-
191
- var stop = function (condition) {
192
- if (iterator) iteratorClose(iterator, 'normal', condition);
193
- return new Result(true, condition);
194
- };
195
-
196
- var callFn = function (value) {
197
- if (AS_ENTRIES) {
198
- anObject$2(value);
199
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
200
- } return INTERRUPTED ? fn(value, stop) : fn(value);
201
- };
202
-
203
- if (IS_ITERATOR) {
204
- iterator = iterable;
205
- } else {
206
- iterFn = getIteratorMethod(iterable);
207
- if (!iterFn) throw TypeError$4(tryToString$1(iterable) + ' is not iterable');
208
- // optimisation for array iterators
209
- if (isArrayIteratorMethod(iterFn)) {
210
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
211
- result = callFn(iterable[index]);
212
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
213
- } return new Result(false);
214
- }
215
- iterator = getIterator(iterable, iterFn);
216
- }
217
-
218
- next = iterator.next;
219
- while (!(step = call$2(next, iterator)).done) {
220
- try {
221
- result = callFn(step.value);
222
- } catch (error) {
223
- iteratorClose(iterator, 'throw', error);
224
- }
225
- if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
226
- } return new Result(false);
227
- };
228
-
229
- var wellKnownSymbol$2 = wellKnownSymbol$8;
230
-
231
- var ITERATOR = wellKnownSymbol$2('iterator');
232
- var SAFE_CLOSING = false;
233
-
234
- try {
235
- var called = 0;
236
- var iteratorWithReturn = {
237
- next: function () {
238
- return { done: !!called++ };
239
- },
240
- 'return': function () {
241
- SAFE_CLOSING = true;
242
- }
243
- };
244
- iteratorWithReturn[ITERATOR] = function () {
245
- return this;
246
- };
247
- // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
248
- Array.from(iteratorWithReturn, function () { throw 2; });
249
- } catch (error) { /* empty */ }
250
-
251
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
252
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
253
- var ITERATION_SUPPORT = false;
254
- try {
255
- var object = {};
256
- object[ITERATOR] = function () {
257
- return {
258
- next: function () {
259
- return { done: ITERATION_SUPPORT = true };
260
- }
261
- };
262
- };
263
- exec(object);
264
- } catch (error) { /* empty */ }
265
- return ITERATION_SUPPORT;
266
- };
267
-
268
- var uncurryThis$2 = functionUncurryThis;
269
41
  var fails$3 = fails$4;
270
- var isCallable$3 = isCallable$5;
271
- var classof$2 = classof$4;
272
- var getBuiltIn$2 = getBuiltIn$4;
42
+ var isCallable$5 = isCallable$6;
43
+ var classof$1 = classof$3;
44
+ var getBuiltIn$3 = getBuiltIn$5;
273
45
  var inspectSource$1 = inspectSource$2;
274
46
 
275
47
  var noop = function () { /* empty */ };
276
48
  var empty = [];
277
- var construct = getBuiltIn$2('Reflect', 'construct');
49
+ var construct = getBuiltIn$3('Reflect', 'construct');
278
50
  var constructorRegExp = /^\s*(?:class|function)\b/;
279
- var exec = uncurryThis$2(constructorRegExp.exec);
51
+ var exec = uncurryThis$3(constructorRegExp.exec);
280
52
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
281
53
 
282
54
  var isConstructorModern = function isConstructor(argument) {
283
- if (!isCallable$3(argument)) return false;
55
+ if (!isCallable$5(argument)) return false;
284
56
  try {
285
57
  construct(noop, empty, argument);
286
58
  return true;
@@ -290,8 +62,8 @@ var isConstructorModern = function isConstructor(argument) {
290
62
  };
291
63
 
292
64
  var isConstructorLegacy = function isConstructor(argument) {
293
- if (!isCallable$3(argument)) return false;
294
- switch (classof$2(argument)) {
65
+ if (!isCallable$5(argument)) return false;
66
+ switch (classof$1(argument)) {
295
67
  case 'AsyncFunction':
296
68
  case 'GeneratorFunction':
297
69
  case 'AsyncGeneratorFunction': return false;
@@ -318,53 +90,65 @@ var isConstructor$1 = !construct || fails$3(function () {
318
90
  || called;
319
91
  }) ? isConstructorLegacy : isConstructorModern;
320
92
 
321
- var global$8 = global$e;
322
93
  var isConstructor = isConstructor$1;
323
- var tryToString = tryToString$3;
94
+ var tryToString$2 = tryToString$3;
324
95
 
325
- var TypeError$3 = global$8.TypeError;
96
+ var $TypeError$4 = TypeError;
326
97
 
327
98
  // `Assert: IsConstructor(argument) is true`
328
99
  var aConstructor$1 = function (argument) {
329
100
  if (isConstructor(argument)) return argument;
330
- throw TypeError$3(tryToString(argument) + ' is not a constructor');
101
+ throw $TypeError$4(tryToString$2(argument) + ' is not a constructor');
331
102
  };
332
103
 
333
- var anObject$1 = anObject$5;
104
+ var anObject$4 = anObject$5;
334
105
  var aConstructor = aConstructor$1;
335
- var wellKnownSymbol$1 = wellKnownSymbol$8;
106
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
107
+ var wellKnownSymbol$4 = wellKnownSymbol$6;
336
108
 
337
- var SPECIES$1 = wellKnownSymbol$1('species');
109
+ var SPECIES$1 = wellKnownSymbol$4('species');
338
110
 
339
111
  // `SpeciesConstructor` abstract operation
340
112
  // https://tc39.es/ecma262/#sec-speciesconstructor
341
113
  var speciesConstructor$2 = function (O, defaultConstructor) {
342
- var C = anObject$1(O).constructor;
114
+ var C = anObject$4(O).constructor;
343
115
  var S;
344
- return C === undefined || (S = anObject$1(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
116
+ return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
345
117
  };
346
118
 
347
- var NATIVE_BIND = functionBindNative;
119
+ var NATIVE_BIND$1 = functionBindNative;
348
120
 
349
121
  var FunctionPrototype = Function.prototype;
350
122
  var apply$1 = FunctionPrototype.apply;
351
- var call$1 = FunctionPrototype.call;
123
+ var call$7 = FunctionPrototype.call;
352
124
 
353
- // eslint-disable-next-line es/no-reflect -- safe
354
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$1.bind(apply$1) : function () {
355
- return call$1.apply(apply$1, arguments);
125
+ // eslint-disable-next-line es-x/no-reflect -- safe
126
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$7.bind(apply$1) : function () {
127
+ return call$7.apply(apply$1, arguments);
356
128
  });
357
129
 
130
+ var uncurryThis$2 = functionUncurryThis;
131
+ var aCallable$5 = aCallable$6;
132
+ var NATIVE_BIND = functionBindNative;
133
+
134
+ var bind$4 = uncurryThis$2(uncurryThis$2.bind);
135
+
136
+ // optional / simple context binding
137
+ var functionBindContext = function (fn, that) {
138
+ aCallable$5(fn);
139
+ return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
140
+ return fn.apply(that, arguments);
141
+ };
142
+ };
143
+
358
144
  var uncurryThis$1 = functionUncurryThis;
359
145
 
360
146
  var arraySlice$1 = uncurryThis$1([].slice);
361
147
 
362
- var global$7 = global$e;
363
-
364
- var TypeError$2 = global$7.TypeError;
148
+ var $TypeError$3 = TypeError;
365
149
 
366
150
  var validateArgumentsLength$1 = function (passed, required) {
367
- if (passed < required) throw TypeError$2('Not enough arguments');
151
+ if (passed < required) throw $TypeError$3('Not enough arguments');
368
152
  return passed;
369
153
  };
370
154
 
@@ -372,15 +156,10 @@ var userAgent$2 = engineUserAgent;
372
156
 
373
157
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
374
158
 
375
- var classof$1 = classofRaw$1;
376
- var global$6 = global$e;
377
-
378
- var engineIsNode = classof$1(global$6.process) == 'process';
379
-
380
- var global$5 = global$e;
159
+ var global$6 = global$8;
381
160
  var apply = functionApply;
382
- var bind$2 = functionBindContext;
383
- var isCallable$2 = isCallable$5;
161
+ var bind$3 = functionBindContext;
162
+ var isCallable$4 = isCallable$6;
384
163
  var hasOwn = hasOwnProperty_1;
385
164
  var fails$2 = fails$4;
386
165
  var html = html$1;
@@ -388,15 +167,15 @@ var arraySlice = arraySlice$1;
388
167
  var createElement = documentCreateElement;
389
168
  var validateArgumentsLength = validateArgumentsLength$1;
390
169
  var IS_IOS$1 = engineIsIos;
391
- var IS_NODE$2 = engineIsNode;
392
-
393
- var set = global$5.setImmediate;
394
- var clear = global$5.clearImmediate;
395
- var process$2 = global$5.process;
396
- var Dispatch = global$5.Dispatch;
397
- var Function$1 = global$5.Function;
398
- var MessageChannel = global$5.MessageChannel;
399
- var String$2 = global$5.String;
170
+ var IS_NODE$3 = engineIsNode;
171
+
172
+ var set = global$6.setImmediate;
173
+ var clear = global$6.clearImmediate;
174
+ var process$2 = global$6.process;
175
+ var Dispatch = global$6.Dispatch;
176
+ var Function$1 = global$6.Function;
177
+ var MessageChannel = global$6.MessageChannel;
178
+ var String$1 = global$6.String;
400
179
  var counter = 0;
401
180
  var queue$1 = {};
402
181
  var ONREADYSTATECHANGE = 'onreadystatechange';
@@ -404,7 +183,7 @@ var location, defer, channel, port;
404
183
 
405
184
  try {
406
185
  // Deno throws a ReferenceError on `location` access without `--location` flag
407
- location = global$5.location;
186
+ location = global$6.location;
408
187
  } catch (error) { /* empty */ }
409
188
 
410
189
  var run = function (id) {
@@ -427,14 +206,14 @@ var listener = function (event) {
427
206
 
428
207
  var post = function (id) {
429
208
  // old engines have not location.origin
430
- global$5.postMessage(String$2(id), location.protocol + '//' + location.host);
209
+ global$6.postMessage(String$1(id), location.protocol + '//' + location.host);
431
210
  };
432
211
 
433
212
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
434
213
  if (!set || !clear) {
435
214
  set = function setImmediate(handler) {
436
215
  validateArgumentsLength(arguments.length, 1);
437
- var fn = isCallable$2(handler) ? handler : Function$1(handler);
216
+ var fn = isCallable$4(handler) ? handler : Function$1(handler);
438
217
  var args = arraySlice(arguments, 1);
439
218
  queue$1[++counter] = function () {
440
219
  apply(fn, undefined, args);
@@ -446,7 +225,7 @@ if (!set || !clear) {
446
225
  delete queue$1[id];
447
226
  };
448
227
  // Node.js 0.8-
449
- if (IS_NODE$2) {
228
+ if (IS_NODE$3) {
450
229
  defer = function (id) {
451
230
  process$2.nextTick(runner(id));
452
231
  };
@@ -461,18 +240,18 @@ if (!set || !clear) {
461
240
  channel = new MessageChannel();
462
241
  port = channel.port2;
463
242
  channel.port1.onmessage = listener;
464
- defer = bind$2(port.postMessage, port);
243
+ defer = bind$3(port.postMessage, port);
465
244
  // Browsers with postMessage, skip WebWorkers
466
245
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
467
246
  } else if (
468
- global$5.addEventListener &&
469
- isCallable$2(global$5.postMessage) &&
470
- !global$5.importScripts &&
247
+ global$6.addEventListener &&
248
+ isCallable$4(global$6.postMessage) &&
249
+ !global$6.importScripts &&
471
250
  location && location.protocol !== 'file:' &&
472
251
  !fails$2(post)
473
252
  ) {
474
253
  defer = post;
475
- global$5.addEventListener('message', listener, false);
254
+ global$6.addEventListener('message', listener, false);
476
255
  // IE8-
477
256
  } else if (ONREADYSTATECHANGE in createElement('script')) {
478
257
  defer = function (id) {
@@ -495,29 +274,29 @@ var task$1 = {
495
274
  };
496
275
 
497
276
  var userAgent$1 = engineUserAgent;
498
- var global$4 = global$e;
277
+ var global$5 = global$8;
499
278
 
500
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$4.Pebble !== undefined;
279
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$5.Pebble !== undefined;
501
280
 
502
281
  var userAgent = engineUserAgent;
503
282
 
504
283
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
505
284
 
506
- var global$3 = global$e;
507
- var bind$1 = functionBindContext;
285
+ var global$4 = global$8;
286
+ var bind$2 = functionBindContext;
508
287
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
509
288
  var macrotask = task$1.set;
510
289
  var IS_IOS = engineIsIos;
511
290
  var IS_IOS_PEBBLE = engineIsIosPebble;
512
291
  var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
513
- var IS_NODE$1 = engineIsNode;
292
+ var IS_NODE$2 = engineIsNode;
514
293
 
515
- var MutationObserver = global$3.MutationObserver || global$3.WebKitMutationObserver;
516
- var document$1 = global$3.document;
517
- var process$1 = global$3.process;
518
- var Promise$1 = global$3.Promise;
294
+ var MutationObserver = global$4.MutationObserver || global$4.WebKitMutationObserver;
295
+ var document$2 = global$4.document;
296
+ var process$1 = global$4.process;
297
+ var Promise$1 = global$4.Promise;
519
298
  // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
520
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$3, 'queueMicrotask');
299
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$4, 'queueMicrotask');
521
300
  var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
522
301
 
523
302
  var flush, head, last, notify$1, toggle, node, promise, then;
@@ -526,7 +305,7 @@ var flush, head, last, notify$1, toggle, node, promise, then;
526
305
  if (!queueMicrotask) {
527
306
  flush = function () {
528
307
  var parent, fn;
529
- if (IS_NODE$1 && (parent = process$1.domain)) parent.exit();
308
+ if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
530
309
  while (head) {
531
310
  fn = head.fn;
532
311
  head = head.next;
@@ -543,9 +322,9 @@ if (!queueMicrotask) {
543
322
 
544
323
  // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
545
324
  // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
546
- if (!IS_IOS && !IS_NODE$1 && !IS_WEBOS_WEBKIT && MutationObserver && document$1) {
325
+ if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
547
326
  toggle = true;
548
- node = document$1.createTextNode('');
327
+ node = document$2.createTextNode('');
549
328
  new MutationObserver(flush).observe(node, { characterData: true });
550
329
  notify$1 = function () {
551
330
  node.data = toggle = !toggle;
@@ -556,24 +335,24 @@ if (!queueMicrotask) {
556
335
  promise = Promise$1.resolve(undefined);
557
336
  // workaround of WebKit ~ iOS Safari 10.1 bug
558
337
  promise.constructor = Promise$1;
559
- then = bind$1(promise.then, promise);
338
+ then = bind$2(promise.then, promise);
560
339
  notify$1 = function () {
561
340
  then(flush);
562
341
  };
563
342
  // Node.js without promises
564
- } else if (IS_NODE$1) {
343
+ } else if (IS_NODE$2) {
565
344
  notify$1 = function () {
566
345
  process$1.nextTick(flush);
567
346
  };
568
347
  // for other environments - macrotask based on:
569
348
  // - setImmediate
570
349
  // - MessageChannel
571
- // - window.postMessag
350
+ // - window.postMessage
572
351
  // - onreadystatechange
573
352
  // - setTimeout
574
353
  } else {
575
354
  // strange IE + webpack dev server bug - use .bind(global)
576
- macrotask = bind$1(macrotask, global$3);
355
+ macrotask = bind$2(macrotask, global$4);
577
356
  notify$1 = function () {
578
357
  macrotask(flush);
579
358
  };
@@ -589,50 +368,16 @@ var microtask$1 = queueMicrotask || function (fn) {
589
368
  } last = task;
590
369
  };
591
370
 
592
- var newPromiseCapability$2 = {};
593
-
594
- var aCallable$1 = aCallable$4;
595
-
596
- var PromiseCapability = function (C) {
597
- var resolve, reject;
598
- this.promise = new C(function ($$resolve, $$reject) {
599
- if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
600
- resolve = $$resolve;
601
- reject = $$reject;
602
- });
603
- this.resolve = aCallable$1(resolve);
604
- this.reject = aCallable$1(reject);
605
- };
606
-
607
- // `NewPromiseCapability` abstract operation
608
- // https://tc39.es/ecma262/#sec-newpromisecapability
609
- newPromiseCapability$2.f = function (C) {
610
- return new PromiseCapability(C);
611
- };
612
-
613
- var anObject = anObject$5;
614
- var isObject$1 = isObject$2;
615
- var newPromiseCapability$1 = newPromiseCapability$2;
616
-
617
- var promiseResolve$2 = function (C, x) {
618
- anObject(C);
619
- if (isObject$1(x) && x.constructor === C) return x;
620
- var promiseCapability = newPromiseCapability$1.f(C);
621
- var resolve = promiseCapability.resolve;
622
- resolve(x);
623
- return promiseCapability.promise;
624
- };
625
-
626
- var global$2 = global$e;
371
+ var global$3 = global$8;
627
372
 
628
373
  var hostReportErrors$1 = function (a, b) {
629
- var console = global$2.console;
374
+ var console = global$3.console;
630
375
  if (console && console.error) {
631
376
  arguments.length == 1 ? console.error(a) : console.error(a, b);
632
377
  }
633
378
  };
634
379
 
635
- var perform$1 = function (exec) {
380
+ var perform$3 = function (exec) {
636
381
  try {
637
382
  return { error: false, value: exec() };
638
383
  } catch (error) {
@@ -664,57 +409,128 @@ Queue$1.prototype = {
664
409
 
665
410
  var queue = Queue$1;
666
411
 
667
- var engineIsBrowser = typeof window == 'object';
412
+ var global$2 = global$8;
668
413
 
669
- var $$2 = _export;
670
- var global$1 = global$e;
671
- var getBuiltIn$1 = getBuiltIn$4;
672
- var call = functionCall;
673
- var NativePromise$1 = nativePromiseConstructor;
674
- var redefine$1 = redefine$3.exports;
675
- var redefineAll = redefineAll$1;
414
+ var promiseNativeConstructor = global$2.Promise;
415
+
416
+ /* global Deno -- Deno case */
417
+
418
+ var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
419
+
420
+ var IS_DENO$1 = engineIsDeno;
421
+ var IS_NODE$1 = engineIsNode;
422
+
423
+ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
424
+ && typeof window == 'object'
425
+ && typeof document == 'object';
426
+
427
+ var global$1 = global$8;
428
+ var NativePromiseConstructor$4 = promiseNativeConstructor;
429
+ var isCallable$3 = isCallable$6;
430
+ var isForced = isForced_1;
431
+ var inspectSource = inspectSource$2;
432
+ var wellKnownSymbol$3 = wellKnownSymbol$6;
433
+ var IS_BROWSER = engineIsBrowser;
434
+ var IS_DENO = engineIsDeno;
435
+ var V8_VERSION = engineV8Version;
436
+
437
+ NativePromiseConstructor$4 && NativePromiseConstructor$4.prototype;
438
+ var SPECIES = wellKnownSymbol$3('species');
439
+ var SUBCLASSING = false;
440
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(global$1.PromiseRejectionEvent);
441
+
442
+ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
443
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$4);
444
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$4);
445
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
446
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
447
+ // We can't detect it synchronously, so just check versions
448
+ if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
449
+ // We can't use @@species feature detection in V8 since it causes
450
+ // deoptimization and performance degradation
451
+ // https://github.com/zloirock/core-js/issues/679
452
+ if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
453
+ // Detect correctness of subclassing with @@species support
454
+ var promise = new NativePromiseConstructor$4(function (resolve) { resolve(1); });
455
+ var FakePromise = function (exec) {
456
+ exec(function () { /* empty */ }, function () { /* empty */ });
457
+ };
458
+ var constructor = promise.constructor = {};
459
+ constructor[SPECIES] = FakePromise;
460
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
461
+ if (!SUBCLASSING) return true;
462
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
463
+ } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
464
+ });
465
+
466
+ var promiseConstructorDetection = {
467
+ CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
468
+ REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
469
+ SUBCLASSING: SUBCLASSING
470
+ };
471
+
472
+ var newPromiseCapability$2 = {};
473
+
474
+ var aCallable$4 = aCallable$6;
475
+
476
+ var $TypeError$2 = TypeError;
477
+
478
+ var PromiseCapability = function (C) {
479
+ var resolve, reject;
480
+ this.promise = new C(function ($$resolve, $$reject) {
481
+ if (resolve !== undefined || reject !== undefined) throw $TypeError$2('Bad Promise constructor');
482
+ resolve = $$resolve;
483
+ reject = $$reject;
484
+ });
485
+ this.resolve = aCallable$4(resolve);
486
+ this.reject = aCallable$4(reject);
487
+ };
488
+
489
+ // `NewPromiseCapability` abstract operation
490
+ // https://tc39.es/ecma262/#sec-newpromisecapability
491
+ newPromiseCapability$2.f = function (C) {
492
+ return new PromiseCapability(C);
493
+ };
494
+
495
+ var $$7 = _export;
496
+ var IS_NODE = engineIsNode;
497
+ var global = global$8;
498
+ var call$6 = functionCall;
499
+ var defineBuiltIn$2 = defineBuiltIn$3;
676
500
  var setPrototypeOf = objectSetPrototypeOf;
677
501
  var setToStringTag = setToStringTag$1;
678
502
  var setSpecies = setSpecies$1;
679
- var aCallable = aCallable$4;
680
- var isCallable$1 = isCallable$5;
681
- var isObject = isObject$2;
503
+ var aCallable$3 = aCallable$6;
504
+ var isCallable$2 = isCallable$6;
505
+ var isObject$1 = isObject$2;
682
506
  var anInstance = anInstance$1;
683
- var inspectSource = inspectSource$2;
684
- var iterate = iterate$1;
685
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
686
507
  var speciesConstructor$1 = speciesConstructor$2;
687
508
  var task = task$1.set;
688
509
  var microtask = microtask$1;
689
- var promiseResolve$1 = promiseResolve$2;
690
510
  var hostReportErrors = hostReportErrors$1;
691
- var newPromiseCapabilityModule = newPromiseCapability$2;
692
- var perform = perform$1;
511
+ var perform$2 = perform$3;
693
512
  var Queue = queue;
694
513
  var InternalStateModule = internalState;
695
- var isForced = isForced_1;
696
- var wellKnownSymbol = wellKnownSymbol$8;
697
- var IS_BROWSER = engineIsBrowser;
698
- var IS_NODE = engineIsNode;
699
- var V8_VERSION = engineV8Version;
514
+ var NativePromiseConstructor$3 = promiseNativeConstructor;
515
+ var PromiseConstructorDetection = promiseConstructorDetection;
516
+ var newPromiseCapabilityModule$3 = newPromiseCapability$2;
700
517
 
701
- var SPECIES = wellKnownSymbol('species');
702
518
  var PROMISE = 'Promise';
703
-
704
- var getInternalState = InternalStateModule.getterFor(PROMISE);
705
- var setInternalState = InternalStateModule.set;
519
+ var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
520
+ var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
521
+ var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
706
522
  var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
707
- var NativePromisePrototype = NativePromise$1 && NativePromise$1.prototype;
708
- var PromiseConstructor = NativePromise$1;
709
- var PromisePrototype = NativePromisePrototype;
710
- var TypeError$1 = global$1.TypeError;
711
- var document = global$1.document;
712
- var process = global$1.process;
713
- var newPromiseCapability = newPromiseCapabilityModule.f;
714
- var newGenericPromiseCapability = newPromiseCapability;
715
-
716
- var DISPATCH_EVENT = !!(document && document.createEvent && global$1.dispatchEvent);
717
- var NATIVE_REJECTION_EVENT = isCallable$1(global$1.PromiseRejectionEvent);
523
+ var setInternalState = InternalStateModule.set;
524
+ var NativePromisePrototype$2 = NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
525
+ var PromiseConstructor = NativePromiseConstructor$3;
526
+ var PromisePrototype = NativePromisePrototype$2;
527
+ var TypeError$1 = global.TypeError;
528
+ var document$1 = global.document;
529
+ var process = global.process;
530
+ var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
531
+ var newGenericPromiseCapability = newPromiseCapability$1;
532
+
533
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global.dispatchEvent);
718
534
  var UNHANDLED_REJECTION = 'unhandledrejection';
719
535
  var REJECTION_HANDLED = 'rejectionhandled';
720
536
  var PENDING = 0;
@@ -722,42 +538,13 @@ var FULFILLED = 1;
722
538
  var REJECTED = 2;
723
539
  var HANDLED = 1;
724
540
  var UNHANDLED = 2;
725
- var SUBCLASSING = false;
726
541
 
727
542
  var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
728
543
 
729
- var FORCED = isForced(PROMISE, function () {
730
- var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
731
- var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
732
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
733
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
734
- // We can't detect it synchronously, so just check versions
735
- if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
736
- // We can't use @@species feature detection in V8 since it causes
737
- // deoptimization and performance degradation
738
- // https://github.com/zloirock/core-js/issues/679
739
- if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
740
- // Detect correctness of subclassing with @@species support
741
- var promise = new PromiseConstructor(function (resolve) { resolve(1); });
742
- var FakePromise = function (exec) {
743
- exec(function () { /* empty */ }, function () { /* empty */ });
744
- };
745
- var constructor = promise.constructor = {};
746
- constructor[SPECIES] = FakePromise;
747
- SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
748
- if (!SUBCLASSING) return true;
749
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
750
- return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
751
- });
752
-
753
- var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
754
- PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
755
- });
756
-
757
544
  // helpers
758
545
  var isThenable = function (it) {
759
546
  var then;
760
- return isObject(it) && isCallable$1(then = it.then) ? then : false;
547
+ return isObject$1(it) && isCallable$2(then = it.then) ? then : false;
761
548
  };
762
549
 
763
550
  var callReaction = function (reaction, state) {
@@ -786,7 +573,7 @@ var callReaction = function (reaction, state) {
786
573
  if (result === reaction.promise) {
787
574
  reject(TypeError$1('Promise-chain cycle'));
788
575
  } else if (then = isThenable(result)) {
789
- call(then, result, resolve, reject);
576
+ call$6(then, result, resolve, reject);
790
577
  } else resolve(result);
791
578
  } else reject(value);
792
579
  } catch (error) {
@@ -812,24 +599,24 @@ var notify = function (state, isReject) {
812
599
  var dispatchEvent = function (name, promise, reason) {
813
600
  var event, handler;
814
601
  if (DISPATCH_EVENT) {
815
- event = document.createEvent('Event');
602
+ event = document$1.createEvent('Event');
816
603
  event.promise = promise;
817
604
  event.reason = reason;
818
605
  event.initEvent(name, false, true);
819
- global$1.dispatchEvent(event);
606
+ global.dispatchEvent(event);
820
607
  } else event = { promise: promise, reason: reason };
821
- if (!NATIVE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
608
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
822
609
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
823
610
  };
824
611
 
825
612
  var onUnhandled = function (state) {
826
- call(task, global$1, function () {
613
+ call$6(task, global, function () {
827
614
  var promise = state.facade;
828
615
  var value = state.value;
829
616
  var IS_UNHANDLED = isUnhandled(state);
830
617
  var result;
831
618
  if (IS_UNHANDLED) {
832
- result = perform(function () {
619
+ result = perform$2(function () {
833
620
  if (IS_NODE) {
834
621
  process.emit('unhandledRejection', value, promise);
835
622
  } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
@@ -846,7 +633,7 @@ var isUnhandled = function (state) {
846
633
  };
847
634
 
848
635
  var onHandleUnhandled = function (state) {
849
- call(task, global$1, function () {
636
+ call$6(task, global, function () {
850
637
  var promise = state.facade;
851
638
  if (IS_NODE) {
852
639
  process.emit('rejectionHandled', promise);
@@ -854,7 +641,7 @@ var onHandleUnhandled = function (state) {
854
641
  });
855
642
  };
856
643
 
857
- var bind = function (fn, state, unwrap) {
644
+ var bind$1 = function (fn, state, unwrap) {
858
645
  return function (value) {
859
646
  fn(state, value, unwrap);
860
647
  };
@@ -880,9 +667,9 @@ var internalResolve = function (state, value, unwrap) {
880
667
  microtask(function () {
881
668
  var wrapper = { done: false };
882
669
  try {
883
- call(then, value,
884
- bind(internalResolve, wrapper, state),
885
- bind(internalReject, wrapper, state)
670
+ call$6(then, value,
671
+ bind$1(internalResolve, wrapper, state),
672
+ bind$1(internalReject, wrapper, state)
886
673
  );
887
674
  } catch (error) {
888
675
  internalReject(wrapper, error, state);
@@ -899,20 +686,22 @@ var internalResolve = function (state, value, unwrap) {
899
686
  };
900
687
 
901
688
  // constructor polyfill
902
- if (FORCED) {
689
+ if (FORCED_PROMISE_CONSTRUCTOR$4) {
903
690
  // 25.4.3.1 Promise(executor)
904
691
  PromiseConstructor = function Promise(executor) {
905
692
  anInstance(this, PromisePrototype);
906
- aCallable(executor);
907
- call(Internal, this);
908
- var state = getInternalState(this);
693
+ aCallable$3(executor);
694
+ call$6(Internal, this);
695
+ var state = getInternalPromiseState(this);
909
696
  try {
910
- executor(bind(internalResolve, state), bind(internalReject, state));
697
+ executor(bind$1(internalResolve, state), bind$1(internalReject, state));
911
698
  } catch (error) {
912
699
  internalReject(state, error);
913
700
  }
914
701
  };
702
+
915
703
  PromisePrototype = PromiseConstructor.prototype;
704
+
916
705
  // eslint-disable-next-line no-unused-vars -- required for `.length`
917
706
  Internal = function Promise(executor) {
918
707
  setInternalState(this, {
@@ -926,117 +715,275 @@ if (FORCED) {
926
715
  value: undefined
927
716
  });
928
717
  };
929
- Internal.prototype = redefineAll(PromisePrototype, {
930
- // `Promise.prototype.then` method
931
- // https://tc39.es/ecma262/#sec-promise.prototype.then
932
- // eslint-disable-next-line unicorn/no-thenable -- safe
933
- then: function then(onFulfilled, onRejected) {
934
- var state = getInternalPromiseState(this);
935
- var reaction = newPromiseCapability(speciesConstructor$1(this, PromiseConstructor));
936
- state.parent = true;
937
- reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
938
- reaction.fail = isCallable$1(onRejected) && onRejected;
939
- reaction.domain = IS_NODE ? process.domain : undefined;
940
- if (state.state == PENDING) state.reactions.add(reaction);
941
- else microtask(function () {
942
- callReaction(reaction, state);
943
- });
944
- return reaction.promise;
945
- },
946
- // `Promise.prototype.catch` method
947
- // https://tc39.es/ecma262/#sec-promise.prototype.catch
948
- 'catch': function (onRejected) {
949
- return this.then(undefined, onRejected);
950
- }
718
+
719
+ // `Promise.prototype.then` method
720
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
721
+ Internal.prototype = defineBuiltIn$2(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
722
+ var state = getInternalPromiseState(this);
723
+ var reaction = newPromiseCapability$1(speciesConstructor$1(this, PromiseConstructor));
724
+ state.parent = true;
725
+ reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
726
+ reaction.fail = isCallable$2(onRejected) && onRejected;
727
+ reaction.domain = IS_NODE ? process.domain : undefined;
728
+ if (state.state == PENDING) state.reactions.add(reaction);
729
+ else microtask(function () {
730
+ callReaction(reaction, state);
731
+ });
732
+ return reaction.promise;
951
733
  });
734
+
952
735
  OwnPromiseCapability = function () {
953
736
  var promise = new Internal();
954
- var state = getInternalState(promise);
737
+ var state = getInternalPromiseState(promise);
955
738
  this.promise = promise;
956
- this.resolve = bind(internalResolve, state);
957
- this.reject = bind(internalReject, state);
739
+ this.resolve = bind$1(internalResolve, state);
740
+ this.reject = bind$1(internalReject, state);
958
741
  };
959
- newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
742
+
743
+ newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
960
744
  return C === PromiseConstructor || C === PromiseWrapper
961
745
  ? new OwnPromiseCapability(C)
962
746
  : newGenericPromiseCapability(C);
963
747
  };
964
748
 
965
- if (isCallable$1(NativePromise$1) && NativePromisePrototype !== Object.prototype) {
966
- nativeThen = NativePromisePrototype.then;
749
+ if (isCallable$2(NativePromiseConstructor$3) && NativePromisePrototype$2 !== Object.prototype) {
750
+ nativeThen = NativePromisePrototype$2.then;
967
751
 
968
- if (!SUBCLASSING) {
752
+ if (!NATIVE_PROMISE_SUBCLASSING) {
969
753
  // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
970
- redefine$1(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
754
+ defineBuiltIn$2(NativePromisePrototype$2, 'then', function then(onFulfilled, onRejected) {
971
755
  var that = this;
972
756
  return new PromiseConstructor(function (resolve, reject) {
973
- call(nativeThen, that, resolve, reject);
757
+ call$6(nativeThen, that, resolve, reject);
974
758
  }).then(onFulfilled, onRejected);
975
759
  // https://github.com/zloirock/core-js/issues/640
976
760
  }, { unsafe: true });
977
-
978
- // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
979
- redefine$1(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
980
761
  }
981
762
 
982
763
  // make `.constructor === Promise` work for native promise-based APIs
983
764
  try {
984
- delete NativePromisePrototype.constructor;
765
+ delete NativePromisePrototype$2.constructor;
985
766
  } catch (error) { /* empty */ }
986
767
 
987
768
  // make `instanceof Promise` work for native promise-based APIs
988
769
  if (setPrototypeOf) {
989
- setPrototypeOf(NativePromisePrototype, PromisePrototype);
770
+ setPrototypeOf(NativePromisePrototype$2, PromisePrototype);
990
771
  }
991
772
  }
992
773
  }
993
774
 
994
- $$2({ global: true, wrap: true, forced: FORCED }, {
775
+ $$7({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
995
776
  Promise: PromiseConstructor
996
777
  });
997
778
 
998
779
  setToStringTag(PromiseConstructor, PROMISE, false);
999
780
  setSpecies(PROMISE);
1000
781
 
1001
- PromiseWrapper = getBuiltIn$1(PROMISE);
782
+ var wellKnownSymbol$2 = wellKnownSymbol$6;
783
+ var Iterators$1 = iterators;
1002
784
 
1003
- // statics
1004
- $$2({ target: PROMISE, stat: true, forced: FORCED }, {
1005
- // `Promise.reject` method
1006
- // https://tc39.es/ecma262/#sec-promise.reject
1007
- reject: function reject(r) {
1008
- var capability = newPromiseCapability(this);
1009
- call(capability.reject, undefined, r);
1010
- return capability.promise;
785
+ var ITERATOR$2 = wellKnownSymbol$2('iterator');
786
+ var ArrayPrototype = Array.prototype;
787
+
788
+ // check on default Array iterator
789
+ var isArrayIteratorMethod$1 = function (it) {
790
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
791
+ };
792
+
793
+ var classof = classof$3;
794
+ var getMethod$1 = getMethod$2;
795
+ var isNullOrUndefined = isNullOrUndefined$2;
796
+ var Iterators = iterators;
797
+ var wellKnownSymbol$1 = wellKnownSymbol$6;
798
+
799
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
800
+
801
+ var getIteratorMethod$2 = function (it) {
802
+ if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
803
+ || getMethod$1(it, '@@iterator')
804
+ || Iterators[classof(it)];
805
+ };
806
+
807
+ var call$5 = functionCall;
808
+ var aCallable$2 = aCallable$6;
809
+ var anObject$3 = anObject$5;
810
+ var tryToString$1 = tryToString$3;
811
+ var getIteratorMethod$1 = getIteratorMethod$2;
812
+
813
+ var $TypeError$1 = TypeError;
814
+
815
+ var getIterator$1 = function (argument, usingIterator) {
816
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
817
+ if (aCallable$2(iteratorMethod)) return anObject$3(call$5(iteratorMethod, argument));
818
+ throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
819
+ };
820
+
821
+ var call$4 = functionCall;
822
+ var anObject$2 = anObject$5;
823
+ var getMethod = getMethod$2;
824
+
825
+ var iteratorClose$1 = function (iterator, kind, value) {
826
+ var innerResult, innerError;
827
+ anObject$2(iterator);
828
+ try {
829
+ innerResult = getMethod(iterator, 'return');
830
+ if (!innerResult) {
831
+ if (kind === 'throw') throw value;
832
+ return value;
833
+ }
834
+ innerResult = call$4(innerResult, iterator);
835
+ } catch (error) {
836
+ innerError = true;
837
+ innerResult = error;
1011
838
  }
1012
- });
839
+ if (kind === 'throw') throw value;
840
+ if (innerError) throw innerResult;
841
+ anObject$2(innerResult);
842
+ return value;
843
+ };
1013
844
 
1014
- $$2({ target: PROMISE, stat: true, forced: FORCED }, {
1015
- // `Promise.resolve` method
1016
- // https://tc39.es/ecma262/#sec-promise.resolve
1017
- resolve: function resolve(x) {
1018
- return promiseResolve$1(this, x);
845
+ var bind = functionBindContext;
846
+ var call$3 = functionCall;
847
+ var anObject$1 = anObject$5;
848
+ var tryToString = tryToString$3;
849
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
850
+ var lengthOfArrayLike = lengthOfArrayLike$1;
851
+ var isPrototypeOf = objectIsPrototypeOf;
852
+ var getIterator = getIterator$1;
853
+ var getIteratorMethod = getIteratorMethod$2;
854
+ var iteratorClose = iteratorClose$1;
855
+
856
+ var $TypeError = TypeError;
857
+
858
+ var Result = function (stopped, result) {
859
+ this.stopped = stopped;
860
+ this.result = result;
861
+ };
862
+
863
+ var ResultPrototype = Result.prototype;
864
+
865
+ var iterate$2 = function (iterable, unboundFunction, options) {
866
+ var that = options && options.that;
867
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
868
+ var IS_RECORD = !!(options && options.IS_RECORD);
869
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
870
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
871
+ var fn = bind(unboundFunction, that);
872
+ var iterator, iterFn, index, length, result, next, step;
873
+
874
+ var stop = function (condition) {
875
+ if (iterator) iteratorClose(iterator, 'normal', condition);
876
+ return new Result(true, condition);
877
+ };
878
+
879
+ var callFn = function (value) {
880
+ if (AS_ENTRIES) {
881
+ anObject$1(value);
882
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
883
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
884
+ };
885
+
886
+ if (IS_RECORD) {
887
+ iterator = iterable.iterator;
888
+ } else if (IS_ITERATOR) {
889
+ iterator = iterable;
890
+ } else {
891
+ iterFn = getIteratorMethod(iterable);
892
+ if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
893
+ // optimisation for array iterators
894
+ if (isArrayIteratorMethod(iterFn)) {
895
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
896
+ result = callFn(iterable[index]);
897
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
898
+ } return new Result(false);
899
+ }
900
+ iterator = getIterator(iterable, iterFn);
1019
901
  }
902
+
903
+ next = IS_RECORD ? iterable.next : iterator.next;
904
+ while (!(step = call$3(next, iterator)).done) {
905
+ try {
906
+ result = callFn(step.value);
907
+ } catch (error) {
908
+ iteratorClose(iterator, 'throw', error);
909
+ }
910
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
911
+ } return new Result(false);
912
+ };
913
+
914
+ var wellKnownSymbol = wellKnownSymbol$6;
915
+
916
+ var ITERATOR = wellKnownSymbol('iterator');
917
+ var SAFE_CLOSING = false;
918
+
919
+ try {
920
+ var called = 0;
921
+ var iteratorWithReturn = {
922
+ next: function () {
923
+ return { done: !!called++ };
924
+ },
925
+ 'return': function () {
926
+ SAFE_CLOSING = true;
927
+ }
928
+ };
929
+ iteratorWithReturn[ITERATOR] = function () {
930
+ return this;
931
+ };
932
+ // eslint-disable-next-line es-x/no-array-from, no-throw-literal -- required for testing
933
+ Array.from(iteratorWithReturn, function () { throw 2; });
934
+ } catch (error) { /* empty */ }
935
+
936
+ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
937
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
938
+ var ITERATION_SUPPORT = false;
939
+ try {
940
+ var object = {};
941
+ object[ITERATOR] = function () {
942
+ return {
943
+ next: function () {
944
+ return { done: ITERATION_SUPPORT = true };
945
+ }
946
+ };
947
+ };
948
+ exec(object);
949
+ } catch (error) { /* empty */ }
950
+ return ITERATION_SUPPORT;
951
+ };
952
+
953
+ var NativePromiseConstructor$2 = promiseNativeConstructor;
954
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
955
+ var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
956
+
957
+ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
958
+ NativePromiseConstructor$2.all(iterable).then(undefined, function () { /* empty */ });
1020
959
  });
1021
960
 
1022
- $$2({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
1023
- // `Promise.all` method
1024
- // https://tc39.es/ecma262/#sec-promise.all
961
+ var $$6 = _export;
962
+ var call$2 = functionCall;
963
+ var aCallable$1 = aCallable$6;
964
+ var newPromiseCapabilityModule$2 = newPromiseCapability$2;
965
+ var perform$1 = perform$3;
966
+ var iterate$1 = iterate$2;
967
+ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
968
+
969
+ // `Promise.all` method
970
+ // https://tc39.es/ecma262/#sec-promise.all
971
+ $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
1025
972
  all: function all(iterable) {
1026
973
  var C = this;
1027
- var capability = newPromiseCapability(C);
974
+ var capability = newPromiseCapabilityModule$2.f(C);
1028
975
  var resolve = capability.resolve;
1029
976
  var reject = capability.reject;
1030
- var result = perform(function () {
1031
- var $promiseResolve = aCallable(C.resolve);
977
+ var result = perform$1(function () {
978
+ var $promiseResolve = aCallable$1(C.resolve);
1032
979
  var values = [];
1033
980
  var counter = 0;
1034
981
  var remaining = 1;
1035
- iterate(iterable, function (promise) {
982
+ iterate$1(iterable, function (promise) {
1036
983
  var index = counter++;
1037
984
  var alreadyCalled = false;
1038
985
  remaining++;
1039
- call($promiseResolve, C, promise).then(function (value) {
986
+ call$2($promiseResolve, C, promise).then(function (value) {
1040
987
  if (alreadyCalled) return;
1041
988
  alreadyCalled = true;
1042
989
  values[index] = value;
@@ -1047,17 +994,53 @@ $$2({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
1047
994
  });
1048
995
  if (result.error) reject(result.value);
1049
996
  return capability.promise;
1050
- },
1051
- // `Promise.race` method
1052
- // https://tc39.es/ecma262/#sec-promise.race
997
+ }
998
+ });
999
+
1000
+ var $$5 = _export;
1001
+ var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
1002
+ var NativePromiseConstructor$1 = promiseNativeConstructor;
1003
+ var getBuiltIn$2 = getBuiltIn$5;
1004
+ var isCallable$1 = isCallable$6;
1005
+ var defineBuiltIn$1 = defineBuiltIn$3;
1006
+
1007
+ var NativePromisePrototype$1 = NativePromiseConstructor$1 && NativePromiseConstructor$1.prototype;
1008
+
1009
+ // `Promise.prototype.catch` method
1010
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
1011
+ $$5({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
1012
+ 'catch': function (onRejected) {
1013
+ return this.then(undefined, onRejected);
1014
+ }
1015
+ });
1016
+
1017
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
1018
+ if (isCallable$1(NativePromiseConstructor$1)) {
1019
+ var method$1 = getBuiltIn$2('Promise').prototype['catch'];
1020
+ if (NativePromisePrototype$1['catch'] !== method$1) {
1021
+ defineBuiltIn$1(NativePromisePrototype$1, 'catch', method$1, { unsafe: true });
1022
+ }
1023
+ }
1024
+
1025
+ var $$4 = _export;
1026
+ var call$1 = functionCall;
1027
+ var aCallable = aCallable$6;
1028
+ var newPromiseCapabilityModule$1 = newPromiseCapability$2;
1029
+ var perform = perform$3;
1030
+ var iterate = iterate$2;
1031
+ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
1032
+
1033
+ // `Promise.race` method
1034
+ // https://tc39.es/ecma262/#sec-promise.race
1035
+ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
1053
1036
  race: function race(iterable) {
1054
1037
  var C = this;
1055
- var capability = newPromiseCapability(C);
1038
+ var capability = newPromiseCapabilityModule$1.f(C);
1056
1039
  var reject = capability.reject;
1057
1040
  var result = perform(function () {
1058
1041
  var $promiseResolve = aCallable(C.resolve);
1059
1042
  iterate(iterable, function (promise) {
1060
- call($promiseResolve, C, promise).then(capability.resolve, reject);
1043
+ call$1($promiseResolve, C, promise).then(capability.resolve, reject);
1061
1044
  });
1062
1045
  });
1063
1046
  if (result.error) reject(result.value);
@@ -1065,16 +1048,49 @@ $$2({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
1065
1048
  }
1066
1049
  });
1067
1050
 
1068
- var global = global$e;
1069
- var classof = classof$4;
1051
+ var $$3 = _export;
1052
+ var call = functionCall;
1053
+ var newPromiseCapabilityModule = newPromiseCapability$2;
1054
+ var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
1070
1055
 
1071
- var String$1 = global.String;
1056
+ // `Promise.reject` method
1057
+ // https://tc39.es/ecma262/#sec-promise.reject
1058
+ $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
1059
+ reject: function reject(r) {
1060
+ var capability = newPromiseCapabilityModule.f(this);
1061
+ call(capability.reject, undefined, r);
1062
+ return capability.promise;
1063
+ }
1064
+ });
1072
1065
 
1073
- var toString$1 = function (argument) {
1074
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1075
- return String$1(argument);
1066
+ var anObject = anObject$5;
1067
+ var isObject = isObject$2;
1068
+ var newPromiseCapability = newPromiseCapability$2;
1069
+
1070
+ var promiseResolve$2 = function (C, x) {
1071
+ anObject(C);
1072
+ if (isObject(x) && x.constructor === C) return x;
1073
+ var promiseCapability = newPromiseCapability.f(C);
1074
+ var resolve = promiseCapability.resolve;
1075
+ resolve(x);
1076
+ return promiseCapability.promise;
1076
1077
  };
1077
1078
 
1079
+ var $$2 = _export;
1080
+ var getBuiltIn$1 = getBuiltIn$5;
1081
+ var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
1082
+ var promiseResolve$1 = promiseResolve$2;
1083
+
1084
+ getBuiltIn$1('Promise');
1085
+
1086
+ // `Promise.resolve` method
1087
+ // https://tc39.es/ecma262/#sec-promise.resolve
1088
+ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
1089
+ resolve: function resolve(x) {
1090
+ return promiseResolve$1(this, x);
1091
+ }
1092
+ });
1093
+
1078
1094
  // a string of all valid unicode whitespaces
1079
1095
  var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
1080
1096
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
@@ -1140,18 +1156,20 @@ $$1({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
1140
1156
  });
1141
1157
 
1142
1158
  var $ = _export;
1143
- var NativePromise = nativePromiseConstructor;
1159
+ var NativePromiseConstructor = promiseNativeConstructor;
1144
1160
  var fails = fails$4;
1145
- var getBuiltIn = getBuiltIn$4;
1146
- var isCallable = isCallable$5;
1161
+ var getBuiltIn = getBuiltIn$5;
1162
+ var isCallable = isCallable$6;
1147
1163
  var speciesConstructor = speciesConstructor$2;
1148
1164
  var promiseResolve = promiseResolve$2;
1149
- var redefine = redefine$3.exports;
1165
+ var defineBuiltIn = defineBuiltIn$3;
1166
+
1167
+ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
1150
1168
 
1151
1169
  // Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
1152
- var NON_GENERIC = !!NativePromise && fails(function () {
1170
+ var NON_GENERIC = !!NativePromiseConstructor && fails(function () {
1153
1171
  // eslint-disable-next-line unicorn/no-thenable -- required for testing
1154
- NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
1172
+ NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
1155
1173
  });
1156
1174
 
1157
1175
  // `Promise.prototype.finally` method
@@ -1172,10 +1190,10 @@ $({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
1172
1190
  });
1173
1191
 
1174
1192
  // makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`
1175
- if (isCallable(NativePromise)) {
1193
+ if (isCallable(NativePromiseConstructor)) {
1176
1194
  var method = getBuiltIn('Promise').prototype['finally'];
1177
- if (NativePromise.prototype['finally'] !== method) {
1178
- redefine(NativePromise.prototype, 'finally', method, { unsafe: true });
1195
+ if (NativePromisePrototype['finally'] !== method) {
1196
+ defineBuiltIn(NativePromisePrototype, 'finally', method, { unsafe: true });
1179
1197
  }
1180
1198
  }
1181
1199
 
@@ -1332,7 +1350,7 @@ const PLACEHOLDER_ICON = `<svg width="80%" height="80%" viewBox="0 0 64 64">
1332
1350
  </svg>`;
1333
1351
 
1334
1352
  const BASE_URL = 'https://icon.resources.vonage.com';
1335
- const ICON_SET_VERSION = '4.0.27';
1353
+ const ICON_SET_VERSION = '4.0.30';
1336
1354
  const PLACEHOLDER_DELAY = 500;
1337
1355
  const PLACEHOLDER_TIMEOUT = 2000;
1338
1356
 
@@ -1356,25 +1374,20 @@ const loadSvg = iconId => fetch(baseUrlTemplate([iconId, 'svg'].join('.'), ICON_
1356
1374
 
1357
1375
  const resolveIcon = memoizeWith$1(identity$1, (iconId = '') => iconId.trim() ? loadSvg(iconId) : Promise.resolve(''));
1358
1376
  class Icon extends FoundationElement {
1359
- constructor() {
1360
- super(...arguments);
1361
- this.svg = '';
1362
- }
1363
-
1364
1377
  async typeChanged() {
1365
- this.svg = '';
1378
+ this.svg = undefined;
1366
1379
  let timeout = setTimeout(() => {
1367
1380
  this.svg = PLACEHOLDER_ICON;
1368
1381
  timeout = setTimeout(() => {
1369
1382
  if (this.svg === PLACEHOLDER_ICON) {
1370
- this.svg = '';
1383
+ this.svg = undefined;
1371
1384
  }
1372
1385
  }, PLACEHOLDER_TIMEOUT);
1373
1386
  }, PLACEHOLDER_DELAY);
1374
1387
  await resolveIcon(this.type).then(svg => {
1375
1388
  this.svg = svg;
1376
1389
  }).catch(() => {
1377
- this.svg = '';
1390
+ this.svg = undefined;
1378
1391
  }).finally(() => {
1379
1392
  clearTimeout(timeout);
1380
1393
  });
@@ -1386,8 +1399,8 @@ __decorate([attr, __metadata("design:type", String)], Icon.prototype, "connotati
1386
1399
 
1387
1400
  __decorate([attr, __metadata("design:type", String)], Icon.prototype, "size", void 0);
1388
1401
 
1389
- __decorate([observable, __metadata("design:type", Object)], Icon.prototype, "svg", void 0);
1402
+ __decorate([observable, __metadata("design:type", String)], Icon.prototype, "svg", void 0);
1390
1403
 
1391
1404
  __decorate([attr, __metadata("design:type", String)], Icon.prototype, "type", void 0);
1392
1405
 
1393
- export { Icon as I, functionApply as f, speciesConstructor$2 as s, toString$1 as t };
1406
+ export { Icon as I, functionApply as f, speciesConstructor$2 as s };