@beeq/tailwindcss 1.11.0-beta.0 → 1.11.0-beta.2

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.esm.js CHANGED
@@ -9,245 +9,6 @@ const blendColor = ({
9
9
  [property]: `color-mix(in srgb, ${color}, ${base} ${percentage}%)`
10
10
  });
11
11
 
12
- const {
13
- default: flattenColorPalette$1
14
- } = require('tailwindcss/lib/util/flattenColorPalette');
15
- const ColorMix = plugin(function ({
16
- matchUtilities,
17
- theme
18
- }) {
19
- matchUtilities({
20
- 'bg-hover': value => blendColor({
21
- color: value,
22
- base: 'var(--bq-hover)'
23
- }),
24
- 'bg-active': value => blendColor({
25
- color: value,
26
- base: 'var(--bq-active)'
27
- }),
28
- 'border-hover': value => blendColor({
29
- color: value,
30
- base: 'var(--bq-hover)',
31
- property: 'border-color'
32
- }),
33
- 'border-active': value => blendColor({
34
- color: value,
35
- base: 'var(--bq-active)',
36
- property: 'border-color'
37
- }),
38
- 'text-hover': value => blendColor({
39
- color: value,
40
- base: 'var(--bq-hover)',
41
- property: 'color'
42
- }),
43
- 'text-active': value => blendColor({
44
- color: value,
45
- base: 'var(--bq-active)',
46
- property: 'color'
47
- })
48
- }, {
49
- values: flattenColorPalette$1(theme('colors'))
50
- });
51
- matchUtilities({
52
- 'bg-hover': value => blendColor({
53
- color: value,
54
- base: 'var(--bq-hover)'
55
- }),
56
- 'bg-active': value => blendColor({
57
- color: value,
58
- base: 'var(--bq-active)'
59
- })
60
- }, {
61
- values: flattenColorPalette$1(theme('backgroundColor'))
62
- });
63
- matchUtilities({
64
- 'border-hover': value => blendColor({
65
- color: value,
66
- base: 'var(--bq-hover)',
67
- property: 'border-color'
68
- }),
69
- 'border-active': value => blendColor({
70
- color: value,
71
- base: 'var(--bq-active)',
72
- property: 'border-color'
73
- })
74
- }, {
75
- values: flattenColorPalette$1(theme('borderColor'))
76
- });
77
- matchUtilities({
78
- 'text-hover': value => blendColor({
79
- color: value,
80
- base: 'var(--bq-hover)',
81
- property: 'color'
82
- }),
83
- 'text-active': value => blendColor({
84
- color: value,
85
- base: 'var(--bq-active)',
86
- property: 'color'
87
- })
88
- }, {
89
- values: flattenColorPalette$1(theme('textColor'))
90
- });
91
- matchUtilities({
92
- 'stroke-hover': value => blendColor({
93
- color: value,
94
- base: 'var(--bq-hover)',
95
- property: 'color'
96
- }),
97
- 'stroke-active': value => blendColor({
98
- color: value,
99
- base: 'var(--bq-active)',
100
- property: 'color'
101
- })
102
- }, {
103
- values: flattenColorPalette$1(theme('stroke'))
104
- });
105
- });
106
-
107
- const {
108
- default: flattenColorPalette
109
- } = require('tailwindcss/lib/util/flattenColorPalette');
110
- const LogicalProperties = plugin(function ({
111
- matchUtilities,
112
- theme
113
- }) {
114
- matchUtilities({
115
- 'border-bl': value => ({
116
- 'border-block-width': value
117
- }),
118
- 'border-bs': value => ({
119
- 'border-block-start-width': value
120
- }),
121
- 'border-be': value => ({
122
- 'border-block-end-width': value
123
- }),
124
- 'border-i': value => ({
125
- 'border-inline-width': value
126
- }),
127
- 'border-is': value => ({
128
- 'border-inline-start-width': value
129
- }),
130
- 'border-ie': value => ({
131
- 'border-inline-end-width': value
132
- })
133
- }, {
134
- values: theme('borderWidth')
135
- });
136
- matchUtilities({
137
- 'border-bl': value => ({
138
- 'border-block-color': value
139
- }),
140
- 'border-bs': value => ({
141
- 'border-block-start-color': value
142
- }),
143
- 'border-be': value => ({
144
- 'border-block-end-color': value
145
- }),
146
- 'border-i': value => ({
147
- 'border-inline-color': value
148
- }),
149
- 'border-is': value => ({
150
- 'border-inline-start-color': value
151
- }),
152
- 'border-ie': value => ({
153
- 'border-inline-end-color': value
154
- })
155
- }, {
156
- values: flattenColorPalette(theme('colors'))
157
- });
158
- matchUtilities({
159
- bs: value => ({
160
- 'block-size': value
161
- }),
162
- 'max-bs': value => ({
163
- 'max-block-size': value
164
- }),
165
- 'min-bs': value => ({
166
- 'min-block-size': value
167
- }),
168
- is: value => ({
169
- 'inline-size': value
170
- }),
171
- 'max-is': value => ({
172
- 'max-inline-size': value
173
- }),
174
- 'min-is': value => ({
175
- 'min-inline-size': value
176
- })
177
- }, {
178
- values: theme('width')
179
- });
180
- matchUtilities({
181
- 'border-bl': value => ({
182
- 'border-block': value
183
- }),
184
- 'border-bs': value => ({
185
- 'border-block-start': value
186
- }),
187
- 'border-be': value => ({
188
- 'border-block-end': value
189
- }),
190
- 'border-i': value => ({
191
- 'border-inline': value
192
- }),
193
- 'border-is': value => ({
194
- 'border-inline-start': value
195
- }),
196
- 'border-ie': value => ({
197
- 'border-inline-end': value
198
- }),
199
- 'p-b': value => ({
200
- 'padding-block': value
201
- }),
202
- 'p-bs': value => ({
203
- 'padding-block-start': value
204
- }),
205
- 'p-be': value => ({
206
- 'padding-block-end': value
207
- }),
208
- 'p-i': value => ({
209
- 'padding-inline': value
210
- })
211
- }, {
212
- values: theme('spacing')
213
- });
214
- matchUtilities({
215
- 'inset-b': value => ({
216
- 'inset-block': value
217
- }),
218
- 'inset-bs': value => ({
219
- 'inset-block-start': value
220
- }),
221
- 'inset-be': value => ({
222
- 'inset-block-end': value
223
- }),
224
- 'inset-i': value => ({
225
- 'inset-inline': value
226
- }),
227
- 'inset-is': value => ({
228
- 'inset-inline-start': value
229
- }),
230
- 'inset-ie': value => ({
231
- 'inset-inline-end': value
232
- }),
233
- 'm-b': value => ({
234
- 'margin-block': value
235
- }),
236
- 'm-bs': value => ({
237
- 'margin-block-start': value
238
- }),
239
- 'm-be': value => ({
240
- 'margin-block-end': value
241
- }),
242
- 'm-i': value => ({
243
- 'margin-inline': value
244
- })
245
- }, {
246
- values: theme('spacing'),
247
- supportsNegativeValues: true
248
- });
249
- });
250
-
251
12
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
252
13
 
253
14
  var check = function (it) {
@@ -1248,847 +1009,804 @@ var _export = function (options, source) {
1248
1009
  }
1249
1010
  };
1250
1011
 
1251
- var NATIVE_BIND$1 = functionBindNative;
1252
-
1253
- var FunctionPrototype = Function.prototype;
1254
- var apply$2 = FunctionPrototype.apply;
1255
- var call$9 = FunctionPrototype.call;
1256
-
1257
- // eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
1258
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$9.bind(apply$2) : function () {
1259
- return call$9.apply(apply$2, arguments);
1260
- });
1012
+ var isPrototypeOf$2 = objectIsPrototypeOf;
1261
1013
 
1262
- var uncurryThis$5 = functionUncurryThis;
1263
- var aCallable$6 = aCallable$8;
1014
+ var $TypeError$6 = TypeError;
1264
1015
 
1265
- var functionUncurryThisAccessor = function (object, key, method) {
1266
- try {
1267
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1268
- return uncurryThis$5(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
1269
- } catch (error) { /* empty */ }
1016
+ var anInstance$1 = function (it, Prototype) {
1017
+ if (isPrototypeOf$2(Prototype, it)) return it;
1018
+ throw new $TypeError$6('Incorrect invocation');
1270
1019
  };
1271
1020
 
1272
- var isObject$4 = isObject$a;
1273
-
1274
- var isPossiblePrototype$1 = function (argument) {
1275
- return isObject$4(argument) || argument === null;
1276
- };
1021
+ var fails$6 = fails$f;
1277
1022
 
1278
- var isPossiblePrototype = isPossiblePrototype$1;
1023
+ var correctPrototypeGetter = !fails$6(function () {
1024
+ function F() { /* empty */ }
1025
+ F.prototype.constructor = null;
1026
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1027
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1028
+ });
1279
1029
 
1280
- var $String$1 = String;
1281
- var $TypeError$6 = TypeError;
1030
+ var hasOwn$3 = hasOwnProperty_1;
1031
+ var isCallable$5 = isCallable$g;
1032
+ var toObject = toObject$2;
1033
+ var sharedKey$1 = sharedKey$3;
1034
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1282
1035
 
1283
- var aPossiblePrototype$1 = function (argument) {
1284
- if (isPossiblePrototype(argument)) return argument;
1285
- throw new $TypeError$6("Can't set " + $String$1(argument) + ' as a prototype');
1036
+ var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1037
+ var $Object$1 = Object;
1038
+ var ObjectPrototype = $Object$1.prototype;
1039
+
1040
+ // `Object.getPrototypeOf` method
1041
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
1042
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1043
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1044
+ var object = toObject(O);
1045
+ if (hasOwn$3(object, IE_PROTO$1)) return object[IE_PROTO$1];
1046
+ var constructor = object.constructor;
1047
+ if (isCallable$5(constructor) && object instanceof constructor) {
1048
+ return constructor.prototype;
1049
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1286
1050
  };
1287
1051
 
1288
- /* eslint-disable no-proto -- safe */
1289
- var uncurryThisAccessor$1 = functionUncurryThisAccessor;
1290
- var isObject$3 = isObject$a;
1291
- var requireObjectCoercible = requireObjectCoercible$3;
1292
- var aPossiblePrototype = aPossiblePrototype$1;
1052
+ var makeBuiltIn = makeBuiltInExports;
1053
+ var defineProperty$4 = objectDefineProperty;
1293
1054
 
1294
- // `Object.setPrototypeOf` method
1295
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1296
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1297
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1298
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1299
- var CORRECT_SETTER = false;
1300
- var test = {};
1301
- var setter;
1302
- try {
1303
- setter = uncurryThisAccessor$1(Object.prototype, '__proto__', 'set');
1304
- setter(test, []);
1305
- CORRECT_SETTER = test instanceof Array;
1306
- } catch (error) { /* empty */ }
1307
- return function setPrototypeOf(O, proto) {
1308
- requireObjectCoercible(O);
1309
- aPossiblePrototype(proto);
1310
- if (!isObject$3(O)) return O;
1311
- if (CORRECT_SETTER) setter(O, proto);
1312
- else O.__proto__ = proto;
1313
- return O;
1314
- };
1315
- }() : undefined);
1055
+ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1056
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1057
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1058
+ return defineProperty$4.f(target, name, descriptor);
1059
+ };
1316
1060
 
1317
- var defineProperty$4 = objectDefineProperty.f;
1061
+ var DESCRIPTORS$4 = descriptors;
1062
+ var definePropertyModule$1 = objectDefineProperty;
1063
+ var createPropertyDescriptor$2 = createPropertyDescriptor$5;
1318
1064
 
1319
- var proxyAccessor$1 = function (Target, Source, key) {
1320
- key in Target || defineProperty$4(Target, key, {
1321
- configurable: true,
1322
- get: function () { return Source[key]; },
1323
- set: function (it) { Source[key] = it; }
1324
- });
1065
+ var createProperty$2 = function (object, key, value) {
1066
+ if (DESCRIPTORS$4) definePropertyModule$1.f(object, key, createPropertyDescriptor$2(0, value));
1067
+ else object[key] = value;
1325
1068
  };
1326
1069
 
1327
- var isCallable$5 = isCallable$g;
1328
- var isObject$2 = isObject$a;
1329
- var setPrototypeOf$2 = objectSetPrototypeOf;
1070
+ var objectDefineProperties = {};
1330
1071
 
1331
- // makes subclassing work correct for wrapped built-ins
1332
- var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
1333
- var NewTarget, NewTargetPrototype;
1334
- if (
1335
- // it can work only with native `setPrototypeOf`
1336
- setPrototypeOf$2 &&
1337
- // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
1338
- isCallable$5(NewTarget = dummy.constructor) &&
1339
- NewTarget !== Wrapper &&
1340
- isObject$2(NewTargetPrototype = NewTarget.prototype) &&
1341
- NewTargetPrototype !== Wrapper.prototype
1342
- ) setPrototypeOf$2($this, NewTargetPrototype);
1343
- return $this;
1072
+ var internalObjectKeys = objectKeysInternal;
1073
+ var enumBugKeys$1 = enumBugKeys$3;
1074
+
1075
+ // `Object.keys` method
1076
+ // https://tc39.es/ecma262/#sec-object.keys
1077
+ // eslint-disable-next-line es/no-object-keys -- safe
1078
+ var objectKeys$1 = Object.keys || function keys(O) {
1079
+ return internalObjectKeys(O, enumBugKeys$1);
1344
1080
  };
1345
1081
 
1346
- var wellKnownSymbol$a = wellKnownSymbol$c;
1082
+ var DESCRIPTORS$3 = descriptors;
1083
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1084
+ var definePropertyModule = objectDefineProperty;
1085
+ var anObject$a = anObject$d;
1086
+ var toIndexedObject$1 = toIndexedObject$5;
1087
+ var objectKeys = objectKeys$1;
1347
1088
 
1348
- var TO_STRING_TAG$4 = wellKnownSymbol$a('toStringTag');
1349
- var test = {};
1089
+ // `Object.defineProperties` method
1090
+ // https://tc39.es/ecma262/#sec-object.defineproperties
1091
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1092
+ objectDefineProperties.f = DESCRIPTORS$3 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1093
+ anObject$a(O);
1094
+ var props = toIndexedObject$1(Properties);
1095
+ var keys = objectKeys(Properties);
1096
+ var length = keys.length;
1097
+ var index = 0;
1098
+ var key;
1099
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1100
+ return O;
1101
+ };
1350
1102
 
1351
- test[TO_STRING_TAG$4] = 'z';
1103
+ var getBuiltIn$2 = getBuiltIn$5;
1352
1104
 
1353
- var toStringTagSupport = String(test) === '[object z]';
1105
+ var html$1 = getBuiltIn$2('document', 'documentElement');
1354
1106
 
1355
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1356
- var isCallable$4 = isCallable$g;
1357
- var classofRaw$1 = classofRaw$2;
1358
- var wellKnownSymbol$9 = wellKnownSymbol$c;
1107
+ /* global ActiveXObject -- old IE, WSH */
1108
+ var anObject$9 = anObject$d;
1109
+ var definePropertiesModule = objectDefineProperties;
1110
+ var enumBugKeys = enumBugKeys$3;
1111
+ var hiddenKeys = hiddenKeys$4;
1112
+ var html = html$1;
1113
+ var documentCreateElement$1 = documentCreateElement$2;
1114
+ var sharedKey = sharedKey$3;
1359
1115
 
1360
- var TO_STRING_TAG$3 = wellKnownSymbol$9('toStringTag');
1361
- var $Object$1 = Object;
1116
+ var GT = '>';
1117
+ var LT = '<';
1118
+ var PROTOTYPE = 'prototype';
1119
+ var SCRIPT = 'script';
1120
+ var IE_PROTO = sharedKey('IE_PROTO');
1362
1121
 
1363
- // ES3 wrong here
1364
- var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
1122
+ var EmptyConstructor = function () { /* empty */ };
1365
1123
 
1366
- // fallback for IE11 Script Access Denied error
1367
- var tryGet = function (it, key) {
1368
- try {
1369
- return it[key];
1370
- } catch (error) { /* empty */ }
1124
+ var scriptTag = function (content) {
1125
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1371
1126
  };
1372
1127
 
1373
- // getting tag from ES6+ `Object.prototype.toString`
1374
- var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1375
- var O, tag, result;
1376
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1377
- // @@toStringTag case
1378
- : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$3)) == 'string' ? tag
1379
- // builtinTag case
1380
- : CORRECT_ARGUMENTS ? classofRaw$1(O)
1381
- // ES3 arguments fallback
1382
- : (result = classofRaw$1(O)) === 'Object' && isCallable$4(O.callee) ? 'Arguments' : result;
1128
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1129
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
1130
+ activeXDocument.write(scriptTag(''));
1131
+ activeXDocument.close();
1132
+ var temp = activeXDocument.parentWindow.Object;
1133
+ // eslint-disable-next-line no-useless-assignment -- avoid memory leak
1134
+ activeXDocument = null;
1135
+ return temp;
1383
1136
  };
1384
1137
 
