@pkcprotocol/pkc-js 0.0.126 → 0.0.127

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 (37) hide show
  1. package/dist/browser/generated-version.d.ts +1 -1
  2. package/dist/browser/generated-version.js +1 -1
  3. package/dist/browser/pages/page-size.d.ts +2 -0
  4. package/dist/browser/pages/page-size.js +11 -0
  5. package/dist/browser/pages/page-size.js.map +1 -0
  6. package/dist/browser/pages/pages-client-manager.js +2 -1
  7. package/dist/browser/pages/pages-client-manager.js.map +1 -1
  8. package/dist/browser/pages/util.js +3 -2
  9. package/dist/browser/pages/util.js.map +1 -1
  10. package/dist/browser/runtime/node/community/page-generator.js +8 -7
  11. package/dist/browser/runtime/node/community/page-generator.js.map +1 -1
  12. package/dist/bundled/bundle-manifest.json +41 -40
  13. package/dist/bundled/challenges.js +1 -1
  14. package/dist/bundled/chunks/{helia-for-pkc-vQZvQcs_.js → helia-for-pkc-BsXEDYPa.js} +33 -33
  15. package/dist/bundled/chunks/{local-community-dcM1R3k5.js → local-community-FekHR-fd.js} +1 -1
  16. package/dist/bundled/chunks/{local-community-51NzNBUS.js → local-community-WFQoW5aC.js} +34 -35
  17. package/dist/bundled/chunks/{node-agDtcKUp.js → node-pIjburtc.js} +5 -5
  18. package/dist/bundled/chunks/{page-sort-scoring-BSBLegpC.js → page-sort-scoring-Civ7TOoF.js} +1 -1
  19. package/dist/bundled/chunks/{rpc-local-community-DOcUqswi.js → rpc-local-community-BqP9g2Rk.js} +11 -6
  20. package/dist/bundled/chunks/{util-DNYbha6W.js → util-D5Y6i3Nn.js} +1 -1
  21. package/dist/bundled/chunks/{util-PGPkG-gU.js → util-VrWyIc1x.js} +1 -1
  22. package/dist/bundled/chunks/{validate-package-factories-2U8SCIxZ.js → validate-package-factories-CJgjDTZC.js} +2 -2
  23. package/dist/bundled/index.js +1 -1
  24. package/dist/bundled/page-sorts.js +1 -1
  25. package/dist/bundled/rpc/src/index.js +4 -4
  26. package/dist/node/generated-version.d.ts +1 -1
  27. package/dist/node/generated-version.js +1 -1
  28. package/dist/node/pages/page-size.d.ts +2 -0
  29. package/dist/node/pages/page-size.js +11 -0
  30. package/dist/node/pages/page-size.js.map +1 -0
  31. package/dist/node/pages/pages-client-manager.js +2 -1
  32. package/dist/node/pages/pages-client-manager.js.map +1 -1
  33. package/dist/node/pages/util.js +3 -2
  34. package/dist/node/pages/util.js.map +1 -1
  35. package/dist/node/runtime/node/community/page-generator.js +8 -7
  36. package/dist/node/runtime/node/community/page-generator.js.map +1 -1
  37. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
1
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-2rV9d50f.js";
2
- import { $ as retryKuboIpfsAddAndProvide, $n as CommentEditReservedFields, An as VoteTablesRowSchema, At as ChallengeAnswerMessageSchema, Bt as DecryptedChallengeRequestSchema, C as hideClassPrivateProps, Ct as trackUpdatingCommunity, Dn as VotePubsubMessagePublicationSchema, Dt as require_sha256, Et as untrackUpdatingCommunity, F as isLinkOfVideo, G as removeMfsFilesSafely, I as isLinkValid, It as ChallengeVerificationMessageSchema, Jt as version_default, Lr as PKCError, M as isLinkOfAudio, Mt as ChallengeMessageSchema, N as isLinkOfImage, Nn as CommentIpfsSchema, On as VotePubsubReservedFields, Or as t$4, P as isLinkOfMedia, Pn as CommentPubsubMessageReservedFields, Pt as ChallengeRequestMessageSchema, Qn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Rr as messages, Sr as e, T as ipnsNameToIpnsOverPubsubTopic, Tr as t$3, Un as CommentUpdateTableRowSchema, Vn as CommentUpdateSchema, W as removeBlocksFromKuboNode, Wn as CommentsTableRowSchema, Xt as CommunityEditPublicationPubsubReservedFields, Z as retryKuboBlockPutPinAndProvidePubsubTopic, Zn as CommentEditPubsubMessagePublicationSchema, _ as genToArray, _r as t$7, at as timestamp, b as getIpnsRecordInLocalKuboNode, br as t$6, bt as syncCommunityRegistryEntry, c as contentContainsMarkdownImages, ct as withSortedKeysDeep, dt as findStartedCommunity, f as derivePublicationFromChallengeRequest, g as findMalformedUnicodeString, gr as n$3, i as calculateStringSizeSameAsIpfsAddCidV0, in as CommentModerationsTableRowSchema, j as isLinkOfAnimatedImage, jr as require_retry, kr as t$2, kt as pTimeout, l as contentContainsMarkdownVideos, lt as writeKuboFilesWithTimeout, mn as CommunitySignedPropertyNames, nn as CommentModerationReservedFields, nt as sleepUntilTimeoutOrAbort, o as calculateUnixFsDagSizeCidV0, or as AuthorReservedFields, p as doesDomainAddressHaveCapitalLetter, pn as CommunityIpfsSchema, pt as findUpdatingCommunity, q as removeNullUndefinedValues, r as calculateIpfsCidV0, rt as statMfsPathSafely, s as contentContainsMarkdownAudio, st as withSortedKeys, t as areEquivalentCommunityAddresses, ti as ZodError, tn as CommentModerationPubsubMessagePublicationSchema, tr as CommentEditsTableRowSchema, ut as findCommunityInRegistry, v as getEquivalentCommunityAddresses, vr as n$2, wn as isStringDomain, wr as r$1, wt as untrackStartedCommunity, xr as e$1, xt as trackStartedCommunity, y as getErrorCodeFromMessage, yr as t$5, z as pubsubTopicToDhtKey, zr as logger_default, zt as DecryptedChallengeRequestPublicationSchema } from "./util-PGPkG-gU.js";
3
- import { $n as getCommunityNameFromWire, An as verifyChallengeRequest, Ar as t$11, Bn as verifyVote, Cn as signCommentUpdateForChallengeVerification, Ct as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, Er as resolveDbPostsCidRefs, Et as parseJsonWithPKCErrorIfFails, Fn as verifyCommentPubsubMessage, Hn as cleanWireAuthor, Hr as STORAGE_KEYS, In as verifyCommentUpdate, Ir as t$9, Ln as verifyCommunity, Lr as stringify, Mn as verifyCommentEdit, Mr as t$8, Nn as verifyCommentIpfs, Nr as n$5, On as verifyChallengeAnswer, Pn as verifyCommentModeration, Pr as n$4, Q as createSchemaRowParser, Rn as verifyCommunityEdit, S as MAX_FILE_SIZE_BYTES_FOR_COMMUNITY_IPFS, Sn as signCommentUpdate, Tr as refreshCommunitiesList, U as pLimit, Ur as require_lodash_merge, Vn as buildRuntimeAuthor, Wn as getAuthorNameFromWire, X as coerceSchemaRowJson, Xn as effectiveMaxCrosspostDepth, Y as coerceSchemaRowBoolean, Yn as crosspostChainDepthUpTo, Z as collectSchemaRowCoercions, _ as createAuthorIdentityMatcher, _r as deriveDbReplies, a as generatePagesReportingFailedSorts, ar as getIpfsKeyFromPrivateKey, b as KeyvBetterSqlite3, bn as signCommentEdit, br as getThumbnailPropsOfLink, c as resolvePageSortsOrThrow, cr as getPublicKeyFromPrivateKey, d as getChallengeVerification, dr as calculateExpectedSignatureSize, er as getCommunityPublicKeyFromWire, f as getCommunityChallengeFromCommunityChallengeSettings, fn as encryptEd25519AesGcmPublicKeyBuffer, fr as calculateInlineRepliesBudget, ft as parseCommunityIpfsSchemaPassthroughWithPKCErrorIfItFails, g as authorNameResolveFailureReason, gn as signChallengeMessage, gr as deriveDbPosts, h as authorIdentityMatcherForRequest, hr as deriveCommentIpfsFromCommentTableRow, i as derivePublicPageSorts, j as iterateOverPageCidsToFindAllCids, jr as r$2, kr as t$10, lr as BackupAbortError, m as pkcJsChallenges, mn as cleanUpBeforePublishing, mr as deleteOldCommunityInWindows, nr as decode, o as loadPageSortsForStartedCommunity, on as SignerWithPublicKeyAddress, or as getPKCAddressFromPublicKey, p as loadChallengeFileFromCommunityChallengeSettings, pn as _validateSignatureOfPKCRecord, r as computePageSortsFingerprint, rr as encode, s as lookupPageSortFactories, sr as getPKCAddressFromPublicKeySync, t as RpcLocalCommunity, u as deriveCommunityChallengesOrThrow, un as decryptEd25519AesGcmPublicKeyBuffer, ur as backupCommunityDb, ut as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, v as TrackedInstanceRegistry, vn as signChallengeVerification, vr as getDefaultCommunityDbConfig, w as TIMEFRAMES_TO_SECONDS, wn as signCommunity, wr as moveCommunityDbToDeletedDirectory, xr as importSignerIntoKuboNode, y as LRUCache, yn as signComment } from "./rpc-local-community-DOcUqswi.js";
4
- import { a as scorePageCommentsWithFile, i as partitionPageCommentsForSort, n as filterRepliesForPageSort, o as stripRepliesFromPageComment, r as orderPageCommentsByScore, t as createDescendantsLookup } from "./page-sort-scoring-BSBLegpC.js";
2
+ import { $ as retryKuboIpfsAddAndProvide, $n as CommentEditReservedFields, An as VoteTablesRowSchema, At as ChallengeAnswerMessageSchema, Bt as DecryptedChallengeRequestSchema, C as hideClassPrivateProps, Ct as trackUpdatingCommunity, Dn as VotePubsubMessagePublicationSchema, Dt as require_sha256, Et as untrackUpdatingCommunity, F as isLinkOfVideo, G as removeMfsFilesSafely, I as isLinkValid, It as ChallengeVerificationMessageSchema, Jt as version_default, Lr as PKCError, M as isLinkOfAudio, Mt as ChallengeMessageSchema, N as isLinkOfImage, Nn as CommentIpfsSchema, On as VotePubsubReservedFields, Or as t$4, P as isLinkOfMedia, Pn as CommentPubsubMessageReservedFields, Pt as ChallengeRequestMessageSchema, Qn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Rr as messages, Sr as e, T as ipnsNameToIpnsOverPubsubTopic, Tr as t$3, Un as CommentUpdateTableRowSchema, Vn as CommentUpdateSchema, W as removeBlocksFromKuboNode, Wn as CommentsTableRowSchema, Xt as CommunityEditPublicationPubsubReservedFields, Z as retryKuboBlockPutPinAndProvidePubsubTopic, Zn as CommentEditPubsubMessagePublicationSchema, _ as genToArray, _r as t$7, at as timestamp, b as getIpnsRecordInLocalKuboNode, br as t$6, bt as syncCommunityRegistryEntry, c as contentContainsMarkdownImages, ct as withSortedKeysDeep, dt as findStartedCommunity, f as derivePublicationFromChallengeRequest, g as findMalformedUnicodeString, gr as n$3, i as calculateStringSizeSameAsIpfsAddCidV0, in as CommentModerationsTableRowSchema, j as isLinkOfAnimatedImage, jr as require_retry, kr as t$2, kt as pTimeout, l as contentContainsMarkdownVideos, lt as writeKuboFilesWithTimeout, mn as CommunitySignedPropertyNames, nn as CommentModerationReservedFields, nt as sleepUntilTimeoutOrAbort, o as calculateUnixFsDagSizeCidV0, or as AuthorReservedFields, p as doesDomainAddressHaveCapitalLetter, pn as CommunityIpfsSchema, pt as findUpdatingCommunity, q as removeNullUndefinedValues, r as calculateIpfsCidV0, rt as statMfsPathSafely, s as contentContainsMarkdownAudio, st as withSortedKeys, t as areEquivalentCommunityAddresses, ti as ZodError, tn as CommentModerationPubsubMessagePublicationSchema, tr as CommentEditsTableRowSchema, ut as findCommunityInRegistry, v as getEquivalentCommunityAddresses, vr as n$2, wn as isStringDomain, wr as r$1, wt as untrackStartedCommunity, xr as e$1, xt as trackStartedCommunity, y as getErrorCodeFromMessage, yr as t$5, z as pubsubTopicToDhtKey, zr as logger_default, zt as DecryptedChallengeRequestPublicationSchema } from "./util-VrWyIc1x.js";
3
+ import { $ as createSchemaRowParser, Ar as t$10, Cn as signCommentUpdate, Dr as resolveDbPostsCidRefs, Dt as parseJsonWithPKCErrorIfFails, Er as refreshCommunitiesList, Fn as verifyCommentModeration, Fr as n$4, Gn as getAuthorNameFromWire, Hn as buildRuntimeAuthor, In as verifyCommentPubsubMessage, Ln as verifyCommentUpdate, Lr as t$9, Mr as r$2, N as MAX_PAGE_SIZE_BYTES, Nn as verifyCommentEdit, Nr as t$8, Pn as verifyCommentIpfs, Pr as n$5, Q as collectSchemaRowCoercions, Rn as verifyCommunity, Rr as stringify, S as MAX_FILE_SIZE_BYTES_FOR_COMMUNITY_IPFS, Sr as importSignerIntoKuboNode, Tn as signCommunity, Tr as moveCommunityDbToDeletedDirectory, Un as cleanWireAuthor, Ur as STORAGE_KEYS, Vn as verifyVote, W as pLimit, Wr as require_lodash_merge, X as coerceSchemaRowBoolean, Xn as crosspostChainDepthUpTo, Z as coerceSchemaRowJson, Zn as effectiveMaxCrosspostDepth, _ as createAuthorIdentityMatcher, _n as signChallengeMessage, _r as deriveDbPosts, a as generatePagesReportingFailedSorts, b as KeyvBetterSqlite3, bn as signComment, c as resolvePageSortsOrThrow, cr as getPKCAddressFromPublicKeySync, d as getChallengeVerification, dn as decryptEd25519AesGcmPublicKeyBuffer, dr as backupCommunityDb, dt as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, er as getCommunityNameFromWire, f as getCommunityChallengeFromCommunityChallengeSettings, fr as calculateExpectedSignatureSize, g as authorNameResolveFailureReason, gr as deriveCommentIpfsFromCommentTableRow, h as authorIdentityMatcherForRequest, hn as cleanUpBeforePublishing, hr as deleteOldCommunityInWindows, i as derivePublicPageSorts, ir as encode, j as iterateOverPageCidsToFindAllCids, jn as verifyChallengeRequest, jr as t$11, kn as verifyChallengeAnswer, lr as getPublicKeyFromPrivateKey, m as pkcJsChallenges, mn as _validateSignatureOfPKCRecord, o as loadPageSortsForStartedCommunity, or as getIpfsKeyFromPrivateKey, p as loadChallengeFileFromCommunityChallengeSettings, pn as encryptEd25519AesGcmPublicKeyBuffer, pr as calculateInlineRepliesBudget, pt as parseCommunityIpfsSchemaPassthroughWithPKCErrorIfItFails, r as computePageSortsFingerprint, rr as decode, s as lookupPageSortFactories, sn as SignerWithPublicKeyAddress, sr as getPKCAddressFromPublicKey, t as RpcLocalCommunity, tr as getCommunityPublicKeyFromWire, u as deriveCommunityChallengesOrThrow, ur as BackupAbortError, v as TrackedInstanceRegistry, vr as deriveDbReplies, w as TIMEFRAMES_TO_SECONDS, wn as signCommentUpdateForChallengeVerification, wt as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, xn as signCommentEdit, xr as getThumbnailPropsOfLink, y as LRUCache, yn as signChallengeVerification, yr as getDefaultCommunityDbConfig, zn as verifyCommunityEdit } from "./rpc-local-community-BqP9g2Rk.js";
4
+ import { a as scorePageCommentsWithFile, i as partitionPageCommentsForSort, n as filterRepliesForPageSort, o as stripRepliesFromPageComment, r as orderPageCommentsByScore, t as createDescendantsLookup } from "./page-sort-scoring-Civ7TOoF.js";
5
5
  import { randomFillSync, randomUUID } from "node:crypto";
