@sebgroup/green-react 1.0.0-beta.2 → 1.0.0-beta.6

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.umd.js ADDED
@@ -0,0 +1,2928 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('react'), require('@sebgroup/extract')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'react', '@sebgroup/extract'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.React = {}, global.jsxRuntime, global.React, global.extract));
5
+ })(this, (function (exports, jsxRuntime, React, extract) { 'use strict';
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
10
+
11
+ /*! *****************************************************************************
12
+ Copyright (c) Microsoft Corporation.
13
+
14
+ Permission to use, copy, modify, and/or distribute this software for any
15
+ purpose with or without fee is hereby granted.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
18
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
20
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
21
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
22
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
+ PERFORMANCE OF THIS SOFTWARE.
24
+ ***************************************************************************** */
25
+
26
+ var __assign = function() {
27
+ __assign = Object.assign || function __assign(t) {
28
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
29
+ s = arguments[i];
30
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
31
+ }
32
+ return t;
33
+ };
34
+ return __assign.apply(this, arguments);
35
+ };
36
+
37
+ function __rest(s, e) {
38
+ var t = {};
39
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
40
+ t[p] = s[p];
41
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
42
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
43
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
44
+ t[p[i]] = s[p[i]];
45
+ }
46
+ return t;
47
+ }
48
+
49
+ function Button(_a) {
50
+ var children = _a.children,
51
+ variant = _a.variant,
52
+ onClick = _a.onClick,
53
+ _b = _a.active,
54
+ active = _b === void 0 ? false : _b,
55
+ _c = _a.type,
56
+ type = _c === void 0 ? 'button' : _c;
57
+ var props = {
58
+ type: type
59
+ };
60
+ var classNames = [];
61
+ if (variant) classNames.push(variant);
62
+ if (active) classNames.push('active');
63
+ if (classNames.length) props.className = classNames.join(' ');
64
+ if (onClick) props.onClick = onClick;
65
+ return jsxRuntime.jsx("button", __assign({}, props, {
66
+ children: children
67
+ }), void 0);
68
+ }
69
+
70
+ var ModalHeader = function ModalHeader(_a) {
71
+ var _b = _a.header,
72
+ header = _b === void 0 ? '' : _b,
73
+ onClose = _a.onClose;
74
+
75
+ var handleClose = function handleClose(event) {
76
+ if (onClose) onClose(event);
77
+ };
78
+
79
+ return jsxRuntime.jsxs("div", __assign({
80
+ className: "header"
81
+ }, {
82
+ children: [jsxRuntime.jsx("h3", {
83
+ children: header
84
+ }, void 0), jsxRuntime.jsx("button", __assign({
85
+ className: "close",
86
+ onClick: handleClose
87
+ }, {
88
+ children: jsxRuntime.jsx("span", __assign({
89
+ className: "sr-only"
90
+ }, {
91
+ children: "Close"
92
+ }), void 0)
93
+ }), void 0)]
94
+ }), void 0);
95
+ };
96
+
97
+ var ModalBody = function ModalBody(_a) {
98
+ var children = _a.children;
99
+ return jsxRuntime.jsx("div", __assign({
100
+ className: "body"
101
+ }, {
102
+ children: children
103
+ }), void 0);
104
+ };
105
+
106
+ var ModalFooter = function ModalFooter(_a) {
107
+ var confirm = _a.confirm,
108
+ dismiss = _a.dismiss,
109
+ onClose = _a.onClose,
110
+ onConfirm = _a.onConfirm,
111
+ onDismiss = _a.onDismiss;
112
+
113
+ var handleConfirm = function handleConfirm(event) {
114
+ if (onConfirm) onConfirm(event);
115
+ if (onClose) onClose(event);
116
+ };
117
+
118
+ var handleDismiss = function handleDismiss(event) {
119
+ if (onDismiss) onDismiss(event);
120
+ if (onClose) onClose(event);
121
+ };
122
+
123
+ return jsxRuntime.jsxs("div", __assign({
124
+ className: "footer"
125
+ }, {
126
+ children: [dismiss && jsxRuntime.jsx(Button, __assign({
127
+ variant: "secondary",
128
+ onClick: handleDismiss
129
+ }, {
130
+ children: dismiss
131
+ }), void 0), confirm && jsxRuntime.jsx(Button, __assign({
132
+ variant: "primary",
133
+ onClick: handleConfirm
134
+ }, {
135
+ children: confirm
136
+ }), void 0)]
137
+ }), void 0);
138
+ };
139
+
140
+ var Modal = function Modal(_a) {
141
+ var _b = _a.type,
142
+ type = _b === void 0 ? 'default' : _b,
143
+ isOpen = _a.isOpen,
144
+ props = __rest(_a, ["type", "isOpen"]);
145
+
146
+ var modalContent = function modalContent() {
147
+ switch (type) {
148
+ case 'slideout':
149
+ {
150
+ return jsxRuntime.jsxs("aside", __assign({
151
+ role: "dialog"
152
+ }, {
153
+ children: [jsxRuntime.jsx(ModalHeader, __assign({}, props), void 0), jsxRuntime.jsx(ModalBody, __assign({}, props), void 0), jsxRuntime.jsx(ModalFooter, __assign({}, props), void 0)]
154
+ }), void 0);
155
+ }
156
+
157
+ case 'takeover':
158
+ {
159
+ return jsxRuntime.jsxs("main", __assign({
160
+ role: "dialog"
161
+ }, {
162
+ children: [jsxRuntime.jsx(ModalHeader, __assign({}, props), void 0), jsxRuntime.jsx(ModalBody, __assign({}, props), void 0), jsxRuntime.jsx(ModalFooter, __assign({}, props), void 0)]
163
+ }), void 0);
164
+ }
165
+
166
+ default:
167
+ {
168
+ return jsxRuntime.jsxs("section", __assign({
169
+ role: "dialog"
170
+ }, {
171
+ children: [jsxRuntime.jsx(ModalHeader, __assign({}, props), void 0), jsxRuntime.jsx(ModalBody, __assign({}, props), void 0), jsxRuntime.jsx(ModalFooter, __assign({}, props), void 0)]
172
+ }), void 0);
173
+ }
174
+ }
175
+ };
176
+
177
+ return isOpen ? modalContent() : null;
178
+ };
179
+
180
+ var Flexbox = function Flexbox(_a) {
181
+ var alignContent = _a.alignContent,
182
+ alignItems = _a.alignItems,
183
+ alignSelf = _a.alignSelf,
184
+ children = _a.children,
185
+ justifyContent = _a.justifyContent;
186
+
187
+ var _b = React.useState(['d-flex']),
188
+ classes = _b[0],
189
+ setClasses = _b[1];
190
+
191
+ var _c = React.useState('d-flex'),
192
+ className = _c[0],
193
+ setClassName = _c[1]; // update className when classes change
194
+
195
+
196
+ React.useEffect(function () {
197
+ var newClassName = classes.join(' ');
198
+ if (newClassName !== className) setClassName(newClassName);
199
+ }, [classes, className]); // update classes when props change
200
+
201
+ React.useEffect(function () {
202
+ var newClasses = ['d-flex'];
203
+ if (alignItems) newClasses.push("align-items-".concat(alignItems));
204
+ if (alignContent) newClasses.push("align-content-".concat(alignContent));
205
+ if (alignSelf) newClasses.push("align-content-".concat(alignSelf));
206
+ if (justifyContent) newClasses.push("justify-content-".concat(justifyContent));
207
+ setClasses(newClasses);
208
+ }, [alignContent, alignItems, alignSelf, justifyContent]);
209
+ return jsxRuntime.jsx("div", __assign({
210
+ className: className
211
+ }, {
212
+ children: children
213
+ }), void 0);
214
+ };
215
+
216
+ function Card(_a) {
217
+ var children = _a.children,
218
+ header = _a.header,
219
+ footer = _a.footer;
220
+ return jsxRuntime.jsxs("section", __assign({
221
+ className: "card"
222
+ }, {
223
+ children: [jsxRuntime.jsx("header", {
224
+ children: header
225
+ }, void 0), jsxRuntime.jsx("p", {
226
+ children: children
227
+ }, void 0), jsxRuntime.jsx("footer", {
228
+ children: footer
229
+ }, void 0)]
230
+ }), void 0);
231
+ }
232
+
233
+ function Alert(_a) {
234
+ var type = _a.type,
235
+ header = _a.header,
236
+ footer = _a.footer,
237
+ children = _a.children,
238
+ closeText = _a.closeText,
239
+ _b = _a.isCloseable,
240
+ isCloseable = _b === void 0 ? true : _b;
241
+
242
+ var _c = React.useState(),
243
+ closeButton = _c[0],
244
+ setCloseButton = _c[1];
245
+
246
+ React.useEffect(function () {
247
+ if (!isCloseable) {
248
+ setCloseButton(null);
249
+ } else {
250
+ if (closeText) setCloseButton(jsxRuntime.jsx(Button, __assign({
251
+ variant: "ghost"
252
+ }, {
253
+ children: jsxRuntime.jsx("span", __assign({
254
+ className: "sr-only"
255
+ }, {
256
+ children: closeText
257
+ }), void 0)
258
+ }), void 0));else setCloseButton(jsxRuntime.jsx("button", {
259
+ className: "close"
260
+ }, void 0));
261
+ }
262
+ }, [isCloseable, closeText]);
263
+ return jsxRuntime.jsxs("div", __assign({
264
+ role: "alert",
265
+ className: type
266
+ }, {
267
+ children: [header && jsxRuntime.jsxs("header", {
268
+ children: [/*#__PURE__*/React__default["default"].isValidElement(header) ? header : jsxRuntime.jsx("h3", {
269
+ children: header
270
+ }, void 0), closeButton]
271
+ }, void 0), jsxRuntime.jsx("p", {
272
+ children: children
273
+ }, void 0), footer && jsxRuntime.jsx("footer", {
274
+ children: footer
275
+ }, void 0)]
276
+ }), void 0);
277
+ }
278
+
279
+ var ButtonGroup = function ButtonGroup(_a) {
280
+ var children = _a.children,
281
+ selectedIndex = _a.selectedIndex,
282
+ variant = _a.variant;
283
+
284
+ var _b = React.useState(selectedIndex),
285
+ selected = _b[0],
286
+ setSelected = _b[1];
287
+
288
+ var _c = React.useState([]),
289
+ buttons = _c[0],
290
+ setButtons = _c[1];
291
+
292
+ React.useEffect(function () {
293
+ var buttonProps = (children instanceof Array ? children : [children]).filter(function (b) {
294
+ return b && b.props;
295
+ }).map(function (b, ix) {
296
+ var bp = b.props;
297
+
298
+ var props = __assign(__assign({}, bp), {
299
+ variant: variant,
300
+ key: bp.key || "btn_".concat(ix),
301
+ active: ix === selected,
302
+ onClick: function (e) {
303
+ setSelected(ix);
304
+ if (bp.onClick) bp.onClick(e);
305
+ }
306
+ });
307
+
308
+ return props;
309
+ });
310
+ setButtons(buttonProps);
311
+ }, [children, selected, variant]);
312
+ return jsxRuntime.jsx(Group, {
313
+ children: buttons.map(function (props) {
314
+ return jsxRuntime.jsx(Button, __assign({}, props), props.key);
315
+ })
316
+ }, void 0);
317
+ };
318
+
319
+ function Form(_a) {
320
+ var children = _a.children,
321
+ _b = _a.direction,
322
+ direction = _b === void 0 ? 'vertical' : _b,
323
+ _c = _a.formSize,
324
+ formSize = _c === void 0 ? 'md' : _c;
325
+ return jsxRuntime.jsx("form", __assign({
326
+ className: [direction, "size-".concat(formSize)].join(' ')
327
+ }, {
328
+ children: children
329
+ }), void 0);
330
+ }
331
+
332
+ function Group(_a) {
333
+ var children = _a.children,
334
+ error = _a.error,
335
+ _b = _a.groupBorder,
336
+ groupBorder = _b === void 0 ? false : _b;
337
+ var groupClassName = "group ".concat(groupBorder ? 'group-border' : '', " ").concat(error ? 'is-invalid' : '');
338
+ var errorMessage = error ? error.message || error : '';
339
+ return jsxRuntime.jsxs("div", __assign({
340
+ className: "form-group"
341
+ }, {
342
+ children: [jsxRuntime.jsx("div", __assign({
343
+ className: groupClassName
344
+ }, {
345
+ children: children
346
+ }), void 0), error && jsxRuntime.jsx("span", __assign({
347
+ className: "form-info"
348
+ }, {
349
+ children: errorMessage
350
+ }), void 0)]
351
+ }), void 0);
352
+ }
353
+
354
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
355
+
356
+ var check = function (it) {
357
+ return it && it.Math == Math && it;
358
+ };
359
+
360
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
361
+ var global$C =
362
+ // eslint-disable-next-line es/no-global-this -- safe
363
+ check(typeof globalThis == 'object' && globalThis) ||
364
+ check(typeof window == 'object' && window) ||
365
+ // eslint-disable-next-line no-restricted-globals -- safe
366
+ check(typeof self == 'object' && self) ||
367
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
368
+ // eslint-disable-next-line no-new-func -- fallback
369
+ (function () { return this; })() || Function('return this')();
370
+
371
+ var objectGetOwnPropertyDescriptor = {};
372
+
373
+ var fails$a = function (exec) {
374
+ try {
375
+ return !!exec();
376
+ } catch (error) {
377
+ return true;
378
+ }
379
+ };
380
+
381
+ var fails$9 = fails$a;
382
+
383
+ // Detect IE8's incomplete defineProperty implementation
384
+ var descriptors = !fails$9(function () {
385
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
386
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
387
+ });
388
+
389
+ var fails$8 = fails$a;
390
+
391
+ var functionBindNative = !fails$8(function () {
392
+ var test = (function () { /* empty */ }).bind();
393
+ // eslint-disable-next-line no-prototype-builtins -- safe
394
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
395
+ });
396
+
397
+ var NATIVE_BIND$3 = functionBindNative;
398
+
399
+ var call$9 = Function.prototype.call;
400
+
401
+ var functionCall = NATIVE_BIND$3 ? call$9.bind(call$9) : function () {
402
+ return call$9.apply(call$9, arguments);
403
+ };
404
+
405
+ var objectPropertyIsEnumerable = {};
406
+
407
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
408
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
409
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
410
+
411
+ // Nashorn ~ JDK8 bug
412
+ var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
413
+
414
+ // `Object.prototype.propertyIsEnumerable` method implementation
415
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
416
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
417
+ var descriptor = getOwnPropertyDescriptor$2(this, V);
418
+ return !!descriptor && descriptor.enumerable;
419
+ } : $propertyIsEnumerable;
420
+
421
+ var createPropertyDescriptor$2 = function (bitmap, value) {
422
+ return {
423
+ enumerable: !(bitmap & 1),
424
+ configurable: !(bitmap & 2),
425
+ writable: !(bitmap & 4),
426
+ value: value
427
+ };
428
+ };
429
+
430
+ var NATIVE_BIND$2 = functionBindNative;
431
+
432
+ var FunctionPrototype$2 = Function.prototype;
433
+ var bind$5 = FunctionPrototype$2.bind;
434
+ var call$8 = FunctionPrototype$2.call;
435
+ var uncurryThis$g = NATIVE_BIND$2 && bind$5.bind(call$8, call$8);
436
+
437
+ var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
438
+ return fn && uncurryThis$g(fn);
439
+ } : function (fn) {
440
+ return fn && function () {
441
+ return call$8.apply(fn, arguments);
442
+ };
443
+ };
444
+
445
+ var uncurryThis$f = functionUncurryThis;
446
+
447
+ var toString$5 = uncurryThis$f({}.toString);
448
+ var stringSlice$1 = uncurryThis$f(''.slice);
449
+
450
+ var classofRaw$1 = function (it) {
451
+ return stringSlice$1(toString$5(it), 8, -1);
452
+ };
453
+
454
+ var global$B = global$C;
455
+ var uncurryThis$e = functionUncurryThis;
456
+ var fails$7 = fails$a;
457
+ var classof$5 = classofRaw$1;
458
+
459
+ var Object$4 = global$B.Object;
460
+ var split = uncurryThis$e(''.split);
461
+
462
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
463
+ var indexedObject = fails$7(function () {
464
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
465
+ // eslint-disable-next-line no-prototype-builtins -- safe
466
+ return !Object$4('z').propertyIsEnumerable(0);
467
+ }) ? function (it) {
468
+ return classof$5(it) == 'String' ? split(it, '') : Object$4(it);
469
+ } : Object$4;
470
+
471
+ var global$A = global$C;
472
+
473
+ var TypeError$e = global$A.TypeError;
474
+
475
+ // `RequireObjectCoercible` abstract operation
476
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
477
+ var requireObjectCoercible$3 = function (it) {
478
+ if (it == undefined) throw TypeError$e("Can't call method on " + it);
479
+ return it;
480
+ };
481
+
482
+ // toObject with fallback for non-array-like ES3 strings
483
+ var IndexedObject = indexedObject;
484
+ var requireObjectCoercible$2 = requireObjectCoercible$3;
485
+
486
+ var toIndexedObject$3 = function (it) {
487
+ return IndexedObject(requireObjectCoercible$2(it));
488
+ };
489
+
490
+ // `IsCallable` abstract operation
491
+ // https://tc39.es/ecma262/#sec-iscallable
492
+ var isCallable$f = function (argument) {
493
+ return typeof argument == 'function';
494
+ };
495
+
496
+ var isCallable$e = isCallable$f;
497
+
498
+ var isObject$7 = function (it) {
499
+ return typeof it == 'object' ? it !== null : isCallable$e(it);
500
+ };
501
+
502
+ var global$z = global$C;
503
+ var isCallable$d = isCallable$f;
504
+
505
+ var aFunction = function (argument) {
506
+ return isCallable$d(argument) ? argument : undefined;
507
+ };
508
+
509
+ var getBuiltIn$7 = function (namespace, method) {
510
+ return arguments.length < 2 ? aFunction(global$z[namespace]) : global$z[namespace] && global$z[namespace][method];
511
+ };
512
+
513
+ var uncurryThis$d = functionUncurryThis;
514
+
515
+ var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
516
+
517
+ var getBuiltIn$6 = getBuiltIn$7;
518
+
519
+ var engineUserAgent = getBuiltIn$6('navigator', 'userAgent') || '';
520
+
521
+ var global$y = global$C;
522
+ var userAgent$3 = engineUserAgent;
523
+
524
+ var process$3 = global$y.process;
525
+ var Deno = global$y.Deno;
526
+ var versions = process$3 && process$3.versions || Deno && Deno.version;
527
+ var v8 = versions && versions.v8;
528
+ var match, version;
529
+
530
+ if (v8) {
531
+ match = v8.split('.');
532
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
533
+ // but their correct versions are not interesting for us
534
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
535
+ }
536
+
537
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
538
+ // so check `userAgent` even if `.v8` exists, but 0
539
+ if (!version && userAgent$3) {
540
+ match = userAgent$3.match(/Edge\/(\d+)/);
541
+ if (!match || match[1] >= 74) {
542
+ match = userAgent$3.match(/Chrome\/(\d+)/);
543
+ if (match) version = +match[1];
544
+ }
545
+ }
546
+
547
+ var engineV8Version = version;
548
+
549
+ /* eslint-disable es/no-symbol -- required for testing */
550
+
551
+ var V8_VERSION$1 = engineV8Version;
552
+ var fails$6 = fails$a;
553
+
554
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
555
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$6(function () {
556
+ var symbol = Symbol();
557
+ // Chrome 38 Symbol has incorrect toString conversion
558
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
559
+ return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
560
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
561
+ !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
562
+ });
563
+
564
+ /* eslint-disable es/no-symbol -- required for testing */
565
+
566
+ var NATIVE_SYMBOL$2 = nativeSymbol;
567
+
568
+ var useSymbolAsUid = NATIVE_SYMBOL$2
569
+ && !Symbol.sham
570
+ && typeof Symbol.iterator == 'symbol';
571
+
572
+ var global$x = global$C;
573
+ var getBuiltIn$5 = getBuiltIn$7;
574
+ var isCallable$c = isCallable$f;
575
+ var isPrototypeOf$3 = objectIsPrototypeOf;
576
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
577
+
578
+ var Object$3 = global$x.Object;
579
+
580
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
581
+ return typeof it == 'symbol';
582
+ } : function (it) {
583
+ var $Symbol = getBuiltIn$5('Symbol');
584
+ return isCallable$c($Symbol) && isPrototypeOf$3($Symbol.prototype, Object$3(it));
585
+ };
586
+
587
+ var global$w = global$C;
588
+
589
+ var String$5 = global$w.String;
590
+
591
+ var tryToString$4 = function (argument) {
592
+ try {
593
+ return String$5(argument);
594
+ } catch (error) {
595
+ return 'Object';
596
+ }
597
+ };
598
+
599
+ var global$v = global$C;
600
+ var isCallable$b = isCallable$f;
601
+ var tryToString$3 = tryToString$4;
602
+
603
+ var TypeError$d = global$v.TypeError;
604
+
605
+ // `Assert: IsCallable(argument) is true`
606
+ var aCallable$5 = function (argument) {
607
+ if (isCallable$b(argument)) return argument;
608
+ throw TypeError$d(tryToString$3(argument) + ' is not a function');
609
+ };
610
+
611
+ var aCallable$4 = aCallable$5;
612
+
613
+ // `GetMethod` abstract operation
614
+ // https://tc39.es/ecma262/#sec-getmethod
615
+ var getMethod$3 = function (V, P) {
616
+ var func = V[P];
617
+ return func == null ? undefined : aCallable$4(func);
618
+ };
619
+
620
+ var global$u = global$C;
621
+ var call$7 = functionCall;
622
+ var isCallable$a = isCallable$f;
623
+ var isObject$6 = isObject$7;
624
+
625
+ var TypeError$c = global$u.TypeError;
626
+
627
+ // `OrdinaryToPrimitive` abstract operation
628
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
629
+ var ordinaryToPrimitive$1 = function (input, pref) {
630
+ var fn, val;
631
+ if (pref === 'string' && isCallable$a(fn = input.toString) && !isObject$6(val = call$7(fn, input))) return val;
632
+ if (isCallable$a(fn = input.valueOf) && !isObject$6(val = call$7(fn, input))) return val;
633
+ if (pref !== 'string' && isCallable$a(fn = input.toString) && !isObject$6(val = call$7(fn, input))) return val;
634
+ throw TypeError$c("Can't convert object to primitive value");
635
+ };
636
+
637
+ var shared$3 = {exports: {}};
638
+
639
+ var global$t = global$C;
640
+
641
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
642
+ var defineProperty$2 = Object.defineProperty;
643
+
644
+ var setGlobal$3 = function (key, value) {
645
+ try {
646
+ defineProperty$2(global$t, key, { value: value, configurable: true, writable: true });
647
+ } catch (error) {
648
+ global$t[key] = value;
649
+ } return value;
650
+ };
651
+
652
+ var global$s = global$C;
653
+ var setGlobal$2 = setGlobal$3;
654
+
655
+ var SHARED = '__core-js_shared__';
656
+ var store$3 = global$s[SHARED] || setGlobal$2(SHARED, {});
657
+
658
+ var sharedStore = store$3;
659
+
660
+ var store$2 = sharedStore;
661
+
662
+ (shared$3.exports = function (key, value) {
663
+ return store$2[key] || (store$2[key] = value !== undefined ? value : {});
664
+ })('versions', []).push({
665
+ version: '3.21.1',
666
+ mode: 'global',
667
+ copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
668
+ license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
669
+ source: 'https://github.com/zloirock/core-js'
670
+ });
671
+
672
+ var global$r = global$C;
673
+ var requireObjectCoercible$1 = requireObjectCoercible$3;
674
+
675
+ var Object$2 = global$r.Object;
676
+
677
+ // `ToObject` abstract operation
678
+ // https://tc39.es/ecma262/#sec-toobject
679
+ var toObject$1 = function (argument) {
680
+ return Object$2(requireObjectCoercible$1(argument));
681
+ };
682
+
683
+ var uncurryThis$c = functionUncurryThis;
684
+ var toObject = toObject$1;
685
+
686
+ var hasOwnProperty = uncurryThis$c({}.hasOwnProperty);
687
+
688
+ // `HasOwnProperty` abstract operation
689
+ // https://tc39.es/ecma262/#sec-hasownproperty
690
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
691
+ return hasOwnProperty(toObject(it), key);
692
+ };
693
+
694
+ var uncurryThis$b = functionUncurryThis;
695
+
696
+ var id = 0;
697
+ var postfix = Math.random();
698
+ var toString$4 = uncurryThis$b(1.0.toString);
699
+
700
+ var uid$2 = function (key) {
701
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
702
+ };
703
+
704
+ var global$q = global$C;
705
+ var shared$2 = shared$3.exports;
706
+ var hasOwn$9 = hasOwnProperty_1;
707
+ var uid$1 = uid$2;
708
+ var NATIVE_SYMBOL$1 = nativeSymbol;
709
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
710
+
711
+ var WellKnownSymbolsStore = shared$2('wks');
712
+ var Symbol$2 = global$q.Symbol;
713
+ var symbolFor = Symbol$2 && Symbol$2['for'];
714
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
715
+
716
+ var wellKnownSymbol$a = function (name) {
717
+ if (!hasOwn$9(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL$1 || typeof WellKnownSymbolsStore[name] == 'string')) {
718
+ var description = 'Symbol.' + name;
719
+ if (NATIVE_SYMBOL$1 && hasOwn$9(Symbol$2, name)) {
720
+ WellKnownSymbolsStore[name] = Symbol$2[name];
721
+ } else if (USE_SYMBOL_AS_UID && symbolFor) {
722
+ WellKnownSymbolsStore[name] = symbolFor(description);
723
+ } else {
724
+ WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
725
+ }
726
+ } return WellKnownSymbolsStore[name];
727
+ };
728
+
729
+ var global$p = global$C;
730
+ var call$6 = functionCall;
731
+ var isObject$5 = isObject$7;
732
+ var isSymbol$1 = isSymbol$2;
733
+ var getMethod$2 = getMethod$3;
734
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
735
+ var wellKnownSymbol$9 = wellKnownSymbol$a;
736
+
737
+ var TypeError$b = global$p.TypeError;
738
+ var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
739
+
740
+ // `ToPrimitive` abstract operation
741
+ // https://tc39.es/ecma262/#sec-toprimitive
742
+ var toPrimitive$1 = function (input, pref) {
743
+ if (!isObject$5(input) || isSymbol$1(input)) return input;
744
+ var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
745
+ var result;
746
+ if (exoticToPrim) {
747
+ if (pref === undefined) pref = 'default';
748
+ result = call$6(exoticToPrim, input, pref);
749
+ if (!isObject$5(result) || isSymbol$1(result)) return result;
750
+ throw TypeError$b("Can't convert object to primitive value");
751
+ }
752
+ if (pref === undefined) pref = 'number';
753
+ return ordinaryToPrimitive(input, pref);
754
+ };
755
+
756
+ var toPrimitive = toPrimitive$1;
757
+ var isSymbol = isSymbol$2;
758
+
759
+ // `ToPropertyKey` abstract operation
760
+ // https://tc39.es/ecma262/#sec-topropertykey
761
+ var toPropertyKey$2 = function (argument) {
762
+ var key = toPrimitive(argument, 'string');
763
+ return isSymbol(key) ? key : key + '';
764
+ };
765
+
766
+ var global$o = global$C;
767
+ var isObject$4 = isObject$7;
768
+
769
+ var document$2 = global$o.document;
770
+ // typeof document.createElement is 'object' in old IE
771
+ var EXISTS$1 = isObject$4(document$2) && isObject$4(document$2.createElement);
772
+
773
+ var documentCreateElement = function (it) {
774
+ return EXISTS$1 ? document$2.createElement(it) : {};
775
+ };
776
+
777
+ var DESCRIPTORS$7 = descriptors;
778
+ var fails$5 = fails$a;
779
+ var createElement$1 = documentCreateElement;
780
+
781
+ // Thanks to IE8 for its funny defineProperty
782
+ var ie8DomDefine = !DESCRIPTORS$7 && !fails$5(function () {
783
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
784
+ return Object.defineProperty(createElement$1('div'), 'a', {
785
+ get: function () { return 7; }
786
+ }).a != 7;
787
+ });
788
+
789
+ var DESCRIPTORS$6 = descriptors;
790
+ var call$5 = functionCall;
791
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
792
+ var createPropertyDescriptor$1 = createPropertyDescriptor$2;
793
+ var toIndexedObject$2 = toIndexedObject$3;
794
+ var toPropertyKey$1 = toPropertyKey$2;
795
+ var hasOwn$8 = hasOwnProperty_1;
796
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
797
+
798
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
799
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
800
+
801
+ // `Object.getOwnPropertyDescriptor` method
802
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
803
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
804
+ O = toIndexedObject$2(O);
805
+ P = toPropertyKey$1(P);
806
+ if (IE8_DOM_DEFINE$1) try {
807
+ return $getOwnPropertyDescriptor$1(O, P);
808
+ } catch (error) { /* empty */ }
809
+ if (hasOwn$8(O, P)) return createPropertyDescriptor$1(!call$5(propertyIsEnumerableModule.f, O, P), O[P]);
810
+ };
811
+
812
+ var objectDefineProperty = {};
813
+
814
+ var DESCRIPTORS$5 = descriptors;
815
+ var fails$4 = fails$a;
816
+
817
+ // V8 ~ Chrome 36-
818
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
819
+ var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$4(function () {
820
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
821
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
822
+ value: 42,
823
+ writable: false
824
+ }).prototype != 42;
825
+ });
826
+
827
+ var global$n = global$C;
828
+ var isObject$3 = isObject$7;
829
+
830
+ var String$4 = global$n.String;
831
+ var TypeError$a = global$n.TypeError;
832
+
833
+ // `Assert: Type(argument) is Object`
834
+ var anObject$8 = function (argument) {
835
+ if (isObject$3(argument)) return argument;
836
+ throw TypeError$a(String$4(argument) + ' is not an object');
837
+ };
838
+
839
+ var global$m = global$C;
840
+ var DESCRIPTORS$4 = descriptors;
841
+ var IE8_DOM_DEFINE = ie8DomDefine;
842
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
843
+ var anObject$7 = anObject$8;
844
+ var toPropertyKey = toPropertyKey$2;
845
+
846
+ var TypeError$9 = global$m.TypeError;
847
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
848
+ var $defineProperty = Object.defineProperty;
849
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
850
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
851
+ var ENUMERABLE = 'enumerable';
852
+ var CONFIGURABLE$1 = 'configurable';
853
+ var WRITABLE = 'writable';
854
+
855
+ // `Object.defineProperty` method
856
+ // https://tc39.es/ecma262/#sec-object.defineproperty
857
+ objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
858
+ anObject$7(O);
859
+ P = toPropertyKey(P);
860
+ anObject$7(Attributes);
861
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
862
+ var current = $getOwnPropertyDescriptor(O, P);
863
+ if (current && current[WRITABLE]) {
864
+ O[P] = Attributes.value;
865
+ Attributes = {
866
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
867
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
868
+ writable: false
869
+ };
870
+ }
871
+ } return $defineProperty(O, P, Attributes);
872
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
873
+ anObject$7(O);
874
+ P = toPropertyKey(P);
875
+ anObject$7(Attributes);
876
+ if (IE8_DOM_DEFINE) try {
877
+ return $defineProperty(O, P, Attributes);
878
+ } catch (error) { /* empty */ }
879
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError$9('Accessors not supported');
880
+ if ('value' in Attributes) O[P] = Attributes.value;
881
+ return O;
882
+ };
883
+
884
+ var DESCRIPTORS$3 = descriptors;
885
+ var definePropertyModule$2 = objectDefineProperty;
886
+ var createPropertyDescriptor = createPropertyDescriptor$2;
887
+
888
+ var createNonEnumerableProperty$3 = DESCRIPTORS$3 ? function (object, key, value) {
889
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
890
+ } : function (object, key, value) {
891
+ object[key] = value;
892
+ return object;
893
+ };
894
+
895
+ var redefine$3 = {exports: {}};
896
+
897
+ var uncurryThis$a = functionUncurryThis;
898
+ var isCallable$9 = isCallable$f;
899
+ var store$1 = sharedStore;
900
+
901
+ var functionToString = uncurryThis$a(Function.toString);
902
+
903
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
904
+ if (!isCallable$9(store$1.inspectSource)) {
905
+ store$1.inspectSource = function (it) {
906
+ return functionToString(it);
907
+ };
908
+ }
909
+
910
+ var inspectSource$4 = store$1.inspectSource;
911
+
912
+ var global$l = global$C;
913
+ var isCallable$8 = isCallable$f;
914
+ var inspectSource$3 = inspectSource$4;
915
+
916
+ var WeakMap$1 = global$l.WeakMap;
917
+
918
+ var nativeWeakMap = isCallable$8(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
919
+
920
+ var shared$1 = shared$3.exports;
921
+ var uid = uid$2;
922
+
923
+ var keys = shared$1('keys');
924
+
925
+ var sharedKey$1 = function (key) {
926
+ return keys[key] || (keys[key] = uid(key));
927
+ };
928
+
929
+ var hiddenKeys$3 = {};
930
+
931
+ var NATIVE_WEAK_MAP = nativeWeakMap;
932
+ var global$k = global$C;
933
+ var uncurryThis$9 = functionUncurryThis;
934
+ var isObject$2 = isObject$7;
935
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
936
+ var hasOwn$7 = hasOwnProperty_1;
937
+ var shared = sharedStore;
938
+ var sharedKey = sharedKey$1;
939
+ var hiddenKeys$2 = hiddenKeys$3;
940
+
941
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
942
+ var TypeError$8 = global$k.TypeError;
943
+ var WeakMap = global$k.WeakMap;
944
+ var set$1, get, has;
945
+
946
+ var enforce = function (it) {
947
+ return has(it) ? get(it) : set$1(it, {});
948
+ };
949
+
950
+ var getterFor = function (TYPE) {
951
+ return function (it) {
952
+ var state;
953
+ if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
954
+ throw TypeError$8('Incompatible receiver, ' + TYPE + ' required');
955
+ } return state;
956
+ };
957
+ };
958
+
959
+ if (NATIVE_WEAK_MAP || shared.state) {
960
+ var store = shared.state || (shared.state = new WeakMap());
961
+ var wmget = uncurryThis$9(store.get);
962
+ var wmhas = uncurryThis$9(store.has);
963
+ var wmset = uncurryThis$9(store.set);
964
+ set$1 = function (it, metadata) {
965
+ if (wmhas(store, it)) throw new TypeError$8(OBJECT_ALREADY_INITIALIZED);
966
+ metadata.facade = it;
967
+ wmset(store, it, metadata);
968
+ return metadata;
969
+ };
970
+ get = function (it) {
971
+ return wmget(store, it) || {};
972
+ };
973
+ has = function (it) {
974
+ return wmhas(store, it);
975
+ };
976
+ } else {
977
+ var STATE = sharedKey('state');
978
+ hiddenKeys$2[STATE] = true;
979
+ set$1 = function (it, metadata) {
980
+ if (hasOwn$7(it, STATE)) throw new TypeError$8(OBJECT_ALREADY_INITIALIZED);
981
+ metadata.facade = it;
982
+ createNonEnumerableProperty$2(it, STATE, metadata);
983
+ return metadata;
984
+ };
985
+ get = function (it) {
986
+ return hasOwn$7(it, STATE) ? it[STATE] : {};
987
+ };
988
+ has = function (it) {
989
+ return hasOwn$7(it, STATE);
990
+ };
991
+ }
992
+
993
+ var internalState = {
994
+ set: set$1,
995
+ get: get,
996
+ has: has,
997
+ enforce: enforce,
998
+ getterFor: getterFor
999
+ };
1000
+
1001
+ var DESCRIPTORS$2 = descriptors;
1002
+ var hasOwn$6 = hasOwnProperty_1;
1003
+
1004
+ var FunctionPrototype$1 = Function.prototype;
1005
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1006
+ var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
1007
+
1008
+ var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
1009
+ // additional protection from minified / mangled / dropped function names
1010
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
1011
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype$1, 'name').configurable));
1012
+
1013
+ var functionName = {
1014
+ EXISTS: EXISTS,
1015
+ PROPER: PROPER,
1016
+ CONFIGURABLE: CONFIGURABLE
1017
+ };
1018
+
1019
+ var global$j = global$C;
1020
+ var isCallable$7 = isCallable$f;
1021
+ var hasOwn$5 = hasOwnProperty_1;
1022
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
1023
+ var setGlobal$1 = setGlobal$3;
1024
+ var inspectSource$2 = inspectSource$4;
1025
+ var InternalStateModule$1 = internalState;
1026
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
1027
+
1028
+ var getInternalState$1 = InternalStateModule$1.get;
1029
+ var enforceInternalState = InternalStateModule$1.enforce;
1030
+ var TEMPLATE = String(String).split('String');
1031
+
1032
+ (redefine$3.exports = function (O, key, value, options) {
1033
+ var unsafe = options ? !!options.unsafe : false;
1034
+ var simple = options ? !!options.enumerable : false;
1035
+ var noTargetGet = options ? !!options.noTargetGet : false;
1036
+ var name = options && options.name !== undefined ? options.name : key;
1037
+ var state;
1038
+ if (isCallable$7(value)) {
1039
+ if (String(name).slice(0, 7) === 'Symbol(') {
1040
+ name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
1041
+ }
1042
+ if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
1043
+ createNonEnumerableProperty$1(value, 'name', name);
1044
+ }
1045
+ state = enforceInternalState(value);
1046
+ if (!state.source) {
1047
+ state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
1048
+ }
1049
+ }
1050
+ if (O === global$j) {
1051
+ if (simple) O[key] = value;
1052
+ else setGlobal$1(key, value);
1053
+ return;
1054
+ } else if (!unsafe) {
1055
+ delete O[key];
1056
+ } else if (!noTargetGet && O[key]) {
1057
+ simple = true;
1058
+ }
1059
+ if (simple) O[key] = value;
1060
+ else createNonEnumerableProperty$1(O, key, value);
1061
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1062
+ })(Function.prototype, 'toString', function toString() {
1063
+ return isCallable$7(this) && getInternalState$1(this).source || inspectSource$2(this);
1064
+ });
1065
+
1066
+ var objectGetOwnPropertyNames = {};
1067
+
1068
+ var ceil = Math.ceil;
1069
+ var floor = Math.floor;
1070
+
1071
+ // `ToIntegerOrInfinity` abstract operation
1072
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
1073
+ var toIntegerOrInfinity$2 = function (argument) {
1074
+ var number = +argument;
1075
+ // eslint-disable-next-line no-self-compare -- safe
1076
+ return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
1077
+ };
1078
+
1079
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
1080
+
1081
+ var max = Math.max;
1082
+ var min$1 = Math.min;
1083
+
1084
+ // Helper for a popular repeating case of the spec:
1085
+ // Let integer be ? ToInteger(index).
1086
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
1087
+ var toAbsoluteIndex$1 = function (index, length) {
1088
+ var integer = toIntegerOrInfinity$1(index);
1089
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
1090
+ };
1091
+
1092
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
1093
+
1094
+ var min = Math.min;
1095
+
1096
+ // `ToLength` abstract operation
1097
+ // https://tc39.es/ecma262/#sec-tolength
1098
+ var toLength$1 = function (argument) {
1099
+ return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
1100
+ };
1101
+
1102
+ var toLength = toLength$1;
1103
+
1104
+ // `LengthOfArrayLike` abstract operation
1105
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
1106
+ var lengthOfArrayLike$2 = function (obj) {
1107
+ return toLength(obj.length);
1108
+ };
1109
+
1110
+ var toIndexedObject$1 = toIndexedObject$3;
1111
+ var toAbsoluteIndex = toAbsoluteIndex$1;
1112
+ var lengthOfArrayLike$1 = lengthOfArrayLike$2;
1113
+
1114
+ // `Array.prototype.{ indexOf, includes }` methods implementation
1115
+ var createMethod$1 = function (IS_INCLUDES) {
1116
+ return function ($this, el, fromIndex) {
1117
+ var O = toIndexedObject$1($this);
1118
+ var length = lengthOfArrayLike$1(O);
1119
+ var index = toAbsoluteIndex(fromIndex, length);
1120
+ var value;
1121
+ // Array#includes uses SameValueZero equality algorithm
1122
+ // eslint-disable-next-line no-self-compare -- NaN check
1123
+ if (IS_INCLUDES && el != el) while (length > index) {
1124
+ value = O[index++];
1125
+ // eslint-disable-next-line no-self-compare -- NaN check
1126
+ if (value != value) return true;
1127
+ // Array#indexOf ignores holes, Array#includes - not
1128
+ } else for (;length > index; index++) {
1129
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1130
+ } return !IS_INCLUDES && -1;
1131
+ };
1132
+ };
1133
+
1134
+ var arrayIncludes = {
1135
+ // `Array.prototype.includes` method
1136
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
1137
+ includes: createMethod$1(true),
1138
+ // `Array.prototype.indexOf` method
1139
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
1140
+ indexOf: createMethod$1(false)
1141
+ };
1142
+
1143
+ var uncurryThis$8 = functionUncurryThis;
1144
+ var hasOwn$4 = hasOwnProperty_1;
1145
+ var toIndexedObject = toIndexedObject$3;
1146
+ var indexOf = arrayIncludes.indexOf;
1147
+ var hiddenKeys$1 = hiddenKeys$3;
1148
+
1149
+ var push = uncurryThis$8([].push);
1150
+
1151
+ var objectKeysInternal = function (object, names) {
1152
+ var O = toIndexedObject(object);
1153
+ var i = 0;
1154
+ var result = [];
1155
+ var key;
1156
+ for (key in O) !hasOwn$4(hiddenKeys$1, key) && hasOwn$4(O, key) && push(result, key);
1157
+ // Don't enum bug & hidden keys
1158
+ while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
1159
+ ~indexOf(result, key) || push(result, key);
1160
+ }
1161
+ return result;
1162
+ };
1163
+
1164
+ // IE8- don't enum bug keys
1165
+ var enumBugKeys$1 = [
1166
+ 'constructor',
1167
+ 'hasOwnProperty',
1168
+ 'isPrototypeOf',
1169
+ 'propertyIsEnumerable',
1170
+ 'toLocaleString',
1171
+ 'toString',
1172
+ 'valueOf'
1173
+ ];
1174
+
1175
+ var internalObjectKeys = objectKeysInternal;
1176
+ var enumBugKeys = enumBugKeys$1;
1177
+
1178
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1179
+
1180
+ // `Object.getOwnPropertyNames` method
1181
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
1182
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1183
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1184
+ return internalObjectKeys(O, hiddenKeys);
1185
+ };
1186
+
1187
+ var objectGetOwnPropertySymbols = {};
1188
+
1189
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1190
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1191
+
1192
+ var getBuiltIn$4 = getBuiltIn$7;
1193
+ var uncurryThis$7 = functionUncurryThis;
1194
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1195
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1196
+ var anObject$6 = anObject$8;
1197
+
1198
+ var concat = uncurryThis$7([].concat);
1199
+
1200
+ // all object keys, includes non-enumerable and symbols
1201
+ var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
1202
+ var keys = getOwnPropertyNamesModule.f(anObject$6(it));
1203
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1204
+ return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
1205
+ };
1206
+
1207
+ var hasOwn$3 = hasOwnProperty_1;
1208
+ var ownKeys = ownKeys$1;
1209
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1210
+ var definePropertyModule$1 = objectDefineProperty;
1211
+
1212
+ var copyConstructorProperties$2 = function (target, source, exceptions) {
1213
+ var keys = ownKeys(source);
1214
+ var defineProperty = definePropertyModule$1.f;
1215
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1216
+ for (var i = 0; i < keys.length; i++) {
1217
+ var key = keys[i];
1218
+ if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
1219
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1220
+ }
1221
+ }
1222
+ };
1223
+
1224
+ var fails$3 = fails$a;
1225
+ var isCallable$6 = isCallable$f;
1226
+
1227
+ var replacement = /#|\.prototype\./;
1228
+
1229
+ var isForced$2 = function (feature, detection) {
1230
+ var value = data[normalize(feature)];
1231
+ return value == POLYFILL ? true
1232
+ : value == NATIVE ? false
1233
+ : isCallable$6(detection) ? fails$3(detection)
1234
+ : !!detection;
1235
+ };
1236
+
1237
+ var normalize = isForced$2.normalize = function (string) {
1238
+ return String(string).replace(replacement, '.').toLowerCase();
1239
+ };
1240
+
1241
+ var data = isForced$2.data = {};
1242
+ var NATIVE = isForced$2.NATIVE = 'N';
1243
+ var POLYFILL = isForced$2.POLYFILL = 'P';
1244
+
1245
+ var isForced_1 = isForced$2;
1246
+
1247
+ var global$i = global$C;
1248
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1249
+ var createNonEnumerableProperty = createNonEnumerableProperty$3;
1250
+ var redefine$2 = redefine$3.exports;
1251
+ var setGlobal = setGlobal$3;
1252
+ var copyConstructorProperties$1 = copyConstructorProperties$2;
1253
+ var isForced$1 = isForced_1;
1254
+
1255
+ /*
1256
+ options.target - name of the target object
1257
+ options.global - target is the global object
1258
+ options.stat - export as static methods of target
1259
+ options.proto - export as prototype methods of target
1260
+ options.real - real prototype method for the `pure` version
1261
+ options.forced - export even if the native feature is available
1262
+ options.bind - bind methods to the target, required for the `pure` version
1263
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1264
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
1265
+ options.sham - add a flag to not completely full polyfills
1266
+ options.enumerable - export as enumerable property
1267
+ options.noTargetGet - prevent calling a getter on target
1268
+ options.name - the .name of the function if it does not match the key
1269
+ */
1270
+ var _export = function (options, source) {
1271
+ var TARGET = options.target;
1272
+ var GLOBAL = options.global;
1273
+ var STATIC = options.stat;
1274
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1275
+ if (GLOBAL) {
1276
+ target = global$i;
1277
+ } else if (STATIC) {
1278
+ target = global$i[TARGET] || setGlobal(TARGET, {});
1279
+ } else {
1280
+ target = (global$i[TARGET] || {}).prototype;
1281
+ }
1282
+ if (target) for (key in source) {
1283
+ sourceProperty = source[key];
1284
+ if (options.noTargetGet) {
1285
+ descriptor = getOwnPropertyDescriptor$1(target, key);
1286
+ targetProperty = descriptor && descriptor.value;
1287
+ } else targetProperty = target[key];
1288
+ FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1289
+ // contained in target
1290
+ if (!FORCED && targetProperty !== undefined) {
1291
+ if (typeof sourceProperty == typeof targetProperty) continue;
1292
+ copyConstructorProperties$1(sourceProperty, targetProperty);
1293
+ }
1294
+ // add a flag to not completely full polyfills
1295
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1296
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
1297
+ }
1298
+ // extend global
1299
+ redefine$2(target, key, sourceProperty, options);
1300
+ }
1301
+ };
1302
+
1303
+ var wellKnownSymbol$8 = wellKnownSymbol$a;
1304
+
1305
+ var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
1306
+ var test = {};
1307
+
1308
+ test[TO_STRING_TAG$2] = 'z';
1309
+
1310
+ var toStringTagSupport = String(test) === '[object z]';
1311
+
1312
+ var global$h = global$C;
1313
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1314
+ var isCallable$5 = isCallable$f;
1315
+ var classofRaw = classofRaw$1;
1316
+ var wellKnownSymbol$7 = wellKnownSymbol$a;
1317
+
1318
+ var TO_STRING_TAG$1 = wellKnownSymbol$7('toStringTag');
1319
+ var Object$1 = global$h.Object;
1320
+
1321
+ // ES3 wrong here
1322
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1323
+
1324
+ // fallback for IE11 Script Access Denied error
1325
+ var tryGet = function (it, key) {
1326
+ try {
1327
+ return it[key];
1328
+ } catch (error) { /* empty */ }
1329
+ };
1330
+
1331
+ // getting tag from ES6+ `Object.prototype.toString`
1332
+ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1333
+ var O, tag, result;
1334
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1335
+ // @@toStringTag case
1336
+ : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG$1)) == 'string' ? tag
1337
+ // builtinTag case
1338
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1339
+ // ES3 arguments fallback
1340
+ : (result = classofRaw(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
1341
+ };
1342
+
1343
+ var global$g = global$C;
1344
+ var classof$3 = classof$4;
1345
+
1346
+ var String$3 = global$g.String;
1347
+
1348
+ var toString$3 = function (argument) {
1349
+ if (classof$3(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1350
+ return String$3(argument);
1351
+ };
1352
+
1353
+ // a string of all valid unicode whitespaces
1354
+ var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
1355
+ '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
1356
+
1357
+ var uncurryThis$6 = functionUncurryThis;
1358
+ var requireObjectCoercible = requireObjectCoercible$3;
1359
+ var toString$2 = toString$3;
1360
+ var whitespaces$1 = whitespaces$2;
1361
+
1362
+ var replace$1 = uncurryThis$6(''.replace);
1363
+ var whitespace = '[' + whitespaces$1 + ']';
1364
+ var ltrim = RegExp('^' + whitespace + whitespace + '*');
1365
+ var rtrim = RegExp(whitespace + whitespace + '*$');
1366
+
1367
+ // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
1368
+ var createMethod = function (TYPE) {
1369
+ return function ($this) {
1370
+ var string = toString$2(requireObjectCoercible($this));
1371
+ if (TYPE & 1) string = replace$1(string, ltrim, '');
1372
+ if (TYPE & 2) string = replace$1(string, rtrim, '');
1373
+ return string;
1374
+ };
1375
+ };
1376
+
1377
+ var stringTrim = {
1378
+ // `String.prototype.{ trimLeft, trimStart }` methods
1379
+ // https://tc39.es/ecma262/#sec-string.prototype.trimstart
1380
+ start: createMethod(1),
1381
+ // `String.prototype.{ trimRight, trimEnd }` methods
1382
+ // https://tc39.es/ecma262/#sec-string.prototype.trimend
1383
+ end: createMethod(2),
1384
+ // `String.prototype.trim` method
1385
+ // https://tc39.es/ecma262/#sec-string.prototype.trim
1386
+ trim: createMethod(3)
1387
+ };
1388
+
1389
+ var global$f = global$C;
1390
+ var fails$2 = fails$a;
1391
+ var uncurryThis$5 = functionUncurryThis;
1392
+ var toString$1 = toString$3;
1393
+ var trim = stringTrim.trim;
1394
+ var whitespaces = whitespaces$2;
1395
+
1396
+ var $parseInt$1 = global$f.parseInt;
1397
+ var Symbol$1 = global$f.Symbol;
1398
+ var ITERATOR$3 = Symbol$1 && Symbol$1.iterator;
1399
+ var hex = /^[+-]?0x/i;
1400
+ var exec$1 = uncurryThis$5(hex.exec);
1401
+ var FORCED$1 = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
1402
+ // MS Edge 18- broken with boxed symbols
1403
+ || (ITERATOR$3 && !fails$2(function () { $parseInt$1(Object(ITERATOR$3)); }));
1404
+
1405
+ // `parseInt` method
1406
+ // https://tc39.es/ecma262/#sec-parseint-string-radix
1407
+ var numberParseInt = FORCED$1 ? function parseInt(string, radix) {
1408
+ var S = trim(toString$1(string));
1409
+ return $parseInt$1(S, (radix >>> 0) || (exec$1(hex, S) ? 16 : 10));
1410
+ } : $parseInt$1;
1411
+
1412
+ var $$2 = _export;
1413
+ var $parseInt = numberParseInt;
1414
+
1415
+ // `parseInt` method
1416
+ // https://tc39.es/ecma262/#sec-parseint-string-radix
1417
+ $$2({ global: true, forced: parseInt != $parseInt }, {
1418
+ parseInt: $parseInt
1419
+ });
1420
+
1421
+ var useInput = function useInput(props, evaluator, notify) {
1422
+ var id = React.useMemo(function () {
1423
+ return props.id || extract.randomId();
1424
+ }, [props.id]);
1425
+ var ref = React.useRef(null);
1426
+
1427
+ var _a = React.useState(props.value),
1428
+ value = _a[0],
1429
+ setValue = _a[1];
1430
+
1431
+ var _b = React.useState(props.checked),
1432
+ checked = _b[0],
1433
+ setChecked = _b[1];
1434
+
1435
+ React.useEffect(function () {
1436
+ if (ref.current && ref.current.form) {
1437
+ var resetListener_1 = function resetListener_1() {
1438
+ props.value && setValue(props.value);
1439
+ props.checked && setChecked(props.checked);
1440
+ };
1441
+
1442
+ var form_1 = ref.current.form;
1443
+ form_1.addEventListener('reset', resetListener_1);
1444
+ return function () {
1445
+ return form_1.removeEventListener('reset', resetListener_1);
1446
+ };
1447
+ } else {
1448
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
1449
+ return function () {};
1450
+ }
1451
+ }, [props]);
1452
+
1453
+ var onChange = function onChange(event) {
1454
+ props.value && setValue(event.target.value);
1455
+ props.checked && setChecked(event.target.checked);
1456
+ if (notify) notify(evaluator(event.target));
1457
+ };
1458
+
1459
+ return __assign(__assign({}, props), {
1460
+ id: id,
1461
+ ref: ref,
1462
+ value: value,
1463
+ checked: checked,
1464
+ onChange: onChange
1465
+ });
1466
+ };
1467
+
1468
+ var RenderInput = function RenderInput(type, props, evaluator, label, info, listener) {
1469
+ var _a = useInput(props, evaluator, listener),
1470
+ value = _a.value,
1471
+ inputProps = __rest(_a, ["value"]);
1472
+
1473
+ var propsWithDescription = info ? __assign(__assign({}, inputProps), {
1474
+ 'aria-describedby': "".concat(inputProps.id, "_info")
1475
+ }) : inputProps; // Render naked
1476
+
1477
+ if (!label && !info) return jsxRuntime.jsx("input", __assign({
1478
+ type: type,
1479
+ value: value
1480
+ }, propsWithDescription), void 0);
1481
+ return jsxRuntime.jsxs("div", __assign({
1482
+ className: "form-field"
1483
+ }, {
1484
+ children: [label && jsxRuntime.jsx("label", __assign({
1485
+ htmlFor: inputProps.id
1486
+ }, {
1487
+ children: label
1488
+ }), void 0), info && jsxRuntime.jsx("span", __assign({
1489
+ className: "form-info",
1490
+ id: "{inputProps.id}_info"
1491
+ }, {
1492
+ children: info
1493
+ }), void 0), jsxRuntime.jsx("input", __assign({
1494
+ type: type,
1495
+ value: value
1496
+ }, propsWithDescription), void 0)]
1497
+ }), void 0);
1498
+ };
1499
+
1500
+ var TextInput = function TextInput(_a) {
1501
+ var label = _a.label,
1502
+ info = _a.info,
1503
+ onChangeText = _a.onChangeText,
1504
+ props = __rest(_a, ["label", "info", "onChangeText"]);
1505
+
1506
+ return RenderInput('text', props, function (e) {
1507
+ return e.value;
1508
+ }, label, info, onChangeText);
1509
+ };
1510
+ var EmailInput = function EmailInput(_a) {
1511
+ var label = _a.label,
1512
+ info = _a.info,
1513
+ onChangeText = _a.onChangeText,
1514
+ props = __rest(_a, ["label", "info", "onChangeText"]);
1515
+
1516
+ return RenderInput('email', props, function (e) {
1517
+ return e.value;
1518
+ }, label, info, onChangeText);
1519
+ };
1520
+ var NumberInput = function NumberInput(_a) {
1521
+ var label = _a.label,
1522
+ info = _a.info,
1523
+ onChangeText = _a.onChangeText,
1524
+ props = __rest(_a, ["label", "info", "onChangeText"]);
1525
+
1526
+ return RenderInput('number', props, function (e) {
1527
+ return e.value.length ? parseInt(e.value, 10) : undefined;
1528
+ }, label, info, onChangeText);
1529
+ };
1530
+ var Checkbox = function Checkbox(_a) {
1531
+ var label = _a.label,
1532
+ onChecked = _a.onChecked,
1533
+ props = __rest(_a, ["label", "onChecked"]);
1534
+
1535
+ var inputProps = useInput(props, function (e) {
1536
+ return e.checked;
1537
+ }, onChecked);
1538
+ return jsxRuntime.jsxs("label", __assign({
1539
+ htmlFor: inputProps.id,
1540
+ className: "form-control"
1541
+ }, {
1542
+ children: [label, jsxRuntime.jsx("input", __assign({
1543
+ type: "checkbox"
1544
+ }, inputProps), void 0), jsxRuntime.jsx("span", {}, void 0), jsxRuntime.jsx("i", {}, void 0)]
1545
+ }), void 0);
1546
+ };
1547
+ var RadioButton = function RadioButton(_a) {
1548
+ var label = _a.label,
1549
+ onChangeRadioBtn = _a.onChangeRadioBtn,
1550
+ validator = _a.validator,
1551
+ props = __rest(_a, ["label", "onChangeRadioBtn", "validator"]);
1552
+
1553
+ var inputProps = useInput(props, function (e) {
1554
+ return {
1555
+ value: e.value,
1556
+ checked: e.checked
1557
+ };
1558
+ }, onChangeRadioBtn);
1559
+ return jsxRuntime.jsxs("label", __assign({
1560
+ htmlFor: inputProps.id,
1561
+ className: "form-control"
1562
+ }, {
1563
+ children: [jsxRuntime.jsx("input", __assign({
1564
+ type: "radio",
1565
+ name: "default"
1566
+ }, inputProps, {
1567
+ className: validator
1568
+ }), void 0), jsxRuntime.jsx("span", {
1569
+ children: label
1570
+ }, void 0), jsxRuntime.jsx("i", {}, void 0)]
1571
+ }), void 0);
1572
+ };
1573
+
1574
+ var Text = function Text(_a) {
1575
+ var children = _a.children;
1576
+ return jsxRuntime.jsx("span", __assign({
1577
+ className: "form-text"
1578
+ }, {
1579
+ children: children
1580
+ }), void 0);
1581
+ };
1582
+
1583
+ var $$1 = _export;
1584
+ var DESCRIPTORS$1 = descriptors;
1585
+ var global$e = global$C;
1586
+ var uncurryThis$4 = functionUncurryThis;
1587
+ var hasOwn$2 = hasOwnProperty_1;
1588
+ var isCallable$4 = isCallable$f;
1589
+ var isPrototypeOf$2 = objectIsPrototypeOf;
1590
+ var toString = toString$3;
1591
+ var defineProperty$1 = objectDefineProperty.f;
1592
+ var copyConstructorProperties = copyConstructorProperties$2;
1593
+
1594
+ var NativeSymbol = global$e.Symbol;
1595
+ var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
1596
+
1597
+ if (DESCRIPTORS$1 && isCallable$4(NativeSymbol) && (!('description' in SymbolPrototype) ||
1598
+ // Safari 12 bug
1599
+ NativeSymbol().description !== undefined
1600
+ )) {
1601
+ var EmptyStringDescriptionStore = {};
1602
+ // wrap Symbol constructor for correct work with undefined description
1603
+ var SymbolWrapper = function Symbol() {
1604
+ var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString(arguments[0]);
1605
+ var result = isPrototypeOf$2(SymbolPrototype, this)
1606
+ ? new NativeSymbol(description)
1607
+ // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
1608
+ : description === undefined ? NativeSymbol() : NativeSymbol(description);
1609
+ if (description === '') EmptyStringDescriptionStore[result] = true;
1610
+ return result;
1611
+ };
1612
+
1613
+ copyConstructorProperties(SymbolWrapper, NativeSymbol);
1614
+ SymbolWrapper.prototype = SymbolPrototype;
1615
+ SymbolPrototype.constructor = SymbolWrapper;
1616
+
1617
+ var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)';
1618
+ var symbolToString = uncurryThis$4(SymbolPrototype.toString);
1619
+ var symbolValueOf = uncurryThis$4(SymbolPrototype.valueOf);
1620
+ var regexp = /^Symbol\((.*)\)[^)]+$/;
1621
+ var replace = uncurryThis$4(''.replace);
1622
+ var stringSlice = uncurryThis$4(''.slice);
1623
+
1624
+ defineProperty$1(SymbolPrototype, 'description', {
1625
+ configurable: true,
1626
+ get: function description() {
1627
+ var symbol = symbolValueOf(this);
1628
+ var string = symbolToString(symbol);
1629
+ if (hasOwn$2(EmptyStringDescriptionStore, symbol)) return '';
1630
+ var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, '$1');
1631
+ return desc === '' ? undefined : desc;
1632
+ }
1633
+ });
1634
+
1635
+ $$1({ global: true, forced: true }, {
1636
+ Symbol: SymbolWrapper
1637
+ });
1638
+ }
1639
+
1640
+ var global$d = global$C;
1641
+
1642
+ var nativePromiseConstructor = global$d.Promise;
1643
+
1644
+ var redefine$1 = redefine$3.exports;
1645
+
1646
+ var redefineAll$1 = function (target, src, options) {
1647
+ for (var key in src) redefine$1(target, key, src[key], options);
1648
+ return target;
1649
+ };
1650
+
1651
+ var global$c = global$C;
1652
+ var isCallable$3 = isCallable$f;
1653
+
1654
+ var String$2 = global$c.String;
1655
+ var TypeError$7 = global$c.TypeError;
1656
+
1657
+ var aPossiblePrototype$1 = function (argument) {
1658
+ if (typeof argument == 'object' || isCallable$3(argument)) return argument;
1659
+ throw TypeError$7("Can't set " + String$2(argument) + ' as a prototype');
1660
+ };
1661
+
1662
+ /* eslint-disable no-proto -- safe */
1663
+
1664
+ var uncurryThis$3 = functionUncurryThis;
1665
+ var anObject$5 = anObject$8;
1666
+ var aPossiblePrototype = aPossiblePrototype$1;
1667
+
1668
+ // `Object.setPrototypeOf` method
1669
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
1670
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1671
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1672
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1673
+ var CORRECT_SETTER = false;
1674
+ var test = {};
1675
+ var setter;
1676
+ try {
1677
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1678
+ setter = uncurryThis$3(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1679
+ setter(test, []);
1680
+ CORRECT_SETTER = test instanceof Array;
1681
+ } catch (error) { /* empty */ }
1682
+ return function setPrototypeOf(O, proto) {
1683
+ anObject$5(O);
1684
+ aPossiblePrototype(proto);
1685
+ if (CORRECT_SETTER) setter(O, proto);
1686
+ else O.__proto__ = proto;
1687
+ return O;
1688
+ };
1689
+ }() : undefined);
1690
+
1691
+ var defineProperty = objectDefineProperty.f;
1692
+ var hasOwn$1 = hasOwnProperty_1;
1693
+ var wellKnownSymbol$6 = wellKnownSymbol$a;
1694
+
1695
+ var TO_STRING_TAG = wellKnownSymbol$6('toStringTag');
1696
+
1697
+ var setToStringTag$1 = function (target, TAG, STATIC) {
1698
+ if (target && !STATIC) target = target.prototype;
1699
+ if (target && !hasOwn$1(target, TO_STRING_TAG)) {
1700
+ defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });
1701
+ }
1702
+ };
1703
+
1704
+ var getBuiltIn$3 = getBuiltIn$7;
1705
+ var definePropertyModule = objectDefineProperty;
1706
+ var wellKnownSymbol$5 = wellKnownSymbol$a;
1707
+ var DESCRIPTORS = descriptors;
1708
+
1709
+ var SPECIES$2 = wellKnownSymbol$5('species');
1710
+
1711
+ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1712
+ var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
1713
+ var defineProperty = definePropertyModule.f;
1714
+
1715
+ if (DESCRIPTORS && Constructor && !Constructor[SPECIES$2]) {
1716
+ defineProperty(Constructor, SPECIES$2, {
1717
+ configurable: true,
1718
+ get: function () { return this; }
1719
+ });
1720
+ }
1721
+ };
1722
+
1723
+ var global$b = global$C;
1724
+ var isPrototypeOf$1 = objectIsPrototypeOf;
1725
+
1726
+ var TypeError$6 = global$b.TypeError;
1727
+
1728
+ var anInstance$1 = function (it, Prototype) {
1729
+ if (isPrototypeOf$1(Prototype, it)) return it;
1730
+ throw TypeError$6('Incorrect invocation');
1731
+ };
1732
+
1733
+ var uncurryThis$2 = functionUncurryThis;
1734
+ var aCallable$3 = aCallable$5;
1735
+ var NATIVE_BIND$1 = functionBindNative;
1736
+
1737
+ var bind$4 = uncurryThis$2(uncurryThis$2.bind);
1738
+
1739
+ // optional / simple context binding
1740
+ var functionBindContext = function (fn, that) {
1741
+ aCallable$3(fn);
1742
+ return that === undefined ? fn : NATIVE_BIND$1 ? bind$4(fn, that) : function (/* ...args */) {
1743
+ return fn.apply(that, arguments);
1744
+ };
1745
+ };
1746
+
1747
+ var iterators = {};
1748
+
1749
+ var wellKnownSymbol$4 = wellKnownSymbol$a;
1750
+ var Iterators$1 = iterators;
1751
+
1752
+ var ITERATOR$2 = wellKnownSymbol$4('iterator');
1753
+ var ArrayPrototype = Array.prototype;
1754
+
1755
+ // check on default Array iterator
1756
+ var isArrayIteratorMethod$1 = function (it) {
1757
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
1758
+ };
1759
+
1760
+ var classof$2 = classof$4;
1761
+ var getMethod$1 = getMethod$3;
1762
+ var Iterators = iterators;
1763
+ var wellKnownSymbol$3 = wellKnownSymbol$a;
1764
+
1765
+ var ITERATOR$1 = wellKnownSymbol$3('iterator');
1766
+
1767
+ var getIteratorMethod$2 = function (it) {
1768
+ if (it != undefined) return getMethod$1(it, ITERATOR$1)
1769
+ || getMethod$1(it, '@@iterator')
1770
+ || Iterators[classof$2(it)];
1771
+ };
1772
+
1773
+ var global$a = global$C;
1774
+ var call$4 = functionCall;
1775
+ var aCallable$2 = aCallable$5;
1776
+ var anObject$4 = anObject$8;
1777
+ var tryToString$2 = tryToString$4;
1778
+ var getIteratorMethod$1 = getIteratorMethod$2;
1779
+
1780
+ var TypeError$5 = global$a.TypeError;
1781
+
1782
+ var getIterator$1 = function (argument, usingIterator) {
1783
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1784
+ if (aCallable$2(iteratorMethod)) return anObject$4(call$4(iteratorMethod, argument));
1785
+ throw TypeError$5(tryToString$2(argument) + ' is not iterable');
1786
+ };
1787
+
1788
+ var call$3 = functionCall;
1789
+ var anObject$3 = anObject$8;
1790
+ var getMethod = getMethod$3;
1791
+
1792
+ var iteratorClose$1 = function (iterator, kind, value) {
1793
+ var innerResult, innerError;
1794
+ anObject$3(iterator);
1795
+ try {
1796
+ innerResult = getMethod(iterator, 'return');
1797
+ if (!innerResult) {
1798
+ if (kind === 'throw') throw value;
1799
+ return value;
1800
+ }
1801
+ innerResult = call$3(innerResult, iterator);
1802
+ } catch (error) {
1803
+ innerError = true;
1804
+ innerResult = error;
1805
+ }
1806
+ if (kind === 'throw') throw value;
1807
+ if (innerError) throw innerResult;
1808
+ anObject$3(innerResult);
1809
+ return value;
1810
+ };
1811
+
1812
+ var global$9 = global$C;
1813
+ var bind$3 = functionBindContext;
1814
+ var call$2 = functionCall;
1815
+ var anObject$2 = anObject$8;
1816
+ var tryToString$1 = tryToString$4;
1817
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
1818
+ var lengthOfArrayLike = lengthOfArrayLike$2;
1819
+ var isPrototypeOf = objectIsPrototypeOf;
1820
+ var getIterator = getIterator$1;
1821
+ var getIteratorMethod = getIteratorMethod$2;
1822
+ var iteratorClose = iteratorClose$1;
1823
+
1824
+ var TypeError$4 = global$9.TypeError;
1825
+
1826
+ var Result = function (stopped, result) {
1827
+ this.stopped = stopped;
1828
+ this.result = result;
1829
+ };
1830
+
1831
+ var ResultPrototype = Result.prototype;
1832
+
1833
+ var iterate$1 = function (iterable, unboundFunction, options) {
1834
+ var that = options && options.that;
1835
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1836
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1837
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
1838
+ var fn = bind$3(unboundFunction, that);
1839
+ var iterator, iterFn, index, length, result, next, step;
1840
+
1841
+ var stop = function (condition) {
1842
+ if (iterator) iteratorClose(iterator, 'normal', condition);
1843
+ return new Result(true, condition);
1844
+ };
1845
+
1846
+ var callFn = function (value) {
1847
+ if (AS_ENTRIES) {
1848
+ anObject$2(value);
1849
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1850
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
1851
+ };
1852
+
1853
+ if (IS_ITERATOR) {
1854
+ iterator = iterable;
1855
+ } else {
1856
+ iterFn = getIteratorMethod(iterable);
1857
+ if (!iterFn) throw TypeError$4(tryToString$1(iterable) + ' is not iterable');
1858
+ // optimisation for array iterators
1859
+ if (isArrayIteratorMethod(iterFn)) {
1860
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
1861
+ result = callFn(iterable[index]);
1862
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
1863
+ } return new Result(false);
1864
+ }
1865
+ iterator = getIterator(iterable, iterFn);
1866
+ }
1867
+
1868
+ next = iterator.next;
1869
+ while (!(step = call$2(next, iterator)).done) {
1870
+ try {
1871
+ result = callFn(step.value);
1872
+ } catch (error) {
1873
+ iteratorClose(iterator, 'throw', error);
1874
+ }
1875
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
1876
+ } return new Result(false);
1877
+ };
1878
+
1879
+ var wellKnownSymbol$2 = wellKnownSymbol$a;
1880
+
1881
+ var ITERATOR = wellKnownSymbol$2('iterator');
1882
+ var SAFE_CLOSING = false;
1883
+
1884
+ try {
1885
+ var called = 0;
1886
+ var iteratorWithReturn = {
1887
+ next: function () {
1888
+ return { done: !!called++ };
1889
+ },
1890
+ 'return': function () {
1891
+ SAFE_CLOSING = true;
1892
+ }
1893
+ };
1894
+ iteratorWithReturn[ITERATOR] = function () {
1895
+ return this;
1896
+ };
1897
+ // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
1898
+ Array.from(iteratorWithReturn, function () { throw 2; });
1899
+ } catch (error) { /* empty */ }
1900
+
1901
+ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
1902
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
1903
+ var ITERATION_SUPPORT = false;
1904
+ try {
1905
+ var object = {};
1906
+ object[ITERATOR] = function () {
1907
+ return {
1908
+ next: function () {
1909
+ return { done: ITERATION_SUPPORT = true };
1910
+ }
1911
+ };
1912
+ };
1913
+ exec(object);
1914
+ } catch (error) { /* empty */ }
1915
+ return ITERATION_SUPPORT;
1916
+ };
1917
+
1918
+ var uncurryThis$1 = functionUncurryThis;
1919
+ var fails$1 = fails$a;
1920
+ var isCallable$2 = isCallable$f;
1921
+ var classof$1 = classof$4;
1922
+ var getBuiltIn$2 = getBuiltIn$7;
1923
+ var inspectSource$1 = inspectSource$4;
1924
+
1925
+ var noop = function () { /* empty */ };
1926
+ var empty = [];
1927
+ var construct = getBuiltIn$2('Reflect', 'construct');
1928
+ var constructorRegExp = /^\s*(?:class|function)\b/;
1929
+ var exec = uncurryThis$1(constructorRegExp.exec);
1930
+ var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1931
+
1932
+ var isConstructorModern = function isConstructor(argument) {
1933
+ if (!isCallable$2(argument)) return false;
1934
+ try {
1935
+ construct(noop, empty, argument);
1936
+ return true;
1937
+ } catch (error) {
1938
+ return false;
1939
+ }
1940
+ };
1941
+
1942
+ var isConstructorLegacy = function isConstructor(argument) {
1943
+ if (!isCallable$2(argument)) return false;
1944
+ switch (classof$1(argument)) {
1945
+ case 'AsyncFunction':
1946
+ case 'GeneratorFunction':
1947
+ case 'AsyncGeneratorFunction': return false;
1948
+ }
1949
+ try {
1950
+ // we can't check .prototype since constructors produced by .bind haven't it
1951
+ // `Function#toString` throws on some built-it function in some legacy engines
1952
+ // (for example, `DOMQuad` and similar in FF41-)
1953
+ return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
1954
+ } catch (error) {
1955
+ return true;
1956
+ }
1957
+ };
1958
+
1959
+ isConstructorLegacy.sham = true;
1960
+
1961
+ // `IsConstructor` abstract operation
1962
+ // https://tc39.es/ecma262/#sec-isconstructor
1963
+ var isConstructor$1 = !construct || fails$1(function () {
1964
+ var called;
1965
+ return isConstructorModern(isConstructorModern.call)
1966
+ || !isConstructorModern(Object)
1967
+ || !isConstructorModern(function () { called = true; })
1968
+ || called;
1969
+ }) ? isConstructorLegacy : isConstructorModern;
1970
+
1971
+ var global$8 = global$C;
1972
+ var isConstructor = isConstructor$1;
1973
+ var tryToString = tryToString$4;
1974
+
1975
+ var TypeError$3 = global$8.TypeError;
1976
+
1977
+ // `Assert: IsConstructor(argument) is true`
1978
+ var aConstructor$1 = function (argument) {
1979
+ if (isConstructor(argument)) return argument;
1980
+ throw TypeError$3(tryToString(argument) + ' is not a constructor');
1981
+ };
1982
+
1983
+ var anObject$1 = anObject$8;
1984
+ var aConstructor = aConstructor$1;
1985
+ var wellKnownSymbol$1 = wellKnownSymbol$a;
1986
+
1987
+ var SPECIES$1 = wellKnownSymbol$1('species');
1988
+
1989
+ // `SpeciesConstructor` abstract operation
1990
+ // https://tc39.es/ecma262/#sec-speciesconstructor
1991
+ var speciesConstructor$1 = function (O, defaultConstructor) {
1992
+ var C = anObject$1(O).constructor;
1993
+ var S;
1994
+ return C === undefined || (S = anObject$1(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
1995
+ };
1996
+
1997
+ var NATIVE_BIND = functionBindNative;
1998
+
1999
+ var FunctionPrototype = Function.prototype;
2000
+ var apply$1 = FunctionPrototype.apply;
2001
+ var call$1 = FunctionPrototype.call;
2002
+
2003
+ // eslint-disable-next-line es/no-reflect -- safe
2004
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$1.bind(apply$1) : function () {
2005
+ return call$1.apply(apply$1, arguments);
2006
+ });
2007
+
2008
+ var getBuiltIn$1 = getBuiltIn$7;
2009
+
2010
+ var html$1 = getBuiltIn$1('document', 'documentElement');
2011
+
2012
+ var uncurryThis = functionUncurryThis;
2013
+
2014
+ var arraySlice$1 = uncurryThis([].slice);
2015
+
2016
+ var global$7 = global$C;
2017
+
2018
+ var TypeError$2 = global$7.TypeError;
2019
+
2020
+ var validateArgumentsLength$1 = function (passed, required) {
2021
+ if (passed < required) throw TypeError$2('Not enough arguments');
2022
+ return passed;
2023
+ };
2024
+
2025
+ var userAgent$2 = engineUserAgent;
2026
+
2027
+ var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
2028
+
2029
+ var classof = classofRaw$1;
2030
+ var global$6 = global$C;
2031
+
2032
+ var engineIsNode = classof(global$6.process) == 'process';
2033
+
2034
+ var global$5 = global$C;
2035
+ var apply = functionApply;
2036
+ var bind$2 = functionBindContext;
2037
+ var isCallable$1 = isCallable$f;
2038
+ var hasOwn = hasOwnProperty_1;
2039
+ var fails = fails$a;
2040
+ var html = html$1;
2041
+ var arraySlice = arraySlice$1;
2042
+ var createElement = documentCreateElement;
2043
+ var validateArgumentsLength = validateArgumentsLength$1;
2044
+ var IS_IOS$1 = engineIsIos;
2045
+ var IS_NODE$2 = engineIsNode;
2046
+
2047
+ var set = global$5.setImmediate;
2048
+ var clear = global$5.clearImmediate;
2049
+ var process$2 = global$5.process;
2050
+ var Dispatch = global$5.Dispatch;
2051
+ var Function$1 = global$5.Function;
2052
+ var MessageChannel = global$5.MessageChannel;
2053
+ var String$1 = global$5.String;
2054
+ var counter = 0;
2055
+ var queue$1 = {};
2056
+ var ONREADYSTATECHANGE = 'onreadystatechange';
2057
+ var location, defer, channel, port;
2058
+
2059
+ try {
2060
+ // Deno throws a ReferenceError on `location` access without `--location` flag
2061
+ location = global$5.location;
2062
+ } catch (error) { /* empty */ }
2063
+
2064
+ var run = function (id) {
2065
+ if (hasOwn(queue$1, id)) {
2066
+ var fn = queue$1[id];
2067
+ delete queue$1[id];
2068
+ fn();
2069
+ }
2070
+ };
2071
+
2072
+ var runner = function (id) {
2073
+ return function () {
2074
+ run(id);
2075
+ };
2076
+ };
2077
+
2078
+ var listener = function (event) {
2079
+ run(event.data);
2080
+ };
2081
+
2082
+ var post = function (id) {
2083
+ // old engines have not location.origin
2084
+ global$5.postMessage(String$1(id), location.protocol + '//' + location.host);
2085
+ };
2086
+
2087
+ // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
2088
+ if (!set || !clear) {
2089
+ set = function setImmediate(handler) {
2090
+ validateArgumentsLength(arguments.length, 1);
2091
+ var fn = isCallable$1(handler) ? handler : Function$1(handler);
2092
+ var args = arraySlice(arguments, 1);
2093
+ queue$1[++counter] = function () {
2094
+ apply(fn, undefined, args);
2095
+ };
2096
+ defer(counter);
2097
+ return counter;
2098
+ };
2099
+ clear = function clearImmediate(id) {
2100
+ delete queue$1[id];
2101
+ };
2102
+ // Node.js 0.8-
2103
+ if (IS_NODE$2) {
2104
+ defer = function (id) {
2105
+ process$2.nextTick(runner(id));
2106
+ };
2107
+ // Sphere (JS game engine) Dispatch API
2108
+ } else if (Dispatch && Dispatch.now) {
2109
+ defer = function (id) {
2110
+ Dispatch.now(runner(id));
2111
+ };
2112
+ // Browsers with MessageChannel, includes WebWorkers
2113
+ // except iOS - https://github.com/zloirock/core-js/issues/624
2114
+ } else if (MessageChannel && !IS_IOS$1) {
2115
+ channel = new MessageChannel();
2116
+ port = channel.port2;
2117
+ channel.port1.onmessage = listener;
2118
+ defer = bind$2(port.postMessage, port);
2119
+ // Browsers with postMessage, skip WebWorkers
2120
+ // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2121
+ } else if (
2122
+ global$5.addEventListener &&
2123
+ isCallable$1(global$5.postMessage) &&
2124
+ !global$5.importScripts &&
2125
+ location && location.protocol !== 'file:' &&
2126
+ !fails(post)
2127
+ ) {
2128
+ defer = post;
2129
+ global$5.addEventListener('message', listener, false);
2130
+ // IE8-
2131
+ } else if (ONREADYSTATECHANGE in createElement('script')) {
2132
+ defer = function (id) {
2133
+ html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
2134
+ html.removeChild(this);
2135
+ run(id);
2136
+ };
2137
+ };
2138
+ // Rest old browsers
2139
+ } else {
2140
+ defer = function (id) {
2141
+ setTimeout(runner(id), 0);
2142
+ };
2143
+ }
2144
+ }
2145
+
2146
+ var task$1 = {
2147
+ set: set,
2148
+ clear: clear
2149
+ };
2150
+
2151
+ var userAgent$1 = engineUserAgent;
2152
+ var global$4 = global$C;
2153
+
2154
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$4.Pebble !== undefined;
2155
+
2156
+ var userAgent = engineUserAgent;
2157
+
2158
+ var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
2159
+
2160
+ var global$3 = global$C;
2161
+ var bind$1 = functionBindContext;
2162
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
2163
+ var macrotask = task$1.set;
2164
+ var IS_IOS = engineIsIos;
2165
+ var IS_IOS_PEBBLE = engineIsIosPebble;
2166
+ var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
2167
+ var IS_NODE$1 = engineIsNode;
2168
+
2169
+ var MutationObserver = global$3.MutationObserver || global$3.WebKitMutationObserver;
2170
+ var document$1 = global$3.document;
2171
+ var process$1 = global$3.process;
2172
+ var Promise$1 = global$3.Promise;
2173
+ // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
2174
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$3, 'queueMicrotask');
2175
+ var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
2176
+
2177
+ var flush, head, last, notify$1, toggle, node, promise, then;
2178
+
2179
+ // modern engines have queueMicrotask method
2180
+ if (!queueMicrotask) {
2181
+ flush = function () {
2182
+ var parent, fn;
2183
+ if (IS_NODE$1 && (parent = process$1.domain)) parent.exit();
2184
+ while (head) {
2185
+ fn = head.fn;
2186
+ head = head.next;
2187
+ try {
2188
+ fn();
2189
+ } catch (error) {
2190
+ if (head) notify$1();
2191
+ else last = undefined;
2192
+ throw error;
2193
+ }
2194
+ } last = undefined;
2195
+ if (parent) parent.enter();
2196
+ };
2197
+
2198
+ // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
2199
+ // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
2200
+ if (!IS_IOS && !IS_NODE$1 && !IS_WEBOS_WEBKIT && MutationObserver && document$1) {
2201
+ toggle = true;
2202
+ node = document$1.createTextNode('');
2203
+ new MutationObserver(flush).observe(node, { characterData: true });
2204
+ notify$1 = function () {
2205
+ node.data = toggle = !toggle;
2206
+ };
2207
+ // environments with maybe non-completely correct, but existent Promise
2208
+ } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
2209
+ // Promise.resolve without an argument throws an error in LG WebOS 2
2210
+ promise = Promise$1.resolve(undefined);
2211
+ // workaround of WebKit ~ iOS Safari 10.1 bug
2212
+ promise.constructor = Promise$1;
2213
+ then = bind$1(promise.then, promise);
2214
+ notify$1 = function () {
2215
+ then(flush);
2216
+ };
2217
+ // Node.js without promises
2218
+ } else if (IS_NODE$1) {
2219
+ notify$1 = function () {
2220
+ process$1.nextTick(flush);
2221
+ };
2222
+ // for other environments - macrotask based on:
2223
+ // - setImmediate
2224
+ // - MessageChannel
2225
+ // - window.postMessag
2226
+ // - onreadystatechange
2227
+ // - setTimeout
2228
+ } else {
2229
+ // strange IE + webpack dev server bug - use .bind(global)
2230
+ macrotask = bind$1(macrotask, global$3);
2231
+ notify$1 = function () {
2232
+ macrotask(flush);
2233
+ };
2234
+ }
2235
+ }
2236
+
2237
+ var microtask$1 = queueMicrotask || function (fn) {
2238
+ var task = { fn: fn, next: undefined };
2239
+ if (last) last.next = task;
2240
+ if (!head) {
2241
+ head = task;
2242
+ notify$1();
2243
+ } last = task;
2244
+ };
2245
+
2246
+ var newPromiseCapability$2 = {};
2247
+
2248
+ var aCallable$1 = aCallable$5;
2249
+
2250
+ var PromiseCapability = function (C) {
2251
+ var resolve, reject;
2252
+ this.promise = new C(function ($$resolve, $$reject) {
2253
+ if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
2254
+ resolve = $$resolve;
2255
+ reject = $$reject;
2256
+ });
2257
+ this.resolve = aCallable$1(resolve);
2258
+ this.reject = aCallable$1(reject);
2259
+ };
2260
+
2261
+ // `NewPromiseCapability` abstract operation
2262
+ // https://tc39.es/ecma262/#sec-newpromisecapability
2263
+ newPromiseCapability$2.f = function (C) {
2264
+ return new PromiseCapability(C);
2265
+ };
2266
+
2267
+ var anObject = anObject$8;
2268
+ var isObject$1 = isObject$7;
2269
+ var newPromiseCapability$1 = newPromiseCapability$2;
2270
+
2271
+ var promiseResolve$1 = function (C, x) {
2272
+ anObject(C);
2273
+ if (isObject$1(x) && x.constructor === C) return x;
2274
+ var promiseCapability = newPromiseCapability$1.f(C);
2275
+ var resolve = promiseCapability.resolve;
2276
+ resolve(x);
2277
+ return promiseCapability.promise;
2278
+ };
2279
+
2280
+ var global$2 = global$C;
2281
+
2282
+ var hostReportErrors$1 = function (a, b) {
2283
+ var console = global$2.console;
2284
+ if (console && console.error) {
2285
+ arguments.length == 1 ? console.error(a) : console.error(a, b);
2286
+ }
2287
+ };
2288
+
2289
+ var perform$1 = function (exec) {
2290
+ try {
2291
+ return { error: false, value: exec() };
2292
+ } catch (error) {
2293
+ return { error: true, value: error };
2294
+ }
2295
+ };
2296
+
2297
+ var Queue$1 = function () {
2298
+ this.head = null;
2299
+ this.tail = null;
2300
+ };
2301
+
2302
+ Queue$1.prototype = {
2303
+ add: function (item) {
2304
+ var entry = { item: item, next: null };
2305
+ if (this.head) this.tail.next = entry;
2306
+ else this.head = entry;
2307
+ this.tail = entry;
2308
+ },
2309
+ get: function () {
2310
+ var entry = this.head;
2311
+ if (entry) {
2312
+ this.head = entry.next;
2313
+ if (this.tail === entry) this.tail = null;
2314
+ return entry.item;
2315
+ }
2316
+ }
2317
+ };
2318
+
2319
+ var queue = Queue$1;
2320
+
2321
+ var engineIsBrowser = typeof window == 'object';
2322
+
2323
+ var $ = _export;
2324
+ var global$1 = global$C;
2325
+ var getBuiltIn = getBuiltIn$7;
2326
+ var call = functionCall;
2327
+ var NativePromise = nativePromiseConstructor;
2328
+ var redefine = redefine$3.exports;
2329
+ var redefineAll = redefineAll$1;
2330
+ var setPrototypeOf = objectSetPrototypeOf;
2331
+ var setToStringTag = setToStringTag$1;
2332
+ var setSpecies = setSpecies$1;
2333
+ var aCallable = aCallable$5;
2334
+ var isCallable = isCallable$f;
2335
+ var isObject = isObject$7;
2336
+ var anInstance = anInstance$1;
2337
+ var inspectSource = inspectSource$4;
2338
+ var iterate = iterate$1;
2339
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
2340
+ var speciesConstructor = speciesConstructor$1;
2341
+ var task = task$1.set;
2342
+ var microtask = microtask$1;
2343
+ var promiseResolve = promiseResolve$1;
2344
+ var hostReportErrors = hostReportErrors$1;
2345
+ var newPromiseCapabilityModule = newPromiseCapability$2;
2346
+ var perform = perform$1;
2347
+ var Queue = queue;
2348
+ var InternalStateModule = internalState;
2349
+ var isForced = isForced_1;
2350
+ var wellKnownSymbol = wellKnownSymbol$a;
2351
+ var IS_BROWSER = engineIsBrowser;
2352
+ var IS_NODE = engineIsNode;
2353
+ var V8_VERSION = engineV8Version;
2354
+
2355
+ var SPECIES = wellKnownSymbol('species');
2356
+ var PROMISE = 'Promise';
2357
+
2358
+ var getInternalState = InternalStateModule.getterFor(PROMISE);
2359
+ var setInternalState = InternalStateModule.set;
2360
+ var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
2361
+ var NativePromisePrototype = NativePromise && NativePromise.prototype;
2362
+ var PromiseConstructor = NativePromise;
2363
+ var PromisePrototype = NativePromisePrototype;
2364
+ var TypeError$1 = global$1.TypeError;
2365
+ var document = global$1.document;
2366
+ var process = global$1.process;
2367
+ var newPromiseCapability = newPromiseCapabilityModule.f;
2368
+ var newGenericPromiseCapability = newPromiseCapability;
2369
+
2370
+ var DISPATCH_EVENT = !!(document && document.createEvent && global$1.dispatchEvent);
2371
+ var NATIVE_REJECTION_EVENT = isCallable(global$1.PromiseRejectionEvent);
2372
+ var UNHANDLED_REJECTION = 'unhandledrejection';
2373
+ var REJECTION_HANDLED = 'rejectionhandled';
2374
+ var PENDING = 0;
2375
+ var FULFILLED = 1;
2376
+ var REJECTED = 2;
2377
+ var HANDLED = 1;
2378
+ var UNHANDLED = 2;
2379
+ var SUBCLASSING = false;
2380
+
2381
+ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
2382
+
2383
+ var FORCED = isForced(PROMISE, function () {
2384
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
2385
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
2386
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
2387
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
2388
+ // We can't detect it synchronously, so just check versions
2389
+ if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
2390
+ // We can't use @@species feature detection in V8 since it causes
2391
+ // deoptimization and performance degradation
2392
+ // https://github.com/zloirock/core-js/issues/679
2393
+ if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
2394
+ // Detect correctness of subclassing with @@species support
2395
+ var promise = new PromiseConstructor(function (resolve) { resolve(1); });
2396
+ var FakePromise = function (exec) {
2397
+ exec(function () { /* empty */ }, function () { /* empty */ });
2398
+ };
2399
+ var constructor = promise.constructor = {};
2400
+ constructor[SPECIES] = FakePromise;
2401
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
2402
+ if (!SUBCLASSING) return true;
2403
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
2404
+ return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
2405
+ });
2406
+
2407
+ var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
2408
+ PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
2409
+ });
2410
+
2411
+ // helpers
2412
+ var isThenable = function (it) {
2413
+ var then;
2414
+ return isObject(it) && isCallable(then = it.then) ? then : false;
2415
+ };
2416
+
2417
+ var callReaction = function (reaction, state) {
2418
+ var value = state.value;
2419
+ var ok = state.state == FULFILLED;
2420
+ var handler = ok ? reaction.ok : reaction.fail;
2421
+ var resolve = reaction.resolve;
2422
+ var reject = reaction.reject;
2423
+ var domain = reaction.domain;
2424
+ var result, then, exited;
2425
+ try {
2426
+ if (handler) {
2427
+ if (!ok) {
2428
+ if (state.rejection === UNHANDLED) onHandleUnhandled(state);
2429
+ state.rejection = HANDLED;
2430
+ }
2431
+ if (handler === true) result = value;
2432
+ else {
2433
+ if (domain) domain.enter();
2434
+ result = handler(value); // can throw
2435
+ if (domain) {
2436
+ domain.exit();
2437
+ exited = true;
2438
+ }
2439
+ }
2440
+ if (result === reaction.promise) {
2441
+ reject(TypeError$1('Promise-chain cycle'));
2442
+ } else if (then = isThenable(result)) {
2443
+ call(then, result, resolve, reject);
2444
+ } else resolve(result);
2445
+ } else reject(value);
2446
+ } catch (error) {
2447
+ if (domain && !exited) domain.exit();
2448
+ reject(error);
2449
+ }
2450
+ };
2451
+
2452
+ var notify = function (state, isReject) {
2453
+ if (state.notified) return;
2454
+ state.notified = true;
2455
+ microtask(function () {
2456
+ var reactions = state.reactions;
2457
+ var reaction;
2458
+ while (reaction = reactions.get()) {
2459
+ callReaction(reaction, state);
2460
+ }
2461
+ state.notified = false;
2462
+ if (isReject && !state.rejection) onUnhandled(state);
2463
+ });
2464
+ };
2465
+
2466
+ var dispatchEvent = function (name, promise, reason) {
2467
+ var event, handler;
2468
+ if (DISPATCH_EVENT) {
2469
+ event = document.createEvent('Event');
2470
+ event.promise = promise;
2471
+ event.reason = reason;
2472
+ event.initEvent(name, false, true);
2473
+ global$1.dispatchEvent(event);
2474
+ } else event = { promise: promise, reason: reason };
2475
+ if (!NATIVE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
2476
+ else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
2477
+ };
2478
+
2479
+ var onUnhandled = function (state) {
2480
+ call(task, global$1, function () {
2481
+ var promise = state.facade;
2482
+ var value = state.value;
2483
+ var IS_UNHANDLED = isUnhandled(state);
2484
+ var result;
2485
+ if (IS_UNHANDLED) {
2486
+ result = perform(function () {
2487
+ if (IS_NODE) {
2488
+ process.emit('unhandledRejection', value, promise);
2489
+ } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
2490
+ });
2491
+ // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
2492
+ state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
2493
+ if (result.error) throw result.value;
2494
+ }
2495
+ });
2496
+ };
2497
+
2498
+ var isUnhandled = function (state) {
2499
+ return state.rejection !== HANDLED && !state.parent;
2500
+ };
2501
+
2502
+ var onHandleUnhandled = function (state) {
2503
+ call(task, global$1, function () {
2504
+ var promise = state.facade;
2505
+ if (IS_NODE) {
2506
+ process.emit('rejectionHandled', promise);
2507
+ } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
2508
+ });
2509
+ };
2510
+
2511
+ var bind = function (fn, state, unwrap) {
2512
+ return function (value) {
2513
+ fn(state, value, unwrap);
2514
+ };
2515
+ };
2516
+
2517
+ var internalReject = function (state, value, unwrap) {
2518
+ if (state.done) return;
2519
+ state.done = true;
2520
+ if (unwrap) state = unwrap;
2521
+ state.value = value;
2522
+ state.state = REJECTED;
2523
+ notify(state, true);
2524
+ };
2525
+
2526
+ var internalResolve = function (state, value, unwrap) {
2527
+ if (state.done) return;
2528
+ state.done = true;
2529
+ if (unwrap) state = unwrap;
2530
+ try {
2531
+ if (state.facade === value) throw TypeError$1("Promise can't be resolved itself");
2532
+ var then = isThenable(value);
2533
+ if (then) {
2534
+ microtask(function () {
2535
+ var wrapper = { done: false };
2536
+ try {
2537
+ call(then, value,
2538
+ bind(internalResolve, wrapper, state),
2539
+ bind(internalReject, wrapper, state)
2540
+ );
2541
+ } catch (error) {
2542
+ internalReject(wrapper, error, state);
2543
+ }
2544
+ });
2545
+ } else {
2546
+ state.value = value;
2547
+ state.state = FULFILLED;
2548
+ notify(state, false);
2549
+ }
2550
+ } catch (error) {
2551
+ internalReject({ done: false }, error, state);
2552
+ }
2553
+ };
2554
+
2555
+ // constructor polyfill
2556
+ if (FORCED) {
2557
+ // 25.4.3.1 Promise(executor)
2558
+ PromiseConstructor = function Promise(executor) {
2559
+ anInstance(this, PromisePrototype);
2560
+ aCallable(executor);
2561
+ call(Internal, this);
2562
+ var state = getInternalState(this);
2563
+ try {
2564
+ executor(bind(internalResolve, state), bind(internalReject, state));
2565
+ } catch (error) {
2566
+ internalReject(state, error);
2567
+ }
2568
+ };
2569
+ PromisePrototype = PromiseConstructor.prototype;
2570
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
2571
+ Internal = function Promise(executor) {
2572
+ setInternalState(this, {
2573
+ type: PROMISE,
2574
+ done: false,
2575
+ notified: false,
2576
+ parent: false,
2577
+ reactions: new Queue(),
2578
+ rejection: false,
2579
+ state: PENDING,
2580
+ value: undefined
2581
+ });
2582
+ };
2583
+ Internal.prototype = redefineAll(PromisePrototype, {
2584
+ // `Promise.prototype.then` method
2585
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
2586
+ // eslint-disable-next-line unicorn/no-thenable -- safe
2587
+ then: function then(onFulfilled, onRejected) {
2588
+ var state = getInternalPromiseState(this);
2589
+ var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
2590
+ state.parent = true;
2591
+ reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
2592
+ reaction.fail = isCallable(onRejected) && onRejected;
2593
+ reaction.domain = IS_NODE ? process.domain : undefined;
2594
+ if (state.state == PENDING) state.reactions.add(reaction);
2595
+ else microtask(function () {
2596
+ callReaction(reaction, state);
2597
+ });
2598
+ return reaction.promise;
2599
+ },
2600
+ // `Promise.prototype.catch` method
2601
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
2602
+ 'catch': function (onRejected) {
2603
+ return this.then(undefined, onRejected);
2604
+ }
2605
+ });
2606
+ OwnPromiseCapability = function () {
2607
+ var promise = new Internal();
2608
+ var state = getInternalState(promise);
2609
+ this.promise = promise;
2610
+ this.resolve = bind(internalResolve, state);
2611
+ this.reject = bind(internalReject, state);
2612
+ };
2613
+ newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
2614
+ return C === PromiseConstructor || C === PromiseWrapper
2615
+ ? new OwnPromiseCapability(C)
2616
+ : newGenericPromiseCapability(C);
2617
+ };
2618
+
2619
+ if (isCallable(NativePromise) && NativePromisePrototype !== Object.prototype) {
2620
+ nativeThen = NativePromisePrototype.then;
2621
+
2622
+ if (!SUBCLASSING) {
2623
+ // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
2624
+ redefine(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
2625
+ var that = this;
2626
+ return new PromiseConstructor(function (resolve, reject) {
2627
+ call(nativeThen, that, resolve, reject);
2628
+ }).then(onFulfilled, onRejected);
2629
+ // https://github.com/zloirock/core-js/issues/640
2630
+ }, { unsafe: true });
2631
+
2632
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2633
+ redefine(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
2634
+ }
2635
+
2636
+ // make `.constructor === Promise` work for native promise-based APIs
2637
+ try {
2638
+ delete NativePromisePrototype.constructor;
2639
+ } catch (error) { /* empty */ }
2640
+
2641
+ // make `instanceof Promise` work for native promise-based APIs
2642
+ if (setPrototypeOf) {
2643
+ setPrototypeOf(NativePromisePrototype, PromisePrototype);
2644
+ }
2645
+ }
2646
+ }
2647
+
2648
+ $({ global: true, wrap: true, forced: FORCED }, {
2649
+ Promise: PromiseConstructor
2650
+ });
2651
+
2652
+ setToStringTag(PromiseConstructor, PROMISE, false);
2653
+ setSpecies(PROMISE);
2654
+
2655
+ PromiseWrapper = getBuiltIn(PROMISE);
2656
+
2657
+ // statics
2658
+ $({ target: PROMISE, stat: true, forced: FORCED }, {
2659
+ // `Promise.reject` method
2660
+ // https://tc39.es/ecma262/#sec-promise.reject
2661
+ reject: function reject(r) {
2662
+ var capability = newPromiseCapability(this);
2663
+ call(capability.reject, undefined, r);
2664
+ return capability.promise;
2665
+ }
2666
+ });
2667
+
2668
+ $({ target: PROMISE, stat: true, forced: FORCED }, {
2669
+ // `Promise.resolve` method
2670
+ // https://tc39.es/ecma262/#sec-promise.resolve
2671
+ resolve: function resolve(x) {
2672
+ return promiseResolve(this, x);
2673
+ }
2674
+ });
2675
+
2676
+ $({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
2677
+ // `Promise.all` method
2678
+ // https://tc39.es/ecma262/#sec-promise.all
2679
+ all: function all(iterable) {
2680
+ var C = this;
2681
+ var capability = newPromiseCapability(C);
2682
+ var resolve = capability.resolve;
2683
+ var reject = capability.reject;
2684
+ var result = perform(function () {
2685
+ var $promiseResolve = aCallable(C.resolve);
2686
+ var values = [];
2687
+ var counter = 0;
2688
+ var remaining = 1;
2689
+ iterate(iterable, function (promise) {
2690
+ var index = counter++;
2691
+ var alreadyCalled = false;
2692
+ remaining++;
2693
+ call($promiseResolve, C, promise).then(function (value) {
2694
+ if (alreadyCalled) return;
2695
+ alreadyCalled = true;
2696
+ values[index] = value;
2697
+ --remaining || resolve(values);
2698
+ }, reject);
2699
+ });
2700
+ --remaining || resolve(values);
2701
+ });
2702
+ if (result.error) reject(result.value);
2703
+ return capability.promise;
2704
+ },
2705
+ // `Promise.race` method
2706
+ // https://tc39.es/ecma262/#sec-promise.race
2707
+ race: function race(iterable) {
2708
+ var C = this;
2709
+ var capability = newPromiseCapability(C);
2710
+ var reject = capability.reject;
2711
+ var result = perform(function () {
2712
+ var $promiseResolve = aCallable(C.resolve);
2713
+ iterate(iterable, function (promise) {
2714
+ call($promiseResolve, C, promise).then(capability.resolve, reject);
2715
+ });
2716
+ });
2717
+ if (result.error) reject(result.value);
2718
+ return capability.promise;
2719
+ }
2720
+ });
2721
+
2722
+ var RadioGroup = function RadioGroup(_a) {
2723
+ var description = _a.description,
2724
+ title = _a.title,
2725
+ validator = _a.validator,
2726
+ children = _a.children;
2727
+ var validatorClassName = extract.validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator);
2728
+ return jsxRuntime.jsxs("div", __assign({
2729
+ className: "form-group"
2730
+ }, {
2731
+ children: [jsxRuntime.jsxs("fieldset", __assign({
2732
+ className: validatorClassName
2733
+ }, {
2734
+ children: [jsxRuntime.jsx("legend", {
2735
+ children: title
2736
+ }, void 0), jsxRuntime.jsx("span", __assign({
2737
+ className: "form-info"
2738
+ }, {
2739
+ children: description
2740
+ }), void 0), React__default["default"].Children.toArray(children).map(function (child) {
2741
+ return /*#__PURE__*/React__default["default"].isValidElement(child) ? /*#__PURE__*/React__default["default"].cloneElement(child, {
2742
+ validator: validatorClassName
2743
+ }) : child;
2744
+ })]
2745
+ }), void 0), (validator === null || validator === void 0 ? void 0 : validator.message) && jsxRuntime.jsx("span", __assign({
2746
+ className: "form-info"
2747
+ }, {
2748
+ children: validator === null || validator === void 0 ? void 0 : validator.message
2749
+ }), void 0)]
2750
+ }), void 0);
2751
+ };
2752
+
2753
+ var ListItem = function ListItem(_a) {
2754
+ var listType = _a.listType,
2755
+ tableRowData = _a.tableRowData,
2756
+ children = _a.children,
2757
+ props = __rest(_a, ["listType", "tableRowData", "children"]);
2758
+
2759
+ if (listType === 'table') {
2760
+ return jsxRuntime.jsx("dl", {
2761
+ children: jsxRuntime.jsxs("div", {
2762
+ children: [jsxRuntime.jsx("dt", {
2763
+ children: tableRowData === null || tableRowData === void 0 ? void 0 : tableRowData.title
2764
+ }, void 0), tableRowData === null || tableRowData === void 0 ? void 0 : tableRowData.definition.map(function (item, index) {
2765
+ return jsxRuntime.jsx("dd", {
2766
+ children: item
2767
+ }, index);
2768
+ })]
2769
+ }, void 0)
2770
+ }, void 0);
2771
+ } else {
2772
+ return jsxRuntime.jsx("li", __assign({}, props, {
2773
+ children: children
2774
+ }), void 0);
2775
+ }
2776
+ };
2777
+
2778
+ var List = function List(_a) {
2779
+ var listType = _a.listType,
2780
+ tableCaption = _a.tableCaption,
2781
+ tableData = _a.tableData,
2782
+ children = _a.children,
2783
+ props = __rest(_a, ["listType", "tableCaption", "tableData", "children"]);
2784
+
2785
+ if (listType === 'ordered') {
2786
+ return jsxRuntime.jsx("ol", __assign({}, props, {
2787
+ children: children === null || children === void 0 ? void 0 : children.map(function (child, index) {
2788
+ return jsxRuntime.jsx(ListItem, {
2789
+ children: child
2790
+ }, index);
2791
+ })
2792
+ }), void 0);
2793
+ } else if (listType !== 'table') {
2794
+ return jsxRuntime.jsx("ul", __assign({}, props, {
2795
+ className: listType
2796
+ }, {
2797
+ children: children === null || children === void 0 ? void 0 : children.map(function (child, index) {
2798
+ return jsxRuntime.jsx(ListItem, {
2799
+ children: child
2800
+ }, index);
2801
+ })
2802
+ }), void 0);
2803
+ } else {
2804
+ return jsxRuntime.jsxs("figure", {
2805
+ children: [jsxRuntime.jsx("figcaption", __assign({
2806
+ className: "table-list-caption"
2807
+ }, {
2808
+ children: tableCaption
2809
+ }), void 0), jsxRuntime.jsx("dl", {
2810
+ children: tableData === null || tableData === void 0 ? void 0 : tableData.map(function (data, index) {
2811
+ return jsxRuntime.jsx(ListItem, {
2812
+ listType: listType,
2813
+ tableRowData: data
2814
+ }, index);
2815
+ })
2816
+ }, void 0)]
2817
+ }, void 0);
2818
+ }
2819
+ };
2820
+
2821
+ var Link = function Link(_a) {
2822
+ var button = _a.button,
2823
+ children = _a.children,
2824
+ props = __rest(_a, ["button", "children"]);
2825
+
2826
+ var _b = React.useState({}),
2827
+ anchorProps = _b[0],
2828
+ setAnchorProps = _b[1];
2829
+
2830
+ React.useEffect(function () {
2831
+ var className = button ? typeof button === 'string' ? "button ".concat(button) : 'button' : undefined;
2832
+
2833
+ var newProps = __assign({
2834
+ role: button ? 'button' : undefined,
2835
+ className: className
2836
+ }, props);
2837
+
2838
+ setAnchorProps(newProps);
2839
+ }, [button]);
2840
+ return jsxRuntime.jsx("a", __assign({}, anchorProps, {
2841
+ children: children
2842
+ }), void 0);
2843
+ };
2844
+
2845
+ var Navbar = function Navbar(_a) {
2846
+ var children = _a.children,
2847
+ variant = _a.variant,
2848
+ title = _a.title,
2849
+ titleLink = _a.titleLink,
2850
+ _b = _a.brandLink,
2851
+ brandLink = _b === void 0 ? 'https://www.seb.se' : _b,
2852
+ _c = _a.brandAriaLabel,
2853
+ brandAriaLabel = _c === void 0 ? 'Open seb.se in new tab' : _c;
2854
+
2855
+ var _d = React.useState({}),
2856
+ props = _d[0],
2857
+ setProps = _d[1];
2858
+
2859
+ React.useEffect(function () {
2860
+ var classNames = [];
2861
+ if (variant) classNames.push(variant);
2862
+ setProps(__assign(__assign({}, props), {
2863
+ className: classNames.join(' ')
2864
+ })); // eslint-disable-next-line react-hooks/exhaustive-deps
2865
+ }, [variant]);
2866
+ return jsxRuntime.jsxs("nav", __assign({
2867
+ role: "navigation"
2868
+ }, props, {
2869
+ children: [jsxRuntime.jsx(Link, {
2870
+ "aria-label": brandAriaLabel,
2871
+ href: brandLink,
2872
+ target: "_blank",
2873
+ className: "brand"
2874
+ }, void 0), jsxRuntime.jsx("div", __assign({
2875
+ className: "container-fluid"
2876
+ }, {
2877
+ children: jsxRuntime.jsxs("div", __assign({
2878
+ className: "row justify-content-between align-items-center"
2879
+ }, {
2880
+ children: [jsxRuntime.jsx("div", __assign({
2881
+ className: "col-auto"
2882
+ }, {
2883
+ children: titleLink ? jsxRuntime.jsx(Link, __assign({
2884
+ className: "mx-4",
2885
+ href: titleLink
2886
+ }, {
2887
+ children: jsxRuntime.jsx("h1", {
2888
+ children: title
2889
+ }, void 0)
2890
+ }), void 0) : jsxRuntime.jsx("h1", {
2891
+ children: title
2892
+ }, void 0)
2893
+ }), void 0), jsxRuntime.jsx("div", __assign({
2894
+ className: "col-auto"
2895
+ }, {
2896
+ children: jsxRuntime.jsx("div", __assign({
2897
+ className: "group size-sm"
2898
+ }, {
2899
+ children: children
2900
+ }), void 0)
2901
+ }), void 0)]
2902
+ }), void 0)
2903
+ }), void 0)]
2904
+ }), void 0);
2905
+ };
2906
+
2907
+ exports.Alert = Alert;
2908
+ exports.Button = Button;
2909
+ exports.ButtonGroup = ButtonGroup;
2910
+ exports.Card = Card;
2911
+ exports.Checkbox = Checkbox;
2912
+ exports.EmailInput = EmailInput;
2913
+ exports.Flexbox = Flexbox;
2914
+ exports.Form = Form;
2915
+ exports.Group = Group;
2916
+ exports.Link = Link;
2917
+ exports.List = List;
2918
+ exports.Modal = Modal;
2919
+ exports.Navbar = Navbar;
2920
+ exports.NumberInput = NumberInput;
2921
+ exports.RadioButton = RadioButton;
2922
+ exports.RadioGroup = RadioGroup;
2923
+ exports.Text = Text;
2924
+ exports.TextInput = TextInput;
2925
+
2926
+ Object.defineProperty(exports, '__esModule', { value: true });
2927
+
2928
+ }));