1385
- var classof$1 = classof$2;
1386
-
1387
- var $String = String;
1388
-
1389
- var toString$1 = function (argument) {
1390
- if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1391
- return $String(argument);
1138
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
1139
+ var NullProtoObjectViaIFrame = function () {
1140
+ // Thrash, waste and sodomy: IE GC bug
1141
+ var iframe = documentCreateElement$1('iframe');
1142
+ var JS = 'java' + SCRIPT + ':';
1143
+ var iframeDocument;
1144
+ iframe.style.display = 'none';
1145
+ html.appendChild(iframe);
1146
+ // https://github.com/zloirock/core-js/issues/475
1147
+ iframe.src = String(JS);
1148
+ iframeDocument = iframe.contentWindow.document;
1149
+ iframeDocument.open();
1150
+ iframeDocument.write(scriptTag('document.F=Object'));
1151
+ iframeDocument.close();
1152
+ return iframeDocument.F;
1392
1153
  };
1393
1154
 
1394
- var toString = toString$1;
1395
-
1396
- var normalizeStringArgument$1 = function (argument, $default) {
1397
- return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
1155
+ // Check for document.domain and active x support
1156
+ // No need to use active x approach when document.domain is not set
1157
+ // see https://github.com/es-shims/es5-shim/issues/150
1158
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1159
+ // avoid IE GC bug
1160
+ var activeXDocument;
1161
+ var NullProtoObject = function () {
1162
+ try {
1163
+ activeXDocument = new ActiveXObject('htmlfile');
1164
+ } catch (error) { /* ignore */ }
1165
+ NullProtoObject = typeof document != 'undefined'
1166
+ ? document.domain && activeXDocument
1167
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1168
+ : NullProtoObjectViaIFrame()
1169
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
1170
+ var length = enumBugKeys.length;
1171
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1172
+ return NullProtoObject();
1398
1173
  };
1399
1174
 
1400
- var isObject$1 = isObject$a;
1401
- var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
1175
+ hiddenKeys[IE_PROTO] = true;
1402
1176
 
1403
- // `InstallErrorCause` abstract operation
1404
- // https://tc39.es/ecma262/#sec-installerrorcause
1405
- var installErrorCause$1 = function (O, options) {
1406
- if (isObject$1(options) && 'cause' in options) {
1407
- createNonEnumerableProperty$5(O, 'cause', options.cause);
1408
- }
1177
+ // `Object.create` method
1178
+ // https://tc39.es/ecma262/#sec-object.create
1179
+ // eslint-disable-next-line es/no-object-create -- safe
1180
+ var objectCreate = Object.create || function create(O, Properties) {
1181
+ var result;
1182
+ if (O !== null) {
1183
+ EmptyConstructor[PROTOTYPE] = anObject$9(O);
1184
+ result = new EmptyConstructor();
1185
+ EmptyConstructor[PROTOTYPE] = null;
1186
+ // add "__proto__" for Object.getPrototypeOf polyfill
1187
+ result[IE_PROTO] = O;
1188
+ } else result = NullProtoObject();
1189
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1409
1190
  };
1410
1191
 
1411
- var uncurryThis$4 = functionUncurryThis;
1412
-
1413
- var $Error = Error;
1414
- var replace = uncurryThis$4(''.replace);
1192
+ var fails$5 = fails$f;
1193
+ var isCallable$4 = isCallable$g;
1194
+ var isObject$4 = isObject$a;
1195
+ var getPrototypeOf$2 = objectGetPrototypeOf;
1196
+ var defineBuiltIn$2 = defineBuiltIn$4;
1197
+ var wellKnownSymbol$a = wellKnownSymbol$c;
1415
1198
 
1416
- var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
1417
- // eslint-disable-next-line redos/no-vulnerable, sonarjs/slow-regex -- safe
1418
- var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
1419
- var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
1199
+ var ITERATOR$5 = wellKnownSymbol$a('iterator');
1200
+ var BUGGY_SAFARI_ITERATORS$1 = false;
1420
1201
 
1421
- var errorStackClear = function (stack, dropEntries) {
1422
- if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
1423
- while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
1424
- } return stack;
1425
- };
1202
+ // `%IteratorPrototype%` object
1203
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1204
+ var IteratorPrototype$4, PrototypeOfArrayIteratorPrototype, arrayIterator;
1426
1205
 
1427
- var fails$6 = fails$f;
1428
- var createPropertyDescriptor$2 = createPropertyDescriptor$5;
1206
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1207
+ if ([].keys) {
1208
+ arrayIterator = [].keys();
1209
+ // Safari 8 has buggy iterators w/o `next`
1210
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1211
+ else {
1212
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$2(getPrototypeOf$2(arrayIterator));
1213
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$4 = PrototypeOfArrayIteratorPrototype;
1214
+ }
1215
+ }
1429
1216
 
1430
- var errorStackInstallable = !fails$6(function () {
1431
- var error = new Error('a');
1432
- if (!('stack' in error)) return true;
1433
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1434
- Object.defineProperty(error, 'stack', createPropertyDescriptor$2(1, 7));
1435
- return error.stack !== 7;
1217
+ var NEW_ITERATOR_PROTOTYPE = !isObject$4(IteratorPrototype$4) || fails$5(function () {
1218
+ var test = {};
1219
+ // FF44- legacy iterators case
1220
+ return IteratorPrototype$4[ITERATOR$5].call(test) !== test;
1436
1221
  });
1437
1222
 
1438
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
1439
- var clearErrorStack = errorStackClear;
1440
- var ERROR_STACK_INSTALLABLE = errorStackInstallable;
1223
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$4 = {};
1441
1224
 
1442
- // non-standard V8
1443
- // eslint-disable-next-line es/no-nonstandard-error-properties -- safe
1444
- var captureStackTrace = Error.captureStackTrace;
1225
+ // `%IteratorPrototype%[@@iterator]()` method
1226
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1227
+ if (!isCallable$4(IteratorPrototype$4[ITERATOR$5])) {
1228
+ defineBuiltIn$2(IteratorPrototype$4, ITERATOR$5, function () {
1229
+ return this;
1230
+ });
1231
+ }
1445
1232
 
1446
- var errorStackInstall = function (error, C, stack, dropEntries) {
1447
- if (ERROR_STACK_INSTALLABLE) {
1448
- if (captureStackTrace) captureStackTrace(error, C);
1449
- else createNonEnumerableProperty$4(error, 'stack', clearErrorStack(stack, dropEntries));
1450
- }
1233
+ var iteratorsCore = {
1234
+ IteratorPrototype: IteratorPrototype$4,
1235
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1451
1236
  };
1452
1237
 
1453
- var getBuiltIn$2 = getBuiltIn$5;
1454
- var hasOwn$3 = hasOwnProperty_1;
1455
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
1456
- var isPrototypeOf$2 = objectIsPrototypeOf;
1457
- var setPrototypeOf$1 = objectSetPrototypeOf;
1458
- var copyConstructorProperties = copyConstructorProperties$2;
1459
- var proxyAccessor = proxyAccessor$1;
1460
- var inheritIfRequired = inheritIfRequired$1;
1461
- var normalizeStringArgument = normalizeStringArgument$1;
1462
- var installErrorCause = installErrorCause$1;
1463
- var installErrorStack = errorStackInstall;
1464
- var DESCRIPTORS$4 = descriptors;
1465
-
1466
- var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
1467
- var STACK_TRACE_LIMIT = 'stackTraceLimit';
1468
- var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
1469
- var path = FULL_NAME.split('.');
1470
- var ERROR_NAME = path[path.length - 1];
1471
- var OriginalError = getBuiltIn$2.apply(null, path);
1238
+ var $$d = _export;
1239
+ var globalThis$4 = globalThis_1;
1240
+ var anInstance = anInstance$1;
1241
+ var anObject$8 = anObject$d;
1242
+ var isCallable$3 = isCallable$g;
1243
+ var getPrototypeOf$1 = objectGetPrototypeOf;
1244
+ var defineBuiltInAccessor = defineBuiltInAccessor$1;
1245
+ var createProperty$1 = createProperty$2;
1246
+ var fails$4 = fails$f;
1247
+ var hasOwn$2 = hasOwnProperty_1;
1248
+ var wellKnownSymbol$9 = wellKnownSymbol$c;
1249
+ var IteratorPrototype$3 = iteratorsCore.IteratorPrototype;
1250
+ var DESCRIPTORS$2 = descriptors;
1472
1251
 
1473
- if (!OriginalError) return;
1252
+ var CONSTRUCTOR = 'constructor';
1253
+ var ITERATOR$4 = 'Iterator';
1254
+ var TO_STRING_TAG$4 = wellKnownSymbol$9('toStringTag');
1474
1255
 
1475
- var OriginalErrorPrototype = OriginalError.prototype;
1256
+ var $TypeError$5 = TypeError;
1257
+ var NativeIterator = globalThis$4[ITERATOR$4];
1476
1258
 
1477
- // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
1478
- if (hasOwn$3(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
1259
+ // FF56- have non-standard global helper `Iterator`
1260
+ var FORCED$5 = !isCallable$3(NativeIterator)
1261
+ || NativeIterator.prototype !== IteratorPrototype$3
1262
+ // FF44- non-standard `Iterator` passes previous tests
1263
+ || !fails$4(function () { NativeIterator({}); });
1479
1264
 
1480
- if (!FORCED) return OriginalError;
1265
+ var IteratorConstructor = function Iterator() {
1266
+ anInstance(this, IteratorPrototype$3);
1267
+ if (getPrototypeOf$1(this) === IteratorPrototype$3) throw new $TypeError$5('Abstract class Iterator not directly constructable');
1268
+ };
1481
1269
 
1482
- var BaseError = getBuiltIn$2('Error');
1270
+ var defineIteratorPrototypeAccessor = function (key, value) {
1271
+ if (DESCRIPTORS$2) {
1272
+ defineBuiltInAccessor(IteratorPrototype$3, key, {
1273
+ configurable: true,
1274
+ get: function () {
1275
+ return value;
1276
+ },
1277
+ set: function (replacement) {
1278
+ anObject$8(this);
1279
+ if (this === IteratorPrototype$3) throw new $TypeError$5("You can't redefine this property");
1280
+ if (hasOwn$2(this, key)) this[key] = replacement;
1281
+ else createProperty$1(this, key, replacement);
1282
+ }
1283
+ });
1284
+ } else IteratorPrototype$3[key] = value;
1285
+ };
1483
1286
 
1484
- var WrappedError = wrapper(function (a, b) {
1485
- var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
1486
- var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
1487
- if (message !== undefined) createNonEnumerableProperty$3(result, 'message', message);
1488
- installErrorStack(result, WrappedError, result.stack, 2);
1489
- if (this && isPrototypeOf$2(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
1490
- if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
1491
- return result;
1492
- });
1287
+ if (!hasOwn$2(IteratorPrototype$3, TO_STRING_TAG$4)) defineIteratorPrototypeAccessor(TO_STRING_TAG$4, ITERATOR$4);
1493
1288
 
1494
- WrappedError.prototype = OriginalErrorPrototype;
1289
+ if (FORCED$5 || !hasOwn$2(IteratorPrototype$3, CONSTRUCTOR) || IteratorPrototype$3[CONSTRUCTOR] === Object) {
1290
+ defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
1291
+ }
1495
1292
 
1496
- if (ERROR_NAME !== 'Error') {
1497
- if (setPrototypeOf$1) setPrototypeOf$1(WrappedError, BaseError);
1498
- else copyConstructorProperties(WrappedError, BaseError, { name: true });
1499
- } else if (DESCRIPTORS$4 && STACK_TRACE_LIMIT in OriginalError) {
1500
- proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
1501
- proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
1502
- }
1293
+ IteratorConstructor.prototype = IteratorPrototype$3;
1503
1294
 
1504
- copyConstructorProperties(WrappedError, OriginalError);
1295
+ // `Iterator` constructor
1296
+ // https://tc39.es/ecma262/#sec-iterator
1297
+ $$d({ global: true, constructor: true, forced: FORCED$5 }, {
1298
+ Iterator: IteratorConstructor
1299
+ });
1505
1300
 
1506
- try {
1507
- // Safari 13- bug: WebAssembly errors does not have a proper `.name`
1508
- if (OriginalErrorPrototype.name !== ERROR_NAME) {
1509
- createNonEnumerableProperty$3(OriginalErrorPrototype, 'name', ERROR_NAME);
1510
- }
1511
- OriginalErrorPrototype.constructor = WrappedError;
1512
- } catch (error) { /* empty */ }
1301
+ var classofRaw$1 = classofRaw$2;
1302
+ var uncurryThis$5 = functionUncurryThis;
1513
1303
 
1514
- return WrappedError;
1304
+ var functionUncurryThisClause = function (fn) {
1305
+ // Nashorn bug:
1306
+ // https://github.com/zloirock/core-js/issues/1128
1307
+ // https://github.com/zloirock/core-js/issues/1130
1308
+ if (classofRaw$1(fn) === 'Function') return uncurryThis$5(fn);
1515
1309
  };
1516
1310
 
1517
- /* eslint-disable no-unused-vars -- required for functions `.length` */
1518
- var $$d = _export;
1519
- var globalThis$4 = globalThis_1;
1520
- var apply$1 = functionApply;
1521
- var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
1522
-
1523
- var WEB_ASSEMBLY = 'WebAssembly';
1524
- var WebAssembly = globalThis$4[WEB_ASSEMBLY];
1525
-
1526
- // eslint-disable-next-line es/no-error-cause -- feature detection
1527
- var FORCED$5 = new Error('e', { cause: 7 }).cause !== 7;
1311
+ var uncurryThis$4 = functionUncurryThisClause;
1312
+ var aCallable$6 = aCallable$8;
1313
+ var NATIVE_BIND$1 = functionBindNative;
1528
1314
 
1529
- var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
1530
- var O = {};
1531
- O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$5);
1532
- $$d({ global: true, constructor: true, arity: 1, forced: FORCED$5 }, O);
1533
- };
1315
+ var bind$1 = uncurryThis$4(uncurryThis$4.bind);
1534
1316
 
1535
- var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
1536
- if (WebAssembly && WebAssembly[ERROR_NAME]) {
1537
- var O = {};
1538
- O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$5);
1539
- $$d({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$5 }, O);
1540
- }
1317
+ // optional / simple context binding
1318
+ var functionBindContext = function (fn, that) {
1319
+ aCallable$6(fn);
1320
+ return that === undefined ? fn : NATIVE_BIND$1 ? bind$1(fn, that) : function (/* ...args */) {
1321
+ return fn.apply(that, arguments);
1322
+ };
1541
1323
  };
1542
1324
 
1543
- // https://tc39.es/ecma262/#sec-nativeerror
1544
- exportGlobalErrorCauseWrapper('Error', function (init) {
1545
- return function Error(message) { return apply$1(init, this, arguments); };
1546
- });
1547
- exportGlobalErrorCauseWrapper('EvalError', function (init) {
1548
- return function EvalError(message) { return apply$1(init, this, arguments); };
1549
- });
1550
- exportGlobalErrorCauseWrapper('RangeError', function (init) {
1551
- return function RangeError(message) { return apply$1(init, this, arguments); };
1552
- });
1553
- exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
1554
- return function ReferenceError(message) { return apply$1(init, this, arguments); };
1555
- });
1556
- exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
1557
- return function SyntaxError(message) { return apply$1(init, this, arguments); };
1558
- });
1559
- exportGlobalErrorCauseWrapper('TypeError', function (init) {
1560
- return function TypeError(message) { return apply$1(init, this, arguments); };
1561
- });
1562
- exportGlobalErrorCauseWrapper('URIError', function (init) {
1563
- return function URIError(message) { return apply$1(init, this, arguments); };
1564
- });
1565
- exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
1566
- return function CompileError(message) { return apply$1(init, this, arguments); };
1567
- });
1568
- exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
1569
- return function LinkError(message) { return apply$1(init, this, arguments); };
1570
- });
1571
- exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
1572
- return function RuntimeError(message) { return apply$1(init, this, arguments); };
1573
- });
1325
+ var iterators = {};
1574
1326
 
1575
- var isPrototypeOf$1 = objectIsPrototypeOf;
1327
+ var wellKnownSymbol$8 = wellKnownSymbol$c;
1328
+ var Iterators$4 = iterators;
1576
1329
 
1577
- var $TypeError$5 = TypeError;
1330
+ var ITERATOR$3 = wellKnownSymbol$8('iterator');
1331
+ var ArrayPrototype$1 = Array.prototype;
1578
1332
 
1579
- var anInstance$1 = function (it, Prototype) {
1580
- if (isPrototypeOf$1(Prototype, it)) return it;
1581
- throw new $TypeError$5('Incorrect invocation');
1333
+ // check on default Array iterator
1334
+ var isArrayIteratorMethod$1 = function (it) {
1335
+ return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$3] === it);
1582
1336
  };
1583
1337
 
1584
- var fails$5 = fails$f;
1338
+ var wellKnownSymbol$7 = wellKnownSymbol$c;
1585
1339
 
1586
- var correctPrototypeGetter = !fails$5(function () {
1587
- function F() { /* empty */ }
1588
- F.prototype.constructor = null;
1589
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1590
- return Object.getPrototypeOf(new F()) !== F.prototype;
1591
- });
1340
+ var TO_STRING_TAG$3 = wellKnownSymbol$7('toStringTag');
1341
+ var test = {};
1592
1342
 
1593
- var hasOwn$2 = hasOwnProperty_1;
1594
- var isCallable$3 = isCallable$g;
1595
- var toObject = toObject$2;
1596
- var sharedKey$1 = sharedKey$3;
1597
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1343
+ test[TO_STRING_TAG$3] = 'z';
1598
1344
 
1599
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1345
+ var toStringTagSupport = String(test) === '[object z]';
1346
+
1347
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1348
+ var isCallable$2 = isCallable$g;
1349
+ var classofRaw = classofRaw$2;
1350
+ var wellKnownSymbol$6 = wellKnownSymbol$c;
1351
+
1352
+ var TO_STRING_TAG$2 = wellKnownSymbol$6('toStringTag');
1600
1353
  var $Object = Object;
1601
- var ObjectPrototype = $Object.prototype;
1602
1354
 
1603
- // `Object.getPrototypeOf` method
1604
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1605
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1606
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1607
- var object = toObject(O);
1608
- if (hasOwn$2(object, IE_PROTO$1)) return object[IE_PROTO$1];
1609
- var constructor = object.constructor;
1610
- if (isCallable$3(constructor) && object instanceof constructor) {
1611
- return constructor.prototype;
1612
- } return object instanceof $Object ? ObjectPrototype : null;
1613
- };
1355
+ // ES3 wrong here
1356
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1614
1357
 
1615
- var makeBuiltIn = makeBuiltInExports;
1616
- var defineProperty$3 = objectDefineProperty;
1358
+ // fallback for IE11 Script Access Denied error
1359
+ var tryGet = function (it, key) {
1360
+ try {
1361
+ return it[key];
1362
+ } catch (error) { /* empty */ }
1363
+ };
1617
1364
 