6
6
  import { fileURLToPath, pathToFileURL } from "node:url";
7
- import Path from "node:path";
7
+ import path from "node:path";
8
8
  import os from "os";
9
9
  import { existsSync, promises } from "node:fs";
10
- import path from "path";
10
+ import path$1 from "path";
11
11
  import assert from "assert";
12
12
  import { Buffer as Buffer$1 } from "buffer";
13
13
  import fs from "fs";
@@ -1692,15 +1692,15 @@ async function throwIfChallengeSettingsAreInvalid({ challengeSettings, pkc, comm
1692
1692
  const processStartedCommunities = new TrackedInstanceRegistry();
1693
1693
  function normalizeRegistryDataPath(dataPath) {
1694
1694
  if (dataPath === void 0) return void 0;
1695
- const resolved = path.resolve(dataPath);
1695
+ const resolved = path$1.resolve(dataPath);
1696
1696
  let existing = resolved;
1697
1697
  let tail = "";
1698
1698
  while (true) try {
1699
- return path.join(fs.realpathSync.native(existing), tail);
1699
+ return path$1.join(fs.realpathSync.native(existing), tail);
1700
1700
  } catch {
1701
- const parent = path.dirname(existing);
1701
+ const parent = path$1.dirname(existing);
1702
1702
  if (parent === existing) return resolved;
1703
- tail = path.join(path.basename(existing), tail);
1703
+ tail = path$1.join(path$1.basename(existing), tail);
1704
1704
  existing = parent;
1705
1705
  }
1706
1706
  }
@@ -1872,7 +1872,6 @@ var PageGenerator = class {
1872
1872
  const ipfsClient = this._community._clientsManager.getDefaultKuboRpcClient();
1873
1873
  const listOfPage = new Array(chunks.length);
1874
1874
  const cids = new Array(chunks.length);
1875
- let expectedSize = MB * Math.pow(2, chunks.length - 1);
1876
1875
  for (let i = chunks.length - 1; i >= 0; i--) {
1877
1876
  const modQueuePageIpfs = {
1878
1877
  nextCid: cids[i + 1],
@@ -1887,6 +1886,7 @@ var PageGenerator = class {
1887
1886
  provideOptions: { recursive: true },
1888
1887
  provideInBackground: true
1889
1888
  });
1889
+ const expectedSize = Math.min(MB * Math.pow(2, i), MAX_PAGE_SIZE_BYTES);
1890
1890
  if (addRes.size > expectedSize) throw new PKCError("ERR_PAGE_GENERATED_IS_OVER_EXPECTED_SIZE", {
1891
1891
  addRes,
1892
1892
  pageIpfs: modQueuePageIpfs,
@@ -1896,7 +1896,6 @@ var PageGenerator = class {
1896
1896
  });
1897
1897
  cids[i] = addRes.path;
1898
1898
  listOfPage[i] = modQueuePageIpfs;
1899
- expectedSize = expectedSize / 2;
1900
1899
  }
1901
1900
  return {
1902
1901
  pages: listOfPage,
@@ -1908,7 +1907,7 @@ var PageGenerator = class {
1908
1907
  const cids = new Array(chunks.length);
1909
1908
  for (let pageNum = chunks.length - 1; pageNum >= (embedFirst ? 1 : 0); pageNum--) {
1910
1909
  const nextCid = cids[pageNum + 1];
1911
- const maximumPageSize = MB * Math.pow(2, embedFirst ? Math.max(pageNum - 1, 0) : pageNum);
1910
+ const maximumPageSize = Math.min(MB * Math.pow(2, embedFirst ? Math.max(pageNum - 1, 0) : pageNum), MAX_PAGE_SIZE_BYTES);
1912
1911
  const entries = chunks[pageNum];
1913
1912
  const entrySizes = entries.map(serialized.sizeOf);
1914
1913
  const calculatedSize = pageDagSize(entrySizes, nextCid !== void 0);
@@ -1972,7 +1971,7 @@ var PageGenerator = class {
1972
1971
  let currentChunk = [];
1973
1972
  let chunkIndex = 0;
1974
1973
  let accumulatedSize = OBJECT_WRAPPER_WITH_CID;
1975
- const getCurrentMaxSize = (index) => index === 0 ? FIRST_PAGE_SIZE : MB * Math.pow(2, index - 1);
1974
+ const getCurrentMaxSize = (index) => index === 0 ? FIRST_PAGE_SIZE : Math.min(MB * Math.pow(2, index - 1), MAX_PAGE_SIZE_BYTES);
1976
1975
  for (let i = 0; i < comments.length; i++) {
1977
1976
  const commentSize = calculateUnixFsDagSizeCidV0(entryBytes[i]);
1978
1977
  const maxSize = getCurrentMaxSize(chunkIndex);
@@ -3081,9 +3080,9 @@ var DbHandler = class {
3081
3080
  if (needToMigrate) {
3082
3081
  if (dbExistsAlready && currentDbVersion > 0) {
3083
3082
  this.destoryConnection();
3084
- backupDbPath = path.join(path.dirname(dbPath), ".backup_before_migration", `${path.basename(dbPath)}.${currentDbVersion}.${timestamp()}`);
3085
- log(`Copying db ${path.basename(dbPath)} to ${backupDbPath} before migration`);
3086
- if (!fs.existsSync(path.dirname(backupDbPath))) await fs.promises.mkdir(path.dirname(backupDbPath), { recursive: true });
3083
+ backupDbPath = path$1.join(path$1.dirname(dbPath), ".backup_before_migration", `${path$1.basename(dbPath)}.${currentDbVersion}.${timestamp()}`);
3084
+ log(`Copying db ${path$1.basename(dbPath)} to ${backupDbPath} before migration`);
3085
+ if (!fs.existsSync(path$1.dirname(backupDbPath))) await fs.promises.mkdir(path$1.dirname(backupDbPath), { recursive: true });
3087
3086
  const sourceDb = new Database(dbPath, { fileMustExist: true });
3088
3087
  await sourceDb.backup(backupDbPath);
3089
3088
  sourceDb.close();
@@ -5182,10 +5181,10 @@ var DbHandler = class {
5182
5181
  if (this._db || this._keyv) await this.destoryConnection();
5183
5182
  this._transactionDepth = 0;
5184
5183
  const dataPath = this._community._pkc.dataPath;
5185
- const oldPathString = path.join(dataPath, "communities", oldDbName);
5186
- const newPathString = path.join(dataPath, "communities", newDbName);
5187
- await fs.promises.mkdir(path.dirname(oldPathString), { recursive: true });
5188
- await fs.promises.mkdir(path.dirname(newPathString), { recursive: true });
5184
+ const oldPathString = path$1.join(dataPath, "communities", oldDbName);
5185
+ const newPathString = path$1.join(dataPath, "communities", newDbName);
5186
+ await fs.promises.mkdir(path$1.dirname(oldPathString), { recursive: true });
5187
+ await fs.promises.mkdir(path$1.dirname(newPathString), { recursive: true });
5189
5188
  try {
5190
5189
  if (!fs.existsSync(oldPathString)) log(`Old DB file ${oldPathString} does not exist. Cannot backup/rename.`);
5191
5190
  else {
@@ -5207,8 +5206,8 @@ var DbHandler = class {
5207
5206
  }
5208
5207
  async lockCommunityStart(communityAddress = this._community.address) {
5209
5208
  const log = logger_default("pkc-js:local-community:db-handler:lock:start");
5210
- const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
5211
- const communityDbPath = path.join(this._community._pkc.dataPath, "communities", communityAddress);
5209
+ const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
5210
+ const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", communityAddress);
5212
5211
  try {
5213
5212
  await import_src.default.lock(communityDbPath, {
5214
5213
  lockfilePath,
@@ -5229,8 +5228,8 @@ var DbHandler = class {
5229
5228
  async unlockCommunityStart(communityAddress = this._community.address) {
5230
5229
  const log = logger_default("pkc-js:local-community:db-handler:unlock:start");
5231
5230
  log.trace(`Attempting to unlock the start of community (${communityAddress})`);
5232
- const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
5233
- const communityDbPath = path.join(this._community._pkc.dataPath, "communities", communityAddress);
5231
+ const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
5232
+ const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", communityAddress);
5234
5233
  if (!fs.existsSync(lockfilePath) || !fs.existsSync(communityDbPath)) return;
5235
5234
  try {
5236
5235
  await import_src.default.unlock(communityDbPath, { lockfilePath });
@@ -5241,8 +5240,8 @@ var DbHandler = class {
5241
5240
  }
5242
5241
  }
5243
5242
  async isCommunityStartLocked(communityAddress = this._community.address) {
5244
- const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
5245
- const communityDbPath = path.join(this._community._pkc.dataPath, "communities", communityAddress);
5243
+ const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
5244
+ const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", communityAddress);
5246
5245
  return await import_src.default.check(communityDbPath, {
5247
5246
  lockfilePath,
5248
5247
  realpath: false,
@@ -5251,8 +5250,8 @@ var DbHandler = class {
5251
5250
  }
5252
5251
  async lockCommunityState() {
5253
5252
  const log = logger_default("pkc-js:local-community:db-handler:lock:lockCommunityState");
5254
- const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${this._community.address}.state.lock`);
5255
- const communityDbPath = path.join(this._community._pkc.dataPath, "communities", this._community.address);
5253
+ const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${this._community.address}.state.lock`);
5254
+ const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", this._community.address);
5256
5255
  try {
5257
5256
  await import_src.default.lock(communityDbPath, {
5258
5257
  lockfilePath,
@@ -5269,8 +5268,8 @@ var DbHandler = class {
5269
5268
  }
5270
5269
  async unlockCommunityState() {
5271
5270
  const log = logger_default("pkc-js:local-community:db-handler:lock:unlockCommunityState");
5272
- const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${this._community.address}.state.lock`);
5273
- const communityDbPath = path.join(this._community._pkc.dataPath, "communities", this._community.address);
5271
+ const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${this._community.address}.state.lock`);
5272
+ const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", this._community.address);
5274
5273
  if (!fs.existsSync(lockfilePath)) return;
5275
5274
  try {
5276
5275
  await import_src.default.unlock(communityDbPath, { lockfilePath });
@@ -5280,7 +5279,7 @@ var DbHandler = class {
5280
5279
  }
5281
5280
  }
5282
5281
  communityDbExists() {
5283
- const communityDbPath = path.join(this._community._pkc.dataPath, "communities", this._community.address);
5282
+ const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", this._community.address);
5284
5283
  return fs.existsSync(communityDbPath);
5285
5284
  }
5286
5285
  markCommentsAsPublishedToPostUpdates(commentCids) {
@@ -8361,11 +8360,11 @@ async function edit(community, newCommunityOptions) {
8361
8360
  const EXPORTS_KEY = STORAGE_KEYS[STORAGE_KEYS.EXPORTS];
8362
8361
  function defaultExportPathFor(community, exportId) {
8363
8362
  if (typeof community._pkc.dataPath !== "string") throw new PKCError("ERR_DATA_PATH_IS_NOT_DEFINED", { communityAddress: community.address });
8364
- return Path.join(community._pkc.dataPath, "exports", `${exportId}.sqlite`);
8363
+ return path.join(community._pkc.dataPath, "exports", `${exportId}.sqlite`);
8365
8364
  }
8366
8365
  function sourceDbPathFor(community) {
8367
8366
  if (typeof community._pkc.dataPath !== "string") throw new PKCError("ERR_DATA_PATH_IS_NOT_DEFINED", { communityAddress: community.address });
8368
- return Path.join(community._pkc.dataPath, "communities", community.address);
8367
+ return path.join(community._pkc.dataPath, "communities", community.address);
8369
8368
  }
8370
8369
  async function persistExports(community) {
8371
8370
  if (!community._dbHandler) return;
@@ -8441,9 +8440,9 @@ async function runExportTask(community, exportId, opts) {
8441
8440
  async function exportCommunityEmbedded(community, options = {}) {
8442
8441
  if (options.signal?.aborted) throw options.signal.reason ?? new DOMException("The operation was aborted.", "AbortError");
8443
8442
  const exportId = v4();
8444
- const destPath = options.exportPath ? Path.resolve(options.exportPath) : defaultExportPathFor(community, exportId);
8443
+ const destPath = options.exportPath ? path.resolve(options.exportPath) : defaultExportPathFor(community, exportId);
8445
8444
  const includePrivateKey = options.includePrivateKey === true;
8446
- if (Path.resolve(destPath) === Path.resolve(sourceDbPathFor(community))) throw new PKCError("ERR_EXPORT_PATH_TARGETS_LIVE_DB", {
8445
+ if (path.resolve(destPath) === path.resolve(sourceDbPathFor(community))) throw new PKCError("ERR_EXPORT_PATH_TARGETS_LIVE_DB", {
8447
8446
  communityAddress: community.address,
8448
8447
  exportPath: destPath
8449
8448
  });
@@ -1,7 +1,7 @@
1
1
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-2rV9d50f.js";
2
- import { $ as retryKuboIpfsAddAndProvide, At as ChallengeAnswerMessageSchema, C as hideClassPrivateProps, D as isIpfsCid, Dt as require_sha256, E as isAbortError, Et as untrackUpdatingCommunity, H as rejectWhenAbortSignalFires, Hr as setErrorMap, It as ChallengeVerificationMessageSchema, J as removeUndefinedValuesRecursively, Jt as version_default, Lr as PKCError, Mr as FailedToFetchCommentIpfsFromGatewaysError, Mt as ChallengeMessageSchema, Nn as CommentIpfsSchema, Nr as FailedToFetchCommentUpdateFromGatewaysError, Ot as TimeoutError, Pt as ChallengeRequestMessageSchema, Q as retryKuboIpfsAdd, Rn as CommentUpdateForChallengeVerificationSchema, Rr as messages, Sr as e$1, St as trackUpdatingComment, T as ipnsNameToIpnsOverPubsubTopic, Tt as untrackUpdatingComment, U as rejectWhenCommunityStopsOrAborts, Vn as CommentUpdateSchema, X as resolveWhenPredicateIsTrue, Y as replaceXWithY, _t as listUpdatingCommunities, a as calculateStringSizeSameAsIpfsAddCidV0Sync, at as timestamp, br as t$1, cn as CommunityAnchorSchema, d as deepMergeRuntimeFields, dt as findStartedCommunity, et as shortifyAddress, ft as findUpdatingComment, gr as n$2, gt as listUpdatingComments, ht as listStartedCommunities, i as calculateStringSizeSameAsIpfsAddCidV0, it as throwIfAbortSignalAborted, jr as require_retry, k as isIpns, kt as pTimeout, ni as en_default, nt as sleepUntilTimeoutOrAbort, ot as waitForUpdateInCommunityInstanceWithErrorAndTimeout, p as doesDomainAddressHaveCapitalLetter, pn as CommunityIpfsSchema, pt as findUpdatingCommunity, r as calculateIpfsCidV0, t as areEquivalentCommunityAddresses, tt as shortifyCid, u as createAbortError, vr as n$1, vt as refreshTrackedCommentAliases, wn as isStringDomain, wr as r, x as getPostUpdateTimestampRange, xn as PubsubTopicSchema, xr as e, zr as logger_default } from "./util-PGPkG-gU.js";
3
- import { $ as parseCidStringSchemaWithPKCErrorIfItFails, $n as getCommunityNameFromWire, $t as RpcPublishedAnchorRecordResultSchema, A as findCommentInParsedPages, At as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, B as InflightFetchManager, Bn as verifyVote, Br as NAME_RESOLVED_TRUE_TTL_MS, Bt as RpcEditCommunityParamSchema, C as RepliesPages, Cr as monitorCommunitiesDirectory, Ct as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, D as extractCommunityRuntimeFieldsFromParsedPages, Dn as signVote, Dr as setNativeFunctions$1, Dt as parsePKCUserOptionsSchemaWithPKCErrorIfItFails, En as signCommunityList, Et as parseJsonWithPKCErrorIfFails, F as collectCrosspostAuthorsToResolve, Fn as verifyCommentPubsubMessage, Fr as t$2, Ft as RpcCancelExportParamSchema, G as decodeRpcChallengeAnswerPubsubMsg, Gn as normalizeCreatePublicationAuthor, Gr as require_undici, Gt as RpcFetchCidParamSchema, Hn as cleanWireAuthor, Ht as RpcExportCommunityModLogsResultSchema, In as verifyCommentUpdate, Ir as t$4, It as RpcCidParamSchema, J as decodeRpcChallengeVerificationPubsubMsg, Jn as MAX_COMMUNITY_LIST_SIZE_BYTES, Jt as RpcFetchCommunityListResultSchema, K as decodeRpcChallengePubsubMsg, Kn as CreateCommunityListWithCidOptionsSchema, Kt as RpcFetchCidResultSchema, L as stripNameResolvedFromCrosspost, Lt as RpcCommentRepliesPageParamSchema, M as parseRawPages, Mn as verifyCommentEdit, Mr as t$3, Mt as parseVotePubsubMessagePublicationSchemaWithPKCErrorIfItFails, N as applyNameResolvedCacheToCrosspost, Nn as verifyCommentIpfs, Nr as n$3, Nt as RpcAnchorPublishPreparationResultSchema, O as findCommentInPageInstance, Or as tryToDeleteCommunitiesThatFailedToBeDeletedBefore, Ot as parseRpcCommentEventWithPKCErrorIfItFails, P as cloneCrosspostForRuntime, Pn as verifyCommentModeration, Pt as RpcAuthorNameParamSchema, Qn as getCommunityAddressFromRecord, Qt as RpcPublishCommunityListResultSchema, R as PKCClientsManager, Rn as verifyCommunityEdit, Rr as MAX_FILE_SIZE_BYTES_FOR_COMMENT_UPDATE, Rt as RpcCommunityIdentifierParamSchema, Sr as listCommunitiesSync, St as parseCreateVoteOptionsSchemaWithPKCErrorIfItFails, Tn as signCommunityEdit, Tt as parseDecryptedChallengeWithPKCErrorIfItFails, Un as getAuthorNameFromRuntime, Ut as RpcExportCommunityParamSchema, V as InflightResourceTypes, Vn as buildRuntimeAuthor, Vr as NAME_RESOLVE_FAILED_RETRY_FLOOR_MS, Vt as RpcExportCommunityModLogsParamSchema, W as PKCTypedEmitter, Wn as getAuthorNameFromWire, Wr as nativeFunctions$2, Wt as RpcExportCommunityResultSchema, Xt as RpcPublishChallengeAnswersParamSchema, Yt as RpcPublishAnchorRecordParamSchema, Zn as buildRuntimeCommunityFields, Zt as RpcPublishCommunityListParamSchema, _n as signChallengeRequest, _t as parseCreateCommunityEditPublicationOptionsSchemaWithPKCErrorIfItFails, an as require_lib$1, at as parseCommentModerationPubsubMessagePublicationSchemaWithPKCErrorIfItFails, b as KeyvBetterSqlite3, bn as signCommentEdit, bt as parseCreateRemoteCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, cn as createAnchorIpnsRecord$1, ct as parseCommunityAddressWithPKCErrorIfItFails, dn as encryptEd25519AesGcm, dt as parseCommunityEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, en as RpcResolveAuthorNameResultSchema, er as getCommunityPublicKeyFromWire, gt as parseCreateCommentOptionsSchemaWithPKCErrorIfItFails, hn as signChallengeAnswer, ht as parseCreateCommentModerationOptionsSchemaWithPKCErrorIfItFails, in as findCommunityRecordNameMismatch, ir as getBufferedPKCAddressFromPublicKey, jn as verifyChallengeVerification, k as findCommentInPageInstanceRecursively, kn as verifyChallengeMessage, kr as t$5, kt as parseRpcCommentUpdateEventWithPKCErrorIfItFails, l as pkcJsPageSorts, ln as decryptEd25519AesGcm, m as pkcJsChallenges, mn as cleanUpBeforePublishing, mt as parseCreateCommentEditOptionsSchemaWithPKCErrorIfItFails, n as RpcRemoteCommunity, nn as RpcSuccessResultSchema, nr as decode, nt as parseCommentEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, ot as parseCommentPubsubMessagePublicationWithPKCErrorIfItFails, pr as createKuboRpcClient, pt as parseCommunityListSchemaWithPKCErrorIfItFails, q as decodeRpcChallengeRequestPubsubMsg, qn as CreateNewCommunityListOptionsSchema, qt as RpcFetchCommunityListParamSchema, rn as RpcUnsubscribeParamSchema, rt as parseCommentIpfsSchemaWithPKCErrorIfItFails, sn as createSigner, sr as getPKCAddressFromPublicKeySync, st as parseCommentUpdateSchemaWithPKCErrorIfItFails, t as RpcLocalCommunity, tn as RpcSubscriptionIdResultSchema, tr as normalizeCommunityInputFromCommunity, v as TrackedInstanceRegistry, wt as parseDecryptedChallengeVerification, x as RemoteCommunity, xn as signCommentModeration, xt as parseCreateRpcCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, y as LRUCache, yn as signComment, yr as getDefaultDataPath, z as GenericStateClient, zn as verifyCommunityList, zr as NAME_RESOLVED_FALSE_TTL_MS, zt as RpcCommunityPageParamSchema } from "./rpc-local-community-DOcUqswi.js";
4
- import { s as getHeliaDebugContext } from "./util-DNYbha6W.js";
2
+ import { $ as retryKuboIpfsAddAndProvide, At as ChallengeAnswerMessageSchema, C as hideClassPrivateProps, D as isIpfsCid, Dt as require_sha256, E as isAbortError, Et as untrackUpdatingCommunity, H as rejectWhenAbortSignalFires, Hr as setErrorMap, It as ChallengeVerificationMessageSchema, J as removeUndefinedValuesRecursively, Jt as version_default, Lr as PKCError, Mr as FailedToFetchCommentIpfsFromGatewaysError, Mt as ChallengeMessageSchema, Nn as CommentIpfsSchema, Nr as FailedToFetchCommentUpdateFromGatewaysError, Ot as TimeoutError, Pt as ChallengeRequestMessageSchema, Q as retryKuboIpfsAdd, Rn as CommentUpdateForChallengeVerificationSchema, Rr as messages, Sr as e$1, St as trackUpdatingComment, T as ipnsNameToIpnsOverPubsubTopic, Tt as untrackUpdatingComment, U as rejectWhenCommunityStopsOrAborts, Vn as CommentUpdateSchema, X as resolveWhenPredicateIsTrue, Y as replaceXWithY, _t as listUpdatingCommunities, a as calculateStringSizeSameAsIpfsAddCidV0Sync, at as timestamp, br as t$1, cn as CommunityAnchorSchema, d as deepMergeRuntimeFields, dt as findStartedCommunity, et as shortifyAddress, ft as findUpdatingComment, gr as n$2, gt as listUpdatingComments, ht as listStartedCommunities, i as calculateStringSizeSameAsIpfsAddCidV0, it as throwIfAbortSignalAborted, jr as require_retry, k as isIpns, kt as pTimeout, ni as en_default, nt as sleepUntilTimeoutOrAbort, ot as waitForUpdateInCommunityInstanceWithErrorAndTimeout, p as doesDomainAddressHaveCapitalLetter, pn as CommunityIpfsSchema, pt as findUpdatingCommunity, r as calculateIpfsCidV0, t as areEquivalentCommunityAddresses, tt as shortifyCid, u as createAbortError, vr as n$1, vt as refreshTrackedCommentAliases, wn as isStringDomain, wr as r, x as getPostUpdateTimestampRange, xn as PubsubTopicSchema, xr as e, zr as logger_default } from "./util-VrWyIc1x.js";
3
+ import { $n as getCommunityAddressFromRecord, $t as RpcPublishCommunityListResultSchema, A as findCommentInParsedPages, An as verifyChallengeMessage, Ar as t$5, At as parseRpcCommentUpdateEventWithPKCErrorIfItFails, B as GenericStateClient, Bn as verifyCommunityList, Br as NAME_RESOLVED_FALSE_TTL_MS, Bt as RpcCommunityPageParamSchema, C as RepliesPages, Cr as listCommunitiesSync, Ct as parseCreateVoteOptionsSchemaWithPKCErrorIfItFails, D as extractCommunityRuntimeFieldsFromParsedPages, Dn as signCommunityList, Dt as parseJsonWithPKCErrorIfFails, En as signCommunityEdit, Et as parseDecryptedChallengeWithPKCErrorIfItFails, F as cloneCrosspostForRuntime, Fn as verifyCommentModeration, Ft as RpcAuthorNameParamSchema, G as PKCTypedEmitter, Gn as getAuthorNameFromWire, Gr as nativeFunctions$2, Gt as RpcExportCommunityResultSchema, H as InflightResourceTypes, Hn as buildRuntimeAuthor, Hr as NAME_RESOLVE_FAILED_RETRY_FLOOR_MS, Ht as RpcExportCommunityModLogsParamSchema, I as collectCrosspostAuthorsToResolve, In as verifyCommentPubsubMessage, Ir as t$2, It as RpcCancelExportParamSchema, J as decodeRpcChallengeRequestPubsubMsg, Jn as CreateNewCommunityListOptionsSchema, Jt as RpcFetchCommunityListParamSchema, K as decodeRpcChallengeAnswerPubsubMsg, Kn as normalizeCreatePublicationAuthor, Kr as require_undici, Kt as RpcFetchCidParamSchema, Ln as verifyCommentUpdate, Lr as t$4, Lt as RpcCidParamSchema, M as parseRawPages, Mn as verifyChallengeVerification, Nn as verifyCommentEdit, Nr as t$3, Nt as parseVotePubsubMessagePublicationSchemaWithPKCErrorIfItFails, O as findCommentInPageInstance, On as signVote, Or as setNativeFunctions$1, Ot as parsePKCUserOptionsSchemaWithPKCErrorIfItFails, P as applyNameResolvedCacheToCrosspost, Pn as verifyCommentIpfs, Pr as n$3, Pt as RpcAnchorPublishPreparationResultSchema, Qn as buildRuntimeCommunityFields, Qt as RpcPublishCommunityListParamSchema, R as stripNameResolvedFromCrosspost, Rt as RpcCommentRepliesPageParamSchema, Sn as signCommentModeration, St as parseCreateRpcCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, Tt as parseDecryptedChallengeVerification, Un as cleanWireAuthor, Ut as RpcExportCommunityModLogsResultSchema, V as InflightFetchManager, Vn as verifyVote, Vr as NAME_RESOLVED_TRUE_TTL_MS, Vt as RpcEditCommunityParamSchema, Wn as getAuthorNameFromRuntime, Wt as RpcExportCommunityParamSchema, Xt as RpcPublishAnchorRecordParamSchema, Y as decodeRpcChallengeVerificationPubsubMsg, Yn as MAX_COMMUNITY_LIST_SIZE_BYTES, Yt as RpcFetchCommunityListResultSchema, Zt as RpcPublishChallengeAnswersParamSchema, _t as parseCreateCommentOptionsSchemaWithPKCErrorIfItFails, an as findCommunityRecordNameMismatch, ar as getBufferedPKCAddressFromPublicKey, b as KeyvBetterSqlite3, bn as signComment, br as getDefaultDataPath, cn as createSigner, cr as getPKCAddressFromPublicKeySync, ct as parseCommentUpdateSchemaWithPKCErrorIfItFails, en as RpcPublishedAnchorRecordResultSchema, er as getCommunityNameFromWire, et as parseCidStringSchemaWithPKCErrorIfItFails, fn as encryptEd25519AesGcm, ft as parseCommunityEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, gn as signChallengeAnswer, gt as parseCreateCommentModerationOptionsSchemaWithPKCErrorIfItFails, hn as cleanUpBeforePublishing, ht as parseCreateCommentEditOptionsSchemaWithPKCErrorIfItFails, in as RpcUnsubscribeParamSchema, it as parseCommentIpfsSchemaWithPKCErrorIfItFails, jt as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, k as findCommentInPageInstanceRecursively, kr as tryToDeleteCommunitiesThatFailedToBeDeletedBefore, kt as parseRpcCommentEventWithPKCErrorIfItFails, l as pkcJsPageSorts, ln as createAnchorIpnsRecord$1, lt as parseCommunityAddressWithPKCErrorIfItFails, m as pkcJsChallenges, mr as createKuboRpcClient, mt as parseCommunityListSchemaWithPKCErrorIfItFails, n as RpcRemoteCommunity, nn as RpcSubscriptionIdResultSchema, nr as normalizeCommunityInputFromCommunity, on as require_lib$1, ot as parseCommentModerationPubsubMessagePublicationSchemaWithPKCErrorIfItFails, q as decodeRpcChallengePubsubMsg, qn as CreateCommunityListWithCidOptionsSchema, qt as RpcFetchCidResultSchema, rn as RpcSuccessResultSchema, rr as decode, rt as parseCommentEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, st as parseCommentPubsubMessagePublicationWithPKCErrorIfItFails, t as RpcLocalCommunity, tn as RpcResolveAuthorNameResultSchema, tr as getCommunityPublicKeyFromWire, un as decryptEd25519AesGcm, v as TrackedInstanceRegistry, vn as signChallengeRequest, vt as parseCreateCommunityEditPublicationOptionsSchemaWithPKCErrorIfItFails, wr as monitorCommunitiesDirectory, wt as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, x as RemoteCommunity, xn as signCommentEdit, xt as parseCreateRemoteCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, y as LRUCache, z as PKCClientsManager, zn as verifyCommunityEdit, zr as MAX_FILE_SIZE_BYTES_FOR_COMMENT_UPDATE, zt as RpcCommunityIdentifierParamSchema } from "./rpc-local-community-BqP9g2Rk.js";
4
+ import { s as getHeliaDebugContext } from "./util-D5Y6i3Nn.js";
5
5
  import path from "path";
6
6
  import assert from "assert";
7
7
  import fs from "fs";
@@ -8669,7 +8669,7 @@ var PKC$1 = class extends PKCTypedEmitter {
8669
8669
  this.clients.libp2pJsClients = {};
8670
8670
  if (!this.libp2pJsClientsOptions) return;
8671
8671
  if (!this.httpRoutersOptions) throw Error("httpRoutersOptions is required for libp2pJsClient");
8672
- const { createLibp2pJsClientOrUseExistingOne } = await import("./helia-for-pkc-vQZvQcs_.js");
8672
+ const { createLibp2pJsClientOrUseExistingOne } = await import("./helia-for-pkc-BsXEDYPa.js");
8673
8673
  for (const clientOptions of this.libp2pJsClientsOptions) {
8674
8674
  const heliaNode = await createLibp2pJsClientOrUseExistingOne({
8675
8675
  ...clientOptions,
@@ -9033,7 +9033,7 @@ var PKC$1 = class extends PKCTypedEmitter {
9033
9033
  const log = logger_default("pkc-js:pkc:createLocalCommunity");
9034
9034
  log.trace("Received community options to create a local community instance:", options);
9035
9035
  if (!this._canCreateNewLocalCommunity()) throw new PKCError("ERR_CAN_NOT_CREATE_A_LOCAL_COMMUNITY", { pkcOptions: this._userPKCOptions });
9036
- const { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb } = await import("./local-community-dcM1R3k5.js");
9036
+ const { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb } = await import("./local-community-FekHR-fd.js");
9037
9037
  const isLocalCommunity = (await listCommunitiesSync(this)).includes(options.address);
9038
9038
  const community = new LocalCommunity(this);
9039
9039
  if (isLocalCommunity) {
@@ -1,4 +1,4 @@
1
- import { bn as PageSortFileSchema, v as getEquivalentCommunityAddresses, wn as isStringDomain } from "./util-PGPkG-gU.js";
1
+ import { bn as PageSortFileSchema, v as getEquivalentCommunityAddresses, wn as isStringDomain } from "./util-VrWyIc1x.js";
2
2
  //#region dist/node/pages/page-sort-scoring.js
3
3
  function validatePageSortFile(rawFile) {
4
4
  const validated = PageSortFileSchema.parse(rawFile);
@@ -1,7 +1,7 @@
1
1
  import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } from "./chunk-2rV9d50f.js";
2
- import { $r as string, $t as CreateCommunityEditPublicationOptionsWithRefinementSchema, A as isIpnsPath, Ar as e$4, Bn as CommentUpdateReservedFields, Br as require_supports_color, C as hideClassPrivateProps, Cn as areEquivalentNames, Cr as t$11, Ct as trackUpdatingCommunity, D as isIpfsCid, Dn as VotePubsubMessagePublicationSchema, Dr as r$7, Dt as require_sha256$1, E as isAbortError, En as VoteChallengeRequestToEncryptSchema, Er as n$8, Et as untrackUpdatingCommunity, Fn as CommentPubsubMessageWithFlexibleAuthorRefinementSchema, Fr as FailedToFetchGenericIpfsFromGatewaysError, Ft as ChallengeRequestMessageSignedPropertyNames, Gn as CreateCommentOptionsWithRefinementSchema, Gr as boolean, Gt as PKCParsedOptionsSchema, Hn as CommentUpdateSignedPropertyNames, Ht as DecryptedChallengeVerificationSchema, In as CommentSignedPropertyNames, Ir as FailedToFetchPageIpfsFromGatewaysError, Jn as PageIpfsSchema, Jr as looseObject, K as removeNullUndefinedEmptyObjectsValuesRecursively, Kn as GetPageParamSchema, Kr as custom, Kt as PKCUserOptionBaseSchema, L as isRequestPubsubPublicationOfPost, Ln as CommentUpdateChallengeReservedFieldNames, Lr as PKCError, Lt as ChallengeVerificationMessageSignedPropertyNames, Mn as CommentIpfsReservedFields, Mr as FailedToFetchCommentIpfsFromGatewaysError, Nn as CommentIpfsSchema, Nr as FailedToFetchCommentUpdateFromGatewaysError, Nt as ChallengeMessageSignedPropertyNames, O as isIpfsPath, Or as t$10, Pr as FailedToFetchCommunityFromGatewaysError, Qn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Qr as record, Qt as CommunityEditPubsubMessagePublicationSchema, R as isRequestPubsubPublicationOfReply, Rr as messages, Rt as DecryptedChallengeAnswerSchema, S as hasTransientNetworkErrorCode, Sn as RpcRemoteCommunityUpdateEventResultSchema, Sr as e$5, T as ipnsNameToIpnsOverPubsubTopic, Tn as CreateVoteUserOptionsWithRefinementSchema, Tr as t$12, Ur as _enum, Ut as NameResolveCacheOptionsSchema, V as raceAgainstAbort, Vn as CommentUpdateSchema, Vr as require_ms$1, Vt as DecryptedChallengeSchema, Wr as array, Wt as NameResolverSerializedSchema, Xn as CommentEditChallengeRequestToEncryptSchema, Xr as object, Yn as isReservedObjectKey, Yr as number, Yt as CommunityEditPublicationChallengeRequestToEncryptSchema, Zr as preprocess, Zt as CommunityEditPublicationSignedPropertyNames, _n as CreateRpcCommunityFunctionArgumentSchema, an as CreateCommentModerationOptionsWithRefinementSchema, ar as AuthorPubsubSchema, at as timestamp, bn as PageSortFileSchema, br as t$13, cr as CidPathSchema, d as deepMergeRuntimeFields, dn as CommunityExportRecordsSchema, dr as CommunityAuthorChallengeReservedFieldNames, dt as findStartedCommunity, ei as union, en as CommentModerationChallengeRequestToEncryptSchema, er as CommentEditSignedPropertyNames, et as shortifyAddress, f as derivePublicationFromChallengeRequest, fn as CommunityIpfsReservedFields, fr as CreateSignerSchema, gn as CreateRemoteCommunityFunctionArgumentSchema, gr as n$9, h as fetchAndValidateIpnsRecordFromGateway, hn as CreateNewLocalCommunityUserOptionsSchema, hr as ProtocolVersionSchema, in as CommentModerationsTableRowSchema, ir as AuthorCommentIpfsReservedFields, it as throwIfAbortSignalAborted, jn as CommentChallengeRequestToEncryptSchema, jr as require_retry$1, jt as ChallengeAnswerMessageSignedPropertyNames, k as isIpns, kn as VoteSignedPropertyNames, kr as t$9, kt as pTimeout, ln as CommunityChallengeSettingSchema, lr as CidStringSchema, m as extractNetworkErrorDetails, mn as CommunitySignedPropertyNames, mr as PKCTimestampSchema, mt as forgetTrackedUpdatingCommunityName, nr as CreateCommentEditOptionsWithRefinementSchema, nt as sleepUntilTimeoutOrAbort, on as ChallengeFileFactorySchema, or as AuthorReservedFields, p as doesDomainAddressHaveCapitalLetter, pn as CommunityIpfsSchema, pr as JsonSignatureSchema, pt as findUpdatingCommunity, qn as ModQueuePageIpfsSchema, qr as literal, qt as PKCUserOptionsSchema, r as calculateIpfsCidV0, rn as CommentModerationSignedPropertyNames, rr as AuthorAddressSchema, sn as ChallengeFileSchema, sr as ChallengeAnswersSchema, t as areEquivalentCommunityAddresses, tn as CommentModerationPubsubMessagePublicationSchema, tt as shortifyCid, u as createAbortError, un as CommunityEditOptionsSchema, ur as CommunityAddressSchema, vn as ExportCommunityModLogsOptionsSchema, vr as n$10, w as interruptibleSleep, wn as isStringDomain, wr as r$8, wt as untrackStartedCommunity, xr as e$6, xt as trackStartedCommunity, yn as PageSortFileFactorySchema, yt as refreshTrackedCommunityAliases, z as pubsubTopicToDhtKey, zn as CommentUpdateForChallengeVerificationSignedPropertyNames, zr as logger_default } from "./util-PGPkG-gU.js";
2
+ import { $r as string, $t as CreateCommunityEditPublicationOptionsWithRefinementSchema, A as isIpnsPath, Ar as e$4, Bn as CommentUpdateReservedFields, Br as require_supports_color, C as hideClassPrivateProps, Cn as areEquivalentNames, Cr as t$11, Ct as trackUpdatingCommunity, D as isIpfsCid, Dn as VotePubsubMessagePublicationSchema, Dr as r$7, Dt as require_sha256$1, E as isAbortError, En as VoteChallengeRequestToEncryptSchema, Er as n$8, Et as untrackUpdatingCommunity, Fn as CommentPubsubMessageWithFlexibleAuthorRefinementSchema, Fr as FailedToFetchGenericIpfsFromGatewaysError, Ft as ChallengeRequestMessageSignedPropertyNames, Gn as CreateCommentOptionsWithRefinementSchema, Gr as boolean, Gt as PKCParsedOptionsSchema, Hn as CommentUpdateSignedPropertyNames, Ht as DecryptedChallengeVerificationSchema, In as CommentSignedPropertyNames, Ir as FailedToFetchPageIpfsFromGatewaysError, Jn as PageIpfsSchema, Jr as looseObject, K as removeNullUndefinedEmptyObjectsValuesRecursively, Kn as GetPageParamSchema, Kr as custom, Kt as PKCUserOptionBaseSchema, L as isRequestPubsubPublicationOfPost, Ln as CommentUpdateChallengeReservedFieldNames, Lr as PKCError, Lt as ChallengeVerificationMessageSignedPropertyNames, Mn as CommentIpfsReservedFields, Mr as FailedToFetchCommentIpfsFromGatewaysError, Nn as CommentIpfsSchema, Nr as FailedToFetchCommentUpdateFromGatewaysError, Nt as ChallengeMessageSignedPropertyNames, O as isIpfsPath, Or as t$10, Pr as FailedToFetchCommunityFromGatewaysError, Qn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Qr as record, Qt as CommunityEditPubsubMessagePublicationSchema, R as isRequestPubsubPublicationOfReply, Rr as messages, Rt as DecryptedChallengeAnswerSchema, S as hasTransientNetworkErrorCode, Sn as RpcRemoteCommunityUpdateEventResultSchema, Sr as e$5, T as ipnsNameToIpnsOverPubsubTopic, Tn as CreateVoteUserOptionsWithRefinementSchema, Tr as t$12, Ur as _enum, Ut as NameResolveCacheOptionsSchema, V as raceAgainstAbort, Vn as CommentUpdateSchema, Vr as require_ms$1, Vt as DecryptedChallengeSchema, Wr as array, Wt as NameResolverSerializedSchema, Xn as CommentEditChallengeRequestToEncryptSchema, Xr as object, Yn as isReservedObjectKey, Yr as number, Yt as CommunityEditPublicationChallengeRequestToEncryptSchema, Zr as preprocess, Zt as CommunityEditPublicationSignedPropertyNames, _n as CreateRpcCommunityFunctionArgumentSchema, an as CreateCommentModerationOptionsWithRefinementSchema, ar as AuthorPubsubSchema, at as timestamp, bn as PageSortFileSchema, br as t$13, cr as CidPathSchema, d as deepMergeRuntimeFields, dn as CommunityExportRecordsSchema, dr as CommunityAuthorChallengeReservedFieldNames, dt as findStartedCommunity, ei as union, en as CommentModerationChallengeRequestToEncryptSchema, er as CommentEditSignedPropertyNames, et as shortifyAddress, f as derivePublicationFromChallengeRequest, fn as CommunityIpfsReservedFields, fr as CreateSignerSchema, gn as CreateRemoteCommunityFunctionArgumentSchema, gr as n$9, h as fetchAndValidateIpnsRecordFromGateway, hn as CreateNewLocalCommunityUserOptionsSchema, hr as ProtocolVersionSchema, in as CommentModerationsTableRowSchema, ir as AuthorCommentIpfsReservedFields, it as throwIfAbortSignalAborted, jn as CommentChallengeRequestToEncryptSchema, jr as require_retry$1, jt as ChallengeAnswerMessageSignedPropertyNames, k as isIpns, kn as VoteSignedPropertyNames, kr as t$9, kt as pTimeout, ln as CommunityChallengeSettingSchema, lr as CidStringSchema, m as extractNetworkErrorDetails, mn as CommunitySignedPropertyNames, mr as PKCTimestampSchema, mt as forgetTrackedUpdatingCommunityName, nr as CreateCommentEditOptionsWithRefinementSchema, nt as sleepUntilTimeoutOrAbort, on as ChallengeFileFactorySchema, or as AuthorReservedFields, p as doesDomainAddressHaveCapitalLetter, pn as CommunityIpfsSchema, pr as JsonSignatureSchema, pt as findUpdatingCommunity, qn as ModQueuePageIpfsSchema, qr as literal, qt as PKCUserOptionsSchema, r as calculateIpfsCidV0, rn as CommentModerationSignedPropertyNames, rr as AuthorAddressSchema, sn as ChallengeFileSchema, sr as ChallengeAnswersSchema, t as areEquivalentCommunityAddresses, tn as CommentModerationPubsubMessagePublicationSchema, tt as shortifyCid, u as createAbortError, un as CommunityEditOptionsSchema, ur as CommunityAddressSchema, vn as ExportCommunityModLogsOptionsSchema, vr as n$10, w as interruptibleSleep, wn as isStringDomain, wr as r$8, wt as untrackStartedCommunity, xr as e$6, xt as trackStartedCommunity, yn as PageSortFileFactorySchema, yt as refreshTrackedCommunityAliases, z as pubsubTopicToDhtKey, zn as CommentUpdateForChallengeVerificationSignedPropertyNames, zr as logger_default } from "./util-VrWyIc1x.js";
3
3
  import { t as all } from "./src-CYIMjhjK.js";
4
- import { s as validatePageSortFile } from "./page-sort-scoring-BSBLegpC.js";
4
+ import { s as validatePageSortFile } from "./page-sort-scoring-Civ7TOoF.js";
5
5
  import { createHash } from "node:crypto";
6
6
  import { pathToFileURL } from "node:url";
7
7
  import dns from "node:dns";
@@ -124513,6 +124513,11 @@ function stripNameResolvedFromCrosspost(crosspost) {
124513
124513
  for (const level of _chainOf(crosspost)) if (level.comment.author?.nameResolved !== void 0) delete level.comment.author.nameResolved;
124514
124514
  }
124515
124515
  //#endregion
124516
+ //#region dist/node/pages/page-size.js
124517
+ const MiB = 1024 * 1024;
124518
+ const MAX_PAGE_SIZE_BYTES = 32 * MiB;
124519
+ const nextPageMaxSizeBytes = (pageMaxSizeBytes) => Math.min(pageMaxSizeBytes * 2, MAX_PAGE_SIZE_BYTES);
124520
+ //#endregion
124516
124521
  //#region dist/node/pages/util.js
124517
124522
  const TIMEFRAMES_TO_SECONDS = Object.freeze({
124518
124523
  HOUR: 3600,
@@ -124876,7 +124881,7 @@ async function iterateOverPageCidsToFindAllCids(opts) {
124876
124881
  };
124877
124882
  Array.from(new Set(Object.values(pages.pageCids ?? {}).filter((cid) => typeof cid === "string" && cid.length > 0))).forEach((cid) => enqueue(cid, FIRST_PAGE_MAX_FILE_SIZE_BYTES));
124878
124883
  const preloadedPages = "pages" in pages ? Object.values(pages.pages ?? {}) : [];
124879
- for (const preloadedPage of preloadedPages) if (typeof preloadedPage?.nextCid === "string" && preloadedPage.nextCid.length > 0) enqueue(preloadedPage.nextCid, FIRST_PAGE_MAX_FILE_SIZE_BYTES * 2);
124884
+ for (const preloadedPage of preloadedPages) if (typeof preloadedPage?.nextCid === "string" && preloadedPage.nextCid.length > 0) enqueue(preloadedPage.nextCid, nextPageMaxSizeBytes(FIRST_PAGE_MAX_FILE_SIZE_BYTES));
124880
124885
  const fetchPage = async (cid, maxSizeBytes) => {
124881
124886
  return parsePageIpfsSchemaWithPKCErrorIfItFails(parseJsonWithPKCErrorIfFails(await clientManager._fetchCidP2P(cid, {
124882
124887
  maxFileSizeBytes: maxSizeBytes,
@@ -124914,7 +124919,7 @@ async function iterateOverPageCidsToFindAllCids(opts) {
124914
124919
  visited.add(cid);
124915
124920
  queued.delete(cid);
124916
124921
  if (!page.nextCid || visited.has(page.nextCid)) continue;
124917
- const expectedNextPageSize = Math.max(maxSize * 2, FIRST_PAGE_MAX_FILE_SIZE_BYTES);
124922
+ const expectedNextPageSize = Math.max(nextPageMaxSizeBytes(maxSize), FIRST_PAGE_MAX_FILE_SIZE_BYTES);
124918
124923
  enqueue(page.nextCid, expectedNextPageSize);
124919
124924
  }
124920
124925
  }
@@ -125165,7 +125170,7 @@ var BasePagesClientsManager = class extends BaseClientsManager {
125165
125170
  }
125166
125171
  if (result.page.nextCid) {
125167
125172
  this.updatePageCidsToSortTypesToIncludeSubsequent(result.page.nextCid, pageCid);
125168
- this.updatePagesMaxSizeCache([result.page.nextCid], pageMaxSize * 2);
125173
+ this.updatePagesMaxSizeCache([result.page.nextCid], nextPageMaxSizeBytes(pageMaxSize));
125169
125174
  }
125170
125175
  return result;
125171
125176
  }
@@ -131628,4 +131633,4 @@ var RpcLocalCommunity = class extends RpcRemoteCommunity {
131628
131633
  }
131629
131634
  };
131630
131635
  //#endregion
131631
- export { parseCidStringSchemaWithPKCErrorIfItFails as $, getCommunityNameFromWire$1 as $n, RpcPublishedAnchorRecordResultSchema as $t, findCommentInParsedPages as A, verifyChallengeRequest as An, t$4 as Ar, parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails as At, InflightFetchManager as B, verifyVote as Bn, NAME_RESOLVED_TRUE_TTL_MS as Br, RpcEditCommunityParamSchema as Bt, RepliesPages as C, signCommentUpdateForChallengeVerification as Cn, monitorCommunitiesDirectory as Cr, parseDecryptedChallengeAnswerWithPKCErrorIfItFails as Ct, extractCommunityRuntimeFieldsFromParsedPages as D, signVote as Dn, setNativeFunctions as Dr, parsePKCUserOptionsSchemaWithPKCErrorIfItFails as Dt, buildPagesRuntimeFields as E, signCommunityList as En, resolveDbPostsCidRefs as Er, parseJsonWithPKCErrorIfFails as Et, collectCrosspostAuthorsToResolve as F, verifyCommentPubsubMessage as Fn, t$7 as Fr, RpcCancelExportParamSchema as Ft, decodeRpcChallengeAnswerPubsubMsg as G, normalizeCreatePublicationAuthor as Gn, require_undici as Gr, RpcFetchCidParamSchema as Gt, pRetry as H, cleanWireAuthor as Hn, STORAGE_KEYS as Hr, RpcExportCommunityModLogsResultSchema as Ht, extractCrosspostRuntimeFields as I, verifyCommentUpdate as In, t$8 as Ir, RpcCidParamSchema as It, decodeRpcChallengeVerificationPubsubMsg as J, MAX_COMMUNITY_LIST_SIZE_BYTES as Jn, RpcFetchCommunityListResultSchema as Jt, decodeRpcChallengePubsubMsg as K, CreateCommunityListWithCidOptionsSchema as Kn, RpcFetchCidResultSchema as Kt, stripNameResolvedFromCrosspost as L, verifyCommunity as Ln, stringify as Lr, RpcCommentRepliesPageParamSchema as Lt, parseRawPages as M, verifyCommentEdit as Mn, t$5 as Mr, parseVotePubsubMessagePublicationSchemaWithPKCErrorIfItFails as Mt, applyNameResolvedCacheToCrosspost as N, verifyCommentIpfs as Nn, n$5 as Nr, RpcAnchorPublishPreparationResultSchema as Nt, findCommentInPageInstance as O, verifyChallengeAnswer as On, tryToDeleteCommunitiesThatFailedToBeDeletedBefore as Or, parseRpcCommentEventWithPKCErrorIfItFails as Ot, cloneCrosspostForRuntime as P, verifyCommentModeration as Pn, n$6 as Pr, RpcAuthorNameParamSchema as Pt, createSchemaRowParser as Q, getCommunityAddressFromRecord as Qn, RpcPublishCommunityListResultSchema as Qt, PKCClientsManager as R, verifyCommunityEdit as Rn, MAX_FILE_SIZE_BYTES_FOR_COMMENT_UPDATE as Rr, RpcCommunityIdentifierParamSchema as Rt, MAX_FILE_SIZE_BYTES_FOR_COMMUNITY_IPFS as S, signCommentUpdate as Sn, listCommunitiesSync as Sr, parseCreateVoteOptionsSchemaWithPKCErrorIfItFails as St, buildPageRuntimeFields as T, signCommunityEdit as Tn, refreshCommunitiesList as Tr, parseDecryptedChallengeWithPKCErrorIfItFails as Tt, pLimit as U, getAuthorNameFromRuntime as Un, require_lodash_merge as Ur, RpcExportCommunityParamSchema as Ut, InflightResourceTypes as V, buildRuntimeAuthor as Vn, NAME_RESOLVE_FAILED_RETRY_FLOOR_MS as Vr, RpcExportCommunityModLogsParamSchema as Vt, PKCTypedEmitter as W, getAuthorNameFromWire as Wn, nativeFunctions$1 as Wr, RpcExportCommunityResultSchema as Wt, coerceSchemaRowJson as X, effectiveMaxCrosspostDepth as Xn, RpcPublishChallengeAnswersParamSchema as Xt, coerceSchemaRowBoolean as Y, crosspostChainDepthUpTo as Yn, RpcPublishAnchorRecordParamSchema as Yt, collectSchemaRowCoercions as Z, buildRuntimeCommunityFields as Zn, RpcPublishCommunityListParamSchema as Zt, createAuthorIdentityMatcher as _, signChallengeRequest as _n, deriveDbReplies as _r, parseCreateCommunityEditPublicationOptionsSchemaWithPKCErrorIfItFails as _t, generatePagesReportingFailedSorts as a, require_lib as an, getIpfsKeyFromPrivateKey as ar, parseCommentModerationPubsubMessagePublicationSchemaWithPKCErrorIfItFails as at, KeyvBetterSqlite3 as b, signCommentEdit as bn, getThumbnailPropsOfLink as br, parseCreateRemoteCommunityFunctionArgumentSchemaWithPKCErrorIfItFails as bt, resolvePageSortsOrThrow as c, createAnchorIpnsRecord as cn, getPublicKeyFromPrivateKey as cr, parseCommunityAddressWithPKCErrorIfItFails as ct, getChallengeVerification as d, encryptEd25519AesGcm as dn, calculateExpectedSignatureSize as dr, parseCommunityEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails as dt, RpcResolveAuthorNameResultSchema as en, getCommunityPublicKeyFromWire as er, parseCommentChallengeRequestToEncryptSchemaWithPKCErrorIfItFails as et, getCommunityChallengeFromCommunityChallengeSettings as f, encryptEd25519AesGcmPublicKeyBuffer as fn, calculateInlineRepliesBudget as fr, parseCommunityIpfsSchemaPassthroughWithPKCErrorIfItFails as ft, authorNameResolveFailureReason as g, signChallengeMessage as gn, deriveDbPosts as gr, parseCreateCommentOptionsSchemaWithPKCErrorIfItFails as gt, authorIdentityMatcherForRequest as h, signChallengeAnswer as hn, deriveCommentIpfsFromCommentTableRow as hr, parseCreateCommentModerationOptionsSchemaWithPKCErrorIfItFails as ht, derivePublicPageSorts as i, findCommunityRecordNameMismatch as in, getBufferedPKCAddressFromPublicKey as ir, parseCommentModerationChallengeRequestToEncryptSchemaWithPKCErrorIfItFails as it, iterateOverPageCidsToFindAllCids as j, verifyChallengeVerification as jn, r as jr, parseVoteChallengeRequestToEncryptSchemaWithPKCErrorIfItFails as jt, findCommentInPageInstanceRecursively as k, verifyChallengeMessage as kn, t$2 as kr, parseRpcCommentUpdateEventWithPKCErrorIfItFails as kt, pkcJsPageSorts as l, decryptEd25519AesGcm as ln, BackupAbortError as lr, parseCommunityEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails as lt, pkcJsChallenges as m, cleanUpBeforePublishing as mn, deleteOldCommunityInWindows as mr, parseCreateCommentEditOptionsSchemaWithPKCErrorIfItFails as mt, RpcRemoteCommunity as n, RpcSuccessResultSchema as nn, decode as nr, parseCommentEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails as nt, loadPageSortsForStartedCommunity as o, SignerWithPublicKeyAddress as on, getPKCAddressFromPublicKey as or, parseCommentPubsubMessagePublicationWithPKCErrorIfItFails as ot, loadChallengeFileFromCommunityChallengeSettings as p, _validateSignatureOfPKCRecord as pn, createKuboRpcClient as pr, parseCommunityListSchemaWithPKCErrorIfItFails as pt, decodeRpcChallengeRequestPubsubMsg as q, CreateNewCommunityListOptionsSchema as qn, RpcFetchCommunityListParamSchema as qt, computePageSortsFingerprint as r, RpcUnsubscribeParamSchema as rn, encode as rr, parseCommentIpfsSchemaWithPKCErrorIfItFails as rt, lookupPageSortFactories as s, createSigner as sn, getPKCAddressFromPublicKeySync as sr, parseCommentUpdateSchemaWithPKCErrorIfItFails as st, RpcLocalCommunity as t, RpcSubscriptionIdResultSchema as tn, normalizeCommunityInputFromCommunity as tr, parseCommentEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails as tt, deriveCommunityChallengesOrThrow as u, decryptEd25519AesGcmPublicKeyBuffer as un, backupCommunityDb as ur, parseCommunityEditOptionsSchemaWithPKCErrorIfItFails as ut, TrackedInstanceRegistry as v, signChallengeVerification as vn, getDefaultCommunityDbConfig as vr, parseCreateNewLocalCommunityUserOptionsSchemaWithPKCErrorIfItFails as vt, TIMEFRAMES_TO_SECONDS as w, signCommunity as wn, moveCommunityDbToDeletedDirectory as wr, parseDecryptedChallengeVerification as wt, RemoteCommunity as x, signCommentModeration as xn, importSignerIntoKuboNode as xr, parseCreateRpcCommunityFunctionArgumentSchemaWithPKCErrorIfItFails as xt, LRUCache as y, signComment as yn, getDefaultDataPath as yr, parseCreatePKCWsServerOptionsSchemaWithPKCErrorIfItFails as yt, GenericStateClient as z, verifyCommunityList as zn, NAME_RESOLVED_FALSE_TTL_MS as zr, RpcCommunityPageParamSchema as zt };
131636
+ export { createSchemaRowParser as $, getCommunityAddressFromRecord as $n, RpcPublishCommunityListResultSchema as $t, findCommentInParsedPages as A, verifyChallengeMessage as An, t$2 as Ar, parseRpcCommentUpdateEventWithPKCErrorIfItFails as At, GenericStateClient as B, verifyCommunityList as Bn, NAME_RESOLVED_FALSE_TTL_MS as Br, RpcCommunityPageParamSchema as Bt, RepliesPages as C, signCommentUpdate as Cn, listCommunitiesSync as Cr, parseCreateVoteOptionsSchemaWithPKCErrorIfItFails as Ct, extractCommunityRuntimeFieldsFromParsedPages as D, signCommunityList as Dn, resolveDbPostsCidRefs as Dr, parseJsonWithPKCErrorIfFails as Dt, buildPagesRuntimeFields as E, signCommunityEdit as En, refreshCommunitiesList as Er, parseDecryptedChallengeWithPKCErrorIfItFails as Et, cloneCrosspostForRuntime as F, verifyCommentModeration as Fn, n$6 as Fr, RpcAuthorNameParamSchema as Ft, PKCTypedEmitter as G, getAuthorNameFromWire as Gn, nativeFunctions$1 as Gr, RpcExportCommunityResultSchema as Gt, InflightResourceTypes as H, buildRuntimeAuthor as Hn, NAME_RESOLVE_FAILED_RETRY_FLOOR_MS as Hr, RpcExportCommunityModLogsParamSchema as Ht, collectCrosspostAuthorsToResolve as I, verifyCommentPubsubMessage as In, t$7 as Ir, RpcCancelExportParamSchema as It, decodeRpcChallengeRequestPubsubMsg as J, CreateNewCommunityListOptionsSchema as Jn, RpcFetchCommunityListParamSchema as Jt, decodeRpcChallengeAnswerPubsubMsg as K, normalizeCreatePublicationAuthor as Kn, require_undici as Kr, RpcFetchCidParamSchema as Kt, extractCrosspostRuntimeFields as L, verifyCommentUpdate as Ln, t$8 as Lr, RpcCidParamSchema as Lt, parseRawPages as M, verifyChallengeVerification as Mn, r as Mr, parseVoteChallengeRequestToEncryptSchemaWithPKCErrorIfItFails as Mt, MAX_PAGE_SIZE_BYTES as N, verifyCommentEdit as Nn, t$5 as Nr, parseVotePubsubMessagePublicationSchemaWithPKCErrorIfItFails as Nt, findCommentInPageInstance as O, signVote as On, setNativeFunctions as Or, parsePKCUserOptionsSchemaWithPKCErrorIfItFails as Ot, applyNameResolvedCacheToCrosspost as P, verifyCommentIpfs as Pn, n$5 as Pr, RpcAnchorPublishPreparationResultSchema as Pt, collectSchemaRowCoercions as Q, buildRuntimeCommunityFields as Qn, RpcPublishCommunityListParamSchema as Qt, stripNameResolvedFromCrosspost as R, verifyCommunity as Rn, stringify as Rr, RpcCommentRepliesPageParamSchema as Rt, MAX_FILE_SIZE_BYTES_FOR_COMMUNITY_IPFS as S, signCommentModeration as Sn, importSignerIntoKuboNode as Sr, parseCreateRpcCommunityFunctionArgumentSchemaWithPKCErrorIfItFails as St, buildPageRuntimeFields as T, signCommunity as Tn, moveCommunityDbToDeletedDirectory as Tr, parseDecryptedChallengeVerification as Tt, pRetry as U, cleanWireAuthor as Un, STORAGE_KEYS as Ur, RpcExportCommunityModLogsResultSchema as Ut, InflightFetchManager as V, verifyVote as Vn, NAME_RESOLVED_TRUE_TTL_MS as Vr, RpcEditCommunityParamSchema as Vt, pLimit as W, getAuthorNameFromRuntime as Wn, require_lodash_merge as Wr, RpcExportCommunityParamSchema as Wt, coerceSchemaRowBoolean as X, crosspostChainDepthUpTo as Xn, RpcPublishAnchorRecordParamSchema as Xt, decodeRpcChallengeVerificationPubsubMsg as Y, MAX_COMMUNITY_LIST_SIZE_BYTES as Yn, RpcFetchCommunityListResultSchema as Yt, coerceSchemaRowJson as Z, effectiveMaxCrosspostDepth as Zn, RpcPublishChallengeAnswersParamSchema as Zt, createAuthorIdentityMatcher as _, signChallengeMessage as _n, deriveDbPosts as _r, parseCreateCommentOptionsSchemaWithPKCErrorIfItFails as _t, generatePagesReportingFailedSorts as a, findCommunityRecordNameMismatch as an, getBufferedPKCAddressFromPublicKey as ar, parseCommentModerationChallengeRequestToEncryptSchemaWithPKCErrorIfItFails as at, KeyvBetterSqlite3 as b, signComment as bn, getDefaultDataPath as br, parseCreatePKCWsServerOptionsSchemaWithPKCErrorIfItFails as bt, resolvePageSortsOrThrow as c, createSigner as cn, getPKCAddressFromPublicKeySync as cr, parseCommentUpdateSchemaWithPKCErrorIfItFails as ct, getChallengeVerification as d, decryptEd25519AesGcmPublicKeyBuffer as dn, backupCommunityDb as dr, parseCommunityEditOptionsSchemaWithPKCErrorIfItFails as dt, RpcPublishedAnchorRecordResultSchema as en, getCommunityNameFromWire$1 as er, parseCidStringSchemaWithPKCErrorIfItFails as et, getCommunityChallengeFromCommunityChallengeSettings as f, encryptEd25519AesGcm as fn, calculateExpectedSignatureSize as fr, parseCommunityEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails as ft, authorNameResolveFailureReason as g, signChallengeAnswer as gn, deriveCommentIpfsFromCommentTableRow as gr, parseCreateCommentModerationOptionsSchemaWithPKCErrorIfItFails as gt, authorIdentityMatcherForRequest as h, cleanUpBeforePublishing as hn, deleteOldCommunityInWindows as hr, parseCreateCommentEditOptionsSchemaWithPKCErrorIfItFails as ht, derivePublicPageSorts as i, RpcUnsubscribeParamSchema as in, encode as ir, parseCommentIpfsSchemaWithPKCErrorIfItFails as it, iterateOverPageCidsToFindAllCids as j, verifyChallengeRequest as jn, t$4 as jr, parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails as jt, findCommentInPageInstanceRecursively as k, verifyChallengeAnswer as kn, tryToDeleteCommunitiesThatFailedToBeDeletedBefore as kr, parseRpcCommentEventWithPKCErrorIfItFails as kt, pkcJsPageSorts as l, createAnchorIpnsRecord as ln, getPublicKeyFromPrivateKey as lr, parseCommunityAddressWithPKCErrorIfItFails as lt, pkcJsChallenges as m, _validateSignatureOfPKCRecord as mn, createKuboRpcClient as mr, parseCommunityListSchemaWithPKCErrorIfItFails as mt, RpcRemoteCommunity as n, RpcSubscriptionIdResultSchema as nn, normalizeCommunityInputFromCommunity as nr, parseCommentEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails as nt, loadPageSortsForStartedCommunity as o, require_lib as on, getIpfsKeyFromPrivateKey as or, parseCommentModerationPubsubMessagePublicationSchemaWithPKCErrorIfItFails as ot, loadChallengeFileFromCommunityChallengeSettings as p, encryptEd25519AesGcmPublicKeyBuffer as pn, calculateInlineRepliesBudget as pr, parseCommunityIpfsSchemaPassthroughWithPKCErrorIfItFails as pt, decodeRpcChallengePubsubMsg as q, CreateCommunityListWithCidOptionsSchema as qn, RpcFetchCidResultSchema as qt, computePageSortsFingerprint as r, RpcSuccessResultSchema as rn, decode as rr, parseCommentEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails as rt, lookupPageSortFactories as s, SignerWithPublicKeyAddress as sn, getPKCAddressFromPublicKey as sr, parseCommentPubsubMessagePublicationWithPKCErrorIfItFails as st, RpcLocalCommunity as t, RpcResolveAuthorNameResultSchema as tn, getCommunityPublicKeyFromWire as tr, parseCommentChallengeRequestToEncryptSchemaWithPKCErrorIfItFails as tt, deriveCommunityChallengesOrThrow as u, decryptEd25519AesGcm as un, BackupAbortError as ur, parseCommunityEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails as ut, TrackedInstanceRegistry as v, signChallengeRequest as vn, deriveDbReplies as vr, parseCreateCommunityEditPublicationOptionsSchemaWithPKCErrorIfItFails as vt, TIMEFRAMES_TO_SECONDS as w, signCommentUpdateForChallengeVerification as wn, monitorCommunitiesDirectory as wr, parseDecryptedChallengeAnswerWithPKCErrorIfItFails as wt, RemoteCommunity as x, signCommentEdit as xn, getThumbnailPropsOfLink as xr, parseCreateRemoteCommunityFunctionArgumentSchemaWithPKCErrorIfItFails as xt, LRUCache as y, signChallengeVerification as yn, getDefaultCommunityDbConfig as yr, parseCreateNewLocalCommunityUserOptionsSchemaWithPKCErrorIfItFails as yt, PKCClientsManager as z, verifyCommunityEdit as zn, MAX_FILE_SIZE_BYTES_FOR_COMMENT_UPDATE as zr, RpcCommunityIdentifierParamSchema as zt };
@@ -1,4 +1,4 @@
1
- import { B as pubsubTopicToDhtKeyCid, Lr as PKCError } from "./util-PGPkG-gU.js";
1
+ import { B as pubsubTopicToDhtKeyCid, Lr as PKCError } from "./util-VrWyIc1x.js";
2
2
  import { ipnsSelector } from "ipns/selector";
3
3
  import { ipnsValidator } from "ipns/validator";
4
4
  import { unmarshalIPNSRecord } from "ipns";
@@ -16525,7 +16525,7 @@ const CommunityEditPublicationPubsubReservedFields = r$2([
16525
16525
  ], t$3(CommunityEditPubsubMessagePublicationSchema.shape));
16526
16526
  //#endregion
16527
16527
  //#region dist/node/generated-version.js
16528
- const version = "0.0.126";
16528
+ const version = "0.0.127";
16529
16529
  //#endregion
16530
16530
  //#region dist/node/version.js
16531
16531
  const protocolVersion = ProtocolVersionSchema.parse("1.0.0");
@@ -1,5 +1,5 @@
1
- import { Lr as PKCError, on as ChallengeFileFactorySchema, sn as ChallengeFileSchema, yn as PageSortFileFactorySchema } from "./util-PGPkG-gU.js";
2
- import { s as validatePageSortFile } from "./page-sort-scoring-BSBLegpC.js";
1
+ import { Lr as PKCError, on as ChallengeFileFactorySchema, sn as ChallengeFileSchema, yn as PageSortFileFactorySchema } from "./util-VrWyIc1x.js";
2
+ import { s as validatePageSortFile } from "./page-sort-scoring-Civ7TOoF.js";
3
3
  //#region dist/node/validate-package-factories.js
4
4
  function validateChallengeFileFactory(factory, { name }) {
5
5
  try {
@@ -1,2 +1,2 @@
1
- import { a as getShortCid, c as setNativeFunctions, i as getShortAddress, n as challenges, o as nativeFunctions, r as createAnchorIpnsRecord, s as pageSorts, t as PKC } from "./chunks/node-agDtcKUp.js";
1
+ import { a as getShortCid, c as setNativeFunctions, i as getShortAddress, n as challenges, o as nativeFunctions, r as createAnchorIpnsRecord, s as pageSorts, t as PKC } from "./chunks/node-pIjburtc.js";
2
2
  export { challenges, createAnchorIpnsRecord, PKC as default, getShortAddress, getShortCid, nativeFunctions, pageSorts, setNativeFunctions };
@@ -1,2 +1,2 @@
1
- import { n as validatePageSortFileFactory } from "./chunks/validate-package-factories-2U8SCIxZ.js";
1
+ import { n as validatePageSortFileFactory } from "./chunks/validate-package-factories-CJgjDTZC.js";
2
2
  export { validatePageSortFileFactory };
@@ -1,7 +1,7 @@
1
- import { $ as retryKuboIpfsAddAndProvide, C as hideClassPrivateProps, Lr as PKCError, Y as replaceXWithY, br as t, dt as findStartedCommunity, i as calculateStringSizeSameAsIpfsAddCidV0, kt as pTimeout, vr as n, zr as logger_default } from "../../chunks/util-PGPkG-gU.js";
2
- import { S as parseRpcUnsubscribeParam, _ as parseRpcExportCommunityParam, b as parseRpcPublishChallengeAnswersParam, d as parseRpcCidParam, f as parseRpcCommentRepliesPageParam, g as parseRpcExportCommunityModLogsParam, h as parseRpcEditCommunityParam, l as parseRpcAuthorNameParam, m as parseRpcCommunityPageParam, p as parseRpcCommunityIdentifierParam, t as PKC, u as parseRpcCancelExportParam, v as parseRpcFetchCommunityListParam, x as parseRpcPublishCommunityListParam, y as parseRpcPublishAnchorRecordParam } from "../../chunks/node-agDtcKUp.js";
3
- import { Ar as t$1, At as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, Ct as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, E as buildPagesRuntimeFields, Et as parseJsonWithPKCErrorIfFails, H as pRetry, I as extractCrosspostRuntimeFields, Jn as MAX_COMMUNITY_LIST_SIZE_BYTES, Lr as stringify, T as buildPageRuntimeFields, U as pLimit, an as require_lib, et as parseCommentChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, it as parseCommentModerationChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, jt as parseVoteChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, lt as parseCommunityEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, pt as parseCommunityListSchemaWithPKCErrorIfItFails, tt as parseCommentEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, ut as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, vt as parseCreateNewLocalCommunityUserOptionsSchemaWithPKCErrorIfItFails, yt as parseCreatePKCWsServerOptionsSchemaWithPKCErrorIfItFails, zn as verifyCommunityList } from "../../chunks/rpc-local-community-DOcUqswi.js";
4
- import { t as LocalCommunity } from "../../chunks/local-community-51NzNBUS.js";
1
+ import { $ as retryKuboIpfsAddAndProvide, C as hideClassPrivateProps, Lr as PKCError, Y as replaceXWithY, br as t, dt as findStartedCommunity, i as calculateStringSizeSameAsIpfsAddCidV0, kt as pTimeout, vr as n, zr as logger_default } from "../../chunks/util-VrWyIc1x.js";
2
+ import { S as parseRpcUnsubscribeParam, _ as parseRpcExportCommunityParam, b as parseRpcPublishChallengeAnswersParam, d as parseRpcCidParam, f as parseRpcCommentRepliesPageParam, g as parseRpcExportCommunityModLogsParam, h as parseRpcEditCommunityParam, l as parseRpcAuthorNameParam, m as parseRpcCommunityPageParam, p as parseRpcCommunityIdentifierParam, t as PKC, u as parseRpcCancelExportParam, v as parseRpcFetchCommunityListParam, x as parseRpcPublishCommunityListParam, y as parseRpcPublishAnchorRecordParam } from "../../chunks/node-pIjburtc.js";
3
+ import { Bn as verifyCommunityList, Dt as parseJsonWithPKCErrorIfFails, E as buildPagesRuntimeFields, L as extractCrosspostRuntimeFields, Mt as parseVoteChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, Rr as stringify, T as buildPageRuntimeFields, U as pRetry, W as pLimit, Yn as MAX_COMMUNITY_LIST_SIZE_BYTES, at as parseCommentModerationChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, bt as parseCreatePKCWsServerOptionsSchemaWithPKCErrorIfItFails, dt as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, jr as t$1, jt as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, mt as parseCommunityListSchemaWithPKCErrorIfItFails, nt as parseCommentEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, on as require_lib, tt as parseCommentChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, ut as parseCommunityEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, wt as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, yt as parseCreateNewLocalCommunityUserOptionsSchemaWithPKCErrorIfItFails } from "../../chunks/rpc-local-community-BqP9g2Rk.js";
4
+ import { t as LocalCommunity } from "../../chunks/local-community-WFQoW5aC.js";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import path from "path";
7
7
  import assert from "assert";
@@ -1 +1 @@
1
- export declare const version = "0.0.126";
1
+ export declare const version = "0.0.127";
@@ -1,3 +1,3 @@
1
1
  // Auto-generated by config/generate-version.js — do not edit
2
- export const version = "0.0.126";
2
+ export const version = "0.0.127";
3
3
  //# sourceMappingURL=generated-version.js.map
@@ -0,0 +1,2 @@
1
+ export declare const MAX_PAGE_SIZE_BYTES: number;
2
+ export declare const nextPageMaxSizeBytes: (pageMaxSizeBytes: number) => number;
@@ -0,0 +1,11 @@
1
+ // Page size limits shared by the community that writes pages and the readers that load them. Dependency-free, so both
2
+ // the node page generator and the client page loaders can import it.
3
+ const MiB = 1024 * 1024;
4
+ // The largest page a community publishes, and the most a reader accepts for one. Pages double in size from 1 MiB until
5
+ // they reach this, then stay at it (issue #360): a page is built as one string at about twice its size in heap, and an
6
+ // uncapped page past ~512 MiB cannot be built at all.
7
+ export const MAX_PAGE_SIZE_BYTES = 32 * MiB;
8
+ // A reader allows each nextCid page twice the size of the page before it, up to MAX_PAGE_SIZE_BYTES. Uncapped, the
9
+ // allowance on a long chain passes 2^53 (rejected by the RPC page params) and then int64 (rejected by kubo's cat length).
10
+ export const nextPageMaxSizeBytes = (pageMaxSizeBytes) => Math.min(pageMaxSizeBytes * 2, MAX_PAGE_SIZE_BYTES);
11
+ //# sourceMappingURL=page-size.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-size.js","sourceRoot":"","sources":["../../../src/pages/page-size.ts"],"names":[],"mappings":"AAAA,sHAAsH;AACtH,qEAAqE;AAErE,MAAM,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;AAExB,uHAAuH;AACvH,uHAAuH;AACvH,sDAAsD;AACtD,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,GAAG,GAAG,CAAC;AAE5C,mHAAmH;AACnH,0HAA0H;AAC1H,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,gBAAwB,EAAU,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,GAAG,CAAC,EAAE,mBAAmB,CAAC,CAAC"}
@@ -3,6 +3,7 @@ import { isReservedObjectKey } from "../object-key-util.js";
3
3
  import { isEmpty, keys, unique } from "remeda";
4
4
  import Logger from "../logger.js";
5
5
  import { POSTS_SORT_TYPES, POST_REPLIES_SORT_TYPES } from "./util.js";
6
+ import { nextPageMaxSizeBytes } from "./page-size.js";
6
7
  import { parseJsonWithPKCErrorIfFails, parseModQueuePageIpfsSchemaWithPKCErrorIfItFails, parsePageIpfsSchemaWithPKCErrorIfItFails } from "../schema/schema-util.js";
7
8
  import { hideClassPrivateProps, throwIfAbortSignalAborted } from "../util.js";
8
9
  import { sha256 } from "js-sha256";
@@ -286,7 +287,7 @@ export class BasePagesClientsManager extends BaseClientsManager {
286
287
  }
287
288
  if (result.page.nextCid) {
288
289
  this.updatePageCidsToSortTypesToIncludeSubsequent(result.page.nextCid, pageCid);
289
- this.updatePagesMaxSizeCache([result.page.nextCid], pageMaxSize * 2);
290
+ this.updatePagesMaxSizeCache([result.page.nextCid], nextPageMaxSizeBytes(pageMaxSize));
290
291
  }
291
292
  return result;
292
293
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pages-client-manager.js","sourceRoot":"","sources":["../../../src/pages/pages-client-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAA4B,MAAM,mCAAmC,CAAC;AACjG,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAA0B,MAAM,WAAW,CAAC;AAC9F,OAAO,EACH,4BAA4B,EAC5B,gDAAgD,EAChD,wCAAwC,EAC3C,MAAM,0BAA0B,CAAC;AA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