@fkui/vue-labs 6.34.1 → 6.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ const vue = require("vue");
4
4
  const logic = require("@fkui/logic");
5
5
  const vue$1 = require("@fkui/vue");
6
6
  const core = require("@vueuse/core");
7
- var es_iterator_constructor = {};
7
+ var es_iterator_forEach = {};
8
8
  var globalThis_1;
9
9
  var hasRequiredGlobalThis;
10
10
  function requireGlobalThis() {
@@ -1182,239 +1182,544 @@ function require_export() {
1182
1182
  };
1183
1183
  return _export;
1184
1184
  }
1185
- var anInstance;
1186
- var hasRequiredAnInstance;
1187
- function requireAnInstance() {
1188
- if (hasRequiredAnInstance) return anInstance;
1189
- hasRequiredAnInstance = 1;
1190
- var isPrototypeOf = requireObjectIsPrototypeOf();
1191
- var $TypeError = TypeError;
1192
- anInstance = function(it, Prototype) {
1193
- if (isPrototypeOf(Prototype, it)) return it;
1194
- throw new $TypeError("Incorrect invocation");
1185
+ var functionUncurryThisClause;
1186
+ var hasRequiredFunctionUncurryThisClause;
1187
+ function requireFunctionUncurryThisClause() {
1188
+ if (hasRequiredFunctionUncurryThisClause) return functionUncurryThisClause;
1189
+ hasRequiredFunctionUncurryThisClause = 1;
1190
+ var classofRaw2 = requireClassofRaw();
1191
+ var uncurryThis = requireFunctionUncurryThis();
1192
+ functionUncurryThisClause = function(fn) {
1193
+ if (classofRaw2(fn) === "Function") return uncurryThis(fn);
1195
1194
  };
1196
- return anInstance;
1195
+ return functionUncurryThisClause;
1197
1196
  }
1198
- var correctPrototypeGetter;
1199
- var hasRequiredCorrectPrototypeGetter;
1200
- function requireCorrectPrototypeGetter() {
1201
- if (hasRequiredCorrectPrototypeGetter) return correctPrototypeGetter;
1202
- hasRequiredCorrectPrototypeGetter = 1;
1203
- var fails2 = requireFails();
1204
- correctPrototypeGetter = !fails2(function() {
1205
- function F() {
1206
- }
1207
- F.prototype.constructor = null;
1208
- return Object.getPrototypeOf(new F()) !== F.prototype;
1209
- });
1210
- return correctPrototypeGetter;
1197
+ var functionBindContext;
1198
+ var hasRequiredFunctionBindContext;
1199
+ function requireFunctionBindContext() {
1200
+ if (hasRequiredFunctionBindContext) return functionBindContext;
1201
+ hasRequiredFunctionBindContext = 1;
1202
+ var uncurryThis = requireFunctionUncurryThisClause();
1203
+ var aCallable2 = requireACallable();
1204
+ var NATIVE_BIND = requireFunctionBindNative();
1205
+ var bind = uncurryThis(uncurryThis.bind);
1206
+ functionBindContext = function(fn, that) {
1207
+ aCallable2(fn);
1208
+ return that === void 0 ? fn : NATIVE_BIND ? bind(fn, that) : function() {
1209
+ return fn.apply(that, arguments);
1210
+ };
1211
+ };
1212
+ return functionBindContext;
1211
1213
  }
1212
- var objectGetPrototypeOf;
1213
- var hasRequiredObjectGetPrototypeOf;
1214
- function requireObjectGetPrototypeOf() {
1215
- if (hasRequiredObjectGetPrototypeOf) return objectGetPrototypeOf;
1216
- hasRequiredObjectGetPrototypeOf = 1;
1217
- var hasOwn = requireHasOwnProperty();
1214
+ var iterators;
1215
+ var hasRequiredIterators;
1216
+ function requireIterators() {
1217
+ if (hasRequiredIterators) return iterators;
1218
+ hasRequiredIterators = 1;
1219
+ iterators = {};
1220
+ return iterators;
1221
+ }
1222
+ var isArrayIteratorMethod;
1223
+ var hasRequiredIsArrayIteratorMethod;
1224
+ function requireIsArrayIteratorMethod() {
1225
+ if (hasRequiredIsArrayIteratorMethod) return isArrayIteratorMethod;
1226
+ hasRequiredIsArrayIteratorMethod = 1;
1227
+ var wellKnownSymbol2 = requireWellKnownSymbol();
1228
+ var Iterators = requireIterators();
1229
+ var ITERATOR = wellKnownSymbol2("iterator");
1230
+ var ArrayPrototype = Array.prototype;
1231
+ isArrayIteratorMethod = function(it) {
1232
+ return it !== void 0 && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
1233
+ };
1234
+ return isArrayIteratorMethod;
1235
+ }
1236
+ var toStringTagSupport;
1237
+ var hasRequiredToStringTagSupport;
1238
+ function requireToStringTagSupport() {
1239
+ if (hasRequiredToStringTagSupport) return toStringTagSupport;
1240
+ hasRequiredToStringTagSupport = 1;
1241
+ var wellKnownSymbol2 = requireWellKnownSymbol();
1242
+ var TO_STRING_TAG = wellKnownSymbol2("toStringTag");
1243
+ var test = {};
1244
+ test[TO_STRING_TAG] = "z";
1245
+ toStringTagSupport = String(test) === "[object z]";
1246
+ return toStringTagSupport;
1247
+ }
1248
+ var classof;
1249
+ var hasRequiredClassof;
1250
+ function requireClassof() {
1251
+ if (hasRequiredClassof) return classof;
1252
+ hasRequiredClassof = 1;
1253
+ var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
1218
1254
  var isCallable2 = requireIsCallable();
1219
- var toObject2 = requireToObject();
1220
- var sharedKey2 = requireSharedKey();
1221
- var CORRECT_PROTOTYPE_GETTER = requireCorrectPrototypeGetter();
1222
- var IE_PROTO = sharedKey2("IE_PROTO");
1255
+ var classofRaw2 = requireClassofRaw();
1256
+ var wellKnownSymbol2 = requireWellKnownSymbol();
1257
+ var TO_STRING_TAG = wellKnownSymbol2("toStringTag");
1223
1258
  var $Object = Object;
1224
- var ObjectPrototype = $Object.prototype;
1225
- objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function(O) {
1226
- var object = toObject2(O);
1227
- if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
1228
- var constructor = object.constructor;
1229
- if (isCallable2(constructor) && object instanceof constructor) {
1230
- return constructor.prototype;
1259
+ var CORRECT_ARGUMENTS = classofRaw2(/* @__PURE__ */ (function() {
1260
+ return arguments;
1261
+ })()) === "Arguments";
1262
+ var tryGet = function(it, key) {
1263
+ try {
1264
+ return it[key];
1265
+ } catch (error) {
1231
1266
  }
1232
- return object instanceof $Object ? ObjectPrototype : null;
1233
1267
  };
1234
- return objectGetPrototypeOf;
1235
- }
1236
- var defineBuiltInAccessor;
1237
- var hasRequiredDefineBuiltInAccessor;
1238
- function requireDefineBuiltInAccessor() {
1239
- if (hasRequiredDefineBuiltInAccessor) return defineBuiltInAccessor;
1240
- hasRequiredDefineBuiltInAccessor = 1;
1241
- var makeBuiltIn2 = requireMakeBuiltIn();
1242
- var defineProperty = requireObjectDefineProperty();
1243
- defineBuiltInAccessor = function(target, name, descriptor) {
1244
- if (descriptor.get) makeBuiltIn2(descriptor.get, name, {
1245
- getter: true
1246
- });
1247
- if (descriptor.set) makeBuiltIn2(descriptor.set, name, {
1248
- setter: true
1249
- });
1250
- return defineProperty.f(target, name, descriptor);
1268
+ classof = TO_STRING_TAG_SUPPORT ? classofRaw2 : function(it) {
1269
+ var O, tag, result;
1270
+ return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw2(O) : (result = classofRaw2(O)) === "Object" && isCallable2(O.callee) ? "Arguments" : result;
1251
1271
  };
1252
- return defineBuiltInAccessor;
1272
+ return classof;
1253
1273
  }
1254
- var createProperty;
1255
- var hasRequiredCreateProperty;
1256
- function requireCreateProperty() {
1257
- if (hasRequiredCreateProperty) return createProperty;
1258
- hasRequiredCreateProperty = 1;
1259
- var DESCRIPTORS = requireDescriptors();
1260
- var definePropertyModule = requireObjectDefineProperty();
1261
- var createPropertyDescriptor2 = requireCreatePropertyDescriptor();
1262
- createProperty = function(object, key, value) {
1263
- if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor2(0, value));
1264
- else object[key] = value;
1274
+ var getIteratorMethod;
1275
+ var hasRequiredGetIteratorMethod;
1276
+ function requireGetIteratorMethod() {
1277
+ if (hasRequiredGetIteratorMethod) return getIteratorMethod;
1278
+ hasRequiredGetIteratorMethod = 1;
1279
+ var classof2 = requireClassof();
1280
+ var getMethod2 = requireGetMethod();
1281
+ var isNullOrUndefined2 = requireIsNullOrUndefined();
1282
+ var Iterators = requireIterators();
1283
+ var wellKnownSymbol2 = requireWellKnownSymbol();
1284
+ var ITERATOR = wellKnownSymbol2("iterator");
1285
+ getIteratorMethod = function(it) {
1286
+ if (!isNullOrUndefined2(it)) return getMethod2(it, ITERATOR) || getMethod2(it, "@@iterator") || Iterators[classof2(it)];
1265
1287
  };
1266
- return createProperty;
1288
+ return getIteratorMethod;
1267
1289
  }
1268
- var objectDefineProperties = {};
1269
- var objectKeys;
1270
- var hasRequiredObjectKeys;
1271
- function requireObjectKeys() {
1272
- if (hasRequiredObjectKeys) return objectKeys;
1273
- hasRequiredObjectKeys = 1;
1274
- var internalObjectKeys = requireObjectKeysInternal();
1275
- var enumBugKeys2 = requireEnumBugKeys();
1276
- objectKeys = Object.keys || function keys(O) {
1277
- return internalObjectKeys(O, enumBugKeys2);
1290
+ var getIterator;
1291
+ var hasRequiredGetIterator;
1292
+ function requireGetIterator() {
1293
+ if (hasRequiredGetIterator) return getIterator;
1294
+ hasRequiredGetIterator = 1;
1295
+ var call = requireFunctionCall();
1296
+ var aCallable2 = requireACallable();
1297
+ var anObject2 = requireAnObject();
1298
+ var tryToString2 = requireTryToString();
1299
+ var getIteratorMethod2 = requireGetIteratorMethod();
1300
+ var $TypeError = TypeError;
1301
+ getIterator = function(argument, usingIterator) {
1302
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod2(argument) : usingIterator;
1303
+ if (aCallable2(iteratorMethod)) return anObject2(call(iteratorMethod, argument));
1304
+ throw new $TypeError(tryToString2(argument) + " is not iterable");
1278
1305
  };
1279
- return objectKeys;
1306
+ return getIterator;
1280
1307
  }
1281
- var hasRequiredObjectDefineProperties;
1282
- function requireObjectDefineProperties() {
1283
- if (hasRequiredObjectDefineProperties) return objectDefineProperties;
1284
- hasRequiredObjectDefineProperties = 1;
1285
- var DESCRIPTORS = requireDescriptors();
1286
- var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
1287
- var definePropertyModule = requireObjectDefineProperty();
1308
+ var iteratorClose;
1309
+ var hasRequiredIteratorClose;
1310
+ function requireIteratorClose() {
1311
+ if (hasRequiredIteratorClose) return iteratorClose;
1312
+ hasRequiredIteratorClose = 1;
1313
+ var call = requireFunctionCall();
1288
1314
  var anObject2 = requireAnObject();
1289
- var toIndexedObject2 = requireToIndexedObject();
1290
- var objectKeys2 = requireObjectKeys();
1291
- objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1292
- anObject2(O);
1293
- var props = toIndexedObject2(Properties);
1294
- var keys = objectKeys2(Properties);
1295
- var length = keys.length;
1296
- var index = 0;
1297
- var key;
1298
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1299
- return O;
1315
+ var getMethod2 = requireGetMethod();
1316
+ iteratorClose = function(iterator, kind, value) {
1317
+ var innerResult, innerError;
1318
+ anObject2(iterator);
1319
+ try {
1320
+ innerResult = getMethod2(iterator, "return");
1321
+ if (!innerResult) {
1322
+ if (kind === "throw") throw value;
1323
+ return value;
1324
+ }
1325
+ innerResult = call(innerResult, iterator);
1326
+ } catch (error) {
1327
+ innerError = true;
1328
+ innerResult = error;
1329
+ }
1330
+ if (kind === "throw") throw value;
1331
+ if (innerError) throw innerResult;
1332
+ anObject2(innerResult);
1333
+ return value;
1300
1334
  };
1301
- return objectDefineProperties;
1302
- }
1303
- var html;
1304
- var hasRequiredHtml;
1305
- function requireHtml() {
1306
- if (hasRequiredHtml) return html;
1307
- hasRequiredHtml = 1;
1308
- var getBuiltIn2 = requireGetBuiltIn();
1309
- html = getBuiltIn2("document", "documentElement");
1310
- return html;
1335
+ return iteratorClose;
1311
1336
  }
1312
- var objectCreate;
1313
- var hasRequiredObjectCreate;
1314
- function requireObjectCreate() {
1315
- if (hasRequiredObjectCreate) return objectCreate;
1316
- hasRequiredObjectCreate = 1;
1317
- var anObject2 = requireAnObject();
1318
- var definePropertiesModule = requireObjectDefineProperties();
1319
- var enumBugKeys2 = requireEnumBugKeys();
1320
- var hiddenKeys2 = requireHiddenKeys();
1321
- var html2 = requireHtml();
1322
- var documentCreateElement2 = requireDocumentCreateElement();
1323
- var sharedKey2 = requireSharedKey();
1324
- var GT = ">";
1325
- var LT = "<";
1326
- var PROTOTYPE = "prototype";
1327
- var SCRIPT = "script";
1328
- var IE_PROTO = sharedKey2("IE_PROTO");
1329
- var EmptyConstructor = function() {
1330
- };
1331
- var scriptTag = function(content) {
1332
- return LT + SCRIPT + GT + content + LT + "/" + SCRIPT + GT;
1337
+ var iterate;
1338
+ var hasRequiredIterate;
1339
+ function requireIterate() {
1340
+ if (hasRequiredIterate) return iterate;
1341
+ hasRequiredIterate = 1;
1342
+ var bind = requireFunctionBindContext();
1343
+ var call = requireFunctionCall();
1344
+ var anObject2 = requireAnObject();
1345
+ var tryToString2 = requireTryToString();
1346
+ var isArrayIteratorMethod2 = requireIsArrayIteratorMethod();
1347
+ var lengthOfArrayLike2 = requireLengthOfArrayLike();
1348
+ var isPrototypeOf = requireObjectIsPrototypeOf();
1349
+ var getIterator2 = requireGetIterator();
1350
+ var getIteratorMethod2 = requireGetIteratorMethod();
1351
+ var iteratorClose2 = requireIteratorClose();
1352
+ var $TypeError = TypeError;
1353
+ var Result = function(stopped, result) {
1354
+ this.stopped = stopped;
1355
+ this.result = result;
1333
1356
  };
1334
- var NullProtoObjectViaActiveX = function(activeXDocument2) {
1335
- activeXDocument2.write(scriptTag(""));
1336
- activeXDocument2.close();
1337
- var temp = activeXDocument2.parentWindow.Object;
1338
- activeXDocument2 = null;
1339
- return temp;
1357
+ var ResultPrototype = Result.prototype;
1358
+ iterate = function(iterable, unboundFunction, options) {
1359
+ var that = options && options.that;
1360
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1361
+ var IS_RECORD = !!(options && options.IS_RECORD);
1362
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1363
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
1364
+ var fn = bind(unboundFunction, that);
1365
+ var iterator, iterFn, index, length, result, next, step;
1366
+ var stop = function(condition) {
1367
+ if (iterator) iteratorClose2(iterator, "normal");
1368
+ return new Result(true, condition);
1369
+ };
1370
+ var callFn = function(value) {
1371
+ if (AS_ENTRIES) {
1372
+ anObject2(value);
1373
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1374
+ }
1375
+ return INTERRUPTED ? fn(value, stop) : fn(value);
1376
+ };
1377
+ if (IS_RECORD) {
1378
+ iterator = iterable.iterator;
1379
+ } else if (IS_ITERATOR) {
1380
+ iterator = iterable;
1381
+ } else {
1382
+ iterFn = getIteratorMethod2(iterable);
1383
+ if (!iterFn) throw new $TypeError(tryToString2(iterable) + " is not iterable");
1384
+ if (isArrayIteratorMethod2(iterFn)) {
1385
+ for (index = 0, length = lengthOfArrayLike2(iterable); length > index; index++) {
1386
+ result = callFn(iterable[index]);
1387
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
1388
+ }
1389
+ return new Result(false);
1390
+ }
1391
+ iterator = getIterator2(iterable, iterFn);
1392
+ }
1393
+ next = IS_RECORD ? iterable.next : iterator.next;
1394
+ while (!(step = call(next, iterator)).done) {
1395
+ try {
1396
+ result = callFn(step.value);
1397
+ } catch (error) {
1398
+ iteratorClose2(iterator, "throw", error);
1399
+ }
1400
+ if (typeof result == "object" && result && isPrototypeOf(ResultPrototype, result)) return result;
1401
+ }
1402
+ return new Result(false);
1340
1403
  };
1341
- var NullProtoObjectViaIFrame = function() {
1342
- var iframe = documentCreateElement2("iframe");
1343
- var JS = "java" + SCRIPT + ":";
1344
- var iframeDocument;
1345
- iframe.style.display = "none";
1346
- html2.appendChild(iframe);
1347
- iframe.src = String(JS);
1348
- iframeDocument = iframe.contentWindow.document;
1349
- iframeDocument.open();
1350
- iframeDocument.write(scriptTag("document.F=Object"));
1351
- iframeDocument.close();
1352
- return iframeDocument.F;
1404
+ return iterate;
1405
+ }
1406
+ var getIteratorDirect;
1407
+ var hasRequiredGetIteratorDirect;
1408
+ function requireGetIteratorDirect() {
1409
+ if (hasRequiredGetIteratorDirect) return getIteratorDirect;
1410
+ hasRequiredGetIteratorDirect = 1;
1411
+ getIteratorDirect = function(obj) {
1412
+ return {
1413
+ iterator: obj,
1414
+ next: obj.next,
1415
+ done: false
1416
+ };
1353
1417
  };
1354
- var activeXDocument;
1355
- var NullProtoObject = function() {
1356
- try {
1357
- activeXDocument = new ActiveXObject("htmlfile");
1418
+ return getIteratorDirect;
1419
+ }
1420
+ var iteratorHelperWithoutClosingOnEarlyError;
1421
+ var hasRequiredIteratorHelperWithoutClosingOnEarlyError;
1422
+ function requireIteratorHelperWithoutClosingOnEarlyError() {
1423
+ if (hasRequiredIteratorHelperWithoutClosingOnEarlyError) return iteratorHelperWithoutClosingOnEarlyError;
1424
+ hasRequiredIteratorHelperWithoutClosingOnEarlyError = 1;
1425
+ var globalThis2 = requireGlobalThis();
1426
+ iteratorHelperWithoutClosingOnEarlyError = function(METHOD_NAME, ExpectedError) {
1427
+ var Iterator2 = globalThis2.Iterator;
1428
+ var IteratorPrototype = Iterator2 && Iterator2.prototype;
1429
+ var method = IteratorPrototype && IteratorPrototype[METHOD_NAME];
1430
+ var CLOSED = false;
1431
+ if (method) try {
1432
+ method.call({
1433
+ next: function() {
1434
+ return {
1435
+ done: true
1436
+ };
1437
+ },
1438
+ "return": function() {
1439
+ CLOSED = true;
1440
+ }
1441
+ }, -1);
1358
1442
  } catch (error) {
1443
+ if (!(error instanceof ExpectedError)) CLOSED = false;
1359
1444
  }
1360
- NullProtoObject = typeof document != "undefined" ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument);
1361
- var length = enumBugKeys2.length;
1362
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys2[length]];
1363
- return NullProtoObject();
1445
+ if (!CLOSED) return method;
1364
1446
  };
1365
- hiddenKeys2[IE_PROTO] = true;
1366
- objectCreate = Object.create || function create(O, Properties) {
1367
- var result;
1368
- if (O !== null) {
1369
- EmptyConstructor[PROTOTYPE] = anObject2(O);
1370
- result = new EmptyConstructor();
1371
- EmptyConstructor[PROTOTYPE] = null;
1372
- result[IE_PROTO] = O;
1373
- } else result = NullProtoObject();
1374
- return Properties === void 0 ? result : definePropertiesModule.f(result, Properties);
1447
+ return iteratorHelperWithoutClosingOnEarlyError;
1448
+ }
1449
+ var hasRequiredEs_iterator_forEach;
1450
+ function requireEs_iterator_forEach() {
1451
+ if (hasRequiredEs_iterator_forEach) return es_iterator_forEach;
1452
+ hasRequiredEs_iterator_forEach = 1;
1453
+ var $ = require_export();
1454
+ var call = requireFunctionCall();
1455
+ var iterate2 = requireIterate();
1456
+ var aCallable2 = requireACallable();
1457
+ var anObject2 = requireAnObject();
1458
+ var getIteratorDirect2 = requireGetIteratorDirect();
1459
+ var iteratorClose2 = requireIteratorClose();
1460
+ var iteratorHelperWithoutClosingOnEarlyError2 = requireIteratorHelperWithoutClosingOnEarlyError();
1461
+ var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError2("forEach", TypeError);
1462
+ $({
1463
+ target: "Iterator",
1464
+ proto: true,
1465
+ real: true,
1466
+ forced: forEachWithoutClosingOnEarlyError
1467
+ }, {
1468
+ forEach: function forEach(fn) {
1469
+ anObject2(this);
1470
+ try {
1471
+ aCallable2(fn);
1472
+ } catch (error) {
1473
+ iteratorClose2(this, "throw", error);
1474
+ }
1475
+ if (forEachWithoutClosingOnEarlyError) return call(forEachWithoutClosingOnEarlyError, this, fn);
1476
+ var record = getIteratorDirect2(this);
1477
+ var counter = 0;
1478
+ iterate2(record, function(value) {
1479
+ fn(value, counter++);
1480
+ }, {
1481
+ IS_RECORD: true
1482
+ });
1483
+ }
1484
+ });
1485
+ return es_iterator_forEach;
1486
+ }
1487
+ requireEs_iterator_forEach();
1488
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
1489
+ var es_iterator_constructor = {};
1490
+ var anInstance;
1491
+ var hasRequiredAnInstance;
1492
+ function requireAnInstance() {
1493
+ if (hasRequiredAnInstance) return anInstance;
1494
+ hasRequiredAnInstance = 1;
1495
+ var isPrototypeOf = requireObjectIsPrototypeOf();
1496
+ var $TypeError = TypeError;
1497
+ anInstance = function(it, Prototype) {
1498
+ if (isPrototypeOf(Prototype, it)) return it;
1499
+ throw new $TypeError("Incorrect invocation");
1375
1500
  };
1376
- return objectCreate;
1501
+ return anInstance;
1377
1502
  }
1378
- var iteratorsCore;
1379
- var hasRequiredIteratorsCore;
1380
- function requireIteratorsCore() {
1381
- if (hasRequiredIteratorsCore) return iteratorsCore;
1382
- hasRequiredIteratorsCore = 1;
1503
+ var correctPrototypeGetter;
1504
+ var hasRequiredCorrectPrototypeGetter;
1505
+ function requireCorrectPrototypeGetter() {
1506
+ if (hasRequiredCorrectPrototypeGetter) return correctPrototypeGetter;
1507
+ hasRequiredCorrectPrototypeGetter = 1;
1383
1508
  var fails2 = requireFails();
1384
- var isCallable2 = requireIsCallable();
1385
- var isObject2 = requireIsObject();
1386
- var create = requireObjectCreate();
1387
- var getPrototypeOf = requireObjectGetPrototypeOf();
1388
- var defineBuiltIn2 = requireDefineBuiltIn();
1389
- var wellKnownSymbol2 = requireWellKnownSymbol();
1390
- var IS_PURE = requireIsPure();
1391
- var ITERATOR = wellKnownSymbol2("iterator");
1392
- var BUGGY_SAFARI_ITERATORS = false;
1393
- var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
1394
- if ([].keys) {
1395
- arrayIterator = [].keys();
1396
- if (!("next" in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
1397
- else {
1398
- PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
1399
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
1509
+ correctPrototypeGetter = !fails2(function() {
1510
+ function F() {
1400
1511
  }
1401
- }
1402
- var NEW_ITERATOR_PROTOTYPE = !isObject2(IteratorPrototype) || fails2(function() {
1403
- var test = {};
1404
- return IteratorPrototype[ITERATOR].call(test) !== test;
1512
+ F.prototype.constructor = null;
1513
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1405
1514
  });
1406
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
1407
- else if (IS_PURE) IteratorPrototype = create(IteratorPrototype);
1408
- if (!isCallable2(IteratorPrototype[ITERATOR])) {
1409
- defineBuiltIn2(IteratorPrototype, ITERATOR, function() {
1410
- return this;
1411
- });
1412
- }
1413
- iteratorsCore = {
1414
- IteratorPrototype,
1415
- BUGGY_SAFARI_ITERATORS
1416
- };
1417
- return iteratorsCore;
1515
+ return correctPrototypeGetter;
1516
+ }
1517
+ var objectGetPrototypeOf;
1518
+ var hasRequiredObjectGetPrototypeOf;
1519
+ function requireObjectGetPrototypeOf() {
1520
+ if (hasRequiredObjectGetPrototypeOf) return objectGetPrototypeOf;
1521
+ hasRequiredObjectGetPrototypeOf = 1;
1522
+ var hasOwn = requireHasOwnProperty();
1523
+ var isCallable2 = requireIsCallable();
1524
+ var toObject2 = requireToObject();
1525
+ var sharedKey2 = requireSharedKey();
1526
+ var CORRECT_PROTOTYPE_GETTER = requireCorrectPrototypeGetter();
1527
+ var IE_PROTO = sharedKey2("IE_PROTO");
1528
+ var $Object = Object;
1529
+ var ObjectPrototype = $Object.prototype;
1530
+ objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function(O) {
1531
+ var object = toObject2(O);
1532
+ if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
1533
+ var constructor = object.constructor;
1534
+ if (isCallable2(constructor) && object instanceof constructor) {
1535
+ return constructor.prototype;
1536
+ }
1537
+ return object instanceof $Object ? ObjectPrototype : null;
1538
+ };
1539
+ return objectGetPrototypeOf;
1540
+ }
1541
+ var defineBuiltInAccessor;
1542
+ var hasRequiredDefineBuiltInAccessor;
1543
+ function requireDefineBuiltInAccessor() {
1544
+ if (hasRequiredDefineBuiltInAccessor) return defineBuiltInAccessor;
1545
+ hasRequiredDefineBuiltInAccessor = 1;
1546
+ var makeBuiltIn2 = requireMakeBuiltIn();
1547
+ var defineProperty = requireObjectDefineProperty();
1548
+ defineBuiltInAccessor = function(target, name, descriptor) {
1549
+ if (descriptor.get) makeBuiltIn2(descriptor.get, name, {
1550
+ getter: true
1551
+ });
1552
+ if (descriptor.set) makeBuiltIn2(descriptor.set, name, {
1553
+ setter: true
1554
+ });
1555
+ return defineProperty.f(target, name, descriptor);
1556
+ };
1557
+ return defineBuiltInAccessor;
1558
+ }
1559
+ var createProperty;
1560
+ var hasRequiredCreateProperty;
1561
+ function requireCreateProperty() {
1562
+ if (hasRequiredCreateProperty) return createProperty;
1563
+ hasRequiredCreateProperty = 1;
1564
+ var DESCRIPTORS = requireDescriptors();
1565
+ var definePropertyModule = requireObjectDefineProperty();
1566
+ var createPropertyDescriptor2 = requireCreatePropertyDescriptor();
1567
+ createProperty = function(object, key, value) {
1568
+ if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor2(0, value));
1569
+ else object[key] = value;
1570
+ };
1571
+ return createProperty;
1572
+ }
1573
+ var objectDefineProperties = {};
1574
+ var objectKeys;
1575
+ var hasRequiredObjectKeys;
1576
+ function requireObjectKeys() {
1577
+ if (hasRequiredObjectKeys) return objectKeys;
1578
+ hasRequiredObjectKeys = 1;
1579
+ var internalObjectKeys = requireObjectKeysInternal();
1580
+ var enumBugKeys2 = requireEnumBugKeys();
1581
+ objectKeys = Object.keys || function keys(O) {
1582
+ return internalObjectKeys(O, enumBugKeys2);
1583
+ };
1584
+ return objectKeys;
1585
+ }
1586
+ var hasRequiredObjectDefineProperties;
1587
+ function requireObjectDefineProperties() {
1588
+ if (hasRequiredObjectDefineProperties) return objectDefineProperties;
1589
+ hasRequiredObjectDefineProperties = 1;
1590
+ var DESCRIPTORS = requireDescriptors();
1591
+ var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
1592
+ var definePropertyModule = requireObjectDefineProperty();
1593
+ var anObject2 = requireAnObject();
1594
+ var toIndexedObject2 = requireToIndexedObject();
1595
+ var objectKeys2 = requireObjectKeys();
1596
+ objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1597
+ anObject2(O);
1598
+ var props = toIndexedObject2(Properties);
1599
+ var keys = objectKeys2(Properties);
1600
+ var length = keys.length;
1601
+ var index = 0;
1602
+ var key;
1603
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1604
+ return O;
1605
+ };
1606
+ return objectDefineProperties;
1607
+ }
1608
+ var html;
1609
+ var hasRequiredHtml;
1610
+ function requireHtml() {
1611
+ if (hasRequiredHtml) return html;
1612
+ hasRequiredHtml = 1;
1613
+ var getBuiltIn2 = requireGetBuiltIn();
1614
+ html = getBuiltIn2("document", "documentElement");
1615
+ return html;
1616
+ }
1617
+ var objectCreate;
1618
+ var hasRequiredObjectCreate;
1619
+ function requireObjectCreate() {
1620
+ if (hasRequiredObjectCreate) return objectCreate;
1621
+ hasRequiredObjectCreate = 1;
1622
+ var anObject2 = requireAnObject();
1623
+ var definePropertiesModule = requireObjectDefineProperties();
1624
+ var enumBugKeys2 = requireEnumBugKeys();
1625
+ var hiddenKeys2 = requireHiddenKeys();
1626
+ var html2 = requireHtml();
1627
+ var documentCreateElement2 = requireDocumentCreateElement();
1628
+ var sharedKey2 = requireSharedKey();
1629
+ var GT = ">";
1630
+ var LT = "<";
1631
+ var PROTOTYPE = "prototype";
1632
+ var SCRIPT = "script";
1633
+ var IE_PROTO = sharedKey2("IE_PROTO");
1634
+ var EmptyConstructor = function() {
1635
+ };
1636
+ var scriptTag = function(content) {
1637
+ return LT + SCRIPT + GT + content + LT + "/" + SCRIPT + GT;
1638
+ };
1639
+ var NullProtoObjectViaActiveX = function(activeXDocument2) {
1640
+ activeXDocument2.write(scriptTag(""));
1641
+ activeXDocument2.close();
1642
+ var temp = activeXDocument2.parentWindow.Object;
1643
+ activeXDocument2 = null;
1644
+ return temp;
1645
+ };
1646
+ var NullProtoObjectViaIFrame = function() {
1647
+ var iframe = documentCreateElement2("iframe");
1648
+ var JS = "java" + SCRIPT + ":";
1649
+ var iframeDocument;
1650
+ iframe.style.display = "none";
1651
+ html2.appendChild(iframe);
1652
+ iframe.src = String(JS);
1653
+ iframeDocument = iframe.contentWindow.document;
1654
+ iframeDocument.open();
1655
+ iframeDocument.write(scriptTag("document.F=Object"));
1656
+ iframeDocument.close();
1657
+ return iframeDocument.F;
1658
+ };
1659
+ var activeXDocument;
1660
+ var NullProtoObject = function() {
1661
+ try {
1662
+ activeXDocument = new ActiveXObject("htmlfile");
1663
+ } catch (error) {
1664
+ }
1665
+ NullProtoObject = typeof document != "undefined" ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument);
1666
+ var length = enumBugKeys2.length;
1667
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys2[length]];
1668
+ return NullProtoObject();
1669
+ };
1670
+ hiddenKeys2[IE_PROTO] = true;
1671
+ objectCreate = Object.create || function create(O, Properties) {
1672
+ var result;
1673
+ if (O !== null) {
1674
+ EmptyConstructor[PROTOTYPE] = anObject2(O);
1675
+ result = new EmptyConstructor();
1676
+ EmptyConstructor[PROTOTYPE] = null;
1677
+ result[IE_PROTO] = O;
1678
+ } else result = NullProtoObject();
1679
+ return Properties === void 0 ? result : definePropertiesModule.f(result, Properties);
1680
+ };
1681
+ return objectCreate;
1682
+ }
1683
+ var iteratorsCore;
1684
+ var hasRequiredIteratorsCore;
1685
+ function requireIteratorsCore() {
1686
+ if (hasRequiredIteratorsCore) return iteratorsCore;
1687
+ hasRequiredIteratorsCore = 1;
1688
+ var fails2 = requireFails();
1689
+ var isCallable2 = requireIsCallable();
1690
+ var isObject2 = requireIsObject();
1691
+ var create = requireObjectCreate();
1692
+ var getPrototypeOf = requireObjectGetPrototypeOf();
1693
+ var defineBuiltIn2 = requireDefineBuiltIn();
1694
+ var wellKnownSymbol2 = requireWellKnownSymbol();
1695
+ var IS_PURE = requireIsPure();
1696
+ var ITERATOR = wellKnownSymbol2("iterator");
1697
+ var BUGGY_SAFARI_ITERATORS = false;
1698
+ var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
1699
+ if ([].keys) {
1700
+ arrayIterator = [].keys();
1701
+ if (!("next" in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
1702
+ else {
1703
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
1704
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
1705
+ }
1706
+ }
1707
+ var NEW_ITERATOR_PROTOTYPE = !isObject2(IteratorPrototype) || fails2(function() {
1708
+ var test = {};
1709
+ return IteratorPrototype[ITERATOR].call(test) !== test;
1710
+ });
1711
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
1712
+ else if (IS_PURE) IteratorPrototype = create(IteratorPrototype);
1713
+ if (!isCallable2(IteratorPrototype[ITERATOR])) {
1714
+ defineBuiltIn2(IteratorPrototype, ITERATOR, function() {
1715
+ return this;
1716
+ });
1717
+ }
1718
+ iteratorsCore = {
1719
+ IteratorPrototype,
1720
+ BUGGY_SAFARI_ITERATORS
1721
+ };
1722
+ return iteratorsCore;
1418
1723
  }
1419
1724
  var hasRequiredEs_iterator_constructor;
1420
1725
  function requireEs_iterator_constructor() {
@@ -1477,452 +1782,618 @@ function requireEs_iterator_constructor() {
1477
1782
  return es_iterator_constructor;
1478
1783
  }
1479
1784
  requireEs_iterator_constructor();
1480
- var es_iterator_forEach = {};
1481
- var functionUncurryThisClause;
1482
- var hasRequiredFunctionUncurryThisClause;
1483
- function requireFunctionUncurryThisClause() {
1484
- if (hasRequiredFunctionUncurryThisClause) return functionUncurryThisClause;
1485
- hasRequiredFunctionUncurryThisClause = 1;
1486
- var classofRaw2 = requireClassofRaw();
1785
+ var es_set_difference_v2 = {};
1786
+ var setHelpers;
1787
+ var hasRequiredSetHelpers;
1788
+ function requireSetHelpers() {
1789
+ if (hasRequiredSetHelpers) return setHelpers;
1790
+ hasRequiredSetHelpers = 1;
1487
1791
  var uncurryThis = requireFunctionUncurryThis();
1488
- functionUncurryThisClause = function(fn) {
1489
- if (classofRaw2(fn) === "Function") return uncurryThis(fn);
1792
+ var SetPrototype = Set.prototype;
1793
+ setHelpers = {
1794
+ // eslint-disable-next-line es/no-set -- safe
1795
+ Set,
1796
+ add: uncurryThis(SetPrototype.add),
1797
+ has: uncurryThis(SetPrototype.has),
1798
+ remove: uncurryThis(SetPrototype["delete"]),
1799
+ proto: SetPrototype
1490
1800
  };
1491
- return functionUncurryThisClause;
1801
+ return setHelpers;
1492
1802
  }
1493
- var functionBindContext;
1494
- var hasRequiredFunctionBindContext;
1495
- function requireFunctionBindContext() {
1496
- if (hasRequiredFunctionBindContext) return functionBindContext;
1497
- hasRequiredFunctionBindContext = 1;
1498
- var uncurryThis = requireFunctionUncurryThisClause();
1499
- var aCallable2 = requireACallable();
1500
- var NATIVE_BIND = requireFunctionBindNative();
1501
- var bind = uncurryThis(uncurryThis.bind);
1502
- functionBindContext = function(fn, that) {
1503
- aCallable2(fn);
1504
- return that === void 0 ? fn : NATIVE_BIND ? bind(fn, that) : function() {
1505
- return fn.apply(that, arguments);
1506
- };
1803
+ var aSet;
1804
+ var hasRequiredASet;
1805
+ function requireASet() {
1806
+ if (hasRequiredASet) return aSet;
1807
+ hasRequiredASet = 1;
1808
+ var has = requireSetHelpers().has;
1809
+ aSet = function(it) {
1810
+ has(it);
1811
+ return it;
1507
1812
  };
1508
- return functionBindContext;
1813
+ return aSet;
1509
1814
  }
1510
- var iterators;
1511
- var hasRequiredIterators;
1512
- function requireIterators() {
1513
- if (hasRequiredIterators) return iterators;
1514
- hasRequiredIterators = 1;
1515
- iterators = {};
1516
- return iterators;
1815
+ var iterateSimple;
1816
+ var hasRequiredIterateSimple;
1817
+ function requireIterateSimple() {
1818
+ if (hasRequiredIterateSimple) return iterateSimple;
1819
+ hasRequiredIterateSimple = 1;
1820
+ var call = requireFunctionCall();
1821
+ iterateSimple = function(record, fn, ITERATOR_INSTEAD_OF_RECORD) {
1822
+ var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
1823
+ var next = record.next;
1824
+ var step, result;
1825
+ while (!(step = call(next, iterator)).done) {
1826
+ result = fn(step.value);
1827
+ if (result !== void 0) return result;
1828
+ }
1829
+ };
1830
+ return iterateSimple;
1517
1831
  }
1518
- var isArrayIteratorMethod;
1519
- var hasRequiredIsArrayIteratorMethod;
1520
- function requireIsArrayIteratorMethod() {
1521
- if (hasRequiredIsArrayIteratorMethod) return isArrayIteratorMethod;
1522
- hasRequiredIsArrayIteratorMethod = 1;
1523
- var wellKnownSymbol2 = requireWellKnownSymbol();
1524
- var Iterators = requireIterators();
1525
- var ITERATOR = wellKnownSymbol2("iterator");
1526
- var ArrayPrototype = Array.prototype;
1527
- isArrayIteratorMethod = function(it) {
1528
- return it !== void 0 && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
1832
+ var setIterate;
1833
+ var hasRequiredSetIterate;
1834
+ function requireSetIterate() {
1835
+ if (hasRequiredSetIterate) return setIterate;
1836
+ hasRequiredSetIterate = 1;
1837
+ var uncurryThis = requireFunctionUncurryThis();
1838
+ var iterateSimple2 = requireIterateSimple();
1839
+ var SetHelpers = requireSetHelpers();
1840
+ var Set2 = SetHelpers.Set;
1841
+ var SetPrototype = SetHelpers.proto;
1842
+ var forEach = uncurryThis(SetPrototype.forEach);
1843
+ var keys = uncurryThis(SetPrototype.keys);
1844
+ var next = keys(new Set2()).next;
1845
+ setIterate = function(set, fn, interruptible) {
1846
+ return interruptible ? iterateSimple2({
1847
+ iterator: keys(set),
1848
+ next
1849
+ }, fn) : forEach(set, fn);
1529
1850
  };
1530
- return isArrayIteratorMethod;
1851
+ return setIterate;
1531
1852
  }
1532
- var toStringTagSupport;
1533
- var hasRequiredToStringTagSupport;
1534
- function requireToStringTagSupport() {
1535
- if (hasRequiredToStringTagSupport) return toStringTagSupport;
1536
- hasRequiredToStringTagSupport = 1;
1537
- var wellKnownSymbol2 = requireWellKnownSymbol();
1538
- var TO_STRING_TAG = wellKnownSymbol2("toStringTag");
1539
- var test = {};
1540
- test[TO_STRING_TAG] = "z";
1541
- toStringTagSupport = String(test) === "[object z]";
1542
- return toStringTagSupport;
1853
+ var setClone;
1854
+ var hasRequiredSetClone;
1855
+ function requireSetClone() {
1856
+ if (hasRequiredSetClone) return setClone;
1857
+ hasRequiredSetClone = 1;
1858
+ var SetHelpers = requireSetHelpers();
1859
+ var iterate2 = requireSetIterate();
1860
+ var Set2 = SetHelpers.Set;
1861
+ var add = SetHelpers.add;
1862
+ setClone = function(set) {
1863
+ var result = new Set2();
1864
+ iterate2(set, function(it) {
1865
+ add(result, it);
1866
+ });
1867
+ return result;
1868
+ };
1869
+ return setClone;
1543
1870
  }
1544
- var classof;
1545
- var hasRequiredClassof;
1546
- function requireClassof() {
1547
- if (hasRequiredClassof) return classof;
1548
- hasRequiredClassof = 1;
1549
- var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
1550
- var isCallable2 = requireIsCallable();
1551
- var classofRaw2 = requireClassofRaw();
1552
- var wellKnownSymbol2 = requireWellKnownSymbol();
1553
- var TO_STRING_TAG = wellKnownSymbol2("toStringTag");
1554
- var $Object = Object;
1555
- var CORRECT_ARGUMENTS = classofRaw2(/* @__PURE__ */ (function() {
1556
- return arguments;
1557
- })()) === "Arguments";
1558
- var tryGet = function(it, key) {
1871
+ var functionUncurryThisAccessor;
1872
+ var hasRequiredFunctionUncurryThisAccessor;
1873
+ function requireFunctionUncurryThisAccessor() {
1874
+ if (hasRequiredFunctionUncurryThisAccessor) return functionUncurryThisAccessor;
1875
+ hasRequiredFunctionUncurryThisAccessor = 1;
1876
+ var uncurryThis = requireFunctionUncurryThis();
1877
+ var aCallable2 = requireACallable();
1878
+ functionUncurryThisAccessor = function(object, key, method) {
1559
1879
  try {
1560
- return it[key];
1880
+ return uncurryThis(aCallable2(Object.getOwnPropertyDescriptor(object, key)[method]));
1561
1881
  } catch (error) {
1562
1882
  }
1563
1883
  };
1564
- classof = TO_STRING_TAG_SUPPORT ? classofRaw2 : function(it) {
1565
- var O, tag, result;
1566
- return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw2(O) : (result = classofRaw2(O)) === "Object" && isCallable2(O.callee) ? "Arguments" : result;
1567
- };
1568
- return classof;
1884
+ return functionUncurryThisAccessor;
1569
1885
  }
1570
- var getIteratorMethod;
1571
- var hasRequiredGetIteratorMethod;
1572
- function requireGetIteratorMethod() {
1573
- if (hasRequiredGetIteratorMethod) return getIteratorMethod;
1574
- hasRequiredGetIteratorMethod = 1;
1575
- var classof2 = requireClassof();
1576
- var getMethod2 = requireGetMethod();
1577
- var isNullOrUndefined2 = requireIsNullOrUndefined();
1578
- var Iterators = requireIterators();
1579
- var wellKnownSymbol2 = requireWellKnownSymbol();
1580
- var ITERATOR = wellKnownSymbol2("iterator");
1581
- getIteratorMethod = function(it) {
1582
- if (!isNullOrUndefined2(it)) return getMethod2(it, ITERATOR) || getMethod2(it, "@@iterator") || Iterators[classof2(it)];
1886
+ var setSize;
1887
+ var hasRequiredSetSize;
1888
+ function requireSetSize() {
1889
+ if (hasRequiredSetSize) return setSize;
1890
+ hasRequiredSetSize = 1;
1891
+ var uncurryThisAccessor = requireFunctionUncurryThisAccessor();
1892
+ var SetHelpers = requireSetHelpers();
1893
+ setSize = uncurryThisAccessor(SetHelpers.proto, "size", "get") || function(set) {
1894
+ return set.size;
1583
1895
  };
1584
- return getIteratorMethod;
1896
+ return setSize;
1585
1897
  }
1586
- var getIterator;
1587
- var hasRequiredGetIterator;
1588
- function requireGetIterator() {
1589
- if (hasRequiredGetIterator) return getIterator;
1590
- hasRequiredGetIterator = 1;
1591
- var call = requireFunctionCall();
1898
+ var getSetRecord;
1899
+ var hasRequiredGetSetRecord;
1900
+ function requireGetSetRecord() {
1901
+ if (hasRequiredGetSetRecord) return getSetRecord;
1902
+ hasRequiredGetSetRecord = 1;
1592
1903
  var aCallable2 = requireACallable();
1593
1904
  var anObject2 = requireAnObject();
1594
- var tryToString2 = requireTryToString();
1595
- var getIteratorMethod2 = requireGetIteratorMethod();
1905
+ var call = requireFunctionCall();
1906
+ var toIntegerOrInfinity2 = requireToIntegerOrInfinity();
1907
+ var getIteratorDirect2 = requireGetIteratorDirect();
1908
+ var INVALID_SIZE = "Invalid size";
1909
+ var $RangeError = RangeError;
1596
1910
  var $TypeError = TypeError;
1597
- getIterator = function(argument, usingIterator) {
1598
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod2(argument) : usingIterator;
1599
- if (aCallable2(iteratorMethod)) return anObject2(call(iteratorMethod, argument));
1600
- throw new $TypeError(tryToString2(argument) + " is not iterable");
1911
+ var max = Math.max;
1912
+ var SetRecord = function(set, intSize) {
1913
+ this.set = set;
1914
+ this.size = max(intSize, 0);
1915
+ this.has = aCallable2(set.has);
1916
+ this.keys = aCallable2(set.keys);
1601
1917
  };
1602
- return getIterator;
1603
- }
1604
- var iteratorClose;
1605
- var hasRequiredIteratorClose;
1606
- function requireIteratorClose() {
1607
- if (hasRequiredIteratorClose) return iteratorClose;
1608
- hasRequiredIteratorClose = 1;
1609
- var call = requireFunctionCall();
1610
- var anObject2 = requireAnObject();
1611
- var getMethod2 = requireGetMethod();
1612
- iteratorClose = function(iterator, kind, value) {
1613
- var innerResult, innerError;
1614
- anObject2(iterator);
1615
- try {
1616
- innerResult = getMethod2(iterator, "return");
1617
- if (!innerResult) {
1618
- if (kind === "throw") throw value;
1619
- return value;
1620
- }
1621
- innerResult = call(innerResult, iterator);
1622
- } catch (error) {
1623
- innerError = true;
1624
- innerResult = error;
1918
+ SetRecord.prototype = {
1919
+ getIterator: function() {
1920
+ return getIteratorDirect2(anObject2(call(this.keys, this.set)));
1921
+ },
1922
+ includes: function(it) {
1923
+ return call(this.has, this.set, it);
1625
1924
  }
1626
- if (kind === "throw") throw value;
1627
- if (innerError) throw innerResult;
1628
- anObject2(innerResult);
1629
- return value;
1630
1925
  };
1631
- return iteratorClose;
1926
+ getSetRecord = function(obj) {
1927
+ anObject2(obj);
1928
+ var numSize = +obj.size;
1929
+ if (numSize !== numSize) throw new $TypeError(INVALID_SIZE);
1930
+ var intSize = toIntegerOrInfinity2(numSize);
1931
+ if (intSize < 0) throw new $RangeError(INVALID_SIZE);
1932
+ return new SetRecord(obj, intSize);
1933
+ };
1934
+ return getSetRecord;
1632
1935
  }
1633
- var iterate;
1634
- var hasRequiredIterate;
1635
- function requireIterate() {
1636
- if (hasRequiredIterate) return iterate;
1637
- hasRequiredIterate = 1;
1638
- var bind = requireFunctionBindContext();
1639
- var call = requireFunctionCall();
1640
- var anObject2 = requireAnObject();
1641
- var tryToString2 = requireTryToString();
1642
- var isArrayIteratorMethod2 = requireIsArrayIteratorMethod();
1643
- var lengthOfArrayLike2 = requireLengthOfArrayLike();
1644
- var isPrototypeOf = requireObjectIsPrototypeOf();
1645
- var getIterator2 = requireGetIterator();
1646
- var getIteratorMethod2 = requireGetIteratorMethod();
1647
- var iteratorClose2 = requireIteratorClose();
1648
- var $TypeError = TypeError;
1649
- var Result = function(stopped, result) {
1650
- this.stopped = stopped;
1651
- this.result = result;
1936
+ var setDifference;
1937
+ var hasRequiredSetDifference;
1938
+ function requireSetDifference() {
1939
+ if (hasRequiredSetDifference) return setDifference;
1940
+ hasRequiredSetDifference = 1;
1941
+ var aSet2 = requireASet();
1942
+ var SetHelpers = requireSetHelpers();
1943
+ var clone = requireSetClone();
1944
+ var size = requireSetSize();
1945
+ var getSetRecord2 = requireGetSetRecord();
1946
+ var iterateSet = requireSetIterate();
1947
+ var iterateSimple2 = requireIterateSimple();
1948
+ var has = SetHelpers.has;
1949
+ var remove = SetHelpers.remove;
1950
+ setDifference = function difference(other) {
1951
+ var O = aSet2(this);
1952
+ var otherRec = getSetRecord2(other);
1953
+ var result = clone(O);
1954
+ if (size(O) <= otherRec.size) iterateSet(O, function(e) {
1955
+ if (otherRec.includes(e)) remove(result, e);
1956
+ });
1957
+ else iterateSimple2(otherRec.getIterator(), function(e) {
1958
+ if (has(result, e)) remove(result, e);
1959
+ });
1960
+ return result;
1652
1961
  };
1653
- var ResultPrototype = Result.prototype;
1654
- iterate = function(iterable, unboundFunction, options) {
1655
- var that = options && options.that;
1656
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1657
- var IS_RECORD = !!(options && options.IS_RECORD);
1658
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1659
- var INTERRUPTED = !!(options && options.INTERRUPTED);
1660
- var fn = bind(unboundFunction, that);
1661
- var iterator, iterFn, index, length, result, next, step;
1662
- var stop = function(condition) {
1663
- if (iterator) iteratorClose2(iterator, "normal");
1664
- return new Result(true, condition);
1665
- };
1666
- var callFn = function(value) {
1667
- if (AS_ENTRIES) {
1668
- anObject2(value);
1669
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1962
+ return setDifference;
1963
+ }
1964
+ var setMethodAcceptSetLike;
1965
+ var hasRequiredSetMethodAcceptSetLike;
1966
+ function requireSetMethodAcceptSetLike() {
1967
+ if (hasRequiredSetMethodAcceptSetLike) return setMethodAcceptSetLike;
1968
+ hasRequiredSetMethodAcceptSetLike = 1;
1969
+ var getBuiltIn2 = requireGetBuiltIn();
1970
+ var createSetLike = function(size) {
1971
+ return {
1972
+ size,
1973
+ has: function() {
1974
+ return false;
1975
+ },
1976
+ keys: function() {
1977
+ return {
1978
+ next: function() {
1979
+ return {
1980
+ done: true
1981
+ };
1982
+ }
1983
+ };
1670
1984
  }
1671
- return INTERRUPTED ? fn(value, stop) : fn(value);
1672
1985
  };
1673
- if (IS_RECORD) {
1674
- iterator = iterable.iterator;
1675
- } else if (IS_ITERATOR) {
1676
- iterator = iterable;
1677
- } else {
1678
- iterFn = getIteratorMethod2(iterable);
1679
- if (!iterFn) throw new $TypeError(tryToString2(iterable) + " is not iterable");
1680
- if (isArrayIteratorMethod2(iterFn)) {
1681
- for (index = 0, length = lengthOfArrayLike2(iterable); length > index; index++) {
1682
- result = callFn(iterable[index]);
1683
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
1684
- }
1685
- return new Result(false);
1686
- }
1687
- iterator = getIterator2(iterable, iterFn);
1688
- }
1689
- next = IS_RECORD ? iterable.next : iterator.next;
1690
- while (!(step = call(next, iterator)).done) {
1691
- try {
1692
- result = callFn(step.value);
1693
- } catch (error) {
1694
- iteratorClose2(iterator, "throw", error);
1695
- }
1696
- if (typeof result == "object" && result && isPrototypeOf(ResultPrototype, result)) return result;
1697
- }
1698
- return new Result(false);
1699
1986
  };
1700
- return iterate;
1701
- }
1702
- var getIteratorDirect;
1703
- var hasRequiredGetIteratorDirect;
1704
- function requireGetIteratorDirect() {
1705
- if (hasRequiredGetIteratorDirect) return getIteratorDirect;
1706
- hasRequiredGetIteratorDirect = 1;
1707
- getIteratorDirect = function(obj) {
1987
+ var createSetLikeWithInfinitySize = function(size) {
1708
1988
  return {
1709
- iterator: obj,
1710
- next: obj.next,
1711
- done: false
1989
+ size,
1990
+ has: function() {
1991
+ return true;
1992
+ },
1993
+ keys: function() {
1994
+ throw new Error("e");
1995
+ }
1712
1996
  };
1713
1997
  };
1714
- return getIteratorDirect;
1715
- }
1716
- var iteratorHelperWithoutClosingOnEarlyError;
1717
- var hasRequiredIteratorHelperWithoutClosingOnEarlyError;
1718
- function requireIteratorHelperWithoutClosingOnEarlyError() {
1719
- if (hasRequiredIteratorHelperWithoutClosingOnEarlyError) return iteratorHelperWithoutClosingOnEarlyError;
1720
- hasRequiredIteratorHelperWithoutClosingOnEarlyError = 1;
1721
- var globalThis2 = requireGlobalThis();
1722
- iteratorHelperWithoutClosingOnEarlyError = function(METHOD_NAME, ExpectedError) {
1723
- var Iterator2 = globalThis2.Iterator;
1724
- var IteratorPrototype = Iterator2 && Iterator2.prototype;
1725
- var method = IteratorPrototype && IteratorPrototype[METHOD_NAME];
1726
- var CLOSED = false;
1727
- if (method) try {
1728
- method.call({
1729
- next: function() {
1730
- return {
1731
- done: true
1732
- };
1733
- },
1734
- "return": function() {
1735
- CLOSED = true;
1998
+ setMethodAcceptSetLike = function(name, callback) {
1999
+ var Set2 = getBuiltIn2("Set");
2000
+ try {
2001
+ new Set2()[name](createSetLike(0));
2002
+ try {
2003
+ new Set2()[name](createSetLike(-1));
2004
+ return false;
2005
+ } catch (error2) {
2006
+ if (!callback) return true;
2007
+ try {
2008
+ new Set2()[name](createSetLikeWithInfinitySize(-Infinity));
2009
+ return false;
2010
+ } catch (error) {
2011
+ var set = new Set2([1, 2]);
2012
+ return callback(set[name](createSetLikeWithInfinitySize(Infinity)));
1736
2013
  }
1737
- }, -1);
2014
+ }
1738
2015
  } catch (error) {
1739
- if (!(error instanceof ExpectedError)) CLOSED = false;
2016
+ return false;
1740
2017
  }
1741
- if (!CLOSED) return method;
1742
2018
  };
1743
- return iteratorHelperWithoutClosingOnEarlyError;
2019
+ return setMethodAcceptSetLike;
1744
2020
  }
1745
- var hasRequiredEs_iterator_forEach;
1746
- function requireEs_iterator_forEach() {
1747
- if (hasRequiredEs_iterator_forEach) return es_iterator_forEach;
1748
- hasRequiredEs_iterator_forEach = 1;
2021
+ var hasRequiredEs_set_difference_v2;
2022
+ function requireEs_set_difference_v2() {
2023
+ if (hasRequiredEs_set_difference_v2) return es_set_difference_v2;
2024
+ hasRequiredEs_set_difference_v2 = 1;
1749
2025
  var $ = require_export();
1750
- var call = requireFunctionCall();
1751
- var iterate2 = requireIterate();
1752
- var aCallable2 = requireACallable();
1753
- var anObject2 = requireAnObject();
1754
- var getIteratorDirect2 = requireGetIteratorDirect();
1755
- var iteratorClose2 = requireIteratorClose();
1756
- var iteratorHelperWithoutClosingOnEarlyError2 = requireIteratorHelperWithoutClosingOnEarlyError();
1757
- var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError2("forEach", TypeError);
2026
+ var difference = requireSetDifference();
2027
+ var fails2 = requireFails();
2028
+ var setMethodAcceptSetLike2 = requireSetMethodAcceptSetLike();
2029
+ var SET_LIKE_INCORRECT_BEHAVIOR = !setMethodAcceptSetLike2("difference", function(result) {
2030
+ return result.size === 0;
2031
+ });
2032
+ var FORCED = SET_LIKE_INCORRECT_BEHAVIOR || fails2(function() {
2033
+ var setLike = {
2034
+ size: 1,
2035
+ has: function() {
2036
+ return true;
2037
+ },
2038
+ keys: function() {
2039
+ var index = 0;
2040
+ return {
2041
+ next: function() {
2042
+ var done = index++ > 1;
2043
+ if (baseSet.has(1)) baseSet.clear();
2044
+ return {
2045
+ done,
2046
+ value: 2
2047
+ };
2048
+ }
2049
+ };
2050
+ }
2051
+ };
2052
+ var baseSet = /* @__PURE__ */ new Set([1, 2, 3, 4]);
2053
+ return baseSet.difference(setLike).size !== 3;
2054
+ });
1758
2055
  $({
1759
- target: "Iterator",
2056
+ target: "Set",
1760
2057
  proto: true,
1761
2058
  real: true,
1762
- forced: forEachWithoutClosingOnEarlyError
2059
+ forced: FORCED
1763
2060
  }, {
1764
- forEach: function forEach(fn) {
1765
- anObject2(this);
1766
- try {
1767
- aCallable2(fn);
1768
- } catch (error) {
1769
- iteratorClose2(this, "throw", error);
1770
- }
1771
- if (forEachWithoutClosingOnEarlyError) return call(forEachWithoutClosingOnEarlyError, this, fn);
1772
- var record = getIteratorDirect2(this);
1773
- var counter = 0;
1774
- iterate2(record, function(value) {
1775
- fn(value, counter++);
1776
- }, {
1777
- IS_RECORD: true
1778
- });
1779
- }
2061
+ difference
1780
2062
  });
1781
- return es_iterator_forEach;
2063
+ return es_set_difference_v2;
1782
2064
  }
1783
- requireEs_iterator_forEach();
1784
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
1785
- var es_array_push = {};
1786
- var isArray;
1787
- var hasRequiredIsArray;
1788
- function requireIsArray() {
1789
- if (hasRequiredIsArray) return isArray;
1790
- hasRequiredIsArray = 1;
1791
- var classof2 = requireClassofRaw();
1792
- isArray = Array.isArray || function isArray2(argument) {
1793
- return classof2(argument) === "Array";
2065
+ requireEs_set_difference_v2();
2066
+ var es_set_intersection_v2 = {};
2067
+ var setIntersection;
2068
+ var hasRequiredSetIntersection;
2069
+ function requireSetIntersection() {
2070
+ if (hasRequiredSetIntersection) return setIntersection;
2071
+ hasRequiredSetIntersection = 1;
2072
+ var aSet2 = requireASet();
2073
+ var SetHelpers = requireSetHelpers();
2074
+ var size = requireSetSize();
2075
+ var getSetRecord2 = requireGetSetRecord();
2076
+ var iterateSet = requireSetIterate();
2077
+ var iterateSimple2 = requireIterateSimple();
2078
+ var Set2 = SetHelpers.Set;
2079
+ var add = SetHelpers.add;
2080
+ var has = SetHelpers.has;
2081
+ setIntersection = function intersection(other) {
2082
+ var O = aSet2(this);
2083
+ var otherRec = getSetRecord2(other);
2084
+ var result = new Set2();
2085
+ if (size(O) > otherRec.size) {
2086
+ iterateSimple2(otherRec.getIterator(), function(e) {
2087
+ if (has(O, e)) add(result, e);
2088
+ });
2089
+ } else {
2090
+ iterateSet(O, function(e) {
2091
+ if (otherRec.includes(e)) add(result, e);
2092
+ });
2093
+ }
2094
+ return result;
1794
2095
  };
1795
- return isArray;
2096
+ return setIntersection;
1796
2097
  }
1797
- var arraySetLength;
1798
- var hasRequiredArraySetLength;
1799
- function requireArraySetLength() {
1800
- if (hasRequiredArraySetLength) return arraySetLength;
1801
- hasRequiredArraySetLength = 1;
1802
- var DESCRIPTORS = requireDescriptors();
1803
- var isArray2 = requireIsArray();
1804
- var $TypeError = TypeError;
1805
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1806
- var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !(function() {
1807
- if (this !== void 0) return true;
1808
- try {
1809
- Object.defineProperty([], "length", {
1810
- writable: false
1811
- }).length = 1;
1812
- } catch (error) {
1813
- return error instanceof TypeError;
1814
- }
1815
- })();
1816
- arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function(O, length) {
1817
- if (isArray2(O) && !getOwnPropertyDescriptor(O, "length").writable) {
1818
- throw new $TypeError("Cannot set read only .length");
1819
- }
1820
- return O.length = length;
1821
- } : function(O, length) {
1822
- return O.length = length;
1823
- };
1824
- return arraySetLength;
1825
- }
1826
- var doesNotExceedSafeInteger;
1827
- var hasRequiredDoesNotExceedSafeInteger;
1828
- function requireDoesNotExceedSafeInteger() {
1829
- if (hasRequiredDoesNotExceedSafeInteger) return doesNotExceedSafeInteger;
1830
- hasRequiredDoesNotExceedSafeInteger = 1;
1831
- var $TypeError = TypeError;
1832
- var MAX_SAFE_INTEGER = 9007199254740991;
1833
- doesNotExceedSafeInteger = function(it) {
1834
- if (it > MAX_SAFE_INTEGER) throw $TypeError("Maximum allowed index exceeded");
1835
- return it;
1836
- };
1837
- return doesNotExceedSafeInteger;
1838
- }
1839
- var hasRequiredEs_array_push;
1840
- function requireEs_array_push() {
1841
- if (hasRequiredEs_array_push) return es_array_push;
1842
- hasRequiredEs_array_push = 1;
2098
+ var hasRequiredEs_set_intersection_v2;
2099
+ function requireEs_set_intersection_v2() {
2100
+ if (hasRequiredEs_set_intersection_v2) return es_set_intersection_v2;
2101
+ hasRequiredEs_set_intersection_v2 = 1;
1843
2102
  var $ = require_export();
1844
- var toObject2 = requireToObject();
1845
- var lengthOfArrayLike2 = requireLengthOfArrayLike();
1846
- var setArrayLength = requireArraySetLength();
1847
- var doesNotExceedSafeInteger2 = requireDoesNotExceedSafeInteger();
1848
2103
  var fails2 = requireFails();
1849
- var INCORRECT_TO_LENGTH = fails2(function() {
1850
- return [].push.call({
1851
- length: 4294967296
1852
- }, 1) !== 4294967297;
2104
+ var intersection = requireSetIntersection();
2105
+ var setMethodAcceptSetLike2 = requireSetMethodAcceptSetLike();
2106
+ var INCORRECT = !setMethodAcceptSetLike2("intersection", function(result) {
2107
+ return result.size === 2 && result.has(1) && result.has(2);
2108
+ }) || fails2(function() {
2109
+ return String(Array.from((/* @__PURE__ */ new Set([1, 2, 3])).intersection(/* @__PURE__ */ new Set([3, 2])))) !== "3,2";
1853
2110
  });
1854
- var properErrorOnNonWritableLength = function() {
1855
- try {
1856
- Object.defineProperty([], "length", {
1857
- writable: false
1858
- }).push();
1859
- } catch (error) {
1860
- return error instanceof TypeError;
1861
- }
1862
- };
1863
- var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
1864
2111
  $({
1865
- target: "Array",
2112
+ target: "Set",
1866
2113
  proto: true,
1867
- arity: 1,
1868
- forced: FORCED
2114
+ real: true,
2115
+ forced: INCORRECT
1869
2116
  }, {
1870
- // eslint-disable-next-line no-unused-vars -- required for `.length`
1871
- push: function push(item) {
1872
- var O = toObject2(this);
1873
- var len = lengthOfArrayLike2(O);
1874
- var argCount = arguments.length;
1875
- doesNotExceedSafeInteger2(len + argCount);
1876
- for (var i = 0; i < argCount; i++) {
1877
- O[len] = arguments[i];
1878
- len++;
1879
- }
1880
- setArrayLength(O, len);
1881
- return len;
1882
- }
2117
+ intersection
1883
2118
  });
1884
- return es_array_push;
1885
- }
1886
- requireEs_array_push();
1887
- function isFTableCellApi(value) {
1888
- return value !== null && typeof value === "object" && Boolean(value.tabstopEl);
2119
+ return es_set_intersection_v2;
1889
2120
  }
1890
- const tableCellApiSymbol = /* @__PURE__ */ Symbol("table:cell-api");
1891
- function walk(array, visit, childKey, level = 1) {
1892
- for (const item of array) {
1893
- const visitChildren = visit(item, level);
1894
- if (visitChildren && childKey && item[childKey]) {
1895
- walk(item[childKey], visit, childKey, level + 1);
1896
- }
1897
- }
2121
+ requireEs_set_intersection_v2();
2122
+ var es_set_isDisjointFrom_v2 = {};
2123
+ var setIsDisjointFrom;
2124
+ var hasRequiredSetIsDisjointFrom;
2125
+ function requireSetIsDisjointFrom() {
2126
+ if (hasRequiredSetIsDisjointFrom) return setIsDisjointFrom;
2127
+ hasRequiredSetIsDisjointFrom = 1;
2128
+ var aSet2 = requireASet();
2129
+ var has = requireSetHelpers().has;
2130
+ var size = requireSetSize();
2131
+ var getSetRecord2 = requireGetSetRecord();
2132
+ var iterateSet = requireSetIterate();
2133
+ var iterateSimple2 = requireIterateSimple();
2134
+ var iteratorClose2 = requireIteratorClose();
2135
+ setIsDisjointFrom = function isDisjointFrom(other) {
2136
+ var O = aSet2(this);
2137
+ var otherRec = getSetRecord2(other);
2138
+ if (size(O) <= otherRec.size) return iterateSet(O, function(e) {
2139
+ if (otherRec.includes(e)) return false;
2140
+ }, true) !== false;
2141
+ var iterator = otherRec.getIterator();
2142
+ return iterateSimple2(iterator, function(e) {
2143
+ if (has(O, e)) return iteratorClose2(iterator, "normal", false);
2144
+ }) !== false;
2145
+ };
2146
+ return setIsDisjointFrom;
1898
2147
  }
1899
- const navKeys = ["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"];
1900
- let prevCellIndex = void 0;
1901
- function rowKey$1(row) {
1902
- return vue$1.getItemIdentifier(row);
2148
+ var hasRequiredEs_set_isDisjointFrom_v2;
2149
+ function requireEs_set_isDisjointFrom_v2() {
2150
+ if (hasRequiredEs_set_isDisjointFrom_v2) return es_set_isDisjointFrom_v2;
2151
+ hasRequiredEs_set_isDisjointFrom_v2 = 1;
2152
+ var $ = require_export();
2153
+ var isDisjointFrom = requireSetIsDisjointFrom();
2154
+ var setMethodAcceptSetLike2 = requireSetMethodAcceptSetLike();
2155
+ var INCORRECT = !setMethodAcceptSetLike2("isDisjointFrom", function(result) {
2156
+ return !result;
2157
+ });
2158
+ $({
2159
+ target: "Set",
2160
+ proto: true,
2161
+ real: true,
2162
+ forced: INCORRECT
2163
+ }, {
2164
+ isDisjointFrom
2165
+ });
2166
+ return es_set_isDisjointFrom_v2;
1903
2167
  }
1904
- function getRowIndexes(rows, expandableAttribute) {
1905
- const array = [];
1906
- walk(rows, (row) => {
1907
- array.push(vue$1.getItemIdentifier(row));
1908
- return true;
1909
- }, expandableAttribute);
1910
- return array;
2168
+ requireEs_set_isDisjointFrom_v2();
2169
+ var es_set_isSubsetOf_v2 = {};
2170
+ var setIsSubsetOf;
2171
+ var hasRequiredSetIsSubsetOf;
2172
+ function requireSetIsSubsetOf() {
2173
+ if (hasRequiredSetIsSubsetOf) return setIsSubsetOf;
2174
+ hasRequiredSetIsSubsetOf = 1;
2175
+ var aSet2 = requireASet();
2176
+ var size = requireSetSize();
2177
+ var iterate2 = requireSetIterate();
2178
+ var getSetRecord2 = requireGetSetRecord();
2179
+ setIsSubsetOf = function isSubsetOf(other) {
2180
+ var O = aSet2(this);
2181
+ var otherRec = getSetRecord2(other);
2182
+ if (size(O) > otherRec.size) return false;
2183
+ return iterate2(O, function(e) {
2184
+ if (!otherRec.includes(e)) return false;
2185
+ }, true) !== false;
2186
+ };
2187
+ return setIsSubsetOf;
1911
2188
  }
1912
- function getCellTarget(tableElement, rowIndex, cellIndex) {
1913
- return tableElement.rows[rowIndex].cells[cellIndex];
2189
+ var hasRequiredEs_set_isSubsetOf_v2;
2190
+ function requireEs_set_isSubsetOf_v2() {
2191
+ if (hasRequiredEs_set_isSubsetOf_v2) return es_set_isSubsetOf_v2;
2192
+ hasRequiredEs_set_isSubsetOf_v2 = 1;
2193
+ var $ = require_export();
2194
+ var isSubsetOf = requireSetIsSubsetOf();
2195
+ var setMethodAcceptSetLike2 = requireSetMethodAcceptSetLike();
2196
+ var INCORRECT = !setMethodAcceptSetLike2("isSubsetOf", function(result) {
2197
+ return result;
2198
+ });
2199
+ $({
2200
+ target: "Set",
2201
+ proto: true,
2202
+ real: true,
2203
+ forced: INCORRECT
2204
+ }, {
2205
+ isSubsetOf
2206
+ });
2207
+ return es_set_isSubsetOf_v2;
1914
2208
  }
1915
- function getTr(td) {
1916
- return td.parentElement;
2209
+ requireEs_set_isSubsetOf_v2();
2210
+ var es_set_isSupersetOf_v2 = {};
2211
+ var setIsSupersetOf;
2212
+ var hasRequiredSetIsSupersetOf;
2213
+ function requireSetIsSupersetOf() {
2214
+ if (hasRequiredSetIsSupersetOf) return setIsSupersetOf;
2215
+ hasRequiredSetIsSupersetOf = 1;
2216
+ var aSet2 = requireASet();
2217
+ var has = requireSetHelpers().has;
2218
+ var size = requireSetSize();
2219
+ var getSetRecord2 = requireGetSetRecord();
2220
+ var iterateSimple2 = requireIterateSimple();
2221
+ var iteratorClose2 = requireIteratorClose();
2222
+ setIsSupersetOf = function isSupersetOf(other) {
2223
+ var O = aSet2(this);
2224
+ var otherRec = getSetRecord2(other);
2225
+ if (size(O) < otherRec.size) return false;
2226
+ var iterator = otherRec.getIterator();
2227
+ return iterateSimple2(iterator, function(e) {
2228
+ if (!has(O, e)) return iteratorClose2(iterator, "normal", false);
2229
+ }) !== false;
2230
+ };
2231
+ return setIsSupersetOf;
1917
2232
  }
1918
- function getTable(tr) {
1919
- return tr.closest("table");
2233
+ var hasRequiredEs_set_isSupersetOf_v2;
2234
+ function requireEs_set_isSupersetOf_v2() {
2235
+ if (hasRequiredEs_set_isSupersetOf_v2) return es_set_isSupersetOf_v2;
2236
+ hasRequiredEs_set_isSupersetOf_v2 = 1;
2237
+ var $ = require_export();
2238
+ var isSupersetOf = requireSetIsSupersetOf();
2239
+ var setMethodAcceptSetLike2 = requireSetMethodAcceptSetLike();
2240
+ var INCORRECT = !setMethodAcceptSetLike2("isSupersetOf", function(result) {
2241
+ return !result;
2242
+ });
2243
+ $({
2244
+ target: "Set",
2245
+ proto: true,
2246
+ real: true,
2247
+ forced: INCORRECT
2248
+ }, {
2249
+ isSupersetOf
2250
+ });
2251
+ return es_set_isSupersetOf_v2;
1920
2252
  }
1921
- function getLastRowIndex(tableElement) {
1922
- return tableElement.rows.length - 1;
2253
+ requireEs_set_isSupersetOf_v2();
2254
+ var es_set_symmetricDifference_v2 = {};
2255
+ var setSymmetricDifference;
2256
+ var hasRequiredSetSymmetricDifference;
2257
+ function requireSetSymmetricDifference() {
2258
+ if (hasRequiredSetSymmetricDifference) return setSymmetricDifference;
2259
+ hasRequiredSetSymmetricDifference = 1;
2260
+ var aSet2 = requireASet();
2261
+ var SetHelpers = requireSetHelpers();
2262
+ var clone = requireSetClone();
2263
+ var getSetRecord2 = requireGetSetRecord();
2264
+ var iterateSimple2 = requireIterateSimple();
2265
+ var add = SetHelpers.add;
2266
+ var has = SetHelpers.has;
2267
+ var remove = SetHelpers.remove;
2268
+ setSymmetricDifference = function symmetricDifference(other) {
2269
+ var O = aSet2(this);
2270
+ var keysIter = getSetRecord2(other).getIterator();
2271
+ var result = clone(O);
2272
+ iterateSimple2(keysIter, function(e) {
2273
+ if (has(O, e)) remove(result, e);
2274
+ else add(result, e);
2275
+ });
2276
+ return result;
2277
+ };
2278
+ return setSymmetricDifference;
1923
2279
  }
1924
- function getLastCellIndex(tableElement) {
1925
- return tableElement.rows[0].cells.length - 1;
2280
+ var setMethodGetKeysBeforeCloningDetection;
2281
+ var hasRequiredSetMethodGetKeysBeforeCloningDetection;
2282
+ function requireSetMethodGetKeysBeforeCloningDetection() {
2283
+ if (hasRequiredSetMethodGetKeysBeforeCloningDetection) return setMethodGetKeysBeforeCloningDetection;
2284
+ hasRequiredSetMethodGetKeysBeforeCloningDetection = 1;
2285
+ setMethodGetKeysBeforeCloningDetection = function(METHOD_NAME) {
2286
+ try {
2287
+ var baseSet = /* @__PURE__ */ new Set();
2288
+ var setLike = {
2289
+ size: 0,
2290
+ has: function() {
2291
+ return true;
2292
+ },
2293
+ keys: function() {
2294
+ return Object.defineProperty({}, "next", {
2295
+ get: function() {
2296
+ baseSet.clear();
2297
+ baseSet.add(4);
2298
+ return function() {
2299
+ return {
2300
+ done: true
2301
+ };
2302
+ };
2303
+ }
2304
+ });
2305
+ }
2306
+ };
2307
+ var result = baseSet[METHOD_NAME](setLike);
2308
+ return result.size === 1 && result.values().next().value === 4;
2309
+ } catch (error) {
2310
+ return false;
2311
+ }
2312
+ };
2313
+ return setMethodGetKeysBeforeCloningDetection;
2314
+ }
2315
+ var hasRequiredEs_set_symmetricDifference_v2;
2316
+ function requireEs_set_symmetricDifference_v2() {
2317
+ if (hasRequiredEs_set_symmetricDifference_v2) return es_set_symmetricDifference_v2;
2318
+ hasRequiredEs_set_symmetricDifference_v2 = 1;
2319
+ var $ = require_export();
2320
+ var symmetricDifference = requireSetSymmetricDifference();
2321
+ var setMethodGetKeysBeforeCloning = requireSetMethodGetKeysBeforeCloningDetection();
2322
+ var setMethodAcceptSetLike2 = requireSetMethodAcceptSetLike();
2323
+ var FORCED = !setMethodAcceptSetLike2("symmetricDifference") || !setMethodGetKeysBeforeCloning("symmetricDifference");
2324
+ $({
2325
+ target: "Set",
2326
+ proto: true,
2327
+ real: true,
2328
+ forced: FORCED
2329
+ }, {
2330
+ symmetricDifference
2331
+ });
2332
+ return es_set_symmetricDifference_v2;
2333
+ }
2334
+ requireEs_set_symmetricDifference_v2();
2335
+ var es_set_union_v2 = {};
2336
+ var setUnion;
2337
+ var hasRequiredSetUnion;
2338
+ function requireSetUnion() {
2339
+ if (hasRequiredSetUnion) return setUnion;
2340
+ hasRequiredSetUnion = 1;
2341
+ var aSet2 = requireASet();
2342
+ var add = requireSetHelpers().add;
2343
+ var clone = requireSetClone();
2344
+ var getSetRecord2 = requireGetSetRecord();
2345
+ var iterateSimple2 = requireIterateSimple();
2346
+ setUnion = function union(other) {
2347
+ var O = aSet2(this);
2348
+ var keysIter = getSetRecord2(other).getIterator();
2349
+ var result = clone(O);
2350
+ iterateSimple2(keysIter, function(it) {
2351
+ add(result, it);
2352
+ });
2353
+ return result;
2354
+ };
2355
+ return setUnion;
2356
+ }
2357
+ var hasRequiredEs_set_union_v2;
2358
+ function requireEs_set_union_v2() {
2359
+ if (hasRequiredEs_set_union_v2) return es_set_union_v2;
2360
+ hasRequiredEs_set_union_v2 = 1;
2361
+ var $ = require_export();
2362
+ var union = requireSetUnion();
2363
+ var setMethodGetKeysBeforeCloning = requireSetMethodGetKeysBeforeCloningDetection();
2364
+ var setMethodAcceptSetLike2 = requireSetMethodAcceptSetLike();
2365
+ var FORCED = !setMethodAcceptSetLike2("union") || !setMethodGetKeysBeforeCloning("union");
2366
+ $({
2367
+ target: "Set",
2368
+ proto: true,
2369
+ real: true,
2370
+ forced: FORCED
2371
+ }, {
2372
+ union
2373
+ });
2374
+ return es_set_union_v2;
2375
+ }
2376
+ requireEs_set_union_v2();
2377
+ function isFTableCellApi(value) {
2378
+ return value !== null && typeof value === "object" && Boolean(value.tabstopEl);
2379
+ }
2380
+ const tableCellApiSymbol = /* @__PURE__ */ Symbol("table:cell-api");
2381
+ const navKeys = ["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"];
2382
+ let prevCellIndex = void 0;
2383
+ function getCellTarget(tableElement, rowIndex, cellIndex) {
2384
+ return tableElement.rows[rowIndex].cells[cellIndex];
2385
+ }
2386
+ function getTr(td) {
2387
+ return td.parentElement;
2388
+ }
2389
+ function getTable(tr) {
2390
+ return tr.closest("table");
2391
+ }
2392
+ function getLastRowIndex(tableElement) {
2393
+ return tableElement.rows.length - 1;
2394
+ }
2395
+ function getLastCellIndex(tableElement) {
2396
+ return tableElement.rows[0].cells.length - 1;
1926
2397
  }
1927
2398
  function getVerticalNavIndex(table, from, to) {
1928
2399
  const target = {
@@ -1941,14 +2412,11 @@ function getVerticalNavIndex(table, from, to) {
1941
2412
  }
1942
2413
  return target;
1943
2414
  }
2415
+ function isDefined(value) {
2416
+ return value.row !== void 0 && value.cell !== void 0;
2417
+ }
1944
2418
  function navigate(e, table, from, last) {
1945
- if (
1946
- /* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- technical debt */
1947
- from.row === void 0 || /* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- technical debt */
1948
- from.cell === void 0 || /* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- technical debt */
1949
- last.row === void 0 || /* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- technical debt */
1950
- last.cell === void 0
1951
- ) {
2419
+ if (!isDefined(from) || !isDefined(last)) {
1952
2420
  return;
1953
2421
  }
1954
2422
  if (!navKeys.includes(e.code)) {
@@ -2026,25 +2494,6 @@ function navigate(e, table, from, last) {
2026
2494
  }
2027
2495
  }
2028
2496
  }
2029
- function getMetaRows(keyedRows, expandedKeys, expandableAttribute) {
2030
- const rowIndexes = getRowIndexes(keyedRows, expandableAttribute);
2031
- const array = [];
2032
- walk(keyedRows, (row, level) => {
2033
- const isExpandable = Boolean(expandableAttribute && row[expandableAttribute]);
2034
- const isExpanded = isExpandable && expandedKeys.includes(rowKey$1(row));
2035
- const rowIndex = rowIndexes.indexOf(rowKey$1(row)) + 2;
2036
- array.push({
2037
- key: rowKey$1(row),
2038
- row,
2039
- rowIndex,
2040
- level: expandableAttribute ? level : void 0,
2041
- isExpandable,
2042
- isExpanded
2043
- });
2044
- return isExpanded;
2045
- }, expandableAttribute);
2046
- return array;
2047
- }
2048
2497
  function getCell(element) {
2049
2498
  const closest = element.closest("td, th");
2050
2499
  if (!closest) {
@@ -2169,7 +2618,7 @@ const _hoisted_1$e = {
2169
2618
  class: "table-ng__cell table-ng__cell--expand"
2170
2619
  };
2171
2620
  const _hoisted_2$a = ["aria-label", "aria-expanded"];
2172
- const _hoisted_3$7 = {
2621
+ const _hoisted_3$8 = {
2173
2622
  key: 1,
2174
2623
  ref: "expandable",
2175
2624
  tabindex: "-1",
@@ -2215,7 +2664,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
2215
2664
  }, [vue.createVNode(vue.unref(vue$1.FIcon), {
2216
2665
  class: "button__icon",
2217
2666
  name: toggleIcon.value
2218
- }, null, 8, ["name"])], 8, _hoisted_2$a)])) : (vue.openBlock(), vue.createElementBlock("td", _hoisted_3$7, null, 512));
2667
+ }, null, 8, ["name"])], 8, _hoisted_2$a)])) : (vue.openBlock(), vue.createElementBlock("td", _hoisted_3$8, null, 512));
2219
2668
  };
2220
2669
  }
2221
2670
  });
@@ -2685,13 +3134,13 @@ const _hoisted_1$a = {
2685
3134
  class: "table-ng__cell table-ng__cell--checkbox"
2686
3135
  };
2687
3136
  const _hoisted_2$8 = ["checked", "aria-label"];
2688
- const _hoisted_3$6 = {
3137
+ const _hoisted_3$7 = {
2689
3138
  key: 1,
2690
3139
  ref: "target",
2691
3140
  tabindex: "-1",
2692
3141
  class: "table-ng__cell table-ng__cell--checkbox"
2693
3142
  };
2694
- const _hoisted_4$3 = ["checked", "aria-label"];
3143
+ const _hoisted_4$4 = ["checked", "aria-label"];
2695
3144
  const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
2696
3145
  __name: "ITableCheckbox",
2697
3146
  props: {
@@ -2717,16 +3166,16 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
2717
3166
  return (_ctx, _cache) => {
2718
3167
  return __props.column.editable(__props.row) ? (vue.openBlock(), vue.createElementBlock("td", _hoisted_1$a, [vue.createElementVNode("input", {
2719
3168
  ref: "target",
2720
- checked: __props.column.checked(__props.row),
3169
+ checked: Boolean(__props.column.checked(__props.row)),
2721
3170
  type: "checkbox",
2722
3171
  "aria-label": ariaLabel.value,
2723
3172
  tabindex: "-1",
2724
3173
  onChange
2725
- }, null, 40, _hoisted_2$8)])) : (vue.openBlock(), vue.createElementBlock("td", _hoisted_3$6, [vue.createElementVNode("input", {
2726
- checked: __props.column.checked(__props.row),
3174
+ }, null, 40, _hoisted_2$8)])) : (vue.openBlock(), vue.createElementBlock("td", _hoisted_3$7, [vue.createElementVNode("input", {
3175
+ checked: Boolean(__props.column.checked(__props.row)),
2727
3176
  type: "checkbox",
2728
3177
  "aria-label": ariaLabel.value
2729
- }, null, 8, _hoisted_4$3)], 512));
3178
+ }, null, 8, _hoisted_4$4)], 512));
2730
3179
  };
2731
3180
  }
2732
3181
  });
@@ -2760,7 +3209,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
2760
3209
  return vue.openBlock(), vue.createElementBlock("td", _hoisted_1$9, [vue.createElementVNode("input", {
2761
3210
  ref: "input",
2762
3211
  type: "radio",
2763
- checked: __props.column.checked(__props.row),
3212
+ checked: Boolean(__props.column.checked(__props.row)),
2764
3213
  "aria-label": ariaLabel.value,
2765
3214
  tabindex: "-1",
2766
3215
  onChange
@@ -2857,65 +3306,203 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
2857
3306
  };
2858
3307
  }
2859
3308
  });
3309
+ function walk(array, childKey, visit, level = 1) {
3310
+ for (const item of array) {
3311
+ const visitChildren = visit(item, level);
3312
+ if (visitChildren && childKey && item[childKey]) {
3313
+ walk(item[childKey], childKey, visit, level + 1);
3314
+ }
3315
+ }
3316
+ }
2860
3317
  function getBodyRowCount(rows, childKey) {
2861
3318
  let count = 0;
2862
- walk(rows, () => {
3319
+ walk(rows, childKey, () => {
2863
3320
  count++;
2864
3321
  return true;
2865
- }, childKey);
3322
+ });
2866
3323
  return count;
2867
3324
  }
2868
- const stopEditKey = /* @__PURE__ */ Symbol();
2869
- function useStartStopEdit() {
2870
- const stopEdit2 = vue.inject(stopEditKey, () => Promise.resolve());
2871
- return {
2872
- stopEdit: stopEdit2
3325
+ var es_array_push = {};
3326
+ var isArray;
3327
+ var hasRequiredIsArray;
3328
+ function requireIsArray() {
3329
+ if (hasRequiredIsArray) return isArray;
3330
+ hasRequiredIsArray = 1;
3331
+ var classof2 = requireClassofRaw();
3332
+ isArray = Array.isArray || function isArray2(argument) {
3333
+ return classof2(argument) === "Array";
2873
3334
  };
3335
+ return isArray;
2874
3336
  }
2875
- var es_iterator_map = {};
2876
- var defineBuiltIns;
2877
- var hasRequiredDefineBuiltIns;
2878
- function requireDefineBuiltIns() {
2879
- if (hasRequiredDefineBuiltIns) return defineBuiltIns;
2880
- hasRequiredDefineBuiltIns = 1;
2881
- var defineBuiltIn2 = requireDefineBuiltIn();
2882
- defineBuiltIns = function(target, src, options) {
2883
- for (var key in src) defineBuiltIn2(target, key, src[key], options);
2884
- return target;
3337
+ var arraySetLength;
3338
+ var hasRequiredArraySetLength;
3339
+ function requireArraySetLength() {
3340
+ if (hasRequiredArraySetLength) return arraySetLength;
3341
+ hasRequiredArraySetLength = 1;
3342
+ var DESCRIPTORS = requireDescriptors();
3343
+ var isArray2 = requireIsArray();
3344
+ var $TypeError = TypeError;
3345
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
3346
+ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !(function() {
3347
+ if (this !== void 0) return true;
3348
+ try {
3349
+ Object.defineProperty([], "length", {
3350
+ writable: false
3351
+ }).length = 1;
3352
+ } catch (error) {
3353
+ return error instanceof TypeError;
3354
+ }
3355
+ })();
3356
+ arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function(O, length) {
3357
+ if (isArray2(O) && !getOwnPropertyDescriptor(O, "length").writable) {
3358
+ throw new $TypeError("Cannot set read only .length");
3359
+ }
3360
+ return O.length = length;
3361
+ } : function(O, length) {
3362
+ return O.length = length;
2885
3363
  };
2886
- return defineBuiltIns;
3364
+ return arraySetLength;
2887
3365
  }
2888
- var createIterResultObject;
2889
- var hasRequiredCreateIterResultObject;
2890
- function requireCreateIterResultObject() {
2891
- if (hasRequiredCreateIterResultObject) return createIterResultObject;
2892
- hasRequiredCreateIterResultObject = 1;
2893
- createIterResultObject = function(value, done) {
2894
- return {
2895
- value,
2896
- done
2897
- };
3366
+ var doesNotExceedSafeInteger;
3367
+ var hasRequiredDoesNotExceedSafeInteger;
3368
+ function requireDoesNotExceedSafeInteger() {
3369
+ if (hasRequiredDoesNotExceedSafeInteger) return doesNotExceedSafeInteger;
3370
+ hasRequiredDoesNotExceedSafeInteger = 1;
3371
+ var $TypeError = TypeError;
3372
+ var MAX_SAFE_INTEGER = 9007199254740991;
3373
+ doesNotExceedSafeInteger = function(it) {
3374
+ if (it > MAX_SAFE_INTEGER) throw $TypeError("Maximum allowed index exceeded");
3375
+ return it;
2898
3376
  };
2899
- return createIterResultObject;
3377
+ return doesNotExceedSafeInteger;
2900
3378
  }
2901
- var iteratorCloseAll;
2902
- var hasRequiredIteratorCloseAll;
2903
- function requireIteratorCloseAll() {
2904
- if (hasRequiredIteratorCloseAll) return iteratorCloseAll;
2905
- hasRequiredIteratorCloseAll = 1;
2906
- var iteratorClose2 = requireIteratorClose();
2907
- iteratorCloseAll = function(iters, kind, value) {
2908
- for (var i = iters.length - 1; i >= 0; i--) {
2909
- if (iters[i] === void 0) continue;
2910
- try {
2911
- value = iteratorClose2(iters[i].iterator, kind, value);
2912
- } catch (error) {
2913
- kind = "throw";
2914
- value = error;
2915
- }
3379
+ var hasRequiredEs_array_push;
3380
+ function requireEs_array_push() {
3381
+ if (hasRequiredEs_array_push) return es_array_push;
3382
+ hasRequiredEs_array_push = 1;
3383
+ var $ = require_export();
3384
+ var toObject2 = requireToObject();
3385
+ var lengthOfArrayLike2 = requireLengthOfArrayLike();
3386
+ var setArrayLength = requireArraySetLength();
3387
+ var doesNotExceedSafeInteger2 = requireDoesNotExceedSafeInteger();
3388
+ var fails2 = requireFails();
3389
+ var INCORRECT_TO_LENGTH = fails2(function() {
3390
+ return [].push.call({
3391
+ length: 4294967296
3392
+ }, 1) !== 4294967297;
3393
+ });
3394
+ var properErrorOnNonWritableLength = function() {
3395
+ try {
3396
+ Object.defineProperty([], "length", {
3397
+ writable: false
3398
+ }).push();
3399
+ } catch (error) {
3400
+ return error instanceof TypeError;
2916
3401
  }
2917
- if (kind === "throw") throw value;
2918
- return value;
3402
+ };
3403
+ var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
3404
+ $({
3405
+ target: "Array",
3406
+ proto: true,
3407
+ arity: 1,
3408
+ forced: FORCED
3409
+ }, {
3410
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
3411
+ push: function push(item) {
3412
+ var O = toObject2(this);
3413
+ var len = lengthOfArrayLike2(O);
3414
+ var argCount = arguments.length;
3415
+ doesNotExceedSafeInteger2(len + argCount);
3416
+ for (var i = 0; i < argCount; i++) {
3417
+ O[len] = arguments[i];
3418
+ len++;
3419
+ }
3420
+ setArrayLength(O, len);
3421
+ return len;
3422
+ }
3423
+ });
3424
+ return es_array_push;
3425
+ }
3426
+ requireEs_array_push();
3427
+ function getRowIndexes(rows, expandableAttribute) {
3428
+ const array = [];
3429
+ walk(rows, expandableAttribute, (row) => {
3430
+ array.push(vue$1.getItemIdentifier(row));
3431
+ return true;
3432
+ });
3433
+ return array;
3434
+ }
3435
+ function getMetaRows(keyedRows, expandedKeys, expandableAttribute) {
3436
+ const rowIndexes = getRowIndexes(keyedRows, expandableAttribute);
3437
+ const array = [];
3438
+ walk(keyedRows, expandableAttribute, (row, level) => {
3439
+ const key = vue$1.getItemIdentifier(row);
3440
+ const isExpandable = Boolean(expandableAttribute && row[expandableAttribute]);
3441
+ const isExpanded = isExpandable && expandedKeys.has(key);
3442
+ const rowIndex = rowIndexes.indexOf(key) + 2;
3443
+ array.push({
3444
+ key,
3445
+ row,
3446
+ rowIndex,
3447
+ level: expandableAttribute ? level : void 0,
3448
+ isExpandable,
3449
+ isExpanded
3450
+ });
3451
+ return isExpanded;
3452
+ });
3453
+ return array;
3454
+ }
3455
+ const stopEditKey = /* @__PURE__ */ Symbol();
3456
+ function useStartStopEdit() {
3457
+ const stopEdit2 = vue.inject(stopEditKey, () => Promise.resolve());
3458
+ return {
3459
+ stopEdit: stopEdit2
3460
+ };
3461
+ }
3462
+ var es_iterator_map = {};
3463
+ var defineBuiltIns;
3464
+ var hasRequiredDefineBuiltIns;
3465
+ function requireDefineBuiltIns() {
3466
+ if (hasRequiredDefineBuiltIns) return defineBuiltIns;
3467
+ hasRequiredDefineBuiltIns = 1;
3468
+ var defineBuiltIn2 = requireDefineBuiltIn();
3469
+ defineBuiltIns = function(target, src, options) {
3470
+ for (var key in src) defineBuiltIn2(target, key, src[key], options);
3471
+ return target;
3472
+ };
3473
+ return defineBuiltIns;
3474
+ }
3475
+ var createIterResultObject;
3476
+ var hasRequiredCreateIterResultObject;
3477
+ function requireCreateIterResultObject() {
3478
+ if (hasRequiredCreateIterResultObject) return createIterResultObject;
3479
+ hasRequiredCreateIterResultObject = 1;
3480
+ createIterResultObject = function(value, done) {
3481
+ return {
3482
+ value,
3483
+ done
3484
+ };
3485
+ };
3486
+ return createIterResultObject;
3487
+ }
3488
+ var iteratorCloseAll;
3489
+ var hasRequiredIteratorCloseAll;
3490
+ function requireIteratorCloseAll() {
3491
+ if (hasRequiredIteratorCloseAll) return iteratorCloseAll;
3492
+ hasRequiredIteratorCloseAll = 1;
3493
+ var iteratorClose2 = requireIteratorClose();
3494
+ iteratorCloseAll = function(iters, kind, value) {
3495
+ for (var i = iters.length - 1; i >= 0; i--) {
3496
+ if (iters[i] === void 0) continue;
3497
+ try {
3498
+ value = iteratorClose2(iters[i].iterator, kind, value);
3499
+ } catch (error) {
3500
+ kind = "throw";
3501
+ value = error;
3502
+ }
3503
+ }
3504
+ if (kind === "throw") throw value;
3505
+ return value;
2919
3506
  };
2920
3507
  return iteratorCloseAll;
2921
3508
  }
@@ -3085,7 +3672,7 @@ const _hoisted_1$7 = {
3085
3672
  class: "table-ng__cell table-ng__cell--anchor"
3086
3673
  };
3087
3674
  const _hoisted_2$6 = ["href"];
3088
- const _hoisted_3$5 = {
3675
+ const _hoisted_3$6 = {
3089
3676
  key: 1,
3090
3677
  ref: "target",
3091
3678
  tabindex: "-1",
@@ -3115,7 +3702,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
3115
3702
  target: "_blank",
3116
3703
  href: __props.column.href,
3117
3704
  tabindex: "-1"
3118
- }, vue.toDisplayString(__props.column.text(__props.row)), 9, _hoisted_2$6)])) : (vue.openBlock(), vue.createElementBlock("td", _hoisted_3$5, null, 512));
3705
+ }, vue.toDisplayString(__props.column.text(__props.row)), 9, _hoisted_2$6)])) : (vue.openBlock(), vue.createElementBlock("td", _hoisted_3$6, null, 512));
3119
3706
  };
3120
3707
  }
3121
3708
  });
@@ -3126,7 +3713,7 @@ const _hoisted_1$6 = {
3126
3713
  const _hoisted_2$5 = {
3127
3714
  class: "sr-only"
3128
3715
  };
3129
- const _hoisted_3$4 = {
3716
+ const _hoisted_3$5 = {
3130
3717
  key: 1,
3131
3718
  ref: "td",
3132
3719
  tabindex: "-1",
@@ -3166,8 +3753,9 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
3166
3753
  onClick: onClickButton
3167
3754
  }, [__props.column.icon ? (vue.openBlock(), vue.createBlock(vue.unref(vue$1.FIcon), {
3168
3755
  key: 0,
3756
+ library: __props.column.iconLibrary,
3169
3757
  name: __props.column.icon
3170
- }, null, 8, ["name"])) : vue.createCommentVNode("", true), _cache[0] || (_cache[0] = vue.createTextVNode()), vue.createElementVNode("span", _hoisted_2$5, vue.toDisplayString(__props.column.text(__props.row)), 1)], 512)])) : (vue.openBlock(), vue.createElementBlock("td", _hoisted_3$4, null, 512));
3758
+ }, null, 8, ["library", "name"])) : vue.createCommentVNode("", true), _cache[0] || (_cache[0] = vue.createTextVNode()), vue.createElementVNode("span", _hoisted_2$5, vue.toDisplayString(__props.column.text(__props.row)), 1)], 512)])) : (vue.openBlock(), vue.createElementBlock("td", _hoisted_3$5, null, 512));
3171
3759
  };
3172
3760
  }
3173
3761
  });
@@ -3219,7 +3807,7 @@ const _hoisted_1$5 = {
3219
3807
  const _hoisted_2$4 = {
3220
3808
  class: "sr-only"
3221
3809
  };
3222
- const _hoisted_3$3 = {
3810
+ const _hoisted_3$4 = {
3223
3811
  key: 1,
3224
3812
  tabindex: "-1",
3225
3813
  class: "table-ng__cell"
@@ -3288,7 +3876,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
3288
3876
  anchor: (_buttonRef$value = buttonRef.value) !== null && _buttonRef$value !== void 0 ? _buttonRef$value : void 0,
3289
3877
  onClose,
3290
3878
  onSelect
3291
- }, null, 8, ["is-open", "items", "anchor"])])) : (vue.openBlock(), vue.createElementBlock("td", _hoisted_3$3));
3879
+ }, null, 8, ["is-open", "items", "anchor"])])) : (vue.openBlock(), vue.createElementBlock("td", _hoisted_3$4));
3292
3880
  };
3293
3881
  }
3294
3882
  });
@@ -3314,11 +3902,11 @@ const _hoisted_1$4 = {
3314
3902
  const _hoisted_2$3 = {
3315
3903
  class: "table-ng__editable__text"
3316
3904
  };
3317
- const _hoisted_3$2 = ["aria-expanded", "aria-controls", "aria-activedescendant", "aria-label"];
3318
- const _hoisted_4$2 = {
3905
+ const _hoisted_3$3 = ["aria-expanded", "aria-controls", "aria-activedescendant", "aria-label"];
3906
+ const _hoisted_4$3 = {
3319
3907
  class: "table-ng__editable__text"
3320
3908
  };
3321
- const _hoisted_5$2 = {
3909
+ const _hoisted_5$3 = {
3322
3910
  key: 1,
3323
3911
  tabindex: "-1",
3324
3912
  class: "table-ng__cell table-ng__cell--static"
@@ -3490,10 +4078,10 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
3490
4078
  }, ["prevent"])),
3491
4079
  onKeydown: vue.withModifiers(onEditKeyDown, ["stop"]),
3492
4080
  onFocusout: _cache[2] || (_cache[2] = (e) => onEditBlur(e))
3493
- }, [vue.createElementVNode("span", _hoisted_4$2, vue.toDisplayString(viewValue.value), 1), _cache[4] || (_cache[4] = vue.createTextVNode()), vue.createVNode(vue.unref(vue$1.FIcon), {
4081
+ }, [vue.createElementVNode("span", _hoisted_4$3, vue.toDisplayString(viewValue.value), 1), _cache[4] || (_cache[4] = vue.createTextVNode()), vue.createVNode(vue.unref(vue$1.FIcon), {
3494
4082
  name: "arrow-down",
3495
4083
  class: "table-ng__editable__icon--active"
3496
- })], 40, _hoisted_3$2), [[vue.vShow, editing.value]]), _cache[6] || (_cache[6] = vue.createTextVNode()), vue.withDirectives(vue.createVNode(vue.unref(vue$1.IComboboxDropdown), {
4084
+ })], 40, _hoisted_3$3), [[vue.vShow, editing.value]]), _cache[6] || (_cache[6] = vue.createTextVNode()), vue.withDirectives(vue.createVNode(vue.unref(vue$1.IComboboxDropdown), {
3497
4085
  id: vue.unref(dropdownId),
3498
4086
  "is-open": dropdownIsOpen.value,
3499
4087
  options: __props.column.options,
@@ -3502,7 +4090,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
3502
4090
  "input-node": editRef.value,
3503
4091
  onSelect: selectDropdownOption,
3504
4092
  onClose: onDropdownClose
3505
- }, null, 8, ["id", "is-open", "options", "active-option", "active-option-id", "input-node"]), [[vue.vShow, editing.value]])], 32)) : (vue.openBlock(), vue.createElementBlock("td", _hoisted_5$2, vue.toDisplayString(__props.column.selected(__props.row)), 1));
4093
+ }, null, 8, ["id", "is-open", "options", "active-option", "active-option-id", "input-node"]), [[vue.vShow, editing.value]])], 32)) : (vue.openBlock(), vue.createElementBlock("td", _hoisted_5$3, vue.toDisplayString(__props.column.selected(__props.row)), 1));
3506
4094
  };
3507
4095
  }
3508
4096
  });
@@ -3516,13 +4104,20 @@ function addInputValidators(inputElement, type, decimals) {
3516
4104
  } of attributes) {
3517
4105
  inputElement.setAttribute(name, value);
3518
4106
  }
