@fedify/fedify 1.7.12 → 1.7.14

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 (182) hide show
  1. package/dist/{actor-CPpvuBKU.d.ts → actor-Dx5YX74F.d.ts} +3 -3
  2. package/dist/{actor-GZRoTRqg.js → actor-OYVgkiZG.js} +329 -465
  3. package/dist/{actor-TYqJGdVq.js → actor-y7shp0CR.js} +6 -6
  4. package/dist/{assert-LOEeCUK5.js → assert-C-mZuSQl.js} +2 -2
  5. package/dist/{assert_equals-B44MxcIj.js → assert_equals-Dy0MG_Zw.js} +16 -16
  6. package/dist/{assert_instance_of-XtuFevV_.js → assert_instance_of-lS0Jr2iu.js} +2 -2
  7. package/dist/{assert_is_error-BTlryvT0.js → assert_is_error-CIYFACrT.js} +2 -2
  8. package/dist/{assert_not_equals-C685gKx6.js → assert_not_equals-C1azCAB0.js} +3 -6
  9. package/dist/{assert_rejects-DWQ4jaf9.js → assert_rejects-Bkh5lA1a.js} +3 -3
  10. package/dist/{assert_throws-YetpVSc-.js → assert_throws-CmpfkWEM.js} +3 -3
  11. package/dist/{authdocloader-hiFSyM7V.js → authdocloader-C0JcfxUs.js} +7 -9
  12. package/dist/{authdocloader-BopfyipD.js → authdocloader-C2krvRo1.js} +6 -8
  13. package/dist/{builder-mi6RdzNE.js → builder-DaECqbbT.js} +7 -7
  14. package/dist/{chunk-Cx8LTkjm.js → chunk-DvTpRkcT.js} +22 -15
  15. package/dist/{client-DuUKk4pk.js → client-dfu57WLy.js} +3 -3
  16. package/dist/{client-DvtwXO7t.d.ts → client-wKLuY12i.d.ts} +2 -2
  17. package/dist/{collection-Dfb0TPno.js → collection-XNLQhehO.js} +2 -3
  18. package/dist/{mod-DFncUgcE.d.ts → compat/mod-Bwqav33K.d.ts} +3 -3
  19. package/dist/compat/mod.js +1 -2
  20. package/dist/compat/transformers.test.js +34 -38
  21. package/dist/{context-OBWjptjU.d.ts → context-CW_8R4BH.d.ts} +11 -11
  22. package/dist/{context-RMU32mk4.js → context-nxDPfAiA.js} +5 -5
  23. package/dist/{docloader-09nVWLAZ.js → docloader-BDSHZfTJ.js} +1 -1
  24. package/dist/{docloader-DJxET2fN.js → docloader-BU25UQLB.js} +31 -151
  25. package/dist/{docloader-Q42SMRIB.d.ts → docloader-D_MGP37Q.d.ts} +2 -2
  26. package/dist/{docloader-bgBm1Hd1.js → docloader-sGz4vcrK.js} +32 -152
  27. package/dist/{esm-DO9PrujO.js → esm-BRXvTSrx.js} +36 -22
  28. package/dist/federation/builder.test.js +20 -26
  29. package/dist/federation/collection.test.js +11 -16
  30. package/dist/federation/handler.test.js +41 -48
  31. package/dist/federation/inbox.test.js +11 -11
  32. package/dist/federation/keycache.test.js +12 -11
  33. package/dist/federation/kv.test.js +8 -10
  34. package/dist/federation/middleware.test.js +105 -134
  35. package/dist/federation/mod-DvlLc8Ru.d.ts +6 -0
  36. package/dist/federation/mod.js +206 -12
  37. package/dist/federation/mq.test.js +12 -17
  38. package/dist/federation/retry.test.js +5 -4
  39. package/dist/federation/router.test.js +9 -10
  40. package/dist/federation/send.test.js +23 -24
  41. package/dist/{http-D2DkwsjA.js → http-BhES0Sg9.js} +23 -30
  42. package/dist/{http-DMTrO3Ye.d.ts → http-DFZRNfDP.d.ts} +3 -3
  43. package/dist/{http-vqMAvOVs.js → http-DRePVWfE.js} +23 -30
  44. package/dist/{inbox-DAAZZl2k.js → inbox-Z_QlSGYN.js} +5 -5
  45. package/dist/key-CJuc1GE1.js +10 -0
  46. package/dist/{key-DmqJj57e.js → key-D2HZrCxh.js} +4 -4
  47. package/dist/{key-KVhaUM92.js → key-bMrDyA2T.js} +5 -5
  48. package/dist/key-eP5Yk7hl.js +16 -0
  49. package/dist/{keycache-C1pEuRyQ.js → keycache-B5Rr8Lbc.js} +2 -2
  50. package/dist/{keys-C4XQHW5_.js → keys-DK4k1R8e.js} +2 -2
  51. package/dist/{kv-DRaeSXco.d.ts → kv-CKqSUxHd.d.ts} +1 -1
  52. package/dist/{kv-BMY6Qf_A.js → kv-QeuZ51go.js} +1 -1
  53. package/dist/{langstr-DbWheeIS.js → langstr-pFHBDU4y.js} +1 -1
  54. package/dist/{ld-DzlJ_IpT.js → ld--auFISy7.js} +9 -12
  55. package/dist/{lookup-CSngxuWm.js → lookup-4uc2jh52.js} +3 -3
  56. package/dist/{lookup-DL62q3Xh.js → lookup-Bq8vhIG4.js} +4 -4
  57. package/dist/{lookup-Bf-K85bV.d.ts → lookup-CqI9jhXo.d.ts} +2 -2
  58. package/dist/{lookup-D0je8AqR.js → lookup-cHV4n1IB.js} +6 -6
  59. package/dist/middleware-72Tuh6Iw.js +17 -0
  60. package/dist/{middleware-3wVT6S9E.js → middleware-B7p-onxQ.js} +35 -39
  61. package/dist/middleware-DB3BUysJ.js +32 -0
  62. package/dist/{middleware-DlDXugwZ.js → middleware-QJjRfjjc.js} +38 -43
  63. package/dist/{mod-CCL2cvnI.d.ts → mod-BEZy4WHZ.d.ts} +4 -4
  64. package/dist/mod-DMn4Bxyg.d.ts +20 -0
  65. package/dist/{mod-CDzlVCUF.d.ts → mod-DjGYGrBd.d.ts} +3 -3
  66. package/dist/mod.js +17 -17
  67. package/dist/{mq-DYKDDJmp.d.ts → mq-Cgfbl44M.d.ts} +1 -1
  68. package/dist/{multibase-CnLHszip.js → multibase-DBcKTV2a.js} +1 -1
  69. package/dist/nodeinfo/client.test.js +19 -28
  70. package/dist/nodeinfo/handler.test.js +37 -44
  71. package/dist/nodeinfo/mod--upgPcaX.d.ts +4 -0
  72. package/dist/nodeinfo/mod.js +2 -3
  73. package/dist/nodeinfo/semver.test.js +13 -21
  74. package/dist/nodeinfo/types.test.js +9 -11
  75. package/dist/{owner-D0cOz8R5.d.ts → owner-CewLNqWO.d.ts} +4 -4
  76. package/dist/{owner-81ey_76X.js → owner-DkTRLQAV.js} +4 -4
  77. package/dist/{proof-DlI7QNdn.js → proof-D4HXHDPz.js} +14 -19
  78. package/dist/{proof-BlULDH4H.js → proof-DT_xxRPF.js} +11 -13
  79. package/dist/{retry-BiIhZWgD.js → retry-BQet39_l.js} +1 -1
  80. package/dist/{router-D_aVZZUc.js → router-BuDkN4RQ.js} +1 -1
  81. package/dist/runtime/authdocloader.test.js +22 -26
  82. package/dist/runtime/docloader.test.js +56 -56
  83. package/dist/runtime/key.test.js +31 -53
  84. package/dist/runtime/langstr.test.js +8 -10
  85. package/dist/{mod-qFMzZ3iF.d.ts → runtime/mod-BaH1vtHp.d.ts} +4 -3
  86. package/dist/runtime/mod.js +6 -7
  87. package/dist/runtime/multibase/multibase.test.js +12 -18
  88. package/dist/runtime/url.test.js +7 -6
  89. package/dist/{semver-BNrOOAs9.js → semver-D9d-VO-_.js} +7 -17
  90. package/dist/{send-DdxfTHo6.js → send-axIyQX2p.js} +4 -4
  91. package/dist/sig/http.test.js +104 -168
  92. package/dist/sig/key.test.js +17 -20
  93. package/dist/sig/ld.test.js +28 -35
  94. package/dist/sig/mod-BmJQTnPT.d.ts +6 -0
  95. package/dist/sig/mod.js +6 -7
  96. package/dist/sig/owner.test.js +24 -30
  97. package/dist/sig/proof.test.js +24 -29
  98. package/dist/{std__assert-o_r9vqm1.js → std__assert-BdP_WkD-.js} +7 -13
  99. package/dist/testing/docloader.test.js +9 -12
  100. package/dist/testing/mod.js +2 -1
  101. package/dist/{testing-DLyvtiiW.js → testing-qaAD4B0t.js} +2 -2
  102. package/dist/{transformers-ghwJuzGY.js → transformers-CFSWUhNi.js} +1 -1
  103. package/dist/{type-CFuiGLz9.js → type-DFsmi-p1.js} +1 -1
  104. package/dist/{types-CmVV9LT1.js → types-Bk4b1bGc.js} +8 -18
  105. package/dist/{types-CJHS5pXl.js → types-CB_2uuCA.js} +2 -2
  106. package/dist/{url-C2xuoQD1.js → url-BdNvnK9P.js} +1 -1
  107. package/dist/vocab/actor.test.js +76 -128
  108. package/dist/vocab/lookup.test.js +19 -23
  109. package/dist/vocab/mod-BkXGAYkx.d.ts +6 -0
  110. package/dist/vocab/mod.js +4 -4
  111. package/dist/vocab/type.test.js +10 -10
  112. package/dist/vocab/vocab.test.js +109 -105
  113. package/dist/{vocab-DFlq4Wa6.js → vocab-DCHRuBGF.js} +328 -464
  114. package/dist/{vocab-CzEfWQk2.d.ts → vocab-DoBcp8ow.d.ts} +2 -2
  115. package/dist/{vocab-BebR0kAy.js → vocab-sMuiKIWm.js} +5 -5
  116. package/dist/webfinger/handler.test.js +40 -48
  117. package/dist/webfinger/lookup.test.js +12 -15
  118. package/dist/webfinger/mod-B1UhCvlL.d.ts +4 -0
  119. package/dist/webfinger/mod.js +2 -3
  120. package/dist/x/{cfworkers.d.ts → cfworkers-BIcR64Sf.d.ts} +2 -2
  121. package/dist/x/cfworkers.test.js +7 -9
  122. package/dist/x/{hono.d.ts → hono-DmQmp8wi.d.ts} +2 -11
  123. package/dist/x/{sveltekit.d.ts → sveltekit-Cvh0XnN4.d.ts} +2 -11
  124. package/package.json +1 -1
  125. package/dist/compat/mod.d.ts +0 -15
  126. package/dist/compat-Bb5myD13.js +0 -4
  127. package/dist/federation/mod.d.ts +0 -15
  128. package/dist/federation-B0aljx0V.js +0 -203
  129. package/dist/key-5ssHQ67E.js +0 -16
  130. package/dist/key-DSJGnD10.js +0 -10
  131. package/dist/middleware-CxFoFBD8.js +0 -33
  132. package/dist/middleware-w7_U3fFi.js +0 -17
  133. package/dist/mod-1pDWKvUL.d.ts +0 -2
  134. package/dist/mod-GIh5OYxW.d.ts +0 -2
  135. package/dist/mod-g0xFzAP9.d.ts +0 -2
  136. package/dist/mod.d.ts +0 -20
  137. package/dist/nodeinfo/mod.d.ts +0 -7
  138. package/dist/nodeinfo-CyEbLjHs.js +0 -4
  139. package/dist/runtime/mod.d.ts +0 -8
  140. package/dist/runtime-BSkOVUWM.js +0 -4
  141. package/dist/sig/mod.d.ts +0 -10
  142. package/dist/sig-BXJO--F9.js +0 -4
  143. package/dist/vocab/mod.d.ts +0 -8
  144. package/dist/webfinger/mod.d.ts +0 -7
  145. package/dist/webfinger-C3GIyXIg.js +0 -4
  146. /package/dist/compat/{transformers.test.d.ts → transformers.test-DnJbd34u.d.ts} +0 -0
  147. /package/dist/{denokv-CvROlGYX.js → denokv-NcJeZ6rP.js} +0 -0
  148. /package/dist/federation/{builder.test.d.ts → builder.test-Bpt6NOZ6.d.ts} +0 -0
  149. /package/dist/federation/{collection.test.d.ts → collection.test-DKJ6JOZz.d.ts} +0 -0
  150. /package/dist/federation/{handler.test.d.ts → handler.test-BMT7uLC0.d.ts} +0 -0
  151. /package/dist/federation/{inbox.test.d.ts → inbox.test-Do6i02Qp.d.ts} +0 -0
  152. /package/dist/federation/{keycache.test.d.ts → keycache.test-BT83IPZY.d.ts} +0 -0
  153. /package/dist/federation/{kv.test.d.ts → kv.test-kFzzF2VN.d.ts} +0 -0
  154. /package/dist/federation/{middleware.test.d.ts → middleware.test-B1R4_e3-.d.ts} +0 -0
  155. /package/dist/federation/{mq.test.d.ts → mq.test-l79EQQOe.d.ts} +0 -0
  156. /package/dist/federation/{retry.test.d.ts → retry.test-BqS50VCX.d.ts} +0 -0
  157. /package/dist/federation/{router.test.d.ts → router.test-CYQl4po-.d.ts} +0 -0
  158. /package/dist/federation/{send.test.d.ts → send.test-COUnNUzv.d.ts} +0 -0
  159. /package/dist/nodeinfo/{client.test.d.ts → client.test-CZLe79hL.d.ts} +0 -0
  160. /package/dist/nodeinfo/{handler.test.d.ts → handler.test-B-EDZ_hK.d.ts} +0 -0
  161. /package/dist/nodeinfo/{semver.test.d.ts → semver.test-BEuuQSEM.d.ts} +0 -0
  162. /package/dist/nodeinfo/{types.test.d.ts → types.test-B5AT89WV.d.ts} +0 -0
  163. /package/dist/runtime/{authdocloader.test.d.ts → authdocloader.test-hCRKzn9v.d.ts} +0 -0
  164. /package/dist/runtime/{docloader.test.d.ts → docloader.test-CVd7i_5h.d.ts} +0 -0
  165. /package/dist/runtime/{key.test.d.ts → key.test-DBsILYSD.d.ts} +0 -0
  166. /package/dist/runtime/{langstr.test.d.ts → langstr.test-CiKxuuRY.d.ts} +0 -0
  167. /package/dist/runtime/multibase/{multibase.test.d.ts → multibase.test-Brh6gPBP.d.ts} +0 -0
  168. /package/dist/runtime/{url.test.d.ts → url.test-DlRqkU2j.d.ts} +0 -0
  169. /package/dist/sig/{http.test.d.ts → http.test-BpXNAWNI.d.ts} +0 -0
  170. /package/dist/sig/{key.test.d.ts → key.test-B2iLIugy.d.ts} +0 -0
  171. /package/dist/sig/{ld.test.d.ts → ld.test-D-cI70Gw.d.ts} +0 -0
  172. /package/dist/sig/{owner.test.d.ts → owner.test-B_YRjMPj.d.ts} +0 -0
  173. /package/dist/sig/{proof.test.d.ts → proof.test-BagEM_-4.d.ts} +0 -0
  174. /package/dist/testing/{docloader.test.d.ts → docloader.test-lrzf6sDZ.d.ts} +0 -0
  175. /package/dist/testing/{mod.d.ts → mod-3uM8ZvS7.d.ts} +0 -0
  176. /package/dist/vocab/{actor.test.d.ts → actor.test-ClC-iVWk.d.ts} +0 -0
  177. /package/dist/vocab/{lookup.test.d.ts → lookup.test-Cq1I-27w.d.ts} +0 -0
  178. /package/dist/vocab/{type.test.d.ts → type.test-bfFiYGcs.d.ts} +0 -0
  179. /package/dist/vocab/{vocab.test.d.ts → vocab.test-h-ZTisfu.d.ts} +0 -0
  180. /package/dist/webfinger/{handler.test.d.ts → handler.test-DiUeEDDD.d.ts} +0 -0
  181. /package/dist/webfinger/{lookup.test.d.ts → lookup.test-D9onm3U3.d.ts} +0 -0
  182. /package/dist/x/{cfworkers.test.d.ts → cfworkers.test-KXHlJ29z.d.ts} +0 -0
