@ghostlytools/sdk 1.11.1 → 1.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/app.js +5 -2
  2. package/dist/app.js.map +1 -1
  3. package/dist/core.js +111 -18
  4. package/dist/core.js.map +1 -1
  5. package/dist/{fakes-LaWqqMv4.js → fakes-DCH5oJMm.js} +3 -3
  6. package/dist/{fakes-LaWqqMv4.js.map → fakes-DCH5oJMm.js.map} +1 -1
  7. package/dist/fakes.js +1 -1
  8. package/dist/index.js +3 -3
  9. package/dist/{keet-identity-key-CASfmXry.js → keet-identity-key-3EEmDkxz.js} +2 -2
  10. package/dist/{keet-identity-key-CASfmXry.js.map → keet-identity-key-3EEmDkxz.js.map} +1 -1
  11. package/dist/{src-BN4AAuHI.js → src-DA7T3Gvo.js} +487 -145
  12. package/dist/src-DA7T3Gvo.js.map +1 -0
  13. package/dist/testing.js +4 -4
  14. package/dist/types/browser/src/engine/paymentAdapters/providers/types.d.ts +6 -1
  15. package/dist/types/core/src/audioMetadata.d.ts +0 -23
  16. package/dist/types/core/src/catchUp.d.ts +2 -0
  17. package/dist/types/core/src/chatFiles.d.ts +6 -0
  18. package/dist/types/core/src/clipboardGuard.d.ts +24 -7
  19. package/dist/types/core/src/dhtDelivery.d.ts +13 -0
  20. package/dist/types/core/src/didDht.d.ts +6 -4
  21. package/dist/types/core/src/frames.d.ts +11 -0
  22. package/dist/types/core/src/ghostlink.d.ts +20 -0
  23. package/dist/types/core/src/groupSession.d.ts +11 -0
  24. package/dist/types/core/src/http.d.ts +16 -2
  25. package/dist/types/core/src/identity.d.ts +8 -1
  26. package/dist/types/core/src/identityProofs.d.ts +7 -0
  27. package/dist/types/core/src/index.d.ts +1 -0
  28. package/dist/types/core/src/miniApp.d.ts +4 -1
  29. package/dist/types/core/src/pairedAppRanges.d.ts +5 -0
  30. package/dist/types/core/src/relay.d.ts +7 -4
  31. package/dist/types/core/src/transport.d.ts +3 -1
  32. package/dist/types/core/src/viewerGuard.d.ts +6 -0
  33. package/dist/{types-DvtCy3WB.js → types-DYLIIkU8.js} +2 -1
  34. package/dist/types-DYLIIkU8.js.map +1 -0
  35. package/dist/{verify-oCL662ms.js → verify-DsXR5sRX.js} +2 -2
  36. package/dist/{verify-oCL662ms.js.map → verify-DsXR5sRX.js.map} +1 -1
  37. package/package.json +1 -1
  38. package/dist/src-BN4AAuHI.js.map +0 -1
  39. package/dist/types-DvtCy3WB.js.map +0 -1
@@ -383,9 +383,16 @@ function tryDecrypt(encoded, key) {
383
383
  }
384
384
  //#endregion
385
385
  //#region ../core/src/identity.ts
386
- /** How many public keys `identityFromSeed` keeps: a start with 50 chats and 20 groups derives about 400 distinct ones. */
386
+ /** How many public keys `identityFromSeed` keeps however long ago they were used: a start with 50 chats and 20 groups derives about 400 distinct ones. */
387
387
  var IDENTITY_MEMO_SIZE = 1024;
388
388
  /**
389
+ * Past `IDENTITY_MEMO_SIZE`, a key is let go only once it has not been asked for this long: a start asks for all of a
390
+ * profile's keys within seconds (a 600-chat one, ~4,000 of them), then asks again for the running links' ones.
391
+ */
392
+ var IDENTITY_MEMO_IDLE_MS = 6e5;
393
+ /** The most keys kept, used or not: ~410 bytes each in V8 (its id, its key and when it was used), ~6.7 MB in all. */
394
+ var IDENTITY_MEMO_MAX = 16384;
395
+ /**
389
396
  * Public keys already derived, by the SHA-256 of their seed, the most recently used last. A chat's start derives the
390
397
  * same few seeds' keys again and again (its link, its delivery, its capability record): ~0.25 ms each in V8, ~3.4x
391
398
  * that in JSC. The seed itself is never kept, so a seed its owner zeroes leaves nothing behind here.
@@ -393,14 +400,24 @@ var IDENTITY_MEMO_SIZE = 1024;
393
400
  var publicKeys = /* @__PURE__ */ new Map();