3519
- logic.ValidationService.validateElement(inputElement);
3520
4107
  }
3521
4108
  function isAlphanumeric(e) {
3522
4109
  return e.key.length === 1 && !e.ctrlKey && !e.metaKey;
3523
4110
  }
3524
- const _hoisted_1$3 = ["aria-label"];
4111
+ const _hoisted_1$3 = ["id", "aria-invalid"];
3525
4112
  const _hoisted_2$2 = {
4113
+ class: "table-ng__editable__text"
4114
+ };
4115
+ const _hoisted_3$2 = {
4116
+ key: 0,
4117
+ class: "sr-only"
4118
+ };
4119
+ const _hoisted_4$2 = ["id", "aria-label"];
4120
+ const _hoisted_5$2 = {
3526
4121
  ref: "pen"
3527
4122
  };
3528
4123
  const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
@@ -3539,14 +4134,27 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
3539
4134
  emit: __emit
3540
4135
  }) {
3541
4136
  const emit = __emit;
3542
- const model = vue.ref("");
4137
+ const viewValue = vue.ref("");
3543
4138
  const inEdit = vue.ref(false);
4139
+ const cellId = vue.useId();
4140
+ const inputId = vue.useId();
3544
4141
  const validity = vue.ref({
3545
4142
  isValid: true,
3546
4143
  validationMessage: "",
3547
4144
  validityMode: "INITIAL"
3548
4145
  });
4146
+ let validationFacade = {
4147
+ validateElement: () => Promise.resolve({
4148
+ isValid: true,
4149
+ error: "",
4150
+ isSubmitted: false,
4151
+ isTouched: false
4152
+ }),
4153
+ dispatchComponentValidityEvent: () => void 0
4154
+ };
3549
4155
  const hasError = vue.computed(() => validity.value.validityMode === "ERROR");
4156
+ const viewModeAriaInvalid = vue.computed(() => !inEdit.value && hasError.value ? true : void 0);
4157
+ const viewModeErrorMessage = vue.computed(() => !inEdit.value && hasError.value ? validity.value.validationMessage : void 0);
3550
4158
  const divClasses = vue.computed(() => {
3551
4159
  return {
3552
4160
  "table-ng__editable": true,
@@ -3573,7 +4181,6 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
3573
4181
  });
3574
4182
  const inputClasses = vue.computed(() => {
3575
4183
  return {
3576
- foobar: true,
3577
4184
  "table-ng__textedit": true
3578
4185
  };
3579
4186
  });
@@ -3585,7 +4192,6 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
3585
4192
  return value.length > 0 ? value : void 0;
3586
4193
  });
