@ghostlytools/sdk 1.8.1 → 1.9.0

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.
@@ -1379,7 +1379,14 @@ function normalizeRelayUrl(input) {
1379
1379
  function relayUrlProblem(input) {
1380
1380
  const line = input.trim();
1381
1381
  if (normalizeRelayUrl(line)) return null;
1382
- return /^(?:[a-z][a-z\d+.-]*:\/\/)?[^\s/:]+\.[^\s]+$/i.test(line) ? `Use an https:// relay address: ${line}` : `Not a relay address: ${line}`;
1382
+ return looksLikeHost(line) || looksLikeHost(line.replace(/^[a-z][a-z\d+.-]*:\/\//i, "")) ? `Use an https:// relay address: ${line}` : `Not a relay address: ${line}`;
1383
+ }
1384
+ /** No space, and a dot after the first character, before the last one and before any `/` or `:`; linear, for a long pasted line. */
1385
+ function looksLikeHost(text) {
1386
+ if (/\s/.test(text)) return false;
1387
+ const slash = text.search(/[/:]/);
1388
+ const dot = text.indexOf(".", 1);
1389
+ return dot > 0 && dot < text.length - 1 && (slash < 0 || dot < slash);
1383
1390
  }
1384
1391
  /** A relay the breaker leaves alone for failing (`RelayBreaker`): nothing was asked of it now. */
1385
1392
  var RelayLeftAloneError = class extends Error {};
@@ -4146,17 +4153,17 @@ function parseImageMeta(value, mime) {
4146
4153
  height
4147
4154
  } : void 0;
4148
4155
  }
4149
- var u16be = (b, at) => b[at] << 8 | b[at + 1];
4156
+ var u16be$1 = (b, at) => b[at] << 8 | b[at + 1];
4150
4157
  var u16le = (b, at) => b[at] | b[at + 1] << 8;
4151
4158
  var u24le = (b, at) => b[at] | b[at + 1] << 8 | b[at + 2] << 16;
4152
- var u32be = (b, at) => (b[at] << 24 >>> 0) + (b[at + 1] << 16) + (b[at + 2] << 8) + b[at + 3];
4159
+ var u32be$2 = (b, at) => (b[at] << 24 >>> 0) + (b[at + 1] << 16) + (b[at + 2] << 8) + b[at + 3];
4153
4160
  var ascii = (b, at, text) => [...text].every((c, i) => b[at + i] === c.charCodeAt(0));
4154
4161
  var sized = (width, height) => edge(width) && edge(height) ? {
4155
4162
  width,
4156
4163
  height
4157
4164
  } : void 0;
4158
4165
  /** SOFn markers: every frame type but DHT (C4), JPG (C8) and DAC (CC). */
4159
- var JPEG_FRAME = /* @__PURE__ */ new Set([
4166
+ var JPEG_FRAME$1 = /* @__PURE__ */ new Set([
4160
4167
  192,
4161
4168
  193,
4162
4169
  194,
@@ -4176,8 +4183,8 @@ function exifOrientation(b, tiff, end) {
4176
4183
  if (tiff + 8 > end) return 1;
4177
4184
  const little = ascii(b, tiff, "II");
4178
4185
  if (!little && !ascii(b, tiff, "MM")) return 1;
4179
- const u16 = (at) => little ? u16le(b, at) : u16be(b, at);
4180
- const u32 = (at) => little ? u16le(b, at) + u16le(b, at + 2) * 65536 : u32be(b, at);
4186
+ const u16 = (at) => little ? u16le(b, at) : u16be$1(b, at);
4187
+ const u32 = (at) => little ? u16le(b, at) + u16le(b, at + 2) * 65536 : u32be$2(b, at);
4181
4188
  if (u16(tiff + 2) !== 42) return 1;
4182
4189
  const ifd = tiff + u32(tiff + 4);
4183
4190
  if (ifd + 2 > end) return 1;
@@ -4206,13 +4213,13 @@ function jpegSize(b) {
4206
4213
  continue;
4207
4214
  }
4208
4215
  if (marker === 217 || marker === 218) return void 0;
4209
- const length = u16be(b, at + 2);
4216
+ const length = u16be$1(b, at + 2);
4210
4217
  if (length < 2) return void 0;
4211
4218
  const end = Math.min(b.length, at + 2 + length);
4212
4219
  if (marker === 225 && ascii(b, at + 4, "Exif\0\0")) orientation = exifOrientation(b, at + 10, end);
4213
- if (JPEG_FRAME.has(marker)) {
4220
+ if (JPEG_FRAME$1.has(marker)) {
4214
4221
  if (at + 9 > b.length) return void 0;
4215
- const height = u16be(b, at + 5), width = u16be(b, at + 7);
4222
+ const height = u16be$1(b, at + 5), width = u16be$1(b, at + 7);
4216
4223
  return orientation >= 5 ? sized(height, width) : sized(width, height);
4217
4224
  }
4218
4225
  at += 2 + length;
@@ -4262,7 +4269,7 @@ function gifSize(b) {
4262
4269
  function imageSize(head) {
4263
4270
  const b = head;
4264
4271
  try {
4265
- if (b.length >= 24 && b[0] === 137 && ascii(b, 1, "PNG\r\n\n") && ascii(b, 12, "IHDR")) return sized(u32be(b, 16), u32be(b, 20));
4272
+ if (b.length >= 24 && b[0] === 137 && ascii(b, 1, "PNG\r\n\n") && ascii(b, 12, "IHDR")) return sized(u32be$2(b, 16), u32be$2(b, 20));
4266
4273
  if (b.length >= 10 && (ascii(b, 0, "GIF87a") || ascii(b, 0, "GIF89a"))) return gifSize(b);
4267
4274
  if (b.length >= 4 && b[0] === 255 && b[1] === 216 && b[2] === 255) return jpegSize(b);
4268
4275
  if (b.length >= 16 && ascii(b, 0, "RIFF") && ascii(b, 8, "WEBP")) return webpSize(b);
@@ -6516,7 +6523,7 @@ function isViewerTag(tag) {
6516
6523
  }
6517
6524
  function serviceIdFromName(name, taken = []) {
6518
6525
  const used = new Set(taken);
6519
- const base = name.toLowerCase().normalize("NFKD").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 24) || "service";
6526
+ const base = name.toLowerCase().normalize("NFKD").replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "").slice(0, 24) || "service";
6520
6527
  let id = base;
6521
6528
  for (let n = 2; used.has(id) || LEGACY_SERVICES.some((s) => s.id === id); n++) id = `${base}-${n}`;
6522
6529
  return id;
@@ -9950,7 +9957,7 @@ function messageKeys(mk) {
9950
9957
  function aad(lane, sender, recipient, header) {
9951
9958
  return concatBytes(utf8Encode("ghostly-ratchet/1"), new Uint8Array([LANE[lane]]), publicKeyFromZ32(sender), publicKeyFromZ32(recipient), header);
9952
9959
  }
9953
- function header$1(lane, session, n) {
9960
+ function header$2(lane, session, n) {
9954
9961
  return concatBytes(new Uint8Array([VERSION$1, LANE[lane]]), unb64(session.sid), unb64(session.dhsPub), u32$2(session.pnHold), u32$2(n));
9955
9962
  }
9956
9963
  function parseHeader(sealed) {
@@ -9995,7 +10002,7 @@ function ratchetSeal(prev, keys, lane, plaintext, options = {}) {
9995
10002
  }
9996
10003
  const session = state.current ??= newSession(context(keys), random(SID_BYTES), random, now);
9997
10004
  const [mk, next] = advance(session.send[lane]);
9998
- const head = header$1(lane, session, session.send[lane].n);
10005
+ const head = header$2(lane, session, session.send[lane].n);
9999
10006
  session.send[lane] = next;
10000
10007
  session.at = now;
10001
10008
  const { key, nonce } = messageKeys(mk);
@@ -14571,7 +14578,7 @@ var decOrEmpty = (s) => {
14571
14578
  }
14572
14579
  };
14573
14580
  var hash = (s) => enc(sha256(utf8Encode(s)));
14574
- var header = enc(utf8Encode(JSON.stringify({
14581
+ var header$1 = enc(utf8Encode(JSON.stringify({
14575
14582
  alg: "EdDSA",
14576
14583
  typ: "ghostly-pubky-identity-delegation/1"
14577
14584
  })));
@@ -14587,13 +14594,13 @@ function ringClaims(statement, issuer, delegate, issuedAt, expiresAt) {
14587
14594
  }
14588
14595
  function ringAuthorization(claims, seed) {
14589
14596
  if (toZ32(ed25519.getPublicKey(seed)) !== claims.iss) throw new Error("Ring identity mismatch");
14590
- const input = header + "." + enc(utf8Encode(JSON.stringify(claims)));
14597
+ const input = header$1 + "." + enc(utf8Encode(JSON.stringify(claims)));
14591
14598
  return input + "." + enc(ed25519.sign(utf8Encode(input), seed));
14592
14599
  }
14593
14600
  function verifyRingAuthorization(authorization, statement, issuer, issuedAt, expiresAt) {
14594
14601
  if (typeof authorization !== "string" || authorization.length > 2400) throw new Error("Invalid Ring authorization");
14595
14602
  const [h, p, s, ...extra] = authorization.split(".");
14596
- if (extra.length || h !== header || !p || !s) throw new Error("Unsupported Ring authorization");
14603
+ if (extra.length || h !== header$1 || !p || !s) throw new Error("Unsupported Ring authorization");
14597
14604
  let claims;
14598
14605
  try {
14599
14606
  claims = JSON.parse(utf8Decode(dec(p)));
@@ -14771,7 +14778,7 @@ async function verifyPeerProof(event, c, readStorage) {
14771
14778
  if (sig.length !== 64 || !verify(sig, data, fromZ32(c.externalKey))) throw new Error("Invalid Pubky signature");
14772
14779
  } else if (c.adapter === "keet-import") {
14773
14780
  if (sig.length !== 107 || sig[0] !== 1 || sig[41] !== 0 || sig[42] !== 1) throw new Error("Unsupported Keet attestation");
14774
- const { default: IdentityKey } = await import("./keet-identity-key-uq3scTiE.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
14781
+ const { default: IdentityKey } = await import("./keet-identity-key-D8ioYMkd.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
14775
14782
  if (!IdentityKey.verify(b4a.from(sig), b4a.from(data), { expectedIdentity: b4a.from(unhex(c.externalKey)) })) throw new Error("Invalid Keet attestation");
14776
14783
  } else throw new Error("Unsupported proof adapter");
14777
14784
  }
@@ -19645,7 +19652,7 @@ var ChatFiles = class {
19645
19652
  out.next = record.confirmed;
19646
19653
  const paused = record.state === "paused" && record.pausedBy === "me";
19647
19654
  if (!this.send(this.offerFrame(record, paused))) return;
19648
- if (!paused && record.state !== "offered") {
19655
+ if (!paused && record.state !== "offered" && record.state !== "verifying") {
19649
19656
  record.state = "offered";
19650
19657
  record.pausedBy = void 0;
19651
19658
  this.changed(entry);
@@ -19881,9 +19888,16 @@ var ChatFiles = class {
19881
19888
  this.startNext();
19882
19889
  });
19883
19890
  }
19884
- /** The next file waiting its turn, once one ends. */
19891
+ /**
19892
+ * The next file waiting its turn, once one ends. The others were told they wait when they were queued: told again at
19893
+ * each end, n files at once made about n²/2 frames, and their sender stored its record for each.
19894
+ */
19885
19895
  startNext() {
19886
- for (const entry of this.entries.values()) if (entry.record.direction === "in" && entry.record.state === "queued") this.startIncoming(entry);
19896
+ for (const entry of this.entries.values()) {
19897
+ if (entry.record.direction !== "in" || entry.record.state !== "queued" || entry.in.starting) continue;
19898
+ if (this.activeIncoming(entry) >= FILE_LIMITS.maxActiveIncoming) return;
19899
+ this.startIncoming(entry);
19900
+ }
19887
19901
  }
19888
19902
  async onOffer(frame) {
19889
19903
  const id = frame.id;
@@ -20361,6 +20375,7 @@ var ChatFiles = class {
20361
20375
  return;
20362
20376
  case "pf-wait":
20363
20377
  if (record.state === "paused" && record.pausedBy === "me") return;
20378
+ if (frame.why === "paused" ? record.state === "paused" && record.pausedBy === "peer" : record.state === "asking" && record.waitingFor === (frame.why === "busy" ? "busy" : "consent")) return;
20364
20379
  out.generation++;
20365
20380
  out.next = record.confirmed;
20366
20381
  clearTimeout(out.timer);
@@ -20461,6 +20476,7 @@ var ChatFiles = class {
20461
20476
  const entry = this.entry(direction, id), { record } = entry;
20462
20477
  if (transferEnded(record) || record.state === "verifying" || record.state === "paused" && record.pausedBy === "me") return;
20463
20478
  if (direction === "in" && record.state === "asking") return;
20479
+ if (sentWhole(record)) return;
20464
20480
  record.state = "paused";
20465
20481
  record.pausedBy = "me";
20466
20482
  if (entry.out) {
@@ -27091,6 +27107,993 @@ var GhostLink = class {
27091
27107
  }
27092
27108
  };
27093
27109
  //#endregion
27110
+ //#region ../core/src/pictureMetadata.ts
27111
+ /**
27112
+ * What a picture leaves with. A photo's file says more than its pixels: its Exif and XMP hold where it was taken, the
27113
+ * device, the time, often a thumbnail of the uncropped original. The sender removes them before the file is stored and
27114
+ * its digest computed, so what the contact (or anyone in a community) receives is the picture alone: JPEG, PNG, WebP
27115
+ * and HEIF (HEIC, AVIF), without decoding or re-encoding a pixel.
27116
+ *
27117
+ * Fail-closed: a file that is one of these pictures, by its bytes or by its type, and whose metadata cannot be removed
27118
+ * (truncated, malformed, a part this does not know) is refused with `NO_PICTURE_METADATA`, never sent as it was. Any
27119
+ * other file goes as it is.
27120
+ */
27121
+ var PICTURE_METADATA_LIMITS = {
27122
+ /** The largest picture read whole to remove its metadata: past this it is refused. */
27123
+ maxBytes: 268435456,
27124
+ /** Bytes read first to tell a picture from another file. */
27125
+ headBytes: 64
27126
+ };
27127
+ /** Why a picture is refused: its metadata could not be removed, so it does not go at all. */
27128
+ var NO_PICTURE_METADATA = "This picture cannot be sent: Ghostly could not remove the details saved in it, like where it was taken";
27129
+ /** The types of the pictures stripped here: a file of one of them whose bytes are not that picture is refused. */
27130
+ var STRIPPED_TYPES$1 = /* @__PURE__ */ new Set([
27131
+ "image/jpeg",
27132
+ "image/jpg",
27133
+ "image/pjpeg",
27134
+ "image/png",
27135
+ "image/apng",
27136
+ "image/webp",
27137
+ "image/heic",
27138
+ "image/heif",
27139
+ "image/heic-sequence",
27140
+ "image/heif-sequence",
27141
+ "image/avif",
27142
+ "image/gif",
27143
+ "image/tiff",
27144
+ "image/tiff-fx"
27145
+ ]);
27146
+ /** HEIF brands (HEIC, AVIF, the generic `mif1`): an MP4 video's `ftyp` names none of them. */
27147
+ var HEIF_BRANDS = /* @__PURE__ */ new Set([
27148
+ "heic",
27149
+ "heix",
27150
+ "heim",
27151
+ "heis",
27152
+ "hevc",
27153
+ "hevx",
27154
+ "mif1",
27155
+ "mif2",
27156
+ "msf1",
27157
+ "avif",
27158
+ "avis"
27159
+ ]);
27160
+ var u16be = (b, at) => b[at] << 8 | b[at + 1];
27161
+ var u32be$1 = (b, at) => (b[at] << 24 >>> 0) + (b[at + 1] << 16) + (b[at + 2] << 8) + b[at + 3];
27162
+ var u32le = (b, at) => (b[at] | b[at + 1] << 8 | b[at + 2] << 16 | b[at + 3] << 24) >>> 0;
27163
+ var text$1 = (b, at, length) => String.fromCharCode(...b.subarray(at, at + length));
27164
+ var starts = (b, at, prefix) => at + prefix.length <= b.length && text$1(b, at, prefix.length) === prefix;
27165
+ /** A picture this strips, by its first bytes. */
27166
+ function kindOf(b) {
27167
+ if (b.length >= 3 && b[0] === 255 && b[1] === 216 && b[2] === 255) return "jpeg";
27168
+ if (b.length >= 8 && b[0] === 137 && starts(b, 1, "PNG\r\n\n")) return "png";
27169
+ if (b.length >= 12 && starts(b, 0, "RIFF") && starts(b, 8, "WEBP")) return "webp";
27170
+ if (starts(b, 0, "GIF87a") || starts(b, 0, "GIF89a")) return "gif";
27171
+ if (starts(b, 0, "II*\0") || starts(b, 0, "MM\0*") || starts(b, 0, "II+\0") || starts(b, 0, "MM\0+")) return "tiff";
27172
+ if (b.length >= 16 && starts(b, 4, "ftyp")) {
27173
+ const end = Math.min(b.length, u32be$1(b, 0));
27174
+ for (let at = 8; at + 4 <= end; at += 4) if (at !== 12 && HEIF_BRANDS.has(text$1(b, at, 4))) return "heif";
27175
+ }
27176
+ }
27177
+ /** Refuses the picture where its bytes are not what this expects. */
27178
+ function check$1(ok) {
27179
+ if (!ok) throw new Error(NO_PICTURE_METADATA);
27180
+ }
27181
+ /** SOFn markers: every frame type but DHT (C4), JPG (C8) and DAC (CC). */
27182
+ var JPEG_FRAME = /* @__PURE__ */ new Set([
27183
+ 192,
27184
+ 193,
27185
+ 194,
27186
+ 195,
27187
+ 197,
27188
+ 198,
27189
+ 199,
27190
+ 201,
27191
+ 202,
27192
+ 203,
27193
+ 205,
27194
+ 206,
27195
+ 207
27196
+ ]);
27197
+ function jpegKeeps(marker, b, payload) {
27198
+ if (marker >= 192 && marker <= 207 || marker >= 218 && marker <= 223) return true;
27199
+ if (marker === 224) return starts(b, payload, "JFIF\0");
27200
+ if (marker === 226) return starts(b, payload, "ICC_PROFILE\0");
27201
+ if (marker === 238) return starts(b, payload, "Adobe");
27202
+ return false;
27203
+ }
27204
+ /** An APP1 Exif, big-endian, whose IFD0 holds `orientation` alone. */
27205
+ var orientationOnly = (orientation) => Uint8Array.of(255, 225, 0, 34, 69, 120, 105, 102, 0, 0, 77, 77, 0, 42, 0, 0, 0, 8, 0, 1, 1, 18, 0, 3, 0, 0, 0, 1, 0, orientation, 0, 0, 0, 0, 0, 0);
27206
+ function stripJpeg(b) {
27207
+ const parts = [b.subarray(0, 2)];
27208
+ let at = 2, framed = false, scanned = false, exif = false;
27209
+ for (;;) {
27210
+ check$1(at < b.length && b[at] === 255);
27211
+ while (at < b.length && b[at] === 255) at++;
27212
+ check$1(at < b.length);
27213
+ const marker = b[at++];
27214
+ if (marker === 217) {
27215
+ check$1(framed && scanned);
27216
+ parts.push(Uint8Array.of(255, 217));
27217
+ return parts;
27218
+ }
27219
+ if (marker === 1 || marker >= 208 && marker <= 215) {
27220
+ parts.push(Uint8Array.of(255, marker));
27221
+ continue;
27222
+ }
27223
+ check$1(marker !== 0 && marker !== 216 && at + 2 <= b.length);
27224
+ const length = u16be(b, at);
27225
+ check$1(length >= 2 && at + length <= b.length);
27226
+ if (jpegKeeps(marker, b, at + 2)) {
27227
+ parts.push(Uint8Array.of(255, marker), b.subarray(at, at + length));
27228
+ if (JPEG_FRAME.has(marker)) framed = true;
27229
+ } else if (marker === 225 && !scanned && !exif && starts(b, at + 2, "Exif\0\0")) {
27230
+ exif = true;
27231
+ const orientation = exifOrientation(b, at + 8, at + length);
27232
+ if (orientation >= 2) parts.push(orientationOnly(orientation));
27233
+ }
27234
+ at += length;
27235
+ if (marker !== 218) continue;
27236
+ check$1(framed);
27237
+ scanned = true;
27238
+ let end = at;
27239
+ for (;;) {
27240
+ end = b.indexOf(255, end);
27241
+ check$1(end >= 0);
27242
+ let next = end + 1;
27243
+ while (next < b.length && b[next] === 255) next++;
27244
+ check$1(next < b.length);
27245
+ if (b[next] !== 0 && !(b[next] >= 208 && b[next] <= 215)) break;
27246
+ end = next + 1;
27247
+ }
27248
+ parts.push(b.subarray(at, end));
27249
+ at = end;
27250
+ }
27251
+ }
27252
+ var PNG_CRITICAL = /* @__PURE__ */ new Set([
27253
+ "IHDR",
27254
+ "PLTE",
27255
+ "IDAT",
27256
+ "IEND"
27257
+ ]);
27258
+ var PNG_DRAWS = /* @__PURE__ */ new Set([
27259
+ "tRNS",
27260
+ "gAMA",
27261
+ "cHRM",
27262
+ "sRGB",
27263
+ "iCCP",
27264
+ "sBIT",
27265
+ "bKGD",
27266
+ "pHYs",
27267
+ "cICP",
27268
+ "mDCV",
27269
+ "cLLI",
27270
+ "acTL",
27271
+ "fcTL",
27272
+ "fdAT"
27273
+ ]);
27274
+ function stripPng(b) {
27275
+ const parts = [b.subarray(0, 8)];
27276
+ let at = 8;
27277
+ for (;;) {
27278
+ check$1(at + 12 <= b.length);
27279
+ const length = u32be$1(b, at), type = text$1(b, at + 4, 4);
27280
+ check$1(at + 12 + length <= b.length && (at > 8 || type === "IHDR"));
27281
+ const critical = (b[at + 4] & 32) === 0;
27282
+ check$1(!critical || PNG_CRITICAL.has(type));
27283
+ if (critical || PNG_DRAWS.has(type)) parts.push(b.subarray(at, at + 12 + length));
27284
+ at += 12 + length;
27285
+ if (type === "IEND") return parts;
27286
+ }
27287
+ }
27288
+ var WEBP_KEEPS = /* @__PURE__ */ new Set([
27289
+ "VP8 ",
27290
+ "VP8L",
27291
+ "VP8X",
27292
+ "ALPH",
27293
+ "ANIM",
27294
+ "ANMF",
27295
+ "ICCP"
27296
+ ]);
27297
+ function stripWebp(b) {
27298
+ check$1(b.length >= 20);
27299
+ const riffEnd = 8 + u32le(b, 4);
27300
+ check$1(riffEnd <= b.length && riffEnd % 2 === 0);
27301
+ const parts = [];
27302
+ let at = 12, size = 4, drawn = false;
27303
+ while (at < riffEnd) {
27304
+ check$1(at + 8 <= riffEnd);
27305
+ const type = text$1(b, at, 4), length = u32le(b, at + 4), end = at + 8 + length + (length & 1);
27306
+ check$1(end <= riffEnd && (at > 12 || type === "VP8 " || type === "VP8L" || type === "VP8X"));
27307
+ if (WEBP_KEEPS.has(type)) {
27308
+ let chunk = b.subarray(at, end);
27309
+ if (type === "VP8X") {
27310
+ check$1(length >= 10);
27311
+ chunk = chunk.slice();
27312
+ chunk[8] = chunk[8] & -13;
27313
+ }
27314
+ if (type === "VP8 " || type === "VP8L" || type === "ANMF") drawn = true;
27315
+ parts.push(chunk);
27316
+ size += chunk.length;
27317
+ }
27318
+ at = end;
27319
+ }
27320
+ check$1(drawn);
27321
+ const header = /* @__PURE__ */ new Uint8Array(12);
27322
+ header.set(b.subarray(0, 12));
27323
+ new DataView(header.buffer).setUint32(4, size, true);
27324
+ return [header, ...parts];
27325
+ }
27326
+ var HEIF_TOP = /* @__PURE__ */ new Set([
27327
+ "ftyp",
27328
+ "meta",
27329
+ "mdat",
27330
+ "free",
27331
+ "skip"
27332
+ ]);
27333
+ var HEIF_META = /* @__PURE__ */ new Set([
27334
+ "hdlr",
27335
+ "dinf",
27336
+ "pitm",
27337
+ "iloc",
27338
+ "iinf",
27339
+ "iref",
27340
+ "iprp",
27341
+ "idat",
27342
+ "grpl",
27343
+ "free",
27344
+ "skip"
27345
+ ]);
27346
+ /** Items that hold metadata: Exif, and XMP (or any other document) as a MIME item. */
27347
+ var HEIF_METADATA_ITEMS = /* @__PURE__ */ new Set([
27348
+ "Exif",
27349
+ "mime",
27350
+ "uri "
27351
+ ]);
27352
+ function boxes$1(b, start, end) {
27353
+ const found = [];
27354
+ for (let at = start; at < end;) {
27355
+ check$1(at + 8 <= end);
27356
+ let size = u32be$1(b, at), body = at + 8;
27357
+ const type = text$1(b, at + 4, 4);
27358
+ if (size === 1) {
27359
+ check$1(at + 16 <= end);
27360
+ size = u32be$1(b, at + 8) * 2 ** 32 + u32be$1(b, at + 12);
27361
+ body = at + 16;
27362
+ } else if (size === 0) size = end - at;
27363
+ if (type === "uuid") body += 16;
27364
+ check$1(size >= body - at && at + size <= end);
27365
+ found.push({
27366
+ type,
27367
+ start: at,
27368
+ body,
27369
+ end: at + size
27370
+ });
27371
+ at += size;
27372
+ }
27373
+ return found;
27374
+ }
27375
+ function stripHeif(b) {
27376
+ const top = boxes$1(b, 0, b.length);
27377
+ check$1(top[0]?.type === "ftyp" && top.every((box) => HEIF_TOP.has(box.type)));
27378
+ const metas = top.filter((box) => box.type === "meta");
27379
+ check$1(metas.length === 1);
27380
+ const meta = metas[0];
27381
+ const children = boxes$1(b, meta.body + 4, meta.end);
27382
+ check$1(children.every((box) => HEIF_META.has(box.type)));
27383
+ const one = (type) => {
27384
+ const of = children.filter((box) => box.type === type);
27385
+ check$1(of.length <= 1);
27386
+ return of[0];
27387
+ };
27388
+ const iinf = one("iinf"), iloc = one("iloc"), idat = one("idat");
27389
+ check$1(!!iinf && !!iloc);
27390
+ const metadata = /* @__PURE__ */ new Set();
27391
+ const infeVersion = b[iinf.body];
27392
+ const entries = boxes$1(b, iinf.body + 4 + (infeVersion === 0 ? 2 : 4), iinf.end);
27393
+ for (const infe of entries) {
27394
+ check$1(infe.type === "infe" && infe.body + 4 <= infe.end);
27395
+ const version = b[infe.body];
27396
+ check$1(version === 2 || version === 3);
27397
+ let at = infe.body + 4;
27398
+ const id = version === 2 ? u16be(b, at) : u32be$1(b, at);
27399
+ at += version === 2 ? 2 : 4;
27400
+ check$1(at + 6 <= infe.end);
27401
+ if (HEIF_METADATA_ITEMS.has(text$1(b, at + 2, 4))) metadata.add(id);
27402
+ }
27403
+ const out = b.slice();
27404
+ const version = b[iloc.body];
27405
+ check$1(version <= 2);
27406
+ let at = iloc.body + 4;
27407
+ /** The next field of `size` bytes (0, 2, 4 or 8), big-endian. */
27408
+ const read = (size) => {
27409
+ check$1(at + size <= iloc.end);
27410
+ 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;
27411
+ check$1(Number.isSafeInteger(value));
27412
+ at += size;
27413
+ return value;
27414
+ };
27415
+ const read2 = () => read(2);
27416
+ check$1(at + 2 <= iloc.end);
27417
+ const offsetSize = b[at] >> 4, lengthSize = b[at] & 15, baseSize = b[at + 1] >> 4, indexSize = version > 0 ? b[at + 1] & 15 : 0;
27418
+ check$1([
27419
+ offsetSize,
27420
+ lengthSize,
27421
+ baseSize,
27422
+ indexSize
27423
+ ].every((size) => size === 0 || size === 4 || size === 8));
27424
+ at += 2;
27425
+ const count = read(version < 2 ? 2 : 4);
27426
+ for (let i = 0; i < count; i++) {
27427
+ const id = version < 2 ? read2() : read(4);
27428
+ const method = version > 0 ? read2() & 15 : 0;
27429
+ const reference = read2();
27430
+ const base = read(baseSize);
27431
+ const extents = read2();
27432
+ for (let e = 0; e < extents; e++) {
27433
+ if (indexSize) read(indexSize);
27434
+ const offset = read(offsetSize), length = read(lengthSize);
27435
+ if (!metadata.has(id)) continue;
27436
+ check$1(reference === 0 && length > 0 && (method === 0 || method === 1 && !!idat));
27437
+ const start = (method === 1 ? idat.body : 0) + base + offset, limit = method === 1 ? idat.end : b.length;
27438
+ check$1(start + length <= limit);
27439
+ out.fill(0, start, start + length);
27440
+ }
27441
+ }
27442
+ return [out];
27443
+ }
27444
+ var GIF_APPS_KEPT = /* @__PURE__ */ new Set([
27445
+ "NETSCAPE2.0",
27446
+ "ANIMEXTS1.0",
27447
+ "ICCRGBG1012"
27448
+ ]);
27449
+ function stripGif(b) {
27450
+ check$1(b.length >= 13);
27451
+ /** A colour table's bytes, from the flags that say it is there and its size. */
27452
+ const table = (flags) => flags & 128 ? 3 << (flags & 7) + 1 : 0;
27453
+ /** The end of the data sub-blocks at `at`, past their empty block. */
27454
+ const blocks = (at) => {
27455
+ for (;;) {
27456
+ check$1(at < b.length);
27457
+ const length = b[at];
27458
+ at += 1 + length;
27459
+ if (!length) return at;
27460
+ }
27461
+ };
27462
+ let at = 13 + table(b[10]), framed = false;
27463
+ check$1(at <= b.length);
27464
+ const parts = [b.subarray(0, at)];
27465
+ for (;;) {
27466
+ check$1(at < b.length);
27467
+ const introducer = b[at];
27468
+ if (introducer === 59) {
27469
+ check$1(framed);
27470
+ parts.push(Uint8Array.of(59));
27471
+ return parts;
27472
+ }
27473
+ if (introducer === 44) {
27474
+ check$1(at + 10 <= b.length);
27475
+ const data = at + 10 + table(b[at + 9]);
27476
+ check$1(data < b.length);
27477
+ const end = blocks(data + 1);
27478
+ parts.push(b.subarray(at, end));
27479
+ framed = true;
27480
+ at = end;
27481
+ continue;
27482
+ }
27483
+ check$1(introducer === 33 && at + 2 < b.length);
27484
+ const label = b[at + 1], end = blocks(at + 2);
27485
+ const app = label === 255 && b[at + 2] === 11 && GIF_APPS_KEPT.has(text$1(b, at + 3, 11));
27486
+ if (label === 249 || label === 1 || app) parts.push(b.subarray(at, end));
27487
+ else check$1(label === 254 || label === 255);
27488
+ at = end;
27489
+ }
27490
+ }
27491
+ var TIFF_DRAWS = /* @__PURE__ */ new Set([
27492
+ 254,
27493
+ 255,
27494
+ 256,
27495
+ 257,
27496
+ 258,
27497
+ 259,
27498
+ 262,
27499
+ 263,
27500
+ 264,
27501
+ 265,
27502
+ 266,
27503
+ 273,
27504
+ 274,
27505
+ 277,
27506
+ 278,
27507
+ 279,
27508
+ 280,
27509
+ 281,
27510
+ 282,
27511
+ 283,
27512
+ 284,
27513
+ 286,
27514
+ 287,
27515
+ 290,
27516
+ 291,
27517
+ 292,
27518
+ 293,
27519
+ 296,
27520
+ 297,
27521
+ 301,
27522
+ 317,
27523
+ 318,
27524
+ 319,
27525
+ 320,
27526
+ 321,
27527
+ 322,
27528
+ 323,
27529
+ 324,
27530
+ 325,
27531
+ 332,
27532
+ 334,
27533
+ 336,
27534
+ 338,
27535
+ 339,
27536
+ 340,
27537
+ 341,
27538
+ 529,
27539
+ 530,
27540
+ 531,
27541
+ 532,
27542
+ 34675
27543
+ ]);
27544
+ /** Text and documents about the picture: DocumentName to HostComputer, InkNames, XMP, Copyright, IPTC, Photoshop, Windows' XP tags, PrintIM. */
27545
+ var TIFF_METADATA = /* @__PURE__ */ new Set([
27546
+ 269,
27547
+ 270,
27548
+ 271,
27549
+ 272,
27550
+ 285,
27551
+ 305,
27552
+ 306,
27553
+ 315,
27554
+ 316,
27555
+ 333,
27556
+ 700,
27557
+ 33432,
27558
+ 33723,
27559
+ 34377,
27560
+ 18246,
27561
+ 18249,
27562
+ 40091,
27563
+ 40092,
27564
+ 40093,
27565
+ 40094,
27566
+ 40095,
27567
+ 50341
27568
+ ]);
27569
+ /** The IFDs of Exif, GPS and interoperability, emptied whole. */
27570
+ var TIFF_METADATA_IFDS = /* @__PURE__ */ new Set([
27571
+ 34665,
27572
+ 34853,
27573
+ 40965
27574
+ ]);
27575
+ /** Compression without JPEG: none, CCITT, LZW, Deflate, PackBits. */
27576
+ var TIFF_COMPRESSION = /* @__PURE__ */ new Set([
27577
+ 1,
27578
+ 2,
27579
+ 3,
27580
+ 4,
27581
+ 5,
27582
+ 8,
27583
+ 32773,
27584
+ 32946
27585
+ ]);
27586
+ /** Bytes per value of each field type. */
27587
+ var TIFF_TYPE_BYTES = [
27588
+ 0,
27589
+ 1,
27590
+ 1,
27591
+ 2,
27592
+ 4,
27593
+ 8,
27594
+ 1,
27595
+ 1,
27596
+ 2,
27597
+ 4,
27598
+ 8,
27599
+ 4,
27600
+ 8,
27601
+ 4
27602
+ ];
27603
+ function stripTiff(b) {
27604
+ const little = b[0] === 73;
27605
+ const u16 = (at) => {
27606
+ check$1(at + 2 <= b.length);
27607
+ return little ? b[at] | b[at + 1] << 8 : u16be(b, at);
27608
+ };
27609
+ const u32 = (at) => {
27610
+ check$1(at + 4 <= b.length);
27611
+ return little ? u32le(b, at) : u32be$1(b, at);
27612
+ };
27613
+ check$1(b.length >= 8 && u16(2) === 42);
27614
+ const out = b.slice(), seen = /* @__PURE__ */ new Set();
27615
+ /** An IFD's entries: tag, type, the value's first byte (in the entry or where it points) and its bytes. */
27616
+ const entries = (ifd) => {
27617
+ check$1(ifd >= 8 && !seen.has(ifd) && seen.size < 1024);
27618
+ seen.add(ifd);
27619
+ const count = u16(ifd), next = ifd + 2 + count * 12;
27620
+ u32(next);
27621
+ return {
27622
+ next,
27623
+ list: Array.from({ length: count }, (_, i) => {
27624
+ const at = ifd + 2 + i * 12, tag = u16(at), type = u16(at + 2);
27625
+ check$1(type >= 1 && type < TIFF_TYPE_BYTES.length);
27626
+ const bytes = TIFF_TYPE_BYTES[type] * u32(at + 4);
27627
+ const value = bytes <= 4 ? at + 8 : u32(at + 8);
27628
+ check$1(Number.isSafeInteger(bytes) && value + bytes <= b.length);
27629
+ return {
27630
+ at,
27631
+ tag,
27632
+ type,
27633
+ value,
27634
+ bytes
27635
+ };
27636
+ })
27637
+ };
27638
+ };
27639
+ /** An Exif, GPS or interoperability IFD: every value zeroed, then the IFD itself, so it holds no entry. */
27640
+ const empty = (ifd) => {
27641
+ const { next, list } = entries(ifd);
27642
+ for (const entry of list) {
27643
+ check$1(entry.tag !== 37500);
27644
+ if (TIFF_METADATA_IFDS.has(entry.tag)) empty(u32(entry.value));
27645
+ out.fill(0, entry.value, entry.value + entry.bytes);
27646
+ }
27647
+ out.fill(0, ifd, next + 4);
27648
+ };
27649
+ for (let ifd = u32(4); ifd;) {
27650
+ const { next, list } = entries(ifd);
27651
+ let kept = 0;
27652
+ for (const { at, tag, value, bytes } of list) {
27653
+ if (tag === 259) check$1(TIFF_COMPRESSION.has(u16(value)));
27654
+ if (TIFF_METADATA_IFDS.has(tag)) {
27655
+ empty(u32(value));
27656
+ continue;
27657
+ }
27658
+ if (TIFF_METADATA.has(tag)) out.fill(0, value, value + bytes);
27659
+ else check$1(TIFF_DRAWS.has(tag));
27660
+ out.copyWithin(ifd + 2 + kept++ * 12, at, at + 12);
27661
+ }
27662
+ check$1(kept > 0);
27663
+ const end = ifd + 2 + kept * 12;
27664
+ out.set(little ? [kept & 255, kept >> 8] : [kept >> 8, kept & 255], ifd);
27665
+ out.set(b.subarray(next, next + 4), end);
27666
+ out.fill(0, end + 4, next + 4);
27667
+ ifd = u32(next);
27668
+ }
27669
+ return [out];
27670
+ }
27671
+ var STRIP = {
27672
+ jpeg: stripJpeg,
27673
+ png: stripPng,
27674
+ webp: stripWebp,
27675
+ heif: stripHeif,
27676
+ gif: stripGif,
27677
+ tiff: stripTiff
27678
+ };
27679
+ /**
27680
+ * A picture's bytes without its metadata, as parts to put in a Blob; undefined when the file is not a picture this
27681
+ * strips (by its bytes and its type), so it goes as it is. Throws `NO_PICTURE_METADATA` when it is one but its
27682
+ * metadata cannot be removed.
27683
+ */
27684
+ function stripPictureMetadata(bytes, mime) {
27685
+ const kind = kindOf(bytes);
27686
+ if (!kind) {
27687
+ if (STRIPPED_TYPES$1.has(mime.split(";")[0].trim().toLowerCase())) throw new Error(NO_PICTURE_METADATA);
27688
+ return;
27689
+ }
27690
+ return STRIP[kind](bytes);
27691
+ }
27692
+ /**
27693
+ * Whether a file is a picture whose metadata goes before it is sent, by its first `PICTURE_METADATA_LIMITS.headBytes`
27694
+ * bytes or by its type: then it is read whole and stripped (`stripPictureMetadata`), else it goes as it is.
27695
+ */
27696
+ function isStrippedPicture(head, mime) {
27697
+ return !!kindOf(head) || STRIPPED_TYPES$1.has(mime.split(";")[0].trim().toLowerCase());
27698
+ }
27699
+ /**
27700
+ * `source` as it is sent: without its metadata when it is a picture (`stripPictureMetadata`), or undefined when it is
27701
+ * not one and goes as it is. Only its first bytes are read for any other file. Throws `NO_PICTURE_METADATA` for a
27702
+ * picture that cannot be stripped or is past `PICTURE_METADATA_LIMITS.maxBytes`; an error reading `source` as it is.
27703
+ */
27704
+ async function withoutPictureMetadata(source, mime) {
27705
+ if (!isStrippedPicture(new Uint8Array(await source.slice(0, PICTURE_METADATA_LIMITS.headBytes).arrayBuffer()), mime)) return void 0;
27706
+ if (source.size > PICTURE_METADATA_LIMITS.maxBytes) throw new Error(NO_PICTURE_METADATA);
27707
+ const parts = stripPictureMetadata(new Uint8Array(await source.arrayBuffer()), mime);
27708
+ return parts && new Blob(parts, { type: mime });
27709
+ }
27710
+ //#endregion
27711
+ //#region ../core/src/videoMetadata.ts
27712
+ /**
27713
+ * What a video leaves with. An MP4 or QuickTime file says more than its frames: its `udta` and `meta` boxes hold where
27714
+ * it was recorded (`©xyz`, `com.apple.quicktime.location.ISO6709`), the device, often its software; a timed metadata
27715
+ * track (an iPhone's location and motion, a GoPro's GPS) holds them sample by sample. The sender removes them before
27716
+ * the file is stored and its digest computed, without decoding or re-encoding a frame: each such box becomes a `free`
27717
+ * box of the same size, zeroed, and each metadata track's samples are zeroed where they are, so no offset in the file
27718
+ * moves and it plays as it did. Only the boxes' headers, `moov` and `moof` are read; the media goes untouched.
27719
+ *
27720
+ * Fail-closed: a file that is an MP4 or QuickTime video, by its bytes or by its type, and whose metadata cannot be
27721
+ * removed (truncated, malformed, a part this does not know) is refused with `NO_VIDEO_METADATA`, never sent as it was.
27722
+ * A picture (HEIF is pictureMetadata.ts's), a file without a video track (an M4A) and any other file go as they are.
27723
+ */
27724
+ var VIDEO_METADATA_LIMITS = {
27725
+ /** The largest `moov` or `moof` read whole, and the most bytes of a metadata track's chunk: past this the video is refused. */
27726
+ maxBoxBytes: 67108864,
27727
+ /** The most top-level boxes walked (a fragmented MP4 has two per fragment). */
27728
+ maxBoxes: 1e5,
27729
+ /** Bytes read first to tell a video from another file. */
27730
+ headBytes: 64
27731
+ };
27732
+ /** Why a video is refused: its metadata could not be removed, so it does not go at all. */
27733
+ var NO_VIDEO_METADATA = "This video cannot be sent: Ghostly could not remove the details saved in it, like where it was recorded";
27734
+ /** The types of the videos stripped here: a file of one of them whose bytes are not one is refused. */
27735
+ var STRIPPED_TYPES = /* @__PURE__ */ new Set([
27736
+ "video/mp4",
27737
+ "video/quicktime",
27738
+ "video/x-m4v",
27739
+ "video/3gpp",
27740
+ "video/3gpp2"
27741
+ ]);
27742
+ /** The first box of an MP4 (`ftyp`) or of a QuickTime file written without one. */
27743
+ var FIRST_BOXES = /* @__PURE__ */ new Set([
27744
+ "ftyp",
27745
+ "moov",
27746
+ "mdat",
27747
+ "wide",
27748
+ "free",
27749
+ "skip"
27750
+ ]);
27751
+ /** Boxes that hold metadata wherever they are: emptied into `free`. */
27752
+ var METADATA = /* @__PURE__ */ new Set([
27753
+ "udta",
27754
+ "meta",
27755
+ "uuid"
27756
+ ]);
27757
+ /** At the top: what makes the movie, kept (`moov` and `moof` looked into); a preview picture, an event message, emptied. */
27758
+ var TOP_KEEPS = /* @__PURE__ */ new Set([
27759
+ "ftyp",
27760
+ "styp",
27761
+ "moov",
27762
+ "mdat",
27763
+ "moof",
27764
+ "mfra",
27765
+ "sidx",
27766
+ "ssix",
27767
+ "prft",
27768
+ "pdin",
27769
+ "free",
27770
+ "skip",
27771
+ "wide"
27772
+ ]);
27773
+ var TOP_EMPTIED = /* @__PURE__ */ new Set([
27774
+ ...METADATA,
27775
+ "pnot",
27776
+ "PICT",
27777
+ "emsg",
27778
+ "Xtra"
27779
+ ]);
27780
+ var MOOV_KEEPS = /* @__PURE__ */ new Set([
27781
+ "mvhd",
27782
+ "trak",
27783
+ "mvex",
27784
+ "iods",
27785
+ "ctab",
27786
+ "free",
27787
+ "skip",
27788
+ "wide"
27789
+ ]);
27790
+ var TRAK_KEEPS = /* @__PURE__ */ new Set([
27791
+ "tkhd",
27792
+ "edts",
27793
+ "mdia",
27794
+ "tref",
27795
+ "tapt",
27796
+ "load",
27797
+ "txas",
27798
+ "matt",
27799
+ "free",
27800
+ "skip",
27801
+ "wide"
27802
+ ]);
27803
+ /** Boxes looked into below a track (and in a fragment) for the metadata boxes in them. */
27804
+ var CONTAINERS = /* @__PURE__ */ new Set([
27805
+ "mdia",
27806
+ "minf",
27807
+ "dinf",
27808
+ "stbl",
27809
+ "edts",
27810
+ "mvex",
27811
+ "traf"
27812
+ ]);
27813
+ /** Track handlers kept as they are: picture, sound, text and subtitles, timecode, hints. `meta` tracks have their samples zeroed. */
27814
+ var HANDLERS = /* @__PURE__ */ new Set([
27815
+ "vide",
27816
+ "soun",
27817
+ "text",
27818
+ "sbtl",
27819
+ "subt",
27820
+ "clcp",
27821
+ "tmcd",
27822
+ "hint",
27823
+ "auxv",
27824
+ "pict",
27825
+ "sdsm",
27826
+ "odsm",
27827
+ "subp"
27828
+ ]);
27829
+ /** Zeros put in a Blob a part at a time. */
27830
+ var ZEROS = /* @__PURE__ */ new Uint8Array(1048576);
27831
+ var u32be = (b, at) => (b[at] << 24 >>> 0) + (b[at + 1] << 16) + (b[at + 2] << 8) + b[at + 3];
27832
+ var text = (b, at, length) => String.fromCharCode(...b.subarray(at, at + length));
27833
+ /** Refuses the video where its bytes are not what this expects. */
27834
+ function check(ok) {
27835
+ if (!ok) throw new Error(NO_VIDEO_METADATA);
27836
+ }
27837
+ /** A box's header at `at` of `b` (`base` its offset in the file), up to `end` (a size of 0 runs to it). */
27838
+ function header(b, at, end, base = 0) {
27839
+ check(at + 8 <= b.length);
27840
+ let size = u32be(b, at), body = at + 8;
27841
+ const type = text(b, at + 4, 4);
27842
+ if (size === 1) {
27843
+ check(at + 16 <= b.length);
27844
+ size = u32be(b, at + 8) * 2 ** 32 + u32be(b, at + 12);
27845
+ body = at + 16;
27846
+ } else if (size === 0) size = end - (base + at);
27847
+ if (type === "uuid") body += 16;
27848
+ check(Number.isSafeInteger(size) && size >= body - at && base + at + size <= end);
27849
+ return {
27850
+ type,
27851
+ start: base + at,
27852
+ body: base + body,
27853
+ end: base + at + size
27854
+ };
27855
+ }
27856
+ function boxes(b, start, end) {
27857
+ const found = [];
27858
+ for (let at = start; at < end;) {
27859
+ check(at + 8 <= end);
27860
+ const box = header(b.subarray(0, end), at, end);
27861
+ found.push(box);
27862
+ at = box.end;
27863
+ }
27864
+ return found;
27865
+ }
27866
+ /** A box made `free` where it is: its size kept, everything after its size zeroed. */
27867
+ function empty(b, box) {
27868
+ b.set([
27869
+ 102,
27870
+ 114,
27871
+ 101,
27872
+ 101
27873
+ ], box.start + 4);
27874
+ b.fill(0, box.start + (u32be(b, box.start) === 1 ? 16 : 8), box.end);
27875
+ }
27876
+ /** Every metadata box in a container's children (and in theirs, for the containers below a track) emptied. */
27877
+ function emptyWithin(b, start, end) {
27878
+ for (const box of boxes(b, start, end)) if (METADATA.has(box.type)) empty(b, box);
27879
+ else if (CONTAINERS.has(box.type)) emptyWithin(b, box.body, box.end);
27880
+ }
27881
+ var child = (b, parent, type) => {
27882
+ if (!parent) return void 0;
27883
+ const of = boxes(b, parent.body, parent.end).filter((box) => box.type === type);
27884
+ check(of.length <= 1);
27885
+ return of[0];
27886
+ };
27887
+ /** The byte ranges of a track's samples in the file, one per chunk, from its sample table. */
27888
+ function sampleRanges(b, stbl) {
27889
+ const stsz = child(b, stbl, "stsz"), stz2 = child(b, stbl, "stz2"), stsc = child(b, stbl, "stsc");
27890
+ const stco = child(b, stbl, "stco"), co64 = child(b, stbl, "co64");
27891
+ check(!!stsc && !!stsz !== !!stz2 && !!stco !== !!co64);
27892
+ const need = (box, at, bytes) => check(at + bytes <= box.end);
27893
+ const sizeTable = stsz ?? stz2;
27894
+ need(sizeTable, sizeTable.body, 12);
27895
+ const count = u32be(b, sizeTable.body + 8);
27896
+ let sizeOf;
27897
+ /** Samples of one size: a chunk's length is counted, not added up a sample at a time. */
27898
+ let uniform = 0;
27899
+ if (stsz) {
27900
+ uniform = u32be(b, stsz.body + 4);
27901
+ if (!uniform) need(stsz, stsz.body + 12, count * 4);
27902
+ sizeOf = (i) => u32be(b, stsz.body + 12 + i * 4);
27903
+ } else {
27904
+ const field = b[stz2.body + 7];
27905
+ check(field === 4 || field === 8 || field === 16);
27906
+ need(stz2, stz2.body + 12, Math.ceil(count * field / 8));
27907
+ const at = stz2.body + 12;
27908
+ 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;
27909
+ }
27910
+ const offsets = stco ?? co64;
27911
+ need(offsets, offsets.body, 8);
27912
+ const chunks = u32be(b, offsets.body + 4);
27913
+ need(offsets, offsets.body + 8, chunks * (co64 ? 8 : 4));
27914
+ 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);
27915
+ need(stsc, stsc.body, 8);
27916
+ const runs = u32be(b, stsc.body + 4);
27917
+ need(stsc, stsc.body + 8, runs * 12);
27918
+ const ranges = [];
27919
+ let sample = 0;
27920
+ for (let run = 0; run < runs; run++) {
27921
+ const first = u32be(b, stsc.body + 8 + run * 12), perChunk = u32be(b, stsc.body + 12 + run * 12);
27922
+ const last = run + 1 < runs ? u32be(b, stsc.body + 8 + (run + 1) * 12) : chunks + 1;
27923
+ check(first >= 1 && last > first && last <= chunks + 1);
27924
+ for (let chunk = first; chunk < last; chunk++) {
27925
+ const start = offsetOf(chunk - 1);
27926
+ check(sample + perChunk <= count);
27927
+ let length = uniform * perChunk;
27928
+ if (!uniform) for (let i = 0; i < perChunk; i++) length += sizeOf(sample + i);
27929
+ sample += perChunk;
27930
+ check(Number.isSafeInteger(start) && length <= VIDEO_METADATA_LIMITS.maxBoxBytes);
27931
+ if (length) ranges.push([start, start + length]);
27932
+ }
27933
+ }
27934
+ check(sample === count);
27935
+ return ranges;
27936
+ }
27937
+ /** Whether every data reference of a track is this file (a self-contained `url ` or `alis`). */
27938
+ function selfContained(b, minf) {
27939
+ const dref = child(b, child(b, minf, "dinf"), "dref");
27940
+ if (!dref) return false;
27941
+ return boxes(b, dref.body + 8, dref.end).every((entry) => entry.body + 4 <= entry.end && (b[entry.body + 3] & 1) === 1);
27942
+ }
27943
+ /**
27944
+ * `moov` with its metadata boxes emptied, read whole: whether it has a video track, and the byte ranges of its
27945
+ * metadata tracks' samples (zeroed by the caller where they are).
27946
+ */
27947
+ function stripMoov(b) {
27948
+ let video = false, fragmented = false;
27949
+ const zeroed = [];
27950
+ for (const box of boxes(b, header(b, 0, b.length).body, b.length)) {
27951
+ if (METADATA.has(box.type)) {
27952
+ empty(b, box);
27953
+ continue;
27954
+ }
27955
+ check(MOOV_KEEPS.has(box.type));
27956
+ if (box.type === "mvex") {
27957
+ fragmented = true;
27958
+ emptyWithin(b, box.body, box.end);
27959
+ }
27960
+ if (box.type !== "trak") continue;
27961
+ let mdia;
27962
+ for (const part of boxes(b, box.body, box.end)) {
27963
+ if (METADATA.has(part.type)) {
27964
+ empty(b, part);
27965
+ continue;
27966
+ }
27967
+ check(TRAK_KEEPS.has(part.type));
27968
+ if (part.type === "mdia") {
27969
+ check(!mdia);
27970
+ mdia = part;
27971
+ }
27972
+ }
27973
+ check(!!mdia);
27974
+ const hdlr = child(b, mdia, "hdlr"), minf = child(b, mdia, "minf");
27975
+ check(!!hdlr && !!minf && hdlr.body + 12 <= hdlr.end);
27976
+ const handler = text(b, hdlr.body + 8, 4);
27977
+ const stbl = child(b, minf, "stbl");
27978
+ check(!!stbl);
27979
+ if (handler === "meta") {
27980
+ check(selfContained(b, minf));
27981
+ for (const range of sampleRanges(b, stbl)) zeroed.push(range);
27982
+ } else check(HANDLERS.has(handler));
27983
+ if (handler === "vide") video = true;
27984
+ emptyWithin(b, box.body, box.end);
27985
+ }
27986
+ return {
27987
+ video,
27988
+ fragmented,
27989
+ zeroed
27990
+ };
27991
+ }
27992
+ /** A box's header in the file at `at`, read from it. */
27993
+ async function headerAt(source, at) {
27994
+ return header(new Uint8Array(await source.slice(at, at + 16).arrayBuffer()), 0, source.size, at);
27995
+ }
27996
+ /** A box read whole, within the limit. */
27997
+ async function whole(source, box) {
27998
+ check(box.end - box.start <= VIDEO_METADATA_LIMITS.maxBoxBytes);
27999
+ const bytes = new Uint8Array(await source.slice(box.start, box.end).arrayBuffer());
28000
+ check(bytes.length === box.end - box.start);
28001
+ return bytes;
28002
+ }
28003
+ /** An MP4 or QuickTime file, by its first box: an HEIF picture is pictureMetadata.ts's. */
28004
+ function isVideoContainer(head, mime) {
28005
+ return head.length >= 8 && FIRST_BOXES.has(text(head, 4, 4)) && !isStrippedPicture(head, mime);
28006
+ }
28007
+ /**
28008
+ * `source` as it is sent: an MP4 or QuickTime video without its metadata, made of `source`'s own bytes but for the
28009
+ * boxes and samples zeroed; undefined when it goes as it is (not one of these videos, a file without a video track).
28010
+ * Throws `NO_VIDEO_METADATA` for a video whose metadata cannot be removed; an error reading `source` as it is.
28011
+ */
28012
+ async function withoutVideoMetadata(source, mime) {
28013
+ const head = new Uint8Array(await source.slice(0, VIDEO_METADATA_LIMITS.headBytes).arrayBuffer());
28014
+ const typed = STRIPPED_TYPES.has(mime.split(";")[0].trim().toLowerCase());
28015
+ if (!isVideoContainer(head, mime)) {
28016
+ if (typed && !isStrippedPicture(head, mime)) throw new Error(NO_VIDEO_METADATA);
28017
+ return;
28018
+ }
28019
+ /** What replaces the file's bytes, by where it starts: a box rewritten, or zeros (no `bytes`). */
28020
+ const patches = [];
28021
+ const top = [];
28022
+ for (let at = 0; at < source.size;) {
28023
+ check(top.length < VIDEO_METADATA_LIMITS.maxBoxes);
28024
+ const box = await headerAt(source, at);
28025
+ if (top.length && box.type === "\0\0\0\0" && box.end === source.size) {
28026
+ patches.push({
28027
+ start: at,
28028
+ end: source.size
28029
+ });
28030
+ break;
28031
+ }
28032
+ check(TOP_KEEPS.has(box.type) || TOP_EMPTIED.has(box.type));
28033
+ top.push(box);
28034
+ at = box.end;
28035
+ }
28036
+ const moovs = top.filter((box) => box.type === "moov");
28037
+ check(moovs.length === 1);
28038
+ const moov = await whole(source, moovs[0]);
28039
+ const { video, fragmented, zeroed } = stripMoov(moov);
28040
+ if (!video && !typed) return void 0;
28041
+ patches.push({
28042
+ start: moovs[0].start,
28043
+ end: moovs[0].end,
28044
+ bytes: moov
28045
+ });
28046
+ check(!fragmented || !zeroed.length);
28047
+ for (const box of top) if (box.type === "moof") {
28048
+ const moof = await whole(source, box);
28049
+ emptyWithin(moof, box.body - box.start, moof.length);
28050
+ patches.push({
28051
+ start: box.start,
28052
+ end: box.end,
28053
+ bytes: moof
28054
+ });
28055
+ } else if (TOP_EMPTIED.has(box.type)) {
28056
+ const head = new Uint8Array(await source.slice(box.start, box.body).arrayBuffer());
28057
+ empty(head, {
28058
+ type: box.type,
28059
+ start: 0,
28060
+ body: head.length,
28061
+ end: head.length
28062
+ });
28063
+ patches.push({
28064
+ start: box.start,
28065
+ end: box.body,
28066
+ bytes: head
28067
+ }, {
28068
+ start: box.body,
28069
+ end: box.end
28070
+ });
28071
+ }
28072
+ const mdats = top.filter((box) => box.type === "mdat");
28073
+ const merged = [];
28074
+ for (const [start, end] of zeroed.sort((a, b) => a[0] - b[0])) {
28075
+ check(mdats.some((mdat) => start >= mdat.body && end <= mdat.end));
28076
+ const last = merged[merged.length - 1];
28077
+ if (last && start <= last[1]) last[1] = Math.max(last[1], end);
28078
+ else merged.push([start, end]);
28079
+ }
28080
+ for (const [start, end] of merged) patches.push({
28081
+ start,
28082
+ end
28083
+ });
28084
+ const parts = [];
28085
+ let at = 0;
28086
+ for (const patch of patches.sort((a, b) => a.start - b.start)) {
28087
+ check(patch.start >= at);
28088
+ if (patch.start > at) parts.push(source.slice(at, patch.start));
28089
+ if (patch.bytes) parts.push(patch.bytes);
28090
+ else for (let left = patch.end - patch.start; left > 0; left -= ZEROS.length) parts.push(ZEROS.subarray(0, Math.min(left, ZEROS.length)));
28091
+ at = patch.end;
28092
+ }
28093
+ if (at < source.size) parts.push(source.slice(at));
28094
+ return new Blob(parts, { type: mime });
28095
+ }
28096
+ //#endregion
27094
28097
  //#region ../core/src/payments.ts
27095
28098
  /**
27096
28099
  * Payments between two linked peers. Ghostly does not move money itself: it
@@ -33845,6 +34848,8 @@ async function verifyCommunityChainPaced(raw, groupId) {
33845
34848
  }
33846
34849
  /** `verifyCommunityChainPaced` checks commits for this long at most before it lets the thread go. */
33847
34850
  var CHAIN_SLICE_MS = 5;
34851
+ /** A fresh epoch's secret is sealed to members for this long at most before the thread goes (`CommunitySession.commit`). */
34852
+ var SEAL_SLICE_MS = 5;
33848
34853
  /** The chain's checks, one commit per step. */
33849
34854
  function* checkChain(raw, groupId) {
33850
34855
  if (!Array.isArray(raw) || raw.length === 0 || raw.length > COMMUNITY_LIMITS.chain) return { error: "Malformed membership chain" };
@@ -33969,6 +34974,8 @@ var MessagePace = class {
33969
34974
  var frameKey = (f) => `${f.e}:${f.h}:${f.n}`;
33970
34975
  /** A frame among everyone's: each member counts its own `n`, so `frameKey` alone tells only one member's frames apart. */
33971
34976
  var storeKey = (f) => `${f.s}:${frameKey(f)}`;
34977
+ /** A new link's entry seed is sealed to members for this long at most before the thread goes (`replaceLink`). */
34978
+ var ENTRY_SLICE_MS = 5;
33972
34979
  /**
33973
34980
  * Where a frame said again under a newer commit was first said (`o`, WISP 903 § Messages and catch-up): its commit's
33974
34981
  * epoch and short hash and its number there. Never the frame's own place, nor a later epoch than its own.
@@ -34960,14 +35967,18 @@ var CommunitySession = class CommunitySession {
34960
35967
  commit
34961
35968
  });
34962
35969
  if (FRESH.has(kind)) {
34963
- for (const [key] of roster) if (key !== this.myKey && isZ32Key(key)) this.hooks.addressed(key, {
34964
- t: "group-secret",
34965
- v: 2,
34966
- g: this.id,
34967
- to: key,
34968
- h: hash,
34969
- s: sealSecret(key, secret, secretAad(this.id, hash, key))
34970
- });
35970
+ const pause = pacer(SEAL_SLICE_MS);
35971
+ for (const [key] of roster) if (key !== this.myKey && isZ32Key(key)) {
35972
+ this.hooks.addressed(key, {
35973
+ t: "group-secret",
35974
+ v: 2,
35975
+ g: this.id,
35976
+ to: key,
35977
+ h: hash,
35978
+ s: sealSecret(key, secret, secretAad(this.id, hash, key))
35979
+ });
35980
+ await pause();
35981
+ }
34971
35982
  }
34972
35983
  this.hooks.changed();
34973
35984
  await this.renewLasting();
@@ -35078,9 +36089,13 @@ var CommunitySession = class CommunitySession {
35078
36089
  seedB64: entry?.seedB64 ?? ""
35079
36090
  };
35080
36091
  await this.persist();
35081
- if (entry) for (const key of this.others) {
35082
- const frame = this.entryFrame(key);
35083
- if (frame) this.hooks.addressed(key, frame);
36092
+ if (entry) {
36093
+ const pause = pacer(ENTRY_SLICE_MS);
36094
+ for (const key of this.others) {
36095
+ const frame = this.entryFrame(key);
36096
+ if (frame) this.hooks.addressed(key, frame);
36097
+ await pause();
36098
+ }
35084
36099
  }
35085
36100
  this.hooks.changed();
35086
36101
  return this.state.entry.key;
@@ -37495,6 +38510,6 @@ function x401ApprovalDigest(subject) {
37495
38510
  return toBase64Url(sha256(utf8Encode(canonical)));
37496
38511
  }
37497
38512
  //#endregion
37498
- export { COMMUNITY_LIMITS as $, decodeTxtPacket as $C, CHAT_RESERVE_MOST_SHARE as $S, handoffBusyFrame as $_, LIVENESS_MISSED_PINGS as $a, exifOrientation as $b, decodeAppRangeData as $c, DHT_TEXT_BYTES as $d, validEditMessage as $f, sdpHasCandidates as $g, UNUSED_INVITE_READS_PER_MINUTE as $h, isSparkAddress as $i, DNS_LABEL as $l, openPair as $m, MessageRefusal as $n, mayBeHub as $o, STATUS_CARD_LIMITS as $p, DidError as $r, typingKindOf as $s, GROUP_EDIT_TEXT_BYTES as $t, emptyIdentityLedger as $u, ENROLL_GRANT as $v, deviceLinkSecret as $x, openRequest as $y, readX401ProofResponseHeader as A, traceLink as AC, firstDeviceSetSecret as AS, HANDOFF_FILE_REQUEST as A_, findBolt11 as Aa, APP_PREFIXES as Ab, wakeFrame as Ac, verifyPeerProof as Ad, voicePeaksOf as Af, RTC_SIGNAL_FUTURE_MS as Ag, DIRECT_EVIDENCE_MS as Ah, jwkThumbprint as Ai, PIN_CAPABILITY as Al, MEMBER_KEY as Am, parseGroupMetaBody as An, GROUP_WANT_NO_FRAME as Ao, reactionIsNewer as Ap, parseAtprotoDidDocument as Ar, FILE_LIMITS as As, knockRecords as At, DHT_TEXT_CAPABILITY as Au, readHandoffHave as Av, isZ32Key as Aw, encodeGhostlyInvite as Ax, KNOCK_SLOTS as Ay, APP_STORE_KINDS as B, withRequestOptions as BC, turnKeys as BS, HANDOFF_RELEASE as B_, BLOCKED_DIAL_WAIT_MS as Ba, isAppRef as Bb, vapidAuthorization as Bc, TRANSPORTS as Bd, EDIT_FRAME as Bf, answersOffer as Bg, FIRST_PUBLISH_MAX_MS as Bh, TEST_USDT_FAUCET_AMOUNT as Bi, sessionCapabilitiesFrame as Bl, signCommit as Bm, SSH_PUBLIC_KEY_MAX as Bn, GROUP_SIGNAL_FRAME as Bo, readReply as Bp, parseAtprotoDidKey as Br, TYPING_RATE_LIMIT as Bs, groupWakes as Bt, IDENTITY_FRAME_WINDOW_MS as Bu, SET_ACK as Bv, __require as Bw, DEVICE_CAPABILITIES as Bx, REQUEST_TEXT_BYTES as By, buildX401TokenObject as C, WAY_BACK_SHARE as CC, TURN_SEALED_BYTES as CS, HANDOFF_BUSY as C_, parseInvoiceCallback as Ca, isAppUrl as Cb, WakeLimiter as Cc, proofHash as Cd, isPlayableAudioType as Cf, decodeControl as Cg, DATA_SETTLE_MS as Ch, decodeDidDhtPacket as Ci, APP_RANGES_CAPABILITY as Cl, GROUP_ADMIN_OFF_ERROR as Cm, groupMetaPicture as Cn, engineText as Co, nextReactionNumber as Cp, ATPROTO_PROOF_SCOPE as Cr, MAX_PAIRED_CALL_SIGNAL as Cs, KNOCK_TTL_MS as Ct, CAPS_LABEL as Cu, openHandoffPiece as Cv, trimEndOf as Cw, INVITE_LINK_ORIGIN as Cx, newInbox as Cy, readX401ProofRequest as D, readRelayBody as DC, TURN_VERSION as DS, HANDOFF_DATA as D_, resolveLightningDestination as Da, sha256Paced as Db, readWake as Dc, storageProofPath as Dd, voiceFileName as Df, wrapDataChannel as Dg, OFFER_HOST_GATHER_MS as Dh, didDhtRecords as Di, FILES_BINARY_CAPABILITY as Dl, LEGACY_GROUP_MEMBERS as Dm, keepPastGroupMeta as Dn, GROUP_HAVE_FRAME as Do, reactedFrame as Dp, checkAtprotoProofRecord as Dr, ChatFiles as Ds, entryParams as Dt, CapsExchange as Du, readHandoffData as Dv, fromBase64 as Dw, createChatInvite as Dx, turnOff as Dy, isX401Protocol as E, normalizeRelayUrl as EC, TURN_TTL as ES, HANDOFF_CANCEL_REASONS as E_, requestLnurlInvoice as Ea, readAppBundleAsync as Eb, parseWakeFrame as Ec, storageProofBody as Ed, voiceDownloadName as Ef, sendBody as Eg, GATHER_STALL_MS as Eh, didDhtKey as Ei, EDIT_CAPABILITY as El, GROUP_VERSION_LARGE as Em, groupName as En, GROUP_FILE_LIMITS as Eo, queueReaction as Ep, atprotoProofRkey as Er, parsePairedCallFrame as Es, encodeGroupEntryLink as Et, CAPS_REFRESH_MS as Eu, readHandoffCancel as Ev, concatBytes as Ew, OwnInviteError as Ex, takeRequest as Ey, appRevocationFor as F, RelayBreaker as FC, sealTurnBody as FS, HANDOFF_MANIFEST as F_, isFederationId as Fa, appRevocationId as Fb, checkPushEndpoint as Fc, validRingKey as Fd, isVideoMime as Ff, parseRtcSignal as Fg, symmetricNat as Fh, EVM_TEST_CHAINS as Fi, SessionCapabilities as Fl, expectedRoster as Fm, verifyGroupMetaSignature as Fn, readGroupHave as Fo, PAIRED_REPLY_AUTHORS as Fp, decodeAtprotoCommit as Fr, sentWhole as Fs, GROUP_WAKE_GROUP_WINDOW_MS as Ft, parsePacketTransports as Fu, readHandoffTurnFrame as Fv, utf8Decode as Fw, inviteQrText as Fx, REQUEST_CLOCK_SKEW_MS as Fy, readAppStore as G, createRelayPayload as GC, turnSequence as GS, HANDOFF_WINDOW as G_, DEMOTE_MS as Ga, readAppSignature as Gb, APP_RANGE_LIMITS as Gc, rankTransports as Gd, MAX_REMOVAL_NUMBER as Gf, contactRtcConfig as Gg, OFFER_LOOK_MS as Gh, assertWholeSats as Gi, HOLD_CAPABILITY as Gl, GROUP_PROFILE as Gm, sshFingerprint as Gn, SIGNAL_HOLD_MS as Go, BUTTON_STYLES as Gp, verifyAtprotoSignature as Gr, TYPING_TIMEOUT_MS as Gs, GROUP_READ_NOTE as Gt, IDENTITY_PROOF_CAPABILITY as Gu, setUpdateFrame as Gv, deviceEchoFrame as Gx, knockHolds as Gy, checkAppListing as H, PKARR_FUTURE_SKEW_MS as HC, turnPacket as HS, HANDOFF_TIMINGS as H_, CROSSED_PROBE_MS as Ha, readAppRevocation as Hb, APP_RANGE_DATA_KIND as Hc, checkedDescriptors as Hd, EDIT_RECEIVE_LIMIT as Hf, callRtcConfig as Hg, LinkSession as Hh, WALLET_NETWORKS as Hi, PairedSession as Hl, verifyChain as Hm, parseSshPublicKey as Hn, SIGNALS_PER_MINUTE as Ho, wireReply as Hp, readAtprotoCid as Hr, TYPING_REFRESH_MS as Hs, parseGroupWakeFrame as Ht, IDENTITY_MAX_FRAME as Hu, encodeSetSlots as Hv, DEVICE_PING_FRAME as Hx, STAMP_BITS_MAX as Hy, appStoreDecision as I, DiscoveryBudgetError as IC, signTurnBody as IS, HANDOFF_OFFER as I_, parseCashuRequestPayload as Ia, appSignedBytes as Ib, decryptPushPayload as Ic, verifyRingAuthorization as Id, parseVideoMeta as If, CALL_SIGNAL_FUTURE_MS as Ig, AWAITING_PEER_MS as Ih, ONCHAIN_PROVIDER as Ii, TYPING_CAPABILITY as Il, parseGroupCommit as Im, wrapGroupMeta as In, readGroupWant as Io, REPLY_ID as Ip, decodeDagCbor as Ir, transferEnded as Is, GROUP_WAKE_MEMBER_INTERVAL_MS as It, IDENTITY_CHALLENGE_WINDOW as Iu, readHandoffVerified as Iv, utf8Encode as Iw, ownInviteRefusal as Ix, REQUEST_LABEL as Iy, GROUP_TYPING_FRAME as J, openRelayPayload as JC, turnVerifierMark as JS, filePartName as J_, FIRST_PAIRING_PACE_MS as Ja, signAppRevocation as Jb, appRangeChunk as Jc, transportOrder as Jd, dhtEditId as Jf, heardCallSignal as Jg, PRESENCE_WINDOW as Jh, parsePaymentAmount as Ji, HoldKeys as Jl, decryptText as Jm, verifySshSignature as Jn, groupSignalFrame as Jo, PR_CHECKS as Jp, DID_GHOSTLY_SERVICE as Jr, parseTypingActivity as Js, chainPieces as Jt, IDENTITY_STATEMENT_PREFIX as Ju, verifySetUpdate as Jv, deviceKeyZ32 as Jx, knockSlotRecords as Jy, readAppStoreSteps as K, measureRecords as KC, turnSignedMessage as KS, NO_ATTEMPTS as K_, DHT_PIN_GRACE_MS as Ka, setAppSignatureFastPath as Kb, AppRanges as Kc, relayUrl as Kd, REMOVED_TEXT as Kf, decompressSdp as Kg, OFFER_STEP_MAX as Kh, formatPaymentAmount as Ki, HOLD_DATED_BACK_MS as Kl, confirmationMatches as Km, sshKeyDigestHex as Kn, SIGNAL_PROVEN_MS as Ko, CRON_LINE as Kp, DID_DOCUMENT_MAX_BYTES as Kr, TypingReceiver as Ks, GroupSession as Kt, IDENTITY_PROVIDER_ID as Ku, setUpdateMessage as Kv, deviceEchoNonce as Kx, knockSlotIdentity as Ky, appUpdateDecision as L, budgetRetryMs as LC, signTurnPacket as LS, HANDOFF_PAKE as L_, parseFedimintRequestPayload as La, checkAppRevokeStatement as Lb, encryptPushPayload as Lc, verifyRingEvidence as Ld, EDITED_FRAME as Lf, CALL_SIGNAL_MAX_AGE_MS as Lg, DEPARTED_READ_MS as Lh, PaymentPreflightError as Li, UPGRADE_CAPABILITY as Ll, rememberAlone as Lm, SSHSIG_MAX_ARMOR as Ln, readGroupWantNo as Lo, REPLY_LIMITS as Lp, encodeDagCbor as Lr, transferStalled as Ls, GROUP_WAKE_RECEIVE_LIMIT as Lt, IDENTITY_CHECK_UNAVAILABLE as Lu, sameDigest as Lv, __commonJSMin as Lw, pastedAgain as Lx, REQUEST_LIFETIME_MS as Ly, readX401ProofResultHeader as M, BREAKER_BASE_MS as MC, openTurnValue as MS, HANDOFF_HELLO as M_, cashuRequestPayload as Ma, appFingerprint as Mb, wakeRequest as Mc, ringAuthorization as Md, VIDEO_LIMITS as Mf, buildDataSdp as Mg, DIRECT_PEERS as Mh, resolveDidDht as Mi, SERVICES_CAPABILITY as Ml, SAID_AGAIN as Mm, parseGroupMetaStatement as Mn, groupFileFallback as Mo, readReaction as Mp, AtprotoCid as Mr, decodeFileData as Ms, readKnocks as Mt, dialDescriptors as Mu, readHandoffManifest as Mv, toBase64 as Mw, inviteLink as Mx, LINK_RECORD_LABEL as My, x401AnswerableRequests as N, BREAKER_MAX_MS as NC, readTurnBody as NS, HANDOFF_LATER_BYTES as N_, fedimintRequestPayload as Na, appRef as Nb, PUSH_SERVICE_HOSTS as Nc, ringClaims as Nd, formatVideoDuration as Nf, extractRtcParams as Ng, DirectPathWatch as Nh, signDidDhtPacket as Ni, SESSION_CAPABILITIES_FRAME as Nl, commitHash as Nm, parseGroupMetaTag as Nn, isGroupMessageId as No, validReactionNumber as Np, AtprotoProofError as Nr, encodeFileData as Ns, GROUP_WAKE_FRAME as Nt, emptyCapsState as Nu, readHandoffPake as Nv, toBase64Url as Nw, inviteOwnership as Nx, MAX_SEEN as Ny, readX401ProofRequestHeader as O, relayUrlProblem as OC, TurnRecordError as OS, HANDOFF_DONE as O_, BOLT11_PATTERN as Oa, yieldThread as Ob, readWakePayload as Oc, validExternalKey as Od, voiceLevel as Of, DATA_CHANNEL_ID as Og, REANSWERS as Oh, encodeDidDhtDeactivated as Oi, FILES_CAPABILITY as Ol, MAX_GROUP_CHAIN as Om, nextGroupMetaRevision as On, GROUP_VERSION_FILES as Oo, reactionEmoji as Op, isAtprotoDid as Or, FILE_DATA_KIND as Os, groupEntryUrl as Ot, CapsKeys as Ou, readHandoffDone as Ov, fromBase64Url as Ow, createLink as Ox, CONTACT_RECORD_TTL as Oy, addedAppPermissions as P, BREAKER_THRESHOLD as PC, readTurnPacket as PS, HANDOFF_LIST_PER_FRAME as P_, findEndpoint as Pa, appRefPublisher as Pb, WebPushError as Pc, ringEvidence as Pd, isPlayableVideoType as Pf, offerIsFresh as Pg, directBlocked as Ph, ETHEREUM_USDT as Pi, STATUS_CARD_CAPABILITY as Pl, commitUntaggedHash as Pm, signGroupMeta as Pn, readGroupFileMeta as Po, wireReaction as Pp, atprotoCidFor as Pr, refusalText as Ps, GROUP_WAKE_GROUP_LIMIT as Pt, encodePacketTransports as Pu, readHandoffRelease as Pv, toZ32 as Pw, inviteQrSegments as Px, MAX_SLOT_KNOCKS as Py, sealGroupTyping as Q, decodeDnsAnswers as QC, CHAT_RESERVE as QS, handoffAttemptSucceeded as Q_, INVITE_TAKEN as Qa, IMAGE_LIMITS as Qb, appRangeGetFrame as Qc, DHT_MESSAGE_TTL as Qd, parseEditedFrame as Qf, pickCallCandidates as Qg, TRANSPORTS_GONE_MS as Qh, SPARK_PROVIDER as Qi, readManifest as Ql, newEpochSecret as Qm, BIP322_REVISION as Qn, NO_HUB_POLICY as Qo, RUN_RESULTS as Qp, DID_METHODS as Qr, typingFrame as Qs, GROUP_EDIT_FRAME as Qt, boundVerifiedIdentity as Qu, ENROLL_DONE as Qv, deviceLinkSealKey as Qx, mergeContactKnocks as Qy, checkAppBeforeRun as R, heldBackError as RC, signTurnRelease as RS, HANDOFF_PIECE_BYTES as R_, ANSWERS_REFUSED_PAUSES as Ra, isAppHash as Rb, generateVapidKeys as Rc, RELAY_URL as Rd, EDIT_BUFFER_MAX as Rf, PAIRED_CALL_CANDIDATES as Rg, DHT_POLL_INTERVALS as Rh, SEPOLIA_TEST_USDT as Ri, WAKE_SESSION_CAPABILITY as Rl, rosterAdmin as Rm, SSHSIG_NAMESPACE as Rn, CARRIED_DEFER_MS as Ro, groupReplyAuthor as Rp, findInMst as Rr, TYPING_FRAME as Rs, GroupWakeLimiter as Rt, IDENTITY_CLOCK_SKEW as Ru, sealHandoffPiece as Rv, __esmMin as Rw, readInviteCode as Rx, REQUEST_NAME_UNITS as Ry, buildX401ResultArtifact as S, WATCH_SHARE as SC, TURN_REV_LIMIT as SS, HANDOFF_ATTEMPTS as S_, invoiceCallbackUrl as Sa, isAppPath as Sb, WAKE_TTL_SECONDS as Sc, proofCapability as Sd, formatVoiceDuration as Sf, decodeChunk as Sg, CONNECT_TIMEOUT_MS as Sh, DidDhtError as Si, APPS_CAPABILITY as Sl, shownTime as Sm, groupMetaNewer as Sn, engineError as So, ReactionWindow as Sp, ATPROTO_PROOF_COLLECTION as Sr, validHead as Ss, GROUP_ENTRY_PROFILE as St, CAPS_ISSUED_BACK_MS as Su, newHandoffId as Sv, stripHidden as Sw, INVITE_HRP as Sx, inboxRecord as Sy, encodeX401Header as T, currentRelays as TC, TURN_SLOTS as TS, HANDOFF_CANCEL as T_, parsePayParams as Ta, readAppBundle as Tb, newWakeToken as Tc, storageProof as Td, recordingMime as Tf, encodeControl as Tg, GATHER_ATTEMPTS as Th, didDhtFromPublicKey as Ti, CALLS_CAPABILITY as Tl, GROUP_MEMBER_CAP as Tm, groupMetaToHand as Tn, PairingTracker as To, parseReactionFrame as Tp, atprotoProofRecord as Tr, PairedCalls as Ts, decodeGroupEntryLink as Tt, CAPS_PUBLISH_SPACING_MS as Tu, readHandoffBusy as Tv, bytesEqual as Tw, INVITE_VERSION as Tx, settleRequest as Ty, checkAppStoreIndex as U, PacketTooLargeError as UC, turnPayloadSequence as US, HANDOFF_VERIFIED as U_, CROSSED_WAIT_MS as Ua, readAppRevocationShape as Ub, APP_RANGE_ERRORS as Uc, irohDescriptor as Ud, EDIT_SEND_LIMIT as Uf, callSignalHeardAt as Ug, MAX_DHT_TEXT_BYTES as Uh, arkAddressPrefix as Ui, SESSION_FRAME_MAX as Ul, verifyCommit as Um, parseSshSignature as Un, SIGNAL_CARRIERS as Uo, ACTIVE_TASK_STATUSES as Up, unsignedCommitBytes as Ur, TYPING_SEND_LIMIT as Us, GROUP_LIMITS as Ut, IDENTITY_MAX_RECEIVED as Uu, readSetUpdate as Uv, ENROLL_CAPABILITY as Ux, STAMP_BITS_MIN as Uy, APP_STORE_LIMITS as V, MAX_DNS_PACKET_BYTES as VC, turnName as VS, HANDOFF_REQUEST as V_, CROSSED_FRESH_MS as Va, isAppSignature as Vb, vapidKeysMatch as Vc, automaticTransport as Vd, EDIT_RATE_WINDOW_MS as Vf, buildSdpFromSignal as Vg, IDLE_THRESHOLD as Vh, USDT_PUBLIC_RPC as Vi, PAIRED_PROFILE as Vl, sortRoster as Vm, SshSigError as Vn, GROUP_VERSION_SIGNALS as Vo, replySnippet as Vp, parseAtprotoVerificationKey as Vr, TYPING_RATE_WINDOW_MS as Vs, mentionedMembers as Vt, IDENTITY_MAX_EVIDENCE as Vu, SET_UPDATE as Vv, __toCommonJS as Vw, DEVICE_ECHO_FRAME as Vx, STAMP_BITS_DEFAULT as Vy, readAppListing as W, RELAY_PAYLOAD_MAX_BYTES as WC, turnReleaseMessage as WS, HANDOFF_VERSION as W_, DEMOTE_AFTER_FAILURES as Wa, readAppRevocations as Wb, APP_RANGE_FRAMES as Wc, irohRelayUrl as Wd, MAX_EDITS_PER_MESSAGE as Wf, compressSdp as Wg, OFFER_FAST_MS as Wh, assertTokenUnits as Wi, SESSION_RECEIVE_PENDING as Wl, verifyCommitSignature as Wm, sameSshKey as Wn, SIGNAL_FRESH_MS as Wo, BUTTON_ID as Wp, verifyAtprotoRecordProof as Wr, TYPING_STATUS_MAX as Ws, GROUP_REACTED_FRAME as Wt, IDENTITY_MAX_VALIDITY as Wu, setAckFrame as Wv, HANDOFF_CAPABILITY as Wx, contactDay as Wy, groupTypingEpoch as X, readOwnRelayPayload as XC, BACKGROUND_WHILE_SIGNALING as XS, handoffAttemptAllowed as X_, HANDLED_WAIT_MS as Xa, verifyAppSignature as Xb, appRangeEndFrame as Xc, DHT_FILE_REFUSED as Xd, editedFrame as Xf, keepsToRelays as Xg, SIGNAL_OUT_READS as Xh, walletNetworkOf as Xi, isHoldUrl as Xl, encryptText as Xm, legacyMessageHash as Xn, GROUP_VERSION_HUBS as Xo, REMOVABLE_KINDS as Xp, DID_JWS_MAX_LENGTH as Xr, sanitizeTypingStatus as Xs, groupMessageId as Xt, IdentityCheckUnavailable as Xu, ENROLL_CANCEL as Xv, deviceLinkParams as Xx, makeStamp as Xy, GroupTypingBoard as Y, parseRelayPayload as YC, BACKGROUND_REQUESTS_PER_MINUTE as YS, handoffAckFrame as Y_, GhostLink as Ya, verifyAppRevocation as Yb, appRangeDataFrame as Yc, ACTIVE_DHT_POLL_MS as Yd, editFrame as Yf, isGlobalIpv4Host as Yg, RELAY_POLL_INTERVALS as Yh, validatePaymentTarget as Yi, HoldRefusedError as Yl, edgeParams as Ym, isLegacySignature as Yn, readGroupSignal as Yo, PR_STATES as Yp, DID_JWS_ALGS as Yr, parseTypingFrame as Ys, frameBytes as Yt, IDENTITY_SUBJECT as Yu, DEVICE_KINDS as Yv, deviceLinkPairing as Yx, linkRecords as Yy, openGroupTyping as Z, signRelayPayload as ZC, BACKGROUND_WRITES_SHARE as ZS, handoffAttemptFailed as Z_, INVITER_DIAL_GRACE_MS as Za, verifyAppStatementBytes as Zb, appRangeErrorFrame as Zc, DHT_FILE_TOO_LARGE as Zd, parseEditFrame as Zf, parseCallSignal as Zg, STALLED_LOOK_MS as Zh, SPARK_NETWORKS as Zi, newMailbox as Zl, epochKeys as Zm, verifyBitcoinMessage as Zn, MESH_HUBS as Zo, ROUTINE_STATES as Zp, DID_MAX_LENGTH as Zr, typingActivity as Zs, COMMUNITY_EDIT_FRAME as Zt, IdentityExchange as Zu, ENROLL_CANCEL_REASONS as Zv, deviceLinkRendezvousSeed as Zx, makeStampPaced as Zy, X401_PROTOCOLS as _, SIGNALING_ALLOWANCE_SHARE as _C, TURN_LABEL as _S, serviceIdFromName as __, pubkyHomeserverOf as _a, assembleAppBundle as _b, WAKE_CALL_TTL_SECONDS as _c, STORAGE_ROOT as _d, VOICE_LIMITS as _f, CHUNK_FLAG_END as _g, ratchetRoot as _h, strictBase64Url as _i, chatAppId as _l, MESSAGE_CLOCK_SKEW_MS as _m, MAX_GROUP_PICTURE_LENGTH as _n, pairedMessageFrame as _o, GROUP_REACTION_FRAME as _p, u32$1 as _r, rankHubs as _s, shortHash as _t, recordsFromWellKnown as _u, handoffStreamKey as _v, sanitizeAvatar as _w, deviceInviteJoinerKeyZ32 as _x, MAX_WAITING as _y, X401_DCQL_LIMITS as a, GROUP_BURST_MS as aC, seedSigner as aS, buildLinkRecords as a_, PUBKY_PROOF_MAX_BYTES as aa, stampHolds as ab, PIN_LIMITS as ac, newIdentityBinding as ad, DHT_FILE_CAPABILITY as af, unusedInviteWait as ag, MAX_SKIP as ah, didWebDocumentUrl as ai, APP_FRAME as al, cardLine as am, validEditText as an, PONG_WAIT_MS as ao, canonicalUrl as ap, BitcoinAddressError as ar, COMMUNITY_TOPOLOGY as as, communityHasFrame as at, NIP05_PATH as au, handoffDoneFrame as av, identityFromSeedB64 as aw, canonicalJson as ax, enrollDoneFrame as ay, buildX401ProofRequest as b, SLOW_MS as bC, TURN_NAME_BYTES as bS, viewerTag as b_, fetchLnurlJson as ba, findAppForbiddenKey as bb, WAKE_INTERVAL_MS as bc, isProofAdapter as bd, downsamplePeaks as bf, MAX_CHUNK_PAYLOAD_BYTES as bg, ratchetUnknownSession as bh, DID_DHT_TTL as bi, parseAppFrame as bl, heardTime as bm, groupMetaBody as bn, ENGINE_ERRORS as bo, REACTION_FRAME as bp, ATPROTO_DECLARED_SCOPE as br, readLobby as bs, verifyCommunityChainPaced as bt, validDomainRecord as bu, handoffVersions as bv, sanitizeDisplayText as bw, readDeviceInvite as bx, clearMissed as by, readX401DcqlQuery as c, GROUP_RATION_WINDOW_MS as cC, TURN_RAISE_READ_TIMEOUT_MS as cS, parseLinkRecords as c_, isPubkyProofFolder as ca, APP_CLIENTS as cb, parsePinFrame as cc, signIdentityPresentation as cd, readDhtFile as cf, HttpHost as cg, RATCHET_HEADER_BYTES as ch, didWebFileUrl as ci, APP_RATE_WINDOW_MS as cl, cardUrl as cm, mentionsBytes as cn, RACE_RELAYED_MS as co, linksIn as cp, decodeAnyBitcoinAddress as cr, doorHubs as cs, communityUntaggedHash as ct, dnsProofName as cu, handoffFileRequestFrame as cv, verify as cw, CONTACT_LINK_BYTES as cx, enrollMessage as cy, newX401HolderKey as d, HEDGE_MS as dC, classifyTurnRead as dS, MAX_SERVICES as d_, pubkyProofCapability as da, APP_ICON_PATH as db, pinIsNewer as dc, applyIdentityEvent as dd, formatFileSize as df, relativizeLocation as dg, RatchetBox as dh, parseDid as di, APP_VERSION_MAX as dl, removedCardText as dm, wireMentions as dn, RTC_UNSTARTED_MS as do, sanitizePreviewImage as dp, decodeWitness as dr, lobbyKeys as ds, encodeCommunityLink as dt, encodeDnsQuery as du, handoffManifestFrames as dv, generateEncryptionKey as dw, encodeContactLink as dx, readEnrollGrant as dy, CHAT_RESERVE_PER_CHAT as eC, devicePingFrame as eS, signalHasVideo as e_, sparkAddressKind as ea, readKnockSlot as eb, COMMUNITY_PIN_FRAME as ec, identityPresentationBytes as ed, DHT_TEXT_REFUSED as ef, UNUSED_INVITE_UPKEEP_MS as eg, openSecret as eh, checkDidJws as ei, encodeAppRangeData as el, TASK_STATUSES as em, carryMentions as en, LIVENESS_PING_MS as eo, validEditNumber as ep, bip322MessageHash as er, meshHubs as es, COMMUNITY_PROFILE as et, DNS_TYPE as eu, handoffCancelFrame as ev, encodeTxtPacket as ew, imageSize as ex, ENROLL_HELLO as ey, readX401SdJwtVc as f, PREVIOUS_DEFAULT_RELAYS as fC, keptAtEqualSequence as fS, SERVICES_VERSION as f_, pubkyProofFile as fa, APP_PERMISSIONS as fb, pinNumberHolds as fc, lastSharedWithMe as fd, safeBlobType as ff, resolveTargetUrl as fg, emptyRatchetState as fh, parseDidDocument as fi, AppSessions as fl, sameButtonText as fm, GROUP_META_PAST as fn, SWITCH_RETIRE_MS as fo, FORWARD_LIMITS as fp, encodeTx as fr, lobbyRecords as fs, leaveStands as ft, isPublicAddress as fu, handoffOfferFrame as fv, sealedLength as fw, readContactLink as fx, readEnrollHello as fy, X401_LIMITS as g, RelaysFailedError as gC, TURN_BODY_BYTES as gS, isViewerTag as g_, homeserverWebEndpoint as ga, appViewOf as gb, WAKE_CALL_INTERVAL_MS as gc, STORAGE_LIFETIME as gd, RECORDING_TYPES as gf, webLocalFetch as gg, ratchetOpen as gh, staticDidDocument as gi, appOpenFrame as gl, usageLeft as gm, MAX_GROUP_NAME_LENGTH as gn, pairedMessageFits as go, COMMUNITY_REACTION_FRAME as gp, txHash as gr, pickHubs as gs, rosterHash as gt, recordsFromTxt as gu, handoffRetryAfter as gv, jpegSize$1 as gw, createDeviceInvite as gx, MAX_MISSED as gy, X401_HEADERS as h, RelayTransport as hC, TOMBSTONE_TURN as hS, isValidServiceId as h_, encodeSvcbPacket as ha, appDigest as hb, DEVICE_WAKE_TTL_SECONDS as hc, PeerProofs as hd, PLAYABLE_AUDIO as hf, viewerResponseHeaders as hg, ratchetOn as hh, signingKeys as hi, appDataFrame as hl, taskProgress as hm, MAX_GROUP_NAME_BYTES as hn, WAKE_LOST_MS as ho, readForwarded as hp, sha256d as hr, newerHead as hs, leftStatement as ht, parseDomainTxt as hu, handoffRequestFrame as hv, MAX_AVATAR_SIDE as hw, DEVICE_INVITE_OWN_DEVICE as hx, MAX_DONE as hy, x401ApprovalDigest as i, FRESH_READ_MS as iC, verifyDeviceTransports as iS, RECORD_TTL as i_, isBitcoinAddress as ia, seenEntry as ib, PIN_FRAME as ic, isIdentityBinding as id, peekDhtMailbox as if, presenceSeenAt as ig, FOLLOW_MS as ih, didSignedMessages as ii, APP_DATA_MAX_BYTES as il, cardEditNumber as im, parseCommunityEdit as in, PAIRING_RETRY_MS as io, LINK_TRAILING as ip, verifyBip322 as ir, wireHubPolicy as is, communityGroupId as it, DOMAIN_TXT_MAX_BYTES as iu, handoffDigest as iv, identityFromSeed as iw, readImageMeta as ix, enrollDigits as iy, readX401ProofResult as j, BREAKER_ALL_DOWN_PROBE_MS as jC, nextTurnPosition as jS, HANDOFF_HAVE as j_, ENDPOINT as ja, APP_STATEMENT_LIMITS as jb, wakePayload as jc, RING_LIFETIME as jd, PLAYABLE_VIDEO as jf, RTC_SIGNAL_MAX_AGE_MS as jg, DIRECT_OWN_ATTEMPTS as jh, openDidDhtPayload as ji, REACTIONS_CAPABILITY as jl, OWN_FRAME_LIMIT as jm, parseGroupMetaFrame as jn, fetchesByItself as jo, readDhtReactions as jp, shortAtprotoDid as jr, FileUplink as js, mergeKnocks as jt, capsDescriptors as ju, readHandoffHello as jv, randomBytes as jw, encodeInviteCode as jx, KNOCK_SLOT_LABEL as jy, readX401ProofResponse as k, setLinkTraceSink as kC, encodeTurnFields as kS, HANDOFF_FILE_MISSING as k_, decodeBolt11 as ka, APP_NAME as kb, relayRequest as kc, verifyNostrProof as kd, voiceLevelsOf as kf, DATA_CHANNEL_LABEL as kg, STALLED_EVIDENCE_MS as kh, encodeDidDhtPacket as ki, KNOWN_SESSION_CAPABILITIES as kl, MAX_GROUP_MEMBERS as km, openGroupMeta as kn, GROUP_WANT_FRAME as ko, reactionFrame as kp, normalizeAtprotoHandle as kr, FILE_FRAMES as ks, knockIdentity as kt, CapsRefusedError as ku, readHandoffFileFrame as kv, fromZ32 as kw, decodeInviteCode as kx, ContactRequestError as ky, x401VpToken as l, GROUP_SIGNALING_ALLOWANCE_SHARE as lC, TURN_SETTLE_MS as lS, HTTP_SERVICE_PROTO as l_, newPubkyProofFolder as la, APP_CLIENT_NAME as lb, parsePinnedFrame as lc, verifyIdentityPresentation as ld, FileTransfers as lf, formatLocalTarget as lg, RATCHET_KEEP_MS as lh, didWebHost as li, APP_RESUME_GRACE_MS as ll, checkStatusCard as lm, mentionsMember as ln, REDESCRIBED_GRACE_MS as lo, parseLinkPreview as lp, decodeBitcoinAddress as lr, freshHubs as ls, decodeCommunityLink as lt, domainTxtRecord as lu, handoffHaveFrames as lv, decrypt as lw, CONTACT_LINK_VERSION as lx, enrollProofFrame as ly, x401HolderJwk as m, REQUESTS_PER_MINUTE as mC, TOMBSTONE_SEQUENCE as mS, encodeServices as m_, decodeSvcbRecords as ma, APP_VIEWS as mb, readPin as mc, PROOF_CAPABILITY as md, sanitizeMime as mf, sanitizeResponseHeaders as mg, ratchetHeard as mh, parseDidSignaturePaste as mi, appDataBytes as ml, statusCardText as mm, MAX_GROUP_META_BODY as mn, WAKE_ANSWER_GRACE_MS as mo, forwardedMany as mp, hash160 as mr, mergeLobby as ms, leaveStatement3 as mt, normalizeDomain as mu, handoffReleaseFrame as mv, MAX_AVATAR_LENGTH as mw, DEVICE_INVITE_LIFETIME_S as mx, FLOOD_PER_DAY as my, X401_RESPONSE_MODES as n, DEFAULT_RELAYS as nC, signDeviceTransports as nS, LABEL$1 as n_, sparkNetworkOf as na, requestPlaintextBytes as nb, PINNED_FRAME as nc, identityStatement as nd, LIVE_POLL_MS as nf, WATCH_PEER_MS as ng, sealSecret as nh, didGhostlyServiceEntry as ni, parseAppRangeFrame as nl, appCardUrl as nm, communityMessageAuthor as nn, PAIRED_FRAME_TOO_LARGE as no, LINK_MAX_CHARS as np, bip322ToSpend as nr, parseHubPolicy as ns, GROUP_READ_NOTE_COMMUNITY as nt, DOMAIN_MAX_RECORDS as nu, handoffContextProof as nv, IDENTITY_MEMO_SIZE as nw, parseImageMeta as nx, enrollCancelFrame as ny, matchX401Dcql as o, GROUP_BURST_ONE_LINK as oC, webCryptoSigner as oS, emptyLinkRecords as o_, PUBKY_PROOF_ROOT as oa, APP_BUNDLE_LIMITS as ob, mayPin as oc, receivedIdentityStatus as od, dhtFileElements as of, GhostlyHttpError as og, MAX_SKIPPED_KEYS as oh, didWebFile as oi, APP_PEER_OPEN_MAX as ol, cardLinkHost as om, MENTION_EVERYONE as on, RACE_ANSWERED_MS as oo, linkEnd as op, ByteReader as or, beaconKeys as os, communityMessageId as ot, WELL_KNOWN_PATH as ou, handoffEphemeral as ov, publicKeyFromZ32 as ow, canonicalJsonBytes as ox, enrollGrantFrame as oy, sameX401HolderJwk as p, RELAY_REQUESTS_PER_MINUTE as pC, turnPutSummary as pS, decodeServices as p_, pubkyProofPath as pa, APP_SCREENSHOTS_DIR as pb, pinnedFrame as pc, PROOF_ADAPTERS as pd, sanitizeFileName as pf, sanitizeRequestHeaders as pg, isRatcheted as ph, parseDidJws as pi, appCloseFrame as pl, statusCardBytes as pm, GROUP_META_PAST_CHARS as pn, UNPROVEN_AUTH_MS as po, forwardedAgain as pp, encodeWitness as pr, mergeBeacon as ps, leaveStatement as pt, nip05RootKey as pu, handoffPakeFrame as pv, tryDecrypt as pw, DEVICE_INVITE_BYTES as px, verifyEnrollProof as py, signAppStore as q, newerPacket as qC, turnStatedVerifier as qS, filePartDigest as q_, EARLY_DIAL_JOIN_MS as qa, signAppObject as qb, appRangeCancelFrame as qc, relayedTransports as qd, RateWindow as qf, extractParamsFromSdp as qg, PRESENCE_HEARTBEAT as qh, isWalletNetwork as qi, HOLD_LIMITS as ql, confirmationTag as qm, sshSignCommand as qn, SIGNAL_REPLY_MS as qo, ITEM_STATES as qp, DID_FILE_MAX_BYTES as qr, TypingSender as qs, asWritten as qt, IDENTITY_REVOCATION_LABEL as qu, signTombstone as qv, deviceFrameCapability as qx, knockSlotOf as qy, readX401OpenId4VpRequest as r, DEPARTED_READS as rC, unsignedDeviceTransports as rS, MAX_MSGS_PAYLOAD_B64 as r_, BITCOIN_NETWORKS as ra, requestRecords as rb, PIN_CLOCK_SKEW_MS as rc, identityStatementText as rd, emptyDhtDeliveryState as rf, countUnusedInvite as rg, sha256Hex as rh, didJwsAlg as ri, readAppRangeFrame as rl, buttonLabelClash as rm, meshMessageRef as rn, PAIRING_ATTEMPT_MS as ro, LINK_PREVIEW_LIMITS as rp, decodeBase64 as rr, pickMeshHubs as rs, communityCommitHash as rt, DOMAIN_METHODS as ru, handoffDataFrame as rv, createIdentity as rw, previewable as rx, enrollCancelReason as ry, presentX401SdJwtVc as s, GROUP_OVER_PACE_MS as sC, TURN_PUT_WINDOW_MS as sS, isEmptyLinkPacket as s_, isPubkyKey as sa, APP_BUNDLE_MAGIC as sb, nextPinNumber as sc, revokesIdentity as sd, dhtFileId as sf, HttpClient as sg, RATCHET_CAPABILITY as sh, didWebFileNames as si, APP_RATE_LIMIT as sl, cardTimeUtc as sm, MENTION_LIMITS as sn, RACE_DIRECT_MS as so, linkStop as sp, compactSize as sr, beaconRecords as ss, communityRoster as st, decodeDnsResponse as su, handoffFileMissingFrame as sv, sign as sw, readCanonicalJson as sx, enrollHelloFrame as sy, X401_REQUEST_LIMITS as t, CHAT_WATCH_SHARE as tC, newDeviceSetSecret as tS, waitForIceGathering as t_, sparkInvoiceDetails as ta, readLinkRecord as tb, GROUP_PIN_FRAME as tc, identityRevocationValue as td, DhtDelivery as tf, UNUSED_INVITE_WAIT_MAX_MS as tg, sealPair as th, checkDidSignature as ti, isServeId as tl, appCardId as tm, communityEditFrame as tn, MAX_PAIRED_MESSAGE_FRAME as to, validRemovalNumber as tp, bip322ToSign as tr, meshRendezvous as ts, CommunitySession as tt, DOMAIN_FILE_MAX_BYTES as tu, handoffContext as tv, readDnsName as tw, isImageMime as tx, ENROLL_PROOF as ty, X401_CREDENTIAL_LIMITS as u, HEDGE_MISSING_MS as uC, TURN_VISIBLE_MS as uS, LEGACY_SERVICES as u_, normalizePubkyKey as ua, APP_FORBIDDEN_KEYS as ub, pinFrame as uc, IDENTITY_TIMELINE_MAX as ud, PREVIEWABLE_IMAGE as uf, parseLocalTarget as ug, RATCHET_OVERHEAD as uh, normalizeDid as ui, APP_SEND_LIMIT as ul, readStatusCard as um, validMentions as un, RESUME_WAIT_MS as uo, previewImageSize as up, decodeTx as ur, hubRank as us, derivedSecret as ut, domainWellKnownFile as uu, handoffHelloFrame as uv, encrypt as uw, createContactLink as ux, formatEnrollDigits as uy, X401_SCHEME as v, SIGNALING_WINDOW_MS as vC, TURN_LAST_SEQUENCE as vS, servicesFromWire as v_, LIGHTNING_DESTINATION_PATTERN as va, buildAppBundle as vb, WAKE_CALL_WAIT_MS as vc, emptyProofLedger as vd, VOICE_METER as vf, CHUNK_KIND as vg, ratchetSeal as vh, DID_DHT_MAX_PAYLOAD as vi, isAppVersion as vl, arrivalKey as vm, encodeGroupMetaBody as vn, parsePaymentNetworks as vo, QUICK_REACTIONS as vp, u64 as vr, readBeacon as vs, signCommunity as vt, recordsName as vu, handoffVerifiedFrame as vv, MAX_NICK_LENGTH as vw, deviceInviteJoinerParams as vx, NEW_PER_HOUR as vy, decodeX401Header as w, WRITE_FIRST_MS as wC, TURN_SIGNED_BYTES as wS, HANDOFF_BUSY_REASONS as w_, parseLightningDestination as wa, pacer as wb, deviceWakeRequest as wc, proofStatement as wd, parseVoiceMeta as wf, encodeChunk as wg, DataLink as wh, didDhtDocument as wi, BUTTONS_CAPABILITY as wl, GROUP_ID as wm, groupMetaTag as wn, parseEngineError as wo, parseReactedFrame as wp, atprotoDidMethod as wr, PAIRED_CALL_FRAME as ws, MAX_KNOCKS as wt, CAPS_LIMITS as wu, readHandoffAck as wv, unwrapPasted as ww, INVITE_MAX_LENGTH as wx, planKnocks as wy, buildX401ProofResult as x, TURN_SOURCE_TIMEOUT_MS as xC, TURN_NO_ACTIVE as xS, HANDOFF_ACK as x_, findLightningDestination as xa, isAppLicense as xb, WAKE_SUBJECT as xc, nostrProofTemplate as xd, fileMessageText as xf, PROTOCOL_VERSION as xg, ANSWER_REFUSED_REDIALS as xh, DID_DHT_VERSION as xi, readAppFrame as xl, receivedTimestamp as xm, groupMetaChange as xn, EngineError as xo, REACTION_LIMITS as xp, ATPROTO_FULL_SCOPE as xr, shouldBeHub as xs, verifyCommunityCommit as xt, wellKnownUrl as xu, isHandoffPartName as xv, sanitizeNick as xw, DEVICE_INVITE_VERSION as xx, endedRequests as xy, X401_VERSION as y, SLOW_DEMOTE_MS as yC, TURN_MAX as yS, servicesToWire as y_, LNURL_LIMITS as ya, checkAppManifest as yb, WAKE_FRAME as yc, importedProof as yd, baseMime as yf, LIMITS as yg, ratchetSessionOf as yh, DID_DHT_PREFIX as yi, isChatAppId as yl, claimedTime as ym, groupDisplayName as yn, publishFailure as yo, REACTED_FRAME as yp, varBytes as yr, readBeaconHead as ys, verifyCommunityChain as yt, txtValue as yu, handoffVerifiedMessage as yv, hasVisible as yw, encodeDeviceInvite as yx, REOPEN_BELOW as yy, planAppUpdate as z, isDiscoveryBudgetError as zC, turnInstance as zS, HANDOFF_PIECE_OVERHEAD as z_, ANSWERS_REFUSED_PAUSE_MS as za, isAppKey as zb, pushRequest as zc, RELAY_WITH_SECRETS as zd, EDIT_BUFFER_MS as zf, RTC_CONFIG as zg, EXPECT_PEER_MS as zh, SEPOLIA_TEST_USDT_FAUCET as zi, parseSessionCapabilities as zl, rosterHas as zm, SSH_KEY_TYPES as zn, CarriedTransport as zo, pairedReplyAuthor as zp, parseAtprotoCar as zr, TYPING_KINDS as zs, groupWakeFrame as zt, IDENTITY_FRAME_LIMIT as zu, sortParts as zv, __exportAll as zw, DEVICES_CAPABILITY as zx, REQUEST_PACKET_BYTES as zy };
38513
+ export { COMMUNITY_LIMITS as $, createRelayPayload as $C, turnSequence as $S, HANDOFF_WINDOW as $_, DEMOTE_MS as $a, readAppSignature as $b, APP_RANGE_LIMITS as $c, rankTransports as $d, MAX_REMOVAL_NUMBER as $f, contactRtcConfig as $g, OFFER_LOOK_MS as $h, isSparkAddress as $i, HOLD_CAPABILITY as $l, GROUP_PROFILE as $m, MessageRefusal as $n, SIGNAL_HOLD_MS as $o, BUTTON_STYLES as $p, DidError as $r, TYPING_TIMEOUT_MS as $s, GROUP_EDIT_TEXT_BYTES as $t, IDENTITY_PROOF_CAPABILITY as $u, setUpdateFrame as $v, deviceEchoFrame as $x, knockHolds as $y, readX401ProofResponseHeader as A, WATCH_SHARE as AC, TURN_REV_LIMIT as AS, HANDOFF_ATTEMPTS as A_, findBolt11 as Aa, isAppPath as Ab, WAKE_TTL_SECONDS as Ac, proofCapability as Ad, formatVoiceDuration as Af, decodeChunk as Ag, CONNECT_TIMEOUT_MS as Ah, jwkThumbprint as Ai, APPS_CAPABILITY as Al, shownTime as Am, parseGroupMetaBody as An, engineError as Ao, ReactionWindow as Ap, parseAtprotoDidDocument as Ar, validHead as As, knockRecords as At, CAPS_ISSUED_BACK_MS as Au, newHandoffId as Av, stripHidden as Aw, INVITE_HRP as Ax, inboxRecord as Ay, APP_STORE_KINDS as B, BREAKER_BASE_MS as BC, openTurnValue as BS, HANDOFF_HELLO as B_, withoutVideoMetadata as Ba, appFingerprint as Bb, wakeRequest as Bc, ringAuthorization as Bd, VIDEO_LIMITS as Bf, buildDataSdp as Bg, DIRECT_PEERS as Bh, TEST_USDT_FAUCET_AMOUNT as Bi, SERVICES_CAPABILITY as Bl, SAID_AGAIN as Bm, SSH_PUBLIC_KEY_MAX as Bn, groupFileFallback as Bo, readReaction as Bp, parseAtprotoDidKey as Br, decodeFileData as Bs, groupWakes as Bt, dialDescriptors as Bu, readHandoffManifest as Bv, toBase64 as Bw, inviteLink as Bx, LINK_RECORD_LABEL as By, buildX401TokenObject as C, RelayTransport as CC, TOMBSTONE_TURN as CS, isValidServiceId as C_, parseInvoiceCallback as Ca, appDigest as Cb, DEVICE_WAKE_TTL_SECONDS as Cc, PeerProofs as Cd, PLAYABLE_AUDIO as Cf, viewerResponseHeaders as Cg, ratchetOn as Ch, decodeDidDhtPacket as Ci, appDataFrame as Cl, taskProgress as Cm, groupMetaPicture as Cn, WAKE_LOST_MS as Co, readForwarded as Cp, ATPROTO_PROOF_SCOPE as Cr, newerHead as Cs, KNOCK_TTL_MS as Ct, parseDomainTxt as Cu, handoffRequestFrame as Cv, MAX_AVATAR_SIDE as Cw, DEVICE_INVITE_OWN_DEVICE as Cx, MAX_DONE as Cy, readX401ProofRequest as D, SLOW_DEMOTE_MS as DC, TURN_MAX as DS, servicesToWire as D_, resolveLightningDestination as Da, checkAppManifest as Db, WAKE_FRAME as Dc, importedProof as Dd, baseMime as Df, LIMITS as Dg, ratchetSessionOf as Dh, didDhtRecords as Di, isChatAppId as Dl, claimedTime as Dm, keepPastGroupMeta as Dn, publishFailure as Do, REACTED_FRAME as Dp, checkAtprotoProofRecord as Dr, readBeaconHead as Ds, entryParams as Dt, txtValue as Du, handoffVerifiedMessage as Dv, hasVisible as Dw, encodeDeviceInvite as Dx, REOPEN_BELOW as Dy, isX401Protocol as E, SIGNALING_WINDOW_MS as EC, TURN_LAST_SEQUENCE as ES, servicesFromWire as E_, requestLnurlInvoice as Ea, buildAppBundle as Eb, WAKE_CALL_WAIT_MS as Ec, emptyProofLedger as Ed, VOICE_METER as Ef, CHUNK_KIND as Eg, ratchetSeal as Eh, didDhtKey as Ei, isAppVersion as El, arrivalKey as Em, groupName as En, parsePaymentNetworks as Eo, QUICK_REACTIONS as Ep, atprotoProofRkey as Er, readBeacon as Es, encodeGroupEntryLink as Et, recordsName as Eu, handoffVerifiedFrame as Ev, MAX_NICK_LENGTH as Ew, deviceInviteJoinerParams as Ex, NEW_PER_HOUR as Ey, appRevocationFor as F, readRelayBody as FC, TURN_VERSION as FS, HANDOFF_DATA as F_, isFederationId as Fa, sha256Paced as Fb, readWake as Fc, storageProofPath as Fd, voiceFileName as Ff, wrapDataChannel as Fg, OFFER_HOST_GATHER_MS as Fh, EVM_TEST_CHAINS as Fi, FILES_BINARY_CAPABILITY as Fl, LEGACY_GROUP_MEMBERS as Fm, verifyGroupMetaSignature as Fn, GROUP_HAVE_FRAME as Fo, reactedFrame as Fp, decodeAtprotoCommit as Fr, ChatFiles as Fs, GROUP_WAKE_GROUP_WINDOW_MS as Ft, CapsExchange as Fu, readHandoffData as Fv, fromBase64 as Fw, createChatInvite as Fx, turnOff as Fy, readAppStore as G, budgetRetryMs as GC, signTurnPacket as GS, HANDOFF_PAKE as G_, withoutPictureMetadata as Ga, checkAppRevokeStatement as Gb, encryptPushPayload as Gc, verifyRingEvidence as Gd, EDITED_FRAME as Gf, CALL_SIGNAL_MAX_AGE_MS as Gg, DEPARTED_READ_MS as Gh, assertWholeSats as Gi, UPGRADE_CAPABILITY as Gl, rememberAlone as Gm, sshFingerprint as Gn, readGroupWantNo as Go, REPLY_LIMITS as Gp, verifyAtprotoSignature as Gr, transferStalled as Gs, GROUP_READ_NOTE as Gt, IDENTITY_CHECK_UNAVAILABLE as Gu, sameDigest as Gv, __commonJSMin as Gw, pastedAgain as Gx, REQUEST_LIFETIME_MS as Gy, checkAppListing as H, BREAKER_THRESHOLD as HC, readTurnPacket as HS, HANDOFF_LIST_PER_FRAME as H_, PICTURE_METADATA_LIMITS as Ha, appRefPublisher as Hb, WebPushError as Hc, ringEvidence as Hd, isPlayableVideoType as Hf, offerIsFresh as Hg, directBlocked as Hh, WALLET_NETWORKS as Hi, STATUS_CARD_CAPABILITY as Hl, commitUntaggedHash as Hm, parseSshPublicKey as Hn, readGroupFileMeta as Ho, wireReaction as Hp, readAtprotoCid as Hr, refusalText as Hs, parseGroupWakeFrame as Ht, encodePacketTransports as Hu, readHandoffRelease as Hv, toZ32 as Hw, inviteQrSegments as Hx, MAX_SLOT_KNOCKS as Hy, appStoreDecision as I, relayUrlProblem as IC, TurnRecordError as IS, HANDOFF_DONE as I_, parseCashuRequestPayload as Ia, yieldThread as Ib, readWakePayload as Ic, validExternalKey as Id, voiceLevel as If, DATA_CHANNEL_ID as Ig, REANSWERS as Ih, ONCHAIN_PROVIDER as Ii, FILES_CAPABILITY as Il, MAX_GROUP_CHAIN as Im, wrapGroupMeta as In, GROUP_VERSION_FILES as Io, reactionEmoji as Ip, decodeDagCbor as Ir, FILE_DATA_KIND as Is, GROUP_WAKE_MEMBER_INTERVAL_MS as It, CapsKeys as Iu, readHandoffDone as Iv, fromBase64Url as Iw, createLink as Ix, CONTACT_RECORD_TTL as Iy, GROUP_TYPING_FRAME as J, withRequestOptions as JC, turnKeys as JS, HANDOFF_RELEASE as J_, BLOCKED_DIAL_WAIT_MS as Ja, isAppRef as Jb, vapidAuthorization as Jc, TRANSPORTS as Jd, EDIT_FRAME as Jf, answersOffer as Jg, FIRST_PUBLISH_MAX_MS as Jh, parsePaymentAmount as Ji, sessionCapabilitiesFrame as Jl, signCommit as Jm, verifySshSignature as Jn, GROUP_SIGNAL_FRAME as Jo, readReply as Jp, DID_GHOSTLY_SERVICE as Jr, TYPING_RATE_LIMIT as Js, chainPieces as Jt, IDENTITY_FRAME_WINDOW_MS as Ju, SET_ACK as Jv, __require as Jw, DEVICE_CAPABILITIES as Jx, REQUEST_TEXT_BYTES as Jy, readAppStoreSteps as K, heldBackError as KC, signTurnRelease as KS, HANDOFF_PIECE_BYTES as K_, ANSWERS_REFUSED_PAUSES as Ka, isAppHash as Kb, generateVapidKeys as Kc, RELAY_URL as Kd, EDIT_BUFFER_MAX as Kf, PAIRED_CALL_CANDIDATES as Kg, DHT_POLL_INTERVALS as Kh, formatPaymentAmount as Ki, WAKE_SESSION_CAPABILITY as Kl, rosterAdmin as Km, sshKeyDigestHex as Kn, CARRIED_DEFER_MS as Ko, groupReplyAuthor as Kp, DID_DOCUMENT_MAX_BYTES as Kr, TYPING_FRAME as Ks, GroupSession as Kt, IDENTITY_CLOCK_SKEW as Ku, sealHandoffPiece as Kv, __esmMin as Kw, readInviteCode as Kx, REQUEST_NAME_UNITS as Ky, appUpdateDecision as L, setLinkTraceSink as LC, encodeTurnFields as LS, HANDOFF_FILE_MISSING as L_, parseFedimintRequestPayload as La, APP_NAME as Lb, relayRequest as Lc, verifyNostrProof as Ld, voiceLevelsOf as Lf, DATA_CHANNEL_LABEL as Lg, STALLED_EVIDENCE_MS as Lh, PaymentPreflightError as Li, KNOWN_SESSION_CAPABILITIES as Ll, MAX_GROUP_MEMBERS as Lm, SSHSIG_MAX_ARMOR as Ln, GROUP_WANT_FRAME as Lo, reactionFrame as Lp, encodeDagCbor as Lr, FILE_FRAMES as Ls, GROUP_WAKE_RECEIVE_LIMIT as Lt, CapsRefusedError as Lu, readHandoffFileFrame as Lv, fromZ32 as Lw, decodeInviteCode as Lx, ContactRequestError as Ly, readX401ProofResultHeader as M, WRITE_FIRST_MS as MC, TURN_SIGNED_BYTES as MS, HANDOFF_BUSY_REASONS as M_, cashuRequestPayload as Ma, pacer as Mb, deviceWakeRequest as Mc, proofStatement as Md, parseVoiceMeta as Mf, encodeChunk as Mg, DataLink as Mh, resolveDidDht as Mi, BUTTONS_CAPABILITY as Ml, GROUP_ID as Mm, parseGroupMetaStatement as Mn, parseEngineError as Mo, parseReactedFrame as Mp, AtprotoCid as Mr, PAIRED_CALL_FRAME as Ms, readKnocks as Mt, CAPS_LIMITS as Mu, readHandoffAck as Mv, unwrapPasted as Mw, INVITE_MAX_LENGTH as Mx, planKnocks as My, x401AnswerableRequests as N, currentRelays as NC, TURN_SLOTS as NS, HANDOFF_CANCEL as N_, fedimintRequestPayload as Na, readAppBundle as Nb, newWakeToken as Nc, storageProof as Nd, recordingMime as Nf, encodeControl as Ng, GATHER_ATTEMPTS as Nh, signDidDhtPacket as Ni, CALLS_CAPABILITY as Nl, GROUP_MEMBER_CAP as Nm, parseGroupMetaTag as Nn, PairingTracker as No, parseReactionFrame as Np, AtprotoProofError as Nr, PairedCalls as Ns, GROUP_WAKE_FRAME as Nt, CAPS_PUBLISH_SPACING_MS as Nu, readHandoffBusy as Nv, bytesEqual as Nw, INVITE_VERSION as Nx, settleRequest as Ny, readX401ProofRequestHeader as O, SLOW_MS as OC, TURN_NAME_BYTES as OS, viewerTag as O_, BOLT11_PATTERN as Oa, findAppForbiddenKey as Ob, WAKE_INTERVAL_MS as Oc, isProofAdapter as Od, downsamplePeaks as Of, MAX_CHUNK_PAYLOAD_BYTES as Og, ratchetUnknownSession as Oh, encodeDidDhtDeactivated as Oi, parseAppFrame as Ol, heardTime as Om, nextGroupMetaRevision as On, ENGINE_ERRORS as Oo, REACTION_FRAME as Op, isAtprotoDid as Or, readLobby as Os, groupEntryUrl as Ot, validDomainRecord as Ou, handoffVersions as Ov, sanitizeDisplayText as Ow, readDeviceInvite as Ox, clearMissed as Oy, addedAppPermissions as P, normalizeRelayUrl as PC, TURN_TTL as PS, HANDOFF_CANCEL_REASONS as P_, findEndpoint as Pa, readAppBundleAsync as Pb, parseWakeFrame as Pc, storageProofBody as Pd, voiceDownloadName as Pf, sendBody as Pg, GATHER_STALL_MS as Ph, ETHEREUM_USDT as Pi, EDIT_CAPABILITY as Pl, GROUP_VERSION_LARGE as Pm, signGroupMeta as Pn, GROUP_FILE_LIMITS as Po, queueReaction as Pp, atprotoCidFor as Pr, parsePairedCallFrame as Ps, GROUP_WAKE_GROUP_LIMIT as Pt, CAPS_REFRESH_MS as Pu, readHandoffCancel as Pv, concatBytes as Pw, OwnInviteError as Px, takeRequest as Py, sealGroupTyping as Q, RELAY_PAYLOAD_MAX_BYTES as QC, turnReleaseMessage as QS, HANDOFF_VERSION as Q_, DEMOTE_AFTER_FAILURES as Qa, readAppRevocations as Qb, APP_RANGE_FRAMES as Qc, irohRelayUrl as Qd, MAX_EDITS_PER_MESSAGE as Qf, compressSdp as Qg, OFFER_FAST_MS as Qh, SPARK_PROVIDER as Qi, SESSION_RECEIVE_PENDING as Ql, verifyCommitSignature as Qm, BIP322_REVISION as Qn, SIGNAL_FRESH_MS as Qo, BUTTON_ID as Qp, DID_METHODS as Qr, TYPING_STATUS_MAX as Qs, GROUP_EDIT_FRAME as Qt, IDENTITY_MAX_VALIDITY as Qu, setAckFrame as Qv, HANDOFF_CAPABILITY as Qx, contactDay as Qy, checkAppBeforeRun as R, traceLink as RC, firstDeviceSetSecret as RS, HANDOFF_FILE_REQUEST as R_, NO_VIDEO_METADATA as Ra, APP_PREFIXES as Rb, wakeFrame as Rc, verifyPeerProof as Rd, voicePeaksOf as Rf, RTC_SIGNAL_FUTURE_MS as Rg, DIRECT_EVIDENCE_MS as Rh, SEPOLIA_TEST_USDT as Ri, PIN_CAPABILITY as Rl, MEMBER_KEY as Rm, SSHSIG_NAMESPACE as Rn, GROUP_WANT_NO_FRAME as Ro, reactionIsNewer as Rp, findInMst as Rr, FILE_LIMITS as Rs, GroupWakeLimiter as Rt, DHT_TEXT_CAPABILITY as Ru, readHandoffHave as Rv, isZ32Key as Rw, encodeGhostlyInvite as Rx, KNOCK_SLOTS as Ry, buildX401ResultArtifact as S, REQUESTS_PER_MINUTE as SC, TOMBSTONE_SEQUENCE as SS, encodeServices as S_, invoiceCallbackUrl as Sa, APP_VIEWS as Sb, readPin as Sc, PROOF_CAPABILITY as Sd, sanitizeMime as Sf, sanitizeResponseHeaders as Sg, ratchetHeard as Sh, DidDhtError as Si, appDataBytes as Sl, statusCardText as Sm, groupMetaNewer as Sn, WAKE_ANSWER_GRACE_MS as So, forwardedMany as Sp, ATPROTO_PROOF_COLLECTION as Sr, mergeLobby as Ss, GROUP_ENTRY_PROFILE as St, normalizeDomain as Su, handoffReleaseFrame as Sv, MAX_AVATAR_LENGTH as Sw, DEVICE_INVITE_LIFETIME_S as Sx, FLOOD_PER_DAY as Sy, encodeX401Header as T, SIGNALING_ALLOWANCE_SHARE as TC, TURN_LABEL as TS, serviceIdFromName as T_, parsePayParams as Ta, assembleAppBundle as Tb, WAKE_CALL_TTL_SECONDS as Tc, STORAGE_ROOT as Td, VOICE_LIMITS as Tf, CHUNK_FLAG_END as Tg, ratchetRoot as Th, didDhtFromPublicKey as Ti, chatAppId as Tl, MESSAGE_CLOCK_SKEW_MS as Tm, groupMetaToHand as Tn, pairedMessageFrame as To, GROUP_REACTION_FRAME as Tp, atprotoProofRecord as Tr, rankHubs as Ts, decodeGroupEntryLink as Tt, recordsFromWellKnown as Tu, handoffStreamKey as Tv, sanitizeAvatar as Tw, deviceInviteJoinerKeyZ32 as Tx, MAX_WAITING as Ty, checkAppStoreIndex as U, RelayBreaker as UC, sealTurnBody as US, HANDOFF_MANIFEST as U_, isStrippedPicture as Ua, appRevocationId as Ub, checkPushEndpoint as Uc, validRingKey as Ud, isVideoMime as Uf, parseRtcSignal as Ug, symmetricNat as Uh, arkAddressPrefix as Ui, SessionCapabilities as Ul, expectedRoster as Um, parseSshSignature as Un, readGroupHave as Uo, PAIRED_REPLY_AUTHORS as Up, unsignedCommitBytes as Ur, sentWhole as Us, GROUP_LIMITS as Ut, parsePacketTransports as Uu, readHandoffTurnFrame as Uv, utf8Decode as Uw, inviteQrText as Ux, REQUEST_CLOCK_SKEW_MS as Uy, APP_STORE_LIMITS as V, BREAKER_MAX_MS as VC, readTurnBody as VS, HANDOFF_LATER_BYTES as V_, NO_PICTURE_METADATA as Va, appRef as Vb, PUSH_SERVICE_HOSTS as Vc, ringClaims as Vd, formatVideoDuration as Vf, extractRtcParams as Vg, DirectPathWatch as Vh, USDT_PUBLIC_RPC as Vi, SESSION_CAPABILITIES_FRAME as Vl, commitHash as Vm, SshSigError as Vn, isGroupMessageId as Vo, validReactionNumber as Vp, parseAtprotoVerificationKey as Vr, encodeFileData as Vs, mentionedMembers as Vt, emptyCapsState as Vu, readHandoffPake as Vv, toBase64Url as Vw, inviteOwnership as Vx, MAX_SEEN as Vy, readAppListing as W, DiscoveryBudgetError as WC, signTurnBody as WS, HANDOFF_OFFER as W_, stripPictureMetadata as Wa, appSignedBytes as Wb, decryptPushPayload as Wc, verifyRingAuthorization as Wd, parseVideoMeta as Wf, CALL_SIGNAL_FUTURE_MS as Wg, AWAITING_PEER_MS as Wh, assertTokenUnits as Wi, TYPING_CAPABILITY as Wl, parseGroupCommit as Wm, sameSshKey as Wn, readGroupWant as Wo, REPLY_ID as Wp, verifyAtprotoRecordProof as Wr, transferEnded as Ws, GROUP_REACTED_FRAME as Wt, IDENTITY_CHALLENGE_WINDOW as Wu, readHandoffVerified as Wv, utf8Encode as Ww, ownInviteRefusal as Wx, REQUEST_LABEL as Wy, groupTypingEpoch as X, PKARR_FUTURE_SKEW_MS as XC, turnPacket as XS, HANDOFF_TIMINGS as X_, CROSSED_PROBE_MS as Xa, readAppRevocation as Xb, APP_RANGE_DATA_KIND as Xc, checkedDescriptors as Xd, EDIT_RECEIVE_LIMIT as Xf, callRtcConfig as Xg, LinkSession as Xh, walletNetworkOf as Xi, PairedSession as Xl, verifyChain as Xm, legacyMessageHash as Xn, SIGNALS_PER_MINUTE as Xo, wireReply as Xp, DID_JWS_MAX_LENGTH as Xr, TYPING_REFRESH_MS as Xs, groupMessageId as Xt, IDENTITY_MAX_FRAME as Xu, encodeSetSlots as Xv, DEVICE_PING_FRAME as Xx, STAMP_BITS_MAX as Xy, GroupTypingBoard as Y, MAX_DNS_PACKET_BYTES as YC, turnName as YS, HANDOFF_REQUEST as Y_, CROSSED_FRESH_MS as Ya, isAppSignature as Yb, vapidKeysMatch as Yc, automaticTransport as Yd, EDIT_RATE_WINDOW_MS as Yf, buildSdpFromSignal as Yg, IDLE_THRESHOLD as Yh, validatePaymentTarget as Yi, PAIRED_PROFILE as Yl, sortRoster as Ym, isLegacySignature as Yn, GROUP_VERSION_SIGNALS as Yo, replySnippet as Yp, DID_JWS_ALGS as Yr, TYPING_RATE_WINDOW_MS as Ys, frameBytes as Yt, IDENTITY_MAX_EVIDENCE as Yu, SET_UPDATE as Yv, __toCommonJS as Yw, DEVICE_ECHO_FRAME as Yx, STAMP_BITS_DEFAULT as Yy, openGroupTyping as Z, PacketTooLargeError as ZC, turnPayloadSequence as ZS, HANDOFF_VERIFIED as Z_, CROSSED_WAIT_MS as Za, readAppRevocationShape as Zb, APP_RANGE_ERRORS as Zc, irohDescriptor as Zd, EDIT_SEND_LIMIT as Zf, callSignalHeardAt as Zg, MAX_DHT_TEXT_BYTES as Zh, SPARK_NETWORKS as Zi, SESSION_FRAME_MAX as Zl, verifyCommit as Zm, verifyBitcoinMessage as Zn, SIGNAL_CARRIERS as Zo, ACTIVE_TASK_STATUSES as Zp, DID_MAX_LENGTH as Zr, TYPING_SEND_LIMIT as Zs, COMMUNITY_EDIT_FRAME as Zt, IDENTITY_MAX_RECEIVED as Zu, readSetUpdate as Zv, ENROLL_CAPABILITY as Zx, STAMP_BITS_MIN as Zy, X401_PROTOCOLS as _, GROUP_SIGNALING_ALLOWANCE_SHARE as _C, TURN_SETTLE_MS as _S, HTTP_SERVICE_PROTO as __, pubkyHomeserverOf as _a, APP_CLIENT_NAME as _b, parsePinnedFrame as _c, verifyIdentityPresentation as _d, FileTransfers as _f, formatLocalTarget as _g, RATCHET_KEEP_MS as _h, strictBase64Url as _i, APP_RESUME_GRACE_MS as _l, checkStatusCard as _m, MAX_GROUP_PICTURE_LENGTH as _n, REDESCRIBED_GRACE_MS as _o, parseLinkPreview as _p, u32$1 as _r, freshHubs as _s, shortHash as _t, domainTxtRecord as _u, handoffHaveFrames as _v, decrypt as _w, CONTACT_LINK_VERSION as _x, enrollProofFrame as _y, X401_DCQL_LIMITS as a, BACKGROUND_WRITES_SHARE as aC, deviceLinkRendezvousSeed as aS, parseCallSignal as a_, PUBKY_PROOF_MAX_BYTES as aa, makeStampPaced as ab, typingActivity as ac, IdentityExchange as ad, DHT_FILE_TOO_LARGE as af, STALLED_LOOK_MS as ag, epochKeys as ah, didWebDocumentUrl as ai, appRangeErrorFrame as al, ROUTINE_STATES as am, validEditText as an, INVITER_DIAL_GRACE_MS as ao, parseEditFrame as ap, BitcoinAddressError as ar, MESH_HUBS as as, communityHasFrame as at, newMailbox as au, handoffAttemptFailed as av, signRelayPayload as aw, verifyAppStatementBytes as ax, ENROLL_CANCEL_REASONS as ay, buildX401ProofRequest as b, PREVIOUS_DEFAULT_RELAYS as bC, keptAtEqualSequence as bS, SERVICES_VERSION as b_, fetchLnurlJson as ba, APP_PERMISSIONS as bb, pinNumberHolds as bc, lastSharedWithMe as bd, safeBlobType as bf, resolveTargetUrl as bg, emptyRatchetState as bh, DID_DHT_TTL as bi, AppSessions as bl, sameButtonText as bm, groupMetaBody as bn, SWITCH_RETIRE_MS as bo, FORWARD_LIMITS as bp, ATPROTO_DECLARED_SCOPE as br, lobbyRecords as bs, verifyCommunityChainPaced as bt, isPublicAddress as bu, handoffOfferFrame as bv, sealedLength as bw, readContactLink as bx, readEnrollHello as by, readX401DcqlQuery as c, CHAT_RESERVE_PER_CHAT as cC, devicePingFrame as cS, signalHasVideo as c_, isPubkyProofFolder as ca, readKnockSlot as cb, COMMUNITY_PIN_FRAME as cc, identityPresentationBytes as cd, DHT_TEXT_REFUSED as cf, UNUSED_INVITE_UPKEEP_MS as cg, openSecret as ch, didWebFileUrl as ci, encodeAppRangeData as cl, TASK_STATUSES as cm, mentionsBytes as cn, LIVENESS_PING_MS as co, validEditNumber as cp, decodeAnyBitcoinAddress as cr, meshHubs as cs, communityUntaggedHash as ct, DNS_TYPE as cu, handoffCancelFrame as cv, encodeTxtPacket as cw, imageSize as cx, ENROLL_HELLO as cy, newX401HolderKey as d, DEPARTED_READS as dC, unsignedDeviceTransports as dS, MAX_MSGS_PAYLOAD_B64 as d_, pubkyProofCapability as da, requestRecords as db, PIN_CLOCK_SKEW_MS as dc, identityStatementText as dd, emptyDhtDeliveryState as df, countUnusedInvite as dg, sha256Hex as dh, parseDid as di, readAppRangeFrame as dl, buttonLabelClash as dm, wireMentions as dn, PAIRING_ATTEMPT_MS as do, LINK_PREVIEW_LIMITS as dp, decodeWitness as dr, pickMeshHubs as ds, encodeCommunityLink as dt, DOMAIN_METHODS as du, handoffDataFrame as dv, createIdentity as dw, previewable as dx, enrollCancelReason as dy, turnSignedMessage as eC, deviceEchoNonce as eS, decompressSdp as e_, sparkAddressKind as ea, knockSlotIdentity as eb, TypingReceiver as ec, IDENTITY_PROVIDER_ID as ed, relayUrl as ef, OFFER_STEP_MAX as eg, confirmationMatches as eh, checkDidJws as ei, AppRanges as el, CRON_LINE as em, carryMentions as en, DHT_PIN_GRACE_MS as eo, REMOVED_TEXT as ep, bip322MessageHash as er, SIGNAL_PROVEN_MS as es, COMMUNITY_PROFILE as et, HOLD_DATED_BACK_MS as eu, NO_ATTEMPTS as ev, measureRecords as ew, setAppSignatureFastPath as ex, setUpdateMessage as ey, readX401SdJwtVc as f, FRESH_READ_MS as fC, verifyDeviceTransports as fS, RECORD_TTL as f_, pubkyProofFile as fa, seenEntry as fb, PIN_FRAME as fc, isIdentityBinding as fd, peekDhtMailbox as ff, presenceSeenAt as fg, FOLLOW_MS as fh, parseDidDocument as fi, APP_DATA_MAX_BYTES as fl, cardEditNumber as fm, GROUP_META_PAST as fn, PAIRING_RETRY_MS as fo, LINK_TRAILING as fp, encodeTx as fr, wireHubPolicy as fs, leaveStands as ft, DOMAIN_TXT_MAX_BYTES as fu, handoffDigest as fv, identityFromSeed as fw, readImageMeta as fx, enrollDigits as fy, X401_LIMITS as g, GROUP_RATION_WINDOW_MS as gC, TURN_RAISE_READ_TIMEOUT_MS as gS, parseLinkRecords as g_, homeserverWebEndpoint as ga, APP_CLIENTS as gb, parsePinFrame as gc, signIdentityPresentation as gd, readDhtFile as gf, HttpHost as gg, RATCHET_HEADER_BYTES as gh, staticDidDocument as gi, APP_RATE_WINDOW_MS as gl, cardUrl as gm, MAX_GROUP_NAME_LENGTH as gn, RACE_RELAYED_MS as go, linksIn as gp, txHash as gr, doorHubs as gs, rosterHash as gt, dnsProofName as gu, handoffFileRequestFrame as gv, verify as gw, CONTACT_LINK_BYTES as gx, enrollMessage as gy, X401_HEADERS as h, GROUP_OVER_PACE_MS as hC, TURN_PUT_WINDOW_MS as hS, isEmptyLinkPacket as h_, encodeSvcbPacket as ha, APP_BUNDLE_MAGIC as hb, nextPinNumber as hc, revokesIdentity as hd, dhtFileId as hf, HttpClient as hg, RATCHET_CAPABILITY as hh, signingKeys as hi, APP_RATE_LIMIT as hl, cardTimeUtc as hm, MAX_GROUP_NAME_BYTES as hn, RACE_DIRECT_MS as ho, linkStop as hp, sha256d as hr, beaconRecords as hs, leftStatement as ht, decodeDnsResponse as hu, handoffFileMissingFrame as hv, sign as hw, readCanonicalJson as hx, enrollHelloFrame as hy, x401ApprovalDigest as i, BACKGROUND_WHILE_SIGNALING as iC, deviceLinkParams as iS, keepsToRelays as i_, isBitcoinAddress as ia, makeStamp as ib, sanitizeTypingStatus as ic, IdentityCheckUnavailable as id, DHT_FILE_REFUSED as if, SIGNAL_OUT_READS as ig, encryptText as ih, didSignedMessages as ii, appRangeEndFrame as il, REMOVABLE_KINDS as im, parseCommunityEdit as in, HANDLED_WAIT_MS as io, editedFrame as ip, verifyBip322 as ir, GROUP_VERSION_HUBS as is, communityGroupId as it, isHoldUrl as iu, handoffAttemptAllowed as iv, readOwnRelayPayload as iw, verifyAppSignature as ix, ENROLL_CANCEL as iy, readX401ProofResult as j, WAY_BACK_SHARE as jC, TURN_SEALED_BYTES as jS, HANDOFF_BUSY as j_, ENDPOINT as ja, isAppUrl as jb, WakeLimiter as jc, proofHash as jd, isPlayableAudioType as jf, decodeControl as jg, DATA_SETTLE_MS as jh, openDidDhtPayload as ji, APP_RANGES_CAPABILITY as jl, GROUP_ADMIN_OFF_ERROR as jm, parseGroupMetaFrame as jn, engineText as jo, nextReactionNumber as jp, shortAtprotoDid as jr, MAX_PAIRED_CALL_SIGNAL as js, mergeKnocks as jt, CAPS_LABEL as ju, openHandoffPiece as jv, trimEndOf as jw, INVITE_LINK_ORIGIN as jx, newInbox as jy, readX401ProofResponse as k, TURN_SOURCE_TIMEOUT_MS as kC, TURN_NO_ACTIVE as kS, HANDOFF_ACK as k_, decodeBolt11 as ka, isAppLicense as kb, WAKE_SUBJECT as kc, nostrProofTemplate as kd, fileMessageText as kf, PROTOCOL_VERSION as kg, ANSWER_REFUSED_REDIALS as kh, encodeDidDhtPacket as ki, readAppFrame as kl, receivedTimestamp as km, openGroupMeta as kn, EngineError as ko, REACTION_LIMITS as kp, normalizeAtprotoHandle as kr, shouldBeHub as ks, knockIdentity as kt, wellKnownUrl as ku, isHandoffPartName as kv, sanitizeNick as kw, DEVICE_INVITE_VERSION as kx, endedRequests as ky, x401VpToken as l, CHAT_WATCH_SHARE as lC, newDeviceSetSecret as lS, waitForIceGathering as l_, newPubkyProofFolder as la, readLinkRecord as lb, GROUP_PIN_FRAME as lc, identityRevocationValue as ld, DhtDelivery as lf, UNUSED_INVITE_WAIT_MAX_MS as lg, sealPair as lh, didWebHost as li, isServeId as ll, appCardId as lm, mentionsMember as ln, MAX_PAIRED_MESSAGE_FRAME as lo, validRemovalNumber as lp, decodeBitcoinAddress as lr, meshRendezvous as ls, decodeCommunityLink as lt, DOMAIN_FILE_MAX_BYTES as lu, handoffContext as lv, readDnsName as lw, isImageMime as lx, ENROLL_PROOF as ly, x401HolderJwk as m, GROUP_BURST_ONE_LINK as mC, webCryptoSigner as mS, emptyLinkRecords as m_, decodeSvcbRecords as ma, APP_BUNDLE_LIMITS as mb, mayPin as mc, receivedIdentityStatus as md, dhtFileElements as mf, GhostlyHttpError as mg, MAX_SKIPPED_KEYS as mh, parseDidSignaturePaste as mi, APP_PEER_OPEN_MAX as ml, cardLinkHost as mm, MAX_GROUP_META_BODY as mn, RACE_ANSWERED_MS as mo, linkEnd as mp, hash160 as mr, beaconKeys as ms, leaveStatement3 as mt, WELL_KNOWN_PATH as mu, handoffEphemeral as mv, publicKeyFromZ32 as mw, canonicalJsonBytes as mx, enrollGrantFrame as my, X401_RESPONSE_MODES as n, turnVerifierMark as nC, deviceKeyZ32 as nS, heardCallSignal as n_, sparkNetworkOf as na, knockSlotRecords as nb, parseTypingActivity as nc, IDENTITY_STATEMENT_PREFIX as nd, transportOrder as nf, PRESENCE_WINDOW as ng, decryptText as nh, didGhostlyServiceEntry as ni, appRangeChunk as nl, PR_CHECKS as nm, communityMessageAuthor as nn, FIRST_PAIRING_PACE_MS as no, dhtEditId as np, bip322ToSpend as nr, groupSignalFrame as ns, GROUP_READ_NOTE_COMMUNITY as nt, HoldKeys as nu, filePartName as nv, openRelayPayload as nw, signAppRevocation as nx, verifySetUpdate as ny, matchX401Dcql as o, CHAT_RESERVE as oC, deviceLinkSealKey as oS, pickCallCandidates as o_, PUBKY_PROOF_ROOT as oa, mergeContactKnocks as ob, typingFrame as oc, boundVerifiedIdentity as od, DHT_MESSAGE_TTL as of, TRANSPORTS_GONE_MS as og, newEpochSecret as oh, didWebFile as oi, appRangeGetFrame as ol, RUN_RESULTS as om, MENTION_EVERYONE as on, INVITE_TAKEN as oo, parseEditedFrame as op, ByteReader as or, NO_HUB_POLICY as os, communityMessageId as ot, readManifest as ou, handoffAttemptSucceeded as ov, decodeDnsAnswers as ow, IMAGE_LIMITS as ox, ENROLL_DONE as oy, sameX401HolderJwk as p, GROUP_BURST_MS as pC, seedSigner as pS, buildLinkRecords as p_, pubkyProofPath as pa, stampHolds as pb, PIN_LIMITS as pc, newIdentityBinding as pd, DHT_FILE_CAPABILITY as pf, unusedInviteWait as pg, MAX_SKIP as ph, parseDidJws as pi, APP_FRAME as pl, cardLine as pm, GROUP_META_PAST_CHARS as pn, PONG_WAIT_MS as po, canonicalUrl as pp, encodeWitness as pr, COMMUNITY_TOPOLOGY as ps, leaveStatement as pt, NIP05_PATH as pu, handoffDoneFrame as pv, identityFromSeedB64 as pw, canonicalJson as px, enrollDoneFrame as py, signAppStore as q, isDiscoveryBudgetError as qC, turnInstance as qS, HANDOFF_PIECE_OVERHEAD as q_, ANSWERS_REFUSED_PAUSE_MS as qa, isAppKey as qb, pushRequest as qc, RELAY_WITH_SECRETS as qd, EDIT_BUFFER_MS as qf, RTC_CONFIG as qg, EXPECT_PEER_MS as qh, isWalletNetwork as qi, parseSessionCapabilities as ql, rosterHas as qm, sshSignCommand as qn, CarriedTransport as qo, pairedReplyAuthor as qp, DID_FILE_MAX_BYTES as qr, TYPING_KINDS as qs, asWritten as qt, IDENTITY_FRAME_LIMIT as qu, sortParts as qv, __exportAll as qw, DEVICES_CAPABILITY as qx, REQUEST_PACKET_BYTES as qy, readX401OpenId4VpRequest as r, BACKGROUND_REQUESTS_PER_MINUTE as rC, deviceLinkPairing as rS, isGlobalIpv4Host as r_, BITCOIN_NETWORKS as ra, linkRecords as rb, parseTypingFrame as rc, IDENTITY_SUBJECT as rd, ACTIVE_DHT_POLL_MS as rf, RELAY_POLL_INTERVALS as rg, edgeParams as rh, didJwsAlg as ri, appRangeDataFrame as rl, PR_STATES as rm, meshMessageRef as rn, GhostLink as ro, editFrame as rp, decodeBase64 as rr, readGroupSignal as rs, communityCommitHash as rt, HoldRefusedError as ru, handoffAckFrame as rv, parseRelayPayload as rw, verifyAppRevocation as rx, DEVICE_KINDS as ry, presentX401SdJwtVc as s, CHAT_RESERVE_MOST_SHARE as sC, deviceLinkSecret as sS, sdpHasCandidates as s_, isPubkyKey as sa, openRequest as sb, typingKindOf as sc, emptyIdentityLedger as sd, DHT_TEXT_BYTES as sf, UNUSED_INVITE_READS_PER_MINUTE as sg, openPair as sh, didWebFileNames as si, decodeAppRangeData as sl, STATUS_CARD_LIMITS as sm, MENTION_LIMITS as sn, LIVENESS_MISSED_PINGS as so, validEditMessage as sp, compactSize as sr, mayBeHub as ss, communityRoster as st, DNS_LABEL as su, handoffBusyFrame as sv, decodeTxtPacket as sw, exifOrientation as sx, ENROLL_GRANT as sy, X401_REQUEST_LIMITS as t, turnStatedVerifier as tC, deviceFrameCapability as tS, extractParamsFromSdp as t_, sparkInvoiceDetails as ta, knockSlotOf as tb, TypingSender as tc, IDENTITY_REVOCATION_LABEL as td, relayedTransports as tf, PRESENCE_HEARTBEAT as tg, confirmationTag as th, checkDidSignature as ti, appRangeCancelFrame as tl, ITEM_STATES as tm, communityEditFrame as tn, EARLY_DIAL_JOIN_MS as to, RateWindow as tp, bip322ToSign as tr, SIGNAL_REPLY_MS as ts, CommunitySession as tt, HOLD_LIMITS as tu, filePartDigest as tv, newerPacket as tw, signAppObject as tx, signTombstone as ty, X401_CREDENTIAL_LIMITS as u, DEFAULT_RELAYS as uC, signDeviceTransports as uS, LABEL$1 as u_, normalizePubkyKey as ua, requestPlaintextBytes as ub, PINNED_FRAME as uc, identityStatement as ud, LIVE_POLL_MS as uf, WATCH_PEER_MS as ug, sealSecret as uh, normalizeDid as ui, parseAppRangeFrame as ul, appCardUrl as um, validMentions as un, PAIRED_FRAME_TOO_LARGE as uo, LINK_MAX_CHARS as up, decodeTx as ur, parseHubPolicy as us, derivedSecret as ut, DOMAIN_MAX_RECORDS as uu, handoffContextProof as uv, IDENTITY_MEMO_SIZE as uw, parseImageMeta as ux, enrollCancelFrame as uy, X401_SCHEME as v, HEDGE_MISSING_MS as vC, TURN_VISIBLE_MS as vS, LEGACY_SERVICES as v_, LIGHTNING_DESTINATION_PATTERN as va, APP_FORBIDDEN_KEYS as vb, pinFrame as vc, IDENTITY_TIMELINE_MAX as vd, PREVIEWABLE_IMAGE as vf, parseLocalTarget as vg, RATCHET_OVERHEAD as vh, DID_DHT_MAX_PAYLOAD as vi, APP_SEND_LIMIT as vl, readStatusCard as vm, encodeGroupMetaBody as vn, RESUME_WAIT_MS as vo, previewImageSize as vp, u64 as vr, hubRank as vs, signCommunity as vt, domainWellKnownFile as vu, handoffHelloFrame as vv, encrypt as vw, createContactLink as vx, formatEnrollDigits as vy, decodeX401Header as w, RelaysFailedError as wC, TURN_BODY_BYTES as wS, isViewerTag as w_, parseLightningDestination as wa, appViewOf as wb, WAKE_CALL_INTERVAL_MS as wc, STORAGE_LIFETIME as wd, RECORDING_TYPES as wf, webLocalFetch as wg, ratchetOpen as wh, didDhtDocument as wi, appOpenFrame as wl, usageLeft as wm, groupMetaTag as wn, pairedMessageFits as wo, COMMUNITY_REACTION_FRAME as wp, atprotoDidMethod as wr, pickHubs as ws, MAX_KNOCKS as wt, recordsFromTxt as wu, handoffRetryAfter as wv, jpegSize$1 as ww, createDeviceInvite as wx, MAX_MISSED as wy, buildX401ProofResult as x, RELAY_REQUESTS_PER_MINUTE as xC, turnPutSummary as xS, decodeServices as x_, findLightningDestination as xa, APP_SCREENSHOTS_DIR as xb, pinnedFrame as xc, PROOF_ADAPTERS as xd, sanitizeFileName as xf, sanitizeRequestHeaders as xg, isRatcheted as xh, DID_DHT_VERSION as xi, appCloseFrame as xl, statusCardBytes as xm, groupMetaChange as xn, UNPROVEN_AUTH_MS as xo, forwardedAgain as xp, ATPROTO_FULL_SCOPE as xr, mergeBeacon as xs, verifyCommunityCommit as xt, nip05RootKey as xu, handoffPakeFrame as xv, tryDecrypt as xw, DEVICE_INVITE_BYTES as xx, verifyEnrollProof as xy, X401_VERSION as y, HEDGE_MS as yC, classifyTurnRead as yS, MAX_SERVICES as y_, LNURL_LIMITS as ya, APP_ICON_PATH as yb, pinIsNewer as yc, applyIdentityEvent as yd, formatFileSize as yf, relativizeLocation as yg, RatchetBox as yh, DID_DHT_PREFIX as yi, APP_VERSION_MAX as yl, removedCardText as ym, groupDisplayName as yn, RTC_UNSTARTED_MS as yo, sanitizePreviewImage as yp, varBytes as yr, lobbyKeys as ys, verifyCommunityChain as yt, encodeDnsQuery as yu, handoffManifestFrames as yv, generateEncryptionKey as yw, encodeContactLink as yx, readEnrollGrant as yy, planAppUpdate as z, BREAKER_ALL_DOWN_PROBE_MS as zC, nextTurnPosition as zS, HANDOFF_HAVE as z_, VIDEO_METADATA_LIMITS as za, APP_STATEMENT_LIMITS as zb, wakePayload as zc, RING_LIFETIME as zd, PLAYABLE_VIDEO as zf, RTC_SIGNAL_MAX_AGE_MS as zg, DIRECT_OWN_ATTEMPTS as zh, SEPOLIA_TEST_USDT_FAUCET as zi, REACTIONS_CAPABILITY as zl, OWN_FRAME_LIMIT as zm, SSH_KEY_TYPES as zn, fetchesByItself as zo, readDhtReactions as zp, parseAtprotoCar as zr, FileUplink as zs, groupWakeFrame as zt, capsDescriptors as zu, readHandoffHello as zv, randomBytes as zw, encodeInviteCode as zx, KNOCK_SLOT_LABEL as zy };
37499
38514
 
37500
- //# sourceMappingURL=src-DytzSJB6.js.map
38515
+ //# sourceMappingURL=src-Ch4NWeBg.js.map