@orchestrator-ui/orchestrator-ui-components 0.0.1-alpha.1 → 0.0.1-alpha.10

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 (56) hide show
  1. package/index.js +2146 -804
  2. package/package.json +7 -4
  3. package/src/index.d.ts +6 -5
  4. package/src/lib/components/Badges/Badge/Badge.d.ts +8 -0
  5. package/src/lib/components/Badges/Badge/index.d.ts +1 -0
  6. package/src/lib/components/Badges/EngineStatusBadge/EngineStatusBadge.d.ts +1 -0
  7. package/src/lib/components/Badges/EngineStatusBadge/index.d.ts +1 -0
  8. package/src/lib/components/Badges/EnvironmentBadge/EnvironmentBadge.d.ts +1 -0
  9. package/src/lib/components/Badges/EnvironmentBadge/index.d.ts +1 -0
  10. package/src/lib/components/Badges/FailedTasksBadge/FailedTasksBadge.d.ts +1 -0
  11. package/src/lib/components/Badges/FailedTasksBadge/index.d.ts +1 -0
  12. package/src/lib/components/{OrchestratorPageTemplate → Badges/HeaderBadge}/HeaderBadge.d.ts +3 -2
  13. package/src/lib/components/Badges/HeaderBadge/index.d.ts +1 -0
  14. package/src/lib/components/Badges/SubscriptionStatusBadge/SubscriptionStatusBadge.d.ts +5 -0
  15. package/src/lib/components/Badges/SubscriptionStatusBadge/index.d.ts +1 -0
  16. package/src/lib/components/Badges/index.d.ts +6 -0
  17. package/src/lib/components/OrchestratorPageTemplate/OrchestratorPageHeader/index.d.ts +1 -0
  18. package/src/lib/components/OrchestratorPageTemplate/{OrchestratorPageTemplate.d.ts → OrchestratorPageTemplate/OrchestratorPageTemplate.d.ts} +1 -0
  19. package/src/lib/components/OrchestratorPageTemplate/OrchestratorPageTemplate/index.d.ts +1 -0
  20. package/src/lib/components/OrchestratorPageTemplate/{OrchestratorSidebar.d.ts → OrchestratorSidebar/OrchestratorSidebar.d.ts} +1 -1
  21. package/src/lib/components/OrchestratorPageTemplate/OrchestratorSidebar/index.d.ts +1 -0
  22. package/src/lib/components/OrchestratorPageTemplate/index.d.ts +3 -0
  23. package/src/lib/components/StartPage/FrequentlyUsed.d.ts +5 -0
  24. package/src/lib/components/StartPage/ListItemStartPage.d.ts +8 -0
  25. package/src/lib/components/StartPage/ListStartPage.d.ts +7 -0
  26. package/src/lib/components/StartPage/MultiListSection.d.ts +2 -0
  27. package/src/lib/components/StartPage/NewProcessPanel.d.ts +2 -0
  28. package/src/lib/components/StartPage/StatCards.d.ts +2 -0
  29. package/src/lib/components/StartPage/index.d.ts +6 -0
  30. package/src/lib/components/Table/DataGridTable.d.ts +18 -0
  31. package/src/lib/components/Table/Table.d.ts +14 -0
  32. package/src/lib/components/Table/TableHeaderCell.d.ts +12 -0
  33. package/src/lib/components/Table/columns.d.ts +22 -0
  34. package/src/lib/components/Table/dataGridColumns.d.ts +15 -0
  35. package/src/lib/components/Table/index.d.ts +5 -0
  36. package/src/lib/components/index.d.ts +4 -0
  37. package/src/lib/contexts/index.d.ts +1 -0
  38. package/src/lib/hooks/DataFetchHooks.d.ts +18 -0
  39. package/src/lib/hooks/index.d.ts +6 -0
  40. package/src/lib/hooks/useOrchestratorConfig.d.ts +7 -0
  41. package/src/lib/hooks/useOrchestratorTheme.d.ts +1 -0
  42. package/src/lib/hooks/useQueryWithGraphql.d.ts +4 -0
  43. package/src/lib/icons/ArrowNarrowDown.d.ts +3 -0
  44. package/src/lib/icons/ArrowNarrowUp.d.ts +3 -0
  45. package/src/lib/icons/CheckmarkCircleFill.d.ts +3 -0
  46. package/src/lib/icons/ChevronDown.d.ts +3 -0
  47. package/src/lib/icons/MinusCircleOutline.d.ts +3 -0
  48. package/src/lib/icons/PlusCircleFill.d.ts +3 -0
  49. package/src/lib/icons/index.d.ts +10 -0
  50. package/src/lib/theme/index.d.ts +1 -0
  51. package/src/lib/types.d.ts +55 -0
  52. package/src/lib/utils/date.d.ts +1 -0
  53. package/src/lib/utils/getTypedFieldFromObject.d.ts +1 -0
  54. package/src/lib/utils/index.d.ts +3 -0
  55. /package/src/lib/components/OrchestratorPageTemplate/{OrchestratorPageHeader.d.ts → OrchestratorPageHeader/OrchestratorPageHeader.d.ts} +0 -0
  56. /package/src/lib/{utils.d.ts → utils/getStatusBadgeColor.d.ts} +0 -0
package/index.js CHANGED
@@ -1,9 +1,10 @@
1
1
  import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
2
- import { css } from '@emotion/react';
3
- import { useState, createContext, useContext } from 'react';
4
- import { useEuiTheme, EuiBadge, EuiHeader, EuiHeaderSection, EuiHeaderSectionItem, EuiHeaderLogo, EuiBadgeGroup, EuiButtonIcon, EuiSideNav, EuiPageTemplate } from '@elastic/eui';
2
+ import { EuiBadge, EuiText, useEuiTheme, tint, EuiToolTip, EuiHeader, EuiHeaderSection, EuiHeaderSectionItem, EuiHeaderLogo, EuiBadgeGroup, EuiButtonIcon, EuiSideNav, EuiButton, EuiSpacer, EuiPageTemplate, EuiFlexGroup, EuiFlexItem, EuiIcon, EuiTextColor, EuiPanel, EuiHorizontalRule, EuiFieldSearch, EuiAvatar, EuiBasicTable, EuiDataGrid } from '@elastic/eui';
3
+ import { useState, createContext, useContext, useRef } from 'react';
4
+ import { GraphQLClient, request } from 'graphql-request';
5
5
  import { useQuery } from 'react-query';
6
- import { useRouter } from 'next/router';
6
+ import moment from 'moment';
7
+ import Link from 'next/link';
7
8
 
8
9
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
9
10
 
@@ -12,7 +13,7 @@ var check = function (it) {
12
13
  };
13
14
 
14
15
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
15
- var global$g =
16
+ var global$i =
16
17
  // eslint-disable-next-line es/no-global-this -- safe
17
18
  check(typeof globalThis == 'object' && globalThis) ||
18
19
  check(typeof window == 'object' && window) ||
@@ -20,11 +21,11 @@ var global$g =
20
21
  check(typeof self == 'object' && self) ||
21
22
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22
23
  // eslint-disable-next-line no-new-func -- fallback
23
- (function () { return this; })() || Function('return this')();
24
+ (function () { return this; })() || commonjsGlobal || Function('return this')();
24
25
 
25
26
  var objectGetOwnPropertyDescriptor = {};
26
27
 