3587
4194
  const tdElement = vue.useTemplateRef("td");
3588
- const viewElement = vue.useTemplateRef("view");
3589
4195
  const inputElement = vue.useTemplateRef("input");
3590
4196
  const penElement = vue.useTemplateRef("pen");
3591
4197
  const {
@@ -3603,10 +4209,48 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
3603
4209
  }
3604
4210
  return tdElement.value === __props.activeErrorAnchor;
3605
4211
  });
4212
+ let initialViewValue = "";
4213
+ let pendingStopEditReason = null;
4214
+ function setUpValidation(el) {
4215
+ addInputValidators(el, __props.column.type);
4216
+ logic.ValidationService.addValidatorsToElement(el, __props.column.validation);
4217
+ validationFacade = {
4218
+ validateElement: (el2) => logic.ValidationService.validateElement(el2),
4219
+ dispatchComponentValidityEvent: vue$1.dispatchComponentValidityEvent
4220
+ };
4221
+ }
4222
+ function setUpFakeValidation(el) {
4223
+ logic.assertRef(inputElement);
4224
+ const nativeEvents = ["change", "blur"];
4225
+ nativeEvents.forEach((nativeEvent) => {
4226
+ core.useEventListener(el, nativeEvent, () => {
4227
+ const fakeEvent = new CustomEvent("validity", {
4228
+ detail: {
4229
+ isValid: true,
4230
+ nativeEvent,
4231
+ validityMode: "INITIAL",
4232
+ validationMessage: "",
4233
+ target: inputElement.value,
4234
+ elementId: String(inputElement.value.id)
4235
+ }
4236
+ });
4237
+ onValidity(fakeEvent);
4238
+ });
4239
+ });
4240
+ core.useEventListener(el, "input", onPendingValidity);
4241
+ core.useEventListener(el, "component-validity", (e) => {
4242
+ e.stopPropagation();
4243
+ });
4244
+ }
3606
4245
  vue.onMounted(() => {
3607
4246
  if (inputElement.value) {
3608
- addInputValidators(inputElement.value, __props.column.type);
3609
- logic.ValidationService.addValidatorsToElement(inputElement.value, __props.column.validation);
4247
+ viewValue.value = fromColumnValue();
4248
+ if (__props.column.hasValidation) {
4249
+ setUpValidation(inputElement.value);
4250
+ } else {
4251
+ setUpFakeValidation(inputElement.value);
4252
+ }
4253
+ void vue.nextTick().then(() => validationFacade.validateElement(inputElement.value));
3610
4254
  }
3611
4255
  });