@@ -3,25 +3,22 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
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
- import "../langstr-DbWheeIS.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";
6
+ import { n as __export } from "../chunk-DvTpRkcT.js";
7
+ import { t as assertEquals } from "../assert_equals-Dy0MG_Zw.js";
8
+ import { t as assert$1 } from "../assert-C-mZuSQl.js";
9
+ import "../docloader-sGz4vcrK.js";
10
+ import "../url-BdNvnK9P.js";
11
+ import "../multibase-DBcKTV2a.js";
12
+ import { S as Person, T as Service, r as Application, u as Group, x as Organization } from "../vocab-DCHRuBGF.js";
13
+ import "../langstr-pFHBDU4y.js";
14
+ import "../lookup-Bq8vhIG4.js";
15
+ import { a as normalizeActorHandle, i as isActor, n as getActorHandle, r as getActorTypeName, t as getActorClassByTypeName } from "../actor-y7shp0CR.js";
16
+ import { t as test } from "../testing-qaAD4B0t.js";
17
+ import { n as assertStrictEquals } from "../std__assert-BdP_WkD-.js";
18
+ import { n as assertFalse, t as assertRejects } from "../assert_rejects-Bkh5lA1a.js";
19
+ import "../assert_is_error-CIYFACrT.js";
20
+ import { t as assertThrows } from "../assert_throws-CmpfkWEM.js";
21
+ import { t as esm_default } from "../esm-BRXvTSrx.js";
25
22
 