27
- var fails$d = function (exec) {
28
+ var fails$i = function (exec) {
28
29
  try {
29
30
  return !!exec();
30
31
  } catch (error) {
@@ -32,17 +33,17 @@ var fails$d = function (exec) {
32
33
  }
33
34
  };
34
35
 
35
- var fails$c = fails$d;
36
+ var fails$h = fails$i;
36
37
 
37
38
  // Detect IE8's incomplete defineProperty implementation
38
- var descriptors = !fails$c(function () {
39
+ var descriptors = !fails$h(function () {
39
40
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
40
41
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
41
42
  });
42
43
 
43
- var fails$b = fails$d;
44
+ var fails$g = fails$i;
44
45
 
45
- var functionBindNative = !fails$b(function () {
46
+ var functionBindNative = !fails$g(function () {
46
47
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
47
48
  var test = (function () { /* empty */ }).bind();
48
49
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -51,10 +52,10 @@ var functionBindNative = !fails$b(function () {
51
52
 
52
53
  var NATIVE_BIND$3 = functionBindNative;
53
54
 
54
- var call$e = Function.prototype.call;
55
+ var call$f = Function.prototype.call;
55
56
 
56
- var functionCall = NATIVE_BIND$3 ? call$e.bind(call$e) : function () {
57
- return call$e.apply(call$e, arguments);
57
+ var functionCall = NATIVE_BIND$3 ? call$f.bind(call$f) : function () {
58
+ return call$f.apply(call$f, arguments);
58
59
  };
59
60
 
60
61
  var objectPropertyIsEnumerable = {};
@@ -73,7 +74,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
73
74
  return !!descriptor && descriptor.enumerable;
74
75
  } : $propertyIsEnumerable;
75
76
 
76
- var createPropertyDescriptor$3 = function (bitmap, value) {
77
+ var createPropertyDescriptor$4 = function (bitmap, value) {
77
78
  return {
78
79
  enumerable: !(bitmap & 1),
79
80
  configurable: !(bitmap & 2),
@@ -85,38 +86,38 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
85
86
  var NATIVE_BIND$2 = functionBindNative;
86
87
 
87
88
  var FunctionPrototype$2 = Function.prototype;
88
- var call$d = FunctionPrototype$2.call;
89
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$d, call$d);
89
+ var call$e = FunctionPrototype$2.call;
90
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$e, call$e);
90
91
 
91
92
  var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
92
93
  return function () {
93
- return call$d.apply(fn, arguments);
94
+ return call$e.apply(fn, arguments);
94
95
  };
95
96
  };
96
97
 
97
- var uncurryThis$e = functionUncurryThis;
98
+ var uncurryThis$i = functionUncurryThis;
98
99
 
99
- var toString$1 = uncurryThis$e({}.toString);
100
- var stringSlice$1 = uncurryThis$e(''.slice);
100
+ var toString$6 = uncurryThis$i({}.toString);
101
+ var stringSlice$1 = uncurryThis$i(''.slice);
101
102
 
102
103
  var classofRaw$2 = function (it) {
103
- return stringSlice$1(toString$1(it), 8, -1);
104
+ return stringSlice$1(toString$6(it), 8, -1);
104
105
  };
105
106
 
106
- var uncurryThis$d = functionUncurryThis;
107
- var fails$a = fails$d;
108
- var classof$4 = classofRaw$2;
107
+ var uncurryThis$h = functionUncurryThis;
108
+ var fails$f = fails$i;
109
+ var classof$6 = classofRaw$2;
109
110
 
110
111
  var $Object$4 = Object;
111
- var split = uncurryThis$d(''.split);
112
+ var split = uncurryThis$h(''.split);
112
113
 
113
114
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
114
- var indexedObject = fails$a(function () {
115
+ var indexedObject = fails$f(function () {
115
116
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
116
117
  // eslint-disable-next-line no-prototype-builtins -- safe
117
118
  return !$Object$4('z').propertyIsEnumerable(0);
118
119
  }) ? function (it) {
119
- return classof$4(it) == 'String' ? split(it, '') : $Object$4(it);
120
+ return classof$6(it) == 'String' ? split(it, '') : $Object$4(it);
120
121
  } : $Object$4;
121
122
 
122
123
  // we can't use just `it == null` since of `document.all` special case
@@ -127,21 +128,21 @@ var isNullOrUndefined$4 = function (it) {
127
128
 
128
129
  var isNullOrUndefined$3 = isNullOrUndefined$4;
129
130
 
130
- var $TypeError$c = TypeError;
131
+ var $TypeError$e = TypeError;
131
132
 
132
133
  // `RequireObjectCoercible` abstract operation
133
134
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
134
- var requireObjectCoercible$2 = function (it) {
135
- if (isNullOrUndefined$3(it)) throw $TypeError$c("Can't call method on " + it);
135
+ var requireObjectCoercible$4 = function (it) {
136
+ if (isNullOrUndefined$3(it)) throw $TypeError$e("Can't call method on " + it);
136
137
  return it;
137
138
  };
138
139
 
139
140
  // toObject with fallback for non-array-like ES3 strings
140
141
  var IndexedObject$1 = indexedObject;
141
- var requireObjectCoercible$1 = requireObjectCoercible$2;
142
+ var requireObjectCoercible$3 = requireObjectCoercible$4;
142
143
 
143
144
  var toIndexedObject$5 = function (it) {
144
- return IndexedObject$1(requireObjectCoercible$1(it));
145
+ return IndexedObject$1(requireObjectCoercible$3(it));
145
146
  };
146
147
 
147
148
  var documentAll$2 = typeof document == 'object' && document.all;
@@ -172,13 +173,13 @@ var $documentAll = documentAll_1;
172
173
 
173
174
  var documentAll = $documentAll.all;
174
175
 
175
- var isObject$8 = $documentAll.IS_HTMLDDA ? function (it) {
176
+ var isObject$9 = $documentAll.IS_HTMLDDA ? function (it) {
176
177
  return typeof it == 'object' ? it !== null : isCallable$j(it) || it === documentAll;
177
178
  } : function (it) {
178
179
  return typeof it == 'object' ? it !== null : isCallable$j(it);
179
180
  };
180
181
 
181
- var global$f = global$g;
182
+ var global$h = global$i;
182
183
  var isCallable$i = isCallable$k;
183
184
 
184
185
  var aFunction = function (argument) {
@@ -186,20 +187,20 @@ var aFunction = function (argument) {
186
187
  };
187
188
 
188
189
  var getBuiltIn$7 = function (namespace, method) {
189
- return arguments.length < 2 ? aFunction(global$f[namespace]) : global$f[namespace] && global$f[namespace][method];
190
+ return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method];
190
191
  };
191
192
 
192
- var uncurryThis$c = functionUncurryThis;
193
+ var uncurryThis$g = functionUncurryThis;
193
194
 
194
- var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
195
+ var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
195
196
 
196
197
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
197
198
 
198
- var global$e = global$g;
199
- var userAgent$3 = engineUserAgent;
199
+ var global$g = global$i;
200
+ var userAgent$5 = engineUserAgent;
200
201
 
201
- var process$4 = global$e.process;
202
- var Deno$1 = global$e.Deno;
202
+ var process$4 = global$g.process;
203
+ var Deno$1 = global$g.Deno;
203
204
  var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
204
205
  var v8 = versions && versions.v8;
205
206
  var match, version;
@@ -213,10 +214,10 @@ if (v8) {
213
214
 
214
215
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
215
216
  // so check `userAgent` even if `.v8` exists, but 0
216
- if (!version && userAgent$3) {
217
- match = userAgent$3.match(/Edge\/(\d+)/);
217
+ if (!version && userAgent$5) {
218
+ match = userAgent$5.match(/Edge\/(\d+)/);
218
219
  if (!match || match[1] >= 74) {
219
- match = userAgent$3.match(/Chrome\/(\d+)/);
220
+ match = userAgent$5.match(/Chrome\/(\d+)/);
220
221
  if (match) version = +match[1];
221
222
  }
222
223
  }
@@ -226,14 +227,19 @@ var engineV8Version = version;
226
227
  /* eslint-disable es/no-symbol -- required for testing */
227
228
 
228
229
  var V8_VERSION$1 = engineV8Version;
229
- var fails$9 = fails$d;
230
+ var fails$e = fails$i;
231
+ var global$f = global$i;
232
+
233
+ var $String$5 = global$f.String;
230
234
 
231
235
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
232
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$9(function () {
236
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
233
237
  var symbol = Symbol();
234
238
  // Chrome 38 Symbol has incorrect toString conversion
235
239
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
236
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
240
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
241
+ // of course, fail.
242
+ return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
237
243
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
238
244
  !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
239
245
  });
@@ -248,7 +254,7 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
248
254
 
249
255
  var getBuiltIn$6 = getBuiltIn$7;
250
256
  var isCallable$h = isCallable$k;
251
- var isPrototypeOf$2 = objectIsPrototypeOf;
257
+ var isPrototypeOf$3 = objectIsPrototypeOf;
252
258
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
253
259
 
254
260
  var $Object$3 = Object;
@@ -257,76 +263,76 @@ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
257
263
  return typeof it == 'symbol';
258
264
  } : function (it) {
259
265
  var $Symbol = getBuiltIn$6('Symbol');
260
- return isCallable$h($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
266
+ return isCallable$h($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$3(it));
261
267
  };
262
268
 
263
- var $String$3 = String;
269
+ var $String$4 = String;
264
270
 
265
- var tryToString$4 = function (argument) {
271
+ var tryToString$5 = function (argument) {
266
272
  try {
267
- return $String$3(argument);
273
+ return $String$4(argument);
268
274
  } catch (error) {
269
275
  return 'Object';
270
276
  }
271
277
  };
272
278
 
273
279
  var isCallable$g = isCallable$k;
274
- var tryToString$3 = tryToString$4;
280
+ var tryToString$4 = tryToString$5;
275
281
 
276
- var $TypeError$b = TypeError;
282
+ var $TypeError$d = TypeError;
277
283
 
278
284
  // `Assert: IsCallable(argument) is true`
279
- var aCallable$8 = function (argument) {
285
+ var aCallable$9 = function (argument) {
280
286
  if (isCallable$g(argument)) return argument;
281
- throw $TypeError$b(tryToString$3(argument) + ' is not a function');
287
+ throw $TypeError$d(tryToString$4(argument) + ' is not a function');
282
288
  };
283
289
 
284
- var aCallable$7 = aCallable$8;
290
+ var aCallable$8 = aCallable$9;
285
291
  var isNullOrUndefined$2 = isNullOrUndefined$4;
286
292
 
287
293
  // `GetMethod` abstract operation
288
294
  // https://tc39.es/ecma262/#sec-getmethod
289
295
  var getMethod$3 = function (V, P) {
290
296
  var func = V[P];
291
- return isNullOrUndefined$2(func) ? undefined : aCallable$7(func);
297
+ return isNullOrUndefined$2(func) ? undefined : aCallable$8(func);
292
298
  };
293
299
 
294
- var call$c = functionCall;
300
+ var call$d = functionCall;
295
301
  var isCallable$f = isCallable$k;
296
- var isObject$7 = isObject$8;
302
+ var isObject$8 = isObject$9;
297
303
 
298
- var $TypeError$a = TypeError;
304
+ var $TypeError$c = TypeError;
299
305
 
300
306
  // `OrdinaryToPrimitive` abstract operation
301
307
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
302
308
  var ordinaryToPrimitive$1 = function (input, pref) {
303
309
  var fn, val;
304
- if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$7(val = call$c(fn, input))) return val;
305
- if (isCallable$f(fn = input.valueOf) && !isObject$7(val = call$c(fn, input))) return val;
306
- if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$7(val = call$c(fn, input))) return val;
307
- throw $TypeError$a("Can't convert object to primitive value");
310
+ if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$d(fn, input))) return val;
311
+ if (isCallable$f(fn = input.valueOf) && !isObject$8(val = call$d(fn, input))) return val;
312
+ if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$d(fn, input))) return val;
313
+ throw $TypeError$c("Can't convert object to primitive value");
308
314
  };
309
315
 
310
316
  var shared$3 = {exports: {}};
311
317
 
312
- var global$d = global$g;
318
+ var global$e = global$i;
313
319
 
314
320
  // eslint-disable-next-line es/no-object-defineproperty -- safe
315
321
  var defineProperty$6 = Object.defineProperty;
316
322
 
317
323
  var defineGlobalProperty$3 = function (key, value) {
318
324
  try {
319
- defineProperty$6(global$d, key, { value: value, configurable: true, writable: true });
325
+ defineProperty$6(global$e, key, { value: value, configurable: true, writable: true });
320
326
  } catch (error) {
321
- global$d[key] = value;
327
+ global$e[key] = value;
322
328
  } return value;
323
329
  };
324
330
 
325
- var global$c = global$g;
331
+ var global$d = global$i;
326
332
  var defineGlobalProperty$2 = defineGlobalProperty$3;
327
333
 
328
334
  var SHARED = '__core-js_shared__';
329
- var store$3 = global$c[SHARED] || defineGlobalProperty$2(SHARED, {});
335
+ var store$3 = global$d[SHARED] || defineGlobalProperty$2(SHARED, {});
330
336
 
331
337
  var sharedStore = store$3;
332
338
 
@@ -335,85 +341,85 @@ var store$2 = sharedStore;
335
341
  (shared$3.exports = function (key, value) {
336
342
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
337
343
  })('versions', []).push({
338
- version: '3.29.0',
344
+ version: '3.30.2',
339
345
  mode: 'global',
340
346
  copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
341
- license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
347
+ license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE',
342
348
  source: 'https://github.com/zloirock/core-js'
343
349
  });
344
350
 
345
- var requireObjectCoercible = requireObjectCoercible$2;
351
+ var requireObjectCoercible$2 = requireObjectCoercible$4;
346
352
 
347
353
  var $Object$2 = Object;
348
354
 
349
355
  // `ToObject` abstract operation
350
356
  // https://tc39.es/ecma262/#sec-toobject
351
- var toObject$3 = function (argument) {
352
- return $Object$2(requireObjectCoercible(argument));
357
+ var toObject$4 = function (argument) {
358
+ return $Object$2(requireObjectCoercible$2(argument));
353
359
  };
354
360
 
355
- var uncurryThis$b = functionUncurryThis;
356
- var toObject$2 = toObject$3;
361
+ var uncurryThis$f = functionUncurryThis;
362
+ var toObject$3 = toObject$4;
357
363
 
358
- var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
364
+ var hasOwnProperty = uncurryThis$f({}.hasOwnProperty);
359
365
 
360
366
  // `HasOwnProperty` abstract operation
361
367
  // https://tc39.es/ecma262/#sec-hasownproperty
362
368
  // eslint-disable-next-line es/no-object-hasown -- safe
363
369
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
364
- return hasOwnProperty(toObject$2(it), key);
370
+ return hasOwnProperty(toObject$3(it), key);
365
371
  };
366
372
 
367
- var uncurryThis$a = functionUncurryThis;
373
+ var uncurryThis$e = functionUncurryThis;
368
374
 
369
375
  var id = 0;
370
376
  var postfix = Math.random();
371
- var toString = uncurryThis$a(1.0.toString);
377
+ var toString$5 = uncurryThis$e(1.0.toString);
372
378
 
373
379
  var uid$2 = function (key) {
374
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
380
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
375
381
  };
376
382
 
377
- var global$b = global$g;
383
+ var global$c = global$i;
378
384
  var shared$2 = shared$3.exports;
379
- var hasOwn$9 = hasOwnProperty_1;
385
+ var hasOwn$a = hasOwnProperty_1;
380
386
  var uid$1 = uid$2;
381
387
  var NATIVE_SYMBOL = symbolConstructorDetection;
382
388
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
383
389
 
384
- var Symbol$1 = global$b.Symbol;
390
+ var Symbol$2 = global$c.Symbol;
385
391
  var WellKnownSymbolsStore = shared$2('wks');
386
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
392
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
387
393
 
388
- var wellKnownSymbol$e = function (name) {
389
- if (!hasOwn$9(WellKnownSymbolsStore, name)) {
390
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
391
- ? Symbol$1[name]
394
+ var wellKnownSymbol$g = function (name) {
395
+ if (!hasOwn$a(WellKnownSymbolsStore, name)) {
396
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$a(Symbol$2, name)
397
+ ? Symbol$2[name]
392
398
  : createWellKnownSymbol('Symbol.' + name);
393
399
  } return WellKnownSymbolsStore[name];
394
400
  };
395
401
 
396
- var call$b = functionCall;
397
- var isObject$6 = isObject$8;
402
+ var call$c = functionCall;
403
+ var isObject$7 = isObject$9;
398
404
  var isSymbol$1 = isSymbol$2;
399
405
  var getMethod$2 = getMethod$3;
400
406
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
401
- var wellKnownSymbol$d = wellKnownSymbol$e;
407
+ var wellKnownSymbol$f = wellKnownSymbol$g;
402
408
 
403
- var $TypeError$9 = TypeError;
404
- var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
409
+ var $TypeError$b = TypeError;
410
+ var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive');
405
411
 
406
412
  // `ToPrimitive` abstract operation
407
413
  // https://tc39.es/ecma262/#sec-toprimitive
408
414
  var toPrimitive$1 = function (input, pref) {
409
- if (!isObject$6(input) || isSymbol$1(input)) return input;
415
+ if (!isObject$7(input) || isSymbol$1(input)) return input;
410
416
  var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
411
417
  var result;
412
418
  if (exoticToPrim) {
413
419
  if (pref === undefined) pref = 'default';
414
- result = call$b(exoticToPrim, input, pref);
415
- if (!isObject$6(result) || isSymbol$1(result)) return result;
416
- throw $TypeError$9("Can't convert object to primitive value");
420
+ result = call$c(exoticToPrim, input, pref);
421
+ if (!isObject$7(result) || isSymbol$1(result)) return result;
422
+ throw $TypeError$b("Can't convert object to primitive value");
417
423
  }
418
424
  if (pref === undefined) pref = 'number';
419
425
  return ordinaryToPrimitive(input, pref);
@@ -424,28 +430,28 @@ var isSymbol = isSymbol$2;
424
430
 
425
431
  // `ToPropertyKey` abstract operation
426
432
  // https://tc39.es/ecma262/#sec-topropertykey
427
- var toPropertyKey$2 = function (argument) {
433
+ var toPropertyKey$3 = function (argument) {
428
434
  var key = toPrimitive(argument, 'string');
429
435
  return isSymbol(key) ? key : key + '';
430
436
  };
431
437
 
432
- var global$a = global$g;
433
- var isObject$5 = isObject$8;
438
+ var global$b = global$i;
439
+ var isObject$6 = isObject$9;
434
440
 
435
- var document$3 = global$a.document;
441
+ var document$3 = global$b.document;
436
442
  // typeof document.createElement is 'object' in old IE
437
- var EXISTS$1 = isObject$5(document$3) && isObject$5(document$3.createElement);
443
+ var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
438
444
 
439
445
  var documentCreateElement$2 = function (it) {
440
446
  return EXISTS$1 ? document$3.createElement(it) : {};
441
447
  };
442
448
 
443
449
  var DESCRIPTORS$a = descriptors;
444
- var fails$8 = fails$d;
450
+ var fails$d = fails$i;
445
451
  var createElement$1 = documentCreateElement$2;
446
452
 
447
453
  // Thanks to IE8 for its funny defineProperty
448
- var ie8DomDefine = !DESCRIPTORS$a && !fails$8(function () {
454
+ var ie8DomDefine = !DESCRIPTORS$a && !fails$d(function () {
449
455
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
450
456
  return Object.defineProperty(createElement$1('div'), 'a', {
451
457
  get: function () { return 7; }
@@ -453,12 +459,12 @@ var ie8DomDefine = !DESCRIPTORS$a && !fails$8(function () {
453
459
  });
454
460
 
455
461
  var DESCRIPTORS$9 = descriptors;
456
- var call$a = functionCall;
462
+ var call$b = functionCall;
457
463
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
458
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
464
+ var createPropertyDescriptor$3 = createPropertyDescriptor$4;
459
465
  var toIndexedObject$4 = toIndexedObject$5;
460
- var toPropertyKey$1 = toPropertyKey$2;
461
- var hasOwn$8 = hasOwnProperty_1;
466
+ var toPropertyKey$2 = toPropertyKey$3;
467
+ var hasOwn$9 = hasOwnProperty_1;
462
468
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
463
469
 
464
470
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -468,21 +474,21 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
468
474
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
469
475
  objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
470
476
  O = toIndexedObject$4(O);
471
- P = toPropertyKey$1(P);
477
+ P = toPropertyKey$2(P);
472
478
  if (IE8_DOM_DEFINE$1) try {
473
479
  return $getOwnPropertyDescriptor$1(O, P);
474
480
  } catch (error) { /* empty */ }
475
- if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$a(propertyIsEnumerableModule$1.f, O, P), O[P]);
481
+ if (hasOwn$9(O, P)) return createPropertyDescriptor$3(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
476
482
  };
477
483
 
478
484
  var objectDefineProperty = {};
479
485
 
480
486
  var DESCRIPTORS$8 = descriptors;
481
- var fails$7 = fails$d;
487
+ var fails$c = fails$i;
482
488
 
483
489
  // V8 ~ Chrome 36-
484
490
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
485
- var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$7(function () {
491
+ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$c(function () {
486
492
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
487
493
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
488
494
  value: 42,
@@ -490,24 +496,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$7(function () {
490
496
  }).prototype != 42;
491
497
  });
492
498
 
493
- var isObject$4 = isObject$8;
499
+ var isObject$5 = isObject$9;
494
500
 
495
- var $String$2 = String;
496
- var $TypeError$8 = TypeError;
501
+ var $String$3 = String;
502
+ var $TypeError$a = TypeError;
497
503
 
498
504
  // `Assert: Type(argument) is Object`
499
- var anObject$a = function (argument) {
500
- if (isObject$4(argument)) return argument;
501
- throw $TypeError$8($String$2(argument) + ' is not an object');
505
+ var anObject$c = function (argument) {
506
+ if (isObject$5(argument)) return argument;
507
+ throw $TypeError$a($String$3(argument) + ' is not an object');
502
508
  };
503
509
 
504
510
  var DESCRIPTORS$7 = descriptors;
505
511
  var IE8_DOM_DEFINE = ie8DomDefine;
506
512
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
507
- var anObject$9 = anObject$a;
508
- var toPropertyKey = toPropertyKey$2;
513
+ var anObject$b = anObject$c;
514
+ var toPropertyKey$1 = toPropertyKey$3;
509
515
 
510
- var $TypeError$7 = TypeError;
516
+ var $TypeError$9 = TypeError;
511
517
  // eslint-disable-next-line es/no-object-defineproperty -- safe
512
518
  var $defineProperty = Object.defineProperty;
513
519
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -519,9 +525,9 @@ var WRITABLE = 'writable';
519
525
  // `Object.defineProperty` method
520
526
  // https://tc39.es/ecma262/#sec-object.defineproperty
521
527
  objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
522
- anObject$9(O);
523
- P = toPropertyKey(P);
524
- anObject$9(Attributes);
528
+ anObject$b(O);
529
+ P = toPropertyKey$1(P);
530
+ anObject$b(Attributes);
525
531
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
526
532
  var current = $getOwnPropertyDescriptor(O, P);
527
533
  if (current && current[WRITABLE]) {
@@ -534,23 +540,23 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
534
540
  }
535
541
  } return $defineProperty(O, P, Attributes);
536
542
  } : $defineProperty : function defineProperty(O, P, Attributes) {
537
- anObject$9(O);
538
- P = toPropertyKey(P);
539
- anObject$9(Attributes);
543
+ anObject$b(O);
544
+ P = toPropertyKey$1(P);
545
+ anObject$b(Attributes);
540
546
  if (IE8_DOM_DEFINE) try {
541
547
  return $defineProperty(O, P, Attributes);
542
548
  } catch (error) { /* empty */ }
543
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$7('Accessors not supported');
549
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError$9('Accessors not supported');
544
550
  if ('value' in Attributes) O[P] = Attributes.value;
545
551
  return O;
546
552
  };
547
553
 
548
554
  var DESCRIPTORS$6 = descriptors;
549
- var definePropertyModule$3 = objectDefineProperty;
550
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
555
+ var definePropertyModule$4 = objectDefineProperty;
556
+ var createPropertyDescriptor$2 = createPropertyDescriptor$4;
551
557
 
552
558
  var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value) {
553
- return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
559
+ return definePropertyModule$4.f(object, key, createPropertyDescriptor$2(1, value));
554
560
  } : function (object, key, value) {
555
561
  object[key] = value;
556
562
  return object;
@@ -559,13 +565,13 @@ var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value
559
565
  var makeBuiltIn$3 = {exports: {}};
560
566
 
561
567
  var DESCRIPTORS$5 = descriptors;
562
- var hasOwn$7 = hasOwnProperty_1;
568
+ var hasOwn$8 = hasOwnProperty_1;
563
569
 
564
570
  var FunctionPrototype$1 = Function.prototype;
565
571
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
566
572
  var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
567
573
 
568
- var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
574
+ var EXISTS = hasOwn$8(FunctionPrototype$1, 'name');
569
575
  // additional protection from minified / mangled / dropped function names
570
576
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
571
577
  var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
@@ -576,11 +582,11 @@ var functionName = {
576
582
  CONFIGURABLE: CONFIGURABLE
577
583
  };
578
584
 
579
- var uncurryThis$9 = functionUncurryThis;
585
+ var uncurryThis$d = functionUncurryThis;
580
586
  var isCallable$e = isCallable$k;
581
587
  var store$1 = sharedStore;
582
588
 
583
- var functionToString = uncurryThis$9(Function.toString);
589
+ var functionToString = uncurryThis$d(Function.toString);
584
590
 
585
591
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
586
592
  if (!isCallable$e(store$1.inspectSource)) {
@@ -591,10 +597,10 @@ if (!isCallable$e(store$1.inspectSource)) {
591
597
 
592
598
  var inspectSource$3 = store$1.inspectSource;
593
599
 
594
- var global$9 = global$g;
600
+ var global$a = global$i;
595
601
  var isCallable$d = isCallable$k;
596
602
 
597
- var WeakMap$1 = global$9.WeakMap;
603
+ var WeakMap$1 = global$a.WeakMap;
598
604
 
599
605
  var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
600
606
 
@@ -610,17 +616,17 @@ var sharedKey$3 = function (key) {
610
616
  var hiddenKeys$4 = {};
611
617
 
612
618
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
613
- var global$8 = global$g;
614
- var isObject$3 = isObject$8;
619
+ var global$9 = global$i;
620
+ var isObject$4 = isObject$9;
615
621
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
616
- var hasOwn$6 = hasOwnProperty_1;
622
+ var hasOwn$7 = hasOwnProperty_1;
617
623
  var shared = sharedStore;
618
624
  var sharedKey$2 = sharedKey$3;
619
625
  var hiddenKeys$3 = hiddenKeys$4;
620
626
 
621
627
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
622
- var TypeError$2 = global$8.TypeError;
623
- var WeakMap = global$8.WeakMap;
628
+ var TypeError$2 = global$9.TypeError;
629
+ var WeakMap = global$9.WeakMap;
624
630
  var set$1, get, has;
625
631
 
626
632
  var enforce = function (it) {
@@ -630,7 +636,7 @@ var enforce = function (it) {
630
636
  var getterFor = function (TYPE) {
631
637
  return function (it) {
632
638
  var state;
633
- if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
639
+ if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
634
640
  throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
635
641
  } return state;
636
642
  };
@@ -659,16 +665,16 @@ if (NATIVE_WEAK_MAP || shared.state) {
659
665
  var STATE = sharedKey$2('state');
660
666
  hiddenKeys$3[STATE] = true;
661
667
  set$1 = function (it, metadata) {
662
- if (hasOwn$6(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
668
+ if (hasOwn$7(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
663
669
  metadata.facade = it;
664
670
  createNonEnumerableProperty$3(it, STATE, metadata);
665
671
  return metadata;
666
672
  };
667
673
  get = function (it) {
668
- return hasOwn$6(it, STATE) ? it[STATE] : {};
674
+ return hasOwn$7(it, STATE) ? it[STATE] : {};
669
675
  };
670
676
  has = function (it) {
671
- return hasOwn$6(it, STATE);
677
+ return hasOwn$7(it, STATE);
672
678
  };
673
679
  }
674
680
 
@@ -680,10 +686,10 @@ var internalState = {
680
686
  getterFor: getterFor
681
687
  };
682
688
 
683
- var uncurryThis$8 = functionUncurryThis;
684
- var fails$6 = fails$d;
689
+ var uncurryThis$c = functionUncurryThis;
690
+ var fails$b = fails$i;
685
691
  var isCallable$c = isCallable$k;
686
- var hasOwn$5 = hasOwnProperty_1;
692
+ var hasOwn$6 = hasOwnProperty_1;
687
693
  var DESCRIPTORS$4 = descriptors;
688
694
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
689
695
  var inspectSource$2 = inspectSource$3;
@@ -691,40 +697,40 @@ var InternalStateModule$2 = internalState;
691
697
 
692
698
  var enforceInternalState = InternalStateModule$2.enforce;
693
699
  var getInternalState$1 = InternalStateModule$2.get;
694
- var $String$1 = String;
700
+ var $String$2 = String;
695
701
  // eslint-disable-next-line es/no-object-defineproperty -- safe
696
702
  var defineProperty$5 = Object.defineProperty;
697
- var stringSlice = uncurryThis$8(''.slice);
698
- var replace = uncurryThis$8(''.replace);
699
- var join = uncurryThis$8([].join);
703
+ var stringSlice = uncurryThis$c(''.slice);
704
+ var replace$1 = uncurryThis$c(''.replace);
705
+ var join = uncurryThis$c([].join);
700
706
 
701
- var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$6(function () {
707
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$b(function () {
702
708
  return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
703
709
  });
704
710
 
705
711
  var TEMPLATE = String(String).split('String');
706
712
 
707
713
  var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
708
- if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
709
- name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
714
+ if (stringSlice($String$2(name), 0, 7) === 'Symbol(') {
715
+ name = '[' + replace$1($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
710
716
  }
711
717
  if (options && options.getter) name = 'get ' + name;
712
718
  if (options && options.setter) name = 'set ' + name;
713
- if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
719
+ if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
714
720
  if (DESCRIPTORS$4) defineProperty$5(value, 'name', { value: name, configurable: true });
715
721
  else value.name = name;
716
722
  }
717
- if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
723
+ if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
718
724
  defineProperty$5(value, 'length', { value: options.arity });
719
725
  }
720
726
  try {
721
- if (options && hasOwn$5(options, 'constructor') && options.constructor) {
727
+ if (options && hasOwn$6(options, 'constructor') && options.constructor) {
722
728
  if (DESCRIPTORS$4) defineProperty$5(value, 'prototype', { writable: false });
723
729
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
724
730
  } else if (value.prototype) value.prototype = undefined;
725
731
  } catch (error) { /* empty */ }
726
732
  var state = enforceInternalState(value);
727
- if (!hasOwn$5(state, 'source')) {
733
+ if (!hasOwn$6(state, 'source')) {
728
734
  state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
729
735
  } return value;
730
736
  };
@@ -736,11 +742,11 @@ Function.prototype.toString = makeBuiltIn$2(function toString() {
736
742
  }, 'toString');
737
743
 
738
744
  var isCallable$b = isCallable$k;
739
- var definePropertyModule$2 = objectDefineProperty;
745
+ var definePropertyModule$3 = objectDefineProperty;
740
746
  var makeBuiltIn$1 = makeBuiltIn$3.exports;
741
747
  var defineGlobalProperty$1 = defineGlobalProperty$3;
742
748
 
743
- var defineBuiltIn$5 = function (O, key, value, options) {
749
+ var defineBuiltIn$6 = function (O, key, value, options) {
744
750
  if (!options) options = {};
745
751
  var simple = options.enumerable;
746
752
  var name = options.name !== undefined ? options.name : key;
@@ -754,7 +760,7 @@ var defineBuiltIn$5 = function (O, key, value, options) {
754
760
  else if (O[key]) simple = true;
755
761
  } catch (error) { /* empty */ }
756
762
  if (simple) O[key] = value;
757
- else definePropertyModule$2.f(O, key, {
763
+ else definePropertyModule$3.f(O, key, {
758
764
  value: value,
759
765
  enumerable: false,
760
766
  configurable: !options.nonConfigurable,
@@ -766,14 +772,14 @@ var defineBuiltIn$5 = function (O, key, value, options) {
766
772
  var objectGetOwnPropertyNames = {};
767
773
 
768
774
  var ceil = Math.ceil;
769
- var floor = Math.floor;
775
+ var floor$1 = Math.floor;
770
776
 
771
777
  // `Math.trunc` method
772
778
  // https://tc39.es/ecma262/#sec-math.trunc
773
779
  // eslint-disable-next-line es/no-math-trunc -- safe
774
780
  var mathTrunc = Math.trunc || function trunc(x) {
775
781
  var n = +x;
776
- return (n > 0 ? floor : ceil)(n);
782
+ return (n > 0 ? floor$1 : ceil)(n);
777
783
  };
778
784
 
779
785
  var trunc = mathTrunc;
@@ -788,15 +794,15 @@ var toIntegerOrInfinity$2 = function (argument) {
788
794
 
789
795
  var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
790
796
 
791
- var max = Math.max;
797
+ var max$1 = Math.max;
792
798
  var min$1 = Math.min;
793
799
 
794
800
  // Helper for a popular repeating case of the spec:
795
801
  // Let integer be ? ToInteger(index).
796
802
  // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
797
- var toAbsoluteIndex$1 = function (index, length) {
803
+ var toAbsoluteIndex$2 = function (index, length) {
798
804
  var integer = toIntegerOrInfinity$1(index);
799
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
805
+ return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
800
806
  };
801
807
 
802
808
  var toIntegerOrInfinity = toIntegerOrInfinity$2;
@@ -813,20 +819,20 @@ var toLength = toLength$1;
813
819
 
814
820
  // `LengthOfArrayLike` abstract operation
815
821
  // https://tc39.es/ecma262/#sec-lengthofarraylike
816
- var lengthOfArrayLike$2 = function (obj) {
822
+ var lengthOfArrayLike$4 = function (obj) {
817
823
  return toLength(obj.length);
818
824
  };
819
825
 
820
826
  var toIndexedObject$3 = toIndexedObject$5;
821
- var toAbsoluteIndex = toAbsoluteIndex$1;
822
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
827
+ var toAbsoluteIndex$1 = toAbsoluteIndex$2;
828
+ var lengthOfArrayLike$3 = lengthOfArrayLike$4;
823
829
 
824
830
  // `Array.prototype.{ indexOf, includes }` methods implementation
825
- var createMethod = function (IS_INCLUDES) {
831
+ var createMethod$1 = function (IS_INCLUDES) {
826
832
  return function ($this, el, fromIndex) {
827
833
  var O = toIndexedObject$3($this);
828
- var length = lengthOfArrayLike$1(O);
829
- var index = toAbsoluteIndex(fromIndex, length);
834
+ var length = lengthOfArrayLike$3(O);
835
+ var index = toAbsoluteIndex$1(fromIndex, length);
830
836
  var value;
831
837
  // Array#includes uses SameValueZero equality algorithm
832
838
  // eslint-disable-next-line no-self-compare -- NaN check
@@ -844,29 +850,29 @@ var createMethod = function (IS_INCLUDES) {
844
850
  var arrayIncludes = {
845
851
  // `Array.prototype.includes` method
846
852
  // https://tc39.es/ecma262/#sec-array.prototype.includes
847
- includes: createMethod(true),
853
+ includes: createMethod$1(true),
848
854
  // `Array.prototype.indexOf` method
849
855
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
850
- indexOf: createMethod(false)
856
+ indexOf: createMethod$1(false)
851
857
  };
852
858
 
853
- var uncurryThis$7 = functionUncurryThis;
854
- var hasOwn$4 = hasOwnProperty_1;
859
+ var uncurryThis$b = functionUncurryThis;
860
+ var hasOwn$5 = hasOwnProperty_1;
855
861
  var toIndexedObject$2 = toIndexedObject$5;
856
862
  var indexOf = arrayIncludes.indexOf;
857
863
  var hiddenKeys$2 = hiddenKeys$4;
858
864
 
859
- var push = uncurryThis$7([].push);
865
+ var push$1 = uncurryThis$b([].push);
860
866
 
861
867
  var objectKeysInternal = function (object, names) {
862
868
  var O = toIndexedObject$2(object);
863
869
  var i = 0;
864
870
  var result = [];
865
871
  var key;
866
- for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push(result, key);
872
+ for (key in O) !hasOwn$5(hiddenKeys$2, key) && hasOwn$5(O, key) && push$1(result, key);
867
873
  // Don't enum bug & hidden keys
868
- while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
869
- ~indexOf(result, key) || push(result, key);
874
+ while (names.length > i) if (hasOwn$5(O, key = names[i++])) {
875
+ ~indexOf(result, key) || push$1(result, key);
870
876
  }
871
877
  return result;
872
878
  };
@@ -900,38 +906,38 @@ var objectGetOwnPropertySymbols = {};
900
906
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
901
907
 
902
908
  var getBuiltIn$5 = getBuiltIn$7;
903
- var uncurryThis$6 = functionUncurryThis;
909
+ var uncurryThis$a = functionUncurryThis;
904
910
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
905
911
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
906
- var anObject$8 = anObject$a;
912
+ var anObject$a = anObject$c;
907
913
 
908
- var concat$1 = uncurryThis$6([].concat);
914
+ var concat$1 = uncurryThis$a([].concat);
909
915
 
910
916
  // all object keys, includes non-enumerable and symbols
911
917
  var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
912
- var keys = getOwnPropertyNamesModule.f(anObject$8(it));
918
+ var keys = getOwnPropertyNamesModule.f(anObject$a(it));
913
919
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
914
920
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
915
921
  };
916
922
 
917
- var hasOwn$3 = hasOwnProperty_1;
923
+ var hasOwn$4 = hasOwnProperty_1;
918
924
  var ownKeys = ownKeys$1;
919
925
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
920
- var definePropertyModule$1 = objectDefineProperty;
926
+ var definePropertyModule$2 = objectDefineProperty;
921
927
 
922
928
  var copyConstructorProperties$1 = function (target, source, exceptions) {
923
929
  var keys = ownKeys(source);
924
- var defineProperty = definePropertyModule$1.f;
930
+ var defineProperty = definePropertyModule$2.f;
925
931
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
926
932
  for (var i = 0; i < keys.length; i++) {
927
933
  var key = keys[i];
928
- if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
934
+ if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
929
935
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
930
936
  }
931
937
  }
932
938
  };
933
939
 
934
- var fails$5 = fails$d;
940
+ var fails$a = fails$i;
935
941
  var isCallable$a = isCallable$k;
936
942
 
937
943
  var replacement = /#|\.prototype\./;
@@ -940,7 +946,7 @@ var isForced$2 = function (feature, detection) {
940
946
  var value = data[normalize(feature)];
941
947
  return value == POLYFILL ? true
942
948
  : value == NATIVE ? false
943
- : isCallable$a(detection) ? fails$5(detection)
949
+ : isCallable$a(detection) ? fails$a(detection)
944
950
  : !!detection;
945
951
  };
946
952
 
@@ -954,10 +960,10 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
954
960
 
955
961
  var isForced_1 = isForced$2;
956
962
 
957
- var global$7 = global$g;
963
+ var global$8 = global$i;
958
964
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
959
965
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
960
- var defineBuiltIn$4 = defineBuiltIn$5;
966
+ var defineBuiltIn$5 = defineBuiltIn$6;
961
967
  var defineGlobalProperty = defineGlobalProperty$3;
962
968
  var copyConstructorProperties = copyConstructorProperties$1;
963
969
  var isForced$1 = isForced_1;
@@ -983,11 +989,11 @@ var _export = function (options, source) {
983
989
  var STATIC = options.stat;
984
990
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
985
991
  if (GLOBAL) {
986
- target = global$7;
992
+ target = global$8;
987
993
  } else if (STATIC) {
988
- target = global$7[TARGET] || defineGlobalProperty(TARGET, {});
994
+ target = global$8[TARGET] || defineGlobalProperty(TARGET, {});
989
995
  } else {
990
- target = (global$7[TARGET] || {}).prototype;
996
+ target = (global$8[TARGET] || {}).prototype;
991
997
  }
992
998
  if (target) for (key in source) {
993
999
  sourceProperty = source[key];
@@ -1005,7 +1011,7 @@ var _export = function (options, source) {
1005
1011
  if (options.sham || (targetProperty && targetProperty.sham)) {
1006
1012
  createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1007
1013
  }
1008
- defineBuiltIn$4(target, key, sourceProperty, options);
1014
+ defineBuiltIn$5(target, key, sourceProperty, options);
1009
1015
  }
1010
1016
  };
1011
1017
 
@@ -1020,24 +1026,24 @@ var objectKeys$2 = Object.keys || function keys(O) {
1020
1026
  };
1021
1027
 
1022
1028
  var DESCRIPTORS$3 = descriptors;
1023
- var uncurryThis$5 = functionUncurryThis;
1024
- var call$9 = functionCall;
1025
- var fails$4 = fails$d;
1029
+ var uncurryThis$9 = functionUncurryThis;
1030
+ var call$a = functionCall;
1031
+ var fails$9 = fails$i;
1026
1032
  var objectKeys$1 = objectKeys$2;
1027
1033
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1028
1034
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1029
- var toObject$1 = toObject$3;
1035
+ var toObject$2 = toObject$4;
1030
1036
  var IndexedObject = indexedObject;
1031
1037
 
1032
1038
  // eslint-disable-next-line es/no-object-assign -- safe
1033
1039
  var $assign = Object.assign;
1034
1040
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1035
1041
  var defineProperty$4 = Object.defineProperty;
1036
- var concat = uncurryThis$5([].concat);
1042
+ var concat = uncurryThis$9([].concat);
1037
1043
 
1038
1044
  // `Object.assign` method
1039
1045
  // https://tc39.es/ecma262/#sec-object.assign
1040
- var objectAssign = !$assign || fails$4(function () {
1046
+ var objectAssign = !$assign || fails$9(function () {
1041
1047
  // should have correct order of operations (Edge bug)
1042
1048
  if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
1043
1049
  enumerable: true,
@@ -1058,7 +1064,7 @@ var objectAssign = !$assign || fails$4(function () {
1058
1064
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1059
1065
  return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
1060
1066
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1061
- var T = toObject$1(target);
1067
+ var T = toObject$2(target);
1062
1068
  var argumentsLength = arguments.length;
1063
1069
  var index = 1;
1064
1070
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
@@ -1071,39 +1077,72 @@ var objectAssign = !$assign || fails$4(function () {
1071
1077
  var key;
1072
1078
  while (length > j) {
1073
1079
  key = keys[j++];
1074
- if (!DESCRIPTORS$3 || call$9(propertyIsEnumerable, S, key)) T[key] = S[key];
1080
+ if (!DESCRIPTORS$3 || call$a(propertyIsEnumerable, S, key)) T[key] = S[key];
1075
1081
  }
1076
1082
  } return T;
1077
1083
  } : $assign;
1078
1084
 
1079
- var $$7 = _export;
1085
+ var $$b = _export;
1080
1086
  var assign = objectAssign;
1081
1087
 
1082
1088
  // `Object.assign` method
1083
1089
  // https://tc39.es/ecma262/#sec-object.assign
1084
1090
  // eslint-disable-next-line es/no-object-assign -- required for testing
1085
- $$7({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1091
+ $$b({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1086
1092
  assign: assign
1087
1093
  });
1088
1094
 
1089
- const CustomButton = ({
1090
- buttonText
1091
- }) => {
1092
- const contentStyles = css({
1093
- height: '300px',
1094
- width: '300px',
1095
- backgroundColor: 'lightgrey'
1096
- });
1097
- const buttonStyles = css({
1098
- backgroundColor: 'grey'
1099
- });
1100
- return jsx("div", Object.assign({
1101
- css: contentStyles
1102
- }, {
1103
- children: jsx("button", Object.assign({
1104
- css: buttonStyles
1095
+ /******************************************************************************
1096
+ Copyright (c) Microsoft Corporation.
1097
+
1098
+ Permission to use, copy, modify, and/or distribute this software for any
1099
+ purpose with or without fee is hereby granted.
1100
+
1101
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1102
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1103
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1104
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1105
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1106
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1107
+ PERFORMANCE OF THIS SOFTWARE.
1108
+ ***************************************************************************** */
1109
+
1110
+ function __rest(s, e) {
1111
+ var t = {};
1112
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1113
+ t[p] = s[p];
1114
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
1115
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1116
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1117
+ t[p[i]] = s[p[i]];
1118
+ }
1119
+ return t;
1120
+ }
1121
+
1122
+ function __awaiter(thisArg, _arguments, P, generator) {
1123
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1124
+ return new (P || (P = Promise))(function (resolve, reject) {
1125
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
1126
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
1127
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
1128
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
1129
+ });
1130
+ }
1131
+
1132
+ const Badge = _a => {
1133
+ var {
1134
+ textColor,
1135
+ children
1136
+ } = _a,
1137
+ restProps = __rest(_a, ["textColor", "children"]);
1138
+ return jsx(EuiBadge, Object.assign({}, restProps, {
1139
+ children: jsx(EuiText, Object.assign({
1140
+ color: textColor,
1141
+ size: "xs"
1105
1142
  }, {
1106
- children: buttonText
1143
+ children: jsx("b", {
1144
+ children: children
1145
+ })
1107
1146
  }))
1108
1147
  }));
1109
1148
  };
@@ -1112,8 +1151,8 @@ var objectDefineProperties = {};
1112
1151
 
1113
1152
  var DESCRIPTORS$2 = descriptors;
1114
1153
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1115
- var definePropertyModule = objectDefineProperty;
1116
- var anObject$7 = anObject$a;
1154
+ var definePropertyModule$1 = objectDefineProperty;
1155
+ var anObject$9 = anObject$c;
1117
1156
  var toIndexedObject$1 = toIndexedObject$5;
1118
1157
  var objectKeys = objectKeys$2;
1119
1158
 
@@ -1121,13 +1160,13 @@ var objectKeys = objectKeys$2;
1121
1160
  // https://tc39.es/ecma262/#sec-object.defineproperties
1122
1161
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1123
1162
  objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1124
- anObject$7(O);
1163
+ anObject$9(O);
1125
1164
  var props = toIndexedObject$1(Properties);
1126
1165
  var keys = objectKeys(Properties);
1127
1166
  var length = keys.length;
1128
1167
  var index = 0;
1129
1168
  var key;
1130
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1169
+ while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
1131
1170
  return O;
1132
1171
  };
1133
1172
 
@@ -1137,7 +1176,7 @@ var html$2 = getBuiltIn$4('document', 'documentElement');
1137
1176
 
1138
1177
  /* global ActiveXObject -- old IE, WSH */
1139
1178
 
1140
- var anObject$6 = anObject$a;
1179
+ var anObject$8 = anObject$c;
1141
1180
  var definePropertiesModule = objectDefineProperties;
1142
1181
  var enumBugKeys = enumBugKeys$3;
1143
1182
  var hiddenKeys = hiddenKeys$4;
@@ -1211,7 +1250,7 @@ hiddenKeys[IE_PROTO$1] = true;
1211
1250
  var objectCreate = Object.create || function create(O, Properties) {
1212
1251
  var result;
1213
1252
  if (O !== null) {
1214
- EmptyConstructor[PROTOTYPE] = anObject$6(O);
1253
+ EmptyConstructor[PROTOTYPE] = anObject$8(O);
1215
1254
  result = new EmptyConstructor();
1216
1255
  EmptyConstructor[PROTOTYPE] = null;
1217
1256
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -1220,11 +1259,11 @@ var objectCreate = Object.create || function create(O, Properties) {
1220
1259
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1221
1260
  };
1222
1261
 
1223
- var wellKnownSymbol$c = wellKnownSymbol$e;
1262
+ var wellKnownSymbol$e = wellKnownSymbol$g;
1224
1263
  var create$1 = objectCreate;
1225
1264
  var defineProperty$3 = objectDefineProperty.f;
1226
1265
 
1227
- var UNSCOPABLES = wellKnownSymbol$c('unscopables');
1266
+ var UNSCOPABLES = wellKnownSymbol$e('unscopables');
1228
1267
  var ArrayPrototype$1 = Array.prototype;
1229
1268
 
1230
1269
  // Array.prototype[@@unscopables]
@@ -1237,24 +1276,24 @@ if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
1237
1276
  }
1238
1277
 
1239
1278
  // add a key to Array.prototype[@@unscopables]
1240
- var addToUnscopables$1 = function (key) {
1279
+ var addToUnscopables$2 = function (key) {
1241
1280
  ArrayPrototype$1[UNSCOPABLES][key] = true;
1242
1281
  };
1243
1282
 
1244
1283
  var iterators = {};
1245
1284
 
1246
- var fails$3 = fails$d;
1285
+ var fails$8 = fails$i;
1247
1286
 
1248
- var correctPrototypeGetter = !fails$3(function () {
1287
+ var correctPrototypeGetter = !fails$8(function () {
1249
1288
  function F() { /* empty */ }
1250
1289
  F.prototype.constructor = null;
1251
1290
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1252
1291
  return Object.getPrototypeOf(new F()) !== F.prototype;
1253
1292
  });
1254
1293
 
1255
- var hasOwn$2 = hasOwnProperty_1;
1294
+ var hasOwn$3 = hasOwnProperty_1;
1256
1295
  var isCallable$9 = isCallable$k;
1257
- var toObject = toObject$3;
1296
+ var toObject$1 = toObject$4;
1258
1297
  var sharedKey = sharedKey$3;
1259
1298
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1260
1299
 
@@ -1266,22 +1305,22 @@ var ObjectPrototype = $Object$1.prototype;
1266
1305
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1267
1306
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1268
1307
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1269
- var object = toObject(O);
1270
- if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1308
+ var object = toObject$1(O);
1309
+ if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
1271
1310
  var constructor = object.constructor;
1272
1311
  if (isCallable$9(constructor) && object instanceof constructor) {
1273
1312
  return constructor.prototype;
1274
1313
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1275
1314
  };
1276
1315
 
1277
- var fails$2 = fails$d;
1316
+ var fails$7 = fails$i;
1278
1317
  var isCallable$8 = isCallable$k;
1279
- var isObject$2 = isObject$8;
1318
+ var isObject$3 = isObject$9;
1280
1319
  var getPrototypeOf$1 = objectGetPrototypeOf;
1281
- var defineBuiltIn$3 = defineBuiltIn$5;
1282
- var wellKnownSymbol$b = wellKnownSymbol$e;
1320
+ var defineBuiltIn$4 = defineBuiltIn$6;
1321
+ var wellKnownSymbol$d = wellKnownSymbol$g;
1283
1322
 
1284
- var ITERATOR$5 = wellKnownSymbol$b('iterator');
1323
+ var ITERATOR$6 = wellKnownSymbol$d('iterator');
1285
1324
  var BUGGY_SAFARI_ITERATORS$1 = false;
1286
1325
 
1287
1326
  // `%IteratorPrototype%` object
@@ -1299,18 +1338,18 @@ if ([].keys) {
1299
1338
  }
1300
1339
  }
1301
1340
 
1302
- var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$2(function () {
1341
+ var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$7(function () {
1303
1342
  var test = {};
1304
1343
  // FF44- legacy iterators case
1305
- return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
1344
+ return IteratorPrototype$2[ITERATOR$6].call(test) !== test;
1306
1345
  });
1307
1346
 
1308
1347
  if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1309
1348
 
1310
1349
  // `%IteratorPrototype%[@@iterator]()` method
1311
1350
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1312
- if (!isCallable$8(IteratorPrototype$2[ITERATOR$5])) {
1313
- defineBuiltIn$3(IteratorPrototype$2, ITERATOR$5, function () {
1351
+ if (!isCallable$8(IteratorPrototype$2[ITERATOR$6])) {
1352
+ defineBuiltIn$4(IteratorPrototype$2, ITERATOR$6, function () {
1314
1353
  return this;
1315
1354
  });
1316
1355
  }
@@ -1321,21 +1360,21 @@ var iteratorsCore = {
1321
1360
  };
1322
1361
 
1323
1362
  var defineProperty$2 = objectDefineProperty.f;
1324
- var hasOwn$1 = hasOwnProperty_1;
1325
- var wellKnownSymbol$a = wellKnownSymbol$e;
1363
+ var hasOwn$2 = hasOwnProperty_1;
1364
+ var wellKnownSymbol$c = wellKnownSymbol$g;
1326
1365
 
1327
- var TO_STRING_TAG$3 = wellKnownSymbol$a('toStringTag');
1366
+ var TO_STRING_TAG$3 = wellKnownSymbol$c('toStringTag');
1328
1367
 
1329
1368
  var setToStringTag$3 = function (target, TAG, STATIC) {
1330
1369
  if (target && !STATIC) target = target.prototype;
1331
- if (target && !hasOwn$1(target, TO_STRING_TAG$3)) {
1370
+ if (target && !hasOwn$2(target, TO_STRING_TAG$3)) {
1332
1371
  defineProperty$2(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1333
1372
  }
1334
1373
  };
1335
1374
 
1336
1375
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1337
1376
  var create = objectCreate;
1338
- var createPropertyDescriptor = createPropertyDescriptor$3;
1377
+ var createPropertyDescriptor$1 = createPropertyDescriptor$4;
1339
1378
  var setToStringTag$2 = setToStringTag$3;
1340
1379
  var Iterators$4 = iterators;
1341
1380
 
@@ -1343,36 +1382,36 @@ var returnThis$1 = function () { return this; };
1343
1382
 
1344
1383
  var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1345
1384
  var TO_STRING_TAG = NAME + ' Iterator';
1346
- IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1385
+ IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
1347
1386
  setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
1348
1387
  Iterators$4[TO_STRING_TAG] = returnThis$1;
1349
1388
  return IteratorConstructor;
1350
1389
  };
1351
1390
 
1352
- var uncurryThis$4 = functionUncurryThis;
1353
- var aCallable$6 = aCallable$8;
1391
+ var uncurryThis$8 = functionUncurryThis;
1392
+ var aCallable$7 = aCallable$9;
1354
1393
 
1355
1394
  var functionUncurryThisAccessor = function (object, key, method) {
1356
1395
  try {
1357
1396
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1358
- return uncurryThis$4(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
1397
+ return uncurryThis$8(aCallable$7(Object.getOwnPropertyDescriptor(object, key)[method]));
1359
1398
  } catch (error) { /* empty */ }
1360
1399
  };
1361
1400
 
1362
1401
  var isCallable$7 = isCallable$k;
1363
1402
 
1364
- var $String = String;
1365
- var $TypeError$6 = TypeError;
1403
+ var $String$1 = String;
1404
+ var $TypeError$8 = TypeError;
1366
1405
 
1367
1406
  var aPossiblePrototype$1 = function (argument) {
1368
1407
  if (typeof argument == 'object' || isCallable$7(argument)) return argument;
1369
- throw $TypeError$6("Can't set " + $String(argument) + ' as a prototype');
1408
+ throw $TypeError$8("Can't set " + $String$1(argument) + ' as a prototype');
1370
1409
  };
1371
1410
 
1372
1411
  /* eslint-disable no-proto -- safe */
1373
1412
 
1374
1413
  var uncurryThisAccessor = functionUncurryThisAccessor;
1375
- var anObject$5 = anObject$a;
1414
+ var anObject$7 = anObject$c;
1376
1415
  var aPossiblePrototype = aPossiblePrototype$1;
1377
1416
 
1378
1417
  // `Object.setPrototypeOf` method
@@ -1389,7 +1428,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1389
1428
  CORRECT_SETTER = test instanceof Array;
1390
1429
  } catch (error) { /* empty */ }
1391
1430
  return function setPrototypeOf(O, proto) {
1392
- anObject$5(O);
1431
+ anObject$7(O);
1393
1432
  aPossiblePrototype(proto);
1394
1433
  if (CORRECT_SETTER) setter(O, proto);
1395
1434
  else O.__proto__ = proto;
@@ -1397,8 +1436,8 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1397
1436
  };
1398
1437
  }() : undefined);
1399
1438
 
1400
- var $$6 = _export;
1401
- var call$8 = functionCall;
1439
+ var $$a = _export;
1440
+ var call$9 = functionCall;
1402
1441
  var FunctionName = functionName;
1403
1442
  var isCallable$6 = isCallable$k;
1404
1443
  var createIteratorConstructor = iteratorCreateConstructor;
@@ -1406,16 +1445,16 @@ var getPrototypeOf = objectGetPrototypeOf;
1406
1445
  var setPrototypeOf$1 = objectSetPrototypeOf;
1407
1446
  var setToStringTag$1 = setToStringTag$3;
1408
1447
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1409
- var defineBuiltIn$2 = defineBuiltIn$5;
1410
- var wellKnownSymbol$9 = wellKnownSymbol$e;
1448
+ var defineBuiltIn$3 = defineBuiltIn$6;
1449
+ var wellKnownSymbol$b = wellKnownSymbol$g;
1411
1450
  var Iterators$3 = iterators;
1412
1451
  var IteratorsCore = iteratorsCore;
1413
1452
 
1414
- var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1453
+ var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
1415
1454
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1416
1455
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
1417
1456
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1418
- var ITERATOR$4 = wellKnownSymbol$9('iterator');
1457
+ var ITERATOR$5 = wellKnownSymbol$b('iterator');
1419
1458
  var KEYS = 'keys';
1420
1459
  var VALUES = 'values';
1421
1460
  var ENTRIES = 'entries';
@@ -1438,7 +1477,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1438
1477
  var TO_STRING_TAG = NAME + ' Iterator';
1439
1478
  var INCORRECT_VALUES_NAME = false;
1440
1479
  var IterablePrototype = Iterable.prototype;
1441
- var nativeIterator = IterablePrototype[ITERATOR$4]
1480
+ var nativeIterator = IterablePrototype[ITERATOR$5]
1442
1481
  || IterablePrototype['@@iterator']
1443
1482
  || DEFAULT && IterablePrototype[DEFAULT];
1444
1483
  var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
@@ -1452,8 +1491,8 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1452
1491
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1453
1492
  if (setPrototypeOf$1) {
1454
1493
  setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
1455
- } else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$4])) {
1456
- defineBuiltIn$2(CurrentIteratorPrototype, ITERATOR$4, returnThis);
1494
+ } else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$5])) {
1495
+ defineBuiltIn$3(CurrentIteratorPrototype, ITERATOR$5, returnThis);
1457
1496
  }
1458
1497
  }
1459
1498
  // Set @@toStringTag to native iterators
@@ -1462,12 +1501,12 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1462
1501
  }
1463
1502
 
1464
1503
  // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1465
- if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1504
+ if (PROPER_FUNCTION_NAME$1 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1466
1505
  if (CONFIGURABLE_FUNCTION_NAME) {
1467
1506
  createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1468
1507
  } else {
1469
1508
  INCORRECT_VALUES_NAME = true;
1470
- defaultIterator = function values() { return call$8(nativeIterator, this); };
1509
+ defaultIterator = function values() { return call$9(nativeIterator, this); };
1471
1510
  }
1472
1511
  }
1473
1512
 
@@ -1480,14 +1519,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1480
1519
  };
1481
1520
  if (FORCED) for (KEY in methods) {
1482
1521
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1483
- defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
1522
+ defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
1484
1523
  }
1485
- } else $$6({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1524
+ } else $$a({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1486
1525
  }
1487
1526
 
1488
1527
  // define iterator
1489
- if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
1490
- defineBuiltIn$2(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
1528
+ if (IterablePrototype[ITERATOR$5] !== defaultIterator) {
1529
+ defineBuiltIn$3(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });
1491
1530
  }
1492
1531
  Iterators$3[NAME] = defaultIterator;
1493
1532
 
@@ -1501,7 +1540,7 @@ var createIterResultObject$1 = function (value, done) {
1501
1540
  };
1502
1541
 
1503
1542
  var toIndexedObject = toIndexedObject$5;
1504
- var addToUnscopables = addToUnscopables$1;
1543
+ var addToUnscopables$1 = addToUnscopables$2;
1505
1544
  var Iterators$2 = iterators;
1506
1545
  var InternalStateModule$1 = internalState;
1507
1546
  var defineProperty$1 = objectDefineProperty.f;
@@ -1552,9 +1591,9 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
1552
1591
  var values = Iterators$2.Arguments = Iterators$2.Array;
1553
1592
 
1554
1593
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1555
- addToUnscopables('keys');
1556
- addToUnscopables('values');
1557
- addToUnscopables('entries');
1594
+ addToUnscopables$1('keys');
1595
+ addToUnscopables$1('values');
1596
+ addToUnscopables$1('entries');
1558
1597
 
1559
1598
  // V8 ~ Chrome 45- bug
1560
1599
  if (DESCRIPTORS$1 && values.name !== 'values') try {
@@ -1605,24 +1644,24 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1605
1644
 
1606
1645
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1607
1646
 
1608
- var global$6 = global$g;
1647
+ var global$7 = global$i;
1609
1648
  var DOMIterables = domIterables;
1610
1649
  var DOMTokenListPrototype = domTokenListPrototype;
1611
1650
  var ArrayIteratorMethods = es_array_iterator;
1612
1651
  var createNonEnumerableProperty = createNonEnumerableProperty$4;
1613
- var wellKnownSymbol$8 = wellKnownSymbol$e;
1652
+ var wellKnownSymbol$a = wellKnownSymbol$g;
1614
1653
 
1615
- var ITERATOR$3 = wellKnownSymbol$8('iterator');
1616
- var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
1654
+ var ITERATOR$4 = wellKnownSymbol$a('iterator');
1655
+ var TO_STRING_TAG$2 = wellKnownSymbol$a('toStringTag');
1617
1656
  var ArrayValues = ArrayIteratorMethods.values;
1618
1657
 
1619
1658
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1620
1659
  if (CollectionPrototype) {
1621
1660
  // some Chrome versions have non-configurable methods on DOMTokenList
1622
- if (CollectionPrototype[ITERATOR$3] !== ArrayValues) try {
1623
- createNonEnumerableProperty(CollectionPrototype, ITERATOR$3, ArrayValues);
1661
+ if (CollectionPrototype[ITERATOR$4] !== ArrayValues) try {
1662
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR$4, ArrayValues);
1624
1663
  } catch (error) {
1625
- CollectionPrototype[ITERATOR$3] = ArrayValues;
1664
+ CollectionPrototype[ITERATOR$4] = ArrayValues;
1626
1665
  }
1627
1666
  if (!CollectionPrototype[TO_STRING_TAG$2]) {
1628
1667
  createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
@@ -1639,152 +1678,71 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1639
1678
  };
1640
1679
 
1641
1680
  for (var COLLECTION_NAME in DOMIterables) {
1642
- handlePrototype(global$6[COLLECTION_NAME] && global$6[COLLECTION_NAME].prototype, COLLECTION_NAME);
1681
+ handlePrototype(global$7[COLLECTION_NAME] && global$7[COLLECTION_NAME].prototype, COLLECTION_NAME);
1643
1682
  }
1644
1683
 
1645
1684
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1646
1685
 
1647
- const useOrchestratorTheme = () => {
1648
- const {
1649
- euiTheme
1650
- } = useEuiTheme();
1651
- const baseUnit = euiTheme.base;
1652
- const multiplyByBaseUnit = multiplier => baseUnit * multiplier;
1686
+ var Environment;
1687
+ (function (Environment) {
1688
+ Environment["DEVELOPMENT"] = "Development";
1689
+ Environment["PRODUCTION"] = "Production";
1690
+ })(Environment || (Environment = {}));
1691
+ const useOrchestratorConfig = initialOrchestratorConfig => {
1692
+ const [orchestratorConfig] = useState(initialOrchestratorConfig);
1653
1693
  return {
1654
- theme: euiTheme,
1655
- multiplyByBaseUnit
1694
+ orchestratorConfig
1656
1695
  };
1657
1696
  };
1658
1697
 
1659
- const HeaderBadge = props => {
1698
+ const OrchestratorConfigContext = /*#__PURE__*/createContext({
1699
+ orchestratorApiBaseUrl: '',
1700
+ engineStatusEndpoint: '',
1701
+ processStatusCountsEndpoint: '',
1702
+ environmentName: '',
1703
+ graphqlEndpoint: ''
1704
+ });
1705
+ const OrchestratorConfigProvider = ({
1706
+ initialOrchestratorConfig,
1707
+ children
1708
+ }) => {
1660
1709
  const {
1661
- theme
1662
- } = useOrchestratorTheme();
1663
- const css = props.iconType !== undefined ? {
1664
- height: 24,
1665
- display: 'flex',
1666
- paddingLeft: 0
1667
- } : {
1668
- height: 24,
1669
- display: 'flex'
1670
- };
1671
- return jsx(EuiBadge, Object.assign({}, props, {
1672
- color: theme.colors[props.color],
1673
- css: css
1710
+ orchestratorConfig
1711
+ } = useOrchestratorConfig(initialOrchestratorConfig);
1712
+ return jsx(OrchestratorConfigContext.Provider, Object.assign({
1713
+ value: orchestratorConfig
1674
1714
  }, {
1675
- children: props.children
1715
+ children: children
1676
1716
  }));
1677
1717
  };
1678
1718
 
1679
- const StatusDotIcon = ({
1680
- width: _width = 24,
1681
- height: _height = 24,
1682
- color: _color = '#000000'
1683
- }) => jsxs("svg", Object.assign({
1684
- width: _width,
1685
- height: _height,
1686
- viewBox: "0 0 24 24",
1687
- version: "1.1",
1688
- xmlns: "http://www.w3.org/2000/svg"
1689
- }, {
1690
- children: [jsx("title", {
1691
- children: "icon/statusdot"
1692
- }), jsx("g", Object.assign({
1693
- id: "Symbols",
1694
- stroke: "none",
1695
- strokeWidth: "1",
1696
- fill: "none",
1697
- fillRule: "evenodd"
1698
- }, {
1699
- children: jsxs("g", Object.assign({
1700
- id: "icon/statusdot",
1701
- fill: _color,
1702
- fillRule: "nonzero"
1703
- }, {
1704
- children: [jsx("circle", {
1705
- id: "Oval",
1706
- opacity: "0.25",
1707
- cx: "12",
1708
- cy: "12",
1709
- r: "8"
1710
- }), jsx("circle", {
1711
- id: "Oval",
1712
- cx: "12",
1713
- cy: "12",
1714
- r: "4"
1715
- })]
1716
- }))
1717
- }))]
1718
- }));
1719
+ const useQueryWithGraphql = (query, queryVars) => {
1720
+ const {
1721
+ graphqlEndpoint
1722
+ } = useContext(OrchestratorConfigContext);
1723
+ const graphQLClient = new GraphQLClient(graphqlEndpoint);
1724
+ const fetchFromGraphql = () => __awaiter(void 0, void 0, void 0, function* () {
1725
+ // TS-Ignore because queryVars does not seem to be accepted by the client
1726
+ // The props in this useQueryWithGraphql-hook ensures queryVars is indeed related to the query
1727
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
1728
+ // @ts-ignore
1729
+ return yield graphQLClient.request(query, queryVars);
1730
+ });
1731
+ return useQuery(['subscriptions', ...Object.values(queryVars)], fetchFromGraphql);
1732
+ };
1733
+ const useStringQueryWithGraphql = (query, queryVars) => {
1734
+ const {
1735
+ graphqlEndpoint
1736
+ } = useContext(OrchestratorConfigContext);
1737
+ const fetchFromGraphql = () => __awaiter(void 0, void 0, void 0, function* () {
1738
+ return yield request(graphqlEndpoint, query, queryVars);
1739
+ });
1740
+ return useQuery(['subscriptions', ...Object.values(queryVars)], fetchFromGraphql);
1741
+ };
1719
1742
 
1720
- const XCircleFill = ({
1721
- width: _width = 24,
1722
- height: _height = 24,
1723
- color: _color = '#000000'
1724
- }) => jsxs("svg", Object.assign({
1725
- width: _width,
1726
- height: _height,
1727
- viewBox: "0 0 24 24",
1728
- version: "1.1",
1729
- xmlns: "http://www.w3.org/2000/svg"
1730
- }, {
1731
- children: [jsx("title", {
1732
- children: "icon/x-circle-fill"
1733
- }), jsx("g", Object.assign({
1734
- id: "Symbols",
1735
- stroke: "none",
1736
- strokeWidth: "1",
1737
- fill: "none",
1738
- fillRule: "evenodd"
1739
- }, {
1740
- children: jsx("g", Object.assign({
1741
- id: "icon/x-circle-fill",
1742
- fill: _color
1743
- }, {
1744
- children: jsx("path", {
1745
- d: "M12,20 C16.4183,20 20,16.4183 20,12 C20,7.58172 16.4183,4 12,4 C7.58172,4 4,7.58172 4,12 C4,16.4183 7.58172,20 12,20 Z M10.70711,9.29289 C10.31658,8.90237 9.68342,8.90237 9.29289,9.29289 C8.90237,9.68342 8.90237,10.31658 9.29289,10.70711 L10.58579,12 L9.29289,13.2929 C8.90237,13.6834 8.90237,14.3166 9.29289,14.7071 C9.68342,15.0976 10.31658,15.0976 10.70711,14.7071 L12,13.4142 L13.2929,14.7071 C13.6834,15.0976 14.3166,15.0976 14.7071,14.7071 C15.0976,14.3166 15.0976,13.6834 14.7071,13.2929 L13.4142,12 L14.7071,10.70711 C15.0976,10.31658 15.0976,9.68342 14.7071,9.29289 C14.3166,8.90237 13.6834,8.90237 13.2929,9.29289 L12,10.58579 L10.70711,9.29289 Z",
1746
- id: "Shape"
1747
- })
1748
- }))
1749
- }))]
1750
- }));
1743
+ var classof$5 = classofRaw$2;
1751
1744
 
1752
- const LogoutIcon = ({
1753
- width: _width = 24,
1754
- height: _height = 24,
1755
- color: _color = '#000000'
1756
- }) => jsxs("svg", Object.assign({
1757
- width: _width,
1758
- height: _height,
1759
- viewBox: "0 0 24 24",
1760
- version: "1.1",
1761
- xmlns: "http://www.w3.org/2000/svg"
1762
- }, {
1763
- children: [jsx("title", {
1764
- children: "icon/logout"
1765
- }), jsx("g", Object.assign({
1766
- id: "Symbols",
1767
- stroke: "none",
1768
- strokeWidth: "1",
1769
- fill: "none",
1770
- fillRule: "evenodd"
1771
- }, {
1772
- children: jsx("g", Object.assign({
1773
- id: "icon/logout",
1774
- fill: _color,
1775
- fillRule: "nonzero"
1776
- }, {
1777
- children: jsx("path", {
1778
- d: "M10,3 C12.2091701,3 14,4.79085056 14,7 L14,8 C14,8.55228475 13.5522847,9 13,9 C12.4477153,9 12,8.55228475 12,8 L12,7 C12,5.8954149 11.1045954,5 10,5 L6,5 C4.89543475,5 4,5.89543475 4,7 L4,17 C4,18.1045954 4.8954149,19 6,19 L10,19 C11.1046153,19 12,18.1046153 12,17 L12,16 C12,15.4477153 12.4477153,15 13,15 C13.5522847,15 14,15.4477153 14,16 L14,17 C14,19.2091847 12.2091847,21 10,21 L6,21 C3.79085056,21 2,19.2091701 2,17 L2,7 C2,4.79086525 3.79086525,3 6,3 L10,3 Z M17.7071068,7.29289322 L21.7071068,11.2928932 L21.7485042,11.336853 L21.757,11.347 L21.787214,11.3832499 L21.779,11.374 L21.8036654,11.4046934 C21.8215099,11.4288693 21.8382813,11.453725 21.8539326,11.4793398 L21.8753288,11.5159379 C21.8862061,11.5357061 21.8966234,11.5561086 21.9063462,11.5769009 L21.9287745,11.628664 C21.9366843,11.6484208 21.9438775,11.6682023 21.9504533,11.6882636 C21.9552713,11.7031487 21.9599023,11.7185367 21.9641549,11.734007 C21.9701664,11.7555635 21.9753602,11.7772539 21.9798348,11.7992059 C21.9832978,11.8166247 21.9863719,11.834051 21.9889822,11.8515331 C21.9920328,11.8714753 21.9944666,11.892114 21.9962623,11.912935 C21.9978436,11.9317345 21.9989053,11.9497336 21.9994829,11.9677454 C21.9998183,11.9777892 22,11.9888734 22,12 L21.996384,12.0852242 L21.9889807,12.1489612 C21.9863719,12.165949 21.9832978,12.1833753 21.9797599,12.2007258 C21.9753602,12.2227461 21.9701664,12.2444365 21.964279,12.2658396 C21.9599023,12.2814633 21.9552713,12.2968513 21.9502619,12.3121425 C21.9438775,12.3317977 21.9366843,12.3515792 21.928896,12.3710585 L21.9063266,12.4232215 C21.8966234,12.4438914 21.8862061,12.4642939 21.8751242,12.484277 C21.8685012,12.4963944 21.8613931,12.5086131 21.8540045,12.5207088 C21.8382813,12.546275 21.8215099,12.5711307 21.8036865,12.5951593 L21.7870723,12.6170223 C21.7849289,12.6196628 21.7826279,12.6225624 21.7803112,12.625449 L21.7071068,12.7071068 L17.7071068,16.7071068 C17.3165825,17.0976311 16.6834175,17.0976311 16.2928932,16.7071068 C15.9023689,16.3165825 15.9023689,15.6834175 16.2928932,15.2928932 L18.585,13 L7,13 C6.44771525,13 6,12.5522847 6,12 C6,11.4477153 6.44771525,11 7,11 L18.585,11 L16.2928932,8.70710678 C15.9023689,8.31658249 15.9023689,7.68341751 16.2928932,7.29289322 C16.6834175,6.90236893 17.3165825,6.90236893 17.7071068,7.29289322 Z",
1779
- id: "Combined-Shape"
1780
- })
1781
- }))
1782
- }))]
1783
- }));
1784
-
1785
- var classof$3 = classofRaw$2;
1786
-
1787
- var engineIsNode = typeof process != 'undefined' && classof$3(process) == 'process';
1745
+ var engineIsNode = typeof process != 'undefined' && classof$5(process) == 'process';
1788
1746
 
1789
1747
  var makeBuiltIn = makeBuiltIn$3.exports;
1790
1748
  var defineProperty = objectDefineProperty;
@@ -1797,10 +1755,10 @@ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1797
1755
 
1798
1756
  var getBuiltIn$3 = getBuiltIn$7;
1799
1757
  var defineBuiltInAccessor = defineBuiltInAccessor$1;
1800
- var wellKnownSymbol$7 = wellKnownSymbol$e;
1758
+ var wellKnownSymbol$9 = wellKnownSymbol$g;
1801
1759
  var DESCRIPTORS = descriptors;
1802
1760
 
1803
- var SPECIES$2 = wellKnownSymbol$7('species');
1761
+ var SPECIES$2 = wellKnownSymbol$9('species');
1804
1762
 
1805
1763
  var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1806
1764
  var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
@@ -1813,30 +1771,30 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1813
1771
  }
1814
1772
  };
1815
1773
 
1816
- var isPrototypeOf$1 = objectIsPrototypeOf;
1774
+ var isPrototypeOf$2 = objectIsPrototypeOf;
1817
1775
 
1818
- var $TypeError$5 = TypeError;
1776
+ var $TypeError$7 = TypeError;
1819
1777
 
1820
1778
  var anInstance$1 = function (it, Prototype) {
1821
- if (isPrototypeOf$1(Prototype, it)) return it;
1822
- throw $TypeError$5('Incorrect invocation');
1779
+ if (isPrototypeOf$2(Prototype, it)) return it;
1780
+ throw $TypeError$7('Incorrect invocation');
1823
1781
  };
1824
1782
 
1825
- var wellKnownSymbol$6 = wellKnownSymbol$e;
1783
+ var wellKnownSymbol$8 = wellKnownSymbol$g;
1826
1784
 
1827
- var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
1828
- var test = {};
1785
+ var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
1786
+ var test$1 = {};
1829
1787
 
1830
- test[TO_STRING_TAG$1] = 'z';
1788
+ test$1[TO_STRING_TAG$1] = 'z';
1831
1789
 
1832
- var toStringTagSupport = String(test) === '[object z]';
1790
+ var toStringTagSupport = String(test$1) === '[object z]';
1833
1791
 
1834
1792
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1835
1793
  var isCallable$5 = isCallable$k;
1836
1794
  var classofRaw$1 = classofRaw$2;
1837
- var wellKnownSymbol$5 = wellKnownSymbol$e;
1795
+ var wellKnownSymbol$7 = wellKnownSymbol$g;
1838
1796
 
1839
- var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
1797
+ var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
1840
1798
  var $Object = Object;
1841
1799
 
1842
1800
  // ES3 wrong here
@@ -1850,7 +1808,7 @@ var tryGet = function (it, key) {
1850
1808
  };
1851
1809
 
1852
1810
  // getting tag from ES6+ `Object.prototype.toString`
1853
- var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1811
+ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1854
1812
  var O, tag, result;
1855
1813
  return it === undefined ? 'Undefined' : it === null ? 'Null'
1856
1814
  // @@toStringTag case
@@ -1861,10 +1819,10 @@ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1861
1819
  : (result = classofRaw$1(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
1862
1820
  };
1863
1821
 
1864
- var uncurryThis$3 = functionUncurryThis;
1865
- var fails$1 = fails$d;
1822
+ var uncurryThis$7 = functionUncurryThis;
1823
+ var fails$6 = fails$i;
1866
1824
  var isCallable$4 = isCallable$k;
1867
- var classof$1 = classof$2;
1825
+ var classof$3 = classof$4;
1868
1826
  var getBuiltIn$2 = getBuiltIn$7;
1869
1827
  var inspectSource$1 = inspectSource$3;
1870
1828
 
@@ -1872,7 +1830,7 @@ var noop = function () { /* empty */ };
1872
1830
  var empty = [];
1873
1831
  var construct = getBuiltIn$2('Reflect', 'construct');
1874
1832
  var constructorRegExp = /^\s*(?:class|function)\b/;
1875
- var exec = uncurryThis$3(constructorRegExp.exec);
1833
+ var exec$1 = uncurryThis$7(constructorRegExp.exec);
1876
1834
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1877
1835
 
1878
1836
  var isConstructorModern = function isConstructor(argument) {
@@ -1887,7 +1845,7 @@ var isConstructorModern = function isConstructor(argument) {
1887
1845
 
1888
1846
  var isConstructorLegacy = function isConstructor(argument) {
1889
1847
  if (!isCallable$4(argument)) return false;
1890
- switch (classof$1(argument)) {
1848
+ switch (classof$3(argument)) {
1891
1849
  case 'AsyncFunction':
1892
1850
  case 'GeneratorFunction':
1893
1851
  case 'AsyncGeneratorFunction': return false;
@@ -1896,7 +1854,7 @@ var isConstructorLegacy = function isConstructor(argument) {
1896
1854
  // we can't check .prototype since constructors produced by .bind haven't it
1897
1855
  // `Function#toString` throws on some built-it function in some legacy engines
1898
1856
  // (for example, `DOMQuad` and similar in FF41-)
1899
- return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
1857
+ return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
1900
1858
  } catch (error) {
1901
1859
  return true;
1902
1860
  }
@@ -1906,7 +1864,7 @@ isConstructorLegacy.sham = true;
1906
1864
 
1907
1865
  // `IsConstructor` abstract operation
1908
1866
  // https://tc39.es/ecma262/#sec-isconstructor
1909
- var isConstructor$1 = !construct || fails$1(function () {
1867
+ var isConstructor$1 = !construct || fails$6(function () {
1910
1868
  var called;
1911
1869
  return isConstructorModern(isConstructorModern.call)
1912
1870
  || !isConstructorModern(Object)
@@ -1915,114 +1873,114 @@ var isConstructor$1 = !construct || fails$1(function () {
1915
1873
  }) ? isConstructorLegacy : isConstructorModern;
1916
1874
 
1917
1875
  var isConstructor = isConstructor$1;
1918
- var tryToString$2 = tryToString$4;
1876
+ var tryToString$3 = tryToString$5;
1919
1877
 
1920
- var $TypeError$4 = TypeError;
1878
+ var $TypeError$6 = TypeError;
1921
1879
 
1922
1880
  // `Assert: IsConstructor(argument) is true`
1923
1881
  var aConstructor$1 = function (argument) {
1924
1882
  if (isConstructor(argument)) return argument;
1925
- throw $TypeError$4(tryToString$2(argument) + ' is not a constructor');
1883
+ throw $TypeError$6(tryToString$3(argument) + ' is not a constructor');
1926
1884
  };
1927
1885
 
1928
- var anObject$4 = anObject$a;
1886
+ var anObject$6 = anObject$c;
1929
1887
  var aConstructor = aConstructor$1;
1930
1888
  var isNullOrUndefined$1 = isNullOrUndefined$4;
1931
- var wellKnownSymbol$4 = wellKnownSymbol$e;
1889
+ var wellKnownSymbol$6 = wellKnownSymbol$g;
1932
1890
 
1933
- var SPECIES$1 = wellKnownSymbol$4('species');
1891
+ var SPECIES$1 = wellKnownSymbol$6('species');
1934
1892
 
1935
1893
  // `SpeciesConstructor` abstract operation
1936
1894
  // https://tc39.es/ecma262/#sec-speciesconstructor
1937
1895
  var speciesConstructor$1 = function (O, defaultConstructor) {
1938
- var C = anObject$4(O).constructor;
1896
+ var C = anObject$6(O).constructor;
1939
1897
  var S;
1940
- return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
1898
+ return C === undefined || isNullOrUndefined$1(S = anObject$6(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
1941
1899
  };
1942
1900
 
1943
1901
  var NATIVE_BIND$1 = functionBindNative;
1944
1902
 
1945
1903
  var FunctionPrototype = Function.prototype;
1946
1904
  var apply$1 = FunctionPrototype.apply;
1947
- var call$7 = FunctionPrototype.call;
1905
+ var call$8 = FunctionPrototype.call;
1948
1906
 
1949
1907
  // eslint-disable-next-line es/no-reflect -- safe
1950
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$7.bind(apply$1) : function () {
1951
- return call$7.apply(apply$1, arguments);
1908
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$8.bind(apply$1) : function () {
1909
+ return call$8.apply(apply$1, arguments);
1952
1910
  });
1953
1911
 
1954
1912
  var classofRaw = classofRaw$2;
1955
- var uncurryThis$2 = functionUncurryThis;
1913
+ var uncurryThis$6 = functionUncurryThis;
1956
1914
 
1957
1915
  var functionUncurryThisClause = function (fn) {
1958
1916
  // Nashorn bug:
1959
1917
  // https://github.com/zloirock/core-js/issues/1128
1960
1918
  // https://github.com/zloirock/core-js/issues/1130
1961
- if (classofRaw(fn) === 'Function') return uncurryThis$2(fn);
1919
+ if (classofRaw(fn) === 'Function') return uncurryThis$6(fn);
1962
1920
  };
1963
1921
 
1964
- var uncurryThis$1 = functionUncurryThisClause;
1965
- var aCallable$5 = aCallable$8;
1922
+ var uncurryThis$5 = functionUncurryThisClause;
1923
+ var aCallable$6 = aCallable$9;
1966
1924
  var NATIVE_BIND = functionBindNative;
1967
1925
 
1968
- var bind$4 = uncurryThis$1(uncurryThis$1.bind);
1926
+ var bind$4 = uncurryThis$5(uncurryThis$5.bind);
1969
1927
 
1970
1928
  // optional / simple context binding
1971
1929
  var functionBindContext = function (fn, that) {
1972
- aCallable$5(fn);
1930
+ aCallable$6(fn);
1973
1931
  return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
1974
1932
  return fn.apply(that, arguments);
1975
1933
  };
1976
1934
  };
1977
1935
 
1978
- var uncurryThis = functionUncurryThis;
1936
+ var uncurryThis$4 = functionUncurryThis;
1979
1937
 
1980
- var arraySlice$1 = uncurryThis([].slice);
1938
+ var arraySlice$2 = uncurryThis$4([].slice);
1981
1939
 
1982
- var $TypeError$3 = TypeError;
1940
+ var $TypeError$5 = TypeError;
1983
1941
 
1984
1942
  var validateArgumentsLength$1 = function (passed, required) {
1985
- if (passed < required) throw $TypeError$3('Not enough arguments');
1943
+ if (passed < required) throw $TypeError$5('Not enough arguments');
1986
1944
  return passed;
1987
1945
  };
1988
1946
 
1989
- var userAgent$2 = engineUserAgent;
1947
+ var userAgent$4 = engineUserAgent;
1990
1948
 
1991
1949
  // eslint-disable-next-line redos/no-vulnerable -- safe
1992
- var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1950
+ var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$4);
1993
1951
 
1994
- var global$5 = global$g;
1952
+ var global$6 = global$i;
1995
1953
  var apply = functionApply;
1996
1954
  var bind$3 = functionBindContext;
1997
1955
  var isCallable$3 = isCallable$k;
1998
- var hasOwn = hasOwnProperty_1;
1999
- var fails = fails$d;
1956
+ var hasOwn$1 = hasOwnProperty_1;
1957
+ var fails$5 = fails$i;
2000
1958
  var html = html$2;
2001
- var arraySlice = arraySlice$1;
1959
+ var arraySlice$1 = arraySlice$2;
2002
1960
  var createElement = documentCreateElement$2;
2003
1961
  var validateArgumentsLength = validateArgumentsLength$1;
2004
1962
  var IS_IOS$1 = engineIsIos;
2005
1963
  var IS_NODE$3 = engineIsNode;
2006
1964
 
2007
- var set = global$5.setImmediate;
2008
- var clear = global$5.clearImmediate;
2009
- var process$3 = global$5.process;
2010
- var Dispatch = global$5.Dispatch;
2011
- var Function$1 = global$5.Function;
2012
- var MessageChannel = global$5.MessageChannel;
2013
- var String$1 = global$5.String;
1965
+ var set = global$6.setImmediate;
1966
+ var clear = global$6.clearImmediate;
1967
+ var process$3 = global$6.process;
1968
+ var Dispatch = global$6.Dispatch;
1969
+ var Function$1 = global$6.Function;
1970
+ var MessageChannel = global$6.MessageChannel;
1971
+ var String$1 = global$6.String;
2014
1972
  var counter = 0;
2015
1973
  var queue$2 = {};
2016
1974
  var ONREADYSTATECHANGE = 'onreadystatechange';
2017
1975
  var $location, defer, channel, port;
2018
1976
 
2019
- fails(function () {
1977
+ fails$5(function () {
2020
1978
  // Deno throws a ReferenceError on `location` access without `--location` flag
2021
- $location = global$5.location;
1979
+ $location = global$6.location;
2022
1980
  });
2023
1981
 
2024
1982
  var run = function (id) {
2025
- if (hasOwn(queue$2, id)) {
1983
+ if (hasOwn$1(queue$2, id)) {
2026
1984
  var fn = queue$2[id];
2027
1985
  delete queue$2[id];
2028
1986
  fn();
@@ -2041,7 +1999,7 @@ var eventListener = function (event) {
2041
1999
 
2042
2000
  var globalPostMessageDefer = function (id) {
2043
2001
  // old engines have not location.origin
2044
- global$5.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2002
+ global$6.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2045
2003
  };
2046
2004
 
2047
2005
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
@@ -2049,7 +2007,7 @@ if (!set || !clear) {
2049
2007
  set = function setImmediate(handler) {
2050
2008
  validateArgumentsLength(arguments.length, 1);
2051
2009
  var fn = isCallable$3(handler) ? handler : Function$1(handler);
2052
- var args = arraySlice(arguments, 1);
2010
+ var args = arraySlice$1(arguments, 1);
2053
2011
  queue$2[++counter] = function () {
2054
2012
  apply(fn, undefined, args);
2055
2013
  };
@@ -2079,14 +2037,14 @@ if (!set || !clear) {
2079
2037
  // Browsers with postMessage, skip WebWorkers
2080
2038
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2081
2039
  } else if (
2082
- global$5.addEventListener &&
2083
- isCallable$3(global$5.postMessage) &&
2084
- !global$5.importScripts &&
2040
+ global$6.addEventListener &&
2041
+ isCallable$3(global$6.postMessage) &&
2042
+ !global$6.importScripts &&
2085
2043
  $location && $location.protocol !== 'file:' &&
2086
- !fails(globalPostMessageDefer)
2044
+ !fails$5(globalPostMessageDefer)
2087
2045
  ) {
2088
2046
  defer = globalPostMessageDefer;
2089
- global$5.addEventListener('message', eventListener, false);
2047
+ global$6.addEventListener('message', eventListener, false);
2090
2048
  // IE8-
2091
2049
  } else if (ONREADYSTATECHANGE in createElement('script')) {
2092
2050
  defer = function (id) {
@@ -2133,15 +2091,15 @@ Queue$2.prototype = {
2133
2091
 
2134
2092
  var queue$1 = Queue$2;
2135
2093
 
2136
- var userAgent$1 = engineUserAgent;
2094
+ var userAgent$3 = engineUserAgent;
2137
2095
 
2138
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
2096
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$3) && typeof Pebble != 'undefined';
2139
2097
 
2140
- var userAgent = engineUserAgent;
2098
+ var userAgent$2 = engineUserAgent;
2141
2099
 
2142
- var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
2100
+ var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$2);
2143
2101
 
2144
- var global$4 = global$g;
2102
+ var global$5 = global$i;
2145
2103
  var bind$2 = functionBindContext;
2146
2104
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
2147
2105
  var macrotask = task$1.set;
@@ -2151,12 +2109,12 @@ var IS_IOS_PEBBLE = engineIsIosPebble;
2151
2109
  var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
2152
2110
  var IS_NODE$2 = engineIsNode;
2153
2111
 
2154
- var MutationObserver = global$4.MutationObserver || global$4.WebKitMutationObserver;
2155
- var document$2 = global$4.document;
2156
- var process$2 = global$4.process;
2157
- var Promise$1 = global$4.Promise;
2112
+ var MutationObserver = global$5.MutationObserver || global$5.WebKitMutationObserver;
2113
+ var document$2 = global$5.document;
2114
+ var process$2 = global$5.process;
2115
+ var Promise$1 = global$5.Promise;
2158
2116
  // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
2159
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$4, 'queueMicrotask');
2117
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$5, 'queueMicrotask');
2160
2118
  var microtask$1 = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
2161
2119
  var notify$1, toggle, node, promise, then;
2162
2120
 
@@ -2208,7 +2166,7 @@ if (!microtask$1) {
2208
2166
  // - setTimeout
2209
2167
  } else {
2210
2168
  // `webpack` dev server bug on IE global methods - use bind(fn, global)
2211
- macrotask = bind$2(macrotask, global$4);
2169
+ macrotask = bind$2(macrotask, global$5);
2212
2170
  notify$1 = function () {
2213
2171
  macrotask(flush);
2214
2172
  };
@@ -2237,9 +2195,9 @@ var perform$3 = function (exec) {
2237
2195
  }
2238
2196
  };
2239
2197
 
2240
- var global$3 = global$g;
2198
+ var global$4 = global$i;
2241
2199
 
2242
- var promiseNativeConstructor = global$3.Promise;
2200
+ var promiseNativeConstructor = global$4.Promise;
2243
2201
 
2244
2202
  /* global Deno -- Deno case */
2245
2203
 
@@ -2252,20 +2210,20 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
2252
2210
  && typeof window == 'object'
2253
2211
  && typeof document == 'object';
2254
2212
 
2255
- var global$2 = global$g;
2213
+ var global$3 = global$i;
2256
2214
  var NativePromiseConstructor$3 = promiseNativeConstructor;
2257
2215
  var isCallable$2 = isCallable$k;
2258
2216
  var isForced = isForced_1;
2259
2217
  var inspectSource = inspectSource$3;
2260
- var wellKnownSymbol$3 = wellKnownSymbol$e;
2218
+ var wellKnownSymbol$5 = wellKnownSymbol$g;
2261
2219
  var IS_BROWSER = engineIsBrowser;
2262
2220
  var IS_DENO = engineIsDeno;
2263
2221
  var V8_VERSION = engineV8Version;
2264
2222
 
2265
2223
  NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
2266
- var SPECIES = wellKnownSymbol$3('species');
2224
+ var SPECIES = wellKnownSymbol$5('species');
2267
2225
  var SUBCLASSING = false;
2268
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$2.PromiseRejectionEvent);
2226
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$3.PromiseRejectionEvent);
2269
2227
 
2270
2228
  var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
2271
2229
  var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
@@ -2299,19 +2257,19 @@ var promiseConstructorDetection = {
2299
2257
 
2300
2258
  var newPromiseCapability$2 = {};
2301
2259
 
2302
- var aCallable$4 = aCallable$8;
2260
+ var aCallable$5 = aCallable$9;
2303
2261
 
2304
- var $TypeError$2 = TypeError;
2262
+ var $TypeError$4 = TypeError;
2305
2263
 
2306
2264
  var PromiseCapability = function (C) {
2307
2265
  var resolve, reject;
2308
2266
  this.promise = new C(function ($$resolve, $$reject) {
2309
- if (resolve !== undefined || reject !== undefined) throw $TypeError$2('Bad Promise constructor');
2267
+ if (resolve !== undefined || reject !== undefined) throw $TypeError$4('Bad Promise constructor');
2310
2268
  resolve = $$resolve;
2311
2269
  reject = $$reject;
2312
2270
  });
2313
- this.resolve = aCallable$4(resolve);
2314
- this.reject = aCallable$4(reject);
2271
+ this.resolve = aCallable$5(resolve);
2272
+ this.reject = aCallable$5(reject);
2315
2273
  };
2316
2274
 
2317
2275
  // `NewPromiseCapability` abstract operation
@@ -2320,17 +2278,17 @@ newPromiseCapability$2.f = function (C) {
2320
2278
  return new PromiseCapability(C);
2321
2279
  };
2322
2280
 
2323
- var $$5 = _export;
2281
+ var $$9 = _export;
2324
2282
  var IS_NODE = engineIsNode;
2325
- var global$1 = global$g;
2326
- var call$6 = functionCall;
2327
- var defineBuiltIn$1 = defineBuiltIn$5;
2283
+ var global$2 = global$i;
2284
+ var call$7 = functionCall;
2285
+ var defineBuiltIn$2 = defineBuiltIn$6;
2328
2286
  var setPrototypeOf = objectSetPrototypeOf;
2329
2287
  var setToStringTag = setToStringTag$3;
2330
2288
  var setSpecies = setSpecies$1;
2331
- var aCallable$3 = aCallable$8;
2289
+ var aCallable$4 = aCallable$9;
2332
2290
  var isCallable$1 = isCallable$k;
2333
- var isObject$1 = isObject$8;
2291
+ var isObject$2 = isObject$9;
2334
2292
  var anInstance = anInstance$1;
2335
2293
  var speciesConstructor = speciesConstructor$1;
2336
2294
  var task = task$1.set;
@@ -2352,13 +2310,13 @@ var setInternalState = InternalStateModule.set;
2352
2310
  var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
2353
2311
  var PromiseConstructor = NativePromiseConstructor$2;
2354
2312
  var PromisePrototype = NativePromisePrototype$1;
2355
- var TypeError$1 = global$1.TypeError;
2356
- var document$1 = global$1.document;
2357
- var process$1 = global$1.process;
2313
+ var TypeError$1 = global$2.TypeError;
2314
+ var document$1 = global$2.document;
2315
+ var process$1 = global$2.process;
2358
2316
  var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
2359
2317
  var newGenericPromiseCapability = newPromiseCapability$1;
2360
2318
 
2361
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$1.dispatchEvent);
2319
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$2.dispatchEvent);
2362
2320
  var UNHANDLED_REJECTION = 'unhandledrejection';
2363
2321
  var REJECTION_HANDLED = 'rejectionhandled';
2364
2322
  var PENDING = 0;
@@ -2372,7 +2330,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
2372
2330
  // helpers
2373
2331
  var isThenable = function (it) {
2374
2332
  var then;
2375
- return isObject$1(it) && isCallable$1(then = it.then) ? then : false;
2333
+ return isObject$2(it) && isCallable$1(then = it.then) ? then : false;
2376
2334
  };
2377
2335
 
2378
2336
  var callReaction = function (reaction, state) {
@@ -2401,7 +2359,7 @@ var callReaction = function (reaction, state) {
2401
2359
  if (result === reaction.promise) {
2402
2360
  reject(TypeError$1('Promise-chain cycle'));
2403
2361
  } else if (then = isThenable(result)) {
2404
- call$6(then, result, resolve, reject);
2362
+ call$7(then, result, resolve, reject);
2405
2363
  } else resolve(result);
2406
2364
  } else reject(value);
2407
2365
  } catch (error) {
@@ -2431,14 +2389,14 @@ var dispatchEvent = function (name, promise, reason) {
2431
2389
  event.promise = promise;
2432
2390
  event.reason = reason;
2433
2391
  event.initEvent(name, false, true);
2434
- global$1.dispatchEvent(event);
2392
+ global$2.dispatchEvent(event);
2435
2393
  } else event = { promise: promise, reason: reason };
2436
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
2394
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$2['on' + name])) handler(event);
2437
2395
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
2438
2396
  };
2439
2397
 
2440
2398
  var onUnhandled = function (state) {
2441
- call$6(task, global$1, function () {
2399
+ call$7(task, global$2, function () {
2442
2400
  var promise = state.facade;
2443
2401
  var value = state.value;
2444
2402
  var IS_UNHANDLED = isUnhandled(state);
@@ -2461,7 +2419,7 @@ var isUnhandled = function (state) {
2461
2419
  };
2462
2420
 
2463
2421
  var onHandleUnhandled = function (state) {
2464
- call$6(task, global$1, function () {
2422
+ call$7(task, global$2, function () {
2465
2423
  var promise = state.facade;
2466
2424
  if (IS_NODE) {
2467
2425
  process$1.emit('rejectionHandled', promise);
@@ -2495,7 +2453,7 @@ var internalResolve = function (state, value, unwrap) {
2495
2453
  microtask(function () {
2496
2454
  var wrapper = { done: false };
2497
2455
  try {
2498
- call$6(then, value,
2456
+ call$7(then, value,
2499
2457
  bind$1(internalResolve, wrapper, state),
2500
2458
  bind$1(internalReject, wrapper, state)
2501
2459
  );
@@ -2518,8 +2476,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2518
2476
  // 25.4.3.1 Promise(executor)
2519
2477
  PromiseConstructor = function Promise(executor) {
2520
2478
  anInstance(this, PromisePrototype);
2521
- aCallable$3(executor);
2522
- call$6(Internal, this);
2479
+ aCallable$4(executor);
2480
+ call$7(Internal, this);
2523
2481
  var state = getInternalPromiseState(this);
2524
2482
  try {
2525
2483
  executor(bind$1(internalResolve, state), bind$1(internalReject, state));
@@ -2546,7 +2504,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2546
2504
 
2547
2505
  // `Promise.prototype.then` method
2548
2506
  // https://tc39.es/ecma262/#sec-promise.prototype.then
2549
- Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
2507
+ Internal.prototype = defineBuiltIn$2(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
2550
2508
  var state = getInternalPromiseState(this);
2551
2509
  var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
2552
2510
  state.parent = true;
@@ -2579,10 +2537,10 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2579
2537
 
2580
2538
  if (!NATIVE_PROMISE_SUBCLASSING) {
2581
2539
  // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
2582
- defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
2540
+ defineBuiltIn$2(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
2583
2541
  var that = this;
2584
2542
  return new PromiseConstructor(function (resolve, reject) {
2585
- call$6(nativeThen, that, resolve, reject);
2543
+ call$7(nativeThen, that, resolve, reject);
2586
2544
  }).then(onFulfilled, onRejected);
2587
2545
  // https://github.com/zloirock/core-js/issues/640
2588
2546
  }, { unsafe: true });
@@ -2600,88 +2558,88 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2600
2558
  }
2601
2559
  }
2602
2560
 
2603
- $$5({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2561
+ $$9({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2604
2562
  Promise: PromiseConstructor
2605
2563
  });
2606
2564
 
2607
2565
  setToStringTag(PromiseConstructor, PROMISE, false);
2608
2566
  setSpecies(PROMISE);
2609
2567
 
2610
- var wellKnownSymbol$2 = wellKnownSymbol$e;
2568
+ var wellKnownSymbol$4 = wellKnownSymbol$g;
2611
2569
  var Iterators$1 = iterators;
2612
2570
 
2613
- var ITERATOR$2 = wellKnownSymbol$2('iterator');
2571
+ var ITERATOR$3 = wellKnownSymbol$4('iterator');
2614
2572
  var ArrayPrototype = Array.prototype;
2615
2573
 
2616
2574
  // check on default Array iterator
2617
2575
  var isArrayIteratorMethod$1 = function (it) {
2618
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
2576
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$3] === it);
2619
2577
  };
2620
2578
 
2621
- var classof = classof$2;
2579
+ var classof$2 = classof$4;
2622
2580
  var getMethod$1 = getMethod$3;
2623
2581
  var isNullOrUndefined = isNullOrUndefined$4;
2624
2582
  var Iterators = iterators;
2625
- var wellKnownSymbol$1 = wellKnownSymbol$e;
2583
+ var wellKnownSymbol$3 = wellKnownSymbol$g;
2626
2584
 
2627
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
2585
+ var ITERATOR$2 = wellKnownSymbol$3('iterator');
2628
2586
 
2629
2587
  var getIteratorMethod$2 = function (it) {
2630
- if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
2588
+ if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$2)
2631
2589
  || getMethod$1(it, '@@iterator')
2632
- || Iterators[classof(it)];
2590
+ || Iterators[classof$2(it)];
2633
2591
  };
2634
2592
 
2635
- var call$5 = functionCall;
2636
- var aCallable$2 = aCallable$8;
2637
- var anObject$3 = anObject$a;
2638
- var tryToString$1 = tryToString$4;
2593
+ var call$6 = functionCall;
2594
+ var aCallable$3 = aCallable$9;
2595
+ var anObject$5 = anObject$c;
2596
+ var tryToString$2 = tryToString$5;
2639
2597
  var getIteratorMethod$1 = getIteratorMethod$2;
2640
2598
 
2641
- var $TypeError$1 = TypeError;
2599
+ var $TypeError$3 = TypeError;
2642
2600
 
2643
2601
  var getIterator$1 = function (argument, usingIterator) {
2644
2602
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
2645
- if (aCallable$2(iteratorMethod)) return anObject$3(call$5(iteratorMethod, argument));
2646
- throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
2603
+ if (aCallable$3(iteratorMethod)) return anObject$5(call$6(iteratorMethod, argument));
2604
+ throw $TypeError$3(tryToString$2(argument) + ' is not iterable');
2647
2605
  };
2648
2606
 
2649
- var call$4 = functionCall;
2650
- var anObject$2 = anObject$a;
2607
+ var call$5 = functionCall;
2608
+ var anObject$4 = anObject$c;
2651
2609
  var getMethod = getMethod$3;
2652
2610
 
2653
2611
  var iteratorClose$1 = function (iterator, kind, value) {
2654
2612
  var innerResult, innerError;
2655
- anObject$2(iterator);
2613
+ anObject$4(iterator);
2656
2614
  try {
2657
2615
  innerResult = getMethod(iterator, 'return');
2658
2616
  if (!innerResult) {
2659
2617
  if (kind === 'throw') throw value;
2660
2618
  return value;
2661
2619
  }
2662
- innerResult = call$4(innerResult, iterator);
2620
+ innerResult = call$5(innerResult, iterator);
2663
2621
  } catch (error) {
2664
2622
  innerError = true;
2665
2623
  innerResult = error;
2666
2624
  }
2667
2625
  if (kind === 'throw') throw value;
2668
2626
  if (innerError) throw innerResult;
2669
- anObject$2(innerResult);
2627
+ anObject$4(innerResult);
2670
2628
  return value;
2671
2629
  };
2672
2630
 
2673
2631
  var bind = functionBindContext;
2674
- var call$3 = functionCall;
2675
- var anObject$1 = anObject$a;
2676
- var tryToString = tryToString$4;
2632
+ var call$4 = functionCall;
2633
+ var anObject$3 = anObject$c;
2634
+ var tryToString$1 = tryToString$5;
2677
2635
  var isArrayIteratorMethod = isArrayIteratorMethod$1;
2678
- var lengthOfArrayLike = lengthOfArrayLike$2;
2679
- var isPrototypeOf = objectIsPrototypeOf;
2636
+ var lengthOfArrayLike$2 = lengthOfArrayLike$4;
2637
+ var isPrototypeOf$1 = objectIsPrototypeOf;
2680
2638
  var getIterator = getIterator$1;
2681
2639
  var getIteratorMethod = getIteratorMethod$2;
2682
2640
  var iteratorClose = iteratorClose$1;
2683
2641
 
2684
- var $TypeError = TypeError;
2642
+ var $TypeError$2 = TypeError;
2685
2643
 
2686
2644
  var Result = function (stopped, result) {
2687
2645
  this.stopped = stopped;
@@ -2706,7 +2664,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
2706
2664
 
2707
2665
  var callFn = function (value) {
2708
2666
  if (AS_ENTRIES) {
2709
- anObject$1(value);
2667
+ anObject$3(value);
2710
2668
  return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2711
2669
  } return INTERRUPTED ? fn(value, stop) : fn(value);
2712
2670
  };
@@ -2717,31 +2675,31 @@ var iterate$2 = function (iterable, unboundFunction, options) {
2717
2675
  iterator = iterable;
2718
2676
  } else {
2719
2677
  iterFn = getIteratorMethod(iterable);
2720
- if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
2678
+ if (!iterFn) throw $TypeError$2(tryToString$1(iterable) + ' is not iterable');
2721
2679
  // optimisation for array iterators
2722
2680
  if (isArrayIteratorMethod(iterFn)) {
2723
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2681
+ for (index = 0, length = lengthOfArrayLike$2(iterable); length > index; index++) {
2724
2682
  result = callFn(iterable[index]);
2725
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
2683
+ if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
2726
2684
  } return new Result(false);
2727
2685
  }
2728
2686
  iterator = getIterator(iterable, iterFn);
2729
2687
  }
2730
2688
 
2731
2689
  next = IS_RECORD ? iterable.next : iterator.next;
2732
- while (!(step = call$3(next, iterator)).done) {
2690
+ while (!(step = call$4(next, iterator)).done) {
2733
2691
  try {
2734
2692
  result = callFn(step.value);
2735
2693
  } catch (error) {
2736
2694
  iteratorClose(iterator, 'throw', error);
2737
2695
  }
2738
- if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
2696
+ if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
2739
2697
  } return new Result(false);
2740
2698
  };
2741
2699
 
2742
- var wellKnownSymbol = wellKnownSymbol$e;
2700
+ var wellKnownSymbol$2 = wellKnownSymbol$g;
2743
2701
 
2744
- var ITERATOR = wellKnownSymbol('iterator');
2702
+ var ITERATOR$1 = wellKnownSymbol$2('iterator');
2745
2703
  var SAFE_CLOSING = false;
2746
2704
 
2747
2705
  try {
@@ -2754,7 +2712,7 @@ try {
2754
2712
  SAFE_CLOSING = true;
2755
2713
  }
2756
2714
  };
2757
- iteratorWithReturn[ITERATOR] = function () {
2715
+ iteratorWithReturn[ITERATOR$1] = function () {
2758
2716
  return this;
2759
2717
  };
2760
2718
  // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
@@ -2766,7 +2724,7 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
2766
2724
  var ITERATION_SUPPORT = false;
2767
2725
  try {
2768
2726
  var object = {};
2769
- object[ITERATOR] = function () {
2727
+ object[ITERATOR$1] = function () {
2770
2728
  return {
2771
2729
  next: function () {
2772
2730
  return { done: ITERATION_SUPPORT = true };
@@ -2786,9 +2744,9 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
2786
2744
  NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2787
2745
  });
2788
2746
 
2789
- var $$4 = _export;
2790
- var call$2 = functionCall;
2791
- var aCallable$1 = aCallable$8;
2747
+ var $$8 = _export;
2748
+ var call$3 = functionCall;
2749
+ var aCallable$2 = aCallable$9;
2792
2750
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2793
2751
  var perform$1 = perform$3;
2794
2752
  var iterate$1 = iterate$2;
@@ -2796,14 +2754,14 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2796
2754
 
2797
2755
  // `Promise.all` method
2798
2756
  // https://tc39.es/ecma262/#sec-promise.all
2799
- $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2757
+ $$8({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2800
2758
  all: function all(iterable) {
2801
2759
  var C = this;
2802
2760
  var capability = newPromiseCapabilityModule$2.f(C);
2803
2761
  var resolve = capability.resolve;
2804
2762
  var reject = capability.reject;
2805
2763
  var result = perform$1(function () {
2806
- var $promiseResolve = aCallable$1(C.resolve);
2764
+ var $promiseResolve = aCallable$2(C.resolve);
2807
2765
  var values = [];
2808
2766
  var counter = 0;
2809
2767
  var remaining = 1;
@@ -2811,7 +2769,7 @@ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2811
2769
  var index = counter++;
2812
2770
  var alreadyCalled = false;
2813
2771
  remaining++;
2814
- call$2($promiseResolve, C, promise).then(function (value) {
2772
+ call$3($promiseResolve, C, promise).then(function (value) {
2815
2773
  if (alreadyCalled) return;
2816
2774
  alreadyCalled = true;
2817
2775
  values[index] = value;
@@ -2825,18 +2783,18 @@ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2825
2783
  }
2826
2784
  });
2827
2785
 
2828
- var $$3 = _export;
2786
+ var $$7 = _export;
2829
2787
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2830
2788
  var NativePromiseConstructor = promiseNativeConstructor;
2831
2789
  var getBuiltIn$1 = getBuiltIn$7;
2832
2790
  var isCallable = isCallable$k;
2833
- var defineBuiltIn = defineBuiltIn$5;
2791
+ var defineBuiltIn$1 = defineBuiltIn$6;
2834
2792
 
2835
2793
  var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
2836
2794
 
2837
2795
  // `Promise.prototype.catch` method
2838
2796
  // https://tc39.es/ecma262/#sec-promise.prototype.catch
2839
- $$3({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2797
+ $$7({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2840
2798
  'catch': function (onRejected) {
2841
2799
  return this.then(undefined, onRejected);
2842
2800
  }
@@ -2846,13 +2804,13 @@ $$3({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real
2846
2804
  if (isCallable(NativePromiseConstructor)) {
2847
2805
  var method = getBuiltIn$1('Promise').prototype['catch'];
2848
2806
  if (NativePromisePrototype['catch'] !== method) {
2849
- defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
2807
+ defineBuiltIn$1(NativePromisePrototype, 'catch', method, { unsafe: true });
2850
2808
  }
2851
2809
  }
2852
2810
 
2853
- var $$2 = _export;
2854
- var call$1 = functionCall;
2855
- var aCallable = aCallable$8;
2811
+ var $$6 = _export;
2812
+ var call$2 = functionCall;
2813
+ var aCallable$1 = aCallable$9;
2856
2814
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2857
2815
  var perform = perform$3;
2858
2816
  var iterate = iterate$2;
@@ -2860,15 +2818,15 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2860
2818
 
2861
2819
  // `Promise.race` method
2862
2820
  // https://tc39.es/ecma262/#sec-promise.race
2863
- $$2({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2821
+ $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2864
2822
  race: function race(iterable) {
2865
2823
  var C = this;
2866
2824
  var capability = newPromiseCapabilityModule$1.f(C);
2867
2825
  var reject = capability.reject;
2868
2826
  var result = perform(function () {
2869
- var $promiseResolve = aCallable(C.resolve);
2827
+ var $promiseResolve = aCallable$1(C.resolve);
2870
2828
  iterate(iterable, function (promise) {
2871
- call$1($promiseResolve, C, promise).then(capability.resolve, reject);
2829
+ call$2($promiseResolve, C, promise).then(capability.resolve, reject);
2872
2830
  });
2873
2831
  });
2874
2832
  if (result.error) reject(result.value);
@@ -2876,35 +2834,35 @@ $$2({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2876
2834
  }
2877
2835
  });
2878
2836
 
2879
- var $$1 = _export;
2880
- var call = functionCall;
2837
+ var $$5 = _export;
2838
+ var call$1 = functionCall;
2881
2839
  var newPromiseCapabilityModule = newPromiseCapability$2;
2882
2840
  var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2883
2841
 
2884
2842
  // `Promise.reject` method
2885
2843
  // https://tc39.es/ecma262/#sec-promise.reject
2886
- $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2844
+ $$5({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2887
2845
  reject: function reject(r) {
2888
2846
  var capability = newPromiseCapabilityModule.f(this);
2889
- call(capability.reject, undefined, r);
2847
+ call$1(capability.reject, undefined, r);
2890
2848
  return capability.promise;
2891
2849
  }
2892
2850
  });
2893
2851
 
2894
- var anObject = anObject$a;
2895
- var isObject = isObject$8;
2852
+ var anObject$2 = anObject$c;
2853
+ var isObject$1 = isObject$9;
2896
2854
  var newPromiseCapability = newPromiseCapability$2;
2897
2855
 
2898
2856
  var promiseResolve$1 = function (C, x) {
2899
- anObject(C);
2900
- if (isObject(x) && x.constructor === C) return x;
2857
+ anObject$2(C);
2858
+ if (isObject$1(x) && x.constructor === C) return x;
2901
2859
  var promiseCapability = newPromiseCapability.f(C);
2902
2860
  var resolve = promiseCapability.resolve;
2903
2861
  resolve(x);
2904
2862
  return promiseCapability.promise;
2905
2863
  };
2906
2864
 
2907
- var $ = _export;
2865
+ var $$4 = _export;
2908
2866
  var getBuiltIn = getBuiltIn$7;
2909
2867
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2910
2868
  var promiseResolve = promiseResolve$1;
@@ -2913,62 +2871,12 @@ getBuiltIn('Promise');
2913
2871
 
2914
2872
  // `Promise.resolve` method
2915
2873
  // https://tc39.es/ecma262/#sec-promise.resolve
2916
- $({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2874
+ $$4({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2917
2875
  resolve: function resolve(x) {
2918
2876
  return promiseResolve(this, x);
2919
2877
  }
2920
2878
  });
2921
2879
 
2922
- /******************************************************************************
2923
- Copyright (c) Microsoft Corporation.
2924
-
2925
- Permission to use, copy, modify, and/or distribute this software for any
2926
- purpose with or without fee is hereby granted.
2927
-
2928
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2929
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2930
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2931
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2932
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2933
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2934
- PERFORMANCE OF THIS SOFTWARE.
2935
- ***************************************************************************** */
2936
-
2937
- function __awaiter(thisArg, _arguments, P, generator) {
2938
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2939
- return new (P || (P = Promise))(function (resolve, reject) {
2940
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
2941
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
2942
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
2943
- step((generator = generator.apply(thisArg, _arguments || [])).next());
2944
- });
2945
- }
2946
-
2947
- const useOrchestratorConfig = initialOrchestratorConfig => {
2948
- const [orchestratorConfig] = useState(initialOrchestratorConfig);
2949
- return {
2950
- orchestratorConfig
2951
- };
2952
- };
2953
-
2954
- const OrchestratorConfigContext = /*#__PURE__*/createContext({
2955
- engineStatusEndpoint: '',
2956
- processStatusCountsEndpoint: ''
2957
- });
2958
- const OrchestratorConfigProvider = ({
2959
- initialOrchestratorConfig,
2960
- children
2961
- }) => {
2962
- const {
2963
- orchestratorConfig
2964
- } = useOrchestratorConfig(initialOrchestratorConfig);
2965
- return jsx(OrchestratorConfigContext.Provider, Object.assign({
2966
- value: orchestratorConfig
2967
- }, {
2968
- children: children
2969
- }));
2970
- };
2971
-
2972
2880
  const useEngineStatusQuery = () => {
2973
2881
  const {
2974
2882
  engineStatusEndpoint
@@ -2982,6 +2890,20 @@ const useEngineStatusQuery = () => {
2982
2890
  return useQuery('engineStatus', fetchEngineStatus);
2983
2891
  };
2984
2892
 
2893
+ const useOrchestratorTheme = () => {
2894
+ const {
2895
+ euiTheme
2896
+ } = useEuiTheme();
2897
+ const baseUnit = euiTheme.base;
2898
+ const multiplyByBaseUnit = multiplier => baseUnit * multiplier;
2899
+ const toSecondaryColor = color => tint(color, 0.8);
2900
+ return {
2901
+ theme: euiTheme,
2902
+ multiplyByBaseUnit,
2903
+ toSecondaryColor
2904
+ };
2905
+ };
2906
+
2985
2907
  var ProcessStatus;
2986
2908
  (function (ProcessStatus) {
2987
2909
  ProcessStatus["CREATED"] = "created";
@@ -3007,179 +2929,1518 @@ const useProcessStatusCountsQuery = () => {
3007
2929
  return useQuery('processStatusCounts', fetchProcessStatusCounts);
3008
2930
  };
3009
2931
 
3010
- const getTaskCountsSummary = processStatusCounts => {
3011
- var _a, _b, _c;
3012
- const failed = (_a = processStatusCounts === null || processStatusCounts === void 0 ? void 0 : processStatusCounts.task_counts.failed) !== null && _a !== void 0 ? _a : 0;
3013
- const inconsistentData = (_b = processStatusCounts === null || processStatusCounts === void 0 ? void 0 : processStatusCounts.task_counts.inconsistent_data) !== null && _b !== void 0 ? _b : 0;
3014
- const apiUnavailable = (_c = processStatusCounts === null || processStatusCounts === void 0 ? void 0 : processStatusCounts.task_counts.api_unavailable) !== null && _c !== void 0 ? _c : 0;
3015
- return {
3016
- failed,
3017
- inconsistentData,
3018
- apiUnavailable,
3019
- total: failed + inconsistentData + apiUnavailable
2932
+ function getFavouriteSubscriptions(apiUrl) {
2933
+ return __awaiter(this, void 0, void 0, function* () {
2934
+ console.log('api url', apiUrl);
2935
+ const response = yield fetch(apiUrl + '/subscriptions/?range=10%2C15');
2936
+ return yield response.json();
2937
+ });
2938
+ }
2939
+ function getProcessesNeedingAttention(apiUrl) {
2940
+ return __awaiter(this, void 0, void 0, function* () {
2941
+ const response = yield fetch(apiUrl + '/processes/?range=100%2C105');
2942
+ return yield response.json();
2943
+ });
2944
+ }
2945
+ function getRecentProcesses(apiUrl) {
2946
+ return __awaiter(this, void 0, void 0, function* () {
2947
+ const response = yield fetch(apiUrl + '/processes/?range=106%2C111');
2948
+ return yield response.json();
2949
+ });
2950
+ }
2951
+ const useFavouriteSubscriptions = () => {
2952
+ const {
2953
+ orchestratorApiBaseUrl
2954
+ } = useContext(OrchestratorConfigContext);
2955
+ const {
2956
+ data,
2957
+ isLoading
2958
+ } = useQuery(['favouriteSubscriptions'], () => getFavouriteSubscriptions(orchestratorApiBaseUrl));
2959
+ const initialData = {
2960
+ buttonName: 'Show all favourites',
2961
+ items: [],
2962
+ title: 'Favourite Subscriptions',
2963
+ type: 'subscription'
3020
2964
  };
2965
+ return isLoading ? initialData : Object.assign(Object.assign({}, initialData), {
2966
+ items: data
2967
+ });
3021
2968
  };
3022
- const OrchestratorPageHeader = ({
3023
- navigationHeight,
3024
- getAppLogo,
3025
- handleLogoutClick
3026
- }) => {
2969
+ const useProcessesAttention = () => {
3027
2970
  const {
3028
- theme,
3029
- multiplyByBaseUnit
3030
- } = useOrchestratorTheme();
2971
+ orchestratorApiBaseUrl
2972
+ } = useContext(OrchestratorConfigContext);
3031
2973
  const {
3032
- data: engineStatus
3033
- } = useEngineStatusQuery();
2974
+ data,
2975
+ isLoading
2976
+ } = useQuery(['processesAttention'], () => getProcessesNeedingAttention(orchestratorApiBaseUrl));
2977
+ const initialData = {
2978
+ type: 'process',
2979
+ title: 'Processes that need attention',
2980
+ items: [],
2981
+ buttonName: 'Show all active processes'
2982
+ };
2983
+ return isLoading ? initialData : Object.assign(Object.assign({}, initialData), {
2984
+ items: data
2985
+ });
2986
+ };
2987
+ const useRecentProcesses = () => {
3034
2988
  const {
3035
- data: processStatusCounts
3036
- } = useProcessStatusCountsQuery();
2989
+ orchestratorApiBaseUrl
2990
+ } = useContext(OrchestratorConfigContext);
3037
2991
  const {
3038
- total: totalFailedTasks
3039
- } = getTaskCountsSummary(processStatusCounts);
3040
- return jsxs(EuiHeader, Object.assign({
3041
- css: {
3042
- backgroundColor: theme.colors.primary,
3043
- height: navigationHeight
3044
- }
3045
- }, {
3046
- children: [jsxs(EuiHeaderSection, {
3047
- children: [jsx(EuiHeaderSectionItem, {
3048
- children: jsx(EuiHeaderLogo, {
3049
- iconType: () => getAppLogo(navigationHeight)
3050
- })
3051
- }), jsx(EuiHeaderSectionItem, {
3052
- children: jsx(HeaderBadge, Object.assign({
3053
- color: "warning"
3054
- }, {
3055
- children: "Development"
3056
- }))
3057
- })]
3058
- }), jsx(EuiHeaderSection, {
3059
- children: jsxs(EuiHeaderSectionItem, {
3060
- children: [jsxs(EuiBadgeGroup, Object.assign({
3061
- css: {
3062
- marginRight: multiplyByBaseUnit(2)
3063
- }
3064
- }, {
3065
- children: [jsxs(HeaderBadge, Object.assign({
3066
- color: "emptyShade",
3067
- iconType: () => jsx(StatusDotIcon, {
3068
- color: theme.colors.success
3069
- })
3070
- }, {
3071
- children: ["Engine ", engineStatus === null || engineStatus === void 0 ? void 0 : engineStatus.global_status]
3072
- })), jsx(HeaderBadge, Object.assign({
3073
- color: "emptyShade",
3074
- iconType: () => jsx(XCircleFill, {
3075
- color: theme.colors.danger
3076
- })
3077
- }, {
3078
- children: totalFailedTasks
3079
- }))]
3080
- })), jsx(EuiButtonIcon, {
3081
- "aria-label": "Logout",
3082
- display: "empty",
3083
- iconType: () => jsx(LogoutIcon, {
3084
- color: theme.colors.emptyShade
3085
- }),
3086
- css: {
3087
- width: 48,
3088
- height: 48
3089
- },
3090
- color: "ghost",
3091
- onClick: () => handleLogoutClick()
3092
- })]
3093
- })
3094
- })]
3095
- }));
3096
- };
3097
-
3098
- const OrchestratorSidebar = ({
3099
- text
3100
- }) => {
3101
- const router = useRouter();
3102
- return jsx(EuiSideNav, {
3103
- mobileTitle: "Nav Items",
3104
- isOpenOnMobile: false,
3105
- items: [{
3106
- name: 'Menu',
3107
- id: 1,
3108
- items: [{
3109
- name: 'Home',
3110
- id: 2,
3111
- onClick: e => {
3112
- e.preventDefault();
3113
- router.push('/');
3114
- },
3115
- href: '/'
3116
- }, {
3117
- name: 'Subscriptions',
3118
- id: 3,
3119
- // TODO: NEXT router / EUI seem to cause unneeded re-renders. At least in dev mode,
3120
- onClick: e => {
3121
- e.preventDefault();
3122
- router.push('/subscriptions');
3123
- },
3124
- href: '/subscriptions'
3125
- }
3126
- // {
3127
- // name: 'Anchor item',
3128
- // id: 4,
3129
- // href: '#',
3130
- // },
3131
- ]
3132
- }]
2992
+ data,
2993
+ isLoading
2994
+ } = useQuery(['recentProcesses'], () => getRecentProcesses(orchestratorApiBaseUrl));
2995
+ const initialData = {
2996
+ type: 'process',
2997
+ title: 'Recently completed processes',
2998
+ items: [],
2999
+ buttonName: 'Show all completed processes'
3000
+ };
3001
+ return isLoading ? initialData : Object.assign(Object.assign({}, initialData), {
3002
+ items: data
3133
3003
  });
3134
3004
  };
3135
3005
 
3136
- const OrchestratorPageTemplate = ({
3137
- children,
3138
- getAppLogo
3006
+ const SubscriptionStatusBadge = ({
3007
+ subscriptionStatus
3139
3008
  }) => {
3140
3009
  const {
3141
3010
  theme,
3142
- multiplyByBaseUnit
3011
+ toSecondaryColor
3143
3012
  } = useOrchestratorTheme();
3144
- const [isSideMenuVisible, setIsSideMenuVisible] = useState(true);
3145
- const navigationHeight = multiplyByBaseUnit(3);
3146
- return jsxs(Fragment, {
3147
- children: [jsx(OrchestratorPageHeader, {
3148
- getAppLogo: getAppLogo,
3149
- navigationHeight: navigationHeight,
3150
- handleLogoutClick: () => setIsSideMenuVisible(!isSideMenuVisible)
3151
- }), jsxs(EuiPageTemplate, Object.assign({
3152
- panelled: false,
3153
- grow: false,
3154
- contentBorder: false,
3155
- minHeight: `calc(100vh - ${navigationHeight}px)`
3156
- }, {
3157
- children: [isSideMenuVisible && jsx(EuiPageTemplate.Sidebar, Object.assign({
3158
- css: {
3159
- backgroundColor: theme.colors.body
3160
- }
3161
- }, {
3162
- children: jsx(OrchestratorSidebar, {
3163
- text: "Sidebar"
3164
- })
3165
- })), jsx(EuiPageTemplate.Section, Object.assign({
3166
- css: {
3167
- backgroundColor: theme.colors.emptyShade
3168
- }
3169
- }, {
3170
- children: children
3171
- }))]
3172
- }))]
3173
- });
3013
+ const getBadgeColorFromSubscriptionStatus = status => {
3014
+ const {
3015
+ primary,
3016
+ darkestShade,
3017
+ lightShade,
3018
+ primaryText,
3019
+ success,
3020
+ successText
3021
+ } = theme.colors;
3022
+ switch (status) {
3023
+ case 'active':
3024
+ return {
3025
+ badgeColor: toSecondaryColor(success),
3026
+ textColor: successText
3027
+ };
3028
+ case 'terminated':
3029
+ return {
3030
+ badgeColor: lightShade,
3031
+ textColor: darkestShade
3032
+ };
3033
+ default:
3034
+ return {
3035
+ badgeColor: toSecondaryColor(primary),
3036
+ textColor: primaryText
3037
+ };
3038
+ }
3039
+ };
3040
+ const {
3041
+ badgeColor,
3042
+ textColor
3043
+ } = getBadgeColorFromSubscriptionStatus(subscriptionStatus);
3044
+ return jsx(Badge, Object.assign({
3045
+ textColor: textColor,
3046
+ color: badgeColor
3047
+ }, {
3048
+ children: subscriptionStatus
3049
+ }));
3174
3050
  };
3175
3051
 
3176
- const defaultOrchestratorTheme = {
3177
- colors: {
3178
- DARK: {},
3179
- LIGHT: {
3180
- primary: '#0077C8',
3181
- accent: '#E67300',
3182
- success: '#008939',
3052
+ const HeaderBadge = _a => {
3053
+ var {
3054
+ children
3055
+ } = _a,
3056
+ restProps = __rest(_a, ["children"]);
3057
+ const css = restProps.iconType ? {
3058
+ height: 24,
3059
+ display: 'flex',
3060
+ paddingLeft: 0
3061
+ } : {
3062
+ height: 24,
3063
+ display: 'flex'
3064
+ };
3065
+ return jsx(Badge, Object.assign({}, restProps, {
3066
+ css: css
3067
+ }, {
3068
+ children: children
3069
+ }));
3070
+ };
3071
+
3072
+ const XCircleFill = ({
3073
+ width: _width = 24,
3074
+ height: _height = 24,
3075
+ color: _color = '#000000'
3076
+ }) => jsxs("svg", Object.assign({
3077
+ width: _width,
3078
+ height: _height,
3079
+ viewBox: "0 0 24 24",
3080
+ version: "1.1",
3081
+ xmlns: "http://www.w3.org/2000/svg"
3082
+ }, {
3083
+ children: [jsx("title", {
3084
+ children: "icon/x-circle-fill"
3085
+ }), jsx("g", Object.assign({
3086
+ id: "Symbols",
3087
+ stroke: "none",
3088
+ strokeWidth: "1",
3089
+ fill: "none",
3090
+ fillRule: "evenodd"
3091
+ }, {
3092
+ children: jsx("g", Object.assign({
3093
+ id: "icon/x-circle-fill",
3094
+ fill: _color
3095
+ }, {
3096
+ children: jsx("path", {
3097
+ d: "M12,20 C16.4183,20 20,16.4183 20,12 C20,7.58172 16.4183,4 12,4 C7.58172,4 4,7.58172 4,12 C4,16.4183 7.58172,20 12,20 Z M10.70711,9.29289 C10.31658,8.90237 9.68342,8.90237 9.29289,9.29289 C8.90237,9.68342 8.90237,10.31658 9.29289,10.70711 L10.58579,12 L9.29289,13.2929 C8.90237,13.6834 8.90237,14.3166 9.29289,14.7071 C9.68342,15.0976 10.31658,15.0976 10.70711,14.7071 L12,13.4142 L13.2929,14.7071 C13.6834,15.0976 14.3166,15.0976 14.7071,14.7071 C15.0976,14.3166 15.0976,13.6834 14.7071,13.2929 L13.4142,12 L14.7071,10.70711 C15.0976,10.31658 15.0976,9.68342 14.7071,9.29289 C14.3166,8.90237 13.6834,8.90237 13.2929,9.29289 L12,10.58579 L10.70711,9.29289 Z",
3098
+ id: "Shape"
3099
+ })
3100
+ }))
3101
+ }))]
3102
+ }));
3103
+
3104
+ const getTaskCountsSummary = processStatusCounts => {
3105
+ const failed = (processStatusCounts === null || processStatusCounts === void 0 ? void 0 : processStatusCounts.task_counts.failed) || 0;
3106
+ const inconsistentData = (processStatusCounts === null || processStatusCounts === void 0 ? void 0 : processStatusCounts.task_counts.inconsistent_data) || 0;
3107
+ const apiUnavailable = (processStatusCounts === null || processStatusCounts === void 0 ? void 0 : processStatusCounts.task_counts.api_unavailable) || 0;
3108
+ return {
3109
+ failed,
3110
+ inconsistentData,
3111
+ apiUnavailable,
3112
+ total: failed + inconsistentData + apiUnavailable
3113
+ };
3114
+ };
3115
+ const FailedTasksBadge = () => {
3116
+ const {
3117
+ theme
3118
+ } = useOrchestratorTheme();
3119
+ const {
3120
+ data: processStatusCounts
3121
+ } = useProcessStatusCountsQuery();
3122
+ const taskCountsSummary = getTaskCountsSummary(processStatusCounts);
3123
+ return jsx(EuiToolTip, Object.assign({
3124
+ position: "bottom",
3125
+ content: jsxs(Fragment, {
3126
+ children: [jsxs("div", {
3127
+ children: ["Failed: ", taskCountsSummary.failed]
3128
+ }), jsxs("div", {
3129
+ children: ["Inconsistent data: ", taskCountsSummary.inconsistentData]
3130
+ }), jsxs("div", {
3131
+ children: ["API unavailable: ", taskCountsSummary.apiUnavailable]
3132
+ })]
3133
+ })
3134
+ }, {
3135
+ children: jsx(HeaderBadge, Object.assign({
3136
+ color: theme.colors.emptyShade,
3137
+ textColor: theme.colors.shadow,
3138
+ iconType: () => jsx(XCircleFill, {
3139
+ color: theme.colors.danger
3140
+ })
3141
+ }, {
3142
+ children: taskCountsSummary.total
3143
+ }))
3144
+ }));
3145
+ };
3146
+
3147
+ const EnvironmentBadge = () => {
3148
+ const {
3149
+ environmentName
3150
+ } = useContext(OrchestratorConfigContext);
3151
+ const {
3152
+ theme,
3153
+ toSecondaryColor
3154
+ } = useOrchestratorTheme();
3155
+ if (environmentName !== Environment.PRODUCTION) {
3156
+ return jsx(HeaderBadge, Object.assign({
3157
+ color: "warning",
3158
+ textColor: theme.colors.shadow
3159
+ }, {
3160
+ children: environmentName
3161
+ }));
3162
+ }
3163
+ return jsx(HeaderBadge, Object.assign({
3164
+ color: toSecondaryColor(theme.colors.primary),
3165
+ textColor: theme.colors.primary
3166
+ }, {
3167
+ children: environmentName
3168
+ }));
3169
+ };
3170
+
3171
+ const StatusDotIcon = ({
3172
+ width: _width = 24,
3173
+ height: _height = 24,
3174
+ color: _color = '#000000'
3175
+ }) => jsxs("svg", Object.assign({
3176
+ width: _width,
3177
+ height: _height,
3178
+ viewBox: "0 0 24 24",
3179
+ version: "1.1",
3180
+ xmlns: "http://www.w3.org/2000/svg"
3181
+ }, {
3182
+ children: [jsx("title", {
3183
+ children: "icon/statusdot"
3184
+ }), jsx("g", Object.assign({
3185
+ id: "Symbols",
3186
+ stroke: "none",
3187
+ strokeWidth: "1",
3188
+ fill: "none",
3189
+ fillRule: "evenodd"
3190
+ }, {
3191
+ children: jsxs("g", Object.assign({
3192
+ id: "icon/statusdot",
3193
+ fill: _color,
3194
+ fillRule: "nonzero"
3195
+ }, {
3196
+ children: [jsx("circle", {
3197
+ id: "Oval",
3198
+ opacity: "0.25",
3199
+ cx: "12",
3200
+ cy: "12",
3201
+ r: "8"
3202
+ }), jsx("circle", {
3203
+ id: "Oval",
3204
+ cx: "12",
3205
+ cy: "12",
3206
+ r: "4"
3207
+ })]
3208
+ }))
3209
+ }))]
3210
+ }));
3211
+
3212
+ const EngineStatusBadge = () => {
3213
+ const {
3214
+ theme
3215
+ } = useOrchestratorTheme();
3216
+ const {
3217
+ data: engineStatus
3218
+ } = useEngineStatusQuery();
3219
+ const engineStatusText = (engineStatus === null || engineStatus === void 0 ? void 0 : engineStatus.global_status) ? `Engine is ${engineStatus.global_status}` : 'Engine status is unavailable';
3220
+ return jsx(HeaderBadge, Object.assign({
3221
+ color: theme.colors.emptyShade,
3222
+ textColor: theme.colors.shadow,
3223
+ iconType: () => jsx(StatusDotIcon, {
3224
+ color: theme.colors.success
3225
+ })
3226
+ }, {
3227
+ children: engineStatusText
3228
+ }));
3229
+ };
3230
+
3231
+ const LogoutIcon = ({
3232
+ width: _width = 24,
3233
+ height: _height = 24,
3234
+ color: _color = '#000000'
3235
+ }) => jsxs("svg", Object.assign({
3236
+ width: _width,
3237
+ height: _height,
3238
+ viewBox: "0 0 24 24",
3239
+ version: "1.1",
3240
+ xmlns: "http://www.w3.org/2000/svg"
3241
+ }, {
3242
+ children: [jsx("title", {
3243
+ children: "icon/logout"
3244
+ }), jsx("g", Object.assign({
3245
+ id: "Symbols",
3246
+ stroke: "none",
3247
+ strokeWidth: "1",
3248
+ fill: "none",
3249
+ fillRule: "evenodd"
3250
+ }, {
3251
+ children: jsx("g", Object.assign({
3252
+ id: "icon/logout",
3253
+ fill: _color,
3254
+ fillRule: "nonzero"
3255
+ }, {
3256
+ children: jsx("path", {
3257
+ d: "M10,3 C12.2091701,3 14,4.79085056 14,7 L14,8 C14,8.55228475 13.5522847,9 13,9 C12.4477153,9 12,8.55228475 12,8 L12,7 C12,5.8954149 11.1045954,5 10,5 L6,5 C4.89543475,5 4,5.89543475 4,7 L4,17 C4,18.1045954 4.8954149,19 6,19 L10,19 C11.1046153,19 12,18.1046153 12,17 L12,16 C12,15.4477153 12.4477153,15 13,15 C13.5522847,15 14,15.4477153 14,16 L14,17 C14,19.2091847 12.2091847,21 10,21 L6,21 C3.79085056,21 2,19.2091701 2,17 L2,7 C2,4.79086525 3.79086525,3 6,3 L10,3 Z M17.7071068,7.29289322 L21.7071068,11.2928932 L21.7485042,11.336853 L21.757,11.347 L21.787214,11.3832499 L21.779,11.374 L21.8036654,11.4046934 C21.8215099,11.4288693 21.8382813,11.453725 21.8539326,11.4793398 L21.8753288,11.5159379 C21.8862061,11.5357061 21.8966234,11.5561086 21.9063462,11.5769009 L21.9287745,11.628664 C21.9366843,11.6484208 21.9438775,11.6682023 21.9504533,11.6882636 C21.9552713,11.7031487 21.9599023,11.7185367 21.9641549,11.734007 C21.9701664,11.7555635 21.9753602,11.7772539 21.9798348,11.7992059 C21.9832978,11.8166247 21.9863719,11.834051 21.9889822,11.8515331 C21.9920328,11.8714753 21.9944666,11.892114 21.9962623,11.912935 C21.9978436,11.9317345 21.9989053,11.9497336 21.9994829,11.9677454 C21.9998183,11.9777892 22,11.9888734 22,12 L21.996384,12.0852242 L21.9889807,12.1489612 C21.9863719,12.165949 21.9832978,12.1833753 21.9797599,12.2007258 C21.9753602,12.2227461 21.9701664,12.2444365 21.964279,12.2658396 C21.9599023,12.2814633 21.9552713,12.2968513 21.9502619,12.3121425 C21.9438775,12.3317977 21.9366843,12.3515792 21.928896,12.3710585 L21.9063266,12.4232215 C21.8966234,12.4438914 21.8862061,12.4642939 21.8751242,12.484277 C21.8685012,12.4963944 21.8613931,12.5086131 21.8540045,12.5207088 C21.8382813,12.546275 21.8215099,12.5711307 21.8036865,12.5951593 L21.7870723,12.6170223 C21.7849289,12.6196628 21.7826279,12.6225624 21.7803112,12.625449 L21.7071068,12.7071068 L17.7071068,16.7071068 C17.3165825,17.0976311 16.6834175,17.0976311 16.2928932,16.7071068 C15.9023689,16.3165825 15.9023689,15.6834175 16.2928932,15.2928932 L18.585,13 L7,13 C6.44771525,13 6,12.5522847 6,12 C6,11.4477153 6.44771525,11 7,11 L18.585,11 L16.2928932,8.70710678 C15.9023689,8.31658249 15.9023689,7.68341751 16.2928932,7.29289322 C16.6834175,6.90236893 17.3165825,6.90236893 17.7071068,7.29289322 Z",
3258
+ id: "Combined-Shape"
3259
+ })
3260
+ }))
3261
+ }))]
3262
+ }));
3263
+
3264
+ const OrchestratorPageHeader = ({
3265
+ navigationHeight,
3266
+ getAppLogo,
3267
+ handleLogoutClick
3268
+ }) => {
3269
+ const {
3270
+ theme,
3271
+ multiplyByBaseUnit
3272
+ } = useOrchestratorTheme();
3273
+ return jsxs(EuiHeader, Object.assign({
3274
+ css: {
3275
+ backgroundColor: theme.colors.primary,
3276
+ height: navigationHeight
3277
+ }
3278
+ }, {
3279
+ children: [jsxs(EuiHeaderSection, {
3280
+ children: [jsx(EuiHeaderSectionItem, {
3281
+ children: jsx(EuiHeaderLogo, {
3282
+ iconType: () => getAppLogo(navigationHeight)
3283
+ })
3284
+ }), jsx(EuiHeaderSectionItem, {
3285
+ children: jsx(EnvironmentBadge, {})
3286
+ })]
3287
+ }), jsx(EuiHeaderSection, {
3288
+ children: jsxs(EuiHeaderSectionItem, {
3289
+ children: [jsxs(EuiBadgeGroup, Object.assign({
3290
+ css: {
3291
+ marginRight: multiplyByBaseUnit(2)
3292
+ }
3293
+ }, {
3294
+ children: [jsx(EngineStatusBadge, {}), jsx(FailedTasksBadge, {})]
3295
+ })), jsx(EuiButtonIcon, {
3296
+ "aria-label": "Logout",
3297
+ display: "empty",
3298
+ iconType: () => jsx(LogoutIcon, {
3299
+ color: theme.colors.emptyShade
3300
+ }),
3301
+ css: {
3302
+ width: 48,
3303
+ height: 48
3304
+ },
3305
+ color: "ghost",
3306
+ onClick: () => handleLogoutClick()
3307
+ })]
3308
+ })
3309
+ })]
3310
+ }));
3311
+ };
3312
+
3313
+ const OrchestratorSidebar = ({
3314
+ routeTo
3315
+ }) => jsx(EuiSideNav, {
3316
+ mobileTitle: "Nav Items",
3317
+ isOpenOnMobile: false,
3318
+ items: [{
3319
+ renderItem: () => jsxs(Fragment, {
3320
+ children: [jsx(EuiButton, Object.assign({
3321
+ onClick: e => {
3322
+ e.preventDefault();
3323
+ routeTo('/new-process');
3324
+ },
3325
+ iconType: "plus",
3326
+ fullWidth: true
3327
+ }, {
3328
+ children: "New Process"
3329
+ })), jsx(EuiSpacer, {
3330
+ size: "m"
3331
+ })]
3332
+ }),
3333
+ name: 'Menu',
3334
+ id: 1,
3335
+ items: [{
3336
+ name: 'Start',
3337
+ id: 2,
3338
+ onClick: e => {
3339
+ e.preventDefault();
3340
+ routeTo('/');
3341
+ },
3342
+ href: '/'
3343
+ }, {
3344
+ name: 'Subscriptions',
3345
+ id: 3,
3346
+ // TODO: NEXT router / EUI seem to cause unneeded re-renders. At least in dev mode,
3347
+ onClick: e => {
3348
+ e.preventDefault();
3349
+ routeTo('/subscriptions');
3350
+ },
3351
+ href: '/subscriptions'
3352
+ }]
3353
+ }]
3354
+ });
3355
+
3356
+ const OrchestratorPageTemplate = ({
3357
+ children,
3358
+ routeTo,
3359
+ getAppLogo
3360
+ }) => {
3361
+ const {
3362
+ theme,
3363
+ multiplyByBaseUnit
3364
+ } = useOrchestratorTheme();
3365
+ const [isSideMenuVisible, setIsSideMenuVisible] = useState(true);
3366
+ const navigationHeight = multiplyByBaseUnit(3);
3367
+ return jsxs(Fragment, {
3368
+ children: [jsx(OrchestratorPageHeader, {
3369
+ getAppLogo: getAppLogo,
3370
+ navigationHeight: navigationHeight,
3371
+ handleLogoutClick: () => setIsSideMenuVisible(!isSideMenuVisible)
3372
+ }), jsxs(EuiPageTemplate, Object.assign({
3373
+ panelled: false,
3374
+ grow: false,
3375
+ contentBorder: false,
3376
+ minHeight: `calc(100vh - ${navigationHeight}px)`,
3377
+ restrictWidth: false
3378
+ }, {
3379
+ children: [isSideMenuVisible && jsx(EuiPageTemplate.Sidebar, Object.assign({
3380
+ css: {
3381
+ backgroundColor: theme.colors.body
3382
+ }
3383
+ }, {
3384
+ children: jsx(OrchestratorSidebar, {
3385
+ routeTo: routeTo
3386
+ })
3387
+ })), jsx(EuiPageTemplate.Section, Object.assign({
3388
+ css: {
3389
+ backgroundColor: theme.colors.emptyShade
3390
+ }
3391
+ }, {
3392
+ children: children
3393
+ }))]
3394
+ }))]
3395
+ });
3396
+ };
3397
+
3398
+ const FrequentlyUsed = ({
3399
+ values
3400
+ }) => {
3401
+ return jsx(EuiFlexGroup, Object.assign({
3402
+ wrap: true,
3403
+ gutterSize: "m"
3404
+ }, {
3405
+ children: values.map((value, index) => jsx(EuiFlexItem, Object.assign({
3406
+ grow: false
3407
+ }, {
3408
+ children: jsx(EuiButton, Object.assign({
3409
+ size: "xs",
3410
+ style: {
3411
+ minWidth: 0
3412
+ }
3413
+ }, {
3414
+ children: value
3415
+ }))
3416
+ }), index))
3417
+ }));
3418
+ };
3419
+
3420
+ const ListItemStartPage = ({
3421
+ item,
3422
+ type
3423
+ }) => {
3424
+ const [hoverState, setHoverState] = useState(false);
3425
+ const renderItem = (item, type) => {
3426
+ if (type === 'subscription') {
3427
+ item = item;
3428
+ return jsxs(EuiFlexItem, {
3429
+ children: [jsx(EuiTextColor, Object.assign({
3430
+ color: hoverState ? '#397dc2' : 'black',
3431
+ style: {
3432
+ fontWeight: 500,
3433
+ transition: '0.2s'
3434
+ }
3435
+ }, {
3436
+ children: item.product.name
3437
+ })), jsx(EuiTextColor, Object.assign({
3438
+ style: {
3439
+ fontWeight: 400
3440
+ }
3441
+ }, {
3442
+ children: item.subscription_id.slice(0, 8)
3443
+ }))]
3444
+ });
3445
+ } else if (type === 'process') {
3446
+ item = item;
3447
+ const date = new Date(item.last_modified_at * 1000);
3448
+ const formattedDate = moment(date).format('DD-MM-YYYY, HH:mm');
3449
+ return jsxs(EuiFlexItem, {
3450
+ children: [jsx(EuiTextColor, Object.assign({
3451
+ color: hoverState ? '#397dc2' : 'black',
3452
+ style: {
3453
+ fontWeight: 500,
3454
+ transition: '0.2s'
3455
+ }
3456
+ }, {
3457
+ children: item.workflow
3458
+ })), jsxs(EuiTextColor, Object.assign({
3459
+ style: {
3460
+ fontWeight: 400
3461
+ }
3462
+ }, {
3463
+ children: [formattedDate, " for", ' ', jsx("span", Object.assign({
3464
+ style: {
3465
+ color: '#397dc2'
3466
+ }
3467
+ }, {
3468
+ children: "KLM"
3469
+ }))]
3470
+ }))]
3471
+ });
3472
+ }
3473
+ };
3474
+ return jsx(Link, Object.assign({
3475
+ href: `/subscriptions/${'subscription_id' in item ? item.subscription_id : ''}`
3476
+ }, {
3477
+ children: jsxs(EuiFlexGroup, Object.assign({
3478
+ style: {
3479
+ cursor: 'pointer',
3480
+ paddingBlock: 10
3481
+ },
3482
+ onMouseOver: () => setHoverState(true),
3483
+ onMouseLeave: () => setHoverState(false)
3484
+ }, {
3485
+ children: [renderItem(item, type), jsx(EuiFlexItem, Object.assign({
3486
+ grow: false,
3487
+ style: {
3488
+ display: hoverState ? 'block' : 'none'
3489
+ }
3490
+ }, {
3491
+ children: jsx(EuiIcon, {
3492
+ type: "sortRight",
3493
+ color: "primary"
3494
+ })
3495
+ }))]
3496
+ }))
3497
+ }));
3498
+ };
3499
+
3500
+ function ListStartPage({
3501
+ list
3502
+ }) {
3503
+ return list && jsx(EuiFlexItem, Object.assign({
3504
+ style: {
3505
+ minWidth: 300
3506
+ }
3507
+ }, {
3508
+ children: jsxs(EuiPanel, Object.assign({
3509
+ hasShadow: false,
3510
+ hasBorder: true,
3511
+ paddingSize: "l"
3512
+ }, {
3513
+ children: [jsx("p", Object.assign({
3514
+ style: {
3515
+ fontWeight: 600
3516
+ }
3517
+ }, {
3518
+ children: list.title
3519
+ })), jsx(EuiSpacer, {
3520
+ size: "m"
3521
+ }), list.items.map((item, index) => jsxs(Fragment, {
3522
+ children: [jsx(ListItemStartPage, {
3523
+ item: item,
3524
+ type: list.type
3525
+ }), index === list.items.length - 1 ? null : jsx(EuiHorizontalRule, {
3526
+ margin: "none"
3527
+ })]
3528
+ })), jsx(EuiSpacer, {
3529
+ size: "m"
3530
+ }), jsx(EuiButton, Object.assign({
3531
+ fullWidth: true
3532
+ }, {
3533
+ children: list.buttonName
3534
+ }))]
3535
+ }))
3536
+ }));
3537
+ }
3538
+
3539
+ const MultiListSection = () => {
3540
+ const favouriteSubscriptionsList = useFavouriteSubscriptions();
3541
+ const processesAttentionList = useProcessesAttention();
3542
+ const completedProcessesList = useRecentProcesses();
3543
+ return jsxs(EuiFlexGroup, Object.assign({
3544
+ wrap: true
3545
+ }, {
3546
+ children: [jsx(ListStartPage, {
3547
+ list: favouriteSubscriptionsList
3548
+ }), jsx(ListStartPage, {
3549
+ list: processesAttentionList
3550
+ }), jsx(ListStartPage, {
3551
+ list: completedProcessesList
3552
+ })]
3553
+ }));
3554
+ };
3555
+
3556
+ const NewProcessPanel = () => {
3557
+ const [value, setValue] = useState('');
3558
+ const onChange = e => {
3559
+ setValue(e.target.value);
3560
+ };
3561
+ const frequentlyUsedValues = ['IP Prefix', 'SN8 LightPath', 'NL8 MSC', 'NL8 Service Port 100G', 'SN8 AGGSP'];
3562
+ return jsxs(EuiPanel, Object.assign({
3563
+ hasShadow: false,
3564
+ color: "subdued",
3565
+ paddingSize: "l"
3566
+ }, {
3567
+ children: [jsx(EuiText, {
3568
+ children: jsx("b", {
3569
+ children: "Start a new process"
3570
+ })
3571
+ }), jsx(EuiSpacer, {
3572
+ size: "m"
3573
+ }), jsx(EuiFieldSearch, {
3574
+ fullWidth: true,
3575
+ placeholder: "Search and select process",
3576
+ value: value,
3577
+ onChange: e => onChange(e),
3578
+ "aria-label": "Search and select process"
3579
+ }), jsx(EuiSpacer, {
3580
+ size: "m"
3581
+ }), jsx(EuiTextColor, Object.assign({
3582
+ color: "subdued"
3583
+ }, {
3584
+ children: "Frequently used:"
3585
+ })), jsx(EuiSpacer, {
3586
+ size: "s"
3587
+ }), jsx(FrequentlyUsed, {
3588
+ values: frequentlyUsedValues
3589
+ })]
3590
+ }));
3591
+ };
3592
+
3593
+ const totalStats = [{
3594
+ icon: 'kubernetesPod',
3595
+ name: 'subscriptions',
3596
+ value: 24864,
3597
+ color: 'primary'
3598
+ }, {
3599
+ icon: 'error',
3600
+ name: 'processes failed',
3601
+ value: 462252,
3602
+ color: 'danger'
3603
+ }, {
3604
+ icon: 'checkInCircleFilled',
3605
+ name: 'processes completed',
3606
+ value: 1353632,
3607
+ color: 'success'
3608
+ }];
3609
+ const StatCards = () => {
3610
+ const [stats] = useState(totalStats);
3611
+ const {
3612
+ theme
3613
+ } = useOrchestratorTheme();
3614
+ return jsx(EuiFlexGroup, Object.assign({
3615
+ wrap: true
3616
+ }, {
3617
+ children: stats.map((stat, index) => jsx(EuiFlexItem, {
3618
+ children: jsx(EuiPanel, Object.assign({
3619
+ hasShadow: false,
3620
+ color: "subdued",
3621
+ paddingSize: "l"
3622
+ }, {
3623
+ children: jsxs(EuiFlexGroup, {
3624
+ children: [jsx(EuiFlexItem, Object.assign({
3625
+ grow: false
3626
+ }, {
3627
+ children: jsx(EuiAvatar, {
3628
+ iconSize: "l",
3629
+ size: "xl",
3630
+ type: "space",
3631
+ name: stat.name,
3632
+ style: {
3633
+ maxHeight: 55,
3634
+ maxWidth: 55
3635
+ },
3636
+ iconType: stat.icon,
3637
+ iconColor: theme.colors.ghost,
3638
+ color: theme.colors[stat.color]
3639
+ })
3640
+ })), jsxs(EuiFlexItem, {
3641
+ children: [jsx(EuiText, Object.assign({
3642
+ color: "subdued"
3643
+ }, {
3644
+ children: jsxs("h4", Object.assign({
3645
+ style: {
3646
+ fontWeight: 300
3647
+ }
3648
+ }, {
3649
+ children: ["Total ", stat.name]
3650
+ }))
3651
+ })), jsx(EuiText, {
3652
+ children: jsx("h2", Object.assign({
3653
+ style: {
3654
+ fontWeight: 500
3655
+ }
3656
+ }, {
3657
+ children: stat.value.toLocaleString('de-DE')
3658
+ }))
3659
+ })]
3660
+ })]
3661
+ })
3662
+ }))
3663
+ }, index))
3664
+ }));
3665
+ };
3666
+
3667
+ var $$3 = _export;
3668
+ var $includes = arrayIncludes.includes;
3669
+ var fails$4 = fails$i;
3670
+ var addToUnscopables = addToUnscopables$2;
3671
+
3672
+ // FF99+ bug
3673
+ var BROKEN_ON_SPARSE = fails$4(function () {
3674
+ // eslint-disable-next-line es/no-array-prototype-includes -- detection
3675
+ return !Array(1).includes();
3676
+ });
3677
+
3678
+ // `Array.prototype.includes` method
3679
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
3680
+ $$3({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
3681
+ includes: function includes(el /* , fromIndex = 0 */) {
3682
+ return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
3683
+ }
3684
+ });
3685
+
3686
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
3687
+ addToUnscopables('includes');
3688
+
3689
+ var isObject = isObject$9;
3690
+ var classof$1 = classofRaw$2;
3691
+ var wellKnownSymbol$1 = wellKnownSymbol$g;
3692
+
3693
+ var MATCH$1 = wellKnownSymbol$1('match');
3694
+
3695
+ // `IsRegExp` abstract operation
3696
+ // https://tc39.es/ecma262/#sec-isregexp
3697
+ var isRegexp = function (it) {
3698
+ var isRegExp;
3699
+ return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) == 'RegExp');
3700
+ };
3701
+
3702
+ var isRegExp = isRegexp;
3703
+
3704
+ var $TypeError$1 = TypeError;
3705
+
3706
+ var notARegexp = function (it) {
3707
+ if (isRegExp(it)) {
3708
+ throw $TypeError$1("The method doesn't accept regular expressions");
3709
+ } return it;
3710
+ };
3711
+
3712
+ var classof = classof$4;
3713
+
3714
+ var $String = String;
3715
+
3716
+ var toString$4 = function (argument) {
3717
+ if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
3718
+ return $String(argument);
3719
+ };
3720
+
3721
+ var wellKnownSymbol = wellKnownSymbol$g;
3722
+
3723
+ var MATCH = wellKnownSymbol('match');
3724
+
3725
+ var correctIsRegexpLogic = function (METHOD_NAME) {
3726
+ var regexp = /./;
3727
+ try {
3728
+ '/./'[METHOD_NAME](regexp);
3729
+ } catch (error1) {
3730
+ try {
3731
+ regexp[MATCH] = false;
3732
+ return '/./'[METHOD_NAME](regexp);
3733
+ } catch (error2) { /* empty */ }
3734
+ } return false;
3735
+ };
3736
+
3737
+ var $$2 = _export;
3738
+ var uncurryThis$3 = functionUncurryThis;
3739
+ var notARegExp = notARegexp;
3740
+ var requireObjectCoercible$1 = requireObjectCoercible$4;
3741
+ var toString$3 = toString$4;
3742
+ var correctIsRegExpLogic = correctIsRegexpLogic;
3743
+
3744
+ var stringIndexOf = uncurryThis$3(''.indexOf);
3745
+
3746
+ // `String.prototype.includes` method
3747
+ // https://tc39.es/ecma262/#sec-string.prototype.includes
3748
+ $$2({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
3749
+ includes: function includes(searchString /* , position = 0 */) {
3750
+ return !!~stringIndexOf(
3751
+ toString$3(requireObjectCoercible$1(this)),
3752
+ toString$3(notARegExp(searchString)),
3753
+ arguments.length > 1 ? arguments[1] : undefined
3754
+ );
3755
+ }
3756
+ });
3757
+
3758
+ const CheckmarkCircleFill = ({
3759
+ width: _width = 24,
3760
+ height: _height = 24,
3761
+ color: _color = '#000000'
3762
+ }) => jsxs("svg", Object.assign({
3763
+ width: _width,
3764
+ height: _height,
3765
+ viewBox: "0 0 24 24",
3766
+ version: "1.1",
3767
+ xmlns: "http://www.w3.org/2000/svg"
3768
+ }, {
3769
+ children: [jsx("title", {
3770
+ children: "icon/checkmark-circle-fill"
3771
+ }), jsx("g", Object.assign({
3772
+ id: "Symbols",
3773
+ stroke: "none",
3774
+ strokeWidth: "1",
3775
+ fill: "none",
3776
+ fillRule: "evenodd"
3777
+ }, {
3778
+ children: jsx("g", Object.assign({
3779
+ id: "icon/checkmark-circle-fill",
3780
+ fill: _color
3781
+ }, {
3782
+ children: jsx("path", {
3783
+ d: "M12,20 C16.4183,20 20,16.4183 20,12 C20,7.58172 16.4183,4 12,4 C7.58172,4 4,7.58172 4,12 C4,16.4183 7.58172,20 12,20 Z M15.7071,10.70711 C16.0976,10.31658 16.0976,9.68342 15.7071,9.29289 C15.3166,8.90237 14.6834,8.90237 14.2929,9.29289 L11,12.5858 L9.70711,11.29289 C9.31658,10.90237 8.68342,10.90237 8.29289,11.29289 C7.90237,11.68342 7.90237,12.3166 8.29289,12.7071 L10.29289,14.7071 C10.68342,15.0976 11.31658,15.0976 11.70711,14.7071 L15.7071,10.70711 Z",
3784
+ id: "Shape"
3785
+ })
3786
+ }))
3787
+ }))]
3788
+ }));
3789
+
3790
+ const MinusCircleOutline = ({
3791
+ width: _width = 24,
3792
+ height: _height = 24,
3793
+ color: _color = '#000000'
3794
+ }) => jsxs("svg", Object.assign({
3795
+ width: _width,
3796
+ height: _height,
3797
+ viewBox: "0 0 24 24",
3798
+ version: "1.1",
3799
+ xmlns: "http://www.w3.org/2000/svg"
3800
+ }, {
3801
+ children: [jsx("title", {
3802
+ children: "icon/minus-circle-outline"
3803
+ }), jsx("g", Object.assign({
3804
+ id: "Symbols",
3805
+ stroke: "none",
3806
+ strokeWidth: "1",
3807
+ fill: "none",
3808
+ fillRule: "evenodd"
3809
+ }, {
3810
+ children: jsx("g", Object.assign({
3811
+ id: "icon/minus-circle-outline",
3812
+ fill: _color,
3813
+ fillRule: "nonzero"
3814
+ }, {
3815
+ children: jsx("path", {
3816
+ d: "M12,4 C16.4183,4 20,7.58172 20,12 C20,16.4183 16.4183,20 12,20 C7.58172,20 4,16.4183 4,12 C4,7.58172 7.58172,4 12,4 Z M12,6 C8.6862895,6 6,8.6862895 6,12 C6,15.3137228 8.68628182,18 12,18 C15.3137305,18 18,15.3137305 18,12 C18,8.68628182 15.3137228,6 12,6 Z M15,11 C15.5523,11 16,11.44772 16,12 C16,12.5523 15.5523,13 15,13 L9,13 C8.44772,13 8,12.5523 8,12 C8,11.44772 8.44772,11 9,11 Z",
3817
+ id: "Combined-Shape"
3818
+ })
3819
+ }))
3820
+ }))]
3821
+ }));
3822
+
3823
+ const PlusCircleFill = ({
3824
+ width: _width = 24,
3825
+ height: _height = 24,
3826
+ color: _color = '#000000'
3827
+ }) => jsxs("svg", Object.assign({
3828
+ width: _width,
3829
+ height: _height,
3830
+ viewBox: "0 0 24 24",
3831
+ version: "1.1",
3832
+ xmlns: "http://www.w3.org/2000/svg"
3833
+ }, {
3834
+ children: [jsx("title", {
3835
+ children: "icon/plus-circle-fill"
3836
+ }), jsx("g", Object.assign({
3837
+ id: "Symbols",
3838
+ stroke: "none",
3839
+ strokeWidth: "1",
3840
+ fill: "none",
3841
+ fillRule: "evenodd"
3842
+ }, {
3843
+ children: jsx("g", Object.assign({
3844
+ id: "icon/plus-circle-fill",
3845
+ fill: _color
3846
+ }, {
3847
+ children: jsx("path", {
3848
+ d: "M12,20 C16.4183,20 20,16.4183 20,12 C20,7.58172 16.4183,4 12,4 C7.58172,4 4,7.58172 4,12 C4,16.4183 7.58172,20 12,20 Z M13,9 C13,8.44772 12.5523,8 12,8 C11.44772,8 11,8.44772 11,9 L11,11 L9,11 C8.44772,11 8,11.44771 8,12 C8,12.5523 8.44772,13 9,13 L11,13 L11,15 C11,15.5523 11.44772,16 12,16 C12.5523,16 13,15.5523 13,15 L13,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.44772 15.5523,11 15,11 L13,11 L13,9 Z",
3849
+ id: "Shape"
3850
+ })
3851
+ }))
3852
+ }))]
3853
+ }));
3854
+
3855
+ const ChevronDown = ({
3856
+ width: _width = 24,
3857
+ height: _height = 24,
3858
+ color: _color = '#000000'
3859
+ }) => jsxs("svg", Object.assign({
3860
+ width: _width,
3861
+ height: _height,
3862
+ viewBox: "0 0 24 24",
3863
+ version: "1.1",
3864
+ xmlns: "http://www.w3.org/2000/svg"
3865
+ }, {
3866
+ children: [jsx("title", {
3867
+ children: "icon/chevron-down"
3868
+ }), jsx("g", Object.assign({
3869
+ id: "Symbols",
3870
+ stroke: "none",
3871
+ strokeWidth: "1",
3872
+ fill: "none",
3873
+ fillRule: "evenodd"
3874
+ }, {
3875
+ children: jsx("g", Object.assign({
3876
+ id: "icon/chevron-down",
3877
+ fill: _color
3878
+ }, {
3879
+ children: jsx("path", {
3880
+ d: "M7.29289,9.29289 C7.68342,8.90237 8.31658,8.90237 8.70711,9.29289 L12,12.5858 L15.2929,9.29289 C15.6834,8.90237 16.3166,8.90237 16.7071,9.29289 C17.0976,9.68342 17.0976,10.31658 16.7071,10.70711 L12.7071,14.7071 C12.3166,15.0976 11.68342,15.0976 11.29289,14.7071 L7.29289,10.70711 C6.90237,10.31658 6.90237,9.68342 7.29289,9.29289 Z",
3881
+ id: "Path"
3882
+ })
3883
+ }))
3884
+ }))]
3885
+ }));
3886
+
3887
+ const ArrowNarrowDown = ({
3888
+ width: _width = 16,
3889
+ height: _height = 20,
3890
+ color: _color = '#000000'
3891
+ }) => jsxs("svg", Object.assign({
3892
+ width: _width,
3893
+ height: _height,
3894
+ viewBox: "0 0 16 20",
3895
+ version: "1.1",
3896
+ xmlns: "http://www.w3.org/2000/svg"
3897
+ }, {
3898
+ children: [jsx("title", {
3899
+ children: "icon/arrow-narrow-down"
3900
+ }), jsx("g", Object.assign({
3901
+ id: "Symbols",
3902
+ stroke: "none",
3903
+ strokeWidth: "1",
3904
+ fill: "none",
3905
+ fillRule: "evenodd"
3906
+ }, {
3907
+ children: jsx("g", Object.assign({
3908
+ id: "icon/arrow-narrow-down",
3909
+ fill: _color
3910
+ }, {
3911
+ children: jsx("path", {
3912
+ d: "M4.29289,9.70711 C3.90237,9.31658 3.90237,8.68342 4.29289,8.29289 L7.29289,5.29289 C7.68342,4.90237 8.3166,4.90237 8.7071,5.29289 L11.7071,8.29289 C12.0976,8.68342 12.0976,9.31658 11.7071,9.70711 C11.3166,10.09763 10.6834,10.09763 10.2929,9.70711 L9,8.41421 L9,14 C9,14.5523 8.5523,15 8,15 C7.44772,15 7,14.5523 7,14 L7,8.41421 L5.70711,9.70711 C5.31658,10.09763 4.68342,10.09763 4.29289,9.70711 Z",
3913
+ id: "Path",
3914
+ transform: "translate(7.999988, 10.000000) rotate(-180.000000) translate(-7.999988, -10.000000) "
3915
+ })
3916
+ }))
3917
+ }))]
3918
+ }));
3919
+
3920
+ const ArrowNarrowUp = ({
3921
+ width: _width = 16,
3922
+ height: _height = 20,
3923
+ color: _color = '#000000'
3924
+ }) => jsxs("svg", Object.assign({
3925
+ width: _width,
3926
+ height: _height,
3927
+ viewBox: "0 0 16 20",
3928
+ version: "1.1",
3929
+ xmlns: "http://www.w3.org/2000/svg"
3930
+ }, {
3931
+ children: [jsx("title", {
3932
+ children: "icon/arrow-narrow-up"
3933
+ }), jsx("g", Object.assign({
3934
+ id: "Symbols",
3935
+ stroke: "none",
3936
+ strokeWidth: "1",
3937
+ fill: "none",
3938
+ fillRule: "evenodd"
3939
+ }, {
3940
+ children: jsx("g", Object.assign({
3941
+ id: "icon/arrow-narrow-up",
3942
+ fill: _color
3943
+ }, {
3944
+ children: jsx("path", {
3945
+ d: "M4.29289,9.70711 C3.90237,9.31658 3.90237,8.68342 4.29289,8.29289 L7.29289,5.29289 C7.68342,4.90237 8.3166,4.90237 8.7071,5.29289 L11.7071,8.29289 C12.0976,8.68342 12.0976,9.31658 11.7071,9.70711 C11.3166,10.09763 10.6834,10.09763 10.2929,9.70711 L9,8.41421 L9,14 C9,14.5523 8.5523,15 8,15 C7.44772,15 7,14.5523 7,14 L7,8.41421 L5.70711,9.70711 C5.31658,10.09763 4.68342,10.09763 4.29289,9.70711 Z",
3946
+ id: "Path"
3947
+ })
3948
+ }))
3949
+ }))]
3950
+ }));
3951
+
3952
+ var anObject$1 = anObject$c;
3953
+
3954
+ // `RegExp.prototype.flags` getter implementation
3955
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
3956
+ var regexpFlags = function () {
3957
+ var that = anObject$1(this);
3958
+ var result = '';
3959
+ if (that.hasIndices) result += 'd';
3960
+ if (that.global) result += 'g';
3961
+ if (that.ignoreCase) result += 'i';
3962
+ if (that.multiline) result += 'm';
3963
+ if (that.dotAll) result += 's';
3964
+ if (that.unicode) result += 'u';
3965
+ if (that.unicodeSets) result += 'v';
3966
+ if (that.sticky) result += 'y';
3967
+ return result;
3968
+ };
3969
+
3970
+ var call = functionCall;
3971
+ var hasOwn = hasOwnProperty_1;
3972
+ var isPrototypeOf = objectIsPrototypeOf;
3973
+ var regExpFlags = regexpFlags;
3974
+
3975
+ var RegExpPrototype$1 = RegExp.prototype;
3976
+
3977
+ var regexpGetFlags = function (R) {
3978
+ var flags = R.flags;
3979
+ return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
3980
+ ? call(regExpFlags, R) : flags;
3981
+ };
3982
+
3983
+ var PROPER_FUNCTION_NAME = functionName.PROPER;
3984
+ var defineBuiltIn = defineBuiltIn$6;
3985
+ var anObject = anObject$c;
3986
+ var $toString = toString$4;
3987
+ var fails$3 = fails$i;
3988
+ var getRegExpFlags = regexpGetFlags;
3989
+
3990
+ var TO_STRING = 'toString';
3991
+ var RegExpPrototype = RegExp.prototype;
3992
+ var nativeToString = RegExpPrototype[TO_STRING];
3993
+
3994
+ var NOT_GENERIC = fails$3(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
3995
+ // FF44- RegExp#toString has a wrong name
3996
+ var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;
3997
+
3998
+ // `RegExp.prototype.toString` method
3999
+ // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
4000
+ if (NOT_GENERIC || INCORRECT_NAME) {
4001
+ defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
4002
+ var R = anObject(this);
4003
+ var pattern = $toString(R.source);
4004
+ var flags = $toString(getRegExpFlags(R));
4005
+ return '/' + pattern + '/' + flags;
4006
+ }, { unsafe: true });
4007
+ }
4008
+
4009
+ var SortDirection;
4010
+ (function (SortDirection) {
4011
+ SortDirection["Asc"] = "ASC";
4012
+ SortDirection["Desc"] = "DESC";
4013
+ })(SortDirection || (SortDirection = {}));
4014
+ const getSortDirectionFromString = sortOrder => {
4015
+ if (!sortOrder) {
4016
+ return undefined;
4017
+ }
4018
+ switch (sortOrder.toUpperCase()) {
4019
+ case SortDirection.Asc.toString():
4020
+ return SortDirection.Asc;
4021
+ case SortDirection.Desc.toString():
4022
+ return SortDirection.Desc;
4023
+ default:
4024
+ return undefined;
4025
+ }
4026
+ };
4027
+
4028
+ const TableHeaderCell = ({
4029
+ sortDirection,
4030
+ children,
4031
+ onClick
4032
+ }) => jsxs("div", Object.assign({
4033
+ css: {
4034
+ display: 'flex',
4035
+ alignItems: 'center',
4036
+ cursor: 'pointer'
4037
+ },
4038
+ onClick: onClick
4039
+ }, {
4040
+ children: [jsx("div", {
4041
+ children: children
4042
+ }), sortDirection && jsx(SortDirectionIcon, {
4043
+ sortDirection: sortDirection
4044
+ })]
4045
+ }));
4046
+ const SortDirectionIcon = ({
4047
+ sortDirection
4048
+ }) => {
4049
+ const {
4050
+ theme
4051
+ } = useOrchestratorTheme();
4052
+ return sortDirection === SortDirection.Asc ? jsx(ArrowNarrowUp, {
4053
+ color: theme.colors.subduedText,
4054
+ height: 24,
4055
+ width: 24
4056
+ }) : jsx(ArrowNarrowDown, {
4057
+ color: theme.colors.subduedText,
4058
+ height: 24,
4059
+ width: 24
4060
+ });
4061
+ };
4062
+
4063
+ const Table = ({
4064
+ data,
4065
+ columns,
4066
+ hiddenColumns,
4067
+ dataSorting,
4068
+ pagination,
4069
+ isLoading,
4070
+ onCriteriaChange,
4071
+ onDataSort
4072
+ }) => jsx(EuiBasicTable, {
4073
+ tableCaption: "Demo of EuiBasicTable",
4074
+ items: data,
4075
+ rowHeader: "firstName",
4076
+ columns: mapTableColumnsToEuiColumns(columns, hiddenColumns, dataSorting, onDataSort),
4077
+ pagination: pagination,
4078
+ onChange: onCriteriaChange,
4079
+ loading: isLoading
4080
+ });
4081
+ function mapTableColumnsToEuiColumns(columns, hiddenColumns, dataSorting, onDataSort) {
4082
+ function isVisibleColumn(columnKey) {
4083
+ return !(hiddenColumns === null || hiddenColumns === void 0 ? void 0 : hiddenColumns.includes(columnKey));
4084
+ }
4085
+ function mapToEuiColumn(colKey) {
4086
+ const typedColumnKey = colKey;
4087
+ const column = columns[typedColumnKey];
4088
+ const {
4089
+ name
4090
+ } = column;
4091
+ const sortDirection = (dataSorting === null || dataSorting === void 0 ? void 0 : dataSorting.columnId) === colKey ? dataSorting.sortDirection : undefined;
4092
+ return Object.assign(Object.assign({}, column), {
4093
+ field: typedColumnKey,
4094
+ name: name && jsx(TableHeaderCell, Object.assign({
4095
+ sortDirection: sortDirection,
4096
+ onClick: () => onDataSort === null || onDataSort === void 0 ? void 0 : onDataSort(typedColumnKey)
4097
+ }, {
4098
+ children: name
4099
+ })),
4100
+ truncateText: true
4101
+ });
4102
+ }
4103
+ return Object.keys(columns).filter(isVisibleColumn).map(mapToEuiColumn);
4104
+ }
4105
+
4106
+ var tryToString = tryToString$5;
4107
+
4108
+ var $TypeError = TypeError;
4109
+
4110
+ var deletePropertyOrThrow$1 = function (O, P) {
4111
+ if (!delete O[P]) throw $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
4112
+ };
4113
+
4114
+ var toPropertyKey = toPropertyKey$3;
4115
+ var definePropertyModule = objectDefineProperty;
4116
+ var createPropertyDescriptor = createPropertyDescriptor$4;
4117
+
4118
+ var createProperty$1 = function (object, key, value) {
4119
+ var propertyKey = toPropertyKey(key);
4120
+ if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
4121
+ else object[propertyKey] = value;
4122
+ };
4123
+
4124
+ var toAbsoluteIndex = toAbsoluteIndex$2;
4125
+ var lengthOfArrayLike$1 = lengthOfArrayLike$4;
4126
+ var createProperty = createProperty$1;
4127
+
4128
+ var $Array = Array;
4129
+ var max = Math.max;
4130
+
4131
+ var arraySliceSimple = function (O, start, end) {
4132
+ var length = lengthOfArrayLike$1(O);
4133
+ var k = toAbsoluteIndex(start, length);
4134
+ var fin = toAbsoluteIndex(end === undefined ? length : end, length);
4135
+ var result = $Array(max(fin - k, 0));
4136
+ for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
4137
+ result.length = n;
4138
+ return result;
4139
+ };
4140
+
4141
+ var arraySlice = arraySliceSimple;
4142
+
4143
+ var floor = Math.floor;
4144
+
4145
+ var mergeSort = function (array, comparefn) {
4146
+ var length = array.length;
4147
+ var middle = floor(length / 2);
4148
+ return length < 8 ? insertionSort(array, comparefn) : merge(
4149
+ array,
4150
+ mergeSort(arraySlice(array, 0, middle), comparefn),
4151
+ mergeSort(arraySlice(array, middle), comparefn),
4152
+ comparefn
4153
+ );
4154
+ };
4155
+
4156
+ var insertionSort = function (array, comparefn) {
4157
+ var length = array.length;
4158
+ var i = 1;
4159
+ var element, j;
4160
+
4161
+ while (i < length) {
4162
+ j = i;
4163
+ element = array[i];
4164
+ while (j && comparefn(array[j - 1], element) > 0) {
4165
+ array[j] = array[--j];
4166
+ }
4167
+ if (j !== i++) array[j] = element;
4168
+ } return array;
4169
+ };
4170
+
4171
+ var merge = function (array, left, right, comparefn) {
4172
+ var llength = left.length;
4173
+ var rlength = right.length;
4174
+ var lindex = 0;
4175
+ var rindex = 0;
4176
+
4177
+ while (lindex < llength || rindex < rlength) {
4178
+ array[lindex + rindex] = (lindex < llength && rindex < rlength)
4179
+ ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
4180
+ : lindex < llength ? left[lindex++] : right[rindex++];
4181
+ } return array;
4182
+ };
4183
+
4184
+ var arraySort = mergeSort;
4185
+
4186
+ var fails$2 = fails$i;
4187
+
4188
+ var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
4189
+ var method = [][METHOD_NAME];
4190
+ return !!method && fails$2(function () {
4191
+ // eslint-disable-next-line no-useless-call -- required for testing
4192
+ method.call(null, argument || function () { return 1; }, 1);
4193
+ });
4194
+ };
4195
+
4196
+ var userAgent$1 = engineUserAgent;
4197
+
4198
+ var firefox = userAgent$1.match(/firefox\/(\d+)/i);
4199
+
4200
+ var engineFfVersion = !!firefox && +firefox[1];
4201
+
4202
+ var UA = engineUserAgent;
4203
+
4204
+ var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
4205
+
4206
+ var userAgent = engineUserAgent;
4207
+
4208
+ var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
4209
+
4210
+ var engineWebkitVersion = !!webkit && +webkit[1];
4211
+
4212
+ var $$1 = _export;
4213
+ var uncurryThis$2 = functionUncurryThis;
4214
+ var aCallable = aCallable$9;
4215
+ var toObject = toObject$4;
4216
+ var lengthOfArrayLike = lengthOfArrayLike$4;
4217
+ var deletePropertyOrThrow = deletePropertyOrThrow$1;
4218
+ var toString$2 = toString$4;
4219
+ var fails$1 = fails$i;
4220
+ var internalSort = arraySort;
4221
+ var arrayMethodIsStrict = arrayMethodIsStrict$1;
4222
+ var FF = engineFfVersion;
4223
+ var IE_OR_EDGE = engineIsIeOrEdge;
4224
+ var V8 = engineV8Version;
4225
+ var WEBKIT = engineWebkitVersion;
4226
+
4227
+ var test = [];
4228
+ var nativeSort = uncurryThis$2(test.sort);
4229
+ var push = uncurryThis$2(test.push);
4230
+
4231
+ // IE8-
4232
+ var FAILS_ON_UNDEFINED = fails$1(function () {
4233
+ test.sort(undefined);
4234
+ });
4235
+ // V8 bug
4236
+ var FAILS_ON_NULL = fails$1(function () {
4237
+ test.sort(null);
4238
+ });
4239
+ // Old WebKit
4240
+ var STRICT_METHOD = arrayMethodIsStrict('sort');
4241
+
4242
+ var STABLE_SORT = !fails$1(function () {
4243
+ // feature detection can be too slow, so check engines versions
4244
+ if (V8) return V8 < 70;
4245
+ if (FF && FF > 3) return;
4246
+ if (IE_OR_EDGE) return true;
4247
+ if (WEBKIT) return WEBKIT < 603;
4248
+
4249
+ var result = '';
4250
+ var code, chr, value, index;
4251
+
4252
+ // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
4253
+ for (code = 65; code < 76; code++) {
4254
+ chr = String.fromCharCode(code);
4255
+
4256
+ switch (code) {
4257
+ case 66: case 69: case 70: case 72: value = 3; break;
4258
+ case 68: case 71: value = 4; break;
4259
+ default: value = 2;
4260
+ }
4261
+
4262
+ for (index = 0; index < 47; index++) {
4263
+ test.push({ k: chr + index, v: value });
4264
+ }
4265
+ }
4266
+
4267
+ test.sort(function (a, b) { return b.v - a.v; });
4268
+
4269
+ for (index = 0; index < test.length; index++) {
4270
+ chr = test[index].k.charAt(0);
4271
+ if (result.charAt(result.length - 1) !== chr) result += chr;
4272
+ }
4273
+
4274
+ return result !== 'DGBEFHACIJK';
4275
+ });
4276
+
4277
+ var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
4278
+
4279
+ var getSortCompare = function (comparefn) {
4280
+ return function (x, y) {
4281
+ if (y === undefined) return -1;
4282
+ if (x === undefined) return 1;
4283
+ if (comparefn !== undefined) return +comparefn(x, y) || 0;
4284
+ return toString$2(x) > toString$2(y) ? 1 : -1;
4285
+ };
4286
+ };
4287
+
4288
+ // `Array.prototype.sort` method
4289
+ // https://tc39.es/ecma262/#sec-array.prototype.sort
4290
+ $$1({ target: 'Array', proto: true, forced: FORCED$1 }, {
4291
+ sort: function sort(comparefn) {
4292
+ if (comparefn !== undefined) aCallable(comparefn);
4293
+
4294
+ var array = toObject(this);
4295
+
4296
+ if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
4297
+
4298
+ var items = [];
4299
+ var arrayLength = lengthOfArrayLike(array);
4300
+ var itemsLength, index;
4301
+
4302
+ for (index = 0; index < arrayLength; index++) {
4303
+ if (index in array) push(items, array[index]);
4304
+ }
4305
+
4306
+ internalSort(items, getSortCompare(comparefn));
4307
+
4308
+ itemsLength = lengthOfArrayLike(items);
4309
+ index = 0;
4310
+
4311
+ while (index < itemsLength) array[index] = items[index++];
4312
+ while (index < arrayLength) deletePropertyOrThrow(array, index++);
4313
+
4314
+ return array;
4315
+ }
4316
+ });
4317
+
4318
+ function getInitialColumnOrder(columns, initialColumnOrder) {
4319
+ const euiDataGridColumns = Object.keys(columns).map(colKey => {
4320
+ const column = columns[colKey];
4321
+ return Object.assign({
4322
+ id: colKey,
4323
+ isExpandable: false
4324
+ }, column);
4325
+ });
4326
+ const columnOrderIds = initialColumnOrder.map(columnId => columnId.toString());
4327
+ return euiDataGridColumns.slice().sort((left, right) => columnOrderIds.indexOf(left.id) - columnOrderIds.indexOf(right.id));
4328
+ }
4329
+ function columnSortToEuiDataGridSorting(columnSort, updateColumnSort) {
4330
+ return {
4331
+ columns: columnSort ? [{
4332
+ id: columnSort.columnId.toString(),
4333
+ direction: columnSort.sortDirection === SortDirection.Asc ? 'asc' : 'desc'
4334
+ }] : [],
4335
+ onSort: columns => {
4336
+ const lastSortData = columns.slice(-1)[0];
4337
+ if (updateColumnSort && lastSortData) {
4338
+ updateColumnSort({
4339
+ columnId: lastSortData.id,
4340
+ sortDirection: lastSortData.direction === 'asc' ? SortDirection.Asc : SortDirection.Desc
4341
+ });
4342
+ }
4343
+ }
4344
+ };
4345
+ }
4346
+
4347
+ // Total height of grid button bar, table header and pagination bar
4348
+ const EUI_DATA_GRID_HEIGHT_OFFSET = 103;
4349
+ const GRID_STYLE = {
4350
+ border: 'horizontal',
4351
+ stripes: false,
4352
+ rowHover: 'highlight',
4353
+ header: 'shade',
4354
+ cellPadding: 'l',
4355
+ fontSize: 'm',
4356
+ footer: 'overline'
4357
+ };
4358
+ const DataGridTable = ({
4359
+ data,
4360
+ pagination,
4361
+ columns,
4362
+ leadingControlColumns,
4363
+ trailingControlColumns,
4364
+ initialColumnOrder,
4365
+ dataSorting,
4366
+ handleRowClick,
4367
+ updateDataSorting
4368
+ }) => {
4369
+ const initialColumnOrderRef = useRef(getInitialColumnOrder(columns, initialColumnOrder));
4370
+ const defaultVisibleColumns = initialColumnOrder.filter(columnId => !columns[columnId].isHiddenByDefault).map(columnId => columnId.toString());
4371
+ const [visibleColumns, setVisibleColumns] = useState(defaultVisibleColumns);
4372
+ const renderCellValue = ({
4373
+ rowIndex,
4374
+ columnId,
4375
+ setCellProps
4376
+ }) => {
4377
+ const {
4378
+ pageSize,
4379
+ pageIndex
4380
+ } = pagination;
4381
+ const rowIndexOnPage = rowIndex - pageIndex * pageSize;
4382
+ const dataRow = data[rowIndexOnPage];
4383
+ if (!dataRow) {
4384
+ return;
4385
+ }
4386
+ const column = columns[columnId];
4387
+ const cellValue = dataRow[columnId];
4388
+ handleRowClick && setCellProps({
4389
+ css: {
4390
+ cursor: 'pointer'
4391
+ },
4392
+ onClick: () => handleRowClick(dataRow)
4393
+ });
4394
+ return column.renderCell ? column.renderCell(cellValue, dataRow) : `${cellValue}`;
4395
+ };
4396
+ const controlColumnToEuiDataGridControlColumnMapper = ({
4397
+ id,
4398
+ width,
4399
+ rowCellRender
4400
+ }) => ({
4401
+ id,
4402
+ width,
4403
+ headerCellRender: props => null,
4404
+ rowCellRender: ({
4405
+ rowIndex
4406
+ }) => {
4407
+ const {
4408
+ pageSize,
4409
+ pageIndex
4410
+ } = pagination;
4411
+ const rowIndexOnPage = rowIndex - pageIndex * pageSize;
4412
+ const dataRow = data[rowIndexOnPage];
4413
+ return rowCellRender(dataRow);
4414
+ }
4415
+ });
4416
+ const euiDataGridLeadingControlColumns = leadingControlColumns === null || leadingControlColumns === void 0 ? void 0 : leadingControlColumns.map(controlColumnToEuiDataGridControlColumnMapper);
4417
+ const euiDataGridTrailingControlColumns = trailingControlColumns === null || trailingControlColumns === void 0 ? void 0 : trailingControlColumns.map(controlColumnToEuiDataGridControlColumnMapper);
4418
+ const gridHeightValue = pagination.pageSize * 40 + EUI_DATA_GRID_HEIGHT_OFFSET;
4419
+ return jsx(EuiDataGrid, {
4420
+ "aria-label": "Data Grid",
4421
+ columns: initialColumnOrderRef.current,
4422
+ leadingControlColumns: euiDataGridLeadingControlColumns,
4423
+ trailingControlColumns: euiDataGridTrailingControlColumns,
4424
+ height: `${gridHeightValue}px`,
4425
+ gridStyle: GRID_STYLE,
4426
+ columnVisibility: {
4427
+ visibleColumns,
4428
+ setVisibleColumns
4429
+ },
4430
+ pagination: pagination,
4431
+ sorting: columnSortToEuiDataGridSorting(dataSorting, updateDataSorting),
4432
+ rowCount: pagination.totalRecords,
4433
+ renderCellValue: renderCellValue
4434
+ });
4435
+ };
4436
+
4437
+ const defaultOrchestratorTheme = {
4438
+ colors: {
4439
+ DARK: {},
4440
+ LIGHT: {
4441
+ primary: '#0077C8',
4442
+ accent: '#E67300',
4443
+ success: '#008939',
3183
4444
  warning: '#FFC514',
3184
4445
  danger: '#BD271F',
3185
4446
  primaryText: '#0067AC',
@@ -3215,6 +4476,80 @@ const defaultOrchestratorTheme = {
3215
4476
  }
3216
4477
  };
3217
4478
 
4479
+ // a string of all valid unicode whitespaces
4480
+ var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
4481
+ '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
4482
+
4483
+ var uncurryThis$1 = functionUncurryThis;
4484
+ var requireObjectCoercible = requireObjectCoercible$4;
4485
+ var toString$1 = toString$4;
4486
+ var whitespaces$1 = whitespaces$2;
4487
+
4488
+ var replace = uncurryThis$1(''.replace);
4489
+ var ltrim = RegExp('^[' + whitespaces$1 + ']+');
4490
+ var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
4491
+
4492
+ // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
4493
+ var createMethod = function (TYPE) {
4494
+ return function ($this) {
4495
+ var string = toString$1(requireObjectCoercible($this));
4496
+ if (TYPE & 1) string = replace(string, ltrim, '');
4497
+ if (TYPE & 2) string = replace(string, rtrim, '$1');
4498
+ return string;
4499
+ };
4500
+ };
4501
+
4502
+ var stringTrim = {
4503
+ // `String.prototype.{ trimLeft, trimStart }` methods
4504
+ // https://tc39.es/ecma262/#sec-string.prototype.trimstart
4505
+ start: createMethod(1),
4506
+ // `String.prototype.{ trimRight, trimEnd }` methods
4507
+ // https://tc39.es/ecma262/#sec-string.prototype.trimend
4508
+ end: createMethod(2),
4509
+ // `String.prototype.trim` method
4510
+ // https://tc39.es/ecma262/#sec-string.prototype.trim
4511
+ trim: createMethod(3)
4512
+ };
4513
+
4514
+ var global$1 = global$i;
4515
+ var fails = fails$i;
4516
+ var uncurryThis = functionUncurryThis;
4517
+ var toString = toString$4;
4518
+ var trim = stringTrim.trim;
4519
+ var whitespaces = whitespaces$2;
4520
+
4521
+ var $parseInt$1 = global$1.parseInt;
4522
+ var Symbol$1 = global$1.Symbol;
4523
+ var ITERATOR = Symbol$1 && Symbol$1.iterator;
4524
+ var hex = /^[+-]?0x/i;
4525
+ var exec = uncurryThis(hex.exec);
4526
+ var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
4527
+ // MS Edge 18- broken with boxed symbols
4528
+ || (ITERATOR && !fails(function () { $parseInt$1(Object(ITERATOR)); }));
4529
+
4530
+ // `parseInt` method
4531
+ // https://tc39.es/ecma262/#sec-parseint-string-radix
4532
+ var numberParseInt = FORCED ? function parseInt(string, radix) {
4533
+ var S = trim(toString(string));
4534
+ return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
4535
+ } : $parseInt$1;
4536
+
4537
+ var $ = _export;
4538
+ var $parseInt = numberParseInt;
4539
+
4540
+ // `parseInt` method
4541
+ // https://tc39.es/ecma262/#sec-parseint-string-radix
4542
+ $({ global: true, forced: parseInt != $parseInt }, {
4543
+ parseInt: $parseInt
4544
+ });
4545
+
4546
+ const parseDate = date => {
4547
+ if (date === null || date === '') {
4548
+ return null;
4549
+ }
4550
+ return new Date(parseInt(date) * 1000);
4551
+ };
4552
+
3218
4553
  const getStatusBadgeColor = status => {
3219
4554
  const statusColors = {
3220
4555
  terminated: 'danger',
@@ -3230,4 +4565,11 @@ const getStatusBadgeColor = status => {
3230
4565
  statusColors[status] : 'primary';
3231
4566
  };
3232
4567
 
3233
- export { CustomButton, OrchestratorConfigContext, OrchestratorConfigProvider, OrchestratorPageTemplate, defaultOrchestratorTheme, getStatusBadgeColor, useOrchestratorConfig };
4568
+ function getTypedFieldFromObject(field, object) {
4569
+ if (!Object.keys(object).includes(field)) {
4570
+ return null;
4571
+ }
4572
+ return field;
4573
+ }
4574
+
4575
+ export { ArrowNarrowDown, ArrowNarrowUp, Badge, CheckmarkCircleFill, ChevronDown, DataGridTable, EngineStatusBadge, Environment, EnvironmentBadge, FailedTasksBadge, FrequentlyUsed, HeaderBadge, ListItemStartPage, LogoutIcon, MinusCircleOutline, MultiListSection, NewProcessPanel, OrchestratorConfigContext, OrchestratorConfigProvider, OrchestratorPageHeader, OrchestratorPageTemplate, OrchestratorSidebar, PlusCircleFill, ProcessStatus, SortDirection, SortDirectionIcon, StatCards, StatusDotIcon, SubscriptionStatusBadge, Table, TableHeaderCell, XCircleFill, columnSortToEuiDataGridSorting, defaultOrchestratorTheme, getInitialColumnOrder, getSortDirectionFromString, getStatusBadgeColor, getTypedFieldFromObject, parseDate, useEngineStatusQuery, useFavouriteSubscriptions, useOrchestratorConfig, useOrchestratorTheme, useProcessStatusCountsQuery, useProcessesAttention, useQueryWithGraphql, useRecentProcesses, useStringQueryWithGraphql };