@vention/machine-apps-components 1.31.9 → 1.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1794 @@
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import { Stack, Typography } from '@mui/material';
3
+ import { VentionSpinner, VentionButton } from '@vention/machine-ui';
4
+
5
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
+
7
+ var check = function (it) {
8
+ return it && it.Math === Math && it;
9
+ };
10
+
11
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
12
+ var globalThis_1 =
13
+ // eslint-disable-next-line es/no-global-this -- safe
14
+ check(typeof globalThis == 'object' && globalThis) ||
15
+ check(typeof window == 'object' && window) ||
16
+ // eslint-disable-next-line no-restricted-globals -- safe
17
+ check(typeof self == 'object' && self) ||
18
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
19
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
20
+ // eslint-disable-next-line no-new-func -- fallback
21
+ (function () { return this; })() || Function('return this')();
22
+
23
+ var objectGetOwnPropertyDescriptor = {};
24
+
25
+ var fails$b = function (exec) {
26
+ try {
27
+ return !!exec();
28
+ } catch (error) {
29
+ return true;
30
+ }
31
+ };
32
+
33
+ var fails$a = fails$b;
34
+
35
+ // Detect IE8's incomplete defineProperty implementation
36
+ var descriptors = !fails$a(function () {
37
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
38
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
39
+ });
40
+
41
+ var fails$9 = fails$b;
42
+
43
+ var functionBindNative = !fails$9(function () {
44
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
45
+ var test = function () { /* empty */ }.bind();
46
+ // eslint-disable-next-line no-prototype-builtins -- safe
47
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
48
+ });
49
+
50
+ var NATIVE_BIND$1 = functionBindNative;
51
+
52
+ var call$6 = Function.prototype.call;
53
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
54
+ var functionCall = NATIVE_BIND$1 ? call$6.bind(call$6) : function () {
55
+ return call$6.apply(call$6, arguments);
56
+ };
57
+
58
+ var objectPropertyIsEnumerable = {};
59
+
60
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
61
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
62
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
63
+
64
+ // Nashorn ~ JDK8 bug
65
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
66
+
67
+ // `Object.prototype.propertyIsEnumerable` method implementation
68
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
69
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
70
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
71
+ return !!descriptor && descriptor.enumerable;
72
+ } : $propertyIsEnumerable;
73
+
74
+ var createPropertyDescriptor$3 = function (bitmap, value) {
75
+ return {
76
+ enumerable: !(bitmap & 1),
77
+ configurable: !(bitmap & 2),
78
+ writable: !(bitmap & 4),
79
+ value: value
80
+ };
81
+ };
82
+
83
+ var NATIVE_BIND = functionBindNative;
84
+
85
+ var FunctionPrototype$1 = Function.prototype;
86
+ var call$5 = FunctionPrototype$1.call;
87
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
88
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$5, call$5);
89
+
90
+ var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
91
+ return function () {
92
+ return call$5.apply(fn, arguments);
93
+ };
94
+ };
95
+
96
+ var uncurryThis$a = functionUncurryThis;
97
+
98
+ var toString$1 = uncurryThis$a({}.toString);
99
+ var stringSlice$1 = uncurryThis$a(''.slice);
100
+
101
+ var classofRaw = function (it) {
102
+ return stringSlice$1(toString$1(it), 8, -1);
103
+ };
104
+
105
+ var uncurryThis$9 = functionUncurryThis;
106
+ var fails$8 = fails$b;
107
+ var classof = classofRaw;
108
+
109
+ var $Object$3 = Object;
110
+ var split = uncurryThis$9(''.split);
111
+
112
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
113
+ var indexedObject = fails$8(function () {
114
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
115
+ // eslint-disable-next-line no-prototype-builtins -- safe
116
+ return !$Object$3('z').propertyIsEnumerable(0);
117
+ }) ? function (it) {
118
+ return classof(it) === 'String' ? split(it, '') : $Object$3(it);
119
+ } : $Object$3;
120
+
121
+ // we can't use just `it == null` since of `document.all` special case
122
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
123
+ var isNullOrUndefined$2 = function (it) {
124
+ return it === null || it === undefined;
125
+ };
126
+
127
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
128
+
129
+ var $TypeError$6 = TypeError;
130
+
131
+ // `RequireObjectCoercible` abstract operation
132
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
133
+ var requireObjectCoercible$3 = function (it) {
134
+ if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
135
+ return it;
136
+ };
137
+
138
+ // toObject with fallback for non-array-like ES3 strings
139
+ var IndexedObject$1 = indexedObject;
140
+ var requireObjectCoercible$2 = requireObjectCoercible$3;
141
+
142
+ var toIndexedObject$5 = function (it) {
143
+ return IndexedObject$1(requireObjectCoercible$2(it));
144
+ };
145
+
146
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
147
+ var documentAll = typeof document == 'object' && document.all;
148
+
149
+ // `IsCallable` abstract operation
150
+ // https://tc39.es/ecma262/#sec-iscallable
151
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
152
+ var isCallable$d = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
153
+ return typeof argument == 'function' || argument === documentAll;
154
+ } : function (argument) {
155
+ return typeof argument == 'function';
156
+ };
157
+
158
+ var isCallable$c = isCallable$d;
159
+
160
+ var isObject$8 = function (it) {
161
+ return typeof it == 'object' ? it !== null : isCallable$c(it);
162
+ };
163
+
164
+ var globalThis$c = globalThis_1;
165
+ var isCallable$b = isCallable$d;
166
+
167
+ var aFunction = function (argument) {
168
+ return isCallable$b(argument) ? argument : undefined;
169
+ };
170
+
171
+ var getBuiltIn$3 = function (namespace, method) {
172
+ return arguments.length < 2 ? aFunction(globalThis$c[namespace]) : globalThis$c[namespace] && globalThis$c[namespace][method];
173
+ };
174
+
175
+ var uncurryThis$8 = functionUncurryThis;
176
+
177
+ var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
178
+
179
+ var globalThis$b = globalThis_1;
180
+
181
+ var navigator = globalThis$b.navigator;
182
+ var userAgent$1 = navigator && navigator.userAgent;
183
+
184
+ var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
185
+
186
+ var globalThis$a = globalThis_1;
187
+ var userAgent = environmentUserAgent;
188
+
189
+ var process = globalThis$a.process;
190
+ var Deno = globalThis$a.Deno;
191
+ var versions = process && process.versions || Deno && Deno.version;
192
+ var v8 = versions && versions.v8;
193
+ var match, version;
194
+
195
+ if (v8) {
196
+ match = v8.split('.');
197
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
198
+ // but their correct versions are not interesting for us
199
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
200
+ }
201
+
202
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
203
+ // so check `userAgent` even if `.v8` exists, but 0
204
+ if (!version && userAgent) {
205
+ match = userAgent.match(/Edge\/(\d+)/);
206
+ if (!match || match[1] >= 74) {
207
+ match = userAgent.match(/Chrome\/(\d+)/);
208
+ if (match) version = +match[1];
209
+ }
210
+ }
211
+
212
+ var environmentV8Version = version;
213
+
214
+ /* eslint-disable es/no-symbol -- required for testing */
215
+ var V8_VERSION = environmentV8Version;
216
+ var fails$7 = fails$b;
217
+ var globalThis$9 = globalThis_1;
218
+
219
+ var $String$4 = globalThis$9.String;
220
+
221
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
222
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
223
+ var symbol = Symbol('symbol detection');
224
+ // Chrome 38 Symbol has incorrect toString conversion
225
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
226
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
227
+ // of course, fail.
228
+ return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
229
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
230
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
231
+ });
232
+
233
+ /* eslint-disable es/no-symbol -- required for testing */
234
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
235
+
236
+ var useSymbolAsUid = NATIVE_SYMBOL$1 &&
237
+ !Symbol.sham &&
238
+ typeof Symbol.iterator == 'symbol';
239
+
240
+ var getBuiltIn$2 = getBuiltIn$3;
241
+ var isCallable$a = isCallable$d;
242
+ var isPrototypeOf = objectIsPrototypeOf;
243
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
244
+
245
+ var $Object$2 = Object;
246
+
247
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
248
+ return typeof it == 'symbol';
249
+ } : function (it) {
250
+ var $Symbol = getBuiltIn$2('Symbol');
251
+ return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
252
+ };
253
+
254
+ var $String$3 = String;
255
+
256
+ var tryToString$1 = function (argument) {
257
+ try {
258
+ return $String$3(argument);
259
+ } catch (error) {
260
+ return 'Object';
261
+ }
262
+ };
263
+
264
+ var isCallable$9 = isCallable$d;
265
+ var tryToString = tryToString$1;
266
+
267
+ var $TypeError$5 = TypeError;
268
+
269
+ // `Assert: IsCallable(argument) is true`
270
+ var aCallable$2 = function (argument) {
271
+ if (isCallable$9(argument)) return argument;
272
+ throw new $TypeError$5(tryToString(argument) + ' is not a function');
273
+ };
274
+
275
+ var aCallable$1 = aCallable$2;
276
+ var isNullOrUndefined = isNullOrUndefined$2;
277
+
278
+ // `GetMethod` abstract operation
279
+ // https://tc39.es/ecma262/#sec-getmethod
280
+ var getMethod$1 = function (V, P) {
281
+ var func = V[P];
282
+ return isNullOrUndefined(func) ? undefined : aCallable$1(func);
283
+ };
284
+
285
+ var call$4 = functionCall;
286
+ var isCallable$8 = isCallable$d;
287
+ var isObject$7 = isObject$8;
288
+
289
+ var $TypeError$4 = TypeError;
290
+
291
+ // `OrdinaryToPrimitive` abstract operation
292
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
293
+ var ordinaryToPrimitive$1 = function (input, pref) {
294
+ var fn, val;
295
+ if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$7(val = call$4(fn, input))) return val;
296
+ if (isCallable$8(fn = input.valueOf) && !isObject$7(val = call$4(fn, input))) return val;
297
+ if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$7(val = call$4(fn, input))) return val;
298
+ throw new $TypeError$4("Can't convert object to primitive value");
299
+ };
300
+
301
+ var sharedStore = {exports: {}};
302
+
303
+ var globalThis$8 = globalThis_1;
304
+
305
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
306
+ var defineProperty$5 = Object.defineProperty;
307
+
308
+ var defineGlobalProperty$3 = function (key, value) {
309
+ try {
310
+ defineProperty$5(globalThis$8, key, { value: value, configurable: true, writable: true });
311
+ } catch (error) {
312
+ globalThis$8[key] = value;
313
+ } return value;
314
+ };
315
+
316
+ var globalThis$7 = globalThis_1;
317
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
318
+
319
+ var SHARED = '__core-js_shared__';
320
+ var store$3 = sharedStore.exports = globalThis$7[SHARED] || defineGlobalProperty$2(SHARED, {});
321
+
322
+ (store$3.versions || (store$3.versions = [])).push({
323
+ version: '3.49.0',
324
+ mode: 'global',
325
+ copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
326
+ license: 'https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE',
327
+ source: 'https://github.com/zloirock/core-js'
328
+ });
329
+
330
+ var sharedStoreExports = sharedStore.exports;
331
+
332
+ var store$2 = sharedStoreExports;
333
+
334
+ var shared$3 = function (key, value) {
335
+ return store$2[key] || (store$2[key] = value || {});
336
+ };
337
+
338
+ var requireObjectCoercible$1 = requireObjectCoercible$3;
339
+
340
+ var $Object$1 = Object;
341
+
342
+ // `ToObject` abstract operation
343
+ // https://tc39.es/ecma262/#sec-toobject
344
+ var toObject$3 = function (argument) {
345
+ return $Object$1(requireObjectCoercible$1(argument));
346
+ };
347
+
348
+ var uncurryThis$7 = functionUncurryThis;
349
+ var toObject$2 = toObject$3;
350
+
351
+ var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
352
+
353
+ // `HasOwnProperty` abstract operation
354
+ // https://tc39.es/ecma262/#sec-hasownproperty
355
+ // eslint-disable-next-line es/no-object-hasown -- safe
356
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
357
+ return hasOwnProperty(toObject$2(it), key);
358
+ };
359
+
360
+ var uncurryThis$6 = functionUncurryThis;
361
+
362
+ var id = 0;
363
+ var postfix = Math.random();
364
+ var toString = uncurryThis$6(1.1.toString);
365
+
366
+ var uid$2 = function (key) {
367
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
368
+ };
369
+
370
+ var globalThis$6 = globalThis_1;
371
+ var shared$2 = shared$3;
372
+ var hasOwn$8 = hasOwnProperty_1;
373
+ var uid$1 = uid$2;
374
+ var NATIVE_SYMBOL = symbolConstructorDetection;
375
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
376
+
377
+ var Symbol$1 = globalThis$6.Symbol;
378
+ var WellKnownSymbolsStore = shared$2('wks');
379
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
380
+
381
+ var wellKnownSymbol$6 = function (name) {
382
+ if (!hasOwn$8(WellKnownSymbolsStore, name)) {
383
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
384
+ ? Symbol$1[name]
385
+ : createWellKnownSymbol('Symbol.' + name);
386
+ } return WellKnownSymbolsStore[name];
387
+ };
388
+
389
+ var call$3 = functionCall;
390
+ var isObject$6 = isObject$8;
391
+ var isSymbol$1 = isSymbol$2;
392
+ var getMethod = getMethod$1;
393
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
394
+ var wellKnownSymbol$5 = wellKnownSymbol$6;
395
+
396
+ var $TypeError$3 = TypeError;
397
+ var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
398
+
399
+ // `ToPrimitive` abstract operation
400
+ // https://tc39.es/ecma262/#sec-toprimitive
401
+ var toPrimitive$1 = function (input, pref) {
402
+ if (!isObject$6(input) || isSymbol$1(input)) return input;
403
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
404
+ var result;
405
+ if (exoticToPrim) {
406
+ if (pref === undefined) pref = 'default';
407
+ result = call$3(exoticToPrim, input, pref);
408
+ if (!isObject$6(result) || isSymbol$1(result)) return result;
409
+ throw new $TypeError$3("Can't convert object to primitive value");
410
+ }
411
+ if (pref === undefined) pref = 'number';
412
+ return ordinaryToPrimitive(input, pref);
413
+ };
414
+
415
+ var toPrimitive = toPrimitive$1;
416
+ var isSymbol = isSymbol$2;
417
+
418
+ // `ToPropertyKey` abstract operation
419
+ // https://tc39.es/ecma262/#sec-topropertykey
420
+ var toPropertyKey$2 = function (argument) {
421
+ var key = toPrimitive(argument, 'string');
422
+ return isSymbol(key) ? key : key + '';
423
+ };
424
+
425
+ var globalThis$5 = globalThis_1;
426
+ var isObject$5 = isObject$8;
427
+
428
+ var document$1 = globalThis$5.document;
429
+ // typeof document.createElement is 'object' in old IE
430
+ var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
431
+
432
+ var documentCreateElement$2 = function (it) {
433
+ return EXISTS$1 ? document$1.createElement(it) : {};
434
+ };
435
+
436
+ var DESCRIPTORS$9 = descriptors;
437
+ var fails$6 = fails$b;
438
+ var createElement = documentCreateElement$2;
439
+
440
+ // Thanks to IE8 for its funny defineProperty
441
+ var ie8DomDefine = !DESCRIPTORS$9 && !fails$6(function () {
442
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
443
+ return Object.defineProperty(createElement('div'), 'a', {
444
+ get: function () { return 7; }
445
+ }).a !== 7;
446
+ });
447
+
448
+ var DESCRIPTORS$8 = descriptors;
449
+ var call$2 = functionCall;
450
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
451
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
452
+ var toIndexedObject$4 = toIndexedObject$5;
453
+ var toPropertyKey$1 = toPropertyKey$2;
454
+ var hasOwn$7 = hasOwnProperty_1;
455
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
456
+
457
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
458
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
459
+
460
+ // `Object.getOwnPropertyDescriptor` method
461
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
462
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
463
+ O = toIndexedObject$4(O);
464
+ P = toPropertyKey$1(P);
465
+ if (IE8_DOM_DEFINE$1) try {
466
+ return $getOwnPropertyDescriptor$1(O, P);
467
+ } catch (error) { /* empty */ }
468
+ if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
469
+ };
470
+
471
+ var objectDefineProperty = {};
472
+
473
+ var DESCRIPTORS$7 = descriptors;
474
+ var fails$5 = fails$b;
475
+
476
+ // V8 ~ Chrome 36-
477
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
478
+ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$5(function () {
479
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
480
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
481
+ value: 42,
482
+ writable: false
483
+ }).prototype !== 42;
484
+ });
485
+
486
+ var isObject$4 = isObject$8;
487
+
488
+ var $String$2 = String;
489
+ var $TypeError$2 = TypeError;
490
+
491
+ // `Assert: Type(argument) is Object`
492
+ var anObject$4 = function (argument) {
493
+ if (isObject$4(argument)) return argument;
494
+ throw new $TypeError$2($String$2(argument) + ' is not an object');
495
+ };
496
+
497
+ var DESCRIPTORS$6 = descriptors;
498
+ var IE8_DOM_DEFINE = ie8DomDefine;
499
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
500
+ var anObject$3 = anObject$4;
501
+ var toPropertyKey = toPropertyKey$2;
502
+
503
+ var $TypeError$1 = TypeError;
504
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
505
+ var $defineProperty = Object.defineProperty;
506
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
507
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
508
+ var ENUMERABLE = 'enumerable';
509
+ var CONFIGURABLE$1 = 'configurable';
510
+ var WRITABLE = 'writable';
511
+
512
+ // `Object.defineProperty` method
513
+ // https://tc39.es/ecma262/#sec-object.defineproperty
514
+ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
515
+ anObject$3(O);
516
+ P = toPropertyKey(P);
517
+ anObject$3(Attributes);
518
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
519
+ var current = $getOwnPropertyDescriptor(O, P);
520
+ if (current && current[WRITABLE]) {
521
+ O[P] = Attributes.value;
522
+ Attributes = {
523
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
524
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
525
+ writable: false
526
+ };
527
+ }
528
+ } return $defineProperty(O, P, Attributes);
529
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
530
+ anObject$3(O);
531
+ P = toPropertyKey(P);
532
+ anObject$3(Attributes);
533
+ if (IE8_DOM_DEFINE) try {
534
+ return $defineProperty(O, P, Attributes);
535
+ } catch (error) { /* empty */ }
536
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
537
+ if ('value' in Attributes) O[P] = Attributes.value;
538
+ return O;
539
+ };
540
+
541
+ var DESCRIPTORS$5 = descriptors;
542
+ var definePropertyModule$3 = objectDefineProperty;
543
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
544
+
545
+ var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
546
+ return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
547
+ } : function (object, key, value) {
548
+ object[key] = value;
549
+ return object;
550
+ };
551
+
552
+ var makeBuiltIn$2 = {exports: {}};
553
+
554
+ var DESCRIPTORS$4 = descriptors;
555
+ var hasOwn$6 = hasOwnProperty_1;
556
+
557
+ var FunctionPrototype = Function.prototype;
558
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
559
+ var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
560
+
561
+ var EXISTS = hasOwn$6(FunctionPrototype, 'name');
562
+ // additional protection from minified / mangled / dropped function names
563
+ var PROPER = EXISTS && function something() { /* empty */ }.name === 'something';
564
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
565
+
566
+ var functionName = {
567
+ PROPER: PROPER,
568
+ CONFIGURABLE: CONFIGURABLE
569
+ };
570
+
571
+ var uncurryThis$5 = functionUncurryThis;
572
+ var isCallable$7 = isCallable$d;
573
+ var store$1 = sharedStoreExports;
574
+
575
+ var functionToString = uncurryThis$5(Function.toString);
576
+
577
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
578
+ if (!isCallable$7(store$1.inspectSource)) {
579
+ store$1.inspectSource = function (it) {
580
+ return functionToString(it);
581
+ };
582
+ }
583
+
584
+ var inspectSource$1 = store$1.inspectSource;
585
+
586
+ var globalThis$4 = globalThis_1;
587
+ var isCallable$6 = isCallable$d;
588
+
589
+ var WeakMap$1 = globalThis$4.WeakMap;
590
+
591
+ var weakMapBasicDetection = isCallable$6(WeakMap$1) && /native code/.test(String(WeakMap$1));
592
+
593
+ var shared$1 = shared$3;
594
+ var uid = uid$2;
595
+
596
+ var keys = shared$1('keys');
597
+
598
+ var sharedKey$3 = function (key) {
599
+ return keys[key] || (keys[key] = uid(key));
600
+ };
601
+
602
+ var hiddenKeys$4 = {};
603
+
604
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
605
+ var globalThis$3 = globalThis_1;
606
+ var isObject$3 = isObject$8;
607
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
608
+ var hasOwn$5 = hasOwnProperty_1;
609
+ var shared = sharedStoreExports;
610
+ var sharedKey$2 = sharedKey$3;
611
+ var hiddenKeys$3 = hiddenKeys$4;
612
+
613
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
614
+ var TypeError$1 = globalThis$3.TypeError;
615
+ var WeakMap = globalThis$3.WeakMap;
616
+ var set, get, has;
617
+
618
+ var enforce = function (it) {
619
+ return has(it) ? get(it) : set(it, {});
620
+ };
621
+
622
+ var getterFor = function (TYPE) {
623
+ return function (it) {
624
+ var state;
625
+ if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
626
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
627
+ } return state;
628
+ };
629
+ };
630
+
631
+ if (NATIVE_WEAK_MAP || shared.state) {
632
+ var store = shared.state || (shared.state = new WeakMap());
633
+ /* eslint-disable no-self-assign -- prototype methods protection */
634
+ store.get = store.get;
635
+ store.has = store.has;
636
+ store.set = store.set;
637
+ /* eslint-enable no-self-assign -- prototype methods protection */
638
+ set = function (it, metadata) {
639
+ if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
640
+ metadata.facade = it;
641
+ store.set(it, metadata);
642
+ return metadata;
643
+ };
644
+ get = function (it) {
645
+ return store.get(it) || {};
646
+ };
647
+ has = function (it) {
648
+ return store.has(it);
649
+ };
650
+ } else {
651
+ var STATE = sharedKey$2('state');
652
+ hiddenKeys$3[STATE] = true;
653
+ set = function (it, metadata) {
654
+ if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
655
+ metadata.facade = it;
656
+ createNonEnumerableProperty$3(it, STATE, metadata);
657
+ return metadata;
658
+ };
659
+ get = function (it) {
660
+ return hasOwn$5(it, STATE) ? it[STATE] : {};
661
+ };
662
+ has = function (it) {
663
+ return hasOwn$5(it, STATE);
664
+ };
665
+ }
666
+
667
+ var internalState = {
668
+ set: set,
669
+ get: get,
670
+ has: has,
671
+ enforce: enforce,
672
+ getterFor: getterFor
673
+ };
674
+
675
+ var uncurryThis$4 = functionUncurryThis;
676
+ var fails$4 = fails$b;
677
+ var isCallable$5 = isCallable$d;
678
+ var hasOwn$4 = hasOwnProperty_1;
679
+ var DESCRIPTORS$3 = descriptors;
680
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
681
+ var inspectSource = inspectSource$1;
682
+ var InternalStateModule$1 = internalState;
683
+
684
+ var enforceInternalState = InternalStateModule$1.enforce;
685
+ var getInternalState$1 = InternalStateModule$1.get;
686
+ var $String$1 = String;
687
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
688
+ var defineProperty$4 = Object.defineProperty;
689
+ var stringSlice = uncurryThis$4(''.slice);
690
+ var replace = uncurryThis$4(''.replace);
691
+ var join = uncurryThis$4([].join);
692
+
693
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$4(function () {
694
+ return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
695
+ });
696
+
697
+ var TEMPLATE = String(String).split('String');
698
+
699
+ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
700
+ if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
701
+ name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
702
+ }
703
+ if (options && options.getter) name = 'get ' + name;
704
+ if (options && options.setter) name = 'set ' + name;
705
+ if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
706
+ if (DESCRIPTORS$3) defineProperty$4(value, 'name', { value: name, configurable: true });
707
+ else value.name = name;
708
+ }
709
+ if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
710
+ defineProperty$4(value, 'length', { value: options.arity });
711
+ }
712
+ try {
713
+ if (options && hasOwn$4(options, 'constructor') && options.constructor) {
714
+ if (DESCRIPTORS$3) defineProperty$4(value, 'prototype', { writable: false });
715
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
716
+ } else if (value.prototype) value.prototype = undefined;
717
+ } catch (error) { /* empty */ }
718
+ var state = enforceInternalState(value);
719
+ if (!hasOwn$4(state, 'source')) {
720
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
721
+ } return value;
722
+ };
723
+
724
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
725
+ // eslint-disable-next-line no-extend-native -- required
726
+ Function.prototype.toString = makeBuiltIn$1(function toString() {
727
+ return isCallable$5(this) && getInternalState$1(this).source || inspectSource(this);
728
+ }, 'toString');
729
+
730
+ var makeBuiltInExports = makeBuiltIn$2.exports;
731
+
732
+ var isCallable$4 = isCallable$d;
733
+ var definePropertyModule$2 = objectDefineProperty;
734
+ var makeBuiltIn = makeBuiltInExports;
735
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
736
+
737
+ var defineBuiltIn$3 = function (O, key, value, options) {
738
+ if (!options) options = {};
739
+ var simple = options.enumerable;
740
+ var name = options.name !== undefined ? options.name : key;
741
+ if (isCallable$4(value)) makeBuiltIn(value, name, options);
742
+ if (options.global) {
743
+ if (simple) O[key] = value;
744
+ else defineGlobalProperty$1(key, value);
745
+ } else {
746
+ try {
747
+ if (!options.unsafe) delete O[key];
748
+ else if (O[key]) simple = true;
749
+ } catch (error) { /* empty */ }
750
+ if (simple) O[key] = value;
751
+ else definePropertyModule$2.f(O, key, {
752
+ value: value,
753
+ enumerable: false,
754
+ configurable: !options.nonConfigurable,
755
+ writable: !options.nonWritable
756
+ });
757
+ } return O;
758
+ };
759
+
760
+ var objectGetOwnPropertyNames = {};
761
+
762
+ var ceil = Math.ceil;
763
+ var floor = Math.floor;
764
+
765
+ // `Math.trunc` method
766
+ // https://tc39.es/ecma262/#sec-math.trunc
767
+ // eslint-disable-next-line es/no-math-trunc -- safe
768
+ var mathTrunc = Math.trunc || function trunc(x) {
769
+ var n = +x;
770
+ return (n > 0 ? floor : ceil)(n);
771
+ };
772
+
773
+ var trunc = mathTrunc;
774
+
775
+ // `ToIntegerOrInfinity` abstract operation
776
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
777
+ var toIntegerOrInfinity$2 = function (argument) {
778
+ var number = +argument;
779
+ // eslint-disable-next-line no-self-compare -- NaN check
780
+ return number !== number || number === 0 ? 0 : trunc(number);
781
+ };
782
+
783
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
784
+
785
+ var max = Math.max;
786
+ var min$1 = Math.min;
787
+
788
+ // Helper for a popular repeating case of the spec:
789
+ // Let integer be ? ToInteger(index).
790
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
791
+ var toAbsoluteIndex$1 = function (index, length) {
792
+ var integer = toIntegerOrInfinity$1(index);
793
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
794
+ };
795
+
796
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
797
+
798
+ var min = Math.min;
799
+
800
+ // `ToLength` abstract operation
801
+ // https://tc39.es/ecma262/#sec-tolength
802
+ var toLength$1 = function (argument) {
803
+ var len = toIntegerOrInfinity(argument);
804
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
805
+ };
806
+
807
+ var toLength = toLength$1;
808
+
809
+ // `LengthOfArrayLike` abstract operation
810
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
811
+ var lengthOfArrayLike$1 = function (obj) {
812
+ return toLength(obj.length);
813
+ };
814
+
815
+ var toIndexedObject$3 = toIndexedObject$5;
816
+ var toAbsoluteIndex = toAbsoluteIndex$1;
817
+ var lengthOfArrayLike = lengthOfArrayLike$1;
818
+
819
+ // `Array.prototype.{ indexOf, includes }` methods implementation
820
+ var createMethod = function (IS_INCLUDES) {
821
+ return function ($this, el, fromIndex) {
822
+ var O = toIndexedObject$3($this);
823
+ var length = lengthOfArrayLike(O);
824
+ if (length === 0) return !IS_INCLUDES && -1;
825
+ var index = toAbsoluteIndex(fromIndex, length);
826
+ var value;
827
+ // Array#includes uses SameValueZero equality algorithm
828
+ // eslint-disable-next-line no-self-compare -- NaN check
829
+ if (IS_INCLUDES && el !== el) while (length > index) {
830
+ value = O[index++];
831
+ // eslint-disable-next-line no-self-compare -- NaN check
832
+ if (value !== value) return true;
833
+ // Array#indexOf ignores holes, Array#includes - not
834
+ } else for (;length > index; index++) {
835
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
836
+ } return !IS_INCLUDES && -1;
837
+ };
838
+ };
839
+
840
+ var arrayIncludes = {
841
+ // `Array.prototype.includes` method
842
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
843
+ includes: createMethod(true),
844
+ // `Array.prototype.indexOf` method
845
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
846
+ indexOf: createMethod(false)
847
+ };
848
+
849
+ var uncurryThis$3 = functionUncurryThis;
850
+ var hasOwn$3 = hasOwnProperty_1;
851
+ var toIndexedObject$2 = toIndexedObject$5;
852
+ var indexOf = arrayIncludes.indexOf;
853
+ var hiddenKeys$2 = hiddenKeys$4;
854
+
855
+ var push = uncurryThis$3([].push);
856
+
857
+ var objectKeysInternal = function (object, names) {
858
+ var O = toIndexedObject$2(object);
859
+ var i = 0;
860
+ var result = [];
861
+ var key;
862
+ for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
863
+ // Don't enum bug & hidden keys
864
+ while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
865
+ ~indexOf(result, key) || push(result, key);
866
+ }
867
+ return result;
868
+ };
869
+
870
+ // IE8- don't enum bug keys
871
+ var enumBugKeys$3 = [
872
+ 'constructor',
873
+ 'hasOwnProperty',
874
+ 'isPrototypeOf',
875
+ 'propertyIsEnumerable',
876
+ 'toLocaleString',
877
+ 'toString',
878
+ 'valueOf'
879
+ ];
880
+
881
+ var internalObjectKeys$1 = objectKeysInternal;
882
+ var enumBugKeys$2 = enumBugKeys$3;
883
+
884
+ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
885
+
886
+ // `Object.getOwnPropertyNames` method
887
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
888
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
889
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
890
+ return internalObjectKeys$1(O, hiddenKeys$1);
891
+ };
892
+
893
+ var objectGetOwnPropertySymbols = {};
894
+
895
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
896
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
897
+
898
+ var getBuiltIn$1 = getBuiltIn$3;
899
+ var uncurryThis$2 = functionUncurryThis;
900
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
901
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
902
+ var anObject$2 = anObject$4;
903
+
904
+ var concat$1 = uncurryThis$2([].concat);
905
+
906
+ // all object keys, includes non-enumerable and symbols
907
+ var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
908
+ var keys = getOwnPropertyNamesModule.f(anObject$2(it));
909
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
910
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
911
+ };
912
+
913
+ var hasOwn$2 = hasOwnProperty_1;
914
+ var ownKeys = ownKeys$1;
915
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
916
+ var definePropertyModule$1 = objectDefineProperty;
917
+
918
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
919
+ var keys = ownKeys(source);
920
+ var defineProperty = definePropertyModule$1.f;
921
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
922
+ for (var i = 0; i < keys.length; i++) {
923
+ var key = keys[i];
924
+ if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
925
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
926
+ }
927
+ }
928
+ };
929
+
930
+ var fails$3 = fails$b;
931
+ var isCallable$3 = isCallable$d;
932
+
933
+ var replacement = /#|\.prototype\./;
934
+
935
+ var isForced$1 = function (feature, detection) {
936
+ var value = data[normalize(feature)];
937
+ return value === POLYFILL ? true
938
+ : value === NATIVE ? false
939
+ : isCallable$3(detection) ? fails$3(detection)
940
+ : !!detection;
941
+ };
942
+
943
+ var normalize = isForced$1.normalize = function (string) {
944
+ return String(string).replace(replacement, '.').toLowerCase();
945
+ };
946
+
947
+ var data = isForced$1.data = {};
948
+ var NATIVE = isForced$1.NATIVE = 'N';
949
+ var POLYFILL = isForced$1.POLYFILL = 'P';
950
+
951
+ var isForced_1 = isForced$1;
952
+
953
+ var globalThis$2 = globalThis_1;
954
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
955
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
956
+ var defineBuiltIn$2 = defineBuiltIn$3;
957
+ var defineGlobalProperty = defineGlobalProperty$3;
958
+ var copyConstructorProperties = copyConstructorProperties$1;
959
+ var isForced = isForced_1;
960
+
961
+ /*
962
+ options.target - name of the target object
963
+ options.global - target is the global object
964
+ options.stat - export as static methods of target
965
+ options.proto - export as prototype methods of target
966
+ options.real - real prototype method for the `pure` version
967
+ options.forced - export even if the native feature is available
968
+ options.bind - bind methods to the target, required for the `pure` version
969
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
970
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
971
+ options.sham - add a flag to not completely full polyfills
972
+ options.enumerable - export as enumerable property
973
+ options.dontCallGetSet - prevent calling a getter on target
974
+ options.name - the .name of the function if it does not match the key
975
+ */
976
+ var _export = function (options, source) {
977
+ var TARGET = options.target;
978
+ var GLOBAL = options.global;
979
+ var STATIC = options.stat;
980
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
981
+ if (GLOBAL) {
982
+ target = globalThis$2;
983
+ } else if (STATIC) {
984
+ target = globalThis$2[TARGET] || defineGlobalProperty(TARGET, {});
985
+ } else {
986
+ target = globalThis$2[TARGET] && globalThis$2[TARGET].prototype;
987
+ }
988
+ if (target) for (key in source) {
989
+ sourceProperty = source[key];
990
+ if (options.dontCallGetSet) {
991
+ descriptor = getOwnPropertyDescriptor(target, key);
992
+ targetProperty = descriptor && descriptor.value;
993
+ } else targetProperty = target[key];
994
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
995
+ // contained in target
996
+ if (!FORCED && targetProperty !== undefined) {
997
+ if (typeof sourceProperty == typeof targetProperty) continue;
998
+ copyConstructorProperties(sourceProperty, targetProperty);
999
+ }
1000
+ // add a flag to not completely full polyfills
1001
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1002
+ createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1003
+ }
1004
+ defineBuiltIn$2(target, key, sourceProperty, options);
1005
+ }
1006
+ };
1007
+
1008
+ var objectDefineProperties = {};
1009
+
1010
+ var internalObjectKeys = objectKeysInternal;
1011
+ var enumBugKeys$1 = enumBugKeys$3;
1012
+
1013
+ // `Object.keys` method
1014
+ // https://tc39.es/ecma262/#sec-object.keys
1015
+ // eslint-disable-next-line es/no-object-keys -- safe
1016
+ var objectKeys$2 = Object.keys || function keys(O) {
1017
+ return internalObjectKeys(O, enumBugKeys$1);
1018
+ };
1019
+
1020
+ var DESCRIPTORS$2 = descriptors;
1021
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1022
+ var definePropertyModule = objectDefineProperty;
1023
+ var anObject$1 = anObject$4;
1024
+ var toIndexedObject$1 = toIndexedObject$5;
1025
+ var objectKeys$1 = objectKeys$2;
1026
+
1027
+ // `Object.defineProperties` method
1028
+ // https://tc39.es/ecma262/#sec-object.defineproperties
1029
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1030
+ objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1031
+ anObject$1(O);
1032
+ var props = toIndexedObject$1(Properties);
1033
+ var keys = objectKeys$1(Properties);
1034
+ var length = keys.length;
1035
+ var index = 0;
1036
+ var key;
1037
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1038
+ return O;
1039
+ };
1040
+
1041
+ var getBuiltIn = getBuiltIn$3;
1042
+
1043
+ var html$1 = getBuiltIn('document', 'documentElement');
1044
+
1045
+ /* global ActiveXObject -- old IE, WSH */
1046
+ var anObject = anObject$4;
1047
+ var definePropertiesModule = objectDefineProperties;
1048
+ var enumBugKeys = enumBugKeys$3;
1049
+ var hiddenKeys = hiddenKeys$4;
1050
+ var html = html$1;
1051
+ var documentCreateElement$1 = documentCreateElement$2;
1052
+ var sharedKey$1 = sharedKey$3;
1053
+
1054
+ var GT = '>';
1055
+ var LT = '<';
1056
+ var PROTOTYPE = 'prototype';
1057
+ var SCRIPT = 'script';
1058
+ var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1059
+
1060
+ var EmptyConstructor = function () { /* empty */ };
1061
+
1062
+ var scriptTag = function (content) {
1063
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1064
+ };
1065
+
1066
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1067
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
1068
+ activeXDocument.write(scriptTag(''));
1069
+ activeXDocument.close();
1070
+ var temp = activeXDocument.parentWindow.Object;
1071
+ // eslint-disable-next-line no-useless-assignment -- avoid memory leak
1072
+ activeXDocument = null;
1073
+ return temp;
1074
+ };
1075
+
1076
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
1077
+ var NullProtoObjectViaIFrame = function () {
1078
+ // Thrash, waste and sodomy: IE GC bug
1079
+ var iframe = documentCreateElement$1('iframe');
1080
+ var JS = 'java' + SCRIPT + ':';
1081
+ var iframeDocument;
1082
+ iframe.style.display = 'none';
1083
+ html.appendChild(iframe);
1084
+ // https://github.com/zloirock/core-js/issues/475
1085
+ iframe.src = String(JS);
1086
+ iframeDocument = iframe.contentWindow.document;
1087
+ iframeDocument.open();
1088
+ iframeDocument.write(scriptTag('document.F=Object'));
1089
+ iframeDocument.close();
1090
+ return iframeDocument.F;
1091
+ };
1092
+
1093
+ // Check for document.domain and active x support
1094
+ // No need to use active x approach when document.domain is not set
1095
+ // see https://github.com/es-shims/es5-shim/issues/150
1096
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1097
+ // avoid IE GC bug
1098
+ var activeXDocument;
1099
+ var NullProtoObject = function () {
1100
+ try {
1101
+ activeXDocument = new ActiveXObject('htmlfile');
1102
+ } catch (error) { /* ignore */ }
1103
+ NullProtoObject = typeof document != 'undefined'
1104
+ ? document.domain && activeXDocument
1105
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1106
+ : NullProtoObjectViaIFrame()
1107
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
1108
+ var length = enumBugKeys.length;
1109
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1110
+ return NullProtoObject();
1111
+ };
1112
+
1113
+ hiddenKeys[IE_PROTO$1] = true;
1114
+
1115
+ // `Object.create` method
1116
+ // https://tc39.es/ecma262/#sec-object.create
1117
+ // eslint-disable-next-line es/no-object-create -- safe
1118
+ var objectCreate = Object.create || function create(O, Properties) {
1119
+ var result;
1120
+ if (O !== null) {
1121
+ EmptyConstructor[PROTOTYPE] = anObject(O);
1122
+ result = new EmptyConstructor();
1123
+ EmptyConstructor[PROTOTYPE] = null;
1124
+ // add "__proto__" for Object.getPrototypeOf polyfill
1125
+ result[IE_PROTO$1] = O;
1126
+ } else result = NullProtoObject();
1127
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1128
+ };
1129
+
1130
+ var wellKnownSymbol$4 = wellKnownSymbol$6;
1131
+ var create$1 = objectCreate;
1132
+ var defineProperty$3 = objectDefineProperty.f;
1133
+
1134
+ var UNSCOPABLES = wellKnownSymbol$4('unscopables');
1135
+ var ArrayPrototype = Array.prototype;
1136
+
1137
+ // Array.prototype[@@unscopables]
1138
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1139
+ if (ArrayPrototype[UNSCOPABLES] === undefined) {
1140
+ defineProperty$3(ArrayPrototype, UNSCOPABLES, {
1141
+ configurable: true,
1142
+ value: create$1(null)
1143
+ });
1144
+ }
1145
+
1146
+ // add a key to Array.prototype[@@unscopables]
1147
+ var addToUnscopables$1 = function (key) {
1148
+ ArrayPrototype[UNSCOPABLES][key] = true;
1149
+ };
1150
+
1151
+ var iterators = {};
1152
+
1153
+ var fails$2 = fails$b;
1154
+
1155
+ var correctPrototypeGetter = !fails$2(function () {
1156
+ function F() { /* empty */ }
1157
+ F.prototype.constructor = null;
1158
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1159
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1160
+ });
1161
+
1162
+ var hasOwn$1 = hasOwnProperty_1;
1163
+ var isCallable$2 = isCallable$d;
1164
+ var toObject$1 = toObject$3;
1165
+ var sharedKey = sharedKey$3;
1166
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1167
+
1168
+ var IE_PROTO = sharedKey('IE_PROTO');
1169
+ var $Object = Object;
1170
+ var ObjectPrototype = $Object.prototype;
1171
+
1172
+ // `Object.getPrototypeOf` method
1173
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
1174
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1175
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1176
+ var object = toObject$1(O);
1177
+ if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1178
+ var constructor = object.constructor;
1179
+ if (isCallable$2(constructor) && object instanceof constructor) {
1180
+ return constructor.prototype;
1181
+ } return object instanceof $Object ? ObjectPrototype : null;
1182
+ };
1183
+
1184
+ var fails$1 = fails$b;
1185
+ var isCallable$1 = isCallable$d;
1186
+ var isObject$2 = isObject$8;
1187
+ var getPrototypeOf$1 = objectGetPrototypeOf;
1188
+ var defineBuiltIn$1 = defineBuiltIn$3;
1189
+ var wellKnownSymbol$3 = wellKnownSymbol$6;
1190
+
1191
+ var ITERATOR$2 = wellKnownSymbol$3('iterator');
1192
+ var BUGGY_SAFARI_ITERATORS$1 = false;
1193
+
1194
+ // `%IteratorPrototype%` object
1195
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1196
+ var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1197
+
1198
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1199
+ if ([].keys) {
1200
+ arrayIterator = [].keys();
1201
+ // Safari 8 has buggy iterators w/o `next`
1202
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1203
+ else {
1204
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1205
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1206
+ }
1207
+ }
1208
+
1209
+ var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$1(function () {
1210
+ var test = {};
1211
+ // FF44- legacy iterators case
1212
+ return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
1213
+ });
1214
+
1215
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1216
+
1217
+ // `%IteratorPrototype%[@@iterator]()` method
1218
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1219
+ if (!isCallable$1(IteratorPrototype$2[ITERATOR$2])) {
1220
+ defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
1221
+ return this;
1222
+ });
1223
+ }
1224
+
1225
+ var iteratorsCore = {
1226
+ IteratorPrototype: IteratorPrototype$2,
1227
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1228
+ };
1229
+
1230
+ var defineProperty$2 = objectDefineProperty.f;
1231
+ var hasOwn = hasOwnProperty_1;
1232
+ var wellKnownSymbol$2 = wellKnownSymbol$6;
1233
+
1234
+ var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
1235
+
1236
+ var setToStringTag$3 = function (target, TAG, STATIC) {
1237
+ if (target && !STATIC) target = target.prototype;
1238
+ if (target && !hasOwn(target, TO_STRING_TAG)) {
1239
+ defineProperty$2(target, TO_STRING_TAG, { configurable: true, value: TAG });
1240
+ }
1241
+ };
1242
+
1243
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1244
+ var create = objectCreate;
1245
+ var createPropertyDescriptor = createPropertyDescriptor$3;
1246
+ var setToStringTag$2 = setToStringTag$3;
1247
+ var Iterators$2 = iterators;
1248
+
1249
+ var returnThis$1 = function () { return this; };
1250
+
1251
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1252
+ var TO_STRING_TAG = NAME + ' Iterator';
1253
+ IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1254
+ setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
1255
+ Iterators$2[TO_STRING_TAG] = returnThis$1;
1256
+ return IteratorConstructor;
1257
+ };
1258
+
1259
+ var uncurryThis$1 = functionUncurryThis;
1260
+ var aCallable = aCallable$2;
1261
+
1262
+ var functionUncurryThisAccessor = function (object, key, method) {
1263
+ try {
1264
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1265
+ return uncurryThis$1(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1266
+ } catch (error) { /* empty */ }
1267
+ };
1268
+
1269
+ var isObject$1 = isObject$8;
1270
+
1271
+ var isPossiblePrototype$1 = function (argument) {
1272
+ return isObject$1(argument) || argument === null;
1273
+ };
1274
+
1275
+ var isPossiblePrototype = isPossiblePrototype$1;
1276
+
1277
+ var $String = String;
1278
+ var $TypeError = TypeError;
1279
+
1280
+ var aPossiblePrototype$1 = function (argument) {
1281
+ if (isPossiblePrototype(argument)) return argument;
1282
+ throw new $TypeError("Can't set " + $String(argument) + ' as a prototype');
1283
+ };
1284
+
1285
+ /* eslint-disable no-proto -- safe */
1286
+ var uncurryThisAccessor = functionUncurryThisAccessor;
1287
+ var isObject = isObject$8;
1288
+ var requireObjectCoercible = requireObjectCoercible$3;
1289
+ var aPossiblePrototype = aPossiblePrototype$1;
1290
+
1291
+ // `Object.setPrototypeOf` method
1292
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
1293
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1294
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1295
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1296
+ var CORRECT_SETTER = false;
1297
+ var test = {};
1298
+ var setter;
1299
+ try {
1300
+ setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1301
+ setter(test, []);
1302
+ CORRECT_SETTER = test instanceof Array;
1303
+ } catch (error) { /* empty */ }
1304
+ return function setPrototypeOf(O, proto) {
1305
+ requireObjectCoercible(O);
1306
+ aPossiblePrototype(proto);
1307
+ if (!isObject(O)) return O;
1308
+ if (CORRECT_SETTER) setter(O, proto);
1309
+ else O.__proto__ = proto;
1310
+ return O;
1311
+ };
1312
+ }() : undefined);
1313
+
1314
+ var $$1 = _export;
1315
+ var call$1 = functionCall;
1316
+ var FunctionName = functionName;
1317
+ var isCallable = isCallable$d;
1318
+ var createIteratorConstructor = iteratorCreateConstructor;
1319
+ var getPrototypeOf = objectGetPrototypeOf;
1320
+ var setPrototypeOf = objectSetPrototypeOf;
1321
+ var setToStringTag$1 = setToStringTag$3;
1322
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1323
+ var defineBuiltIn = defineBuiltIn$3;
1324
+ var wellKnownSymbol$1 = wellKnownSymbol$6;
1325
+ var Iterators$1 = iterators;
1326
+ var IteratorsCore = iteratorsCore;
1327
+
1328
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1329
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1330
+ var IteratorPrototype = IteratorsCore.IteratorPrototype;
1331
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1332
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
1333
+ var KEYS = 'keys';
1334
+ var VALUES = 'values';
1335
+ var ENTRIES = 'entries';
1336
+
1337
+ var returnThis = function () { return this; };
1338
+
1339
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1340
+ createIteratorConstructor(IteratorConstructor, NAME, next);
1341
+
1342
+ var getIterationMethod = function (KIND) {
1343
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1344
+ if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1345
+
1346
+ switch (KIND) {
1347
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1348
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1349
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1350
+ }
1351
+
1352
+ return function () { return new IteratorConstructor(this); };
1353
+ };
1354
+
1355
+ var TO_STRING_TAG = NAME + ' Iterator';
1356
+ var INCORRECT_VALUES_NAME = false;
1357
+ var IterablePrototype = Iterable.prototype;
1358
+ var nativeIterator = IterablePrototype[ITERATOR$1]
1359
+ || IterablePrototype['@@iterator']
1360
+ || DEFAULT && IterablePrototype[DEFAULT];
1361
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1362
+ var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1363
+ var CurrentIteratorPrototype, methods, KEY;
1364
+
1365
+ // fix native
1366
+ if (anyNativeIterator) {
1367
+ CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1368
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1369
+ if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1370
+ if (setPrototypeOf) {
1371
+ setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1372
+ } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
1373
+ defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1374
+ }
1375
+ }
1376
+ // Set @@toStringTag to native iterators
1377
+ setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
1378
+ }
1379
+ }
1380
+
1381
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1382
+ if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1383
+ if (CONFIGURABLE_FUNCTION_NAME) {
1384
+ createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1385
+ } else {
1386
+ INCORRECT_VALUES_NAME = true;
1387
+ defaultIterator = function values() { return call$1(nativeIterator, this); };
1388
+ }
1389
+ }
1390
+
1391
+ // export additional methods
1392
+ if (DEFAULT) {
1393
+ methods = {
1394
+ values: getIterationMethod(VALUES),
1395
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1396
+ entries: getIterationMethod(ENTRIES)
1397
+ };
1398
+ if (FORCED) for (KEY in methods) {
1399
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1400
+ defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
1401
+ }
1402
+ } else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1403
+ }
1404
+
1405
+ // define iterator
1406
+ if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1407
+ defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1408
+ }
1409
+ Iterators$1[NAME] = defaultIterator;
1410
+
1411
+ return methods;
1412
+ };
1413
+
1414
+ // `CreateIterResultObject` abstract operation
1415
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1416
+ var createIterResultObject$1 = function (value, done) {
1417
+ return { value: value, done: done };
1418
+ };
1419
+
1420
+ var toIndexedObject = toIndexedObject$5;
1421
+ var addToUnscopables = addToUnscopables$1;
1422
+ var Iterators = iterators;
1423
+ var InternalStateModule = internalState;
1424
+ var defineProperty$1 = objectDefineProperty.f;
1425
+ var defineIterator = iteratorDefine;
1426
+ var createIterResultObject = createIterResultObject$1;
1427
+ var DESCRIPTORS$1 = descriptors;
1428
+
1429
+ var ARRAY_ITERATOR = 'Array Iterator';
1430
+ var setInternalState = InternalStateModule.set;
1431
+ var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
1432
+
1433
+ // `Array.prototype.entries` method
1434
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
1435
+ // `Array.prototype.keys` method
1436
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
1437
+ // `Array.prototype.values` method
1438
+ // https://tc39.es/ecma262/#sec-array.prototype.values
1439
+ // `Array.prototype[@@iterator]` method
1440
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1441
+ // `CreateArrayIterator` internal method
1442
+ // https://tc39.es/ecma262/#sec-createarrayiterator
1443
+ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1444
+ setInternalState(this, {
1445
+ type: ARRAY_ITERATOR,
1446
+ target: toIndexedObject(iterated), // target
1447
+ index: 0, // next index
1448
+ kind: kind // kind
1449
+ });
1450
+ // `%ArrayIteratorPrototype%.next` method
1451
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1452
+ }, function () {
1453
+ var state = getInternalState(this);
1454
+ var target = state.target;
1455
+ var index = state.index++;
1456
+ if (!target || index >= target.length) {
1457
+ state.target = null;
1458
+ return createIterResultObject(undefined, true);
1459
+ }
1460
+ switch (state.kind) {
1461
+ case 'keys': return createIterResultObject(index, false);
1462
+ case 'values': return createIterResultObject(target[index], false);
1463
+ } return createIterResultObject([index, target[index]], false);
1464
+ }, 'values');
1465
+
1466
+ // argumentsList[@@iterator] is %ArrayProto_values%
1467
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1468
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1469
+ var values = Iterators.Arguments = Iterators.Array;
1470
+
1471
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1472
+ addToUnscopables('keys');
1473
+ addToUnscopables('values');
1474
+ addToUnscopables('entries');
1475
+
1476
+ // V8 ~ Chrome 45- bug
1477
+ if (DESCRIPTORS$1 && values.name !== 'values') try {
1478
+ defineProperty$1(values, 'name', { value: 'values' });
1479
+ } catch (error) { /* empty */ }
1480
+
1481
+ // iterable DOM collections
1482
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1483
+ var domIterables = {
1484
+ CSSRuleList: 0,
1485
+ CSSStyleDeclaration: 0,
1486
+ CSSValueList: 0,
1487
+ ClientRectList: 0,
1488
+ DOMRectList: 0,
1489
+ DOMStringList: 0,
1490
+ DOMTokenList: 1,
1491
+ DataTransferItemList: 0,
1492
+ FileList: 0,
1493
+ HTMLAllCollection: 0,
1494
+ HTMLCollection: 0,
1495
+ HTMLFormElement: 0,
1496
+ HTMLSelectElement: 0,
1497
+ MediaList: 0,
1498
+ MimeTypeArray: 0,
1499
+ NamedNodeMap: 0,
1500
+ NodeList: 1,
1501
+ PaintRequestList: 0,
1502
+ Plugin: 0,
1503
+ PluginArray: 0,
1504
+ SVGLengthList: 0,
1505
+ SVGNumberList: 0,
1506
+ SVGPathSegList: 0,
1507
+ SVGPointList: 0,
1508
+ SVGStringList: 0,
1509
+ SVGTransformList: 0,
1510
+ SourceBufferList: 0,
1511
+ StyleSheetList: 0,
1512
+ TextTrackCueList: 0,
1513
+ TextTrackList: 0,
1514
+ TouchList: 0
1515
+ };
1516
+
1517
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1518
+ var documentCreateElement = documentCreateElement$2;
1519
+
1520
+ var classList = documentCreateElement('span').classList;
1521
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1522
+
1523
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1524
+
1525
+ var globalThis$1 = globalThis_1;
1526
+ var DOMIterables = domIterables;
1527
+ var DOMTokenListPrototype = domTokenListPrototype;
1528
+ var ArrayIteratorMethods = es_array_iterator;
1529
+ var createNonEnumerableProperty = createNonEnumerableProperty$4;
1530
+ var setToStringTag = setToStringTag$3;
1531
+ var wellKnownSymbol = wellKnownSymbol$6;
1532
+
1533
+ var ITERATOR = wellKnownSymbol('iterator');
1534
+ var ArrayValues = ArrayIteratorMethods.values;
1535
+
1536
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1537
+ if (CollectionPrototype) {
1538
+ // some Chrome versions have non-configurable methods on DOMTokenList
1539
+ if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1540
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
1541
+ } catch (error) {
1542
+ CollectionPrototype[ITERATOR] = ArrayValues;
1543
+ }
1544
+ setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
1545
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1546
+ // some Chrome versions have non-configurable methods on DOMTokenList
1547
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1548
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1549
+ } catch (error) {
1550
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1551
+ }
1552
+ }
1553
+ }
1554
+ };
1555
+
1556
+ for (var COLLECTION_NAME in DOMIterables) {
1557
+ handlePrototype(globalThis$1[COLLECTION_NAME] && globalThis$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
1558
+ }
1559
+
1560
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1561
+
1562
+ var DESCRIPTORS = descriptors;
1563
+ var uncurryThis = functionUncurryThis;
1564
+ var call = functionCall;
1565
+ var fails = fails$b;
1566
+ var objectKeys = objectKeys$2;
1567
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1568
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1569
+ var toObject = toObject$3;
1570
+ var IndexedObject = indexedObject;
1571
+
1572
+ // eslint-disable-next-line es/no-object-assign -- safe
1573
+ var $assign = Object.assign;
1574
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1575
+ var defineProperty = Object.defineProperty;
1576
+ var concat = uncurryThis([].concat);
1577
+
1578
+ // `Object.assign` method
1579
+ // https://tc39.es/ecma262/#sec-object.assign
1580
+ var objectAssign = !$assign || fails(function () {
1581
+ // should have correct order of operations (Edge bug)
1582
+ if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1583
+ enumerable: true,
1584
+ get: function () {
1585
+ defineProperty(this, 'b', {
1586
+ value: 3,
1587
+ enumerable: false
1588
+ });
1589
+ }
1590
+ }), { b: 2 })).b !== 1) return true;
1591
+ // should work with symbols and should have deterministic property order (V8 bug)
1592
+ var A = {};
1593
+ var B = {};
1594
+ // eslint-disable-next-line es/no-symbol -- safe
1595
+ var symbol = Symbol('assign detection');
1596
+ var alphabet = 'abcdefghijklmnopqrst';
1597
+ A[symbol] = 7;
1598
+ // eslint-disable-next-line es/no-array-prototype-foreach -- safe
1599
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1600
+ return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
1601
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1602
+ var T = toObject(target);
1603
+ var argumentsLength = arguments.length;
1604
+ var index = 1;
1605
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1606
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
1607
+ while (argumentsLength > index) {
1608
+ var S = IndexedObject(arguments[index++]);
1609
+ var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1610
+ var length = keys.length;
1611
+ var j = 0;
1612
+ var key;
1613
+ while (length > j) {
1614
+ key = keys[j++];
1615
+ if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
1616
+ }
1617
+ } return T;
1618
+ } : $assign;
1619
+
1620
+ var $ = _export;
1621
+ var assign = objectAssign;
1622
+
1623
+ // `Object.assign` method
1624
+ // https://tc39.es/ecma262/#sec-object.assign
1625
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1626
+ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1627
+ assign: assign
1628
+ });
1629
+
1630
+ /******************************************************************************
1631
+ Copyright (c) Microsoft Corporation.
1632
+
1633
+ Permission to use, copy, modify, and/or distribute this software for any
1634
+ purpose with or without fee is hereby granted.
1635
+
1636
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1637
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1638
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1639
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1640
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1641
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1642
+ PERFORMANCE OF THIS SOFTWARE.
1643
+ ***************************************************************************** */
1644
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
1645
+
1646
+
1647
+ function __rest(s, e) {
1648
+ var t = {};
1649
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1650
+ t[p] = s[p];
1651
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
1652
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1653
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1654
+ t[p[i]] = s[p[i]];
1655
+ }
1656
+ return t;
1657
+ }
1658
+
1659
+ function __awaiter(thisArg, _arguments, P, generator) {
1660
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1661
+ return new (P || (P = Promise))(function (resolve, reject) {
1662
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
1663
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
1664
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
1665
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
1666
+ });
1667
+ }
1668
+
1669
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1670
+ var e = new Error(message);
1671
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1672
+ };
1673
+
1674
+ /**
1675
+ * A Stack whose padding tuple means [vertical, horizontal]. Use it for layout and keep colors in styles.
1676
+ */
1677
+ const FlexContainer = function FlexContainer(props) {
1678
+ const {
1679
+ padding = 0
1680
+ } = props,
1681
+ stackProps = __rest(props, ["padding"]);
1682
+ const [paddingY, paddingX] = Array.isArray(padding) ? padding : [padding, padding];
1683
+ return jsx(Stack, Object.assign({
1684
+ paddingY: paddingY,
1685
+ paddingX: paddingX
1686
+ }, stackProps));
1687
+ };
1688
+
1689
+ /**
1690
+ * Shows a list loaded from the machine, or why it can't:
1691
+ *
1692
+ * loading ─► a spinner
1693
+ * setup error ─► errorText and the backend's message
1694
+ * other error ─► errorText and a Retry button
1695
+ * empty ─► emptyText
1696
+ * otherwise ─► children
1697
+ */
1698
+ const LoadState = ({
1699
+ isLoading,
1700
+ isError,
1701
+ setupError,
1702
+ onRetry,
1703
+ isEmpty,
1704
+ errorText,
1705
+ emptyText,
1706
+ retryText,
1707
+ children
1708
+ }) => {
1709
+ if (isLoading) {
1710
+ return jsx(FlexContainer, {
1711
+ alignItems: "center",
1712
+ padding: 8,
1713
+ children: jsx(VentionSpinner, {
1714
+ size: "x-large"
1715
+ })
1716
+ });
1717
+ }
1718
+ if (setupError !== undefined) {
1719
+ return jsxs(FlexContainer, {
1720
+ alignItems: "center",
1721
+ gap: 2,
1722
+ padding: 8,
1723
+ children: [jsx(Typography, {
1724
+ variant: "paragraph18Regular",
1725
+ children: errorText
1726
+ }), jsx(Typography, {
1727
+ variant: "paragraph16Regular",
1728
+ color: "text.secondary",
1729
+ textAlign: "center",
1730
+ children: setupError
1731
+ })]
1732
+ });
1733
+ }
1734
+ if (isError) {
1735
+ return jsxs(FlexContainer, {
1736
+ alignItems: "center",
1737
+ gap: 4,
1738
+ padding: 8,
1739
+ children: [jsx(Typography, {
1740
+ variant: "paragraph18Regular",
1741
+ children: errorText
1742
+ }), jsx(VentionButton, {
1743
+ variant: "outline",
1744
+ size: "xx-large",
1745
+ onClick: onRetry,
1746
+ children: retryText
1747
+ })]
1748
+ });
1749
+ }
1750
+ if (isEmpty) {
1751
+ return jsx(Typography, {
1752
+ variant: "paragraph18Regular",
1753
+ color: "text.secondary",
1754
+ textAlign: "center",
1755
+ padding: 8,
1756
+ children: emptyText
1757
+ });
1758
+ }
1759
+ return jsx(Fragment, {
1760
+ children: children
1761
+ });
1762
+ };
1763
+
1764
+ const PageLoading = () => jsx(FlexContainer, {
1765
+ flexGrow: 1,
1766
+ alignItems: "center",
1767
+ justifyContent: "center",
1768
+ children: jsx(VentionSpinner, {
1769
+ size: "x-large"
1770
+ })
1771
+ });
1772
+
1773
+ /** A full-page error with one action, e.g. back to the first page. */
1774
+ const PageLoadError = ({
1775
+ message,
1776
+ actionText,
1777
+ onAction
1778
+ }) => jsxs(FlexContainer, {
1779
+ flexGrow: 1,
1780
+ alignItems: "center",
1781
+ justifyContent: "center",
1782
+ gap: 4,
1783
+ children: [jsx(Typography, {
1784
+ variant: "paragraph18Regular",
1785
+ children: message
1786
+ }), jsx(VentionButton, {
1787
+ variant: "outline",
1788
+ size: "xx-large",
1789
+ onClick: onAction,
1790
+ children: actionText
1791
+ })]
1792
+ });
1793
+
1794
+ export { toAbsoluteIndex$1 as $, html$1 as A, inspectSource$1 as B, internalState as C, isCallable$d as D, isForced_1 as E, FlexContainer as F, isNullOrUndefined$2 as G, isObject$8 as H, iteratorCreateConstructor as I, iteratorDefine as J, iterators as K, LoadState as L, iteratorsCore as M, lengthOfArrayLike$1 as N, makeBuiltInExports as O, PageLoadError as P, objectAssign as Q, objectCreate as R, objectDefineProperty as S, objectGetOwnPropertyDescriptor as T, objectGetPrototypeOf as U, objectIsPrototypeOf as V, objectSetPrototypeOf as W, requireObjectCoercible$3 as X, setToStringTag$3 as Y, shared$3 as Z, __awaiter as _, PageLoading as a, toIntegerOrInfinity$2 as a0, toLength$1 as a1, toObject$3 as a2, tryToString$1 as a3, wellKnownSymbol$6 as a4, _export as b, aCallable$2 as c, addToUnscopables$1 as d, anObject$4 as e, arrayIncludes as f, classofRaw as g, copyConstructorProperties$1 as h, createIterResultObject$1 as i, createNonEnumerableProperty$4 as j, createPropertyDescriptor$3 as k, defineBuiltIn$3 as l, descriptors as m, documentCreateElement$2 as n, environmentUserAgent as o, environmentV8Version as p, fails$b as q, functionBindNative as r, functionCall as s, functionName as t, functionUncurryThis as u, functionUncurryThisAccessor as v, getBuiltIn$3 as w, getMethod$1 as x, globalThis_1 as y, hasOwnProperty_1 as z };