3612
4256
  vue.watchEffect(() => {
@@ -3632,7 +4276,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
3632
4276
  });
3633
4277
  }
3634
4278
  });
3635
- function onStartEdit(modelValue) {
4279
+ function onStartEdit(value) {
3636
4280
  if (inEdit.value) {
3637
4281
  return;
3638
4282
  }
@@ -3642,7 +4286,8 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
3642
4286
  const {
3643
4287
  width
3644
4288
  } = tdElement.value.getBoundingClientRect();
3645
- model.value = modelValue;
4289
+ initialViewValue = viewValue.value;
4290
+ viewValue.value = value;
3646
4291
  tdElement.value.style.setProperty("width", `${String(width)}px`);
3647
4292
  inputElement.value.tabIndex = 0;
3648
4293
  inputElement.value.focus();
@@ -3654,13 +4299,38 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
3654
4299
  inEdit.value = false;
3655
4300
  logic.assertRef(inputElement);
3656
4301
  inputElement.value.tabIndex = -1;
3657
- stopEdit2(inputElement.value, reason);
4302
+ logic.assertRef(tdElement);
4303
+ tdElement.value.style.removeProperty("width");
4304
+ void stopEdit2(inputElement.value, reason);
4305
+ }
4306
+ function fromColumnValue() {
4307
+ logic.assertRef(validity);
4308
+ const value = __props.column.value(__props.row);
4309
+ if (validity.value.isValid) {
4310
+ var _props$column$format;
4311
+ return (_props$column$format = __props.column.formatter(value)) !== null && _props$column$format !== void 0 ? _props$column$format : value;
4312
+ }
4313
+ return value;
4314
+ }
4315
+ function toColumnValue(value) {
4316
+ logic.assertRef(validity);
4317
+ if (validity.value.isValid) {
4318
+ var _props$column$parser;
4319
+ return (_props$column$parser = __props.column.parser(value)) !== null && _props$column$parser !== void 0 ? _props$column$parser : value;
4320
+ }
4321
+ return value;
4322
+ }
4323
+ function updateColumnValue() {
4324
+ const oldValue = __props.column.value(__props.row);
4325
+ const newValue = toColumnValue(viewValue.value);
4326
+ if (oldValue !== newValue) {
4327
+ __props.column.update(__props.row, newValue, oldValue);
4328
+ }
3658
4329
  }
3659
4330
  function onClickCell(event) {
3660
4331
  logic.assertRef(tdElement);
3661
4332
  if (tdElement.value.contains(event.target)) {
3662
- const value = __props.column.value(__props.row);
3663
- onStartEdit(value);
4333
+ onStartEdit(fromColumnValue());
3664
4334
  }
3665
4335
  }
3666
4336
  function onViewingKeydown(event) {
@@ -3670,40 +4340,29 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
3670
4340
  }
3671
4341
  if (event.key === "Enter") {
3672
4342
  event.stopPropagation();
3673
- const value = __props.column.value(__props.row);
3674
- onStartEdit(value);
4343
+ onStartEdit(fromColumnValue());
3675
4344
  }
3676
4345
  }
