@fedify/fedify 1.7.10 → 1.7.12

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.
Files changed (98) hide show
  1. package/dist/{actor-m_MgQ1Da.js → actor-GZRoTRqg.js} +1059 -2276
  2. package/dist/{actor-C9RnX-Fl.js → actor-TYqJGdVq.js} +6 -9
  3. package/dist/{assert-DmFG7ppO.js → assert-LOEeCUK5.js} +1 -1
  4. package/dist/{assert_equals-CTYbeopb.js → assert_equals-B44MxcIj.js} +2 -4
  5. package/dist/{assert_instance_of-CF09JHYM.js → assert_instance_of-XtuFevV_.js} +1 -1
  6. package/dist/{assert_is_error-nrwA1GeT.js → assert_is_error-BTlryvT0.js} +1 -1
  7. package/dist/{assert_not_equals-Dc7y-V5Q.js → assert_not_equals-C685gKx6.js} +1 -1
  8. package/dist/{assert_rejects-C-sxEMM5.js → assert_rejects-DWQ4jaf9.js} +2 -2
  9. package/dist/{assert_throws-Cn9C6Jur.js → assert_throws-YetpVSc-.js} +2 -2
  10. package/dist/{authdocloader-cdK4XSRT.js → authdocloader-BopfyipD.js} +3 -3
  11. package/dist/{authdocloader-7OXAs5XI.js → authdocloader-hiFSyM7V.js} +4 -4
  12. package/dist/{builder-C7nJE1zO.js → builder-mi6RdzNE.js} +7 -10
  13. package/dist/{chunk-HsBuZ-b2.js → chunk-Cx8LTkjm.js} +3 -1
  14. package/dist/{client-DXIsEekV.js → client-DuUKk4pk.js} +6 -6
  15. package/dist/compat/transformers.test.js +27 -28
  16. package/dist/{context-Bts52fbz.js → context-RMU32mk4.js} +2 -2
  17. package/dist/{docloader-BK2Fp3AJ.js → docloader-DJxET2fN.js} +5 -9
  18. package/dist/{docloader-CgkbWVNz.js → docloader-bgBm1Hd1.js} +4 -6
  19. package/dist/{esm-Db4De7AS.js → esm-DO9PrujO.js} +23 -34
  20. package/dist/federation/builder.test.js +23 -29
  21. package/dist/federation/collection.test.js +9 -9
  22. package/dist/federation/handler.test.js +33 -33
  23. package/dist/federation/inbox.test.js +10 -10
  24. package/dist/federation/keycache.test.js +9 -9
  25. package/dist/federation/kv.test.js +10 -9
  26. package/dist/federation/middleware.test.js +76 -99
  27. package/dist/federation/mod.js +11 -11
  28. package/dist/federation/mq.test.js +10 -11
  29. package/dist/federation/retry.test.js +3 -3
  30. package/dist/federation/router.test.js +9 -9
  31. package/dist/federation/send.test.js +22 -22
  32. package/dist/{federation-BRIQn-GV.js → federation-B0aljx0V.js} +1 -2
  33. package/dist/fixtures/oeee.cafe/ap/users/3609fd4e-d51d-4db8-9f04-4189815864dd.json +24 -0
  34. package/dist/{http-D1IBucdD.js → http-D2DkwsjA.js} +56 -17
  35. package/dist/{http-CwQqD0nE.js → http-vqMAvOVs.js} +56 -17
  36. package/dist/{inbox-BrMkm2b5.js → inbox-DAAZZl2k.js} +5 -7
  37. package/dist/key-5ssHQ67E.js +16 -0
  38. package/dist/{key-Do-Pud3s.js → key-DSJGnD10.js} +4 -4
  39. package/dist/{key-C6phFgFq.js → key-DmqJj57e.js} +5 -8
  40. package/dist/{key-DtQ4rLnr.js → key-KVhaUM92.js} +6 -9
  41. package/dist/{keycache-B_99o7Nj.js → keycache-C1pEuRyQ.js} +2 -2
  42. package/dist/{keys-BgLpfFXK.js → keys-C4XQHW5_.js} +1 -1
  43. package/dist/{ld-AzOj4-js.js → ld-DzlJ_IpT.js} +9 -16
  44. package/dist/{lookup-DJgGrigh.js → lookup-CSngxuWm.js} +2 -4
  45. package/dist/{lookup-CBbanOdu.js → lookup-D0je8AqR.js} +7 -11
  46. package/dist/{lookup-ChtUDlB-.js → lookup-DL62q3Xh.js} +3 -5
  47. package/dist/{middleware-BS_et69x.js → middleware-3wVT6S9E.js} +34 -52
  48. package/dist/middleware-CxFoFBD8.js +33 -0
  49. package/dist/{middleware-R0UobiAQ.js → middleware-DlDXugwZ.js} +34 -58
  50. package/dist/middleware-w7_U3fFi.js +17 -0
  51. package/dist/mod.js +11 -11
  52. package/dist/{multibase-DeCHcK8L.js → multibase-CnLHszip.js} +1 -2
  53. package/dist/nodeinfo/client.test.js +20 -23
  54. package/dist/nodeinfo/handler.test.js +32 -32
  55. package/dist/nodeinfo/mod.js +2 -2
  56. package/dist/nodeinfo/semver.test.js +23 -30
  57. package/dist/nodeinfo/types.test.js +11 -11
  58. package/dist/{owner-Ces3Cs3s.js → owner-81ey_76X.js} +3 -3
  59. package/dist/{proof-BOQF8Trx.js → proof-BlULDH4H.js} +8 -14
  60. package/dist/{proof-BKV4HiE8.js → proof-DlI7QNdn.js} +12 -25
  61. package/dist/runtime/authdocloader.test.js +21 -21
  62. package/dist/runtime/docloader.test.js +16 -18
  63. package/dist/runtime/key.test.js +17 -17
  64. package/dist/runtime/langstr.test.js +9 -9
  65. package/dist/runtime/mod.js +6 -6
  66. package/dist/runtime/multibase/multibase.test.js +11 -12
  67. package/dist/runtime/url.test.js +6 -6
  68. package/dist/{semver-DWClQt_5.js → semver-BNrOOAs9.js} +1 -3
  69. package/dist/{send-aAmnTqe8.js → send-DdxfTHo6.js} +3 -4
  70. package/dist/sig/http.test.js +56 -54
  71. package/dist/sig/key.test.js +18 -18
  72. package/dist/sig/ld.test.js +20 -22
  73. package/dist/sig/mod.js +6 -6
  74. package/dist/sig/owner.test.js +20 -20
  75. package/dist/sig/proof.test.js +19 -19
  76. package/dist/{std__assert-vp0TKMS1.js → std__assert-o_r9vqm1.js} +1 -1
  77. package/dist/testing/docloader.test.js +9 -9
  78. package/dist/testing/mod.js +1 -1
  79. package/dist/{testing-BZ0dJ4qn.js → testing-DLyvtiiW.js} +3 -5
  80. package/dist/{type-D2s5lmbZ.js → type-CFuiGLz9.js} +1 -2
  81. package/dist/{types-C7C_l-jz.js → types-CJHS5pXl.js} +1 -1
  82. package/dist/{types-DBIKpLqH.js → types-CmVV9LT1.js} +6 -8
  83. package/dist/{url-kTAI6_KP.js → url-C2xuoQD1.js} +2 -4
  84. package/dist/vocab/actor.test.js +104 -156
  85. package/dist/vocab/lookup.test.js +17 -17
  86. package/dist/vocab/mod.js +4 -4
  87. package/dist/vocab/type.test.js +11 -15
  88. package/dist/vocab/vocab.test.js +45 -49
  89. package/dist/{vocab-F6vbRsQh.js → vocab-BebR0kAy.js} +6 -10
  90. package/dist/{vocab-BOerhowX.js → vocab-DFlq4Wa6.js} +1057 -2270
  91. package/dist/webfinger/handler.test.js +33 -34
  92. package/dist/webfinger/lookup.test.js +13 -13
  93. package/dist/webfinger/mod.js +2 -2
  94. package/dist/x/cfworkers.test.js +9 -9
  95. package/package.json +1 -1
  96. package/dist/key-ZtjFeVO8.js +0 -16
  97. package/dist/middleware-BVMzYv1x.js +0 -33
  98. package/dist/middleware-CnpuCK_K.js +0 -17
