@beeq/tailwindcss 1.8.5-beta.2 → 1.10.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -3,7 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var plugin = require('tailwindcss/plugin');
6
- var ThemeSwapper = require('tailwindcss-theme-swapper');
7
6
 
8
7
  const blendColor = ({
9
8
  color,
@@ -253,6 +252,2188 @@ const LogicalProperties = plugin(function ({
253
252
  });
254
253
  });
255
254
 
255
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
256
+
257
+ var check = function (it) {
258
+ return it && it.Math === Math && it;
259
+ };
260
+
261
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
262
+ var globalThis_1 =
263
+ // eslint-disable-next-line es/no-global-this -- safe
264
+ check(typeof globalThis == 'object' && globalThis) ||
265
+ check(typeof window == 'object' && window) ||
266
+ // eslint-disable-next-line no-restricted-globals -- safe
267
+ check(typeof self == 'object' && self) ||
268
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
269
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
270
+ // eslint-disable-next-line no-new-func -- fallback
271
+ (function () { return this; })() || Function('return this')();
272
+
273
+ var objectGetOwnPropertyDescriptor = {};
274
+
275
+ var fails$c = function (exec) {
276
+ try {
277
+ return !!exec();
278
+ } catch (error) {
279
+ return true;
280
+ }
281
+ };
282
+
283
+ var fails$b = fails$c;
284
+
285
+ // Detect IE8's incomplete defineProperty implementation
286
+ var descriptors = !fails$b(function () {
287
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
288
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
289
+ });
290
+
291
+ var fails$a = fails$c;
292
+
293
+ var functionBindNative = !fails$a(function () {
294
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
295
+ var test = (function () { /* empty */ }).bind();
296
+ // eslint-disable-next-line no-prototype-builtins -- safe
297
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
298
+ });
299
+
300
+ var NATIVE_BIND$2 = functionBindNative;
301
+
302
+ var call$b = Function.prototype.call;
303
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
304
+ var functionCall = NATIVE_BIND$2 ? call$b.bind(call$b) : function () {
305
+ return call$b.apply(call$b, arguments);
306
+ };
307
+
308
+ var objectPropertyIsEnumerable = {};
309
+
310
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
311
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
312
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
313
+
314
+ // Nashorn ~ JDK8 bug
315
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
316
+
317
+ // `Object.prototype.propertyIsEnumerable` method implementation
318
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
319
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
320
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
321
+ return !!descriptor && descriptor.enumerable;
322
+ } : $propertyIsEnumerable;
323
+
324
+ var createPropertyDescriptor$3 = function (bitmap, value) {
325
+ return {
326
+ enumerable: !(bitmap & 1),
327
+ configurable: !(bitmap & 2),
328
+ writable: !(bitmap & 4),
329
+ value: value
330
+ };
331
+ };
332
+
333
+ var NATIVE_BIND$1 = functionBindNative;
334
+
335
+ var FunctionPrototype$1 = Function.prototype;
336
+ var call$a = FunctionPrototype$1.call;
337
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
338
+ var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$a, call$a);
339
+
340
+ var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
341
+ return function () {
342
+ return call$a.apply(fn, arguments);
343
+ };
344
+ };
345
+
346
+ var uncurryThis$d = functionUncurryThis;
347
+
348
+ var toString$1 = uncurryThis$d({}.toString);
349
+ var stringSlice$1 = uncurryThis$d(''.slice);
350
+
351
+ var classofRaw$2 = function (it) {
352
+ return stringSlice$1(toString$1(it), 8, -1);
353
+ };
354
+
355
+ var uncurryThis$c = functionUncurryThis;
356
+ var fails$9 = fails$c;
357
+ var classof$2 = classofRaw$2;
358
+
359
+ var $Object$4 = Object;
360
+ var split = uncurryThis$c(''.split);
361
+
362
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
363
+ var indexedObject = fails$9(function () {
364
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
365
+ // eslint-disable-next-line no-prototype-builtins -- safe
366
+ return !$Object$4('z').propertyIsEnumerable(0);
367
+ }) ? function (it) {
368
+ return classof$2(it) === 'String' ? split(it, '') : $Object$4(it);
369
+ } : $Object$4;
370
+
371
+ // we can't use just `it == null` since of `document.all` special case
372
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
373
+ var isNullOrUndefined$3 = function (it) {
374
+ return it === null || it === undefined;
375
+ };
376
+
377
+ var isNullOrUndefined$2 = isNullOrUndefined$3;
378
+
379
+ var $TypeError$b = TypeError;
380
+
381
+ // `RequireObjectCoercible` abstract operation
382
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
383
+ var requireObjectCoercible$2 = function (it) {
384
+ if (isNullOrUndefined$2(it)) throw new $TypeError$b("Can't call method on " + it);
385
+ return it;
386
+ };
387
+
388
+ // toObject with fallback for non-array-like ES3 strings
389
+ var IndexedObject = indexedObject;
390
+ var requireObjectCoercible$1 = requireObjectCoercible$2;
391
+
392
+ var toIndexedObject$4 = function (it) {
393
+ return IndexedObject(requireObjectCoercible$1(it));
394
+ };
395
+
396
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
397
+ var documentAll = typeof document == 'object' && document.all;
398
+
399
+ // `IsCallable` abstract operation
400
+ // https://tc39.es/ecma262/#sec-iscallable
401
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
402
+ var isCallable$e = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
403
+ return typeof argument == 'function' || argument === documentAll;
404
+ } : function (argument) {
405
+ return typeof argument == 'function';
406
+ };
407
+
408
+ var isCallable$d = isCallable$e;
409
+
410
+ var isObject$6 = function (it) {
411
+ return typeof it == 'object' ? it !== null : isCallable$d(it);
412
+ };
413
+
414
+ var globalThis$c = globalThis_1;
415
+ var isCallable$c = isCallable$e;
416
+
417
+ var aFunction = function (argument) {
418
+ return isCallable$c(argument) ? argument : undefined;
419
+ };
420
+
421
+ var getBuiltIn$4 = function (namespace, method) {
422
+ return arguments.length < 2 ? aFunction(globalThis$c[namespace]) : globalThis$c[namespace] && globalThis$c[namespace][method];
423
+ };
424
+
425
+ var uncurryThis$b = functionUncurryThis;
426
+
427
+ var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
428
+
429
+ var globalThis$b = globalThis_1;
430
+
431
+ var navigator = globalThis$b.navigator;
432
+ var userAgent$1 = navigator && navigator.userAgent;
433
+
434
+ var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
435
+
436
+ var globalThis$a = globalThis_1;
437
+ var userAgent = environmentUserAgent;
438
+
439
+ var process = globalThis$a.process;
440
+ var Deno = globalThis$a.Deno;
441
+ var versions = process && process.versions || Deno && Deno.version;
442
+ var v8 = versions && versions.v8;
443
+ var match, version;
444
+
445
+ if (v8) {
446
+ match = v8.split('.');
447
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
448
+ // but their correct versions are not interesting for us
449
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
450
+ }
451
+
452
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
453
+ // so check `userAgent` even if `.v8` exists, but 0
454
+ if (!version && userAgent) {
455
+ match = userAgent.match(/Edge\/(\d+)/);
456
+ if (!match || match[1] >= 74) {
457
+ match = userAgent.match(/Chrome\/(\d+)/);
458
+ if (match) version = +match[1];
459
+ }
460
+ }
461
+
462
+ var environmentV8Version = version;
463
+
464
+ /* eslint-disable es/no-symbol -- required for testing */
465
+ var V8_VERSION = environmentV8Version;
466
+ var fails$8 = fails$c;
467
+ var globalThis$9 = globalThis_1;
468
+
469
+ var $String$3 = globalThis$9.String;
470
+
471
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
472
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
473
+ var symbol = Symbol('symbol detection');
474
+ // Chrome 38 Symbol has incorrect toString conversion
475
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
476
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
477
+ // of course, fail.
478
+ return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
479
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
480
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
481
+ });
482
+
483
+ /* eslint-disable es/no-symbol -- required for testing */
484
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
485
+
486
+ var useSymbolAsUid = NATIVE_SYMBOL$1 &&
487
+ !Symbol.sham &&
488
+ typeof Symbol.iterator == 'symbol';
489
+
490
+ var getBuiltIn$3 = getBuiltIn$4;
491
+ var isCallable$b = isCallable$e;
492
+ var isPrototypeOf$2 = objectIsPrototypeOf;
493
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
494
+
495
+ var $Object$3 = Object;
496
+
497
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
498
+ return typeof it == 'symbol';
499
+ } : function (it) {
500
+ var $Symbol = getBuiltIn$3('Symbol');
501
+ return isCallable$b($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
502
+ };
503
+
504
+ var $String$2 = String;
505
+
506
+ var tryToString$3 = function (argument) {
507
+ try {
508
+ return $String$2(argument);
509
+ } catch (error) {
510
+ return 'Object';
511
+ }
512
+ };
513
+
514
+ var isCallable$a = isCallable$e;
515
+ var tryToString$2 = tryToString$3;
516
+
517
+ var $TypeError$a = TypeError;
518
+
519
+ // `Assert: IsCallable(argument) is true`
520
+ var aCallable$8 = function (argument) {
521
+ if (isCallable$a(argument)) return argument;
522
+ throw new $TypeError$a(tryToString$2(argument) + ' is not a function');
523
+ };
524
+
525
+ var aCallable$7 = aCallable$8;
526
+ var isNullOrUndefined$1 = isNullOrUndefined$3;
527
+
528
+ // `GetMethod` abstract operation
529
+ // https://tc39.es/ecma262/#sec-getmethod
530
+ var getMethod$4 = function (V, P) {
531
+ var func = V[P];
532
+ return isNullOrUndefined$1(func) ? undefined : aCallable$7(func);
533
+ };
534
+
535
+ var call$9 = functionCall;
536
+ var isCallable$9 = isCallable$e;
537
+ var isObject$5 = isObject$6;
538
+
539
+ var $TypeError$9 = TypeError;
540
+
541
+ // `OrdinaryToPrimitive` abstract operation
542
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
543
+ var ordinaryToPrimitive$1 = function (input, pref) {
544
+ var fn, val;
545
+ if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$9(fn, input))) return val;
546
+ if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$9(fn, input))) return val;
547
+ if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$9(fn, input))) return val;
548
+ throw new $TypeError$9("Can't convert object to primitive value");
549
+ };
550
+
551
+ var sharedStore = {exports: {}};
552
+
553
+ var isPure = false;
554
+
555
+ var globalThis$8 = globalThis_1;
556
+
557
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
558
+ var defineProperty$2 = Object.defineProperty;
559
+
560
+ var defineGlobalProperty$3 = function (key, value) {
561
+ try {
562
+ defineProperty$2(globalThis$8, key, { value: value, configurable: true, writable: true });
563
+ } catch (error) {
564
+ globalThis$8[key] = value;
565
+ } return value;
566
+ };
567
+
568
+ var globalThis$7 = globalThis_1;
569
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
570
+
571
+ var SHARED = '__core-js_shared__';
572
+ var store$3 = sharedStore.exports = globalThis$7[SHARED] || defineGlobalProperty$2(SHARED, {});
573
+
574
+ (store$3.versions || (store$3.versions = [])).push({
575
+ version: '3.41.0',
576
+ mode: 'global',
577
+ copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
578
+ license: 'https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE',
579
+ source: 'https://github.com/zloirock/core-js'
580
+ });
581
+
582
+ var sharedStoreExports = sharedStore.exports;
583
+
584
+ var store$2 = sharedStoreExports;
585
+
586
+ var shared$3 = function (key, value) {
587
+ return store$2[key] || (store$2[key] = value || {});
588
+ };
589
+
590
+ var requireObjectCoercible = requireObjectCoercible$2;
591
+
592
+ var $Object$2 = Object;
593
+
594
+ // `ToObject` abstract operation
595
+ // https://tc39.es/ecma262/#sec-toobject
596
+ var toObject$2 = function (argument) {
597
+ return $Object$2(requireObjectCoercible(argument));
598
+ };
599
+
600
+ var uncurryThis$a = functionUncurryThis;
601
+ var toObject$1 = toObject$2;
602
+
603
+ var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
604
+
605
+ // `HasOwnProperty` abstract operation
606
+ // https://tc39.es/ecma262/#sec-hasownproperty
607
+ // eslint-disable-next-line es/no-object-hasown -- safe
608
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
609
+ return hasOwnProperty(toObject$1(it), key);
610
+ };
611
+
612
+ var uncurryThis$9 = functionUncurryThis;
613
+
614
+ var id = 0;
615
+ var postfix = Math.random();
616
+ var toString = uncurryThis$9(1.0.toString);
617
+
618
+ var uid$2 = function (key) {
619
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
620
+ };
621
+
622
+ var globalThis$6 = globalThis_1;
623
+ var shared$2 = shared$3;
624
+ var hasOwn$8 = hasOwnProperty_1;
625
+ var uid$1 = uid$2;
626
+ var NATIVE_SYMBOL = symbolConstructorDetection;
627
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
628
+
629
+ var Symbol$1 = globalThis$6.Symbol;
630
+ var WellKnownSymbolsStore = shared$2('wks');
631
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
632
+
633
+ var wellKnownSymbol$8 = function (name) {
634
+ if (!hasOwn$8(WellKnownSymbolsStore, name)) {
635
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
636
+ ? Symbol$1[name]
637
+ : createWellKnownSymbol('Symbol.' + name);
638
+ } return WellKnownSymbolsStore[name];
639
+ };
640
+
641
+ var call$8 = functionCall;
642
+ var isObject$4 = isObject$6;
643
+ var isSymbol$1 = isSymbol$2;
644
+ var getMethod$3 = getMethod$4;
645
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
646
+ var wellKnownSymbol$7 = wellKnownSymbol$8;
647
+
648
+ var $TypeError$8 = TypeError;
649
+ var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
650
+
651
+ // `ToPrimitive` abstract operation
652
+ // https://tc39.es/ecma262/#sec-toprimitive
653
+ var toPrimitive$1 = function (input, pref) {
654
+ if (!isObject$4(input) || isSymbol$1(input)) return input;
655
+ var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
656
+ var result;
657
+ if (exoticToPrim) {
658
+ if (pref === undefined) pref = 'default';
659
+ result = call$8(exoticToPrim, input, pref);
660
+ if (!isObject$4(result) || isSymbol$1(result)) return result;
661
+ throw new $TypeError$8("Can't convert object to primitive value");
662
+ }
663
+ if (pref === undefined) pref = 'number';
664
+ return ordinaryToPrimitive(input, pref);
665
+ };
666
+
667
+ var toPrimitive = toPrimitive$1;
668
+ var isSymbol = isSymbol$2;
669
+
670
+ // `ToPropertyKey` abstract operation
671
+ // https://tc39.es/ecma262/#sec-topropertykey
672
+ var toPropertyKey$2 = function (argument) {
673
+ var key = toPrimitive(argument, 'string');
674
+ return isSymbol(key) ? key : key + '';
675
+ };
676
+
677
+ var globalThis$5 = globalThis_1;
678
+ var isObject$3 = isObject$6;
679
+
680
+ var document$1 = globalThis$5.document;
681
+ // typeof document.createElement is 'object' in old IE
682
+ var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
683
+
684
+ var documentCreateElement$1 = function (it) {
685
+ return EXISTS$1 ? document$1.createElement(it) : {};
686
+ };
687
+
688
+ var DESCRIPTORS$9 = descriptors;
689
+ var fails$7 = fails$c;
690
+ var createElement = documentCreateElement$1;
691
+
692
+ // Thanks to IE8 for its funny defineProperty
693
+ var ie8DomDefine = !DESCRIPTORS$9 && !fails$7(function () {
694
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
695
+ return Object.defineProperty(createElement('div'), 'a', {
696
+ get: function () { return 7; }
697
+ }).a !== 7;
698
+ });
699
+
700
+ var DESCRIPTORS$8 = descriptors;
701
+ var call$7 = functionCall;
702
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
703
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
704
+ var toIndexedObject$3 = toIndexedObject$4;
705
+ var toPropertyKey$1 = toPropertyKey$2;
706
+ var hasOwn$7 = hasOwnProperty_1;
707
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
708
+
709
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
710
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
711
+
712
+ // `Object.getOwnPropertyDescriptor` method
713
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
714
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
715
+ O = toIndexedObject$3(O);
716
+ P = toPropertyKey$1(P);
717
+ if (IE8_DOM_DEFINE$1) try {
718
+ return $getOwnPropertyDescriptor$1(O, P);
719
+ } catch (error) { /* empty */ }
720
+ if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$7(propertyIsEnumerableModule.f, O, P), O[P]);
721
+ };
722
+
723
+ var objectDefineProperty = {};
724
+
725
+ var DESCRIPTORS$7 = descriptors;
726
+ var fails$6 = fails$c;
727
+
728
+ // V8 ~ Chrome 36-
729
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
730
+ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$6(function () {
731
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
732
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
733
+ value: 42,
734
+ writable: false
735
+ }).prototype !== 42;
736
+ });
737
+
738
+ var isObject$2 = isObject$6;
739
+
740
+ var $String$1 = String;
741
+ var $TypeError$7 = TypeError;
742
+
743
+ // `Assert: Type(argument) is Object`
744
+ var anObject$d = function (argument) {
745
+ if (isObject$2(argument)) return argument;
746
+ throw new $TypeError$7($String$1(argument) + ' is not an object');
747
+ };
748
+
749
+ var DESCRIPTORS$6 = descriptors;
750
+ var IE8_DOM_DEFINE = ie8DomDefine;
751
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
752
+ var anObject$c = anObject$d;
753
+ var toPropertyKey = toPropertyKey$2;
754
+
755
+ var $TypeError$6 = TypeError;
756
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
757
+ var $defineProperty = Object.defineProperty;
758
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
759
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
760
+ var ENUMERABLE = 'enumerable';
761
+ var CONFIGURABLE$1 = 'configurable';
762
+ var WRITABLE = 'writable';
763
+
764
+ // `Object.defineProperty` method
765
+ // https://tc39.es/ecma262/#sec-object.defineproperty
766
+ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
767
+ anObject$c(O);
768
+ P = toPropertyKey(P);
769
+ anObject$c(Attributes);
770
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
771
+ var current = $getOwnPropertyDescriptor(O, P);
772
+ if (current && current[WRITABLE]) {
773
+ O[P] = Attributes.value;
774
+ Attributes = {
775
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
776
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
777
+ writable: false
778
+ };
779
+ }
780
+ } return $defineProperty(O, P, Attributes);
781
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
782
+ anObject$c(O);
783
+ P = toPropertyKey(P);
784
+ anObject$c(Attributes);
785
+ if (IE8_DOM_DEFINE) try {
786
+ return $defineProperty(O, P, Attributes);
787
+ } catch (error) { /* empty */ }
788
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$6('Accessors not supported');
789
+ if ('value' in Attributes) O[P] = Attributes.value;
790
+ return O;
791
+ };
792
+
793
+ var DESCRIPTORS$5 = descriptors;
794
+ var definePropertyModule$4 = objectDefineProperty;
795
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
796
+
797
+ var createNonEnumerableProperty$3 = DESCRIPTORS$5 ? function (object, key, value) {
798
+ return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
799
+ } : function (object, key, value) {
800
+ object[key] = value;
801
+ return object;
802
+ };
803
+
804
+ var makeBuiltIn$3 = {exports: {}};
805
+
806
+ var DESCRIPTORS$4 = descriptors;
807
+ var hasOwn$6 = hasOwnProperty_1;
808
+
809
+ var FunctionPrototype = Function.prototype;
810
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
811
+ var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
812
+
813
+ var EXISTS = hasOwn$6(FunctionPrototype, 'name');
814
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
815
+
816
+ var functionName = {
817
+ CONFIGURABLE: CONFIGURABLE
818
+ };
819
+
820
+ var uncurryThis$8 = functionUncurryThis;
821
+ var isCallable$8 = isCallable$e;
822
+ var store$1 = sharedStoreExports;
823
+
824
+ var functionToString = uncurryThis$8(Function.toString);
825
+
826
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
827
+ if (!isCallable$8(store$1.inspectSource)) {
828
+ store$1.inspectSource = function (it) {
829
+ return functionToString(it);
830
+ };
831
+ }
832
+
833
+ var inspectSource$1 = store$1.inspectSource;
834
+
835
+ var globalThis$4 = globalThis_1;
836
+ var isCallable$7 = isCallable$e;
837
+
838
+ var WeakMap$1 = globalThis$4.WeakMap;
839
+
840
+ var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
841
+
842
+ var shared$1 = shared$3;
843
+ var uid = uid$2;
844
+
845
+ var keys$1 = shared$1('keys');
846
+
847
+ var sharedKey$3 = function (key) {
848
+ return keys$1[key] || (keys$1[key] = uid(key));
849
+ };
850
+
851
+ var hiddenKeys$4 = {};
852
+
853
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
854
+ var globalThis$3 = globalThis_1;
855
+ var isObject$1 = isObject$6;
856
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
857
+ var hasOwn$5 = hasOwnProperty_1;
858
+ var shared = sharedStoreExports;
859
+ var sharedKey$2 = sharedKey$3;
860
+ var hiddenKeys$3 = hiddenKeys$4;
861
+
862
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
863
+ var TypeError$1 = globalThis$3.TypeError;
864
+ var WeakMap = globalThis$3.WeakMap;
865
+ var set, get, has$6;
866
+
867
+ var enforce = function (it) {
868
+ return has$6(it) ? get(it) : set(it, {});
869
+ };
870
+
871
+ var getterFor = function (TYPE) {
872
+ return function (it) {
873
+ var state;
874
+ if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
875
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
876
+ } return state;
877
+ };
878
+ };
879
+
880
+ if (NATIVE_WEAK_MAP || shared.state) {
881
+ var store = shared.state || (shared.state = new WeakMap());
882
+ /* eslint-disable no-self-assign -- prototype methods protection */
883
+ store.get = store.get;
884
+ store.has = store.has;
885
+ store.set = store.set;
886
+ /* eslint-enable no-self-assign -- prototype methods protection */
887
+ set = function (it, metadata) {
888
+ if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
889
+ metadata.facade = it;
890
+ store.set(it, metadata);
891
+ return metadata;
892
+ };
893
+ get = function (it) {
894
+ return store.get(it) || {};
895
+ };
896
+ has$6 = function (it) {
897
+ return store.has(it);
898
+ };
899
+ } else {
900
+ var STATE = sharedKey$2('state');
901
+ hiddenKeys$3[STATE] = true;
902
+ set = function (it, metadata) {
903
+ if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
904
+ metadata.facade = it;
905
+ createNonEnumerableProperty$2(it, STATE, metadata);
906
+ return metadata;
907
+ };
908
+ get = function (it) {
909
+ return hasOwn$5(it, STATE) ? it[STATE] : {};
910
+ };
911
+ has$6 = function (it) {
912
+ return hasOwn$5(it, STATE);
913
+ };
914
+ }
915
+
916
+ var internalState = {
917
+ set: set,
918
+ get: get,
919
+ has: has$6,
920
+ enforce: enforce,
921
+ getterFor: getterFor
922
+ };
923
+
924
+ var uncurryThis$7 = functionUncurryThis;
925
+ var fails$5 = fails$c;
926
+ var isCallable$6 = isCallable$e;
927
+ var hasOwn$4 = hasOwnProperty_1;
928
+ var DESCRIPTORS$3 = descriptors;
929
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
930
+ var inspectSource = inspectSource$1;
931
+ var InternalStateModule$1 = internalState;
932
+
933
+ var enforceInternalState = InternalStateModule$1.enforce;
934
+ var getInternalState = InternalStateModule$1.get;
935
+ var $String = String;
936
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
937
+ var defineProperty$1 = Object.defineProperty;
938
+ var stringSlice = uncurryThis$7(''.slice);
939
+ var replace = uncurryThis$7(''.replace);
940
+ var join = uncurryThis$7([].join);
941
+
942
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$5(function () {
943
+ return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
944
+ });
945
+
946
+ var TEMPLATE = String(String).split('String');
947
+
948
+ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
949
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
950
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
951
+ }
952
+ if (options && options.getter) name = 'get ' + name;
953
+ if (options && options.setter) name = 'set ' + name;
954
+ if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
955
+ if (DESCRIPTORS$3) defineProperty$1(value, 'name', { value: name, configurable: true });
956
+ else value.name = name;
957
+ }
958
+ if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
959
+ defineProperty$1(value, 'length', { value: options.arity });
960
+ }
961
+ try {
962
+ if (options && hasOwn$4(options, 'constructor') && options.constructor) {
963
+ if (DESCRIPTORS$3) defineProperty$1(value, 'prototype', { writable: false });
964
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
965
+ } else if (value.prototype) value.prototype = undefined;
966
+ } catch (error) { /* empty */ }
967
+ var state = enforceInternalState(value);
968
+ if (!hasOwn$4(state, 'source')) {
969
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
970
+ } return value;
971
+ };
972
+
973
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
974
+ // eslint-disable-next-line no-extend-native -- required
975
+ Function.prototype.toString = makeBuiltIn$2(function toString() {
976
+ return isCallable$6(this) && getInternalState(this).source || inspectSource(this);
977
+ }, 'toString');
978
+
979
+ var makeBuiltInExports = makeBuiltIn$3.exports;
980
+
981
+ var isCallable$5 = isCallable$e;
982
+ var definePropertyModule$3 = objectDefineProperty;
983
+ var makeBuiltIn$1 = makeBuiltInExports;
984
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
985
+
986
+ var defineBuiltIn$3 = function (O, key, value, options) {
987
+ if (!options) options = {};
988
+ var simple = options.enumerable;
989
+ var name = options.name !== undefined ? options.name : key;
990
+ if (isCallable$5(value)) makeBuiltIn$1(value, name, options);
991
+ if (options.global) {
992
+ if (simple) O[key] = value;
993
+ else defineGlobalProperty$1(key, value);
994
+ } else {
995
+ try {
996
+ if (!options.unsafe) delete O[key];
997
+ else if (O[key]) simple = true;
998
+ } catch (error) { /* empty */ }
999
+ if (simple) O[key] = value;
1000
+ else definePropertyModule$3.f(O, key, {
1001
+ value: value,
1002
+ enumerable: false,
1003
+ configurable: !options.nonConfigurable,
1004
+ writable: !options.nonWritable
1005
+ });
1006
+ } return O;
1007
+ };
1008
+
1009
+ var objectGetOwnPropertyNames = {};
1010
+
1011
+ var ceil = Math.ceil;
1012
+ var floor = Math.floor;
1013
+
1014
+ // `Math.trunc` method
1015
+ // https://tc39.es/ecma262/#sec-math.trunc
1016
+ // eslint-disable-next-line es/no-math-trunc -- safe
1017
+ var mathTrunc = Math.trunc || function trunc(x) {
1018
+ var n = +x;
1019
+ return (n > 0 ? floor : ceil)(n);
1020
+ };
1021
+
1022
+ var trunc = mathTrunc;
1023
+
1024
+ // `ToIntegerOrInfinity` abstract operation
1025
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
1026
+ var toIntegerOrInfinity$3 = function (argument) {
1027
+ var number = +argument;
1028
+ // eslint-disable-next-line no-self-compare -- NaN check
1029
+ return number !== number || number === 0 ? 0 : trunc(number);
1030
+ };
1031
+
1032
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
1033
+
1034
+ var max$1 = Math.max;
1035
+ var min$1 = Math.min;
1036
+
1037
+ // Helper for a popular repeating case of the spec:
1038
+ // Let integer be ? ToInteger(index).
1039
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
1040
+ var toAbsoluteIndex$1 = function (index, length) {
1041
+ var integer = toIntegerOrInfinity$2(index);
1042
+ return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
1043
+ };
1044
+
1045
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
1046
+
1047
+ var min = Math.min;
1048
+
1049
+ // `ToLength` abstract operation
1050
+ // https://tc39.es/ecma262/#sec-tolength
1051
+ var toLength$1 = function (argument) {
1052
+ var len = toIntegerOrInfinity$1(argument);
1053
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
1054
+ };
1055
+
1056
+ var toLength = toLength$1;
1057
+
1058
+ // `LengthOfArrayLike` abstract operation
1059
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
1060
+ var lengthOfArrayLike$2 = function (obj) {
1061
+ return toLength(obj.length);
1062
+ };
1063
+
1064
+ var toIndexedObject$2 = toIndexedObject$4;
1065
+ var toAbsoluteIndex = toAbsoluteIndex$1;
1066
+ var lengthOfArrayLike$1 = lengthOfArrayLike$2;
1067
+
1068
+ // `Array.prototype.{ indexOf, includes }` methods implementation
1069
+ var createMethod = function (IS_INCLUDES) {
1070
+ return function ($this, el, fromIndex) {
1071
+ var O = toIndexedObject$2($this);
1072
+ var length = lengthOfArrayLike$1(O);
1073
+ if (length === 0) return !IS_INCLUDES && -1;
1074
+ var index = toAbsoluteIndex(fromIndex, length);
1075
+ var value;
1076
+ // Array#includes uses SameValueZero equality algorithm
1077
+ // eslint-disable-next-line no-self-compare -- NaN check
1078
+ if (IS_INCLUDES && el !== el) while (length > index) {
1079
+ value = O[index++];
1080
+ // eslint-disable-next-line no-self-compare -- NaN check
1081
+ if (value !== value) return true;
1082
+ // Array#indexOf ignores holes, Array#includes - not
1083
+ } else for (;length > index; index++) {
1084
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1085
+ } return !IS_INCLUDES && -1;
1086
+ };
1087
+ };
1088
+
1089
+ var arrayIncludes = {
1090
+ // `Array.prototype.indexOf` method
1091
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
1092
+ indexOf: createMethod(false)
1093
+ };
1094
+
1095
+ var uncurryThis$6 = functionUncurryThis;
1096
+ var hasOwn$3 = hasOwnProperty_1;
1097
+ var toIndexedObject$1 = toIndexedObject$4;
1098
+ var indexOf = arrayIncludes.indexOf;
1099
+ var hiddenKeys$2 = hiddenKeys$4;
1100
+
1101
+ var push = uncurryThis$6([].push);
1102
+
1103
+ var objectKeysInternal = function (object, names) {
1104
+ var O = toIndexedObject$1(object);
1105
+ var i = 0;
1106
+ var result = [];
1107
+ var key;
1108
+ for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
1109
+ // Don't enum bug & hidden keys
1110
+ while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
1111
+ ~indexOf(result, key) || push(result, key);
1112
+ }
1113
+ return result;
1114
+ };
1115
+
1116
+ // IE8- don't enum bug keys
1117
+ var enumBugKeys$3 = [
1118
+ 'constructor',
1119
+ 'hasOwnProperty',
1120
+ 'isPrototypeOf',
1121
+ 'propertyIsEnumerable',
1122
+ 'toLocaleString',
1123
+ 'toString',
1124
+ 'valueOf'
1125
+ ];
1126
+
1127
+ var internalObjectKeys$1 = objectKeysInternal;
1128
+ var enumBugKeys$2 = enumBugKeys$3;
1129
+
1130
+ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
1131
+
1132
+ // `Object.getOwnPropertyNames` method
1133
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
1134
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1135
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1136
+ return internalObjectKeys$1(O, hiddenKeys$1);
1137
+ };
1138
+
1139
+ var objectGetOwnPropertySymbols = {};
1140
+
1141
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1142
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1143
+
1144
+ var getBuiltIn$2 = getBuiltIn$4;
1145
+ var uncurryThis$5 = functionUncurryThis;
1146
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1147
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1148
+ var anObject$b = anObject$d;
1149
+
1150
+ var concat = uncurryThis$5([].concat);
1151
+
1152
+ // all object keys, includes non-enumerable and symbols
1153
+ var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
1154
+ var keys = getOwnPropertyNamesModule.f(anObject$b(it));
1155
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1156
+ return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
1157
+ };
1158
+
1159
+ var hasOwn$2 = hasOwnProperty_1;
1160
+ var ownKeys = ownKeys$1;
1161
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1162
+ var definePropertyModule$2 = objectDefineProperty;
1163
+
1164
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
1165
+ var keys = ownKeys(source);
1166
+ var defineProperty = definePropertyModule$2.f;
1167
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1168
+ for (var i = 0; i < keys.length; i++) {
1169
+ var key = keys[i];
1170
+ if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
1171
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1172
+ }
1173
+ }
1174
+ };
1175
+
1176
+ var fails$4 = fails$c;
1177
+ var isCallable$4 = isCallable$e;
1178
+
1179
+ var replacement = /#|\.prototype\./;
1180
+
1181
+ var isForced$1 = function (feature, detection) {
1182
+ var value = data[normalize(feature)];
1183
+ return value === POLYFILL ? true
1184
+ : value === NATIVE ? false
1185
+ : isCallable$4(detection) ? fails$4(detection)
1186
+ : !!detection;
1187
+ };
1188
+
1189
+ var normalize = isForced$1.normalize = function (string) {
1190
+ return String(string).replace(replacement, '.').toLowerCase();
1191
+ };
1192
+
1193
+ var data = isForced$1.data = {};
1194
+ var NATIVE = isForced$1.NATIVE = 'N';
1195
+ var POLYFILL = isForced$1.POLYFILL = 'P';
1196
+
1197
+ var isForced_1 = isForced$1;
1198
+
1199
+ var globalThis$2 = globalThis_1;
1200
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1201
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
1202
+ var defineBuiltIn$2 = defineBuiltIn$3;
1203
+ var defineGlobalProperty = defineGlobalProperty$3;
1204
+ var copyConstructorProperties = copyConstructorProperties$1;
1205
+ var isForced = isForced_1;
1206
+
1207
+ /*
1208
+ options.target - name of the target object
1209
+ options.global - target is the global object
1210
+ options.stat - export as static methods of target
1211
+ options.proto - export as prototype methods of target
1212
+ options.real - real prototype method for the `pure` version
1213
+ options.forced - export even if the native feature is available
1214
+ options.bind - bind methods to the target, required for the `pure` version
1215
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1216
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
1217
+ options.sham - add a flag to not completely full polyfills
1218
+ options.enumerable - export as enumerable property
1219
+ options.dontCallGetSet - prevent calling a getter on target
1220
+ options.name - the .name of the function if it does not match the key
1221
+ */
1222
+ var _export = function (options, source) {
1223
+ var TARGET = options.target;
1224
+ var GLOBAL = options.global;
1225
+ var STATIC = options.stat;
1226
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1227
+ if (GLOBAL) {
1228
+ target = globalThis$2;
1229
+ } else if (STATIC) {
1230
+ target = globalThis$2[TARGET] || defineGlobalProperty(TARGET, {});
1231
+ } else {
1232
+ target = globalThis$2[TARGET] && globalThis$2[TARGET].prototype;
1233
+ }
1234
+ if (target) for (key in source) {
1235
+ sourceProperty = source[key];
1236
+ if (options.dontCallGetSet) {
1237
+ descriptor = getOwnPropertyDescriptor(target, key);
1238
+ targetProperty = descriptor && descriptor.value;
1239
+ } else targetProperty = target[key];
1240
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1241
+ // contained in target
1242
+ if (!FORCED && targetProperty !== undefined) {
1243
+ if (typeof sourceProperty == typeof targetProperty) continue;
1244
+ copyConstructorProperties(sourceProperty, targetProperty);
1245
+ }
1246
+ // add a flag to not completely full polyfills
1247
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1248
+ createNonEnumerableProperty$1(sourceProperty, 'sham', true);
1249
+ }
1250
+ defineBuiltIn$2(target, key, sourceProperty, options);
1251
+ }
1252
+ };
1253
+
1254
+ var isPrototypeOf$1 = objectIsPrototypeOf;
1255
+
1256
+ var $TypeError$5 = TypeError;
1257
+
1258
+ var anInstance$1 = function (it, Prototype) {
1259
+ if (isPrototypeOf$1(Prototype, it)) return it;
1260
+ throw new $TypeError$5('Incorrect invocation');
1261
+ };
1262
+
1263
+ var fails$3 = fails$c;
1264
+
1265
+ var correctPrototypeGetter = !fails$3(function () {
1266
+ function F() { /* empty */ }
1267
+ F.prototype.constructor = null;
1268
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1269
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1270
+ });
1271
+
1272
+ var hasOwn$1 = hasOwnProperty_1;
1273
+ var isCallable$3 = isCallable$e;
1274
+ var toObject = toObject$2;
1275
+ var sharedKey$1 = sharedKey$3;
1276
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1277
+
1278
+ var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1279
+ var $Object$1 = Object;
1280
+ var ObjectPrototype = $Object$1.prototype;
1281
+
1282
+ // `Object.getPrototypeOf` method
1283
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
1284
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1285
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1286
+ var object = toObject(O);
1287
+ if (hasOwn$1(object, IE_PROTO$1)) return object[IE_PROTO$1];
1288
+ var constructor = object.constructor;
1289
+ if (isCallable$3(constructor) && object instanceof constructor) {
1290
+ return constructor.prototype;
1291
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1292
+ };
1293
+
1294
+ var makeBuiltIn = makeBuiltInExports;
1295
+ var defineProperty = objectDefineProperty;
1296
+
1297
+ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1298
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1299
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1300
+ return defineProperty.f(target, name, descriptor);
1301
+ };
1302
+
1303
+ var DESCRIPTORS$2 = descriptors;
1304
+ var definePropertyModule$1 = objectDefineProperty;
1305
+ var createPropertyDescriptor = createPropertyDescriptor$3;
1306
+
1307
+ var createProperty$1 = function (object, key, value) {
1308
+ if (DESCRIPTORS$2) definePropertyModule$1.f(object, key, createPropertyDescriptor(0, value));
1309
+ else object[key] = value;
1310
+ };
1311
+
1312
+ var objectDefineProperties = {};
1313
+
1314
+ var internalObjectKeys = objectKeysInternal;
1315
+ var enumBugKeys$1 = enumBugKeys$3;
1316
+
1317
+ // `Object.keys` method
1318
+ // https://tc39.es/ecma262/#sec-object.keys
1319
+ // eslint-disable-next-line es/no-object-keys -- safe
1320
+ var objectKeys$1 = Object.keys || function keys(O) {
1321
+ return internalObjectKeys(O, enumBugKeys$1);
1322
+ };
1323
+
1324
+ var DESCRIPTORS$1 = descriptors;
1325
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1326
+ var definePropertyModule = objectDefineProperty;
1327
+ var anObject$a = anObject$d;
1328
+ var toIndexedObject = toIndexedObject$4;
1329
+ var objectKeys = objectKeys$1;
1330
+
1331
+ // `Object.defineProperties` method
1332
+ // https://tc39.es/ecma262/#sec-object.defineproperties
1333
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1334
+ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1335
+ anObject$a(O);
1336
+ var props = toIndexedObject(Properties);
1337
+ var keys = objectKeys(Properties);
1338
+ var length = keys.length;
1339
+ var index = 0;
1340
+ var key;
1341
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1342
+ return O;
1343
+ };
1344
+
1345
+ var getBuiltIn$1 = getBuiltIn$4;
1346
+
1347
+ var html$1 = getBuiltIn$1('document', 'documentElement');
1348
+
1349
+ /* global ActiveXObject -- old IE, WSH */
1350
+ var anObject$9 = anObject$d;
1351
+ var definePropertiesModule = objectDefineProperties;
1352
+ var enumBugKeys = enumBugKeys$3;
1353
+ var hiddenKeys = hiddenKeys$4;
1354
+ var html = html$1;
1355
+ var documentCreateElement = documentCreateElement$1;
1356
+ var sharedKey = sharedKey$3;
1357
+
1358
+ var GT = '>';
1359
+ var LT = '<';
1360
+ var PROTOTYPE = 'prototype';
1361
+ var SCRIPT = 'script';
1362
+ var IE_PROTO = sharedKey('IE_PROTO');
1363
+
1364
+ var EmptyConstructor = function () { /* empty */ };
1365
+
1366
+ var scriptTag = function (content) {
1367
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1368
+ };
1369
+
1370
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1371
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
1372
+ activeXDocument.write(scriptTag(''));
1373
+ activeXDocument.close();
1374
+ var temp = activeXDocument.parentWindow.Object;
1375
+ // eslint-disable-next-line no-useless-assignment -- avoid memory leak
1376
+ activeXDocument = null;
1377
+ return temp;
1378
+ };
1379
+
1380
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
1381
+ var NullProtoObjectViaIFrame = function () {
1382
+ // Thrash, waste and sodomy: IE GC bug
1383
+ var iframe = documentCreateElement('iframe');
1384
+ var JS = 'java' + SCRIPT + ':';
1385
+ var iframeDocument;
1386
+ iframe.style.display = 'none';
1387
+ html.appendChild(iframe);
1388
+ // https://github.com/zloirock/core-js/issues/475
1389
+ iframe.src = String(JS);
1390
+ iframeDocument = iframe.contentWindow.document;
1391
+ iframeDocument.open();
1392
+ iframeDocument.write(scriptTag('document.F=Object'));
1393
+ iframeDocument.close();
1394
+ return iframeDocument.F;
1395
+ };
1396
+
1397
+ // Check for document.domain and active x support
1398
+ // No need to use active x approach when document.domain is not set
1399
+ // see https://github.com/es-shims/es5-shim/issues/150
1400
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1401
+ // avoid IE GC bug
1402
+ var activeXDocument;
1403
+ var NullProtoObject = function () {
1404
+ try {
1405
+ activeXDocument = new ActiveXObject('htmlfile');
1406
+ } catch (error) { /* ignore */ }
1407
+ NullProtoObject = typeof document != 'undefined'
1408
+ ? document.domain && activeXDocument
1409
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1410
+ : NullProtoObjectViaIFrame()
1411
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
1412
+ var length = enumBugKeys.length;
1413
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1414
+ return NullProtoObject();
1415
+ };
1416
+
1417
+ hiddenKeys[IE_PROTO] = true;
1418
+
1419
+ // `Object.create` method
1420
+ // https://tc39.es/ecma262/#sec-object.create
1421
+ // eslint-disable-next-line es/no-object-create -- safe
1422
+ var objectCreate = Object.create || function create(O, Properties) {
1423
+ var result;
1424
+ if (O !== null) {
1425
+ EmptyConstructor[PROTOTYPE] = anObject$9(O);
1426
+ result = new EmptyConstructor();
1427
+ EmptyConstructor[PROTOTYPE] = null;
1428
+ // add "__proto__" for Object.getPrototypeOf polyfill
1429
+ result[IE_PROTO] = O;
1430
+ } else result = NullProtoObject();
1431
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1432
+ };
1433
+
1434
+ var fails$2 = fails$c;
1435
+ var isCallable$2 = isCallable$e;
1436
+ var isObject = isObject$6;
1437
+ var getPrototypeOf$1 = objectGetPrototypeOf;
1438
+ var defineBuiltIn$1 = defineBuiltIn$3;
1439
+ var wellKnownSymbol$6 = wellKnownSymbol$8;
1440
+
1441
+ var ITERATOR$3 = wellKnownSymbol$6('iterator');
1442
+
1443
+ // `%IteratorPrototype%` object
1444
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1445
+ var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1446
+
1447
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1448
+ if ([].keys) {
1449
+ arrayIterator = [].keys();
1450
+ // Safari 8 has buggy iterators w/o `next`
1451
+ if (!('next' in arrayIterator)) ;
1452
+ else {
1453
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1454
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1455
+ }
1456
+ }
1457
+
1458
+ var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$2(function () {
1459
+ var test = {};
1460
+ // FF44- legacy iterators case
1461
+ return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
1462
+ });
1463
+
1464
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1465
+
1466
+ // `%IteratorPrototype%[@@iterator]()` method
1467
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1468
+ if (!isCallable$2(IteratorPrototype$2[ITERATOR$3])) {
1469
+ defineBuiltIn$1(IteratorPrototype$2, ITERATOR$3, function () {
1470
+ return this;
1471
+ });
1472
+ }
1473
+
1474
+ var iteratorsCore = {
1475
+ IteratorPrototype: IteratorPrototype$2};
1476
+
1477
+ var $$a = _export;
1478
+ var globalThis$1 = globalThis_1;
1479
+ var anInstance = anInstance$1;
1480
+ var anObject$8 = anObject$d;
1481
+ var isCallable$1 = isCallable$e;
1482
+ var getPrototypeOf = objectGetPrototypeOf;
1483
+ var defineBuiltInAccessor = defineBuiltInAccessor$1;
1484
+ var createProperty = createProperty$1;
1485
+ var fails$1 = fails$c;
1486
+ var hasOwn = hasOwnProperty_1;
1487
+ var wellKnownSymbol$5 = wellKnownSymbol$8;
1488
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1489
+ var DESCRIPTORS = descriptors;
1490
+
1491
+ var CONSTRUCTOR = 'constructor';
1492
+ var ITERATOR$2 = 'Iterator';
1493
+ var TO_STRING_TAG$3 = wellKnownSymbol$5('toStringTag');
1494
+
1495
+ var $TypeError$4 = TypeError;
1496
+ var NativeIterator = globalThis$1[ITERATOR$2];
1497
+
1498
+ // FF56- have non-standard global helper `Iterator`
1499
+ var FORCED = !isCallable$1(NativeIterator)
1500
+ || NativeIterator.prototype !== IteratorPrototype$1
1501
+ // FF44- non-standard `Iterator` passes previous tests
1502
+ || !fails$1(function () { NativeIterator({}); });
1503
+
1504
+ var IteratorConstructor = function Iterator() {
1505
+ anInstance(this, IteratorPrototype$1);
1506
+ if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$4('Abstract class Iterator not directly constructable');
1507
+ };
1508
+
1509
+ var defineIteratorPrototypeAccessor = function (key, value) {
1510
+ if (DESCRIPTORS) {
1511
+ defineBuiltInAccessor(IteratorPrototype$1, key, {
1512
+ configurable: true,
1513
+ get: function () {
1514
+ return value;
1515
+ },
1516
+ set: function (replacement) {
1517
+ anObject$8(this);
1518
+ if (this === IteratorPrototype$1) throw new $TypeError$4("You can't redefine this property");
1519
+ if (hasOwn(this, key)) this[key] = replacement;
1520
+ else createProperty(this, key, replacement);
1521
+ }
1522
+ });
1523
+ } else IteratorPrototype$1[key] = value;
1524
+ };
1525
+
1526
+ if (!hasOwn(IteratorPrototype$1, TO_STRING_TAG$3)) defineIteratorPrototypeAccessor(TO_STRING_TAG$3, ITERATOR$2);
1527
+
1528
+ if (FORCED || !hasOwn(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
1529
+ defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
1530
+ }
1531
+
1532
+ IteratorConstructor.prototype = IteratorPrototype$1;
1533
+
1534
+ // `Iterator` constructor
1535
+ // https://tc39.es/ecma262/#sec-iterator
1536
+ $$a({ global: true, constructor: true, forced: FORCED }, {
1537
+ Iterator: IteratorConstructor
1538
+ });
1539
+
1540
+ var classofRaw$1 = classofRaw$2;
1541
+ var uncurryThis$4 = functionUncurryThis;
1542
+
1543
+ var functionUncurryThisClause = function (fn) {
1544
+ // Nashorn bug:
1545
+ // https://github.com/zloirock/core-js/issues/1128
1546
+ // https://github.com/zloirock/core-js/issues/1130
1547
+ if (classofRaw$1(fn) === 'Function') return uncurryThis$4(fn);
1548
+ };
1549
+
1550
+ var uncurryThis$3 = functionUncurryThisClause;
1551
+ var aCallable$6 = aCallable$8;
1552
+ var NATIVE_BIND = functionBindNative;
1553
+
1554
+ var bind$1 = uncurryThis$3(uncurryThis$3.bind);
1555
+
1556
+ // optional / simple context binding
1557
+ var functionBindContext = function (fn, that) {
1558
+ aCallable$6(fn);
1559
+ return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
1560
+ return fn.apply(that, arguments);
1561
+ };
1562
+ };
1563
+
1564
+ var iterators = {};
1565
+
1566
+ var wellKnownSymbol$4 = wellKnownSymbol$8;
1567
+ var Iterators$1 = iterators;
1568
+
1569
+ var ITERATOR$1 = wellKnownSymbol$4('iterator');
1570
+ var ArrayPrototype = Array.prototype;
1571
+
1572
+ // check on default Array iterator
1573
+ var isArrayIteratorMethod$1 = function (it) {
1574
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$1] === it);
1575
+ };
1576
+
1577
+ var wellKnownSymbol$3 = wellKnownSymbol$8;
1578
+
1579
+ var TO_STRING_TAG$2 = wellKnownSymbol$3('toStringTag');
1580
+ var test = {};
1581
+
1582
+ test[TO_STRING_TAG$2] = 'z';
1583
+
1584
+ var toStringTagSupport = String(test) === '[object z]';
1585
+
1586
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1587
+ var isCallable = isCallable$e;
1588
+ var classofRaw = classofRaw$2;
1589
+ var wellKnownSymbol$2 = wellKnownSymbol$8;
1590
+
1591
+ var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1592
+ var $Object = Object;
1593
+
1594
+ // ES3 wrong here
1595
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1596
+
1597
+ // fallback for IE11 Script Access Denied error
1598
+ var tryGet = function (it, key) {
1599
+ try {
1600
+ return it[key];
1601
+ } catch (error) { /* empty */ }
1602
+ };
1603
+
1604
+ // getting tag from ES6+ `Object.prototype.toString`
1605
+ var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1606
+ var O, tag, result;
1607
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1608
+ // @@toStringTag case
1609
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG$1)) == 'string' ? tag
1610
+ // builtinTag case
1611
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1612
+ // ES3 arguments fallback
1613
+ : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
1614
+ };
1615
+
1616
+ var classof = classof$1;
1617
+ var getMethod$2 = getMethod$4;
1618
+ var isNullOrUndefined = isNullOrUndefined$3;
1619
+ var Iterators = iterators;
1620
+ var wellKnownSymbol$1 = wellKnownSymbol$8;
1621
+
1622
+ var ITERATOR = wellKnownSymbol$1('iterator');
1623
+
1624
+ var getIteratorMethod$2 = function (it) {
1625
+ if (!isNullOrUndefined(it)) return getMethod$2(it, ITERATOR)
1626
+ || getMethod$2(it, '@@iterator')
1627
+ || Iterators[classof(it)];
1628
+ };
1629
+
1630
+ var call$6 = functionCall;
1631
+ var aCallable$5 = aCallable$8;
1632
+ var anObject$7 = anObject$d;
1633
+ var tryToString$1 = tryToString$3;
1634
+ var getIteratorMethod$1 = getIteratorMethod$2;
1635
+
1636
+ var $TypeError$3 = TypeError;
1637
+
1638
+ var getIterator$1 = function (argument, usingIterator) {
1639
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1640
+ if (aCallable$5(iteratorMethod)) return anObject$7(call$6(iteratorMethod, argument));
1641
+ throw new $TypeError$3(tryToString$1(argument) + ' is not iterable');
1642
+ };
1643
+
1644
+ var call$5 = functionCall;
1645
+ var anObject$6 = anObject$d;
1646
+ var getMethod$1 = getMethod$4;
1647
+
1648
+ var iteratorClose$5 = function (iterator, kind, value) {
1649
+ var innerResult, innerError;
1650
+ anObject$6(iterator);
1651
+ try {
1652
+ innerResult = getMethod$1(iterator, 'return');
1653
+ if (!innerResult) {
1654
+ if (kind === 'throw') throw value;
1655
+ return value;
1656
+ }
1657
+ innerResult = call$5(innerResult, iterator);
1658
+ } catch (error) {
1659
+ innerError = true;
1660
+ innerResult = error;
1661
+ }
1662
+ if (kind === 'throw') throw value;
1663
+ if (innerError) throw innerResult;
1664
+ anObject$6(innerResult);
1665
+ return value;
1666
+ };
1667
+
1668
+ var bind = functionBindContext;
1669
+ var call$4 = functionCall;
1670
+ var anObject$5 = anObject$d;
1671
+ var tryToString = tryToString$3;
1672
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
1673
+ var lengthOfArrayLike = lengthOfArrayLike$2;
1674
+ var isPrototypeOf = objectIsPrototypeOf;
1675
+ var getIterator = getIterator$1;
1676
+ var getIteratorMethod = getIteratorMethod$2;
1677
+ var iteratorClose$4 = iteratorClose$5;
1678
+
1679
+ var $TypeError$2 = TypeError;
1680
+
1681
+ var Result = function (stopped, result) {
1682
+ this.stopped = stopped;
1683
+ this.result = result;
1684
+ };
1685
+
1686
+ var ResultPrototype = Result.prototype;
1687
+
1688
+ var iterate$4 = function (iterable, unboundFunction, options) {
1689
+ var that = options && options.that;
1690
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1691
+ var IS_RECORD = !!(options && options.IS_RECORD);
1692
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1693
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
1694
+ var fn = bind(unboundFunction, that);
1695
+ var iterator, iterFn, index, length, result, next, step;
1696
+
1697
+ var stop = function (condition) {
1698
+ if (iterator) iteratorClose$4(iterator, 'normal', condition);
1699
+ return new Result(true, condition);
1700
+ };
1701
+
1702
+ var callFn = function (value) {
1703
+ if (AS_ENTRIES) {
1704
+ anObject$5(value);
1705
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1706
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
1707
+ };
1708
+
1709
+ if (IS_RECORD) {
1710
+ iterator = iterable.iterator;
1711
+ } else if (IS_ITERATOR) {
1712
+ iterator = iterable;
1713
+ } else {
1714
+ iterFn = getIteratorMethod(iterable);
1715
+ if (!iterFn) throw new $TypeError$2(tryToString(iterable) + ' is not iterable');
1716
+ // optimisation for array iterators
1717
+ if (isArrayIteratorMethod(iterFn)) {
1718
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
1719
+ result = callFn(iterable[index]);
1720
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
1721
+ } return new Result(false);
1722
+ }
1723
+ iterator = getIterator(iterable, iterFn);
1724
+ }
1725
+
1726
+ next = IS_RECORD ? iterable.next : iterator.next;
1727
+ while (!(step = call$4(next, iterator)).done) {
1728
+ try {
1729
+ result = callFn(step.value);
1730
+ } catch (error) {
1731
+ iteratorClose$4(iterator, 'throw', error);
1732
+ }
1733
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
1734
+ } return new Result(false);
1735
+ };
1736
+
1737
+ // `GetIteratorDirect(obj)` abstract operation
1738
+ // https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
1739
+ var getIteratorDirect$4 = function (obj) {
1740
+ return {
1741
+ iterator: obj,
1742
+ next: obj.next,
1743
+ done: false
1744
+ };
1745
+ };
1746
+
1747
+ var $$9 = _export;
1748
+ var iterate$3 = iterate$4;
1749
+ var aCallable$4 = aCallable$8;
1750
+ var anObject$4 = anObject$d;
1751
+ var getIteratorDirect$3 = getIteratorDirect$4;
1752
+
1753
+ // `Iterator.prototype.forEach` method
1754
+ // https://tc39.es/ecma262/#sec-iterator.prototype.foreach
1755
+ $$9({ target: 'Iterator', proto: true, real: true }, {
1756
+ forEach: function forEach(fn) {
1757
+ anObject$4(this);
1758
+ aCallable$4(fn);
1759
+ var record = getIteratorDirect$3(this);
1760
+ var counter = 0;
1761
+ iterate$3(record, function (value) {
1762
+ fn(value, counter++);
1763
+ }, { IS_RECORD: true });
1764
+ }
1765
+ });
1766
+
1767
+ var defineBuiltIn = defineBuiltIn$3;
1768
+
1769
+ var defineBuiltIns$1 = function (target, src, options) {
1770
+ for (var key in src) defineBuiltIn(target, key, src[key], options);
1771
+ return target;
1772
+ };
1773
+
1774
+ // `CreateIterResultObject` abstract operation
1775
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1776
+ var createIterResultObject$1 = function (value, done) {
1777
+ return { value: value, done: done };
1778
+ };
1779
+
1780
+ var call$3 = functionCall;
1781
+ var create = objectCreate;
1782
+ var createNonEnumerableProperty = createNonEnumerableProperty$3;
1783
+ var defineBuiltIns = defineBuiltIns$1;
1784
+ var wellKnownSymbol = wellKnownSymbol$8;
1785
+ var InternalStateModule = internalState;
1786
+ var getMethod = getMethod$4;
1787
+ var IteratorPrototype = iteratorsCore.IteratorPrototype;
1788
+ var createIterResultObject = createIterResultObject$1;
1789
+ var iteratorClose$3 = iteratorClose$5;
1790
+
1791
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1792
+ var ITERATOR_HELPER = 'IteratorHelper';
1793
+ var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
1794
+ var setInternalState = InternalStateModule.set;
1795
+
1796
+ var createIteratorProxyPrototype = function (IS_ITERATOR) {
1797
+ var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
1798
+
1799
+ return defineBuiltIns(create(IteratorPrototype), {
1800
+ next: function next() {
1801
+ var state = getInternalState(this);
1802
+ // for simplification:
1803
+ // for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject`
1804
+ // for `%IteratorHelperPrototype%.next` - just a value
1805
+ if (IS_ITERATOR) return state.nextHandler();
1806
+ if (state.done) return createIterResultObject(undefined, true);
1807
+ try {
1808
+ var result = state.nextHandler();
1809
+ return state.returnHandlerResult ? result : createIterResultObject(result, state.done);
1810
+ } catch (error) {
1811
+ state.done = true;
1812
+ throw error;
1813
+ }
1814
+ },
1815
+ 'return': function () {
1816
+ var state = getInternalState(this);
1817
+ var iterator = state.iterator;
1818
+ state.done = true;
1819
+ if (IS_ITERATOR) {
1820
+ var returnMethod = getMethod(iterator, 'return');
1821
+ return returnMethod ? call$3(returnMethod, iterator) : createIterResultObject(undefined, true);
1822
+ }
1823
+ if (state.inner) try {
1824
+ iteratorClose$3(state.inner.iterator, 'normal');
1825
+ } catch (error) {
1826
+ return iteratorClose$3(iterator, 'throw', error);
1827
+ }
1828
+ if (iterator) iteratorClose$3(iterator, 'normal');
1829
+ return createIterResultObject(undefined, true);
1830
+ }
1831
+ });
1832
+ };
1833
+
1834
+ var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
1835
+ var IteratorHelperPrototype = createIteratorProxyPrototype(false);
1836
+
1837
+ createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
1838
+
1839
+ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) {
1840
+ var IteratorProxy = function Iterator(record, state) {
1841
+ if (state) {
1842
+ state.iterator = record.iterator;
1843
+ state.next = record.next;
1844
+ } else state = record;
1845
+ state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
1846
+ state.returnHandlerResult = !!RETURN_HANDLER_RESULT;
1847
+ state.nextHandler = nextHandler;
1848
+ state.counter = 0;
1849
+ state.done = false;
1850
+ setInternalState(this, state);
1851
+ };
1852
+
1853
+ IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
1854
+
1855
+ return IteratorProxy;
1856
+ };
1857
+
1858
+ var anObject$3 = anObject$d;
1859
+ var iteratorClose$2 = iteratorClose$5;
1860
+
1861
+ // call something on iterator step with safe closing on error
1862
+ var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
1863
+ try {
1864
+ return ENTRIES ? fn(anObject$3(value)[0], value[1]) : fn(value);
1865
+ } catch (error) {
1866
+ iteratorClose$2(iterator, 'throw', error);
1867
+ }
1868
+ };
1869
+
1870
+ var call$2 = functionCall;
1871
+ var aCallable$3 = aCallable$8;
1872
+ var anObject$2 = anObject$d;
1873
+ var getIteratorDirect$2 = getIteratorDirect$4;
1874
+ var createIteratorProxy = iteratorCreateProxy;
1875
+ var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
1876
+
1877
+ var IteratorProxy = createIteratorProxy(function () {
1878
+ var iterator = this.iterator;
1879
+ var result = anObject$2(call$2(this.next, iterator));
1880
+ var done = this.done = !!result.done;
1881
+ if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
1882
+ });
1883
+
1884
+ // `Iterator.prototype.map` method
1885
+ // https://github.com/tc39/proposal-iterator-helpers
1886
+ var iteratorMap = function map(mapper) {
1887
+ anObject$2(this);
1888
+ aCallable$3(mapper);
1889
+ return new IteratorProxy(getIteratorDirect$2(this), {
1890
+ mapper: mapper
1891
+ });
1892
+ };
1893
+
1894
+ var $$8 = _export;
1895
+ var map = iteratorMap;
1896
+ var IS_PURE = isPure;
1897
+
1898
+ // `Iterator.prototype.map` method
1899
+ // https://tc39.es/ecma262/#sec-iterator.prototype.map
1900
+ $$8({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
1901
+ map: map
1902
+ });
1903
+
1904
+ var $$7 = _export;
1905
+ var iterate$2 = iterate$4;
1906
+ var aCallable$2 = aCallable$8;
1907
+ var anObject$1 = anObject$d;
1908
+ var getIteratorDirect$1 = getIteratorDirect$4;
1909
+
1910
+ var $TypeError$1 = TypeError;
1911
+
1912
+ // `Iterator.prototype.reduce` method
1913
+ // https://tc39.es/ecma262/#sec-iterator.prototype.reduce
1914
+ $$7({ target: 'Iterator', proto: true, real: true }, {
1915
+ reduce: function reduce(reducer /* , initialValue */) {
1916
+ anObject$1(this);
1917
+ aCallable$2(reducer);
1918
+ var record = getIteratorDirect$1(this);
1919
+ var noInitial = arguments.length < 2;
1920
+ var accumulator = noInitial ? undefined : arguments[1];
1921
+ var counter = 0;
1922
+ iterate$2(record, function (value) {
1923
+ if (noInitial) {
1924
+ noInitial = false;
1925
+ accumulator = value;
1926
+ } else {
1927
+ accumulator = reducer(accumulator, value, counter);
1928
+ }
1929
+ counter++;
1930
+ }, { IS_RECORD: true });
1931
+ if (noInitial) throw new $TypeError$1('Reduce of empty iterator with no initial value');
1932
+ return accumulator;
1933
+ }
1934
+ });
1935
+
1936
+ var uncurryThis$2 = functionUncurryThis;
1937
+
1938
+ // eslint-disable-next-line es/no-set -- safe
1939
+ var SetPrototype$1 = Set.prototype;
1940
+
1941
+ var setHelpers = {
1942
+ // eslint-disable-next-line es/no-set -- safe
1943
+ Set: Set,
1944
+ add: uncurryThis$2(SetPrototype$1.add),
1945
+ has: uncurryThis$2(SetPrototype$1.has),
1946
+ remove: uncurryThis$2(SetPrototype$1['delete']),
1947
+ proto: SetPrototype$1
1948
+ };
1949
+
1950
+ var has$5 = setHelpers.has;
1951
+
1952
+ // Perform ? RequireInternalSlot(M, [[SetData]])
1953
+ var aSet$7 = function (it) {
1954
+ has$5(it);
1955
+ return it;
1956
+ };
1957
+
1958
+ var call$1 = functionCall;
1959
+
1960
+ var iterateSimple$7 = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
1961
+ var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
1962
+ var next = record.next;
1963
+ var step, result;
1964
+ while (!(step = call$1(next, iterator)).done) {
1965
+ result = fn(step.value);
1966
+ if (result !== undefined) return result;
1967
+ }
1968
+ };
1969
+
1970
+ var uncurryThis$1 = functionUncurryThis;
1971
+ var iterateSimple$6 = iterateSimple$7;
1972
+ var SetHelpers$5 = setHelpers;
1973
+
1974
+ var Set$3 = SetHelpers$5.Set;
1975
+ var SetPrototype = SetHelpers$5.proto;
1976
+ var forEach = uncurryThis$1(SetPrototype.forEach);
1977
+ var keys = uncurryThis$1(SetPrototype.keys);
1978
+ var next = keys(new Set$3()).next;
1979
+
1980
+ var setIterate = function (set, fn, interruptible) {
1981
+ return interruptible ? iterateSimple$6({ iterator: keys(set), next: next }, fn) : forEach(set, fn);
1982
+ };
1983
+
1984
+ var SetHelpers$4 = setHelpers;
1985
+ var iterate$1 = setIterate;
1986
+
1987
+ var Set$2 = SetHelpers$4.Set;
1988
+ var add$3 = SetHelpers$4.add;
1989
+
1990
+ var setClone = function (set) {
1991
+ var result = new Set$2();
1992
+ iterate$1(set, function (it) {
1993
+ add$3(result, it);
1994
+ });
1995
+ return result;
1996
+ };
1997
+
1998
+ var uncurryThis = functionUncurryThis;
1999
+ var aCallable$1 = aCallable$8;
2000
+
2001
+ var functionUncurryThisAccessor = function (object, key, method) {
2002
+ try {
2003
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2004
+ return uncurryThis(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
2005
+ } catch (error) { /* empty */ }
2006
+ };
2007
+
2008
+ var uncurryThisAccessor = functionUncurryThisAccessor;
2009
+ var SetHelpers$3 = setHelpers;
2010
+
2011
+ var setSize = uncurryThisAccessor(SetHelpers$3.proto, 'size', 'get') || function (set) {
2012
+ return set.size;
2013
+ };
2014
+
2015
+ var aCallable = aCallable$8;
2016
+ var anObject = anObject$d;
2017
+ var call = functionCall;
2018
+ var toIntegerOrInfinity = toIntegerOrInfinity$3;
2019
+ var getIteratorDirect = getIteratorDirect$4;
2020
+
2021
+ var INVALID_SIZE = 'Invalid size';
2022
+ var $RangeError = RangeError;
2023
+ var $TypeError = TypeError;
2024
+ var max = Math.max;
2025
+
2026
+ var SetRecord = function (set, intSize) {
2027
+ this.set = set;
2028
+ this.size = max(intSize, 0);
2029
+ this.has = aCallable(set.has);
2030
+ this.keys = aCallable(set.keys);
2031
+ };
2032
+
2033
+ SetRecord.prototype = {
2034
+ getIterator: function () {
2035
+ return getIteratorDirect(anObject(call(this.keys, this.set)));
2036
+ },
2037
+ includes: function (it) {
2038
+ return call(this.has, this.set, it);
2039
+ }
2040
+ };
2041
+
2042
+ // `GetSetRecord` abstract operation
2043
+ // https://tc39.es/proposal-set-methods/#sec-getsetrecord
2044
+ var getSetRecord$7 = function (obj) {
2045
+ anObject(obj);
2046
+ var numSize = +obj.size;
2047
+ // NOTE: If size is undefined, then numSize will be NaN
2048
+ // eslint-disable-next-line no-self-compare -- NaN check
2049
+ if (numSize !== numSize) throw new $TypeError(INVALID_SIZE);
2050
+ var intSize = toIntegerOrInfinity(numSize);
2051
+ if (intSize < 0) throw new $RangeError(INVALID_SIZE);
2052
+ return new SetRecord(obj, intSize);
2053
+ };
2054
+
2055
+ var aSet$6 = aSet$7;
2056
+ var SetHelpers$2 = setHelpers;
2057
+ var clone$2 = setClone;
2058
+ var size$4 = setSize;
2059
+ var getSetRecord$6 = getSetRecord$7;
2060
+ var iterateSet$2 = setIterate;
2061
+ var iterateSimple$5 = iterateSimple$7;
2062
+
2063
+ var has$4 = SetHelpers$2.has;
2064
+ var remove$1 = SetHelpers$2.remove;
2065
+
2066
+ // `Set.prototype.difference` method
2067
+ // https://github.com/tc39/proposal-set-methods
2068
+ var setDifference = function difference(other) {
2069
+ var O = aSet$6(this);
2070
+ var otherRec = getSetRecord$6(other);
2071
+ var result = clone$2(O);
2072
+ if (size$4(O) <= otherRec.size) iterateSet$2(O, function (e) {
2073
+ if (otherRec.includes(e)) remove$1(result, e);
2074
+ });
2075
+ else iterateSimple$5(otherRec.getIterator(), function (e) {
2076
+ if (has$4(O, e)) remove$1(result, e);
2077
+ });
2078
+ return result;
2079
+ };
2080
+
2081
+ var getBuiltIn = getBuiltIn$4;
2082
+
2083
+ var createSetLike = function (size) {
2084
+ return {
2085
+ size: size,
2086
+ has: function () {
2087
+ return false;
2088
+ },
2089
+ keys: function () {
2090
+ return {
2091
+ next: function () {
2092
+ return { done: true };
2093
+ }
2094
+ };
2095
+ }
2096
+ };
2097
+ };
2098
+
2099
+ var createSetLikeWithInfinitySize = function (size) {
2100
+ return {
2101
+ size: size,
2102
+ has: function () {
2103
+ return true;
2104
+ },
2105
+ keys: function () {
2106
+ throw new Error('e');
2107
+ }
2108
+ };
2109
+ };
2110
+
2111
+ var setMethodAcceptSetLike$7 = function (name, callback) {
2112
+ var Set = getBuiltIn('Set');
2113
+ try {
2114
+ new Set()[name](createSetLike(0));
2115
+ try {
2116
+ // late spec change, early WebKit ~ Safari 17.0 beta implementation does not pass it
2117
+ // https://github.com/tc39/proposal-set-methods/pull/88
2118
+ new Set()[name](createSetLike(-1));
2119
+ return false;
2120
+ } catch (error2) {
2121
+ if (!callback) return true;
2122
+ // early V8 implementation bug
2123
+ // https://issues.chromium.org/issues/351332634
2124
+ try {
2125
+ new Set()[name](createSetLikeWithInfinitySize(-Infinity));
2126
+ return false;
2127
+ } catch (error) {
2128
+ var set = new Set();
2129
+ set.add(1);
2130
+ set.add(2);
2131
+ return callback(set[name](createSetLikeWithInfinitySize(Infinity)));
2132
+ }
2133
+ }
2134
+ } catch (error) {
2135
+ return false;
2136
+ }
2137
+ };
2138
+
2139
+ var $$6 = _export;
2140
+ var difference = setDifference;
2141
+ var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
2142
+
2143
+ var INCORRECT$4 = !setMethodAcceptSetLike$6('difference', function (result) {
2144
+ return result.size === 0;
2145
+ });
2146
+
2147
+ // `Set.prototype.difference` method
2148
+ // https://tc39.es/ecma262/#sec-set.prototype.difference
2149
+ $$6({ target: 'Set', proto: true, real: true, forced: INCORRECT$4 }, {
2150
+ difference: difference
2151
+ });
2152
+
2153
+ var aSet$5 = aSet$7;
2154
+ var SetHelpers$1 = setHelpers;
2155
+ var size$3 = setSize;
2156
+ var getSetRecord$5 = getSetRecord$7;
2157
+ var iterateSet$1 = setIterate;
2158
+ var iterateSimple$4 = iterateSimple$7;
2159
+
2160
+ var Set$1 = SetHelpers$1.Set;
2161
+ var add$2 = SetHelpers$1.add;
2162
+ var has$3 = SetHelpers$1.has;
2163
+
2164
+ // `Set.prototype.intersection` method
2165
+ // https://github.com/tc39/proposal-set-methods
2166
+ var setIntersection = function intersection(other) {
2167
+ var O = aSet$5(this);
2168
+ var otherRec = getSetRecord$5(other);
2169
+ var result = new Set$1();
2170
+
2171
+ if (size$3(O) > otherRec.size) {
2172
+ iterateSimple$4(otherRec.getIterator(), function (e) {
2173
+ if (has$3(O, e)) add$2(result, e);
2174
+ });
2175
+ } else {
2176
+ iterateSet$1(O, function (e) {
2177
+ if (otherRec.includes(e)) add$2(result, e);
2178
+ });
2179
+ }
2180
+
2181
+ return result;
2182
+ };
2183
+
2184
+ var $$5 = _export;
2185
+ var fails = fails$c;
2186
+ var intersection = setIntersection;
2187
+ var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
2188
+
2189
+ var INCORRECT$3 = !setMethodAcceptSetLike$5('intersection', function (result) {
2190
+ return result.size === 2 && result.has(1) && result.has(2);
2191
+ }) || fails(function () {
2192
+ // eslint-disable-next-line es/no-array-from, es/no-set, es/no-set-prototype-intersection -- testing
2193
+ return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
2194
+ });
2195
+
2196
+ // `Set.prototype.intersection` method
2197
+ // https://tc39.es/ecma262/#sec-set.prototype.intersection
2198
+ $$5({ target: 'Set', proto: true, real: true, forced: INCORRECT$3 }, {
2199
+ intersection: intersection
2200
+ });
2201
+
2202
+ var aSet$4 = aSet$7;
2203
+ var has$2 = setHelpers.has;
2204
+ var size$2 = setSize;
2205
+ var getSetRecord$4 = getSetRecord$7;
2206
+ var iterateSet = setIterate;
2207
+ var iterateSimple$3 = iterateSimple$7;
2208
+ var iteratorClose$1 = iteratorClose$5;
2209
+
2210
+ // `Set.prototype.isDisjointFrom` method
2211
+ // https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom
2212
+ var setIsDisjointFrom = function isDisjointFrom(other) {
2213
+ var O = aSet$4(this);
2214
+ var otherRec = getSetRecord$4(other);
2215
+ if (size$2(O) <= otherRec.size) return iterateSet(O, function (e) {
2216
+ if (otherRec.includes(e)) return false;
2217
+ }, true) !== false;
2218
+ var iterator = otherRec.getIterator();
2219
+ return iterateSimple$3(iterator, function (e) {
2220
+ if (has$2(O, e)) return iteratorClose$1(iterator, 'normal', false);
2221
+ }) !== false;
2222
+ };
2223
+
2224
+ var $$4 = _export;
2225
+ var isDisjointFrom = setIsDisjointFrom;
2226
+ var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
2227
+
2228
+ var INCORRECT$2 = !setMethodAcceptSetLike$4('isDisjointFrom', function (result) {
2229
+ return !result;
2230
+ });
2231
+
2232
+ // `Set.prototype.isDisjointFrom` method
2233
+ // https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
2234
+ $$4({ target: 'Set', proto: true, real: true, forced: INCORRECT$2 }, {
2235
+ isDisjointFrom: isDisjointFrom
2236
+ });
2237
+
2238
+ var aSet$3 = aSet$7;
2239
+ var size$1 = setSize;
2240
+ var iterate = setIterate;
2241
+ var getSetRecord$3 = getSetRecord$7;
2242
+
2243
+ // `Set.prototype.isSubsetOf` method
2244
+ // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf
2245
+ var setIsSubsetOf = function isSubsetOf(other) {
2246
+ var O = aSet$3(this);
2247
+ var otherRec = getSetRecord$3(other);
2248
+ if (size$1(O) > otherRec.size) return false;
2249
+ return iterate(O, function (e) {
2250
+ if (!otherRec.includes(e)) return false;
2251
+ }, true) !== false;
2252
+ };
2253
+
2254
+ var $$3 = _export;
2255
+ var isSubsetOf = setIsSubsetOf;
2256
+ var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
2257
+
2258
+ var INCORRECT$1 = !setMethodAcceptSetLike$3('isSubsetOf', function (result) {
2259
+ return result;
2260
+ });
2261
+
2262
+ // `Set.prototype.isSubsetOf` method
2263
+ // https://tc39.es/ecma262/#sec-set.prototype.issubsetof
2264
+ $$3({ target: 'Set', proto: true, real: true, forced: INCORRECT$1 }, {
2265
+ isSubsetOf: isSubsetOf
2266
+ });
2267
+
2268
+ var aSet$2 = aSet$7;
2269
+ var has$1 = setHelpers.has;
2270
+ var size = setSize;
2271
+ var getSetRecord$2 = getSetRecord$7;
2272
+ var iterateSimple$2 = iterateSimple$7;
2273
+ var iteratorClose = iteratorClose$5;
2274
+
2275
+ // `Set.prototype.isSupersetOf` method
2276
+ // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf
2277
+ var setIsSupersetOf = function isSupersetOf(other) {
2278
+ var O = aSet$2(this);
2279
+ var otherRec = getSetRecord$2(other);
2280
+ if (size(O) < otherRec.size) return false;
2281
+ var iterator = otherRec.getIterator();
2282
+ return iterateSimple$2(iterator, function (e) {
2283
+ if (!has$1(O, e)) return iteratorClose(iterator, 'normal', false);
2284
+ }) !== false;
2285
+ };
2286
+
2287
+ var $$2 = _export;
2288
+ var isSupersetOf = setIsSupersetOf;
2289
+ var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
2290
+
2291
+ var INCORRECT = !setMethodAcceptSetLike$2('isSupersetOf', function (result) {
2292
+ return !result;
2293
+ });
2294
+
2295
+ // `Set.prototype.isSupersetOf` method
2296
+ // https://tc39.es/ecma262/#sec-set.prototype.issupersetof
2297
+ $$2({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
2298
+ isSupersetOf: isSupersetOf
2299
+ });
2300
+
2301
+ var aSet$1 = aSet$7;
2302
+ var SetHelpers = setHelpers;
2303
+ var clone$1 = setClone;
2304
+ var getSetRecord$1 = getSetRecord$7;
2305
+ var iterateSimple$1 = iterateSimple$7;
2306
+
2307
+ var add$1 = SetHelpers.add;
2308
+ var has = SetHelpers.has;
2309
+ var remove = SetHelpers.remove;
2310
+
2311
+ // `Set.prototype.symmetricDifference` method
2312
+ // https://github.com/tc39/proposal-set-methods
2313
+ var setSymmetricDifference = function symmetricDifference(other) {
2314
+ var O = aSet$1(this);
2315
+ var keysIter = getSetRecord$1(other).getIterator();
2316
+ var result = clone$1(O);
2317
+ iterateSimple$1(keysIter, function (e) {
2318
+ if (has(O, e)) remove(result, e);
2319
+ else add$1(result, e);
2320
+ });
2321
+ return result;
2322
+ };
2323
+
2324
+ var $$1 = _export;
2325
+ var symmetricDifference = setSymmetricDifference;
2326
+ var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
2327
+
2328
+ // `Set.prototype.symmetricDifference` method
2329
+ // https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
2330
+ $$1({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
2331
+ symmetricDifference: symmetricDifference
2332
+ });
2333
+
2334
+ var aSet = aSet$7;
2335
+ var add = setHelpers.add;
2336
+ var clone = setClone;
2337
+ var getSetRecord = getSetRecord$7;
2338
+ var iterateSimple = iterateSimple$7;
2339
+
2340
+ // `Set.prototype.union` method
2341
+ // https://github.com/tc39/proposal-set-methods
2342
+ var setUnion = function union(other) {
2343
+ var O = aSet(this);
2344
+ var keysIter = getSetRecord(other).getIterator();
2345
+ var result = clone(O);
2346
+ iterateSimple(keysIter, function (it) {
2347
+ add(result, it);
2348
+ });
2349
+ return result;
2350
+ };
2351
+
2352
+ var $ = _export;
2353
+ var union = setUnion;
2354
+ var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
2355
+
2356
+ // `Set.prototype.union` method
2357
+ // https://tc39.es/ecma262/#sec-set.prototype.union
2358
+ $({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
2359
+ union: union
2360
+ });
2361
+
2362
+ const cache = new Map();
2363
+ const processVariables = (theme, prefix, cacheKey) => {
2364
+ if (cache.has(cacheKey)) return cache.get(cacheKey);
2365
+ const variables = Object.fromEntries(Object.entries(theme).map(([key, value]) => {
2366
+ const cssVar = key.startsWith('--') ? key : `--${key}`;
2367
+ return [prefix && !cssVar.startsWith(`--${prefix}`) ? `--${prefix}-${cssVar.slice(2)}` : cssVar, value];
2368
+ }));
2369
+ cache.set(cacheKey, variables);
2370
+ return variables;
2371
+ };
2372
+ const resolveInheritance = themes => {
2373
+ const themeMap = new Map(themes.map(t => [t.name, t]));
2374
+ const resolved = new Map();
2375
+ const resolve = name => {
2376
+ if (resolved.has(name)) return resolved.get(name);
2377
+ const theme = themeMap.get(name);
2378
+ if (!theme) throw new Error(`Theme "${name}" not found`);
2379
+ const merged = theme.extends ? {
2380
+ ...resolve(theme.extends),
2381
+ ...theme.theme
2382
+ } : {
2383
+ ...theme.theme
2384
+ };
2385
+ resolved.set(name, merged);
2386
+ return merged;
2387
+ };
2388
+ return themes.map(t => ({
2389
+ ...t,
2390
+ theme: resolve(t.name)
2391
+ }));
2392
+ };
2393
+ function createThemeSwapper({
2394
+ themes,
2395
+ prefix = '',
2396
+ debug = false
2397
+ }) {
2398
+ return ({
2399
+ addBase
2400
+ }) => {
2401
+ if (!themes?.length) throw new Error('At least one theme required');
2402
+ const names = new Set();
2403
+ themes.forEach(({
2404
+ name,
2405
+ selectors
2406
+ }, i) => {
2407
+ if (!name) throw new Error(`Theme at index ${i} missing name`);
2408
+ if (names.has(name)) throw new Error(`Duplicate theme: "${name}"`);
2409
+ if (!selectors?.length) throw new Error(`Theme "${name}" needs selectors`);
2410
+ names.add(name);
2411
+ });
2412
+ if (debug) {
2413
+ console.log(`🎨 Processing ${themes.length} themes`);
2414
+ }
2415
+ const cssRules = resolveInheritance(themes).reduce((rules, {
2416
+ name,
2417
+ selectors,
2418
+ theme,
2419
+ mode
2420
+ }) => {
2421
+ const variables = processVariables(theme, prefix, `${name}-${prefix}`);
2422
+ const useWhere = !mode;
2423
+ const selector = selectors.map(s => useWhere ? `:where(${s})` : s).join(', ');
2424
+ rules[selector] = variables;
2425
+ return rules;
2426
+ }, {});
2427
+ if (debug) {
2428
+ console.log(`🎨 Generated ${Object.keys(cssRules).length} CSS rules`);
2429
+ }
2430
+ addBase(cssRules);
2431
+ };
2432
+ }
2433
+ const BeeqThemeSwapper = config => plugin(createThemeSwapper(Array.isArray(config) ? {
2434
+ themes: config
2435
+ } : config));
2436
+
256
2437
  const CSS_COLORS = {
257
2438
  '--bq-blue-100': '#e7f0fd',
258
2439
  '--bq-blue-200': '#d0e2fb',
@@ -1122,7 +3303,9 @@ const reset = {
1122
3303
  'list-style-type': 'none'
1123
3304
  },
1124
3305
  html: {
1125
- 'font-size': 'var(--bq-font-size--m)'
3306
+ 'font-family': 'var(--bq-font-family)',
3307
+ 'font-size': 'var(--bq-font-size--m)',
3308
+ 'text-size-adjust': 'none'
1126
3309
  },
1127
3310
  'html:focus-within': {
1128
3311
  'scroll-behavior': 'smooth'
@@ -1132,9 +3315,8 @@ const reset = {
1132
3315
  '-moz-osx-font-smoothing': 'grayscale',
1133
3316
  'background-color': 'var(--bq-background--primary)',
1134
3317
  color: 'var(--bq-text--primary)',
1135
- 'font-family': 'var(--bq-font-family)',
1136
3318
  'line-height': 'var(--bq-font-line-height--regular)',
1137
- 'min-height': '100vh',
3319
+ 'min-height': '100vb',
1138
3320
  'text-rendering': 'optimizeSpeed'
1139
3321
  },
1140
3322
  'a:not([class])': {
@@ -1389,25 +3571,27 @@ var index = {
1389
3571
  outlineOffset: 'var(--bq-ring-offset-width, 1px)'
1390
3572
  }
1391
3573
  });
1392
- }), ColorMix, LogicalProperties, ThemeSwapper({
3574
+ }), ColorMix, LogicalProperties, BeeqThemeSwapper({
1393
3575
  themes: [{
1394
- name: 'root',
3576
+ name: 'base',
1395
3577
  selectors: [':root'],
1396
3578
  theme: {
1397
3579
  ...DefaultRootTheme
1398
3580
  }
1399
3581
  }, {
1400
3582
  name: 'light',
1401
- selectors: [':root', '.light', '.beeq.light', '[bq-mode="light"]'],
3583
+ selectors: ['.light', '.beeq.light', '[bq-mode="light"]'],
1402
3584
  theme: {
1403
3585
  ...DefaultLightTheme
1404
- }
3586
+ },
3587
+ mode: true
1405
3588
  }, {
1406
3589
  name: 'dark',
1407
3590
  selectors: ['.dark', '.beeq.dark', '[bq-mode="dark"]'],
1408
3591
  theme: {
1409
3592
  ...DefaultDarkTheme
1410
- }
3593
+ },
3594
+ mode: true
1411
3595
  }, {
1412
3596
  name: 'endava',
1413
3597
  selectors: ['.endava', '[bq-theme="endava"]'],
@@ -1419,13 +3603,15 @@ var index = {
1419
3603
  selectors: ['.endava.light', '[bq-theme="endava"][bq-mode="light"]'],
1420
3604
  theme: {
1421
3605
  ...EndavaLightTheme
1422
- }
3606
+ },
3607
+ mode: true
1423
3608
  }, {
1424
3609
  name: 'endava-dark',
1425
3610
  selectors: ['.endava.dark', '[bq-theme="endava"][bq-mode="dark"]'],
1426
3611
  theme: {
1427
3612
  ...EndavaDarkTheme
1428
- }
3613
+ },
3614
+ mode: true
1429
3615
  }]
1430
3616
  })]
1431
3617
  };