3677
4346
  function onEditingKeydown(event) {
3678
- logic.assertRef(viewElement);
3679
4347
  logic.assertRef(inputElement);
3680
4348
  event.stopPropagation();
3681
4349
  if (event.key === "Enter") {
3682
- event.preventDefault();
3683
- const oldValue = __props.column.value(__props.row);
3684
- const newValue = model.value;
3685
- __props.column.update(__props.row, newValue, oldValue);
3686
- model.value = "";
3687
- onStopEdit({
3688
- reason: "enter"
3689
- });
3690
- }
3691
- if (event.key === "Escape") {
3692
- event.preventDefault();
3693
- model.value = "";
4350
+ if (viewValue.value === initialViewValue) {
4351
+ onStopEdit({
4352
+ reason: "enter"
4353
+ });
4354
+ } else {
4355
+ pendingStopEditReason = "enter";
4356
+ }
4357
+ } else if (event.key === "Escape") {
3694
4358
  onStopEdit({
3695
4359
  reason: "escape"
3696
4360
  });
3697
- }
3698
- if (event.key === "Tab") {
3699
- event.preventDefault();
3700
- const oldValue = __props.column.value(__props.row);
3701
- const newValue = model.value;
3702
- __props.column.update(__props.row, newValue, oldValue);
3703
- model.value = "";
3704
- onStopEdit({
3705
- reason: event.shiftKey ? "shift-tab" : "tab"
3706
- });
4361
+ viewValue.value = initialViewValue;
4362
+ inputElement.value.value = initialViewValue;
4363
+ void validationFacade.validateElement(inputElement.value);
4364
+ } else if (event.key === "Tab") {
4365
+ pendingStopEditReason = event.shiftKey ? "shift-tab" : "tab";
3707
4366
  }
3708
4367
  }
