@ghostlytools/sdk 1.11.0 → 1.11.1

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.
@@ -5039,7 +5039,7 @@ function findAppForbiddenKey(value) {
5039
5039
  var MAX_CLIENTS = 16;
5040
5040
  var SEMVER$1 = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;
5041
5041
  var HOST = /^>=(0|[1-9]\d*)\.(0|[1-9]\d*)(\.(0|[1-9]\d*))?$/;
5042
- var SEGMENT$1 = /^[A-Za-z0-9._-]+$/;
5042
+ var SEGMENT$2 = /^[A-Za-z0-9._-]+$/;
5043
5043
  var codePoints = (s) => [...s].length;
5044
5044
  /** Text of several lines: no control character but the line feed. */
5045
5045
  var isText$3 = (v, max) => typeof v === "string" && codePoints(v) <= max && !/[^\P{Cc}\n]/u.test(v);
@@ -5111,7 +5111,7 @@ function isAppLicense(value) {
5111
5111
  /** A path of a bundle: relative, `/`-separated, `[A-Za-z0-9._-]` per segment, no `.` or `..`, at most 128 bytes. */
5112
5112
  function isAppPath(value) {
5113
5113
  if (typeof value !== "string" || value.length < 1 || value.length > APP_BUNDLE_LIMITS.pathBytes) return false;
5114
- return value.split("/").every((s) => SEGMENT$1.test(s) && s !== "." && s !== "..");
5114
+ return value.split("/").every((s) => SEGMENT$2.test(s) && s !== "." && s !== "..");
5115
5115
  }
5116
5116
  var bad = (field, detail = `${field} is not valid`) => ({
5117
5117
  ok: false,
@@ -9032,12 +9032,17 @@ var DOCUMENT_DESTINATIONS = /* @__PURE__ */ new Set([
9032
9032
  "embed",
9033
9033
  "fencedframe"
9034
9034
  ]);
9035
+ /** The WebRTC guard, the one `guardViewerAnswer` puts in when it is given none. */
9036
+ var WEBRTC_GUARD = {
9037
+ script: VIEWER_GUARD_SCRIPT,
9038
+ hash: VIEWER_GUARD_HASH
9039
+ };
9035
9040
  /**
9036
- * A contact's `Content-Security-Policy` value (one policy or several, joined by commas), each given the guard's hash
9041
+ * A contact's `Content-Security-Policy` value (one policy or several, joined by commas), each given the guards' hashes
9037
9042
  * where it would refuse an inline script: in the directive that governs `<script>` elements (`script-src-elem`, else
9038
9043
  * `script-src`, else `default-src`), unless it lets every inline script run already. Nothing else of it changes.
9039
9044
  */
9040
- function allowingViewerGuard(value) {
9045
+ function allowingViewerGuard(value, hashes = [VIEWER_GUARD_HASH]) {
9041
9046
  return value.split(",").map((policy) => {
9042
9047
  const directives = policy.split(";");
9043
9048
  const names = directives.map((directive) => directive.trim().split(/\s+/)[0].toLowerCase());
@@ -9049,7 +9054,7 @@ function allowingViewerGuard(value) {
9049
9054
  if (at === void 0) return policy;
9050
9055
  const sources = directives[at].trim().split(/\s+/).slice(1).map((source) => source.toLowerCase());
9051
9056
  if (sources.includes("'unsafe-inline'") && !sources.some((source) => source.startsWith("'nonce-") || /^'sha(256|384|512)-/.test(source) || source === "'strict-dynamic'")) return policy;
9052
- directives[at] = `${directives[at].trimEnd()} ${VIEWER_GUARD_HASH}`;
9057
+ directives[at] = `${directives[at].trimEnd()} ${hashes.join(" ")}`;
9053
9058
  return directives.join(";");
9054
9059
  }).join(",");
9055
9060
  }
@@ -9108,15 +9113,16 @@ function viewerGuardOffset(head, done) {
9108
9113
  /** How far into a page the guard is looked for a place in: past it, it goes where the look stopped. */
9109
9114
  var LOOK_BYTES = 65536;
9110
9115
  /**
9111
- * A contact's answer as a viewer serves it while Hide my IP from contacts is on, where the viewer cannot run the guard
9112
- * in every frame itself (the web runner): the contact's policies take the guard's hash
9113
- * (`allowingViewerGuard`) and `VIEWER_GUARD_CSP` goes along. A page (`destination`, null when the browser did not say)
9114
- * that is HTML gets the guard first in it; one the guard cannot be put in (another type, more than one type, a
9116
+ * A contact's answer as a viewer serves it where it cannot run `guards` in every frame itself (the web runner; the
9117
+ * WebRTC guard while Hide my IP from contacts is on, unless it is given others): the contact's policies take the guards'
9118
+ * hashes (`allowingViewerGuard`) and `VIEWER_GUARD_CSP` goes along. A page (`destination`, null when the browser did not say)
9119
+ * that is HTML gets the guards first in it, in their order; one they cannot be put in (another type, more than one type, a
9115
9120
  * compressed, UTF-16 or ISO-2022-JP body, a type with a quote or a backslash in it, an escape byte before the guard's
9116
9121
  * place) runs no script at all. Anything that is not a page passes as it was. The caller adds Ghostly's own policy as before.
9117
9122
  */
9118
- async function guardViewerAnswer(headers, body, destination) {
9119
- const out = headers.map(([name, value]) => [name, name.toLowerCase() === "content-security-policy" ? allowingViewerGuard(value) : value]);
9123
+ async function guardViewerAnswer(headers, body, destination, guards = [WEBRTC_GUARD]) {
9124
+ const hashes = guards.map((guard) => guard.hash);
9125
+ const out = headers.map(([name, value]) => [name, name.toLowerCase() === "content-security-policy" ? allowingViewerGuard(value, hashes) : value]);
9120
9126
  out.push(["content-security-policy", VIEWER_GUARD_CSP]);
9121
9127
  if (destination !== null && !DOCUMENT_DESTINATIONS.has(destination.toLowerCase())) return {
9122
9128
  headers: out,
@@ -9164,7 +9170,7 @@ async function guardViewerAnswer(headers, body, destination) {
9164
9170
  headers: out,
9165
9171
  body: resumed(head)
9166
9172
  };
9167
- const guarded = concatBytes(head.subarray(0, offset), utf8Encode(`<script>${VIEWER_GUARD_SCRIPT}<\/script>`), head.subarray(offset));
9173
+ const guarded = concatBytes(head.subarray(0, offset), utf8Encode(guards.map((guard) => `<script>${guard.script}<\/script>`).join("")), head.subarray(offset));
9168
9174
  return {
9169
9175
  headers: out.filter(([name]) => name.toLowerCase() !== "content-length"),
9170
9176
  body: resumed(guarded)
@@ -9983,7 +9989,7 @@ var LinkSession = class {
9983
9989
  receivedNew = true;
9984
9990
  if (fresh.length > 0) this.events.onMessages?.(fresh, batch);
9985
9991
  }
9986
- if (read && batch.packetTimestamp > this.peerPacketAt) this.peerPacketAt = batch.packetTimestamp;
9992
+ if (read && batch.packetTimestamp > this.peerPacketAt) this.peerPacketAt = Math.min(batch.packetTimestamp, Date.now() + PKARR_FUTURE_SKEW_MS);
9987
9993
  const seenAt = batch.packetTimestamp === wasSeen ? presenceSeenAt(this.presence) : Math.max(readBefore, Math.min(batch.packetTimestamp, Date.now()));
9988
9994
  const online = batch.services !== null && Date.now() - seenAt < 6e5;
9989
9995
  this.presence = {
@@ -16591,7 +16597,7 @@ async function verifyPeerProof(event, c, readStorage) {
16591
16597
  if (sig.length !== 64 || !verify(sig, data, fromZ32(c.externalKey))) throw new Error("Invalid Pubky signature");
16592
16598
  } else if (c.adapter === "keet-import") {
16593
16599
  if (sig.length !== 107 || sig[0] !== 1 || sig[41] !== 0 || sig[42] !== 1) throw new Error("Unsupported Keet attestation");
16594
- const { default: IdentityKey } = await import("./keet-identity-key-DHlSH_39.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
16600
+ const { default: IdentityKey } = await import("./keet-identity-key-CASfmXry.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
16595
16601
  if (!IdentityKey.verify(b4a.from(sig), b4a.from(data), { expectedIdentity: b4a.from(unhex(c.externalKey)) })) throw new Error("Invalid Keet attestation");
16596
16602
  } else throw new Error("Unsupported proof adapter");
16597
16603
  }
@@ -29072,9 +29078,9 @@ var HEIF_BRANDS = /* @__PURE__ */ new Set([
29072
29078
  ]);
29073
29079
  var u16be = (b, at) => b[at] << 8 | b[at + 1];
29074
29080
  var u32be$1 = (b, at) => (b[at] << 24 >>> 0) + (b[at + 1] << 16) + (b[at + 2] << 8) + b[at + 3];
29075
- var u32le = (b, at) => (b[at] | b[at + 1] << 8 | b[at + 2] << 16 | b[at + 3] << 24) >>> 0;
29076
- var text$1 = (b, at, length) => String.fromCharCode(...b.subarray(at, at + length));
29077
- var starts = (b, at, prefix) => at + prefix.length <= b.length && text$1(b, at, prefix.length) === prefix;
29081
+ var u32le$1 = (b, at) => (b[at] | b[at + 1] << 8 | b[at + 2] << 16 | b[at + 3] << 24) >>> 0;
29082
+ var text$2 = (b, at, length) => String.fromCharCode(...b.subarray(at, at + length));
29083
+ var starts = (b, at, prefix) => at + prefix.length <= b.length && text$2(b, at, prefix.length) === prefix;
29078
29084
  /** A picture this strips, by its first bytes. */
29079
29085
  function kindOf(b) {
29080
29086
  if (b.length >= 3 && b[0] === 255 && b[1] === 216 && b[2] === 255) return "jpeg";
@@ -29084,11 +29090,11 @@ function kindOf(b) {
29084
29090
  if (starts(b, 0, "II*\0") || starts(b, 0, "MM\0*") || starts(b, 0, "II+\0") || starts(b, 0, "MM\0+")) return "tiff";
29085
29091
  if (b.length >= 16 && starts(b, 4, "ftyp")) {
29086
29092
  const end = Math.min(b.length, u32be$1(b, 0));
29087
- for (let at = 8; at + 4 <= end; at += 4) if (at !== 12 && HEIF_BRANDS.has(text$1(b, at, 4))) return "heif";
29093
+ for (let at = 8; at + 4 <= end; at += 4) if (at !== 12 && HEIF_BRANDS.has(text$2(b, at, 4))) return "heif";
29088
29094
  }
29089
29095
  }
29090
29096
  /** Refuses the picture where its bytes are not what this expects. */
29091
- function check$1(ok) {
29097
+ function check$2(ok) {
29092
29098
  if (!ok) throw new Error(NO_PICTURE_METADATA);
29093
29099
  }
29094
29100
  /** SOFn markers: every frame type but DHT (C4), JPG (C8) and DAC (CC). */
@@ -29122,12 +29128,12 @@ function stripJpeg(b) {
29122
29128
  const parts = [b.subarray(0, 2)];
29123
29129
  let at = 2, framed = false, scanned = false, exif = false;
29124
29130
  for (;;) {
29125
- check$1(at < b.length && b[at] === 255);
29131
+ check$2(at < b.length && b[at] === 255);
29126
29132
  while (at < b.length && b[at] === 255) at++;
29127
- check$1(at < b.length);
29133
+ check$2(at < b.length);
29128
29134
  const marker = b[at++];
29129
29135
  if (marker === 217) {
29130
- check$1(framed && scanned);
29136
+ check$2(framed && scanned);
29131
29137
  parts.push(Uint8Array.of(255, 217));
29132
29138
  return parts;
29133
29139
  }
@@ -29135,9 +29141,9 @@ function stripJpeg(b) {
29135
29141
  parts.push(Uint8Array.of(255, marker));
29136
29142
  continue;
29137
29143
  }
29138
- check$1(marker !== 0 && marker !== 216 && at + 2 <= b.length);
29144
+ check$2(marker !== 0 && marker !== 216 && at + 2 <= b.length);
29139
29145
  const length = u16be(b, at);
29140
- check$1(length >= 2 && at + length <= b.length);
29146
+ check$2(length >= 2 && at + length <= b.length);
29141
29147
  if (marker === 224 && length > 16 && starts(b, at + 2, "JFIF\0")) parts.push(Uint8Array.of(255, 224, 0, 16, ...b.subarray(at + 2, at + 14), 0, 0));
29142
29148
  else if (jpegKeeps(marker, b, at + 2)) {
29143
29149
  parts.push(Uint8Array.of(255, marker), b.subarray(at, at + length));
@@ -29149,15 +29155,15 @@ function stripJpeg(b) {
29149
29155
  }
29150
29156
  at += length;
29151
29157
  if (marker !== 218) continue;
29152
- check$1(framed);
29158
+ check$2(framed);
29153
29159
  scanned = true;
29154
29160
  let end = at;
29155
29161
  for (;;) {
29156
29162
  end = b.indexOf(255, end);
29157
- check$1(end >= 0);
29163
+ check$2(end >= 0);
29158
29164
  let next = end + 1;
29159
29165
  while (next < b.length && b[next] === 255) next++;
29160
- check$1(next < b.length);
29166
+ check$2(next < b.length);
29161
29167
  if (b[next] !== 0 && !(b[next] >= 208 && b[next] <= 215)) break;
29162
29168
  end = next + 1;
29163
29169
  }
@@ -29206,11 +29212,11 @@ function stripPng(b) {
29206
29212
  const parts = [b.subarray(0, 8)];
29207
29213
  let at = 8, exif = false, imaged = false;
29208
29214
  for (;;) {
29209
- check$1(at + 12 <= b.length);
29210
- const length = u32be$1(b, at), type = text$1(b, at + 4, 4);
29211
- check$1(at + 12 + length <= b.length && (at > 8 || type === "IHDR"));
29215
+ check$2(at + 12 <= b.length);
29216
+ const length = u32be$1(b, at), type = text$2(b, at + 4, 4);
29217
+ check$2(at + 12 + length <= b.length && (at > 8 || type === "IHDR"));
29212
29218
  const critical = (b[at + 4] & 32) === 0;
29213
- check$1(!critical || PNG_CRITICAL.has(type));
29219
+ check$2(!critical || PNG_CRITICAL.has(type));
29214
29220
  if (critical || PNG_DRAWS.has(type)) parts.push(b.subarray(at, at + 12 + length));
29215
29221
  else if (type === "eXIf" && !exif && !imaged) {
29216
29222
  exif = true;
@@ -29232,20 +29238,20 @@ var WEBP_KEEPS = /* @__PURE__ */ new Set([
29232
29238
  "ICCP"
29233
29239
  ]);
29234
29240
  function stripWebp(b) {
29235
- check$1(b.length >= 20);
29236
- const riffEnd = 8 + u32le(b, 4);
29237
- check$1(riffEnd <= b.length && riffEnd % 2 === 0);
29241
+ check$2(b.length >= 20);
29242
+ const riffEnd = 8 + u32le$1(b, 4);
29243
+ check$2(riffEnd <= b.length && riffEnd % 2 === 0);
29238
29244
  const parts = [];
29239
29245
  let at = 12, size = 4, drawn = false, exif = false, vp8x;
29240
29246
  while (at < riffEnd) {
29241
- check$1(at + 8 <= riffEnd);
29242
- const type = text$1(b, at, 4), length = u32le(b, at + 4), end = at + 8 + length + (length & 1);
29243
- check$1(end <= riffEnd && (at > 12 || type === "VP8 " || type === "VP8L" || type === "VP8X"));
29247
+ check$2(at + 8 <= riffEnd);
29248
+ const type = text$2(b, at, 4), length = u32le$1(b, at + 4), end = at + 8 + length + (length & 1);
29249
+ check$2(end <= riffEnd && (at > 12 || type === "VP8 " || type === "VP8L" || type === "VP8X"));
29244
29250
  let chunk;
29245
29251
  if (WEBP_KEEPS.has(type)) {
29246
29252
  chunk = b.subarray(at, end);
29247
29253
  if (type === "VP8X") {
29248
- check$1(length >= 10);
29254
+ check$2(length >= 10);
29249
29255
  chunk = vp8x = chunk.slice();
29250
29256
  chunk[8] = chunk[8] & -13;
29251
29257
  }
@@ -29273,7 +29279,7 @@ function stripWebp(b) {
29273
29279
  }
29274
29280
  at = end;
29275
29281
  }
29276
- check$1(drawn);
29282
+ check$2(drawn);
29277
29283
  const header = /* @__PURE__ */ new Uint8Array(12);
29278
29284
  header.set(b.subarray(0, 12));
29279
29285
  new DataView(header.buffer).setUint32(4, size, true);
@@ -29356,16 +29362,16 @@ var HEIF_ABOUT = /* @__PURE__ */ new Set([
29356
29362
  function boxes$1(b, start, end) {
29357
29363
  const found = [];
29358
29364
  for (let at = start; at < end;) {
29359
- check$1(at + 8 <= end);
29365
+ check$2(at + 8 <= end);
29360
29366
  let size = u32be$1(b, at), body = at + 8;
29361
- const type = text$1(b, at + 4, 4);
29367
+ const type = text$2(b, at + 4, 4);
29362
29368
  if (size === 1) {
29363
- check$1(at + 16 <= end);
29369
+ check$2(at + 16 <= end);
29364
29370
  size = u32be$1(b, at + 8) * 2 ** 32 + u32be$1(b, at + 12);
29365
29371
  body = at + 16;
29366
29372
  } else if (size === 0) size = end - at;
29367
29373
  if (type === "uuid") body += 16;
29368
- check$1(size >= body - at && at + size <= end);
29374
+ check$2(size >= body - at && at + size <= end);
29369
29375
  found.push({
29370
29376
  type,
29371
29377
  start: at,
@@ -29378,58 +29384,58 @@ function boxes$1(b, start, end) {
29378
29384
  }
29379
29385
  function stripHeif(b) {
29380
29386
  const top = boxes$1(b, 0, b.length);
29381
- check$1(top[0]?.type === "ftyp" && top.every((box) => HEIF_TOP.has(box.type)));
29387
+ check$2(top[0]?.type === "ftyp" && top.every((box) => HEIF_TOP.has(box.type)));
29382
29388
  const metas = top.filter((box) => box.type === "meta");
29383
- check$1(metas.length === 1);
29389
+ check$2(metas.length === 1);
29384
29390
  const meta = metas[0];
29385
29391
  const children = boxes$1(b, meta.body + 4, meta.end);
29386
- check$1(children.every((box) => HEIF_META.has(box.type)));
29392
+ check$2(children.every((box) => HEIF_META.has(box.type)));
29387
29393
  const one = (type) => {
29388
29394
  const of = children.filter((box) => box.type === type);
29389
- check$1(of.length <= 1);
29395
+ check$2(of.length <= 1);
29390
29396
  return of[0];
29391
29397
  };
29392
29398
  const iinf = one("iinf"), iloc = one("iloc"), idat = one("idat");
29393
- check$1(!!iinf && !!iloc);
29399
+ check$2(!!iinf && !!iloc);
29394
29400
  const metadata = /* @__PURE__ */ new Set();
29395
29401
  const infeVersion = b[iinf.body];
29396
29402
  const entries = boxes$1(b, iinf.body + 4 + (infeVersion === 0 ? 2 : 4), iinf.end);
29397
29403
  for (const infe of entries) {
29398
- check$1(infe.type === "infe" && infe.body + 4 <= infe.end);
29404
+ check$2(infe.type === "infe" && infe.body + 4 <= infe.end);
29399
29405
  const version = b[infe.body];
29400
- check$1(version === 2 || version === 3);
29406
+ check$2(version === 2 || version === 3);
29401
29407
  let at = infe.body + 4;
29402
29408
  const id = version === 2 ? u16be(b, at) : u32be$1(b, at);
29403
29409
  at += version === 2 ? 2 : 4;
29404
- check$1(at + 6 <= infe.end);
29405
- if (HEIF_METADATA_ITEMS.has(text$1(b, at + 2, 4))) metadata.add(id);
29410
+ check$2(at + 6 <= infe.end);
29411
+ if (HEIF_METADATA_ITEMS.has(text$2(b, at + 2, 4))) metadata.add(id);
29406
29412
  }
29407
29413
  const iprp = one("iprp"), properties = [];
29408
29414
  if (iprp) {
29409
29415
  const held = boxes$1(b, iprp.body, iprp.end);
29410
29416
  const ipco = held.filter((box) => box.type === "ipco");
29411
- check$1(ipco.length === 1 && held.every((box) => box.type === "ipco" || box.type === "ipma"));
29417
+ check$2(ipco.length === 1 && held.every((box) => box.type === "ipco" || box.type === "ipma"));
29412
29418
  properties.push(...boxes$1(b, ipco[0].body, ipco[0].end));
29413
- check$1(properties.every((box) => HEIF_DRAWS.has(box.type) || HEIF_ABOUT.has(box.type)));
29419
+ check$2(properties.every((box) => HEIF_DRAWS.has(box.type) || HEIF_ABOUT.has(box.type)));
29414
29420
  }
29415
29421
  /** `free` and `skip` boxes, at the top and in `meta`, and the properties about the picture: their bodies go as zeros. */
29416
29422
  const space = [...[...top, ...children].filter((box) => box.type === "free" || box.type === "skip"), ...properties.filter((box) => HEIF_ABOUT.has(box.type))];
29417
29423
  const out = b.slice();
29418
29424
  const version = b[iloc.body];
29419
- check$1(version <= 2);
29425
+ check$2(version <= 2);
29420
29426
  let at = iloc.body + 4;
29421
29427
  /** The next field of `size` bytes (0, 2, 4 or 8), big-endian. */
29422
29428
  const read = (size) => {
29423
- check$1(at + size <= iloc.end);
29429
+ check$2(at + size <= iloc.end);
29424
29430
  const value = size === 0 ? 0 : size === 2 ? u16be(b, at) : size === 4 ? u32be$1(b, at) : size === 8 ? u32be$1(b, at) * 2 ** 32 + u32be$1(b, at + 4) : NaN;
29425
- check$1(Number.isSafeInteger(value));
29431
+ check$2(Number.isSafeInteger(value));
29426
29432
  at += size;
29427
29433
  return value;
29428
29434
  };
29429
29435
  const read2 = () => read(2);
29430
- check$1(at + 2 <= iloc.end);
29436
+ check$2(at + 2 <= iloc.end);
29431
29437
  const offsetSize = b[at] >> 4, lengthSize = b[at] & 15, baseSize = b[at + 1] >> 4, indexSize = version > 0 ? b[at + 1] & 15 : 0;
29432
- check$1([
29438
+ check$2([
29433
29439
  offsetSize,
29434
29440
  lengthSize,
29435
29441
  baseSize,
@@ -29448,12 +29454,12 @@ function stripHeif(b) {
29448
29454
  const offset = read(offsetSize), length = read(lengthSize);
29449
29455
  if (!metadata.has(id)) {
29450
29456
  const start = base + offset, end = length ? start + length : b.length;
29451
- check$1(reference !== 0 || method !== 0 || !space.some((box) => start < box.end && end > box.body));
29457
+ check$2(reference !== 0 || method !== 0 || !space.some((box) => start < box.end && end > box.body));
29452
29458
  continue;
29453
29459
  }
29454
- check$1(reference === 0 && length > 0 && (method === 0 || method === 1 && !!idat));
29460
+ check$2(reference === 0 && length > 0 && (method === 0 || method === 1 && !!idat));
29455
29461
  const start = (method === 1 ? idat.body : 0) + base + offset, limit = method === 1 ? idat.end : b.length;
29456
- check$1(start + length <= limit);
29462
+ check$2(start + length <= limit);
29457
29463
  out.fill(0, start, start + length);
29458
29464
  }
29459
29465
  }
@@ -29466,44 +29472,44 @@ var GIF_APPS_KEPT = /* @__PURE__ */ new Set([
29466
29472
  "ICCRGBG1012"
29467
29473
  ]);
29468
29474
  function stripGif(b) {
29469
- check$1(b.length >= 13);
29475
+ check$2(b.length >= 13);
29470
29476
  /** A colour table's bytes, from the flags that say it is there and its size. */
29471
29477
  const table = (flags) => flags & 128 ? 3 << (flags & 7) + 1 : 0;
29472
29478
  /** The end of the data sub-blocks at `at`, past their empty block. */
29473
29479
  const blocks = (at) => {
29474
29480
  for (;;) {
29475
- check$1(at < b.length);
29481
+ check$2(at < b.length);
29476
29482
  const length = b[at];
29477
29483
  at += 1 + length;
29478
29484
  if (!length) return at;
29479
29485
  }
29480
29486
  };
29481
29487
  let at = 13 + table(b[10]), framed = false;
29482
- check$1(at <= b.length);
29488
+ check$2(at <= b.length);
29483
29489
  const parts = [b.subarray(0, at)];
29484
29490
  for (;;) {
29485
- check$1(at < b.length);
29491
+ check$2(at < b.length);
29486
29492
  const introducer = b[at];
29487
29493
  if (introducer === 59) {
29488
- check$1(framed);
29494
+ check$2(framed);
29489
29495
  parts.push(Uint8Array.of(59));
29490
29496
  return parts;
29491
29497
  }
29492
29498
  if (introducer === 44) {
29493
- check$1(at + 10 <= b.length);
29499
+ check$2(at + 10 <= b.length);
29494
29500
  const data = at + 10 + table(b[at + 9]);
29495
- check$1(data < b.length);
29501
+ check$2(data < b.length);
29496
29502
  const end = blocks(data + 1);
29497
29503
  parts.push(b.subarray(at, end));
29498
29504
  framed = true;
29499
29505
  at = end;
29500
29506
  continue;
29501
29507
  }
29502
- check$1(introducer === 33 && at + 2 < b.length);
29508
+ check$2(introducer === 33 && at + 2 < b.length);
29503
29509
  const label = b[at + 1], end = blocks(at + 2);
29504
- const app = label === 255 && b[at + 2] === 11 && GIF_APPS_KEPT.has(text$1(b, at + 3, 11));
29510
+ const app = label === 255 && b[at + 2] === 11 && GIF_APPS_KEPT.has(text$2(b, at + 3, 11));
29505
29511
  if (label === 249 || label === 1 || app) parts.push(b.subarray(at, end));
29506
- else check$1(label === 254 || label === 255);
29512
+ else check$2(label === 254 || label === 255);
29507
29513
  at = end;
29508
29514
  }
29509
29515
  }
@@ -29622,18 +29628,18 @@ var TIFF_TYPE_BYTES = [
29622
29628
  function stripTiff(b) {
29623
29629
  const little = b[0] === 73;
29624
29630
  const u16 = (at) => {
29625
- check$1(at + 2 <= b.length);
29631
+ check$2(at + 2 <= b.length);
29626
29632
  return little ? b[at] | b[at + 1] << 8 : u16be(b, at);
29627
29633
  };
29628
29634
  const u32 = (at) => {
29629
- check$1(at + 4 <= b.length);
29630
- return little ? u32le(b, at) : u32be$1(b, at);
29635
+ check$2(at + 4 <= b.length);
29636
+ return little ? u32le$1(b, at) : u32be$1(b, at);
29631
29637
  };
29632
- check$1(b.length >= 8 && u16(2) === 42);
29638
+ check$2(b.length >= 8 && u16(2) === 42);
29633
29639
  const out = b.slice(), seen = /* @__PURE__ */ new Set();
29634
29640
  /** An IFD's entries: tag, type, the value's first byte (in the entry or where it points) and its bytes. */
29635
29641
  const entries = (ifd) => {
29636
- check$1(ifd >= 8 && !seen.has(ifd) && seen.size < 1024);
29642
+ check$2(ifd >= 8 && !seen.has(ifd) && seen.size < 1024);
29637
29643
  seen.add(ifd);
29638
29644
  const count = u16(ifd), next = ifd + 2 + count * 12;
29639
29645
  u32(next);
@@ -29641,10 +29647,10 @@ function stripTiff(b) {
29641
29647
  next,
29642
29648
  list: Array.from({ length: count }, (_, i) => {
29643
29649
  const at = ifd + 2 + i * 12, tag = u16(at), type = u16(at + 2);
29644
- check$1(type >= 1 && type < TIFF_TYPE_BYTES.length);
29650
+ check$2(type >= 1 && type < TIFF_TYPE_BYTES.length);
29645
29651
  const bytes = TIFF_TYPE_BYTES[type] * u32(at + 4);
29646
29652
  const value = bytes <= 4 ? at + 8 : u32(at + 8);
29647
- check$1(Number.isSafeInteger(bytes) && value + bytes <= b.length);
29653
+ check$2(Number.isSafeInteger(bytes) && value + bytes <= b.length);
29648
29654
  return {
29649
29655
  at,
29650
29656
  tag,
@@ -29659,7 +29665,7 @@ function stripTiff(b) {
29659
29665
  const empty = (ifd) => {
29660
29666
  const { next, list } = entries(ifd);
29661
29667
  for (const entry of list) {
29662
- check$1(entry.tag !== 37500);
29668
+ check$2(entry.tag !== 37500);
29663
29669
  if (TIFF_METADATA_IFDS.has(entry.tag)) empty(u32(entry.value));
29664
29670
  out.fill(0, entry.value, entry.value + entry.bytes);
29665
29671
  }
@@ -29669,16 +29675,16 @@ function stripTiff(b) {
29669
29675
  const { next, list } = entries(ifd);
29670
29676
  let kept = 0;
29671
29677
  for (const { at, tag, value, bytes } of list) {
29672
- if (tag === 259) check$1(TIFF_COMPRESSION.has(u16(value)));
29678
+ if (tag === 259) check$2(TIFF_COMPRESSION.has(u16(value)));
29673
29679
  if (TIFF_METADATA_IFDS.has(tag)) {
29674
29680
  empty(u32(value));
29675
29681
  continue;
29676
29682
  }
29677
29683
  if (TIFF_METADATA.has(tag)) out.fill(0, value, value + bytes);
29678
- else check$1(TIFF_DRAWS.has(tag));
29684
+ else check$2(TIFF_DRAWS.has(tag));
29679
29685
  out.copyWithin(ifd + 2 + kept++ * 12, at, at + 12);
29680
29686
  }
29681
- check$1(kept > 0);
29687
+ check$2(kept > 0);
29682
29688
  const end = ifd + 2 + kept * 12;
29683
29689
  out.set(little ? [kept & 255, kept >> 8] : [kept >> 8, kept & 255], ifd);
29684
29690
  out.set(b.subarray(next, next + 4), end);
@@ -29744,7 +29750,8 @@ async function withoutPictureMetadata(source, mime) {
29744
29750
  *
29745
29751
  * Fail-closed: a file that is an MP4 or QuickTime video, by its bytes or by its type, and whose metadata cannot be
29746
29752
  * removed (truncated, malformed, a part of its movie this does not know) is refused with `NO_VIDEO_METADATA`, never sent as it was.
29747
- * A picture (HEIF is pictureMetadata.ts's), a file without a video track (an M4A) and any other file go as they are.
29753
+ * A picture (HEIF is pictureMetadata.ts's) and any other file go as they are; so does a file without a video track (an
29754
+ * M4A) here: audioMetadata.ts strips it.
29748
29755
  */
29749
29756
  var VIDEO_METADATA_LIMITS = {
29750
29757
  /** The largest `moov` or `moof` read whole, and the most bytes of a metadata track's chunk: past this the video is refused. */
@@ -29880,25 +29887,25 @@ var VISUAL = /* @__PURE__ */ new Set([
29880
29887
  "pict"
29881
29888
  ]);
29882
29889
  /** Zeros put in a Blob a slice at a time: a Blob's Blob parts are not copied, so a zeroed range of any size holds no more. */
29883
- var ZEROS = new Blob([/* @__PURE__ */ new Uint8Array(1048576)]);
29890
+ var ZEROS$1 = new Blob([/* @__PURE__ */ new Uint8Array(1048576)]);
29884
29891
  var u32be = (b, at) => (b[at] << 24 >>> 0) + (b[at + 1] << 16) + (b[at + 2] << 8) + b[at + 3];
29885
- var text = (b, at, length) => String.fromCharCode(...b.subarray(at, at + length));
29892
+ var text$1 = (b, at, length) => String.fromCharCode(...b.subarray(at, at + length));
29886
29893
  /** Refuses the video where its bytes are not what this expects. */
29887
- function check(ok) {
29894
+ function check$1(ok) {
29888
29895
  if (!ok) throw new Error(NO_VIDEO_METADATA);
29889
29896
  }
29890
29897
  /** A box's header at `at` of `b` (`base` its offset in the file), up to `end` (a size of 0 runs to it). */
29891
29898
  function header(b, at, end, base = 0) {
29892
- check(at + 8 <= b.length);
29899
+ check$1(at + 8 <= b.length);
29893
29900
  let size = u32be(b, at), body = at + 8;
29894
- const type = text(b, at + 4, 4);
29901
+ const type = text$1(b, at + 4, 4);
29895
29902
  if (size === 1) {
29896
- check(at + 16 <= b.length);
29903
+ check$1(at + 16 <= b.length);
29897
29904
  size = u32be(b, at + 8) * 2 ** 32 + u32be(b, at + 12);
29898
29905
  body = at + 16;
29899
29906
  } else if (size === 0) size = end - (base + at);
29900
29907
  if (type === "uuid") body += 16;
29901
- check(Number.isSafeInteger(size) && size >= body - at && base + at + size <= end);
29908
+ check$1(Number.isSafeInteger(size) && size >= body - at && base + at + size <= end);
29902
29909
  return {
29903
29910
  type,
29904
29911
  start: base + at,
@@ -29909,7 +29916,7 @@ function header(b, at, end, base = 0) {
29909
29916
  function boxes(b, start, end) {
29910
29917
  const found = [];
29911
29918
  for (let at = start; at < end;) {
29912
- check(at + 8 <= end);
29919
+ check$1(at + 8 <= end);
29913
29920
  const box = header(b.subarray(0, end), at, end);
29914
29921
  found.push(box);
29915
29922
  at = box.end;
@@ -29943,32 +29950,32 @@ function emptyWithin(b, start, end) {
29943
29950
  */
29944
29951
  function zeroCompressorNames(b, stbl) {
29945
29952
  const stsd = child(b, stbl, "stsd");
29946
- check(!!stsd && stsd.body + 8 <= stsd.end);
29953
+ check$1(!!stsd && stsd.body + 8 <= stsd.end);
29947
29954
  for (const entry of boxes(b, stsd.body + 8, stsd.end)) {
29948
- check(entry.body + 74 <= entry.end);
29955
+ check$1(entry.body + 74 <= entry.end);
29949
29956
  b.fill(0, entry.body + 42, entry.body + 74);
29950
29957
  }
29951
29958
  }
29952
29959
  /** A `mvhd`, `tkhd` or `mdhd` with its creation and modification times zeroed: 32 bits each in version 0, 64 in 1. */
29953
29960
  function zeroTimes(b, box) {
29954
29961
  const version = b[box.body], bytes = version === 1 ? 16 : 8;
29955
- check(version <= 1 && box.body + 4 + bytes <= box.end);
29962
+ check$1(version <= 1 && box.body + 4 + bytes <= box.end);
29956
29963
  b.fill(0, box.body + 4, box.body + 4 + bytes);
29957
29964
  }
29958
29965
  var child = (b, parent, type) => {
29959
29966
  if (!parent) return void 0;
29960
29967
  const of = boxes(b, parent.body, parent.end).filter((box) => box.type === type);
29961
- check(of.length <= 1);
29968
+ check$1(of.length <= 1);
29962
29969
  return of[0];
29963
29970
  };
29964
29971
  /** A sample table's chunks, from its `stco` or `co64`: how many, and where each starts in the file. */
29965
29972
  function chunkOffsets(b, stbl) {
29966
29973
  const stco = child(b, stbl, "stco"), co64 = child(b, stbl, "co64");
29967
- check(!!stco !== !!co64);
29974
+ check$1(!!stco !== !!co64);
29968
29975
  const offsets = stco ?? co64;
29969
- check(offsets.body + 8 <= offsets.end);
29976
+ check$1(offsets.body + 8 <= offsets.end);
29970
29977
  const chunks = u32be(b, offsets.body + 4);
29971
- check(offsets.body + 8 + chunks * (co64 ? 8 : 4) <= offsets.end);
29978
+ check$1(offsets.body + 8 + chunks * (co64 ? 8 : 4) <= offsets.end);
29972
29979
  const offsetOf = (i) => co64 ? u32be(b, co64.body + 8 + i * 8) * 2 ** 32 + u32be(b, co64.body + 12 + i * 8) : u32be(b, stco.body + 8 + i * 4);
29973
29980
  return {
29974
29981
  chunks,
@@ -29978,8 +29985,8 @@ function chunkOffsets(b, stbl) {
29978
29985
  /** The byte ranges of a track's samples in the file, one per chunk, from its sample table. */
29979
29986
  function sampleRanges(b, stbl) {
29980
29987
  const stsz = child(b, stbl, "stsz"), stz2 = child(b, stbl, "stz2"), stsc = child(b, stbl, "stsc");
29981
- check(!!stsc && !!stsz !== !!stz2);
29982
- const need = (box, at, bytes) => check(at + bytes <= box.end);
29988
+ check$1(!!stsc && !!stsz !== !!stz2);
29989
+ const need = (box, at, bytes) => check$1(at + bytes <= box.end);
29983
29990
  const sizeTable = stsz ?? stz2;
29984
29991
  need(sizeTable, sizeTable.body, 12);
29985
29992
  const count = u32be(b, sizeTable.body + 8);
@@ -29992,7 +29999,7 @@ function sampleRanges(b, stbl) {
29992
29999
  sizeOf = (i) => u32be(b, stsz.body + 12 + i * 4);
29993
30000
  } else {
29994
30001
  const field = b[stz2.body + 7];
29995
- check(field === 4 || field === 8 || field === 16);
30002
+ check$1(field === 4 || field === 8 || field === 16);
29996
30003
  need(stz2, stz2.body + 12, Math.ceil(count * field / 8));
29997
30004
  const at = stz2.body + 12;
29998
30005
  sizeOf = field === 16 ? (i) => b[at + i * 2] << 8 | b[at + i * 2 + 1] : field === 8 ? (i) => b[at + i] : (i) => i & 1 ? b[at + (i >> 1)] & 15 : b[at + (i >> 1)] >> 4;
@@ -30006,18 +30013,18 @@ function sampleRanges(b, stbl) {
30006
30013
  for (let run = 0; run < runs; run++) {
30007
30014
  const first = u32be(b, stsc.body + 8 + run * 12), perChunk = u32be(b, stsc.body + 12 + run * 12);
30008
30015
  const last = run + 1 < runs ? u32be(b, stsc.body + 8 + (run + 1) * 12) : chunks + 1;
30009
- check(first >= 1 && last > first && last <= chunks + 1);
30016
+ check$1(first >= 1 && last > first && last <= chunks + 1);
30010
30017
  for (let chunk = first; chunk < last; chunk++) {
30011
30018
  const start = offsetOf(chunk - 1);
30012
- check(sample + perChunk <= count);
30019
+ check$1(sample + perChunk <= count);
30013
30020
  let length = uniform * perChunk;
30014
30021
  if (!uniform) for (let i = 0; i < perChunk; i++) length += sizeOf(sample + i);
30015
30022
  sample += perChunk;
30016
- check(Number.isSafeInteger(start) && length <= VIDEO_METADATA_LIMITS.maxBoxBytes);
30023
+ check$1(Number.isSafeInteger(start) && length <= VIDEO_METADATA_LIMITS.maxBoxBytes);
30017
30024
  if (length) ranges.push([start, start + length]);
30018
30025
  }
30019
30026
  }
30020
- check(sample === count);
30027
+ check$1(sample === count);
30021
30028
  return ranges;
30022
30029
  }
30023
30030
  /** Each track's default sample size in fragments, from `moov`'s `mvex/trex` boxes, by track ID. */
@@ -30026,7 +30033,7 @@ function defaultSampleSizes(moov) {
30026
30033
  const mvex = child(moov, header(moov, 0, moov.length), "mvex");
30027
30034
  for (const trex of mvex ? boxes(moov, mvex.body, mvex.end) : []) {
30028
30035
  if (trex.type !== "trex") continue;
30029
- check(trex.body + 24 <= trex.end);
30036
+ check$1(trex.body + 24 <= trex.end);
30030
30037
  sizes.set(u32be(moov, trex.body + 4), u32be(moov, trex.body + 16));
30031
30038
  }
30032
30039
  return sizes;
@@ -30044,11 +30051,11 @@ function fragmentRanges(b, at, sizes) {
30044
30051
  for (const traf of boxes(b, header(b, 0, b.length).body, b.length)) {
30045
30052
  if (traf.type !== "traf") continue;
30046
30053
  const tfhd = child(b, traf, "tfhd");
30047
- check(!!tfhd && tfhd.body + 8 <= tfhd.end);
30054
+ check$1(!!tfhd && tfhd.body + 8 <= tfhd.end);
30048
30055
  const flags = u32be(b, tfhd.body) & 16777215;
30049
30056
  let field = tfhd.body + 8, base = flags & 131072 ? at : previous;
30050
30057
  if (flags & 1) {
30051
- check(field + 8 <= tfhd.end);
30058
+ check$1(field + 8 <= tfhd.end);
30052
30059
  base = u32be(b, field) * 2 ** 32 + u32be(b, field + 4);
30053
30060
  field += 8;
30054
30061
  }
@@ -30057,17 +30064,17 @@ function fragmentRanges(b, at, sizes) {
30057
30064
  const track = u32be(b, tfhd.body + 4);
30058
30065
  let size = sizes.get(track);
30059
30066
  if (flags & 16) {
30060
- check(field + 4 <= tfhd.end);
30067
+ check$1(field + 4 <= tfhd.end);
30061
30068
  size = u32be(b, field);
30062
30069
  }
30063
30070
  let next = base;
30064
30071
  for (const trun of boxes(b, traf.body, traf.end)) {
30065
30072
  if (trun.type !== "trun") continue;
30066
- check(trun.body + 8 <= trun.end);
30073
+ check$1(trun.body + 8 <= trun.end);
30067
30074
  const runFlags = u32be(b, trun.body) & 16777215, count = u32be(b, trun.body + 4);
30068
30075
  let field = trun.body + 8;
30069
30076
  if (runFlags & 1) {
30070
- check(field + 4 <= trun.end);
30077
+ check$1(field + 4 <= trun.end);
30071
30078
  next = base + (u32be(b, field) | 0);
30072
30079
  field += 4;
30073
30080
  }
@@ -30078,16 +30085,16 @@ function fragmentRanges(b, at, sizes) {
30078
30085
  1024,
30079
30086
  2048
30080
30087
  ].filter((flag) => runFlags & flag).length * 4;
30081
- check(field + count * stride <= trun.end);
30088
+ check$1(field + count * stride <= trun.end);
30082
30089
  let length = 0;
30083
30090
  if (runFlags & 512) {
30084
30091
  const sizeAt = field + (runFlags & 256 ? 4 : 0);
30085
30092
  for (let i = 0; i < count; i++) length += u32be(b, sizeAt + i * stride);
30086
30093
  } else if (count) {
30087
- check(size !== void 0);
30094
+ check$1(size !== void 0);
30088
30095
  length = count * size;
30089
30096
  }
30090
- check(Number.isSafeInteger(next) && Number.isSafeInteger(next + length));
30097
+ check$1(Number.isSafeInteger(next) && Number.isSafeInteger(next + length));
30091
30098
  if (length) ranges.push([
30092
30099
  next,
30093
30100
  next + length,
@@ -30119,7 +30126,7 @@ function stripMoov(b) {
30119
30126
  empty(b, box);
30120
30127
  continue;
30121
30128
  }
30122
- check(MOOV_KEEPS.has(box.type));
30129
+ check$1(MOOV_KEEPS.has(box.type));
30123
30130
  if (SPACE.has(box.type)) b.fill(0, box.body, box.end);
30124
30131
  if (box.type === "mvhd") zeroTimes(b, box);
30125
30132
  if (box.type === "mvex") {
@@ -30133,39 +30140,39 @@ function stripMoov(b) {
30133
30140
  empty(b, part);
30134
30141
  continue;
30135
30142
  }
30136
- check(TRAK_KEEPS.has(part.type));
30143
+ check$1(TRAK_KEEPS.has(part.type));
30137
30144
  if (part.type === "tkhd") {
30138
- check(!tkhd);
30145
+ check$1(!tkhd);
30139
30146
  tkhd = part;
30140
30147
  zeroTimes(b, part);
30141
30148
  }
30142
30149
  if (part.type === "mdia") {
30143
- check(!mdia);
30150
+ check$1(!mdia);
30144
30151
  mdia = part;
30145
30152
  }
30146
30153
  }
30147
- check(!!mdia);
30154
+ check$1(!!mdia);
30148
30155
  const hdlr = child(b, mdia, "hdlr"), minf = child(b, mdia, "minf"), mdhd = child(b, mdia, "mdhd");
30149
- check(!!hdlr && !!minf && hdlr.body + 12 <= hdlr.end);
30156
+ check$1(!!hdlr && !!minf && hdlr.body + 12 <= hdlr.end);
30150
30157
  if (mdhd) zeroTimes(b, mdhd);
30151
- const handler = text(b, hdlr.body + 8, 4);
30158
+ const handler = text$1(b, hdlr.body + 8, 4);
30152
30159
  const stbl = child(b, minf, "stbl");
30153
- check(!!stbl);
30160
+ check$1(!!stbl);
30154
30161
  tables.push(stbl);
30155
30162
  if (handler === "meta") {
30156
- check(selfContained(b, minf));
30163
+ check$1(selfContained(b, minf));
30157
30164
  metadata = true;
30158
30165
  for (const range of sampleRanges(b, stbl)) zeroed.push(range);
30159
30166
  } else if (handler === "tmcd" && selfContained(b, minf)) {
30160
30167
  metadata = true;
30161
30168
  for (const range of sampleRanges(b, stbl)) zeroed.push(range);
30162
30169
  } else if (CAPTIONS.has(handler)) {
30163
- check(selfContained(b, minf) && !!tkhd);
30170
+ check$1(selfContained(b, minf) && !!tkhd);
30164
30171
  const id = tkhd.body + 4 + (b[tkhd.body] === 1 ? 16 : 8);
30165
- check(id + 4 <= tkhd.end);
30172
+ check$1(id + 4 <= tkhd.end);
30166
30173
  captions.add(u32be(b, id));
30167
30174
  for (const range of sampleRanges(b, stbl)) zeroed.push(range);
30168
- } else check(HANDLERS.has(handler));
30175
+ } else check$1(HANDLERS.has(handler));
30169
30176
  if (handler === "vide") video = true;
30170
30177
  if (VISUAL.has(handler)) zeroCompressorNames(b, stbl);
30171
30178
  emptyWithin(b, box.body, box.end);
@@ -30223,9 +30230,9 @@ async function headerAt(source, at) {
30223
30230
  }
30224
30231
  /** A box read whole, within the limit. */
30225
30232
  async function whole(source, box) {
30226
- check(box.end - box.start <= VIDEO_METADATA_LIMITS.maxBoxBytes);
30233
+ check$1(box.end - box.start <= VIDEO_METADATA_LIMITS.maxBoxBytes);
30227
30234
  const bytes = await source.read(box.start, box.end - box.start);
30228
- check(bytes.length === box.end - box.start);
30235
+ check$1(bytes.length === box.end - box.start);
30229
30236
  return bytes;
30230
30237
  }
30231
30238
  /**
@@ -30234,7 +30241,7 @@ async function whole(source, box) {
30234
30241
  * pictureMetadata.ts's.
30235
30242
  */
30236
30243
  function containerOf(head, mime) {
30237
- const first = head.length >= 8 ? text(head, 4, 4) : "";
30244
+ const first = head.length >= 8 ? text$1(head, 4, 4) : "";
30238
30245
  if (isStrippedPicture(head, mime)) return void 0;
30239
30246
  if (FIRST_BOXES.has(first)) return "movie";
30240
30247
  return TOP_KEEPS.has(first) || TOP_EMPTIED.has(first) ? "boxes" : void 0;
@@ -30255,7 +30262,7 @@ async function withoutVideoMetadata(source, mime) {
30255
30262
  for (const patch of patches) {
30256
30263
  if (patch.start > at) parts.push(source.slice(at, patch.start));
30257
30264
  if (patch.bytes) parts.push(patch.bytes);
30258
- else for (let left = patch.end - patch.start; left > 0; left -= ZEROS.size) parts.push(ZEROS.slice(0, Math.min(left, ZEROS.size)));
30265
+ else for (let left = patch.end - patch.start; left > 0; left -= ZEROS$1.size) parts.push(ZEROS$1.slice(0, Math.min(left, ZEROS$1.size)));
30259
30266
  at = patch.end;
30260
30267
  }
30261
30268
  if (at < source.size) parts.push(source.slice(at));
@@ -30264,9 +30271,9 @@ async function withoutVideoMetadata(source, mime) {
30264
30271
  /**
30265
30272
  * What `withoutVideoMetadata` changes in a video read from `source` (one not held in a Blob: a file kept in storage):
30266
30273
  * the parts replaced, in order and apart, the rest of its bytes going as they are; undefined when it goes as it is.
30267
- * Throws `NO_VIDEO_METADATA` as it does.
30274
+ * Throws `NO_VIDEO_METADATA` as it does. With `audio`, a movie without a video track (an M4A) is stripped too.
30268
30275
  */
30269
- async function videoMetadataPatches(file, mime) {
30276
+ async function videoMetadataPatches(file, mime, audio = false) {
30270
30277
  const source = readingAhead(file);
30271
30278
  const head = await source.read(0, VIDEO_METADATA_LIMITS.headBytes);
30272
30279
  const typed = STRIPPED_TYPES.has(mime.split(";")[0].trim().toLowerCase());
@@ -30282,7 +30289,7 @@ async function videoMetadataPatches(file, mime) {
30282
30289
  const dropped = [];
30283
30290
  let trailer = false;
30284
30291
  for (let at = 0; at < source.size;) {
30285
- check(top.length < VIDEO_METADATA_LIMITS.maxBoxes);
30292
+ check$1(top.length < VIDEO_METADATA_LIMITS.maxBoxes);
30286
30293
  const box = await headerAt(source, at);
30287
30294
  if (!box || top.length && box.type === "\0\0\0\0") {
30288
30295
  patches.push({
@@ -30300,13 +30307,13 @@ async function videoMetadataPatches(file, mime) {
30300
30307
  }
30301
30308
  const moovs = top.filter((box) => box.type === "moov");
30302
30309
  if (!moovs.length && container === "boxes" && !typed) {
30303
- check(!trailer && top.every((box) => TOP_KEEPS.has(box.type) || TOP_EMPTIED.has(box.type)));
30310
+ check$1(!trailer && top.every((box) => TOP_KEEPS.has(box.type) || TOP_EMPTIED.has(box.type)));
30304
30311
  return;
30305
30312
  }
30306
- check(moovs.length === 1);
30313
+ check$1(moovs.length === 1);
30307
30314
  const moov = await whole(source, moovs[0]);
30308
30315
  const { video, fragmented, metadata, zeroed, tables, captions } = stripMoov(moov);
30309
- if (!video && !typed) return void 0;
30316
+ if (!video && !typed && !audio) return void 0;
30310
30317
  patches.push({
30311
30318
  start: moovs[0].start,
30312
30319
  end: moovs[0].end,
@@ -30316,15 +30323,15 @@ async function videoMetadataPatches(file, mime) {
30316
30323
  const { chunks, offsetOf } = chunkOffsets(moov, stbl);
30317
30324
  for (let i = 0; i < chunks; i++) {
30318
30325
  const offset = offsetOf(i);
30319
- check(!meets(dropped, offset, offset + 1));
30326
+ check$1(!meets(dropped, offset, offset + 1));
30320
30327
  }
30321
30328
  }
30322
- check(!fragmented || !metadata);
30329
+ check$1(!fragmented || !metadata);
30323
30330
  const sizes = (dropped.length || captions.size) && fragmented ? defaultSampleSizes(moov) : void 0;
30324
30331
  for (const box of top) if (box.type === "moof") {
30325
30332
  const moof = await whole(source, box);
30326
30333
  if (dropped.length || captions.size) for (const [start, end, track] of fragmentRanges(moof, box.start, sizes ?? /* @__PURE__ */ new Map())) {
30327
- check(!meets(dropped, start, end));
30334
+ check$1(!meets(dropped, start, end));
30328
30335
  if (captions.has(track)) zeroed.push([start, end]);
30329
30336
  }
30330
30337
  emptyWithin(moof, box.body - box.start, moof.length);
@@ -30358,7 +30365,7 @@ async function videoMetadataPatches(file, mime) {
30358
30365
  const mdats = top.filter((box) => box.type === "mdat");
30359
30366
  const merged = [];
30360
30367
  for (const [start, end] of zeroed.sort((a, b) => a[0] - b[0])) {
30361
- check(mdats.some((mdat) => start >= mdat.body && end <= mdat.end));
30368
+ check$1(mdats.some((mdat) => start >= mdat.body && end <= mdat.end));
30362
30369
  const last = merged[merged.length - 1];
30363
30370
  if (last && start <= last[1]) last[1] = Math.max(last[1], end);
30364
30371
  else merged.push([start, end]);
@@ -30369,12 +30376,629 @@ async function videoMetadataPatches(file, mime) {
30369
30376
  });
30370
30377
  let at = 0;
30371
30378
  for (const patch of patches.sort((a, b) => a.start - b.start)) {
30372
- check(patch.start >= at);
30379
+ check$1(patch.start >= at);
30373
30380
  at = patch.end;
30374
30381
  }
30375
30382
  return patches;
30376
30383
  }
30377
30384
  //#endregion
30385
+ //#region ../core/src/audioMetadata.ts
30386
+ /**
30387
+ * What an audio file leaves with. A recording made in another app, or a song a tagger went through, says more than its
30388
+ * sound: a title or a file name that is where it was recorded (a phone's recorder names it after the place), a comment,
30389
+ * a location tag, a picture, the date. The sender removes them before the file is stored and its digest computed, as
30390
+ * pictures' and videos' are (pictureMetadata.ts, videoMetadata.ts), without decoding or re-encoding a sample, and the
30391
+ * file keeps its size, so no offset in it moves and it plays as it did:
30392
+ *
30393
+ * - MP4 audio (M4A, a voice note recorded in MP4): videoMetadata.ts's box walk, its `udta` and `meta` emptied.
30394
+ * - 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.
30396
+ * - FLAC: every metadata block but its stream info and seek table (a Vorbis comment, a picture, a cue sheet, an
30397
+ * 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).
30402
+ * - WebM and Matroska, audio or video: `Tags`, `Attachments`, `Chapters`, the title, the date, the file names and each
30403
+ * 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.
30405
+ *
30406
+ * Fail-closed: a file that is one of these by its bytes and whose tags cannot be removed (truncated, malformed) is
30407
+ * refused with `NO_AUDIO_METADATA`, never sent as it was. Any other file goes as it is (other audio formats too).
30408
+ */
30409
+ var AUDIO_METADATA_LIMITS = {
30410
+ /** The largest header, element or tag read whole (an Ogg comment header with a picture in it): past this the file is refused. */
30411
+ maxReadBytes: 67108864,
30412
+ /** The most pages, chunks, blocks or elements walked. */
30413
+ maxParts: 1e6,
30414
+ /** Bytes read first to tell an audio file from another file. */
30415
+ headBytes: 64
30416
+ };
30417
+ /** Why an audio file is refused: its tags could not be removed, so it does not go at all. */
30418
+ var NO_AUDIO_METADATA = "This audio cannot be sent: Ghostly could not remove the details saved in it, like where it was recorded";
30419
+ /** Zeros put in a Blob a slice at a time: a Blob's Blob parts are not copied, so a zeroed range of any size holds no more. */
30420
+ var ZEROS = new Blob([/* @__PURE__ */ new Uint8Array(1048576)]);
30421
+ var text = (b, at, length) => String.fromCharCode(...b.subarray(at, at + length));
30422
+ var u32le = (b, at) => (b[at] | b[at + 1] << 8 | b[at + 2] << 16 | b[at + 3] << 24) >>> 0;
30423
+ var syncsafe = (b, at) => b[at] << 21 | b[at + 1] << 14 | b[at + 2] << 7 | b[at + 3];
30424
+ var latin = (s) => Uint8Array.from(s, (c) => c.charCodeAt(0));
30425
+ /** Refuses the file where its bytes are not what this expects. */
30426
+ function check(ok) {
30427
+ if (!ok) throw new Error(NO_AUDIO_METADATA);
30428
+ }
30429
+ function exactly(source) {
30430
+ return async (offset, length) => {
30431
+ check(offset >= 0 && length >= 0 && length <= AUDIO_METADATA_LIMITS.maxReadBytes && offset + length <= source.size);
30432
+ const bytes = await source.read(offset, length);
30433
+ check(bytes.length === length);
30434
+ return bytes;
30435
+ };
30436
+ }
30437
+ /** Counts the parts walked, so a file of millions of tiny ones is refused rather than walked forever. */
30438
+ function counter() {
30439
+ let parts = 0;
30440
+ return () => check(++parts <= AUDIO_METADATA_LIMITS.maxParts);
30441
+ }
30442
+ /** An ID3v2 header at `at` of `b`: its version 2 to 4 and its size four 7-bit bytes, or none. */
30443
+ var isId3 = (b, at = 0) => b.length >= at + 10 && text(b, at, 3) === "ID3" && b[at + 3] >= 2 && b[at + 3] <= 4 && b[at + 4] !== 255 && [
30444
+ 6,
30445
+ 7,
30446
+ 8,
30447
+ 9
30448
+ ].every((i) => b[at + i] < 128);
30449
+ /**
30450
+ * The ID3v2 tag whose header is `head`, at `at`: made an empty one where it is, its frames (and an extended header)
30451
+ * zeros, which is its padding, its flags but the footer's cleared. Returns where it ends.
30452
+ */
30453
+ async function emptyId3(read, size, at, head, patches) {
30454
+ const body = syncsafe(head, 6), footer = head[3] === 4 && head[5] & 16 ? 10 : 0, end = at + 10 + body + footer;
30455
+ check(end <= size);
30456
+ const flags = Uint8Array.of(footer ? 16 : 0);
30457
+ patches.push({
30458
+ start: at + 5,
30459
+ end: at + 6,
30460
+ bytes: flags
30461
+ });
30462
+ if (body) patches.push({
30463
+ start: at + 10,
30464
+ end: at + 10 + body
30465
+ });
30466
+ if (footer) {
30467
+ check(text(await read(at + 10 + body, 3), 0, 3) === "3DI");
30468
+ patches.push({
30469
+ start: at + 10 + body + 5,
30470
+ end: at + 10 + body + 6,
30471
+ bytes: flags
30472
+ });
30473
+ }
30474
+ return end;
30475
+ }
30476
+ /**
30477
+ * The tags at the end of an MP3 or AAC file (after `start`): an ID3v1 (and its extended part), then any of an APEv2
30478
+ * tag, a Lyrics3v2 tag and an ID3v2 tag with a footer, in any order. Each found is emptied where it is.
30479
+ */
30480
+ async function trailingTags(read, size, start, patches) {
30481
+ let end = size;
30482
+ if (end - 128 >= start && text(await read(end - 128, 3), 0, 3) === "TAG") {
30483
+ patches.push({
30484
+ start: end - 125,
30485
+ end: end - 1
30486
+ }, {
30487
+ start: end - 1,
30488
+ end,
30489
+ bytes: Uint8Array.of(255)
30490
+ });
30491
+ end -= 128;
30492
+ if (end - 227 >= start && text(await read(end - 227, 4), 0, 4) === "TAG+") {
30493
+ patches.push({
30494
+ start: end - 223,
30495
+ end
30496
+ });
30497
+ end -= 227;
30498
+ }
30499
+ }
30500
+ const count = counter();
30501
+ for (;;) {
30502
+ count();
30503
+ if (end - 32 >= start) {
30504
+ const footer = await read(end - 32, 32);
30505
+ if (text(footer, 0, 8) === "APETAGEX") {
30506
+ const length = u32le(footer, 12), header = footer[23] & 128 ? 32 : 0, tagStart = end - length - header;
30507
+ check(length >= 32 && tagStart >= start);
30508
+ if (header) {
30509
+ check(text(await read(tagStart, 8), 0, 8) === "APETAGEX");
30510
+ patches.push({
30511
+ start: tagStart + 16,
30512
+ end: tagStart + 20
30513
+ });
30514
+ }
30515
+ if (length > 32) patches.push({
30516
+ start: tagStart + header,
30517
+ end: end - 32
30518
+ });
30519
+ patches.push({
30520
+ start: end - 16,
30521
+ end: end - 12
30522
+ });
30523
+ end = tagStart;
30524
+ continue;
30525
+ }
30526
+ }
30527
+ if (end - 15 >= start) {
30528
+ const footer = await read(end - 15, 15);
30529
+ if (text(footer, 6, 9) === "LYRICS200") {
30530
+ const length = /^\d{6}$/.test(text(footer, 0, 6)) ? Number(text(footer, 0, 6)) : -1, tagStart = end - 15 - length;
30531
+ check(length >= 11 && tagStart >= start && text(await read(tagStart, 11), 0, 11) === "LYRICSBEGIN");
30532
+ if (length > 11) patches.push({
30533
+ start: tagStart + 11,
30534
+ end: end - 15
30535
+ });
30536
+ end = tagStart;
30537
+ continue;
30538
+ }
30539
+ }
30540
+ if (end - 10 >= start) {
30541
+ const footer = await read(end - 10, 10);
30542
+ if (text(footer, 0, 3) === "3DI") {
30543
+ check([
30544
+ 6,
30545
+ 7,
30546
+ 8,
30547
+ 9
30548
+ ].every((i) => footer[i] < 128));
30549
+ const tagStart = end - 20 - syncsafe(footer, 6);
30550
+ check(tagStart >= start);
30551
+ const head = await read(tagStart, 10);
30552
+ check(isId3(head));
30553
+ check(await emptyId3(read, size, tagStart, head, patches) === end);
30554
+ end = tagStart;
30555
+ continue;
30556
+ }
30557
+ }
30558
+ return;
30559
+ }
30560
+ }
30561
+ /** An MPEG audio frame's or an ADTS header's first bytes: 11 bits set, a version and a layer that are some. */
30562
+ var isFrame = (b, at) => b.length >= at + 2 && b[at] === 255 && (b[at + 1] & 224) === 224 && (b[at + 1] & 24) !== 8;
30563
+ var FLAC_KEEPS = /* @__PURE__ */ new Set([0, 3]);
30564
+ /** A FLAC's metadata blocks from `at` (its `fLaC`): all but its stream info and seek table become padding, zeroed. */
30565
+ async function flac(read, size, at, patches) {
30566
+ const count = counter();
30567
+ for (at += 4;;) {
30568
+ count();
30569
+ const head = await read(at, 4);
30570
+ const last = head[0] & 128, type = head[0] & 127, end = at + 4 + (head[1] << 16 | head[2] << 8 | head[3]);
30571
+ check(type !== 127 && end <= size);
30572
+ if (!FLAC_KEEPS.has(type)) {
30573
+ if (type !== 1) patches.push({
30574
+ start: at,
30575
+ end: at + 1,
30576
+ bytes: Uint8Array.of(last | 1)
30577
+ });
30578
+ if (end > at + 4) patches.push({
30579
+ start: at + 4,
30580
+ end
30581
+ });
30582
+ }
30583
+ at = end;
30584
+ if (last) return at;
30585
+ }
30586
+ }
30587
+ var OGG_CRC = (() => {
30588
+ const table = /* @__PURE__ */ new Uint32Array(256);
30589
+ for (let i = 0; i < 256; i++) {
30590
+ let crc = i << 24;
30591
+ for (let bit = 0; bit < 8; bit++) crc = crc & 2147483648 ? crc << 1 ^ 79764919 : crc << 1;
30592
+ table[i] = crc >>> 0;
30593
+ }
30594
+ return table;
30595
+ })();
30596
+ /** Ogg's page checksum, over the page with its checksum's four bytes zeroed. */
30597
+ function oggCrc(page) {
30598
+ let crc = 0;
30599
+ for (let i = 0; i < page.length; i++) crc = (crc << 8 ^ OGG_CRC[(crc >>> 24 ^ (i >= 22 && i < 26 ? 0 : page[i])) & 255]) >>> 0;
30600
+ return crc;
30601
+ }
30602
+ /**
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
+ * 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.
30626
+ */
30627
+ function noComments(packet, codec) {
30628
+ const magic = codec.comments.length;
30629
+ check(text(packet, 0, magic) === codec.comments && packet.length >= magic + 4);
30630
+ const count = magic + 4 + u32le(packet, magic);
30631
+ check(count + 4 + (codec.framing ? 1 : 0) <= packet.length);
30632
+ const out = new Uint8Array(packet.length);
30633
+ out.set(packet.subarray(0, count));
30634
+ if (codec.framing) out[count + 4] = 1;
30635
+ return out;
30636
+ }
30637
+ /**
30638
+ * An Ogg file's pages walked: each logical stream's comment header (a chained file has one per link) made one with no
30639
+ * comment where it is, across the pages it spans, and those pages' checksums made again.
30640
+ */
30641
+ async function ogg(read, size, patches) {
30642
+ const streams = /* @__PURE__ */ new Map();
30643
+ /** The bytes put in the pages changed, by where each page starts: by where they go in the file. */
30644
+ const pages = /* @__PURE__ */ new Map();
30645
+ const packetOf = async (ranges) => {
30646
+ const length = ranges.reduce((sum, [start, end]) => sum + end - start, 0);
30647
+ check(length <= AUDIO_METADATA_LIMITS.maxReadBytes);
30648
+ const packet = new Uint8Array(length);
30649
+ let at = 0;
30650
+ for (const [start, end] of ranges) {
30651
+ packet.set(await read(start, end - start), at);
30652
+ at += end - start;
30653
+ }
30654
+ return packet;
30655
+ };
30656
+ const count = counter();
30657
+ for (let at = 0; at < size;) {
30658
+ count();
30659
+ const head = await read(at, 27);
30660
+ check(text(head, 0, 4) === "OggS" && head[4] === 0);
30661
+ const lacing = await read(at + 27, head[26]);
30662
+ const end = at + 27 + lacing.length + lacing.reduce((sum, l) => sum + l, 0);
30663
+ check(end <= size);
30664
+ const serial = u32le(head, 14);
30665
+ if (head[5] & 2) streams.set(serial, {
30666
+ packet: 0,
30667
+ ranges: []
30668
+ });
30669
+ const stream = streams.get(serial);
30670
+ check(!!stream);
30671
+ let offset = at + 27 + lacing.length;
30672
+ for (const length of lacing) {
30673
+ if (stream.packet <= 1 && stream.codec !== null) stream.ranges.push([
30674
+ offset,
30675
+ offset + length,
30676
+ at
30677
+ ]);
30678
+ offset += length;
30679
+ if (length === 255) continue;
30680
+ if (stream.packet === 0) {
30681
+ const first = await packetOf(stream.ranges);
30682
+ 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);
30685
+ let from = 0;
30686
+ for (const [start, until, page] of stream.ranges) {
30687
+ if (!pages.has(page)) pages.set(page, []);
30688
+ pages.get(page).push([start, emptied.subarray(from, from + until - start)]);
30689
+ from += until - start;
30690
+ }
30691
+ }
30692
+ stream.packet++;
30693
+ stream.ranges = [];
30694
+ }
30695
+ at = end;
30696
+ }
30697
+ for (const stream of streams.values()) check(stream.codec === null || stream.packet > 1);
30698
+ for (const [start, changes] of pages) {
30699
+ const head = await read(start, 27), lacing = await read(start + 27, head[26]);
30700
+ const end = start + 27 + lacing.length + lacing.reduce((sum, l) => sum + l, 0);
30701
+ const page = (await read(start, end - start)).slice();
30702
+ for (const [where, bytes] of changes) page.set(bytes, where - start);
30703
+ const crc = oggCrc(page);
30704
+ page.set([
30705
+ crc & 255,
30706
+ crc >>> 8 & 255,
30707
+ crc >>> 16 & 255,
30708
+ crc >>> 24
30709
+ ], 22);
30710
+ patches.push({
30711
+ start,
30712
+ end,
30713
+ bytes: page
30714
+ });
30715
+ }
30716
+ }
30717
+ /** The chunks a WAV's sound is made of, kept; any other becomes `JUNK`. */
30718
+ var WAV_KEEPS = /* @__PURE__ */ new Set([
30719
+ "fmt ",
30720
+ "data",
30721
+ "fact",
30722
+ "cue ",
30723
+ "smpl",
30724
+ "inst"
30725
+ ]);
30726
+ var WAV_SPACE = /* @__PURE__ */ new Set([
30727
+ "JUNK",
30728
+ "junk",
30729
+ "PAD ",
30730
+ "FLLR"
30731
+ ]);
30732
+ async function wav(read, size, patches) {
30733
+ const count = counter();
30734
+ for (let at = 12; at + 8 <= size;) {
30735
+ count();
30736
+ 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);
30739
+ if (id === "data") end = length ? Math.min(end, size) : size;
30740
+ else check(at + 8 + length <= size);
30741
+ if (!WAV_KEEPS.has(id)) {
30742
+ if (!WAV_SPACE.has(id)) patches.push({
30743
+ start: at,
30744
+ end: at + 4,
30745
+ bytes: latin("JUNK")
30746
+ });
30747
+ if (length) patches.push({
30748
+ start: at + 8,
30749
+ end: at + 8 + length
30750
+ });
30751
+ }
30752
+ at = Math.min(end, size);
30753
+ }
30754
+ }
30755
+ var EBML_HEADER = 440786851;
30756
+ var SEGMENT$1 = 408125543;
30757
+ var CLUSTER = 524531317;
30758
+ var VOID = 236;
30759
+ var CRC32 = 191;
30760
+ var SEEK_HEAD = 290298740;
30761
+ var INFO = 357149030;
30762
+ var TRACKS = 374648427;
30763
+ /** What a segment's sound and pictures are made of, kept; any other top-level element (Tags, Attachments, Chapters) becomes Void. */
30764
+ var SEGMENT_KEEPS = /* @__PURE__ */ new Set([
30765
+ SEEK_HEAD,
30766
+ INFO,
30767
+ TRACKS,
30768
+ CLUSTER,
30769
+ 475249515
30770
+ ]);
30771
+ /** What a cluster holds: one of unknown size ends where an element that is none of these starts. */
30772
+ var CLUSTER_CHILDREN = /* @__PURE__ */ new Set([
30773
+ 231,
30774
+ 22612,
30775
+ 167,
30776
+ 171,
30777
+ 163,
30778
+ 160,
30779
+ 175,
30780
+ VOID,
30781
+ CRC32
30782
+ ]);
30783
+ /** What Info keeps: the timing, the segment's IDs; the muxer's and writing app's names, zeroed. Any other (a title, a date, file names) becomes Void. */
30784
+ var INFO_KEEPS = /* @__PURE__ */ new Set([
30785
+ 2807729,
30786
+ 17545,
30787
+ 29604,
30788
+ 17476,
30789
+ 3979555,
30790
+ 4110627,
30791
+ 26916
30792
+ ]);
30793
+ var INFO_ZEROED = /* @__PURE__ */ new Set([19840, 22337]);
30794
+ var TRACK_ENTRY = 174;
30795
+ var TRACK_NAME = 21358;
30796
+ var SEEK = 19899;
30797
+ var SEEK_ID = 21419;
30798
+ /** The element whose header is at `at` of `b` (`base` its offset in the file); one of unknown size ends at `limit`. */
30799
+ function element(b, at, limit, base = 0) {
30800
+ check(at < b.length);
30801
+ const idLength = Math.clz32(b[at]) - 23;
30802
+ check(idLength >= 1 && idLength <= 4 && at + idLength < b.length);
30803
+ let id = 0;
30804
+ for (let i = 0; i < idLength; i++) id = id * 256 + b[at + i];
30805
+ const sizeAt = at + idLength, sizeLength = Math.clz32(b[sizeAt]) - 23;
30806
+ check(sizeLength >= 1 && sizeLength <= 8 && sizeAt + sizeLength <= b.length);
30807
+ let size = b[sizeAt] & 255 >> sizeLength, ones = size === 255 >> sizeLength;
30808
+ for (let i = 1; i < sizeLength; i++) {
30809
+ size = size * 256 + b[sizeAt + i];
30810
+ ones &&= b[sizeAt + i] === 255;
30811
+ }
30812
+ const body = base + sizeAt + sizeLength;
30813
+ return {
30814
+ id,
30815
+ start: base + at,
30816
+ body,
30817
+ end: ones ? limit : body + size,
30818
+ unknown: ones
30819
+ };
30820
+ }
30821
+ /** An element's header read from the file at `at`. */
30822
+ async function elementAt(source, at, limit) {
30823
+ return element(await source.read(at, 12), 0, limit, at);
30824
+ }
30825
+ /** A Void element `length` bytes long: its ID, its size in as many bytes as it takes to fill it, the rest zeros. */
30826
+ function voidHeader(length) {
30827
+ for (let sizeLength = 1; sizeLength <= 8; sizeLength++) {
30828
+ const body = length - 1 - sizeLength;
30829
+ if (body < 0 || body >= 2 ** (7 * sizeLength) - 1) continue;
30830
+ const header = new Uint8Array(1 + sizeLength);
30831
+ header[0] = VOID;
30832
+ for (let i = sizeLength, rest = body; i >= 1; i--, rest = Math.floor(rest / 256)) header[i] = rest % 256;
30833
+ header[1] |= 128 >> sizeLength - 1;
30834
+ return header;
30835
+ }
30836
+ check(false);
30837
+ }
30838
+ /** `el` of `b` (read whole, `el`'s offsets in it) made Void where it is. */
30839
+ function voidIn(b, el) {
30840
+ const header = voidHeader(el.end - el.start);
30841
+ b.fill(0, el.start, el.end);
30842
+ b.set(header, el.start);
30843
+ }
30844
+ /** The children of `parent` (in `b`, read whole) as elements, each within it. */
30845
+ function childrenOf(b, parent) {
30846
+ const found = [];
30847
+ for (let at = parent.body; at < parent.end;) {
30848
+ const child = element(b.subarray(0, parent.end), at, parent.end);
30849
+ check(!child.unknown && child.end <= parent.end);
30850
+ found.push(child);
30851
+ at = child.end;
30852
+ }
30853
+ return found;
30854
+ }
30855
+ /**
30856
+ * 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.
30859
+ */
30860
+ function stripTopLevel(b) {
30861
+ const top = element(b, 0, b.length);
30862
+ check(!top.unknown && top.end === b.length);
30863
+ for (const child of childrenOf(b, top)) {
30864
+ if (child.id === CRC32) voidIn(b, child);
30865
+ else if (top.id === INFO) {
30866
+ if (INFO_ZEROED.has(child.id)) b.fill(0, child.body, child.end);
30867
+ else if (!INFO_KEEPS.has(child.id) && child.id !== VOID) voidIn(b, child);
30868
+ } 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);
30870
+ } else if (top.id === SEEK_HEAD && child.id === SEEK) {
30871
+ const target = childrenOf(b, child).find((part) => part.id === SEEK_ID);
30872
+ let id = 0;
30873
+ if (target) for (let i = target.body; i < target.end; i++) id = id * 256 + b[i];
30874
+ if (!SEGMENT_KEEPS.has(id)) voidIn(b, child);
30875
+ }
30876
+ if (child.id === VOID) b.fill(0, child.body, child.end);
30877
+ }
30878
+ }
30879
+ /** Where a cluster of unknown size ends: at the first element that is not a cluster's, or the segment's end. */
30880
+ async function clusterEnd(source, at, limit, count) {
30881
+ for (;;) {
30882
+ count();
30883
+ if (at >= limit) return limit;
30884
+ const child = await elementAt(source, at, limit);
30885
+ if (!CLUSTER_CHILDREN.has(child.id)) return at;
30886
+ check(!child.unknown);
30887
+ if (child.end >= limit) return limit;
30888
+ at = child.end;
30889
+ }
30890
+ }
30891
+ async function matroska(source, read, patches) {
30892
+ const count = counter();
30893
+ const toVoid = (el) => {
30894
+ const header = voidHeader(el.end - el.start);
30895
+ patches.push({
30896
+ start: el.start,
30897
+ end: el.start + header.length,
30898
+ bytes: header
30899
+ });
30900
+ if (el.end > el.start + header.length) patches.push({
30901
+ start: el.start + header.length,
30902
+ end: el.end
30903
+ });
30904
+ };
30905
+ for (let at = 0; at < source.size;) {
30906
+ count();
30907
+ const top = await elementAt(source, at, source.size);
30908
+ check(top.end <= source.size);
30909
+ if (top.id === EBML_HEADER) check(!top.unknown);
30910
+ else if (top.id === VOID) {
30911
+ if (top.end > top.body) patches.push({
30912
+ start: top.body,
30913
+ end: top.end
30914
+ });
30915
+ } else if (top.id !== SEGMENT$1) {
30916
+ check(!top.unknown);
30917
+ toVoid(top);
30918
+ } else for (let in_ = top.body; in_ < top.end;) {
30919
+ count();
30920
+ const el = await elementAt(source, in_, top.end);
30921
+ if (el.id === CLUSTER) {
30922
+ in_ = el.unknown ? await clusterEnd(source, el.body, top.end, count) : Math.min(el.end, top.end);
30923
+ continue;
30924
+ }
30925
+ check(!el.unknown && el.end <= top.end);
30926
+ if (el.id === INFO || el.id === TRACKS || el.id === SEEK_HEAD) {
30927
+ const bytes = (await read(el.start, el.end - el.start)).slice();
30928
+ stripTopLevel(bytes);
30929
+ patches.push({
30930
+ start: el.start,
30931
+ end: el.end,
30932
+ bytes
30933
+ });
30934
+ } else if (el.id === VOID) {
30935
+ if (el.end > el.body) patches.push({
30936
+ start: el.body,
30937
+ end: el.end
30938
+ });
30939
+ } else if (!SEGMENT_KEEPS.has(el.id)) toVoid(el);
30940
+ in_ = el.end;
30941
+ }
30942
+ at = top.end;
30943
+ }
30944
+ }
30945
+ /**
30946
+ * What `withoutAudioMetadata` changes in an audio file read from `source` (one not held in a Blob: a file kept in
30947
+ * storage): the parts replaced, in order and apart, the rest of its bytes going as they are; undefined when it goes as
30948
+ * it is. Throws `NO_AUDIO_METADATA` for one whose tags cannot be removed; an error reading `source` as it is.
30949
+ */
30950
+ async function audioMetadataPatches(file, mime) {
30951
+ const source = readingAhead(file), read = exactly(source), size = source.size;
30952
+ const head = await source.read(0, Math.min(AUDIO_METADATA_LIMITS.headBytes, size));
30953
+ const patches = [];
30954
+ if (head.length >= 8 && text(head, 4, 4) === "ftyp") try {
30955
+ return await videoMetadataPatches(file, mime, true);
30956
+ } catch (error) {
30957
+ if (error instanceof Error && error.message === "This video cannot be sent: Ghostly could not remove the details saved in it, like where it was recorded") throw Object.assign(/* @__PURE__ */ new Error(NO_AUDIO_METADATA), { cause: error });
30958
+ throw error;
30959
+ }
30960
+ 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);
30962
+ else if (text(head, 0, 4) === "Eߣ") await matroska(source, read, patches);
30963
+ else if (text(head, 0, 4) === "fLaC") await trailingTags(read, size, await flac(read, size, 0, patches), patches);
30964
+ else if (isId3(head) || isFrame(head, 0)) {
30965
+ let at = 0;
30966
+ const count = counter();
30967
+ for (let next = head; isId3(next); next = at + 10 <= size ? await read(at, 10) : /* @__PURE__ */ new Uint8Array(0)) {
30968
+ count();
30969
+ at = await emptyId3(read, size, at, next, patches);
30970
+ }
30971
+ if (at + 4 <= size && text(await read(at, 4), 0, 4) === "fLaC") at = await flac(read, size, at, patches);
30972
+ await trailingTags(read, size, at, patches);
30973
+ } else return void 0;
30974
+ if (!patches.length) return void 0;
30975
+ patches.sort((a, b) => a.start - b.start);
30976
+ for (let i = 1; i < patches.length; i++) check(patches[i].start >= patches[i - 1].end);
30977
+ return patches;
30978
+ }
30979
+ /**
30980
+ * `source` as it is sent: an audio file without its tags, made of `source`'s own bytes but for the parts emptied;
30981
+ * undefined when it goes as it is (not one of these, or one with nothing to remove). Throws `NO_AUDIO_METADATA` for
30982
+ * one whose tags cannot be removed; an error reading `source` as it is.
30983
+ */
30984
+ async function withoutAudioMetadata(source, mime) {
30985
+ const patches = await audioMetadataPatches({
30986
+ size: source.size,
30987
+ read: async (offset, length) => new Uint8Array(await source.slice(offset, offset + length).arrayBuffer())
30988
+ }, mime);
30989
+ if (!patches) return void 0;
30990
+ const parts = [];
30991
+ let at = 0;
30992
+ for (const patch of patches) {
30993
+ if (patch.start > at) parts.push(source.slice(at, patch.start));
30994
+ if (patch.bytes) parts.push(patch.bytes);
30995
+ else for (let left = patch.end - patch.start; left > 0; left -= ZEROS.size) parts.push(ZEROS.slice(0, Math.min(left, ZEROS.size)));
30996
+ at = patch.end;
30997
+ }
30998
+ if (at < source.size) parts.push(source.slice(at));
30999
+ return new Blob(parts, { type: mime });
31000
+ }
31001
+ //#endregion
30378
31002
  //#region ../core/src/payments.ts
30379
31003
  /**
30380
31004
  * Payments between two linked peers. Ghostly does not move money itself: it
@@ -35014,8 +35638,8 @@ var GroupSession = class {
35014
35638
  messagePace = /* @__PURE__ */ new Map();
35015
35639
  editPace = /* @__PURE__ */ new Map();
35016
35640
  queue = Promise.resolve();
35017
- /** One metadata frame that names a commit or an epoch I do not have yet: tried again when the chain moves. */
35018
- pendingMeta;
35641
+ /** Metadata frames that name a commit or an epoch I do not have yet, one signed by the admin and one by anyone else (`waitMeta`): tried again when the chain moves. */
35642
+ pendingMeta = {};
35019
35643
  /** While `handle` runs: the frames it took that a hub passes on (`handle`'s result). */
35020
35644
  passOn = null;
35021
35645
  /** The frames kept to hand on that the app holds with its messages, oldest first; undefined when the state holds them all. */
@@ -37099,22 +37723,14 @@ var GroupSession = class {
37099
37723
  const s = frame.statement;
37100
37724
  if (!groupMetaNewer(s, this.state.meta)) return;
37101
37725
  if (s.e > this.epoch || frame.k > this.epoch) {
37102
- this.pendingMeta = {
37103
- from,
37104
- frame: raw
37105
- };
37106
- this.ask(from);
37726
+ this.waitMeta(from, raw, s);
37107
37727
  return;
37108
37728
  }
37109
37729
  const commit = this.state.chain[s.e];
37110
37730
  if (commitHash(commit) !== s.h || rosterAdmin(commit.m) !== s.by || this.admin !== s.by || !verifyGroupMetaSignature(s)) return;
37111
37731
  const secret = this.secret(frame.k);
37112
37732
  if (!secret) {
37113
- this.pendingMeta = {
37114
- from,
37115
- frame: raw
37116
- };
37117
- this.ask(from);
37733
+ this.waitMeta(from, raw, s);
37118
37734
  return;
37119
37735
  }
37120
37736
  const opened = openGroupMeta(frame, epochKeys(secret, this.id, frame.k).message);
@@ -37135,6 +37751,21 @@ var GroupSession = class {
37135
37751
  });
37136
37752
  }
37137
37753
  /**
37754
+ * A statement that waits for the chain: only one its signer signed, so an altered copy cannot push out the one
37755
+ * waiting. The admin I know has a place of their own, which another member's statement cannot take, and in each
37756
+ * place only a later statement takes the one waiting.
37757
+ */
37758
+ waitMeta(from, raw, s) {
37759
+ if (!verifyGroupMetaSignature(s)) return;
37760
+ const place = s.by === this.admin ? "admin" : "other", waiting = this.pendingMeta[place];
37761
+ if (!waiting || groupMetaNewer(s, waiting.s)) this.pendingMeta[place] = {
37762
+ from,
37763
+ frame: raw,
37764
+ s
37765
+ };
37766
+ this.ask(from);
37767
+ }
37768
+ /**
37138
37769
  * Who made the change a statement brings me: its signer, when they were the admin all along since the statement I
37139
37770
  * held (or, with none, since I got in). A new admin signs again what the last one set (`metaFollowsChain`): to a
37140
37771
  * member that missed that, it is no change of theirs it can tell apart, so nobody is named. With none held, theirs is
@@ -37151,9 +37782,9 @@ var GroupSession = class {
37151
37782
  }
37152
37783
  /** After the chain or my secrets moved: the waiting statement, and, if I became the admin, the name and picture signed again as mine. */
37153
37784
  async metaFollowsChain() {
37154
- const pending = this.pendingMeta;
37155
- this.pendingMeta = void 0;
37156
- if (pending) await this.receiveMeta(pending.from, pending.frame);
37785
+ const { admin, other } = this.pendingMeta;
37786
+ this.pendingMeta = {};
37787
+ for (const pending of [admin, other]) if (pending) await this.receiveMeta(pending.from, pending.frame);
37157
37788
  if (this.isAdmin && this.state.meta && this.state.meta.by !== this.myKey) await this.publishMeta(this.state.meta.body, this.state.meta.ts, true);
37158
37789
  }
37159
37790
  async fork(reason) {
@@ -37991,8 +38622,8 @@ var CommunitySession = class CommunitySession {
37991
38622
  /** My frames said again in this run (`e:h16:n`) → the id of the message they first were. In memory only. */
37992
38623
  resealedFrom = /* @__PURE__ */ new Map();
37993
38624
  saveTimer;
37994
- /** One metadata frame naming a commit or a secret I do not have yet: tried again when the chain or my secrets move. */
37995
- pendingMeta;
38625
+ /** Metadata frames naming a commit or a secret I do not have yet, one signed by the admin and one by anyone else (`waitMeta`): tried again when the chain or my secrets move. */
38626
+ pendingMeta = {};
37996
38627
  /** The store's frames the app holds with their messages (`storeKey` → message id): in memory here, not in what is saved. */
37997
38628
  onRows = /* @__PURE__ */ new Map();
37998
38629
  /** The oldest epoch whose seen marks are kept, as of the last `pruneSeen`. In memory only. */
@@ -40550,23 +41181,13 @@ var CommunitySession = class CommunitySession {
40550
41181
  if (!groupMetaNewer(s, this.state.meta)) return false;
40551
41182
  const at = this.mainIndex.get(s.h);
40552
41183
  if (at === void 0) {
40553
- if (s.e >= this.epoch - COMMUNITY_LIMITS.window) {
40554
- this.pendingMeta = {
40555
- from,
40556
- frame: raw
40557
- };
40558
- this.ask(from);
40559
- }
41184
+ if (s.e >= this.epoch - COMMUNITY_LIMITS.window) this.waitMeta(from, raw, s);
40560
41185
  return false;
40561
41186
  }
40562
41187
  if (at !== s.e || rosterAdmin(this.rosterAt(s.h) ?? []) !== s.by || this.admin !== s.by || !verifyGroupMetaSignature(s)) return false;
40563
41188
  const secret = this.state.secrets[frame.k], sealedUnder = this.known.get(frame.k);
40564
41189
  if (!secret || !sealedUnder) {
40565
- this.pendingMeta = {
40566
- from,
40567
- frame: raw
40568
- };
40569
- this.ask(from);
41190
+ this.waitMeta(from, raw, s);
40570
41191
  return false;
40571
41192
  }
40572
41193
  const opened = openGroupMeta(frame, epochKeys(fromBase64Url(secret), this.id, sealedUnder.e).message);
@@ -40581,6 +41202,21 @@ var CommunitySession = class CommunitySession {
40581
41202
  return true;
40582
41203
  }
40583
41204
  /**
41205
+ * A statement that waits for the chain: only one its signer signed, so an altered copy cannot push out the one
41206
+ * waiting. The admin I know has a place of their own, which another member's statement cannot take, and in each
41207
+ * place only a later statement takes the one waiting.
41208
+ */
41209
+ waitMeta(from, raw, s) {
41210
+ if (!verifyGroupMetaSignature(s)) return;
41211
+ const place = s.by === this.admin ? "admin" : "other", waiting = this.pendingMeta[place];
41212
+ if (!waiting || groupMetaNewer(s, waiting.s)) this.pendingMeta[place] = {
41213
+ from,
41214
+ frame: raw,
41215
+ s
41216
+ };
41217
+ this.ask(from);
41218
+ }
41219
+ /**
40584
41220
  * Who made the change a statement brings me (`at`: its commit's place on my main branch): its signer, when they were
40585
41221
  * the admin all along since the statement I held (or, with none, since I got in). A new admin signs again what the
40586
41222
  * last one set (`metaFollowsChain`): to a member that missed that, it is no change of theirs it can tell apart. With
@@ -40605,9 +41241,9 @@ var CommunitySession = class CommunitySession {
40605
41241
  * went with a branch that lost a fork, the name and picture signed again as mine under the main branch.
40606
41242
  */
40607
41243
  async metaFollowsChain() {
40608
- const pending = this.pendingMeta;
40609
- this.pendingMeta = void 0;
40610
- if (pending && await this.receiveMeta(pending.from, pending.frame)) this.hooks.relay?.(pending.frame);
41244
+ const { admin, other } = this.pendingMeta;
41245
+ this.pendingMeta = {};
41246
+ for (const pending of [admin, other]) if (pending && await this.receiveMeta(pending.from, pending.frame)) this.hooks.relay?.(pending.frame);
40611
41247
  const meta = this.state.meta;
40612
41248
  if (this.isAdmin && meta && (meta.by !== this.myKey || !this.mainIndex.has(meta.h))) await this.publishMeta(meta.body, meta.ts, true);
40613
41249
  }
@@ -41903,6 +42539,6 @@ function x401ApprovalDigest(subject) {
41903
42539
  return toBase64Url(sha256(utf8Encode(canonical)));
41904
42540
  }
41905
42541
  //#endregion
41906
- export { COMMUNITY_LIMITS as $, turnInstance as $C, DEVICES_CAPABILITY as $S, toBase64 as $T, compressSdp as $_, DEMOTE_AFTER_FAILURES as $a, STAMP_BITS_MAX as $b, WAKE_ONLINE_BATCH as $c, RELAY_WITH_SECRETS as $d, dhtFileId as $f, presenceSeenAt as $g, RATCHET_CAPABILITY as $h, isSparkAddress as $i, appDataBytes as $l, cardTimeUtc as $m, MessageRefusal as $n, GROUP_VERSION_SIGNALS as $o, linkStop as $p, DidError as $r, STATUS_AVAILABILITIES as $s, GROUP_EDIT_TEXT_BYTES as $t, IDENTITY_MAX_RECEIVED as $u, HANDOFF_VERIFIED as $v, RelayBreaker as $w, isAppLine as $x, readSetUpdate as $y, readX401ProofResponseHeader as A, TURN_BODY_BYTES as AC, createDeviceInvite as AS, encrypt as AT, decodeControl as A_, findBolt11 as Aa, clearMissed as Ab, typingFrame as Ac, STORAGE_ROOT as Ad, encodeDnsQuery as Af, DAEMON_WATCH_PEER_IDLE_MS as Ag, rosterAdmin as Ah, jwkThumbprint as Ai, APP_RANGE_LIMITS as Al, groupReplyAuthor as Am, parseGroupMetaBody as An, parsePaymentNetworks as Ao, EDIT_BUFFER_MAX as Ap, parseAtprotoDidDocument as Ar, readBeacon as As, knockRecords as At, SESSION_RECEIVE_PENDING as Au, viewerTag as Av, PREVIOUS_DEFAULT_RELAYS as Aw, assembleAppBundle as Ax, handoffVersions as Ay, APP_STORE_KINDS as B, TURN_TTL as BC, OwnInviteError as BS, hasVisible as BT, extractRtcParams as B_, videoMetadataPatches as Ba, ContactRequestError as Bb, parsePinFrame as Bc, storageProofPath as Bd, wellKnownUrl as Bf, OFFER_STEP_MAX as Bg, decryptText as Bh, TEST_USDT_FAUCET_AMOUNT as Bi, isServeId as Bl, PR_CHECKS as Bm, SSH_PUBLIC_KEY_MAX as Bn, GROUP_VERSION_FILES as Bo, dhtEditId as Bp, parseAtprotoDidKey as Br, parsePairedCallFrame as Bs, groupWakes as Bt, capsDescriptors as Bu, HANDOFF_FILE_REQUEST as Bv, WATCH_SHARE as Bw, sha256Paced as Bx, readHandoffHave as By, buildX401TokenObject as C, TURN_SETTLE_MS as CC, CONTACT_LINK_VERSION as CS, createIdentity as CT, withViewerPolicy as C_, parseInvoiceCallback as Ca, verifyEnrollProof as Cb, TypingReceiver as Cc, IDENTITY_TIMELINE_MAX as Cd, DOMAIN_TXT_MAX_BYTES as Cf, DIRECT_EVIDENCE_MS as Cg, OWN_FRAME_LIMIT as Ch, decodeDidDhtPacket as Ci, generateVapidKeys as Cl, readDhtReactions as Cm, groupMetaPicture as Cn, SWITCH_RETIRE_MS as Co, PLAYABLE_VIDEO as Cp, ATPROTO_PROOF_SCOPE as Cr, lobbyKeys as Cs, KNOCK_TTL_MS as Ct, UPGRADE_CAPABILITY as Cu, decodeServices as Cv, GROUP_BURST_MS as Cw, APP_FORBIDDEN_KEYS as Cx, handoffPakeFrame as Cy, readX401ProofRequest as D, turnPutSummary as DC, DEVICE_INVITE_BYTES as DS, sign as DT, MAX_CHUNK_PAYLOAD_BYTES as D_, resolveLightningDestination as Da, MAX_WAITING as Db, plainStatusLine as Dc, PROOF_CAPABILITY as Dd, dnsProofName as Df, directBlocked as Dg, expectedRoster as Dh, didDhtRecords as Di, APP_RANGE_DATA_KIND as Dl, PAIRED_REPLY_AUTHORS as Dm, keepPastGroupMeta as Dn, pairedEditFits as Do, isVideoMime as Dp, checkAtprotoProofRecord as Dr, newerHead as Ds, entryParams as Dt, PAIRED_PROFILE as Du, serviceIdFromName as Dv, GROUP_SIGNALING_ALLOWANCE_SHARE as Dw, APP_VIEWS as Dx, handoffStreamKey as Dy, isX401Protocol as E, keptAtEqualSequence as EC, readContactLink as ES, publicKeyFromZ32 as ET, LIMITS as E_, requestLnurlInvoice as Ea, MAX_MISSED as Eb, parseTypingFrame as Ec, PROOF_ADAPTERS as Ed, decodeDnsResponse as Ef, DirectPathWatch as Eg, commitUntaggedHash as Eh, didDhtKey as Ei, vapidKeysMatch as El, wireReaction as Em, groupName as En, WAKE_LOST_MS as Eo, isPlayableVideoType as Ep, atprotoProofRkey as Er, mergeLobby as Es, encodeGroupEntryLink as Et, sessionCapabilitiesFrame as Eu, isViewerTag as Ev, GROUP_RATION_WINDOW_MS as Ew, APP_SCREENSHOTS_DIR as Ex, handoffRetryAfter as Ey, appRevocationFor as F, TURN_NO_ACTIVE as FC, DEVICE_INVITE_VERSION as FS, MAX_AVATAR_SIDE as FT, DATA_CHANNEL_ID as F_, isFederationId as Fa, settleRequest as Fb, PIN_CLOCK_SKEW_MS as Fc, proofCapability as Fd, recordsFromTxt as Ff, IDLE_THRESHOLD as Fg, verifyCommit as Fh, EVM_TEST_CHAINS as Fi, appRangeEndFrame as Fl, ACTIVE_TASK_STATUSES as Fm, verifyGroupMetaSignature as Fn, engineText as Fo, EDIT_SEND_LIMIT as Fp, decodeAtprotoCommit as Fr, CALL_RATE_WINDOW_MS as Fs, GROUP_WAKE_GROUP_WINDOW_MS as Ft, CAPS_REFRESH_MS as Fu, HANDOFF_CANCEL as Fv, SIGNALING_ALLOWANCE_SHARE as Fw, isAppPath as Fx, readHandoffBusy as Fy, readAppStore as G, nextTurnPosition as GC, encodeInviteCode as GS, unwrapPasted as GT, CALL_SIGNAL_MAX_AGE_MS as G_, stripPictureMetadata as Ga, MAX_SLOT_KNOCKS as Gb, pinnedFrame as Gc, ringAuthorization as Gd, DHT_TEXT_BYTES as Gf, SIGNAL_OUT_READS as Gg, openPair as Gh, assertWholeSats as Gi, APP_PEER_OPEN_MAX as Gl, STATUS_CARD_LIMITS as Gm, sshFingerprint as Gn, isGroupMessageId as Go, validEditMessage as Gp, verifyAtprotoSignature as Gr, FileUplink as Gs, GROUP_READ_NOTE as Gt, IDENTITY_CHALLENGE_WINDOW as Gu, HANDOFF_MANIFEST as Gv, readRelayBody as Gw, appFingerprint as Gx, readHandoffTurnFrame as Gy, checkAppListing as H, TurnRecordError as HC, createLink as HS, sanitizeNick as HT, parseRtcSignal as H_, NO_PICTURE_METADATA as Ha, KNOCK_SLOT_LABEL as Hb, pinFrame as Hc, verifyNostrProof as Hd, DHT_FILE_REFUSED as Hf, PRESENCE_WINDOW as Hg, encryptText as Hh, WALLET_NETWORKS as Hi, readAppRangeFrame as Hl, REMOVABLE_KINDS as Hm, parseSshPublicKey as Hn, GROUP_WANT_NO_FRAME as Ho, editedFrame as Hp, readAtprotoCid as Hr, FILE_DATA_KIND as Hs, parseGroupWakeFrame as Ht, emptyCapsState as Hu, HANDOFF_HELLO as Hv, WRITE_FIRST_MS as Hw, APP_NAME as Hx, readHandoffManifest as Hy, appStoreDecision as I, TURN_REV_LIMIT as IC, INVITE_HRP as IS, jpegSize$1 as IT, DATA_CHANNEL_LABEL as I_, parseCashuRequestPayload as Ia, takeRequest as Ib, PIN_FRAME as Ic, proofHash as Id, recordsFromWellKnown as If, LinkSession as Ig, verifyCommitSignature as Ih, ONCHAIN_PROVIDER as Ii, appRangeErrorFrame as Il, BUTTON_ID as Im, wrapGroupMeta as In, parseEngineError as Io, MAX_EDITS_PER_MESSAGE as Ip, decodeDagCbor as Ir, CALL_RECEIVE_LIMIT as Is, GROUP_WAKE_MEMBER_INTERVAL_MS as It, CapsExchange as Iu, HANDOFF_CANCEL_REASONS as Iv, SIGNALING_WINDOW_MS as Iw, isAppUrl as Ix, readHandoffCancel as Iy, GROUP_TYPING_FRAME as J, readTurnPacket as JC, inviteQrSegments as JS, fromBase64 as JT, RTC_CONFIG as J_, ANSWERS_REFUSED_PAUSE_MS as Ja, REQUEST_LIFETIME_MS as Jb, WAKE_CALL_INTERVAL_MS as Jc, validRingKey as Jd, LIVE_POLL_MS as Jf, UNUSED_INVITE_READS_PER_MINUTE as Jg, sealSecret as Jh, parsePaymentAmount as Ji, APP_RESUME_GRACE_MS as Jl, appCardUrl as Jm, verifySshSignature as Jn, readGroupWant as Jo, LINK_MAX_CHARS as Jp, DID_GHOSTLY_SERVICE as Jr, refusalText as Js, chainPieces as Jt, IDENTITY_FRAME_LIMIT as Ju, HANDOFF_PIECE_BYTES as Jv, traceLink as Jw, appRevocationId as Jx, sealHandoffPiece as Jy, readAppStoreSteps as K, openTurnValue as KC, inviteLink as KS, bytesEqual as KT, PAIRED_CALL_CANDIDATES as K_, withoutPictureMetadata as Ka, REQUEST_CLOCK_SKEW_MS as Kb, readPin as Kc, ringClaims as Kd, DHT_TEXT_REFUSED as Kf, STALLED_LOOK_MS as Kg, openSecret as Kh, formatPaymentAmount as Ki, APP_RATE_LIMIT as Kl, TASK_STATUSES as Km, sshKeyDigestHex as Kn, readGroupFileMeta as Ko, validEditNumber as Kp, DID_DOCUMENT_MAX_BYTES as Kr, decodeFileData as Ks, GroupSession as Kt, IDENTITY_CHECK_UNAVAILABLE as Ku, HANDOFF_OFFER as Kv, relayUrlProblem as Kw, appRef as Kx, readHandoffVerified as Ky, appUpdateDecision as L, TURN_SEALED_BYTES as LC, INVITE_LINK_ORIGIN as LS, sanitizeAvatar as LT, RTC_SIGNAL_FUTURE_MS as L_, parseFedimintRequestPayload as La, turnOff as Lb, PIN_LIMITS as Lc, proofStatement as Ld, recordsName as Lf, MAX_DHT_TEXT_BYTES as Lg, GROUP_PROFILE as Lh, PaymentPreflightError as Li, appRangeGetFrame as Ll, BUTTON_STYLES as Lm, SSHSIG_MAX_ARMOR as Ln, PairingTracker as Lo, MAX_REMOVAL_NUMBER as Lp, encodeDagCbor as Lr, MAX_PAIRED_CALL_SIGNAL as Ls, GROUP_WAKE_RECEIVE_LIMIT as Lt, CapsKeys as Lu, HANDOFF_DATA as Lv, SLOW_DEMOTE_MS as Lw, pacer as Lx, readHandoffData as Ly, readX401ProofResultHeader as M, TURN_LAST_SEQUENCE as MC, deviceInviteJoinerParams as MS, sealedLength as MT, encodeControl as M_, cashuRequestPayload as Ma, inboxRecord as Mb, COMMUNITY_PIN_FRAME as Mc, importedProof as Md, nip05RootKey as Mf, DHT_POLL_INTERVALS as Mg, signCommit as Mh, resolveDidDht as Mi, appRangeCancelFrame as Ml, readReply as Mm, parseGroupMetaStatement as Mn, ENGINE_ERRORS as Mo, EDIT_FRAME as Mp, AtprotoCid as Mr, readLobby as Ms, readKnocks as Mt, CAPS_LABEL as Mu, HANDOFF_ATTEMPTS as Mv, REQUESTS_PER_MINUTE as Mw, checkAppManifest as Mx, newHandoffId as My, x401AnswerableRequests as N, TURN_MAX as NC, encodeDeviceInvite as NS, tryDecrypt as NT, sendBody as N_, fedimintRequestPayload as Na, newInbox as Nb, GROUP_PIN_FRAME as Nc, isProofAdapter as Nd, normalizeDomain as Nf, EXPECT_PEER_MS as Ng, sortRoster as Nh, signDidDhtPacket as Ni, appRangeChunk as Nl, replySnippet as Nm, parseGroupMetaTag as Nn, EngineError as No, EDIT_RATE_WINDOW_MS as Np, AtprotoProofError as Nr, shouldBeHub as Ns, GROUP_WAKE_FRAME as Nt, CAPS_LIMITS as Nu, HANDOFF_BUSY as Nv, RelayTransport as Nw, findAppForbiddenKey as Nx, openHandoffPiece as Ny, readX401ProofRequestHeader as O, TOMBSTONE_SEQUENCE as OC, DEVICE_INVITE_LIFETIME_S as OS, verify as OT, PROTOCOL_VERSION as O_, BOLT11_PATTERN as Oa, NEW_PER_HOUR as Ob, sanitizeTypingStatus as Oc, PeerProofs as Od, domainTxtRecord as Of, symmetricNat as Og, parseGroupCommit as Oh, encodeDidDhtDeactivated as Oi, APP_RANGE_ERRORS as Ol, REPLY_ID as Om, nextGroupMetaRevision as On, pairedMessageFits as Oo, parseVideoMeta as Op, isAtprotoDid as Or, pickHubs as Os, groupEntryUrl as Ot, PairedSession as Ou, servicesFromWire as Ov, HEDGE_MISSING_MS as Ow, appDigest as Ox, handoffVerifiedFrame as Oy, addedAppPermissions as P, TURN_NAME_BYTES as PC, readDeviceInvite as PS, MAX_AVATAR_LENGTH as PT, wrapDataChannel as P_, findEndpoint as Pa, planKnocks as Pb, PINNED_FRAME as Pc, nostrProofTemplate as Pd, parseDomainTxt as Pf, FIRST_PUBLISH_MAX_MS as Pg, verifyChain as Ph, ETHEREUM_USDT as Pi, appRangeDataFrame as Pl, wireReply as Pm, signGroupMeta as Pn, engineError as Po, EDIT_RECEIVE_LIMIT as Pp, atprotoCidFor as Pr, validHead as Ps, GROUP_WAKE_GROUP_LIMIT as Pt, CAPS_PUBLISH_SPACING_MS as Pu, HANDOFF_BUSY_REASONS as Pv, RelaysFailedError as Pw, isAppLicense as Px, readHandoffAck as Py, sealGroupTyping as Q, signTurnRelease as QC, readInviteCode as QS, randomBytes as QT, callSignalHeardAt as Q_, CROSSED_WAIT_MS as Qa, STAMP_BITS_DEFAULT as Qb, WAKE_INTERVAL_MS as Qc, RELAY_URL as Qd, dhtFileElements as Qf, countUnusedInvite as Qg, MAX_SKIPPED_KEYS as Qh, SPARK_PROVIDER as Qi, appCloseFrame as Ql, cardLinkHost as Qm, BIP322_REVISION as Qn, GROUP_SIGNAL_FRAME as Qo, linkEnd as Qp, DID_METHODS as Qr, PRESENCES as Qs, GROUP_EDIT_FRAME as Qt, IDENTITY_MAX_FRAME as Qu, HANDOFF_TIMINGS as Qv, BREAKER_THRESHOLD as Qw, isAppKey as Qx, encodeSetSlots as Qy, checkAppBeforeRun as R, TURN_SIGNED_BYTES as RC, INVITE_MAX_LENGTH as RS, MAX_NICK_LENGTH as RT, RTC_SIGNAL_MAX_AGE_MS as R_, NO_VIDEO_METADATA as Ra, CONTACT_ASKER_FRAME as Rb, mayPin as Rc, storageProof as Rd, txtValue as Rf, OFFER_FAST_MS as Rg, confirmationMatches as Rh, SEPOLIA_TEST_USDT as Ri, decodeAppRangeData as Rl, CRON_LINE as Rm, SSHSIG_NAMESPACE as Rn, GROUP_FILE_LIMITS as Ro, REMOVED_TEXT as Rp, findInMst as Rr, PAIRED_CALL_FRAME as Rs, GroupWakeLimiter as Rt, CapsRefusedError as Ru, HANDOFF_DONE as Rv, SLOW_MS as Rw, readAppBundle as Rx, readHandoffDone as Ry, buildX401ResultArtifact as S, TURN_RAISE_READ_TIMEOUT_MS as SC, CONTACT_LINK_BYTES as SS, IDENTITY_MEMO_SIZE as ST, webLocalFetch as S_, invoiceCallbackUrl as Sa, readEnrollHello as Sb, TYPING_TIMEOUT_MS as Sc, verifyIdentityPresentation as Sd, DOMAIN_METHODS as Sf, STALLED_EVIDENCE_MS as Sg, MEMBER_KEY as Sh, DidDhtError as Si, encryptPushPayload as Sl, reactionIsNewer as Sm, groupMetaNewer as Sn, RTC_UNSTARTED_MS as So, voicePeaksOf as Sp, ATPROTO_PROOF_COLLECTION as Sr, hubRank as Ss, GROUP_ENTRY_PROFILE as St, TYPING_CAPABILITY as Su, SERVICES_VERSION as Sv, FRESH_READ_MS as Sw, APP_CLIENT_NAME as Sx, handoffOfferFrame as Sy, encodeX401Header as T, classifyTurnRead as TC, encodeContactLink as TS, identityFromSeedB64 as TT, CHUNK_KIND as T_, parsePayParams as Ta, MAX_DONE as Tb, parseTypingActivity as Tc, lastSharedWithMe as Td, WELL_KNOWN_PATH as Tf, DIRECT_PEERS as Tg, commitHash as Th, didDhtFromPublicKey as Ti, vapidAuthorization as Tl, validReactionNumber as Tm, groupMetaToHand as Tn, WAKE_ANSWER_GRACE_MS as To, formatVideoDuration as Tp, atprotoProofRecord as Tr, mergeBeacon as Ts, decodeGroupEntryLink as Tt, parseSessionCapabilities as Tu, isValidServiceId as Tv, GROUP_OVER_PACE_MS as Tw, APP_PERMISSIONS as Tx, handoffRequestFrame as Ty, checkAppStoreIndex as U, encodeTurnFields as UC, decodeInviteCode as US, stripHidden as UT, BURST_RING_MS as U_, PICTURE_METADATA_LIMITS as Ua, LINK_RECORD_LABEL as Ub, pinIsNewer as Uc, verifyPeerProof as Ud, DHT_FILE_TOO_LARGE as Uf, RELAY_POLL_INTERVALS as Ug, epochKeys as Uh, arkAddressPrefix as Ui, APP_DATA_MAX_BYTES as Ul, ROUTINE_STATES as Um, parseSshSignature as Un, fetchesByItself as Uo, parseEditFrame as Up, unsignedCommitBytes as Ur, FILE_FRAMES as Us, GROUP_LIMITS as Ut, encodePacketTransports as Uu, HANDOFF_LATER_BYTES as Uv, currentRelays as Uw, APP_PREFIXES as Ux, readHandoffPake as Uy, APP_STORE_LIMITS as V, TURN_VERSION as VC, createChatInvite as VS, sanitizeDisplayText as VT, offerIsFresh as V_, withoutVideoMetadata as Va, KNOCK_SLOTS as Vb, parsePinnedFrame as Vc, validExternalKey as Vd, ACTIVE_DHT_POLL_MS as Vf, PRESENCE_HEARTBEAT as Vg, edgeParams as Vh, USDT_PUBLIC_RPC as Vi, parseAppRangeFrame as Vl, PR_STATES as Vm, SshSigError as Vn, GROUP_WANT_FRAME as Vo, editFrame as Vp, parseAtprotoVerificationKey as Vr, ChatFiles as Vs, mentionedMembers as Vt, dialDescriptors as Vu, HANDOFF_HAVE as Vv, WAY_BACK_SHARE as Vw, yieldThread as Vx, readHandoffHello as Vy, readAppListing as W, firstDeviceSetSecret as WC, encodeGhostlyInvite as WS, trimEndOf as WT, CALL_SIGNAL_FUTURE_MS as W_, isStrippedPicture as Wa, MAX_SEEN as Wb, pinNumberHolds as Wc, RING_LIFETIME as Wd, DHT_MESSAGE_TTL as Wf, SIGNAL_DUE_READS as Wg, newEpochSecret as Wh, assertTokenUnits as Wi, APP_FRAME as Wl, RUN_RESULTS as Wm, sameSshKey as Wn, groupFileFallback as Wo, parseEditedFrame as Wp, verifyAtprotoRecordProof as Wr, FILE_LIMITS as Ws, GROUP_REACTED_FRAME as Wt, parsePacketTransports as Wu, HANDOFF_LIST_PER_FRAME as Wv, normalizeRelayUrl as Ww, APP_STATEMENT_LIMITS as Wx, readHandoffRelease as Wy, groupTypingEpoch as X, signTurnBody as XC, ownInviteRefusal as XS, fromZ32 as XT, buildSdpFromSignal as X_, CROSSED_FRESH_MS as Xa, REQUEST_PACKET_BYTES as Xb, WAKE_CALL_WAIT_MS as Xc, verifyRingEvidence as Xd, peekDhtMailbox as Xf, UNUSED_INVITE_WAIT_MAX_MS as Xg, FOLLOW_MS as Xh, walletNetworkOf as Xi, APP_VERSION_MAX as Xl, cardEditNumber as Xm, legacyMessageHash as Xn, CARRIED_DEFER_MS as Xo, LINK_TRAILING as Xp, DID_JWS_MAX_LENGTH as Xr, transferEnded as Xs, groupMessageId as Xt, IDENTITY_MAX_CHECKS_PER_HOUR as Xu, HANDOFF_RELEASE as Xv, BREAKER_BASE_MS as Xw, checkAppRevokeStatement as Xx, SET_ACK as Xy, GroupTypingBoard as Y, sealTurnBody as YC, inviteQrText as YS, fromBase64Url as YT, answersOffer as Y_, BLOCKED_DIAL_WAIT_MS as Ya, REQUEST_NAME_UNITS as Yb, WAKE_CALL_TTL_SECONDS as Yc, verifyRingAuthorization as Yd, emptyDhtDeliveryState as Yf, UNUSED_INVITE_UPKEEP_MS as Yg, sha256Hex as Yh, validatePaymentTarget as Yi, APP_SEND_LIMIT as Yl, buttonLabelClash as Ym, isLegacySignature as Yn, readGroupWantNo as Yo, LINK_PREVIEW_LIMITS as Yp, DID_JWS_ALGS as Yr, sentWhole as Ys, frameBytes as Yt, IDENTITY_FRAME_WINDOW_MS as Yu, HANDOFF_PIECE_OVERHEAD as Yv, BREAKER_ALL_DOWN_PROBE_MS as Yw, appSignedBytes as Yx, sortParts as Yy, openGroupTyping as Z, signTurnPacket as ZC, pastedAgain as ZS, isZ32Key as ZT, callRtcConfig as Z_, CROSSED_PROBE_MS as Za, REQUEST_TEXT_BYTES as Zb, WAKE_FRAME as Zc, AUTOMATIC_ORDER as Zd, DHT_FILE_CAPABILITY as Zf, WATCH_PEER_MS as Zg, MAX_SKIP as Zh, SPARK_NETWORKS as Zi, AppSessions as Zl, cardLine as Zm, verifyBitcoinMessage as Zn, CarriedTransport as Zo, canonicalUrl as Zp, DID_MAX_LENGTH as Zr, transferStalled as Zs, COMMUNITY_EDIT_FRAME as Zt, IDENTITY_MAX_EVIDENCE as Zu, HANDOFF_REQUEST as Zv, BREAKER_MAX_MS as Zw, isAppHash as Zx, SET_UPDATE as Zy, X401_PROTOCOLS as _, unsignedDeviceTransports as _C, previewable as _S, signRelayPayload as _T, resolveTargetUrl as __, pubkyHomeserverOf as _a, enrollHelloFrame as _b, TYPING_RATE_LIMIT as _c, isIdentityBinding as _d, readManifest as _f, GATHER_ATTEMPTS as _g, GROUP_MEMBER_CAP as _h, strictBase64Url as _i, PUSH_PAD_BYTES as _l, parseReactionFrame as _m, MAX_GROUP_PICTURE_LENGTH as _n, RACE_RELAYED_MS as _o, recordingMime as _p, u32$1 as _r, COMMUNITY_TOPOLOGY as _s, shortHash as _t, SERVICES_CAPABILITY as _u, isEmptyLinkPacket as _v, CHAT_RESERVE_MOST_SHARE as _w, seenEntry as _x, handoffFileMissingFrame as _y, X401_DCQL_LIMITS as a, deviceEchoFrame as aC, __esmMin as aE, readAppSignature as aS, publishedNowhere as aT, guardViewerAnswer as a_, PUBKY_PROOF_MAX_BYTES as aa, DEVICE_KINDS as ab, STATUS_TEXT_MAX as ac, IDENTITY_STATEMENT_PREFIX as ad, irohRelayUrl as af, isRatcheted as ag, statusCardBytes as ah, didWebDocumentUrl as ai, WAKE_SUBJECT as al, forwardedAgain as am, validEditText as an, HANDLED_WAIT_MS as ao, sanitizeFileName as ap, BitcoinAddressError as ar, SIGNAL_REPLY_MS as as, communityHasFrame as at, parseAppFrame as au, isGlobalIpv4Host as av, turnSequence as aw, knockSlotIdentity as ax, handoffAckFrame as ay, buildX401ProofRequest as b, webCryptoSigner as bC, canonicalJsonBytes as bS, encodeTxtPacket as bT, viewerResponseHeaders as b_, fetchLnurlJson as ba, formatEnrollDigits as bb, TYPING_SEND_LIMIT as bc, revokesIdentity as bd, DOMAIN_FILE_MAX_BYTES as bf, OFFER_HOST_GATHER_MS as bg, MAX_GROUP_CHAIN as bh, DID_DHT_TTL as bi, checkPushEndpoint as bl, reactionEmoji as bm, groupMetaBody as bn, RTC_SIGNAL_RATE_WINDOW_MS as bo, voiceLevel as bp, ATPROTO_DECLARED_SCOPE as br, doorHubs as bs, verifyCommunityChainPaced as bt, STATUS_CARD_CAPABILITY as bu, LEGACY_SERVICES as bv, DEFAULT_RELAYS as bw, APP_BUNDLE_MAGIC as bx, handoffHelloFrame as by, readX401DcqlQuery as c, deviceKeyZ32 as cC, __toCommonJS as cE, signAppRevocation as cS, PKARR_FUTURE_SKEW_MS as cT, HttpClient as c_, isPubkyProofFolder as ca, ENROLL_DONE as cb, liveStatus as cc, IdentityExchange as cd, relayedTransports as cf, ratchetOpen as cg, usageLeft as ch, didWebFileUrl as ci, deviceWakeRequest as cl, COMMUNITY_REACTION_FRAME as cm, mentionsBytes as cn, LIVENESS_MISSED_PINGS as co, RECORDING_TYPES as cp, decodeAnyBitcoinAddress as cr, GROUP_VERSION_HUBS as cs, communityUntaggedHash as ct, APP_RANGES_CAPABILITY as cu, pickCallCandidates as cv, turnVerifierMark as cw, linkRecords as cx, handoffAttemptSucceeded as cy, newX401HolderKey as d, deviceLinkRendezvousSeed as dC, verifyAppStatementBytes as dS, createRelayPayload as dT, VIEWER_DROPPED_HEADERS as d_, pubkyProofCapability as da, ENROLL_PROOF as db, sameStatusState as dc, emptyIdentityLedger as dd, HOLD_DATED_BACK_MS as df, ratchetSessionOf as dg, claimedTime as dh, parseDid as di, readWake as dl, REACTED_FRAME as dm, wireMentions as dn, PAIRED_FRAME_TOO_LARGE as do, baseMime as dp, decodeWitness as dr, mayBeHub as ds, encodeCommunityLink as dt, EDIT_CAPABILITY as du, waitForIceGathering as dv, ANSWER_READ_SPACING_MS as dw, mergeContactKnocks as dx, handoffContext as dy, DEVICE_CAPABILITIES as eC, toBase64Url as eE, isAppRef as eS, DiscoveryBudgetError as eT, unusedInviteWait as e_, sparkAddressKind as ea, setAckFrame as eb, STATUS_FRAME as ec, IDENTITY_MAX_VALIDITY as ed, TRANSPORTS as ef, RATCHET_HEADER_BYTES as eg, cardUrl as eh, checkDidJws as ei, WAKE_ONLINE_BATCH_MS as el, linksIn as em, carryMentions as en, DEMOTE_MS as eo, readDhtFile as ep, bip322MessageHash as er, SIGNALS_PER_MINUTE as es, COMMUNITY_PROFILE as et, appDataFrame as eu, contactRtcConfig as ev, turnKeys as ew, STAMP_BITS_MIN as ex, HANDOFF_VERSION as ey, readX401SdJwtVc as f, deviceLinkSealKey as fC, IMAGE_LIMITS as fS, measureRecords as fT, VIEWER_SERVICE_CSP as f_, pubkyProofFile as fa, enrollCancelFrame as fb, sanitizeStatusText as fc, identityPresentationBytes as fd, HOLD_LIMITS as ff, ratchetUnknownSession as fg, heardTime as fh, parseDidDocument as fi, readWakePayload as fl, REACTION_FRAME as fm, GROUP_META_PAST as fn, PAIRING_ATTEMPT_MS as fo, downsamplePeaks as fp, encodeTx as fr, meshHubs as fs, leaveStands as ft, FILES_BINARY_CAPABILITY as fu, LABEL$1 as fv, AWAITED_READS as fw, openRequest as fx, handoffContextProof as fy, X401_LIMITS as g, signDeviceTransports as gC, parseImageMeta as gS, readOwnRelayPayload as gT, relativizeLocation as g_, homeserverWebEndpoint as ga, enrollGrantFrame as gb, TYPING_KINDS as gc, identityStatementText as gd, newMailbox as gf, DataLink as gg, GROUP_ID as gh, staticDidDocument as gi, wakeRequest as gl, parseReactedFrame as gm, MAX_GROUP_NAME_LENGTH as gn, RACE_DIRECT_MS as go, parseVoiceMeta as gp, txHash as gr, wireHubPolicy as gs, rosterHash as gt, REACTIONS_CAPABILITY as gu, emptyLinkRecords as gv, CHAT_RESERVE as gw, requestRecords as gx, handoffEphemeral as gy, X401_HEADERS as h, newDeviceSetSecret as hC, isImageMime as hS, parseRelayPayload as hT, parseLocalTarget as h_, encodeSvcbPacket as ha, enrollDoneFrame as hb, TYPING_FRAME as hc, identityStatement as hd, isHoldUrl as hf, DATA_SETTLE_MS as hg, GROUP_ADMIN_OFF_ERROR as hh, signingKeys as hi, wakePayload as hl, nextReactionNumber as hm, MAX_GROUP_NAME_BYTES as hn, RACE_ANSWERED_MS as ho, isPlayableAudioType as hp, sha256d as hr, pickMeshHubs as hs, leftStatement as ht, PIN_CAPABILITY as hu, buildLinkRecords as hv, BACKGROUND_WRITES_SHARE as hw, requestPlaintextBytes as hx, handoffDoneFrame as hy, x401ApprovalDigest as i, HANDOFF_CAPABILITY as iC, __commonJSMin as iE, readAppRevocations as iS, isDiscoveryBudgetError as iT, allowingViewerGuard as i_, isBitcoinAddress as ia, verifySetUpdate as ib, STATUS_SEND_INTERVAL_MS as ic, IDENTITY_REVOCATION_LABEL as id, irohDescriptor as if, emptyRatchetState as ig, sameButtonText as ih, didSignedMessages as ii, WAKE_RETRY_MS as il, FORWARD_LIMITS as im, parseCommunityEdit as in, GhostLink as io, safeBlobType as ip, verifyBip322 as ir, SIGNAL_PROVEN_MS as is, communityGroupId as it, isChatAppId as iu, isCandidateAddress as iv, turnReleaseMessage as iw, knockHolds as ix, filePartName as iy, readX401ProofResult as j, TURN_LABEL as jC, deviceInviteJoinerKeyZ32 as jS, generateEncryptionKey as jT, encodeChunk as j_, ENDPOINT as ja, endedRequests as jb, typingKindOf as jc, emptyProofLedger as jd, isPublicAddress as jf, DEPARTED_READ_MS as jg, rosterHas as jh, openDidDhtPayload as ji, AppRanges as jl, pairedReplyAuthor as jm, parseGroupMetaFrame as jn, publishFailure as jo, EDIT_BUFFER_MS as jp, shortAtprotoDid as jr, readBeaconHead as js, mergeKnocks as jt, CAPS_ISSUED_BACK_MS as ju, HANDOFF_ACK as jv, RELAY_REQUESTS_PER_MINUTE as jw, buildAppBundle as jx, isHandoffPartName as jy, readX401ProofResponse as k, TOMBSTONE_TURN as kC, DEVICE_INVITE_OWN_DEVICE as kS, decrypt as kT, decodeChunk as k_, decodeBolt11 as ka, REOPEN_BELOW as kb, typingActivity as kc, STORAGE_LIFETIME as kd, domainWellKnownFile as kf, AWAITING_PEER_MS as kg, rememberAlone as kh, encodeDidDhtPacket as ki, APP_RANGE_FRAMES as kl, REPLY_LIMITS as km, openGroupMeta as kn, pairedMessageFrame as ko, EDITED_FRAME as kp, normalizeAtprotoHandle as kr, rankHubs as ks, knockIdentity as kt, SESSION_FRAME_MAX as ku, servicesToWire as kv, HEDGE_MS as kw, appViewOf as kx, handoffVerifiedMessage as ky, x401VpToken as l, deviceLinkPairing as lC, verifyAppRevocation as lS, PacketTooLargeError as lT, HttpHost as l_, newPubkyProofFolder as la, ENROLL_GRANT as lb, parseStatusFrame as lc, boundIdentityDisplay as ld, transportOrder as lf, ratchetRoot as lg, MESSAGE_CLOCK_SKEW_MS as lh, didWebHost as li, newWakeToken as ll, GROUP_REACTION_FRAME as lm, mentionsMember as ln, LIVENESS_PING_MS as lo, VOICE_LIMITS as lp, decodeBitcoinAddress as lr, MESH_HUBS as ls, decodeCommunityLink as lt, BUTTONS_CAPABILITY as lu, sdpHasCandidates as lv, ANSWER_READ_ALLOWANCE as lw, makeStamp as lx, handoffBusyFrame as ly, x401HolderJwk as m, devicePingFrame as mC, imageSize as mS, openRelayPayload as mT, formatLocalTarget as m_, decodeSvcbRecords as ma, enrollDigits as mb, statusState as mc, identityRevocationValue as md, HoldRefusedError as mf, CONNECT_TIMEOUT_MS as mg, shownTime as mh, parseDidSignaturePaste as mi, wakeFrame as ml, ReactionWindow as mm, MAX_GROUP_META_BODY as mn, PONG_WAIT_MS as mo, formatVoiceDuration as mp, hash160 as mr, parseHubPolicy as ms, leaveStatement3 as mt, KNOWN_SESSION_CAPABILITIES as mu, RECORD_TTL as mv, BACKGROUND_WHILE_SIGNALING as mw, readLinkRecord as mx, handoffDigest as my, X401_RESPONSE_MODES as n, DEVICE_PING_FRAME as nC, utf8Decode as nE, readAppRevocation as nS, budgetRetryMs as nT, VIEWER_GUARD_HASH as n_, sparkNetworkOf as na, setUpdateMessage as nb, STATUS_RATE_LIMIT as nc, IDENTITY_PROVIDER_ID as nd, checkedDescriptors as nf, RATCHET_OVERHEAD as ng, readStatusCard as nh, didGhostlyServiceEntry as ni, WAKE_ONLINE_INTERVAL_MS as nl, previewImageSize as nm, communityMessageAuthor as nn, EARLY_DIAL_JOIN_MS as no, PREVIEWABLE_IMAGE as np, bip322ToSpend as nr, SIGNAL_FRESH_MS as ns, GROUP_READ_NOTE_COMMUNITY as nt, chatAppId as nu, extractParamsFromSdp as nv, turnPacket as nw, contactAskerHolds as nx, NO_ATTEMPTS as ny, matchX401Dcql as o, deviceEchoNonce as oC, __exportAll as oE, setAppSignatureFastPath as oS, withRequestOptions as oT, viewerGuardOffset as o_, PUBKY_PROOF_ROOT as oa, ENROLL_CANCEL as ob, StatusReceiver as oc, IDENTITY_SUBJECT as od, rankTransports as of, ratchetHeard as og, statusCardText as oh, didWebFile as oi, WAKE_TTL_SECONDS as ol, forwardedMany as om, MENTION_EVERYONE as on, INVITER_DIAL_GRACE_MS as oo, sanitizeMime as op, ByteReader as or, groupSignalFrame as os, communityMessageId as ot, readAppFrame as ou, keepsToRelays as ov, turnSignedMessage as ow, knockSlotOf as ox, handoffAttemptAllowed as oy, sameX401HolderJwk as p, deviceLinkSecret as pC, exifOrientation as pS, newerPacket as pT, VIEWER_SERVICE_CSP_RELAY_ONLY as p_, pubkyProofPath as pa, enrollCancelReason as pb, statusFrame as pc, identityRefusal as pd, HoldKeys as pf, ANSWER_REFUSED_REDIALS as pg, receivedTimestamp as ph, parseDidJws as pi, relayRequest as pl, REACTION_LIMITS as pm, GROUP_META_PAST_CHARS as pn, PAIRING_RETRY_MS as po, fileMessageText as pp, encodeWitness as pr, meshRendezvous as ps, leaveStatement as pt, FILES_CAPABILITY as pu, MAX_MSGS_PAYLOAD_B64 as pv, BACKGROUND_REQUESTS_PER_MINUTE as pw, readKnockSlot as px, handoffDataFrame as py, signAppStore as q, readTurnBody as qC, inviteOwnership as qS, concatBytes as qT, QUICK_REDIAL_MS as q_, ANSWERS_REFUSED_PAUSES as qa, REQUEST_LABEL as qb, DEVICE_WAKE_TTL_SECONDS as qc, ringEvidence as qd, DhtDelivery as qf, TRANSPORTS_GONE_MS as qg, sealPair as qh, isWalletNetwork as qi, APP_RATE_WINDOW_MS as ql, appCardId as qm, sshSignCommand as qn, readGroupHave as qo, validRemovalNumber as qp, DID_FILE_MAX_BYTES as qr, encodeFileData as qs, asWritten as qt, IDENTITY_CLOCK_SKEW as qu, HANDOFF_PAKE as qv, setLinkTraceSink as qw, appRefPublisher as qx, sameDigest as qy, readX401OpenId4VpRequest as r, ENROLL_CAPABILITY as rC, utf8Encode as rE, readAppRevocationShape as rS, heldBackError as rT, VIEWER_GUARD_SCRIPT as r_, BITCOIN_NETWORKS as ra, signTombstone as rb, STATUS_RATE_WINDOW_MS as rc, IDENTITY_REUSE_CHECK_S as rd, dialableIrohRelay as rf, RatchetBox as rg, removedCardText as rh, didJwsAlg as ri, WAKE_ONLINE_TTL_SECONDS as rl, sanitizePreviewImage as rm, meshMessageRef as rn, FIRST_PAIRING_PACE_MS as ro, formatFileSize as rp, decodeBase64 as rr, SIGNAL_HOLD_MS as rs, communityCommitHash as rt, isAppVersion as ru, heardCallSignal as rv, turnPayloadSequence as rw, contactDay as rx, filePartDigest as ry, presentX401SdJwtVc as s, deviceFrameCapability as sC, __require as sE, signAppObject as sS, MAX_DNS_PACKET_BYTES as sT, GhostlyHttpError as s_, isPubkyKey as sa, ENROLL_CANCEL_REASONS as sb, StatusSender as sc, IdentityCheckUnavailable as sd, relayUrl as sf, ratchetOn as sg, taskProgress as sh, didWebFileNames as si, WakeLimiter as sl, readForwarded as sm, MENTION_LIMITS as sn, INVITE_TAKEN as so, PLAYABLE_AUDIO as sp, compactSize as sr, readGroupSignal as ss, communityRoster as st, APPS_CAPABILITY as su, parseCallSignal as sv, turnStatedVerifier as sw, knockSlotRecords as sx, handoffAttemptFailed as sy, X401_REQUEST_LIMITS as t, DEVICE_ECHO_FRAME as tC, toZ32 as tE, isAppSignature as tS, PublishFailedError as tT, VIEWER_GUARD_CSP as t_, sparkInvoiceDetails as ta, setUpdateFrame as tb, STATUS_IDLE_AFTER_MS as tc, IDENTITY_PROOF_CAPABILITY as td, automaticTransport as tf, RATCHET_KEEP_MS as tg, checkStatusCard as th, checkDidSignature as ti, WAKE_ONLINE_DELAY_MS as tl, parseLinkPreview as tm, communityEditFrame as tn, DHT_PIN_GRACE_MS as to, FileTransfers as tp, bip322ToSign as tr, SIGNAL_CARRIERS as ts, CommunitySession as tt, appOpenFrame as tu, decompressSdp as tv, turnName as tw, contactAskerFrame as tx, HANDOFF_WINDOW as ty, X401_CREDENTIAL_LIMITS as u, deviceLinkParams as uC, verifyAppSignature as uS, RELAY_PAYLOAD_MAX_BYTES as uT, VIEWER_DROPPED_DIRECTIVES as u_, normalizePubkyKey as ua, ENROLL_HELLO as ub, personStatus as uc, boundVerifiedIdentity as ud, HOLD_CAPABILITY as uf, ratchetSeal as ug, arrivalKey as uh, normalizeDid as ui, parseWakeFrame as ul, QUICK_REACTIONS as um, validMentions as un, MAX_PAIRED_MESSAGE_FRAME as uo, VOICE_METER as up, decodeTx as ur, NO_HUB_POLICY as us, derivedSecret as ut, CALLS_CAPABILITY as uu, signalHasVideo as uv, ANSWER_READ_FIRST_MS as uw, makeStampPaced as ux, handoffCancelFrame as uy, X401_SCHEME as v, verifyDeviceTransports as vC, readImageMeta as vS, decodeDnsAnswers as vT, sanitizeRequestHeaders as v_, LIGHTNING_DESTINATION_PATTERN as va, enrollMessage as vb, TYPING_RATE_WINDOW_MS as vc, newIdentityBinding as vd, DNS_LABEL as vf, GATHER_STALL_MS as vg, GROUP_VERSION_LARGE as vh, DID_DHT_MAX_PAYLOAD as vi, PUSH_SERVICE_HOSTS as vl, queueReaction as vm, encodeGroupMetaBody as vn, REDESCRIBED_GRACE_MS as vo, voiceDownloadName as vp, u64 as vr, beaconKeys as vs, signCommunity as vt, SESSION_CAPABILITIES_FRAME as vu, parseLinkRecords as vv, CHAT_RESERVE_PER_CHAT as vw, stampHolds as vx, handoffFileRequestFrame as vy, decodeX401Header as w, TURN_VISIBLE_MS as wC, createContactLink as wS, identityFromSeed as wT, CHUNK_FLAG_END as w_, parseLightningDestination as wa, FLOOD_PER_DAY as wb, TypingSender as wc, applyIdentityEvent as wd, NIP05_PATH as wf, DIRECT_OWN_ATTEMPTS as wg, SAID_AGAIN as wh, didDhtDocument as wi, pushRequest as wl, readReaction as wm, groupMetaTag as wn, UNPROVEN_AUTH_MS as wo, VIDEO_LIMITS as wp, atprotoDidMethod as wr, lobbyRecords as ws, MAX_KNOCKS as wt, WAKE_SESSION_CAPABILITY as wu, encodeServices as wv, GROUP_BURST_ONE_LINK as ww, APP_ICON_PATH as wx, handoffReleaseFrame as wy, buildX401ProofResult as x, TURN_PUT_WINDOW_MS as xC, readCanonicalJson as xS, readDnsName as xT, viewerServicePolicy as x_, findLightningDestination as xa, readEnrollGrant as xb, TYPING_STATUS_MAX as xc, signIdentityPresentation as xd, DOMAIN_MAX_RECORDS as xf, REANSWERS as xg, MAX_GROUP_MEMBERS as xh, DID_DHT_VERSION as xi, decryptPushPayload as xl, reactionFrame as xm, groupMetaChange as xn, RTC_SIGNAL_RECEIVE_LIMIT as xo, voiceLevelsOf as xp, ATPROTO_FULL_SCOPE as xr, freshHubs as xs, verifyCommunityCommit as xt, SessionCapabilities as xu, MAX_SERVICES as xv, DEPARTED_READS as xw, APP_CLIENTS as xx, handoffManifestFrames as xy, X401_VERSION as y, seedSigner as yC, canonicalJson as yS, decodeTxtPacket as yT, sanitizeResponseHeaders as y_, LNURL_LIMITS as ya, enrollProofFrame as yb, TYPING_REFRESH_MS as yc, receivedIdentityStatus as yd, DNS_TYPE as yf, LATE_ANSWER_MS as yg, LEGACY_GROUP_MEMBERS as yh, DID_DHT_PREFIX as yi, WebPushError as yl, reactedFrame as ym, groupDisplayName as yn, RESUME_WAIT_MS as yo, voiceFileName as yp, varBytes as yr, beaconRecords as ys, verifyCommunityChain as yt, STATUS_CAPABILITY as yu, HTTP_SERVICE_PROTO as yv, CHAT_WATCH_SHARE as yw, APP_BUNDLE_LIMITS as yx, handoffHaveFrames as yy, planAppUpdate as z, TURN_SLOTS as zC, INVITE_VERSION as zS, dropLoneJoiners as zT, buildDataSdp as z_, VIDEO_METADATA_LIMITS as za, CONTACT_RECORD_TTL as zb, nextPinNumber as zc, storageProofBody as zd, validDomainRecord as zf, OFFER_LOOK_MS as zg, confirmationTag as zh, SEPOLIA_TEST_USDT_FAUCET as zi, encodeAppRangeData as zl, ITEM_STATES as zm, SSH_KEY_TYPES as zn, GROUP_HAVE_FRAME as zo, RateWindow as zp, parseAtprotoCar as zr, PairedCalls as zs, groupWakeFrame as zt, DHT_TEXT_CAPABILITY as zu, HANDOFF_FILE_MISSING as zv, TURN_SOURCE_TIMEOUT_MS as zw, readAppBundleAsync as zx, readHandoffFileFrame as zy };
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 };
41907
42543
 
41908
- //# sourceMappingURL=src-i6IUh-ng.js.map
42544
+ //# sourceMappingURL=src-BN4AAuHI.js.map