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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
2
2
  import { css } from '@emotion/react';
3
- import { useState } from 'react';
4
- import { useEuiTheme, EuiFlexGroup, EuiFlexItem, EuiText, EuiButtonIcon, EuiPageTemplate } from '@elastic/eui';
3
+ import { useState, createContext, useContext } from 'react';
4
+ import { useEuiTheme, EuiBadge, EuiHeader, EuiHeaderSection, EuiHeaderSectionItem, EuiHeaderLogo, EuiBadgeGroup, EuiButtonIcon, EuiSideNav, EuiPageTemplate } from '@elastic/eui';
5
+ import { useQuery } from 'react-query';
6
+ import { useRouter } from 'next/router';
5
7
 
6
8
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
7
9
 
@@ -10,7 +12,7 @@ var check = function (it) {
10
12
  };
11
13
 
12
14
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
13
- var global$b =
15
+ var global$g =
14
16
  // eslint-disable-next-line es/no-global-this -- safe
15
17
  check(typeof globalThis == 'object' && globalThis) ||
16
18
  check(typeof window == 'object' && window) ||
@@ -22,7 +24,7 @@ var global$b =
22
24
 
23
25
  var objectGetOwnPropertyDescriptor = {};
24
26
 
25
- var fails$b = function (exec) {
27
+ var fails$d = function (exec) {
26
28
  try {
27
29
  return !!exec();
28
30
  } catch (error) {
@@ -30,44 +32,44 @@ var fails$b = function (exec) {
30
32
  }
31
33
  };
32
34
 
33
- var fails$a = fails$b;
35
+ var fails$c = fails$d;
34
36
 
35
37
  // Detect IE8's incomplete defineProperty implementation
36
- var descriptors = !fails$a(function () {
38
+ var descriptors = !fails$c(function () {
37
39
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
38
40
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
39
41
  });
40
42
 
41
- var fails$9 = fails$b;
43
+ var fails$b = fails$d;
42
44
 
43
- var functionBindNative = !fails$9(function () {
45
+ var functionBindNative = !fails$b(function () {
44
46
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
45
47
  var test = (function () { /* empty */ }).bind();
46
48
  // eslint-disable-next-line no-prototype-builtins -- safe
47
49
  return typeof test != 'function' || test.hasOwnProperty('prototype');
48
50
  });
49
51
 
50
- var NATIVE_BIND$1 = functionBindNative;
52
+ var NATIVE_BIND$3 = functionBindNative;
51
53
 
52
- var call$6 = Function.prototype.call;
54
+ var call$e = Function.prototype.call;
53
55
 
54
- var functionCall = NATIVE_BIND$1 ? call$6.bind(call$6) : function () {
55
- return call$6.apply(call$6, arguments);
56
+ var functionCall = NATIVE_BIND$3 ? call$e.bind(call$e) : function () {
57
+ return call$e.apply(call$e, arguments);
56
58
  };
57
59
 
58
60
  var objectPropertyIsEnumerable = {};
59
61
 
60
62
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
61
63
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
62
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
64
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
63
65
 
64
66
  // Nashorn ~ JDK8 bug
65
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
67
+ var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
66
68
 
67
69
  // `Object.prototype.propertyIsEnumerable` method implementation
68
70
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
69
71
  objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
70
- var descriptor = getOwnPropertyDescriptor$1(this, V);
72
+ var descriptor = getOwnPropertyDescriptor$2(this, V);
71
73
  return !!descriptor && descriptor.enumerable;
72
74
  } : $propertyIsEnumerable;
73
75
 
@@ -80,57 +82,57 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
80
82
  };
81
83
  };
82
84
 
83
- var NATIVE_BIND = functionBindNative;
85
+ var NATIVE_BIND$2 = functionBindNative;
84
86
 
85
- var FunctionPrototype$1 = Function.prototype;
86
- var call$5 = FunctionPrototype$1.call;
87
- var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$5, call$5);
87
+ 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);
88
90
 
89
- var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
91
+ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
90
92
  return function () {
91
- return call$5.apply(fn, arguments);
93
+ return call$d.apply(fn, arguments);
92
94
  };
93
95
  };
94
96
 
95
- var uncurryThis$9 = functionUncurryThis;
97
+ var uncurryThis$e = functionUncurryThis;
96
98
 
97
- var toString$1 = uncurryThis$9({}.toString);
98
- var stringSlice = uncurryThis$9(''.slice);
99
+ var toString$1 = uncurryThis$e({}.toString);
100
+ var stringSlice$1 = uncurryThis$e(''.slice);
99
101
 
100
- var classofRaw = function (it) {
101
- return stringSlice(toString$1(it), 8, -1);
102
+ var classofRaw$2 = function (it) {
103
+ return stringSlice$1(toString$1(it), 8, -1);
102
104
  };
103
105
 
104
- var uncurryThis$8 = functionUncurryThis;
105
- var fails$8 = fails$b;
106
- var classof = classofRaw;
106
+ var uncurryThis$d = functionUncurryThis;
107
+ var fails$a = fails$d;
108
+ var classof$4 = classofRaw$2;
107
109
 
108
- var $Object$3 = Object;
109
- var split = uncurryThis$8(''.split);
110
+ var $Object$4 = Object;
111
+ var split = uncurryThis$d(''.split);
110
112
 
111
113
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
112
- var indexedObject = fails$8(function () {
114
+ var indexedObject = fails$a(function () {
113
115
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
114
116
  // eslint-disable-next-line no-prototype-builtins -- safe
115
- return !$Object$3('z').propertyIsEnumerable(0);
117
+ return !$Object$4('z').propertyIsEnumerable(0);
116
118
  }) ? function (it) {
117
- return classof(it) == 'String' ? split(it, '') : $Object$3(it);
118
- } : $Object$3;
119
+ return classof$4(it) == 'String' ? split(it, '') : $Object$4(it);
120
+ } : $Object$4;
119
121
 
120
122
  // we can't use just `it == null` since of `document.all` special case
121
123
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
122
- var isNullOrUndefined$2 = function (it) {
124
+ var isNullOrUndefined$4 = function (it) {
123
125
  return it === null || it === undefined;
124
126
  };
125
127
 
126
- var isNullOrUndefined$1 = isNullOrUndefined$2;
128
+ var isNullOrUndefined$3 = isNullOrUndefined$4;
127
129
 
128
- var $TypeError$6 = TypeError;
130
+ var $TypeError$c = TypeError;
129
131
 
130
132
  // `RequireObjectCoercible` abstract operation
131
133
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
132
134
  var requireObjectCoercible$2 = function (it) {
133
- if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it);
135
+ if (isNullOrUndefined$3(it)) throw $TypeError$c("Can't call method on " + it);
134
136
  return it;
135
137
  };
136
138
 
@@ -159,48 +161,46 @@ var documentAll$1 = $documentAll$1.all;
159
161
 
160
162
  // `IsCallable` abstract operation
161
163
  // https://tc39.es/ecma262/#sec-iscallable
162
- var isCallable$e = $documentAll$1.IS_HTMLDDA ? function (argument) {
164
+ var isCallable$k = $documentAll$1.IS_HTMLDDA ? function (argument) {
163
165
  return typeof argument == 'function' || argument === documentAll$1;
164
166
  } : function (argument) {
165
167
  return typeof argument == 'function';
166
168
  };
167
169
 
168
- var isCallable$d = isCallable$e;
170
+ var isCallable$j = isCallable$k;
169
171
  var $documentAll = documentAll_1;
170
172
 
171
173
  var documentAll = $documentAll.all;
172
174
 
173
- var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
174
- return typeof it == 'object' ? it !== null : isCallable$d(it) || it === documentAll;
175
+ var isObject$8 = $documentAll.IS_HTMLDDA ? function (it) {
176
+ return typeof it == 'object' ? it !== null : isCallable$j(it) || it === documentAll;
175
177
  } : function (it) {
176
- return typeof it == 'object' ? it !== null : isCallable$d(it);
178
+ return typeof it == 'object' ? it !== null : isCallable$j(it);
177
179
  };
178
180
 
179
- var global$a = global$b;
180
- var isCallable$c = isCallable$e;
181
+ var global$f = global$g;
182
+ var isCallable$i = isCallable$k;
181
183
 
182
184
  var aFunction = function (argument) {
183
- return isCallable$c(argument) ? argument : undefined;
185
+ return isCallable$i(argument) ? argument : undefined;
184
186
  };
185
187
 
186
- var getBuiltIn$4 = function (namespace, method) {
187
- return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
188
+ var getBuiltIn$7 = function (namespace, method) {
189
+ return arguments.length < 2 ? aFunction(global$f[namespace]) : global$f[namespace] && global$f[namespace][method];
188
190
  };
189
191
 
190
- var uncurryThis$7 = functionUncurryThis;
191
-
192
- var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
192
+ var uncurryThis$c = functionUncurryThis;
193
193
 
194
- var getBuiltIn$3 = getBuiltIn$4;
194
+ var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
195
195
 
196
- var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
196
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
197
197
 
198
- var global$9 = global$b;
199
- var userAgent = engineUserAgent;
198
+ var global$e = global$g;
199
+ var userAgent$3 = engineUserAgent;
200
200
 
201
- var process = global$9.process;
202
- var Deno = global$9.Deno;
203
- var versions = process && process.versions || Deno && Deno.version;
201
+ var process$4 = global$e.process;
202
+ var Deno$1 = global$e.Deno;
203
+ var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
204
204
  var v8 = versions && versions.v8;
205
205
  var match, version;
206
206
 
@@ -213,10 +213,10 @@ if (v8) {
213
213
 
214
214
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
215
215
  // so check `userAgent` even if `.v8` exists, but 0
216
- if (!version && userAgent) {
217
- match = userAgent.match(/Edge\/(\d+)/);
216
+ if (!version && userAgent$3) {
217
+ match = userAgent$3.match(/Edge\/(\d+)/);
218
218
  if (!match || match[1] >= 74) {
219
- match = userAgent.match(/Chrome\/(\d+)/);
219
+ match = userAgent$3.match(/Chrome\/(\d+)/);
220
220
  if (match) version = +match[1];
221
221
  }
222
222
  }
@@ -225,17 +225,17 @@ var engineV8Version = version;
225
225
 
226
226
  /* eslint-disable es/no-symbol -- required for testing */
227
227
 
228
- var V8_VERSION = engineV8Version;
229
- var fails$7 = fails$b;
228
+ var V8_VERSION$1 = engineV8Version;
229
+ var fails$9 = fails$d;
230
230
 
231
231
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
232
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
232
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$9(function () {
233
233
  var symbol = Symbol();
234
234
  // Chrome 38 Symbol has incorrect toString conversion
235
235
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
236
236
  return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
237
237
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
238
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
238
+ !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
239
239
  });
240
240
 
241
241
  /* eslint-disable es/no-symbol -- required for testing */
@@ -246,87 +246,87 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
246
246
  && !Symbol.sham
247
247
  && typeof Symbol.iterator == 'symbol';
248
248
 
249
- var getBuiltIn$2 = getBuiltIn$4;
250
- var isCallable$b = isCallable$e;
251
- var isPrototypeOf = objectIsPrototypeOf;
249
+ var getBuiltIn$6 = getBuiltIn$7;
250
+ var isCallable$h = isCallable$k;
251
+ var isPrototypeOf$2 = objectIsPrototypeOf;
252
252
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
253
253
 
254
- var $Object$2 = Object;
254
+ var $Object$3 = Object;
255
255
 
256
256
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
257
257
  return typeof it == 'symbol';
258
258
  } : function (it) {
259
- var $Symbol = getBuiltIn$2('Symbol');
260
- return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
259
+ var $Symbol = getBuiltIn$6('Symbol');
260
+ return isCallable$h($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
261
261
  };
262
262
 
263
- var $String$2 = String;
263
+ var $String$3 = String;
264
264
 
265
- var tryToString$1 = function (argument) {
265
+ var tryToString$4 = function (argument) {
266
266
  try {
267
- return $String$2(argument);
267
+ return $String$3(argument);
268
268
  } catch (error) {
269
269
  return 'Object';
270
270
  }
271
271
  };
272
272
 
273
- var isCallable$a = isCallable$e;
274
- var tryToString = tryToString$1;
273
+ var isCallable$g = isCallable$k;
274
+ var tryToString$3 = tryToString$4;
275
275
 
276
- var $TypeError$5 = TypeError;
276
+ var $TypeError$b = TypeError;
277
277
 
278
278
  // `Assert: IsCallable(argument) is true`
279
- var aCallable$1 = function (argument) {
280
- if (isCallable$a(argument)) return argument;
281
- throw $TypeError$5(tryToString(argument) + ' is not a function');
279
+ var aCallable$8 = function (argument) {
280
+ if (isCallable$g(argument)) return argument;
281
+ throw $TypeError$b(tryToString$3(argument) + ' is not a function');
282
282
  };
283
283
 
284
- var aCallable = aCallable$1;
285
- var isNullOrUndefined = isNullOrUndefined$2;
284
+ var aCallable$7 = aCallable$8;
285
+ var isNullOrUndefined$2 = isNullOrUndefined$4;
286
286
 
287
287
  // `GetMethod` abstract operation
288
288
  // https://tc39.es/ecma262/#sec-getmethod
289
- var getMethod$1 = function (V, P) {
289
+ var getMethod$3 = function (V, P) {
290
290
  var func = V[P];
291
- return isNullOrUndefined(func) ? undefined : aCallable(func);
291
+ return isNullOrUndefined$2(func) ? undefined : aCallable$7(func);
292
292
  };
293
293
 
294
- var call$4 = functionCall;
295
- var isCallable$9 = isCallable$e;
296
- var isObject$5 = isObject$6;
294
+ var call$c = functionCall;
295
+ var isCallable$f = isCallable$k;
296
+ var isObject$7 = isObject$8;
297
297
 
298
- var $TypeError$4 = TypeError;
298
+ var $TypeError$a = TypeError;
299
299
 
300
300
  // `OrdinaryToPrimitive` abstract operation
301
301
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
302
302
  var ordinaryToPrimitive$1 = function (input, pref) {
303
303
  var fn, val;
304
- if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
305
- if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$4(fn, input))) return val;
306
- if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
307
- throw $TypeError$4("Can't convert object to primitive value");
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");
308
308
  };
309
309
 
310
310
  var shared$3 = {exports: {}};
311
311
 
312
- var global$8 = global$b;
312
+ var global$d = global$g;
313
313
 
314
314
  // eslint-disable-next-line es/no-object-defineproperty -- safe
315
- var defineProperty$5 = Object.defineProperty;
315
+ var defineProperty$6 = Object.defineProperty;
316
316
 
317
317
  var defineGlobalProperty$3 = function (key, value) {
318
318
  try {
319
- defineProperty$5(global$8, key, { value: value, configurable: true, writable: true });
319
+ defineProperty$6(global$d, key, { value: value, configurable: true, writable: true });
320
320
  } catch (error) {
321
- global$8[key] = value;
321
+ global$d[key] = value;
322
322
  } return value;
323
323
  };
324
324
 
325
- var global$7 = global$b;
325
+ var global$c = global$g;
326
326
  var defineGlobalProperty$2 = defineGlobalProperty$3;
327
327
 
328
328
  var SHARED = '__core-js_shared__';
329
- var store$3 = global$7[SHARED] || defineGlobalProperty$2(SHARED, {});
329
+ var store$3 = global$c[SHARED] || defineGlobalProperty$2(SHARED, {});
330
330
 
331
331
  var sharedStore = store$3;
332
332
 
@@ -335,27 +335,27 @@ var store$2 = sharedStore;
335
335
  (shared$3.exports = function (key, value) {
336
336
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
337
337
  })('versions', []).push({
338
- version: '3.27.1',
338
+ version: '3.29.0',
339
339
  mode: 'global',
340
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
341
- license: 'https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE',
340
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
341
+ license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
342
342
  source: 'https://github.com/zloirock/core-js'
343
343
  });
344
344
 
345
345
  var requireObjectCoercible = requireObjectCoercible$2;
346
346
 
347
- var $Object$1 = Object;
347
+ var $Object$2 = Object;
348
348
 
349
349
  // `ToObject` abstract operation
350
350
  // https://tc39.es/ecma262/#sec-toobject
351
351
  var toObject$3 = function (argument) {
352
- return $Object$1(requireObjectCoercible(argument));
352
+ return $Object$2(requireObjectCoercible(argument));
353
353
  };
354
354
 
355
- var uncurryThis$6 = functionUncurryThis;
355
+ var uncurryThis$b = functionUncurryThis;
356
356
  var toObject$2 = toObject$3;
357
357
 
358
- var hasOwnProperty = uncurryThis$6({}.hasOwnProperty);
358
+ var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
359
359
 
360
360
  // `HasOwnProperty` abstract operation
361
361
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -364,62 +364,56 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
364
364
  return hasOwnProperty(toObject$2(it), key);
365
365
  };
366
366
 
367
- var uncurryThis$5 = functionUncurryThis;
367
+ var uncurryThis$a = functionUncurryThis;
368
368
 
369
369
  var id = 0;
370
370
  var postfix = Math.random();
371
- var toString = uncurryThis$5(1.0.toString);
371
+ var toString = uncurryThis$a(1.0.toString);
372
372
 
373
373
  var uid$2 = function (key) {
374
374
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
375
375
  };
376
376
 
377
- var global$6 = global$b;
377
+ var global$b = global$g;
378
378
  var shared$2 = shared$3.exports;
379
- var hasOwn$8 = hasOwnProperty_1;
379
+ var hasOwn$9 = hasOwnProperty_1;
380
380
  var uid$1 = uid$2;
381
381
  var NATIVE_SYMBOL = symbolConstructorDetection;
382
382
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
383
383
 
384
+ var Symbol$1 = global$b.Symbol;
384
385
  var WellKnownSymbolsStore = shared$2('wks');
385
- var Symbol$1 = global$6.Symbol;
386
- var symbolFor = Symbol$1 && Symbol$1['for'];
387
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
388
-
389
- var wellKnownSymbol$6 = function (name) {
390
- if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
391
- var description = 'Symbol.' + name;
392
- if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
393
- WellKnownSymbolsStore[name] = Symbol$1[name];
394
- } else if (USE_SYMBOL_AS_UID && symbolFor) {
395
- WellKnownSymbolsStore[name] = symbolFor(description);
396
- } else {
397
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
398
- }
386
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
387
+
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]
392
+ : createWellKnownSymbol('Symbol.' + name);
399
393
  } return WellKnownSymbolsStore[name];
400
394
  };
401
395
 
402
- var call$3 = functionCall;
403
- var isObject$4 = isObject$6;
396
+ var call$b = functionCall;
397
+ var isObject$6 = isObject$8;
404
398
  var isSymbol$1 = isSymbol$2;
405
- var getMethod = getMethod$1;
399
+ var getMethod$2 = getMethod$3;
406
400
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
407
- var wellKnownSymbol$5 = wellKnownSymbol$6;
401
+ var wellKnownSymbol$d = wellKnownSymbol$e;
408
402
 
409
- var $TypeError$3 = TypeError;
410
- var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
403
+ var $TypeError$9 = TypeError;
404
+ var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
411
405
 
412
406
  // `ToPrimitive` abstract operation
413
407
  // https://tc39.es/ecma262/#sec-toprimitive
414
408
  var toPrimitive$1 = function (input, pref) {
415
- if (!isObject$4(input) || isSymbol$1(input)) return input;
416
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
409
+ if (!isObject$6(input) || isSymbol$1(input)) return input;
410
+ var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
417
411
  var result;
418
412
  if (exoticToPrim) {
419
413
  if (pref === undefined) pref = 'default';
420
- result = call$3(exoticToPrim, input, pref);
421
- if (!isObject$4(result) || isSymbol$1(result)) return result;
422
- throw $TypeError$3("Can't convert object to primitive value");
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");
423
417
  }
424
418
  if (pref === undefined) pref = 'number';
425
419
  return ordinaryToPrimitive(input, pref);
@@ -435,36 +429,36 @@ var toPropertyKey$2 = function (argument) {
435
429
  return isSymbol(key) ? key : key + '';
436
430
  };
437
431
 
438
- var global$5 = global$b;
439
- var isObject$3 = isObject$6;
432
+ var global$a = global$g;
433
+ var isObject$5 = isObject$8;
440
434
 
441
- var document$1 = global$5.document;
435
+ var document$3 = global$a.document;
442
436
  // typeof document.createElement is 'object' in old IE
443
- var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
437
+ var EXISTS$1 = isObject$5(document$3) && isObject$5(document$3.createElement);
444
438
 
445
439
  var documentCreateElement$2 = function (it) {
446
- return EXISTS$1 ? document$1.createElement(it) : {};
440
+ return EXISTS$1 ? document$3.createElement(it) : {};
447
441
  };
448
442
 
449
- var DESCRIPTORS$9 = descriptors;
450
- var fails$6 = fails$b;
451
- var createElement = documentCreateElement$2;
443
+ var DESCRIPTORS$a = descriptors;
444
+ var fails$8 = fails$d;
445
+ var createElement$1 = documentCreateElement$2;
452
446
 
453
447
  // Thanks to IE8 for its funny defineProperty
454
- var ie8DomDefine = !DESCRIPTORS$9 && !fails$6(function () {
448
+ var ie8DomDefine = !DESCRIPTORS$a && !fails$8(function () {
455
449
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
456
- return Object.defineProperty(createElement('div'), 'a', {
450
+ return Object.defineProperty(createElement$1('div'), 'a', {
457
451
  get: function () { return 7; }
458
452
  }).a != 7;
459
453
  });
460
454
 
461
- var DESCRIPTORS$8 = descriptors;
462
- var call$2 = functionCall;
455
+ var DESCRIPTORS$9 = descriptors;
456
+ var call$a = functionCall;
463
457
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
464
458
  var createPropertyDescriptor$2 = createPropertyDescriptor$3;
465
459
  var toIndexedObject$4 = toIndexedObject$5;
466
460
  var toPropertyKey$1 = toPropertyKey$2;
467
- var hasOwn$7 = hasOwnProperty_1;
461
+ var hasOwn$8 = hasOwnProperty_1;
468
462
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
469
463
 
470
464
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -472,23 +466,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
472
466
 
473
467
  // `Object.getOwnPropertyDescriptor` method
474
468
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
475
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
469
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
476
470
  O = toIndexedObject$4(O);
477
471
  P = toPropertyKey$1(P);
478
472
  if (IE8_DOM_DEFINE$1) try {
479
473
  return $getOwnPropertyDescriptor$1(O, P);
480
474
  } catch (error) { /* empty */ }
481
- if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
475
+ if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$a(propertyIsEnumerableModule$1.f, O, P), O[P]);
482
476
  };
483
477
 
484
478
  var objectDefineProperty = {};
485
479
 
486
- var DESCRIPTORS$7 = descriptors;
487
- var fails$5 = fails$b;
480
+ var DESCRIPTORS$8 = descriptors;
481
+ var fails$7 = fails$d;
488
482
 
489
483
  // V8 ~ Chrome 36-
490
484
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
491
- var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$5(function () {
485
+ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$7(function () {
492
486
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
493
487
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
494
488
  value: 42,
@@ -496,24 +490,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$5(function () {
496
490
  }).prototype != 42;
497
491
  });
498
492
 
499
- var isObject$2 = isObject$6;
493
+ var isObject$4 = isObject$8;
500
494
 
501
- var $String$1 = String;
502
- var $TypeError$2 = TypeError;
495
+ var $String$2 = String;
496
+ var $TypeError$8 = TypeError;
503
497
 
504
498
  // `Assert: Type(argument) is Object`
505
- var anObject$5 = function (argument) {
506
- if (isObject$2(argument)) return argument;
507
- throw $TypeError$2($String$1(argument) + ' is not an 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');
508
502
  };
509
503
 
510
- var DESCRIPTORS$6 = descriptors;
504
+ var DESCRIPTORS$7 = descriptors;
511
505
  var IE8_DOM_DEFINE = ie8DomDefine;
512
506
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
513
- var anObject$4 = anObject$5;
507
+ var anObject$9 = anObject$a;
514
508
  var toPropertyKey = toPropertyKey$2;
515
509
 
516
- var $TypeError$1 = TypeError;
510
+ var $TypeError$7 = TypeError;
517
511
  // eslint-disable-next-line es/no-object-defineproperty -- safe
518
512
  var $defineProperty = Object.defineProperty;
519
513
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -524,10 +518,10 @@ var WRITABLE = 'writable';
524
518
 
525
519
  // `Object.defineProperty` method
526
520
  // https://tc39.es/ecma262/#sec-object.defineproperty
527
- objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
528
- anObject$4(O);
521
+ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
522
+ anObject$9(O);
529
523
  P = toPropertyKey(P);
530
- anObject$4(Attributes);
524
+ anObject$9(Attributes);
531
525
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
532
526
  var current = $getOwnPropertyDescriptor(O, P);
533
527
  if (current && current[WRITABLE]) {
@@ -540,41 +534,41 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
540
534
  }
541
535
  } return $defineProperty(O, P, Attributes);
542
536
  } : $defineProperty : function defineProperty(O, P, Attributes) {
543
- anObject$4(O);
537
+ anObject$9(O);
544
538
  P = toPropertyKey(P);
545
- anObject$4(Attributes);
539
+ anObject$9(Attributes);
546
540
  if (IE8_DOM_DEFINE) try {
547
541
  return $defineProperty(O, P, Attributes);
548
542
  } catch (error) { /* empty */ }
549
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
543
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError$7('Accessors not supported');
550
544
  if ('value' in Attributes) O[P] = Attributes.value;
551
545
  return O;
552
546
  };
553
547
 
554
- var DESCRIPTORS$5 = descriptors;
548
+ var DESCRIPTORS$6 = descriptors;
555
549
  var definePropertyModule$3 = objectDefineProperty;
556
550
  var createPropertyDescriptor$1 = createPropertyDescriptor$3;
557
551
 
558
- var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
552
+ var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value) {
559
553
  return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
560
554
  } : function (object, key, value) {
561
555
  object[key] = value;
562
556
  return object;
563
557
  };
564
558
 
565
- var makeBuiltIn$2 = {exports: {}};
559
+ var makeBuiltIn$3 = {exports: {}};
566
560
 
567
- var DESCRIPTORS$4 = descriptors;
568
- var hasOwn$6 = hasOwnProperty_1;
561
+ var DESCRIPTORS$5 = descriptors;
562
+ var hasOwn$7 = hasOwnProperty_1;
569
563
 
570
- var FunctionPrototype = Function.prototype;
564
+ var FunctionPrototype$1 = Function.prototype;
571
565
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
572
- var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
566
+ var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
573
567
 
574
- var EXISTS = hasOwn$6(FunctionPrototype, 'name');
568
+ var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
575
569
  // additional protection from minified / mangled / dropped function names
576
570
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
577
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
571
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
578
572
 
579
573
  var functionName = {
580
574
  EXISTS: EXISTS,
@@ -582,27 +576,27 @@ var functionName = {
582
576
  CONFIGURABLE: CONFIGURABLE
583
577
  };
584
578
 
585
- var uncurryThis$4 = functionUncurryThis;
586
- var isCallable$8 = isCallable$e;
579
+ var uncurryThis$9 = functionUncurryThis;
580
+ var isCallable$e = isCallable$k;
587
581
  var store$1 = sharedStore;
588
582
 
589
- var functionToString = uncurryThis$4(Function.toString);
583
+ var functionToString = uncurryThis$9(Function.toString);
590
584
 
591
585
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
592
- if (!isCallable$8(store$1.inspectSource)) {
586
+ if (!isCallable$e(store$1.inspectSource)) {
593
587
  store$1.inspectSource = function (it) {
594
588
  return functionToString(it);
595
589
  };
596
590
  }
597
591
 
598
- var inspectSource$1 = store$1.inspectSource;
592
+ var inspectSource$3 = store$1.inspectSource;
599
593
 
600
- var global$4 = global$b;
601
- var isCallable$7 = isCallable$e;
594
+ var global$9 = global$g;
595
+ var isCallable$d = isCallable$k;
602
596
 
603
- var WeakMap$1 = global$4.WeakMap;
597
+ var WeakMap$1 = global$9.WeakMap;
604
598
 
605
- var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
599
+ var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
606
600
 
607
601
  var shared$1 = shared$3.exports;
608
602
  var uid = uid$2;
@@ -616,28 +610,28 @@ var sharedKey$3 = function (key) {
616
610
  var hiddenKeys$4 = {};
617
611
 
618
612
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
619
- var global$3 = global$b;
620
- var isObject$1 = isObject$6;
613
+ var global$8 = global$g;
614
+ var isObject$3 = isObject$8;
621
615
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
622
- var hasOwn$5 = hasOwnProperty_1;
616
+ var hasOwn$6 = hasOwnProperty_1;
623
617
  var shared = sharedStore;
624
618
  var sharedKey$2 = sharedKey$3;
625
619
  var hiddenKeys$3 = hiddenKeys$4;
626
620
 
627
621
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
628
- var TypeError$1 = global$3.TypeError;
629
- var WeakMap = global$3.WeakMap;
630
- var set, get, has;
622
+ var TypeError$2 = global$8.TypeError;
623
+ var WeakMap = global$8.WeakMap;
624
+ var set$1, get, has;
631
625
 
632
626
  var enforce = function (it) {
633
- return has(it) ? get(it) : set(it, {});
627
+ return has(it) ? get(it) : set$1(it, {});
634
628
  };
635
629
 
636
630
  var getterFor = function (TYPE) {
637
631
  return function (it) {
638
632
  var state;
639
- if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
640
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
633
+ if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
634
+ throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
641
635
  } return state;
642
636
  };
643
637
  };
@@ -649,8 +643,8 @@ if (NATIVE_WEAK_MAP || shared.state) {
649
643
  store.has = store.has;
650
644
  store.set = store.set;
651
645
  /* eslint-enable no-self-assign -- prototype methods protection */
652
- set = function (it, metadata) {
653
- if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
646
+ set$1 = function (it, metadata) {
647
+ if (store.has(it)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
654
648
  metadata.facade = it;
655
649
  store.set(it, metadata);
656
650
  return metadata;
@@ -664,88 +658,93 @@ if (NATIVE_WEAK_MAP || shared.state) {
664
658
  } else {
665
659
  var STATE = sharedKey$2('state');
666
660
  hiddenKeys$3[STATE] = true;
667
- set = function (it, metadata) {
668
- if (hasOwn$5(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
661
+ set$1 = function (it, metadata) {
662
+ if (hasOwn$6(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
669
663
  metadata.facade = it;
670
664
  createNonEnumerableProperty$3(it, STATE, metadata);
671
665
  return metadata;
672
666
  };
673
667
  get = function (it) {
674
- return hasOwn$5(it, STATE) ? it[STATE] : {};
668
+ return hasOwn$6(it, STATE) ? it[STATE] : {};
675
669
  };
676
670
  has = function (it) {
677
- return hasOwn$5(it, STATE);
671
+ return hasOwn$6(it, STATE);
678
672
  };
679
673
  }
680
674
 
681
675
  var internalState = {
682
- set: set,
676
+ set: set$1,
683
677
  get: get,
684
678
  has: has,
685
679
  enforce: enforce,
686
680
  getterFor: getterFor
687
681
  };
688
682
 
689
- var fails$4 = fails$b;
690
- var isCallable$6 = isCallable$e;
691
- var hasOwn$4 = hasOwnProperty_1;
692
- var DESCRIPTORS$3 = descriptors;
683
+ var uncurryThis$8 = functionUncurryThis;
684
+ var fails$6 = fails$d;
685
+ var isCallable$c = isCallable$k;
686
+ var hasOwn$5 = hasOwnProperty_1;
687
+ var DESCRIPTORS$4 = descriptors;
693
688
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
694
- var inspectSource = inspectSource$1;
695
- var InternalStateModule$1 = internalState;
689
+ var inspectSource$2 = inspectSource$3;
690
+ var InternalStateModule$2 = internalState;
696
691
 
697
- var enforceInternalState = InternalStateModule$1.enforce;
698
- var getInternalState$1 = InternalStateModule$1.get;
692
+ var enforceInternalState = InternalStateModule$2.enforce;
693
+ var getInternalState$1 = InternalStateModule$2.get;
694
+ var $String$1 = String;
699
695
  // eslint-disable-next-line es/no-object-defineproperty -- safe
700
- var defineProperty$4 = Object.defineProperty;
696
+ var defineProperty$5 = Object.defineProperty;
697
+ var stringSlice = uncurryThis$8(''.slice);
698
+ var replace = uncurryThis$8(''.replace);
699
+ var join = uncurryThis$8([].join);
701
700
 
702
- var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$4(function () {
703
- return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
701
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$6(function () {
702
+ return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
704
703
  });
705
704
 
706
705
  var TEMPLATE = String(String).split('String');
707
706
 
708
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
709
- if (String(name).slice(0, 7) === 'Symbol(') {
710
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
707
+ 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') + ']';
711
710
  }
712
711
  if (options && options.getter) name = 'get ' + name;
713
712
  if (options && options.setter) name = 'set ' + name;
714
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
715
- if (DESCRIPTORS$3) defineProperty$4(value, 'name', { value: name, configurable: true });
713
+ if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
714
+ if (DESCRIPTORS$4) defineProperty$5(value, 'name', { value: name, configurable: true });
716
715
  else value.name = name;
717
716
  }
718
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
719
- defineProperty$4(value, 'length', { value: options.arity });
717
+ if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
718
+ defineProperty$5(value, 'length', { value: options.arity });
720
719
  }
721
720
  try {
722
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
723
- if (DESCRIPTORS$3) defineProperty$4(value, 'prototype', { writable: false });
721
+ if (options && hasOwn$5(options, 'constructor') && options.constructor) {
722
+ if (DESCRIPTORS$4) defineProperty$5(value, 'prototype', { writable: false });
724
723
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
725
724
  } else if (value.prototype) value.prototype = undefined;
726
725
  } catch (error) { /* empty */ }
727
726
  var state = enforceInternalState(value);
728
- if (!hasOwn$4(state, 'source')) {
729
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
727
+ if (!hasOwn$5(state, 'source')) {
728
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
730
729
  } return value;
731
730
  };
732
731
 
733
732
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
734
733
  // eslint-disable-next-line no-extend-native -- required
735
- Function.prototype.toString = makeBuiltIn$1(function toString() {
736
- return isCallable$6(this) && getInternalState$1(this).source || inspectSource(this);
734
+ Function.prototype.toString = makeBuiltIn$2(function toString() {
735
+ return isCallable$c(this) && getInternalState$1(this).source || inspectSource$2(this);
737
736
  }, 'toString');
738
737
 
739
- var isCallable$5 = isCallable$e;
738
+ var isCallable$b = isCallable$k;
740
739
  var definePropertyModule$2 = objectDefineProperty;
741
- var makeBuiltIn = makeBuiltIn$2.exports;
740
+ var makeBuiltIn$1 = makeBuiltIn$3.exports;
742
741
  var defineGlobalProperty$1 = defineGlobalProperty$3;
743
742
 
744
- var defineBuiltIn$3 = function (O, key, value, options) {
743
+ var defineBuiltIn$5 = function (O, key, value, options) {
745
744
  if (!options) options = {};
746
745
  var simple = options.enumerable;
747
746
  var name = options.name !== undefined ? options.name : key;
748
- if (isCallable$5(value)) makeBuiltIn(value, name, options);
747
+ if (isCallable$b(value)) makeBuiltIn$1(value, name, options);
749
748
  if (options.global) {
750
749
  if (simple) O[key] = value;
751
750
  else defineGlobalProperty$1(key, value);
@@ -814,19 +813,19 @@ var toLength = toLength$1;
814
813
 
815
814
  // `LengthOfArrayLike` abstract operation
816
815
  // https://tc39.es/ecma262/#sec-lengthofarraylike
817
- var lengthOfArrayLike$1 = function (obj) {
816
+ var lengthOfArrayLike$2 = function (obj) {
818
817
  return toLength(obj.length);
819
818
  };
820
819
 
821
820
  var toIndexedObject$3 = toIndexedObject$5;
822
821
  var toAbsoluteIndex = toAbsoluteIndex$1;
823
- var lengthOfArrayLike = lengthOfArrayLike$1;
822
+ var lengthOfArrayLike$1 = lengthOfArrayLike$2;
824
823
 
825
824
  // `Array.prototype.{ indexOf, includes }` methods implementation
826
825
  var createMethod = function (IS_INCLUDES) {
827
826
  return function ($this, el, fromIndex) {
828
827
  var O = toIndexedObject$3($this);
829
- var length = lengthOfArrayLike(O);
828
+ var length = lengthOfArrayLike$1(O);
830
829
  var index = toAbsoluteIndex(fromIndex, length);
831
830
  var value;
832
831
  // Array#includes uses SameValueZero equality algorithm
@@ -851,22 +850,22 @@ var arrayIncludes = {
851
850
  indexOf: createMethod(false)
852
851
  };
853
852
 
854
- var uncurryThis$3 = functionUncurryThis;
855
- var hasOwn$3 = hasOwnProperty_1;
853
+ var uncurryThis$7 = functionUncurryThis;
854
+ var hasOwn$4 = hasOwnProperty_1;
856
855
  var toIndexedObject$2 = toIndexedObject$5;
857
856
  var indexOf = arrayIncludes.indexOf;
858
857
  var hiddenKeys$2 = hiddenKeys$4;
859
858
 
860
- var push = uncurryThis$3([].push);
859
+ var push = uncurryThis$7([].push);
861
860
 
862
861
  var objectKeysInternal = function (object, names) {
863
862
  var O = toIndexedObject$2(object);
864
863
  var i = 0;
865
864
  var result = [];
866
865
  var key;
867
- for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
866
+ for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push(result, key);
868
867
  // Don't enum bug & hidden keys
869
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
868
+ while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
870
869
  ~indexOf(result, key) || push(result, key);
871
870
  }
872
871
  return result;
@@ -900,22 +899,22 @@ var objectGetOwnPropertySymbols = {};
900
899
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
901
900
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
902
901
 
903
- var getBuiltIn$1 = getBuiltIn$4;
904
- var uncurryThis$2 = functionUncurryThis;
902
+ var getBuiltIn$5 = getBuiltIn$7;
903
+ var uncurryThis$6 = functionUncurryThis;
905
904
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
906
905
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
907
- var anObject$3 = anObject$5;
906
+ var anObject$8 = anObject$a;
908
907
 
909
- var concat$1 = uncurryThis$2([].concat);
908
+ var concat$1 = uncurryThis$6([].concat);
910
909
 
911
910
  // all object keys, includes non-enumerable and symbols
912
- var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
913
- var keys = getOwnPropertyNamesModule.f(anObject$3(it));
911
+ var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
912
+ var keys = getOwnPropertyNamesModule.f(anObject$8(it));
914
913
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
915
914
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
916
915
  };
917
916
 
918
- var hasOwn$2 = hasOwnProperty_1;
917
+ var hasOwn$3 = hasOwnProperty_1;
919
918
  var ownKeys = ownKeys$1;
920
919
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
921
920
  var definePropertyModule$1 = objectDefineProperty;
@@ -926,42 +925,42 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
926
925
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
927
926
  for (var i = 0; i < keys.length; i++) {
928
927
  var key = keys[i];
929
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
928
+ if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
930
929
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
931
930
  }
932
931
  }
933
932
  };
934
933
 
935
- var fails$3 = fails$b;
936
- var isCallable$4 = isCallable$e;
934
+ var fails$5 = fails$d;
935
+ var isCallable$a = isCallable$k;
937
936
 
938
937
  var replacement = /#|\.prototype\./;
939
938
 
940
- var isForced$1 = function (feature, detection) {
939
+ var isForced$2 = function (feature, detection) {
941
940
  var value = data[normalize(feature)];
942
941
  return value == POLYFILL ? true
943
942
  : value == NATIVE ? false
944
- : isCallable$4(detection) ? fails$3(detection)
943
+ : isCallable$a(detection) ? fails$5(detection)
945
944
  : !!detection;
946
945
  };
947
946
 
948
- var normalize = isForced$1.normalize = function (string) {
947
+ var normalize = isForced$2.normalize = function (string) {
949
948
  return String(string).replace(replacement, '.').toLowerCase();
950
949
  };
951
950
 
952
- var data = isForced$1.data = {};
953
- var NATIVE = isForced$1.NATIVE = 'N';
954
- var POLYFILL = isForced$1.POLYFILL = 'P';
951
+ var data = isForced$2.data = {};
952
+ var NATIVE = isForced$2.NATIVE = 'N';
953
+ var POLYFILL = isForced$2.POLYFILL = 'P';
955
954
 
956
- var isForced_1 = isForced$1;
955
+ var isForced_1 = isForced$2;
957
956
 
958
- var global$2 = global$b;
959
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
957
+ var global$7 = global$g;
958
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
960
959
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
961
- var defineBuiltIn$2 = defineBuiltIn$3;
960
+ var defineBuiltIn$4 = defineBuiltIn$5;
962
961
  var defineGlobalProperty = defineGlobalProperty$3;
963
962
  var copyConstructorProperties = copyConstructorProperties$1;
964
- var isForced = isForced_1;
963
+ var isForced$1 = isForced_1;
965
964
 
966
965
  /*
967
966
  options.target - name of the target object
@@ -984,19 +983,19 @@ var _export = function (options, source) {
984
983
  var STATIC = options.stat;
985
984
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
986
985
  if (GLOBAL) {
987
- target = global$2;
986
+ target = global$7;
988
987
  } else if (STATIC) {
989
- target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
988
+ target = global$7[TARGET] || defineGlobalProperty(TARGET, {});
990
989
  } else {
991
- target = (global$2[TARGET] || {}).prototype;
990
+ target = (global$7[TARGET] || {}).prototype;
992
991
  }
993
992
  if (target) for (key in source) {
994
993
  sourceProperty = source[key];
995
994
  if (options.dontCallGetSet) {
996
- descriptor = getOwnPropertyDescriptor(target, key);
995
+ descriptor = getOwnPropertyDescriptor$1(target, key);
997
996
  targetProperty = descriptor && descriptor.value;
998
997
  } else targetProperty = target[key];
999
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
998
+ FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1000
999
  // contained in target
1001
1000
  if (!FORCED && targetProperty !== undefined) {
1002
1001
  if (typeof sourceProperty == typeof targetProperty) continue;
@@ -1006,7 +1005,7 @@ var _export = function (options, source) {
1006
1005
  if (options.sham || (targetProperty && targetProperty.sham)) {
1007
1006
  createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1008
1007
  }
1009
- defineBuiltIn$2(target, key, sourceProperty, options);
1008
+ defineBuiltIn$4(target, key, sourceProperty, options);
1010
1009
  }
1011
1010
  };
1012
1011
 
@@ -1020,10 +1019,10 @@ var objectKeys$2 = Object.keys || function keys(O) {
1020
1019
  return internalObjectKeys(O, enumBugKeys$1);
1021
1020
  };
1022
1021
 
1023
- var DESCRIPTORS$2 = descriptors;
1024
- var uncurryThis$1 = functionUncurryThis;
1025
- var call$1 = functionCall;
1026
- var fails$2 = fails$b;
1022
+ var DESCRIPTORS$3 = descriptors;
1023
+ var uncurryThis$5 = functionUncurryThis;
1024
+ var call$9 = functionCall;
1025
+ var fails$4 = fails$d;
1027
1026
  var objectKeys$1 = objectKeys$2;
1028
1027
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1029
1028
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
@@ -1033,17 +1032,17 @@ var IndexedObject = indexedObject;
1033
1032
  // eslint-disable-next-line es/no-object-assign -- safe
1034
1033
  var $assign = Object.assign;
1035
1034
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1036
- var defineProperty$3 = Object.defineProperty;
1037
- var concat = uncurryThis$1([].concat);
1035
+ var defineProperty$4 = Object.defineProperty;
1036
+ var concat = uncurryThis$5([].concat);
1038
1037
 
1039
1038
  // `Object.assign` method
1040
1039
  // https://tc39.es/ecma262/#sec-object.assign
1041
- var objectAssign = !$assign || fails$2(function () {
1040
+ var objectAssign = !$assign || fails$4(function () {
1042
1041
  // should have correct order of operations (Edge bug)
1043
- if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1042
+ if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
1044
1043
  enumerable: true,
1045
1044
  get: function () {
1046
- defineProperty$3(this, 'b', {
1045
+ defineProperty$4(this, 'b', {
1047
1046
  value: 3,
1048
1047
  enumerable: false
1049
1048
  });
@@ -1072,18 +1071,18 @@ var objectAssign = !$assign || fails$2(function () {
1072
1071
  var key;
1073
1072
  while (length > j) {
1074
1073
  key = keys[j++];
1075
- if (!DESCRIPTORS$2 || call$1(propertyIsEnumerable, S, key)) T[key] = S[key];
1074
+ if (!DESCRIPTORS$3 || call$9(propertyIsEnumerable, S, key)) T[key] = S[key];
1076
1075
  }
1077
1076
  } return T;
1078
1077
  } : $assign;
1079
1078
 
1080
- var $$1 = _export;
1079
+ var $$7 = _export;
1081
1080
  var assign = objectAssign;
1082
1081
 
1083
1082
  // `Object.assign` method
1084
1083
  // https://tc39.es/ecma262/#sec-object.assign
1085
1084
  // eslint-disable-next-line es/no-object-assign -- required for testing
1086
- $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1085
+ $$7({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1087
1086
  assign: assign
1088
1087
  });
1089
1088
 
@@ -1111,18 +1110,18 @@ const CustomButton = ({
1111
1110
 
1112
1111
  var objectDefineProperties = {};
1113
1112
 
1114
- var DESCRIPTORS$1 = descriptors;
1113
+ var DESCRIPTORS$2 = descriptors;
1115
1114
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1116
1115
  var definePropertyModule = objectDefineProperty;
1117
- var anObject$2 = anObject$5;
1116
+ var anObject$7 = anObject$a;
1118
1117
  var toIndexedObject$1 = toIndexedObject$5;
1119
1118
  var objectKeys = objectKeys$2;
1120
1119
 
1121
1120
  // `Object.defineProperties` method
1122
1121
  // https://tc39.es/ecma262/#sec-object.defineproperties
1123
1122
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1124
- objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1125
- anObject$2(O);
1123
+ objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1124
+ anObject$7(O);
1126
1125
  var props = toIndexedObject$1(Properties);
1127
1126
  var keys = objectKeys(Properties);
1128
1127
  var length = keys.length;
@@ -1132,17 +1131,17 @@ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
1132
1131
  return O;
1133
1132
  };
1134
1133
 
1135
- var getBuiltIn = getBuiltIn$4;
1134
+ var getBuiltIn$4 = getBuiltIn$7;
1136
1135
 
1137
- var html$1 = getBuiltIn('document', 'documentElement');
1136
+ var html$2 = getBuiltIn$4('document', 'documentElement');
1138
1137
 
1139
1138
  /* global ActiveXObject -- old IE, WSH */
1140
1139
 
1141
- var anObject$1 = anObject$5;
1140
+ var anObject$6 = anObject$a;
1142
1141
  var definePropertiesModule = objectDefineProperties;
1143
1142
  var enumBugKeys = enumBugKeys$3;
1144
1143
  var hiddenKeys = hiddenKeys$4;
1145
- var html = html$1;
1144
+ var html$1 = html$2;
1146
1145
  var documentCreateElement$1 = documentCreateElement$2;
1147
1146
  var sharedKey$1 = sharedKey$3;
1148
1147
 
@@ -1174,7 +1173,7 @@ var NullProtoObjectViaIFrame = function () {
1174
1173
  var JS = 'java' + SCRIPT + ':';
1175
1174
  var iframeDocument;
1176
1175
  iframe.style.display = 'none';
1177
- html.appendChild(iframe);
1176
+ html$1.appendChild(iframe);
1178
1177
  // https://github.com/zloirock/core-js/issues/475
1179
1178
  iframe.src = String(JS);
1180
1179
  iframeDocument = iframe.contentWindow.document;
@@ -1212,7 +1211,7 @@ hiddenKeys[IE_PROTO$1] = true;
1212
1211
  var objectCreate = Object.create || function create(O, Properties) {
1213
1212
  var result;
1214
1213
  if (O !== null) {
1215
- EmptyConstructor[PROTOTYPE] = anObject$1(O);
1214
+ EmptyConstructor[PROTOTYPE] = anObject$6(O);
1216
1215
  result = new EmptyConstructor();
1217
1216
  EmptyConstructor[PROTOTYPE] = null;
1218
1217
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -1221,17 +1220,17 @@ var objectCreate = Object.create || function create(O, Properties) {
1221
1220
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1222
1221
  };
1223
1222
 
1224
- var wellKnownSymbol$4 = wellKnownSymbol$6;
1223
+ var wellKnownSymbol$c = wellKnownSymbol$e;
1225
1224
  var create$1 = objectCreate;
1226
- var defineProperty$2 = objectDefineProperty.f;
1225
+ var defineProperty$3 = objectDefineProperty.f;
1227
1226
 
1228
- var UNSCOPABLES = wellKnownSymbol$4('unscopables');
1229
- var ArrayPrototype = Array.prototype;
1227
+ var UNSCOPABLES = wellKnownSymbol$c('unscopables');
1228
+ var ArrayPrototype$1 = Array.prototype;
1230
1229
 
1231
1230
  // Array.prototype[@@unscopables]
1232
1231
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1233
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
1234
- defineProperty$2(ArrayPrototype, UNSCOPABLES, {
1232
+ if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
1233
+ defineProperty$3(ArrayPrototype$1, UNSCOPABLES, {
1235
1234
  configurable: true,
1236
1235
  value: create$1(null)
1237
1236
  });
@@ -1239,50 +1238,50 @@ if (ArrayPrototype[UNSCOPABLES] == undefined) {
1239
1238
 
1240
1239
  // add a key to Array.prototype[@@unscopables]
1241
1240
  var addToUnscopables$1 = function (key) {
1242
- ArrayPrototype[UNSCOPABLES][key] = true;
1241
+ ArrayPrototype$1[UNSCOPABLES][key] = true;
1243
1242
  };
1244
1243
 
1245
1244
  var iterators = {};
1246
1245
 
1247
- var fails$1 = fails$b;
1246
+ var fails$3 = fails$d;
1248
1247
 
1249
- var correctPrototypeGetter = !fails$1(function () {
1248
+ var correctPrototypeGetter = !fails$3(function () {
1250
1249
  function F() { /* empty */ }
1251
1250
  F.prototype.constructor = null;
1252
1251
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1253
1252
  return Object.getPrototypeOf(new F()) !== F.prototype;
1254
1253
  });
1255
1254
 
1256
- var hasOwn$1 = hasOwnProperty_1;
1257
- var isCallable$3 = isCallable$e;
1255
+ var hasOwn$2 = hasOwnProperty_1;
1256
+ var isCallable$9 = isCallable$k;
1258
1257
  var toObject = toObject$3;
1259
1258
  var sharedKey = sharedKey$3;
1260
1259
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1261
1260
 
1262
1261
  var IE_PROTO = sharedKey('IE_PROTO');
1263
- var $Object = Object;
1264
- var ObjectPrototype = $Object.prototype;
1262
+ var $Object$1 = Object;
1263
+ var ObjectPrototype = $Object$1.prototype;
1265
1264
 
1266
1265
  // `Object.getPrototypeOf` method
1267
1266
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1268
1267
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1269
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1268
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1270
1269
  var object = toObject(O);
1271
- if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1270
+ if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1272
1271
  var constructor = object.constructor;
1273
- if (isCallable$3(constructor) && object instanceof constructor) {
1272
+ if (isCallable$9(constructor) && object instanceof constructor) {
1274
1273
  return constructor.prototype;
1275
- } return object instanceof $Object ? ObjectPrototype : null;
1274
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1276
1275
  };
1277
1276
 
1278
- var fails = fails$b;
1279
- var isCallable$2 = isCallable$e;
1280
- var isObject = isObject$6;
1277
+ var fails$2 = fails$d;
1278
+ var isCallable$8 = isCallable$k;
1279
+ var isObject$2 = isObject$8;
1281
1280
  var getPrototypeOf$1 = objectGetPrototypeOf;
1282
- var defineBuiltIn$1 = defineBuiltIn$3;
1283
- var wellKnownSymbol$3 = wellKnownSymbol$6;
1281
+ var defineBuiltIn$3 = defineBuiltIn$5;
1282
+ var wellKnownSymbol$b = wellKnownSymbol$e;
1284
1283
 
1285
- var ITERATOR$2 = wellKnownSymbol$3('iterator');
1284
+ var ITERATOR$5 = wellKnownSymbol$b('iterator');
1286
1285
  var BUGGY_SAFARI_ITERATORS$1 = false;
1287
1286
 
1288
1287
  // `%IteratorPrototype%` object
@@ -1300,18 +1299,18 @@ if ([].keys) {
1300
1299
  }
1301
1300
  }
1302
1301
 
1303
- var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails(function () {
1302
+ var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$2(function () {
1304
1303
  var test = {};
1305
1304
  // FF44- legacy iterators case
1306
- return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
1305
+ return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
1307
1306
  });
1308
1307
 
1309
1308
  if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1310
1309
 
1311
1310
  // `%IteratorPrototype%[@@iterator]()` method
1312
1311
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1313
- if (!isCallable$2(IteratorPrototype$2[ITERATOR$2])) {
1314
- defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
1312
+ if (!isCallable$8(IteratorPrototype$2[ITERATOR$5])) {
1313
+ defineBuiltIn$3(IteratorPrototype$2, ITERATOR$5, function () {
1315
1314
  return this;
1316
1315
  });
1317
1316
  }
@@ -1321,49 +1320,59 @@ var iteratorsCore = {
1321
1320
  BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1322
1321
  };
1323
1322
 
1324
- var defineProperty$1 = objectDefineProperty.f;
1325
- var hasOwn = hasOwnProperty_1;
1326
- var wellKnownSymbol$2 = wellKnownSymbol$6;
1323
+ var defineProperty$2 = objectDefineProperty.f;
1324
+ var hasOwn$1 = hasOwnProperty_1;
1325
+ var wellKnownSymbol$a = wellKnownSymbol$e;
1327
1326
 
1328
- var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1327
+ var TO_STRING_TAG$3 = wellKnownSymbol$a('toStringTag');
1329
1328
 
1330
- var setToStringTag$2 = function (target, TAG, STATIC) {
1329
+ var setToStringTag$3 = function (target, TAG, STATIC) {
1331
1330
  if (target && !STATIC) target = target.prototype;
1332
- if (target && !hasOwn(target, TO_STRING_TAG$1)) {
1333
- defineProperty$1(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
1331
+ if (target && !hasOwn$1(target, TO_STRING_TAG$3)) {
1332
+ defineProperty$2(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1334
1333
  }
1335
1334
  };
1336
1335
 
1337
1336
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1338
1337
  var create = objectCreate;
1339
1338
  var createPropertyDescriptor = createPropertyDescriptor$3;
1340
- var setToStringTag$1 = setToStringTag$2;
1341
- var Iterators$2 = iterators;
1339
+ var setToStringTag$2 = setToStringTag$3;
1340
+ var Iterators$4 = iterators;
1342
1341
 
1343
1342
  var returnThis$1 = function () { return this; };
1344
1343
 
1345
1344
  var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1346
1345
  var TO_STRING_TAG = NAME + ' Iterator';
1347
1346
  IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1348
- setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
1349
- Iterators$2[TO_STRING_TAG] = returnThis$1;
1347
+ setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
1348
+ Iterators$4[TO_STRING_TAG] = returnThis$1;
1350
1349
  return IteratorConstructor;
1351
1350
  };
1352
1351
 
1353
- var isCallable$1 = isCallable$e;
1352
+ var uncurryThis$4 = functionUncurryThis;
1353
+ var aCallable$6 = aCallable$8;
1354
+
1355
+ var functionUncurryThisAccessor = function (object, key, method) {
1356
+ try {
1357
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1358
+ return uncurryThis$4(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
1359
+ } catch (error) { /* empty */ }
1360
+ };
1361
+
1362
+ var isCallable$7 = isCallable$k;
1354
1363
 
1355
1364
  var $String = String;
1356
- var $TypeError = TypeError;
1365
+ var $TypeError$6 = TypeError;
1357
1366
 
1358
1367
  var aPossiblePrototype$1 = function (argument) {
1359
- if (typeof argument == 'object' || isCallable$1(argument)) return argument;
1360
- throw $TypeError("Can't set " + $String(argument) + ' as a prototype');
1368
+ if (typeof argument == 'object' || isCallable$7(argument)) return argument;
1369
+ throw $TypeError$6("Can't set " + $String(argument) + ' as a prototype');
1361
1370
  };
1362
1371
 
1363
1372
  /* eslint-disable no-proto -- safe */
1364
1373
 
1365
- var uncurryThis = functionUncurryThis;
1366
- var anObject = anObject$5;
1374
+ var uncurryThisAccessor = functionUncurryThisAccessor;
1375
+ var anObject$5 = anObject$a;
1367
1376
  var aPossiblePrototype = aPossiblePrototype$1;
1368
1377
 
1369
1378
  // `Object.setPrototypeOf` method
@@ -1375,13 +1384,12 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1375
1384
  var test = {};
1376
1385
  var setter;
1377
1386
  try {
1378
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1379
- setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1387
+ setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1380
1388
  setter(test, []);
1381
1389
  CORRECT_SETTER = test instanceof Array;
1382
1390
  } catch (error) { /* empty */ }
1383
1391
  return function setPrototypeOf(O, proto) {
1384
- anObject(O);
1392
+ anObject$5(O);
1385
1393
  aPossiblePrototype(proto);
1386
1394
  if (CORRECT_SETTER) setter(O, proto);
1387
1395
  else O.__proto__ = proto;
@@ -1389,25 +1397,25 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1389
1397
  };
1390
1398
  }() : undefined);
1391
1399
 
1392
- var $ = _export;
1393
- var call = functionCall;
1400
+ var $$6 = _export;
1401
+ var call$8 = functionCall;
1394
1402
  var FunctionName = functionName;
1395
- var isCallable = isCallable$e;
1403
+ var isCallable$6 = isCallable$k;
1396
1404
  var createIteratorConstructor = iteratorCreateConstructor;
1397
1405
  var getPrototypeOf = objectGetPrototypeOf;
1398
- var setPrototypeOf = objectSetPrototypeOf;
1399
- var setToStringTag = setToStringTag$2;
1406
+ var setPrototypeOf$1 = objectSetPrototypeOf;
1407
+ var setToStringTag$1 = setToStringTag$3;
1400
1408
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1401
- var defineBuiltIn = defineBuiltIn$3;
1402
- var wellKnownSymbol$1 = wellKnownSymbol$6;
1403
- var Iterators$1 = iterators;
1409
+ var defineBuiltIn$2 = defineBuiltIn$5;
1410
+ var wellKnownSymbol$9 = wellKnownSymbol$e;
1411
+ var Iterators$3 = iterators;
1404
1412
  var IteratorsCore = iteratorsCore;
1405
1413
 
1406
1414
  var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1407
1415
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1408
1416
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
1409
1417
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1410
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
1418
+ var ITERATOR$4 = wellKnownSymbol$9('iterator');
1411
1419
  var KEYS = 'keys';
1412
1420
  var VALUES = 'values';
1413
1421
  var ENTRIES = 'entries';
@@ -1430,7 +1438,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1430
1438
  var TO_STRING_TAG = NAME + ' Iterator';
1431
1439
  var INCORRECT_VALUES_NAME = false;
1432
1440
  var IterablePrototype = Iterable.prototype;
1433
- var nativeIterator = IterablePrototype[ITERATOR$1]
1441
+ var nativeIterator = IterablePrototype[ITERATOR$4]
1434
1442
  || IterablePrototype['@@iterator']
1435
1443
  || DEFAULT && IterablePrototype[DEFAULT];
1436
1444
  var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
@@ -1442,14 +1450,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1442
1450
  CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1443
1451
  if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1444
1452
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1445
- if (setPrototypeOf) {
1446
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1447
- } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
1448
- defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1453
+ if (setPrototypeOf$1) {
1454
+ setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
1455
+ } else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$4])) {
1456
+ defineBuiltIn$2(CurrentIteratorPrototype, ITERATOR$4, returnThis);
1449
1457
  }
1450
1458
  }
1451
1459
  // Set @@toStringTag to native iterators
1452
- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1460
+ setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
1453
1461
  }
1454
1462
  }
1455
1463
 
@@ -1459,7 +1467,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1459
1467
  createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1460
1468
  } else {
1461
1469
  INCORRECT_VALUES_NAME = true;
1462
- defaultIterator = function values() { return call(nativeIterator, this); };
1470
+ defaultIterator = function values() { return call$8(nativeIterator, this); };
1463
1471
  }
1464
1472
  }
1465
1473
 
@@ -1472,16 +1480,16 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1472
1480
  };
1473
1481
  if (FORCED) for (KEY in methods) {
1474
1482
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1475
- defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
1483
+ defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
1476
1484
  }
1477
- } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1485
+ } else $$6({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1478
1486
  }
1479
1487
 
1480
1488
  // define iterator
1481
- if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1482
- defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1489
+ if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
1490
+ defineBuiltIn$2(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
1483
1491
  }
1484
- Iterators$1[NAME] = defaultIterator;
1492
+ Iterators$3[NAME] = defaultIterator;
1485
1493
 
1486
1494
  return methods;
1487
1495
  };
@@ -1494,16 +1502,16 @@ var createIterResultObject$1 = function (value, done) {
1494
1502
 
1495
1503
  var toIndexedObject = toIndexedObject$5;
1496
1504
  var addToUnscopables = addToUnscopables$1;
1497
- var Iterators = iterators;
1498
- var InternalStateModule = internalState;
1499
- var defineProperty = objectDefineProperty.f;
1505
+ var Iterators$2 = iterators;
1506
+ var InternalStateModule$1 = internalState;
1507
+ var defineProperty$1 = objectDefineProperty.f;
1500
1508
  var defineIterator = iteratorDefine;
1501
1509
  var createIterResultObject = createIterResultObject$1;
1502
- var DESCRIPTORS = descriptors;
1510
+ var DESCRIPTORS$1 = descriptors;
1503
1511
 
1504
1512
  var ARRAY_ITERATOR = 'Array Iterator';
1505
- var setInternalState = InternalStateModule.set;
1506
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
1513
+ var setInternalState$1 = InternalStateModule$1.set;
1514
+ var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
1507
1515
 
1508
1516
  // `Array.prototype.entries` method
1509
1517
  // https://tc39.es/ecma262/#sec-array.prototype.entries
@@ -1516,7 +1524,7 @@ var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
1516
1524
  // `CreateArrayIterator` internal method
1517
1525
  // https://tc39.es/ecma262/#sec-createarrayiterator
1518
1526
  var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1519
- setInternalState(this, {
1527
+ setInternalState$1(this, {
1520
1528
  type: ARRAY_ITERATOR,
1521
1529
  target: toIndexedObject(iterated), // target
1522
1530
  index: 0, // next index
@@ -1541,7 +1549,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
1541
1549
  // argumentsList[@@iterator] is %ArrayProto_values%
1542
1550
  // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1543
1551
  // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1544
- var values = Iterators.Arguments = Iterators.Array;
1552
+ var values = Iterators$2.Arguments = Iterators$2.Array;
1545
1553
 
1546
1554
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1547
1555
  addToUnscopables('keys');
@@ -1549,8 +1557,8 @@ addToUnscopables('values');
1549
1557
  addToUnscopables('entries');
1550
1558
 
1551
1559
  // V8 ~ Chrome 45- bug
1552
- if (DESCRIPTORS && values.name !== 'values') try {
1553
- defineProperty(values, 'name', { value: 'values' });
1560
+ if (DESCRIPTORS$1 && values.name !== 'values') try {
1561
+ defineProperty$1(values, 'name', { value: 'values' });
1554
1562
  } catch (error) { /* empty */ }
1555
1563
 
1556
1564
  // iterable DOM collections
@@ -1597,27 +1605,27 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1597
1605
 
1598
1606
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1599
1607
 
1600
- var global$1 = global$b;
1608
+ var global$6 = global$g;
1601
1609
  var DOMIterables = domIterables;
1602
1610
  var DOMTokenListPrototype = domTokenListPrototype;
1603
1611
  var ArrayIteratorMethods = es_array_iterator;
1604
1612
  var createNonEnumerableProperty = createNonEnumerableProperty$4;
1605
- var wellKnownSymbol = wellKnownSymbol$6;
1613
+ var wellKnownSymbol$8 = wellKnownSymbol$e;
1606
1614
 
1607
- var ITERATOR = wellKnownSymbol('iterator');
1608
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1615
+ var ITERATOR$3 = wellKnownSymbol$8('iterator');
1616
+ var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
1609
1617
  var ArrayValues = ArrayIteratorMethods.values;
1610
1618
 
1611
1619
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1612
1620
  if (CollectionPrototype) {
1613
1621
  // some Chrome versions have non-configurable methods on DOMTokenList
1614
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1615
- createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
1622
+ if (CollectionPrototype[ITERATOR$3] !== ArrayValues) try {
1623
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR$3, ArrayValues);
1616
1624
  } catch (error) {
1617
- CollectionPrototype[ITERATOR] = ArrayValues;
1625
+ CollectionPrototype[ITERATOR$3] = ArrayValues;
1618
1626
  }
1619
- if (!CollectionPrototype[TO_STRING_TAG]) {
1620
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
1627
+ if (!CollectionPrototype[TO_STRING_TAG$2]) {
1628
+ createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
1621
1629
  }
1622
1630
  if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1623
1631
  // some Chrome versions have non-configurable methods on DOMTokenList
@@ -1631,119 +1639,1595 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1631
1639
  };
1632
1640
 
1633
1641
  for (var COLLECTION_NAME in DOMIterables) {
1634
- handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
1642
+ handlePrototype(global$6[COLLECTION_NAME] && global$6[COLLECTION_NAME].prototype, COLLECTION_NAME);
1635
1643
  }
1636
1644
 
1637
1645
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1638
1646
 
1639
- const OrchestratorPageTemplate = ({
1640
- children
1641
- }) => {
1647
+ const useOrchestratorTheme = () => {
1642
1648
  const {
1643
1649
  euiTheme
1644
1650
  } = useEuiTheme();
1645
- const [isSideMenuVisible, setIsSideMenuVisible] = useState(true);
1646
- const multiplyBaseValue = multiplier => euiTheme.base * multiplier;
1647
- const navigationHeight = multiplyBaseValue(3);
1648
- return jsxs(Fragment, {
1649
- children: [jsxs(EuiFlexGroup, Object.assign({
1650
- direction: "row",
1651
- justifyContent: "spaceBetween",
1652
- alignItems: "center",
1653
- css: {
1654
- backgroundColor: euiTheme.colors.primary,
1655
- height: navigationHeight,
1656
- paddingLeft: euiTheme.size.l,
1657
- paddingRight: euiTheme.size.l
1658
- }
1651
+ const baseUnit = euiTheme.base;
1652
+ const multiplyByBaseUnit = multiplier => baseUnit * multiplier;
1653
+ return {
1654
+ theme: euiTheme,
1655
+ multiplyByBaseUnit
1656
+ };
1657
+ };
1658
+
1659
+ const HeaderBadge = props => {
1660
+ 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
1674
+ }, {
1675
+ children: props.children
1676
+ }));
1677
+ };
1678
+
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"
1659
1703
  }, {
1660
- children: [jsx(EuiFlexItem, {
1661
- children: jsx(EuiFlexGroup, Object.assign({
1662
- alignItems: "center"
1663
- }, {
1664
- children: jsx(EuiText, Object.assign({
1665
- color: euiTheme.colors.emptyShade
1666
- }, {
1667
- children: "Orchestrator"
1668
- }))
1669
- }))
1670
- }), jsx(EuiFlexItem, {
1671
- children: jsx(EuiFlexGroup, Object.assign({
1672
- direction: "row",
1673
- justifyContent: "flexEnd"
1674
- }, {
1675
- children: jsx(EuiButtonIcon, {
1676
- display: "empty",
1677
- iconType: "arrowRight",
1678
- color: "ghost",
1679
- onClick: () => setIsSideMenuVisible(!isSideMenuVisible)
1680
- })
1681
- }))
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"
1682
1715
  })]
1683
- })), jsxs(EuiPageTemplate, Object.assign({
1684
- grow: false,
1685
- contentBorder: false,
1686
- minHeight: `calc(100vh - ${navigationHeight})`
1716
+ }))
1717
+ }))]
1718
+ }));
1719
+
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
1687
1743
  }, {
1688
- children: [isSideMenuVisible && jsx(EuiPageTemplate.Sidebar, Object.assign({
1689
- css: {
1690
- backgroundColor: euiTheme.colors.body
1691
- }
1692
- }, {
1693
- children: jsx("div", {
1694
- children: "Sidebar"
1695
- })
1696
- })), jsx(EuiPageTemplate.Section, Object.assign({
1697
- css: {
1698
- backgroundColor: euiTheme.colors.emptyShade
1699
- }
1700
- }, {
1701
- children: children
1702
- }))]
1703
- }))]
1704
- });
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
+ }));
1751
+
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';
1788
+
1789
+ var makeBuiltIn = makeBuiltIn$3.exports;
1790
+ var defineProperty = objectDefineProperty;
1791
+
1792
+ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1793
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1794
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1795
+ return defineProperty.f(target, name, descriptor);
1705
1796
  };
1706
1797
 
1707
- const defaultOrchestratorTheme = {
1708
- colors: {
1709
- DARK: {},
1710
- LIGHT: {
1711
- primary: '#0077C8',
1712
- accent: '#E67300',
1713
- success: '#008939',
1714
- warning: '#FFC514',
1715
- danger: '#BD271F',
1716
- primaryText: '#0067AC',
1717
- accentText: '#B05200',
1718
- successText: '#007832',
1719
- warningText: '#8E6A00',
1720
- dangerText: '#AC0A01',
1721
- emptyShade: '#FFFFFF',
1722
- lightestShade: '#F1F5F9',
1723
- lightShade: '#CCD5E2',
1724
- mediumShade: '#94A4B8',
1725
- darkShade: '#64758B',
1726
- darkestShade: '#334255',
1727
- fullShade: '#0F172B',
1728
- text: '#334255',
1729
- title: '#0F172B',
1730
- subduedText: '#64758B',
1731
- link: '#0067AC',
1732
- body: '#F1F5F9',
1733
- highlight: '#FFF6DE',
1734
- disabled: '#94A4B8',
1735
- disabledText: '#94A4B8',
1736
- shadow: '#000000'
1737
- }
1738
- },
1739
- font: {
1740
- weight: {
1741
- regular: 400,
1742
- medium: 500,
1743
- semiBold: 600,
1744
- bold: 700
1745
- }
1798
+ var getBuiltIn$3 = getBuiltIn$7;
1799
+ var defineBuiltInAccessor = defineBuiltInAccessor$1;
1800
+ var wellKnownSymbol$7 = wellKnownSymbol$e;
1801
+ var DESCRIPTORS = descriptors;
1802
+
1803
+ var SPECIES$2 = wellKnownSymbol$7('species');
1804
+
1805
+ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1806
+ var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
1807
+
1808
+ if (DESCRIPTORS && Constructor && !Constructor[SPECIES$2]) {
1809
+ defineBuiltInAccessor(Constructor, SPECIES$2, {
1810
+ configurable: true,
1811
+ get: function () { return this; }
1812
+ });
1813
+ }
1814
+ };
1815
+
1816
+ var isPrototypeOf$1 = objectIsPrototypeOf;
1817
+
1818
+ var $TypeError$5 = TypeError;
1819
+
1820
+ var anInstance$1 = function (it, Prototype) {
1821
+ if (isPrototypeOf$1(Prototype, it)) return it;
1822
+ throw $TypeError$5('Incorrect invocation');
1823
+ };
1824
+
1825
+ var wellKnownSymbol$6 = wellKnownSymbol$e;
1826
+
1827
+ var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
1828
+ var test = {};
1829
+
1830
+ test[TO_STRING_TAG$1] = 'z';
1831
+
1832
+ var toStringTagSupport = String(test) === '[object z]';
1833
+
1834
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1835
+ var isCallable$5 = isCallable$k;
1836
+ var classofRaw$1 = classofRaw$2;
1837
+ var wellKnownSymbol$5 = wellKnownSymbol$e;
1838
+
1839
+ var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
1840
+ var $Object = Object;
1841
+
1842
+ // ES3 wrong here
1843
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
1844
+
1845
+ // fallback for IE11 Script Access Denied error
1846
+ var tryGet = function (it, key) {
1847
+ try {
1848
+ return it[key];
1849
+ } catch (error) { /* empty */ }
1850
+ };
1851
+
1852
+ // getting tag from ES6+ `Object.prototype.toString`
1853
+ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1854
+ var O, tag, result;
1855
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1856
+ // @@toStringTag case
1857
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1858
+ // builtinTag case
1859
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
1860
+ // ES3 arguments fallback
1861
+ : (result = classofRaw$1(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
1862
+ };
1863
+
1864
+ var uncurryThis$3 = functionUncurryThis;
1865
+ var fails$1 = fails$d;
1866
+ var isCallable$4 = isCallable$k;
1867
+ var classof$1 = classof$2;
1868
+ var getBuiltIn$2 = getBuiltIn$7;
1869
+ var inspectSource$1 = inspectSource$3;
1870
+
1871
+ var noop = function () { /* empty */ };
1872
+ var empty = [];
1873
+ var construct = getBuiltIn$2('Reflect', 'construct');
1874
+ var constructorRegExp = /^\s*(?:class|function)\b/;
1875
+ var exec = uncurryThis$3(constructorRegExp.exec);
1876
+ var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1877
+
1878
+ var isConstructorModern = function isConstructor(argument) {
1879
+ if (!isCallable$4(argument)) return false;
1880
+ try {
1881
+ construct(noop, empty, argument);
1882
+ return true;
1883
+ } catch (error) {
1884
+ return false;
1885
+ }
1886
+ };
1887
+
1888
+ var isConstructorLegacy = function isConstructor(argument) {
1889
+ if (!isCallable$4(argument)) return false;
1890
+ switch (classof$1(argument)) {
1891
+ case 'AsyncFunction':
1892
+ case 'GeneratorFunction':
1893
+ case 'AsyncGeneratorFunction': return false;
1746
1894
  }
1895
+ try {
1896
+ // we can't check .prototype since constructors produced by .bind haven't it
1897
+ // `Function#toString` throws on some built-it function in some legacy engines
1898
+ // (for example, `DOMQuad` and similar in FF41-)
1899
+ return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
1900
+ } catch (error) {
1901
+ return true;
1902
+ }
1903
+ };
1904
+
1905
+ isConstructorLegacy.sham = true;
1906
+
1907
+ // `IsConstructor` abstract operation
1908
+ // https://tc39.es/ecma262/#sec-isconstructor
1909
+ var isConstructor$1 = !construct || fails$1(function () {
1910
+ var called;
1911
+ return isConstructorModern(isConstructorModern.call)
1912
+ || !isConstructorModern(Object)
1913
+ || !isConstructorModern(function () { called = true; })
1914
+ || called;
1915
+ }) ? isConstructorLegacy : isConstructorModern;
1916
+
1917
+ var isConstructor = isConstructor$1;
1918
+ var tryToString$2 = tryToString$4;
1919
+
1920
+ var $TypeError$4 = TypeError;
1921
+
1922
+ // `Assert: IsConstructor(argument) is true`
1923
+ var aConstructor$1 = function (argument) {
1924
+ if (isConstructor(argument)) return argument;
1925
+ throw $TypeError$4(tryToString$2(argument) + ' is not a constructor');
1926
+ };
1927
+
1928
+ var anObject$4 = anObject$a;
1929
+ var aConstructor = aConstructor$1;
1930
+ var isNullOrUndefined$1 = isNullOrUndefined$4;
1931
+ var wellKnownSymbol$4 = wellKnownSymbol$e;
1932
+
1933
+ var SPECIES$1 = wellKnownSymbol$4('species');
1934
+
1935
+ // `SpeciesConstructor` abstract operation
1936
+ // https://tc39.es/ecma262/#sec-speciesconstructor
1937
+ var speciesConstructor$1 = function (O, defaultConstructor) {
1938
+ var C = anObject$4(O).constructor;
1939
+ var S;
1940
+ return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
1941
+ };
1942
+
1943
+ var NATIVE_BIND$1 = functionBindNative;
1944
+
1945
+ var FunctionPrototype = Function.prototype;
1946
+ var apply$1 = FunctionPrototype.apply;
1947
+ var call$7 = FunctionPrototype.call;
1948
+
1949
+ // 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);
1952
+ });
1953
+
1954
+ var classofRaw = classofRaw$2;
1955
+ var uncurryThis$2 = functionUncurryThis;
1956
+
1957
+ var functionUncurryThisClause = function (fn) {
1958
+ // Nashorn bug:
1959
+ // https://github.com/zloirock/core-js/issues/1128
1960
+ // https://github.com/zloirock/core-js/issues/1130
1961
+ if (classofRaw(fn) === 'Function') return uncurryThis$2(fn);
1962
+ };
1963
+
1964
+ var uncurryThis$1 = functionUncurryThisClause;
1965
+ var aCallable$5 = aCallable$8;
1966
+ var NATIVE_BIND = functionBindNative;
1967
+
1968
+ var bind$4 = uncurryThis$1(uncurryThis$1.bind);
1969
+
1970
+ // optional / simple context binding
1971
+ var functionBindContext = function (fn, that) {
1972
+ aCallable$5(fn);
1973
+ return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
1974
+ return fn.apply(that, arguments);
1975
+ };
1976
+ };
1977
+
1978
+ var uncurryThis = functionUncurryThis;
1979
+
1980
+ var arraySlice$1 = uncurryThis([].slice);
1981
+
1982
+ var $TypeError$3 = TypeError;
1983
+
1984
+ var validateArgumentsLength$1 = function (passed, required) {
1985
+ if (passed < required) throw $TypeError$3('Not enough arguments');
1986
+ return passed;
1987
+ };
1988
+
1989
+ var userAgent$2 = engineUserAgent;
1990
+
1991
+ // eslint-disable-next-line redos/no-vulnerable -- safe
1992
+ var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1993
+
1994
+ var global$5 = global$g;
1995
+ var apply = functionApply;
1996
+ var bind$3 = functionBindContext;
1997
+ var isCallable$3 = isCallable$k;
1998
+ var hasOwn = hasOwnProperty_1;
1999
+ var fails = fails$d;
2000
+ var html = html$2;
2001
+ var arraySlice = arraySlice$1;
2002
+ var createElement = documentCreateElement$2;
2003
+ var validateArgumentsLength = validateArgumentsLength$1;
2004
+ var IS_IOS$1 = engineIsIos;
2005
+ var IS_NODE$3 = engineIsNode;
2006
+
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;
2014
+ var counter = 0;
2015
+ var queue$2 = {};
2016
+ var ONREADYSTATECHANGE = 'onreadystatechange';
2017
+ var $location, defer, channel, port;
2018
+
2019
+ fails(function () {
2020
+ // Deno throws a ReferenceError on `location` access without `--location` flag
2021
+ $location = global$5.location;
2022
+ });
2023
+
2024
+ var run = function (id) {
2025
+ if (hasOwn(queue$2, id)) {
2026
+ var fn = queue$2[id];
2027
+ delete queue$2[id];
2028
+ fn();
2029
+ }
2030
+ };
2031
+
2032
+ var runner = function (id) {
2033
+ return function () {
2034
+ run(id);
2035
+ };
2036
+ };
2037
+
2038
+ var eventListener = function (event) {
2039
+ run(event.data);
2040
+ };
2041
+
2042
+ var globalPostMessageDefer = function (id) {
2043
+ // old engines have not location.origin
2044
+ global$5.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2045
+ };
2046
+
2047
+ // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
2048
+ if (!set || !clear) {
2049
+ set = function setImmediate(handler) {
2050
+ validateArgumentsLength(arguments.length, 1);
2051
+ var fn = isCallable$3(handler) ? handler : Function$1(handler);
2052
+ var args = arraySlice(arguments, 1);
2053
+ queue$2[++counter] = function () {
2054
+ apply(fn, undefined, args);
2055
+ };
2056
+ defer(counter);
2057
+ return counter;
2058
+ };
2059
+ clear = function clearImmediate(id) {
2060
+ delete queue$2[id];
2061
+ };
2062
+ // Node.js 0.8-
2063
+ if (IS_NODE$3) {
2064
+ defer = function (id) {
2065
+ process$3.nextTick(runner(id));
2066
+ };
2067
+ // Sphere (JS game engine) Dispatch API
2068
+ } else if (Dispatch && Dispatch.now) {
2069
+ defer = function (id) {
2070
+ Dispatch.now(runner(id));
2071
+ };
2072
+ // Browsers with MessageChannel, includes WebWorkers
2073
+ // except iOS - https://github.com/zloirock/core-js/issues/624
2074
+ } else if (MessageChannel && !IS_IOS$1) {
2075
+ channel = new MessageChannel();
2076
+ port = channel.port2;
2077
+ channel.port1.onmessage = eventListener;
2078
+ defer = bind$3(port.postMessage, port);
2079
+ // Browsers with postMessage, skip WebWorkers
2080
+ // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2081
+ } else if (
2082
+ global$5.addEventListener &&
2083
+ isCallable$3(global$5.postMessage) &&
2084
+ !global$5.importScripts &&
2085
+ $location && $location.protocol !== 'file:' &&
2086
+ !fails(globalPostMessageDefer)
2087
+ ) {
2088
+ defer = globalPostMessageDefer;
2089
+ global$5.addEventListener('message', eventListener, false);
2090
+ // IE8-
2091
+ } else if (ONREADYSTATECHANGE in createElement('script')) {
2092
+ defer = function (id) {
2093
+ html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
2094
+ html.removeChild(this);
2095
+ run(id);
2096
+ };
2097
+ };
2098
+ // Rest old browsers
2099
+ } else {
2100
+ defer = function (id) {
2101
+ setTimeout(runner(id), 0);
2102
+ };
2103
+ }
2104
+ }
2105
+
2106
+ var task$1 = {
2107
+ set: set,
2108
+ clear: clear
2109
+ };
2110
+
2111
+ var Queue$2 = function () {
2112
+ this.head = null;
2113
+ this.tail = null;
2114
+ };
2115
+
2116
+ Queue$2.prototype = {
2117
+ add: function (item) {
2118
+ var entry = { item: item, next: null };
2119
+ var tail = this.tail;
2120
+ if (tail) tail.next = entry;
2121
+ else this.head = entry;
2122
+ this.tail = entry;
2123
+ },
2124
+ get: function () {
2125
+ var entry = this.head;
2126
+ if (entry) {
2127
+ var next = this.head = entry.next;
2128
+ if (next === null) this.tail = null;
2129
+ return entry.item;
2130
+ }
2131
+ }
2132
+ };
2133
+
2134
+ var queue$1 = Queue$2;
2135
+
2136
+ var userAgent$1 = engineUserAgent;
2137
+
2138
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
2139
+
2140
+ var userAgent = engineUserAgent;
2141
+
2142
+ var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
2143
+
2144
+ var global$4 = global$g;
2145
+ var bind$2 = functionBindContext;
2146
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
2147
+ var macrotask = task$1.set;
2148
+ var Queue$1 = queue$1;
2149
+ var IS_IOS = engineIsIos;
2150
+ var IS_IOS_PEBBLE = engineIsIosPebble;
2151
+ var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
2152
+ var IS_NODE$2 = engineIsNode;
2153
+
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;
2158
+ // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
2159
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$4, 'queueMicrotask');
2160
+ var microtask$1 = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
2161
+ var notify$1, toggle, node, promise, then;
2162
+
2163
+ // modern engines have queueMicrotask method
2164
+ if (!microtask$1) {
2165
+ var queue = new Queue$1();
2166
+
2167
+ var flush = function () {
2168
+ var parent, fn;
2169
+ if (IS_NODE$2 && (parent = process$2.domain)) parent.exit();
2170
+ while (fn = queue.get()) try {
2171
+ fn();
2172
+ } catch (error) {
2173
+ if (queue.head) notify$1();
2174
+ throw error;
2175
+ }
2176
+ if (parent) parent.enter();
2177
+ };
2178
+
2179
+ // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
2180
+ // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
2181
+ if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
2182
+ toggle = true;
2183
+ node = document$2.createTextNode('');
2184
+ new MutationObserver(flush).observe(node, { characterData: true });
2185
+ notify$1 = function () {
2186
+ node.data = toggle = !toggle;
2187
+ };
2188
+ // environments with maybe non-completely correct, but existent Promise
2189
+ } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
2190
+ // Promise.resolve without an argument throws an error in LG WebOS 2
2191
+ promise = Promise$1.resolve(undefined);
2192
+ // workaround of WebKit ~ iOS Safari 10.1 bug
2193
+ promise.constructor = Promise$1;
2194
+ then = bind$2(promise.then, promise);
2195
+ notify$1 = function () {
2196
+ then(flush);
2197
+ };
2198
+ // Node.js without promises
2199
+ } else if (IS_NODE$2) {
2200
+ notify$1 = function () {
2201
+ process$2.nextTick(flush);
2202
+ };
2203
+ // for other environments - macrotask based on:
2204
+ // - setImmediate
2205
+ // - MessageChannel
2206
+ // - window.postMessage
2207
+ // - onreadystatechange
2208
+ // - setTimeout
2209
+ } else {
2210
+ // `webpack` dev server bug on IE global methods - use bind(fn, global)
2211
+ macrotask = bind$2(macrotask, global$4);
2212
+ notify$1 = function () {
2213
+ macrotask(flush);
2214
+ };
2215
+ }
2216
+
2217
+ microtask$1 = function (fn) {
2218
+ if (!queue.head) notify$1();
2219
+ queue.add(fn);
2220
+ };
2221
+ }
2222
+
2223
+ var microtask_1 = microtask$1;
2224
+
2225
+ var hostReportErrors$1 = function (a, b) {
2226
+ try {
2227
+ // eslint-disable-next-line no-console -- safe
2228
+ arguments.length == 1 ? console.error(a) : console.error(a, b);
2229
+ } catch (error) { /* empty */ }
2230
+ };
2231
+
2232
+ var perform$3 = function (exec) {
2233
+ try {
2234
+ return { error: false, value: exec() };
2235
+ } catch (error) {
2236
+ return { error: true, value: error };
2237
+ }
2238
+ };
2239
+
2240
+ var global$3 = global$g;
2241
+
2242
+ var promiseNativeConstructor = global$3.Promise;
2243
+
2244
+ /* global Deno -- Deno case */
2245
+
2246
+ var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
2247
+
2248
+ var IS_DENO$1 = engineIsDeno;
2249
+ var IS_NODE$1 = engineIsNode;
2250
+
2251
+ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
2252
+ && typeof window == 'object'
2253
+ && typeof document == 'object';
2254
+
2255
+ var global$2 = global$g;
2256
+ var NativePromiseConstructor$3 = promiseNativeConstructor;
2257
+ var isCallable$2 = isCallable$k;
2258
+ var isForced = isForced_1;
2259
+ var inspectSource = inspectSource$3;
2260
+ var wellKnownSymbol$3 = wellKnownSymbol$e;
2261
+ var IS_BROWSER = engineIsBrowser;
2262
+ var IS_DENO = engineIsDeno;
2263
+ var V8_VERSION = engineV8Version;
2264
+
2265
+ NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
2266
+ var SPECIES = wellKnownSymbol$3('species');
2267
+ var SUBCLASSING = false;
2268
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$2.PromiseRejectionEvent);
2269
+
2270
+ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
2271
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
2272
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
2273
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
2274
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
2275
+ // We can't detect it synchronously, so just check versions
2276
+ if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
2277
+ // We can't use @@species feature detection in V8 since it causes
2278
+ // deoptimization and performance degradation
2279
+ // https://github.com/zloirock/core-js/issues/679
2280
+ if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
2281
+ // Detect correctness of subclassing with @@species support
2282
+ var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
2283
+ var FakePromise = function (exec) {
2284
+ exec(function () { /* empty */ }, function () { /* empty */ });
2285
+ };
2286
+ var constructor = promise.constructor = {};
2287
+ constructor[SPECIES] = FakePromise;
2288
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
2289
+ if (!SUBCLASSING) return true;
2290
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
2291
+ } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
2292
+ });
2293
+
2294
+ var promiseConstructorDetection = {
2295
+ CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
2296
+ REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
2297
+ SUBCLASSING: SUBCLASSING
2298
+ };
2299
+
2300
+ var newPromiseCapability$2 = {};
2301
+
2302
+ var aCallable$4 = aCallable$8;
2303
+
2304
+ var $TypeError$2 = TypeError;
2305
+
2306
+ var PromiseCapability = function (C) {
2307
+ var resolve, reject;
2308
+ this.promise = new C(function ($$resolve, $$reject) {
2309
+ if (resolve !== undefined || reject !== undefined) throw $TypeError$2('Bad Promise constructor');
2310
+ resolve = $$resolve;
2311
+ reject = $$reject;
2312
+ });
2313
+ this.resolve = aCallable$4(resolve);
2314
+ this.reject = aCallable$4(reject);
2315
+ };
2316
+
2317
+ // `NewPromiseCapability` abstract operation
2318
+ // https://tc39.es/ecma262/#sec-newpromisecapability
2319
+ newPromiseCapability$2.f = function (C) {
2320
+ return new PromiseCapability(C);
2321
+ };
2322
+
2323
+ var $$5 = _export;
2324
+ var IS_NODE = engineIsNode;
2325
+ var global$1 = global$g;
2326
+ var call$6 = functionCall;
2327
+ var defineBuiltIn$1 = defineBuiltIn$5;
2328
+ var setPrototypeOf = objectSetPrototypeOf;
2329
+ var setToStringTag = setToStringTag$3;
2330
+ var setSpecies = setSpecies$1;
2331
+ var aCallable$3 = aCallable$8;
2332
+ var isCallable$1 = isCallable$k;
2333
+ var isObject$1 = isObject$8;
2334
+ var anInstance = anInstance$1;
2335
+ var speciesConstructor = speciesConstructor$1;
2336
+ var task = task$1.set;
2337
+ var microtask = microtask_1;
2338
+ var hostReportErrors = hostReportErrors$1;
2339
+ var perform$2 = perform$3;
2340
+ var Queue = queue$1;
2341
+ var InternalStateModule = internalState;
2342
+ var NativePromiseConstructor$2 = promiseNativeConstructor;
2343
+ var PromiseConstructorDetection = promiseConstructorDetection;
2344
+ var newPromiseCapabilityModule$3 = newPromiseCapability$2;
2345
+
2346
+ var PROMISE = 'Promise';
2347
+ var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
2348
+ var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
2349
+ var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
2350
+ var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
2351
+ var setInternalState = InternalStateModule.set;
2352
+ var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
2353
+ var PromiseConstructor = NativePromiseConstructor$2;
2354
+ 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;
2358
+ var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
2359
+ var newGenericPromiseCapability = newPromiseCapability$1;
2360
+
2361
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$1.dispatchEvent);
2362
+ var UNHANDLED_REJECTION = 'unhandledrejection';
2363
+ var REJECTION_HANDLED = 'rejectionhandled';
2364
+ var PENDING = 0;
2365
+ var FULFILLED = 1;
2366
+ var REJECTED = 2;
2367
+ var HANDLED = 1;
2368
+ var UNHANDLED = 2;
2369
+
2370
+ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
2371
+
2372
+ // helpers
2373
+ var isThenable = function (it) {
2374
+ var then;
2375
+ return isObject$1(it) && isCallable$1(then = it.then) ? then : false;
2376
+ };
2377
+
2378
+ var callReaction = function (reaction, state) {
2379
+ var value = state.value;
2380
+ var ok = state.state == FULFILLED;
2381
+ var handler = ok ? reaction.ok : reaction.fail;
2382
+ var resolve = reaction.resolve;
2383
+ var reject = reaction.reject;
2384
+ var domain = reaction.domain;
2385
+ var result, then, exited;
2386
+ try {
2387
+ if (handler) {
2388
+ if (!ok) {
2389
+ if (state.rejection === UNHANDLED) onHandleUnhandled(state);
2390
+ state.rejection = HANDLED;
2391
+ }
2392
+ if (handler === true) result = value;
2393
+ else {
2394
+ if (domain) domain.enter();
2395
+ result = handler(value); // can throw
2396
+ if (domain) {
2397
+ domain.exit();
2398
+ exited = true;
2399
+ }
2400
+ }
2401
+ if (result === reaction.promise) {
2402
+ reject(TypeError$1('Promise-chain cycle'));
2403
+ } else if (then = isThenable(result)) {
2404
+ call$6(then, result, resolve, reject);
2405
+ } else resolve(result);
2406
+ } else reject(value);
2407
+ } catch (error) {
2408
+ if (domain && !exited) domain.exit();
2409
+ reject(error);
2410
+ }
2411
+ };
2412
+
2413
+ var notify = function (state, isReject) {
2414
+ if (state.notified) return;
2415
+ state.notified = true;
2416
+ microtask(function () {
2417
+ var reactions = state.reactions;
2418
+ var reaction;
2419
+ while (reaction = reactions.get()) {
2420
+ callReaction(reaction, state);
2421
+ }
2422
+ state.notified = false;
2423
+ if (isReject && !state.rejection) onUnhandled(state);
2424
+ });
2425
+ };
2426
+
2427
+ var dispatchEvent = function (name, promise, reason) {
2428
+ var event, handler;
2429
+ if (DISPATCH_EVENT) {
2430
+ event = document$1.createEvent('Event');
2431
+ event.promise = promise;
2432
+ event.reason = reason;
2433
+ event.initEvent(name, false, true);
2434
+ global$1.dispatchEvent(event);
2435
+ } else event = { promise: promise, reason: reason };
2436
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
2437
+ else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
2438
+ };
2439
+
2440
+ var onUnhandled = function (state) {
2441
+ call$6(task, global$1, function () {
2442
+ var promise = state.facade;
2443
+ var value = state.value;
2444
+ var IS_UNHANDLED = isUnhandled(state);
2445
+ var result;
2446
+ if (IS_UNHANDLED) {
2447
+ result = perform$2(function () {
2448
+ if (IS_NODE) {
2449
+ process$1.emit('unhandledRejection', value, promise);
2450
+ } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
2451
+ });
2452
+ // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
2453
+ state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
2454
+ if (result.error) throw result.value;
2455
+ }
2456
+ });
2457
+ };
2458
+
2459
+ var isUnhandled = function (state) {
2460
+ return state.rejection !== HANDLED && !state.parent;
2461
+ };
2462
+
2463
+ var onHandleUnhandled = function (state) {
2464
+ call$6(task, global$1, function () {
2465
+ var promise = state.facade;
2466
+ if (IS_NODE) {
2467
+ process$1.emit('rejectionHandled', promise);
2468
+ } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
2469
+ });
2470
+ };
2471
+
2472
+ var bind$1 = function (fn, state, unwrap) {
2473
+ return function (value) {
2474
+ fn(state, value, unwrap);
2475
+ };
2476
+ };
2477
+
2478
+ var internalReject = function (state, value, unwrap) {
2479
+ if (state.done) return;
2480
+ state.done = true;
2481
+ if (unwrap) state = unwrap;
2482
+ state.value = value;
2483
+ state.state = REJECTED;
2484
+ notify(state, true);
2485
+ };
2486
+
2487
+ var internalResolve = function (state, value, unwrap) {
2488
+ if (state.done) return;
2489
+ state.done = true;
2490
+ if (unwrap) state = unwrap;
2491
+ try {
2492
+ if (state.facade === value) throw TypeError$1("Promise can't be resolved itself");
2493
+ var then = isThenable(value);
2494
+ if (then) {
2495
+ microtask(function () {
2496
+ var wrapper = { done: false };
2497
+ try {
2498
+ call$6(then, value,
2499
+ bind$1(internalResolve, wrapper, state),
2500
+ bind$1(internalReject, wrapper, state)
2501
+ );
2502
+ } catch (error) {
2503
+ internalReject(wrapper, error, state);
2504
+ }
2505
+ });
2506
+ } else {
2507
+ state.value = value;
2508
+ state.state = FULFILLED;
2509
+ notify(state, false);
2510
+ }
2511
+ } catch (error) {
2512
+ internalReject({ done: false }, error, state);
2513
+ }
2514
+ };
2515
+
2516
+ // constructor polyfill
2517
+ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2518
+ // 25.4.3.1 Promise(executor)
2519
+ PromiseConstructor = function Promise(executor) {
2520
+ anInstance(this, PromisePrototype);
2521
+ aCallable$3(executor);
2522
+ call$6(Internal, this);
2523
+ var state = getInternalPromiseState(this);
2524
+ try {
2525
+ executor(bind$1(internalResolve, state), bind$1(internalReject, state));
2526
+ } catch (error) {
2527
+ internalReject(state, error);
2528
+ }
2529
+ };
2530
+
2531
+ PromisePrototype = PromiseConstructor.prototype;
2532
+
2533
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
2534
+ Internal = function Promise(executor) {
2535
+ setInternalState(this, {
2536
+ type: PROMISE,
2537
+ done: false,
2538
+ notified: false,
2539
+ parent: false,
2540
+ reactions: new Queue(),
2541
+ rejection: false,
2542
+ state: PENDING,
2543
+ value: undefined
2544
+ });
2545
+ };
2546
+
2547
+ // `Promise.prototype.then` method
2548
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
2549
+ Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
2550
+ var state = getInternalPromiseState(this);
2551
+ var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
2552
+ state.parent = true;
2553
+ reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
2554
+ reaction.fail = isCallable$1(onRejected) && onRejected;
2555
+ reaction.domain = IS_NODE ? process$1.domain : undefined;
2556
+ if (state.state == PENDING) state.reactions.add(reaction);
2557
+ else microtask(function () {
2558
+ callReaction(reaction, state);
2559
+ });
2560
+ return reaction.promise;
2561
+ });
2562
+
2563
+ OwnPromiseCapability = function () {
2564
+ var promise = new Internal();
2565
+ var state = getInternalPromiseState(promise);
2566
+ this.promise = promise;
2567
+ this.resolve = bind$1(internalResolve, state);
2568
+ this.reject = bind$1(internalReject, state);
2569
+ };
2570
+
2571
+ newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
2572
+ return C === PromiseConstructor || C === PromiseWrapper
2573
+ ? new OwnPromiseCapability(C)
2574
+ : newGenericPromiseCapability(C);
2575
+ };
2576
+
2577
+ if (isCallable$1(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
2578
+ nativeThen = NativePromisePrototype$1.then;
2579
+
2580
+ if (!NATIVE_PROMISE_SUBCLASSING) {
2581
+ // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
2582
+ defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
2583
+ var that = this;
2584
+ return new PromiseConstructor(function (resolve, reject) {
2585
+ call$6(nativeThen, that, resolve, reject);
2586
+ }).then(onFulfilled, onRejected);
2587
+ // https://github.com/zloirock/core-js/issues/640
2588
+ }, { unsafe: true });
2589
+ }
2590
+
2591
+ // make `.constructor === Promise` work for native promise-based APIs
2592
+ try {
2593
+ delete NativePromisePrototype$1.constructor;
2594
+ } catch (error) { /* empty */ }
2595
+
2596
+ // make `instanceof Promise` work for native promise-based APIs
2597
+ if (setPrototypeOf) {
2598
+ setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
2599
+ }
2600
+ }
2601
+ }
2602
+
2603
+ $$5({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2604
+ Promise: PromiseConstructor
2605
+ });
2606
+
2607
+ setToStringTag(PromiseConstructor, PROMISE, false);
2608
+ setSpecies(PROMISE);
2609
+
2610
+ var wellKnownSymbol$2 = wellKnownSymbol$e;
2611
+ var Iterators$1 = iterators;
2612
+
2613
+ var ITERATOR$2 = wellKnownSymbol$2('iterator');
2614
+ var ArrayPrototype = Array.prototype;
2615
+
2616
+ // check on default Array iterator
2617
+ var isArrayIteratorMethod$1 = function (it) {
2618
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
2619
+ };
2620
+
2621
+ var classof = classof$2;
2622
+ var getMethod$1 = getMethod$3;
2623
+ var isNullOrUndefined = isNullOrUndefined$4;
2624
+ var Iterators = iterators;
2625
+ var wellKnownSymbol$1 = wellKnownSymbol$e;
2626
+
2627
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
2628
+
2629
+ var getIteratorMethod$2 = function (it) {
2630
+ if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
2631
+ || getMethod$1(it, '@@iterator')
2632
+ || Iterators[classof(it)];
2633
+ };
2634
+
2635
+ var call$5 = functionCall;
2636
+ var aCallable$2 = aCallable$8;
2637
+ var anObject$3 = anObject$a;
2638
+ var tryToString$1 = tryToString$4;
2639
+ var getIteratorMethod$1 = getIteratorMethod$2;
2640
+
2641
+ var $TypeError$1 = TypeError;
2642
+
2643
+ var getIterator$1 = function (argument, usingIterator) {
2644
+ 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');
2647
+ };
2648
+
2649
+ var call$4 = functionCall;
2650
+ var anObject$2 = anObject$a;
2651
+ var getMethod = getMethod$3;
2652
+
2653
+ var iteratorClose$1 = function (iterator, kind, value) {
2654
+ var innerResult, innerError;
2655
+ anObject$2(iterator);
2656
+ try {
2657
+ innerResult = getMethod(iterator, 'return');
2658
+ if (!innerResult) {
2659
+ if (kind === 'throw') throw value;
2660
+ return value;
2661
+ }
2662
+ innerResult = call$4(innerResult, iterator);
2663
+ } catch (error) {
2664
+ innerError = true;
2665
+ innerResult = error;
2666
+ }
2667
+ if (kind === 'throw') throw value;
2668
+ if (innerError) throw innerResult;
2669
+ anObject$2(innerResult);
2670
+ return value;
2671
+ };
2672
+
2673
+ var bind = functionBindContext;
2674
+ var call$3 = functionCall;
2675
+ var anObject$1 = anObject$a;
2676
+ var tryToString = tryToString$4;
2677
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
2678
+ var lengthOfArrayLike = lengthOfArrayLike$2;
2679
+ var isPrototypeOf = objectIsPrototypeOf;
2680
+ var getIterator = getIterator$1;
2681
+ var getIteratorMethod = getIteratorMethod$2;
2682
+ var iteratorClose = iteratorClose$1;
2683
+
2684
+ var $TypeError = TypeError;
2685
+
2686
+ var Result = function (stopped, result) {
2687
+ this.stopped = stopped;
2688
+ this.result = result;
2689
+ };
2690
+
2691
+ var ResultPrototype = Result.prototype;
2692
+
2693
+ var iterate$2 = function (iterable, unboundFunction, options) {
2694
+ var that = options && options.that;
2695
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
2696
+ var IS_RECORD = !!(options && options.IS_RECORD);
2697
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2698
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
2699
+ var fn = bind(unboundFunction, that);
2700
+ var iterator, iterFn, index, length, result, next, step;
2701
+
2702
+ var stop = function (condition) {
2703
+ if (iterator) iteratorClose(iterator, 'normal', condition);
2704
+ return new Result(true, condition);
2705
+ };
2706
+
2707
+ var callFn = function (value) {
2708
+ if (AS_ENTRIES) {
2709
+ anObject$1(value);
2710
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2711
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
2712
+ };
2713
+
2714
+ if (IS_RECORD) {
2715
+ iterator = iterable.iterator;
2716
+ } else if (IS_ITERATOR) {
2717
+ iterator = iterable;
2718
+ } else {
2719
+ iterFn = getIteratorMethod(iterable);
2720
+ if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
2721
+ // optimisation for array iterators
2722
+ if (isArrayIteratorMethod(iterFn)) {
2723
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2724
+ result = callFn(iterable[index]);
2725
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
2726
+ } return new Result(false);
2727
+ }
2728
+ iterator = getIterator(iterable, iterFn);
2729
+ }
2730
+
2731
+ next = IS_RECORD ? iterable.next : iterator.next;
2732
+ while (!(step = call$3(next, iterator)).done) {
2733
+ try {
2734
+ result = callFn(step.value);
2735
+ } catch (error) {
2736
+ iteratorClose(iterator, 'throw', error);
2737
+ }
2738
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
2739
+ } return new Result(false);
2740
+ };
2741
+
2742
+ var wellKnownSymbol = wellKnownSymbol$e;
2743
+
2744
+ var ITERATOR = wellKnownSymbol('iterator');
2745
+ var SAFE_CLOSING = false;
2746
+
2747
+ try {
2748
+ var called = 0;
2749
+ var iteratorWithReturn = {
2750
+ next: function () {
2751
+ return { done: !!called++ };
2752
+ },
2753
+ 'return': function () {
2754
+ SAFE_CLOSING = true;
2755
+ }
2756
+ };
2757
+ iteratorWithReturn[ITERATOR] = function () {
2758
+ return this;
2759
+ };
2760
+ // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
2761
+ Array.from(iteratorWithReturn, function () { throw 2; });
2762
+ } catch (error) { /* empty */ }
2763
+
2764
+ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
2765
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
2766
+ var ITERATION_SUPPORT = false;
2767
+ try {
2768
+ var object = {};
2769
+ object[ITERATOR] = function () {
2770
+ return {
2771
+ next: function () {
2772
+ return { done: ITERATION_SUPPORT = true };
2773
+ }
2774
+ };
2775
+ };
2776
+ exec(object);
2777
+ } catch (error) { /* empty */ }
2778
+ return ITERATION_SUPPORT;
2779
+ };
2780
+
2781
+ var NativePromiseConstructor$1 = promiseNativeConstructor;
2782
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
2783
+ var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
2784
+
2785
+ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
2786
+ NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2787
+ });
2788
+
2789
+ var $$4 = _export;
2790
+ var call$2 = functionCall;
2791
+ var aCallable$1 = aCallable$8;
2792
+ var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2793
+ var perform$1 = perform$3;
2794
+ var iterate$1 = iterate$2;
2795
+ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2796
+
2797
+ // `Promise.all` method
2798
+ // https://tc39.es/ecma262/#sec-promise.all
2799
+ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2800
+ all: function all(iterable) {
2801
+ var C = this;
2802
+ var capability = newPromiseCapabilityModule$2.f(C);
2803
+ var resolve = capability.resolve;
2804
+ var reject = capability.reject;
2805
+ var result = perform$1(function () {
2806
+ var $promiseResolve = aCallable$1(C.resolve);
2807
+ var values = [];
2808
+ var counter = 0;
2809
+ var remaining = 1;
2810
+ iterate$1(iterable, function (promise) {
2811
+ var index = counter++;
2812
+ var alreadyCalled = false;
2813
+ remaining++;
2814
+ call$2($promiseResolve, C, promise).then(function (value) {
2815
+ if (alreadyCalled) return;
2816
+ alreadyCalled = true;
2817
+ values[index] = value;
2818
+ --remaining || resolve(values);
2819
+ }, reject);
2820
+ });
2821
+ --remaining || resolve(values);
2822
+ });
2823
+ if (result.error) reject(result.value);
2824
+ return capability.promise;
2825
+ }
2826
+ });
2827
+
2828
+ var $$3 = _export;
2829
+ var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2830
+ var NativePromiseConstructor = promiseNativeConstructor;
2831
+ var getBuiltIn$1 = getBuiltIn$7;
2832
+ var isCallable = isCallable$k;
2833
+ var defineBuiltIn = defineBuiltIn$5;
2834
+
2835
+ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
2836
+
2837
+ // `Promise.prototype.catch` method
2838
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
2839
+ $$3({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2840
+ 'catch': function (onRejected) {
2841
+ return this.then(undefined, onRejected);
2842
+ }
2843
+ });
2844
+
2845
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2846
+ if (isCallable(NativePromiseConstructor)) {
2847
+ var method = getBuiltIn$1('Promise').prototype['catch'];
2848
+ if (NativePromisePrototype['catch'] !== method) {
2849
+ defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
2850
+ }
2851
+ }
2852
+
2853
+ var $$2 = _export;
2854
+ var call$1 = functionCall;
2855
+ var aCallable = aCallable$8;
2856
+ var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2857
+ var perform = perform$3;
2858
+ var iterate = iterate$2;
2859
+ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2860
+
2861
+ // `Promise.race` method
2862
+ // https://tc39.es/ecma262/#sec-promise.race
2863
+ $$2({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2864
+ race: function race(iterable) {
2865
+ var C = this;
2866
+ var capability = newPromiseCapabilityModule$1.f(C);
2867
+ var reject = capability.reject;
2868
+ var result = perform(function () {
2869
+ var $promiseResolve = aCallable(C.resolve);
2870
+ iterate(iterable, function (promise) {
2871
+ call$1($promiseResolve, C, promise).then(capability.resolve, reject);
2872
+ });
2873
+ });
2874
+ if (result.error) reject(result.value);
2875
+ return capability.promise;
2876
+ }
2877
+ });
2878
+
2879
+ var $$1 = _export;
2880
+ var call = functionCall;
2881
+ var newPromiseCapabilityModule = newPromiseCapability$2;
2882
+ var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2883
+
2884
+ // `Promise.reject` method
2885
+ // https://tc39.es/ecma262/#sec-promise.reject
2886
+ $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2887
+ reject: function reject(r) {
2888
+ var capability = newPromiseCapabilityModule.f(this);
2889
+ call(capability.reject, undefined, r);
2890
+ return capability.promise;
2891
+ }
2892
+ });
2893
+
2894
+ var anObject = anObject$a;
2895
+ var isObject = isObject$8;
2896
+ var newPromiseCapability = newPromiseCapability$2;
2897
+
2898
+ var promiseResolve$1 = function (C, x) {
2899
+ anObject(C);
2900
+ if (isObject(x) && x.constructor === C) return x;
2901
+ var promiseCapability = newPromiseCapability.f(C);
2902
+ var resolve = promiseCapability.resolve;
2903
+ resolve(x);
2904
+ return promiseCapability.promise;
2905
+ };
2906
+
2907
+ var $ = _export;
2908
+ var getBuiltIn = getBuiltIn$7;
2909
+ var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2910
+ var promiseResolve = promiseResolve$1;
2911
+
2912
+ getBuiltIn('Promise');
2913
+
2914
+ // `Promise.resolve` method
2915
+ // https://tc39.es/ecma262/#sec-promise.resolve
2916
+ $({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2917
+ resolve: function resolve(x) {
2918
+ return promiseResolve(this, x);
2919
+ }
2920
+ });
2921
+
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
+ const useEngineStatusQuery = () => {
2973
+ const {
2974
+ engineStatusEndpoint
2975
+ } = useContext(OrchestratorConfigContext);
2976
+ const fetchEngineStatus = () => __awaiter(void 0, void 0, void 0, function* () {
2977
+ const response = yield fetch(engineStatusEndpoint, {
2978
+ method: 'GET'
2979
+ });
2980
+ return yield response.json();
2981
+ });
2982
+ return useQuery('engineStatus', fetchEngineStatus);
2983
+ };
2984
+
2985
+ var ProcessStatus;
2986
+ (function (ProcessStatus) {
2987
+ ProcessStatus["CREATED"] = "created";
2988
+ ProcessStatus["RUNNING"] = "running";
2989
+ ProcessStatus["SUSPENDED"] = "suspended";
2990
+ ProcessStatus["WAITING"] = "waiting";
2991
+ ProcessStatus["ABORTED"] = "aborted";
2992
+ ProcessStatus["FAILED"] = "failed";
2993
+ ProcessStatus["API_UNAVAILABLE"] = "api_unavailable";
2994
+ ProcessStatus["INCONSISTENT_DATA"] = "inconsistent_data";
2995
+ ProcessStatus["COMPLETED"] = "completed";
2996
+ })(ProcessStatus || (ProcessStatus = {}));
2997
+ const useProcessStatusCountsQuery = () => {
2998
+ const {
2999
+ processStatusCountsEndpoint
3000
+ } = useContext(OrchestratorConfigContext);
3001
+ const fetchProcessStatusCounts = () => __awaiter(void 0, void 0, void 0, function* () {
3002
+ const response = yield fetch(processStatusCountsEndpoint, {
3003
+ method: 'GET'
3004
+ });
3005
+ return yield response.json();
3006
+ });
3007
+ return useQuery('processStatusCounts', fetchProcessStatusCounts);
3008
+ };
3009
+
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
3020
+ };
3021
+ };
3022
+ const OrchestratorPageHeader = ({
3023
+ navigationHeight,
3024
+ getAppLogo,
3025
+ handleLogoutClick
3026
+ }) => {
3027
+ const {
3028
+ theme,
3029
+ multiplyByBaseUnit
3030
+ } = useOrchestratorTheme();
3031
+ const {
3032
+ data: engineStatus
3033
+ } = useEngineStatusQuery();
3034
+ const {
3035
+ data: processStatusCounts
3036
+ } = useProcessStatusCountsQuery();
3037
+ 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
+ }]
3133
+ });
3134
+ };
3135
+
3136
+ const OrchestratorPageTemplate = ({
3137
+ children,
3138
+ getAppLogo
3139
+ }) => {
3140
+ const {
3141
+ theme,
3142
+ multiplyByBaseUnit
3143
+ } = 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
+ });
3174
+ };
3175
+
3176
+ const defaultOrchestratorTheme = {
3177
+ colors: {
3178
+ DARK: {},
3179
+ LIGHT: {
3180
+ primary: '#0077C8',
3181
+ accent: '#E67300',
3182
+ success: '#008939',
3183
+ warning: '#FFC514',
3184
+ danger: '#BD271F',
3185
+ primaryText: '#0067AC',
3186
+ accentText: '#B05200',
3187
+ successText: '#007832',
3188
+ warningText: '#8E6A00',
3189
+ dangerText: '#AC0A01',
3190
+ emptyShade: '#FFFFFF',
3191
+ lightestShade: '#F1F5F9',
3192
+ lightShade: '#CCD5E2',
3193
+ mediumShade: '#94A4B8',
3194
+ darkShade: '#64758B',
3195
+ darkestShade: '#334255',
3196
+ fullShade: '#0F172B',
3197
+ text: '#334255',
3198
+ title: '#0F172B',
3199
+ subduedText: '#64758B',
3200
+ link: '#0067AC',
3201
+ body: '#F1F5F9',
3202
+ highlight: '#FFF6DE',
3203
+ disabled: '#94A4B8',
3204
+ disabledText: '#94A4B8',
3205
+ shadow: '#000000'
3206
+ }
3207
+ },
3208
+ font: {
3209
+ weight: {
3210
+ regular: 400,
3211
+ medium: 500,
3212
+ semiBold: 600,
3213
+ bold: 700
3214
+ }
3215
+ }
3216
+ };
3217
+
3218
+ const getStatusBadgeColor = status => {
3219
+ const statusColors = {
3220
+ terminated: 'danger',
3221
+ active: 'success',
3222
+ provisioning: 'primary',
3223
+ migrating: 'primary',
3224
+ initial: 'danger'
3225
+ };
3226
+ // eslint-disable-next-line no-prototype-builtins
3227
+ return statusColors.hasOwnProperty(status) ?
3228
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3229
+ // @ts-ignore
3230
+ statusColors[status] : 'primary';
1747
3231
  };
1748
3232
 
1749
- export { CustomButton, OrchestratorPageTemplate, defaultOrchestratorTheme };
3233
+ export { CustomButton, OrchestratorConfigContext, OrchestratorConfigProvider, OrchestratorPageTemplate, defaultOrchestratorTheme, getStatusBadgeColor, useOrchestratorConfig };