394
401
  function publicKeyOf(seed) {
395
402
  const id = toBase64Url(sha256(seed));
396
- let key = publicKeys.get(id);
397
- if (key) publicKeys.delete(id);
398
- else {
399
- key = ed25519.getPublicKey(seed);
400
- if (publicKeys.size >= 1024) publicKeys.delete(publicKeys.keys().next().value);
403
+ const now = Date.now();
404
+ let entry = publicKeys.get(id);
405
+ if (entry) {
406
+ publicKeys.delete(id);
407
+ entry.at = now;
408
+ } else {
409
+ entry = {
410
+ key: ed25519.getPublicKey(seed),
411
+ at: now
412
+ };
413
+ for (const [oldest, { at }] of publicKeys) {
414
+ if (publicKeys.size < 1024) break;
415
+ if (publicKeys.size < 16384 && now - at < 6e5) break;
416
+ publicKeys.delete(oldest);
417
+ }
401
418
  }
402
- publicKeys.set(id, key);
403
- return key.slice();
419
+ publicKeys.set(id, entry);
420
+ return entry.key.slice();
404
421
  }
405
422
  function identityFromSeed(seed) {
406
423
  if (seed.length !== 32) throw new Error("Seed must be exactly 32 bytes");
@@ -1245,7 +1262,7 @@ var DEPARTED_READS = 6;
1245
1262
  /**
1246
1263
  * A 1:1 chat's reads of an invite this side made, while its joiner is due and has not shown (`awaited`, `AWAITING_PEER_MS`
1247
1264
  * in link.ts), may go over a relay's minute within the chat's allowance (`SIGNALING_ALLOWANCE_SHARE`) the same way: at
1248
- * most this many of each invite's in a minute, every relay together. And while one asked in the last minute, the departed
1265
+ * most this many in a minute, every invite and every relay together. And while one asked in the last minute, the departed
1249
1266
  * reads leave them half of that on each relay: the last `AWAITED_READS / 2` of the allowance's reads (`DEPARTED_READS`
1250
1267
  * then take at most 3 on a relay of 30, against 5). Read every 2 to 4 s, they cover the seconds in which a joiner that
1251
1268
  * opened the link at once knocks. Within the chats' allowance, they add nothing to what a relay may see in a minute
@@ -1253,6 +1270,9 @@ var DEPARTED_READS = 6;
1253
1270
  * another on relays of 30 spent the minute on both 12 s in (two pairings, about 15 requests a relay each), the departed
1254
1271
  * reads of the contact that had just left took the allowance, and the third invite's key was read once, then not until
1255
1272
  * the minute freed: the joiner's knock 48 s late, and join to live in 60 s, against 2.6 and 4.6 s (CLI lab, 2026-11-07).
1273
+ * Not this many per invite: a web profile with 150 chats added from old sessions, each an invite awaited from that start,
1274
+ * had their reads take the whole allowance at every refill, and a live contact's reads after a reload went once a
1275
+ * minute: the chat came back in 2 to 7 min, against 41 to 69 s before (2026-11-07).
1256
1276
  */
1257
1277
  var AWAITED_READS = 4;
1258
1278
  /**
@@ -1628,8 +1648,8 @@ var RelayTransport = class {
1628
1648
  spentAnswerAllowance = /* @__PURE__ */ new Map();
1629
1649
  /** Per contact, its departed reads past the limit in the last minute, every relay together (`DEPARTED_READS`). */
1630
1650
  departedOver = /* @__PURE__ */ new Map();
1631
- /** Per invite, its awaited reads past the limit in the last minute, every relay together (`AWAITED_READS`). */
1632
- awaitedOver = /* @__PURE__ */ new Map();
1651
+ /** The awaited reads past the limit in the last minute, every invite and every relay together (`AWAITED_READS`). */
1652
+ awaitedOver = [];
1633
1653
  /** When an awaited invite's read last asked: the departed reads leave it room for a minute (`AWAITED_READS`). */
1634
1654
  awaitedAt = -Infinity;
1635
1655
  /**
@@ -2511,7 +2531,7 @@ var RelayTransport = class {
2511
2531
  if (isGroupSignal(who)) this.spentGroupSignal.get(relay).push(now);
2512
2532
  const departedOver = isDepartedRead(who) && this.spent.get(relay).length >= this.limitOf(relay);
2513
2533
  if (departedOver) this.overAdd(this.departedOver, key, now);
2514
- if (isAwaitedRead(who) && this.spent.get(relay).length >= this.limitOf(relay)) this.overAdd(this.awaitedOver, key, now);
2534
+ if (isAwaitedRead(who) && this.spent.get(relay).length >= this.limitOf(relay)) this.awaitedOver = [...within(this.awaitedOver, now, 6e4), now];
2515
2535
  this.spent.get(relay).push(now);
2516
2536
  if (who.background) this.spentBackground.get(relay).push(now);
2517
2537
  if (who.background && who.write) this.spentBackgroundWrites.get(relay).push(now);
@@ -2555,7 +2575,8 @@ var RelayTransport = class {
2555
2575
  const over = (list, limit) => list.length >= limit ? list[list.length - limit] + 6e4 - now : 0;
2556
2576
  const limit = this.limitOf(relay);
2557
2577
  const departed = isDepartedRead(who) && key !== void 0 && recent.length >= limit && this.overReads(this.departedOver, key, now) < 6;
2558
- const awaited = isAwaitedRead(who) && key !== void 0 && recent.length >= limit && this.overReads(this.awaitedOver, key, now) < 4;
2578
+ if (isAwaitedRead(who)) this.awaitedOver = within(this.awaitedOver, now, 6e4);
2579
+ const awaited = isAwaitedRead(who) && key !== void 0 && recent.length >= limit && this.awaitedOver.length < 4;
2559
2580
  const share = isChatSignal(who) || departed || awaited ? SIGNALING_ALLOWANCE_SHARE : isGroupSignal(who) ? GROUP_SIGNALING_ALLOWANCE_SHARE : 0;
2560
2581
  let allowance = share ? Math.max(0, Math.floor(limit * share) - (who.write ? 0 : 1)) : 0;
2561
2582
  if (departed && now - this.awaitedAt < 6e4) allowance = Math.max(0, allowance - 2);
@@ -2739,7 +2760,7 @@ var RelayTransport = class {
2739
2760
  const since = this.heldBack.get(key)?.since;
2740
2761
  return !who.group && !who.write && !who.door && since !== void 0 && now - since >= READ_STARVED_MS;
2741
2762
  }
2742
- /** This key's departed or awaited reads past the limit in the last minute (`DEPARTED_READS`, `AWAITED_READS`). */
2763
+ /** This key's departed reads past the limit in the last minute (`DEPARTED_READS`). */
2743
2764
  overReads(over, key, now) {
2744
2765
  const reads = within(over.get(key) ?? [], now, 6e4);
2745
2766
  if (reads.length) over.set(key, reads);
@@ -7902,6 +7923,12 @@ var LIMITS = {
7902
7923
  maxPathBytes: 8192,
7903
7924
  /** Requests a host serves at once for one peer. */
7904
7925
  maxConcurrentRequestsPerPeer: 32,
7926
+ /**
7927
+ * Request-body bytes a host holds for one peer at once, from a body's first chunk until its local fetch settles.
7928
+ * Past it a request is refused (`busy`). As much as a client's in-flight requests can carry, so only a peer that
7929
+ * ignores that limit reaches it.
7930
+ */
7931
+ maxHostBodyBytesPerPeer: 134217728,
7905
7932
  /** Requests a client keeps in flight; the rest wait in a queue. */
7906
7933
  maxClientInFlight: 16,
7907
7934
  /**
@@ -7918,6 +7945,11 @@ var LIMITS = {
7918
7945
  maxStoredIncomingBytesPerPeer: 524288e3,
7919
7946
  requestTimeoutMs: 6e4,
7920
7947
  bodyIdleTimeoutMs: 3e4,
7948
+ /**
7949
+ * What a request body must bring in each `bodyIdleTimeoutMs` (unless it ends) to count as moving: a peer that sends a
7950
+ * few bytes at a time is let go like one that stalls.
7951
+ */
7952
+ minRequestBodyBytesPerIdle: 16384,
7921
7953
  /** Stop writing to the channel above this many buffered bytes. */
7922
7954
  sendHighWaterMark: 1048576,
7923
7955
  sendLowWaterMark: 262144
@@ -8437,15 +8469,45 @@ function viewerServicePolicy(relayOnly) {
8437
8469
  return relayOnly ? VIEWER_SERVICE_CSP_RELAY_ONLY : VIEWER_SERVICE_CSP;
8438
8470
  }
8439
8471
  /**
8472
+ * The browser features a contact's app in the extension's viewer tab may not use. Its tab is a site of its own, so
8473
+ * what the person granted it (camera, microphone, location, a device) would be a site setting of the browser's, which
8474
+ * no Delete chat, Clear all data or Delete profile reaches; denied here, the browser never asks and ignores a grant
8475
+ * made before. The web app's view is a frame of another site, which gets none of them, and Desktop's window grants none.
8476
+ */
8477
+ var VIEWER_PERMISSIONS_POLICY = [
8478
+ "camera",
8479
+ "microphone",
8480
+ "display-capture",
8481
+ "geolocation",
8482
+ "midi",
8483
+ "usb",
8484
+ "serial",
8485
+ "hid",
8486
+ "clipboard-read",
8487
+ "idle-detection",
8488
+ "local-fonts",
8489
+ "window-management",
8490
+ "storage-access",
8491
+ "publickey-credentials-create"
8492
+ ].map((feature) => `${feature}=()`).join(", ");
8493
+ /** A contact's headers that would set the page's features: the viewer's own policy takes their place. */
8494
+ var VIEWER_FEATURE_HEADERS = ["permissions-policy", "feature-policy"];
8495
+ /**
8440
8496
  * `headers` with Ghostly's policy after the contact's own, all in one `content-security-policy` joined by commas: a
8441
- * browser enforces every policy of the list, so the contact's can narrow Ghostly's but never widen it.
8497
+ * browser enforces every policy of the list, so the contact's can narrow Ghostly's but never widen it. The page's
8498
+ * features are Ghostly's alone (`VIEWER_PERMISSIONS_POLICY`): a contact's permissions policy could allow them, and one
8499
+ * the browser cannot read would void the whole header, Ghostly's part with it.
8442
8500
  */
8443
8501
  function withViewerPolicy(headers, relayOnly = false) {
8444
8502
  const policies = [];
8445
8503
  const out = [];
8446
- for (const [name, value] of headers) if (name.toLowerCase() === "content-security-policy") policies.push(value);
8447
- else out.push([name, value]);
8504
+ for (const [name, value] of headers) {
8505
+ const lower = name.toLowerCase();
8506
+ if (lower === "content-security-policy") policies.push(value);
8507
+ else if (!VIEWER_FEATURE_HEADERS.includes(lower)) out.push([name, value]);
8508
+ }
8448
8509
  out.push(["content-security-policy", [...policies, viewerServicePolicy(relayOnly)].join(", ")]);
8510
+ out.push(["permissions-policy", VIEWER_PERMISSIONS_POLICY]);
8449
8511
  return out;
8450
8512
  }
8451
8513
  /**
@@ -8495,6 +8557,8 @@ var HttpHost = class {
8495
8557
  * so a stream counts toward the limit until its fetch has settled.
8496
8558
  */
8497
8559
  live = /* @__PURE__ */ new Set();
8560
+ /** Body bytes of the streams in `live`: a peer cannot make the host hold more than `maxHostBodyBytesPerPeer`. */
8561
+ heldBodyBytes = 0;
8498
8562
  constructor(channel, getService, localFetch) {
8499
8563
  this.channel = channel;
8500
8564
  this.getService = getService;
@@ -8521,25 +8585,32 @@ var HttpHost = class {
8521
8585
  url,
8522
8586
  body: [],
8523
8587
  bodyBytes: 0,
8588
+ movedBytes: 0,
8524
8589
  abort: new AbortController(),
8525
8590
  started: false
8526
8591
  };
8527
8592
  this.streams.set(frame.id, stream);
8528
8593
  this.live.add(stream);
8529
- if (frame.b && !BODYLESS_METHODS.has(method)) this.armIdleTimer(stream);
8594
+ if (frame.b && !BODYLESS_METHODS.has(method)) this.watchPace(stream);
8530
8595
  else this.run(stream);
8531
8596
  }
8532
8597
  handleChunk(chunk) {
8533
8598
  const stream = this.streams.get(chunk.id);
8534
8599
  if (!stream || stream.started) return;
8535
- stream.bodyBytes += chunk.payload.length;
8536
- if (stream.bodyBytes > LIMITS.maxRequestBodyBytes) {
8600
+ const bytes = chunk.payload.length;
8601
+ if (stream.bodyBytes + bytes > LIMITS.maxRequestBodyBytes) {
8537
8602
  this.end(stream);
8538
8603
  return this.fail(chunk.id, 413, "request-too-large", "Request body too large.");
8539
8604
  }
8605
+ if (this.heldBodyBytes + bytes > LIMITS.maxHostBodyBytesPerPeer) {
8606
+ this.end(stream);
8607
+ return this.fail(chunk.id, 503, "busy", "Too many request bodies at once.");
8608
+ }
8609
+ stream.bodyBytes += bytes;
8610
+ this.heldBodyBytes += bytes;
8611
+ stream.movedBytes += bytes;
8540
8612
  if (chunk.payload.length > 0) stream.body.push(chunk.payload.slice());
8541
8613
  if (chunk.end) this.run(stream);
8542
- else this.armIdleTimer(stream);
8543
8614
  }
8544
8615
  handleReset(frame) {
8545
8616
  const stream = this.streams.get(frame.id);
@@ -8548,9 +8619,13 @@ var HttpHost = class {
8548
8619
  closeAll() {
8549
8620
  for (const stream of [...this.streams.values()]) this.end(stream);
8550
8621
  }
8551
- armIdleTimer(stream) {
8552
- clearTimeout(stream.idleTimer);
8553
- stream.idleTimer = setTimeout(() => {
8622
+ /** A body that brings less than `minRequestBodyBytesPerIdle` in a `bodyIdleTimeoutMs` is let go, even if it trickles. */
8623
+ watchPace(stream) {
8624
+ stream.paceTimer = setTimeout(() => {
8625
+ if (stream.movedBytes >= LIMITS.minRequestBodyBytesPerIdle) {
8626
+ stream.movedBytes = 0;
8627
+ return this.watchPace(stream);
8628
+ }
8554
8629
  this.end(stream);
8555
8630
  this.fail(stream.frame.id, 408, "request-timeout", "Request body timed out.");
8556
8631
  }, LIMITS.bodyIdleTimeoutMs);
@@ -8560,10 +8635,16 @@ var HttpHost = class {
8560
8635
  return this.streams.get(stream.frame.id) === stream;
8561
8636
  }
8562
8637
  end(stream) {
8563
- clearTimeout(stream.idleTimer);
8638
+ clearTimeout(stream.paceTimer);
8564
8639
  stream.abort.abort();
8565
8640
  if (this.isCurrent(stream)) this.streams.delete(stream.frame.id);
8566
- if (!stream.started) this.live.delete(stream);
8641
+ if (!stream.started) this.release(stream);
8642
+ }
8643
+ /** The stream no longer counts toward the limits: its body is dropped, or its local fetch has settled. */
8644
+ release(stream) {
8645
+ this.live.delete(stream);
8646
+ this.heldBodyBytes -= stream.bodyBytes;
8647
+ stream.bodyBytes = 0;
8567
8648
  }
8568
8649
  fail(id, status, code, message) {
8569
8650
  const body = utf8Encode(`${message}\n`);
@@ -8580,19 +8661,20 @@ var HttpHost = class {
8580
8661
  }
8581
8662
  async run(stream) {
8582
8663
  stream.started = true;
8583
- clearTimeout(stream.idleTimer);
8664
+ clearTimeout(stream.paceTimer);
8584
8665
  const { frame, service } = stream;
8585
8666
  const timeout = setTimeout(() => stream.abort.abort(), LIMITS.requestTimeoutMs);
8586
8667
  let headersSent = false;
8668
+ const body = stream.body.length > 0 ? concatBytes(...stream.body) : null;
8669
+ stream.body = [];
8587
8670
  try {
8588
8671
  const response = await this.localFetch({
8589
8672
  url: stream.url,
8590
8673
  method: frame.m,
8591
8674
  headers: sanitizeRequestHeaders(frame.h),
8592
- body: stream.body.length > 0 ? concatBytes(...stream.body) : null,
8675
+ body,
8593
8676
  signal: stream.abort.signal
8594
8677
  });
8595
- stream.body = [];
8596
8678
  clearTimeout(timeout);
8597
8679
  if (!this.isCurrent(stream)) return;
8598
8680
  if (response.finalUrl && response.finalUrl !== stream.url) {
@@ -8640,7 +8722,7 @@ var HttpHost = class {
8640
8722
  else if (timedOut && error?.name === "AbortError") this.fail(frame.id, 504, "timeout", "The local service did not answer in time.");
8641
8723
  else this.fail(frame.id, 502, "unreachable", "The local service is not reachable.");
8642
8724
  } finally {
8643
- this.live.delete(stream);
8725
+ this.release(stream);
8644
8726
  }
8645
8727
  }
8646
8728
  };
@@ -9013,6 +9095,18 @@ var VIEWER_GUARD_HASH = "'sha256-P3jYgJwfoJ/cAS31rQz7Tk99bBwsSeN2wDDqJubDMZw='";
9013
9095
  * `javascript:` URL to the guard's policy before it runs.
9014
9096
  */
9015
9097
  var VIEWER_GUARD_CSP = "frame-src 'self'; object-src 'self'; require-trusted-types-for 'script'";
9098
+ /**
9099
+ * `VIEWER_GUARD_CSP` for a worker's own script: no Trusted Types. A worker has no `javascript:` URL, no `execCommand`
9100
+ * and no WebRTC for a guard to keep, and no guard runs in it to make the `default` policy, so Trusted Types there
9101
+ * would refuse its every `importScripts`, `eval` and `new Function`.
9102
+ */
9103
+ var VIEWER_WORKER_GUARD_CSP = "frame-src 'self'; object-src 'self'";
9104
+ /** The `destination` of a worker's own script: its answer's policy is the worker's. */
9105
+ var WORKER_DESTINATIONS = /* @__PURE__ */ new Set([
9106
+ "worker",
9107
+ "sharedworker",
9108
+ "serviceworker"
9109
+ ]);
9016
9110
  /** Refuses every script of a page the guard cannot be put first in. */
9017
9111
  var NO_SCRIPTS_CSP = "script-src 'none'";
9018
9112
  /**
@@ -9077,7 +9171,22 @@ var find = (bytes, from, text) => {
9077
9171
  * `head` ends before that is known and more is coming (`done` false).
9078
9172
  */
9079
9173
  function viewerGuardOffset(head, done) {
9080
- let offset = at(head, 0, "") ? 3 : 0;
9174
+ return guardOffsetFrom(head, done, {
9175
+ from: 0,
9176
+ seen: 0
9177
+ });
9178
+ }
9179
+ /** Too short to tell: what starts at `from` is looked at again with more, its close from about `seen` on. */
9180
+ function wait(look, from, seen) {
9181
+ look.from = from;
9182
+ look.seen = seen;
9183
+ return null;
9184
+ }
9185
+ /** `viewerGuardOffset` going on from `look`, which it moves along when the head is too short to tell. */
9186
+ function guardOffsetFrom(head, done, look) {
9187
+ if (look.from === 0 && !done && head.length < 3 && at(head, 0, "".slice(0, head.length))) return null;
9188
+ let offset = look.from === 0 && at(head, 0, "") ? 3 : look.from;
9189
+ const after = (start) => offset === look.from ? Math.max(start, look.seen - 3) : start;
9081
9190
  for (;;) {
9082
9191
  while (offset < head.length && [
9083
9192
  9,
@@ -9086,27 +9195,27 @@ function viewerGuardOffset(head, done) {
9086
9195
  13,
9087
9196
  32
9088
9197
  ].includes(head[offset])) offset++;
9089
- if (offset >= head.length) return done ? offset : null;
9198
+ if (offset >= head.length) return done ? offset : wait(look, offset, head.length);
9090
9199
  let end;
9091
9200
  if (at(head, offset, "<!--")) {
9092
9201
  if (at(head, offset + 4, ">")) end = offset + 5;
9093
9202
  else if (at(head, offset + 4, "->")) end = offset + 6;
9094
9203
  else {
9095
- const ends = ["-->", "--!>"].map((close) => [find(head, offset + 4, close), close.length]).filter(([index]) => index >= 0).sort(([a], [b]) => a - b);
9204
+ const ends = ["-->", "--!>"].map((close) => [find(head, after(offset + 4), close), close.length]).filter(([index]) => index >= 0).sort(([a], [b]) => a - b);
9096
9205
  end = ends.length ? ends[0][0] + ends[0][1] : -1;
9097
9206
  }
9098
9207
  } else if (at(head, offset, "<!doctype", true)) {
9099
- const close = find(head, offset, ">");
9208
+ const close = find(head, after(offset), ">");
9100
9209
  if (close >= 0) return close + 1;
9101
9210
  end = -1;
9102
9211
  } else if (at(head, offset, "<!") || at(head, offset, "<?")) {
9103
- const close = find(head, offset, ">");
9212
+ const close = find(head, after(offset), ">");
9104
9213
  end = close >= 0 ? close + 1 : -1;
9105
9214
  } else if (offset === head.length - 1 && head[offset] === 60) {
9106
- if (!done) return null;
9215
+ if (!done) return wait(look, offset, head.length);
9107
9216
  return offset;
9108
9217
  } else return offset;
9109
- if (end < 0) return done ? offset : null;
9218
+ if (end < 0) return done ? offset : wait(look, offset, head.length);
9110
9219
  offset = end;
9111
9220
  }
9112
9221
  }
@@ -9123,7 +9232,8 @@ var LOOK_BYTES = 65536;
9123
9232
  async function guardViewerAnswer(headers, body, destination, guards = [WEBRTC_GUARD]) {
9124
9233
  const hashes = guards.map((guard) => guard.hash);
9125
9234
  const out = headers.map(([name, value]) => [name, name.toLowerCase() === "content-security-policy" ? allowingViewerGuard(value, hashes) : value]);
9126
- out.push(["content-security-policy", VIEWER_GUARD_CSP]);
9235
+ const worker = destination !== null && WORKER_DESTINATIONS.has(destination.toLowerCase());
9236
+ out.push(["content-security-policy", worker ? VIEWER_WORKER_GUARD_CSP : VIEWER_GUARD_CSP]);
9127
9237
  if (destination !== null && !DOCUMENT_DESTINATIONS.has(destination.toLowerCase())) return {
9128
9238
  headers: out,
9129
9239
  body
@@ -9148,14 +9258,27 @@ async function guardViewerAnswer(headers, body, destination, guards = [WEBRTC_GU
9148
9258
  });
9149
9259
  if (!html || encoded) return noScripts();
9150
9260
  const iterator = body[Symbol.asyncIterator]();
9151
- let head = /* @__PURE__ */ new Uint8Array(0);
9261
+ let room = /* @__PURE__ */ new Uint8Array(0);
9262
+ let head = room;
9152
9263
  let done = false;
9153
9264
  let offset = null;
9265
+ const look = {
9266
+ from: 0,
9267
+ seen: 0
9268
+ };
9154
9269
  while (offset === null) {
9155
9270
  const next = await iterator.next();
9156
9271
  if (next.done) done = true;
9157
- else head = concatBytes(head, next.value);
9158
- offset = viewerGuardOffset(head, done || head.length >= LOOK_BYTES);
9272
+ else {
9273
+ if (head.length + next.value.length > room.length) {
9274
+ const more = new Uint8Array(Math.max(room.length * 2, head.length + next.value.length));
9275
+ more.set(head);
9276
+ room = more;
9277
+ }
9278
+ room.set(next.value, head.length);
9279
+ head = room.subarray(0, head.length + next.value.length);
9280
+ }
9281
+ offset = guardOffsetFrom(head, done || head.length >= LOOK_BYTES, look);
9159
9282
  }
9160
9283
  const rest = { [Symbol.asyncIterator]: () => iterator };
9161
9284
  const resumed = async function* (first) {
@@ -14626,7 +14749,8 @@ var DhtDelivery = class DhtDelivery {
14626
14749
  * envelope was seen in the pinned mailbox, the invite's is not read any more.
14627
14750
  */
14628
14751
  async read(background, signal = false) {
14629
- const pinned = this.pinned(), options = signal ? { signal } : background ? { background } : void 0;
14752
+ const departed = !signal && !background && this.departedRead();
14753
+ const pinned = this.pinned(), options = signal ? { signal } : background ? { background } : departed ? { departed } : void 0;
14630
14754
  const before = this.state.peerPinned;
14631
14755
  const boxes = !pinned ? ["invite"] : before === "seen" ? ["pinned"] : before ? ["pinned", "invite"] : ["invite", "pinned"];
14632
14756
  let found = null;
@@ -14761,6 +14885,21 @@ var DhtDelivery = class DhtDelivery {
14761
14885
  return this.state.peerMode === "dht" && this.options.peerDhtPollMs && there ? Math.min(this.options.peerDhtPollMs, STREAM_POLL_MS) : STREAM_POLL_MS;
14762
14886
  }
14763
14887
  /**
14888
+ * The contact is on DHT only and this side is not: a live link waits on the contact's envelope saying it left, and
14889
+ * nothing else of the contact's shows before it (no offer is read, no dial taken, while its mailbox says DHT only). Its
14890
+ * reads that are not background ones (the chat open, a text awaiting its receipt) then say `departed`: a few may go over
14891
+ * the relays' minute (`DEPARTED_READS` in relay.ts, per mailbox, every relay together, 6 at the open chat's 10 s pace).
14892
+ * As plain reads, an extension that stayed on Automatic, its minute spent by what it did before, read nothing of its
14893
+ * contact for 40 s after the contact left DHT only, and the matrix's chat stayed "On DHT · retrying live" (E2E full,
14894
+ * 2026-11-07 and 11-08). No more reads than before: those it made anyway, the minute spent, go within the allowance.
14895
+ * Not while this side is leaving DHT only itself (`signalReads` left, `leavingRead`): its read at the switch stays a
14896
+ * plain one, the rest are signaling, so the few requests past a spent minute stay for the dialling side's read of the
14897
+ * answer. As a departed read, the switch's took one, and both sides leaving went live in 34 s, against 10.
14898
+ */
14899
+ departedRead() {
14900
+ return this.mode !== "dht" && this.state.peerMode === "dht" && this.signalReads === 0 && !!this.options.credentials.peerKey;
14901
+ }
14902
+ /**
14764
14903
  * This side is DHT only, and nothing waits on the contact's mailbox: the contact, pinned, is away (nothing new of its
14765
14904
  * own in `PRESENCE_WINDOW`; it puts a keep-alive every four minutes while there), no text of ours awaits its receipt,
14766
14905
  * and the chat is not on screen. Its mailbox is then read at the background pace, as background reads, not every 4 s:
@@ -15277,18 +15416,23 @@ var DNS_TYPE = {
15277
15416
  TXT: 16,
15278
15417
  AAAA: 28
15279
15418
  };
15419
+ /**
15420
+ * EDNS0 OPT record (RFC 6891) with one Client Subnet option of source prefix 0 (RFC 7871 §7.1.2): a resolver must
15421
+ * not add this device's subnet to its queries to the name's servers, as Google Public DNS otherwise does.
15422
+ */
15423
+ var NO_CLIENT_SUBNET = Uint8Array.of(0, 0, 41, 4, 208, 0, 0, 0, 0, 0, 8, 0, 8, 0, 4, 0, 1, 0, 0);
15280
15424
  /** A recursive query for one name and type. ID 0, as RFC 8484 recommends for caching;
15281
15425
  * the AD bit asks the resolver to report DNSSEC validation (RFC 6840 §5.7). */
15282
15426
  function encodeDnsQuery(name, type) {
15283
15427
  const labels = name.replace(/\.$/, "").split(".");
15284
- const parts = [Uint8Array.of(0, 0, 1, 32, 0, 1, 0, 0, 0, 0, 0, 0)];
15428
+ const parts = [Uint8Array.of(0, 0, 1, 32, 0, 1, 0, 0, 0, 0, 0, 1)];
15285
15429
  for (const label of labels) {
15286
15430
  const bytes = utf8Encode(label);
15287
15431
  if (!bytes.length || bytes.length > 63) throw new Error("Invalid DNS name");
15288
15432
  parts.push(Uint8Array.of(bytes.length), bytes);
15289
15433
  }
15290
15434
  const code = DNS_TYPE[type];
15291
- parts.push(Uint8Array.of(0, code >> 8, code & 255, 0, 1));
15435
+ parts.push(Uint8Array.of(0, code >> 8, code & 255, 0, 1), NO_CLIENT_SUBNET);
15292
15436
  return concatBytes(...parts);
15293
15437
  }
15294
15438
  function readName(data, start) {
@@ -16597,7 +16741,7 @@ async function verifyPeerProof(event, c, readStorage) {
16597
16741
  if (sig.length !== 64 || !verify(sig, data, fromZ32(c.externalKey))) throw new Error("Invalid Pubky signature");
16598
16742
  } else if (c.adapter === "keet-import") {
16599
16743
  if (sig.length !== 107 || sig[0] !== 1 || sig[41] !== 0 || sig[42] !== 1) throw new Error("Unsupported Keet attestation");
16600
- const { default: IdentityKey } = await import("./keet-identity-key-CASfmXry.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
16744
+ const { default: IdentityKey } = await import("./keet-identity-key-3EEmDkxz.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
16601
16745
  if (!IdentityKey.verify(b4a.from(sig), b4a.from(data), { expectedIdentity: b4a.from(unhex(c.externalKey)) })) throw new Error("Invalid Keet attestation");
16602
16746
  } else throw new Error("Unsupported proof adapter");
16603
16747
  }
@@ -17302,6 +17446,7 @@ var IdentityExchange = class {
17302
17446
  id,
17303
17447
  provider,
17304
17448
  subject,
17449
+ account: local.account ?? subject,
17305
17450
  status: "queued",
17306
17451
  at: this.now()
17307
17452
  };
@@ -17460,7 +17605,7 @@ var IdentityExchange = class {
17460
17605
  at: this.now(),
17461
17606
  error
17462
17607
  };
17463
- const replaced = (x) => ok && x.status === "accepted" && x.provider === s.provider && x.subject === s.subject;
17608
+ const replaced = (x) => ok && x.status === "accepted" && x.provider === s.provider && x.account !== void 0 && x.account === s.account;
17464
17609
  await this.options.storage.update((l) => l.shared.filter((x) => x.id !== s.id && replaced(x)).reduce((out, x) => this.log(out, {
17465
17610
  type: "stopped",
17466
17611
  side: "mine",
@@ -19293,7 +19438,12 @@ var APP_RANGE_LIMITS = {
19293
19438
  * The bytes a server takes asks for in one second, its apps together: one more is answered `busy`. Counted as they
19294
19439
  * are asked, so a cancelled one counts as the read it started. Twice the asking app's own budget (16 MiB a second).
19295
19440
  */
19296
- bytesPerSecond: 33554432
19441
+ bytesPerSecond: 33554432,
19442
+ /**
19443
+ * The least one ask counts in `bytesPerSecond`, however few bytes it asked or the file held from its offset: each is
19444
+ * a read on this device, so a contact gets at most 512 a second.
19445
+ */
19446
+ askFloorBytes: 65536
19297
19447
  };
19298
19448
  /**
19299
19449
  * What an `ar-err` says. `not-served`: no serve of that id (never given, or ended); `changed` and
@@ -19574,16 +19724,17 @@ var AppRanges = class {
19574
19724
  old.out = true;
19575
19725
  this.takenBytes -= old.bytes;
19576
19726
  }
19577
- if (this.takenBytes + frame.n > APP_RANGE_LIMITS.bytesPerSecond) {
19727
+ const bytes = Math.max(frame.n, APP_RANGE_LIMITS.askFloorBytes);
19728
+ if (this.takenBytes + bytes > APP_RANGE_LIMITS.bytesPerSecond) {
19578
19729
  this.send(appRangeErrorFrame(app, request, "busy"));
19579
19730
  return null;
19580
19731
  }
19581
19732
  const charge = {
19582
19733
  at,
19583
- bytes: frame.n
19734
+ bytes
19584
19735
  };
19585
19736
  this.taken.push(charge);
19586
- this.takenBytes += frame.n;
19737
+ this.takenBytes += bytes;
19587
19738
  const task = {
19588
19739
  app,
19589
19740
  request,
@@ -19605,7 +19756,7 @@ var AppRanges = class {
19605
19756
  /** Every byte of `task` was sent: `ar-end` goes with the file's size, unless the task was dropped meanwhile. */
19606
19757
  finish(task, size) {
19607
19758
  if (!this.take(task)) return;
19608
- const charge = task.charge, sent = Math.max(0, Math.min(task.length, size - task.offset));
19759
+ const charge = task.charge, sent = Math.max(APP_RANGE_LIMITS.askFloorBytes, Math.min(task.length, size - task.offset));
19609
19760
  if (charge && !charge.out && charge.bytes > sent) {
19610
19761
  this.takenBytes -= charge.bytes - sent;
19611
19762
  charge.bytes = sent;
@@ -21086,6 +21237,12 @@ var ChatFiles = class {
21086
21237
  moving = /* @__PURE__ */ new Set();
21087
21238
  /** Files that stopped sending for the chat's window alone: they go on once another's bytes are confirmed. */
21088
21239
  held = /* @__PURE__ */ new Set();
21240
+ /**
21241
+ * Files this side cancelled while no session carried the cancel (`pf-abort`), said on the next one. The session also
21242
+ * goes for a moment when a move swaps it (its capabilities are agreed again): unsaid, the receiver showed the file
21243
+ * moving, its bytes kept, until its idle nudge asked 30 s later.
21244
+ */
21245
+ unsaid = /* @__PURE__ */ new Set();
21089
21246
  attached = false;
21090
21247
  peerRoomValue = null;
21091
21248
  /** What the chat's files may have in flight, sized by the path. */
@@ -21184,6 +21341,10 @@ var ChatFiles = class {
21184
21341
  this.refill = 0;
21185
21342
  this.host.uplink?.join(this);
21186
21343
  this.sayRoom();
21344
+ for (const id of this.unsaid) if (this.send({
21345
+ t: "pf-abort",
21346
+ id
21347
+ })) this.unsaid.delete(id);
21187
21348
  this.sweep();
21188
21349
  for (const entry of this.entries.values()) {
21189
21350
  if (transferEnded(entry.record)) continue;
@@ -22189,10 +22350,10 @@ var ChatFiles = class {
22189
22350
  const entry = this.entry(direction, id);
22190
22351
  if (transferEnded(entry.record)) return;
22191
22352
  if (direction === "out") {
22192
- this.send({
22353
+ if (!this.send({
22193
22354
  t: "pf-abort",
22194
22355
  id
22195
- });
22356
+ })) this.unsaid.add(id);
22196
22357
  this.end(entry, "cancelled", "You cancelled it");
22197
22358
  } else {
22198
22359
  this.discardStored(entry);
@@ -23834,6 +23995,22 @@ var QUIET_FRAMES = /* @__PURE__ */ new Set([
23834
23995
  CONTACT_ASKER_FRAME
23835
23996
  ]);
23836
23997
  /**
23998
+ * What a session a move replaced still reads while its channel retires (`SWITCH_RETIRE_MS`): the contact's texts,
23999
+ * reactions, pins and edits, and its receipts of this side's, which it sends on that session until its own side moves.
24000
+ * Its files/3 frames too (a cancel, a pause, a file's check): `ChatFiles` answers them on the session now.
24001
+ */
24002
+ var RETIRING_FRAMES = /* @__PURE__ */ new Set([
24003
+ "paired-message",
24004
+ "paired-received",
24005
+ REACTION_FRAME,
24006
+ REACTED_FRAME,
24007
+ PIN_FRAME,
24008
+ PINNED_FRAME,
24009
+ EDIT_FRAME,
24010
+ EDITED_FRAME,
24011
+ ...FILE_FRAMES
24012
+ ]);
24013
+ /**
23837
24014
  * A ping with nothing at all back this long after it went: the contact may have crashed and started again, with its new
23838
24015
  * offer waiting on the relays, while this side still holds the old session and reads them at a live chat's pace (30 s).
23839
24016
  * They are read now. Nothing more: the session is let go only by `LIVENESS_MISSED_PINGS`, or by the contact's offer
@@ -23891,6 +24068,17 @@ var APP_IN_FLIGHT = 65536;
23891
24068
  /** Largest `paired-message` frame sent with a preview: a session fails on a frame over 60 KiB (`PairedSession`). */
23892
24069
  var MAX_PAIRED_MESSAGE_FRAME = 57344;
23893
24070
  /**
24071
+ * Texts a contact's link takes: a burst per short window (a reconnect flushes every queued text at once) and a total
24072
+ * per hour, both well above what a person or a bot sends. The rest go unconfirmed and come again (the sender's outbox
24073
+ * resends with backoff), so a catch-up only slows.
24074
+ */
24075
+ var MESSAGE_RECEIVE_LIMITS = {
24076
+ burst: 200,
24077
+ burstWindowMs: 1e4,
24078
+ hourly: 1800,
24079
+ hourWindowMs: 36e5
24080
+ };
24081
+ /**
23894
24082
  * A `paired-message` frame. The preview (`pv`) is left out when the frame would pass `MAX_PAIRED_MESSAGE_FRAME`
23895
24083
  * with it: the text matters, the card does not. A reply (`r`, WISP 401 § Replies) is a few hundred bytes at most
23896
24084
  * and always goes, and so does a forwarded message's hop count (`fw`, WISP 401 § Forwards) and a status card (`sc`,
@@ -24108,6 +24296,8 @@ var GhostLink = class {
24108
24296
  pinsReceived = new ReactionWindow(PIN_LIMITS.receive, PIN_LIMITS.windowMs);
24109
24297
  /** Edit frames the contact may send per window; the rest go unconfirmed and come again. */
24110
24298
  editsReceived = new RateWindow(30, EDIT_RATE_WINDOW_MS);
24299
+ /** Text frames the contact may send per window (`MESSAGE_RECEIVE_LIMITS`); the rest go unconfirmed and come again. */
24300
+ messagesReceived = [new RateWindow(MESSAGE_RECEIVE_LIMITS.burst, MESSAGE_RECEIVE_LIMITS.burstWindowMs), new RateWindow(MESSAGE_RECEIVE_LIMITS.hourly, MESSAGE_RECEIVE_LIMITS.hourWindowMs)];
24111
24301
  /** Call signals the contact may send per window; the rest are dropped. */
24112
24302
  callsReceived = new RateWindow(150, CALL_RATE_WINDOW_MS);
24113
24303
  /** WebRTC signals the contact may send on the session (`paired-rtc`) per window; the rest are dropped. */
@@ -25136,6 +25326,18 @@ var GhostLink = class {
25136
25326
  });
25137
25327
  }
25138
25328
  /**
25329
+ * Where the receipt of a frame read on `channel` goes: that session while it carries the chat, the one now when a move
25330
+ * replaced it (or moved while the frame was shown), or nowhere.
25331
+ */
25332
+ answerOn(channel) {
25333
+ const live = this.channel;
25334
+ return live && (live === channel || this.retiring.has(channel)) && this.isDataLinkOpen ? live : null;
25335
+ }
25336
+ /** Counts one text the contact sent; false (and not counted) when either of `messagesReceived` is full. */
25337
+ takeMessage() {
25338
+ return this.messagesReceived.every((window) => window.wait() === 0) && this.messagesReceived.every((window) => window.take());
25339
+ }
25340
+ /**
25139
25341
  * The WebRTC session a switch moved off is still retiring (`SWITCH_RETIRE_MS`): its data link is open, and a new offer
25140
25342
  * cannot go until it closes. Resolves once it has (at once when none is).
25141
25343
  */
@@ -28031,6 +28233,12 @@ var GhostLink = class {
28031
28233
  if (this.channel === channel && (!this.unproven(channel) && !this.pinnedSince(channel, paired) || paired.state.status === "ready")) this.emitPairingState();
28032
28234
  },
28033
28235
  onFailure: () => {
28236
+ const retiring = this.channel !== channel ? this.retiring.get(channel) : void 0;
28237
+ if (retiring) {
28238
+ clearTimeout(retiring.timer);
28239
+ retiring.close();
28240
+ return;
28241
+ }
28034
28242
  if (paired.state.keyMismatch) this.options.events?.onPeerKeyRefused?.();
28035
28243
  if (this.unproven(channel) || this.pinnedSince(channel, paired) || paired.authTimedOut || paired.overloaded) {
28036
28244
  if (paired.state.keyMismatch) this.dht?.foreignKeySeen("stream");
@@ -28078,11 +28286,12 @@ var GhostLink = class {
28078
28286
  this.paired = paired;
28079
28287
  this.activeBinding = binding;
28080
28288
  this.channelSince = Date.now();
28081
- oldPaired?.stop();
28082
28289
  const oldRtc = oldBinding ? null : this.dataLink.connection;
28083
28290
  if (oldChannel) this.retire(oldChannel, () => {
28291
+ oldPaired?.stop();
28084
28292
  if (oldRtc && this.activeBinding && this.dataLink.connection === oldRtc) this.dataLink.close();
28085
28293
  }, !oldBinding);
28294
+ else oldPaired?.stop();
28086
28295
  if (migration.plan && binding && oldBinding && WEBRTC_ATTEMPT.has(this.dataLink.state)) this.dataLink.close();
28087
28296
  this.session.setDataLinkOpen(true);
28088
28297
  if (migration.plan) switched = {
@@ -28161,10 +28370,13 @@ var GhostLink = class {
28161
28370
  }
28162
28371
  },
28163
28372
  onApplication: async (data) => {
28164
- if (this.channel !== channel) return;
28165
- this.unansweredPings = 0;
28166
- this.heardFromPeer();
28167
- this.framesHeard++;
28373
+ const retired = this.channel !== channel;
28374
+ if (retired && !this.retiring.has(channel)) return;
28375
+ if (!retired) {
28376
+ this.unansweredPings = 0;
28377
+ this.heardFromPeer();
28378
+ this.framesHeard++;
28379
+ } else if (typeof data !== "string") return;
28168
28380
  if (typeof data !== "string") {
28169
28381
  if (data[0] === 5) {
28170
28382
  const range = this.supportsAppRanges && this.supportsBinaryFiles ? decodeAppRangeData(data) : null;
@@ -28187,6 +28399,7 @@ var GhostLink = class {
28187
28399
  } catch {
28188
28400
  return;
28189
28401
  }
28402
+ if (retired && !RETIRING_FRAMES.has(String(frame?.t))) return;
28190
28403
  if (frame && typeof frame === "object" && !QUIET_FRAMES.has(String(frame.t))) this.activityAt = Date.now();
28191
28404
  if (frame?.t === "paired-ping") {
28192
28405
  try {
@@ -28342,8 +28555,9 @@ var GhostLink = class {
28342
28555
  if (!this.supportsReactions || !this.reactionsReceived.take()) return;
28343
28556
  const reaction = parseReactionFrame(frame);
28344
28557
  if (!reaction) return;
28345
- if (await this.options.events?.onReaction?.(reaction) && this.channel === channel && this.isDataLinkOpen) try {
28346
- channel.send(reactedFrame(reaction.n));
28558
+ const reacted = await this.options.events?.onReaction?.(reaction), live = this.answerOn(channel);
28559
+ if (reacted && live) try {
28560
+ live.send(reactedFrame(reaction.n));
28347
28561
  } catch {}
28348
28562
  return;
28349
28563
  }
@@ -28356,8 +28570,9 @@ var GhostLink = class {
28356
28570
  if (!this.supportsPins || !this.pinsReceived.take()) return;
28357
28571
  const pin = parsePinFrame(frame);
28358
28572
  if (!pin) return;
28359
- if (await this.options.events?.onPin?.(pin) && this.channel === channel && this.isDataLinkOpen) try {
28360
- channel.send(pinnedFrame(pin.n));
28573
+ const pinned = await this.options.events?.onPin?.(pin), live = this.answerOn(channel);
28574
+ if (pinned && live) try {
28575
+ live.send(pinnedFrame(pin.n));
28361
28576
  } catch {}
28362
28577
  return;
28363
28578
  }
@@ -28370,7 +28585,8 @@ var GhostLink = class {
28370
28585
  if (!this.supportsEdits || !this.editsReceived.take()) return;
28371
28586
  const edit = parseEditFrame(frame);
28372
28587
  if (!edit) return;
28373
- if (await this.options.events?.onMessageEdit?.(edit) && this.channel === channel && this.isDataLinkOpen) channel.send(editedFrame(edit.id, edit.e));
28588
+ const edited = await this.options.events?.onMessageEdit?.(edit), live = this.answerOn(channel);
28589
+ if (edited && live) live.send(editedFrame(edit.id, edit.e));
28374
28590
  return;
28375
28591
  }
28376
28592
  if (frame?.t === "paired-edited") {
@@ -28466,6 +28682,7 @@ var GhostLink = class {
28466
28682
  return;
28467
28683
  }
28468
28684
  if (!frame || typeof frame.id !== "string" || !/^[A-Za-z0-9_-]{22}$/.test(frame.id)) return;
28685
+ if (frame.t === "paired-message" && !this.takeMessage()) return;
28469
28686
  if (frame.t === "paired-message" && typeof frame.m === "string" && utf8Encode(frame.m).length <= LIMITS.maxChatMessageBytes && typeof frame.ts === "number" && Number.isSafeInteger(frame.ts) && frame.ts > 0) {
28470
28687
  const preview = frame.pv === void 0 ? void 0 : parseLinkPreview(frame.pv, frame.m);
28471
28688
  this.typingReceiver.clear();
@@ -28482,7 +28699,8 @@ var GhostLink = class {
28482
28699
  ...forwarded && { forwarded },
28483
28700
  ...card && { card }
28484
28701
  });
28485
- if (this.channel === channel && this.isDataLinkOpen) channel.send(JSON.stringify({
28702
+ const live = this.answerOn(channel);
28703
+ if (live) live.send(JSON.stringify({
28486
28704
  t: "paired-received",
28487
28705
  id: frame.id
28488
28706
  }));
@@ -28959,6 +29177,7 @@ var GhostLink = class {
28959
29177
  break;
28960
29178
  }
28961
29179
  case "m":
29180
+ if (!this.takeMessage()) break;
28962
29181
  this.options.events?.onMessage?.({
28963
29182
  text: frame.m,
28964
29183
  timestamp: frame.ts,
@@ -30392,16 +30611,19 @@ async function videoMetadataPatches(file, mime, audio = false) {
30392
30611
  *
30393
30612
  * - MP4 audio (M4A, a voice note recorded in MP4): videoMetadata.ts's box walk, its `udta` and `meta` emptied.
30394
30613
  * - MP3 and AAC: an ID3v2 tag at the start becomes an empty one (its frames zeros: padding), one at the end (with its
30395
- * footer), an APEv2 tag's items, a Lyrics3v2 tag and an ID3v1 tag's fields become zeros.
30614
+ * footer), an APEv2 tag's items, a Lyrics3v2 tag and an ID3v1 tag's fields become zeros. One typed as MP3 or AAC
30615
+ * whose first bytes are neither (junk before its first frame) still has the tags at its end emptied.
30396
30616
  * - FLAC: every metadata block but its stream info and seek table (a Vorbis comment, a picture, a cue sheet, an
30397
30617
  * application's) becomes padding, zeroed.
30398
- * - Ogg Opus, Vorbis and Speex: the comment header keeps its vendor (the encoder's name) and has no comment, the bytes
30399
- * after it zeros; each page it changed has its checksum made again.
30400
- * - WAV: every chunk but its format, data and the ones of the sound itself (`fact`, `cue `, `smpl`, `inst`) becomes
30401
- * `JUNK`, zeroed (an INFO list, an `id3 ` chunk, a broadcast `bext` with its date and originator, XMP).
30618
+ * - Ogg Opus, Vorbis, Speex and Theora: the comment header keeps its vendor (the encoder's name) and has no comment,
30619
+ * the bytes after it zeros. FLAC in Ogg: its metadata blocks as a FLAC's. Each page changed has its checksum made again.
30620
+ * - WAV (RIFF, RF64 or BW64): every chunk but its format, data and the ones of the sound itself (`fact`, `cue `,
30621
+ * `smpl`, `inst`, an RF64's `ds64`) becomes `JUNK`, zeroed (an INFO list, an `id3 ` chunk, a broadcast `bext` with
30622
+ * its date and originator, iXML, XMP).
30402
30623
  * - WebM and Matroska, audio or video: `Tags`, `Attachments`, `Chapters`, the title, the date, the file names and each
30403
30624
  * track's name become `Void` elements (and the SeekHead's entries for them); the muxer's and the writing app's names
30404
- * are zeroed. Clusters, cues and track settings are kept as they are.
30625
+ * are zeroed. A Vorbis, Theora or FLAC track's CodecPrivate (its Ogg headers or its FLAC metadata blocks) has its
30626
+ * comments emptied as an Ogg's or a FLAC's. Clusters, cues and other track settings are kept as they are.
30405
30627
  *
30406
30628
  * Fail-closed: a file that is one of these by its bytes and whose tags cannot be removed (truncated, malformed) is
30407
30629
  * refused with `NO_AUDIO_METADATA`, never sent as it was. Any other file goes as it is (other audio formats too).
@@ -30558,6 +30780,17 @@ async function trailingTags(read, size, start, patches) {
30558
30780
  return;
30559
30781
  }
30560
30782
  }
30783
+ /** The types an MP3 or AAC file is sent as: one whose first bytes are no frame still has its tags at the end read. */
30784
+ var MPEG_AUDIO = /* @__PURE__ */ new Set([
30785
+ "audio/mpeg",
30786
+ "audio/mp3",
30787
+ "audio/mpeg3",
30788
+ "audio/x-mpeg",
30789
+ "audio/x-mp3",
30790
+ "audio/aac",
30791
+ "audio/x-aac",
30792
+ "audio/aacp"
30793
+ ]);
30561
30794
  /** An MPEG audio frame's or an ADTS header's first bytes: 11 bits set, a version and a layer that are some. */
30562
30795
  var isFrame = (b, at) => b.length >= at + 2 && b[at] === 255 && (b[at + 1] & 224) === 224 && (b[at + 1] & 24) !== 8;
30563
30796
  var FLAC_KEEPS = /* @__PURE__ */ new Set([0, 3]);
@@ -30600,40 +30833,49 @@ function oggCrc(page) {
30600
30833
  return crc;
30601
30834
  }
30602
30835
  /**
30603
- * How a codec's comment header (its second packet) is laid out: its magic's length, and whether a framing bit
30604
- * follows its comments (Vorbis). Known by the first bytes of its first packet.
30605
- */
30606
- var OGG_CODECS = [
30607
- {
30608
- head: "OpusHead",
30609
- comments: "OpusTags",
30610
- framing: false
30611
- },
30612
- {
30613
- head: "vorbis",
30614
- comments: "vorbis",
30615
- framing: true
30616
- },
30617
- {
30618
- head: "Speex ",
30619
- comments: "",
30620
- framing: false
30621
- }
30622
- ];
30623
- /**
30624
30836
  * A comment header with no comment: its magic and vendor kept, its count 0 (and Vorbis's framing bit set), the rest
30625
- * zeros: padding after the comments, which Opus says may be there and Vorbis's and Speex's readers do not read.
30837
+ * zeros: padding after the comments, which Opus says may be there and Vorbis's, Speex's and Theora's readers do not read.
30626
30838
  */
30627
- function noComments(packet, codec) {
30628
- const magic = codec.comments.length;
30629
- check(text(packet, 0, magic) === codec.comments && packet.length >= magic + 4);
30839
+ function noComments(packet, comments, framing) {
30840
+ const magic = comments.length;
30841
+ check(text(packet, 0, magic) === comments && packet.length >= magic + 4);
30630
30842
  const count = magic + 4 + u32le(packet, magic);
30631
- check(count + 4 + (codec.framing ? 1 : 0) <= packet.length);
30843
+ check(count + 4 + (framing ? 1 : 0) <= packet.length);
30632
30844
  const out = new Uint8Array(packet.length);
30633
30845
  out.set(packet.subarray(0, count));
30634
- if (codec.framing) out[count + 4] = 1;
30846
+ if (framing) out[count + 4] = 1;
30847
+ return out;
30848
+ }
30849
+ /** A FLAC metadata block that is a whole packet (FLAC in Ogg): kept, or made padding as `flac` makes it. */
30850
+ function noFlacBlock(packet) {
30851
+ check(packet.length >= 4 && packet.length === 4 + (packet[1] << 16 | packet[2] << 8 | packet[3]) && (packet[0] & 127) !== 127);
30852
+ const type = packet[0] & 127;
30853
+ if (FLAC_KEEPS.has(type)) return packet;
30854
+ const out = new Uint8Array(packet.length);
30855
+ out[0] = type === 1 ? packet[0] : packet[0] & 128 | 1;
30635
30856
  return out;
30636
30857
  }
30858
+ /** A codec whose second packet is its comment header: its magic, and whether a framing bit follows its comments (Vorbis). */
30859
+ var commentHeader = (head, comments, framing) => ({
30860
+ head,
30861
+ tagged: (_, index) => index === 0,
30862
+ empty: (packet) => noComments(packet, comments, framing)
30863
+ });
30864
+ var OGG_CODECS = [
30865
+ commentHeader("OpusHead", "OpusTags", false),
30866
+ commentHeader("vorbis", "vorbis", true),
30867
+ commentHeader("Speex ", "", false),
30868
+ commentHeader("€theora", "theora", false),
30869
+ {
30870
+ head: "FLAC",
30871
+ tagged: (packet, index) => {
30872
+ if (index) return !(packet[0] & 128);
30873
+ check(packet.length >= 17 && text(packet, 9, 4) === "fLaC");
30874
+ return !(packet[13] & 128);
30875
+ },
30876
+ empty: noFlacBlock
30877
+ }
30878
+ ];
30637
30879
  /**
30638
30880
  * An Ogg file's pages walked: each logical stream's comment header (a chained file has one per link) made one with no
30639
30881
  * comment where it is, across the pages it spans, and those pages' checksums made again.
@@ -30664,13 +30906,14 @@ async function ogg(read, size, patches) {
30664
30906
  const serial = u32le(head, 14);
30665
30907
  if (head[5] & 2) streams.set(serial, {
30666
30908
  packet: 0,
30667
- ranges: []
30909
+ ranges: [],
30910
+ tagged: true
30668
30911
  });
30669
30912
  const stream = streams.get(serial);
30670
30913
  check(!!stream);
30671
30914
  let offset = at + 27 + lacing.length;
30672
30915
  for (const length of lacing) {
30673
- if (stream.packet <= 1 && stream.codec !== null) stream.ranges.push([
30916
+ if (stream.tagged) stream.ranges.push([
30674
30917
  offset,
30675
30918
  offset + length,
30676
30919
  at
@@ -30680,8 +30923,10 @@ async function ogg(read, size, patches) {
30680
30923
  if (stream.packet === 0) {
30681
30924
  const first = await packetOf(stream.ranges);
30682
30925
  stream.codec = OGG_CODECS.find((codec) => text(first, 0, codec.head.length) === codec.head) ?? null;
30683
- } else if (stream.packet === 1 && stream.codec) {
30684
- const emptied = noComments(await packetOf(stream.ranges), stream.codec);
30926
+ stream.tagged = !!stream.codec?.tagged(first, 0);
30927
+ } else if (stream.tagged && stream.codec) {
30928
+ const packet = await packetOf(stream.ranges), emptied = stream.codec.empty(packet);
30929
+ stream.tagged = stream.codec.tagged(packet, stream.packet);
30685
30930
  let from = 0;
30686
30931
  for (const [start, until, page] of stream.ranges) {
30687
30932
  if (!pages.has(page)) pages.set(page, []);
@@ -30694,7 +30939,7 @@ async function ogg(read, size, patches) {
30694
30939
  }
30695
30940
  at = end;
30696
30941
  }
30697
- for (const stream of streams.values()) check(stream.codec === null || stream.packet > 1);
30942
+ for (const stream of streams.values()) check(!stream.tagged);
30698
30943
  for (const [start, changes] of pages) {
30699
30944
  const head = await read(start, 27), lacing = await read(start + 27, head[26]);
30700
30945
  const end = start + 27 + lacing.length + lacing.reduce((sum, l) => sum + l, 0);
@@ -30729,16 +30974,23 @@ var WAV_SPACE = /* @__PURE__ */ new Set([
30729
30974
  "PAD ",
30730
30975
  "FLLR"
30731
30976
  ]);
30732
- async function wav(read, size, patches) {
30977
+ /** A WAV's chunks from its `WAVE`; an RF64 or BW64 one (`rf64`) has its `ds64` first, which says `data`'s size when its own is all ones. */
30978
+ async function wav(read, size, rf64, patches) {
30979
+ let dataSize;
30980
+ if (rf64) {
30981
+ const ds64 = await read(12, 24);
30982
+ check(text(ds64, 0, 4) === "ds64" && u32le(ds64, 4) >= 28);
30983
+ dataSize = u32le(ds64, 16) + u32le(ds64, 20) * 2 ** 32;
30984
+ }
30733
30985
  const count = counter();
30734
30986
  for (let at = 12; at + 8 <= size;) {
30735
30987
  count();
30736
30988
  const head = await read(at, 8);
30737
- const id = text(head, 0, 4), length = u32le(head, 4);
30738
- let end = at + 8 + length + (length & 1);
30989
+ const id = text(head, 0, 4), length = id === "data" && dataSize !== void 0 && u32le(head, 4) === 4294967295 ? dataSize : u32le(head, 4);
30990
+ let end = at + 8 + length + length % 2;
30739
30991
  if (id === "data") end = length ? Math.min(end, size) : size;
30740
30992
  else check(at + 8 + length <= size);
30741
- if (!WAV_KEEPS.has(id)) {
30993
+ if (!WAV_KEEPS.has(id) && !(rf64 && at === 12)) {
30742
30994
  if (!WAV_SPACE.has(id)) patches.push({
30743
30995
  start: at,
30744
30996
  end: at + 4,
@@ -30793,8 +31045,12 @@ var INFO_KEEPS = /* @__PURE__ */ new Set([
30793
31045
  var INFO_ZEROED = /* @__PURE__ */ new Set([19840, 22337]);
30794
31046
  var TRACK_ENTRY = 174;
30795
31047
  var TRACK_NAME = 21358;
31048
+ var CODEC_ID = 134;
31049
+ var CODEC_PRIVATE = 25506;
30796
31050
  var SEEK = 19899;
30797
31051
  var SEEK_ID = 21419;
31052
+ /** The codecs whose CodecPrivate is their Ogg headers Xiph-laced: the second a comment header, its magic, and whether a framing bit follows its comments. */
31053
+ var XIPH_PRIVATE = /* @__PURE__ */ new Map([["A_VORBIS", ["vorbis", true]], ["V_THEORA", ["theora", false]]]);
30798
31054
  /** The element whose header is at `at` of `b` (`base` its offset in the file); one of unknown size ends at `limit`. */
30799
31055
  function element(b, at, limit, base = 0) {
30800
31056
  check(at < b.length);
@@ -30853,11 +31109,45 @@ function childrenOf(b, parent) {
30853
31109
  return found;
30854
31110
  }
30855
31111
  /**
31112
+ * A track's CodecPrivate (`b`, changed in it) by its codec: a Vorbis or Theora track's headers (their count less one,
31113
+ * each size but the last's in Xiph lacing, them) with a comment header that has no comment, its sizes kept; a FLAC
31114
+ * track's `fLaC` and metadata blocks as a FLAC's, any byte after the last zeroed. Another codec's is kept as it is.
31115
+ */
31116
+ async function noPrivateTags(b, codec) {
31117
+ const xiph = XIPH_PRIVATE.get(codec);
31118
+ if (xiph) {
31119
+ check(b.length >= 1 && b[0] === 2);
31120
+ let at = 1;
31121
+ const sizes = [];
31122
+ while (sizes.length < 2) {
31123
+ let size = 0;
31124
+ for (let byte = 255; byte === 255; size += byte) {
31125
+ check(at < b.length);
31126
+ byte = b[at++];
31127
+ }
31128
+ sizes.push(size);
31129
+ }
31130
+ const start = at + sizes[0], end = start + sizes[1];
31131
+ check(end <= b.length);
31132
+ b.set(noComments(b.subarray(start, end), ...xiph), start);
31133
+ } else if (codec === "A_FLAC") {
31134
+ check(b.length >= 4 && text(b, 0, 4) === "fLaC");
31135
+ const patches = [];
31136
+ const end = await flac(async (offset, length) => {
31137
+ check(offset >= 0 && length >= 0 && offset + length <= b.length);
31138
+ return b.subarray(offset, offset + length);
31139
+ }, b.length, 0, patches);
31140
+ for (const patch of patches) if (patch.bytes) b.set(patch.bytes, patch.start);
31141
+ else b.fill(0, patch.start, patch.end);
31142
+ b.fill(0, end);
31143
+ }
31144
+ }
31145
+ /**
30856
31146
  * A top-level element of a segment read whole and changed in it: Info without its title, date and file names (its
30857
- * muxer's and writing app's names zeroed), Tracks without their names, a SeekHead without the entries for what
30858
- * became Void. A CRC-32 in them, wrong once they changed, becomes Void too.
31147
+ * muxer's and writing app's names zeroed), Tracks without their names and the comments in their CodecPrivate, a
31148
+ * SeekHead without the entries for what became Void. A CRC-32 in them, wrong once they changed, becomes Void too.
30859
31149
  */
30860
- function stripTopLevel(b) {
31150
+ async function stripTopLevel(b) {
30861
31151
  const top = element(b, 0, b.length);
30862
31152
  check(!top.unknown && top.end === b.length);
30863
31153
  for (const child of childrenOf(b, top)) {
@@ -30866,7 +31156,11 @@ function stripTopLevel(b) {
30866
31156
  if (INFO_ZEROED.has(child.id)) b.fill(0, child.body, child.end);
30867
31157
  else if (!INFO_KEEPS.has(child.id) && child.id !== VOID) voidIn(b, child);
30868
31158
  } else if (top.id === TRACKS && child.id === TRACK_ENTRY) {
30869
- for (const part of childrenOf(b, child)) if (part.id === TRACK_NAME || part.id === CRC32) voidIn(b, part);
31159
+ const parts = childrenOf(b, child), ids = parts.filter((part) => part.id === CODEC_ID);
31160
+ check(ids.length <= 1);
31161
+ const codec = ids[0] ? text(b, ids[0].body, ids[0].end - ids[0].body).replace(/\0+$/, "") : "";
31162
+ for (const part of parts) if (part.id === TRACK_NAME || part.id === CRC32) voidIn(b, part);
31163
+ else if (part.id === CODEC_PRIVATE) await noPrivateTags(b.subarray(part.body, part.end), codec);
30870
31164
  } else if (top.id === SEEK_HEAD && child.id === SEEK) {
30871
31165
  const target = childrenOf(b, child).find((part) => part.id === SEEK_ID);
30872
31166
  let id = 0;
@@ -30925,7 +31219,7 @@ async function matroska(source, read, patches) {
30925
31219
  check(!el.unknown && el.end <= top.end);
30926
31220
  if (el.id === INFO || el.id === TRACKS || el.id === SEEK_HEAD) {
30927
31221
  const bytes = (await read(el.start, el.end - el.start)).slice();
30928
- stripTopLevel(bytes);
31222
+ await stripTopLevel(bytes);
30929
31223
  patches.push({
30930
31224
  start: el.start,
30931
31225
  end: el.end,
@@ -30958,7 +31252,11 @@ async function audioMetadataPatches(file, mime) {
30958
31252
  throw error;
30959
31253
  }
30960
31254
  else if (text(head, 0, 4) === "OggS") await ogg(read, size, patches);
30961
- else if (head.length >= 12 && text(head, 0, 4) === "RIFF" && text(head, 8, 4) === "WAVE") await wav(read, size, patches);
31255
+ else if (head.length >= 12 && [
31256
+ "RIFF",
31257
+ "RF64",
31258
+ "BW64"
31259
+ ].includes(text(head, 0, 4)) && text(head, 8, 4) === "WAVE") await wav(read, size, text(head, 0, 4) !== "RIFF", patches);
30962
31260
  else if (text(head, 0, 4) === "Eߣ") await matroska(source, read, patches);
30963
31261
  else if (text(head, 0, 4) === "fLaC") await trailingTags(read, size, await flac(read, size, 0, patches), patches);
30964
31262
  else if (isId3(head) || isFrame(head, 0)) {
@@ -30970,7 +31268,8 @@ async function audioMetadataPatches(file, mime) {
30970
31268
  }
30971
31269
  if (at + 4 <= size && text(await read(at, 4), 0, 4) === "fLaC") at = await flac(read, size, at, patches);
30972
31270
  await trailingTags(read, size, at, patches);
30973
- } else return void 0;
31271
+ } else if (MPEG_AUDIO.has(baseMime(mime))) await trailingTags(read, size, 0, patches);
31272
+ else return void 0;
30974
31273
  if (!patches.length) return void 0;
30975
31274
  patches.sort((a, b) => a.start - b.start);
30976
31275
  for (let i = 1; i < patches.length; i++) check(patches[i].start >= patches[i - 1].end);
@@ -32456,45 +32755,35 @@ function seqDate(seq) {
32456
32755
  return Number.isNaN(date.getTime()) ? (/* @__PURE__ */ new Date(0)).toISOString() : date.toISOString();
32457
32756
  }
32458
32757
  /**
32459
- * Resolves a did:dht through Pkarr relays: one GET per relay, in turn, the next only when one has
32460
- * nothing, fails or serves a packet that does not check out. The answer is bounded to a BEP44 item,
32461
- * its signature checked against the DID's key and its records parsed strictly. A deactivated DID
32758
+ * Resolves a did:dht through Pkarr relays: one GET to each, all at once, and the newest packet that
32759
+ * checks out wins (the highest sequence number; on a tie, the relay listed first), so a relay holding
32760
+ * an older version cannot bring back a removed key or undo a deactivation. Each answer is bounded to
32761
+ * a BEP44 item, its signature checked against the DID's key and its records parsed strictly; a relay
32762
+ * that has nothing, fails or serves a packet that does not check out does not count. A deactivated DID
32462
32763
  * resolves (`metadata.deactivated`); everything else that goes wrong throws a `DidDhtError`.
32463
32764
  */
32464
32765
  async function resolveDidDht(did, options) {
32465
32766
  const { z32 } = didDhtKey(did);
32466
32767
  const relays = [...new Set((options.relays ?? DEFAULT_RELAYS).map(normalizeRelayUrl).filter((r) => r !== null))];
32467
32768
  if (relays.length === 0) throw new DidDhtError("No Pkarr relay to ask", "unreachable");
32769
+ options.signal?.throwIfAborted();
32770
+ const responses = await Promise.all(relays.map((relay) => options.fetch(`${relay}/${z32}`, {
32771
+ maxBytes: DID_DHT_MAX_PAYLOAD,
32772
+ signal: options.signal,
32773
+ redirect: "error"
32774
+ }).catch(() => void 0)));
32775
+ options.signal?.throwIfAborted();
32468
32776
  let notFound = false;
32469
32777
  let refused;
32470
- for (const relay of relays) {
32471
- options.signal?.throwIfAborted();
32472
- let response;
32473
- try {
32474
- response = await options.fetch(`${relay}/${z32}`, {
32475
- maxBytes: DID_DHT_MAX_PAYLOAD,
32476
- signal: options.signal,
32477
- redirect: "error"
32478
- });
32479
- } catch (error) {
32480
- if (options.signal?.aborted) throw error;
32481
- continue;
32482
- }
32483
- if (response.status === 404) {
32484
- notFound = true;
32485
- continue;
32486
- }
32487
- if (response.status !== 200) continue;
32778
+ let newest;
32779
+ for (const [i, relay] of relays.entries()) {
32780
+ const response = responses[i];
32781
+ if (response?.status === 404) notFound = true;
32782
+ if (response?.status !== 200) continue;
32488
32783
  try {
32489
32784
  const opened = openDidDhtPayload(did, response.bytes);
32490
- return {
32491
- document: opened.document,
32492
- metadata: {
32493
- versionId: opened.seq.toString(),
32494
- updated: seqDate(opened.seq),
32495
- ...opened.deactivated ? { deactivated: true } : {},
32496
- ...opened.types ? { types: opened.types } : {}
32497
- },
32785
+ if (!newest || opened.seq > newest.seq) newest = {
32786
+ ...opened,
32498
32787
  relay
32499
32788
  };
32500
32789
  } catch (error) {
@@ -32502,6 +32791,16 @@ async function resolveDidDht(did, options) {
32502
32791
  refused = error;
32503
32792
  }
32504
32793
  }
32794
+ if (newest) return {
32795
+ document: newest.document,
32796
+ metadata: {
32797
+ versionId: newest.seq.toString(),
32798
+ updated: seqDate(newest.seq),
32799
+ ...newest.deactivated ? { deactivated: true } : {},
32800
+ ...newest.types ? { types: newest.types } : {}
32801
+ },
32802
+ relay: newest.relay
32803
+ };
32505
32804
  if (refused) throw refused;
32506
32805
  if (notFound) throw new DidDhtError("No document is published for this did:dht", "not-found");
32507
32806
  throw new DidDhtError("No Pkarr relay answered for this did:dht", "unreachable");
@@ -35009,6 +35308,17 @@ function indexOf(points, words, from) {
35009
35308
  }
35010
35309
  return -1;
35011
35310
  }
35311
+ //#endregion
35312
+ //#region ../core/src/catchUp.ts
35313
+ /**
35314
+ * Frames of one catch-up answer in a slice, two slices at most not handled yet by the member's app: the next goes once
35315
+ * it handled the one before the last. An app holds 64 frames waiting at most before 2026-10-07 (more ends the session),
35316
+ * and a member back in a busy group was handed over a hundred at once (a private group's answer, WISP 902; a
35317
+ * community's, WISP 903: 258 from a full store).
35318
+ */
35319
+ var CATCH_UP_SLICE = 16;
35320
+ /** Between two slices, when the member's app cannot say it handled one (`handled` resolves `false`). */
35321
+ var CATCH_UP_PAUSE_MS = 500;
35012
35322
  /**
35013
35323
  * Catch-up answers, a slice at a time (`CATCH_UP_SLICE`), with two slices at most not handled yet by the member's app
35014
35324
  * (`hooks.handled`): the next once it handled the one before the last, so the slices follow each other without a round
@@ -35087,6 +35397,10 @@ var CatchUpAnswers = class {
35087
35397
  }
35088
35398
  })();
35089
35399
  }
35400
+ /** Whether an answer to `to` still has frames to send, or sent ones its app has not said it handled yet (`hooks.handled`). */
35401
+ busy(to) {
35402
+ return this.going.has(to) || !!this.onTheirWay.get(to)?.size;
35403
+ }
35090
35404
  /** The next slice of `rest` to `to`, as sent: undefined, and nothing left, when the edge did not take one. */
35091
35405
  sendSlice(to, rest) {
35092
35406
  const slice = rest.splice(0, 16);
@@ -35197,6 +35511,11 @@ var GROUP_READ_NOTE = `Everyone in the group can read everything sent while they
35197
35511
  */
35198
35512
  var ANSWER_WINDOW_MS$1 = 5e3;
35199
35513
  /**
35514
+ * How long a name an edge took away can still come back when I am taken out of the group (`nameKept`): the commit
35515
+ * that removed me comes over the admin's kept edge right after it opens, within the minute that edge stays open.
35516
+ */
35517
+ var UNNAMED_KEPT_MS = 6e4;
35518
+ /**
35200
35519
  * One member's messages (or edits) taken: its whole log handed back at once twice over (`AUTHOR_BURST`: an edge opening
35201
35520
  * hears it, with what the member says live beside it, and the edits its app says again), then
35202
35521
  * `GROUP_LIMITS.messagesPerAuthor` and `messageBytesPerAuthor` per `messageWindowMs`, as a community's `MessagePace`.
@@ -35630,6 +35949,12 @@ var GroupSession = class {
35630
35949
  * said it (`heardName`). In memory only; the records held start it.
35631
35950
  */
35632
35951
  nickAt = /* @__PURE__ */ new Map();
35952
+ /**
35953
+ * Member → the name an edge's empty one took away a moment ago (`setNick`), and when. The admin that removed me while
35954
+ * I was away says no name on the edge it kept to tell me, as its app opens it, and the commit that removes me comes
35955
+ * right after on that edge: that name comes back for the history I keep (`nameKept`). In memory only.
35956
+ */
35957
+ unnamed = /* @__PURE__ */ new Map();
35633
35958
  /** The version of my name record last said to every member (`sayName`). In memory only: said again once per start. */
35634
35959
  nameSaid;
35635
35960
  /** New name records taken per member, a few a minute (`GROUP_LIMITS.namesPerMember`). In memory only. */
@@ -36340,6 +36665,16 @@ var GroupSession = class {
36340
36665
  this.waiting = [];
36341
36666
  this.waitingBytes = 0;
36342
36667
  this.pendingCommits.clear();
36668
+ this.nameKept();
36669
+ }
36670
+ /**
36671
+ * Out of the group: a name an edge took away a moment before comes back, as the history I keep still shows it. The
36672
+ * edge the admin kept to tell me I was removed says no name as it opens, just before the commit that removed me.
36673
+ */
36674
+ nameKept() {
36675
+ const now = this.now();
36676
+ for (const [key, { nick, at }] of this.unnamed) if (now - at <= UNNAMED_KEPT_MS && !this.state.nicks[key]) this.state.nicks[key] = nick;
36677
+ this.unnamed.clear();
36343
36678
  }
36344
36679
  /**
36345
36680
  * Encrypts and signs a text, keeps it for catch-up and sends it to every other member. `mentions`: places of the
@@ -36846,10 +37181,17 @@ var GroupSession = class {
36846
37181
  setNick(key, nick) {
36847
37182
  return this.serialize(async () => {
36848
37183
  const clean = sanitizeNick(nick);
37184
+ if (!clean && this.state.status !== "active") return;
36849
37185
  this.nickAt.set(key, this.now());
36850
- if ((this.state.nicks[key] ?? void 0) === clean) return;
37186
+ const was = this.state.nicks[key];
37187
+ if ((was ?? void 0) === clean) return;
36851
37188
  if (clean) this.state.nicks[key] = clean;
36852
37189
  else delete this.state.nicks[key];
37190
+ if (!clean && was) this.unnamed.set(key, {
37191
+ nick: was,
37192
+ at: this.now()
37193
+ });
37194
+ else this.unnamed.delete(key);
36853
37195
  if (key === this.myKey) await this.persist();
36854
37196
  else this.persistSoon();
36855
37197
  this.hooks.changed();
@@ -42539,6 +42881,6 @@ function x401ApprovalDigest(subject) {
42539
42881
  return toBase64Url(sha256(utf8Encode(canonical)));
42540
42882
  }
42541
42883
  //#endregion
42542
- export { COMMUNITY_LIMITS as $, readTurnBody as $C, inviteOwnership as $S, concatBytes as $T, QUICK_REDIAL_MS as $_, ANSWERS_REFUSED_PAUSE_MS as $a, REQUEST_LABEL as $b, WAKE_CALL_INTERVAL_MS as $c, validRingKey as $d, LIVE_POLL_MS as $f, UNUSED_INVITE_READS_PER_MINUTE as $g, sealSecret as $h, isSparkAddress as $i, APP_RESUME_GRACE_MS as $l, appCardUrl as $m, MessageRefusal as $n, readGroupWant as $o, LINK_MAX_CHARS as $p, DidError as $r, refusalText as $s, GROUP_EDIT_TEXT_BYTES as $t, IDENTITY_FRAME_LIMIT as $u, HANDOFF_PAKE as $v, setLinkTraceSink as $w, appRefPublisher as $x, sameDigest as $y, readX401ProofResponseHeader as A, TURN_VISIBLE_MS as AC, createContactLink as AS, identityFromSeed as AT, CHUNK_FLAG_END as A_, findBolt11 as Aa, FLOOD_PER_DAY as Ab, parseTypingActivity as Ac, lastSharedWithMe as Ad, WELL_KNOWN_PATH as Af, DIRECT_PEERS as Ag, commitHash as Ah, jwkThumbprint as Ai, vapidAuthorization as Al, validReactionNumber as Am, parseGroupMetaBody as An, WAKE_ANSWER_GRACE_MS as Ao, formatVideoDuration as Ap, parseAtprotoDidDocument as Ar, mergeBeacon as As, knockRecords as At, parseSessionCapabilities as Au, encodeServices as Av, GROUP_BURST_ONE_LINK as Aw, APP_ICON_PATH as Ax, handoffReleaseFrame as Ay, APP_STORE_KINDS as B, TURN_NAME_BYTES as BC, readDeviceInvite as BS, MAX_AVATAR_LENGTH as BT, wrapDataChannel as B_, audioMetadataPatches as Ba, planKnocks as Bb, PIN_CLOCK_SKEW_MS as Bc, proofCapability as Bd, recordsFromTxt as Bf, IDLE_THRESHOLD as Bg, verifyCommit as Bh, TEST_USDT_FAUCET_AMOUNT as Bi, appRangeEndFrame as Bl, ACTIVE_TASK_STATUSES as Bm, SSH_PUBLIC_KEY_MAX as Bn, engineText as Bo, EDIT_SEND_LIMIT as Bp, parseAtprotoDidKey as Br, CALL_RATE_WINDOW_MS as Bs, groupWakes as Bt, CAPS_REFRESH_MS as Bu, HANDOFF_BUSY_REASONS as Bv, RelaysFailedError as Bw, isAppLicense as Bx, readHandoffAck as By, buildX401TokenObject as C, unsignedDeviceTransports as CC, previewable as CS, signRelayPayload as CT, resolveTargetUrl as C_, parseInvoiceCallback as Ca, enrollHelloFrame as Cb, TYPING_RATE_WINDOW_MS as Cc, newIdentityBinding as Cd, DNS_LABEL as Cf, GATHER_STALL_MS as Cg, GROUP_VERSION_LARGE as Ch, decodeDidDhtPacket as Ci, PUSH_SERVICE_HOSTS as Cl, queueReaction as Cm, groupMetaPicture as Cn, REDESCRIBED_GRACE_MS as Co, voiceDownloadName as Cp, ATPROTO_PROOF_SCOPE as Cr, beaconKeys as Cs, KNOCK_TTL_MS as Ct, SESSION_CAPABILITIES_FRAME as Cu, isEmptyLinkPacket as Cv, CHAT_RESERVE_MOST_SHARE as Cw, seenEntry as Cx, handoffFileMissingFrame as Cy, readX401ProofRequest as D, TURN_PUT_WINDOW_MS as DC, readCanonicalJson as DS, readDnsName as DT, viewerServicePolicy as D_, resolveLightningDestination as Da, readEnrollGrant as Db, TYPING_TIMEOUT_MS as Dc, verifyIdentityPresentation as Dd, DOMAIN_METHODS as Df, STALLED_EVIDENCE_MS as Dg, MEMBER_KEY as Dh, didDhtRecords as Di, encryptPushPayload as Dl, reactionIsNewer as Dm, keepPastGroupMeta as Dn, RTC_UNSTARTED_MS as Do, voicePeaksOf as Dp, checkAtprotoProofRecord as Dr, hubRank as Ds, entryParams as Dt, TYPING_CAPABILITY as Du, MAX_SERVICES as Dv, DEPARTED_READS as Dw, APP_CLIENTS as Dx, handoffManifestFrames as Dy, isX401Protocol as E, webCryptoSigner as EC, canonicalJsonBytes as ES, encodeTxtPacket as ET, viewerResponseHeaders as E_, requestLnurlInvoice as Ea, formatEnrollDigits as Eb, TYPING_STATUS_MAX as Ec, signIdentityPresentation as Ed, DOMAIN_MAX_RECORDS as Ef, REANSWERS as Eg, MAX_GROUP_MEMBERS as Eh, didDhtKey as Ei, decryptPushPayload as El, reactionFrame as Em, groupName as En, RTC_SIGNAL_RECEIVE_LIMIT as Eo, voiceLevelsOf as Ep, atprotoProofRkey as Er, freshHubs as Es, encodeGroupEntryLink as Et, SessionCapabilities as Eu, LEGACY_SERVICES as Ev, DEFAULT_RELAYS as Ew, APP_BUNDLE_MAGIC as Ex, handoffHelloFrame as Ey, appRevocationFor as F, TOMBSTONE_TURN as FC, DEVICE_INVITE_OWN_DEVICE as FS, decrypt as FT, decodeChunk as F_, isFederationId as Fa, REOPEN_BELOW as Fb, typingFrame as Fc, STORAGE_ROOT as Fd, encodeDnsQuery as Ff, DAEMON_WATCH_PEER_IDLE_MS as Fg, rosterAdmin as Fh, EVM_TEST_CHAINS as Fi, APP_RANGE_LIMITS as Fl, groupReplyAuthor as Fm, verifyGroupMetaSignature as Fn, parsePaymentNetworks as Fo, EDIT_BUFFER_MAX as Fp, decodeAtprotoCommit as Fr, readBeacon as Fs, GROUP_WAKE_GROUP_WINDOW_MS as Ft, SESSION_RECEIVE_PENDING as Fu, servicesToWire as Fv, HEDGE_MS as Fw, appViewOf as Fx, handoffVerifiedMessage as Fy, readAppStore as G, TURN_SLOTS as GC, INVITE_VERSION as GS, dropLoneJoiners as GT, buildDataSdp as G_, videoMetadataPatches as Ga, CONTACT_RECORD_TTL as Gb, parsePinFrame as Gc, storageProofPath as Gd, wellKnownUrl as Gf, OFFER_STEP_MAX as Gg, decryptText as Gh, assertWholeSats as Gi, isServeId as Gl, PR_CHECKS as Gm, sshFingerprint as Gn, GROUP_VERSION_FILES as Go, dhtEditId as Gp, verifyAtprotoSignature as Gr, parsePairedCallFrame as Gs, GROUP_READ_NOTE as Gt, capsDescriptors as Gu, HANDOFF_FILE_MISSING as Gv, TURN_SOURCE_TIMEOUT_MS as Gw, readAppBundleAsync as Gx, readHandoffFileFrame as Gy, checkAppListing as H, TURN_REV_LIMIT as HC, INVITE_HRP as HS, jpegSize$1 as HT, DATA_CHANNEL_LABEL as H_, NO_VIDEO_METADATA as Ha, takeRequest as Hb, PIN_LIMITS as Hc, proofStatement as Hd, recordsName as Hf, MAX_DHT_TEXT_BYTES as Hg, GROUP_PROFILE as Hh, WALLET_NETWORKS as Hi, appRangeGetFrame as Hl, BUTTON_STYLES as Hm, parseSshPublicKey as Hn, PairingTracker as Ho, MAX_REMOVAL_NUMBER as Hp, readAtprotoCid as Hr, MAX_PAIRED_CALL_SIGNAL as Hs, parseGroupWakeFrame as Ht, CapsKeys as Hu, HANDOFF_CANCEL_REASONS as Hv, SIGNALING_WINDOW_MS as Hw, isAppUrl as Hx, readHandoffCancel as Hy, appStoreDecision as I, TURN_BODY_BYTES as IC, createDeviceInvite as IS, encrypt as IT, decodeControl as I_, parseCashuRequestPayload as Ia, clearMissed as Ib, typingKindOf as Ic, emptyProofLedger as Id, isPublicAddress as If, DEPARTED_READ_MS as Ig, rosterHas as Ih, ONCHAIN_PROVIDER as Ii, AppRanges as Il, pairedReplyAuthor as Im, wrapGroupMeta as In, publishFailure as Io, EDIT_BUFFER_MS as Ip, decodeDagCbor as Ir, readBeaconHead as Is, GROUP_WAKE_MEMBER_INTERVAL_MS as It, CAPS_ISSUED_BACK_MS as Iu, viewerTag as Iv, PREVIOUS_DEFAULT_RELAYS as Iw, assembleAppBundle as Ix, handoffVersions as Iy, GROUP_TYPING_FRAME as J, TurnRecordError as JC, createLink as JS, sanitizeNick as JT, parseRtcSignal as J_, PICTURE_METADATA_LIMITS as Ja, KNOCK_SLOT_LABEL as Jb, pinIsNewer as Jc, verifyPeerProof as Jd, DHT_FILE_TOO_LARGE as Jf, RELAY_POLL_INTERVALS as Jg, epochKeys as Jh, parsePaymentAmount as Ji, APP_DATA_MAX_BYTES as Jl, ROUTINE_STATES as Jm, verifySshSignature as Jn, fetchesByItself as Jo, parseEditFrame as Jp, DID_GHOSTLY_SERVICE as Jr, FILE_FRAMES as Js, chainPieces as Jt, encodePacketTransports as Ju, HANDOFF_HELLO as Jv, WRITE_FIRST_MS as Jw, APP_NAME as Jx, readHandoffManifest as Jy, readAppStoreSteps as K, TURN_TTL as KC, OwnInviteError as KS, hasVisible as KT, extractRtcParams as K_, withoutVideoMetadata as Ka, ContactRequestError as Kb, parsePinnedFrame as Kc, validExternalKey as Kd, ACTIVE_DHT_POLL_MS as Kf, PRESENCE_HEARTBEAT as Kg, edgeParams as Kh, formatPaymentAmount as Ki, parseAppRangeFrame as Kl, PR_STATES as Km, sshKeyDigestHex as Kn, GROUP_WANT_FRAME as Ko, editFrame as Kp, DID_DOCUMENT_MAX_BYTES as Kr, ChatFiles as Ks, GroupSession as Kt, dialDescriptors as Ku, HANDOFF_FILE_REQUEST as Kv, WATCH_SHARE as Kw, sha256Paced as Kx, readHandoffHave as Ky, appUpdateDecision as L, TURN_LABEL as LC, deviceInviteJoinerKeyZ32 as LS, generateEncryptionKey as LT, encodeChunk as L_, parseFedimintRequestPayload as La, endedRequests as Lb, COMMUNITY_PIN_FRAME as Lc, importedProof as Ld, nip05RootKey as Lf, DHT_POLL_INTERVALS as Lg, signCommit as Lh, PaymentPreflightError as Li, appRangeCancelFrame as Ll, readReply as Lm, SSHSIG_MAX_ARMOR as Ln, ENGINE_ERRORS as Lo, EDIT_FRAME as Lp, encodeDagCbor as Lr, readLobby as Ls, GROUP_WAKE_RECEIVE_LIMIT as Lt, CAPS_LABEL as Lu, HANDOFF_ACK as Lv, RELAY_REQUESTS_PER_MINUTE as Lw, buildAppBundle as Lx, isHandoffPartName as Ly, readX401ProofResultHeader as M, keptAtEqualSequence as MC, readContactLink as MS, publicKeyFromZ32 as MT, LIMITS as M_, cashuRequestPayload as Ma, MAX_MISSED as Mb, plainStatusLine as Mc, PROOF_CAPABILITY as Md, dnsProofName as Mf, directBlocked as Mg, expectedRoster as Mh, resolveDidDht as Mi, APP_RANGE_DATA_KIND as Ml, PAIRED_REPLY_AUTHORS as Mm, parseGroupMetaStatement as Mn, pairedEditFits as Mo, isVideoMime as Mp, AtprotoCid as Mr, newerHead as Ms, readKnocks as Mt, PAIRED_PROFILE as Mu, isViewerTag as Mv, GROUP_RATION_WINDOW_MS as Mw, APP_SCREENSHOTS_DIR as Mx, handoffRetryAfter as My, x401AnswerableRequests as N, turnPutSummary as NC, DEVICE_INVITE_BYTES as NS, sign as NT, MAX_CHUNK_PAYLOAD_BYTES as N_, fedimintRequestPayload as Na, MAX_WAITING as Nb, sanitizeTypingStatus as Nc, PeerProofs as Nd, domainTxtRecord as Nf, symmetricNat as Ng, parseGroupCommit as Nh, signDidDhtPacket as Ni, APP_RANGE_ERRORS as Nl, REPLY_ID as Nm, parseGroupMetaTag as Nn, pairedMessageFits as No, parseVideoMeta as Np, AtprotoProofError as Nr, pickHubs as Ns, GROUP_WAKE_FRAME as Nt, PairedSession as Nu, serviceIdFromName as Nv, GROUP_SIGNALING_ALLOWANCE_SHARE as Nw, APP_VIEWS as Nx, handoffStreamKey as Ny, readX401ProofRequestHeader as O, TURN_RAISE_READ_TIMEOUT_MS as OC, CONTACT_LINK_BYTES as OS, IDENTITY_MEMO_SIZE as OT, webLocalFetch as O_, BOLT11_PATTERN as Oa, readEnrollHello as Ob, TypingReceiver as Oc, IDENTITY_TIMELINE_MAX as Od, DOMAIN_TXT_MAX_BYTES as Of, DIRECT_EVIDENCE_MS as Og, OWN_FRAME_LIMIT as Oh, encodeDidDhtDeactivated as Oi, generateVapidKeys as Ol, readDhtReactions as Om, nextGroupMetaRevision as On, SWITCH_RETIRE_MS as Oo, PLAYABLE_VIDEO as Op, isAtprotoDid as Or, lobbyKeys as Os, groupEntryUrl as Ot, UPGRADE_CAPABILITY as Ou, SERVICES_VERSION as Ov, FRESH_READ_MS as Ow, APP_CLIENT_NAME as Ox, handoffOfferFrame as Oy, addedAppPermissions as P, TOMBSTONE_SEQUENCE as PC, DEVICE_INVITE_LIFETIME_S as PS, verify as PT, PROTOCOL_VERSION as P_, findEndpoint as Pa, NEW_PER_HOUR as Pb, typingActivity as Pc, STORAGE_LIFETIME as Pd, domainWellKnownFile as Pf, AWAITING_PEER_MS as Pg, rememberAlone as Ph, ETHEREUM_USDT as Pi, APP_RANGE_FRAMES as Pl, REPLY_LIMITS as Pm, signGroupMeta as Pn, pairedMessageFrame as Po, EDITED_FRAME as Pp, atprotoCidFor as Pr, rankHubs as Ps, GROUP_WAKE_GROUP_LIMIT as Pt, SESSION_FRAME_MAX as Pu, servicesFromWire as Pv, HEDGE_MISSING_MS as Pw, appDigest as Px, handoffVerifiedFrame as Py, sealGroupTyping as Q, openTurnValue as QC, inviteLink as QS, bytesEqual as QT, PAIRED_CALL_CANDIDATES as Q_, ANSWERS_REFUSED_PAUSES as Qa, REQUEST_CLOCK_SKEW_MS as Qb, DEVICE_WAKE_TTL_SECONDS as Qc, ringEvidence as Qd, DhtDelivery as Qf, TRANSPORTS_GONE_MS as Qg, sealPair as Qh, SPARK_PROVIDER as Qi, APP_RATE_WINDOW_MS as Ql, appCardId as Qm, BIP322_REVISION as Qn, readGroupHave as Qo, validRemovalNumber as Qp, DID_METHODS as Qr, encodeFileData as Qs, GROUP_EDIT_FRAME as Qt, IDENTITY_CLOCK_SKEW as Qu, HANDOFF_OFFER as Qv, relayUrlProblem as Qw, appRef as Qx, readHandoffVerified as Qy, checkAppBeforeRun as R, TURN_LAST_SEQUENCE as RC, deviceInviteJoinerParams as RS, sealedLength as RT, encodeControl as R_, AUDIO_METADATA_LIMITS as Ra, inboxRecord as Rb, GROUP_PIN_FRAME as Rc, isProofAdapter as Rd, normalizeDomain as Rf, EXPECT_PEER_MS as Rg, sortRoster as Rh, SEPOLIA_TEST_USDT as Ri, appRangeChunk as Rl, replySnippet as Rm, SSHSIG_NAMESPACE as Rn, EngineError as Ro, EDIT_RATE_WINDOW_MS as Rp, findInMst as Rr, shouldBeHub as Rs, GroupWakeLimiter as Rt, CAPS_LIMITS as Ru, HANDOFF_ATTEMPTS as Rv, REQUESTS_PER_MINUTE as Rw, checkAppManifest as Rx, newHandoffId as Ry, buildX401ResultArtifact as S, signDeviceTransports as SC, parseImageMeta as SS, readOwnRelayPayload as ST, relativizeLocation as S_, invoiceCallbackUrl as Sa, enrollGrantFrame as Sb, TYPING_RATE_LIMIT as Sc, isIdentityBinding as Sd, readManifest as Sf, GATHER_ATTEMPTS as Sg, GROUP_MEMBER_CAP as Sh, DidDhtError as Si, PUSH_PAD_BYTES as Sl, parseReactionFrame as Sm, groupMetaNewer as Sn, RACE_RELAYED_MS as So, recordingMime as Sp, ATPROTO_PROOF_COLLECTION as Sr, COMMUNITY_TOPOLOGY as Ss, GROUP_ENTRY_PROFILE as St, SERVICES_CAPABILITY as Su, emptyLinkRecords as Sv, CHAT_RESERVE as Sw, requestRecords as Sx, handoffEphemeral as Sy, encodeX401Header as T, seedSigner as TC, canonicalJson as TS, decodeTxtPacket as TT, sanitizeResponseHeaders as T_, parsePayParams as Ta, enrollProofFrame as Tb, TYPING_SEND_LIMIT as Tc, revokesIdentity as Td, DOMAIN_FILE_MAX_BYTES as Tf, OFFER_HOST_GATHER_MS as Tg, MAX_GROUP_CHAIN as Th, didDhtFromPublicKey as Ti, checkPushEndpoint as Tl, reactionEmoji as Tm, groupMetaToHand as Tn, RTC_SIGNAL_RATE_WINDOW_MS as To, voiceLevel as Tp, atprotoProofRecord as Tr, doorHubs as Ts, decodeGroupEntryLink as Tt, STATUS_CARD_CAPABILITY as Tu, HTTP_SERVICE_PROTO as Tv, CHAT_WATCH_SHARE as Tw, APP_BUNDLE_LIMITS as Tx, handoffHaveFrames as Ty, checkAppStoreIndex as U, TURN_SEALED_BYTES as UC, INVITE_LINK_ORIGIN as US, sanitizeAvatar as UT, RTC_SIGNAL_FUTURE_MS as U_, VIDEO_METADATA_LIMITS as Ua, turnOff as Ub, mayPin as Uc, storageProof as Ud, txtValue as Uf, OFFER_FAST_MS as Ug, confirmationMatches as Uh, arkAddressPrefix as Ui, decodeAppRangeData as Ul, CRON_LINE as Um, parseSshSignature as Un, GROUP_FILE_LIMITS as Uo, REMOVED_TEXT as Up, unsignedCommitBytes as Ur, PAIRED_CALL_FRAME as Us, GROUP_LIMITS as Ut, CapsRefusedError as Uu, HANDOFF_DATA as Uv, SLOW_DEMOTE_MS as Uw, pacer as Ux, readHandoffData as Uy, APP_STORE_LIMITS as V, TURN_NO_ACTIVE as VC, DEVICE_INVITE_VERSION as VS, MAX_AVATAR_SIDE as VT, DATA_CHANNEL_ID as V_, withoutAudioMetadata as Va, settleRequest as Vb, PIN_FRAME as Vc, proofHash as Vd, recordsFromWellKnown as Vf, LinkSession as Vg, verifyCommitSignature as Vh, USDT_PUBLIC_RPC as Vi, appRangeErrorFrame as Vl, BUTTON_ID as Vm, SshSigError as Vn, parseEngineError as Vo, MAX_EDITS_PER_MESSAGE as Vp, parseAtprotoVerificationKey as Vr, CALL_RECEIVE_LIMIT as Vs, mentionedMembers as Vt, CapsExchange as Vu, HANDOFF_CANCEL as Vv, SIGNALING_ALLOWANCE_SHARE as Vw, isAppPath as Vx, readHandoffBusy as Vy, readAppListing as W, TURN_SIGNED_BYTES as WC, INVITE_MAX_LENGTH as WS, MAX_NICK_LENGTH as WT, RTC_SIGNAL_MAX_AGE_MS as W_, readingAhead as Wa, CONTACT_ASKER_FRAME as Wb, nextPinNumber as Wc, storageProofBody as Wd, validDomainRecord as Wf, OFFER_LOOK_MS as Wg, confirmationTag as Wh, assertTokenUnits as Wi, encodeAppRangeData as Wl, ITEM_STATES as Wm, sameSshKey as Wn, GROUP_HAVE_FRAME as Wo, RateWindow as Wp, verifyAtprotoRecordProof as Wr, PairedCalls as Ws, GROUP_REACTED_FRAME as Wt, DHT_TEXT_CAPABILITY as Wu, HANDOFF_DONE as Wv, SLOW_MS as Ww, readAppBundle as Wx, readHandoffDone as Wy, groupTypingEpoch as X, firstDeviceSetSecret as XC, encodeGhostlyInvite as XS, trimEndOf as XT, CALL_SIGNAL_FUTURE_MS as X_, stripPictureMetadata as Xa, MAX_SEEN as Xb, pinnedFrame as Xc, ringAuthorization as Xd, DHT_TEXT_BYTES as Xf, SIGNAL_OUT_READS as Xg, openPair as Xh, walletNetworkOf as Xi, APP_PEER_OPEN_MAX as Xl, STATUS_CARD_LIMITS as Xm, legacyMessageHash as Xn, isGroupMessageId as Xo, validEditMessage as Xp, DID_JWS_MAX_LENGTH as Xr, FileUplink as Xs, groupMessageId as Xt, IDENTITY_CHALLENGE_WINDOW as Xu, HANDOFF_LIST_PER_FRAME as Xv, normalizeRelayUrl as Xw, APP_STATEMENT_LIMITS as Xx, readHandoffRelease as Xy, GroupTypingBoard as Y, encodeTurnFields as YC, decodeInviteCode as YS, stripHidden as YT, BURST_RING_MS as Y_, isStrippedPicture as Ya, LINK_RECORD_LABEL as Yb, pinNumberHolds as Yc, RING_LIFETIME as Yd, DHT_MESSAGE_TTL as Yf, SIGNAL_DUE_READS as Yg, newEpochSecret as Yh, validatePaymentTarget as Yi, APP_FRAME as Yl, RUN_RESULTS as Ym, isLegacySignature as Yn, groupFileFallback as Yo, parseEditedFrame as Yp, DID_JWS_ALGS as Yr, FILE_LIMITS as Ys, frameBytes as Yt, parsePacketTransports as Yu, HANDOFF_LATER_BYTES as Yv, currentRelays as Yw, APP_PREFIXES as Yx, readHandoffPake as Yy, openGroupTyping as Z, nextTurnPosition as ZC, encodeInviteCode as ZS, unwrapPasted as ZT, CALL_SIGNAL_MAX_AGE_MS as Z_, withoutPictureMetadata as Za, MAX_SLOT_KNOCKS as Zb, readPin as Zc, ringClaims as Zd, DHT_TEXT_REFUSED as Zf, STALLED_LOOK_MS as Zg, openSecret as Zh, SPARK_NETWORKS as Zi, APP_RATE_LIMIT as Zl, TASK_STATUSES as Zm, verifyBitcoinMessage as Zn, readGroupFileMeta as Zo, validEditNumber as Zp, DID_MAX_LENGTH as Zr, decodeFileData as Zs, COMMUNITY_EDIT_FRAME as Zt, IDENTITY_CHECK_UNAVAILABLE as Zu, HANDOFF_MANIFEST as Zv, readRelayBody as Zw, appFingerprint as Zx, readHandoffTurnFrame as Zy, X401_PROTOCOLS as _, deviceLinkRendezvousSeed as _C, verifyAppStatementBytes as _S, createRelayPayload as _T, VIEWER_DROPPED_HEADERS as __, pubkyHomeserverOf as _a, ENROLL_PROOF as _b, sanitizeStatusText as _c, identityPresentationBytes as _d, HOLD_LIMITS as _f, ratchetUnknownSession as _g, heardTime as _h, strictBase64Url as _i, readWakePayload as _l, REACTION_FRAME as _m, MAX_GROUP_PICTURE_LENGTH as _n, PAIRING_ATTEMPT_MS as _o, downsamplePeaks as _p, u32$1 as _r, meshHubs as _s, shortHash as _t, FILES_BINARY_CAPABILITY as _u, waitForIceGathering as _v, ANSWER_READ_SPACING_MS as _w, mergeContactKnocks as _x, handoffContext as _y, X401_DCQL_LIMITS as a, DEVICES_CAPABILITY as aC, toBase64 as aE, isAppLine as aS, RelayBreaker as aT, unusedInviteWait as a_, PUBKY_PROOF_MAX_BYTES as aa, readSetUpdate as ab, STATUS_FRAME as ac, IDENTITY_MAX_VALIDITY as ad, TRANSPORTS as af, RATCHET_HEADER_BYTES as ag, cardUrl as ah, didWebDocumentUrl as ai, WAKE_ONLINE_BATCH_MS as al, linksIn as am, validEditText as an, DEMOTE_MS as ao, readDhtFile as ap, BitcoinAddressError as ar, SIGNALS_PER_MINUTE as as, communityHasFrame as at, appDataFrame as au, compressSdp as av, turnInstance as aw, STAMP_BITS_MAX as ax, HANDOFF_VERIFIED as ay, buildX401ProofRequest as b, devicePingFrame as bC, imageSize as bS, openRelayPayload as bT, formatLocalTarget as b_, fetchLnurlJson as ba, enrollDigits as bb, TYPING_FRAME as bc, identityStatement as bd, isHoldUrl as bf, DATA_SETTLE_MS as bg, GROUP_ADMIN_OFF_ERROR as bh, DID_DHT_TTL as bi, wakePayload as bl, nextReactionNumber as bm, groupMetaBody as bn, RACE_ANSWERED_MS as bo, isPlayableAudioType as bp, ATPROTO_DECLARED_SCOPE as br, pickMeshHubs as bs, verifyCommunityChainPaced as bt, PIN_CAPABILITY as bu, RECORD_TTL as bv, BACKGROUND_WHILE_SIGNALING as bw, readLinkRecord as bx, handoffDigest as by, readX401DcqlQuery as c, DEVICE_PING_FRAME as cC, utf8Decode as cE, readAppRevocation as cS, budgetRetryMs as cT, VIEWER_GUARD_SCRIPT as c_, isPubkyProofFolder as ca, setUpdateMessage as cb, STATUS_RATE_WINDOW_MS as cc, IDENTITY_REUSE_CHECK_S as cd, dialableIrohRelay as cf, RatchetBox as cg, removedCardText as ch, didWebFileUrl as ci, WAKE_ONLINE_TTL_SECONDS as cl, sanitizePreviewImage as cm, mentionsBytes as cn, FIRST_PAIRING_PACE_MS as co, formatFileSize as cp, decodeAnyBitcoinAddress as cr, SIGNAL_HOLD_MS as cs, communityUntaggedHash as ct, isAppVersion as cu, extractParamsFromSdp as cv, turnPacket as cw, contactAskerHolds as cx, NO_ATTEMPTS as cy, newX401HolderKey as d, deviceEchoFrame as dC, __esmMin as dE, readAppSignature as dS, publishedNowhere as dT, guardViewerAnswer as d_, pubkyProofCapability as da, DEVICE_KINDS as db, StatusReceiver as dc, IDENTITY_SUBJECT as dd, rankTransports as df, ratchetHeard as dg, statusCardText as dh, parseDid as di, WAKE_TTL_SECONDS as dl, forwardedMany as dm, wireMentions as dn, INVITER_DIAL_GRACE_MS as do, sanitizeMime as dp, decodeWitness as dr, groupSignalFrame as ds, encodeCommunityLink as dt, readAppFrame as du, isGlobalIpv4Host as dv, turnSequence as dw, knockSlotIdentity as dx, handoffAckFrame as dy, inviteQrSegments as eC, fromBase64 as eE, appRevocationId as eS, traceLink as eT, UNUSED_INVITE_UPKEEP_MS as e_, sparkAddressKind as ea, sealHandoffPiece as eb, sentWhole as ec, IDENTITY_FRAME_WINDOW_MS as ed, verifyRingAuthorization as ef, sha256Hex as eg, buttonLabelClash as eh, checkDidJws as ei, WAKE_CALL_TTL_SECONDS as el, LINK_PREVIEW_LIMITS as em, carryMentions as en, BLOCKED_DIAL_WAIT_MS as eo, emptyDhtDeliveryState as ep, bip322MessageHash as er, readGroupWantNo as es, COMMUNITY_PROFILE as et, APP_SEND_LIMIT as eu, RTC_CONFIG as ev, readTurnPacket as ew, REQUEST_LIFETIME_MS as ex, HANDOFF_PIECE_BYTES as ey, readX401SdJwtVc as f, deviceEchoNonce as fC, __exportAll as fE, setAppSignatureFastPath as fS, withRequestOptions as fT, viewerGuardOffset as f_, pubkyProofFile as fa, ENROLL_CANCEL as fb, StatusSender as fc, IdentityCheckUnavailable as fd, relayUrl as ff, ratchetOn as fg, taskProgress as fh, parseDidDocument as fi, WakeLimiter as fl, readForwarded as fm, GROUP_META_PAST as fn, INVITE_TAKEN as fo, PLAYABLE_AUDIO as fp, encodeTx as fr, readGroupSignal as fs, leaveStands as ft, APPS_CAPABILITY as fu, keepsToRelays as fv, turnSignedMessage as fw, knockSlotOf as fx, handoffAttemptAllowed as fy, X401_LIMITS as g, deviceLinkParams as gC, verifyAppSignature as gS, RELAY_PAYLOAD_MAX_BYTES as gT, VIEWER_DROPPED_DIRECTIVES as g_, homeserverWebEndpoint as ga, ENROLL_HELLO as gb, sameStatusState as gc, emptyIdentityLedger as gd, HOLD_DATED_BACK_MS as gf, ratchetSessionOf as gg, claimedTime as gh, staticDidDocument as gi, readWake as gl, REACTED_FRAME as gm, MAX_GROUP_NAME_LENGTH as gn, PAIRED_FRAME_TOO_LARGE as go, baseMime as gp, txHash as gr, mayBeHub as gs, rosterHash as gt, EDIT_CAPABILITY as gu, signalHasVideo as gv, ANSWER_READ_FIRST_MS as gw, makeStampPaced as gx, handoffCancelFrame as gy, X401_HEADERS as h, deviceLinkPairing as hC, verifyAppRevocation as hS, PacketTooLargeError as hT, HttpHost as h_, encodeSvcbPacket as ha, ENROLL_GRANT as hb, personStatus as hc, boundVerifiedIdentity as hd, HOLD_CAPABILITY as hf, ratchetSeal as hg, arrivalKey as hh, signingKeys as hi, parseWakeFrame as hl, QUICK_REACTIONS as hm, MAX_GROUP_NAME_BYTES as hn, MAX_PAIRED_MESSAGE_FRAME as ho, VOICE_METER as hp, sha256d as hr, NO_HUB_POLICY as hs, leftStatement as ht, CALLS_CAPABILITY as hu, sdpHasCandidates as hv, ANSWER_READ_ALLOWANCE as hw, makeStamp as hx, handoffBusyFrame as hy, x401ApprovalDigest as i, readInviteCode as iC, randomBytes as iE, isAppKey as iS, BREAKER_THRESHOLD as iT, presenceSeenAt as i_, isBitcoinAddress as ia, encodeSetSlots as ib, STATUS_AVAILABILITIES as ic, IDENTITY_MAX_RECEIVED as id, RELAY_WITH_SECRETS as if, RATCHET_CAPABILITY as ig, cardTimeUtc as ih, didSignedMessages as ii, WAKE_ONLINE_BATCH as il, linkStop as im, parseCommunityEdit as in, DEMOTE_AFTER_FAILURES as io, dhtFileId as ip, verifyBip322 as ir, GROUP_VERSION_SIGNALS as is, communityGroupId as it, appDataBytes as iu, callSignalHeardAt as iv, signTurnRelease as iw, STAMP_BITS_DEFAULT as ix, HANDOFF_TIMINGS as iy, readX401ProofResult as j, classifyTurnRead as jC, encodeContactLink as jS, identityFromSeedB64 as jT, CHUNK_KIND as j_, ENDPOINT as ja, MAX_DONE as jb, parseTypingFrame as jc, PROOF_ADAPTERS as jd, decodeDnsResponse as jf, DirectPathWatch as jg, commitUntaggedHash as jh, openDidDhtPayload as ji, vapidKeysMatch as jl, wireReaction as jm, parseGroupMetaFrame as jn, WAKE_LOST_MS as jo, isPlayableVideoType as jp, shortAtprotoDid as jr, mergeLobby as js, mergeKnocks as jt, sessionCapabilitiesFrame as ju, isValidServiceId as jv, GROUP_OVER_PACE_MS as jw, APP_PERMISSIONS as jx, handoffRequestFrame as jy, readX401ProofResponse as k, TURN_SETTLE_MS as kC, CONTACT_LINK_VERSION as kS, createIdentity as kT, withViewerPolicy as k_, decodeBolt11 as ka, verifyEnrollProof as kb, TypingSender as kc, applyIdentityEvent as kd, NIP05_PATH as kf, DIRECT_OWN_ATTEMPTS as kg, SAID_AGAIN as kh, encodeDidDhtPacket as ki, pushRequest as kl, readReaction as km, openGroupMeta as kn, UNPROVEN_AUTH_MS as ko, VIDEO_LIMITS as kp, normalizeAtprotoHandle as kr, lobbyRecords as ks, knockIdentity as kt, WAKE_SESSION_CAPABILITY as ku, decodeServices as kv, GROUP_BURST_MS as kw, APP_FORBIDDEN_KEYS as kx, handoffPakeFrame as ky, x401VpToken as l, ENROLL_CAPABILITY as lC, utf8Encode as lE, readAppRevocationShape as lS, heldBackError as lT, WEBRTC_GUARD as l_, newPubkyProofFolder as la, signTombstone as lb, STATUS_SEND_INTERVAL_MS as lc, IDENTITY_REVOCATION_LABEL as ld, irohDescriptor as lf, emptyRatchetState as lg, sameButtonText as lh, didWebHost as li, WAKE_RETRY_MS as ll, FORWARD_LIMITS as lm, mentionsMember as ln, GhostLink as lo, safeBlobType as lp, decodeBitcoinAddress as lr, SIGNAL_PROVEN_MS as ls, decodeCommunityLink as lt, isChatAppId as lu, heardCallSignal as lv, turnPayloadSequence as lw, contactDay as lx, filePartDigest as ly, x401HolderJwk as m, deviceKeyZ32 as mC, __toCommonJS as mE, signAppRevocation as mS, PKARR_FUTURE_SKEW_MS as mT, HttpClient as m_, decodeSvcbRecords as ma, ENROLL_DONE as mb, parseStatusFrame as mc, boundIdentityDisplay as md, transportOrder as mf, ratchetRoot as mg, MESSAGE_CLOCK_SKEW_MS as mh, parseDidSignaturePaste as mi, newWakeToken as ml, GROUP_REACTION_FRAME as mm, MAX_GROUP_META_BODY as mn, LIVENESS_PING_MS as mo, VOICE_LIMITS as mp, hash160 as mr, MESH_HUBS as ms, leaveStatement3 as mt, BUTTONS_CAPABILITY as mu, pickCallCandidates as mv, turnVerifierMark as mw, linkRecords as mx, handoffAttemptSucceeded as my, X401_RESPONSE_MODES as n, ownInviteRefusal as nC, fromZ32 as nE, checkAppRevokeStatement as nS, BREAKER_BASE_MS as nT, WATCH_PEER_MS as n_, sparkNetworkOf as na, SET_ACK as nb, transferStalled as nc, IDENTITY_MAX_EVIDENCE as nd, AUTOMATIC_ORDER as nf, MAX_SKIP as ng, cardLine as nh, didGhostlyServiceEntry as ni, WAKE_FRAME as nl, canonicalUrl as nm, communityMessageAuthor as nn, CROSSED_PROBE_MS as no, DHT_FILE_CAPABILITY as np, bip322ToSpend as nr, CarriedTransport as ns, GROUP_READ_NOTE_COMMUNITY as nt, AppSessions as nu, buildSdpFromSignal as nv, signTurnBody as nw, REQUEST_PACKET_BYTES as nx, HANDOFF_RELEASE as ny, matchX401Dcql as o, DEVICE_CAPABILITIES as oC, toBase64Url as oE, isAppRef as oS, DiscoveryBudgetError as oT, VIEWER_GUARD_CSP as o_, PUBKY_PROOF_ROOT as oa, setAckFrame as ob, STATUS_IDLE_AFTER_MS as oc, IDENTITY_PROOF_CAPABILITY as od, automaticTransport as of, RATCHET_KEEP_MS as og, checkStatusCard as oh, didWebFile as oi, WAKE_ONLINE_DELAY_MS as ol, parseLinkPreview as om, MENTION_EVERYONE as on, DHT_PIN_GRACE_MS as oo, FileTransfers as op, ByteReader as or, SIGNAL_CARRIERS as os, communityMessageId as ot, appOpenFrame as ou, contactRtcConfig as ov, turnKeys as ow, STAMP_BITS_MIN as ox, HANDOFF_VERSION as oy, sameX401HolderJwk as p, deviceFrameCapability as pC, __require as pE, signAppObject as pS, MAX_DNS_PACKET_BYTES as pT, GhostlyHttpError as p_, pubkyProofPath as pa, ENROLL_CANCEL_REASONS as pb, liveStatus as pc, IdentityExchange as pd, relayedTransports as pf, ratchetOpen as pg, usageLeft as ph, parseDidJws as pi, deviceWakeRequest as pl, COMMUNITY_REACTION_FRAME as pm, GROUP_META_PAST_CHARS as pn, LIVENESS_MISSED_PINGS as po, RECORDING_TYPES as pp, encodeWitness as pr, GROUP_VERSION_HUBS as ps, leaveStatement as pt, APP_RANGES_CAPABILITY as pu, parseCallSignal as pv, turnStatedVerifier as pw, knockSlotRecords as px, handoffAttemptFailed as py, signAppStore as q, TURN_VERSION as qC, createChatInvite as qS, sanitizeDisplayText as qT, offerIsFresh as q_, NO_PICTURE_METADATA as qa, KNOCK_SLOTS as qb, pinFrame as qc, verifyNostrProof as qd, DHT_FILE_REFUSED as qf, PRESENCE_WINDOW as qg, encryptText as qh, isWalletNetwork as qi, readAppRangeFrame as ql, REMOVABLE_KINDS as qm, sshSignCommand as qn, GROUP_WANT_NO_FRAME as qo, editedFrame as qp, DID_FILE_MAX_BYTES as qr, FILE_DATA_KIND as qs, asWritten as qt, emptyCapsState as qu, HANDOFF_HAVE as qv, WAY_BACK_SHARE as qw, yieldThread as qx, readHandoffHello as qy, readX401OpenId4VpRequest as r, pastedAgain as rC, isZ32Key as rE, isAppHash as rS, BREAKER_MAX_MS as rT, countUnusedInvite as r_, BITCOIN_NETWORKS as ra, SET_UPDATE as rb, PRESENCES as rc, IDENTITY_MAX_FRAME as rd, RELAY_URL as rf, MAX_SKIPPED_KEYS as rg, cardLinkHost as rh, didJwsAlg as ri, WAKE_INTERVAL_MS as rl, linkEnd as rm, meshMessageRef as rn, CROSSED_WAIT_MS as ro, dhtFileElements as rp, decodeBase64 as rr, GROUP_SIGNAL_FRAME as rs, communityCommitHash as rt, appCloseFrame as ru, callRtcConfig as rv, signTurnPacket as rw, REQUEST_TEXT_BYTES as rx, HANDOFF_REQUEST as ry, presentX401SdJwtVc as s, DEVICE_ECHO_FRAME as sC, toZ32 as sE, isAppSignature as sS, PublishFailedError as sT, VIEWER_GUARD_HASH as s_, isPubkyKey as sa, setUpdateFrame as sb, STATUS_RATE_LIMIT as sc, IDENTITY_PROVIDER_ID as sd, checkedDescriptors as sf, RATCHET_OVERHEAD as sg, readStatusCard as sh, didWebFileNames as si, WAKE_ONLINE_INTERVAL_MS as sl, previewImageSize as sm, MENTION_LIMITS as sn, EARLY_DIAL_JOIN_MS as so, PREVIEWABLE_IMAGE as sp, compactSize as sr, SIGNAL_FRESH_MS as ss, communityRoster as st, chatAppId as su, decompressSdp as sv, turnName as sw, contactAskerFrame as sx, HANDOFF_WINDOW as sy, X401_REQUEST_LIMITS as t, inviteQrText as tC, fromBase64Url as tE, appSignedBytes as tS, BREAKER_ALL_DOWN_PROBE_MS as tT, UNUSED_INVITE_WAIT_MAX_MS as t_, sparkInvoiceDetails as ta, sortParts as tb, transferEnded as tc, IDENTITY_MAX_CHECKS_PER_HOUR as td, verifyRingEvidence as tf, FOLLOW_MS as tg, cardEditNumber as th, checkDidSignature as ti, WAKE_CALL_WAIT_MS as tl, LINK_TRAILING as tm, communityEditFrame as tn, CROSSED_FRESH_MS as to, peekDhtMailbox as tp, bip322ToSign as tr, CARRIED_DEFER_MS as ts, CommunitySession as tt, APP_VERSION_MAX as tu, answersOffer as tv, sealTurnBody as tw, REQUEST_NAME_UNITS as tx, HANDOFF_PIECE_OVERHEAD as ty, X401_CREDENTIAL_LIMITS as u, HANDOFF_CAPABILITY as uC, __commonJSMin as uE, readAppRevocations as uS, isDiscoveryBudgetError as uT, allowingViewerGuard as u_, normalizePubkyKey as ua, verifySetUpdate as ub, STATUS_TEXT_MAX as uc, IDENTITY_STATEMENT_PREFIX as ud, irohRelayUrl as uf, isRatcheted as ug, statusCardBytes as uh, normalizeDid as ui, WAKE_SUBJECT as ul, forwardedAgain as um, validMentions as un, HANDLED_WAIT_MS as uo, sanitizeFileName as up, decodeTx as ur, SIGNAL_REPLY_MS as us, derivedSecret as ut, parseAppFrame as uu, isCandidateAddress as uv, turnReleaseMessage as uw, knockHolds as ux, filePartName as uy, X401_SCHEME as v, deviceLinkSealKey as vC, IMAGE_LIMITS as vS, measureRecords as vT, VIEWER_SERVICE_CSP as v_, LIGHTNING_DESTINATION_PATTERN as va, enrollCancelFrame as vb, statusFrame as vc, identityRefusal as vd, HoldKeys as vf, ANSWER_REFUSED_REDIALS as vg, receivedTimestamp as vh, DID_DHT_MAX_PAYLOAD as vi, relayRequest as vl, REACTION_LIMITS as vm, encodeGroupMetaBody as vn, PAIRING_RETRY_MS as vo, fileMessageText as vp, u64 as vr, meshRendezvous as vs, signCommunity as vt, FILES_CAPABILITY as vu, LABEL$1 as vv, AWAITED_READS as vw, openRequest as vx, handoffContextProof as vy, decodeX401Header as w, verifyDeviceTransports as wC, readImageMeta as wS, decodeDnsAnswers as wT, sanitizeRequestHeaders as w_, parseLightningDestination as wa, enrollMessage as wb, TYPING_REFRESH_MS as wc, receivedIdentityStatus as wd, DNS_TYPE as wf, LATE_ANSWER_MS as wg, LEGACY_GROUP_MEMBERS as wh, didDhtDocument as wi, WebPushError as wl, reactedFrame as wm, groupMetaTag as wn, RESUME_WAIT_MS as wo, voiceFileName as wp, atprotoDidMethod as wr, beaconRecords as ws, MAX_KNOCKS as wt, STATUS_CAPABILITY as wu, parseLinkRecords as wv, CHAT_RESERVE_PER_CHAT as ww, stampHolds as wx, handoffFileRequestFrame as wy, buildX401ProofResult as x, newDeviceSetSecret as xC, isImageMime as xS, parseRelayPayload as xT, parseLocalTarget as x_, findLightningDestination as xa, enrollDoneFrame as xb, TYPING_KINDS as xc, identityStatementText as xd, newMailbox as xf, DataLink as xg, GROUP_ID as xh, DID_DHT_VERSION as xi, wakeRequest as xl, parseReactedFrame as xm, groupMetaChange as xn, RACE_DIRECT_MS as xo, parseVoiceMeta as xp, ATPROTO_FULL_SCOPE as xr, wireHubPolicy as xs, verifyCommunityCommit as xt, REACTIONS_CAPABILITY as xu, buildLinkRecords as xv, BACKGROUND_WRITES_SHARE as xw, requestPlaintextBytes as xx, handoffDoneFrame as xy, X401_VERSION as y, deviceLinkSecret as yC, exifOrientation as yS, newerPacket as yT, VIEWER_SERVICE_CSP_RELAY_ONLY as y_, LNURL_LIMITS as ya, enrollCancelReason as yb, statusState as yc, identityRevocationValue as yd, HoldRefusedError as yf, CONNECT_TIMEOUT_MS as yg, shownTime as yh, DID_DHT_PREFIX as yi, wakeFrame as yl, ReactionWindow as ym, groupDisplayName as yn, PONG_WAIT_MS as yo, formatVoiceDuration as yp, varBytes as yr, parseHubPolicy as ys, verifyCommunityChain as yt, KNOWN_SESSION_CAPABILITIES as yu, MAX_MSGS_PAYLOAD_B64 as yv, BACKGROUND_REQUESTS_PER_MINUTE as yw, readKnockSlot as yx, handoffDataFrame as yy, planAppUpdate as z, TURN_MAX as zC, encodeDeviceInvite as zS, tryDecrypt as zT, sendBody as z_, NO_AUDIO_METADATA as za, newInbox as zb, PINNED_FRAME as zc, nostrProofTemplate as zd, parseDomainTxt as zf, FIRST_PUBLISH_MAX_MS as zg, verifyChain as zh, SEPOLIA_TEST_USDT_FAUCET as zi, appRangeDataFrame as zl, wireReply as zm, SSH_KEY_TYPES as zn, engineError as zo, EDIT_RECEIVE_LIMIT as zp, parseAtprotoCar as zr, validHead as zs, groupWakeFrame as zt, CAPS_PUBLISH_SPACING_MS as zu, HANDOFF_BUSY as zv, RelayTransport as zw, findAppForbiddenKey as zx, openHandoffPiece as zy };
42884
+ export { COMMUNITY_LIMITS as $, TURN_VERSION as $C, createChatInvite as $S, dropLoneJoiners as $T, offerIsFresh as $_, stripPictureMetadata as $a, KNOCK_SLOTS as $b, pinNumberHolds as $c, RING_LIFETIME as $d, DHT_MESSAGE_TTL as $f, SIGNAL_DUE_READS as $g, newEpochSecret as $h, walletNetworkOf as $i, APP_FRAME as $l, RUN_RESULTS as $m, legacyMessageHash as $n, groupFileFallback as $o, parseEditedFrame as $p, DID_JWS_MAX_LENGTH as $r, FILE_LIMITS as $s, CatchUpAnswers as $t, parsePacketTransports as $u, HANDOFF_HAVE as $v, WAY_BACK_SHARE as $w, yieldThread as $x, readHandoffHello as $y, readX401ProofResponseHeader as A, verifyDeviceTransports as AC, readImageMeta as AS, decodeDnsAnswers as AT, sanitizeRequestHeaders as A_, resolveLightningDestination as Aa, enrollMessage as Ab, TYPING_STATUS_MAX as Ac, signIdentityPresentation as Ad, DOMAIN_MAX_RECORDS as Af, REANSWERS as Ag, MAX_GROUP_MEMBERS as Ah, didDhtRecords as Ai, decryptPushPayload as Al, reactionFrame as Am, keepPastGroupMeta as An, RTC_SIGNAL_RECEIVE_LIMIT as Ao, voiceLevelsOf as Ap, checkAtprotoProofRecord as Ar, freshHubs as As, knockRecords as At, SessionCapabilities as Au, parseLinkRecords as Av, CHAT_RESERVE_PER_CHAT as Aw, stampHolds as Ax, handoffFileRequestFrame as Ay, APP_STORE_KINDS as B, TOMBSTONE_SEQUENCE as BC, DEVICE_INVITE_LIFETIME_S as BS, publicKeyFromZ32 as BT, PROTOCOL_VERSION as B_, parseFedimintRequestPayload as Ba, NEW_PER_HOUR as Bb, typingKindOf as Bc, emptyProofLedger as Bd, isPublicAddress as Bf, DEPARTED_READ_MS as Bg, rosterHas as Bh, PaymentPreflightError as Bi, AppRanges as Bl, pairedReplyAuthor as Bm, SSHSIG_MAX_ARMOR as Bn, publishFailure as Bo, EDIT_BUFFER_MS as Bp, encodeDagCbor as Br, readBeaconHead as Bs, groupWakes as Bt, CAPS_ISSUED_BACK_MS as Bu, servicesFromWire as Bv, HEDGE_MISSING_MS as Bw, appDigest as Bx, handoffVerifiedFrame as By, buildX401TokenObject as C, deviceLinkRendezvousSeed as CC, verifyAppStatementBytes as CS, createRelayPayload as CT, VIEWER_PERMISSIONS_POLICY as C_, fetchLnurlJson as Ca, ENROLL_PROOF as Cb, statusState as Cc, identityRevocationValue as Cd, HoldRefusedError as Cf, CONNECT_TIMEOUT_MS as Cg, shownTime as Ch, DID_DHT_TTL as Ci, wakeFrame as Cl, ReactionWindow as Cm, groupMetaBody as Cn, PONG_WAIT_MS as Co, formatVoiceDuration as Cp, ATPROTO_DECLARED_SCOPE as Cr, parseHubPolicy as Cs, KNOCK_TTL_MS as Ct, KNOWN_SESSION_CAPABILITIES as Cu, waitForIceGathering as Cv, ANSWER_READ_SPACING_MS as Cw, mergeContactKnocks as Cx, handoffContext as Cy, readX401ProofRequest as D, newDeviceSetSecret as DC, isImageMime as DS, parseRelayPayload as DT, parseLocalTarget as D_, parseLightningDestination as Da, enrollDoneFrame as Db, TYPING_RATE_WINDOW_MS as Dc, newIdentityBinding as Dd, DNS_LABEL as Df, GATHER_STALL_MS as Dg, GROUP_VERSION_LARGE as Dh, didDhtDocument as Di, PUSH_SERVICE_HOSTS as Dl, queueReaction as Dm, groupMetaTag as Dn, REDESCRIBED_GRACE_MS as Do, voiceDownloadName as Dp, atprotoDidMethod as Dr, beaconKeys as Ds, entryParams as Dt, SESSION_CAPABILITIES_FRAME as Du, buildLinkRecords as Dv, BACKGROUND_WRITES_SHARE as Dw, requestPlaintextBytes as Dx, handoffDoneFrame as Dy, isX401Protocol as E, devicePingFrame as EC, imageSize as ES, openRelayPayload as ET, formatLocalTarget as E_, parseInvoiceCallback as Ea, enrollDigits as Eb, TYPING_RATE_LIMIT as Ec, isIdentityBinding as Ed, readManifest as Ef, GATHER_ATTEMPTS as Eg, GROUP_MEMBER_CAP as Eh, decodeDidDhtPacket as Ei, PUSH_PAD_BYTES as El, parseReactionFrame as Em, groupMetaPicture as En, RACE_RELAYED_MS as Eo, recordingMime as Ep, ATPROTO_PROOF_SCOPE as Er, COMMUNITY_TOPOLOGY as Es, encodeGroupEntryLink as Et, SERVICES_CAPABILITY as Eu, RECORD_TTL as Ev, BACKGROUND_WHILE_SIGNALING as Ew, readLinkRecord as Ex, handoffDigest as Ey, appRevocationFor as F, TURN_SETTLE_MS as FC, CONTACT_LINK_VERSION as FS, IDENTITY_MEMO_MAX as FT, withViewerPolicy as F_, cashuRequestPayload as Fa, verifyEnrollProof as Fb, parseTypingFrame as Fc, PROOF_ADAPTERS as Fd, decodeDnsResponse as Ff, DirectPathWatch as Fg, commitUntaggedHash as Fh, resolveDidDht as Fi, vapidKeysMatch as Fl, wireReaction as Fm, parseGroupMetaStatement as Fn, WAKE_LOST_MS as Fo, isPlayableVideoType as Fp, AtprotoCid as Fr, mergeLobby as Fs, GROUP_WAKE_GROUP_WINDOW_MS as Ft, sessionCapabilitiesFrame as Fu, decodeServices as Fv, GROUP_BURST_MS as Fw, APP_FORBIDDEN_KEYS as Fx, handoffPakeFrame as Fy, readAppStore as G, TURN_MAX as GC, encodeDeviceInvite as GS, generateEncryptionKey as GT, sendBody as G_, NO_VIDEO_METADATA as Ga, newInbox as Gb, PIN_FRAME as Gc, proofHash as Gd, recordsFromWellKnown as Gf, LinkSession as Gg, verifyCommitSignature as Gh, WALLET_NETWORKS as Gi, appRangeErrorFrame as Gl, BUTTON_ID as Gm, parseSshPublicKey as Gn, parseEngineError as Go, MAX_EDITS_PER_MESSAGE as Gp, readAtprotoCid as Gr, CALL_RECEIVE_LIMIT as Gs, GROUP_READ_NOTE as Gt, CapsExchange as Gu, HANDOFF_BUSY as Gv, RelayTransport as Gw, findAppForbiddenKey as Gx, openHandoffPiece as Gy, checkAppListing as H, TURN_BODY_BYTES as HC, createDeviceInvite as HS, verify as HT, decodeControl as H_, NO_AUDIO_METADATA as Ha, clearMissed as Hb, GROUP_PIN_FRAME as Hc, isProofAdapter as Hd, normalizeDomain as Hf, EXPECT_PEER_MS as Hg, sortRoster as Hh, SEPOLIA_TEST_USDT_FAUCET as Hi, appRangeChunk as Hl, replySnippet as Hm, SSH_KEY_TYPES as Hn, EngineError as Ho, EDIT_RATE_WINDOW_MS as Hp, parseAtprotoCar as Hr, shouldBeHub as Hs, parseGroupWakeFrame as Ht, CAPS_LIMITS as Hu, viewerTag as Hv, PREVIOUS_DEFAULT_RELAYS as Hw, assembleAppBundle as Hx, handoffVersions as Hy, appStoreDecision as I, TURN_VISIBLE_MS as IC, createContactLink as IS, IDENTITY_MEMO_SIZE as IT, CHUNK_FLAG_END as I_, fedimintRequestPayload as Ia, FLOOD_PER_DAY as Ib, plainStatusLine as Ic, PROOF_CAPABILITY as Id, dnsProofName as If, directBlocked as Ig, expectedRoster as Ih, signDidDhtPacket as Ii, APP_RANGE_DATA_KIND as Il, PAIRED_REPLY_AUTHORS as Im, parseGroupMetaTag as In, pairedEditFits as Io, isVideoMime as Ip, AtprotoProofError as Ir, newerHead as Is, GROUP_WAKE_MEMBER_INTERVAL_MS as It, PAIRED_PROFILE as Iu, encodeServices as Iv, GROUP_BURST_ONE_LINK as Iw, APP_ICON_PATH as Ix, handoffReleaseFrame as Iy, GROUP_TYPING_FRAME as J, TURN_REV_LIMIT as JC, INVITE_HRP as JS, MAX_AVATAR_LENGTH as JT, DATA_CHANNEL_LABEL as J_, videoMetadataPatches as Ja, takeRequest as Jb, nextPinNumber as Jc, storageProofBody as Jd, validDomainRecord as Jf, OFFER_LOOK_MS as Jg, confirmationTag as Jh, assertWholeSats as Ji, encodeAppRangeData as Jl, ITEM_STATES as Jm, sshFingerprint as Jn, GROUP_HAVE_FRAME as Jo, RateWindow as Jp, verifyAtprotoSignature as Jr, PairedCalls as Js, chainPieces as Jt, DHT_TEXT_CAPABILITY as Ju, HANDOFF_CANCEL_REASONS as Jv, SIGNALING_WINDOW_MS as Jw, isAppUrl as Jx, readHandoffCancel as Jy, readAppStoreSteps as K, TURN_NAME_BYTES as KC, readDeviceInvite as KS, sealedLength as KT, wrapDataChannel as K_, VIDEO_METADATA_LIMITS as Ka, planKnocks as Kb, PIN_LIMITS as Kc, proofStatement as Kd, recordsName as Kf, MAX_DHT_TEXT_BYTES as Kg, GROUP_PROFILE as Kh, arkAddressPrefix as Ki, appRangeGetFrame as Kl, BUTTON_STYLES as Km, parseSshSignature as Kn, PairingTracker as Ko, MAX_REMOVAL_NUMBER as Kp, unsignedCommitBytes as Kr, MAX_PAIRED_CALL_SIGNAL as Ks, GroupSession as Kt, CapsKeys as Ku, HANDOFF_BUSY_REASONS as Kv, RelaysFailedError as Kw, isAppLicense as Kx, readHandoffAck as Ky, appUpdateDecision as L, classifyTurnRead as LC, encodeContactLink as LS, createIdentity as LT, CHUNK_KIND as L_, findEndpoint as La, MAX_DONE as Lb, sanitizeTypingStatus as Lc, PeerProofs as Ld, domainTxtRecord as Lf, symmetricNat as Lg, parseGroupCommit as Lh, ETHEREUM_USDT as Li, APP_RANGE_ERRORS as Ll, REPLY_ID as Lm, signGroupMeta as Ln, pairedMessageFits as Lo, parseVideoMeta as Lp, atprotoCidFor as Lr, pickHubs as Ls, GROUP_WAKE_RECEIVE_LIMIT as Lt, PairedSession as Lu, isValidServiceId as Lv, GROUP_OVER_PACE_MS as Lw, APP_PERMISSIONS as Lx, handoffRequestFrame as Ly, readX401ProofResultHeader as M, webCryptoSigner as MC, canonicalJsonBytes as MS, encodeTxtPacket as MT, viewerResponseHeaders as M_, decodeBolt11 as Ma, formatEnrollDigits as Mb, TypingReceiver as Mc, IDENTITY_TIMELINE_MAX as Md, DOMAIN_TXT_MAX_BYTES as Mf, DIRECT_EVIDENCE_MS as Mg, OWN_FRAME_LIMIT as Mh, encodeDidDhtPacket as Mi, generateVapidKeys as Ml, readDhtReactions as Mm, openGroupMeta as Mn, SWITCH_RETIRE_MS as Mo, PLAYABLE_VIDEO as Mp, normalizeAtprotoHandle as Mr, lobbyKeys as Ms, readKnocks as Mt, UPGRADE_CAPABILITY as Mu, LEGACY_SERVICES as Mv, DEFAULT_RELAYS as Mw, APP_BUNDLE_MAGIC as Mx, handoffHelloFrame as My, x401AnswerableRequests as N, TURN_PUT_WINDOW_MS as NC, readCanonicalJson as NS, readDnsName as NT, viewerServicePolicy as N_, findBolt11 as Na, readEnrollGrant as Nb, TypingSender as Nc, applyIdentityEvent as Nd, NIP05_PATH as Nf, DIRECT_OWN_ATTEMPTS as Ng, SAID_AGAIN as Nh, jwkThumbprint as Ni, pushRequest as Nl, readReaction as Nm, parseGroupMetaBody as Nn, UNPROVEN_AUTH_MS as No, VIDEO_LIMITS as Np, parseAtprotoDidDocument as Nr, lobbyRecords as Ns, GROUP_WAKE_FRAME as Nt, WAKE_SESSION_CAPABILITY as Nu, MAX_SERVICES as Nv, DEPARTED_READS as Nw, APP_CLIENTS as Nx, handoffManifestFrames as Ny, readX401ProofRequestHeader as O, signDeviceTransports as OC, parseImageMeta as OS, readOwnRelayPayload as OT, relativizeLocation as O_, parsePayParams as Oa, enrollGrantFrame as Ob, TYPING_REFRESH_MS as Oc, receivedIdentityStatus as Od, DNS_TYPE as Of, LATE_ANSWER_MS as Og, LEGACY_GROUP_MEMBERS as Oh, didDhtFromPublicKey as Oi, WebPushError as Ol, reactedFrame as Om, groupMetaToHand as On, RESUME_WAIT_MS as Oo, voiceFileName as Op, atprotoProofRecord as Or, beaconRecords as Os, groupEntryUrl as Ot, STATUS_CAPABILITY as Ou, emptyLinkRecords as Ov, CHAT_RESERVE as Ow, requestRecords as Ox, handoffEphemeral as Oy, addedAppPermissions as P, TURN_RAISE_READ_TIMEOUT_MS as PC, CONTACT_LINK_BYTES as PS, IDENTITY_MEMO_IDLE_MS as PT, webLocalFetch as P_, ENDPOINT as Pa, readEnrollHello as Pb, parseTypingActivity as Pc, lastSharedWithMe as Pd, WELL_KNOWN_PATH as Pf, DIRECT_PEERS as Pg, commitHash as Ph, openDidDhtPayload as Pi, vapidAuthorization as Pl, validReactionNumber as Pm, parseGroupMetaFrame as Pn, WAKE_ANSWER_GRACE_MS as Po, formatVideoDuration as Pp, shortAtprotoDid as Pr, mergeBeacon as Ps, GROUP_WAKE_GROUP_LIMIT as Pt, parseSessionCapabilities as Pu, SERVICES_VERSION as Pv, FRESH_READ_MS as Pw, APP_CLIENT_NAME as Px, handoffOfferFrame as Py, sealGroupTyping as Q, TURN_TTL as QC, OwnInviteError as QS, MAX_NICK_LENGTH as QT, extractRtcParams as Q_, isStrippedPicture as Qa, ContactRequestError as Qb, pinIsNewer as Qc, verifyPeerProof as Qd, DHT_FILE_TOO_LARGE as Qf, RELAY_POLL_INTERVALS as Qg, epochKeys as Qh, validatePaymentTarget as Qi, APP_DATA_MAX_BYTES as Ql, ROUTINE_STATES as Qm, isLegacySignature as Qn, fetchesByItself as Qo, parseEditFrame as Qp, DID_JWS_ALGS as Qr, FILE_FRAMES as Qs, CATCH_UP_SLICE as Qt, encodePacketTransports as Qu, HANDOFF_FILE_REQUEST as Qv, WATCH_SHARE as Qw, sha256Paced as Qx, readHandoffHave as Qy, checkAppBeforeRun as R, keptAtEqualSequence as RC, readContactLink as RS, identityFromSeed as RT, LIMITS as R_, isFederationId as Ra, MAX_MISSED as Rb, typingActivity as Rc, STORAGE_LIFETIME as Rd, domainWellKnownFile as Rf, AWAITING_PEER_MS as Rg, rememberAlone as Rh, EVM_TEST_CHAINS as Ri, APP_RANGE_FRAMES as Rl, REPLY_LIMITS as Rm, verifyGroupMetaSignature as Rn, pairedMessageFrame as Ro, EDITED_FRAME as Rp, decodeAtprotoCommit as Rr, rankHubs as Rs, GroupWakeLimiter as Rt, SESSION_FRAME_MAX as Ru, isViewerTag as Rv, GROUP_RATION_WINDOW_MS as Rw, APP_SCREENSHOTS_DIR as Rx, handoffRetryAfter as Ry, buildX401ResultArtifact as S, deviceLinkParams as SC, __toCommonJS as SE, verifyAppSignature as SS, RELAY_PAYLOAD_MAX_BYTES as ST, VIEWER_DROPPED_HEADERS as S_, LNURL_LIMITS as Sa, ENROLL_HELLO as Sb, statusFrame as Sc, identityRefusal as Sd, HoldKeys as Sf, ANSWER_REFUSED_REDIALS as Sg, receivedTimestamp as Sh, DID_DHT_PREFIX as Si, relayRequest as Sl, REACTION_LIMITS as Sm, groupDisplayName as Sn, PAIRING_RETRY_MS as So, fileMessageText as Sp, varBytes as Sr, meshRendezvous as Ss, GROUP_ENTRY_PROFILE as St, FILES_CAPABILITY as Su, signalHasVideo as Sv, ANSWER_READ_FIRST_MS as Sw, makeStampPaced as Sx, handoffCancelFrame as Sy, encodeX401Header as T, deviceLinkSecret as TC, exifOrientation as TS, newerPacket as TT, VIEWER_SERVICE_CSP_RELAY_ONLY as T_, invoiceCallbackUrl as Ta, enrollCancelReason as Tb, TYPING_KINDS as Tc, identityStatementText as Td, newMailbox as Tf, DataLink as Tg, GROUP_ID as Th, DidDhtError as Ti, wakeRequest as Tl, parseReactedFrame as Tm, groupMetaNewer as Tn, RACE_DIRECT_MS as To, parseVoiceMeta as Tp, ATPROTO_PROOF_COLLECTION as Tr, wireHubPolicy as Ts, decodeGroupEntryLink as Tt, REACTIONS_CAPABILITY as Tu, MAX_MSGS_PAYLOAD_B64 as Tv, BACKGROUND_REQUESTS_PER_MINUTE as Tw, readKnockSlot as Tx, handoffDataFrame as Ty, checkAppStoreIndex as U, TURN_LABEL as UC, deviceInviteJoinerKeyZ32 as US, decrypt as UT, encodeChunk as U_, audioMetadataPatches as Ua, endedRequests as Ub, PINNED_FRAME as Uc, nostrProofTemplate as Ud, parseDomainTxt as Uf, FIRST_PUBLISH_MAX_MS as Ug, verifyChain as Uh, TEST_USDT_FAUCET_AMOUNT as Ui, appRangeDataFrame as Ul, wireReply as Um, SSH_PUBLIC_KEY_MAX as Un, engineError as Uo, EDIT_RECEIVE_LIMIT as Up, parseAtprotoDidKey as Ur, validHead as Us, GROUP_LIMITS as Ut, CAPS_PUBLISH_SPACING_MS as Uu, HANDOFF_ACK as Uv, RELAY_REQUESTS_PER_MINUTE as Uw, buildAppBundle as Ux, isHandoffPartName as Uy, APP_STORE_LIMITS as V, TOMBSTONE_TURN as VC, DEVICE_INVITE_OWN_DEVICE as VS, sign as VT, decodeChunk as V_, AUDIO_METADATA_LIMITS as Va, REOPEN_BELOW as Vb, COMMUNITY_PIN_FRAME as Vc, importedProof as Vd, nip05RootKey as Vf, DHT_POLL_INTERVALS as Vg, signCommit as Vh, SEPOLIA_TEST_USDT as Vi, appRangeCancelFrame as Vl, readReply as Vm, SSHSIG_NAMESPACE as Vn, ENGINE_ERRORS as Vo, EDIT_FRAME as Vp, findInMst as Vr, readLobby as Vs, mentionedMembers as Vt, CAPS_LABEL as Vu, servicesToWire as Vv, HEDGE_MS as Vw, appViewOf as Vx, handoffVerifiedMessage as Vy, readAppListing as W, TURN_LAST_SEQUENCE as WC, deviceInviteJoinerParams as WS, encrypt as WT, encodeControl as W_, withoutAudioMetadata as Wa, inboxRecord as Wb, PIN_CLOCK_SKEW_MS as Wc, proofCapability as Wd, recordsFromTxt as Wf, IDLE_THRESHOLD as Wg, verifyCommit as Wh, USDT_PUBLIC_RPC as Wi, appRangeEndFrame as Wl, ACTIVE_TASK_STATUSES as Wm, SshSigError as Wn, engineText as Wo, EDIT_SEND_LIMIT as Wp, parseAtprotoVerificationKey as Wr, CALL_RATE_WINDOW_MS as Ws, GROUP_REACTED_FRAME as Wt, CAPS_REFRESH_MS as Wu, HANDOFF_ATTEMPTS as Wv, REQUESTS_PER_MINUTE as Ww, checkAppManifest as Wx, newHandoffId as Wy, groupTypingEpoch as X, TURN_SIGNED_BYTES as XC, INVITE_MAX_LENGTH as XS, jpegSize$1 as XT, RTC_SIGNAL_MAX_AGE_MS as X_, NO_PICTURE_METADATA as Xa, CONTACT_ASKER_FRAME as Xb, parsePinnedFrame as Xc, validExternalKey as Xd, ACTIVE_DHT_POLL_MS as Xf, PRESENCE_HEARTBEAT as Xg, edgeParams as Xh, isWalletNetwork as Xi, parseAppRangeFrame as Xl, PR_STATES as Xm, sshSignCommand as Xn, GROUP_WANT_FRAME as Xo, editFrame as Xp, DID_FILE_MAX_BYTES as Xr, ChatFiles as Xs, groupMessageId as Xt, dialDescriptors as Xu, HANDOFF_DONE as Xv, SLOW_MS as Xw, readAppBundle as Xx, readHandoffDone as Xy, GroupTypingBoard as Y, TURN_SEALED_BYTES as YC, INVITE_LINK_ORIGIN as YS, MAX_AVATAR_SIDE as YT, RTC_SIGNAL_FUTURE_MS as Y_, withoutVideoMetadata as Ya, turnOff as Yb, parsePinFrame as Yc, storageProofPath as Yd, wellKnownUrl as Yf, OFFER_STEP_MAX as Yg, decryptText as Yh, formatPaymentAmount as Yi, isServeId as Yl, PR_CHECKS as Ym, sshKeyDigestHex as Yn, GROUP_VERSION_FILES as Yo, dhtEditId as Yp, DID_DOCUMENT_MAX_BYTES as Yr, parsePairedCallFrame as Ys, frameBytes as Yt, capsDescriptors as Yu, HANDOFF_DATA as Yv, SLOW_DEMOTE_MS as Yw, pacer as Yx, readHandoffData as Yy, openGroupTyping as Z, TURN_SLOTS as ZC, INVITE_VERSION as ZS, sanitizeAvatar as ZT, buildDataSdp as Z_, PICTURE_METADATA_LIMITS as Za, CONTACT_RECORD_TTL as Zb, pinFrame as Zc, verifyNostrProof as Zd, DHT_FILE_REFUSED as Zf, PRESENCE_WINDOW as Zg, encryptText as Zh, parsePaymentAmount as Zi, readAppRangeFrame as Zl, REMOVABLE_KINDS as Zm, verifySshSignature as Zn, GROUP_WANT_NO_FRAME as Zo, editedFrame as Zp, DID_GHOSTLY_SERVICE as Zr, FILE_DATA_KIND as Zs, CATCH_UP_PAUSE_MS as Zt, emptyCapsState as Zu, HANDOFF_FILE_MISSING as Zv, TURN_SOURCE_TIMEOUT_MS as Zw, readAppBundleAsync as Zx, readHandoffFileFrame as Zy, X401_PROTOCOLS as _, deviceEchoFrame as _C, utf8Encode as _E, readAppSignature as _S, publishedNowhere as _T, viewerGuardOffset as __, decodeSvcbRecords as _a, DEVICE_KINDS as _b, liveStatus as _c, IdentityExchange as _d, relayedTransports as _f, ratchetOpen as _g, usageLeft as _h, parseDidSignaturePaste as _i, deviceWakeRequest as _l, COMMUNITY_REACTION_FRAME as _m, MAX_GROUP_META_BODY as _n, LIVENESS_PING_MS as _o, RECORDING_TYPES as _p, hash160 as _r, GROUP_VERSION_HUBS as _s, shortHash as _t, APP_RANGES_CAPABILITY as _u, isGlobalIpv4Host as _v, turnSequence as _w, knockSlotIdentity as _x, handoffAckFrame as _y, X401_DCQL_LIMITS as a, inviteOwnership as aC, unwrapPasted as aE, appRefPublisher as aS, setLinkTraceSink as aT, UNUSED_INVITE_WAIT_MAX_MS as a_, sparkNetworkOf as aa, sameDigest as ab, transferEnded as ac, IDENTITY_MAX_CHECKS_PER_HOUR as ad, verifyRingEvidence as af, FOLLOW_MS as ag, cardEditNumber as ah, didGhostlyServiceEntry as ai, WAKE_CALL_WAIT_MS as al, LINK_TRAILING as am, communityMessageAuthor as an, CROSSED_PROBE_MS as ao, peekDhtMailbox as ap, bip322ToSpend as ar, CARRIED_DEFER_MS as as, communityHasFrame as at, APP_VERSION_MAX as au, QUICK_REDIAL_MS as av, readTurnBody as aw, REQUEST_LABEL as ax, HANDOFF_PAKE as ay, buildX401ProofRequest as b, deviceKeyZ32 as bC, __exportAll as bE, signAppRevocation as bS, PKARR_FUTURE_SKEW_MS as bT, HttpHost as b_, pubkyHomeserverOf as ba, ENROLL_DONE as bb, sameStatusState as bc, emptyIdentityLedger as bd, HOLD_DATED_BACK_MS as bf, ratchetSessionOf as bg, claimedTime as bh, strictBase64Url as bi, readWake as bl, REACTED_FRAME as bm, MAX_GROUP_PICTURE_LENGTH as bn, PAIRED_FRAME_TOO_LARGE as bo, baseMime as bp, u32$1 as br, mayBeHub as bs, verifyCommunityChainPaced as bt, EDIT_CAPABILITY as bu, pickCallCandidates as bv, turnVerifierMark as bw, linkRecords as bx, handoffAttemptSucceeded as by, readX401DcqlQuery as c, ownInviteRefusal as cC, fromBase64 as cE, checkAppRevokeStatement as cS, BREAKER_BASE_MS as cT, presenceSeenAt as c_, PUBKY_PROOF_MAX_BYTES as ca, SET_ACK as cb, STATUS_AVAILABILITIES as cc, IDENTITY_MAX_RECEIVED as cd, RELAY_WITH_SECRETS as cf, RATCHET_CAPABILITY as cg, cardTimeUtc as ch, didWebDocumentUrl as ci, WAKE_ONLINE_BATCH as cl, linkStop as cm, validEditText as cn, DEMOTE_MS as co, dhtFileId as cp, BitcoinAddressError as cr, GROUP_VERSION_SIGNALS as cs, communityUntaggedHash as ct, appDataBytes as cu, buildSdpFromSignal as cv, signTurnBody as cw, REQUEST_PACKET_BYTES as cx, HANDOFF_RELEASE as cy, newX401HolderKey as d, DEVICES_CAPABILITY as dC, isZ32Key as dE, isAppLine as dS, RelayBreaker as dT, VIEWER_GUARD_HASH as d_, isPubkyProofFolder as da, readSetUpdate as db, STATUS_RATE_LIMIT as dc, IDENTITY_PROVIDER_ID as dd, checkedDescriptors as df, RATCHET_OVERHEAD as dg, readStatusCard as dh, didWebFileUrl as di, WAKE_ONLINE_INTERVAL_MS as dl, previewImageSize as dm, mentionsBytes as dn, FIRST_PAIRING_PACE_MS as do, PREVIEWABLE_IMAGE as dp, decodeAnyBitcoinAddress as dr, SIGNAL_FRESH_MS as ds, encodeCommunityLink as dt, chatAppId as du, compressSdp as dv, turnInstance as dw, STAMP_BITS_MAX as dx, HANDOFF_VERIFIED as dy, createLink as eC, hasVisible as eE, APP_NAME as eS, WRITE_FIRST_MS as eT, SIGNAL_OUT_READS as e_, SPARK_NETWORKS as ea, readHandoffManifest as eb, FileUplink as ec, IDENTITY_CHALLENGE_WINDOW as ed, ringAuthorization as ef, openPair as eg, STATUS_CARD_LIMITS as eh, DID_MAX_LENGTH as ei, pinnedFrame as el, validEditMessage as em, COMMUNITY_EDIT_FRAME as en, withoutPictureMetadata as eo, DHT_TEXT_BYTES as ep, verifyBitcoinMessage as er, isGroupMessageId as es, COMMUNITY_PROFILE as et, APP_PEER_OPEN_MAX as eu, parseRtcSignal as ev, TurnRecordError as ew, KNOCK_SLOT_LABEL as ex, HANDOFF_HELLO as ey, readX401SdJwtVc as f, DEVICE_CAPABILITIES as fC, randomBytes as fE, isAppRef as fS, DiscoveryBudgetError as fT, VIEWER_GUARD_SCRIPT as f_, newPubkyProofFolder as fa, setAckFrame as fb, STATUS_RATE_WINDOW_MS as fc, IDENTITY_REUSE_CHECK_S as fd, dialableIrohRelay as ff, RatchetBox as fg, removedCardText as fh, didWebHost as fi, WAKE_ONLINE_TTL_SECONDS as fl, sanitizePreviewImage as fm, mentionsMember as fn, GhostLink as fo, formatFileSize as fp, decodeBitcoinAddress as fr, SIGNAL_HOLD_MS as fs, leaveStands as ft, isAppVersion as fu, contactRtcConfig as fv, turnKeys as fw, STAMP_BITS_MIN as fx, HANDOFF_VERSION as fy, X401_LIMITS as g, HANDOFF_CAPABILITY as gC, utf8Decode as gE, readAppRevocations as gS, isDiscoveryBudgetError as gT, guardViewerAnswer as g_, pubkyProofPath as ga, verifySetUpdate as gb, StatusSender as gc, IdentityCheckUnavailable as gd, relayUrl as gf, ratchetOn as gg, taskProgress as gh, parseDidJws as gi, WakeLimiter as gl, readForwarded as gm, GROUP_META_PAST_CHARS as gn, LIVENESS_MISSED_PINGS as go, PLAYABLE_AUDIO as gp, encodeWitness as gr, readGroupSignal as gs, rosterHash as gt, APPS_CAPABILITY as gu, isCandidateAddress as gv, turnReleaseMessage as gw, knockHolds as gx, filePartName as gy, X401_HEADERS as h, ENROLL_CAPABILITY as hC, toZ32 as hE, readAppRevocationShape as hS, heldBackError as hT, allowingViewerGuard as h_, pubkyProofFile as ha, signTombstone as hb, StatusReceiver as hc, IDENTITY_SUBJECT as hd, rankTransports as hf, ratchetHeard as hg, statusCardText as hh, parseDidDocument as hi, WAKE_TTL_SECONDS as hl, forwardedMany as hm, GROUP_META_PAST as hn, INVITE_TAKEN as ho, sanitizeMime as hp, encodeTx as hr, groupSignalFrame as hs, leftStatement as ht, readAppFrame as hu, heardCallSignal as hv, turnPayloadSequence as hw, contactDay as hx, filePartDigest as hy, x401ApprovalDigest as i, inviteLink as iC, trimEndOf as iE, appRef as iS, relayUrlProblem as iT, UNUSED_INVITE_UPKEEP_MS as i_, sparkInvoiceDetails as ia, readHandoffVerified as ib, sentWhole as ic, IDENTITY_FRAME_WINDOW_MS as id, verifyRingAuthorization as if, sha256Hex as ig, buttonLabelClash as ih, checkDidSignature as ii, WAKE_CALL_TTL_SECONDS as il, LINK_PREVIEW_LIMITS as im, communityEditFrame as in, CROSSED_FRESH_MS as io, emptyDhtDeliveryState as ip, bip322ToSign as ir, readGroupWantNo as is, communityGroupId as it, APP_SEND_LIMIT as iu, PAIRED_CALL_CANDIDATES as iv, openTurnValue as iw, REQUEST_CLOCK_SKEW_MS as ix, HANDOFF_OFFER as iy, readX401ProofResult as j, seedSigner as jC, canonicalJson as jS, decodeTxtPacket as jT, sanitizeResponseHeaders as j_, BOLT11_PATTERN as ja, enrollProofFrame as jb, TYPING_TIMEOUT_MS as jc, verifyIdentityPresentation as jd, DOMAIN_METHODS as jf, STALLED_EVIDENCE_MS as jg, MEMBER_KEY as jh, encodeDidDhtDeactivated as ji, encryptPushPayload as jl, reactionIsNewer as jm, nextGroupMetaRevision as jn, RTC_UNSTARTED_MS as jo, voicePeaksOf as jp, isAtprotoDid as jr, hubRank as js, mergeKnocks as jt, TYPING_CAPABILITY as ju, HTTP_SERVICE_PROTO as jv, CHAT_WATCH_SHARE as jw, APP_BUNDLE_LIMITS as jx, handoffHaveFrames as jy, readX401ProofResponse as k, unsignedDeviceTransports as kC, previewable as kS, signRelayPayload as kT, resolveTargetUrl as k_, requestLnurlInvoice as ka, enrollHelloFrame as kb, TYPING_SEND_LIMIT as kc, revokesIdentity as kd, DOMAIN_FILE_MAX_BYTES as kf, OFFER_HOST_GATHER_MS as kg, MAX_GROUP_CHAIN as kh, didDhtKey as ki, checkPushEndpoint as kl, reactionEmoji as km, groupName as kn, RTC_SIGNAL_RATE_WINDOW_MS as ko, voiceLevel as kp, atprotoProofRkey as kr, doorHubs as ks, knockIdentity as kt, STATUS_CARD_CAPABILITY as ku, isEmptyLinkPacket as kv, CHAT_RESERVE_MOST_SHARE as kw, seenEntry as kx, handoffFileMissingFrame as ky, x401VpToken as l, pastedAgain as lC, fromBase64Url as lE, isAppHash as lS, BREAKER_MAX_MS as lT, unusedInviteWait as l_, PUBKY_PROOF_ROOT as la, SET_UPDATE as lb, STATUS_FRAME as lc, IDENTITY_MAX_VALIDITY as ld, TRANSPORTS as lf, RATCHET_HEADER_BYTES as lg, cardUrl as lh, didWebFile as li, WAKE_ONLINE_BATCH_MS as ll, linksIn as lm, MENTION_EVERYONE as ln, DHT_PIN_GRACE_MS as lo, readDhtFile as lp, ByteReader as lr, SIGNALS_PER_MINUTE as ls, decodeCommunityLink as lt, appDataFrame as lu, callRtcConfig as lv, signTurnPacket as lw, REQUEST_TEXT_BYTES as lx, HANDOFF_REQUEST as ly, x401HolderJwk as m, DEVICE_PING_FRAME as mC, toBase64Url as mE, readAppRevocation as mS, budgetRetryMs as mT, WEBRTC_GUARD as m_, pubkyProofCapability as ma, setUpdateMessage as mb, STATUS_TEXT_MAX as mc, IDENTITY_STATEMENT_PREFIX as md, irohRelayUrl as mf, isRatcheted as mg, statusCardBytes as mh, parseDid as mi, WAKE_SUBJECT as ml, forwardedAgain as mm, wireMentions as mn, INVITER_DIAL_GRACE_MS as mo, sanitizeFileName as mp, decodeWitness as mr, SIGNAL_REPLY_MS as ms, leaveStatement3 as mt, parseAppFrame as mu, extractParamsFromSdp as mv, turnPacket as mw, contactAskerHolds as mx, NO_ATTEMPTS as my, X401_RESPONSE_MODES as n, encodeGhostlyInvite as nC, sanitizeNick as nE, APP_STATEMENT_LIMITS as nS, normalizeRelayUrl as nT, TRANSPORTS_GONE_MS as n_, isSparkAddress as na, readHandoffRelease as nb, encodeFileData as nc, IDENTITY_CLOCK_SKEW as nd, ringEvidence as nf, sealPair as ng, appCardId as nh, DidError as ni, DEVICE_WAKE_TTL_SECONDS as nl, validRemovalNumber as nm, GROUP_EDIT_TEXT_BYTES as nn, ANSWERS_REFUSED_PAUSE_MS as no, DhtDelivery as np, MessageRefusal as nr, readGroupHave as ns, GROUP_READ_NOTE_COMMUNITY as nt, APP_RATE_WINDOW_MS as nu, CALL_SIGNAL_FUTURE_MS as nv, firstDeviceSetSecret as nw, MAX_SEEN as nx, HANDOFF_LIST_PER_FRAME as ny, matchX401Dcql as o, inviteQrSegments as oC, bytesEqual as oE, appRevocationId as oS, traceLink as oT, WATCH_PEER_MS as o_, BITCOIN_NETWORKS as oa, sealHandoffPiece as ob, transferStalled as oc, IDENTITY_MAX_EVIDENCE as od, AUTOMATIC_ORDER as of, MAX_SKIP as og, cardLine as oh, didJwsAlg as oi, WAKE_FRAME as ol, canonicalUrl as om, meshMessageRef as on, CROSSED_WAIT_MS as oo, DHT_FILE_CAPABILITY as op, decodeBase64 as or, CarriedTransport as os, communityMessageId as ot, AppSessions as ou, RTC_CONFIG as ov, readTurnPacket as ow, REQUEST_LIFETIME_MS as ox, HANDOFF_PIECE_BYTES as oy, sameX401HolderJwk as p, DEVICE_ECHO_FRAME as pC, toBase64 as pE, isAppSignature as pS, PublishFailedError as pT, VIEWER_WORKER_GUARD_CSP as p_, normalizePubkyKey as pa, setUpdateFrame as pb, STATUS_SEND_INTERVAL_MS as pc, IDENTITY_REVOCATION_LABEL as pd, irohDescriptor as pf, emptyRatchetState as pg, sameButtonText as ph, normalizeDid as pi, WAKE_RETRY_MS as pl, FORWARD_LIMITS as pm, validMentions as pn, HANDLED_WAIT_MS as po, safeBlobType as pp, decodeTx as pr, SIGNAL_PROVEN_MS as ps, leaveStatement as pt, isChatAppId as pu, decompressSdp as pv, turnName as pw, contactAskerFrame as px, HANDOFF_WINDOW as py, signAppStore as q, TURN_NO_ACTIVE as qC, DEVICE_INVITE_VERSION as qS, tryDecrypt as qT, DATA_CHANNEL_ID as q_, readingAhead as qa, settleRequest as qb, mayPin as qc, storageProof as qd, txtValue as qf, OFFER_FAST_MS as qg, confirmationMatches as qh, assertTokenUnits as qi, decodeAppRangeData as ql, CRON_LINE as qm, sameSshKey as qn, GROUP_FILE_LIMITS as qo, REMOVED_TEXT as qp, verifyAtprotoRecordProof as qr, PAIRED_CALL_FRAME as qs, asWritten as qt, CapsRefusedError as qu, HANDOFF_CANCEL as qv, SIGNALING_ALLOWANCE_SHARE as qw, isAppPath as qx, readHandoffBusy as qy, readX401OpenId4VpRequest as r, encodeInviteCode as rC, stripHidden as rE, appFingerprint as rS, readRelayBody as rT, UNUSED_INVITE_READS_PER_MINUTE as r_, sparkAddressKind as ra, readHandoffTurnFrame as rb, refusalText as rc, IDENTITY_FRAME_LIMIT as rd, validRingKey as rf, sealSecret as rg, appCardUrl as rh, checkDidJws as ri, WAKE_CALL_INTERVAL_MS as rl, LINK_MAX_CHARS as rm, carryMentions as rn, BLOCKED_DIAL_WAIT_MS as ro, LIVE_POLL_MS as rp, bip322MessageHash as rr, readGroupWant as rs, communityCommitHash as rt, APP_RESUME_GRACE_MS as ru, CALL_SIGNAL_MAX_AGE_MS as rv, nextTurnPosition as rw, MAX_SLOT_KNOCKS as rx, HANDOFF_MANIFEST as ry, presentX401SdJwtVc as s, inviteQrText as sC, concatBytes as sE, appSignedBytes as sS, BREAKER_ALL_DOWN_PROBE_MS as sT, countUnusedInvite as s_, isBitcoinAddress as sa, sortParts as sb, PRESENCES as sc, IDENTITY_MAX_FRAME as sd, RELAY_URL as sf, MAX_SKIPPED_KEYS as sg, cardLinkHost as sh, didSignedMessages as si, WAKE_INTERVAL_MS as sl, linkEnd as sm, parseCommunityEdit as sn, DEMOTE_AFTER_FAILURES as so, dhtFileElements as sp, verifyBip322 as sr, GROUP_SIGNAL_FRAME as ss, communityRoster as st, appCloseFrame as su, answersOffer as sv, sealTurnBody as sw, REQUEST_NAME_UNITS as sx, HANDOFF_PIECE_OVERHEAD as sy, X401_REQUEST_LIMITS as t, decodeInviteCode as tC, sanitizeDisplayText as tE, APP_PREFIXES as tS, currentRelays as tT, STALLED_LOOK_MS as t_, SPARK_PROVIDER as ta, readHandoffPake as tb, decodeFileData as tc, IDENTITY_CHECK_UNAVAILABLE as td, ringClaims as tf, openSecret as tg, TASK_STATUSES as th, DID_METHODS as ti, readPin as tl, validEditNumber as tm, GROUP_EDIT_FRAME as tn, ANSWERS_REFUSED_PAUSES as to, DHT_TEXT_REFUSED as tp, BIP322_REVISION as tr, readGroupFileMeta as ts, CommunitySession as tt, APP_RATE_LIMIT as tu, BURST_RING_MS as tv, encodeTurnFields as tw, LINK_RECORD_LABEL as tx, HANDOFF_LATER_BYTES as ty, X401_CREDENTIAL_LIMITS as u, readInviteCode as uC, fromZ32 as uE, isAppKey as uS, BREAKER_THRESHOLD as uT, VIEWER_GUARD_CSP as u_, isPubkyKey as ua, encodeSetSlots as ub, STATUS_IDLE_AFTER_MS as uc, IDENTITY_PROOF_CAPABILITY as ud, automaticTransport as uf, RATCHET_KEEP_MS as ug, checkStatusCard as uh, didWebFileNames as ui, WAKE_ONLINE_DELAY_MS as ul, parseLinkPreview as um, MENTION_LIMITS as un, EARLY_DIAL_JOIN_MS as uo, FileTransfers as up, compactSize as ur, SIGNAL_CARRIERS as us, derivedSecret as ut, appOpenFrame as uu, callSignalHeardAt as uv, signTurnRelease as uw, STAMP_BITS_DEFAULT as ux, HANDOFF_TIMINGS as uy, X401_SCHEME as v, deviceEchoNonce as vC, __commonJSMin as vE, setAppSignatureFastPath as vS, withRequestOptions as vT, GhostlyHttpError as v_, encodeSvcbPacket as va, ENROLL_CANCEL as vb, parseStatusFrame as vc, boundIdentityDisplay as vd, transportOrder as vf, ratchetRoot as vg, MESSAGE_CLOCK_SKEW_MS as vh, signingKeys as vi, newWakeToken as vl, GROUP_REACTION_FRAME as vm, MAX_GROUP_NAME_BYTES as vn, MAX_PAIRED_MESSAGE_FRAME as vo, VOICE_LIMITS as vp, sha256d as vr, MESH_HUBS as vs, signCommunity as vt, BUTTONS_CAPABILITY as vu, keepsToRelays as vv, turnSignedMessage as vw, knockSlotOf as vx, handoffAttemptAllowed as vy, decodeX401Header as w, deviceLinkSealKey as wC, IMAGE_LIMITS as wS, measureRecords as wT, VIEWER_SERVICE_CSP as w_, findLightningDestination as wa, enrollCancelFrame as wb, TYPING_FRAME as wc, identityStatement as wd, isHoldUrl as wf, DATA_SETTLE_MS as wg, GROUP_ADMIN_OFF_ERROR as wh, DID_DHT_VERSION as wi, wakePayload as wl, nextReactionNumber as wm, groupMetaChange as wn, RACE_ANSWERED_MS as wo, isPlayableAudioType as wp, ATPROTO_FULL_SCOPE as wr, pickMeshHubs as ws, MAX_KNOCKS as wt, PIN_CAPABILITY as wu, LABEL$1 as wv, AWAITED_READS as ww, openRequest as wx, handoffContextProof as wy, buildX401ProofResult as x, deviceLinkPairing as xC, __require as xE, verifyAppRevocation as xS, PacketTooLargeError as xT, VIEWER_DROPPED_DIRECTIVES as x_, LIGHTNING_DESTINATION_PATTERN as xa, ENROLL_GRANT as xb, sanitizeStatusText as xc, identityPresentationBytes as xd, HOLD_LIMITS as xf, ratchetUnknownSession as xg, heardTime as xh, DID_DHT_MAX_PAYLOAD as xi, readWakePayload as xl, REACTION_FRAME as xm, encodeGroupMetaBody as xn, PAIRING_ATTEMPT_MS as xo, downsamplePeaks as xp, u64 as xr, meshHubs as xs, verifyCommunityCommit as xt, FILES_BINARY_CAPABILITY as xu, sdpHasCandidates as xv, ANSWER_READ_ALLOWANCE as xw, makeStamp as xx, handoffBusyFrame as xy, X401_VERSION as y, deviceFrameCapability as yC, __esmMin as yE, signAppObject as yS, MAX_DNS_PACKET_BYTES as yT, HttpClient as y_, homeserverWebEndpoint as ya, ENROLL_CANCEL_REASONS as yb, personStatus as yc, boundVerifiedIdentity as yd, HOLD_CAPABILITY as yf, ratchetSeal as yg, arrivalKey as yh, staticDidDocument as yi, parseWakeFrame as yl, QUICK_REACTIONS as ym, MAX_GROUP_NAME_LENGTH as yn, MESSAGE_RECEIVE_LIMITS as yo, VOICE_METER as yp, txHash as yr, NO_HUB_POLICY as ys, verifyCommunityChain as yt, CALLS_CAPABILITY as yu, parseCallSignal as yv, turnStatedVerifier as yw, knockSlotRecords as yx, handoffAttemptFailed as yy, planAppUpdate as z, turnPutSummary as zC, DEVICE_INVITE_BYTES as zS, identityFromSeedB64 as zT, MAX_CHUNK_PAYLOAD_BYTES as z_, parseCashuRequestPayload as za, MAX_WAITING as zb, typingFrame as zc, STORAGE_ROOT as zd, encodeDnsQuery as zf, DAEMON_WATCH_PEER_IDLE_MS as zg, rosterAdmin as zh, ONCHAIN_PROVIDER as zi, APP_RANGE_LIMITS as zl, groupReplyAuthor as zm, wrapGroupMeta as zn, parsePaymentNetworks as zo, EDIT_BUFFER_MAX as zp, decodeDagCbor as zr, readBeacon as zs, groupWakeFrame as zt, SESSION_RECEIVE_PENDING as zu, serviceIdFromName as zv, GROUP_SIGNALING_ALLOWANCE_SHARE as zw, APP_VIEWS as zx, handoffStreamKey as zy };
42543
42885
 
42544
- //# sourceMappingURL=src-BN4AAuHI.js.map
42886
+ //# sourceMappingURL=src-DA7T3Gvo.js.map