3709
4368
  function onKeydown(event) {
@@ -3714,67 +4373,87 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
3714
4373
  onViewingKeydown(event);
3715
4374
  }
3716
4375
  }
3717
- function onBlur() {
3718
- inEdit.value = false;
3719
- logic.assertRef(tdElement);
3720
- tdElement.value.style.removeProperty("width");
3721
- const isDirty = model.value !== "";
3722
- if (isDirty) {
3723
- const oldValue = __props.column.value(__props.row);
3724
- const newValue = model.value;
3725
- __props.column.update(__props.row, newValue, oldValue);
3726
- }
3727
- }
3728
- function onValidity(event) {
4376
+ function updateValidity(eventDetail) {
3729
4377
  const {
3730
4378
  isValid,
3731
4379
  validationMessage,
3732
4380
  validityMode
3733
- } = event.detail;
4381
+ } = eventDetail;
3734
4382
  validity.value = {
3735
4383
  isValid,
3736
4384
  validationMessage,
3737
4385
  validityMode
3738
4386
  };
4387
+ logic.assertRef(inputElement);
4388
+ validationFacade.dispatchComponentValidityEvent(inputElement.value, {
4389
+ ...eventDetail,
4390
+ errorMessage: validationMessage,
4391
+ focusElementId: cellId
4392
+ });
4393
+ }
4394
+ function onValidity(event) {
4395
+ const nativeEvent = event.detail.nativeEvent;
4396
+ const reason = pendingStopEditReason !== null && pendingStopEditReason !== void 0 ? pendingStopEditReason : nativeEvent === "blur" ? "blur" : null;
4397
+ pendingStopEditReason = null;
4398
+ if (inEdit.value && reason) {
4399
+ onStopEdit({
4400
+ reason
4401
+ });
4402
+ updateValidity(event.detail);
4403
+ updateColumnValue();
4404
+ return;
4405
+ }
4406
+ if (nativeEvent === "input") {
4407
+ updateValidity(event.detail);
4408
+ updateColumnValue();
4409
+ return;
4410
+ }
4411
+ if (nativeEvent === "validate") {
4412
+ updateValidity(event.detail);
4413
+ }
4414
+ }
4415
+ function onPendingValidity() {
4416
+ logic.assertRef(validity);
4417
+ validity.value.validityMode = "INITIAL";
3739
4418
  }
3740
4419
  return (_ctx, _cache) => {
3741
4420
  return __props.column.editable(__props.row) ? (vue.openBlock(), vue.createElementBlock("td", {
3742
4421
  key: 0,
4422
+ id: vue.unref(cellId),
3743
4423
  ref: "td",
3744
4424
  tabindex: "-1",
3745
4425
  class: vue.normalizeClass(wrapperClasses.value),
4426
+ "aria-invalid": viewModeAriaInvalid.value,
3746
4427
  onClick: vue.withModifiers(onClickCell, ["stop"]),
3747
4428
  onKeydown
3748
4429
  }, [vue.createElementVNode("div", {
3749
4430
  class: vue.normalizeClass(divClasses.value)
3750
- }, [vue.createElementVNode("span", {
3751
- ref: "view",
3752
- class: "table-ng__editable__text"
3753
- }, vue.toDisplayString(__props.column.value(__props.row)), 513), _cache[1] || (_cache[1] = vue.createTextVNode()), vue.withDirectives(vue.createElementVNode("input", {
4431
+ }, [vue.createElementVNode("span", _hoisted_2$2, vue.toDisplayString(fromColumnValue()), 1), _cache[1] || (_cache[1] = vue.createTextVNode()), viewModeErrorMessage.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$2, vue.toDisplayString(viewModeErrorMessage.value), 1)) : vue.createCommentVNode("", true), _cache[2] || (_cache[2] = vue.createTextVNode()), vue.withDirectives(vue.createElementVNode("input", {
4432
+ id: vue.unref(inputId),
3754
4433
  ref: "input",
3755
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
4434
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => viewValue.value = $event),
3756
4435
  class: vue.normalizeClass(inputClasses.value),
3757
4436
  type: "text",
3758
4437
  maxlength: "40",
3759
4438
  tabindex: "-1",
3760
4439
  "aria-label": ariaLabel.value,
3761
- onBlur,
3762
- onValidity
3763
- }, null, 42, _hoisted_1$3), [[vue.vModelText, model.value]]), _cache[2] || (_cache[2] = vue.createTextVNode()), vue.createElementVNode("div", _hoisted_2$2, [vue.createVNode(vue.unref(vue$1.FIcon), {
4440
+ onValidity,
4441
+ onPendingValidity
4442
+ }, null, 42, _hoisted_4$2), [[vue.vModelText, viewValue.value]]), _cache[3] || (_cache[3] = vue.createTextVNode()), vue.createElementVNode("div", _hoisted_5$2, [vue.createVNode(vue.unref(vue$1.FIcon), {
3764
4443
  name: "pen",
3765
4444
  class: "table-ng__editable__icon"
3766
- })], 512)], 2), _cache[3] || (_cache[3] = vue.createTextVNode()), vue.createVNode(vue.unref(vue$1.IPopupError), {
4445
+ })], 512)], 2), _cache[4] || (_cache[4] = vue.createTextVNode()), vue.createVNode(vue.unref(vue$1.IPopupError), {
3767
4446
  anchor: tdElement.value,
3768
4447
  "is-open": openPopupError.value,
3769
4448
  "error-message": validity.value.validationMessage,
3770
4449
  "arrow-anchor": penElement.value,
3771
4450
  layout: "f-table"
3772
- }, null, 8, ["anchor", "is-open", "error-message", "arrow-anchor"])], 34)) : (vue.openBlock(), vue.createElementBlock("td", {
4451
+ }, null, 8, ["anchor", "is-open", "error-message", "arrow-anchor"])], 42, _hoisted_1$3)) : (vue.openBlock(), vue.createElementBlock("td", {
3773
4452
  key: 1,
3774
4453
  ref: "td",
3775
4454
  tabindex: "-1",
3776
4455
  class: vue.normalizeClass(staticClasses.value)
3777
- }, vue.toDisplayString(__props.column.value(__props.row)), 3));
4456
+ }, vue.toDisplayString(fromColumnValue()), 3));
3778
4457
  };
3779
4458
  }
3780
4459
  });
@@ -3782,79 +4461,12 @@ function defaultTnumValue(type) {
3782
4461
  const tnumTypes = ["text:bankAccountNumber", "text:bankgiro", "text:clearingNumber", "text:currency", "text:number", "text:organisationsnummer", "text:percent", "text:personnummer", "text:phoneNumber", "text:plusgiro", "text:postalCode"];
3783
4462
  return tnumTypes.includes(type);
3784
4463
  }
3785
- function getFormattedNumberValueFn(fn, key, formatter, defaultValue) {
3786
- if (fn) {
3787
- return (row) => {
3788
- var _formatter;
3789
- const value = fn(row);
3790
- return (_formatter = formatter(value)) !== null && _formatter !== void 0 ? _formatter : value;
3791
- };
3792
- }
3793
- if (key) {
3794
- return (row) => {
3795
- var _formatter2;
3796
- const value = row[key];
3797
- return (_formatter2 = formatter(value)) !== null && _formatter2 !== void 0 ? _formatter2 : value;
3798
- };
3799
- }
3800
- return () => defaultValue;
3801
- }
3802
- function getFormattedValueFn(fn, key, formatter, defaultValue) {
3803
- if (fn) {
3804
- return (row) => {
3805
- const value = fn(row);
3806
- const result = formatter(value);
3807
- return result !== null && result !== void 0 ? result : value;
3808
- };
3809
- }
3810
- if (key) {
3811
- return (row) => {
3812
- const value = row[key];
3813
- const result = formatter(value);
3814
- return result !== null && result !== void 0 ? result : value;
3815
- };
3816
- }
3817
- return () => defaultValue;
3818
- }
3819
4464
  function getLabelFn(fn) {
3820
4465
  if (fn) {
3821
4466
  return fn;
3822
4467
  }
3823
4468
  return () => "";
3824
4469
  }
3825
- function getParsedNumberUpdateFn(fn, key, parser) {
3826
- if (fn) {
3827
- return (row, newValue, oldValue) => {
3828
- var _parser, _parser2;
3829
- const parsedNewValue = (_parser = parser(newValue)) !== null && _parser !== void 0 ? _parser : newValue;
3830
- const parsedOldValue = (_parser2 = parser(oldValue)) !== null && _parser2 !== void 0 ? _parser2 : oldValue;
3831
- fn(row, parsedNewValue, parsedOldValue);
3832
- };
3833
- }
3834
- if (key) {
3835
- return (row, value) => {
3836
- const newValue = parser(value);
3837
- row[key] = logic.isSet(newValue) ? newValue : value;
3838
- };
3839
- }
3840
- return () => void 0;
3841
- }
3842
- function getParsedUpdateFn(fn, key, parser) {
3843
- if (fn) {
3844
- return (row, newValue, oldValue) => {
3845
- const parsedNewValue = parser(newValue);
3846
- const parsedOldValue = parser(oldValue);
3847
- fn(row, parsedNewValue !== null && parsedNewValue !== void 0 ? parsedNewValue : newValue, parsedOldValue !== null && parsedOldValue !== void 0 ? parsedOldValue : oldValue);
3848
- };
3849
- }
3850
- if (key) {
3851
- return (row, value) => {
3852
- const newValue = parser(value);
3853
- row[key] = logic.isSet(newValue) ? newValue : value;
3854
- };
3855
- }
3856
- return () => void 0;
3857
- }
3858
4470
  function getUpdateFn(fn, key) {
3859
4471
  if (fn) {
3860
4472
  return fn;
@@ -3872,7 +4484,8 @@ function getValueFn(fn, key, coerce, defaultValue) {
3872
4484
  }
3873
4485
  if (key) {
3874
4486
  return (row) => {
3875
- return coerce(row[key]);
4487
+ var _row$key;
4488
+ return coerce((_row$key = row[key]) !== null && _row$key !== void 0 ? _row$key : defaultValue);
3876
4489
  };
3877
4490
  }
3878
4491
  return () => defaultValue;
@@ -3913,6 +4526,7 @@ function normalizeButtonColumn(column) {
3913
4526
  return Boolean((_column$enabled = column.enabled) !== null && _column$enabled !== void 0 ? _column$enabled : true);
3914
4527
  },
3915
4528
  icon: (_column$icon = column.icon) !== null && _column$icon !== void 0 ? _column$icon : null,
4529
+ iconLibrary: column.iconLibrary,
3916
4530
  sortable: (_column$key = column.key) !== null && _column$key !== void 0 ? _column$key : null
3917
4531
  };
3918
4532
  }
@@ -3965,14 +4579,17 @@ function normalizeNumberColumn(column) {
3965
4579
  decimals,
3966
4580
  tnum: (_column$tnum = column.tnum) !== null && _column$tnum !== void 0 ? _column$tnum : defaultTnumValue(type),
3967
4581
  align: (_column$align = column.align) !== null && _column$align !== void 0 ? _column$align : "right",
3968
- value: getFormattedNumberValueFn(column.value, column.key, formatter, ""),
3969
- update: getParsedNumberUpdateFn(column.update, column.key, parser),
4582
+ value: getValueFn(column.value, column.key, String, ""),
4583
+ update: getUpdateFn(column.update, column.key),
3970
4584
  editable: typeof column.editable === "function" ? column.editable : () => {
3971
4585
  var _column$editable;
3972
4586
  return Boolean((_column$editable = column.editable) !== null && _column$editable !== void 0 ? _column$editable : false);
3973
4587
  },
3974
4588
  validation: (_column$validation = column.validation) !== null && _column$validation !== void 0 ? _column$validation : {},
3975
- sortable: (_column$key = column.key) !== null && _column$key !== void 0 ? _column$key : null
4589
+ hasValidation: column.type.startsWith("text:") || Boolean(column.validation),
4590
+ sortable: (_column$key = column.key) !== null && _column$key !== void 0 ? _column$key : null,
4591
+ formatter,
4592
+ parser
3976
4593
  };
3977
4594
  }
3978
4595
  function normalizeRadioColumn(column) {
@@ -4027,7 +4644,10 @@ function normalizeSimpleColumn(column) {
4027
4644
  },
4028
4645
  editable: () => false,
4029
4646
  sortable: (_column$key = column.key) !== null && _column$key !== void 0 ? _column$key : null,
4030
- validation: {}
4647
+ validation: {},
4648
+ hasValidation: false,
4649
+ formatter: (value) => value,
4650
+ parser: (value) => value
4031
4651
  };
4032
4652
  }