1618
- var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1619
- if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1620
- if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1621
- return defineProperty$3.f(target, name, descriptor);
1365
+ // getting tag from ES6+ `Object.prototype.toString`
1366
+ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1367
+ var O, tag, result;
1368
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1369
+ // @@toStringTag case
1370
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG$2)) == 'string' ? tag
1371
+ // builtinTag case
1372
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1373
+ // ES3 arguments fallback
1374
+ : (result = classofRaw(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
1622
1375
  };
1623
1376
 
1624
- var DESCRIPTORS$3 = descriptors;
1625
- var definePropertyModule$1 = objectDefineProperty;
1626
- var createPropertyDescriptor$1 = createPropertyDescriptor$5;
1377
+ var classof$1 = classof$2;
1378
+ var getMethod$2 = getMethod$4;
1379
+ var isNullOrUndefined = isNullOrUndefined$3;
1380
+ var Iterators$3 = iterators;
1381
+ var wellKnownSymbol$5 = wellKnownSymbol$c;
1627
1382
 
1628
- var createProperty$2 = function (object, key, value) {
1629
- if (DESCRIPTORS$3) definePropertyModule$1.f(object, key, createPropertyDescriptor$1(0, value));
1630
- else object[key] = value;
1383
+ var ITERATOR$2 = wellKnownSymbol$5('iterator');
1384
+
1385
+ var getIteratorMethod$2 = function (it) {
1386
+ if (!isNullOrUndefined(it)) return getMethod$2(it, ITERATOR$2)
1387
+ || getMethod$2(it, '@@iterator')
1388
+ || Iterators$3[classof$1(it)];
1631
1389
  };
1632
1390
 
1633
- var objectDefineProperties = {};
1391
+ var call$9 = functionCall;
1392
+ var aCallable$5 = aCallable$8;
1393
+ var anObject$7 = anObject$d;
1394
+ var tryToString$1 = tryToString$3;
1395
+ var getIteratorMethod$1 = getIteratorMethod$2;
1634
1396
 
1635
- var internalObjectKeys = objectKeysInternal;
1636
- var enumBugKeys$1 = enumBugKeys$3;
1397
+ var $TypeError$4 = TypeError;
1637
1398
 
1638
- // `Object.keys` method
1639
- // https://tc39.es/ecma262/#sec-object.keys
1640
- // eslint-disable-next-line es/no-object-keys -- safe
1641
- var objectKeys$1 = Object.keys || function keys(O) {
1642
- return internalObjectKeys(O, enumBugKeys$1);
1399
+ var getIterator$1 = function (argument, usingIterator) {
1400
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1401
+ if (aCallable$5(iteratorMethod)) return anObject$7(call$9(iteratorMethod, argument));
1402
+ throw new $TypeError$4(tryToString$1(argument) + ' is not iterable');
1643
1403
  };
1644
1404
 
1645
- var DESCRIPTORS$2 = descriptors;
1646
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1647
- var definePropertyModule = objectDefineProperty;
1648
- var anObject$a = anObject$d;
1649
- var toIndexedObject$1 = toIndexedObject$5;
1650
- var objectKeys = objectKeys$1;
1405
+ var call$8 = functionCall;
1406
+ var anObject$6 = anObject$d;
1407
+ var getMethod$1 = getMethod$4;
1651
1408
 
1652
- // `Object.defineProperties` method
1653
- // https://tc39.es/ecma262/#sec-object.defineproperties
1654
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1655
- objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1656
- anObject$a(O);
1657
- var props = toIndexedObject$1(Properties);
1658
- var keys = objectKeys(Properties);
1659
- var length = keys.length;
1660
- var index = 0;
1661
- var key;
1662
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1663
- return O;
1409
+ var iteratorClose$9 = function (iterator, kind, value) {
1410
+ var innerResult, innerError;
1411
+ anObject$6(iterator);
1412
+ try {
1413
+ innerResult = getMethod$1(iterator, 'return');
1414
+ if (!innerResult) {
1415
+ if (kind === 'throw') throw value;
1416
+ return value;
1417
+ }
1418
+ innerResult = call$8(innerResult, iterator);
1419
+ } catch (error) {
1420
+ innerError = true;
1421
+ innerResult = error;
1422
+ }
1423
+ if (kind === 'throw') throw value;
1424
+ if (innerError) throw innerResult;
1425
+ anObject$6(innerResult);
1426
+ return value;
1664
1427
  };
1665
1428
 
1666
- var getBuiltIn$1 = getBuiltIn$5;
1429
+ var bind = functionBindContext;
1430
+ var call$7 = functionCall;
1431
+ var anObject$5 = anObject$d;
1432
+ var tryToString = tryToString$3;
1433
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
1434
+ var lengthOfArrayLike = lengthOfArrayLike$2;
1435
+ var isPrototypeOf$1 = objectIsPrototypeOf;
1436
+ var getIterator = getIterator$1;
1437
+ var getIteratorMethod = getIteratorMethod$2;
1438
+ var iteratorClose$8 = iteratorClose$9;
1667
1439
 
1668
- var html$1 = getBuiltIn$1('document', 'documentElement');
1440
+ var $TypeError$3 = TypeError;
1669
1441
 
1670
- /* global ActiveXObject -- old IE, WSH */
1671
- var anObject$9 = anObject$d;
1672
- var definePropertiesModule = objectDefineProperties;
1673
- var enumBugKeys = enumBugKeys$3;
1674
- var hiddenKeys = hiddenKeys$4;
1675
- var html = html$1;
1676
- var documentCreateElement$1 = documentCreateElement$2;
1677
- var sharedKey = sharedKey$3;
1442
+ var Result = function (stopped, result) {
1443
+ this.stopped = stopped;
1444
+ this.result = result;
1445
+ };
1678
1446
 
1679
- var GT = '>';
1680
- var LT = '<';
1681
- var PROTOTYPE = 'prototype';
1682
- var SCRIPT = 'script';
1683
- var IE_PROTO = sharedKey('IE_PROTO');
1447
+ var ResultPrototype = Result.prototype;
1684
1448
 
1685
- var EmptyConstructor = function () { /* empty */ };
1449
+ var iterate$5 = function (iterable, unboundFunction, options) {
1450
+ var that = options && options.that;
1451
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1452
+ var IS_RECORD = !!(options && options.IS_RECORD);
1453
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1454
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
1455
+ var fn = bind(unboundFunction, that);
1456
+ var iterator, iterFn, index, length, result, next, step;
1686
1457
 
1687
- var scriptTag = function (content) {
1688
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1689
- };
1458
+ var stop = function (condition) {
1459
+ if (iterator) iteratorClose$8(iterator, 'normal');
1460
+ return new Result(true, condition);
1461
+ };
1690
1462
 
1691
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1692
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1693
- activeXDocument.write(scriptTag(''));
1694
- activeXDocument.close();
1695
- var temp = activeXDocument.parentWindow.Object;
1696
- // eslint-disable-next-line no-useless-assignment -- avoid memory leak
1697
- activeXDocument = null;
1698
- return temp;
1699
- };
1463
+ var callFn = function (value) {
1464
+ if (AS_ENTRIES) {
1465
+ anObject$5(value);
1466
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1467
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
1468
+ };
1700
1469
 
1701
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1702
- var NullProtoObjectViaIFrame = function () {
1703
- // Thrash, waste and sodomy: IE GC bug
1704
- var iframe = documentCreateElement$1('iframe');
1705
- var JS = 'java' + SCRIPT + ':';
1706
- var iframeDocument;
1707
- iframe.style.display = 'none';
1708
- html.appendChild(iframe);
1709
- // https://github.com/zloirock/core-js/issues/475
1710
- iframe.src = String(JS);
1711
- iframeDocument = iframe.contentWindow.document;
1712
- iframeDocument.open();
1713
- iframeDocument.write(scriptTag('document.F=Object'));
1714
- iframeDocument.close();
1715
- return iframeDocument.F;
1716
- };
1470
+ if (IS_RECORD) {
1471
+ iterator = iterable.iterator;
1472
+ } else if (IS_ITERATOR) {
1473
+ iterator = iterable;
1474
+ } else {
1475
+ iterFn = getIteratorMethod(iterable);
1476
+ if (!iterFn) throw new $TypeError$3(tryToString(iterable) + ' is not iterable');
1477
+ // optimisation for array iterators
1478
+ if (isArrayIteratorMethod(iterFn)) {
1479
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
1480
+ result = callFn(iterable[index]);
1481
+ if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
1482
+ } return new Result(false);
1483
+ }
1484
+ iterator = getIterator(iterable, iterFn);
1485
+ }
1717
1486
 
1718
- // Check for document.domain and active x support
1719
- // No need to use active x approach when document.domain is not set
1720
- // see https://github.com/es-shims/es5-shim/issues/150
1721
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1722
- // avoid IE GC bug
1723
- var activeXDocument;
1724
- var NullProtoObject = function () {
1725
- try {
1726
- activeXDocument = new ActiveXObject('htmlfile');
1727
- } catch (error) { /* ignore */ }
1728
- NullProtoObject = typeof document != 'undefined'
1729
- ? document.domain && activeXDocument
1730
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1731
- : NullProtoObjectViaIFrame()
1732
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1733
- var length = enumBugKeys.length;
1734
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1735
- return NullProtoObject();
1487
+ next = IS_RECORD ? iterable.next : iterator.next;
1488
+ while (!(step = call$7(next, iterator)).done) {
1489
+ try {
1490
+ result = callFn(step.value);
1491
+ } catch (error) {
1492
+ iteratorClose$8(iterator, 'throw', error);
1493
+ }
1494
+ if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
1495
+ } return new Result(false);
1736
1496
  };
1737
1497
 
1738
- hiddenKeys[IE_PROTO] = true;
1739
-
1740
- // `Object.create` method
1741
- // https://tc39.es/ecma262/#sec-object.create
1742
- // eslint-disable-next-line es/no-object-create -- safe
1743
- var objectCreate = Object.create || function create(O, Properties) {
1744
- var result;
1745
- if (O !== null) {
1746
- EmptyConstructor[PROTOTYPE] = anObject$9(O);
1747
- result = new EmptyConstructor();
1748
- EmptyConstructor[PROTOTYPE] = null;
1749
- // add "__proto__" for Object.getPrototypeOf polyfill
1750
- result[IE_PROTO] = O;
1751
- } else result = NullProtoObject();
1752
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1498
+ // `GetIteratorDirect(obj)` abstract operation
1499
+ // https://tc39.es/ecma262/#sec-getiteratordirect
1500
+ var getIteratorDirect$4 = function (obj) {
1501
+ return {
1502
+ iterator: obj,
1503
+ next: obj.next,
1504
+ done: false
1505
+ };
1753
1506
  };
1754
1507
 
1755
- var fails$4 = fails$f;
1756
- var isCallable$2 = isCallable$g;
1757
- var isObject = isObject$a;
1758
- var getPrototypeOf$2 = objectGetPrototypeOf;
1759
- var defineBuiltIn$2 = defineBuiltIn$4;
1760
- var wellKnownSymbol$8 = wellKnownSymbol$c;
1508
+ var globalThis$3 = globalThis_1;
1761
1509
 
1762
- var ITERATOR$5 = wellKnownSymbol$8('iterator');
1763
- var BUGGY_SAFARI_ITERATORS$1 = false;
1510
+ // https://github.com/tc39/ecma262/pull/3467
1511
+ var iteratorHelperWithoutClosingOnEarlyError$3 = function (METHOD_NAME, ExpectedError) {
1512
+ var Iterator = globalThis$3.Iterator;
1513
+ var IteratorPrototype = Iterator && Iterator.prototype;
1514
+ var method = IteratorPrototype && IteratorPrototype[METHOD_NAME];
1764
1515
 
1765
- // `%IteratorPrototype%` object
1766
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1767
- var IteratorPrototype$4, PrototypeOfArrayIteratorPrototype, arrayIterator;
1516
+ var CLOSED = false;
1768
1517
 
1769
- /* eslint-disable es/no-array-prototype-keys -- safe */
1770
- if ([].keys) {
1771
- arrayIterator = [].keys();
1772
- // Safari 8 has buggy iterators w/o `next`
1773
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1774
- else {
1775
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$2(getPrototypeOf$2(arrayIterator));
1776
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$4 = PrototypeOfArrayIteratorPrototype;
1518
+ if (method) try {
1519
+ method.call({
1520
+ next: function () { return { done: true }; },
1521
+ 'return': function () { CLOSED = true; }
1522
+ }, -1);
1523
+ } catch (error) {
1524
+ // https://bugs.webkit.org/show_bug.cgi?id=291195
1525
+ if (!(error instanceof ExpectedError)) CLOSED = false;
1777
1526
  }
1778
- }
1779
-
1780
- var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$4) || fails$4(function () {
1781
- var test = {};
1782
- // FF44- legacy iterators case
1783
- return IteratorPrototype$4[ITERATOR$5].call(test) !== test;
1784
- });
1785
-
1786
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$4 = {};
1787
-
1788
- // `%IteratorPrototype%[@@iterator]()` method
1789
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1790
- if (!isCallable$2(IteratorPrototype$4[ITERATOR$5])) {
1791
- defineBuiltIn$2(IteratorPrototype$4, ITERATOR$5, function () {
1792
- return this;
1793
- });
1794
- }
1795
1527
 
1796
- var iteratorsCore = {
1797
- IteratorPrototype: IteratorPrototype$4,
1798
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1528
+ if (!CLOSED) return method;
1799
1529
  };
1800
1530
 
1801
1531
  var $$c = _export;
1802
- var globalThis$3 = globalThis_1;
1803
- var anInstance = anInstance$1;
1804
- var anObject$8 = anObject$d;
1805
- var isCallable$1 = isCallable$g;
1806
- var getPrototypeOf$1 = objectGetPrototypeOf;
1807
- var defineBuiltInAccessor = defineBuiltInAccessor$1;
1808
- var createProperty$1 = createProperty$2;
1809
- var fails$3 = fails$f;
1810
- var hasOwn$1 = hasOwnProperty_1;
1811
- var wellKnownSymbol$7 = wellKnownSymbol$c;
1812
- var IteratorPrototype$3 = iteratorsCore.IteratorPrototype;
1813
- var DESCRIPTORS$1 = descriptors;
1814
-
1815
- var CONSTRUCTOR = 'constructor';
1816
- var ITERATOR$4 = 'Iterator';
1817
- var TO_STRING_TAG$2 = wellKnownSymbol$7('toStringTag');
1532
+ var call$6 = functionCall;
1533
+ var iterate$4 = iterate$5;
1534
+ var aCallable$4 = aCallable$8;
1535
+ var anObject$4 = anObject$d;
1536
+ var getIteratorDirect$3 = getIteratorDirect$4;
1537
+ var iteratorClose$7 = iteratorClose$9;
1538
+ var iteratorHelperWithoutClosingOnEarlyError$2 = iteratorHelperWithoutClosingOnEarlyError$3;
1818
1539
 
1819
- var $TypeError$4 = TypeError;
1820
- var NativeIterator = globalThis$3[ITERATOR$4];
1540
+ var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$2('forEach', TypeError);
1821
1541
 
1822
- // FF56- have non-standard global helper `Iterator`
1823
- var FORCED$4 = !isCallable$1(NativeIterator)
1824
- || NativeIterator.prototype !== IteratorPrototype$3
1825
- // FF44- non-standard `Iterator` passes previous tests
1826
- || !fails$3(function () { NativeIterator({}); });
1542
+ // `Iterator.prototype.forEach` method
1543
+ // https://tc39.es/ecma262/#sec-iterator.prototype.foreach
1544
+ $$c({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosingOnEarlyError }, {
1545
+ forEach: function forEach(fn) {
1546
+ anObject$4(this);
1547
+ try {
1548
+ aCallable$4(fn);
1549
+ } catch (error) {
1550
+ iteratorClose$7(this, 'throw', error);
1551
+ }
1827
1552
 
1828
- var IteratorConstructor = function Iterator() {
1829
- anInstance(this, IteratorPrototype$3);
1830
- if (getPrototypeOf$1(this) === IteratorPrototype$3) throw new $TypeError$4('Abstract class Iterator not directly constructable');
1831
- };
1553
+ if (forEachWithoutClosingOnEarlyError) return call$6(forEachWithoutClosingOnEarlyError, this, fn);
1832
1554
 
1833
- var defineIteratorPrototypeAccessor = function (key, value) {
1834
- if (DESCRIPTORS$1) {
1835
- defineBuiltInAccessor(IteratorPrototype$3, key, {
1836
- configurable: true,
1837
- get: function () {
1838
- return value;
1839
- },
1840
- set: function (replacement) {
1841
- anObject$8(this);
1842
- if (this === IteratorPrototype$3) throw new $TypeError$4("You can't redefine this property");
1843
- if (hasOwn$1(this, key)) this[key] = replacement;
1844
- else createProperty$1(this, key, replacement);
1845
- }
1846
- });
1847
- } else IteratorPrototype$3[key] = value;
1555
+ var record = getIteratorDirect$3(this);
1556
+ var counter = 0;
1557
+ iterate$4(record, function (value) {
1558
+ fn(value, counter++);
1559
+ }, { IS_RECORD: true });
1560
+ }
1561
+ });
1562
+
1563
+ // iterable DOM collections
1564
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1565
+ var domIterables = {
1566
+ CSSRuleList: 0,
1567
+ CSSStyleDeclaration: 0,
1568
+ CSSValueList: 0,
1569
+ ClientRectList: 0,
1570
+ DOMRectList: 0,
1571
+ DOMStringList: 0,
1572
+ DOMTokenList: 1,
1573
+ DataTransferItemList: 0,
1574
+ FileList: 0,
1575
+ HTMLAllCollection: 0,
1576
+ HTMLCollection: 0,
1577
+ HTMLFormElement: 0,
1578
+ HTMLSelectElement: 0,
1579
+ MediaList: 0,
1580
+ MimeTypeArray: 0,
1581
+ NamedNodeMap: 0,
1582
+ NodeList: 1,
1583
+ PaintRequestList: 0,
1584
+ Plugin: 0,
1585
+ PluginArray: 0,
1586
+ SVGLengthList: 0,
1587
+ SVGNumberList: 0,
1588
+ SVGPathSegList: 0,
1589
+ SVGPointList: 0,
1590
+ SVGStringList: 0,
1591
+ SVGTransformList: 0,
1592
+ SourceBufferList: 0,
1593
+ StyleSheetList: 0,
1594
+ TextTrackCueList: 0,
1595
+ TextTrackList: 0,
1596
+ TouchList: 0
1848
1597
  };
1849
1598
 
1850
- if (!hasOwn$1(IteratorPrototype$3, TO_STRING_TAG$2)) defineIteratorPrototypeAccessor(TO_STRING_TAG$2, ITERATOR$4);
1599
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1600
+ var documentCreateElement = documentCreateElement$2;
1851
1601
 
1852
- if (FORCED$4 || !hasOwn$1(IteratorPrototype$3, CONSTRUCTOR) || IteratorPrototype$3[CONSTRUCTOR] === Object) {
1853
- defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
1854
- }
1602
+ var classList = documentCreateElement('span').classList;
1603
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1855
1604
 
1856
- IteratorConstructor.prototype = IteratorPrototype$3;
1605
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1857
1606
 
1858
- // `Iterator` constructor
1859
- // https://tc39.es/ecma262/#sec-iterator
1860
- $$c({ global: true, constructor: true, forced: FORCED$4 }, {
1861
- Iterator: IteratorConstructor
1862
- });
1607
+ var wellKnownSymbol$4 = wellKnownSymbol$c;
1608
+ var create$2 = objectCreate;
1609
+ var defineProperty$3 = objectDefineProperty.f;
1863
1610
 
1864
- var classofRaw = classofRaw$2;
1865
- var uncurryThis$3 = functionUncurryThis;
1611
+ var UNSCOPABLES = wellKnownSymbol$4('unscopables');
1612
+ var ArrayPrototype = Array.prototype;
1866
1613
 
1867
- var functionUncurryThisClause = function (fn) {
1868
- // Nashorn bug:
1869
- // https://github.com/zloirock/core-js/issues/1128
1870
- // https://github.com/zloirock/core-js/issues/1130
1871
- if (classofRaw(fn) === 'Function') return uncurryThis$3(fn);
1614
+ // Array.prototype[@@unscopables]
1615
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1616
+ if (ArrayPrototype[UNSCOPABLES] === undefined) {
1617
+ defineProperty$3(ArrayPrototype, UNSCOPABLES, {
1618
+ configurable: true,
1619
+ value: create$2(null)
1620
+ });
1621
+ }
1622
+
1623
+ // add a key to Array.prototype[@@unscopables]
1624
+ var addToUnscopables$1 = function (key) {
1625
+ ArrayPrototype[UNSCOPABLES][key] = true;
1872
1626
  };
1873
1627
 
1874
- var uncurryThis$2 = functionUncurryThisClause;
1875
- var aCallable$5 = aCallable$8;
1876
- var NATIVE_BIND = functionBindNative;
1628
+ var defineProperty$2 = objectDefineProperty.f;
1629
+ var hasOwn$1 = hasOwnProperty_1;
1630
+ var wellKnownSymbol$3 = wellKnownSymbol$c;
1877
1631
 
1878
- var bind$1 = uncurryThis$2(uncurryThis$2.bind);
1632
+ var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
1879
1633
 
1880
- // optional / simple context binding
1881
- var functionBindContext = function (fn, that) {
1882
- aCallable$5(fn);
1883
- return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
1884
- return fn.apply(that, arguments);
1885
- };
1634
+ var setToStringTag$3 = function (target, TAG, STATIC) {
1635
+ if (target && !STATIC) target = target.prototype;
1636
+ if (target && !hasOwn$1(target, TO_STRING_TAG$1)) {
1637
+ defineProperty$2(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
1638
+ }
1886
1639
  };
1887
1640
 
1888
- var iterators = {};
1889
-
1890
- var wellKnownSymbol$6 = wellKnownSymbol$c;
1891
- var Iterators$4 = iterators;
1641
+ var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
1642
+ var create$1 = objectCreate;
1643
+ var createPropertyDescriptor$1 = createPropertyDescriptor$5;
1644
+ var setToStringTag$2 = setToStringTag$3;
1645
+ var Iterators$2 = iterators;
1892
1646
 
1893
- var ITERATOR$3 = wellKnownSymbol$6('iterator');
1894
- var ArrayPrototype$1 = Array.prototype;
1647
+ var returnThis$1 = function () { return this; };
1895
1648
 
1896
- // check on default Array iterator
1897
- var isArrayIteratorMethod$1 = function (it) {
1898
- return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$3] === it);
1649
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1650
+ var TO_STRING_TAG = NAME + ' Iterator';
1651
+ IteratorConstructor.prototype = create$1(IteratorPrototype$2, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
1652
+ setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
1653
+ Iterators$2[TO_STRING_TAG] = returnThis$1;
1654
+ return IteratorConstructor;
1899
1655
  };
1900
1656
 
1901
- var classof = classof$2;
1902
- var getMethod$2 = getMethod$4;
1903
- var isNullOrUndefined = isNullOrUndefined$3;
1904
- var Iterators$3 = iterators;
1905
- var wellKnownSymbol$5 = wellKnownSymbol$c;
1657
+ var uncurryThis$3 = functionUncurryThis;
1658
+ var aCallable$3 = aCallable$8;
1906
1659
 
1907
- var ITERATOR$2 = wellKnownSymbol$5('iterator');
1660
+ var functionUncurryThisAccessor = function (object, key, method) {
1661
+ try {
1662
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1663
+ return uncurryThis$3(aCallable$3(Object.getOwnPropertyDescriptor(object, key)[method]));
1664
+ } catch (error) { /* empty */ }
1665
+ };
1908
1666
 
1909
- var getIteratorMethod$2 = function (it) {
1910
- if (!isNullOrUndefined(it)) return getMethod$2(it, ITERATOR$2)
1911
- || getMethod$2(it, '@@iterator')
1912
- || Iterators$3[classof(it)];
1667
+ var isObject$3 = isObject$a;
1668
+
1669
+ var isPossiblePrototype$1 = function (argument) {
1670
+ return isObject$3(argument) || argument === null;
1913
1671
  };
1914
1672
 
1915
- var call$8 = functionCall;
1916
- var aCallable$4 = aCallable$8;
1917
- var anObject$7 = anObject$d;
1918
- var tryToString$1 = tryToString$3;
1919
- var getIteratorMethod$1 = getIteratorMethod$2;
1673
+ var isPossiblePrototype = isPossiblePrototype$1;
1920
1674
 
1921
- var $TypeError$3 = TypeError;
1675
+ var $String$1 = String;
1676
+ var $TypeError$2 = TypeError;
1922
1677
 
1923
- var getIterator$1 = function (argument, usingIterator) {
1924
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1925
- if (aCallable$4(iteratorMethod)) return anObject$7(call$8(iteratorMethod, argument));
1926
- throw new $TypeError$3(tryToString$1(argument) + ' is not iterable');
1678
+ var aPossiblePrototype$1 = function (argument) {
1679
+ if (isPossiblePrototype(argument)) return argument;
1680
+ throw new $TypeError$2("Can't set " + $String$1(argument) + ' as a prototype');
1927
1681
  };
1928
1682
 
1929
- var call$7 = functionCall;
1930
- var anObject$6 = anObject$d;
1931
- var getMethod$1 = getMethod$4;
1683
+ /* eslint-disable no-proto -- safe */
1684
+ var uncurryThisAccessor$1 = functionUncurryThisAccessor;
1685
+ var isObject$2 = isObject$a;
1686
+ var requireObjectCoercible = requireObjectCoercible$3;
1687
+ var aPossiblePrototype = aPossiblePrototype$1;
1932
1688
 
1933
- var iteratorClose$9 = function (iterator, kind, value) {
1934
- var innerResult, innerError;
1935
- anObject$6(iterator);
1689
+ // `Object.setPrototypeOf` method
1690
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
1691
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1692
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1693
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1694
+ var CORRECT_SETTER = false;
1695
+ var test = {};
1696
+ var setter;
1936
1697
  try {
1937
- innerResult = getMethod$1(iterator, 'return');
1938
- if (!innerResult) {
1939
- if (kind === 'throw') throw value;
1940
- return value;
1941
- }
1942
- innerResult = call$7(innerResult, iterator);
1943
- } catch (error) {
1944
- innerError = true;
1945
- innerResult = error;
1946
- }
1947
- if (kind === 'throw') throw value;
1948
- if (innerError) throw innerResult;
1949
- anObject$6(innerResult);
1950
- return value;
1951
- };
1698
+ setter = uncurryThisAccessor$1(Object.prototype, '__proto__', 'set');
1699
+ setter(test, []);
1700
+ CORRECT_SETTER = test instanceof Array;
1701
+ } catch (error) { /* empty */ }
1702
+ return function setPrototypeOf(O, proto) {
1703
+ requireObjectCoercible(O);
1704
+ aPossiblePrototype(proto);
1705
+ if (!isObject$2(O)) return O;
1706
+ if (CORRECT_SETTER) setter(O, proto);
1707
+ else O.__proto__ = proto;
1708
+ return O;
1709
+ };
1710
+ }() : undefined);
1952
1711
 
1953
- var bind = functionBindContext;
1954
- var call$6 = functionCall;
1955
- var anObject$5 = anObject$d;
1956
- var tryToString = tryToString$3;
1957
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
1958
- var lengthOfArrayLike = lengthOfArrayLike$2;
1959
- var isPrototypeOf = objectIsPrototypeOf;
1960
- var getIterator = getIterator$1;
1961
- var getIteratorMethod = getIteratorMethod$2;
1962
- var iteratorClose$8 = iteratorClose$9;
1712
+ var $$b = _export;
1713
+ var call$5 = functionCall;
1714
+ var FunctionName = functionName;
1715
+ var isCallable$1 = isCallable$g;
1716
+ var createIteratorConstructor = iteratorCreateConstructor;
1717
+ var getPrototypeOf = objectGetPrototypeOf;
1718
+ var setPrototypeOf$2 = objectSetPrototypeOf;
1719
+ var setToStringTag$1 = setToStringTag$3;
1720
+ var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
1721
+ var defineBuiltIn$1 = defineBuiltIn$4;
1722
+ var wellKnownSymbol$2 = wellKnownSymbol$c;
1723
+ var Iterators$1 = iterators;
1724
+ var IteratorsCore = iteratorsCore;
1963
1725
 
1964
- var $TypeError$2 = TypeError;
1726
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1727
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1728
+ var IteratorPrototype$1 = IteratorsCore.IteratorPrototype;
1729
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1730
+ var ITERATOR$1 = wellKnownSymbol$2('iterator');
1731
+ var KEYS = 'keys';
1732
+ var VALUES = 'values';
1733
+ var ENTRIES = 'entries';
1965
1734
 
1966
- var Result = function (stopped, result) {
1967
- this.stopped = stopped;
1968
- this.result = result;
1969
- };
1735
+ var returnThis = function () { return this; };
1970
1736
 
1971
- var ResultPrototype = Result.prototype;
1737
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1738
+ createIteratorConstructor(IteratorConstructor, NAME, next);
1972
1739
 
1973
- var iterate$5 = function (iterable, unboundFunction, options) {
1974
- var that = options && options.that;
1975
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1976
- var IS_RECORD = !!(options && options.IS_RECORD);
1977
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1978
- var INTERRUPTED = !!(options && options.INTERRUPTED);
1979
- var fn = bind(unboundFunction, that);
1980
- var iterator, iterFn, index, length, result, next, step;
1740
+ var getIterationMethod = function (KIND) {
1741
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1742
+ if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1981
1743
 
1982
- var stop = function (condition) {
1983
- if (iterator) iteratorClose$8(iterator, 'normal');
1984
- return new Result(true, condition);
1985
- };
1744
+ switch (KIND) {
1745
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1746
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1747
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1748
+ }
1986
1749
 
1987
- var callFn = function (value) {
1988
- if (AS_ENTRIES) {
1989
- anObject$5(value);
1990
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1991
- } return INTERRUPTED ? fn(value, stop) : fn(value);
1750
+ return function () { return new IteratorConstructor(this); };
1992
1751
  };
1993
1752
 
1994
- if (IS_RECORD) {
1995
- iterator = iterable.iterator;
1996
- } else if (IS_ITERATOR) {
1997
- iterator = iterable;
1998
- } else {
1999
- iterFn = getIteratorMethod(iterable);
2000
- if (!iterFn) throw new $TypeError$2(tryToString(iterable) + ' is not iterable');
2001
- // optimisation for array iterators
2002
- if (isArrayIteratorMethod(iterFn)) {
2003
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2004
- result = callFn(iterable[index]);
2005
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
2006
- } return new Result(false);
2007
- }
2008
- iterator = getIterator(iterable, iterFn);
2009
- }
1753
+ var TO_STRING_TAG = NAME + ' Iterator';
1754
+ var INCORRECT_VALUES_NAME = false;
1755
+ var IterablePrototype = Iterable.prototype;
1756
+ var nativeIterator = IterablePrototype[ITERATOR$1]
1757
+ || IterablePrototype['@@iterator']
1758
+ || DEFAULT && IterablePrototype[DEFAULT];
1759
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1760
+ var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1761
+ var CurrentIteratorPrototype, methods, KEY;
2010
1762
 
2011
- next = IS_RECORD ? iterable.next : iterator.next;
2012
- while (!(step = call$6(next, iterator)).done) {
2013
- try {
2014
- result = callFn(step.value);
2015
- } catch (error) {
2016
- iteratorClose$8(iterator, 'throw', error);
1763
+ // fix native
1764
+ if (anyNativeIterator) {
1765
+ CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1766
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1767
+ if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$1) {
1768
+ if (setPrototypeOf$2) {
1769
+ setPrototypeOf$2(CurrentIteratorPrototype, IteratorPrototype$1);
1770
+ } else if (!isCallable$1(CurrentIteratorPrototype[ITERATOR$1])) {
1771
+ defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1772
+ }
1773
+ }
1774
+ // Set @@toStringTag to native iterators
1775
+ setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
2017
1776
  }
2018
- if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
2019
- } return new Result(false);
2020
- };
2021
-
2022
- // `GetIteratorDirect(obj)` abstract operation
2023
- // https://tc39.es/ecma262/#sec-getiteratordirect
2024
- var getIteratorDirect$4 = function (obj) {
2025
- return {
2026
- iterator: obj,
2027
- next: obj.next,
2028
- done: false
2029
- };
2030
- };
2031
-
2032
- var globalThis$2 = globalThis_1;
2033
-
2034
- // https://github.com/tc39/ecma262/pull/3467
2035
- var iteratorHelperWithoutClosingOnEarlyError$3 = function (METHOD_NAME, ExpectedError) {
2036
- var Iterator = globalThis$2.Iterator;
2037
- var IteratorPrototype = Iterator && Iterator.prototype;
2038
- var method = IteratorPrototype && IteratorPrototype[METHOD_NAME];
2039
-
2040
- var CLOSED = false;
2041
-
2042
- if (method) try {
2043
- method.call({
2044
- next: function () { return { done: true }; },
2045
- 'return': function () { CLOSED = true; }
2046
- }, -1);
2047
- } catch (error) {
2048
- // https://bugs.webkit.org/show_bug.cgi?id=291195
2049
- if (!(error instanceof ExpectedError)) CLOSED = false;
2050
1777
  }
2051
1778
 
2052
- if (!CLOSED) return method;
2053
- };
2054
-
2055
- var $$b = _export;
2056
- var call$5 = functionCall;
2057
- var iterate$4 = iterate$5;
2058
- var aCallable$3 = aCallable$8;
2059
- var anObject$4 = anObject$d;
2060
- var getIteratorDirect$3 = getIteratorDirect$4;
2061
- var iteratorClose$7 = iteratorClose$9;
2062
- var iteratorHelperWithoutClosingOnEarlyError$2 = iteratorHelperWithoutClosingOnEarlyError$3;
2063
-
2064
- var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$2('forEach', TypeError);
2065
-
2066
- // `Iterator.prototype.forEach` method
2067
- // https://tc39.es/ecma262/#sec-iterator.prototype.foreach
2068
- $$b({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosingOnEarlyError }, {
2069
- forEach: function forEach(fn) {
2070
- anObject$4(this);
2071
- try {
2072
- aCallable$3(fn);
2073
- } catch (error) {
2074
- iteratorClose$7(this, 'throw', error);
1779
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1780
+ if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1781
+ if (CONFIGURABLE_FUNCTION_NAME) {
1782
+ createNonEnumerableProperty$5(IterablePrototype, 'name', VALUES);
1783
+ } else {
1784
+ INCORRECT_VALUES_NAME = true;
1785
+ defaultIterator = function values() { return call$5(nativeIterator, this); };
2075
1786
  }
1787
+ }
2076
1788
 
2077
- if (forEachWithoutClosingOnEarlyError) return call$5(forEachWithoutClosingOnEarlyError, this, fn);
2078
-
2079
- var record = getIteratorDirect$3(this);
2080
- var counter = 0;
2081
- iterate$4(record, function (value) {
2082
- fn(value, counter++);
2083
- }, { IS_RECORD: true });
1789
+ // export additional methods
1790
+ if (DEFAULT) {
1791
+ methods = {
1792
+ values: getIterationMethod(VALUES),
1793
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1794
+ entries: getIterationMethod(ENTRIES)
1795
+ };
1796
+ if (FORCED) for (KEY in methods) {
1797
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1798
+ defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
1799
+ }
1800
+ } else $$b({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
2084
1801
  }
2085
- });
2086
1802
 
2087
- var defineBuiltIn$1 = defineBuiltIn$4;
1803
+ // define iterator
1804
+ if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1805
+ defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1806
+ }
1807
+ Iterators$1[NAME] = defaultIterator;
2088
1808
 
2089
- var defineBuiltIns$1 = function (target, src, options) {
2090
- for (var key in src) defineBuiltIn$1(target, key, src[key], options);
2091
- return target;
1809
+ return methods;
2092
1810
  };
2093
1811
 
2094
1812
  // `CreateIterResultObject` abstract operation
@@ -2097,101 +1815,699 @@ var createIterResultObject$2 = function (value, done) {
2097
1815
  return { value: value, done: done };
2098
1816
  };
2099
1817
 
2100
- var iteratorClose$6 = iteratorClose$9;
2101
-
2102
- var iteratorCloseAll$1 = function (iters, kind, value) {
2103
- for (var i = iters.length - 1; i >= 0; i--) {
2104
- if (iters[i] === undefined) continue;
2105
- try {
2106
- value = iteratorClose$6(iters[i].iterator, kind, value);
2107
- } catch (error) {
2108
- kind = 'throw';
2109
- value = error;
2110
- }
2111
- }
2112
- if (kind === 'throw') throw value;
2113
- return value;
2114
- };
2115
-
2116
- var call$4 = functionCall;
2117
- var create$2 = objectCreate;
2118
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
2119
- var defineBuiltIns = defineBuiltIns$1;
2120
- var wellKnownSymbol$4 = wellKnownSymbol$c;
1818
+ var toIndexedObject = toIndexedObject$5;
1819
+ var addToUnscopables = addToUnscopables$1;
1820
+ var Iterators = iterators;
2121
1821
  var InternalStateModule$1 = internalState;
2122
- var getMethod = getMethod$4;
2123
- var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
1822
+ var defineProperty$1 = objectDefineProperty.f;
1823
+ var defineIterator = iteratorDefine;
2124
1824
  var createIterResultObject$1 = createIterResultObject$2;
2125
- var iteratorClose$5 = iteratorClose$9;
2126
- var iteratorCloseAll = iteratorCloseAll$1;
1825
+ var DESCRIPTORS$1 = descriptors;
2127
1826
 
2128
- var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
2129
- var ITERATOR_HELPER = 'IteratorHelper';
2130
- var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
2131
- var NORMAL = 'normal';
2132
- var THROW = 'throw';
1827
+ var ARRAY_ITERATOR = 'Array Iterator';
2133
1828
  var setInternalState$1 = InternalStateModule$1.set;
1829
+ var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
2134
1830
 
2135
- var createIteratorProxyPrototype = function (IS_ITERATOR) {
2136
- var getInternalState = InternalStateModule$1.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
1831
+ // `Array.prototype.entries` method
1832
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
1833
+ // `Array.prototype.keys` method
1834
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
1835
+ // `Array.prototype.values` method
1836
+ // https://tc39.es/ecma262/#sec-array.prototype.values
1837
+ // `Array.prototype[@@iterator]` method
1838
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1839
+ // `CreateArrayIterator` internal method
1840
+ // https://tc39.es/ecma262/#sec-createarrayiterator
1841
+ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1842
+ setInternalState$1(this, {
1843
+ type: ARRAY_ITERATOR,
1844
+ target: toIndexedObject(iterated), // target
1845
+ index: 0, // next index
1846
+ kind: kind // kind
1847
+ });
1848
+ // `%ArrayIteratorPrototype%.next` method
1849
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1850
+ }, function () {
1851
+ var state = getInternalState(this);
1852
+ var target = state.target;
1853
+ var index = state.index++;
1854
+ if (!target || index >= target.length) {
1855
+ state.target = null;
1856
+ return createIterResultObject$1(undefined, true);
1857
+ }
1858
+ switch (state.kind) {
1859
+ case 'keys': return createIterResultObject$1(index, false);
1860
+ case 'values': return createIterResultObject$1(target[index], false);
1861
+ } return createIterResultObject$1([index, target[index]], false);
1862
+ }, 'values');
2137
1863
 
2138
- return defineBuiltIns(create$2(IteratorPrototype$2), {
2139
- next: function next() {
2140
- var state = getInternalState(this);
2141
- // for simplification:
2142
- // for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject`
2143
- // for `%IteratorHelperPrototype%.next` - just a value
2144
- if (IS_ITERATOR) return state.nextHandler();
2145
- if (state.done) return createIterResultObject$1(undefined, true);
2146
- try {
2147
- var result = state.nextHandler();
2148
- return state.returnHandlerResult ? result : createIterResultObject$1(result, state.done);
2149
- } catch (error) {
2150
- state.done = true;
2151
- throw error;
2152
- }
2153
- },
2154
- 'return': function () {
2155
- var state = getInternalState(this);
2156
- var iterator = state.iterator;
2157
- state.done = true;
2158
- if (IS_ITERATOR) {
2159
- var returnMethod = getMethod(iterator, 'return');
2160
- return returnMethod ? call$4(returnMethod, iterator) : createIterResultObject$1(undefined, true);
2161
- }
2162
- if (state.inner) try {
2163
- iteratorClose$5(state.inner.iterator, NORMAL);
2164
- } catch (error) {
2165
- return iteratorClose$5(iterator, THROW, error);
2166
- }
2167
- if (state.openIters) try {
2168
- iteratorCloseAll(state.openIters, NORMAL);
1864
+ // argumentsList[@@iterator] is %ArrayProto_values%
1865
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1866
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1867
+ var values = Iterators.Arguments = Iterators.Array;
1868
+
1869
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1870
+ addToUnscopables('keys');
1871
+ addToUnscopables('values');
1872
+ addToUnscopables('entries');
1873
+
1874
+ // V8 ~ Chrome 45- bug
1875
+ if (DESCRIPTORS$1 && values.name !== 'values') try {
1876
+ defineProperty$1(values, 'name', { value: 'values' });
1877
+ } catch (error) { /* empty */ }
1878
+
1879
+ var globalThis$2 = globalThis_1;
1880
+ var DOMIterables = domIterables;
1881
+ var DOMTokenListPrototype = domTokenListPrototype;
1882
+ var ArrayIteratorMethods = es_array_iterator;
1883
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
1884
+ var setToStringTag = setToStringTag$3;
1885
+ var wellKnownSymbol$1 = wellKnownSymbol$c;
1886
+
1887
+ var ITERATOR = wellKnownSymbol$1('iterator');
1888
+ var ArrayValues = ArrayIteratorMethods.values;
1889
+
1890
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1891
+ if (CollectionPrototype) {
1892
+ // some Chrome versions have non-configurable methods on DOMTokenList
1893
+ if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1894
+ createNonEnumerableProperty$4(CollectionPrototype, ITERATOR, ArrayValues);
1895
+ } catch (error) {
1896
+ CollectionPrototype[ITERATOR] = ArrayValues;
1897
+ }
1898
+ setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
1899
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1900
+ // some Chrome versions have non-configurable methods on DOMTokenList
1901
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1902
+ createNonEnumerableProperty$4(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
2169
1903
  } catch (error) {
2170
- return iteratorClose$5(iterator, THROW, error);
1904
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
2171
1905
  }
2172
- if (iterator) iteratorClose$5(iterator, NORMAL);
2173
- return createIterResultObject$1(undefined, true);
2174
1906
  }
2175
- });
1907
+ }
2176
1908
  };
2177
1909
 
2178
- var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
2179
- var IteratorHelperPrototype = createIteratorProxyPrototype(false);
1910
+ for (var COLLECTION_NAME in DOMIterables) {
1911
+ handlePrototype(globalThis$2[COLLECTION_NAME] && globalThis$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
1912
+ }
2180
1913
 
2181
- createNonEnumerableProperty$2(IteratorHelperPrototype, TO_STRING_TAG$1, 'Iterator Helper');
1914
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
2182
1915
 
2183
- var iteratorCreateProxy = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) {
2184
- var IteratorProxy = function Iterator(record, state) {
2185
- if (state) {
2186
- state.iterator = record.iterator;
2187
- state.next = record.next;
2188
- } else state = record;
1916
+ function flattenObject(obj, prefix = '', result = {}) {
1917
+ Object.entries(obj).forEach(([key, value]) => {
1918
+ const newKey = prefix ? `${prefix}-${key}` : key;
1919
+ if (value && typeof value === 'object' && !Array.isArray(value)) {
1920
+ flattenObject(value, newKey, result);
1921
+ } else if (typeof value === 'string') {
1922
+ result[newKey] = value;
1923
+ }
1924
+ });
1925
+ }
1926
+ function customFlattenColorPalette(colors) {
1927
+ if (!colors || typeof colors !== 'object') return {};
1928
+ const result = {};
1929
+ flattenObject(colors, '', result);
1930
+ return result;
1931
+ }
1932
+ function flattenColorPalette$1(colors) {
1933
+ try {
1934
+ const {
1935
+ default: twFlattenColorPalette
1936
+ } = require('tailwindcss/lib/util/flattenColorPalette');
1937
+ return twFlattenColorPalette(colors);
1938
+ } catch (_unused) {
1939
+ return customFlattenColorPalette(colors);
1940
+ }
1941
+ }
1942
+
1943
+ const {
1944
+ default: flattenColorPalette
1945
+ } = require('tailwindcss/lib/util/flattenColorPalette');
1946
+ const ColorMix = plugin(function ({
1947
+ matchUtilities,
1948
+ theme
1949
+ }) {
1950
+ matchUtilities({
1951
+ 'bg-hover': value => blendColor({
1952
+ color: value,
1953
+ base: 'var(--bq-hover)'
1954
+ }),
1955
+ 'bg-active': value => blendColor({
1956
+ color: value,
1957
+ base: 'var(--bq-active)'
1958
+ }),
1959
+ 'border-hover': value => blendColor({
1960
+ color: value,
1961
+ base: 'var(--bq-hover)',
1962
+ property: 'border-color'
1963
+ }),
1964
+ 'border-active': value => blendColor({
1965
+ color: value,
1966
+ base: 'var(--bq-active)',
1967
+ property: 'border-color'
1968
+ }),
1969
+ 'text-hover': value => blendColor({
1970
+ color: value,
1971
+ base: 'var(--bq-hover)',
1972
+ property: 'color'
1973
+ }),
1974
+ 'text-active': value => blendColor({
1975
+ color: value,
1976
+ base: 'var(--bq-active)',
1977
+ property: 'color'
1978
+ })
1979
+ }, {
1980
+ values: flattenColorPalette(theme('colors'))
1981
+ });
1982
+ matchUtilities({
1983
+ 'bg-hover': value => blendColor({
1984
+ color: value,
1985
+ base: 'var(--bq-hover)'
1986
+ }),
1987
+ 'bg-active': value => blendColor({
1988
+ color: value,
1989
+ base: 'var(--bq-active)'
1990
+ })
1991
+ }, {
1992
+ values: flattenColorPalette(theme('backgroundColor'))
1993
+ });
1994
+ matchUtilities({
1995
+ 'border-hover': value => blendColor({
1996
+ color: value,
1997
+ base: 'var(--bq-hover)',
1998
+ property: 'border-color'
1999
+ }),
2000
+ 'border-active': value => blendColor({
2001
+ color: value,
2002
+ base: 'var(--bq-active)',
2003
+ property: 'border-color'
2004
+ })
2005
+ }, {
2006
+ values: flattenColorPalette(theme('borderColor'))
2007
+ });
2008
+ matchUtilities({
2009
+ 'text-hover': value => blendColor({
2010
+ color: value,
2011
+ base: 'var(--bq-hover)',
2012
+ property: 'color'
2013
+ }),
2014
+ 'text-active': value => blendColor({
2015
+ color: value,
2016
+ base: 'var(--bq-active)',
2017
+ property: 'color'
2018
+ })
2019
+ }, {
2020
+ values: flattenColorPalette(theme('textColor'))
2021
+ });
2022
+ matchUtilities({
2023
+ 'stroke-hover': value => blendColor({
2024
+ color: value,
2025
+ base: 'var(--bq-hover)',
2026
+ property: 'color'
2027
+ }),
2028
+ 'stroke-active': value => blendColor({
2029
+ color: value,
2030
+ base: 'var(--bq-active)',
2031
+ property: 'color'
2032
+ })
2033
+ }, {
2034
+ values: flattenColorPalette(theme('stroke'))
2035
+ });
2036
+ });
2037
+
2038
+ const LogicalProperties = plugin(function ({
2039
+ matchUtilities,
2040
+ theme
2041
+ }) {
2042
+ matchUtilities({
2043
+ 'border-bl': value => ({
2044
+ 'border-block-width': value
2045
+ }),
2046
+ 'border-bs': value => ({
2047
+ 'border-block-start-width': value
2048
+ }),
2049
+ 'border-be': value => ({
2050
+ 'border-block-end-width': value
2051
+ }),
2052
+ 'border-i': value => ({
2053
+ 'border-inline-width': value
2054
+ }),
2055
+ 'border-is': value => ({
2056
+ 'border-inline-start-width': value
2057
+ }),
2058
+ 'border-ie': value => ({
2059
+ 'border-inline-end-width': value
2060
+ })
2061
+ }, {
2062
+ values: theme('borderWidth')
2063
+ });
2064
+ matchUtilities({
2065
+ 'border-bl': value => ({
2066
+ 'border-block-color': value
2067
+ }),
2068
+ 'border-bs': value => ({
2069
+ 'border-block-start-color': value
2070
+ }),
2071
+ 'border-be': value => ({
2072
+ 'border-block-end-color': value
2073
+ }),
2074
+ 'border-i': value => ({
2075
+ 'border-inline-color': value
2076
+ }),
2077
+ 'border-is': value => ({
2078
+ 'border-inline-start-color': value
2079
+ }),
2080
+ 'border-ie': value => ({
2081
+ 'border-inline-end-color': value
2082
+ })
2083
+ }, {
2084
+ values: flattenColorPalette$1(theme('colors'))
2085
+ });
2086
+ matchUtilities({
2087
+ bs: value => ({
2088
+ 'block-size': value
2089
+ }),
2090
+ 'max-bs': value => ({
2091
+ 'max-block-size': value
2092
+ }),
2093
+ 'min-bs': value => ({
2094
+ 'min-block-size': value
2095
+ }),
2096
+ is: value => ({
2097
+ 'inline-size': value
2098
+ }),
2099
+ 'max-is': value => ({
2100
+ 'max-inline-size': value
2101
+ }),
2102
+ 'min-is': value => ({
2103
+ 'min-inline-size': value
2104
+ })
2105
+ }, {
2106
+ values: theme('width')
2107
+ });
2108
+ matchUtilities({
2109
+ 'border-bl': value => ({
2110
+ 'border-block': value
2111
+ }),
2112
+ 'border-bs': value => ({
2113
+ 'border-block-start': value
2114
+ }),
2115
+ 'border-be': value => ({
2116
+ 'border-block-end': value
2117
+ }),
2118
+ 'border-i': value => ({
2119
+ 'border-inline': value
2120
+ }),
2121
+ 'border-is': value => ({
2122
+ 'border-inline-start': value
2123
+ }),
2124
+ 'border-ie': value => ({
2125
+ 'border-inline-end': value
2126
+ }),
2127
+ 'p-b': value => ({
2128
+ 'padding-block': value
2129
+ }),
2130
+ 'p-bs': value => ({
2131
+ 'padding-block-start': value
2132
+ }),
2133
+ 'p-be': value => ({
2134
+ 'padding-block-end': value
2135
+ }),
2136
+ 'p-i': value => ({
2137
+ 'padding-inline': value
2138
+ })
2139
+ }, {
2140
+ values: theme('spacing')
2141
+ });
2142
+ matchUtilities({
2143
+ 'inset-b': value => ({
2144
+ 'inset-block': value
2145
+ }),
2146
+ 'inset-bs': value => ({
2147
+ 'inset-block-start': value
2148
+ }),
2149
+ 'inset-be': value => ({
2150
+ 'inset-block-end': value
2151
+ }),
2152
+ 'inset-i': value => ({
2153
+ 'inset-inline': value
2154
+ }),
2155
+ 'inset-is': value => ({
2156
+ 'inset-inline-start': value
2157
+ }),
2158
+ 'inset-ie': value => ({
2159
+ 'inset-inline-end': value
2160
+ }),
2161
+ 'm-b': value => ({
2162
+ 'margin-block': value
2163
+ }),
2164
+ 'm-bs': value => ({
2165
+ 'margin-block-start': value
2166
+ }),
2167
+ 'm-be': value => ({
2168
+ 'margin-block-end': value
2169
+ }),
2170
+ 'm-i': value => ({
2171
+ 'margin-inline': value
2172
+ })
2173
+ }, {
2174
+ values: theme('spacing'),
2175
+ supportsNegativeValues: true
2176
+ });
2177
+ });
2178
+
2179
+ var NATIVE_BIND = functionBindNative;
2180
+
2181
+ var FunctionPrototype = Function.prototype;
2182
+ var apply$2 = FunctionPrototype.apply;
2183
+ var call$4 = FunctionPrototype.call;
2184
+
2185
+ // eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
2186
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$4.bind(apply$2) : function () {
2187
+ return call$4.apply(apply$2, arguments);
2188
+ });
2189
+
2190
+ var defineProperty = objectDefineProperty.f;
2191
+
2192
+ var proxyAccessor$1 = function (Target, Source, key) {
2193
+ key in Target || defineProperty(Target, key, {
2194
+ configurable: true,
2195
+ get: function () { return Source[key]; },
2196
+ set: function (it) { Source[key] = it; }
2197
+ });
2198
+ };
2199
+
2200
+ var isCallable = isCallable$g;
2201
+ var isObject$1 = isObject$a;
2202
+ var setPrototypeOf$1 = objectSetPrototypeOf;
2203
+
2204
+ // makes subclassing work correct for wrapped built-ins
2205
+ var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
2206
+ var NewTarget, NewTargetPrototype;
2207
+ if (
2208
+ // it can work only with native `setPrototypeOf`
2209
+ setPrototypeOf$1 &&
2210
+ // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
2211
+ isCallable(NewTarget = dummy.constructor) &&
2212
+ NewTarget !== Wrapper &&
2213
+ isObject$1(NewTargetPrototype = NewTarget.prototype) &&
2214
+ NewTargetPrototype !== Wrapper.prototype
2215
+ ) setPrototypeOf$1($this, NewTargetPrototype);
2216
+ return $this;
2217
+ };
2218
+
2219
+ var classof = classof$2;
2220
+
2221
+ var $String = String;
2222
+
2223
+ var toString$1 = function (argument) {
2224
+ if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
2225
+ return $String(argument);
2226
+ };
2227
+
2228
+ var toString = toString$1;
2229
+
2230
+ var normalizeStringArgument$1 = function (argument, $default) {
2231
+ return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
2232
+ };
2233
+
2234
+ var isObject = isObject$a;
2235
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
2236
+
2237
+ // `InstallErrorCause` abstract operation
2238
+ // https://tc39.es/ecma262/#sec-installerrorcause
2239
+ var installErrorCause$1 = function (O, options) {
2240
+ if (isObject(options) && 'cause' in options) {
2241
+ createNonEnumerableProperty$3(O, 'cause', options.cause);
2242
+ }
2243
+ };
2244
+
2245
+ var uncurryThis$2 = functionUncurryThis;
2246
+
2247
+ var $Error = Error;
2248
+ var replace = uncurryThis$2(''.replace);
2249
+
2250
+ var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
2251
+ // eslint-disable-next-line redos/no-vulnerable, sonarjs/slow-regex -- safe
2252
+ var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
2253
+ var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
2254
+
2255
+ var errorStackClear = function (stack, dropEntries) {
2256
+ if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
2257
+ while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
2258
+ } return stack;
2259
+ };
2260
+
2261
+ var fails$3 = fails$f;
2262
+ var createPropertyDescriptor = createPropertyDescriptor$5;
2263
+
2264
+ var errorStackInstallable = !fails$3(function () {
2265
+ var error = new Error('a');
2266
+ if (!('stack' in error)) return true;
2267
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
2268
+ Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
2269
+ return error.stack !== 7;
2270
+ });
2271
+
2272
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
2273
+ var clearErrorStack = errorStackClear;
2274
+ var ERROR_STACK_INSTALLABLE = errorStackInstallable;
2275
+
2276
+ // non-standard V8
2277
+ // eslint-disable-next-line es/no-nonstandard-error-properties -- safe
2278
+ var captureStackTrace = Error.captureStackTrace;
2279
+
2280
+ var errorStackInstall = function (error, C, stack, dropEntries) {
2281
+ if (ERROR_STACK_INSTALLABLE) {
2282
+ if (captureStackTrace) captureStackTrace(error, C);
2283
+ else createNonEnumerableProperty$2(error, 'stack', clearErrorStack(stack, dropEntries));
2284
+ }
2285
+ };
2286
+
2287
+ var getBuiltIn$1 = getBuiltIn$5;
2288
+ var hasOwn = hasOwnProperty_1;
2289
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
2290
+ var isPrototypeOf = objectIsPrototypeOf;
2291
+ var setPrototypeOf = objectSetPrototypeOf;
2292
+ var copyConstructorProperties = copyConstructorProperties$2;
2293
+ var proxyAccessor = proxyAccessor$1;
2294
+ var inheritIfRequired = inheritIfRequired$1;
2295
+ var normalizeStringArgument = normalizeStringArgument$1;
2296
+ var installErrorCause = installErrorCause$1;
2297
+ var installErrorStack = errorStackInstall;
2298
+ var DESCRIPTORS = descriptors;
2299
+
2300
+ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
2301
+ var STACK_TRACE_LIMIT = 'stackTraceLimit';
2302
+ var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
2303
+ var path = FULL_NAME.split('.');
2304
+ var ERROR_NAME = path[path.length - 1];
2305
+ var OriginalError = getBuiltIn$1.apply(null, path);
2306
+
2307
+ if (!OriginalError) return;
2308
+
2309
+ var OriginalErrorPrototype = OriginalError.prototype;
2310
+
2311
+ // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
2312
+ if (hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
2313
+
2314
+ if (!FORCED) return OriginalError;
2315
+
2316
+ var BaseError = getBuiltIn$1('Error');
2317
+
2318
+ var WrappedError = wrapper(function (a, b) {
2319
+ var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
2320
+ var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
2321
+ if (message !== undefined) createNonEnumerableProperty$1(result, 'message', message);
2322
+ installErrorStack(result, WrappedError, result.stack, 2);
2323
+ if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
2324
+ if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
2325
+ return result;
2326
+ });
2327
+
2328
+ WrappedError.prototype = OriginalErrorPrototype;
2329
+
2330
+ if (ERROR_NAME !== 'Error') {
2331
+ if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
2332
+ else copyConstructorProperties(WrappedError, BaseError, { name: true });
2333
+ } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
2334
+ proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
2335
+ proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
2336
+ }
2337
+
2338
+ copyConstructorProperties(WrappedError, OriginalError);
2339
+
2340
+ try {
2341
+ // Safari 13- bug: WebAssembly errors does not have a proper `.name`
2342
+ if (OriginalErrorPrototype.name !== ERROR_NAME) {
2343
+ createNonEnumerableProperty$1(OriginalErrorPrototype, 'name', ERROR_NAME);
2344
+ }
2345
+ OriginalErrorPrototype.constructor = WrappedError;
2346
+ } catch (error) { /* empty */ }
2347
+
2348
+ return WrappedError;
2349
+ };
2350
+
2351
+ /* eslint-disable no-unused-vars -- required for functions `.length` */
2352
+ var $$a = _export;
2353
+ var globalThis$1 = globalThis_1;
2354
+ var apply$1 = functionApply;
2355
+ var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
2356
+
2357
+ var WEB_ASSEMBLY = 'WebAssembly';
2358
+ var WebAssembly = globalThis$1[WEB_ASSEMBLY];
2359
+
2360
+ // eslint-disable-next-line es/no-error-cause -- feature detection
2361
+ var FORCED$4 = new Error('e', { cause: 7 }).cause !== 7;
2362
+
2363
+ var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
2364
+ var O = {};
2365
+ O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$4);
2366
+ $$a({ global: true, constructor: true, arity: 1, forced: FORCED$4 }, O);
2367
+ };
2368
+
2369
+ var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
2370
+ if (WebAssembly && WebAssembly[ERROR_NAME]) {
2371
+ var O = {};
2372
+ O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$4);
2373
+ $$a({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$4 }, O);
2374
+ }
2375
+ };
2376
+
2377
+ // https://tc39.es/ecma262/#sec-nativeerror
2378
+ exportGlobalErrorCauseWrapper('Error', function (init) {
2379
+ return function Error(message) { return apply$1(init, this, arguments); };
2380
+ });
2381
+ exportGlobalErrorCauseWrapper('EvalError', function (init) {
2382
+ return function EvalError(message) { return apply$1(init, this, arguments); };
2383
+ });
2384
+ exportGlobalErrorCauseWrapper('RangeError', function (init) {
2385
+ return function RangeError(message) { return apply$1(init, this, arguments); };
2386
+ });
2387
+ exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
2388
+ return function ReferenceError(message) { return apply$1(init, this, arguments); };
2389
+ });
2390
+ exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
2391
+ return function SyntaxError(message) { return apply$1(init, this, arguments); };
2392
+ });
2393
+ exportGlobalErrorCauseWrapper('TypeError', function (init) {
2394
+ return function TypeError(message) { return apply$1(init, this, arguments); };
2395
+ });
2396
+ exportGlobalErrorCauseWrapper('URIError', function (init) {
2397
+ return function URIError(message) { return apply$1(init, this, arguments); };
2398
+ });
2399
+ exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
2400
+ return function CompileError(message) { return apply$1(init, this, arguments); };
2401
+ });
2402
+ exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
2403
+ return function LinkError(message) { return apply$1(init, this, arguments); };
2404
+ });
2405
+ exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
2406
+ return function RuntimeError(message) { return apply$1(init, this, arguments); };
2407
+ });
2408
+
2409
+ var defineBuiltIn = defineBuiltIn$4;
2410
+
2411
+ var defineBuiltIns$1 = function (target, src, options) {
2412
+ for (var key in src) defineBuiltIn(target, key, src[key], options);
2413
+ return target;
2414
+ };
2415
+
2416
+ var iteratorClose$6 = iteratorClose$9;
2417
+
2418
+ var iteratorCloseAll$1 = function (iters, kind, value) {
2419
+ for (var i = iters.length - 1; i >= 0; i--) {
2420
+ if (iters[i] === undefined) continue;
2421
+ try {
2422
+ value = iteratorClose$6(iters[i].iterator, kind, value);
2423
+ } catch (error) {
2424
+ kind = 'throw';
2425
+ value = error;
2426
+ }
2427
+ }
2428
+ if (kind === 'throw') throw value;
2429
+ return value;
2430
+ };
2431
+
2432
+ var call$3 = functionCall;
2433
+ var create = objectCreate;
2434
+ var createNonEnumerableProperty = createNonEnumerableProperty$8;
2435
+ var defineBuiltIns = defineBuiltIns$1;
2436
+ var wellKnownSymbol = wellKnownSymbol$c;
2437
+ var InternalStateModule = internalState;
2438
+ var getMethod = getMethod$4;
2439
+ var IteratorPrototype = iteratorsCore.IteratorPrototype;
2440
+ var createIterResultObject = createIterResultObject$2;
2441
+ var iteratorClose$5 = iteratorClose$9;
2442
+ var iteratorCloseAll = iteratorCloseAll$1;
2443
+
2444
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
2445
+ var ITERATOR_HELPER = 'IteratorHelper';
2446
+ var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
2447
+ var NORMAL = 'normal';
2448
+ var THROW = 'throw';
2449
+ var setInternalState = InternalStateModule.set;
2450
+
2451
+ var createIteratorProxyPrototype = function (IS_ITERATOR) {
2452
+ var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
2453
+
2454
+ return defineBuiltIns(create(IteratorPrototype), {
2455
+ next: function next() {
2456
+ var state = getInternalState(this);
2457
+ // for simplification:
2458
+ // for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject`
2459
+ // for `%IteratorHelperPrototype%.next` - just a value
2460
+ if (IS_ITERATOR) return state.nextHandler();
2461
+ if (state.done) return createIterResultObject(undefined, true);
2462
+ try {
2463
+ var result = state.nextHandler();
2464
+ return state.returnHandlerResult ? result : createIterResultObject(result, state.done);
2465
+ } catch (error) {
2466
+ state.done = true;
2467
+ throw error;
2468
+ }
2469
+ },
2470
+ 'return': function () {
2471
+ var state = getInternalState(this);
2472
+ var iterator = state.iterator;
2473
+ state.done = true;
2474
+ if (IS_ITERATOR) {
2475
+ var returnMethod = getMethod(iterator, 'return');
2476
+ return returnMethod ? call$3(returnMethod, iterator) : createIterResultObject(undefined, true);
2477
+ }
2478
+ if (state.inner) try {
2479
+ iteratorClose$5(state.inner.iterator, NORMAL);
2480
+ } catch (error) {
2481
+ return iteratorClose$5(iterator, THROW, error);
2482
+ }
2483
+ if (state.openIters) try {
2484
+ iteratorCloseAll(state.openIters, NORMAL);
2485
+ } catch (error) {
2486
+ return iteratorClose$5(iterator, THROW, error);
2487
+ }
2488
+ if (iterator) iteratorClose$5(iterator, NORMAL);
2489
+ return createIterResultObject(undefined, true);
2490
+ }
2491
+ });
2492
+ };
2493
+
2494
+ var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
2495
+ var IteratorHelperPrototype = createIteratorProxyPrototype(false);
2496
+
2497
+ createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
2498
+
2499
+ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) {
2500
+ var IteratorProxy = function Iterator(record, state) {
2501
+ if (state) {
2502
+ state.iterator = record.iterator;
2503
+ state.next = record.next;
2504
+ } else state = record;
2189
2505
  state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
2190
2506
  state.returnHandlerResult = !!RETURN_HANDLER_RESULT;
2191
2507
  state.nextHandler = nextHandler;
2192
2508
  state.counter = 0;
2193
2509
  state.done = false;
2194
- setInternalState$1(this, state);
2510
+ setInternalState(this, state);
2195
2511
  };
2196
2512
 
2197
2513
  IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
@@ -2223,8 +2539,8 @@ var iteratorHelperThrowsOnInvalidIterator$1 = function (methodName, argument) {
2223
2539
  }
2224
2540
  };