26
23
  //#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
27
24
  var PreconditionFailure = class PreconditionFailure extends Error {
@@ -291,11 +288,10 @@ var MapArbitrary = class extends Arbitrary {
291
288
  }
292
289
  valueMapper(v) {
293
290
  const [mappedValue, sourceValue] = this.mapperWithCloneIfNeeded(v);
294
- const context = {
291
+ return new Value(mappedValue, {
295
292
  originalValue: sourceValue,
296
293
  originalContext: v.context
297
- };
298
- return new Value(mappedValue, context);
294
+ });
299
295
  }
300
296
  isSafeContext(context) {
301
297
  return context != null && typeof context === "object" && "originalValue" in context && "originalContext" in context;
@@ -393,7 +389,7 @@ function safeApply(f, instance, args) {
393
389
  //#endregion
394
390
  //#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/globals.js
395
391
  const SArray = typeof Array !== "undefined" ? Array : void 0;
396
- const SBigInt = typeof BigInt !== "undefined" ? BigInt : void 0;
392
+ const SBigInt$1 = typeof BigInt !== "undefined" ? BigInt : void 0;
397
393
  const SBoolean = typeof Boolean !== "undefined" ? Boolean : void 0;
398
394
  const SDate = typeof Date !== "undefined" ? Date : void 0;
399
395
  const SError = typeof Error !== "undefined" ? Error : void 0;
@@ -810,8 +806,7 @@ var AlwaysShrinkableArbitrary = class extends Arbitrary {
810
806
  this.arb = arb;
811
807
  }
812
808
  generate(mrng, biasFactor) {
813
- const value = this.arb.generate(mrng, biasFactor);
814
- return noUndefinedAsContext(value);
809
+ return noUndefinedAsContext(this.arb.generate(mrng, biasFactor));
815
810
  }
816
811
  canShrinkWithoutContext(value) {
817
812
  return true;
@@ -839,8 +834,7 @@ var Property = class Property {
839
834
  return false;
840
835
  }
841
836
  generate(mrng, runId) {
842
- const value = this.arb.generate(mrng, runId != null ? runIdToFrequency(runId) : void 0);
843
- return noUndefinedAsContext(value);
837
+ return noUndefinedAsContext(this.arb.generate(mrng, runId != null ? runIdToFrequency(runId) : void 0));
844
838
  }
845
839
  shrink(value) {
846
840
  if (value.context === void 0 && !this.arb.canShrinkWithoutContext(value.value_)) return Stream.nil();
@@ -895,8 +889,7 @@ function property(...args) {
895
889
  const arbs = safeSlice(args, 0, args.length - 1);
896
890
  const p = args[args.length - 1];
897
891
  safeForEach(arbs, assertIsArbitrary);
898
- const mappedArbs = safeMap(arbs, (arb) => new AlwaysShrinkableArbitrary(arb));
899
- return new Property(tuple(...mappedArbs), (t) => p(...t));
892
+ return new Property(tuple(...safeMap(arbs, (arb) => new AlwaysShrinkableArbitrary(arb))), (t) => p(...t));
900
893
  }
901
894
 
902
895
  //#endregion
@@ -1234,9 +1227,7 @@ function addArrayIntToNew(arrayIntA, arrayIntB) {
1234
1227
  var dataA = arrayIntA.data;
1235
1228
  var dataB = arrayIntB.data;
1236
1229
  for (var indexA = dataA.length - 1, indexB = dataB.length - 1; indexA >= 0 || indexB >= 0; --indexA, --indexB) {
1237
- var vA = indexA >= 0 ? dataA[indexA] : 0;
1238
- var vB = indexB >= 0 ? dataB[indexB] : 0;
1239
- var current = vA + vB + reminder;
1230
+ var current = (indexA >= 0 ? dataA[indexA] : 0) + (indexB >= 0 ? dataB[indexB] : 0) + reminder;
1240
1231
  data.push(current >>> 0);
1241
1232
  reminder = ~~(current / 4294967296);
1242
1233
  }
@@ -1284,9 +1275,7 @@ function substractArrayIntToNew(arrayIntA, arrayIntB) {
1284
1275
  var data = [];
1285
1276
  var reminder = 0;
1286
1277
  for (var indexA = dataA.length - 1, indexB = dataB.length - 1; indexA >= 0 || indexB >= 0; --indexA, --indexB) {
1287
- var vA = indexA >= 0 ? dataA[indexA] : 0;
1288
- var vB = indexB >= 0 ? dataB[indexB] : 0;
1289
- var current = vA - vB - reminder;
1278
+ var current = (indexA >= 0 ? dataA[indexA] : 0) - (indexB >= 0 ? dataB[indexB] : 0) - reminder;
1290
1279
  data.push(current >>> 0);
1291
1280
  reminder = current < 0 ? 1 : 0;
1292
1281
  }
@@ -1370,10 +1359,7 @@ function unsafeUniformIntDistributionInternal(rangeSize, rng) {
1370
1359
  function unsafeUniformArrayIntDistributionInternal(out, rangeSize, rng) {
1371
1360
  var rangeLength = rangeSize.length;
1372
1361
  while (true) {
1373
- for (var index = 0; index !== rangeLength; ++index) {
1374
- var indexRangeSize = index === 0 ? rangeSize[0] + 1 : 4294967296;
1375
- out[index] = unsafeUniformIntDistributionInternal(indexRangeSize, rng);
1376
- }
1362
+ for (var index = 0; index !== rangeLength; ++index) out[index] = unsafeUniformIntDistributionInternal(index === 0 ? rangeSize[0] + 1 : 4294967296, rng);
1377
1363
  for (var index = 0; index !== rangeLength; ++index) {
1378
1364
  var current = out[index];
1379
1365
  var currentInRange = rangeSize[index];
@@ -1387,11 +1373,9 @@ function unsafeUniformArrayIntDistributionInternal(out, rangeSize, rng) {
1387
1373
  //#region node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformArrayIntDistribution.js
1388
1374
  function unsafeUniformArrayIntDistribution(from, to, rng) {
1389
1375
  var rangeSize = trimArrayIntInplace(addOneToPositiveArrayInt(substractArrayIntToNew(to, from)));
1390
- var emptyArrayIntData = rangeSize.data.slice(0);
1391
- var g = unsafeUniformArrayIntDistributionInternal(emptyArrayIntData, rangeSize.data, rng);
1392
1376
  return trimArrayIntInplace(addArrayIntToNew({
1393
1377
  sign: 1,
1394
- data: g
1378
+ data: unsafeUniformArrayIntDistributionInternal(rangeSize.data.slice(0), rangeSize.data, rng)
1395
1379
  }, from));
1396
1380
  }
1397
1381
 
@@ -1410,11 +1394,11 @@ function uniformArrayIntDistribution(from, to, rng) {
1410
1394
 
1411
1395
  //#endregion
1412
1396
  //#region node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformBigIntDistribution.js
1413
- var SBigInt$1 = typeof BigInt !== "undefined" ? BigInt : void 0;
1397
+ var SBigInt = typeof BigInt !== "undefined" ? BigInt : void 0;
1414
1398
  function unsafeUniformBigIntDistribution(from, to, rng) {
1415
- var diff = to - from + SBigInt$1(1);
1416
- var MinRng = SBigInt$1(-2147483648);
1417
- var NumValues = SBigInt$1(4294967296);
1399
+ var diff = to - from + SBigInt(1);
1400
+ var MinRng = SBigInt(-2147483648);
1401
+ var NumValues = SBigInt(4294967296);
1418
1402
  var FinalNumValues = NumValues;
1419
1403
  var NumIterations = 1;
1420
1404
  while (FinalNumValues < diff) {
@@ -1423,10 +1407,10 @@ function unsafeUniformBigIntDistribution(from, to, rng) {
1423
1407
  }
1424
1408
  var MaxAcceptedRandom = FinalNumValues - FinalNumValues % diff;
1425
1409
  while (true) {
1426
- var value = SBigInt$1(0);
1410
+ var value = SBigInt(0);
1427
1411
  for (var num = 0; num !== NumIterations; ++num) {
1428
1412
  var out = rng.unsafeNext();
1429
- value = NumValues * value + (SBigInt$1(out) - MinRng);
1413
+ value = NumValues * value + (SBigInt(out) - MinRng);
1430
1414
  }
1431
1415
  if (value < MaxAcceptedRandom) return value % diff + from;
1432
1416
  }
@@ -1596,8 +1580,7 @@ QualifiedParameters.readSeed = (p) => {
1596
1580
  if (p.seed == null) return safeDateNow$1() ^ safeMathRandom() * 4294967296;
1597
1581
  const seed32 = p.seed | 0;
1598
1582
  if (p.seed === seed32) return seed32;
1599
- const gap = p.seed - seed32;
1600
- return seed32 ^ gap * 4294967296;
1583
+ return seed32 ^ (p.seed - seed32) * 4294967296;
1601
1584
  };
1602
1585
  QualifiedParameters.readRandomType = (p) => {
1603
1586
  if (p.randomType == null) return pure_rand_default.xorshift128plus;
@@ -1646,8 +1629,7 @@ function interruptAfter(timeMs, setTimeoutSafe, clearTimeoutSafe) {
1646
1629
  clear: () => clearTimeoutSafe(timeoutHandle),
1647
1630
  promise: new Promise((resolve) => {
1648
1631
  timeoutHandle = setTimeoutSafe(() => {
1649
- const preconditionFailure = new PreconditionFailure(true);
1650
- resolve(preconditionFailure);
1632
+ resolve(new PreconditionFailure(true));
1651
1633
  }, timeMs);
1652
1634
  })
1653
1635
  };
@@ -1845,11 +1827,10 @@ function stringifyInternal(value, previousValues, getAsyncContent) {
1845
1827
  return "[object Object]";
1846
1828
  }
1847
1829
  const mapper = (k) => `${k === "__proto__" ? "[\"__proto__\"]" : typeof k === "symbol" ? `[${stringifyInternal(k, currentValues, getAsyncContent)}]` : safeJsonStringify(k)}:${stringifyInternal(value[k], currentValues, getAsyncContent)}`;
1848
- const stringifiedProperties = [...safeMap(safeObjectKeys(value), mapper), ...safeMap(safeFilter(safeObjectGetOwnPropertySymbols$1(value), (s) => {
1830
+ const rawRepr = "{" + safeJoin([...safeMap(safeObjectKeys(value), mapper), ...safeMap(safeFilter(safeObjectGetOwnPropertySymbols$1(value), (s) => {
1849
1831
  const descriptor = safeObjectGetOwnPropertyDescriptor$1(value, s);
1850
1832
  return descriptor && descriptor.enumerable;
1851
- }), mapper)];
1852
- const rawRepr = "{" + safeJoin(stringifiedProperties, ",") + "}";
1833
+ }), mapper)], ",") + "}";
1853
1834
  if (safeObjectGetPrototypeOf$1(value) === null) return rawRepr === "{}" ? "Object.create(null)" : `Object.assign(Object.create(null),${rawRepr})`;
1854
1835
  return rawRepr;
1855
1836
  }
@@ -1860,8 +1841,7 @@ function stringifyInternal(value, previousValues, getAsyncContent) {
1860
1841
  if (SSymbol.keyFor(s) !== void 0) return `Symbol.for(${safeJsonStringify(SSymbol.keyFor(s))})`;
1861
1842
  const desc = getSymbolDescription(s);
1862
1843
  if (desc === null) return "Symbol()";
1863
- const knownSymbol = desc.startsWith("Symbol.") && SSymbol[desc.substring(7)];
1864
- return s === knownSymbol ? desc : `Symbol(${safeJsonStringify(desc)})`;
1844
+ return s === (desc.startsWith("Symbol.") && SSymbol[desc.substring(7)]) ? desc : `Symbol(${safeJsonStringify(desc)})`;
1865
1845
  }
1866
1846
  case "[object Promise]": {
1867
1847
  const promiseContent = getAsyncContent(value);
@@ -1891,10 +1871,7 @@ function stringifyInternal(value, previousValues, getAsyncContent) {
1891
1871
  if (typeof safeBufferIsBuffer === "function" && safeBufferIsBuffer(value)) return `Buffer.from(${stringifyInternal(safeArrayFrom(value.values()), currentValues, getAsyncContent)})`;
1892
1872
  const valuePrototype = safeObjectGetPrototypeOf$1(value);
1893
1873
  const className = valuePrototype && valuePrototype.constructor && valuePrototype.constructor.name;
1894
- if (typeof className === "string") {
1895
- const valuesFromTypedArr = value.values();
1896
- return `${className}.from(${stringifyInternal(safeArrayFrom(valuesFromTypedArr), currentValues, getAsyncContent)})`;
1897
- }
1874
+ if (typeof className === "string") return `${className}.from(${stringifyInternal(safeArrayFrom(value.values()), currentValues, getAsyncContent)})`;
1898
1875
  break;
1899
1876
  }
1900
1877
  }
@@ -2445,12 +2422,11 @@ function check(rawProperty, params) {
2445
2422
  const maxInitialIterations = qParams.path.length === 0 || qParams.path.indexOf(":") === -1 ? qParams.numRuns : -1;
2446
2423
  const maxSkips = qParams.numRuns * qParams.maxSkipsPerRun;
2447
2424
  const shrink = (...args) => property$1.shrink(...args);
2448
- const initialValues = qParams.path.length === 0 ? toss(property$1, qParams.seed, qParams.randomType, qParams.examples) : pathWalk(qParams.path, stream(lazyToss(property$1, qParams.seed, qParams.randomType, qParams.examples)), shrink);
2449
- const sourceValues = new SourceValuesIterator(initialValues, maxInitialIterations, maxSkips);
2425
+ const sourceValues = new SourceValuesIterator(qParams.path.length === 0 ? toss(property$1, qParams.seed, qParams.randomType, qParams.examples) : pathWalk(qParams.path, stream(lazyToss(property$1, qParams.seed, qParams.randomType, qParams.examples)), shrink), maxInitialIterations, maxSkips);
2450
2426
  const finalShrink = !qParams.endOnFailure ? shrink : Stream.nil;
2451
2427
  return property$1.isAsync() ? asyncRunIt(property$1, finalShrink, sourceValues, qParams.verbose, qParams.markInterruptAsFailure).then((e) => e.toRunDetails(qParams.seed, qParams.path, maxSkips, qParams)) : runIt(property$1, finalShrink, sourceValues, qParams.verbose, qParams.markInterruptAsFailure).toRunDetails(qParams.seed, qParams.path, maxSkips, qParams);
2452
2428
  }
2453
- function assert$1(property$1, params) {
2429
+ function assert(property$1, params) {
2454
2430
  const out = check(property$1, params);
2455
2431
  if (property$1.isAsync()) return out.then(asyncReportRunDetails);
2456
2432
  else reportRunDetails(out);
@@ -2464,8 +2440,8 @@ function integerLogLike(v) {
2464
2440
  return safeMathFloor$4(safeMathLog$1(v) / safeMathLog$1(2));
2465
2441
  }
2466
2442
  function bigIntLogLike(v) {
2467
- if (v === SBigInt(0)) return SBigInt(0);
2468
- return SBigInt(SString(v).length);
2443
+ if (v === SBigInt$1(0)) return SBigInt$1(0);
2444
+ return SBigInt$1(SString(v).length);
2469
2445
  }
2470
2446
  function biasNumericRange(min, max, logLike) {
2471
2447
  if (min === max) return [{
@@ -2554,10 +2530,7 @@ var IntegerArbitrary = class IntegerArbitrary extends Arbitrary {
2554
2530
  return typeof value === "number" && safeNumberIsInteger$6(value) && !safeObjectIs$4(value, -0) && this.min <= value && value <= this.max;
2555
2531
  }
2556
2532
  shrink(current, context) {
2557
- if (!IntegerArbitrary.isValidContext(current, context)) {
2558
- const target = this.defaultTarget();
2559
- return shrinkInteger(current, target, true);
2560
- }
2533
+ if (!IntegerArbitrary.isValidContext(current, context)) return shrinkInteger(current, this.defaultTarget(), true);
2561
2534
  if (this.isLastChanceTry(current, context)) return Stream.of(new Value(context, void 0));
2562
2535
  return shrinkInteger(current, context, false);
2563
2536
  }
@@ -2592,11 +2565,9 @@ var IntegerArbitrary = class IntegerArbitrary extends Arbitrary {
2592
2565
  //#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/integer.js
2593
2566
  const safeNumberIsInteger$5 = Number.isInteger;
2594
2567
  function buildCompleteIntegerConstraints(constraints) {
2595
- const min = constraints.min !== void 0 ? constraints.min : -2147483648;
2596
- const max = constraints.max !== void 0 ? constraints.max : 2147483647;
2597
2568
  return {
2598
- min,
2599
- max
2569
+ min: constraints.min !== void 0 ? constraints.min : -2147483648,
2570
+ max: constraints.max !== void 0 ? constraints.max : 2147483647
2600
2571
  };
2601
2572
  }
2602
2573
  function integer(constraints = {}) {
@@ -2750,10 +2721,7 @@ var ArrayArbitrary = class ArrayArbitrary extends Arbitrary {
2750
2721
  const items = [];
2751
2722
  const slicedGenerator = buildSlicedGenerator(this.arb, mrng, this.customSlices, biasFactorItems);
2752
2723
  slicedGenerator.attemptExact(N);
2753
- for (let index = 0; index !== N; ++index) {
2754
- const current = slicedGenerator.next();
2755
- safePush(items, current);
2756
- }
2724
+ for (let index = 0; index !== N; ++index) safePush(items, slicedGenerator.next());
2757
2725
  return items;
2758
2726
  }
2759
2727
  safeGenerateNItems(N, mrng, biasFactorItems) {
@@ -2777,13 +2745,12 @@ var ArrayArbitrary = class ArrayArbitrary extends Arbitrary {
2777
2745
  safePush(itemsContexts, s.context);
2778
2746
  }
2779
2747
  if (cloneable) ArrayArbitrary.makeItCloneable(vs, items);
2780
- const context = {
2748
+ return new Value(vs, {
2781
2749
  shrunkOnce,
2782
2750
  lengthContext: itemsRaw.length === items.length && itemsRawLengthContext !== void 0 ? itemsRawLengthContext : void 0,
2783
2751
  itemsContexts,
2784
2752
  startIndex
2785
- };
2786
- return new Value(vs, context);
2753
+ });
2787
2754
  }
2788
2755
  generate(mrng, biasFactor) {
2789
2756
  const biasMeta = this.applyBias(mrng, biasFactor);
@@ -2918,8 +2885,7 @@ function maxGeneratedLengthFromSizeForArbitrary(size, minLength, maxLength, spec
2918
2885
  const { baseSize: defaultSize = DefaultSize, defaultSizeToMaxWhenMaxSpecified } = readConfigureGlobal() || {};
2919
2886
  const definedSize = size !== void 0 ? size : specifiedMaxLength && defaultSizeToMaxWhenMaxSpecified ? "max" : defaultSize;
2920
2887
  if (definedSize === "max") return maxLength;
2921
- const finalSize = relativeSizeToSize(definedSize, defaultSize);
2922
- return safeMathMin$3(maxLengthFromMinLength(minLength, finalSize), maxLength);
2888
+ return safeMathMin$3(maxLengthFromMinLength(minLength, relativeSizeToSize(definedSize, defaultSize)), maxLength);
2923
2889
  }
2924
2890
  function depthBiasFromSizeForArbitrary(depthSizeOrSize, specifiedMaxDepth) {
2925
2891
  if (typeof depthSizeOrSize === "number") return 1 / depthSizeOrSize;
@@ -2943,15 +2909,13 @@ function array(arb, constraints = {}) {
2943
2909
  const maxLengthOrUnset = constraints.maxLength;
2944
2910
  const depthIdentifier = constraints.depthIdentifier;
2945
2911
  const maxLength = maxLengthOrUnset !== void 0 ? maxLengthOrUnset : MaxLengthUpperBound;
2946
- const maxGeneratedLength = maxGeneratedLengthFromSizeForArbitrary(size, minLength, maxLength, maxLengthOrUnset !== void 0);
2947
- const customSlices = constraints.experimentalCustomSlices || [];
2948
- return new ArrayArbitrary(arb, minLength, maxGeneratedLength, maxLength, depthIdentifier, void 0, customSlices);
2912
+ return new ArrayArbitrary(arb, minLength, maxGeneratedLengthFromSizeForArbitrary(size, minLength, maxLength, maxLengthOrUnset !== void 0), maxLength, depthIdentifier, void 0, constraints.experimentalCustomSlices || []);
2949
2913
  }
2950
2914
 
2951
2915
  //#endregion
2952
2916
  //#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ShrinkBigInt.js
2953
2917
  function halveBigInt(n) {
2954
- return n / SBigInt(2);
2918
+ return n / SBigInt$1(2);
2955
2919
  }
2956
2920
  function shrinkBigInt(current, target, tryTargetAsap) {
2957
2921
  const realGap = current - target;
@@ -3002,27 +2966,24 @@ var BigIntArbitrary = class BigIntArbitrary extends Arbitrary {
3002
2966
  return typeof value === "bigint" && this.min <= value && value <= this.max;
3003
2967
  }
3004
2968
  shrink(current, context) {
3005
- if (!BigIntArbitrary.isValidContext(current, context)) {
3006
- const target = this.defaultTarget();
3007
- return shrinkBigInt(current, target, true);
3008
- }
2969
+ if (!BigIntArbitrary.isValidContext(current, context)) return shrinkBigInt(current, this.defaultTarget(), true);
3009
2970
  if (this.isLastChanceTry(current, context)) return Stream.of(new Value(context, void 0));
3010
2971
  return shrinkBigInt(current, context, false);
3011
2972
  }
3012
2973
  defaultTarget() {
3013
- if (this.min <= 0 && this.max >= 0) return SBigInt(0);
2974
+ if (this.min <= 0 && this.max >= 0) return SBigInt$1(0);
3014
2975
  return this.min < 0 ? this.max : this.min;
3015
2976
  }
3016
2977
  isLastChanceTry(current, context) {
3017
- if (current > 0) return current === context + SBigInt(1) && current > this.min;
3018
- if (current < 0) return current === context - SBigInt(1) && current < this.max;
2978
+ if (current > 0) return current === context + SBigInt$1(1) && current > this.min;
2979
+ if (current < 0) return current === context - SBigInt$1(1) && current < this.max;
3019
2980
  return false;
3020
2981
  }
3021
2982
  static isValidContext(current, context) {
3022
2983
  if (context === void 0) return false;
3023
2984
  if (typeof context !== "bigint") throw new Error(`Invalid context type passed to BigIntArbitrary (#1)`);
3024
2985
  const differentSigns = current > 0 && context < 0 || current < 0 && context > 0;
3025
- if (context !== SBigInt(0) && differentSigns) throw new Error(`Invalid context value passed to BigIntArbitrary (#2)`);
2986
+ if (context !== SBigInt$1(0) && differentSigns) throw new Error(`Invalid context value passed to BigIntArbitrary (#2)`);
3026
2987
  return true;
3027
2988
  }
3028
2989
  };
@@ -3031,13 +2992,13 @@ var BigIntArbitrary = class BigIntArbitrary extends Arbitrary {
3031
2992
  //#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/bigInt.js
3032
2993
  function buildCompleteBigIntConstraints(constraints) {
3033
2994
  const DefaultPow = 256;
3034
- const DefaultMin = SBigInt(-1) << SBigInt(DefaultPow - 1);
3035
- const DefaultMax = (SBigInt(1) << SBigInt(DefaultPow - 1)) - SBigInt(1);
2995
+ const DefaultMin = SBigInt$1(-1) << SBigInt$1(DefaultPow - 1);
2996
+ const DefaultMax = (SBigInt$1(1) << SBigInt$1(DefaultPow - 1)) - SBigInt$1(1);
3036
2997
  const min = constraints.min;
3037
2998
  const max = constraints.max;
3038
2999
  return {
3039
- min: min !== void 0 ? min : DefaultMin - (max !== void 0 && max < SBigInt(0) ? max * max : SBigInt(0)),
3040
- max: max !== void 0 ? max : DefaultMax + (min !== void 0 && min > SBigInt(0) ? min * min : SBigInt(0))
3000
+ min: min !== void 0 ? min : DefaultMin - (max !== void 0 && max < SBigInt$1(0) ? max * max : SBigInt$1(0)),
3001
+ max: max !== void 0 ? max : DefaultMax + (min !== void 0 && min > SBigInt$1(0) ? min * min : SBigInt$1(0))
3041
3002
  };
3042
3003
  }
3043
3004
  function extractBigIntConstraints(args) {
@@ -3371,8 +3332,7 @@ function uniqueArray(arb, constraints = {}) {
3371
3332
  const maxLength = constraints.maxLength !== void 0 ? constraints.maxLength : MaxLengthUpperBound;
3372
3333
  const maxGeneratedLength = maxGeneratedLengthFromSizeForArbitrary(constraints.size, minLength, maxLength, constraints.maxLength !== void 0);
3373
3334
  const depthIdentifier = constraints.depthIdentifier;
3374
- const setBuilder = buildUniqueArraySetBuilder(constraints);
3375
- const arrayArb = new ArrayArbitrary(arb, minLength, maxGeneratedLength, maxLength, depthIdentifier, setBuilder, []);
3335
+ const arrayArb = new ArrayArbitrary(arb, minLength, maxGeneratedLength, maxLength, depthIdentifier, buildUniqueArraySetBuilder(constraints), []);
3376
3336
  if (minLength === 0) return arrayArb;
3377
3337
  return arrayArb.filter((tab) => tab.length >= minLength);
3378
3338
  }
@@ -3448,12 +3408,11 @@ var FrequencyArbitrary = class FrequencyArbitrary extends Arbitrary {
3448
3408
  if (currentWeight < 0) throw new Error(`${label} expects weights to be superior or equal to 0`);
3449
3409
  }
3450
3410
  if (totalWeight <= 0) throw new Error(`${label} expects the sum of weights to be strictly superior to 0`);
3451
- const sanitizedConstraints = {
3411
+ return new FrequencyArbitrary(warbs, {
3452
3412
  depthBias: depthBiasFromSizeForArbitrary(constraints.depthSize, constraints.maxDepth !== void 0),
3453
3413
  maxDepth: constraints.maxDepth != void 0 ? constraints.maxDepth : safePositiveInfinity$7,
3454
3414
  withCrossShrink: !!constraints.withCrossShrink
3455
- };
3456
- return new FrequencyArbitrary(warbs, sanitizedConstraints, getDepthContextFor(constraints.depthIdentifier));
3415
+ }, getDepthContextFor(constraints.depthIdentifier));
3457
3416
  }
3458
3417
  constructor(warbs, constraints, context) {
3459
3418
  super();
@@ -3657,8 +3616,7 @@ function computeNumChoices(options) {
3657
3616
  return numChoices;
3658
3617
  }
3659
3618
  function mapToConstant(...entries) {
3660
- const numChoices = computeNumChoices(entries);
3661
- return nat({ max: numChoices - 1 }).map(indexToMappedConstantMapperFor(entries), indexToMappedConstantUnmapperFor(entries));
3619
+ return nat({ max: computeNumChoices(entries) - 1 }).map(indexToMappedConstantMapperFor(entries), indexToMappedConstantUnmapperFor(entries));
3662
3620
  }
3663
3621
 
3664
3622
  //#endregion
@@ -4875,8 +4833,7 @@ function string(constraints = {}) {
4875
4833
  const charArbitrary = extractUnitArbitrary(constraints);
4876
4834
  const unmapper = patternsToStringUnmapperFor(charArbitrary, constraints);
4877
4835
  const experimentalCustomSlices = createSlicesForString(charArbitrary, constraints);
4878
- const enrichedConstraints = safeObjectAssign$1(safeObjectAssign$1({}, constraints), { experimentalCustomSlices });
4879
- return array(charArbitrary, enrichedConstraints).map(patternsToStringMapper, unmapper);
4836
+ return array(charArbitrary, safeObjectAssign$1(safeObjectAssign$1({}, constraints), { experimentalCustomSlices })).map(patternsToStringMapper, unmapper);
4880
4837
  }
4881
4838
 
4882
4839
  //#endregion
@@ -5119,10 +5076,7 @@ function positiveNumberToInt64(n) {
5119
5076
  return [~~(n / 4294967296), n >>> 0];
5120
5077
  }
5121
5078
  function indexInDoubleFromDecomp(exponent, significand) {
5122
- if (exponent === -1022) {
5123
- const rescaledSignificand$1 = significand * 2 ** 52;
5124
- return positiveNumberToInt64(rescaledSignificand$1);
5125
- }
5079
+ if (exponent === -1022) return positiveNumberToInt64(significand * 2 ** 52);
5126
5080
  const rescaledSignificand = (significand - 1) * 2 ** 52;
5127
5081
  const exponentOnlyHigh = (exponent + 1023) * 2 ** 20;
5128
5082
  const index = positiveNumberToInt64(rescaledSignificand);
@@ -5564,11 +5518,10 @@ function restrictedIntegerArbitraryBuilder(min, maxGenerated, max) {
5564
5518
  max: maxGenerated
5565
5519
  });
5566
5520
  if (maxGenerated === max) return generatorArbitrary;
5567
- const shrinkerArbitrary = integer({
5521
+ return new WithShrinkFromOtherArbitrary(generatorArbitrary, integer({
5568
5522
  min,
5569
5523
  max
5570
- });
5571
- return new WithShrinkFromOtherArbitrary(generatorArbitrary, shrinkerArbitrary);
5524
+ }));
5572
5525
  }
5573
5526
 
5574
5527
  //#endregion
@@ -5592,23 +5545,19 @@ function arrayFromItems(length, indexesAndValues) {
5592
5545
  }
5593
5546
  function sparseArray(arb, constraints = {}) {
5594
5547
  const { size, minNumElements = 0, maxLength = MaxLengthUpperBound, maxNumElements = maxLength, noTrailingHole, depthIdentifier } = constraints;
5595
- const maxGeneratedNumElements = maxGeneratedLengthFromSizeForArbitrary(size, minNumElements, maxNumElements, constraints.maxNumElements !== void 0);
5596
- const maxGeneratedLength = maxGeneratedLengthFromSizeForArbitrary(size, maxGeneratedNumElements, maxLength, constraints.maxLength !== void 0);
5548
+ const maxGeneratedLength = maxGeneratedLengthFromSizeForArbitrary(size, maxGeneratedLengthFromSizeForArbitrary(size, minNumElements, maxNumElements, constraints.maxNumElements !== void 0), maxLength, constraints.maxLength !== void 0);
5597
5549
  if (minNumElements > maxLength) throw new Error(`The minimal number of non-hole elements cannot be higher than the maximal length of the array`);
5598
5550
  if (minNumElements > maxNumElements) throw new Error(`The minimal number of non-hole elements cannot be higher than the maximal number of non-holes`);
5599
5551
  const resultedMaxNumElements = safeMathMin(maxNumElements, maxLength);
5600
5552
  const resultedSizeMaxNumElements = constraints.maxNumElements !== void 0 || size !== void 0 ? size : "=";
5601
- const maxGeneratedIndexAuthorized = safeMathMax(maxGeneratedLength - 1, 0);
5602
- const maxIndexAuthorized = safeMathMax(maxLength - 1, 0);
5603
- const sparseArrayNoTrailingHole = uniqueArray(tuple(restrictedIntegerArbitraryBuilder(0, maxGeneratedIndexAuthorized, maxIndexAuthorized), arb), {
5553
+ const sparseArrayNoTrailingHole = uniqueArray(tuple(restrictedIntegerArbitraryBuilder(0, safeMathMax(maxGeneratedLength - 1, 0), safeMathMax(maxLength - 1, 0)), arb), {
5604
5554
  size: resultedSizeMaxNumElements,
5605
5555
  minLength: minNumElements,
5606
5556
  maxLength: resultedMaxNumElements,
5607
5557
  selector: (item) => item[0],
5608
5558
  depthIdentifier
5609
5559
  }).map((items) => {
5610
- const lastIndex = extractMaxIndex(items);
5611
- return arrayFromItems(lastIndex + 1, items);
5560
+ return arrayFromItems(extractMaxIndex(items) + 1, items);
5612
5561
  }, (value) => {
5613
5562
  if (!safeArrayIsArray(value)) throw new Error("Not supported entry type");
5614
5563
  if (noTrailingHole && value.length !== 0 && !(value.length - 1 in value)) throw new Error("No trailing hole");
@@ -5725,8 +5674,7 @@ const safeObjectAssign = Object.assign;
5725
5674
  function fullUnicodeString(constraints = {}) {
5726
5675
  const charArbitrary = fullUnicode();
5727
5676
  const experimentalCustomSlices = createSlicesForStringLegacy(charArbitrary, codePointsToStringUnmapper);
5728
- const enrichedConstraints = safeObjectAssign(safeObjectAssign({}, constraints), { experimentalCustomSlices });
5729
- return array(charArbitrary, enrichedConstraints).map(codePointsToStringMapper, codePointsToStringUnmapper);
5677
+ return array(charArbitrary, safeObjectAssign(safeObjectAssign({}, constraints), { experimentalCustomSlices })).map(codePointsToStringMapper, codePointsToStringUnmapper);
5730
5678
  }
5731
5679
 
5732
5680
  //#endregion
@@ -5812,8 +5760,8 @@ function actor() {
5812
5760
  return actorClassAndInstance().map(([, instance]) => instance);
5813
5761
  }
5814
5762
  test("isActor()", () => {
5815
- assert$1(property(actor(), (actor$1) => assert(isActor(actor$1))));
5816
- assert$1(property(anything({
5763
+ assert(property(actor(), (actor$1) => assert$1(isActor(actor$1))));
5764
+ assert(property(anything({
5817
5765
  withBigInt: true,
5818
5766
  withBoxedValues: true,
5819
5767
  withDate: true,
@@ -5826,10 +5774,10 @@ test("isActor()", () => {
5826
5774
  }), (nonActor) => assertFalse(isActor(nonActor))));
5827
5775
  });
5828
5776
  test("getActorTypeName()", () => {
5829
- assert$1(property(actorClassAndInstance(), ([cls, instance]) => assertEquals(getActorTypeName(instance), cls.name)));
5777
+ assert(property(actorClassAndInstance(), ([cls, instance]) => assertEquals(getActorTypeName(instance), cls.name)));
5830
5778
  });
5831
5779
  test("getActorClassByTypeName()", () => {
5832
- assert$1(property(actorClassAndInstance(), ([cls, instance]) => assertStrictEquals(getActorClassByTypeName(getActorTypeName(instance)), cls)));
5780
+ assert(property(actorClassAndInstance(), ([cls, instance]) => assertStrictEquals(getActorClassByTypeName(getActorTypeName(instance)), cls)));
5833
5781
  });
5834
5782
  test("getActorHandle()", async (t) => {
5835
5783
  esm_default.spyGlobal();
@@ -3,25 +3,23 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { assertEquals } from "../assert_equals-B44MxcIj.js";
7
- import "../assert-LOEeCUK5.js";
8
- import { assertInstanceOf } from "../assert_instance_of-XtuFevV_.js";
9
- import "../docloader-bgBm1Hd1.js";
10
- import "../url-C2xuoQD1.js";
11
- import "../multibase-CnLHszip.js";
12
- import { Collection, Note, Object as Object$1, Person } from "../vocab-DFlq4Wa6.js";
13
- import "../langstr-DbWheeIS.js";
14
- import "../lookup-DL62q3Xh.js";
15
- import "../type-CFuiGLz9.js";
16
- import { lookupObject, traverseCollection } from "../lookup-D0je8AqR.js";
17
- import { test } from "../testing-DLyvtiiW.js";
18
- import "../std__assert-o_r9vqm1.js";
19
- import "../assert_rejects-DWQ4jaf9.js";
20
- import "../assert_is_error-BTlryvT0.js";
21
- import "../assert_not_equals-C685gKx6.js";
22
- import "../assert_throws-YetpVSc-.js";
23
- import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
24
- import { esm_default } from "../esm-DO9PrujO.js";
6
+ import "../chunk-DvTpRkcT.js";
7
+ import { t as assertEquals } from "../assert_equals-Dy0MG_Zw.js";
8
+ import { t as assertInstanceOf } from "../assert_instance_of-lS0Jr2iu.js";
9
+ import "../docloader-sGz4vcrK.js";
10
+ import "../url-BdNvnK9P.js";
11
+ import "../multibase-DBcKTV2a.js";
12
+ import { S as Person, _ as Object$1, g as Note, i as Collection } from "../vocab-DCHRuBGF.js";
13
+ import "../langstr-pFHBDU4y.js";
14
+ import "../lookup-Bq8vhIG4.js";
15
+ import { n as traverseCollection, t as lookupObject } from "../lookup-cHV4n1IB.js";
16
+ import { t as test } from "../testing-qaAD4B0t.js";
17
+ import "../std__assert-BdP_WkD-.js";
18
+ import "../assert_rejects-Bkh5lA1a.js";
19
+ import "../assert_is_error-CIYFACrT.js";
20
+ import "../assert_throws-CmpfkWEM.js";
21
+ import { t as mockDocumentLoader } from "../docloader-BDSHZfTJ.js";
22
+ import { t as esm_default } from "../esm-BRXvTSrx.js";
25
23
 
26
24
  //#region vocab/lookup.test.ts
27
25
  test("lookupObject()", async (t) => {
@@ -55,10 +53,8 @@ test("lookupObject()", async (t) => {
55
53
  assertInstanceOf(person, Person);
56
54
  assertEquals(person.id, new URL("https://example.com/person"));
57
55
  assertEquals(person.name, "John Doe");
58
- const person2 = await lookupObject("johndoe@example.com", options);
59
- assertEquals(person2, person);
60
- const person3 = await lookupObject("acct:johndoe@example.com", options);
61
- assertEquals(person3, person);
56
+ assertEquals(await lookupObject("johndoe@example.com", options), person);
57
+ assertEquals(await lookupObject("acct:johndoe@example.com", options), person);
62
58
  });
63
59
  await t.step("object", async () => {
64
60
  const object = await lookupObject("https://example.com/object", options);
@@ -0,0 +1,6 @@
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
3
+ import { $ as Read, A as Image, B as Multikey, C as Event, D as Group, E as Follow, F as Like, G as OrderedCollectionPage, H as Object$1, I as Link, J as Person, K as Organization, L as Listen, M as Invite, N as Join, O as Hashtag, P as Leave, Q as Question, R as Mention, S as Endpoints, T as Flag, U as Offer, V as Note, W as OrderedCollection, X as Profile, Y as Place, Z as PropertyValue, _ as DidService, a as Application, at as TentativeAccept, b as Emoji, c as Audio, ct as Travel, d as Collection, dt as Video, et as Reject, f as CollectionPage, ft as View, g as Delete, h as DataIntegrityProof, i as Announce, it as Source, j as IntransitiveActivity, k as Ignore, l as Block, lt as Undo, m as CryptographicKey, n as Activity, nt as Remove, o as Arrive, ot as TentativeReject, p as Create, q as Page, r as Add, rt as Service, s as Article, st as Tombstone, t as Accept, tt as Relationship, u as ChatMessage, ut as Update, v as Dislike, w as Export, x as EmojiReact, y as Document, z as Move } from "../vocab-DoBcp8ow.js";
4
+ import { a as Recipient, c as getActorTypeName, i as NormalizeActorHandleOptions, l as isActor, n as ActorTypeName, o as getActorClassByTypeName, r as GetActorHandleOptions, s as getActorHandle, t as Actor, u as normalizeActorHandle } from "../actor-Dx5YX74F.js";
5
+ import { a as lookupObject, i as TraverseCollectionOptions, n as PUBLIC_COLLECTION, o as traverseCollection, r as LookupObjectOptions, t as getTypeId } from "../mod-DjGYGrBd.js";
6
+ export { Accept, Activity, Actor, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, GetActorHandleOptions, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, LookupObjectOptions, Mention, Move, Multikey, NormalizeActorHandleOptions, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Recipient, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, lookupObject, normalizeActorHandle, traverseCollection };
package/dist/vocab/mod.js CHANGED
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import "../docloader-DJxET2fN.js";
6
- import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "../actor-GZRoTRqg.js";
7
- import "../lookup-CSngxuWm.js";
8
- import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "../vocab-BebR0kAy.js";
5
+ import "../docloader-BU25UQLB.js";
6
+ import { $ as Person, A as Flag, B as Like, C as Dislike, D as Endpoints, E as EmojiReact, F as Image, G as Multikey, H as Listen, I as IntransitiveActivity, J as Offer, K as Note, L as Invite, M as Group, N as Hashtag, O as Event, P as Ignore, Q as Page, R as Join, S as DidService, T as Emoji, Tt as getTypeId, U as Mention, V as Link, W as Move, X as OrderedCollectionPage, Y as OrderedCollection, Z as Organization, _ as CollectionPage, _t as View, a as normalizeActorHandle, at as Reject, b as DataIntegrityProof, c as Add, ct as Service, d as Arrive, dt as TentativeReject, et as Place, f as Article, ft as Tombstone, g as Collection, gt as Video, h as ChatMessage, ht as Update, i as isActor, it as Read, j as Follow, k as Export, l as Announce, lt as Source, m as Block, mt as Undo, n as getActorHandle, nt as PropertyValue, o as Accept, ot as Relationship, p as Audio, pt as Travel, q as Object$1, r as getActorTypeName, rt as Question, s as Activity, st as Remove, t as getActorClassByTypeName, tt as Profile, u as Application, ut as TentativeAccept, v as Create, w as Document, x as Delete, y as CryptographicKey, z as Leave } from "../actor-OYVgkiZG.js";
7
+ import "../lookup-4uc2jh52.js";
8
+ import { n as lookupObject, r as traverseCollection, t as PUBLIC_COLLECTION } from "../vocab-sMuiKIWm.js";
9
9
 
10
10
  export { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, lookupObject, normalizeActorHandle, traverseCollection };
@@ -3,19 +3,19 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { assertEquals } from "../assert_equals-B44MxcIj.js";
7
- import "../docloader-bgBm1Hd1.js";
8
- import "../url-C2xuoQD1.js";
9
- import "../multibase-CnLHszip.js";
10
- import { Person } from "../vocab-DFlq4Wa6.js";
11
- import "../langstr-DbWheeIS.js";
12
- import { getTypeId } from "../type-CFuiGLz9.js";
13
- import { test } from "../testing-DLyvtiiW.js";
6
+ import "../chunk-DvTpRkcT.js";
7
+ import { t as assertEquals } from "../assert_equals-Dy0MG_Zw.js";
8
+ import "../docloader-sGz4vcrK.js";
9
+ import "../url-BdNvnK9P.js";
10
+ import "../multibase-DBcKTV2a.js";
11
+ import { S as Person } from "../vocab-DCHRuBGF.js";
12
+ import "../langstr-pFHBDU4y.js";
13
+ import { t as getTypeId } from "../type-DFsmi-p1.js";
14
+ import { t as test } from "../testing-qaAD4B0t.js";
14
15
 
15
16
  //#region vocab/type.test.ts
16
17
  test("getTypeId()", () => {
17
- const obj = new Person({});
18
- assertEquals(getTypeId(obj), new URL("https://www.w3.org/ns/activitystreams#Person"));
18
+ assertEquals(getTypeId(new Person({})), new URL("https://www.w3.org/ns/activitystreams#Person"));
19
19
  assertEquals(getTypeId(null), null);
20
20
  assertEquals(getTypeId(void 0), void 0);
21
21
  assertEquals(getTypeId(null), null);