4033
4653
  function normalizeTextColumn(column) {
@@ -4041,14 +4661,17 @@ function normalizeTextColumn(column) {
4041
4661
  tnum: (_column$tnum = column.tnum) !== null && _column$tnum !== void 0 ? _column$tnum : defaultTnumValue(type),
4042
4662
  align: (_column$align = column.align) !== null && _column$align !== void 0 ? _column$align : "left",
4043
4663
  label: getLabelFn(column.label),
4044
- value: getFormattedValueFn(column.value, column.key, formatter, ""),
4045
- update: getParsedUpdateFn(column.update, column.key, parser),
4664
+ value: getValueFn(column.value, column.key, String, ""),
4665
+ update: getUpdateFn(column.update, column.key),
4046
4666
  editable: typeof column.editable === "function" ? column.editable : () => {
4047
4667
  var _column$editable;
4048
4668
  return Boolean((_column$editable = column.editable) !== null && _column$editable !== void 0 ? _column$editable : false);
4049
4669
  },
4050
4670
  validation: (_column$validation = column.validation) !== null && _column$validation !== void 0 ? _column$validation : {},
4051
- sortable: (_column$key = column.key) !== null && _column$key !== void 0 ? _column$key : null
4671
+ hasValidation: column.type.startsWith("text:") || Boolean(column.validation),
4672
+ sortable: (_column$key = column.key) !== null && _column$key !== void 0 ? _column$key : null,
4673
+ formatter,
4674
+ parser
4052
4675
  };
4053
4676
  }
4054
4677
  function normalizeTableColumn(column) {
@@ -4324,6 +4947,10 @@ function useSelectable(options) {
4324
4947
  selectableRowState
4325
4948
  };
4326
4949
  }
4950
+ function matching(needle) {
4951
+ const id = vue$1.getItemIdentifier(needle);
4952
+ return (item) => vue$1.getItemIdentifier(item) === id;
4953
+ }
4327
4954
  function useTabstop(tableRef, metaRows) {
4328
4955
  let pendingRowRemoval = false;
4329
4956
  const renderOptions = vue.ref({
@@ -4332,7 +4959,8 @@ function useTabstop(tableRef, metaRows) {
4332
4959
  });
4333
4960
  function fallbackToFirstCell(newRows, oldRows, focus) {
4334
4961
  logic.assertRef(tableRef);
4335
- const newFirstRowOldIndex = oldRows.findIndex((it) => it.key === newRows[0].key);
4962
+ const needle = newRows[0];
4963
+ const newFirstRowOldIndex = oldRows.findIndex(matching(needle));
4336
4964
  if (newFirstRowOldIndex > -1) {
4337
4965
  const target = getCellTarget(tableRef.value, newFirstRowOldIndex + 1, 0);
4338
4966
  activateCell(target, {
@@ -4347,7 +4975,7 @@ function useTabstop(tableRef, metaRows) {
4347
4975
  const tabFallback = pendingRowRemoval ? "sticky" : "first-cell";
4348
4976
  pendingRowRemoval = false;
4349
4977
  logic.assertRef(tableRef);
4350
- const oldTabstopElement = tableRef.value.querySelector(`[tabindex="0"]`);
4978
+ const oldTabstopElement = tableRef.value.querySelector(`:not(tfoot)[tabindex="0"]`);
4351
4979
  logic.assertSet(oldTabstopElement);
4352
4980
  const oldTabstopFocused = oldTabstopElement === document.activeElement;
4353
4981
  if (oldTabstopElement.closest("th")) {
@@ -4361,8 +4989,8 @@ function useTabstop(tableRef, metaRows) {
4361
4989
  const oldTabstopTd = oldTabstopElement.closest("td");
4362
4990
  logic.assertSet(oldTabstopTd);
4363
4991
  const oldTabstopTr = oldTabstopTd.parentElement;
4364
- const oldTabstopRowKey = oldRows[oldTabstopTr.rowIndex - 1].key;
4365
- const isBeingRemoved = !newRows.some((it) => it.key === oldTabstopRowKey);
4992
+ const needle = oldRows[oldTabstopTr.rowIndex - 1];
4993
+ const isBeingRemoved = !newRows.some(matching(needle));
4366
4994
  if (oldTabstopFocused && !isBeingRemoved) {
4367
4995
  return;
4368
4996
  }
@@ -4379,7 +5007,8 @@ function useTabstop(tableRef, metaRows) {
4379
5007
  return;
4380
5008
  }
4381
5009
  if (oldTabstopTr.rowIndex === 1) {
4382
- const hasRowBelowInNewRows = newRows.some((it) => it.key === oldRows[1].key);
5010
+ const needle2 = oldRows[1];
5011
+ const hasRowBelowInNewRows = newRows.some(matching(needle2));
4383
5012
  if (hasRowBelowInNewRows) {
4384
5013
  const {
4385
5014
  cell
@@ -4398,7 +5027,8 @@ function useTabstop(tableRef, metaRows) {
4398
5027
  fallbackToFirstCell(newRows, oldRows, true);
4399
5028
  }
4400
5029
  } else {
4401
- const hasRowAboveInNewRows = newRows.some((it) => it.key === oldRows[oldTabstopTr.rowIndex - 2].key);
5030
+ const needle2 = oldRows[oldTabstopTr.rowIndex - 2];
5031
+ const hasRowAboveInNewRows = newRows.some(matching(needle2));
4402
5032
  if (hasRowAboveInNewRows) {
4403
5033
  const {
4404
5034
  row,
@@ -4502,7 +5132,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
4502
5132
  hasSlot
4503
5133
  } = vue$1.useSlotUtils();
4504
5134
  const tableRef = vue.useTemplateRef("table");
4505
- const expandedKeys = vue.ref([]);
5135
+ const expandedKeys = vue.ref(/* @__PURE__ */ new Set());
4506
5136
  const keyedRows = vue.computed(() => vue$1.setItemIdentifiers(__props.rows, __props.keyAttribute, __props.expandableAttribute));
4507
5137
  const metaRows = vue.computed(() => getMetaRows(keyedRows.value, expandedKeys.value, __props.expandableAttribute));
4508
5138
  const isTreegrid = vue.computed(() => Boolean(__props.expandableAttribute));
@@ -4542,11 +5172,10 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
4542
5172
  }
4543
5173
  vue.provide(stopEditKey, stopEditHandler);
4544
5174
  function onToggleExpanded(key) {
4545
- const index = expandedKeys.value.indexOf(key);
4546
- if (index < 0) {
4547
- expandedKeys.value.push(key);
5175
+ if (expandedKeys.value.has(key)) {
5176
+ expandedKeys.value.delete(key);
4548
5177
  } else {
4549
- expandedKeys.value.splice(index, 1);
5178
+ expandedKeys.value.add(key);
4550
5179
  }
4551
5180
  }
4552
5181
  function onKeydown(e) {
@@ -4562,7 +5191,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
4562
5191
  }
4563
5192
  function onTableFocusin(e) {
4564
5193
  logic.assertRef(tableRef);
4565
- tableRef.value.querySelectorAll(`[tabindex="0"]`).forEach((it) => {
5194
+ tableRef.value.querySelectorAll(`:not(tfoot)[tabindex="0"]`).forEach((it) => {
4566
5195
  if (it !== e.target) {
4567
5196
  it.setAttribute("tabindex", "-1");
4568
5197
  }
@@ -4589,7 +5218,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
4589
5218
  if (!tableRef.value) {
4590
5219
  return;
4591
5220
  }
4592
- const outsideTable = !relatedTarget || !tableRef.value.contains(relatedTarget);
5221
+ const outsideTable = Boolean(tableRef.value.tFoot?.contains(relatedTarget)) || !tableRef.value.contains(relatedTarget);
4593
5222
  if (outsideTable) {
4594
5223
  const cell = target.closest("td, th");
4595
5224
  if (cell) {
@@ -4670,7 +5299,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
4670
5299
  selectedRows,
4671
5300
  rows: keyedRows
4672
5301
  });
4673
- const tableApi = useTabstop(tableRef, metaRows);
5302
+ const tableApi = useTabstop(tableRef, keyedRows);
4674
5303
  __expose(tableApi);
4675
5304
  vue.onMounted(() => {
4676
5305
  logic.assertRef(tableRef);
@@ -4683,12 +5312,13 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
4683
5312
  ref: "table",
4684
5313
  role: role.value,
4685
5314
  class: vue.normalizeClass(tableClasses.value),
4686
- "aria-rowcount": ariaRowcount.value,
5315
+ "aria-rowcount": ariaRowcount.value
5316
+ }, [hasCaption.value ? (vue.openBlock(), vue.createElementBlock("caption", _hoisted_2$1, [vue.renderSlot(_ctx.$slots, "caption")])) : vue.createCommentVNode("", true), _cache[5] || (_cache[5] = vue.createTextVNode()), vue.createElementVNode("thead", {
4687
5317
  onFocusin: onTableFocusin,
4688
5318
  onFocusout: onTableFocusout,
4689
5319
  onClick,
4690
5320
  onKeydown
4691
- }, [hasCaption.value ? (vue.openBlock(), vue.createElementBlock("caption", _hoisted_2$1, [vue.renderSlot(_ctx.$slots, "caption")])) : vue.createCommentVNode("", true), _cache[5] || (_cache[5] = vue.createTextVNode()), vue.createElementVNode("thead", null, [vue.createElementVNode("tr", _hoisted_3$1, [isTreegrid.value ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_4$1)) : vue.createCommentVNode("", true), _cache[0] || (_cache[0] = vue.createTextVNode()), __props.selectable ? (vue.openBlock(), vue.createBlock(_sfc_main$d, {
5321
+ }, [vue.createElementVNode("tr", _hoisted_3$1, [isTreegrid.value ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_4$1)) : vue.createCommentVNode("", true), _cache[0] || (_cache[0] = vue.createTextVNode()), __props.selectable ? (vue.openBlock(), vue.createBlock(_sfc_main$d, {
4692
5322
  key: 1,
4693
5323
  ref: bindCellApiRef,
4694
5324
  state: vue.unref(selectableHeaderState)(),
@@ -4703,7 +5333,12 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
4703
5333
  scope: "col",
4704
5334
  onToggleSortOrder
4705
5335
  }, null, 8, ["column", "sort-enabled", "sort-order"]);
4706
- }), 128))])]), _cache[6] || (_cache[6] = vue.createTextVNode()), vue.createElementVNode("tbody", null, [isEmpty.value ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_5$1, [vue.createElementVNode("td", {
5336
+ }), 128))])], 32), _cache[6] || (_cache[6] = vue.createTextVNode()), vue.createElementVNode("tbody", {
5337
+ onFocusin: onTableFocusin,
5338
+ onFocusout: onTableFocusout,
5339
+ onClick,
5340
+ onKeydown
5341
+ }, [isEmpty.value ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_5$1, [vue.createElementVNode("td", {
4707
5342
  colspan: columnCount.value,
4708
5343
  class: "table-ng__cell"
4709
5344
  }, [vue.renderSlot(_ctx.$slots, "empty", {}, () => [_cache[2] || (_cache[2] = vue.createTextVNode(" Tabellen är tom ", -1))])], 8, _hoisted_6$1)])) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
@@ -4772,13 +5407,13 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
4772
5407
  row
4773
5408
  }, null, 8, ["row"])) : vue.createCommentVNode("", true)], 64);
4774
5409
  }), 128))], 64))], 8, _hoisted_7$1);
4775
- }), 128))]), _cache[7] || (_cache[7] = vue.createTextVNode()), hasFooter.value ? (vue.openBlock(), vue.createElementBlock("tfoot", _hoisted_8, [vue.createElementVNode("tr", {
5410
+ }), 128))], 32), _cache[7] || (_cache[7] = vue.createTextVNode()), hasFooter.value ? (vue.openBlock(), vue.createElementBlock("tfoot", _hoisted_8, [vue.createElementVNode("tr", {
4776
5411
  class: "table-ng__row",
4777
5412
  "aria-rowindex": ariaRowcount.value
4778
5413
  }, [vue.createElementVNode("td", {
4779
5414
  colspan: columnCount.value,
4780
5415
  class: "table-ng__cell--custom"
4781
- }, [vue.renderSlot(_ctx.$slots, "footer")], 8, _hoisted_10)], 8, _hoisted_9)])) : vue.createCommentVNode("", true)], 42, _hoisted_1$2);
5416
+ }, [vue.renderSlot(_ctx.$slots, "footer")], 8, _hoisted_10)], 8, _hoisted_9)])) : vue.createCommentVNode("", true)], 10, _hoisted_1$2);
4782
5417
  };
4783
5418
  }
4784
5419
  });
@@ -4885,21 +5520,6 @@ function requireArrayBufferBasicDetection() {
4885
5520
  arrayBufferBasicDetection = typeof ArrayBuffer != "undefined" && typeof DataView != "undefined";
4886
5521
  return arrayBufferBasicDetection;
4887
5522
  }
4888
- var functionUncurryThisAccessor;
4889
- var hasRequiredFunctionUncurryThisAccessor;
4890
- function requireFunctionUncurryThisAccessor() {
4891
- if (hasRequiredFunctionUncurryThisAccessor) return functionUncurryThisAccessor;
4892
- hasRequiredFunctionUncurryThisAccessor = 1;
4893
- var uncurryThis = requireFunctionUncurryThis();
4894
- var aCallable2 = requireACallable();
4895
- functionUncurryThisAccessor = function(object, key, method) {
4896
- try {
4897
- return uncurryThis(aCallable2(Object.getOwnPropertyDescriptor(object, key)[method]));
4898
- } catch (error) {
4899
- }
4900
- };
4901
- return functionUncurryThisAccessor;
4902
- }
4903
5523
  var arrayBufferByteLength;
4904
5524
  var hasRequiredArrayBufferByteLength;
4905
5525
  function requireArrayBufferByteLength() {
@@ -5622,7 +6242,6 @@ function requireEs_typedArray_with() {
5622
6242
  return es_typedArray_with;
5623
6243
  }
5624
6244
  requireEs_typedArray_with();
5625
- var esnext_uint8Array_setFromBase64 = {};
5626
6245
  var es_uint8Array_setFromBase64 = {};
5627
6246
  var anObjectOrUndefined;
5628
6247
  var hasRequiredAnObjectOrUndefined;
@@ -5881,15 +6500,7 @@ function requireEs_uint8Array_setFromBase64() {
5881
6500
  });
5882
6501
  return es_uint8Array_setFromBase64;
5883
6502
  }
5884
- var hasRequiredEsnext_uint8Array_setFromBase64;
5885
- function requireEsnext_uint8Array_setFromBase64() {
5886
- if (hasRequiredEsnext_uint8Array_setFromBase64) return esnext_uint8Array_setFromBase64;
5887
- hasRequiredEsnext_uint8Array_setFromBase64 = 1;
5888
- requireEs_uint8Array_setFromBase64();
5889
- return esnext_uint8Array_setFromBase64;
5890
- }
5891
- requireEsnext_uint8Array_setFromBase64();
5892
- var esnext_uint8Array_setFromHex = {};
6503
+ requireEs_uint8Array_setFromBase64();
5893
6504
  var es_uint8Array_setFromHex = {};
5894
6505
  var uint8FromHex;
5895
6506
  var hasRequiredUint8FromHex;
@@ -5962,15 +6573,7 @@ function requireEs_uint8Array_setFromHex() {
5962
6573
  });
5963
6574
  return es_uint8Array_setFromHex;
5964
6575
  }
5965
- var hasRequiredEsnext_uint8Array_setFromHex;
5966
- function requireEsnext_uint8Array_setFromHex() {
5967
- if (hasRequiredEsnext_uint8Array_setFromHex) return esnext_uint8Array_setFromHex;
5968
- hasRequiredEsnext_uint8Array_setFromHex = 1;
5969
- requireEs_uint8Array_setFromHex();
5970
- return esnext_uint8Array_setFromHex;
5971
- }
5972
- requireEsnext_uint8Array_setFromHex();
5973
- var esnext_uint8Array_toBase64 = {};
6576
+ requireEs_uint8Array_setFromHex();
5974
6577
  var es_uint8Array_toBase64 = {};
5975
6578
  var hasRequiredEs_uint8Array_toBase64;
5976
6579
  function requireEs_uint8Array_toBase64() {
@@ -6030,15 +6633,7 @@ function requireEs_uint8Array_toBase64() {
6030
6633
  });
6031
6634
  return es_uint8Array_toBase64;
6032
6635
  }
6033
- var hasRequiredEsnext_uint8Array_toBase64;
6034
- function requireEsnext_uint8Array_toBase64() {
6035
- if (hasRequiredEsnext_uint8Array_toBase64) return esnext_uint8Array_toBase64;
6036
- hasRequiredEsnext_uint8Array_toBase64 = 1;
6037
- requireEs_uint8Array_toBase64();
6038
- return esnext_uint8Array_toBase64;
6039
- }
6040
- requireEsnext_uint8Array_toBase64();
6041
- var esnext_uint8Array_toHex = {};
6636
+ requireEs_uint8Array_toBase64();
6042
6637
  var es_uint8Array_toHex = {};
6043
6638
  var hasRequiredEs_uint8Array_toHex;
6044
6639
  function requireEs_uint8Array_toHex() {
@@ -6077,14 +6672,7 @@ function requireEs_uint8Array_toHex() {
6077
6672
  });
6078
6673
  return es_uint8Array_toHex;
6079
6674
  }
6080
- var hasRequiredEsnext_uint8Array_toHex;
6081
- function requireEsnext_uint8Array_toHex() {
6082
- if (hasRequiredEsnext_uint8Array_toHex) return esnext_uint8Array_toHex;
6083
- hasRequiredEsnext_uint8Array_toHex = 1;
6084
- requireEs_uint8Array_toHex();
6085
- return esnext_uint8Array_toHex;
6086
- }
6087
- requireEsnext_uint8Array_toHex();
6675
+ requireEs_uint8Array_toHex();
6088
6676
  var web_domException_stack = {};
6089
6677
  var inheritIfRequired;
6090
6678
  var hasRequiredInheritIfRequired;
@@ -6452,9 +7040,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
6452
7040
  const reduced = new Uint8Array(buffer).reduce((data, byte) => data + String.fromCharCode(byte), "");