@@ -3,25 +3,25 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { __export } from "../chunk-HsBuZ-b2.js";
7
- import { assertEquals } from "../assert_equals-CTYbeopb.js";
8
- import { assert } from "../assert-DmFG7ppO.js";
9
- import "../assert_instance_of-CF09JHYM.js";
10
- import "../docloader-CgkbWVNz.js";
11
- import "../url-kTAI6_KP.js";
12
- import "../multibase-DeCHcK8L.js";
13
- import { Application, Group, Organization, Person, Service } from "../vocab-BOerhowX.js";
6
+ import { __export } from "../chunk-Cx8LTkjm.js";
7
+ import { assertEquals } from "../assert_equals-B44MxcIj.js";
8
+ import { assert } from "../assert-LOEeCUK5.js";
9
+ import "../assert_instance_of-XtuFevV_.js";
10
+ import "../docloader-bgBm1Hd1.js";
11
+ import "../url-C2xuoQD1.js";
12
+ import "../multibase-CnLHszip.js";
13
+ import { Application, Group, Organization, Person, Service } from "../vocab-DFlq4Wa6.js";
14
14
  import "../langstr-DbWheeIS.js";
15
- import "../lookup-ChtUDlB-.js";
16
- import "../type-D2s5lmbZ.js";
17
- import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-C9RnX-Fl.js";
18
- import { test } from "../testing-BZ0dJ4qn.js";
19
- import { assertStrictEquals } from "../std__assert-vp0TKMS1.js";
20
- import { assertFalse, assertRejects } from "../assert_rejects-C-sxEMM5.js";
21
- import "../assert_is_error-nrwA1GeT.js";
22
- import "../assert_not_equals-Dc7y-V5Q.js";
23
- import { assertThrows } from "../assert_throws-Cn9C6Jur.js";
24
- import { esm_default } from "../esm-Db4De7AS.js";
15
+ import "../lookup-DL62q3Xh.js";
16
+ import "../type-CFuiGLz9.js";
17
+ import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-TYqJGdVq.js";
18
+ import { test } from "../testing-DLyvtiiW.js";
19
+ import { assertStrictEquals } from "../std__assert-o_r9vqm1.js";
20
+ import { assertFalse, assertRejects } from "../assert_rejects-DWQ4jaf9.js";
21
+ import "../assert_is_error-BTlryvT0.js";
22
+ import "../assert_not_equals-C685gKx6.js";
23
+ import { assertThrows } from "../assert_throws-YetpVSc-.js";
24
+ import { esm_default } from "../esm-DO9PrujO.js";
25
25
 
26
26
  //#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
