@ghostlytools/sdk 1.7.2 → 1.7.4
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.
- package/dist/core.js +2 -2
- package/dist/{fakes-7mNogz2q.js → fakes-ClE16ouz.js} +2 -2
- package/dist/{fakes-7mNogz2q.js.map → fakes-ClE16ouz.js.map} +1 -1
- package/dist/fakes.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{keet-identity-key-B-_whp8l.js → keet-identity-key-BRKv78jp.js} +2 -2
- package/dist/{keet-identity-key-B-_whp8l.js.map → keet-identity-key-BRKv78jp.js.map} +1 -1
- package/dist/{src-BXUeOekb.js → src-B5uLojgn.js} +677 -198
- package/dist/src-B5uLojgn.js.map +1 -0
- package/dist/testing.js +3 -3
- package/dist/types/core/src/chatFiles.d.ts +23 -1
- package/dist/types/core/src/ghostlink.d.ts +18 -5
- package/dist/types/core/src/groupCommunity.d.ts +39 -5
- package/dist/types/core/src/groupSession.d.ts +6 -2
- package/dist/types/core/src/identity.d.ts +4 -0
- package/dist/types/core/src/identityProofs.d.ts +1 -0
- package/dist/types/core/src/identityTimeline.d.ts +1 -1
- package/dist/types/core/src/image.d.ts +2 -1
- package/dist/types/core/src/linkPreview.d.ts +8 -4
- package/dist/types/core/src/pairedApps.d.ts +10 -5
- package/dist/types/core/src/relay.d.ts +13 -2
- package/dist/{verify-BIo6E601.js → verify-yJe2Uqod.js} +2 -2
- package/dist/{verify-BIo6E601.js.map → verify-yJe2Uqod.js.map} +1 -1
- package/package.json +1 -1
- package/dist/src-BXUeOekb.js.map +0 -1
|
@@ -388,9 +388,13 @@ function publicKeyFromZ32(z32) {
|
|
|
388
388
|
function sign(message, seed) {
|
|
389
389
|
return ed25519.sign(message, seed);
|
|
390
390
|
}
|
|
391
|
+
/**
|
|
392
|
+
* Ed25519 verification as RFC 8032 writes it (`zip215: false`): canonical encodings only, and no key of small order,
|
|
393
|
+
* which no secret key goes with and which "verifies" a constant signature of any message.
|
|
394
|
+
*/
|
|
391
395
|
function verify(signature, message, publicKey) {
|
|
392
396
|
try {
|
|
393
|
-
return ed25519.verify(signature, message, publicKey);
|
|
397
|
+
return ed25519.verify(signature, message, publicKey, { zip215: false });
|
|
394
398
|
} catch {
|
|
395
399
|
return false;
|
|
396
400
|
}
|
|
@@ -994,6 +998,64 @@ var firstWriter = (who) => !who.write || who.background ? null : who.group ? "gr
|
|
|
994
998
|
/** A key's turn neither asked nor read in the last minute: it is dropped, and asking again starts a new one (`TURNS_PRUNE_MS`). */
|
|
995
999
|
var staleTurn = (turn, now) => now - Math.max(turn.askedAt, turn.servedAt) >= 6e4;
|
|
996
1000
|
/**
|
|
1001
|
+
* Keys and when each was last set, those of the last minute: how many and the latest, without walking them all (the
|
|
1002
|
+
* chats that need a relay, `chatNeeds`). Each is set at the time it is set, so the sets come oldest first; a clock
|
|
1003
|
+
* gone back makes the later ones as of now.
|
|
1004
|
+
*/
|
|
1005
|
+
var RecentKeys = class {
|
|
1006
|
+
at = /* @__PURE__ */ new Map();
|
|
1007
|
+
/** Every set, oldest first, from `head`; one a later set or a delete replaced is skipped. */
|
|
1008
|
+
order = [];
|
|
1009
|
+
head = 0;
|
|
1010
|
+
set(key, now) {
|
|
1011
|
+
this.prune(now);
|
|
1012
|
+
this.at.set(key, now);
|
|
1013
|
+
this.order.push([key, now]);
|
|
1014
|
+
}
|
|
1015
|
+
delete(key) {
|
|
1016
|
+
this.at.delete(key);
|
|
1017
|
+
}
|
|
1018
|
+
size(now) {
|
|
1019
|
+
this.prune(now);
|
|
1020
|
+
return this.at.size;
|
|
1021
|
+
}
|
|
1022
|
+
/** When the key set last was, -Infinity with none in the last minute. */
|
|
1023
|
+
latest(now) {
|
|
1024
|
+
this.prune(now);
|
|
1025
|
+
while (this.order.length > this.head) {
|
|
1026
|
+
const [key, at] = this.order[this.order.length - 1];
|
|
1027
|
+
if (this.at.get(key) === at) return at;
|
|
1028
|
+
this.order.pop();
|
|
1029
|
+
}
|
|
1030
|
+
return -Infinity;
|
|
1031
|
+
}
|
|
1032
|
+
/** The keys set in the last minute, oldest first. */
|
|
1033
|
+
*entries(now) {
|
|
1034
|
+
this.prune(now);
|
|
1035
|
+
for (let i = this.head; i < this.order.length; i++) if (this.at.get(this.order[i][0]) === this.order[i][1]) yield this.order[i];
|
|
1036
|
+
}
|
|
1037
|
+
/** Drops the keys set a minute ago or more. */
|
|
1038
|
+
prune(now) {
|
|
1039
|
+
if (this.order.length > this.head && now < this.order[this.order.length - 1][1]) {
|
|
1040
|
+
for (const [key, at] of this.at) this.at.set(key, Math.min(at, now));
|
|
1041
|
+
this.order = [...this.at].sort((a, b) => a[1] - b[1]);
|
|
1042
|
+
this.head = 0;
|
|
1043
|
+
}
|
|
1044
|
+
while (this.head < this.order.length) {
|
|
1045
|
+
const [key, at] = this.order[this.head];
|
|
1046
|
+
if (this.at.get(key) === at) {
|
|
1047
|
+
if (now - at < 6e4) break;
|
|
1048
|
+
this.at.delete(key);
|
|
1049
|
+
}
|
|
1050
|
+
this.head++;
|
|
1051
|
+
}
|
|
1052
|
+
if (this.head > 64 && this.head * 2 > this.order.length) {
|
|
1053
|
+
this.order = this.order.slice(this.head);
|
|
1054
|
+
this.head = 0;
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
};
|
|
1058
|
+
/**
|
|
997
1059
|
* Public Pkarr relays. They are generic Pkarr infrastructure (an HTTP bridge to
|
|
998
1060
|
* the Mainline DHT), not a Ghostly backend: they only ever see signed,
|
|
999
1061
|
* encrypted packets. Every client uses this list: the browser clients read and
|
|
@@ -1377,9 +1439,11 @@ var RelayTransport = class {
|
|
|
1377
1439
|
/**
|
|
1378
1440
|
* Per key a 1:1 chat asks for: when it last read urgently (for the next minute, groups leave it `CHAT_RESERVE` on
|
|
1379
1441
|
* every relay) and when the budget last refused it on each relay (the same, on that relay). A read of the key at a
|
|
1380
|
-
* slow pace (the chat is live, or back in the background) drops it: `CHAT_RESERVE`.
|
|
1442
|
+
* slow pace (the chat is live, or back in the background) drops it: `CHAT_RESERVE`. Per relay, the later of the two
|
|
1443
|
+
* for each key (`chatNeed`); `chatUrgentAt` keeps the urgent ones for a relay not asked yet.
|
|
1381
1444
|
*/
|
|
1382
1445
|
chatNeeds = /* @__PURE__ */ new Map();
|
|
1446
|
+
chatUrgentAt = new RecentKeys();
|
|
1383
1447
|
/** When a link (a chat's or a group's) last asked urgently: background requests yield for `SIGNALING_WINDOW_MS`. */
|
|
1384
1448
|
urgentAt = -Infinity;
|
|
1385
1449
|
/** Timestamp of the last packet sent to each relay, per key: the compare-and-swap value for the next one. */
|
|
@@ -1786,7 +1850,7 @@ var RelayTransport = class {
|
|
|
1786
1850
|
*/
|
|
1787
1851
|
async resolve(pubKeyZ32, options = {}, keptOnFailure = true) {
|
|
1788
1852
|
if (this.relays.length === 0) throw new Error("No Pkarr relays configured");
|
|
1789
|
-
if (options.background && !options.urgent && !options.group) this.
|
|
1853
|
+
if (options.background && !options.urgent && !options.group) this.chatNeedLapsed(pubKeyZ32);
|
|
1790
1854
|
const readAt = this.readAt.get(pubKeyZ32);
|
|
1791
1855
|
if (readAt !== void 0 && Date.now() - readAt < this.freshReadMs) return this.newest.get(pubKeyZ32) ?? null;
|
|
1792
1856
|
const order = this.readOrder(pubKeyZ32);
|
|
@@ -2093,7 +2157,7 @@ var RelayTransport = class {
|
|
|
2093
2157
|
}
|
|
2094
2158
|
/** `sent`: told, once the budget took the request, whether the relay takes the packet (a 2xx). */
|
|
2095
2159
|
async put(relay, pubKeyZ32, payload, replaces, who, probe = false, sent) {
|
|
2096
|
-
if (!probe && this.networkCoolingDown(relay, "PUT")) throw new Error(
|
|
2160
|
+
if (!probe && this.networkCoolingDown(relay, "PUT")) throw new Error(`${relay} did not answer a moment ago; retry shortly`);
|
|
2097
2161
|
const limited = this.rateLimitedFor(relay);
|
|
2098
2162
|
if (limited > 0) throw new DiscoveryBudgetError(limited, "Discovery relay is cooling down after a 429; retry shortly");
|
|
2099
2163
|
const blocked = probe ? 0 : this.breaker.blockedFor(relay);
|
|
@@ -2142,13 +2206,13 @@ var RelayTransport = class {
|
|
|
2142
2206
|
const writer = firstWriter(who);
|
|
2143
2207
|
if (who.urgent && !who.background) {
|
|
2144
2208
|
this.urgentAt = now;
|
|
2145
|
-
if (isChat(who)) this.chatNeed(key
|
|
2209
|
+
if (isChat(who)) this.chatNeed(key, now);
|
|
2146
2210
|
}
|
|
2147
2211
|
if (isGroupRead(who) || isChatWatch(who)) this.readAsked(key, who, now);
|
|
2148
2212
|
if (isTurnRead(who)) this.turnAsked(key, who, now);
|
|
2149
2213
|
if (this.heldFor(relay, who, now, key) > 0) {
|
|
2150
2214
|
if (isGroupRead(who) && (this.spent.get(relay)?.length ?? 0) >= this.limitOf(relay)) this.groupsFullAt.set(relay, now);
|
|
2151
|
-
if (isChat(who)) this.chatNeed(key
|
|
2215
|
+
if (isChat(who)) this.chatNeed(key, now, relay);
|
|
2152
2216
|
if (writer) this.writeWaiting.set(`${writer} ${relay}`, now);
|
|
2153
2217
|
return false;
|
|
2154
2218
|
}
|
|
@@ -2353,25 +2417,36 @@ var RelayTransport = class {
|
|
|
2353
2417
|
for (const [other, reads] of this.departedOver) if (now - reads[reads.length - 1] >= 6e4) this.departedOver.delete(other);
|
|
2354
2418
|
this.departedOver.set(key, [...this.departedOver.get(key) ?? [], now]);
|
|
2355
2419
|
}
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
if (
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
}
|
|
2362
|
-
|
|
2420
|
+
/** A chat's request of `key` asked urgently (it needs every relay), or the budget refused it on `relay` (it needs that one). */
|
|
2421
|
+
chatNeed(key, now, relay) {
|
|
2422
|
+
if (relay !== void 0) {
|
|
2423
|
+
this.chatNeedsOn(relay, now).set(key, now);
|
|
2424
|
+
return;
|
|
2425
|
+
}
|
|
2426
|
+
this.chatUrgentAt.set(key, now);
|
|
2427
|
+
for (const needs of this.chatNeeds.values()) needs.set(key, now);
|
|
2363
2428
|
}
|
|
2364
|
-
/**
|
|
2365
|
-
|
|
2366
|
-
let
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
continue;
|
|
2371
|
-
}
|
|
2372
|
-
until = Math.max(until, need.urgentAt, need.refused.get(relay) ?? -Infinity);
|
|
2429
|
+
/** The chats that need this relay: those a request of was refused there, and the urgent ones. */
|
|
2430
|
+
chatNeedsOn(relay, now) {
|
|
2431
|
+
let needs = this.chatNeeds.get(relay);
|
|
2432
|
+
if (!needs) {
|
|
2433
|
+
this.chatNeeds.set(relay, needs = new RecentKeys());
|
|
2434
|
+
for (const [key, at] of this.chatUrgentAt.entries(now)) needs.set(key, at);
|
|
2373
2435
|
}
|
|
2374
|
-
return
|
|
2436
|
+
return needs;
|
|
2437
|
+
}
|
|
2438
|
+
/** The chat reading `key` has nothing due: it needs no relay any more. */
|
|
2439
|
+
chatNeedLapsed(key) {
|
|
2440
|
+
this.chatUrgentAt.delete(key);
|
|
2441
|
+
for (const needs of this.chatNeeds.values()) needs.delete(key);
|
|
2442
|
+
}
|
|
2443
|
+
/**
|
|
2444
|
+
* How long groups still leave a chat its reserve on this relay (`CHAT_RESERVE`); a chat's need a minute old goes.
|
|
2445
|
+
* Kept up to date as needs come and go (`RecentKeys`): walking them all for each request cost a daemon with 500
|
|
2446
|
+
* contacts away 2.7 s of CPU per 10 idle minutes (bug hunt, 2026-11-01).
|
|
2447
|
+
*/
|
|
2448
|
+
chatReservedFor(relay, now) {
|
|
2449
|
+
return this.chatNeedsOn(relay, now).latest(now) + 6e4 - now;
|
|
2375
2450
|
}
|
|
2376
2451
|
/**
|
|
2377
2452
|
* How long a chat's packet another relay already took waits for this one: while chats need the relays, a copy takes
|
|
@@ -2392,8 +2467,7 @@ var RelayTransport = class {
|
|
|
2392
2467
|
}
|
|
2393
2468
|
/** What the chats that need the relays keep on this relay (`CHAT_RESERVE_PER_CHAT`), never less than `reserveOf`. */
|
|
2394
2469
|
chatReserveOf(relay, now) {
|
|
2395
|
-
|
|
2396
|
-
for (const need of this.chatNeeds.values()) if (now - Math.max(need.urgentAt, need.refused.get(relay) ?? -Infinity) < 6e4) needing++;
|
|
2470
|
+
const needing = this.chatNeedsOn(relay, now).size(now);
|
|
2397
2471
|
return Math.max(this.reserveOf(relay), Math.min(needing * 3, Math.floor(this.limitOf(relay) * CHAT_RESERVE_MOST_SHARE)));
|
|
2398
2472
|
}
|
|
2399
2473
|
/** What groups leave a chat on this relay: `CHAT_RESERVE`, or a third of a smaller budget. */
|
|
@@ -4134,14 +4208,38 @@ function webpSize(b) {
|
|
|
4134
4208
|
if (ascii(b, 12, "VP8X")) return sized(u24le(b, 24) + 1, u24le(b, 27) + 1);
|
|
4135
4209
|
}
|
|
4136
4210
|
/**
|
|
4211
|
+
* A GIF's size as it is decoded: its logical screen, or as far as its first frame reaches past it (a browser decodes
|
|
4212
|
+
* the first frame whole, at its own size, however small the screen says it is). Undefined when its first frame is not
|
|
4213
|
+
* in these bytes: what it would be drawn at is not known.
|
|
4214
|
+
*/
|
|
4215
|
+
function gifSize(b) {
|
|
4216
|
+
if (b.length < 13) return void 0;
|
|
4217
|
+
const screenWidth = u16le(b, 6), screenHeight = u16le(b, 8);
|
|
4218
|
+
let at = 13 + (b[10] & 128 ? 3 * (2 << (b[10] & 7)) : 0);
|
|
4219
|
+
while (at < b.length) {
|
|
4220
|
+
const block = b[at];
|
|
4221
|
+
if (block === 44) {
|
|
4222
|
+
if (at + 9 > b.length) return void 0;
|
|
4223
|
+
const left = u16le(b, at + 1), top = u16le(b, at + 3), width = u16le(b, at + 5), height = u16le(b, at + 7);
|
|
4224
|
+
return sized(Math.max(screenWidth, left + width), Math.max(screenHeight, top + height));
|
|
4225
|
+
}
|
|
4226
|
+
if (block === 59) return sized(screenWidth, screenHeight);
|
|
4227
|
+
if (block !== 33 || at + 2 > b.length) return void 0;
|
|
4228
|
+
at += 2;
|
|
4229
|
+
while (at < b.length && b[at] !== 0) at += 1 + b[at];
|
|
4230
|
+
at++;
|
|
4231
|
+
}
|
|
4232
|
+
}
|
|
4233
|
+
/**
|
|
4137
4234
|
* A picture's size as it is shown, read from its first bytes (PNG, JPEG, GIF, WebP), or undefined when they do not
|
|
4138
|
-
* say. Only the header is read: a JPEG whose frame header
|
|
4235
|
+
* say. Only the header is read: a JPEG whose frame header, or a GIF whose first frame, sits past
|
|
4236
|
+
* `IMAGE_LIMITS.headBytes` goes without.
|
|
4139
4237
|
*/
|
|
4140
4238
|
function imageSize(head) {
|
|
4141
4239
|
const b = head;
|
|
4142
4240
|
try {
|
|
4143
4241
|
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));
|
|
4144
|
-
if (b.length >= 10 && (ascii(b, 0, "GIF87a") || ascii(b, 0, "GIF89a"))) return
|
|
4242
|
+
if (b.length >= 10 && (ascii(b, 0, "GIF87a") || ascii(b, 0, "GIF89a"))) return gifSize(b);
|
|
4145
4243
|
if (b.length >= 4 && b[0] === 255 && b[1] === 216 && b[2] === 255) return jpegSize(b);
|
|
4146
4244
|
if (b.length >= 16 && ascii(b, 0, "RIFF") && ascii(b, 8, "WEBP")) return webpSize(b);
|
|
4147
4245
|
} catch {}
|
|
@@ -4614,7 +4712,7 @@ function isAppUrl(value) {
|
|
|
4614
4712
|
return false;
|
|
4615
4713
|
}
|
|
4616
4714
|
if (url.protocol !== "https:" || url.username || url.password || !url.hostname) return false;
|
|
4617
|
-
const host = url.hostname.toLowerCase();
|
|
4715
|
+
const host = url.hostname.toLowerCase().replace(/\.+$/, "");
|
|
4618
4716
|
if (host === "jsdelivr.net" || host.endsWith(".jsdelivr.net")) return host === "cdn.jsdelivr.net" && /^\/gh\/[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+@[0-9a-f]{40}\/./.test(url.pathname);
|
|
4619
4717
|
return true;
|
|
4620
4718
|
}
|
|
@@ -10989,11 +11087,25 @@ var LINK_CLOSERS = {
|
|
|
10989
11087
|
"}": "{"
|
|
10990
11088
|
};
|
|
10991
11089
|
/**
|
|
10992
|
-
*
|
|
10993
|
-
*
|
|
10994
|
-
*
|
|
11090
|
+
* Punctuation a sentence in Chinese, Japanese or Arabic puts right after a link, with no space: the ideographic comma
|
|
11091
|
+
* and full stop, the full-width ! , : ; ? and brackets, the corner quotes, the Arabic comma, semicolon and question
|
|
11092
|
+
* mark, the Urdu full stop. No address holds one as typed, so a link stops at the first.
|
|
10995
11093
|
*/
|
|
10996
|
-
|
|
11094
|
+
var LINK_STOP = /[、。〈-】!(),:;?،؛؟۔]/;
|
|
11095
|
+
/** What a link leaves out at its end: a sentence's punctuation ("…", "»", "”" too), never a path's "/". */
|
|
11096
|
+
var LINK_TRAILING = /[.,;:!?'"*_>…»’”]/;
|
|
11097
|
+
/** A link up to the first `LINK_STOP`: "https://x.example/a。" opens /a, not /a%E3%80%82. */
|
|
11098
|
+
function linkStop(url) {
|
|
11099
|
+
const at = url.search(LINK_STOP);
|
|
11100
|
+
return at < 0 ? url : url.slice(0, at);
|
|
11101
|
+
}
|
|
11102
|
+
/**
|
|
11103
|
+
* A link ends where the sentence around it takes over: trailing punctuation ("see https://x.example/a.", in any of
|
|
11104
|
+
* the app's languages) and a closing bracket or quote the link did not open ("(https://x.example/a)") are left as
|
|
11105
|
+
* text. The same rule as the message bubble's links.
|
|
11106
|
+
*/
|
|
11107
|
+
function linkEnd(whole) {
|
|
11108
|
+
const url = linkStop(whole);
|
|
10997
11109
|
const count = {
|
|
10998
11110
|
"(": 0,
|
|
10999
11111
|
")": 0,
|
|
@@ -11007,7 +11119,7 @@ function linkEnd(url) {
|
|
|
11007
11119
|
while (end > 0) {
|
|
11008
11120
|
const last = url[end - 1];
|
|
11009
11121
|
const opener = LINK_CLOSERS[last];
|
|
11010
|
-
if (
|
|
11122
|
+
if (!LINK_TRAILING.test(last) && !(opener && count[last] > count[opener])) break;
|
|
11011
11123
|
if (opener) count[last]--;
|
|
11012
11124
|
end--;
|
|
11013
11125
|
}
|
|
@@ -11017,7 +11129,7 @@ function linkEnd(url) {
|
|
|
11017
11129
|
var LINK_MAX_CHARS = 4096;
|
|
11018
11130
|
/** The http(s) links of a text, in order, each ending as the bubble ends it. */
|
|
11019
11131
|
function linksIn(text) {
|
|
11020
|
-
return [...text.matchAll(/https?:\/\/\S+/
|
|
11132
|
+
return [...text.matchAll(/https?:\/\/\S+/gi)].filter((match) => match[0].length <= LINK_MAX_CHARS).map((match) => linkEnd(match[0])).filter((url) => url.length > 8);
|
|
11021
11133
|
}
|
|
11022
11134
|
/**
|
|
11023
11135
|
* The link as a preview names it: parsed, http(s) only, without tracking parameters (`utm_*`, `fbclid`, …). The
|
|
@@ -11518,6 +11630,17 @@ var BLANK = /[\u034F\u115F\u1160\u2800\u3164\uFFA0]/gu;
|
|
|
11518
11630
|
*/
|
|
11519
11631
|
var SPACE_RUN = /(?:\s\p{M}*)+/gu;
|
|
11520
11632
|
/**
|
|
11633
|
+
* A run of characters meant to draw nothing (variation selectors, the Khmer inherent vowels, the Mongolian free
|
|
11634
|
+
* variation selectors). WebKit draws some of them as wide blanks after a letter, so "Invoice.pdf" + 150 of one +
|
|
11635
|
+
* ".exe" reads as a PDF there. A letter keeps one variation selector (its variant form); the rest go.
|
|
11636
|
+
*/
|
|
11637
|
+
var IGNORABLE_RUN = /\p{Default_Ignorable_Code_Point}+/gu;
|
|
11638
|
+
var VARIATION_SELECTOR = /^\p{Variation_Selector}/u;
|
|
11639
|
+
function dropIgnorable(run, offset, text) {
|
|
11640
|
+
const kept = VARIATION_SELECTOR.exec(run)?.[0];
|
|
11641
|
+
return kept && offset > 0 && !/\s/u.test(text[offset - 1]) ? kept : "";
|
|
11642
|
+
}
|
|
11643
|
+
/**
|
|
11521
11644
|
* Names Windows keeps for devices, whatever the case, with any extension, and with spaces before the dot:
|
|
11522
11645
|
* "CON", "nul.txt", "COM1 .log" open a device there, not a file.
|
|
11523
11646
|
*/
|
|
@@ -11534,7 +11657,7 @@ function shorten(name) {
|
|
|
11534
11657
|
}
|
|
11535
11658
|
/** A file name is display text and a download suggestion, never a path. */
|
|
11536
11659
|
function sanitizeFileName(name) {
|
|
11537
|
-
const clean = shorten(name.replace(INVISIBLE, "").replace(BLANK, "").replace(/[/\\:]/g, "").replace(SPACE_RUN, " ").replace(/^[\s.]+/, "").trim());
|
|
11660
|
+
const clean = shorten(name.replace(INVISIBLE, "").replace(BLANK, "").replace(/[/\\:]/g, "").replace(IGNORABLE_RUN, dropIgnorable).replace(SPACE_RUN, " ").replace(/^[\s.]+/, "").trim());
|
|
11538
11661
|
if (WINDOWS_DEVICE.test(clean)) return shorten("_" + clean);
|
|
11539
11662
|
return clean || "file";
|
|
11540
11663
|
}
|
|
@@ -13753,6 +13876,14 @@ var TransportSwitch = class {
|
|
|
13753
13876
|
var RING_LIFETIME = 600;
|
|
13754
13877
|
var enc = base64urlnopad.encode;
|
|
13755
13878
|
var dec = base64urlnopad.decode;
|
|
13879
|
+
/** No bytes for text that is not base64url: the checks then refuse it with their own message. */
|
|
13880
|
+
var decOrEmpty = (s) => {
|
|
13881
|
+
try {
|
|
13882
|
+
return dec(s);
|
|
13883
|
+
} catch {
|
|
13884
|
+
return /* @__PURE__ */ new Uint8Array(0);
|
|
13885
|
+
}
|
|
13886
|
+
};
|
|
13756
13887
|
var hash = (s) => enc(sha256(utf8Encode(s)));
|
|
13757
13888
|
var header = enc(utf8Encode(JSON.stringify({
|
|
13758
13889
|
alg: "EdDSA",
|
|
@@ -13777,8 +13908,14 @@ function verifyRingAuthorization(authorization, statement, issuer, issuedAt, exp
|
|
|
13777
13908
|
if (typeof authorization !== "string" || authorization.length > 2400) throw new Error("Invalid Ring authorization");
|
|
13778
13909
|
const [h, p, s, ...extra] = authorization.split(".");
|
|
13779
13910
|
if (extra.length || h !== header || !p || !s) throw new Error("Unsupported Ring authorization");
|
|
13780
|
-
|
|
13781
|
-
|
|
13911
|
+
let claims;
|
|
13912
|
+
try {
|
|
13913
|
+
claims = JSON.parse(utf8Decode(dec(p)));
|
|
13914
|
+
} catch {
|
|
13915
|
+
throw new Error("Unsupported Ring authorization");
|
|
13916
|
+
}
|
|
13917
|
+
const sig = decOrEmpty(s);
|
|
13918
|
+
if (typeof claims?.cnf !== "string" || !validRingKey(claims.cnf) || expiresAt !== issuedAt + 600 || p !== enc(utf8Encode(JSON.stringify(ringClaims(statement, issuer, claims.cnf, issuedAt, expiresAt)))) || !validRingKey(issuer) || sig.length !== 64 || enc(sig) !== s || !ed25519.verify(sig, utf8Encode(h + "." + p), fromZ32(issuer), { zip215: false })) throw new Error("Ring did not authorize this exact conversation");
|
|
13782
13919
|
return claims;
|
|
13783
13920
|
}
|
|
13784
13921
|
function validRingKey(key) {
|
|
@@ -13813,7 +13950,7 @@ function ringEvidence(authorization, statement, delegatedSeed) {
|
|
|
13813
13950
|
function verifyRingEvidence(e, statement, issuer, issuedAt, expiresAt) {
|
|
13814
13951
|
if (!e || e.scheme !== "pubky-ring/1" || typeof e.signature !== "string" || e.signature.length !== 86) throw new Error("Invalid Ring proof");
|
|
13815
13952
|
const claims = verifyRingAuthorization(e.authorization, statement, issuer, issuedAt, expiresAt);
|
|
13816
|
-
const sig =
|
|
13953
|
+
const sig = decOrEmpty(e.signature);
|
|
13817
13954
|
if (enc(sig) !== e.signature || e.id !== evidenceId(e.authorization, e.signature) || !ed25519.verify(sig, possession(e.authorization, statement), fromZ32(claims.cnf), { zip215: false })) throw new Error("Invalid delegated proof of possession");
|
|
13818
13955
|
}
|
|
13819
13956
|
//#endregion
|
|
@@ -13948,7 +14085,7 @@ async function verifyPeerProof(event, c, readStorage) {
|
|
|
13948
14085
|
if (sig.length !== 64 || !verify(sig, data, fromZ32(c.externalKey))) throw new Error("Invalid Pubky signature");
|
|
13949
14086
|
} else if (c.adapter === "keet-import") {
|
|
13950
14087
|
if (sig.length !== 107 || sig[0] !== 1 || sig[41] !== 0 || sig[42] !== 1) throw new Error("Unsupported Keet attestation");
|
|
13951
|
-
const { default: IdentityKey } = await import("./keet-identity-key-
|
|
14088
|
+
const { default: IdentityKey } = await import("./keet-identity-key-BRKv78jp.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
|
|
13952
14089
|
if (!IdentityKey.verify(b4a.from(sig), b4a.from(data), { expectedIdentity: b4a.from(unhex(c.externalKey)) })) throw new Error("Invalid Keet attestation");
|
|
13953
14090
|
} else throw new Error("Unsupported proof adapter");
|
|
13954
14091
|
}
|
|
@@ -14172,10 +14309,12 @@ function applyIdentityEvent(timeline, event, at) {
|
|
|
14172
14309
|
const i = lastOf(out, event.side, event.type === "result" ? [event.proof, event.requested] : [event.proof]);
|
|
14173
14310
|
const last = i >= 0 ? out[i] : void 0;
|
|
14174
14311
|
const add = (entry) => {
|
|
14175
|
-
const
|
|
14312
|
+
const prefix = `${entry.side}:${entry.proof}:`;
|
|
14313
|
+
let n = 0;
|
|
14314
|
+
for (const e of out) if (e.id.startsWith(prefix)) n = Math.max(n, Number(e.id.slice(prefix.length)) + 1 || 0);
|
|
14176
14315
|
out.push({
|
|
14177
14316
|
...entry,
|
|
14178
|
-
id: `${
|
|
14317
|
+
id: `${prefix}${n}`,
|
|
14179
14318
|
at
|
|
14180
14319
|
});
|
|
14181
14320
|
};
|
|
@@ -14380,13 +14519,19 @@ function verifyIdentityPresentation(key, sig, proofId, scope, nonce, issuedAt) {
|
|
|
14380
14519
|
}
|
|
14381
14520
|
var clean$1 = (value, max) => {
|
|
14382
14521
|
if (typeof value !== "string") return void 0;
|
|
14383
|
-
const text = value
|
|
14384
|
-
return text ? text.slice(0, max) : void 0;
|
|
14522
|
+
const text = stripHidden(value).trim();
|
|
14523
|
+
return text && hasVisible(text) ? text.slice(0, max) : void 0;
|
|
14385
14524
|
};
|
|
14525
|
+
/**
|
|
14526
|
+
* Room for a line that names a domain (up to 253 characters) once or twice: a How line or a reason cut inside the name
|
|
14527
|
+
* names a record that does not exist, and the app no longer knows the reason to say it in the person's language.
|
|
14528
|
+
*/
|
|
14529
|
+
var SOURCE_MAX = 640;
|
|
14530
|
+
var ERROR_MAX = 512;
|
|
14386
14531
|
/** Bounds a provider's result so a buggy provider cannot store or show arbitrary data. */
|
|
14387
14532
|
function boundVerifiedIdentity(v) {
|
|
14388
14533
|
if (!v || typeof v.subject !== "string" || !IDENTITY_SUBJECT.test(v.subject)) throw new Error("Provider returned an invalid subject");
|
|
14389
|
-
const source = clean$1(v.source,
|
|
14534
|
+
const source = clean$1(v.source, SOURCE_MAX);
|
|
14390
14535
|
if (!source) throw new Error("Provider did not say how it verified");
|
|
14391
14536
|
const out = {
|
|
14392
14537
|
subject: v.subject,
|
|
@@ -14440,7 +14585,10 @@ function receivedWithRoom(received, id, replaced, now) {
|
|
|
14440
14585
|
const out = kept.filter((r) => !drop.has(r));
|
|
14441
14586
|
return out.length < 16 ? out : void 0;
|
|
14442
14587
|
}
|
|
14443
|
-
var
|
|
14588
|
+
var REVOKED = "Its owner revoked this proof";
|
|
14589
|
+
/** Revoked is final: a later lookup that fails or finds nothing (the relays forgot it) does not undo it. */
|
|
14590
|
+
var revokedHere = (received, id) => received.some((r) => r.id === id && r.status === "revoked");
|
|
14591
|
+
var shortError = (e) => clean$1(e instanceof Error ? e.message : String(e), ERROR_MAX) ?? "Invalid proof";
|
|
14444
14592
|
/**
|
|
14445
14593
|
* A check this side could not finish because of what its own network did: a host it refused to contact, a server
|
|
14446
14594
|
* that did not answer or answered an error. The message is for this side only. The contact is told the proof could
|
|
@@ -14601,54 +14749,60 @@ var IdentityExchange = class {
|
|
|
14601
14749
|
const r = this.options.storage.read().received.find((x) => x.id === id);
|
|
14602
14750
|
if (!r) throw new Error("Unknown identity");
|
|
14603
14751
|
if (r.status === "revoked") return r;
|
|
14604
|
-
|
|
14605
|
-
|
|
14606
|
-
|
|
14607
|
-
|
|
14608
|
-
|
|
14609
|
-
|
|
14610
|
-
|
|
14611
|
-
|
|
14612
|
-
|
|
14613
|
-
|
|
14614
|
-
|
|
14615
|
-
|
|
14616
|
-
|
|
14617
|
-
type: "stopped",
|
|
14618
|
-
side: "theirs",
|
|
14619
|
-
proof: id,
|
|
14620
|
-
provider: r.binding.provider,
|
|
14621
|
-
subject: r.verified.subject,
|
|
14622
|
-
reason: "revoked"
|
|
14623
|
-
}));
|
|
14624
|
-
return next;
|
|
14625
|
-
}
|
|
14752
|
+
if (await this.options.revoked?.(identityStatement(r.binding)).catch(() => false)) return await this.settleRecheck(id, (x) => x.status === "revoked" ? x : {
|
|
14753
|
+
...x,
|
|
14754
|
+
status: "revoked",
|
|
14755
|
+
checkedAt: this.now(),
|
|
14756
|
+
error: void 0
|
|
14757
|
+
}, {
|
|
14758
|
+
type: "stopped",
|
|
14759
|
+
side: "theirs",
|
|
14760
|
+
proof: id,
|
|
14761
|
+
provider: r.binding.provider,
|
|
14762
|
+
subject: r.verified.subject,
|
|
14763
|
+
reason: "revoked"
|
|
14764
|
+
}) ?? r;
|
|
14626
14765
|
if (revocationOnly) return r;
|
|
14766
|
+
let outcome;
|
|
14627
14767
|
try {
|
|
14628
14768
|
const verified = boundVerifiedIdentity(await this.options.verify(identityStatement(r.binding), r.evidence));
|
|
14629
14769
|
if (verified.subject !== r.verified.subject) throw new Error("The identity changed");
|
|
14630
|
-
|
|
14631
|
-
...
|
|
14770
|
+
outcome = (x) => ({
|
|
14771
|
+
...x,
|
|
14632
14772
|
verified: {
|
|
14633
14773
|
...verified,
|
|
14634
|
-
display: verified.display ??
|
|
14774
|
+
display: verified.display ?? x.verified.display
|
|
14635
14775
|
},
|
|
14636
14776
|
checkedAt: this.now(),
|
|
14637
|
-
status:
|
|
14777
|
+
status: "verified",
|
|
14638
14778
|
error: void 0
|
|
14639
|
-
};
|
|
14779
|
+
});
|
|
14640
14780
|
} catch (e) {
|
|
14641
|
-
|
|
14642
|
-
|
|
14781
|
+
const error = shortError(e);
|
|
14782
|
+
outcome = (x) => ({
|
|
14783
|
+
...x,
|
|
14643
14784
|
checkedAt: this.now(),
|
|
14644
|
-
status:
|
|
14645
|
-
error
|
|
14646
|
-
};
|
|
14785
|
+
status: "unconfirmed",
|
|
14786
|
+
error
|
|
14787
|
+
});
|
|
14647
14788
|
}
|
|
14648
|
-
await this.
|
|
14649
|
-
...
|
|
14650
|
-
|
|
14651
|
-
}));
|
|
14789
|
+
return await this.settleRecheck(id, (x) => x.status === "revoked" ? x : x.status === "withdrawn" ? {
|
|
14790
|
+
...outcome(x),
|
|
14791
|
+
status: "withdrawn"
|
|
14792
|
+
} : outcome(x)) ?? r;
|
|
14793
|
+
}
|
|
14794
|
+
async settleRecheck(id, outcome, event) {
|
|
14795
|
+
let next;
|
|
14796
|
+
await this.options.storage.update((l) => {
|
|
14797
|
+
const x = l.received.find((y) => y.id === id);
|
|
14798
|
+
if (!x) return l;
|
|
14799
|
+
next = outcome(x);
|
|
14800
|
+
const out = {
|
|
14801
|
+
...l,
|
|
14802
|
+
received: l.received.map((y) => y.id === id ? next : y)
|
|
14803
|
+
};
|
|
14804
|
+
return event && x.status !== "revoked" ? this.log(out, event) : out;
|
|
14805
|
+
});
|
|
14652
14806
|
return next;
|
|
14653
14807
|
}
|
|
14654
14808
|
async receive(frame) {
|
|
@@ -14665,7 +14819,7 @@ var IdentityExchange = class {
|
|
|
14665
14819
|
case "idp-result": {
|
|
14666
14820
|
const s = id ? this.shared(id) : void 0;
|
|
14667
14821
|
if (!s || s.status !== "pending") return;
|
|
14668
|
-
const error = frame.ok === true ? void 0 : clean$1(frame.error,
|
|
14822
|
+
const error = frame.ok === true ? void 0 : clean$1(frame.error, ERROR_MAX) ?? "Your contact could not verify it";
|
|
14669
14823
|
await this.setShared({
|
|
14670
14824
|
...s,
|
|
14671
14825
|
status: frame.ok === true ? "accepted" : "rejected",
|
|
@@ -14683,7 +14837,7 @@ var IdentityExchange = class {
|
|
|
14683
14837
|
case "idp-withdraw": {
|
|
14684
14838
|
if (!id) return;
|
|
14685
14839
|
const r = this.options.storage.read().received.find((x) => x.id === id);
|
|
14686
|
-
if (r && r.status !== "withdrawn") await this.options.storage.update((l) => this.log({
|
|
14840
|
+
if (r && r.status !== "withdrawn" && r.status !== "revoked") await this.options.storage.update((l) => this.log({
|
|
14687
14841
|
...l,
|
|
14688
14842
|
received: l.received.map((x) => x.id === id ? {
|
|
14689
14843
|
...x,
|
|
@@ -14811,13 +14965,14 @@ var IdentityExchange = class {
|
|
|
14811
14965
|
let reason;
|
|
14812
14966
|
try {
|
|
14813
14967
|
const mayReplace = (r) => r.binding.provider === binding.provider && (r.binding.subject === binding.subject || r.verified.subject === binding.subject);
|
|
14968
|
+
if (revokedHere(this.options.storage.read().received, id)) throw new Error(REVOKED);
|
|
14814
14969
|
if (!receivedWithRoom(this.options.storage.read().received, id, mayReplace, now)) throw new Error(TOO_MANY_RECEIVED);
|
|
14815
14970
|
if (JSON.stringify(evidence ?? null).length > 16384) throw new Error("Evidence too large");
|
|
14816
14971
|
if (!verifyIdentityPresentation(binding.key, sig, id, scope, nonce, issuedAt)) throw new Error("The proof key did not sign this conversation's challenge");
|
|
14817
14972
|
if (binding.issuedAt > now + 300) throw new Error("The proof is dated in the future");
|
|
14818
14973
|
const result = boundVerifiedIdentity(await this.options.verify(statement, evidence));
|
|
14819
14974
|
if (Math.min(binding.expiresAt, result.expiresAt ?? Infinity) <= now) throw new Error("The proof has expired");
|
|
14820
|
-
if (await this.options.revoked?.(statement).catch(() => false)) throw new Error(
|
|
14975
|
+
if (await this.options.revoked?.(statement).catch(() => false)) throw new Error(REVOKED);
|
|
14821
14976
|
verified = result;
|
|
14822
14977
|
} catch (e) {
|
|
14823
14978
|
error = peerError(e);
|
|
@@ -14828,6 +14983,10 @@ var IdentityExchange = class {
|
|
|
14828
14983
|
if (!challenge) throw new Error("Unknown or reused identity challenge");
|
|
14829
14984
|
const challenges = l.challenges.filter((c) => c.nonce !== nonce);
|
|
14830
14985
|
const subject = verified?.subject;
|
|
14986
|
+
if (verified && revokedHere(l.received, id)) {
|
|
14987
|
+
verified = void 0;
|
|
14988
|
+
error = reason = REVOKED;
|
|
14989
|
+
}
|
|
14831
14990
|
const received = verified && receivedWithRoom(l.received, id, (r) => r.binding.provider === binding.provider && r.verified.subject === subject, now);
|
|
14832
14991
|
if (verified && !received) {
|
|
14833
14992
|
verified = void 0;
|
|
@@ -16689,7 +16848,7 @@ var APP_RATE_LIMIT = 50;
|
|
|
16689
16848
|
var APP_RATE_WINDOW_MS = 1e3;
|
|
16690
16849
|
/** Data frames a sender sends per app per window: under the receiver's limit, so an `open` or `close` always fits. */
|
|
16691
16850
|
var APP_SEND_LIMIT = 48;
|
|
16692
|
-
/** Distinct apps the peer may have open on one session; an `open` for one more is dropped. */
|
|
16851
|
+
/** Distinct apps the peer may have open on one session, held ones counted; an `open` for one more is dropped. */
|
|
16693
16852
|
var APP_PEER_OPEN_MAX = 16;
|
|
16694
16853
|
/** The longest version an `open` carries. */
|
|
16695
16854
|
var APP_VERSION_MAX = 64;
|
|
@@ -16848,7 +17007,10 @@ var AppSessions = class {
|
|
|
16848
17007
|
open;
|
|
16849
17008
|
now;
|
|
16850
17009
|
peer = /* @__PURE__ */ new Map();
|
|
16851
|
-
/**
|
|
17010
|
+
/**
|
|
17011
|
+
* What the peer had open on a session that ended, until it says so again: each with its version and the time its
|
|
17012
|
+
* grace ends, counted from the suspension that took it from the peer.
|
|
17013
|
+
*/
|
|
16852
17014
|
held = /* @__PURE__ */ new Map();
|
|
16853
17015
|
received = new RateWindows(50, 64);
|
|
16854
17016
|
sent = new RateWindows(48, 64);
|
|
@@ -16882,7 +17044,7 @@ var AppSessions = class {
|
|
|
16882
17044
|
app,
|
|
16883
17045
|
o: "close"
|
|
16884
17046
|
} : null;
|
|
16885
|
-
if (!this.peer.has(app) && this.peer.size >= 16) return null;
|
|
17047
|
+
if (!this.peer.has(app) && !this.held.has(app) && this.peer.size + this.held.size >= 16) return null;
|
|
16886
17048
|
this.held.delete(app);
|
|
16887
17049
|
this.peer.set(app, parsed.v);
|
|
16888
17050
|
return {
|
|
@@ -16917,10 +17079,14 @@ var AppSessions = class {
|
|
|
16917
17079
|
/**
|
|
16918
17080
|
* The session ended or was replaced, and another may follow at once: what the peer had open is held, not closed (no
|
|
16919
17081
|
* event now). Nothing is sent to a held app; an `open` on the next session takes it back, a `close` closes it, and
|
|
16920
|
-
* `heldExpired` closes the rest once `
|
|
17082
|
+
* `heldExpired` closes the rest once `graceMs` has passed since the suspension that held each.
|
|
16921
17083
|
*/
|
|
16922
|
-
sessionSuspended() {
|
|
16923
|
-
|
|
17084
|
+
sessionSuspended(graceMs = APP_RESUME_GRACE_MS) {
|
|
17085
|
+
const until = this.now() + graceMs;
|
|
17086
|
+
for (const [app, version] of this.peer) this.held.set(app, {
|
|
17087
|
+
version,
|
|
17088
|
+
until
|
|
17089
|
+
});
|
|
16924
17090
|
this.peer.clear();
|
|
16925
17091
|
this.received.clear();
|
|
16926
17092
|
this.sent.clear();
|
|
@@ -16929,14 +17095,23 @@ var AppSessions = class {
|
|
|
16929
17095
|
get holding() {
|
|
16930
17096
|
return this.held.size > 0;
|
|
16931
17097
|
}
|
|
16932
|
-
/**
|
|
17098
|
+
/** When the next held app's grace ends; undefined when none is held. */
|
|
17099
|
+
get heldUntil() {
|
|
17100
|
+
let first;
|
|
17101
|
+
for (const { until } of this.held.values()) if (first === void 0 || until < first) first = until;
|
|
17102
|
+
return first;
|
|
17103
|
+
}
|
|
17104
|
+
/** Each app held whose grace is over is closed, with `offline`; the ones held later keep theirs. */
|
|
16933
17105
|
heldExpired() {
|
|
16934
|
-
const
|
|
16935
|
-
|
|
16936
|
-
|
|
16937
|
-
|
|
16938
|
-
|
|
16939
|
-
|
|
17106
|
+
const now = this.now(), closed = [];
|
|
17107
|
+
for (const [app, { until }] of this.held) if (until <= now) {
|
|
17108
|
+
this.held.delete(app);
|
|
17109
|
+
closed.push({
|
|
17110
|
+
app,
|
|
17111
|
+
o: "close",
|
|
17112
|
+
offline: true
|
|
17113
|
+
});
|
|
17114
|
+
}
|
|
16940
17115
|
return closed;
|
|
16941
17116
|
}
|
|
16942
17117
|
};
|
|
@@ -18142,6 +18317,12 @@ var FILE_LIMITS = {
|
|
|
18142
18317
|
autoAcceptBytesPerPeer: 524288e3,
|
|
18143
18318
|
/** Offers from one contact waiting for an answer here. */
|
|
18144
18319
|
maxWaitingOffers: 16,
|
|
18320
|
+
/**
|
|
18321
|
+
* Files from one contact not finished here, whatever their state (asked about, taken and waiting their turn, paused,
|
|
18322
|
+
* arriving). Only bytes were counted before: offers of 0 bytes were each taken, and 2,500 of them were 2,500
|
|
18323
|
+
* messages and records waiting for good.
|
|
18324
|
+
*/
|
|
18325
|
+
maxUnfinishedIncoming: 256,
|
|
18145
18326
|
/** Files one contact sends at once; accepted ones beyond wait their turn. */
|
|
18146
18327
|
maxActiveIncoming: 3,
|
|
18147
18328
|
/** An offer nobody answered ends after this long. */
|
|
@@ -18579,6 +18760,11 @@ var ChatFiles = class {
|
|
|
18579
18760
|
if (entry.record.direction === "out") this.announce(entry);
|
|
18580
18761
|
else if (entry.record.state === "queued") this.startIncoming(entry);
|
|
18581
18762
|
else if (entry.record.state === "active") this.armNudge(entry);
|
|
18763
|
+
else if (entry.record.state === "paused" && entry.record.pausedBy === "peer") this.send({
|
|
18764
|
+
t: "pf-accept",
|
|
18765
|
+
id: entry.record.id,
|
|
18766
|
+
offset: entry.in.written
|
|
18767
|
+
});
|
|
18582
18768
|
}
|
|
18583
18769
|
}
|
|
18584
18770
|
/** The session went: nothing moves until the next one. What was received is made durable. */
|
|
@@ -18600,7 +18786,11 @@ var ChatFiles = class {
|
|
|
18600
18786
|
if (entry.in && !transferEnded(entry.record)) this.checkpoint(entry);
|
|
18601
18787
|
}
|
|
18602
18788
|
}
|
|
18603
|
-
/**
|
|
18789
|
+
/**
|
|
18790
|
+
* Offers ended by their time to live. The host calls it now and then; `attach` does too. A file taken here and waiting
|
|
18791
|
+
* its turn ends too once nothing of it arrived in that time: its sender never sent it. Offered again, it is taken
|
|
18792
|
+
* again (`retakeAgreed`).
|
|
18793
|
+
*/
|
|
18604
18794
|
sweep() {
|
|
18605
18795
|
const now = this.now();
|
|
18606
18796
|
for (const entry of this.entries.values()) {
|
|
@@ -18610,7 +18800,7 @@ var ChatFiles = class {
|
|
|
18610
18800
|
"offered",
|
|
18611
18801
|
"asking"
|
|
18612
18802
|
].includes(record.state) || record.since + FILE_LIMITS.offerTtlMs > now) continue;
|
|
18613
|
-
if (record.direction === "in" && record.state === "queued") continue;
|
|
18803
|
+
if (record.direction === "in" && record.state === "queued" && (entry.in?.starting || this.moved(entry) > 0)) continue;
|
|
18614
18804
|
this.end(entry, "failed", record.direction === "in" ? "The offer expired" : record.state === "queued" ? "Not delivered in time" : "Not accepted in time");
|
|
18615
18805
|
if (record.direction === "in") this.send({
|
|
18616
18806
|
t: "pf-refuse",
|
|
@@ -18831,6 +19021,9 @@ var ChatFiles = class {
|
|
|
18831
19021
|
waitingOffers() {
|
|
18832
19022
|
return [...this.entries.values()].filter((e) => e.record.direction === "in" && e.record.state === "asking").length;
|
|
18833
19023
|
}
|
|
19024
|
+
unfinishedIncoming() {
|
|
19025
|
+
return [...this.entries.values()].filter((e) => e.record.direction === "in" && !transferEnded(e.record)).length;
|
|
19026
|
+
}
|
|
18834
19027
|
activeIncoming(except) {
|
|
18835
19028
|
return [...this.entries.values()].filter((e) => e !== except && e.record.direction === "in" && (e.record.state === "active" || e.record.state === "verifying" || e.in?.starting)).length;
|
|
18836
19029
|
}
|
|
@@ -18955,10 +19148,7 @@ var ChatFiles = class {
|
|
|
18955
19148
|
}
|
|
18956
19149
|
switch (record.state) {
|
|
18957
19150
|
case "done":
|
|
18958
|
-
this.
|
|
18959
|
-
t: "pf-done",
|
|
18960
|
-
id
|
|
18961
|
-
});
|
|
19151
|
+
this.sayDone(id);
|
|
18962
19152
|
return;
|
|
18963
19153
|
case "declined":
|
|
18964
19154
|
this.send({
|
|
@@ -19022,7 +19212,7 @@ var ChatFiles = class {
|
|
|
19022
19212
|
this.startIncoming(existing);
|
|
19023
19213
|
return;
|
|
19024
19214
|
}
|
|
19025
|
-
if (this.waitingOffers() >= FILE_LIMITS.maxWaitingOffers) {
|
|
19215
|
+
if (this.waitingOffers() >= FILE_LIMITS.maxWaitingOffers || this.unfinishedIncoming() >= FILE_LIMITS.maxUnfinishedIncoming) {
|
|
19026
19216
|
this.send({
|
|
19027
19217
|
t: "pf-refuse",
|
|
19028
19218
|
id,
|
|
@@ -19081,6 +19271,14 @@ var ChatFiles = class {
|
|
|
19081
19271
|
*/
|
|
19082
19272
|
async retakeAgreed(entry) {
|
|
19083
19273
|
const { record } = entry;
|
|
19274
|
+
if (this.unfinishedIncoming() >= FILE_LIMITS.maxUnfinishedIncoming) {
|
|
19275
|
+
this.send({
|
|
19276
|
+
t: "pf-refuse",
|
|
19277
|
+
id: record.id,
|
|
19278
|
+
why: "too-many"
|
|
19279
|
+
});
|
|
19280
|
+
return false;
|
|
19281
|
+
}
|
|
19084
19282
|
if (!record.consented) {
|
|
19085
19283
|
let decision;
|
|
19086
19284
|
try {
|
|
@@ -19253,10 +19451,7 @@ var ChatFiles = class {
|
|
|
19253
19451
|
async onSum(entry, frame) {
|
|
19254
19452
|
const { record } = entry, incoming = entry.in;
|
|
19255
19453
|
if (record.state === "done") {
|
|
19256
|
-
this.
|
|
19257
|
-
t: "pf-done",
|
|
19258
|
-
id: record.id
|
|
19259
|
-
});
|
|
19454
|
+
this.sayDone(record.id);
|
|
19260
19455
|
return;
|
|
19261
19456
|
}
|
|
19262
19457
|
if (record.state !== "active" || incoming.verifying || !incoming.target) return;
|
|
@@ -19289,10 +19484,7 @@ var ChatFiles = class {
|
|
|
19289
19484
|
record.digest = digest;
|
|
19290
19485
|
record.confirmed = record.file.size;
|
|
19291
19486
|
this.end(entry, "done");
|
|
19292
|
-
this.
|
|
19293
|
-
t: "pf-done",
|
|
19294
|
-
id: record.id
|
|
19295
|
-
});
|
|
19487
|
+
this.sayDone(record.id);
|
|
19296
19488
|
} else {
|
|
19297
19489
|
await incoming.target.then((t) => t.discard()).catch(() => {});
|
|
19298
19490
|
this.end(entry, "failed", "The file arrived damaged and was deleted. Ask for it again.");
|
|
@@ -19304,6 +19496,24 @@ var ChatFiles = class {
|
|
|
19304
19496
|
}
|
|
19305
19497
|
this.startNext();
|
|
19306
19498
|
}
|
|
19499
|
+
/**
|
|
19500
|
+
* `pf-done` once the host kept the file's done record (`kept`). Not kept (the app gone first), the sender still
|
|
19501
|
+
* waits, offers it again on the next session, and the receiver answers from what it kept.
|
|
19502
|
+
*/
|
|
19503
|
+
sayDone(id) {
|
|
19504
|
+
const kept = this.host.kept?.().catch(() => {});
|
|
19505
|
+
if (!kept) {
|
|
19506
|
+
this.send({
|
|
19507
|
+
t: "pf-done",
|
|
19508
|
+
id
|
|
19509
|
+
});
|
|
19510
|
+
return;
|
|
19511
|
+
}
|
|
19512
|
+
kept.then(() => this.send({
|
|
19513
|
+
t: "pf-done",
|
|
19514
|
+
id
|
|
19515
|
+
}));
|
|
19516
|
+
}
|
|
19307
19517
|
/** A frame from the contact (one of `FILE_FRAMES`). Returns quickly: writing goes on in the background. */
|
|
19308
19518
|
async handle(frame) {
|
|
19309
19519
|
if (!this.attached) return;
|
|
@@ -19439,6 +19649,7 @@ var ChatFiles = class {
|
|
|
19439
19649
|
if (entry.record.state !== "asking") return;
|
|
19440
19650
|
entry.record.state = "queued";
|
|
19441
19651
|
entry.record.consented = entry.record.agreed = true;
|
|
19652
|
+
entry.record.since = this.now();
|
|
19442
19653
|
this.changed(entry);
|
|
19443
19654
|
this.startIncoming(entry);
|
|
19444
19655
|
}
|
|
@@ -19482,6 +19693,7 @@ var ChatFiles = class {
|
|
|
19482
19693
|
if (record.state !== "paused" || record.pausedBy !== "me") return;
|
|
19483
19694
|
record.pausedBy = void 0;
|
|
19484
19695
|
record.state = "queued";
|
|
19696
|
+
if (direction === "in") record.since = this.now();
|
|
19485
19697
|
this.changed(entry);
|
|
19486
19698
|
if (direction === "out") {
|
|
19487
19699
|
if (this.attached) this.announce(entry);
|
|
@@ -21071,6 +21283,13 @@ var WAKE_LOST_MS = 1e4;
|
|
|
21071
21283
|
* then did the resume dial: a chat opened on return went live 21 s after the tap (Android emulator, 2026-10-29).
|
|
21072
21284
|
*/
|
|
21073
21285
|
var WAKE_ANSWER_GRACE_MS = 3e3;
|
|
21286
|
+
function peerSaidWindow() {
|
|
21287
|
+
return {
|
|
21288
|
+
window: new RateWindow(6, 6e4),
|
|
21289
|
+
read: null,
|
|
21290
|
+
timer: null
|
|
21291
|
+
};
|
|
21292
|
+
}
|
|
21074
21293
|
/**
|
|
21075
21294
|
* What files/3 may hold on a session's channel (WISP 501, Backpressure): a quarter of its send budget (native and iroh
|
|
21076
21295
|
* channels throw past 120 KiB), or the high water mark of a WebRTC channel, which has none.
|
|
@@ -21278,6 +21497,11 @@ var GhostLink = class {
|
|
|
21278
21497
|
peerNickOverride = null;
|
|
21279
21498
|
/** Group protocol versions the peer announced on this session; null until it does. */
|
|
21280
21499
|
peerGroupVersions = null;
|
|
21500
|
+
/**
|
|
21501
|
+
* Groups were on on this session. Off again, they stay off until the next session: each "on" runs a group edge's
|
|
21502
|
+
* whole opening, and the peer says its versions once a session.
|
|
21503
|
+
*/
|
|
21504
|
+
peerGroupsWereOn = false;
|
|
21281
21505
|
/** What each side announced after the handshake (`paired-capabilities`): calls, services. */
|
|
21282
21506
|
sessionCapabilities = new SessionCapabilities(() => this.offeredCapabilities());
|
|
21283
21507
|
pairedCalls = new PairedCalls();
|
|
@@ -21302,20 +21526,16 @@ var GhostLink = class {
|
|
|
21302
21526
|
editsReceived = new RateWindow(30, EDIT_RATE_WINDOW_MS);
|
|
21303
21527
|
wakeReceived = new RateWindow(6, 6e4);
|
|
21304
21528
|
/**
|
|
21305
|
-
* The contact's name and picture,
|
|
21306
|
-
*
|
|
21529
|
+
* The contact's name and picture, its word on held items, its ways of paying and its transport descriptors, each saved
|
|
21530
|
+
* on this side when it changes: said once a session and when changed, so a handful a minute each. Past that only the
|
|
21531
|
+
* newest waits, read once the window has room again.
|
|
21307
21532
|
*/
|
|
21308
21533
|
peerSaid = {
|
|
21309
|
-
"paired-nick":
|
|
21310
|
-
|
|
21311
|
-
|
|
21312
|
-
|
|
21313
|
-
|
|
21314
|
-
"paired-avatar": {
|
|
21315
|
-
window: new RateWindow(6, 6e4),
|
|
21316
|
-
read: null,
|
|
21317
|
-
timer: null
|
|
21318
|
-
}
|
|
21534
|
+
"paired-nick": peerSaidWindow(),
|
|
21535
|
+
"paired-avatar": peerSaidWindow(),
|
|
21536
|
+
"paired-hold": peerSaidWindow(),
|
|
21537
|
+
"paired-payments": peerSaidWindow(),
|
|
21538
|
+
"paired-adapters": peerSaidWindow()
|
|
21319
21539
|
};
|
|
21320
21540
|
/** Identity-proof frames the contact may send per window; the rest are dropped before they are read. */
|
|
21321
21541
|
identityReceived = new RateWindow(40, IDENTITY_FRAME_WINDOW_MS);
|
|
@@ -21383,6 +21603,8 @@ var GhostLink = class {
|
|
|
21383
21603
|
offerReplaced;
|
|
21384
21604
|
lastAutoConnectAt = 0;
|
|
21385
21605
|
autoConnectFailures = 0;
|
|
21606
|
+
/** The wait (dial and count of failures) whose `dial-backoff` line is written: the looks during it write none. */
|
|
21607
|
+
backoffTraced = "";
|
|
21386
21608
|
/** The look due when a failed dial's backoff ends (`lookAtRetry`). */
|
|
21387
21609
|
retryLook = null;
|
|
21388
21610
|
/** This side's offer is out to the data link and has not reached the relays yet. */
|
|
@@ -23697,10 +23919,14 @@ var GhostLink = class {
|
|
|
23697
23919
|
}
|
|
23698
23920
|
const wait = this.dialWait();
|
|
23699
23921
|
if (Date.now() - this.lastAutoConnectAt < wait) {
|
|
23700
|
-
|
|
23701
|
-
|
|
23702
|
-
|
|
23703
|
-
|
|
23922
|
+
const backoff = `${this.lastAutoConnectAt}:${this.autoConnectFailures}`;
|
|
23923
|
+
if (backoff !== this.backoffTraced) {
|
|
23924
|
+
this.backoffTraced = backoff;
|
|
23925
|
+
traceLink(this.myPubKeyZ32, "dial-backoff", {
|
|
23926
|
+
failures: this.autoConnectFailures,
|
|
23927
|
+
left: wait - (Date.now() - this.lastAutoConnectAt)
|
|
23928
|
+
});
|
|
23929
|
+
}
|
|
23704
23930
|
if (!pairing && !this.options.packetTransports && this.myPubKeyZ32 < this.options.params.peerPubKeyZ32 && Date.now() >= this.lostUntil) this.session.calm();
|
|
23705
23931
|
this.lookAtRetry();
|
|
23706
23932
|
return;
|
|
@@ -24417,16 +24643,27 @@ var GhostLink = class {
|
|
|
24417
24643
|
/**
|
|
24418
24644
|
* The session ended or a new one took its place (a transport switch, a resume, a re-dial): what the contact had open
|
|
24419
24645
|
* is held for `APP_RESUME_GRACE_MS` (WISP 1200 § In a chat). The next session's `open` takes each back, and the app
|
|
24420
|
-
* hears only that open, not a close first; one not said again by then is closed with `offline`.
|
|
24646
|
+
* hears only that open, not a close first; one not said again by then is closed with `offline`. Each suspension
|
|
24647
|
+
* gives what it held its own grace: a later one's apps do not close at an earlier one's time.
|
|
24421
24648
|
*/
|
|
24422
24649
|
appsSuspended() {
|
|
24423
24650
|
this.appRanges.reset();
|
|
24424
|
-
this.apps.sessionSuspended();
|
|
24425
|
-
|
|
24651
|
+
this.apps.sessionSuspended(this.options.appResumeGraceMs ?? 1e4);
|
|
24652
|
+
this.armAppsGrace();
|
|
24653
|
+
}
|
|
24654
|
+
/** A timer for the next held app's grace, as long as any is held. */
|
|
24655
|
+
armAppsGrace() {
|
|
24656
|
+
if (this.appsGrace) {
|
|
24657
|
+
clearTimeout(this.appsGrace);
|
|
24658
|
+
this.appsGrace = null;
|
|
24659
|
+
}
|
|
24660
|
+
const until = this.apps.heldUntil;
|
|
24661
|
+
if (until === void 0) return;
|
|
24426
24662
|
this.appsGrace = setTimeout(() => {
|
|
24427
24663
|
this.appsGrace = null;
|
|
24428
24664
|
for (const event of this.apps.heldExpired()) this.options.events?.onAppFrame?.(event);
|
|
24429
|
-
|
|
24665
|
+
this.armAppsGrace();
|
|
24666
|
+
}, Math.max(0, until - Date.now()));
|
|
24430
24667
|
}
|
|
24431
24668
|
/** Whether files/3 was agreed on the session open now; kept to say when that changes. */
|
|
24432
24669
|
filesOpen = false;
|
|
@@ -25099,6 +25336,7 @@ var GhostLink = class {
|
|
|
25099
25336
|
this.peerNetworks = null;
|
|
25100
25337
|
this.peerHoldOverride = null;
|
|
25101
25338
|
this.sessionCapabilities.reset();
|
|
25339
|
+
this.peerGroupsWereOn = false;
|
|
25102
25340
|
this.leaveHangUp();
|
|
25103
25341
|
this.typingSender.reset();
|
|
25104
25342
|
this.typingReceiver.clear();
|
|
@@ -25277,7 +25515,7 @@ var GhostLink = class {
|
|
|
25277
25515
|
return;
|
|
25278
25516
|
}
|
|
25279
25517
|
if (frame?.t === "paired-avatar" || frame?.t === "paired-nick") {
|
|
25280
|
-
this.
|
|
25518
|
+
this.peerSaysOfItself(channel, frame.t, frame);
|
|
25281
25519
|
return;
|
|
25282
25520
|
}
|
|
25283
25521
|
if (frame?.t === "paired-capabilities") {
|
|
@@ -25369,15 +25607,21 @@ var GhostLink = class {
|
|
|
25369
25607
|
}
|
|
25370
25608
|
if (frame?.t === "paired-payments") {
|
|
25371
25609
|
if (!Array.isArray(frame.m) || frame.m.length > 16 || !frame.m.every((m) => typeof m === "string")) return;
|
|
25372
|
-
|
|
25373
|
-
|
|
25374
|
-
this.
|
|
25610
|
+
const methods = new Set(frame.m.filter((m) => PAYMENT_METHODS.includes(m)));
|
|
25611
|
+
const networks = frame.n === void 0 ? null : parsePaymentNetworks(frame.n);
|
|
25612
|
+
this.peerSays(channel, "paired-payments", () => {
|
|
25613
|
+
this.peerPaymentMethods = methods;
|
|
25614
|
+
this.peerNetworks = frame.n === void 0 ? null : networks ?? this.peerNetworks;
|
|
25615
|
+
this.emitPairingState();
|
|
25616
|
+
});
|
|
25375
25617
|
return;
|
|
25376
25618
|
}
|
|
25377
25619
|
if (frame?.t === "paired-groups") {
|
|
25378
25620
|
if (!Array.isArray(frame.v) || frame.v.length > 8 || !frame.v.every((v) => Number.isSafeInteger(v) && v > 0)) return;
|
|
25379
25621
|
const before = this.groupsSupport;
|
|
25622
|
+
if (!before && this.peerGroupsWereOn && frame.v.includes(1)) return;
|
|
25380
25623
|
this.peerGroupVersions = frame.v;
|
|
25624
|
+
if (this.groupsSupport) this.peerGroupsWereOn = true;
|
|
25381
25625
|
if (this.groupsSupport !== before) this.options.events?.onGroupsSupport?.(this.groupsSupport);
|
|
25382
25626
|
return;
|
|
25383
25627
|
}
|
|
@@ -25394,12 +25638,15 @@ var GhostLink = class {
|
|
|
25394
25638
|
}
|
|
25395
25639
|
if (frame?.t === "paired-hold") {
|
|
25396
25640
|
if (typeof frame.on !== "boolean" || frame.top !== void 0 && !(Number.isSafeInteger(frame.top) && frame.top >= 0)) return;
|
|
25397
|
-
|
|
25398
|
-
|
|
25399
|
-
|
|
25400
|
-
|
|
25401
|
-
|
|
25402
|
-
|
|
25641
|
+
const on = frame.on, top = frame.top;
|
|
25642
|
+
this.peerSays(channel, "paired-hold", () => {
|
|
25643
|
+
this.peerHoldOverride = on;
|
|
25644
|
+
Promise.resolve(this.options.events?.onHold?.({
|
|
25645
|
+
peerAllows: on,
|
|
25646
|
+
peerTop: top
|
|
25647
|
+
})).catch(() => {});
|
|
25648
|
+
this.emitPairingState();
|
|
25649
|
+
});
|
|
25403
25650
|
return;
|
|
25404
25651
|
}
|
|
25405
25652
|
if (frame?.t === "paired-reconnect") {
|
|
@@ -25414,12 +25661,14 @@ var GhostLink = class {
|
|
|
25414
25661
|
if (frame?.t === "paired-adapters") {
|
|
25415
25662
|
if (!frame.descriptors || typeof frame.descriptors !== "object" || JSON.stringify(frame.descriptors).length > 4096) return;
|
|
25416
25663
|
const descriptors = checkedDescriptors(frame.descriptors);
|
|
25417
|
-
|
|
25418
|
-
|
|
25419
|
-
|
|
25420
|
-
|
|
25421
|
-
|
|
25422
|
-
|
|
25664
|
+
await this.peerSays(channel, "paired-adapters", async () => {
|
|
25665
|
+
const transports = [...this.paired?.peerTransports ?? []];
|
|
25666
|
+
const fallback = this.paired?.peerAllowsFallback ?? false;
|
|
25667
|
+
await this.options.events?.onTransportDiscovery?.(descriptors, transports, fallback);
|
|
25668
|
+
this.peerDescriptors = descriptors;
|
|
25669
|
+
this.peerTransports = transports;
|
|
25670
|
+
this.peerFallback = fallback;
|
|
25671
|
+
});
|
|
25423
25672
|
return;
|
|
25424
25673
|
}
|
|
25425
25674
|
if (!frame || typeof frame.id !== "string" || !/^[A-Za-z0-9_-]{22}$/.test(frame.id)) return;
|
|
@@ -25778,11 +26027,8 @@ var GhostLink = class {
|
|
|
25778
26027
|
traceLink(this.myPubKeyZ32, "wake-answer-dropped", {});
|
|
25779
26028
|
this.dataLink.abandon();
|
|
25780
26029
|
}
|
|
25781
|
-
/**
|
|
25782
|
-
|
|
25783
|
-
* window the newest waits for room on this session, so the last word still counts.
|
|
25784
|
-
*/
|
|
25785
|
-
peerSays(channel, kind, frame) {
|
|
26030
|
+
/** A name or picture the contact said, once it is one (reading it costs little; saving it is what counts). */
|
|
26031
|
+
peerSaysOfItself(channel, kind, frame) {
|
|
25786
26032
|
let read;
|
|
25787
26033
|
if (kind === "paired-avatar") {
|
|
25788
26034
|
const avatar = sanitizeAvatar(frame.a);
|
|
@@ -25798,11 +26044,15 @@ var GhostLink = class {
|
|
|
25798
26044
|
}
|
|
25799
26045
|
};
|
|
25800
26046
|
}
|
|
26047
|
+
this.peerSays(channel, kind, read);
|
|
26048
|
+
}
|
|
26049
|
+
/**
|
|
26050
|
+
* Something the contact said that this side saves, read within its window: past it the newest waits for room on this
|
|
26051
|
+
* session (handed on unawaited then), so the last word still counts. What `read` returns when read at once is returned.
|
|
26052
|
+
*/
|
|
26053
|
+
peerSays(channel, kind, read) {
|
|
25801
26054
|
const held = this.peerSaid[kind];
|
|
25802
|
-
if (!held.timer && held.window.take())
|
|
25803
|
-
read();
|
|
25804
|
-
return;
|
|
25805
|
-
}
|
|
26055
|
+
if (!held.timer && held.window.take()) return read();
|
|
25806
26056
|
held.read = read;
|
|
25807
26057
|
if (held.timer) return;
|
|
25808
26058
|
const due = () => {
|
|
@@ -25817,7 +26067,7 @@ var GhostLink = class {
|
|
|
25817
26067
|
}
|
|
25818
26068
|
const next = held.read;
|
|
25819
26069
|
held.read = null;
|
|
25820
|
-
next();
|
|
26070
|
+
Promise.resolve(next()).catch(() => {});
|
|
25821
26071
|
};
|
|
25822
26072
|
held.timer = setTimeout(due, held.window.wait());
|
|
25823
26073
|
}
|
|
@@ -25878,6 +26128,7 @@ var GhostLink = class {
|
|
|
25878
26128
|
this.typingReceiver.clear();
|
|
25879
26129
|
this.appsSuspended();
|
|
25880
26130
|
this.emitFilesSession();
|
|
26131
|
+
this.peerGroupsWereOn = false;
|
|
25881
26132
|
if (this.peerGroupVersions) {
|
|
25882
26133
|
this.peerGroupVersions = null;
|
|
25883
26134
|
this.options.events?.onGroupsSupport?.(false);
|
|
@@ -26977,11 +27228,13 @@ function didDhtKey(did) {
|
|
|
26977
27228
|
if (!/^[ybndrfg8ejkmcpqxot1uwisza345h769]{52}$/.test(z32)) throw invalid();
|
|
26978
27229
|
const publicKey = fromZ32(z32);
|
|
26979
27230
|
if (toZ32(publicKey) !== z32) throw invalid();
|
|
27231
|
+
let fit;
|
|
26980
27232
|
try {
|
|
26981
|
-
ed25519.Point.fromBytes(publicKey);
|
|
27233
|
+
fit = !ed25519.Point.fromBytes(publicKey).isSmallOrder();
|
|
26982
27234
|
} catch {
|
|
26983
|
-
|
|
27235
|
+
fit = false;
|
|
26984
27236
|
}
|
|
27237
|
+
if (!fit) throw invalid();
|
|
26985
27238
|
return {
|
|
26986
27239
|
z32,
|
|
26987
27240
|
publicKey
|
|
@@ -27076,11 +27329,13 @@ function jwkOf(type, bytes, alg, kid) {
|
|
|
27076
27329
|
const kind = KEY_TYPES[type];
|
|
27077
27330
|
if (type === 0) {
|
|
27078
27331
|
if (bytes.length !== 32) throw malformed("an Ed25519 key is not 32 bytes");
|
|
27332
|
+
let smallOrder;
|
|
27079
27333
|
try {
|
|
27080
|
-
ed25519.Point.fromBytes(bytes);
|
|
27334
|
+
smallOrder = ed25519.Point.fromBytes(bytes).isSmallOrder();
|
|
27081
27335
|
} catch {
|
|
27082
27336
|
throw malformed("an Ed25519 key is not a point of the curve");
|
|
27083
27337
|
}
|
|
27338
|
+
if (smallOrder) throw malformed("an Ed25519 key is a point of small order, which no secret key goes with");
|
|
27084
27339
|
return {
|
|
27085
27340
|
kty: "OKP",
|
|
27086
27341
|
crv: "Ed25519",
|
|
@@ -27321,7 +27576,7 @@ function decodeDidDhtPacket(did, dnsPacket) {
|
|
|
27321
27576
|
const alg = props.get("a") ?? KEY_TYPES[type].alg;
|
|
27322
27577
|
if (!ALG.test(alg)) throw malformed(`the key ${alias} has an unusable algorithm`);
|
|
27323
27578
|
const k = props.get("k") ?? "";
|
|
27324
|
-
const bytes = /^[A-Za-z0-9_-]+$/.test(k) ? fromBase64Url(k) : /* @__PURE__ */ new Uint8Array();
|
|
27579
|
+
const bytes = /^[A-Za-z0-9_-]+$/.test(k) && k.length % 4 !== 1 ? fromBase64Url(k) : /* @__PURE__ */ new Uint8Array();
|
|
27325
27580
|
if (bytes.length === 0 || toBase64Url(bytes) !== k) throw malformed(`the key ${alias} is not unpadded base64url`);
|
|
27326
27581
|
const controller = props.get("c") ?? did;
|
|
27327
27582
|
if (!DID.test(controller)) throw malformed(`the key ${alias} has a controller that is not a DID`);
|
|
@@ -27596,6 +27851,11 @@ function parseWeb(id) {
|
|
|
27596
27851
|
path
|
|
27597
27852
|
};
|
|
27598
27853
|
}
|
|
27854
|
+
/**
|
|
27855
|
+
* A did:web (or one of its URLs) with the port's `%3a` written `%3A`, as `parseDid` writes it: percent-encoding is
|
|
27856
|
+
* case-insensitive (RFC 3986), so a document may write either. The fragment is left as it is.
|
|
27857
|
+
*/
|
|
27858
|
+
var webPortForm = (value) => value.startsWith("did:web:") ? value.replace(/^[^#]*/, (part) => part.replace(/%3a/g, "%3A")) : value;
|
|
27599
27859
|
var web = (did) => {
|
|
27600
27860
|
const parsed = parseDid(did);
|
|
27601
27861
|
if (parsed.method !== "web") throw new DidError("Not a did:web");
|
|
@@ -27632,7 +27892,7 @@ function didWebFileNames(text, did, statement) {
|
|
|
27632
27892
|
} catch {
|
|
27633
27893
|
return false;
|
|
27634
27894
|
}
|
|
27635
|
-
return isObject$6(body) && body.ghostly === 1 && body.did === did && body.statement === statement;
|
|
27895
|
+
return isObject$6(body) && body.ghostly === 1 && typeof body.did === "string" && webPortForm(body.did) === did && body.statement === statement;
|
|
27636
27896
|
}
|
|
27637
27897
|
/** The service entry a did.json can carry instead of the file. */
|
|
27638
27898
|
function didGhostlyServiceEntry(did, key, proofId) {
|
|
@@ -27670,16 +27930,16 @@ var MULTICODEC = [
|
|
|
27670
27930
|
];
|
|
27671
27931
|
/** A public key on its curve, validated; ECDSA keys compressed. */
|
|
27672
27932
|
function curveKey(curve, bytes) {
|
|
27933
|
+
let smallOrder;
|
|
27673
27934
|
try {
|
|
27674
|
-
if (curve
|
|
27675
|
-
|
|
27676
|
-
|
|
27677
|
-
return bytes;
|
|
27678
|
-
}
|
|
27679
|
-
return (curve === "secp256k1" ? secp256k1 : p256).Point.fromBytes(bytes).toBytes(true);
|
|
27935
|
+
if (curve !== "Ed25519") return (curve === "secp256k1" ? secp256k1 : p256).Point.fromBytes(bytes).toBytes(true);
|
|
27936
|
+
if (bytes.length !== 32) throw new Error();
|
|
27937
|
+
smallOrder = ed25519.Point.fromBytes(bytes).isSmallOrder();
|
|
27680
27938
|
} catch {
|
|
27681
27939
|
throw new DidError(`That ${curve} key is not a valid point`);
|
|
27682
27940
|
}
|
|
27941
|
+
if (smallOrder) throw new DidError("That Ed25519 key is a point of small order, which no secret key goes with");
|
|
27942
|
+
return bytes;
|
|
27683
27943
|
}
|
|
27684
27944
|
/** A `z…` multibase (base58btc) multicodec key. X25519 and unknown codecs are `undefined`. */
|
|
27685
27945
|
function multikey(value) {
|
|
@@ -27784,7 +28044,7 @@ function staticDidDocument(did) {
|
|
|
27784
28044
|
/** An id as absolute `<did>#<fragment>`, from `#frag` or the absolute form; undefined for another DID's. */
|
|
27785
28045
|
function methodId(did, id) {
|
|
27786
28046
|
if (typeof id !== "string" || id.length > 640) return void 0;
|
|
27787
|
-
const absolute = id.startsWith("#") ? `${did}${id}` : id;
|
|
28047
|
+
const absolute = id.startsWith("#") ? `${did}${id}` : webPortForm(id);
|
|
27788
28048
|
return absolute.startsWith(`${did}#`) && absolute.length > did.length + 1 && /^[\x21-\x7e]+$/.test(absolute) ? absolute : void 0;
|
|
27789
28049
|
}
|
|
27790
28050
|
/** Key material of one verification method: `publicKeyJwk`, `publicKeyMultibase` or (Ed25519 2018) `publicKeyBase58`. */
|
|
@@ -27823,7 +28083,7 @@ var list = (value, name) => {
|
|
|
27823
28083
|
*/
|
|
27824
28084
|
function parseDidDocument(did, raw) {
|
|
27825
28085
|
if (!isObject$6(raw)) throw new DidError("The DID document is not a JSON object");
|
|
27826
|
-
if (raw.id !== did) throw new DidError(typeof raw.id === "string" ? `The DID document is for another DID (${raw.id.slice(0, 80)})` : "The DID document has no id");
|
|
28086
|
+
if (typeof raw.id !== "string" || webPortForm(raw.id) !== did) throw new DidError(typeof raw.id === "string" ? `The DID document is for another DID (${raw.id.slice(0, 80)})` : "The DID document has no id");
|
|
27827
28087
|
const keys = /* @__PURE__ */ new Map();
|
|
27828
28088
|
const unusable = /* @__PURE__ */ new Set();
|
|
27829
28089
|
let skipped = 0;
|
|
@@ -27944,7 +28204,7 @@ function signingInput(jws, message) {
|
|
|
27944
28204
|
}
|
|
27945
28205
|
function verifyWith(key, signature, message, format = "compact") {
|
|
27946
28206
|
try {
|
|
27947
|
-
if (key.curve === "Ed25519") return format === "compact" && ed25519.verify(signature, message, key.publicKey);
|
|
28207
|
+
if (key.curve === "Ed25519") return format === "compact" && ed25519.verify(signature, message, key.publicKey, { zip215: false });
|
|
27948
28208
|
return (key.curve === "secp256k1" ? secp256k1 : p256).verify(signature, message, key.publicKey, {
|
|
27949
28209
|
prehash: true,
|
|
27950
28210
|
lowS: false,
|
|
@@ -27977,14 +28237,19 @@ function checkDidJws(input, messages, doc) {
|
|
|
27977
28237
|
inputs = [];
|
|
27978
28238
|
}
|
|
27979
28239
|
if (!inputs.length) throw new DidError("The JWS carries another text: sign exactly the statement shown");
|
|
28240
|
+
let refused;
|
|
27980
28241
|
for (const key of candidates) {
|
|
27981
28242
|
if (!inputs.some((m) => verifyWith(key, jws.signature, m))) continue;
|
|
27982
|
-
if (!key.relationships.length)
|
|
28243
|
+
if (!key.relationships.length) {
|
|
28244
|
+
refused ??= key;
|
|
28245
|
+
continue;
|
|
28246
|
+
}
|
|
27983
28247
|
return {
|
|
27984
28248
|
key,
|
|
27985
28249
|
alg: jws.alg
|
|
27986
28250
|
};
|
|
27987
28251
|
}
|
|
28252
|
+
if (refused) throw refusedKey(refused);
|
|
27988
28253
|
throw new DidError("The JWS signature does not match: sign exactly the statement shown, with a key of this DID");
|
|
27989
28254
|
}
|
|
27990
28255
|
/**
|
|
@@ -28002,10 +28267,14 @@ function checkDidSignature(signature, messages, doc, vm) {
|
|
|
28002
28267
|
}
|
|
28003
28268
|
const der = signature.length !== 64 && signature[0] === 48;
|
|
28004
28269
|
if (signature.length !== 64 && !der) throw new DidError("A signature is 64 bytes (or DER, for ECDSA)");
|
|
28270
|
+
let refused;
|
|
28005
28271
|
for (const key of candidates) {
|
|
28006
28272
|
if (der && key.curve === "Ed25519") continue;
|
|
28007
28273
|
if (!messages.some((m) => verifyWith(key, signature, m, der ? "der" : "compact"))) continue;
|
|
28008
|
-
if (!key.relationships.length)
|
|
28274
|
+
if (!key.relationships.length) {
|
|
28275
|
+
refused ??= key;
|
|
28276
|
+
continue;
|
|
28277
|
+
}
|
|
28009
28278
|
const canonical = der ? (key.curve === "secp256k1" ? secp256k1 : p256).Signature.fromBytes(signature, "der").toBytes("compact") : signature;
|
|
28010
28279
|
return {
|
|
28011
28280
|
key,
|
|
@@ -28013,6 +28282,7 @@ function checkDidSignature(signature, messages, doc, vm) {
|
|
|
28013
28282
|
signature: canonical
|
|
28014
28283
|
};
|
|
28015
28284
|
}
|
|
28285
|
+
if (refused) throw refusedKey(refused);
|
|
28016
28286
|
throw new DidError("The signature does not match: sign exactly the statement shown, with a key of this DID");
|
|
28017
28287
|
}
|
|
28018
28288
|
function parseDidSignaturePaste(pasted) {
|
|
@@ -30298,6 +30568,8 @@ function readFirstPlace(o, epoch) {
|
|
|
30298
30568
|
var ownKey = (f) => `${f.e}:${f.n}`;
|
|
30299
30569
|
/** What a frame weighs in a log, roughly: its boxes plus the fixed fields around them. */
|
|
30300
30570
|
var frameKey$1 = (f) => `${f.s}:${f.e}:${f.n}`;
|
|
30571
|
+
/** One edit of a message, by its number: an edit handed already, apart from the message's own `frameKey`. */
|
|
30572
|
+
var editKey = (f) => `${f.s}:${f.e}:${f.n}:v${f.v}`;
|
|
30301
30573
|
/** What a kept frame counts for against `GROUP_LIMITS.relayBytes`. */
|
|
30302
30574
|
var frameBytes = (f) => f.c.length + (f.m?.c.length ?? 0) + (f.r?.c.length ?? 0) + (f.sc?.c.length ?? 0) + (f.fl?.c.length ?? 0) + (f.nk?.c.length ?? 0) + 400;
|
|
30303
30575
|
/** Only the fields an edit frame has, as `clean` does for a message. */
|
|
@@ -30482,9 +30754,9 @@ var GroupSession = class {
|
|
|
30482
30754
|
}
|
|
30483
30755
|
this.answers = new CatchUpAnswers({
|
|
30484
30756
|
send: (to, frame) => {
|
|
30485
|
-
if (frame.t === "group-msg" && !rosterHas(this.roster, frame.s)) {
|
|
30757
|
+
if ((frame.t === "group-msg" || frame.t === "group-edit") && !rosterHas(this.roster, frame.s)) {
|
|
30486
30758
|
const handed = this.leaversHanded.get(to) ?? /* @__PURE__ */ new Set();
|
|
30487
|
-
this.leaversHanded.set(to, handed.add(frameKey$1(frame)));
|
|
30759
|
+
this.leaversHanded.set(to, handed.add(frame.t === "group-edit" ? editKey(frame) : frameKey$1(frame)));
|
|
30488
30760
|
}
|
|
30489
30761
|
return hooks.send(to, frame);
|
|
30490
30762
|
},
|
|
@@ -30961,7 +31233,18 @@ var GroupSession = class {
|
|
|
30961
31233
|
if (this.state.relay?.length) this.state.relay = prune(this.state.relay, false);
|
|
30962
31234
|
if (this.onRows?.length) this.onRows = prune(this.onRows, true);
|
|
30963
31235
|
this.pruned.splice(0, this.pruned.length - GROUP_LIMITS.relay);
|
|
30964
|
-
if (this.state.relayEdits?.length) this.state.relayEdits = this.state.relayEdits.filter((f) => rosterHas(this.roster, f.s));
|
|
31236
|
+
if (this.state.relayEdits?.length) this.state.relayEdits = this.state.relayEdits.filter((f) => rosterHas(this.roster, f.s) || this.isRemovalEdit(f));
|
|
31237
|
+
}
|
|
31238
|
+
/** Whether a kept edit is a removal (WISP 400 § Delete for everyone): its box, under its epoch's key, says `rm`. */
|
|
31239
|
+
isRemovalEdit(frame) {
|
|
31240
|
+
const secret = this.secret(frame.e);
|
|
31241
|
+
const plain = secret && decryptText(epochKeys(secret, this.id, frame.e).message, editAad(frame), frame.nn, frame.c);
|
|
31242
|
+
if (!plain) return false;
|
|
31243
|
+
try {
|
|
31244
|
+
return JSON.parse(plain)?.rm === true;
|
|
31245
|
+
} catch {
|
|
31246
|
+
return false;
|
|
31247
|
+
}
|
|
30965
31248
|
}
|
|
30966
31249
|
/** The frames `pruneRelay` dropped that are handed on again now (a removal's `left` mark came after it), back in their logs. */
|
|
30967
31250
|
unprune() {
|
|
@@ -31648,11 +31931,14 @@ var GroupSession = class {
|
|
|
31648
31931
|
/**
|
|
31649
31932
|
* An edit of a member's own message, from its author's edge or handed on by another member: believed only while its
|
|
31650
31933
|
* author is still in the roster (someone removed edits nothing), and the member handing it on too; for an epoch the
|
|
31651
|
-
* author and I were both members of, with the author's signature over the whole frame and a box that opens.
|
|
31652
|
-
* an
|
|
31934
|
+
* author and I were both members of, with the author's signature over the whole frame and a box that opens. A removal
|
|
31935
|
+
* of an author out of the roster still stands, handed on by a member: it only takes away what the author wrote while
|
|
31936
|
+
* in, and a member away when it was said would keep the message for good. One for an epoch or a secret not here yet
|
|
31937
|
+
* waits, as a message does. Taken, it is kept to hand on in turn.
|
|
31653
31938
|
*/
|
|
31654
31939
|
async receiveEdit(from, raw) {
|
|
31655
|
-
if (!isEditFrame(raw) || raw.s === this.myKey || !rosterHas(this.roster,
|
|
31940
|
+
if (!isEditFrame(raw) || raw.s === this.myKey || !rosterHas(this.roster, from)) return;
|
|
31941
|
+
const member = rosterHas(this.roster, raw.s);
|
|
31656
31942
|
if (!verify(fromBase64Url(raw.sig), editSigned(raw), publicKeyFromZ32(raw.s))) return;
|
|
31657
31943
|
if (raw.e > this.epoch) {
|
|
31658
31944
|
this.parkEdit(from, raw);
|
|
@@ -31676,6 +31962,7 @@ var GroupSession = class {
|
|
|
31676
31962
|
if (!body || typeof body !== "object" || !validEditText(body.text)) return;
|
|
31677
31963
|
if (body.rm !== void 0 && body.rm !== true) return;
|
|
31678
31964
|
const rm = body.rm === true;
|
|
31965
|
+
if (!member && !rm) return;
|
|
31679
31966
|
if (!rm && !cardEditNumber(raw.v)) return;
|
|
31680
31967
|
const k = rm ? [] : validMentions(body.m, body.text, rosterAdmin(commit.m) === raw.s && this.admin === raw.s);
|
|
31681
31968
|
const sc = rm || body.sc === void 0 ? void 0 : readStatusCard(body.sc);
|
|
@@ -31836,7 +32123,7 @@ var GroupSession = class {
|
|
|
31836
32123
|
if (e <= this.epoch) {
|
|
31837
32124
|
const known = this.state.chain[e];
|
|
31838
32125
|
const result = verifyCommit(raw, this.state.chain[e - 1] ?? null, this.id);
|
|
31839
|
-
if ("error" in result || result.commit.by !== known.by) return;
|
|
32126
|
+
if ("error" in result || result.commit.by !== known.by || result.commit.by !== this.admin) return;
|
|
31840
32127
|
if (commitHash(result.commit) !== commitHash(known)) await this.fork(`Member ${from.slice(0, 8)} holds a different membership history for epoch ${e}`);
|
|
31841
32128
|
else if (this.takeLeftMark(known, frame.left)) {
|
|
31842
32129
|
this.unprune();
|
|
@@ -31994,10 +32281,13 @@ var GroupSession = class {
|
|
|
31994
32281
|
while (metas.length && metas[0].ts < f.ts) answer.push(metas.shift().frame);
|
|
31995
32282
|
answer.push(f);
|
|
31996
32283
|
}
|
|
32284
|
+
const readable = (f) => !!this.state.chain[f.e] && rosterHas(this.state.chain[f.e].m, from);
|
|
31997
32285
|
for (const author of asked) {
|
|
31998
|
-
const edits = (this.state.relayEdits ?? []).filter((f) => f.s === author &&
|
|
32286
|
+
const edits = (this.state.relayEdits ?? []).filter((f) => f.s === author && readable(f));
|
|
31999
32287
|
answer.push(...edits.slice(-GROUP_LIMITS.handOnEdits));
|
|
32000
32288
|
}
|
|
32289
|
+
const gone = (this.state.relayEdits ?? []).filter((f) => !rosterHas(this.roster, f.s) && readable(f) && !handed?.has(editKey(f)));
|
|
32290
|
+
answer.push(...gone.slice(-GROUP_LIMITS.handOnEdits));
|
|
32001
32291
|
answer.push(...metas.map((m) => m.frame));
|
|
32002
32292
|
this.handOut(from, answer);
|
|
32003
32293
|
}
|
|
@@ -32396,8 +32686,9 @@ function entryParams(link, mySeed, myZ32, peerZ32) {
|
|
|
32396
32686
|
* only a newcomer is sent it; `leave`, `remove` and `rotate` get a fresh secret sealed to everyone;
|
|
32397
32687
|
* - concurrent commits are a race with a deterministic winner, not a fork: the branch that keeps the
|
|
32398
32688
|
* admin's changes (remove, role, rotate, link) since the common parent, then the longest, then the
|
|
32399
|
-
* lowest hash of the first commit after the common parent. The admin signing changes on
|
|
32400
|
-
* branches (after the same commit or not) is still a fork and halts the group;
|
|
32689
|
+
* lowest hash of the first commit after the common parent. The admin of the tip signing changes on
|
|
32690
|
+
* two branches (after the same commit or not) is still a fork and halts the group; a former admin
|
|
32691
|
+
* doing so on a branch from before its hand-over is refused, as a stale branch;
|
|
32401
32692
|
* - messages name the commit of their epoch, so messages under a commit that lost stay readable;
|
|
32402
32693
|
* every member keeps recent frames from everyone and re-sends them to whoever was away.
|
|
32403
32694
|
*
|
|
@@ -32452,6 +32743,15 @@ var COMMUNITY_LIMITS = {
|
|
|
32452
32743
|
syncAnswers: 16,
|
|
32453
32744
|
syncWindowMs: 6e4,
|
|
32454
32745
|
/**
|
|
32746
|
+
* Messages of one member taken per `messageWindowMs`, and the bytes of their sealed bodies, past what one catch-up
|
|
32747
|
+
* answer holds (a whole store, and the lasting frames): anyone with the link is a member, and each message taken is a
|
|
32748
|
+
* row in every member's app and a frame each hub passes on. The rest are not taken now and come again in a catch-up
|
|
32749
|
+
* (`MessagePace`).
|
|
32750
|
+
*/
|
|
32751
|
+
messagesPerAuthor: 30,
|
|
32752
|
+
messageBytesPerAuthor: 131072,
|
|
32753
|
+
messageWindowMs: 1e4,
|
|
32754
|
+
/**
|
|
32455
32755
|
* Frames of one catch-up answer in a slice (`CommunitySessionHooks.handled`), two slices at most not handled yet by
|
|
32456
32756
|
* the member's app: a member back after the store filled was handed 258 at once, and an app holds 64 waiting at most
|
|
32457
32757
|
* before 2026-10-07 (more ends the session). As a private group's (`GROUP_LIMITS.catchUpSlice`).
|
|
@@ -32657,7 +32957,7 @@ function communityRoster(previous, c, trusted = false) {
|
|
|
32657
32957
|
/**
|
|
32658
32958
|
* One commit against its parent (null for a genesis) and the parent's roster: shape, id, link,
|
|
32659
32959
|
* authority, roster arithmetic, roster hash and signature. The confirmation tag is checked once
|
|
32660
|
-
* the secret is known. `before`: the commits before it on its branch, newest first; given, a `leave` is held to the
|
|
32960
|
+
* the secret is known (a derived kind's on arrival, by a member holding the parent's: `receiveCommit`). `before`: the commits before it on its branch, newest first; given, a `leave` is held to the
|
|
32661
32961
|
* admission it ends (`leaveStands`). A member gives it for every commit it takes in after its own admission; the chain
|
|
32662
32962
|
* of a welcome is not held to it (`verifyCommunityChain`).
|
|
32663
32963
|
*/
|
|
@@ -32759,8 +33059,60 @@ var messageSigned = (f) => utf8Encode(JSON.stringify([
|
|
|
32759
33059
|
]));
|
|
32760
33060
|
var communityMessageId = (sender, epoch, h, seq) => `${sender}:${epoch}:${h}:${seq}`;
|
|
32761
33061
|
var seenKey = (e, h) => `${e}:${h}`;
|
|
33062
|
+
/**
|
|
33063
|
+
* One member's messages taken: a whole catch-up answer at once (`MESSAGE_BURST`), then
|
|
33064
|
+
* `COMMUNITY_LIMITS.messagesPerAuthor` and `messageBytesPerAuthor` per `messageWindowMs`. One not taken is not marked
|
|
33065
|
+
* seen, so a catch-up hands it again; until it is taken, those after it under the same commit (`seenKey`) are not taken
|
|
33066
|
+
* either: a later one taken would say I have everything up to it (`syncFrame`'s `have`) and the one before would never
|
|
33067
|
+
* be handed again. A place that moves no more for `COMMUNITY_LIMITS.pendingMs` (no catch-up holds it any longer) is let go.
|
|
33068
|
+
*/
|
|
33069
|
+
var MESSAGE_BURST = {
|
|
33070
|
+
frames: COMMUNITY_LIMITS.store + COMMUNITY_LIMITS.lasting,
|
|
33071
|
+
bytes: COMMUNITY_LIMITS.storeBytes + COMMUNITY_LIMITS.lasting * COMMUNITY_LIMITS.textBytes * 2
|
|
33072
|
+
};
|
|
33073
|
+
var MessagePace = class {
|
|
33074
|
+
frames = MESSAGE_BURST.frames;
|
|
33075
|
+
bytes = MESSAGE_BURST.bytes;
|
|
33076
|
+
at;
|
|
33077
|
+
held = /* @__PURE__ */ new Map();
|
|
33078
|
+
take(key, n, bytes, now) {
|
|
33079
|
+
let held = this.held.get(key);
|
|
33080
|
+
if (held && now - held.at >= COMMUNITY_LIMITS.pendingMs) {
|
|
33081
|
+
this.held.delete(key);
|
|
33082
|
+
held = void 0;
|
|
33083
|
+
}
|
|
33084
|
+
if (held && n > held.low) {
|
|
33085
|
+
held.top = Math.max(held.top, n);
|
|
33086
|
+
return false;
|
|
33087
|
+
}
|
|
33088
|
+
const elapsed = Math.max(0, now - (this.at ?? now)) / COMMUNITY_LIMITS.messageWindowMs;
|
|
33089
|
+
this.at = now;
|
|
33090
|
+
this.frames = Math.min(MESSAGE_BURST.frames, this.frames + elapsed * COMMUNITY_LIMITS.messagesPerAuthor);
|
|
33091
|
+
this.bytes = Math.min(MESSAGE_BURST.bytes, this.bytes + elapsed * COMMUNITY_LIMITS.messageBytesPerAuthor);
|
|
33092
|
+
if (this.frames < 1 || this.bytes < bytes) {
|
|
33093
|
+
if (held) held.low = n;
|
|
33094
|
+
else this.held.set(key, {
|
|
33095
|
+
low: n,
|
|
33096
|
+
top: n,
|
|
33097
|
+
at: now
|
|
33098
|
+
});
|
|
33099
|
+
return false;
|
|
33100
|
+
}
|
|
33101
|
+
this.frames -= 1;
|
|
33102
|
+
this.bytes -= bytes;
|
|
33103
|
+
if (held && n === held.low) {
|
|
33104
|
+
if (held.top > n) {
|
|
33105
|
+
held.low = n + 1;
|
|
33106
|
+
held.at = now;
|
|
33107
|
+
} else this.held.delete(key);
|
|
33108
|
+
}
|
|
33109
|
+
return true;
|
|
33110
|
+
}
|
|
33111
|
+
};
|
|
32762
33112
|
/** One of a member's frames, among its own. */
|
|
32763
33113
|
var frameKey = (f) => `${f.e}:${f.h}:${f.n}`;
|
|
33114
|
+
/** A frame among everyone's: each member counts its own `n`, so `frameKey` alone tells only one member's frames apart. */
|
|
33115
|
+
var storeKey = (f) => `${f.s}:${frameKey(f)}`;
|
|
32764
33116
|
/**
|
|
32765
33117
|
* Where a frame said again under a newer commit was first said (`o`, WISP 903 § Messages and catch-up): its commit's
|
|
32766
33118
|
* epoch and short hash and its number there. Never the frame's own place, nor a later epoch than its own.
|
|
@@ -32840,6 +33192,8 @@ var CommunitySession = class {
|
|
|
32840
33192
|
asked = /* @__PURE__ */ new Map();
|
|
32841
33193
|
/** Syncs answered per member, a few a minute (`COMMUNITY_LIMITS.syncAnswers`). In memory only. */
|
|
32842
33194
|
syncsAnswered = /* @__PURE__ */ new Map();
|
|
33195
|
+
/** Messages taken per author, a few a second (`MessagePace`). In memory only. */
|
|
33196
|
+
messagePace = /* @__PURE__ */ new Map();
|
|
32843
33197
|
/** The entry seed sealed to each member, for the seed it seals (`entryFrame`): every sync answer carries it. In memory only. */
|
|
32844
33198
|
sealedEntries = /* @__PURE__ */ new Map();
|
|
32845
33199
|
/** Catch-up answers still going out, a slice at a time (`receiveSync`). */
|
|
@@ -32852,10 +33206,15 @@ var CommunitySession = class {
|
|
|
32852
33206
|
saveTimer;
|
|
32853
33207
|
/** One metadata frame naming a commit or a secret I do not have yet: tried again when the chain or my secrets move. */
|
|
32854
33208
|
pendingMeta;
|
|
32855
|
-
|
|
33209
|
+
/** The store's frames the app holds with their messages (`storeKey` → message id): in memory here, not in what is saved. */
|
|
33210
|
+
onRows = /* @__PURE__ */ new Map();
|
|
33211
|
+
/** `rows`: the frames the app holds with the messages it stored (`CommunityIncomingMessage.frame`). They join the store. */
|
|
33212
|
+
constructor(state, hooks, rows = []) {
|
|
32856
33213
|
this.hooks = hooks;
|
|
32857
33214
|
this.state = state;
|
|
32858
33215
|
this.identity = identityFromSeedB64(state.seedB64);
|
|
33216
|
+
if (state.status === "left" || state.status === "removed") for (const row of rows) hooks.forgetFrame?.(row.id);
|
|
33217
|
+
else this.takeRows(rows);
|
|
32859
33218
|
this.answers = new CatchUpAnswers({
|
|
32860
33219
|
send: (to, frame) => hooks.direct(to, frame),
|
|
32861
33220
|
...hooks.handled && { handled: (to) => hooks.handled(to) },
|
|
@@ -33348,11 +33707,17 @@ var CommunitySession = class {
|
|
|
33348
33707
|
if (!parsed || this.known.has(communityCommitHash(parsed))) return false;
|
|
33349
33708
|
const result = verifyCommunityCommit(raw, parent, parentRoster, this.id, this.ancestry(p));
|
|
33350
33709
|
if ("error" in result) return false;
|
|
33710
|
+
const previous = this.state.secrets[p];
|
|
33711
|
+
if (previous && !FRESH.has(result.commit.k)) {
|
|
33712
|
+
const untagged = communityUntaggedHash(result.commit);
|
|
33713
|
+
if (!confirmationMatches(epochKeys(derivedSecret(fromBase64Url(previous), untagged), this.id, result.commit.e).confirm, untagged, result.commit.c)) return false;
|
|
33714
|
+
}
|
|
33351
33715
|
if (GROWS.has(result.commit.k) && !keepsRoom(result.commit.e, result.roster)) return false;
|
|
33352
33716
|
const commit = result.commit, h = communityCommitHash(commit);
|
|
33353
33717
|
const admin = rosterAdmin(parentRoster);
|
|
33354
33718
|
if (commit.by === admin) {
|
|
33355
33719
|
for (const [other, c] of this.known) if (other !== h && c.p === commit.p && c.by === admin) {
|
|
33720
|
+
if (admin !== this.admin) return false;
|
|
33356
33721
|
this.known.set(h, commit);
|
|
33357
33722
|
this.rosters.set(h, result.roster);
|
|
33358
33723
|
await this.fork(`The admin signed two different changes after epoch ${parent.e}`);
|
|
@@ -33365,6 +33730,11 @@ var CommunitySession = class {
|
|
|
33365
33730
|
if (branch && branch.path.length) {
|
|
33366
33731
|
const { admin } = this.parting(branch, this.branch(this.topHash), this.adminCounts());
|
|
33367
33732
|
if (ADMIN_ONLY.has(commit.k) && admin[1]) {
|
|
33733
|
+
if (commit.by !== this.admin) {
|
|
33734
|
+
this.known.delete(h);
|
|
33735
|
+
this.rosters.delete(h);
|
|
33736
|
+
return false;
|
|
33737
|
+
}
|
|
33368
33738
|
await this.fork(`The admin signed changes on two branches after epoch ${this.state.chain[branch.fork].e}`);
|
|
33369
33739
|
return true;
|
|
33370
33740
|
}
|
|
@@ -33456,6 +33826,7 @@ var CommunitySession = class {
|
|
|
33456
33826
|
this.state.chain.push(c);
|
|
33457
33827
|
this.takeDerived(h);
|
|
33458
33828
|
}
|
|
33829
|
+
this.holdDroppedLeaves(dropped);
|
|
33459
33830
|
if (!rosterHas(this.roster, this.myKey) && this.state.status === "active") {
|
|
33460
33831
|
const out = [...path].reverse().map((h) => this.known.get(h)).find((c) => (c.k === "remove" || c.k === "leave") && c.s === this.myKey);
|
|
33461
33832
|
if (out) this.out(out.k === "remove" ? "removed" : "left", out.k === "remove" ? "You were removed from this group" : "You left this group");
|
|
@@ -33465,6 +33836,33 @@ var CommunitySession = class {
|
|
|
33465
33836
|
}
|
|
33466
33837
|
}
|
|
33467
33838
|
}
|
|
33839
|
+
/**
|
|
33840
|
+
* A leave the branch I left behind had committed, whose member the main branch still lists (an admin-only commit
|
|
33841
|
+
* signed on a stale view won the fork): its request is held again, so the next hub commits it on top. The hub that
|
|
33842
|
+
* committed it kept no copy and the leaver's app forgot the group, so nobody would say it again (agents#2285).
|
|
33843
|
+
*/
|
|
33844
|
+
holdDroppedLeaves(dropped) {
|
|
33845
|
+
let held = this.state.pendingLeaves;
|
|
33846
|
+
for (const c of dropped) {
|
|
33847
|
+
if (c.k !== "leave" || !c.s || !c.ls || c.s === this.myKey || !rosterHas(this.roster, c.s)) continue;
|
|
33848
|
+
const request = {
|
|
33849
|
+
s: c.s,
|
|
33850
|
+
ls: c.ls,
|
|
33851
|
+
...c.ls3 ? { ls3: c.ls3 } : {}
|
|
33852
|
+
};
|
|
33853
|
+
if (!leaveStands({
|
|
33854
|
+
g: this.id,
|
|
33855
|
+
...request
|
|
33856
|
+
}, this.ancestry(this.topHash))) continue;
|
|
33857
|
+
const other = held.find((r) => r.s === c.s && leaveStands({
|
|
33858
|
+
g: this.id,
|
|
33859
|
+
...r
|
|
33860
|
+
}, this.ancestry(this.topHash)));
|
|
33861
|
+
if (other && (other.ls3 || !request.ls3)) continue;
|
|
33862
|
+
held = [...held.filter((r) => r.s !== c.s), request].slice(-COMMUNITY_LIMITS.pendingLeaves);
|
|
33863
|
+
}
|
|
33864
|
+
this.state.pendingLeaves = held;
|
|
33865
|
+
}
|
|
33468
33866
|
/** The entry key is the one the main branch names; its seed comes with a `group-entry` from whoever holds it. */
|
|
33469
33867
|
followEntry() {
|
|
33470
33868
|
const key = this.currentEntryKey();
|
|
@@ -33538,7 +33936,15 @@ var CommunitySession = class {
|
|
|
33538
33936
|
clearTimeout(this.saveTimer);
|
|
33539
33937
|
this.saveTimer = void 0;
|
|
33540
33938
|
}
|
|
33541
|
-
return this.hooks.save(
|
|
33939
|
+
return this.hooks.save(this.toSave());
|
|
33940
|
+
}
|
|
33941
|
+
/** The state as it is saved: a copy, without the frames the app holds with their messages (`onRows`). */
|
|
33942
|
+
toSave() {
|
|
33943
|
+
const { store, ...rest } = this.state;
|
|
33944
|
+
return structuredClone({
|
|
33945
|
+
...rest,
|
|
33946
|
+
store: store.filter((f) => !this.onRows.has(storeKey(f)))
|
|
33947
|
+
});
|
|
33542
33948
|
}
|
|
33543
33949
|
/**
|
|
33544
33950
|
* A save within a second, for what may happen many times a second (every message received, in a
|
|
@@ -33548,7 +33954,7 @@ var CommunitySession = class {
|
|
|
33548
33954
|
if (this.saveTimer) return;
|
|
33549
33955
|
this.saveTimer = setTimeout(() => {
|
|
33550
33956
|
this.saveTimer = void 0;
|
|
33551
|
-
this.hooks.save(
|
|
33957
|
+
this.hooks.save(this.toSave());
|
|
33552
33958
|
}, 1e3);
|
|
33553
33959
|
}
|
|
33554
33960
|
/** Writes what is waiting to be saved now (before a restart, in tests). */
|
|
@@ -33711,6 +34117,10 @@ var CommunitySession = class {
|
|
|
33711
34117
|
return this.serialize(async () => {
|
|
33712
34118
|
this.requireAdmin();
|
|
33713
34119
|
if (!rosterHas(this.roster, memberKey) || memberKey === this.myKey) throw new Error("Not a member");
|
|
34120
|
+
if (this.state.pendingLeaves.some((r) => r.s === memberKey && leaveStands({
|
|
34121
|
+
g: this.id,
|
|
34122
|
+
...r
|
|
34123
|
+
}, this.ancestry(this.topHash)))) throw new Error("This member has left the group. Make someone else the admin.");
|
|
33714
34124
|
await this.commit("role", { s: memberKey }, now);
|
|
33715
34125
|
});
|
|
33716
34126
|
}
|
|
@@ -33815,6 +34225,8 @@ var CommunitySession = class {
|
|
|
33815
34225
|
this.state.statusReason = reason;
|
|
33816
34226
|
this.state.secrets = {};
|
|
33817
34227
|
this.state.store = [];
|
|
34228
|
+
for (const id of this.onRows.values()) this.hooks.forgetFrame?.(id);
|
|
34229
|
+
this.onRows.clear();
|
|
33818
34230
|
delete this.state.lasting;
|
|
33819
34231
|
this.state.entry = {
|
|
33820
34232
|
key: this.state.entry.key,
|
|
@@ -33855,7 +34267,7 @@ var CommunitySession = class {
|
|
|
33855
34267
|
...described ? { fl: described } : {}
|
|
33856
34268
|
}), nick, now);
|
|
33857
34269
|
if ("error" in sent) return sent;
|
|
33858
|
-
await this.hooks.message({
|
|
34270
|
+
if (await this.hooks.message({
|
|
33859
34271
|
id: sent.id,
|
|
33860
34272
|
sender: this.myKey,
|
|
33861
34273
|
epoch: sent.frame.e,
|
|
@@ -33866,8 +34278,9 @@ var CommunitySession = class {
|
|
|
33866
34278
|
...answers ? { reply: answers } : {},
|
|
33867
34279
|
...hops ? { forwarded: hops } : {},
|
|
33868
34280
|
...card ? { card } : {},
|
|
33869
|
-
...described ? { file: described } : {}
|
|
33870
|
-
|
|
34281
|
+
...described ? { file: described } : {},
|
|
34282
|
+
frame: sent.frame
|
|
34283
|
+
}) === true) this.onRows.set(storeKey(sent.frame), sent.id);
|
|
33871
34284
|
await this.say(sent.frame);
|
|
33872
34285
|
return { id: sent.id };
|
|
33873
34286
|
});
|
|
@@ -34033,6 +34446,8 @@ var CommunitySession = class {
|
|
|
34033
34446
|
const author = id.slice(0, id.indexOf(":"));
|
|
34034
34447
|
const kept = this.state.store.filter((f) => f.s !== author || this.storedId(f) !== id);
|
|
34035
34448
|
if (kept.length === this.state.store.length) return;
|
|
34449
|
+
const left = new Set(kept.map(storeKey));
|
|
34450
|
+
for (const f of this.state.store) if (!left.has(storeKey(f))) this.onRows.delete(storeKey(f));
|
|
34036
34451
|
this.state.store = kept;
|
|
34037
34452
|
this.persistSoon();
|
|
34038
34453
|
}
|
|
@@ -34048,9 +34463,31 @@ var CommunitySession = class {
|
|
|
34048
34463
|
return original ? communityMessageId(f.s, original.e, original.h, original.n) : communityMessageId(f.s, f.e, f.h, f.n);
|
|
34049
34464
|
}
|
|
34050
34465
|
keep(frame) {
|
|
34466
|
+
if (this.onRows.has(storeKey(frame))) return;
|
|
34051
34467
|
this.state.store.push(frame);
|
|
34468
|
+
this.trimStore();
|
|
34469
|
+
}
|
|
34470
|
+
trimStore() {
|
|
34052
34471
|
let bytes = this.state.store.reduce((sum, f) => sum + f.c.length, 0);
|
|
34053
|
-
while (this.state.store.length > COMMUNITY_LIMITS.store || bytes > COMMUNITY_LIMITS.storeBytes)
|
|
34472
|
+
while (this.state.store.length > COMMUNITY_LIMITS.store || bytes > COMMUNITY_LIMITS.storeBytes) {
|
|
34473
|
+
const oldest = this.state.store.shift();
|
|
34474
|
+
bytes -= oldest.c.length;
|
|
34475
|
+
const row = this.onRows.get(storeKey(oldest));
|
|
34476
|
+
if (row === void 0) continue;
|
|
34477
|
+
this.onRows.delete(storeKey(oldest));
|
|
34478
|
+
this.hooks.forgetFrame?.(row);
|
|
34479
|
+
}
|
|
34480
|
+
}
|
|
34481
|
+
/** The frames the app's rows hold, into the store: oldest first by when they were written, with what the record kept from before. */
|
|
34482
|
+
takeRows(rows) {
|
|
34483
|
+
if (!rows.length) return;
|
|
34484
|
+
const inRecord = new Set(this.state.store.map(storeKey));
|
|
34485
|
+
for (const { id, frame } of rows) {
|
|
34486
|
+
this.onRows.set(storeKey(frame), id);
|
|
34487
|
+
if (!inRecord.has(storeKey(frame))) this.state.store.push(frame);
|
|
34488
|
+
}
|
|
34489
|
+
this.state.store.sort((a, b) => a.ts - b.ts);
|
|
34490
|
+
this.trimStore();
|
|
34054
34491
|
}
|
|
34055
34492
|
/**
|
|
34056
34493
|
* My frames sealed under a commit I took for the newest while I was behind (no edge was up, and others were let in
|
|
@@ -34315,6 +34752,9 @@ var CommunitySession = class {
|
|
|
34315
34752
|
}
|
|
34316
34753
|
const roster = this.rosterOf(found.hash);
|
|
34317
34754
|
if (!rosterHas(roster, raw.s)) return false;
|
|
34755
|
+
let pace = this.messagePace.get(raw.s);
|
|
34756
|
+
if (!pace) this.messagePace.set(raw.s, pace = new MessagePace());
|
|
34757
|
+
if (!pace.take(seenKey(raw.e, raw.h), raw.n, raw.c.length, this.hooks.clock?.() ?? Date.now())) return false;
|
|
34318
34758
|
if (!rosterHas(roster, this.myKey)) {
|
|
34319
34759
|
this.markSeen(raw);
|
|
34320
34760
|
this.keep(raw);
|
|
@@ -34373,13 +34813,14 @@ var CommunitySession = class {
|
|
|
34373
34813
|
this.state.nicks[raw.s] = nick;
|
|
34374
34814
|
this.hooks.changed();
|
|
34375
34815
|
}
|
|
34816
|
+
let onRow = false;
|
|
34376
34817
|
if (text !== void 0) {
|
|
34377
34818
|
const mentions = validMentions(parsed.m, text, false);
|
|
34378
34819
|
const reply = parsed.r === void 0 ? void 0 : readReply(parsed.r, groupReplyAuthor);
|
|
34379
34820
|
const forwarded = readForwarded(parsed.fw);
|
|
34380
34821
|
const card = parsed.sc === void 0 ? void 0 : readStatusCard(parsed.sc);
|
|
34381
34822
|
const file = parsed.fl === void 0 ? void 0 : readGroupFileMeta(parsed.fl) ?? void 0;
|
|
34382
|
-
await this.hooks.message({
|
|
34823
|
+
onRow = await this.hooks.message({
|
|
34383
34824
|
id,
|
|
34384
34825
|
sender: raw.s,
|
|
34385
34826
|
epoch: raw.e,
|
|
@@ -34390,7 +34831,8 @@ var CommunitySession = class {
|
|
|
34390
34831
|
...reply ? { reply } : {},
|
|
34391
34832
|
...forwarded ? { forwarded } : {},
|
|
34392
34833
|
...card ? { card } : {},
|
|
34393
|
-
...file ? { file } : {}
|
|
34834
|
+
...file ? { file } : {},
|
|
34835
|
+
frame: raw
|
|
34394
34836
|
});
|
|
34395
34837
|
} else if (isObject$5(parsed.x)) {
|
|
34396
34838
|
const app = {
|
|
@@ -34426,6 +34868,7 @@ var CommunitySession = class {
|
|
|
34426
34868
|
...original
|
|
34427
34869
|
});
|
|
34428
34870
|
this.keep(raw);
|
|
34871
|
+
if (onRow === true) this.onRows.set(storeKey(raw), id);
|
|
34429
34872
|
this.persistSoon();
|
|
34430
34873
|
return true;
|
|
34431
34874
|
}
|
|
@@ -34563,8 +35006,8 @@ var CommunitySession = class {
|
|
|
34563
35006
|
const unheard = new Set(this.state.unheard ?? []);
|
|
34564
35007
|
const marked = /* @__PURE__ */ new Set();
|
|
34565
35008
|
const metas = this.metaFor(from, frame.mt);
|
|
34566
|
-
const inStore = new Set(this.state.store.map(
|
|
34567
|
-
const lasting = Object.values(this.state.lasting ?? {}).filter((f) => !inStore.has(
|
|
35009
|
+
const inStore = new Set(this.state.store.map(storeKey));
|
|
35010
|
+
const lasting = Object.values(this.state.lasting ?? {}).filter((f) => !inStore.has(storeKey(f))).sort((a, b) => a.ts - b.ts);
|
|
34568
35011
|
for (const stored of [...lasting, ...this.state.store]) {
|
|
34569
35012
|
if (stored.s === from) continue;
|
|
34570
35013
|
const high = have[stored.s]?.[seenKey(stored.e, stored.h)];
|
|
@@ -35017,6 +35460,36 @@ function checkAppListing(value, options = {}) {
|
|
|
35017
35460
|
return fine;
|
|
35018
35461
|
}
|
|
35019
35462
|
/**
|
|
35463
|
+
* The first object key `text` writes twice in one object, as JSON.parse reads it (`"title"` is `title`), or null.
|
|
35464
|
+
* `text` is JSON that JSON.parse already took: one pass, each string read to its closing quote.
|
|
35465
|
+
*/
|
|
35466
|
+
function repeatedJsonKey(text) {
|
|
35467
|
+
/** Each open object's keys so far; null for an array. */
|
|
35468
|
+
const open = [];
|
|
35469
|
+
let keyNext = false;
|
|
35470
|
+
for (let i = 0; i < text.length; i++) {
|
|
35471
|
+
const c = text[i];
|
|
35472
|
+
if (c === "\"") {
|
|
35473
|
+
let end = i + 1;
|
|
35474
|
+
while (text[end] !== "\"") end += text[end] === "\\" ? 2 : 1;
|
|
35475
|
+
const keys = open[open.length - 1];
|
|
35476
|
+
if (keys && keyNext) {
|
|
35477
|
+
const key = JSON.parse(text.slice(i, end + 1));
|
|
35478
|
+
if (keys.has(key)) return key;
|
|
35479
|
+
keys.add(key);
|
|
35480
|
+
keyNext = false;
|
|
35481
|
+
}
|
|
35482
|
+
i = end;
|
|
35483
|
+
} else if (c === "{") {
|
|
35484
|
+
open.push(/* @__PURE__ */ new Set());
|
|
35485
|
+
keyNext = true;
|
|
35486
|
+
} else if (c === "[") open.push(null);
|
|
35487
|
+
else if (c === "}" || c === "]") open.pop();
|
|
35488
|
+
else if (c === ",") keyNext = open[open.length - 1] !== null;
|
|
35489
|
+
}
|
|
35490
|
+
return null;
|
|
35491
|
+
}
|
|
35492
|
+
/**
|
|
35020
35493
|
* Reads a `listing.json`: JSON holding exactly one listing (written by hand in release 1.2, so not required canonical).
|
|
35021
35494
|
* A store reads it, as a writer: strict by default, so a misspelt key is refused before the owner signs the index (the
|
|
35022
35495
|
* client never reads a `listing.json`, only the signed index). `{ strict: false }` reads it as a client reads an index
|
|
@@ -35033,6 +35506,12 @@ function readAppListing(text, options = { strict: true }) {
|
|
|
35033
35506
|
detail: String(error)
|
|
35034
35507
|
};
|
|
35035
35508
|
}
|
|
35509
|
+
const twice = options.strict ? repeatedJsonKey(text) : null;
|
|
35510
|
+
if (twice !== null) return {
|
|
35511
|
+
ok: false,
|
|
35512
|
+
reason: "not-json",
|
|
35513
|
+
detail: `${JSON.stringify(twice)} is written twice`
|
|
35514
|
+
};
|
|
35036
35515
|
const checked = checkAppListing(value, options);
|
|
35037
35516
|
return checked.ok ? {
|
|
35038
35517
|
ok: true,
|
|
@@ -36065,6 +36544,6 @@ function x401ApprovalDigest(subject) {
|
|
|
36065
36544
|
return toBase64Url(sha256(utf8Encode(canonical)));
|
|
36066
36545
|
}
|
|
36067
36546
|
//#endregion
|
|
36068
|
-
export { COMMUNITY_LIMITS as $, fromBase64 as $C, normalizeRelayUrl as $S, readHandoffAck as $_, LIVENESS_PING_MS as $a, INVITE_VERSION as $b, isServeId as $c, emptyDhtDeliveryState as $d, LINK_PREVIEW_LIMITS as $f, HANDOFF_BUSY_REASONS as $g, encodeChunk as $h, sparkAddressKind as $i, DOMAIN_FILE_MAX_BYTES as $l, DATA_SETTLE_MS as $m, bip322MessageHash as $n, meshHubs as $o, cardLinkHost as $p, checkDidJws as $r, GROUP_PIN_FRAME as $s, carryMentions as $t, identityRevocationValue as $u, planKnocks as $v, TURN_SLOTS as $x, pacer as $y, readX401ProofResponseHeader as A, identityFromSeed as AC, DEPARTED_READS as AS, handoffContext as A_, ENDPOINT as Aa, parseImageMeta as Ab, wakeRequest as Ac, ringAuthorization as Ad, isPlayableVideoType as Af, waitForIceGathering as Ag, UNUSED_INVITE_WAIT_MAX_MS as Ah, openDidDhtPayload as Ai, SERVICES_CAPABILITY as Al, rememberAlone as Am, parseGroupMetaFrame as An, fetchesByItself as Ao, REPLY_ID as Ap, shortAtprotoDid as Ar, FileUplink as As, mergeKnocks as At, dialDescriptors as Au, ENROLL_PROOF as Av, signDeviceTransports as Ax, readLinkRecord as Ay, APP_STORE_KINDS as B, MAX_AVATAR_LENGTH as BC, RELAY_REQUESTS_PER_MINUTE as BS, handoffManifestFrames as B_, CROSSED_FRESH_MS as Ba, readContactLink as Bb, APP_RANGE_DATA_KIND as Bc, irohDescriptor as Bd, MAX_EDITS_PER_MESSAGE as Bf, MAX_SERVICES as Bg, relativizeLocation as Bh, USDT_PUBLIC_RPC as Bi, PairedSession as Bl, confirmationTag as Bm, SshSigError as Bn, GROUP_VERSION_SIGNALS as Bo, CRON_LINE as Bp, parseAtprotoVerificationKey as Br, TYPING_REFRESH_MS as Bs, mentionedMembers as Bt, IDENTITY_MAX_FRAME as Bu, readEnrollGrant as Bv, keptAtEqualSequence as Bx, APP_ICON_PATH as By, buildX401TokenObject as C, signRelayPayload as CC, BACKGROUND_REQUESTS_PER_MINUTE as CS, filePartName as C_, parseLightningDestination as Ca, signAppRevocation as Cb, newWakeToken as Cc, storageProof as Cd, voiceFileName as Cf, heardCallSignal as Cg, PRESENCE_HEARTBEAT as Ch, didDhtDocument as Ci, CALLS_CAPABILITY as Cl, MEMBER_KEY as Cm, groupMetaTag as Cn, parseEngineError as Co, reactionFrame as Cp, atprotoDidMethod as Cr, PAIRED_CALL_FRAME as Cs, MAX_KNOCKS as Ct, CAPS_PUBLISH_SPACING_MS as Cu, verifySetUpdate as Cv, deviceLinkPairing as Cx, knockSlotRecords as Cy, readX401ProofRequest as D, readDnsName as DC, CHAT_RESERVE_PER_CHAT as DS, handoffAttemptSucceeded as D_, BOLT11_PATTERN as Da, IMAGE_LIMITS as Db, relayRequest as Dc, verifyNostrProof as Dd, PLAYABLE_VIDEO as Df, pickCallCandidates as Dg, STALLED_LOOK_MS as Dh, encodeDidDhtDeactivated as Di, KNOWN_SESSION_CAPABILITIES as Dl, commitUntaggedHash as Dm, nextGroupMetaRevision as Dn, GROUP_VERSION_FILES as Do, validReactionNumber as Dp, isAtprotoDid as Dr, FILE_DATA_KIND as Ds, groupEntryUrl as Dt, CapsRefusedError as Du, ENROLL_DONE as Dv, deviceLinkSecret as Dx, mergeContactKnocks as Dy, isX401Protocol as E, encodeTxtPacket as EC, CHAT_RESERVE_MOST_SHARE as ES, handoffAttemptFailed as E_, resolveLightningDestination as Ea, verifyAppStatementBytes as Eb, readWakePayload as Ec, validExternalKey as Ed, voicePeaksOf as Ef, parseCallSignal as Eg, SIGNAL_OUT_READS as Eh, didDhtRecords as Ei, FILES_CAPABILITY as El, commitHash as Em, keepPastGroupMeta as En, GROUP_HAVE_FRAME as Eo, readReaction as Ep, checkAtprotoProofRecord as Er, ChatFiles as Es, entryParams as Et, CapsKeys as Eu, ENROLL_CANCEL_REASONS as Ev, deviceLinkSealKey as Ex, makeStampPaced as Ey, appRevocationFor as F, decrypt as FC, GROUP_RATION_WINDOW_MS as FS, handoffEphemeral as F_, parseCashuRequestPayload as Fa, readCanonicalJson as Fb, encryptPushPayload as Fc, verifyRingEvidence as Fd, EDIT_BUFFER_MS as Ff, emptyLinkRecords as Fg, GhostlyHttpError as Fh, ONCHAIN_PROVIDER as Fi, UPGRADE_CAPABILITY as Fl, verifyChain as Fm, wrapGroupMeta as Fn, readGroupWant as Fo, replySnippet as Fp, decodeDagCbor as Fr, transferStalled as Fs, GROUP_WAKE_MEMBER_INTERVAL_MS as Ft, IDENTITY_CHECK_UNAVAILABLE as Fu, enrollGrantFrame as Fv, TURN_PUT_WINDOW_MS as Fx, APP_BUNDLE_LIMITS as Fy, readAppStore as G, hasVisible as GC, SIGNALING_WINDOW_MS as GS, handoffRetryAfter as G_, DHT_PIN_GRACE_MS as Ga, deviceInviteJoinerKeyZ32 as Gb, appRangeCancelFrame as Gc, ACTIVE_DHT_POLL_MS as Gd, editFrame as Gf, isViewerTag as Gg, webLocalFetch as Gh, formatPaymentAmount as Gi, HOLD_LIMITS as Gl, newEpochSecret as Gm, sshKeyDigestHex as Gn, SIGNAL_PROVEN_MS as Go, ROUTINE_STATES as Gp, DID_DOCUMENT_MAX_BYTES as Gr, TypingSender as Gs, GroupSession as Gt, IDENTITY_REVOCATION_LABEL as Gu, MAX_MISSED as Gv, TURN_LABEL as Gx, appViewOf as Gy, checkAppListing as H, jpegSize$1 as HC, RelayTransport as HS, handoffPakeFrame as H_, CROSSED_WAIT_MS as Ha, DEVICE_INVITE_LIFETIME_S as Hb, APP_RANGE_FRAMES as Hc, rankTransports as Hd, REMOVED_TEXT as Hf, decodeServices as Hg, sanitizeRequestHeaders as Hh, arkAddressPrefix as Hi, SESSION_RECEIVE_PENDING as Hl, edgeParams as Hm, parseSshSignature as Hn, SIGNAL_CARRIERS as Ho, PR_CHECKS as Hp, unsignedCommitBytes as Hr, TYPING_STATUS_MAX as Hs, GROUP_LIMITS as Ht, IDENTITY_MAX_VALIDITY as Hu, verifyEnrollProof as Hv, TOMBSTONE_SEQUENCE as Hx, APP_SCREENSHOTS_DIR as Hy, appStoreDecision as I, encrypt as IC, GROUP_SIGNALING_ALLOWANCE_SHARE as IS, handoffFileMissingFrame as I_, parseFedimintRequestPayload as Ia, CONTACT_LINK_BYTES as Ib, generateVapidKeys as Ic, RELAY_URL as Id, EDIT_FRAME as If, isEmptyLinkPacket as Ig, HttpClient as Ih, PaymentPreflightError as Ii, WAKE_SESSION_CAPABILITY as Il, verifyCommit as Im, SSHSIG_MAX_ARMOR as In, readGroupWantNo as Io, wireReply as Ip, encodeDagCbor as Ir, TYPING_FRAME as Is, GROUP_WAKE_RECEIVE_LIMIT as It, IDENTITY_CLOCK_SKEW as Iu, enrollHelloFrame as Iv, TURN_RAISE_READ_TIMEOUT_MS as Ix, APP_BUNDLE_MAGIC as Iy, GROUP_TYPING_FRAME as J, stripHidden as JC, TURN_SOURCE_TIMEOUT_MS as JS, handoffVerifiedMessage as J_, GhostLink as Ja, readDeviceInvite as Jb, appRangeEndFrame as Jc, DHT_MESSAGE_TTL as Jd, parseEditedFrame as Jf, servicesToWire as Jg, LIMITS as Jh, validatePaymentTarget as Ji, isHoldUrl as Jl, sealPair as Jm, isLegacySignature as Jn, readGroupSignal as Jo, TASK_STATUSES as Jp, DID_JWS_ALGS as Jr, sanitizeTypingStatus as Js, frameBytes as Jt, IdentityCheckUnavailable as Ju, REOPEN_BELOW as Jv, TURN_NAME_BYTES as Jx, checkAppManifest as Jy, readAppStoreSteps as K, sanitizeDisplayText as KC, SLOW_DEMOTE_MS as KS, handoffStreamKey as K_, EARLY_DIAL_JOIN_MS as Ka, deviceInviteJoinerParams as Kb, appRangeChunk as Kc, DHT_FILE_REFUSED as Kd, editedFrame as Kf, serviceIdFromName as Kg, CHUNK_FLAG_END as Kh, isWalletNetwork as Ki, HoldKeys as Kl, openPair as Km, sshSignCommand as Kn, SIGNAL_REPLY_MS as Ko, RUN_RESULTS as Kp, DID_FILE_MAX_BYTES as Kr, parseTypingActivity as Ks, asWritten as Kt, IDENTITY_STATEMENT_PREFIX as Ku, MAX_WAITING as Kv, TURN_LAST_SEQUENCE as Kx, assembleAppBundle as Ky, appUpdateDecision as L, generateEncryptionKey as LC, HEDGE_MISSING_MS as LS, handoffFileRequestFrame as L_, ANSWERS_REFUSED_PAUSES as La, CONTACT_LINK_VERSION as Lb, pushRequest as Lc, TRANSPORTS as Ld, EDIT_RATE_WINDOW_MS as Lf, parseLinkRecords as Lg, HttpHost as Lh, SEPOLIA_TEST_USDT as Li, parseSessionCapabilities as Ll, verifyCommitSignature as Lm, SSHSIG_NAMESPACE as Ln, CARRIED_DEFER_MS as Lo, ACTIVE_TASK_STATUSES as Lp, findInMst as Lr, TYPING_KINDS as Ls, GroupWakeLimiter as Lt, IDENTITY_FRAME_LIMIT as Lu, enrollMessage as Lv, TURN_SETTLE_MS as Lx, APP_CLIENTS as Ly, readX401ProofResultHeader as M, publicKeyFromZ32 as MC, GROUP_BURST_MS as MS, handoffDataFrame as M_, fedimintRequestPayload as Ma, readImageMeta as Mb, WebPushError as Mc, ringEvidence as Md, parseVideoMeta as Mf, MAX_MSGS_PAYLOAD_B64 as Mg, countUnusedInvite as Mh, signDidDhtPacket as Mi, STATUS_CARD_CAPABILITY as Ml, rosterHas as Mm, parseGroupMetaTag as Mn, isGroupMessageId as Mo, groupReplyAuthor as Mp, AtprotoProofError as Mr, encodeFileData as Ms, GROUP_WAKE_FRAME as Mt, encodePacketTransports as Mu, enrollCancelReason as Mv, verifyDeviceTransports as Mx, requestRecords as My, x401AnswerableRequests as N, sign as NC, GROUP_BURST_ONE_LINK as NS, handoffDigest as N_, findEndpoint as Na, canonicalJson as Nb, checkPushEndpoint as Nc, validRingKey as Nd, EDITED_FRAME as Nf, RECORD_TTL as Ng, presenceSeenAt as Nh, ETHEREUM_USDT as Ni, SessionCapabilities as Nl, signCommit as Nm, signGroupMeta as Nn, readGroupFileMeta as No, pairedReplyAuthor as Np, atprotoCidFor as Nr, refusalText as Ns, GROUP_WAKE_GROUP_LIMIT as Nt, parsePacketTransports as Nu, enrollDigits as Nv, seedSigner as Nx, seenEntry as Ny, readX401ProofRequestHeader as O, IDENTITY_MEMO_SIZE as OC, CHAT_WATCH_SHARE as OS, handoffBusyFrame as O_, decodeBolt11 as Oa, imageSize as Ob, wakeFrame as Oc, verifyPeerProof as Od, VIDEO_LIMITS as Of, sdpHasCandidates as Og, TRANSPORTS_GONE_MS as Oh, encodeDidDhtPacket as Oi, PIN_CAPABILITY as Ol, expectedRoster as Om, openGroupMeta as On, GROUP_WANT_FRAME as Oo, wireReaction as Op, normalizeAtprotoHandle as Or, FILE_FRAMES as Os, knockIdentity as Ot, DHT_TEXT_CAPABILITY as Ou, ENROLL_GRANT as Ov, devicePingFrame as Ox, openRequest as Oy, addedAppPermissions as P, verify as PC, GROUP_OVER_PACE_MS as PS, handoffDoneFrame as P_, isFederationId as Pa, canonicalJsonBytes as Pb, decryptPushPayload as Pc, verifyRingAuthorization as Pd, EDIT_BUFFER_MAX as Pf, buildLinkRecords as Pg, unusedInviteWait as Ph, EVM_TEST_CHAINS as Pi, TYPING_CAPABILITY as Pl, sortRoster as Pm, verifyGroupMetaSignature as Pn, readGroupHave as Po, readReply as Pp, decodeAtprotoCommit as Pr, transferEnded as Ps, GROUP_WAKE_GROUP_WINDOW_MS as Pt, IDENTITY_CHALLENGE_WINDOW as Pu, enrollDoneFrame as Pv, webCryptoSigner as Px, stampHolds as Py, sealGroupTyping as Q, concatBytes as QC, currentRelays as QS, openHandoffPiece as Q_, LIVENESS_MISSED_PINGS as Qa, INVITE_MAX_LENGTH as Qb, encodeAppRangeData as Qc, LIVE_POLL_MS as Qd, LINK_MAX_CHARS as Qf, HANDOFF_BUSY as Qg, decodeControl as Qh, isSparkAddress as Qi, DNS_TYPE as Ql, CONNECT_TIMEOUT_MS as Qm, MessageRefusal as Qn, mayBeHub as Qo, cardLine as Qp, DidError as Qr, COMMUNITY_PIN_FRAME as Qs, GROUP_EDIT_TEXT_BYTES as Qt, identityPresentationBytes as Qu, newInbox as Qv, TURN_SIGNED_BYTES as Qx, isAppUrl as Qy, checkAppBeforeRun as R, sealedLength as RC, HEDGE_MS as RS, handoffHaveFrames as R_, ANSWERS_REFUSED_PAUSE_MS as Ra, createContactLink as Rb, vapidAuthorization as Rc, automaticTransport as Rd, EDIT_RECEIVE_LIMIT as Rf, HTTP_SERVICE_PROTO as Rg, formatLocalTarget as Rh, SEPOLIA_TEST_USDT_FAUCET as Ri, sessionCapabilitiesFrame as Rl, GROUP_PROFILE as Rm, SSH_KEY_TYPES as Rn, CarriedTransport as Ro, BUTTON_ID as Rp, parseAtprotoCar as Rr, TYPING_RATE_LIMIT as Rs, groupWakeFrame as Rt, IDENTITY_FRAME_WINDOW_MS as Ru, enrollProofFrame as Rv, TURN_VISIBLE_MS as Rx, APP_CLIENT_NAME as Ry, buildX401ResultArtifact as S, readOwnRelayPayload as SC, turnVerifierMark as SS, filePartDigest as S_, parseInvoiceCallback as Sa, signAppObject as Sb, deviceWakeRequest as Sc, proofStatement as Sd, voiceDownloadName as Sf, extractParamsFromSdp as Sg, OFFER_STEP_MAX as Sh, decodeDidDhtPacket as Si, BUTTONS_CAPABILITY as Sl, MAX_GROUP_MEMBERS as Sm, groupMetaPicture as Sn, engineText as So, reactionEmoji as Sp, ATPROTO_PROOF_SCOPE as Sr, MAX_PAIRED_CALL_SIGNAL as Ss, KNOCK_TTL_MS as St, CAPS_LIMITS as Su, signTombstone as Sv, deviceKeyZ32 as Sx, knockSlotOf as Sy, encodeX401Header as T, decodeTxtPacket as TC, CHAT_RESERVE as TS, handoffAttemptAllowed as T_, requestLnurlInvoice as Ta, verifyAppSignature as Tb, readWake as Tc, storageProofPath as Td, voiceLevelsOf as Tf, keepsToRelays as Tg, RELAY_POLL_INTERVALS as Th, didDhtKey as Ti, FILES_BINARY_CAPABILITY as Tl, SAID_AGAIN as Tm, groupName as Tn, GROUP_FILE_LIMITS as To, readDhtReactions as Tp, atprotoProofRkey as Tr, parsePairedCallFrame as Ts, encodeGroupEntryLink as Tt, CapsExchange as Tu, ENROLL_CANCEL as Tv, deviceLinkRendezvousSeed as Tx, makeStamp as Ty, checkAppStoreIndex as U, sanitizeAvatar as UC, RelaysFailedError as US, handoffReleaseFrame as U_, DEMOTE_AFTER_FAILURES as Ua, DEVICE_INVITE_OWN_DEVICE as Ub, APP_RANGE_LIMITS as Uc, relayedTransports as Ud, RateWindow as Uf, encodeServices as Ug, sanitizeResponseHeaders as Uh, assertTokenUnits as Ui, HOLD_CAPABILITY as Ul, encryptText as Um, sameSshKey as Un, SIGNAL_FRESH_MS as Uo, PR_STATES as Up, verifyAtprotoRecordProof as Ur, TYPING_TIMEOUT_MS as Us, GROUP_REACTED_FRAME as Ut, IDENTITY_PROOF_CAPABILITY as Uu, FLOOD_PER_DAY as Uv, TOMBSTONE_TURN as Ux, APP_VIEWS as Uy, APP_STORE_LIMITS as V, MAX_AVATAR_SIDE as VC, REQUESTS_PER_MINUTE as VS, handoffOfferFrame as V_, CROSSED_PROBE_MS as Va, DEVICE_INVITE_BYTES as Vb, APP_RANGE_ERRORS as Vc, irohRelayUrl as Vd, MAX_REMOVAL_NUMBER as Vf, SERVICES_VERSION as Vg, resolveTargetUrl as Vh, WALLET_NETWORKS as Vi, SESSION_FRAME_MAX as Vl, decryptText as Vm, parseSshPublicKey as Vn, SIGNALS_PER_MINUTE as Vo, ITEM_STATES as Vp, readAtprotoCid as Vr, TYPING_SEND_LIMIT as Vs, parseGroupWakeFrame as Vt, IDENTITY_MAX_RECEIVED as Vu, readEnrollHello as Vv, turnPutSummary as Vx, APP_PERMISSIONS as Vy, readAppListing as W, MAX_NICK_LENGTH as WC, SIGNALING_ALLOWANCE_SHARE as WS, handoffRequestFrame as W_, DEMOTE_MS as Wa, createDeviceInvite as Wb, AppRanges as Wc, transportOrder as Wd, dhtEditId as Wf, isValidServiceId as Wg, viewerResponseHeaders as Wh, assertWholeSats as Wi, HOLD_DATED_BACK_MS as Wl, epochKeys as Wm, sshFingerprint as Wn, SIGNAL_HOLD_MS as Wo, REMOVABLE_KINDS as Wp, verifyAtprotoSignature as Wr, TypingReceiver as Ws, GROUP_READ_NOTE as Wt, IDENTITY_PROVIDER_ID as Wu, MAX_DONE as Wv, TURN_BODY_BYTES as Wx, appDigest as Wy, groupTypingEpoch as X, unwrapPasted as XC, WAY_BACK_SHARE as XS, isHandoffPartName as X_, INVITER_DIAL_GRACE_MS as Xa, INVITE_HRP as Xb, appRangeGetFrame as Xc, DHT_TEXT_REFUSED as Xd, validEditNumber as Xf, HANDOFF_ACK as Xg, PROTOCOL_VERSION as Xh, SPARK_NETWORKS as Xi, readManifest as Xl, sha256Hex as Xm, verifyBitcoinMessage as Xn, MESH_HUBS as Xo, buttonLabelClash as Xp, DID_MAX_LENGTH as Xr, typingFrame as Xs, COMMUNITY_EDIT_FRAME as Xt, boundVerifiedIdentity as Xu, endedRequests as Xv, TURN_REV_LIMIT as Xx, isAppLicense as Xy, GroupTypingBoard as Y, trimEndOf as YC, WATCH_SHARE as YS, handoffVersions as Y_, HANDLED_WAIT_MS as Ya, DEVICE_INVITE_VERSION as Yb, appRangeErrorFrame as Yc, DHT_TEXT_BYTES as Yd, validEditMessage as Yf, viewerTag as Yg, MAX_CHUNK_PAYLOAD_BYTES as Yh, walletNetworkOf as Yi, newMailbox as Yl, sealSecret as Ym, legacyMessageHash as Yn, GROUP_VERSION_HUBS as Yo, appCardId as Yp, DID_JWS_MAX_LENGTH as Yr, typingActivity as Ys, groupMessageId as Yt, IdentityExchange as Yu, clearMissed as Yv, TURN_NO_ACTIVE as Yx, findAppForbiddenKey as Yy, openGroupTyping as Z, bytesEqual as ZC, WRITE_FIRST_MS as ZS, newHandoffId as Z_, INVITE_TAKEN as Za, INVITE_LINK_ORIGIN as Zb, decodeAppRangeData as Zc, DhtDelivery as Zd, validRemovalNumber as Zf, HANDOFF_ATTEMPTS as Zg, decodeChunk as Zh, SPARK_PROVIDER as Zi, DNS_LABEL as Zl, ANSWER_REFUSED_REDIALS as Zm, BIP322_REVISION as Zn, NO_HUB_POLICY as Zo, cardEditNumber as Zp, DID_METHODS as Zr, typingKindOf as Zs, GROUP_EDIT_FRAME as Zt, emptyIdentityLedger as Zu, inboxRecord as Zv, TURN_SEALED_BYTES as Zx, isAppPath as Zy, X401_PROTOCOLS as _, createRelayPayload as _C, turnPayloadSequence as _S, HANDOFF_TIMINGS as __, LIGHTNING_DESTINATION_PATTERN as _a, readAppRevocation as _b, WAKE_FRAME as _c, importedProof as _d, fileMessageText as _f, callRtcConfig as _g, IDLE_THRESHOLD as _h, DID_DHT_MAX_PAYLOAD as _i, isChatAppId as _l, GROUP_ID as _m, encodeGroupMetaBody as _n, parsePaymentNetworks as _o, nextReactionNumber as _p, u64 as _r, readBeacon as _s, shortHash as _t, txtValue as _u, encodeSetSlots as _v, ENROLL_CAPABILITY as _x, STAMP_BITS_MAX as _y, X401_DCQL_LIMITS as a, BREAKER_MAX_MS as aC, nextTurnPosition as aS, HANDOFF_FILE_REQUEST as a_, PUBKY_PROOF_ROOT as aa, APP_PREFIXES as ab, nextPinNumber as ac, revokesIdentity as ad, FileTransfers as af, RTC_SIGNAL_FUTURE_MS as ag, STALLED_EVIDENCE_MS as ah, didWebFile as ai, APP_RATE_LIMIT as al, sameButtonText as am, MENTION_EVERYONE as an, RACE_ANSWERED_MS as ao, sanitizePreviewImage as ap, ByteReader as ar, beaconKeys as as, communityHasFrame as at, decodeDnsResponse as au, readHandoffHave as av, toBase64Url as aw, encodeInviteCode as ax, KNOCK_SLOTS as ay, buildX401ProofRequest as b, openRelayPayload as bC, turnSignedMessage as bS, HANDOFF_WINDOW as b_, findLightningDestination as ba, readAppSignature as bb, WAKE_TTL_SECONDS as bc, proofCapability as bd, parseVoiceMeta as bf, contactRtcConfig as bg, OFFER_FAST_MS as bh, DID_DHT_VERSION as bi, APPS_CAPABILITY as bl, LEGACY_GROUP_MEMBERS as bm, groupMetaChange as bn, EngineError as bo, queueReaction as bp, ATPROTO_FULL_SCOPE as br, shouldBeHub as bs, verifyCommunityCommit as bt, CAPS_ISSUED_BACK_MS as bu, setUpdateFrame as bv, deviceEchoNonce as bx, knockHolds as by, readX401DcqlQuery as c, DiscoveryBudgetError as cC, readTurnPacket as cS, HANDOFF_LATER_BYTES as c_, newPubkyProofFolder as ca, appRef as cb, pinFrame as cc, IDENTITY_TIMELINE_MAX as cd, safeBlobType as cf, extractRtcParams as cg, DIRECT_PEERS as ch, didWebHost as ci, APP_SEND_LIMIT as cl, taskProgress as cm, mentionsMember as cn, REDESCRIBED_GRACE_MS as co, forwardedMany as cp, decodeBitcoinAddress as cr, freshHubs as cs, communityUntaggedHash as ct, domainWellKnownFile as cu, readHandoffPake as cv, utf8Encode as cw, inviteQrSegments as cx, MAX_SEEN as cy, newX401HolderKey as d, isDiscoveryBudgetError as dC, signTurnPacket as dS, HANDOFF_OFFER as d_, pubkyProofFile as da, appSignedBytes as db, pinnedFrame as dc, PROOF_ADAPTERS as dd, PLAYABLE_AUDIO as df, CALL_SIGNAL_FUTURE_MS as dg, symmetricNat as dh, parseDidDocument as di, appCloseFrame as dl, arrivalKey as dm, GROUP_META_PAST as dn, SWITCH_RETIRE_MS as do, GROUP_REACTION_FRAME as dp, encodeTx as dr, lobbyRecords as ds, encodeCommunityLink as dt, nip05RootKey as du, readHandoffVerified as dv, __exportAll as dw, pastedAgain as dx, REQUEST_LABEL as dy, readRelayBody as eC, TURN_TTL as eS, HANDOFF_CANCEL as e_, sparkInvoiceDetails as ea, readAppBundle as eb, PINNED_FRAME as ec, identityStatement as ed, peekDhtMailbox as ef, encodeControl as eg, DataLink as eh, checkDidSignature as ei, parseAppRangeFrame as el, cardTimeUtc as em, communityEditFrame as en, MAX_PAIRED_MESSAGE_FRAME as eo, canonicalUrl as ep, bip322ToSign as er, meshRendezvous as es, COMMUNITY_PROFILE as et, DOMAIN_MAX_RECORDS as eu, readHandoffBusy as ev, fromBase64Url as ew, OwnInviteError as ex, settleRequest as ey, readX401SdJwtVc as f, withRequestOptions as fC, signTurnRelease as fS, HANDOFF_PAKE as f_, pubkyProofPath as fa, checkAppRevokeStatement as fb, readPin as fc, PROOF_CAPABILITY as fd, RECORDING_TYPES as ff, CALL_SIGNAL_MAX_AGE_MS as fg, AWAITING_PEER_MS as fh, parseDidJws as fi, appDataBytes as fl, claimedTime as fm, GROUP_META_PAST_CHARS as fn, UNPROVEN_AUTH_MS as fo, QUICK_REACTIONS as fp, encodeWitness as fr, mergeBeacon as fs, leaveStands as ft, normalizeDomain as fu, sameDigest as fv, __require as fw, readInviteCode as fx, REQUEST_LIFETIME_MS as fy, X401_LIMITS as g, RELAY_PAYLOAD_MAX_BYTES as gC, turnPacket as gS, HANDOFF_REQUEST as g_, pubkyHomeserverOf as ga, isAppSignature as gb, WAKE_CALL_WAIT_MS as gc, emptyProofLedger as gd, downsamplePeaks as gf, buildSdpFromSignal as gg, FIRST_PUBLISH_MAX_MS as gh, strictBase64Url as gi, isAppVersion as gl, GROUP_ADMIN_OFF_ERROR as gm, MAX_GROUP_PICTURE_LENGTH as gn, pairedMessageFrame as go, ReactionWindow as gp, u32$1 as gr, rankHubs as gs, rosterHash as gt, recordsName as gu, SET_UPDATE as gv, DEVICE_PING_FRAME as gx, STAMP_BITS_DEFAULT as gy, X401_HEADERS as h, PacketTooLargeError as hC, turnName as hS, HANDOFF_RELEASE as h_, homeserverWebEndpoint as ha, isAppRef as hb, WAKE_CALL_TTL_SECONDS as hc, STORAGE_ROOT as hd, baseMime as hf, answersOffer as hg, EXPECT_PEER_MS as hh, staticDidDocument as hi, chatAppId as hl, shownTime as hm, MAX_GROUP_NAME_LENGTH as hn, pairedMessageFits as ho, REACTION_LIMITS as hp, txHash as hr, pickHubs as hs, leftStatement as ht, recordsFromWellKnown as hu, SET_ACK as hv, DEVICE_ECHO_FRAME as hx, REQUEST_TEXT_BYTES as hy, x401ApprovalDigest as i, BREAKER_BASE_MS as iC, firstDeviceSetSecret as iS, HANDOFF_FILE_MISSING as i_, PUBKY_PROOF_MAX_BYTES as ia, APP_NAME as ib, mayPin as ic, receivedIdentityStatus as id, readDhtFile as if, DATA_CHANNEL_LABEL as ig, REANSWERS as ih, didWebDocumentUrl as ii, APP_PEER_OPEN_MAX as il, removedCardText as im, validEditText as in, PONG_WAIT_MS as io, previewImageSize as ip, BitcoinAddressError as ir, COMMUNITY_TOPOLOGY as is, communityGroupId as it, WELL_KNOWN_PATH as iu, readHandoffFileFrame as iv, toBase64 as iw, encodeGhostlyInvite as ix, ContactRequestError as iy, readX401ProofResult as j, identityFromSeedB64 as jC, FRESH_READ_MS as jS, handoffContextProof as j_, cashuRequestPayload as ja, previewable as jb, PUSH_SERVICE_HOSTS as jc, ringClaims as jd, isVideoMime as jf, LABEL$1 as jg, WATCH_PEER_MS as jh, resolveDidDht as ji, SESSION_CAPABILITIES_FRAME as jl, rosterAdmin as jm, parseGroupMetaStatement as jn, groupFileFallback as jo, REPLY_LIMITS as jp, AtprotoCid as jr, decodeFileData as js, readKnocks as jt, emptyCapsState as ju, enrollCancelFrame as jv, unsignedDeviceTransports as jx, requestPlaintextBytes as jy, readX401ProofResponse as k, createIdentity as kC, DEFAULT_RELAYS as kS, handoffCancelFrame as k_, findBolt11 as ka, isImageMime as kb, wakePayload as kc, RING_LIFETIME as kd, formatVideoDuration as kf, signalHasVideo as kg, UNUSED_INVITE_READS_PER_MINUTE as kh, jwkThumbprint as ki, REACTIONS_CAPABILITY as kl, parseGroupCommit as km, parseGroupMetaBody as kn, GROUP_WANT_NO_FRAME as ko, PAIRED_REPLY_AUTHORS as kp, parseAtprotoDidDocument as kr, FILE_LIMITS as ks, knockRecords as kt, capsDescriptors as ku, ENROLL_HELLO as kv, newDeviceSetSecret as kx, readKnockSlot as ky, x401VpToken as l, budgetRetryMs as lC, sealTurnBody as lS, HANDOFF_LIST_PER_FRAME as l_, normalizePubkyKey as la, appRefPublisher as lb, pinIsNewer as lc, applyIdentityEvent as ld, sanitizeFileName as lf, offerIsFresh as lg, DirectPathWatch as lh, normalizeDid as li, APP_VERSION_MAX as ll, usageLeft as lm, validMentions as ln, RESUME_WAIT_MS as lo, readForwarded as lp, decodeTx as lr, hubRank as ls, decodeCommunityLink as lt, encodeDnsQuery as lu, readHandoffRelease as lv, __commonJSMin as lw, inviteQrText as lx, MAX_SLOT_KNOCKS as ly, x401HolderJwk as m, PKARR_FUTURE_SKEW_MS as mC, turnKeys as mS, HANDOFF_PIECE_OVERHEAD as m_, encodeSvcbPacket as ma, isAppKey as mb, WAKE_CALL_INTERVAL_MS as mc, STORAGE_LIFETIME as md, VOICE_METER as mf, RTC_CONFIG as mg, DHT_POLL_INTERVALS as mh, signingKeys as mi, appOpenFrame as ml, receivedTimestamp as mm, MAX_GROUP_NAME_BYTES as mn, WAKE_LOST_MS as mo, REACTION_FRAME as mp, sha256d as mr, newerHead as ms, leaveStatement3 as mt, recordsFromTxt as mu, sortParts as mv, DEVICE_CAPABILITIES as mx, REQUEST_PACKET_BYTES as my, X401_RESPONSE_MODES as n, traceLink as nC, TurnRecordError as nS, HANDOFF_DATA as n_, BITCOIN_NETWORKS as na, sha256Paced as nb, PIN_FRAME as nc, isIdentityBinding as nd, dhtFileElements as nf, wrapDataChannel as ng, GATHER_STALL_MS as nh, didJwsAlg as ni, APP_DATA_MAX_BYTES as nl, checkStatusCard as nm, meshMessageRef as nn, PAIRING_ATTEMPT_MS as no, linksIn as np, decodeBase64 as nr, pickMeshHubs as ns, GROUP_READ_NOTE_COMMUNITY as nt, DOMAIN_TXT_MAX_BYTES as nu, readHandoffData as nv, isZ32Key as nw, createLink as nx, turnOff as ny, matchX401Dcql as o, BREAKER_THRESHOLD as oC, openTurnValue as oS, HANDOFF_HAVE as o_, isPubkyKey as oa, APP_STATEMENT_LIMITS as ob, parsePinFrame as oc, signIdentityPresentation as od, PREVIEWABLE_IMAGE as of, RTC_SIGNAL_MAX_AGE_MS as og, DIRECT_EVIDENCE_MS as oh, didWebFileNames as oi, APP_RATE_WINDOW_MS as ol, statusCardBytes as om, MENTION_LIMITS as on, RACE_DIRECT_MS as oo, FORWARD_LIMITS as op, compactSize as or, beaconRecords as os, communityMessageId as ot, dnsProofName as ou, readHandoffHello as ov, toZ32 as ow, inviteLink as ox, KNOCK_SLOT_LABEL as oy, sameX401HolderJwk as p, MAX_DNS_PACKET_BYTES as pC, turnInstance as pS, HANDOFF_PIECE_BYTES as p_, decodeSvcbRecords as pa, isAppHash as pb, DEVICE_WAKE_TTL_SECONDS as pc, PeerProofs as pd, VOICE_LIMITS as pf, PAIRED_CALL_CANDIDATES as pg, DEPARTED_READ_MS as ph, parseDidSignaturePaste as pi, appDataFrame as pl, heardTime as pm, MAX_GROUP_META_BODY as pn, WAKE_ANSWER_GRACE_MS as po, REACTED_FRAME as pp, hash160 as pr, mergeLobby as ps, leaveStatement as pt, parseDomainTxt as pu, sealHandoffPiece as pv, __toCommonJS as pw, DEVICES_CAPABILITY as px, REQUEST_NAME_UNITS as py, signAppStore as q, sanitizeNick as qC, SLOW_MS as qS, handoffVerifiedFrame as q_, FIRST_PAIRING_PACE_MS as qa, encodeDeviceInvite as qb, appRangeDataFrame as qc, DHT_FILE_TOO_LARGE as qd, parseEditFrame as qf, servicesFromWire as qg, CHUNK_KIND as qh, parsePaymentAmount as qi, HoldRefusedError as ql, openSecret as qm, verifySshSignature as qn, groupSignalFrame as qo, STATUS_CARD_LIMITS as qp, DID_GHOSTLY_SERVICE as qr, parseTypingFrame as qs, chainPieces as qt, IDENTITY_SUBJECT as qu, NEW_PER_HOUR as qv, TURN_MAX as qx, buildAppBundle as qy, readX401OpenId4VpRequest as r, BREAKER_ALL_DOWN_PROBE_MS as rC, encodeTurnFields as rS, HANDOFF_DONE as r_, isBitcoinAddress as ra, yieldThread as rb, PIN_LIMITS as rc, newIdentityBinding as rd, dhtFileId as rf, DATA_CHANNEL_ID as rg, OFFER_HOST_GATHER_MS as rh, didSignedMessages as ri, APP_FRAME as rl, readStatusCard as rm, parseCommunityEdit as rn, PAIRING_RETRY_MS as ro, parseLinkPreview as rp, verifyBip322 as rr, wireHubPolicy as rs, communityCommitHash as rt, NIP05_PATH as ru, readHandoffDone as rv, randomBytes as rw, decodeInviteCode as rx, CONTACT_RECORD_TTL as ry, presentX401SdJwtVc as s, RelayBreaker as sC, readTurnBody as sS, HANDOFF_HELLO as s_, isPubkyProofFolder as sa, appFingerprint as sb, parsePinnedFrame as sc, verifyIdentityPresentation as sd, formatFileSize as sf, buildDataSdp as sg, DIRECT_OWN_ATTEMPTS as sh, didWebFileUrl as si, APP_RESUME_GRACE_MS as sl, statusCardText as sm, mentionsBytes as sn, RACE_RELAYED_MS as so, forwardedAgain as sp, decodeAnyBitcoinAddress as sr, doorHubs as ss, communityRoster as st, domainTxtRecord as su, readHandoffManifest as sv, utf8Decode as sw, inviteOwnership as sx, LINK_RECORD_LABEL as sy, X401_REQUEST_LIMITS as t, setLinkTraceSink as tC, TURN_VERSION as tS, HANDOFF_CANCEL_REASONS as t_, sparkNetworkOf as ta, readAppBundleAsync as tb, PIN_CLOCK_SKEW_MS as tc, identityStatementText as td, DHT_FILE_CAPABILITY as tf, sendBody as tg, GATHER_ATTEMPTS as th, didGhostlyServiceEntry as ti, readAppRangeFrame as tl, cardUrl as tm, communityMessageAuthor as tn, PAIRED_FRAME_TOO_LARGE as to, linkEnd as tp, bip322ToSpend as tr, parseHubPolicy as ts, CommunitySession as tt, DOMAIN_METHODS as tu, readHandoffCancel as tv, fromZ32 as tw, createChatInvite as tx, takeRequest as ty, X401_CREDENTIAL_LIMITS as u, heldBackError as uC, signTurnBody as uS, HANDOFF_MANIFEST as u_, pubkyProofCapability as ua, appRevocationId as ub, pinNumberHolds as uc, lastSharedWithMe as ud, sanitizeMime as uf, parseRtcSignal as ug, directBlocked as uh, parseDid as ui, AppSessions as ul, MESSAGE_CLOCK_SKEW_MS as um, wireMentions as un, RTC_UNSTARTED_MS as uo, COMMUNITY_REACTION_FRAME as up, decodeWitness as ur, lobbyKeys as us, derivedSecret as ut, isPublicAddress as uu, readHandoffTurnFrame as uv, __esmMin as uw, ownInviteRefusal as ux, REQUEST_CLOCK_SKEW_MS as uy, X401_SCHEME as v, measureRecords as vC, turnReleaseMessage as vS, HANDOFF_VERIFIED as v_, LNURL_LIMITS as va, readAppRevocationShape as vb, WAKE_INTERVAL_MS as vc, isProofAdapter as vd, formatVoiceDuration as vf, callSignalHeardAt as vg, LinkSession as vh, DID_DHT_PREFIX as vi, parseAppFrame as vl, GROUP_MEMBER_CAP as vm, groupDisplayName as vn, publishFailure as vo, parseReactedFrame as vp, varBytes as vr, readBeaconHead as vs, signCommunity as vt, validDomainRecord as vu, readSetUpdate as vv, HANDOFF_CAPABILITY as vx, STAMP_BITS_MIN as vy, decodeX401Header as w, decodeDnsAnswers as wC, BACKGROUND_WHILE_SIGNALING as wS, handoffAckFrame as w_, parsePayParams as wa, verifyAppRevocation as wb, parseWakeFrame as wc, storageProofBody as wd, voiceLevel as wf, isGlobalIpv4Host as wg, PRESENCE_WINDOW as wh, didDhtFromPublicKey as wi, EDIT_CAPABILITY as wl, OWN_FRAME_LIMIT as wm, groupMetaToHand as wn, PairingTracker as wo, reactionIsNewer as wp, atprotoProofRecord as wr, PairedCalls as ws, decodeGroupEntryLink as wt, CAPS_REFRESH_MS as wu, DEVICE_KINDS as wv, deviceLinkParams as wx, linkRecords as wy, buildX401ProofResult as x, parseRelayPayload as xC, turnStatedVerifier as xS, NO_ATTEMPTS as x_, invoiceCallbackUrl as xa, setAppSignatureFastPath as xb, WakeLimiter as xc, proofHash as xd, recordingMime as xf, decompressSdp as xg, OFFER_LOOK_MS as xh, DidDhtError as xi, APP_RANGES_CAPABILITY as xl, MAX_GROUP_CHAIN as xm, groupMetaNewer as xn, engineError as xo, reactedFrame as xp, ATPROTO_PROOF_COLLECTION as xr, validHead as xs, GROUP_ENTRY_PROFILE as xt, CAPS_LABEL as xu, setUpdateMessage as xv, deviceFrameCapability as xx, knockSlotIdentity as xy, X401_VERSION as y, newerPacket as yC, turnSequence as yS, HANDOFF_VERSION as y_, fetchLnurlJson as ya, readAppRevocations as yb, WAKE_SUBJECT as yc, nostrProofTemplate as yd, isPlayableAudioType as yf, compressSdp as yg, MAX_DHT_TEXT_BYTES as yh, DID_DHT_TTL as yi, readAppFrame as yl, GROUP_VERSION_LARGE as ym, groupMetaBody as yn, ENGINE_ERRORS as yo, parseReactionFrame as yp, ATPROTO_DECLARED_SCOPE as yr, readLobby as ys, verifyCommunityChain as yt, wellKnownUrl as yu, setAckFrame as yv, deviceEchoFrame as yx, contactDay as yy, planAppUpdate as z, tryDecrypt as zC, PREVIOUS_DEFAULT_RELAYS as zS, handoffHelloFrame as z_, BLOCKED_DIAL_WAIT_MS as za, encodeContactLink as zb, vapidKeysMatch as zc, checkedDescriptors as zd, EDIT_SEND_LIMIT as zf, LEGACY_SERVICES as zg, parseLocalTarget as zh, TEST_USDT_FAUCET_AMOUNT as zi, PAIRED_PROFILE as zl, confirmationMatches as zm, SSH_PUBLIC_KEY_MAX as zn, GROUP_SIGNAL_FRAME as zo, BUTTON_STYLES as zp, parseAtprotoDidKey as zr, TYPING_RATE_WINDOW_MS as zs, groupWakes as zt, IDENTITY_MAX_EVIDENCE as zu, formatEnrollDigits as zv, classifyTurnRead as zx, APP_FORBIDDEN_KEYS as zy };
|
|
36547
|
+
export { COMMUNITY_LIMITS as $, bytesEqual as $C, WRITE_FIRST_MS as $S, newHandoffId as $_, LIVENESS_PING_MS as $a, INVITE_LINK_ORIGIN as $b, isServeId as $c, emptyDhtDeliveryState as $d, LINK_PREVIEW_LIMITS as $f, HANDOFF_ATTEMPTS as $g, decodeChunk as $h, sparkAddressKind as $i, DOMAIN_FILE_MAX_BYTES as $l, ANSWER_REFUSED_REDIALS as $m, bip322MessageHash as $n, meshHubs as $o, cardEditNumber as $p, checkDidJws as $r, GROUP_PIN_FRAME as $s, carryMentions as $t, identityRevocationValue as $u, inboxRecord as $v, TURN_SEALED_BYTES as $x, isAppPath as $y, readX401ProofResponseHeader as A, IDENTITY_MEMO_SIZE as AC, CHAT_WATCH_SHARE as AS, handoffBusyFrame as A_, ENDPOINT as Aa, imageSize as Ab, wakeRequest as Ac, ringAuthorization as Ad, isPlayableVideoType as Af, sdpHasCandidates as Ag, TRANSPORTS_GONE_MS as Ah, openDidDhtPayload as Ai, SERVICES_CAPABILITY as Al, expectedRoster as Am, parseGroupMetaFrame as An, fetchesByItself as Ao, wireReaction as Ap, shortAtprotoDid as Ar, FileUplink as As, mergeKnocks as At, dialDescriptors as Au, ENROLL_GRANT as Av, devicePingFrame as Ax, openRequest as Ay, APP_STORE_KINDS as B, sealedLength as BC, HEDGE_MS as BS, handoffHaveFrames as B_, CROSSED_FRESH_MS as Ba, createContactLink as Bb, APP_RANGE_DATA_KIND as Bc, irohDescriptor as Bd, MAX_EDITS_PER_MESSAGE as Bf, HTTP_SERVICE_PROTO as Bg, formatLocalTarget as Bh, USDT_PUBLIC_RPC as Bi, PairedSession as Bl, GROUP_PROFILE as Bm, SshSigError as Bn, GROUP_VERSION_SIGNALS as Bo, BUTTON_ID as Bp, parseAtprotoVerificationKey as Br, TYPING_REFRESH_MS as Bs, mentionedMembers as Bt, IDENTITY_MAX_FRAME as Bu, enrollProofFrame as Bv, TURN_VISIBLE_MS as Bx, APP_CLIENT_NAME as By, buildX401TokenObject as C, parseRelayPayload as CC, turnStatedVerifier as CS, NO_ATTEMPTS as C_, parseLightningDestination as Ca, setAppSignatureFastPath as Cb, newWakeToken as Cc, storageProof as Cd, voiceFileName as Cf, decompressSdp as Cg, OFFER_LOOK_MS as Ch, didDhtDocument as Ci, CALLS_CAPABILITY as Cl, MAX_GROUP_CHAIN as Cm, groupMetaTag as Cn, parseEngineError as Co, reactedFrame as Cp, atprotoDidMethod as Cr, PAIRED_CALL_FRAME as Cs, MAX_KNOCKS as Ct, CAPS_PUBLISH_SPACING_MS as Cu, setUpdateMessage as Cv, deviceFrameCapability as Cx, knockSlotIdentity as Cy, readX401ProofRequest as D, decodeTxtPacket as DC, CHAT_RESERVE as DS, handoffAttemptAllowed as D_, BOLT11_PATTERN as Da, verifyAppSignature as Db, relayRequest as Dc, verifyNostrProof as Dd, PLAYABLE_VIDEO as Df, keepsToRelays as Dg, RELAY_POLL_INTERVALS as Dh, encodeDidDhtDeactivated as Di, KNOWN_SESSION_CAPABILITIES as Dl, SAID_AGAIN as Dm, nextGroupMetaRevision as Dn, GROUP_VERSION_FILES as Do, readDhtReactions as Dp, isAtprotoDid as Dr, FILE_DATA_KIND as Ds, groupEntryUrl as Dt, CapsRefusedError as Du, ENROLL_CANCEL as Dv, deviceLinkRendezvousSeed as Dx, makeStamp as Dy, isX401Protocol as E, decodeDnsAnswers as EC, BACKGROUND_WHILE_SIGNALING as ES, handoffAckFrame as E_, resolveLightningDestination as Ea, verifyAppRevocation as Eb, readWakePayload as Ec, validExternalKey as Ed, voicePeaksOf as Ef, isGlobalIpv4Host as Eg, PRESENCE_WINDOW as Eh, didDhtRecords as Ei, FILES_CAPABILITY as El, OWN_FRAME_LIMIT as Em, keepPastGroupMeta as En, GROUP_HAVE_FRAME as Eo, reactionIsNewer as Ep, checkAtprotoProofRecord as Er, ChatFiles as Es, entryParams as Et, CapsKeys as Eu, DEVICE_KINDS as Ev, deviceLinkParams as Ex, linkRecords as Ey, appRevocationFor as F, sign as FC, GROUP_BURST_ONE_LINK as FS, handoffDigest as F_, parseCashuRequestPayload as Fa, canonicalJson as Fb, encryptPushPayload as Fc, verifyRingEvidence as Fd, EDIT_BUFFER_MS as Ff, RECORD_TTL as Fg, presenceSeenAt as Fh, ONCHAIN_PROVIDER as Fi, UPGRADE_CAPABILITY as Fl, signCommit as Fm, wrapGroupMeta as Fn, readGroupWant as Fo, pairedReplyAuthor as Fp, decodeDagCbor as Fr, transferStalled as Fs, GROUP_WAKE_MEMBER_INTERVAL_MS as Ft, IDENTITY_CHECK_UNAVAILABLE as Fu, enrollDigits as Fv, seedSigner as Fx, seenEntry as Fy, readAppStore as G, sanitizeAvatar as GC, RelaysFailedError as GS, handoffReleaseFrame as G_, DHT_PIN_GRACE_MS as Ga, DEVICE_INVITE_OWN_DEVICE as Gb, appRangeCancelFrame as Gc, ACTIVE_DHT_POLL_MS as Gd, editFrame as Gf, encodeServices as Gg, sanitizeResponseHeaders as Gh, formatPaymentAmount as Gi, HOLD_LIMITS as Gl, encryptText as Gm, sshKeyDigestHex as Gn, SIGNAL_PROVEN_MS as Go, PR_STATES as Gp, DID_DOCUMENT_MAX_BYTES as Gr, TypingSender as Gs, GroupSession as Gt, IDENTITY_REVOCATION_LABEL as Gu, FLOOD_PER_DAY as Gv, TOMBSTONE_TURN as Gx, APP_VIEWS as Gy, checkAppListing as H, MAX_AVATAR_LENGTH as HC, RELAY_REQUESTS_PER_MINUTE as HS, handoffManifestFrames as H_, CROSSED_WAIT_MS as Ha, readContactLink as Hb, APP_RANGE_FRAMES as Hc, rankTransports as Hd, REMOVED_TEXT as Hf, MAX_SERVICES as Hg, relativizeLocation as Hh, arkAddressPrefix as Hi, SESSION_RECEIVE_PENDING as Hl, confirmationTag as Hm, parseSshSignature as Hn, SIGNAL_CARRIERS as Ho, CRON_LINE as Hp, unsignedCommitBytes as Hr, TYPING_STATUS_MAX as Hs, GROUP_LIMITS as Ht, IDENTITY_MAX_VALIDITY as Hu, readEnrollGrant as Hv, keptAtEqualSequence as Hx, APP_ICON_PATH as Hy, appStoreDecision as I, verify as IC, GROUP_OVER_PACE_MS as IS, handoffDoneFrame as I_, parseFedimintRequestPayload as Ia, canonicalJsonBytes as Ib, generateVapidKeys as Ic, RELAY_URL as Id, EDIT_FRAME as If, buildLinkRecords as Ig, unusedInviteWait as Ih, PaymentPreflightError as Ii, WAKE_SESSION_CAPABILITY as Il, sortRoster as Im, SSHSIG_MAX_ARMOR as In, readGroupWantNo as Io, readReply as Ip, encodeDagCbor as Ir, TYPING_FRAME as Is, GROUP_WAKE_RECEIVE_LIMIT as It, IDENTITY_CLOCK_SKEW as Iu, enrollDoneFrame as Iv, webCryptoSigner as Ix, stampHolds as Iy, GROUP_TYPING_FRAME as J, sanitizeDisplayText as JC, SLOW_DEMOTE_MS as JS, handoffStreamKey as J_, GhostLink as Ja, deviceInviteJoinerParams as Jb, appRangeEndFrame as Jc, DHT_MESSAGE_TTL as Jd, parseEditedFrame as Jf, serviceIdFromName as Jg, CHUNK_FLAG_END as Jh, validatePaymentTarget as Ji, isHoldUrl as Jl, openPair as Jm, isLegacySignature as Jn, readGroupSignal as Jo, RUN_RESULTS as Jp, DID_JWS_ALGS as Jr, sanitizeTypingStatus as Js, frameBytes as Jt, IdentityCheckUnavailable as Ju, MAX_WAITING as Jv, TURN_LAST_SEQUENCE as Jx, assembleAppBundle as Jy, readAppStoreSteps as K, MAX_NICK_LENGTH as KC, SIGNALING_ALLOWANCE_SHARE as KS, handoffRequestFrame as K_, EARLY_DIAL_JOIN_MS as Ka, createDeviceInvite as Kb, appRangeChunk as Kc, DHT_FILE_REFUSED as Kd, editedFrame as Kf, isValidServiceId as Kg, viewerResponseHeaders as Kh, isWalletNetwork as Ki, HoldKeys as Kl, epochKeys as Km, sshSignCommand as Kn, SIGNAL_REPLY_MS as Ko, REMOVABLE_KINDS as Kp, DID_FILE_MAX_BYTES as Kr, parseTypingActivity as Ks, asWritten as Kt, IDENTITY_STATEMENT_PREFIX as Ku, MAX_DONE as Kv, TURN_BODY_BYTES as Kx, appDigest as Ky, appUpdateDecision as L, decrypt as LC, GROUP_RATION_WINDOW_MS as LS, handoffEphemeral as L_, ANSWERS_REFUSED_PAUSES as La, readCanonicalJson as Lb, pushRequest as Lc, TRANSPORTS as Ld, EDIT_RATE_WINDOW_MS as Lf, emptyLinkRecords as Lg, GhostlyHttpError as Lh, SEPOLIA_TEST_USDT as Li, parseSessionCapabilities as Ll, verifyChain as Lm, SSHSIG_NAMESPACE as Ln, CARRIED_DEFER_MS as Lo, replySnippet as Lp, findInMst as Lr, TYPING_KINDS as Ls, GroupWakeLimiter as Lt, IDENTITY_FRAME_LIMIT as Lu, enrollGrantFrame as Lv, TURN_PUT_WINDOW_MS as Lx, APP_BUNDLE_LIMITS as Ly, readX401ProofResultHeader as M, identityFromSeed as MC, DEPARTED_READS as MS, handoffContext as M_, fedimintRequestPayload as Ma, parseImageMeta as Mb, WebPushError as Mc, ringEvidence as Md, parseVideoMeta as Mf, waitForIceGathering as Mg, UNUSED_INVITE_WAIT_MAX_MS as Mh, signDidDhtPacket as Mi, STATUS_CARD_CAPABILITY as Ml, rememberAlone as Mm, parseGroupMetaTag as Mn, isGroupMessageId as Mo, REPLY_ID as Mp, AtprotoProofError as Mr, encodeFileData as Ms, GROUP_WAKE_FRAME as Mt, encodePacketTransports as Mu, ENROLL_PROOF as Mv, signDeviceTransports as Mx, readLinkRecord as My, x401AnswerableRequests as N, identityFromSeedB64 as NC, FRESH_READ_MS as NS, handoffContextProof as N_, findEndpoint as Na, previewable as Nb, checkPushEndpoint as Nc, validRingKey as Nd, EDITED_FRAME as Nf, LABEL$1 as Ng, WATCH_PEER_MS as Nh, ETHEREUM_USDT as Ni, SessionCapabilities as Nl, rosterAdmin as Nm, signGroupMeta as Nn, readGroupFileMeta as No, REPLY_LIMITS as Np, atprotoCidFor as Nr, refusalText as Ns, GROUP_WAKE_GROUP_LIMIT as Nt, parsePacketTransports as Nu, enrollCancelFrame as Nv, unsignedDeviceTransports as Nx, requestPlaintextBytes as Ny, readX401ProofRequestHeader as O, encodeTxtPacket as OC, CHAT_RESERVE_MOST_SHARE as OS, handoffAttemptFailed as O_, decodeBolt11 as Oa, verifyAppStatementBytes as Ob, wakeFrame as Oc, verifyPeerProof as Od, VIDEO_LIMITS as Of, parseCallSignal as Og, SIGNAL_OUT_READS as Oh, encodeDidDhtPacket as Oi, PIN_CAPABILITY as Ol, commitHash as Om, openGroupMeta as On, GROUP_WANT_FRAME as Oo, readReaction as Op, normalizeAtprotoHandle as Or, FILE_FRAMES as Os, knockIdentity as Ot, DHT_TEXT_CAPABILITY as Ou, ENROLL_CANCEL_REASONS as Ov, deviceLinkSealKey as Ox, makeStampPaced as Oy, addedAppPermissions as P, publicKeyFromZ32 as PC, GROUP_BURST_MS as PS, handoffDataFrame as P_, isFederationId as Pa, readImageMeta as Pb, decryptPushPayload as Pc, verifyRingAuthorization as Pd, EDIT_BUFFER_MAX as Pf, MAX_MSGS_PAYLOAD_B64 as Pg, countUnusedInvite as Ph, EVM_TEST_CHAINS as Pi, TYPING_CAPABILITY as Pl, rosterHas as Pm, verifyGroupMetaSignature as Pn, readGroupHave as Po, groupReplyAuthor as Pp, decodeAtprotoCommit as Pr, transferEnded as Ps, GROUP_WAKE_GROUP_WINDOW_MS as Pt, IDENTITY_CHALLENGE_WINDOW as Pu, enrollCancelReason as Pv, verifyDeviceTransports as Px, requestRecords as Py, sealGroupTyping as Q, unwrapPasted as QC, WAY_BACK_SHARE as QS, isHandoffPartName as Q_, LIVENESS_MISSED_PINGS as Qa, INVITE_HRP as Qb, encodeAppRangeData as Qc, LIVE_POLL_MS as Qd, LINK_MAX_CHARS as Qf, HANDOFF_ACK as Qg, PROTOCOL_VERSION as Qh, isSparkAddress as Qi, DNS_TYPE as Ql, sha256Hex as Qm, MessageRefusal as Qn, mayBeHub as Qo, buttonLabelClash as Qp, DidError as Qr, COMMUNITY_PIN_FRAME as Qs, GROUP_EDIT_TEXT_BYTES as Qt, identityPresentationBytes as Qu, endedRequests as Qv, TURN_REV_LIMIT as Qx, isAppLicense as Qy, checkAppBeforeRun as R, encrypt as RC, GROUP_SIGNALING_ALLOWANCE_SHARE as RS, handoffFileMissingFrame as R_, ANSWERS_REFUSED_PAUSE_MS as Ra, CONTACT_LINK_BYTES as Rb, vapidAuthorization as Rc, automaticTransport as Rd, EDIT_RECEIVE_LIMIT as Rf, isEmptyLinkPacket as Rg, HttpClient as Rh, SEPOLIA_TEST_USDT_FAUCET as Ri, sessionCapabilitiesFrame as Rl, verifyCommit as Rm, SSH_KEY_TYPES as Rn, CarriedTransport as Ro, wireReply as Rp, parseAtprotoCar as Rr, TYPING_RATE_LIMIT as Rs, groupWakeFrame as Rt, IDENTITY_FRAME_WINDOW_MS as Ru, enrollHelloFrame as Rv, TURN_RAISE_READ_TIMEOUT_MS as Rx, APP_BUNDLE_MAGIC as Ry, buildX401ResultArtifact as S, openRelayPayload as SC, turnSignedMessage as SS, HANDOFF_WINDOW as S_, parseInvoiceCallback as Sa, readAppSignature as Sb, deviceWakeRequest as Sc, proofStatement as Sd, voiceDownloadName as Sf, contactRtcConfig as Sg, OFFER_FAST_MS as Sh, decodeDidDhtPacket as Si, BUTTONS_CAPABILITY as Sl, LEGACY_GROUP_MEMBERS as Sm, groupMetaPicture as Sn, engineText as So, queueReaction as Sp, ATPROTO_PROOF_SCOPE as Sr, MAX_PAIRED_CALL_SIGNAL as Ss, KNOCK_TTL_MS as St, CAPS_LIMITS as Su, setUpdateFrame as Sv, deviceEchoNonce as Sx, knockHolds as Sy, encodeX401Header as T, signRelayPayload as TC, BACKGROUND_REQUESTS_PER_MINUTE as TS, filePartName as T_, requestLnurlInvoice as Ta, signAppRevocation as Tb, readWake as Tc, storageProofPath as Td, voiceLevelsOf as Tf, heardCallSignal as Tg, PRESENCE_HEARTBEAT as Th, didDhtKey as Ti, FILES_BINARY_CAPABILITY as Tl, MEMBER_KEY as Tm, groupName as Tn, GROUP_FILE_LIMITS as To, reactionFrame as Tp, atprotoProofRkey as Tr, parsePairedCallFrame as Ts, encodeGroupEntryLink as Tt, CapsExchange as Tu, verifySetUpdate as Tv, deviceLinkPairing as Tx, knockSlotRecords as Ty, checkAppStoreIndex as U, MAX_AVATAR_SIDE as UC, REQUESTS_PER_MINUTE as US, handoffOfferFrame as U_, DEMOTE_AFTER_FAILURES as Ua, DEVICE_INVITE_BYTES as Ub, APP_RANGE_LIMITS as Uc, relayedTransports as Ud, RateWindow as Uf, SERVICES_VERSION as Ug, resolveTargetUrl as Uh, assertTokenUnits as Ui, HOLD_CAPABILITY as Ul, decryptText as Um, sameSshKey as Un, SIGNAL_FRESH_MS as Uo, ITEM_STATES as Up, verifyAtprotoRecordProof as Ur, TYPING_TIMEOUT_MS as Us, GROUP_REACTED_FRAME as Ut, IDENTITY_PROOF_CAPABILITY as Uu, readEnrollHello as Uv, turnPutSummary as Ux, APP_PERMISSIONS as Uy, APP_STORE_LIMITS as V, tryDecrypt as VC, PREVIOUS_DEFAULT_RELAYS as VS, handoffHelloFrame as V_, CROSSED_PROBE_MS as Va, encodeContactLink as Vb, APP_RANGE_ERRORS as Vc, irohRelayUrl as Vd, MAX_REMOVAL_NUMBER as Vf, LEGACY_SERVICES as Vg, parseLocalTarget as Vh, WALLET_NETWORKS as Vi, SESSION_FRAME_MAX as Vl, confirmationMatches as Vm, parseSshPublicKey as Vn, SIGNALS_PER_MINUTE as Vo, BUTTON_STYLES as Vp, readAtprotoCid as Vr, TYPING_SEND_LIMIT as Vs, parseGroupWakeFrame as Vt, IDENTITY_MAX_RECEIVED as Vu, formatEnrollDigits as Vv, classifyTurnRead as Vx, APP_FORBIDDEN_KEYS as Vy, readAppListing as W, jpegSize$1 as WC, RelayTransport as WS, handoffPakeFrame as W_, DEMOTE_MS as Wa, DEVICE_INVITE_LIFETIME_S as Wb, AppRanges as Wc, transportOrder as Wd, dhtEditId as Wf, decodeServices as Wg, sanitizeRequestHeaders as Wh, assertWholeSats as Wi, HOLD_DATED_BACK_MS as Wl, edgeParams as Wm, sshFingerprint as Wn, SIGNAL_HOLD_MS as Wo, PR_CHECKS as Wp, verifyAtprotoSignature as Wr, TypingReceiver as Ws, GROUP_READ_NOTE as Wt, IDENTITY_PROVIDER_ID as Wu, verifyEnrollProof as Wv, TOMBSTONE_SEQUENCE as Wx, APP_SCREENSHOTS_DIR as Wy, groupTypingEpoch as X, stripHidden as XC, TURN_SOURCE_TIMEOUT_MS as XS, handoffVerifiedMessage as X_, INVITER_DIAL_GRACE_MS as Xa, readDeviceInvite as Xb, appRangeGetFrame as Xc, DHT_TEXT_REFUSED as Xd, validEditNumber as Xf, servicesToWire as Xg, LIMITS as Xh, SPARK_NETWORKS as Xi, readManifest as Xl, sealPair as Xm, verifyBitcoinMessage as Xn, MESH_HUBS as Xo, TASK_STATUSES as Xp, DID_MAX_LENGTH as Xr, typingFrame as Xs, COMMUNITY_EDIT_FRAME as Xt, boundVerifiedIdentity as Xu, REOPEN_BELOW as Xv, TURN_NAME_BYTES as Xx, checkAppManifest as Xy, GroupTypingBoard as Y, sanitizeNick as YC, SLOW_MS as YS, handoffVerifiedFrame as Y_, HANDLED_WAIT_MS as Ya, encodeDeviceInvite as Yb, appRangeErrorFrame as Yc, DHT_TEXT_BYTES as Yd, validEditMessage as Yf, servicesFromWire as Yg, CHUNK_KIND as Yh, walletNetworkOf as Yi, newMailbox as Yl, openSecret as Ym, legacyMessageHash as Yn, GROUP_VERSION_HUBS as Yo, STATUS_CARD_LIMITS as Yp, DID_JWS_MAX_LENGTH as Yr, typingActivity as Ys, groupMessageId as Yt, IdentityExchange as Yu, NEW_PER_HOUR as Yv, TURN_MAX as Yx, buildAppBundle as Yy, openGroupTyping as Z, trimEndOf as ZC, WATCH_SHARE as ZS, handoffVersions as Z_, INVITE_TAKEN as Za, DEVICE_INVITE_VERSION as Zb, decodeAppRangeData as Zc, DhtDelivery as Zd, validRemovalNumber as Zf, viewerTag as Zg, MAX_CHUNK_PAYLOAD_BYTES as Zh, SPARK_PROVIDER as Zi, DNS_LABEL as Zl, sealSecret as Zm, BIP322_REVISION as Zn, NO_HUB_POLICY as Zo, appCardId as Zp, DID_METHODS as Zr, typingKindOf as Zs, GROUP_EDIT_FRAME as Zt, emptyIdentityLedger as Zu, clearMissed as Zv, TURN_NO_ACTIVE as Zx, findAppForbiddenKey as Zy, X401_PROTOCOLS as _, PacketTooLargeError as _C, turnName as _S, HANDOFF_RELEASE as __, LIGHTNING_DESTINATION_PATTERN as _a, isAppRef as _b, WAKE_FRAME as _c, importedProof as _d, fileMessageText as _f, answersOffer as _g, EXPECT_PEER_MS as _h, DID_DHT_MAX_PAYLOAD as _i, isChatAppId as _l, shownTime as _m, encodeGroupMetaBody as _n, parsePaymentNetworks as _o, REACTION_LIMITS as _p, u64 as _r, readBeacon as _s, shortHash as _t, txtValue as _u, SET_ACK as _v, DEVICE_ECHO_FRAME as _x, REQUEST_TEXT_BYTES as _y, X401_DCQL_LIMITS as a, BREAKER_ALL_DOWN_PROBE_MS as aC, encodeTurnFields as aS, HANDOFF_DONE as a_, PUBKY_PROOF_ROOT as aa, yieldThread as ab, nextPinNumber as ac, revokesIdentity as ad, FileTransfers as af, DATA_CHANNEL_ID as ag, OFFER_HOST_GATHER_MS as ah, didWebFile as ai, APP_RATE_LIMIT as al, readStatusCard as am, MENTION_EVERYONE as an, RACE_ANSWERED_MS as ao, parseLinkPreview as ap, ByteReader as ar, beaconKeys as as, communityHasFrame as at, decodeDnsResponse as au, readHandoffDone as av, randomBytes as aw, decodeInviteCode as ax, CONTACT_RECORD_TTL as ay, buildX401ProofRequest as b, measureRecords as bC, turnReleaseMessage as bS, HANDOFF_VERIFIED as b_, findLightningDestination as ba, readAppRevocationShape as bb, WAKE_TTL_SECONDS as bc, proofCapability as bd, parseVoiceMeta as bf, callSignalHeardAt as bg, LinkSession as bh, DID_DHT_VERSION as bi, APPS_CAPABILITY as bl, GROUP_MEMBER_CAP as bm, groupMetaChange as bn, EngineError as bo, parseReactedFrame as bp, ATPROTO_FULL_SCOPE as br, shouldBeHub as bs, verifyCommunityCommit as bt, CAPS_ISSUED_BACK_MS as bu, readSetUpdate as bv, HANDOFF_CAPABILITY as bx, STAMP_BITS_MIN as by, readX401DcqlQuery as c, BREAKER_THRESHOLD as cC, openTurnValue as cS, HANDOFF_HAVE as c_, newPubkyProofFolder as ca, APP_STATEMENT_LIMITS as cb, pinFrame as cc, IDENTITY_TIMELINE_MAX as cd, safeBlobType as cf, RTC_SIGNAL_MAX_AGE_MS as cg, DIRECT_EVIDENCE_MS as ch, didWebHost as ci, APP_SEND_LIMIT as cl, statusCardBytes as cm, mentionsMember as cn, REDESCRIBED_GRACE_MS as co, FORWARD_LIMITS as cp, decodeBitcoinAddress as cr, freshHubs as cs, communityUntaggedHash as ct, domainWellKnownFile as cu, readHandoffHello as cv, toZ32 as cw, inviteLink as cx, KNOCK_SLOT_LABEL as cy, newX401HolderKey as d, budgetRetryMs as dC, sealTurnBody as dS, HANDOFF_LIST_PER_FRAME as d_, pubkyProofFile as da, appRefPublisher as db, pinnedFrame as dc, PROOF_ADAPTERS as dd, PLAYABLE_AUDIO as df, offerIsFresh as dg, DirectPathWatch as dh, parseDidDocument as di, appCloseFrame as dl, usageLeft as dm, GROUP_META_PAST as dn, SWITCH_RETIRE_MS as do, readForwarded as dp, encodeTx as dr, lobbyRecords as ds, encodeCommunityLink as dt, nip05RootKey as du, readHandoffRelease as dv, __commonJSMin as dw, inviteQrText as dx, MAX_SLOT_KNOCKS as dy, currentRelays as eC, TURN_SIGNED_BYTES as eS, HANDOFF_BUSY as e_, sparkInvoiceDetails as ea, isAppUrl as eb, PINNED_FRAME as ec, identityStatement as ed, peekDhtMailbox as ef, decodeControl as eg, CONNECT_TIMEOUT_MS as eh, checkDidSignature as ei, parseAppRangeFrame as el, cardLine as em, communityEditFrame as en, MAX_PAIRED_MESSAGE_FRAME as eo, LINK_TRAILING as ep, bip322ToSign as er, meshRendezvous as es, COMMUNITY_PROFILE as et, DOMAIN_MAX_RECORDS as eu, openHandoffPiece as ev, concatBytes as ew, INVITE_MAX_LENGTH as ex, newInbox as ey, readX401SdJwtVc as f, heldBackError as fC, signTurnBody as fS, HANDOFF_MANIFEST as f_, pubkyProofPath as fa, appRevocationId as fb, readPin as fc, PROOF_CAPABILITY as fd, RECORDING_TYPES as ff, parseRtcSignal as fg, directBlocked as fh, parseDidJws as fi, appDataBytes as fl, MESSAGE_CLOCK_SKEW_MS as fm, GROUP_META_PAST_CHARS as fn, UNPROVEN_AUTH_MS as fo, COMMUNITY_REACTION_FRAME as fp, encodeWitness as fr, mergeBeacon as fs, leaveStands as ft, normalizeDomain as fu, readHandoffTurnFrame as fv, __esmMin as fw, ownInviteRefusal as fx, REQUEST_CLOCK_SKEW_MS as fy, X401_LIMITS as g, PKARR_FUTURE_SKEW_MS as gC, turnKeys as gS, HANDOFF_PIECE_OVERHEAD as g_, pubkyHomeserverOf as ga, isAppKey as gb, WAKE_CALL_WAIT_MS as gc, emptyProofLedger as gd, downsamplePeaks as gf, RTC_CONFIG as gg, DHT_POLL_INTERVALS as gh, strictBase64Url as gi, isAppVersion as gl, receivedTimestamp as gm, MAX_GROUP_PICTURE_LENGTH as gn, pairedMessageFrame as go, REACTION_FRAME as gp, u32$1 as gr, rankHubs as gs, rosterHash as gt, recordsName as gu, sortParts as gv, DEVICE_CAPABILITIES as gx, REQUEST_PACKET_BYTES as gy, X401_HEADERS as h, MAX_DNS_PACKET_BYTES as hC, turnInstance as hS, HANDOFF_PIECE_BYTES as h_, homeserverWebEndpoint as ha, isAppHash as hb, WAKE_CALL_TTL_SECONDS as hc, STORAGE_ROOT as hd, baseMime as hf, PAIRED_CALL_CANDIDATES as hg, DEPARTED_READ_MS as hh, staticDidDocument as hi, chatAppId as hl, heardTime as hm, MAX_GROUP_NAME_LENGTH as hn, pairedMessageFits as ho, REACTED_FRAME as hp, txHash as hr, pickHubs as hs, leftStatement as ht, recordsFromWellKnown as hu, sealHandoffPiece as hv, __toCommonJS as hw, DEVICES_CAPABILITY as hx, REQUEST_NAME_UNITS as hy, x401ApprovalDigest as i, traceLink as iC, TurnRecordError as iS, HANDOFF_DATA as i_, PUBKY_PROOF_MAX_BYTES as ia, sha256Paced as ib, mayPin as ic, receivedIdentityStatus as id, readDhtFile as if, wrapDataChannel as ig, GATHER_STALL_MS as ih, didWebDocumentUrl as ii, APP_PEER_OPEN_MAX as il, checkStatusCard as im, validEditText as in, PONG_WAIT_MS as io, linksIn as ip, BitcoinAddressError as ir, COMMUNITY_TOPOLOGY as is, communityGroupId as it, WELL_KNOWN_PATH as iu, readHandoffData as iv, isZ32Key as iw, createLink as ix, turnOff as iy, readX401ProofResult as j, createIdentity as jC, DEFAULT_RELAYS as jS, handoffCancelFrame as j_, cashuRequestPayload as ja, isImageMime as jb, PUSH_SERVICE_HOSTS as jc, ringClaims as jd, isVideoMime as jf, signalHasVideo as jg, UNUSED_INVITE_READS_PER_MINUTE as jh, resolveDidDht as ji, SESSION_CAPABILITIES_FRAME as jl, parseGroupCommit as jm, parseGroupMetaStatement as jn, groupFileFallback as jo, PAIRED_REPLY_AUTHORS as jp, AtprotoCid as jr, decodeFileData as js, readKnocks as jt, emptyCapsState as ju, ENROLL_HELLO as jv, newDeviceSetSecret as jx, readKnockSlot as jy, readX401ProofResponse as k, readDnsName as kC, CHAT_RESERVE_PER_CHAT as kS, handoffAttemptSucceeded as k_, findBolt11 as ka, IMAGE_LIMITS as kb, wakePayload as kc, RING_LIFETIME as kd, formatVideoDuration as kf, pickCallCandidates as kg, STALLED_LOOK_MS as kh, jwkThumbprint as ki, REACTIONS_CAPABILITY as kl, commitUntaggedHash as km, parseGroupMetaBody as kn, GROUP_WANT_NO_FRAME as ko, validReactionNumber as kp, parseAtprotoDidDocument as kr, FILE_LIMITS as ks, knockRecords as kt, capsDescriptors as ku, ENROLL_DONE as kv, deviceLinkSecret as kx, mergeContactKnocks as ky, x401VpToken as l, RelayBreaker as lC, readTurnBody as lS, HANDOFF_HELLO as l_, normalizePubkyKey as la, appFingerprint as lb, pinIsNewer as lc, applyIdentityEvent as ld, sanitizeFileName as lf, buildDataSdp as lg, DIRECT_OWN_ATTEMPTS as lh, normalizeDid as li, APP_VERSION_MAX as ll, statusCardText as lm, validMentions as ln, RESUME_WAIT_MS as lo, forwardedAgain as lp, decodeTx as lr, hubRank as ls, decodeCommunityLink as lt, encodeDnsQuery as lu, readHandoffManifest as lv, utf8Decode as lw, inviteOwnership as lx, LINK_RECORD_LABEL as ly, x401HolderJwk as m, withRequestOptions as mC, signTurnRelease as mS, HANDOFF_PAKE as m_, encodeSvcbPacket as ma, checkAppRevokeStatement as mb, WAKE_CALL_INTERVAL_MS as mc, STORAGE_LIFETIME as md, VOICE_METER as mf, CALL_SIGNAL_MAX_AGE_MS as mg, AWAITING_PEER_MS as mh, signingKeys as mi, appOpenFrame as ml, claimedTime as mm, MAX_GROUP_NAME_BYTES as mn, WAKE_LOST_MS as mo, QUICK_REACTIONS as mp, sha256d as mr, newerHead as ms, leaveStatement3 as mt, recordsFromTxt as mu, sameDigest as mv, __require as mw, readInviteCode as mx, REQUEST_LIFETIME_MS as my, X401_RESPONSE_MODES as n, readRelayBody as nC, TURN_TTL as nS, HANDOFF_CANCEL as n_, BITCOIN_NETWORKS as na, readAppBundle as nb, PIN_FRAME as nc, isIdentityBinding as nd, dhtFileElements as nf, encodeControl as ng, DataLink as nh, didJwsAlg as ni, APP_DATA_MAX_BYTES as nl, cardTimeUtc as nm, meshMessageRef as nn, PAIRING_ATTEMPT_MS as no, linkEnd as np, decodeBase64 as nr, pickMeshHubs as ns, GROUP_READ_NOTE_COMMUNITY as nt, DOMAIN_TXT_MAX_BYTES as nu, readHandoffBusy as nv, fromBase64Url as nw, OwnInviteError as nx, settleRequest as ny, matchX401Dcql as o, BREAKER_BASE_MS as oC, firstDeviceSetSecret as oS, HANDOFF_FILE_MISSING as o_, isPubkyKey as oa, APP_NAME as ob, parsePinFrame as oc, signIdentityPresentation as od, PREVIEWABLE_IMAGE as of, DATA_CHANNEL_LABEL as og, REANSWERS as oh, didWebFileNames as oi, APP_RATE_WINDOW_MS as ol, removedCardText as om, MENTION_LIMITS as on, RACE_DIRECT_MS as oo, previewImageSize as op, compactSize as or, beaconRecords as os, communityMessageId as ot, dnsProofName as ou, readHandoffFileFrame as ov, toBase64 as ow, encodeGhostlyInvite as ox, ContactRequestError as oy, sameX401HolderJwk as p, isDiscoveryBudgetError as pC, signTurnPacket as pS, HANDOFF_OFFER as p_, decodeSvcbRecords as pa, appSignedBytes as pb, DEVICE_WAKE_TTL_SECONDS as pc, PeerProofs as pd, VOICE_LIMITS as pf, CALL_SIGNAL_FUTURE_MS as pg, symmetricNat as ph, parseDidSignaturePaste as pi, appDataFrame as pl, arrivalKey as pm, MAX_GROUP_META_BODY as pn, WAKE_ANSWER_GRACE_MS as po, GROUP_REACTION_FRAME as pp, hash160 as pr, mergeLobby as ps, leaveStatement as pt, parseDomainTxt as pu, readHandoffVerified as pv, __exportAll as pw, pastedAgain as px, REQUEST_LABEL as py, signAppStore as q, hasVisible as qC, SIGNALING_WINDOW_MS as qS, handoffRetryAfter as q_, FIRST_PAIRING_PACE_MS as qa, deviceInviteJoinerKeyZ32 as qb, appRangeDataFrame as qc, DHT_FILE_TOO_LARGE as qd, parseEditFrame as qf, isViewerTag as qg, webLocalFetch as qh, parsePaymentAmount as qi, HoldRefusedError as ql, newEpochSecret as qm, verifySshSignature as qn, groupSignalFrame as qo, ROUTINE_STATES as qp, DID_GHOSTLY_SERVICE as qr, parseTypingFrame as qs, chainPieces as qt, IDENTITY_SUBJECT as qu, MAX_MISSED as qv, TURN_LABEL as qx, appViewOf as qy, readX401OpenId4VpRequest as r, setLinkTraceSink as rC, TURN_VERSION as rS, HANDOFF_CANCEL_REASONS as r_, isBitcoinAddress as ra, readAppBundleAsync as rb, PIN_LIMITS as rc, newIdentityBinding as rd, dhtFileId as rf, sendBody as rg, GATHER_ATTEMPTS as rh, didSignedMessages as ri, APP_FRAME as rl, cardUrl as rm, parseCommunityEdit as rn, PAIRING_RETRY_MS as ro, linkStop as rp, verifyBip322 as rr, wireHubPolicy as rs, communityCommitHash as rt, NIP05_PATH as ru, readHandoffCancel as rv, fromZ32 as rw, createChatInvite as rx, takeRequest as ry, presentX401SdJwtVc as s, BREAKER_MAX_MS as sC, nextTurnPosition as sS, HANDOFF_FILE_REQUEST as s_, isPubkyProofFolder as sa, APP_PREFIXES as sb, parsePinnedFrame as sc, verifyIdentityPresentation as sd, formatFileSize as sf, RTC_SIGNAL_FUTURE_MS as sg, STALLED_EVIDENCE_MS as sh, didWebFileUrl as si, APP_RESUME_GRACE_MS as sl, sameButtonText as sm, mentionsBytes as sn, RACE_RELAYED_MS as so, sanitizePreviewImage as sp, decodeAnyBitcoinAddress as sr, doorHubs as ss, communityRoster as st, domainTxtRecord as su, readHandoffHave as sv, toBase64Url as sw, encodeInviteCode as sx, KNOCK_SLOTS as sy, X401_REQUEST_LIMITS as t, normalizeRelayUrl as tC, TURN_SLOTS as tS, HANDOFF_BUSY_REASONS as t_, sparkNetworkOf as ta, pacer as tb, PIN_CLOCK_SKEW_MS as tc, identityStatementText as td, DHT_FILE_CAPABILITY as tf, encodeChunk as tg, DATA_SETTLE_MS as th, didGhostlyServiceEntry as ti, readAppRangeFrame as tl, cardLinkHost as tm, communityMessageAuthor as tn, PAIRED_FRAME_TOO_LARGE as to, canonicalUrl as tp, bip322ToSpend as tr, parseHubPolicy as ts, CommunitySession as tt, DOMAIN_METHODS as tu, readHandoffAck as tv, fromBase64 as tw, INVITE_VERSION as tx, planKnocks as ty, X401_CREDENTIAL_LIMITS as u, DiscoveryBudgetError as uC, readTurnPacket as uS, HANDOFF_LATER_BYTES as u_, pubkyProofCapability as ua, appRef as ub, pinNumberHolds as uc, lastSharedWithMe as ud, sanitizeMime as uf, extractRtcParams as ug, DIRECT_PEERS as uh, parseDid as ui, AppSessions as ul, taskProgress as um, wireMentions as un, RTC_UNSTARTED_MS as uo, forwardedMany as up, decodeWitness as ur, lobbyKeys as us, derivedSecret as ut, isPublicAddress as uu, readHandoffPake as uv, utf8Encode as uw, inviteQrSegments as ux, MAX_SEEN as uy, X401_SCHEME as v, RELAY_PAYLOAD_MAX_BYTES as vC, turnPacket as vS, HANDOFF_REQUEST as v_, LNURL_LIMITS as va, isAppSignature as vb, WAKE_INTERVAL_MS as vc, isProofAdapter as vd, formatVoiceDuration as vf, buildSdpFromSignal as vg, FIRST_PUBLISH_MAX_MS as vh, DID_DHT_PREFIX as vi, parseAppFrame as vl, GROUP_ADMIN_OFF_ERROR as vm, groupDisplayName as vn, publishFailure as vo, ReactionWindow as vp, varBytes as vr, readBeaconHead as vs, signCommunity as vt, validDomainRecord as vu, SET_UPDATE as vv, DEVICE_PING_FRAME as vx, STAMP_BITS_DEFAULT as vy, decodeX401Header as w, readOwnRelayPayload as wC, turnVerifierMark as wS, filePartDigest as w_, parsePayParams as wa, signAppObject as wb, parseWakeFrame as wc, storageProofBody as wd, voiceLevel as wf, extractParamsFromSdp as wg, OFFER_STEP_MAX as wh, didDhtFromPublicKey as wi, EDIT_CAPABILITY as wl, MAX_GROUP_MEMBERS as wm, groupMetaToHand as wn, PairingTracker as wo, reactionEmoji as wp, atprotoProofRecord as wr, PairedCalls as ws, decodeGroupEntryLink as wt, CAPS_REFRESH_MS as wu, signTombstone as wv, deviceKeyZ32 as wx, knockSlotOf as wy, buildX401ProofResult as x, newerPacket as xC, turnSequence as xS, HANDOFF_VERSION as x_, invoiceCallbackUrl as xa, readAppRevocations as xb, WakeLimiter as xc, proofHash as xd, recordingMime as xf, compressSdp as xg, MAX_DHT_TEXT_BYTES as xh, DidDhtError as xi, APP_RANGES_CAPABILITY as xl, GROUP_VERSION_LARGE as xm, groupMetaNewer as xn, engineError as xo, parseReactionFrame as xp, ATPROTO_PROOF_COLLECTION as xr, validHead as xs, GROUP_ENTRY_PROFILE as xt, CAPS_LABEL as xu, setAckFrame as xv, deviceEchoFrame as xx, contactDay as xy, X401_VERSION as y, createRelayPayload as yC, turnPayloadSequence as yS, HANDOFF_TIMINGS as y_, fetchLnurlJson as ya, readAppRevocation as yb, WAKE_SUBJECT as yc, nostrProofTemplate as yd, isPlayableAudioType as yf, callRtcConfig as yg, IDLE_THRESHOLD as yh, DID_DHT_TTL as yi, readAppFrame as yl, GROUP_ID as ym, groupMetaBody as yn, ENGINE_ERRORS as yo, nextReactionNumber as yp, ATPROTO_DECLARED_SCOPE as yr, readLobby as ys, verifyCommunityChain as yt, wellKnownUrl as yu, encodeSetSlots as yv, ENROLL_CAPABILITY as yx, STAMP_BITS_MAX as yy, planAppUpdate as z, generateEncryptionKey as zC, HEDGE_MISSING_MS as zS, handoffFileRequestFrame as z_, BLOCKED_DIAL_WAIT_MS as za, CONTACT_LINK_VERSION as zb, vapidKeysMatch as zc, checkedDescriptors as zd, EDIT_SEND_LIMIT as zf, parseLinkRecords as zg, HttpHost as zh, TEST_USDT_FAUCET_AMOUNT as zi, PAIRED_PROFILE as zl, verifyCommitSignature as zm, SSH_PUBLIC_KEY_MAX as zn, GROUP_SIGNAL_FRAME as zo, ACTIVE_TASK_STATUSES as zp, parseAtprotoDidKey as zr, TYPING_RATE_WINDOW_MS as zs, groupWakes as zt, IDENTITY_MAX_EVIDENCE as zu, enrollMessage as zv, TURN_SETTLE_MS as zx, APP_CLIENTS as zy };
|
|
36069
36548
|
|
|
36070
|
-
//# sourceMappingURL=src-
|
|
36549
|
+
//# sourceMappingURL=src-B5uLojgn.js.map
|