2225
2541
 
2226
- var $$a = _export;
2227
- var call$3 = functionCall;
2542
+ var $$9 = _export;
2543
+ var call$2 = functionCall;
2228
2544
  var aCallable$2 = aCallable$8;
2229
2545
  var anObject$2 = anObject$d;
2230
2546
  var getIteratorDirect$2 = getIteratorDirect$4;
@@ -2242,14 +2558,14 @@ var FORCED$3 = MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR || mapWithoutClosingOnEa
2242
2558
 
2243
2559
  var IteratorProxy = createIteratorProxy(function () {
2244
2560
  var iterator = this.iterator;
2245
- var result = anObject$2(call$3(this.next, iterator));
2561
+ var result = anObject$2(call$2(this.next, iterator));
2246
2562
  var done = this.done = !!result.done;
2247
2563
  if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
2248
2564
  });
2249
2565
 
2250
2566
  // `Iterator.prototype.map` method
2251
2567
  // https://tc39.es/ecma262/#sec-iterator.prototype.map
2252
- $$a({ target: 'Iterator', proto: true, real: true, forced: FORCED$3 }, {
2568
+ $$9({ target: 'Iterator', proto: true, real: true, forced: FORCED$3 }, {
2253
2569
  map: function map(mapper) {
2254
2570
  anObject$2(this);
2255
2571
  try {
@@ -2258,7 +2574,7 @@ $$a({ target: 'Iterator', proto: true, real: true, forced: FORCED$3 }, {
2258
2574
  iteratorClose$3(this, 'throw', error);
2259
2575
  }
2260
2576
 
2261
- if (mapWithoutClosingOnEarlyError) return call$3(mapWithoutClosingOnEarlyError, this, mapper);
2577
+ if (mapWithoutClosingOnEarlyError) return call$2(mapWithoutClosingOnEarlyError, this, mapper);
2262
2578
 
2263
2579
  return new IteratorProxy(getIteratorDirect$2(this), {
2264
2580
  mapper: mapper
@@ -2266,7 +2582,7 @@ $$a({ target: 'Iterator', proto: true, real: true, forced: FORCED$3 }, {
2266
2582
  }
2267
2583
  });
2268
2584
 
2269
- var $$9 = _export;
2585
+ var $$8 = _export;
2270
2586
  var iterate$3 = iterate$5;
2271
2587
  var aCallable$1 = aCallable$8;
2272
2588
  var anObject$1 = anObject$d;
@@ -2288,7 +2604,7 @@ var reduceWithoutClosingOnEarlyError = !FAILS_ON_INITIAL_UNDEFINED && iteratorHe
2288
2604
 
2289
2605
  // `Iterator.prototype.reduce` method
2290
2606
  // https://tc39.es/ecma262/#sec-iterator.prototype.reduce
2291
- $$9({ target: 'Iterator', proto: true, real: true, forced: FAILS_ON_INITIAL_UNDEFINED || reduceWithoutClosingOnEarlyError }, {
2607
+ $$8({ target: 'Iterator', proto: true, real: true, forced: FAILS_ON_INITIAL_UNDEFINED || reduceWithoutClosingOnEarlyError }, {
2292
2608
  reduce: function reduce(reducer /* , initialValue */) {
2293
2609
  anObject$1(this);
2294
2610
  try {
@@ -2318,13 +2634,13 @@ $$9({ target: 'Iterator', proto: true, real: true, forced: FAILS_ON_INITIAL_UNDE
2318
2634
  }
2319
2635
  });
2320
2636
 
2321
- var $$8 = _export;
2637
+ var $$7 = _export;
2322
2638
  var iterate$2 = iterate$5;
2323
2639
  var createProperty = createProperty$2;
2324
2640
 
2325
2641
  // `Object.fromEntries` method
2326
2642
  // https://tc39.es/ecma262/#sec-object.fromentries
2327
- $$8({ target: 'Object', stat: true }, {
2643
+ $$7({ target: 'Object', stat: true }, {
2328
2644
  fromEntries: function fromEntries(iterable) {
2329
2645
  var obj = {};
2330
2646
  iterate$2(iterable, function (k, v) {
@@ -2356,13 +2672,13 @@ var aSet$7 = function (it) {
2356
2672
  return it;
2357
2673
  };
2358
2674
 
2359
- var call$2 = functionCall;
2675
+ var call$1 = functionCall;
2360
2676
 
2361
2677
  var iterateSimple$7 = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
2362
2678
  var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
2363
2679
  var next = record.next;
2364
2680
  var step, result;
2365
- while (!(step = call$2(next, iterator)).done) {
2681
+ while (!(step = call$1(next, iterator)).done) {
2366
2682
  result = fn(step.value);
2367
2683
  if (result !== undefined) return result;
2368
2684
  }
@@ -2405,7 +2721,7 @@ var setSize = uncurryThisAccessor(SetHelpers$3.proto, 'size', 'get') || function
2405
2721
 
2406
2722
  var aCallable = aCallable$8;
2407
2723
  var anObject = anObject$d;
2408
- var call$1 = functionCall;
2724
+ var call = functionCall;
2409
2725
  var toIntegerOrInfinity = toIntegerOrInfinity$3;
2410
2726
  var getIteratorDirect = getIteratorDirect$4;
2411
2727
 
@@ -2423,10 +2739,10 @@ var SetRecord = function (set, intSize) {
2423
2739
 
2424
2740
  SetRecord.prototype = {
2425
2741
  getIterator: function () {
2426
- return getIteratorDirect(anObject(call$1(this.keys, this.set)));
2742
+ return getIteratorDirect(anObject(call(this.keys, this.set)));
2427
2743
  },
2428
2744
  includes: function (it) {
2429
- return call$1(this.has, this.set, it);
2745
+ return call(this.has, this.set, it);
2430
2746
  }
2431
2747
  };
2432
2748
 
@@ -2502,606 +2818,314 @@ var createSetLikeWithInfinitySize = function (size) {
2502
2818
  var setMethodAcceptSetLike$7 = function (name, callback) {
2503
2819
  var Set = getBuiltIn('Set');
2504
2820
  try {
2505
- new Set()[name](createSetLike(0));
2506
- try {
2507
- // late spec change, early WebKit ~ Safari 17 implementation does not pass it
2508
- // https://github.com/tc39/proposal-set-methods/pull/88
2509
- // also covered engines with
2510
- // https://bugs.webkit.org/show_bug.cgi?id=272679
2511
- new Set()[name](createSetLike(-1));
2512
- return false;
2513
- } catch (error2) {
2514
- if (!callback) return true;
2515
- // early V8 implementation bug
2516
- // https://issues.chromium.org/issues/351332634
2517
- try {
2518
- new Set()[name](createSetLikeWithInfinitySize(-Infinity));
2519
- return false;
2520
- } catch (error) {
2521
- var set = new Set();
2522
- set.add(1);
2523
- set.add(2);
2524
- return callback(set[name](createSetLikeWithInfinitySize(Infinity)));
2525
- }
2526
- }
2527
- } catch (error) {
2528
- return false;
2529
- }
2530
- };
2531
-
2532
- var $$7 = _export;
2533
- var difference = setDifference;
2534
- var fails$1 = fails$f;
2535
- var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
2536
-
2537
- var SET_LIKE_INCORRECT_BEHAVIOR = !setMethodAcceptSetLike$6('difference', function (result) {
2538
- return result.size === 0;
2539
- });
2540
-
2541
- var FORCED$2 = SET_LIKE_INCORRECT_BEHAVIOR || fails$1(function () {
2542
- // https://bugs.webkit.org/show_bug.cgi?id=288595
2543
- var setLike = {
2544
- size: 1,
2545
- has: function () { return true; },
2546
- keys: function () {
2547
- var index = 0;
2548
- return {
2549
- next: function () {
2550
- var done = index++ > 1;
2551
- if (baseSet.has(1)) baseSet.clear();
2552
- return { done: done, value: 2 };
2553
- }
2554
- };
2555
- }
2556
- };
2557
- // eslint-disable-next-line es/no-set -- testing
2558
- var baseSet = new Set([1, 2, 3, 4]);
2559
- // eslint-disable-next-line es/no-set-prototype-difference -- testing
2560
- return baseSet.difference(setLike).size !== 3;
2561
- });
2562
-
2563
- // `Set.prototype.difference` method
2564
- // https://tc39.es/ecma262/#sec-set.prototype.difference
2565
- $$7({ target: 'Set', proto: true, real: true, forced: FORCED$2 }, {
2566
- difference: difference
2567
- });
2568
-
2569
- var aSet$5 = aSet$7;
2570
- var SetHelpers$1 = setHelpers;
2571
- var size$3 = setSize;
2572
- var getSetRecord$5 = getSetRecord$7;
2573
- var iterateSet$1 = setIterate;
2574
- var iterateSimple$4 = iterateSimple$7;
2575
-
2576
- var Set$1 = SetHelpers$1.Set;
2577
- var add$2 = SetHelpers$1.add;
2578
- var has$3 = SetHelpers$1.has;
2579
-
2580
- // `Set.prototype.intersection` method
2581
- // https://tc39.es/ecma262/#sec-set.prototype.intersection
2582
- var setIntersection = function intersection(other) {
2583
- var O = aSet$5(this);
2584
- var otherRec = getSetRecord$5(other);
2585
- var result = new Set$1();
2586
-
2587
- if (size$3(O) > otherRec.size) {
2588
- iterateSimple$4(otherRec.getIterator(), function (e) {
2589
- if (has$3(O, e)) add$2(result, e);
2590
- });
2591
- } else {
2592
- iterateSet$1(O, function (e) {
2593
- if (otherRec.includes(e)) add$2(result, e);
2594
- });
2595
- }
2596
-
2597
- return result;
2598
- };
2599
-
2600
- var $$6 = _export;
2601
- var fails = fails$f;
2602
- var intersection = setIntersection;
2603
- var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
2604
-
2605
- var INCORRECT$3 = !setMethodAcceptSetLike$5('intersection', function (result) {
2606
- return result.size === 2 && result.has(1) && result.has(2);
2607
- }) || fails(function () {
2608
- // eslint-disable-next-line es/no-array-from, es/no-set, es/no-set-prototype-intersection -- testing
2609
- return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
2610
- });
2611
-
2612
- // `Set.prototype.intersection` method
2613
- // https://tc39.es/ecma262/#sec-set.prototype.intersection
2614
- $$6({ target: 'Set', proto: true, real: true, forced: INCORRECT$3 }, {
2615
- intersection: intersection
2616
- });
2617
-
2618
- var aSet$4 = aSet$7;
2619
- var has$2 = setHelpers.has;
2620
- var size$2 = setSize;
2621
- var getSetRecord$4 = getSetRecord$7;
2622
- var iterateSet = setIterate;
2623
- var iterateSimple$3 = iterateSimple$7;
2624
- var iteratorClose$1 = iteratorClose$9;
2625
-
2626
- // `Set.prototype.isDisjointFrom` method
2627
- // https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
2628
- var setIsDisjointFrom = function isDisjointFrom(other) {
2629
- var O = aSet$4(this);
2630
- var otherRec = getSetRecord$4(other);
2631
- if (size$2(O) <= otherRec.size) return iterateSet(O, function (e) {
2632
- if (otherRec.includes(e)) return false;
2633
- }, true) !== false;
2634
- var iterator = otherRec.getIterator();
2635
- return iterateSimple$3(iterator, function (e) {
2636
- if (has$2(O, e)) return iteratorClose$1(iterator, 'normal', false);
2637
- }) !== false;
2638
- };
2639
-
2640
- var $$5 = _export;
2641
- var isDisjointFrom = setIsDisjointFrom;
2642
- var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
2643
-
2644
- var INCORRECT$2 = !setMethodAcceptSetLike$4('isDisjointFrom', function (result) {
2645
- return !result;
2646
- });
2647
-
2648
- // `Set.prototype.isDisjointFrom` method
2649
- // https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
2650
- $$5({ target: 'Set', proto: true, real: true, forced: INCORRECT$2 }, {
2651
- isDisjointFrom: isDisjointFrom
2652
- });
2653
-
2654
- var aSet$3 = aSet$7;
2655
- var size$1 = setSize;
2656
- var iterate = setIterate;
2657
- var getSetRecord$3 = getSetRecord$7;
2658
-
2659
- // `Set.prototype.isSubsetOf` method
2660
- // https://tc39.es/ecma262/#sec-set.prototype.issubsetof
2661
- var setIsSubsetOf = function isSubsetOf(other) {
2662
- var O = aSet$3(this);
2663
- var otherRec = getSetRecord$3(other);
2664
- if (size$1(O) > otherRec.size) return false;
2665
- return iterate(O, function (e) {
2666
- if (!otherRec.includes(e)) return false;
2667
- }, true) !== false;
2668
- };
2669
-
2670
- var $$4 = _export;
2671
- var isSubsetOf = setIsSubsetOf;
2672
- var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
2673
-
2674
- var INCORRECT$1 = !setMethodAcceptSetLike$3('isSubsetOf', function (result) {
2675
- return result;
2676
- });
2677
-
2678
- // `Set.prototype.isSubsetOf` method
2679
- // https://tc39.es/ecma262/#sec-set.prototype.issubsetof
2680
- $$4({ target: 'Set', proto: true, real: true, forced: INCORRECT$1 }, {
2681
- isSubsetOf: isSubsetOf
2682
- });
2683
-
2684
- var aSet$2 = aSet$7;
2685
- var has$1 = setHelpers.has;
2686
- var size = setSize;
2687
- var getSetRecord$2 = getSetRecord$7;
2688
- var iterateSimple$2 = iterateSimple$7;
2689
- var iteratorClose = iteratorClose$9;
2690
-
2691
- // `Set.prototype.isSupersetOf` method
2692
- // https://tc39.es/ecma262/#sec-set.prototype.issupersetof
2693
- var setIsSupersetOf = function isSupersetOf(other) {
2694
- var O = aSet$2(this);
2695
- var otherRec = getSetRecord$2(other);
2696
- if (size(O) < otherRec.size) return false;
2697
- var iterator = otherRec.getIterator();
2698
- return iterateSimple$2(iterator, function (e) {
2699
- if (!has$1(O, e)) return iteratorClose(iterator, 'normal', false);
2700
- }) !== false;
2701
- };
2702
-
2703
- var $$3 = _export;
2704
- var isSupersetOf = setIsSupersetOf;
2705
- var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
2706
-
2707
- var INCORRECT = !setMethodAcceptSetLike$2('isSupersetOf', function (result) {
2708
- return !result;
2709
- });
2710
-
2711
- // `Set.prototype.isSupersetOf` method
2712
- // https://tc39.es/ecma262/#sec-set.prototype.issupersetof
2713
- $$3({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
2714
- isSupersetOf: isSupersetOf
2715
- });
2716
-
2717
- var aSet$1 = aSet$7;
2718
- var SetHelpers = setHelpers;
2719
- var clone$1 = setClone;
2720
- var getSetRecord$1 = getSetRecord$7;
2721
- var iterateSimple$1 = iterateSimple$7;
2722
-
2723
- var add$1 = SetHelpers.add;
2724
- var has = SetHelpers.has;
2725
- var remove = SetHelpers.remove;
2726
-
2727
- // `Set.prototype.symmetricDifference` method
2728
- // https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
2729
- var setSymmetricDifference = function symmetricDifference(other) {
2730
- var O = aSet$1(this);
2731
- var keysIter = getSetRecord$1(other).getIterator();
2732
- var result = clone$1(O);
2733
- iterateSimple$1(keysIter, function (e) {
2734
- if (has(O, e)) remove(result, e);
2735
- else add$1(result, e);
2736
- });
2737
- return result;
2738
- };
2739
-
2740
- // Should get iterator record of a set-like object before cloning this
2741
- // https://bugs.webkit.org/show_bug.cgi?id=289430
2742
- var setMethodGetKeysBeforeCloningDetection = function (METHOD_NAME) {
2743
- try {
2744
- // eslint-disable-next-line es/no-set -- needed for test
2745
- var baseSet = new Set();
2746
- var setLike = {
2747
- size: 0,
2748
- has: function () { return true; },
2749
- keys: function () {
2750
- // eslint-disable-next-line es/no-object-defineproperty -- needed for test
2751
- return Object.defineProperty({}, 'next', {
2752
- get: function () {
2753
- baseSet.clear();
2754
- baseSet.add(4);
2755
- return function () {
2756
- return { done: true };
2757
- };
2758
- }
2759
- });
2821
+ new Set()[name](createSetLike(0));
2822
+ try {
2823
+ // late spec change, early WebKit ~ Safari 17 implementation does not pass it
2824
+ // https://github.com/tc39/proposal-set-methods/pull/88
2825
+ // also covered engines with
2826
+ // https://bugs.webkit.org/show_bug.cgi?id=272679
2827
+ new Set()[name](createSetLike(-1));
2828
+ return false;
2829
+ } catch (error2) {
2830
+ if (!callback) return true;
2831
+ // early V8 implementation bug
2832
+ // https://issues.chromium.org/issues/351332634
2833
+ try {
2834
+ new Set()[name](createSetLikeWithInfinitySize(-Infinity));
2835
+ return false;
2836
+ } catch (error) {
2837
+ var set = new Set();
2838
+ set.add(1);
2839
+ set.add(2);
2840
+ return callback(set[name](createSetLikeWithInfinitySize(Infinity)));
2760
2841
  }
2761
- };
2762
- var result = baseSet[METHOD_NAME](setLike);
2763
-
2764
- return result.size === 1 && result.values().next().value === 4;
2842
+ }
2765
2843
  } catch (error) {
2766
2844
  return false;
2767
2845
  }
2768
2846
  };
2769
2847
 
2770
- var $$2 = _export;
2771
- var symmetricDifference = setSymmetricDifference;
2772
- var setMethodGetKeysBeforeCloning$1 = setMethodGetKeysBeforeCloningDetection;
2773
- var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
2774
-
2775
- var FORCED$1 = !setMethodAcceptSetLike$1('symmetricDifference') || !setMethodGetKeysBeforeCloning$1('symmetricDifference');
2848
+ var $$6 = _export;
2849
+ var difference = setDifference;
2850
+ var fails$1 = fails$f;
2851
+ var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
2776
2852
 
2777
- // `Set.prototype.symmetricDifference` method
2778
- // https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
2779
- $$2({ target: 'Set', proto: true, real: true, forced: FORCED$1 }, {
2780
- symmetricDifference: symmetricDifference
2853
+ var SET_LIKE_INCORRECT_BEHAVIOR = !setMethodAcceptSetLike$6('difference', function (result) {
2854
+ return result.size === 0;
2781
2855
  });
2782
2856
 
2783
- var aSet = aSet$7;
2784
- var add = setHelpers.add;
2785
- var clone = setClone;
2786
- var getSetRecord = getSetRecord$7;
2787
- var iterateSimple = iterateSimple$7;
2788
-
2789
- // `Set.prototype.union` method
2790
- // https://tc39.es/ecma262/#sec-set.prototype.union
2791
- var setUnion = function union(other) {
2792
- var O = aSet(this);
2793
- var keysIter = getSetRecord(other).getIterator();
2794
- var result = clone(O);
2795
- iterateSimple(keysIter, function (it) {
2796
- add(result, it);
2797
- });
2798
- return result;
2799
- };
2800
-
2801
- var $$1 = _export;
2802
- var union = setUnion;
2803
- var setMethodGetKeysBeforeCloning = setMethodGetKeysBeforeCloningDetection;
2804
- var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
2805
-
2806
- var FORCED = !setMethodAcceptSetLike('union') || !setMethodGetKeysBeforeCloning('union');
2807
-
2808
- // `Set.prototype.union` method
2809
- // https://tc39.es/ecma262/#sec-set.prototype.union
2810
- $$1({ target: 'Set', proto: true, real: true, forced: FORCED }, {
2811
- union: union
2857
+ var FORCED$2 = SET_LIKE_INCORRECT_BEHAVIOR || fails$1(function () {
2858
+ // https://bugs.webkit.org/show_bug.cgi?id=288595
2859
+ var setLike = {
2860
+ size: 1,
2861
+ has: function () { return true; },
2862
+ keys: function () {
2863
+ var index = 0;
2864
+ return {
2865
+ next: function () {
2866
+ var done = index++ > 1;
2867
+ if (baseSet.has(1)) baseSet.clear();
2868
+ return { done: done, value: 2 };
2869
+ }
2870
+ };
2871
+ }
2872
+ };
2873
+ // eslint-disable-next-line es/no-set -- testing
2874
+ var baseSet = new Set([1, 2, 3, 4]);
2875
+ // eslint-disable-next-line es/no-set-prototype-difference -- testing
2876
+ return baseSet.difference(setLike).size !== 3;
2812
2877
  });
2813
2878
 
2814
- // iterable DOM collections
2815
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
2816
- var domIterables = {
2817
- CSSRuleList: 0,
2818
- CSSStyleDeclaration: 0,
2819
- CSSValueList: 0,
2820
- ClientRectList: 0,
2821
- DOMRectList: 0,
2822
- DOMStringList: 0,
2823
- DOMTokenList: 1,
2824
- DataTransferItemList: 0,
2825
- FileList: 0,
2826
- HTMLAllCollection: 0,
2827
- HTMLCollection: 0,
2828
- HTMLFormElement: 0,
2829
- HTMLSelectElement: 0,
2830
- MediaList: 0,
2831
- MimeTypeArray: 0,
2832
- NamedNodeMap: 0,
2833
- NodeList: 1,
2834
- PaintRequestList: 0,
2835
- Plugin: 0,
2836
- PluginArray: 0,
2837
- SVGLengthList: 0,
2838
- SVGNumberList: 0,
2839
- SVGPathSegList: 0,
2840
- SVGPointList: 0,
2841
- SVGStringList: 0,
2842
- SVGTransformList: 0,
2843
- SourceBufferList: 0,
2844
- StyleSheetList: 0,
2845
- TextTrackCueList: 0,
2846
- TextTrackList: 0,
2847
- TouchList: 0
2848
- };
2879
+ // `Set.prototype.difference` method
2880
+ // https://tc39.es/ecma262/#sec-set.prototype.difference
2881
+ $$6({ target: 'Set', proto: true, real: true, forced: FORCED$2 }, {
2882
+ difference: difference
2883
+ });
2849
2884
 
2850
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
2851
- var documentCreateElement = documentCreateElement$2;
2885
+ var aSet$5 = aSet$7;
2886
+ var SetHelpers$1 = setHelpers;
2887
+ var size$3 = setSize;
2888
+ var getSetRecord$5 = getSetRecord$7;
2889
+ var iterateSet$1 = setIterate;
2890
+ var iterateSimple$4 = iterateSimple$7;
2852
2891
 
2853
- var classList = documentCreateElement('span').classList;
2854
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
2892
+ var Set$1 = SetHelpers$1.Set;
2893
+ var add$2 = SetHelpers$1.add;
2894
+ var has$3 = SetHelpers$1.has;
2855
2895
 
2856
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2896
+ // `Set.prototype.intersection` method
2897
+ // https://tc39.es/ecma262/#sec-set.prototype.intersection
2898
+ var setIntersection = function intersection(other) {
2899
+ var O = aSet$5(this);
2900
+ var otherRec = getSetRecord$5(other);
2901
+ var result = new Set$1();
2857
2902
 
2858
- var wellKnownSymbol$3 = wellKnownSymbol$c;
2859
- var create$1 = objectCreate;
2860
- var defineProperty$2 = objectDefineProperty.f;
2903
+ if (size$3(O) > otherRec.size) {
2904
+ iterateSimple$4(otherRec.getIterator(), function (e) {
2905
+ if (has$3(O, e)) add$2(result, e);
2906
+ });
2907
+ } else {
2908
+ iterateSet$1(O, function (e) {
2909
+ if (otherRec.includes(e)) add$2(result, e);
2910
+ });
2911
+ }
2861
2912
 
2862
- var UNSCOPABLES = wellKnownSymbol$3('unscopables');
2863
- var ArrayPrototype = Array.prototype;
2913
+ return result;
2914
+ };
2864
2915
 
2865
- // Array.prototype[@@unscopables]
2866
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2867
- if (ArrayPrototype[UNSCOPABLES] === undefined) {
2868
- defineProperty$2(ArrayPrototype, UNSCOPABLES, {
2869
- configurable: true,
2870
- value: create$1(null)
2871
- });
2872
- }
2916
+ var $$5 = _export;
2917
+ var fails = fails$f;
2918
+ var intersection = setIntersection;
2919
+ var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
2873
2920
 
2874
- // add a key to Array.prototype[@@unscopables]
2875
- var addToUnscopables$1 = function (key) {
2876
- ArrayPrototype[UNSCOPABLES][key] = true;
2877
- };
2921
+ var INCORRECT$3 = !setMethodAcceptSetLike$5('intersection', function (result) {
2922
+ return result.size === 2 && result.has(1) && result.has(2);
2923
+ }) || fails(function () {
2924
+ // eslint-disable-next-line es/no-array-from, es/no-set, es/no-set-prototype-intersection -- testing
2925
+ return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
2926
+ });
2878
2927
 
2879
- var defineProperty$1 = objectDefineProperty.f;
2880
- var hasOwn = hasOwnProperty_1;
2881
- var wellKnownSymbol$2 = wellKnownSymbol$c;
2928
+ // `Set.prototype.intersection` method
2929
+ // https://tc39.es/ecma262/#sec-set.prototype.intersection
2930
+ $$5({ target: 'Set', proto: true, real: true, forced: INCORRECT$3 }, {
2931
+ intersection: intersection
2932
+ });
2882
2933
 
2883
- var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
2934
+ var aSet$4 = aSet$7;
2935
+ var has$2 = setHelpers.has;
2936
+ var size$2 = setSize;
2937
+ var getSetRecord$4 = getSetRecord$7;
2938
+ var iterateSet = setIterate;
2939
+ var iterateSimple$3 = iterateSimple$7;
2940
+ var iteratorClose$1 = iteratorClose$9;
2884
2941
 
2885
- var setToStringTag$3 = function (target, TAG, STATIC) {
2886
- if (target && !STATIC) target = target.prototype;
2887
- if (target && !hasOwn(target, TO_STRING_TAG)) {
2888
- defineProperty$1(target, TO_STRING_TAG, { configurable: true, value: TAG });
2889
- }
2942
+ // `Set.prototype.isDisjointFrom` method
2943
+ // https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
2944
+ var setIsDisjointFrom = function isDisjointFrom(other) {
2945
+ var O = aSet$4(this);
2946
+ var otherRec = getSetRecord$4(other);
2947
+ if (size$2(O) <= otherRec.size) return iterateSet(O, function (e) {
2948
+ if (otherRec.includes(e)) return false;
2949
+ }, true) !== false;
2950
+ var iterator = otherRec.getIterator();
2951
+ return iterateSimple$3(iterator, function (e) {
2952
+ if (has$2(O, e)) return iteratorClose$1(iterator, 'normal', false);
2953
+ }) !== false;
2890
2954
  };
2891
2955
 
2892
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
2893
- var create = objectCreate;
2894
- var createPropertyDescriptor = createPropertyDescriptor$5;
2895
- var setToStringTag$2 = setToStringTag$3;
2896
- var Iterators$2 = iterators;
2956
+ var $$4 = _export;
2957
+ var isDisjointFrom = setIsDisjointFrom;
2958
+ var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
2897
2959
 
2898
- var returnThis$1 = function () { return this; };
2960
+ var INCORRECT$2 = !setMethodAcceptSetLike$4('isDisjointFrom', function (result) {
2961
+ return !result;
2962
+ });
2899
2963
 
2900
- var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
2901
- var TO_STRING_TAG = NAME + ' Iterator';
2902
- IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
2903
- setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
2904
- Iterators$2[TO_STRING_TAG] = returnThis$1;
2905
- return IteratorConstructor;
2906
- };
2964
+ // `Set.prototype.isDisjointFrom` method
2965
+ // https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
2966
+ $$4({ target: 'Set', proto: true, real: true, forced: INCORRECT$2 }, {
2967
+ isDisjointFrom: isDisjointFrom
2968
+ });
2907
2969
 
2908
- var $ = _export;
2909
- var call = functionCall;
2910
- var FunctionName = functionName;
2911
- var isCallable = isCallable$g;
2912
- var createIteratorConstructor = iteratorCreateConstructor;
2913
- var getPrototypeOf = objectGetPrototypeOf;
2914
- var setPrototypeOf = objectSetPrototypeOf;
2915
- var setToStringTag$1 = setToStringTag$3;
2916
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
2917
- var defineBuiltIn = defineBuiltIn$4;
2918
- var wellKnownSymbol$1 = wellKnownSymbol$c;
2919
- var Iterators$1 = iterators;
2920
- var IteratorsCore = iteratorsCore;
2970
+ var aSet$3 = aSet$7;
2971
+ var size$1 = setSize;
2972
+ var iterate = setIterate;
2973
+ var getSetRecord$3 = getSetRecord$7;
2921
2974
 
2922
- var PROPER_FUNCTION_NAME = FunctionName.PROPER;
2923
- var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
2924
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
2925
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
2926
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
2927
- var KEYS = 'keys';
2928
- var VALUES = 'values';
2929
- var ENTRIES = 'entries';
2975
+ // `Set.prototype.isSubsetOf` method
2976
+ // https://tc39.es/ecma262/#sec-set.prototype.issubsetof
2977
+ var setIsSubsetOf = function isSubsetOf(other) {
2978
+ var O = aSet$3(this);
2979
+ var otherRec = getSetRecord$3(other);
2980
+ if (size$1(O) > otherRec.size) return false;
2981
+ return iterate(O, function (e) {
2982
+ if (!otherRec.includes(e)) return false;
2983
+ }, true) !== false;
2984
+ };
2930
2985
 
2931
- var returnThis = function () { return this; };
2986
+ var $$3 = _export;
2987
+ var isSubsetOf = setIsSubsetOf;
2988
+ var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
2932
2989
 
2933
- var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
2934
- createIteratorConstructor(IteratorConstructor, NAME, next);
2990
+ var INCORRECT$1 = !setMethodAcceptSetLike$3('isSubsetOf', function (result) {
2991
+ return result;
2992
+ });
2935
2993
 
2936
- var getIterationMethod = function (KIND) {
2937
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
2938
- if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
2994
+ // `Set.prototype.isSubsetOf` method
2995
+ // https://tc39.es/ecma262/#sec-set.prototype.issubsetof
2996
+ $$3({ target: 'Set', proto: true, real: true, forced: INCORRECT$1 }, {
2997
+ isSubsetOf: isSubsetOf
2998
+ });
2939
2999
 
2940
- switch (KIND) {
2941
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
2942
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
2943
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
2944
- }
3000
+ var aSet$2 = aSet$7;
3001
+ var has$1 = setHelpers.has;
3002
+ var size = setSize;
3003
+ var getSetRecord$2 = getSetRecord$7;
3004
+ var iterateSimple$2 = iterateSimple$7;
3005
+ var iteratorClose = iteratorClose$9;
2945
3006
 
2946
- return function () { return new IteratorConstructor(this); };
2947
- };
3007
+ // `Set.prototype.isSupersetOf` method
3008
+ // https://tc39.es/ecma262/#sec-set.prototype.issupersetof
3009
+ var setIsSupersetOf = function isSupersetOf(other) {
3010
+ var O = aSet$2(this);
3011
+ var otherRec = getSetRecord$2(other);
3012
+ if (size(O) < otherRec.size) return false;
3013
+ var iterator = otherRec.getIterator();
3014
+ return iterateSimple$2(iterator, function (e) {
3015
+ if (!has$1(O, e)) return iteratorClose(iterator, 'normal', false);
3016
+ }) !== false;
3017
+ };
2948
3018
 
2949
- var TO_STRING_TAG = NAME + ' Iterator';
2950
- var INCORRECT_VALUES_NAME = false;
2951
- var IterablePrototype = Iterable.prototype;
2952
- var nativeIterator = IterablePrototype[ITERATOR$1]
2953
- || IterablePrototype['@@iterator']
2954
- || DEFAULT && IterablePrototype[DEFAULT];
2955
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
2956
- var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
2957
- var CurrentIteratorPrototype, methods, KEY;
3019
+ var $$2 = _export;
3020
+ var isSupersetOf = setIsSupersetOf;
3021
+ var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
2958
3022
 
2959
- // fix native
2960
- if (anyNativeIterator) {
2961
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
2962
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
2963
- if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
2964
- if (setPrototypeOf) {
2965
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
2966
- } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
2967
- defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
2968
- }
2969
- }
2970
- // Set @@toStringTag to native iterators
2971
- setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
2972
- }
2973
- }
3023
+ var INCORRECT = !setMethodAcceptSetLike$2('isSupersetOf', function (result) {
3024
+ return !result;
3025
+ });
2974
3026
 
2975
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
2976
- if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
2977
- if (CONFIGURABLE_FUNCTION_NAME) {
2978
- createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
2979
- } else {
2980
- INCORRECT_VALUES_NAME = true;
2981
- defaultIterator = function values() { return call(nativeIterator, this); };
2982
- }
2983
- }
3027
+ // `Set.prototype.isSupersetOf` method
3028
+ // https://tc39.es/ecma262/#sec-set.prototype.issupersetof
3029
+ $$2({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
3030
+ isSupersetOf: isSupersetOf
3031
+ });
2984
3032
 
2985
- // export additional methods
2986
- if (DEFAULT) {
2987
- methods = {
2988
- values: getIterationMethod(VALUES),
2989
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
2990
- entries: getIterationMethod(ENTRIES)
2991
- };
2992
- if (FORCED) for (KEY in methods) {
2993
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
2994
- defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
2995
- }
2996
- } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
2997
- }
3033
+ var aSet$1 = aSet$7;
3034
+ var SetHelpers = setHelpers;
3035
+ var clone$1 = setClone;
3036
+ var getSetRecord$1 = getSetRecord$7;
3037
+ var iterateSimple$1 = iterateSimple$7;
2998
3038
 
2999
- // define iterator
3000
- if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
3001
- defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
3002
- }
3003
- Iterators$1[NAME] = defaultIterator;
3039
+ var add$1 = SetHelpers.add;
3040
+ var has = SetHelpers.has;
3041
+ var remove = SetHelpers.remove;
3004
3042
 
3005
- return methods;
3043
+ // `Set.prototype.symmetricDifference` method
3044
+ // https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
3045
+ var setSymmetricDifference = function symmetricDifference(other) {
3046
+ var O = aSet$1(this);
3047
+ var keysIter = getSetRecord$1(other).getIterator();
3048
+ var result = clone$1(O);
3049
+ iterateSimple$1(keysIter, function (e) {
3050
+ if (has(O, e)) remove(result, e);
3051
+ else add$1(result, e);
3052
+ });
3053
+ return result;
3006
3054
  };
3007
3055
 
3008
- var toIndexedObject = toIndexedObject$5;
3009
- var addToUnscopables = addToUnscopables$1;
3010
- var Iterators = iterators;
3011
- var InternalStateModule = internalState;
3012
- var defineProperty = objectDefineProperty.f;
3013
- var defineIterator = iteratorDefine;
3014
- var createIterResultObject = createIterResultObject$2;
3015
- var DESCRIPTORS = descriptors;
3016
-
3017
- var ARRAY_ITERATOR = 'Array Iterator';
3018
- var setInternalState = InternalStateModule.set;
3019
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
3056
+ // Should get iterator record of a set-like object before cloning this
3057
+ // https://bugs.webkit.org/show_bug.cgi?id=289430
3058
+ var setMethodGetKeysBeforeCloningDetection = function (METHOD_NAME) {
3059
+ try {
3060
+ // eslint-disable-next-line es/no-set -- needed for test
3061
+ var baseSet = new Set();
3062
+ var setLike = {
3063
+ size: 0,
3064
+ has: function () { return true; },
3065
+ keys: function () {
3066
+ // eslint-disable-next-line es/no-object-defineproperty -- needed for test
3067
+ return Object.defineProperty({}, 'next', {
3068
+ get: function () {
3069
+ baseSet.clear();
3070
+ baseSet.add(4);
3071
+ return function () {
3072
+ return { done: true };
3073
+ };
3074
+ }
3075
+ });
3076
+ }
3077
+ };
3078
+ var result = baseSet[METHOD_NAME](setLike);
3020
3079
 
3021
- // `Array.prototype.entries` method
3022
- // https://tc39.es/ecma262/#sec-array.prototype.entries
3023
- // `Array.prototype.keys` method
3024
- // https://tc39.es/ecma262/#sec-array.prototype.keys
3025
- // `Array.prototype.values` method
3026
- // https://tc39.es/ecma262/#sec-array.prototype.values
3027
- // `Array.prototype[@@iterator]` method
3028
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
3029
- // `CreateArrayIterator` internal method
3030
- // https://tc39.es/ecma262/#sec-createarrayiterator
3031
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
3032
- setInternalState(this, {
3033
- type: ARRAY_ITERATOR,
3034
- target: toIndexedObject(iterated), // target
3035
- index: 0, // next index
3036
- kind: kind // kind
3037
- });
3038
- // `%ArrayIteratorPrototype%.next` method
3039
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
3040
- }, function () {
3041
- var state = getInternalState(this);
3042
- var target = state.target;
3043
- var index = state.index++;
3044
- if (!target || index >= target.length) {
3045
- state.target = null;
3046
- return createIterResultObject(undefined, true);
3080
+ return result.size === 1 && result.values().next().value === 4;
3081
+ } catch (error) {
3082
+ return false;
3047
3083
  }
3048
- switch (state.kind) {
3049
- case 'keys': return createIterResultObject(index, false);
3050
- case 'values': return createIterResultObject(target[index], false);
3051
- } return createIterResultObject([index, target[index]], false);
3052
- }, 'values');
3053
-
3054
- // argumentsList[@@iterator] is %ArrayProto_values%
3055
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
3056
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
3057
- var values = Iterators.Arguments = Iterators.Array;
3084
+ };
3058
3085
 
3059
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
3060
- addToUnscopables('keys');
3061
- addToUnscopables('values');
3062
- addToUnscopables('entries');
3086
+ var $$1 = _export;
3087
+ var symmetricDifference = setSymmetricDifference;
3088
+ var setMethodGetKeysBeforeCloning$1 = setMethodGetKeysBeforeCloningDetection;
3089
+ var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
3063
3090
 
3064
- // V8 ~ Chrome 45- bug
3065
- if (DESCRIPTORS && values.name !== 'values') try {
3066
- defineProperty(values, 'name', { value: 'values' });
3067
- } catch (error) { /* empty */ }
3091
+ var FORCED$1 = !setMethodAcceptSetLike$1('symmetricDifference') || !setMethodGetKeysBeforeCloning$1('symmetricDifference');
3068
3092
 
3069
- var globalThis$1 = globalThis_1;
3070
- var DOMIterables = domIterables;
3071
- var DOMTokenListPrototype = domTokenListPrototype;
3072
- var ArrayIteratorMethods = es_array_iterator;
3073
- var createNonEnumerableProperty = createNonEnumerableProperty$8;
3074
- var setToStringTag = setToStringTag$3;
3075
- var wellKnownSymbol = wellKnownSymbol$c;
3093
+ // `Set.prototype.symmetricDifference` method
3094
+ // https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
3095
+ $$1({ target: 'Set', proto: true, real: true, forced: FORCED$1 }, {
3096
+ symmetricDifference: symmetricDifference
3097
+ });
3076
3098
 
3077
- var ITERATOR = wellKnownSymbol('iterator');
3078
- var ArrayValues = ArrayIteratorMethods.values;
3099
+ var aSet = aSet$7;
3100
+ var add = setHelpers.add;
3101
+ var clone = setClone;
3102
+ var getSetRecord = getSetRecord$7;
3103
+ var iterateSimple = iterateSimple$7;
3079
3104
 
3080
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
3081
- if (CollectionPrototype) {
3082
- // some Chrome versions have non-configurable methods on DOMTokenList
3083
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
3084
- createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
3085
- } catch (error) {
3086
- CollectionPrototype[ITERATOR] = ArrayValues;
3087
- }
3088
- setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
3089
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
3090
- // some Chrome versions have non-configurable methods on DOMTokenList
3091
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
3092
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
3093
- } catch (error) {
3094
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
3095
- }
3096
- }
3097
- }
3105
+ // `Set.prototype.union` method
3106
+ // https://tc39.es/ecma262/#sec-set.prototype.union
3107
+ var setUnion = function union(other) {
3108
+ var O = aSet(this);
3109
+ var keysIter = getSetRecord(other).getIterator();
3110
+ var result = clone(O);
3111
+ iterateSimple(keysIter, function (it) {
3112
+ add(result, it);
3113
+ });
3114
+ return result;
3098
3115
  };
3099
3116
 
3100
- for (var COLLECTION_NAME in DOMIterables) {
3101
- handlePrototype(globalThis$1[COLLECTION_NAME] && globalThis$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
3102
- }
3117
+ var $ = _export;
3118
+ var union = setUnion;
3119
+ var setMethodGetKeysBeforeCloning = setMethodGetKeysBeforeCloningDetection;
3120
+ var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
3103
3121
 
3104
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
3122
+ var FORCED = !setMethodAcceptSetLike('union') || !setMethodGetKeysBeforeCloning('union');
3123
+
3124
+ // `Set.prototype.union` method
3125
+ // https://tc39.es/ecma262/#sec-set.prototype.union
3126
+ $({ target: 'Set', proto: true, real: true, forced: FORCED }, {
3127
+ union: union
3128
+ });
3105
3129
 
3106
3130
  const cache = new Map();
3107
3131
  const processVariables = (theme, prefix, cacheKey) => {