27
27
  var PreconditionFailure = class PreconditionFailure extends Error {
@@ -375,7 +375,7 @@ function safeExtractApply(f) {
375
375
  try {
376
376
  return f.apply;
377
377
  } catch (err) {
378
- return void 0;
378
+ return;
379
379
  }
380
380
  }
381
381
  function safeApplyHacky(f, instance, args) {
@@ -426,63 +426,63 @@ function extractForEach(instance) {
426
426
  try {
427
427
  return instance.forEach;
428
428
  } catch (err) {
429
- return void 0;
429
+ return;
430
430
  }
431
431
  }
432
432
  function extractIndexOf(instance) {
433
433
  try {
434
434
  return instance.indexOf;
435
435
  } catch (err) {
436
- return void 0;
436
+ return;
437
437
  }
438
438
  }
439
439
  function extractJoin(instance) {
440
440
  try {
441
441
  return instance.join;
442
442
  } catch (err) {
443
- return void 0;
443
+ return;
444
444
  }
445
445
  }
446
446
  function extractMap(instance) {
447
447
  try {
448
448
  return instance.map;
449
449
  } catch (err) {
450
- return void 0;
450
+ return;
451
451
  }
452
452
  }
453
453
  function extractFilter(instance) {
454
454
  try {
455
455
  return instance.filter;
456
456
  } catch (err) {
457
- return void 0;
457
+ return;
458
458
  }
459
459
  }
460
460
  function extractPush(instance) {
461
461
  try {
462
462
  return instance.push;
463
463
  } catch (err) {
464
- return void 0;
464
+ return;
465
465
  }
466
466
  }
467
467
  function extractPop(instance) {
468
468
  try {
469
469
  return instance.pop;
470
470
  } catch (err) {
471
- return void 0;
471
+ return;
472
472
  }
473
473
  }
474
474
  function extractSlice(instance) {
475
475
  try {
476
476
  return instance.slice;
477
477
  } catch (err) {
478
- return void 0;
478
+ return;
479
479
  }
480
480
  }
481
481
  function extractEvery(instance) {
482
482
  try {
483
483
  return instance.every;
484
484
  } catch (err) {
485
- return void 0;
485
+ return;
486
486
  }
487
487
  }
488
488
  function safeForEach(instance, fn) {
@@ -527,14 +527,14 @@ function extractGetTime(instance) {
527
527
  try {
528
528
  return instance.getTime;
529
529
  } catch (err) {
530
- return void 0;
530
+ return;
531
531
  }
532
532
  }
533
533
  function extractToISOString(instance) {
534
534
  try {
535
535
  return instance.toISOString;
536
536
  } catch (err) {
537
- return void 0;
537
+ return;
538
538
  }
539
539
  }
540
540
  function safeGetTime(instance) {
@@ -551,14 +551,14 @@ function extractAdd(instance) {
551
551
  try {
552
552
  return instance.add;
553
553
  } catch (err) {
554
- return void 0;
554
+ return;
555
555
  }
556
556
  }
557
557
  function extractHas(instance) {
558
558
  try {
559
559
  return instance.has;
560
560
  } catch (err) {
561
- return void 0;
561
+ return;
562
562
  }
563
563
  }
564
564
  function safeAdd(instance, value) {
@@ -575,14 +575,14 @@ function extractSet(instance) {
575
575
  try {
576
576
  return instance.set;
577
577
  } catch (err) {
578
- return void 0;
578
+ return;
579
579
  }
580
580
  }
581
581
  function extractGet(instance) {
582
582
  try {
583
583
  return instance.get;
584
584
  } catch (err) {
585
- return void 0;
585
+ return;
586
586
  }
587
587
  }
588
588
  function safeSet(instance, key, value) {
@@ -599,14 +599,14 @@ function extractMapSet(instance) {
599
599
  try {
600
600
  return instance.set;
601
601
  } catch (err) {
602
- return void 0;
602
+ return;
603
603
  }
604
604
  }
605
605
  function extractMapGet(instance) {
606
606
  try {
607
607
  return instance.get;
608
608
  } catch (err) {
609
- return void 0;
609
+ return;
610
610
  }
611
611
  }
612
612
  function safeMapSet(instance, key, value) {
@@ -631,35 +631,35 @@ function extractSplit(instance) {
631
631
  try {
632
632
  return instance.split;
633
633
  } catch (err) {
634
- return void 0;
634
+ return;
635
635
  }
636
636
  }
637
637
  function extractSubstring(instance) {
638
638
  try {
639
639
  return instance.substring;
640
640
  } catch (err) {
641
- return void 0;
641
+ return;
642
642
  }
643
643
  }
644
644
  function extractCharCodeAt(instance) {
645
645
  try {
646
646
  return instance.charCodeAt;
647
647
  } catch (err) {
648
- return void 0;
648
+ return;
649
649
  }
650
650
  }
651
651
  function extractNormalize(instance) {
652
652
  try {
653
653
  return instance.normalize;
654
654
  } catch (err) {
655
- return void 0;
655
+ return;
656
656
  }
657
657
  }
658
658
  function extractReplace(instance) {
659
659
  try {
660
660
  return instance.replace;
661
661
  } catch (err) {
662
- return void 0;
662
+ return;
663
663
  }
664
664
  }
665
665
  function safeSplit(instance, ...args) {
@@ -908,8 +908,7 @@ function unsafeGenerateN(rng, num) {
908
908
  }
909
909
  function generateN(rng, num) {
910
910
  var nextRng = rng.clone();
911
- var out = unsafeGenerateN(nextRng, num);
912
- return [out, nextRng];
911
+ return [unsafeGenerateN(nextRng, num), nextRng];
913
912
  }
914
913
  function unsafeSkipN(rng, num) {
915
914
  for (var idx = 0; idx != num; ++idx) rng.unsafeNext();
@@ -941,8 +940,7 @@ var LinearCongruential32 = function() {
941
940
  };
942
941
  LinearCongruential32$1.prototype.next = function() {
943
942
  var nextRng = new LinearCongruential32$1(this.seed);
944
- var out = nextRng.unsafeNext();
945
- return [out, nextRng];
943
+ return [nextRng.unsafeNext(), nextRng];
946
944
  };
947
945
  LinearCongruential32$1.prototype.unsafeNext = function() {
948
946
  var s1 = computeNextSeed(this.seed);
@@ -950,9 +948,7 @@ var LinearCongruential32 = function() {
950
948
  var s2 = computeNextSeed(s1);
951
949
  var v2 = computeValueFromNextSeed(s2);
952
950
  this.seed = computeNextSeed(s2);
953
- var v3 = computeValueFromNextSeed(this.seed);
954
- var vnext = v3 + (v2 + (v1 << 15) << 15);
955
- return vnext | 0;
951
+ return computeValueFromNextSeed(this.seed) + (v2 + (v1 << 15) << 15) | 0;
956
952
  };
957
953
  LinearCongruential32$1.prototype.getState = function() {
958
954
  return [this.seed];
@@ -960,8 +956,7 @@ var LinearCongruential32 = function() {
960
956
  return LinearCongruential32$1;
961
957
  }();
962
958
  function fromState$3(state) {
963
- var valid = state.length === 1;
964
- if (!valid) throw new Error("The state must have been produced by a congruential32 RandomGenerator");
959
+ if (!(state.length === 1)) throw new Error("The state must have been produced by a congruential32 RandomGenerator");
965
960
  return new LinearCongruential32(state[0]);
966
961
  }
967
962
  var congruential32 = Object.assign(function(seed) {
@@ -1032,8 +1027,7 @@ var MersenneTwister = function() {
1032
1027
  };
1033
1028
  MersenneTwister$1.prototype.next = function() {
1034
1029
  var nextRng = new MersenneTwister$1(this.states, this.index);
1035
- var out = nextRng.unsafeNext();
1036
- return [out, nextRng];
1030
+ return [nextRng.unsafeNext(), nextRng];
1037
1031
  };
1038
1032
  MersenneTwister$1.prototype.unsafeNext = function() {
1039
1033
  var y = this.states[this.index];
@@ -1051,8 +1045,7 @@ var MersenneTwister = function() {
1051
1045
  return __spreadArray([this.index], __read(this.states), false);
1052
1046
  };
1053
1047
  MersenneTwister$1.fromState = function(state) {
1054
- var valid = state.length === MersenneTwister$1.N + 1 && state[0] >= 0 && state[0] < MersenneTwister$1.N;
1055
- if (!valid) throw new Error("The state must have been produced by a mersenne RandomGenerator");
1048
+ if (!(state.length === MersenneTwister$1.N + 1 && state[0] >= 0 && state[0] < MersenneTwister$1.N)) throw new Error("The state must have been produced by a mersenne RandomGenerator");
1056
1049
  return new MersenneTwister$1(state.slice(1), state[0]);
1057
1050
  };
1058
1051
  MersenneTwister$1.N = 624;
@@ -1091,8 +1084,7 @@ var XorShift128Plus = function() {
1091
1084
  };
1092
1085
  XorShift128Plus$1.prototype.next = function() {
1093
1086
  var nextRng = new XorShift128Plus$1(this.s01, this.s00, this.s11, this.s10);
1094
- var out = nextRng.unsafeNext();
1095
- return [out, nextRng];
1087
+ return [nextRng.unsafeNext(), nextRng];
1096
1088
  };
1097
1089
  XorShift128Plus$1.prototype.unsafeNext = function() {
1098
1090
  var a0 = this.s00 ^ this.s00 << 23;
@@ -1147,8 +1139,7 @@ var XorShift128Plus = function() {
1147
1139
  return XorShift128Plus$1;
1148
1140
  }();
1149
1141
  function fromState$1(state) {
1150
- var valid = state.length === 4;
1151
- if (!valid) throw new Error("The state must have been produced by a xorshift128plus RandomGenerator");
1142
+ if (!(state.length === 4)) throw new Error("The state must have been produced by a xorshift128plus RandomGenerator");
1152
1143
  return new XorShift128Plus(state[0], state[1], state[2], state[3]);
1153
1144
  }
1154
1145
  var xorshift128plus = Object.assign(function(seed) {
@@ -1169,8 +1160,7 @@ var XoroShiro128Plus = function() {
1169
1160
  };
1170
1161
  XoroShiro128Plus$1.prototype.next = function() {
1171
1162
  var nextRng = new XoroShiro128Plus$1(this.s01, this.s00, this.s11, this.s10);
1172
- var out = nextRng.unsafeNext();
1173
- return [out, nextRng];
1163
+ return [nextRng.unsafeNext(), nextRng];
1174
1164
  };
1175
1165
  XoroShiro128Plus$1.prototype.unsafeNext = function() {
1176
1166
  var out = this.s00 + this.s10 | 0;
@@ -1225,8 +1215,7 @@ var XoroShiro128Plus = function() {
1225
1215
  return XoroShiro128Plus$1;
1226
1216
  }();
1227
1217
  function fromState(state) {
1228
- var valid = state.length === 4;
1229
- if (!valid) throw new Error("The state must have been produced by a xoroshiro128plus RandomGenerator");
1218
+ if (!(state.length === 4)) throw new Error("The state must have been produced by a xoroshiro128plus RandomGenerator");
1230
1219
  return new XoroShiro128Plus(state[0], state[1], state[2], state[3]);
1231
1220
  }
1232
1221
  var xoroshiro128plus = Object.assign(function(seed) {
@@ -1383,8 +1372,7 @@ function unsafeUniformArrayIntDistributionInternal(out, rangeSize, rng) {
1383
1372
  while (true) {
1384
1373
  for (var index = 0; index !== rangeLength; ++index) {
1385
1374
  var indexRangeSize = index === 0 ? rangeSize[0] + 1 : 4294967296;
1386
- var g = unsafeUniformIntDistributionInternal(indexRangeSize, rng);
1387
- out[index] = g;
1375
+ out[index] = unsafeUniformIntDistributionInternal(indexRangeSize, rng);
1388
1376
  }
1389
1377
  for (var index = 0; index !== rangeLength; ++index) {
1390
1378
  var current = out[index];
@@ -1440,10 +1428,7 @@ function unsafeUniformBigIntDistribution(from, to, rng) {
1440
1428
  var out = rng.unsafeNext();
1441
1429
  value = NumValues * value + (SBigInt$1(out) - MinRng);
1442
1430
  }
1443
- if (value < MaxAcceptedRandom) {
1444
- var inDiff = value % diff;
1445
- return inDiff + from;
1446
- }
1431
+ if (value < MaxAcceptedRandom) return value % diff + from;
1447
1432
  }
1448
1433
  }
1449
1434
 
@@ -1487,10 +1472,7 @@ function uniformLargeIntInternal(from, to, rangeSize, rng) {
1487
1472
  }
1488
1473
  function unsafeUniformIntDistribution(from, to, rng) {
1489
1474
  var rangeSize = to - from;
1490
- if (rangeSize <= 4294967295) {
1491
- var g = unsafeUniformIntDistributionInternal(rangeSize + 1, rng);
1492
- return g + from;
1493
- }
1475
+ if (rangeSize <= 4294967295) return unsafeUniformIntDistributionInternal(rangeSize + 1, rng) + from;
1494
1476
  return uniformLargeIntInternal(from, to, rangeSize, rng);
1495
1477
  }
1496
1478
 
@@ -1509,8 +1491,7 @@ function uniformIntDistribution(from, to, rng) {
1509
1491
 
1510
1492
  //#endregion
1511
1493
  //#region node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/pure-rand-default.js
1512
- var pure_rand_default_exports = {};
1513
- __export(pure_rand_default_exports, {
1494
+ var pure_rand_default_exports = /* @__PURE__ */ __export({
1514
1495
  __commitHash: () => __commitHash,
1515
1496
  __type: () => __type,
1516
1497
  __version: () => __version,
@@ -1578,7 +1559,7 @@ var QualifiedParameters = class QualifiedParameters {
1578
1559
  }
1579
1560
  toParameters() {
1580
1561
  const orUndefined = (value) => value !== null ? value : void 0;
1581
- const parameters = {
1562
+ return {
1582
1563
  seed: this.seed,
1583
1564
  randomType: this.randomType,
1584
1565
  numRuns: this.numRuns,
@@ -1599,7 +1580,6 @@ var QualifiedParameters = class QualifiedParameters {
1599
1580
  asyncReporter: orUndefined(this.asyncReporter),
1600
1581
  errorWithCause: this.errorWithCause
1601
1582
  };
1602
- return parameters;
1603
1583
  }
1604
1584
  static read(op) {
1605
1585
  return new QualifiedParameters(op);
@@ -1662,15 +1642,14 @@ QualifiedParameters.safeTimeout = (value) => {
1662
1642
  //#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/SkipAfterProperty.js
1663
1643
  function interruptAfter(timeMs, setTimeoutSafe, clearTimeoutSafe) {
1664
1644
  let timeoutHandle = null;
1665
- const promise = new Promise((resolve) => {
1666
- timeoutHandle = setTimeoutSafe(() => {
1667
- const preconditionFailure = new PreconditionFailure(true);
1668
- resolve(preconditionFailure);
1669
- }, timeMs);
1670
- });
1671
1645
  return {
1672
1646
  clear: () => clearTimeoutSafe(timeoutHandle),
1673
- promise
1647
+ promise: new Promise((resolve) => {
1648
+ timeoutHandle = setTimeoutSafe(() => {
1649
+ const preconditionFailure = new PreconditionFailure(true);
1650
+ resolve(preconditionFailure);
1651
+ }, timeMs);
1652
+ })
1674
1653
  };
1675
1654
  }
1676
1655
  var SkipAfterProperty = class {
@@ -1716,17 +1695,16 @@ var SkipAfterProperty = class {
1716
1695
  //#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/TimeoutProperty.js
1717
1696
  const timeoutAfter = (timeMs, setTimeoutSafe, clearTimeoutSafe) => {
1718
1697
  let timeoutHandle = null;
1719
- const promise = new Promise((resolve) => {
1720
- timeoutHandle = setTimeoutSafe(() => {
1721
- resolve({
1722
- error: new SError(`Property timeout: exceeded limit of ${timeMs} milliseconds`),
1723
- errorMessage: `Property timeout: exceeded limit of ${timeMs} milliseconds`
1724
- });
1725
- }, timeMs);
1726
- });
1727
1698
  return {
1728
1699
  clear: () => clearTimeoutSafe(timeoutHandle),
1729
- promise
1700
+ promise: new Promise((resolve) => {
1701
+ timeoutHandle = setTimeoutSafe(() => {
1702
+ resolve({
1703
+ error: new SError(`Property timeout: exceeded limit of ${timeMs} milliseconds`),
1704
+ errorMessage: `Property timeout: exceeded limit of ${timeMs} milliseconds`
1705
+ });
1706
+ }, timeMs);
1707
+ })
1730
1708
  };
1731
1709
  };
1732
1710
  var TimeoutProperty = class {
@@ -1914,8 +1892,7 @@ function stringifyInternal(value, previousValues, getAsyncContent) {
1914
1892
  const valuePrototype = safeObjectGetPrototypeOf$1(value);
1915
1893
  const className = valuePrototype && valuePrototype.constructor && valuePrototype.constructor.name;
1916
1894
  if (typeof className === "string") {
1917
- const typedArray$1 = value;
1918
- const valuesFromTypedArr = typedArray$1.values();
1895
+ const valuesFromTypedArr = value.values();
1919
1896
  return `${className}.from(${stringifyInternal(safeArrayFrom(valuesFromTypedArr), currentValues, getAsyncContent)})`;
1920
1897
  }
1921
1898
  break;
@@ -1942,14 +1919,13 @@ function possiblyAsyncStringify(value) {
1942
1919
  const cancel = () => {
1943
1920
  if (handleId !== null) clearTimeout(handleId);
1944
1921
  };
1945
- const delay = new Promise((resolve) => {
1946
- handleId = setTimeout(() => {
1947
- handleId = null;
1948
- resolve(stillPendingMarker);
1949
- }, 0);
1950
- });
1951
1922
  return {
1952
- delay,
1923
+ delay: new Promise((resolve) => {
1924
+ handleId = setTimeout(() => {
1925
+ handleId = null;
1926
+ resolve(stillPendingMarker);
1927
+ }, 0);
1928
+ }),
1953
1929
  cancel
1954
1930
  };
1955
1931
  }
@@ -2086,10 +2062,7 @@ var RunExecution = class RunExecution {
2086
2062
  return currentTree;
2087
2063
  }
2088
2064
  fail(value, id, failure) {
2089
- if (this.verbosity >= VerbosityLevel.Verbose) {
2090
- const currentTree = this.appendExecutionTree(ExecutionStatus.Failure, value);
2091
- this.currentLevelExecutionTrees = currentTree.children;
2092
- }
2065
+ if (this.verbosity >= VerbosityLevel.Verbose) this.currentLevelExecutionTrees = this.appendExecutionTree(ExecutionStatus.Failure, value).children;
2093
2066
  if (this.pathToFailure == null) this.pathToFailure = `${id}`;
2094
2067
  else this.pathToFailure += `:${id}`;
2095
2068
  this.value = value;
@@ -2135,9 +2108,8 @@ var RunExecution = class RunExecution {
2135
2108
  runConfiguration: qParams.toParameters()
2136
2109
  };
2137
2110
  const considerInterruptedAsFailure = this.interruptedAsFailure || this.numSuccesses === 0;
2138
- const failed = this.numSkips > maxSkips || this.interrupted && considerInterruptedAsFailure;
2139
- const out = {
2140
- failed,
2111
+ return {
2112
+ failed: this.numSkips > maxSkips || this.interrupted && considerInterruptedAsFailure,
2141
2113
  interrupted: this.interrupted,
2142
2114
  numRuns: this.numSuccesses,
2143
2115
  numSkips: this.numSkips,
@@ -2152,7 +2124,6 @@ var RunExecution = class RunExecution {
2152
2124
  verbose: this.verbosity,
2153
2125
  runConfiguration: qParams.toParameters()
2154
2126
  };
2155
- return out;
2156
2127
  }
2157
2128
  };
2158
2129
  RunExecution.mergePaths = (offsetPath, path) => {
@@ -2267,7 +2238,6 @@ var Random = class Random {
2267
2238
  }
2268
2239
  getState() {
2269
2240
  if ("getState" in this.internalRng && typeof this.internalRng.getState === "function") return this.internalRng.getState();
2270
- return void 0;
2271
2241
  }
2272
2242
  };
2273
2243
  Random.MIN_INT = -2147483648;
@@ -2361,8 +2331,7 @@ function preFormatTooManySkipped(out, stringifyOne) {
2361
2331
  };
2362
2332
  }
2363
2333
  function preFormatFailure(out, stringifyOne) {
2364
- const noErrorInMessage = out.runConfiguration.errorWithCause;
2365
- const messageErrorPart = noErrorInMessage ? "" : `\nGot ${safeReplace(out.error, /^Error: /, "error: ")}`;
2334
+ const messageErrorPart = out.runConfiguration.errorWithCause ? "" : `\nGot ${safeReplace(out.error, /^Error: /, "error: ")}`;
2366
2335
  const message = `Property failed after ${out.numRuns} tests\n{ seed: ${out.seed}, path: "${out.counterexamplePath}", endOnFailure: true }\nCounterexample: ${stringifyOne(out.counterexample)}\nShrunk ${out.numShrinks} time(s)${messageErrorPart}`;
2367
2336
  let details = null;
2368
2337
  const hints = [];
@@ -2418,8 +2387,7 @@ async function asyncDefaultReportMessage(out) {
2418
2387
  }
2419
2388
  function buildError(errorMessage, out) {
2420
2389
  if (!out.runConfiguration.errorWithCause) throw new SError(errorMessage);
2421
- const ErrorWithCause = SError;
2422
- const error = new ErrorWithCause(errorMessage, { cause: out.errorInstance });
2390
+ const error = new SError(errorMessage, { cause: out.errorInstance });
2423
2391
  if (!("cause" in error)) safeObjectAssign$3(error, { cause: out.errorInstance });
2424
2392
  return error;
2425
2393
  }
@@ -2652,8 +2620,7 @@ function getDepthContextFor(contextMeta) {
2652
2620
  return context;
2653
2621
  }
2654
2622
  function createDepthIdentifier() {
2655
- const identifier = { depth: 0 };
2656
- return identifier;
2623
+ return { depth: 0 };
2657
2624
  }
2658
2625
 
2659
2626
  //#endregion
@@ -2687,10 +2654,7 @@ var SlicedBasedGenerator = class {
2687
2654
  attemptExact(targetLength) {
2688
2655
  if (targetLength !== 0 && this.mrng.nextInt(1, this.biasFactor) === 1) {
2689
2656
  const eligibleIndices = [];
2690
- for (let index = 0; index !== this.slices.length; ++index) {
2691
- const slice = this.slices[index];
2692
- if (slice.length === targetLength) safePush(eligibleIndices, index);
2693
- }
2657
+ for (let index = 0; index !== this.slices.length; ++index) if (this.slices[index].length === targetLength) safePush(eligibleIndices, index);
2694
2658
  if (eligibleIndices.length === 0) return;
2695
2659
  this.activeSliceIndex = eligibleIndices[this.mrng.nextInt(0, eligibleIndices.length - 1)];
2696
2660
  this.nextIndexInSlice = 0;
@@ -2839,12 +2803,11 @@ var ArrayArbitrary = class ArrayArbitrary extends Arbitrary {
2839
2803
  biasFactorItems: biasFactor
2840
2804
  };
2841
2805
  const maxBiasedLength = biasedMaxLength(this.minLength, this.maxGeneratedLength);
2842
- const targetSizeValue = integer({
2843
- min: this.minLength,
2844
- max: maxBiasedLength
2845
- }).generate(mrng, void 0);
2846
2806
  return {
2847
- size: targetSizeValue.value,
2807
+ size: integer({
2808
+ min: this.minLength,
2809
+ max: maxBiasedLength
2810
+ }).generate(mrng, void 0).value,
2848
2811
  biasFactorItems: biasFactor
2849
2812
  };
2850
2813
  }
@@ -2854,8 +2817,7 @@ var ArrayArbitrary = class ArrayArbitrary extends Arbitrary {
2854
2817
  if (!(index in value)) return false;
2855
2818
  if (!this.arb.canShrinkWithoutContext(value[index])) return false;
2856
2819
  }
2857
- const filtered = this.preFilter(safeMap(value, (item) => new Value(item, void 0)));
2858
- return filtered.length === value.length;
2820
+ return this.preFilter(safeMap(value, (item) => new Value(item, void 0))).length === value.length;
2859
2821
  }
2860
2822
  shrinkItemByItem(value, safeContext, endIndex) {
2861
2823
  const shrinks = [];
@@ -2964,8 +2926,7 @@ function depthBiasFromSizeForArbitrary(depthSizeOrSize, specifiedMaxDepth) {
2964
2926
  const { baseSize: defaultSize = DefaultSize, defaultSizeToMaxWhenMaxSpecified } = readConfigureGlobal() || {};
2965
2927
  const definedSize = depthSizeOrSize !== void 0 ? depthSizeOrSize : specifiedMaxDepth && defaultSizeToMaxWhenMaxSpecified ? "max" : defaultSize;
2966
2928
  if (definedSize === "max") return 0;
2967
- const finalSize = relativeSizeToSize(definedSize, defaultSize);
2968
- switch (finalSize) {
2929
+ switch (relativeSizeToSize(definedSize, defaultSize)) {
2969
2930
  case "xsmall": return 1;
2970
2931
  case "small": return .5;
2971
2932
  case "medium": return .25;
@@ -2982,8 +2943,7 @@ function array(arb, constraints = {}) {
2982
2943
  const maxLengthOrUnset = constraints.maxLength;
2983
2944
  const depthIdentifier = constraints.depthIdentifier;
2984
2945
  const maxLength = maxLengthOrUnset !== void 0 ? maxLengthOrUnset : MaxLengthUpperBound;
2985
- const specifiedMaxLength = maxLengthOrUnset !== void 0;
2986
- const maxGeneratedLength = maxGeneratedLengthFromSizeForArbitrary(size, minLength, maxLength, specifiedMaxLength);
2946
+ const maxGeneratedLength = maxGeneratedLengthFromSizeForArbitrary(size, minLength, maxLength, maxLengthOrUnset !== void 0);
2987
2947
  const customSlices = constraints.experimentalCustomSlices || [];
2988
2948
  return new ArrayArbitrary(arb, minLength, maxGeneratedLength, maxLength, depthIdentifier, void 0, customSlices);
2989
2949
  }
@@ -3082,10 +3042,7 @@ function buildCompleteBigIntConstraints(constraints) {
3082
3042
  }
3083
3043
  function extractBigIntConstraints(args) {
3084
3044
  if (args[0] === void 0) return {};
3085
- if (args[1] === void 0) {
3086
- const constraints = args[0];
3087
- return constraints;
3088
- }
3045
+ if (args[1] === void 0) return args[0];
3089
3046
  return {
3090
3047
  min: args[0],
3091
3048
  max: args[1]
@@ -3484,8 +3441,7 @@ var FrequencyArbitrary = class FrequencyArbitrary extends Arbitrary {
3484
3441
  if (warbs.length === 0) throw new Error(`${label} expects at least one weighted arbitrary`);
3485
3442
  let totalWeight = 0;
3486
3443
  for (let idx = 0; idx !== warbs.length; ++idx) {
3487
- const currentArbitrary = warbs[idx].arbitrary;
3488
- if (currentArbitrary === void 0) throw new Error(`${label} expects arbitraries to be specified`);
3444
+ if (warbs[idx].arbitrary === void 0) throw new Error(`${label} expects arbitraries to be specified`);
3489
3445
  const currentWeight = warbs[idx].weight;
3490
3446
  totalWeight += currentWeight;
3491
3447
  if (!safeNumberIsInteger$4(currentWeight)) throw new Error(`${label} expects weights to be integer values`);
@@ -3526,8 +3482,7 @@ var FrequencyArbitrary = class FrequencyArbitrary extends Arbitrary {
3526
3482
  const safeContext = context;
3527
3483
  const selectedIndex = safeContext.selectedIndex;
3528
3484
  const originalBias = safeContext.originalBias;
3529
- const originalArbitrary = this.warbs[selectedIndex].arbitrary;
3530
- const originalShrinks = originalArbitrary.shrink(value, safeContext.originalContext).map((v) => this.mapIntoValue(selectedIndex, v, null, originalBias));
3485
+ const originalShrinks = this.warbs[selectedIndex].arbitrary.shrink(value, safeContext.originalContext).map((v) => this.mapIntoValue(selectedIndex, v, null, originalBias));
3531
3486
  if (safeContext.clonedMrngForFallbackFirst !== null) {
3532
3487
  if (safeContext.cachedGeneratedForFirst === void 0) safeContext.cachedGeneratedForFirst = this.safeGenerateForIndex(safeContext.clonedMrngForFallbackFirst, 0, originalBias);
3533
3488
  const valueFromFirst = safeContext.cachedGeneratedForFirst;
@@ -3710,10 +3665,10 @@ function mapToConstant(...entries) {
3710
3665
  //#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/TokenizeString.js
3711
3666
  function tokenizeString(patternsArb, value, minLength, maxLength) {
3712
3667
  if (value.length === 0) {
3713
- if (minLength > 0) return void 0;
3668
+ if (minLength > 0) return;
3714
3669
  return [];
3715
3670
  }
3716
- if (maxLength <= 0) return void 0;
3671
+ if (maxLength <= 0) return;
3717
3672
  const stack = [{
3718
3673
  endIndexChunks: 0,
3719
3674
  nextStartIndex: 1,
@@ -3743,7 +3698,6 @@ function tokenizeString(patternsArb, value, minLength, maxLength) {
3743
3698
  }
3744
3699
  }
3745
3700
  }
3746
- return void 0;
3747
3701
  }
3748
3702
 
3749
3703
  //#endregion
@@ -3800,9 +3754,9 @@ function computeCandidateStringLegacy(dangerous, charArbitrary, stringSplitter)
3800
3754
  try {
3801
3755
  candidate = stringSplitter(dangerous);
3802
3756
  } catch (err) {
3803
- return void 0;
3757
+ return;
3804
3758
  }
3805
- for (const entry of candidate) if (!charArbitrary.canShrinkWithoutContext(entry)) return void 0;
3759
+ for (const entry of candidate) if (!charArbitrary.canShrinkWithoutContext(entry)) return;
3806
3760
  return candidate;
3807
3761
  }
3808
3762
  function createSlicesForStringLegacy(charArbitrary, stringSplitter) {
@@ -4855,8 +4809,7 @@ function intersectGraphemeRanges(rangesA, rangesB) {
4855
4809
  const max = safeMathMin$1(rangeAMax, rangeBMax);
4856
4810
  if (mergedRanges.length >= 1) {
4857
4811
  const lastMergedRange = mergedRanges[mergedRanges.length - 1];
4858
- const lastMergedRangeMax = lastMergedRange.length === 1 ? lastMergedRange[0] : lastMergedRange[1];
4859
- if (lastMergedRangeMax + 1 === min) {
4812
+ if ((lastMergedRange.length === 1 ? lastMergedRange[0] : lastMergedRange[1]) + 1 === min) {
4860
4813
  min = lastMergedRange[0];
4861
4814
  safePop(mergedRanges);
4862
4815
  }
@@ -4974,10 +4927,9 @@ function substract64DataInternal(a, b) {
4974
4927
  function substract64Internal(a, b) {
4975
4928
  if (a.sign === 1 && b.sign === -1) {
4976
4929
  const low = a.data[1] + b.data[1];
4977
- const high = a.data[0] + b.data[0] + (low > 4294967295 ? 1 : 0);
4978
4930
  return {
4979
4931
  sign: 1,
4980
- data: [high >>> 0, low >>> 0]
4932
+ data: [a.data[0] + b.data[0] + (low > 4294967295 ? 1 : 0) >>> 0, low >>> 0]
4981
4933
  };
4982
4934
  }
4983
4935
  return {
@@ -5127,8 +5079,7 @@ var ArrayInt64Arbitrary = class ArrayInt64Arbitrary extends Arbitrary {
5127
5079
  }
5128
5080
  };
5129
5081
  function arrayInt64(min, max) {
5130
- const arb = new ArrayInt64Arbitrary(min, max);
5131
- return arb;
5082
+ return new ArrayInt64Arbitrary(min, max);
5132
5083
  }
5133
5084
 
5134
5085
  //#endregion
@@ -5216,8 +5167,7 @@ function indexToDouble(index) {
5216
5167
  if (index.data[0] < 2097152) return (index.data[0] * 4294967296 + index.data[1]) * 2 ** -1074;
5217
5168
  const postIndexHigh = index.data[0] - 2097152;
5218
5169
  const exponent = -1021 + (postIndexHigh >> 20);
5219
- const significand = 1 + ((postIndexHigh & 1048575) * 2 ** 32 + index.data[1]) * safeEpsilon;
5220
- return significand * 2 ** exponent;
5170
+ return (1 + ((postIndexHigh & 1048575) * 2 ** 32 + index.data[1]) * safeEpsilon) * 2 ** exponent;
5221
5171
  }
5222
5172
 
5223
5173
  //#endregion
@@ -5230,7 +5180,7 @@ function refineConstraintsForFloatingOnly(constraints, maxValue, maxNonIntegerVa
5230
5180
  const { noDefaultInfinity = false, minExcluded = false, maxExcluded = false, min = noDefaultInfinity ? -maxValue : safeNegativeInfinity$5, max = noDefaultInfinity ? maxValue : safePositiveInfinity$5 } = constraints;
5231
5181
  const effectiveMin = minExcluded ? min < -maxNonIntegerValue$2 ? -onlyIntegersAfterThisValue$2 : Math.max(min, -maxNonIntegerValue$2) : min === safeNegativeInfinity$5 ? Math.max(min, -onlyIntegersAfterThisValue$2) : Math.max(min, -maxNonIntegerValue$2);
5232
5182
  const effectiveMax = maxExcluded ? max > maxNonIntegerValue$2 ? onlyIntegersAfterThisValue$2 : Math.min(max, maxNonIntegerValue$2) : max === safePositiveInfinity$5 ? Math.min(max, onlyIntegersAfterThisValue$2) : Math.min(max, maxNonIntegerValue$2);
5233
- const fullConstraints = {
5183
+ return {
5234
5184
  noDefaultInfinity: false,
5235
5185
  minExcluded: minExcluded || (min !== safeNegativeInfinity$5 || minExcluded) && safeNumberIsInteger$2(effectiveMin),
5236
5186
  maxExcluded: maxExcluded || (max !== safePositiveInfinity$5 || maxExcluded) && safeNumberIsInteger$2(effectiveMax),
@@ -5238,7 +5188,6 @@ function refineConstraintsForFloatingOnly(constraints, maxValue, maxNonIntegerVa
5238
5188
  max: safeObjectIs(effectiveMax, 0) ? -0 : effectiveMax,
5239
5189
  noNaN: constraints.noNaN || false
5240
5190
  };
5241
- return fullConstraints;
5242
5191
  }
5243
5192
 
5244
5193
  //#endregion
@@ -5351,8 +5300,7 @@ function indexToFloat(index) {
5351
5300
  if (index < 16777216) return index * 2 ** -149;
5352
5301
  const postIndex = index - 16777216;
5353
5302
  const exponent = -125 + (postIndex >> 23);
5354
- const significand = 1 + (postIndex & 8388607) / 8388608;
5355
- return significand * 2 ** exponent;
5303
+ return (1 + (postIndex & 8388607) / 8388608) * 2 ** exponent;
5356
5304
  }
5357
5305
 
5358
5306
  //#endregion