6453
7041
  uppladdatDokument.value = {
6454
7042
  dokument: {
6455
- /* eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- technical debt */
6456
7043
  filnamn: value.name,
6457
- /* eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- technical debt */
6458
7044
  mime: value.type,
6459
7045
  data: btoa(reduced),
6460
7046
  fel: ""
@@ -6594,583 +7180,6 @@ function matchPropertyValue(property) {
6594
7180
  return value === null || item[property] === value;
6595
7181
  };
6596
7182
  }
6597
- var es_set_difference_v2 = {};
6598
- var setHelpers;
6599
- var hasRequiredSetHelpers;
6600
- function requireSetHelpers() {
6601
- if (hasRequiredSetHelpers) return setHelpers;
6602
- hasRequiredSetHelpers = 1;
6603
- var uncurryThis = requireFunctionUncurryThis();
6604
- var SetPrototype = Set.prototype;
6605
- setHelpers = {
6606
- // eslint-disable-next-line es/no-set -- safe
6607
- Set,
6608
- add: uncurryThis(SetPrototype.add),
6609
- has: uncurryThis(SetPrototype.has),
6610
- remove: uncurryThis(SetPrototype["delete"]),
6611
- proto: SetPrototype
6612
- };
6613
- return setHelpers;
6614
- }
6615
- var aSet;
6616
- var hasRequiredASet;
6617
- function requireASet() {
6618
- if (hasRequiredASet) return aSet;
6619
- hasRequiredASet = 1;
6620
- var has = requireSetHelpers().has;
6621
- aSet = function(it) {
6622
- has(it);
6623
- return it;
6624
- };
6625
- return aSet;
6626
- }
6627
- var iterateSimple;
6628
- var hasRequiredIterateSimple;
6629
- function requireIterateSimple() {
6630
- if (hasRequiredIterateSimple) return iterateSimple;
6631
- hasRequiredIterateSimple = 1;
6632
- var call = requireFunctionCall();
6633
- iterateSimple = function(record, fn, ITERATOR_INSTEAD_OF_RECORD) {
6634
- var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
6635
- var next = record.next;
6636
- var step, result;
6637
- while (!(step = call(next, iterator)).done) {
6638
- result = fn(step.value);
6639
- if (result !== void 0) return result;
6640
- }
6641
- };
6642
- return iterateSimple;
6643
- }
6644
- var setIterate;
6645
- var hasRequiredSetIterate;
6646
- function requireSetIterate() {
6647
- if (hasRequiredSetIterate) return setIterate;
6648
- hasRequiredSetIterate = 1;
6649
- var uncurryThis = requireFunctionUncurryThis();
6650
- var iterateSimple2 = requireIterateSimple();
6651
- var SetHelpers = requireSetHelpers();
6652
- var Set2 = SetHelpers.Set;
6653
- var SetPrototype = SetHelpers.proto;
6654
- var forEach = uncurryThis(SetPrototype.forEach);
6655
- var keys = uncurryThis(SetPrototype.keys);
6656
- var next = keys(new Set2()).next;
6657
- setIterate = function(set, fn, interruptible) {
6658
- return interruptible ? iterateSimple2({
6659
- iterator: keys(set),
6660
- next
6661
- }, fn) : forEach(set, fn);
6662
- };
6663
- return setIterate;
6664
- }
6665
- var setClone;
6666
- var hasRequiredSetClone;
6667
- function requireSetClone() {
6668
- if (hasRequiredSetClone) return setClone;
6669
- hasRequiredSetClone = 1;
6670
- var SetHelpers = requireSetHelpers();
6671
- var iterate2 = requireSetIterate();
6672
- var Set2 = SetHelpers.Set;
6673
- var add = SetHelpers.add;
6674
- setClone = function(set) {
6675
- var result = new Set2();
6676
- iterate2(set, function(it) {
6677
- add(result, it);
6678
- });
6679
- return result;
6680
- };
6681
- return setClone;
6682
- }
6683
- var setSize;
6684
- var hasRequiredSetSize;
6685
- function requireSetSize() {
6686
- if (hasRequiredSetSize) return setSize;
6687
- hasRequiredSetSize = 1;
6688
- var uncurryThisAccessor = requireFunctionUncurryThisAccessor();
6689
- var SetHelpers = requireSetHelpers();
6690
- setSize = uncurryThisAccessor(SetHelpers.proto, "size", "get") || function(set) {
6691
- return set.size;
6692
- };
6693
- return setSize;
6694
- }
6695
- var getSetRecord;
6696
- var hasRequiredGetSetRecord;
6697
- function requireGetSetRecord() {
6698
- if (hasRequiredGetSetRecord) return getSetRecord;
6699
- hasRequiredGetSetRecord = 1;
6700
- var aCallable2 = requireACallable();
6701
- var anObject2 = requireAnObject();
6702
- var call = requireFunctionCall();
6703
- var toIntegerOrInfinity2 = requireToIntegerOrInfinity();
6704
- var getIteratorDirect2 = requireGetIteratorDirect();
6705
- var INVALID_SIZE = "Invalid size";
6706
- var $RangeError = RangeError;
6707
- var $TypeError = TypeError;
6708
- var max = Math.max;
6709
- var SetRecord = function(set, intSize) {
6710
- this.set = set;
6711
- this.size = max(intSize, 0);
6712
- this.has = aCallable2(set.has);
6713
- this.keys = aCallable2(set.keys);
6714
- };
6715
- SetRecord.prototype = {
6716
- getIterator: function() {
6717
- return getIteratorDirect2(anObject2(call(this.keys, this.set)));
6718
- },
6719
- includes: function(it) {
6720
- return call(this.has, this.set, it);
6721
- }
6722
- };
6723
- getSetRecord = function(obj) {
6724
- anObject2(obj);
6725
- var numSize = +obj.size;
6726
- if (numSize !== numSize) throw new $TypeError(INVALID_SIZE);
6727
- var intSize = toIntegerOrInfinity2(numSize);
6728
- if (intSize < 0) throw new $RangeError(INVALID_SIZE);
6729
- return new SetRecord(obj, intSize);
6730
- };
6731
- return getSetRecord;
6732
- }
6733
- var setDifference;
6734
- var hasRequiredSetDifference;
6735
- function requireSetDifference() {
6736
- if (hasRequiredSetDifference) return setDifference;
6737
- hasRequiredSetDifference = 1;
6738
- var aSet2 = requireASet();
6739
- var SetHelpers = requireSetHelpers();
6740
- var clone = requireSetClone();
6741
- var size = requireSetSize();
6742
- var getSetRecord2 = requireGetSetRecord();
6743
- var iterateSet = requireSetIterate();
6744
- var iterateSimple2 = requireIterateSimple();
6745
- var has = SetHelpers.has;
6746
- var remove = SetHelpers.remove;
6747
- setDifference = function difference(other) {
6748
- var O = aSet2(this);
6749
- var otherRec = getSetRecord2(other);
6750
- var result = clone(O);
6751
- if (size(O) <= otherRec.size) iterateSet(O, function(e) {
6752
- if (otherRec.includes(e)) remove(result, e);
6753
- });
6754
- else iterateSimple2(otherRec.getIterator(), function(e) {
6755
- if (has(result, e)) remove(result, e);
6756
- });
6757
- return result;
6758
- };
6759
- return setDifference;
6760
- }
6761
- var setMethodAcceptSetLike;
6762
- var hasRequiredSetMethodAcceptSetLike;
6763
- function requireSetMethodAcceptSetLike() {
6764
- if (hasRequiredSetMethodAcceptSetLike) return setMethodAcceptSetLike;
6765
- hasRequiredSetMethodAcceptSetLike = 1;
6766
- var getBuiltIn2 = requireGetBuiltIn();
6767
- var createSetLike = function(size) {
6768
- return {
6769
- size,
6770
- has: function() {
6771
- return false;
6772
- },
6773
- keys: function() {
6774
- return {
6775
- next: function() {
6776
- return {
6777
- done: true
6778
- };
6779
- }
6780
- };
6781
- }
6782
- };
6783
- };
6784
- var createSetLikeWithInfinitySize = function(size) {
6785
- return {
6786
- size,
6787
- has: function() {
6788
- return true;
6789
- },
6790
- keys: function() {
6791
- throw new Error("e");
6792
- }
6793
- };
6794
- };
6795
- setMethodAcceptSetLike = function(name, callback) {
6796
- var Set2 = getBuiltIn2("Set");
6797
- try {
6798
- new Set2()[name](createSetLike(0));
6799
- try {
6800
- new Set2()[name](createSetLike(-1));
6801
- return false;
6802
- } catch (error2) {
6803
- if (!callback) return true;
6804
- try {
6805
- new Set2()[name](createSetLikeWithInfinitySize(-Infinity));
6806
- return false;
6807
- } catch (error) {
6808
- var set = new Set2([1, 2]);
6809
- return callback(set[name](createSetLikeWithInfinitySize(Infinity)));
6810
- }
6811
- }
6812
- } catch (error) {
6813
- return false;
6814
- }
6815
- };
6816
- return setMethodAcceptSetLike;
6817
- }
6818
- var hasRequiredEs_set_difference_v2;
6819
- function requireEs_set_difference_v2() {
6820
- if (hasRequiredEs_set_difference_v2) return es_set_difference_v2;
6821
- hasRequiredEs_set_difference_v2 = 1;
6822
- var $ = require_export();
6823
- var difference = requireSetDifference();
6824
- var fails2 = requireFails();
6825
- var setMethodAcceptSetLike2 = requireSetMethodAcceptSetLike();
6826
- var SET_LIKE_INCORRECT_BEHAVIOR = !setMethodAcceptSetLike2("difference", function(result) {
6827
- return result.size === 0;
6828
- });
6829
- var FORCED = SET_LIKE_INCORRECT_BEHAVIOR || fails2(function() {
6830
- var setLike = {
6831
- size: 1,
6832
- has: function() {
6833
- return true;
6834
- },
6835
- keys: function() {
6836
- var index = 0;
6837
- return {
6838
- next: function() {
6839
- var done = index++ > 1;
6840
- if (baseSet.has(1)) baseSet.clear();
6841
- return {
6842
- done,
6843
- value: 2
6844
- };
6845
- }
6846
- };
6847
- }
6848
- };
6849
- var baseSet = /* @__PURE__ */ new Set([1, 2, 3, 4]);
6850
- return baseSet.difference(setLike).size !== 3;
6851
- });
6852
- $({
6853
- target: "Set",
6854
- proto: true,
6855
- real: true,
6856
- forced: FORCED
6857
- }, {
6858
- difference
6859
- });
6860
- return es_set_difference_v2;
6861
- }
6862
- requireEs_set_difference_v2();
6863
- var es_set_intersection_v2 = {};
6864
- var setIntersection;
6865
- var hasRequiredSetIntersection;
6866
- function requireSetIntersection() {
6867
- if (hasRequiredSetIntersection) return setIntersection;
6868
- hasRequiredSetIntersection = 1;
6869
- var aSet2 = requireASet();
6870
- var SetHelpers = requireSetHelpers();
6871
- var size = requireSetSize();
6872
- var getSetRecord2 = requireGetSetRecord();
6873
- var iterateSet = requireSetIterate();
6874
- var iterateSimple2 = requireIterateSimple();
6875
- var Set2 = SetHelpers.Set;
6876
- var add = SetHelpers.add;
6877
- var has = SetHelpers.has;
6878
- setIntersection = function intersection(other) {
6879
- var O = aSet2(this);
6880
- var otherRec = getSetRecord2(other);
6881
- var result = new Set2();
6882
- if (size(O) > otherRec.size) {
6883
- iterateSimple2(otherRec.getIterator(), function(e) {
6884
- if (has(O, e)) add(result, e);
6885
- });
6886
- } else {
6887
- iterateSet(O, function(e) {
6888
- if (otherRec.includes(e)) add(result, e);
6889
- });
6890
- }
6891
- return result;
6892
- };
6893
- return setIntersection;
6894
- }
6895
- var hasRequiredEs_set_intersection_v2;
6896
- function requireEs_set_intersection_v2() {
6897
- if (hasRequiredEs_set_intersection_v2) return es_set_intersection_v2;
6898
- hasRequiredEs_set_intersection_v2 = 1;
6899
- var $ = require_export();
6900
- var fails2 = requireFails();
6901
- var intersection = requireSetIntersection();
6902
- var setMethodAcceptSetLike2 = requireSetMethodAcceptSetLike();
6903
- var INCORRECT = !setMethodAcceptSetLike2("intersection", function(result) {
6904
- return result.size === 2 && result.has(1) && result.has(2);
6905
- }) || fails2(function() {
6906
- return String(Array.from((/* @__PURE__ */ new Set([1, 2, 3])).intersection(/* @__PURE__ */ new Set([3, 2])))) !== "3,2";
6907
- });
6908
- $({
6909
- target: "Set",
6910
- proto: true,
6911
- real: true,
6912
- forced: INCORRECT
6913
- }, {
6914
- intersection
6915
- });
6916
- return es_set_intersection_v2;
6917
- }
6918
- requireEs_set_intersection_v2();
6919
- var es_set_isDisjointFrom_v2 = {};
6920
- var setIsDisjointFrom;
6921
- var hasRequiredSetIsDisjointFrom;
6922
- function requireSetIsDisjointFrom() {
6923
- if (hasRequiredSetIsDisjointFrom) return setIsDisjointFrom;
6924
- hasRequiredSetIsDisjointFrom = 1;
6925
- var aSet2 = requireASet();
6926
- var has = requireSetHelpers().has;
6927
- var size = requireSetSize();
6928
- var getSetRecord2 = requireGetSetRecord();
6929
- var iterateSet = requireSetIterate();
6930
- var iterateSimple2 = requireIterateSimple();
6931
- var iteratorClose2 = requireIteratorClose();
6932
- setIsDisjointFrom = function isDisjointFrom(other) {
6933
- var O = aSet2(this);
6934
- var otherRec = getSetRecord2(other);
6935
- if (size(O) <= otherRec.size) return iterateSet(O, function(e) {
6936
- if (otherRec.includes(e)) return false;
6937
- }, true) !== false;
6938
- var iterator = otherRec.getIterator();
6939
- return iterateSimple2(iterator, function(e) {
6940
- if (has(O, e)) return iteratorClose2(iterator, "normal", false);
6941
- }) !== false;
6942
- };
6943
- return setIsDisjointFrom;
6944
- }
6945
- var hasRequiredEs_set_isDisjointFrom_v2;
6946
- function requireEs_set_isDisjointFrom_v2() {
6947
- if (hasRequiredEs_set_isDisjointFrom_v2) return es_set_isDisjointFrom_v2;
6948
- hasRequiredEs_set_isDisjointFrom_v2 = 1;
6949
- var $ = require_export();
6950
- var isDisjointFrom = requireSetIsDisjointFrom();
6951
- var setMethodAcceptSetLike2 = requireSetMethodAcceptSetLike();
6952
- var INCORRECT = !setMethodAcceptSetLike2("isDisjointFrom", function(result) {
6953
- return !result;
6954
- });
6955
- $({
6956
- target: "Set",
6957
- proto: true,
6958
- real: true,
6959
- forced: INCORRECT
6960
- }, {
6961
- isDisjointFrom
6962
- });
6963
- return es_set_isDisjointFrom_v2;
6964
- }
6965
- requireEs_set_isDisjointFrom_v2();
6966
- var es_set_isSubsetOf_v2 = {};
6967
- var setIsSubsetOf;
6968
- var hasRequiredSetIsSubsetOf;
6969
- function requireSetIsSubsetOf() {
6970
- if (hasRequiredSetIsSubsetOf) return setIsSubsetOf;
6971
- hasRequiredSetIsSubsetOf = 1;
6972
- var aSet2 = requireASet();
6973
- var size = requireSetSize();
6974
- var iterate2 = requireSetIterate();
6975
- var getSetRecord2 = requireGetSetRecord();
6976
- setIsSubsetOf = function isSubsetOf(other) {
6977
- var O = aSet2(this);
6978
- var otherRec = getSetRecord2(other);
6979
- if (size(O) > otherRec.size) return false;
6980
- return iterate2(O, function(e) {
6981
- if (!otherRec.includes(e)) return false;
6982
- }, true) !== false;
6983
- };
6984
- return setIsSubsetOf;
6985
- }
6986
- var hasRequiredEs_set_isSubsetOf_v2;
6987
- function requireEs_set_isSubsetOf_v2() {
6988
- if (hasRequiredEs_set_isSubsetOf_v2) return es_set_isSubsetOf_v2;
6989
- hasRequiredEs_set_isSubsetOf_v2 = 1;
6990
- var $ = require_export();
6991
- var isSubsetOf = requireSetIsSubsetOf();
6992
- var setMethodAcceptSetLike2 = requireSetMethodAcceptSetLike();
6993
- var INCORRECT = !setMethodAcceptSetLike2("isSubsetOf", function(result) {
6994
- return result;
6995
- });
6996
- $({
6997
- target: "Set",
6998
- proto: true,
6999
- real: true,
7000
- forced: INCORRECT
7001
- }, {
7002
- isSubsetOf
7003
- });
7004
- return es_set_isSubsetOf_v2;
7005
- }
7006
- requireEs_set_isSubsetOf_v2();
7007
- var es_set_isSupersetOf_v2 = {};
7008
- var setIsSupersetOf;
7009
- var hasRequiredSetIsSupersetOf;
7010
- function requireSetIsSupersetOf() {
7011
- if (hasRequiredSetIsSupersetOf) return setIsSupersetOf;
7012
- hasRequiredSetIsSupersetOf = 1;
7013
- var aSet2 = requireASet();
7014
- var has = requireSetHelpers().has;
7015
- var size = requireSetSize();
7016
- var getSetRecord2 = requireGetSetRecord();
7017
- var iterateSimple2 = requireIterateSimple();
7018
- var iteratorClose2 = requireIteratorClose();
7019
- setIsSupersetOf = function isSupersetOf(other) {
7020
- var O = aSet2(this);
7021
- var otherRec = getSetRecord2(other);
7022
- if (size(O) < otherRec.size) return false;
7023
- var iterator = otherRec.getIterator();
7024
- return iterateSimple2(iterator, function(e) {
7025
- if (!has(O, e)) return iteratorClose2(iterator, "normal", false);
7026
- }) !== false;
7027
- };
7028
- return setIsSupersetOf;
7029
- }
7030
- var hasRequiredEs_set_isSupersetOf_v2;
7031
- function requireEs_set_isSupersetOf_v2() {
7032
- if (hasRequiredEs_set_isSupersetOf_v2) return es_set_isSupersetOf_v2;
7033
- hasRequiredEs_set_isSupersetOf_v2 = 1;
7034
- var $ = require_export();
7035
- var isSupersetOf = requireSetIsSupersetOf();
7036
- var setMethodAcceptSetLike2 = requireSetMethodAcceptSetLike();
7037
- var INCORRECT = !setMethodAcceptSetLike2("isSupersetOf", function(result) {
7038
- return !result;
7039
- });
7040
- $({
7041
- target: "Set",
7042
- proto: true,
7043
- real: true,
7044
- forced: INCORRECT
7045
- }, {
7046
- isSupersetOf
7047
- });
7048
- return es_set_isSupersetOf_v2;
7049
- }
7050
- requireEs_set_isSupersetOf_v2();
7051
- var es_set_symmetricDifference_v2 = {};
7052
- var setSymmetricDifference;
7053
- var hasRequiredSetSymmetricDifference;
7054
- function requireSetSymmetricDifference() {
7055
- if (hasRequiredSetSymmetricDifference) return setSymmetricDifference;
7056
- hasRequiredSetSymmetricDifference = 1;
7057
- var aSet2 = requireASet();
7058
- var SetHelpers = requireSetHelpers();
7059
- var clone = requireSetClone();
7060
- var getSetRecord2 = requireGetSetRecord();
7061
- var iterateSimple2 = requireIterateSimple();
7062
- var add = SetHelpers.add;
7063
- var has = SetHelpers.has;
7064
- var remove = SetHelpers.remove;
7065
- setSymmetricDifference = function symmetricDifference(other) {
7066
- var O = aSet2(this);
7067
- var keysIter = getSetRecord2(other).getIterator();
7068
- var result = clone(O);
7069
- iterateSimple2(keysIter, function(e) {
7070
- if (has(O, e)) remove(result, e);
7071
- else add(result, e);
7072
- });
7073
- return result;
7074
- };
7075
- return setSymmetricDifference;
7076
- }
7077
- var setMethodGetKeysBeforeCloningDetection;
7078
- var hasRequiredSetMethodGetKeysBeforeCloningDetection;
7079
- function requireSetMethodGetKeysBeforeCloningDetection() {
7080
- if (hasRequiredSetMethodGetKeysBeforeCloningDetection) return setMethodGetKeysBeforeCloningDetection;
7081
- hasRequiredSetMethodGetKeysBeforeCloningDetection = 1;
7082
- setMethodGetKeysBeforeCloningDetection = function(METHOD_NAME) {
7083
- try {
7084
- var baseSet = /* @__PURE__ */ new Set();
7085
- var setLike = {
7086
- size: 0,
7087
- has: function() {
7088
- return true;
7089
- },
7090
- keys: function() {
7091
- return Object.defineProperty({}, "next", {
7092
- get: function() {
7093
- baseSet.clear();
7094
- baseSet.add(4);
7095
- return function() {
7096
- return {
7097
- done: true
7098
- };
7099
- };
7100
- }
7101
- });
7102
- }
7103
- };
7104
- var result = baseSet[METHOD_NAME](setLike);
7105
- return result.size === 1 && result.values().next().value === 4;
7106
- } catch (error) {
7107
- return false;
7108
- }
7109
- };
7110
- return setMethodGetKeysBeforeCloningDetection;
7111
- }
7112
- var hasRequiredEs_set_symmetricDifference_v2;
7113
- function requireEs_set_symmetricDifference_v2() {
7114
- if (hasRequiredEs_set_symmetricDifference_v2) return es_set_symmetricDifference_v2;
7115
- hasRequiredEs_set_symmetricDifference_v2 = 1;
7116
- var $ = require_export();
7117
- var symmetricDifference = requireSetSymmetricDifference();
7118
- var setMethodGetKeysBeforeCloning = requireSetMethodGetKeysBeforeCloningDetection();
7119
- var setMethodAcceptSetLike2 = requireSetMethodAcceptSetLike();
7120
- var FORCED = !setMethodAcceptSetLike2("symmetricDifference") || !setMethodGetKeysBeforeCloning("symmetricDifference");
7121
- $({
7122
- target: "Set",
7123
- proto: true,
7124
- real: true,
7125
- forced: FORCED
7126
- }, {
7127
- symmetricDifference
7128
- });
7129
- return es_set_symmetricDifference_v2;
7130
- }
7131
- requireEs_set_symmetricDifference_v2();
7132
- var es_set_union_v2 = {};
7133
- var setUnion;
7134
- var hasRequiredSetUnion;
7135
- function requireSetUnion() {
7136
- if (hasRequiredSetUnion) return setUnion;
7137
- hasRequiredSetUnion = 1;
7138
- var aSet2 = requireASet();
7139
- var add = requireSetHelpers().add;
7140
- var clone = requireSetClone();
7141
- var getSetRecord2 = requireGetSetRecord();
7142
- var iterateSimple2 = requireIterateSimple();
7143
- setUnion = function union(other) {
7144
- var O = aSet2(this);
7145
- var keysIter = getSetRecord2(other).getIterator();
7146
- var result = clone(O);
7147
- iterateSimple2(keysIter, function(it) {
7148
- add(result, it);
7149
- });
7150
- return result;
7151
- };
7152
- return setUnion;
7153
- }
7154
- var hasRequiredEs_set_union_v2;
7155
- function requireEs_set_union_v2() {
7156
- if (hasRequiredEs_set_union_v2) return es_set_union_v2;
7157
- hasRequiredEs_set_union_v2 = 1;
7158
- var $ = require_export();
7159
- var union = requireSetUnion();
7160
- var setMethodGetKeysBeforeCloning = requireSetMethodGetKeysBeforeCloningDetection();
7161
- var setMethodAcceptSetLike2 = requireSetMethodAcceptSetLike();
7162
- var FORCED = !setMethodAcceptSetLike2("union") || !setMethodGetKeysBeforeCloning("union");
7163
- $({
7164
- target: "Set",
7165
- proto: true,
7166
- real: true,
7167
- forced: FORCED
7168
- }, {
7169
- union
7170
- });
7171
- return es_set_union_v2;
7172
- }
7173
- requireEs_set_union_v2();
7174
7183
  function uniqueValues(items, property) {
7175
7184
  const values = items.map((it) => it[property]);
7176
7185
  const unique = Array.from(new Set(values));