@ghostlytools/sdk 1.11.0 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core.js CHANGED
@@ -1,4 +1,189 @@
1
- import { $ as COMMUNITY_LIMITS, $C as turnInstance, $S as DEVICES_CAPABILITY, $T as toBase64, $_ as compressSdp, $a as DEMOTE_AFTER_FAILURES, $b as STAMP_BITS_MAX, $c as WAKE_ONLINE_BATCH, $d as RELAY_WITH_SECRETS, $f as dhtFileId, $g as presenceSeenAt, $h as RATCHET_CAPABILITY, $i as isSparkAddress, $l as appDataBytes, $m as cardTimeUtc, $n as MessageRefusal, $o as GROUP_VERSION_SIGNALS, $p as linkStop, $r as DidError, $s as STATUS_AVAILABILITIES, $t as GROUP_EDIT_TEXT_BYTES, $u as IDENTITY_MAX_RECEIVED, $v as HANDOFF_VERIFIED, $w as RelayBreaker, $x as isAppLine, $y as readSetUpdate, A as readX401ProofResponseHeader, AC as TURN_BODY_BYTES, AS as createDeviceInvite, AT as encrypt, A_ as decodeControl, Aa as findBolt11, Ab as clearMissed, Ac as typingFrame, Ad as STORAGE_ROOT, Af as encodeDnsQuery, Ag as DAEMON_WATCH_PEER_IDLE_MS, Ah as rosterAdmin, Ai as jwkThumbprint, Al as APP_RANGE_LIMITS, Am as groupReplyAuthor, An as parseGroupMetaBody, Ao as parsePaymentNetworks, Ap as EDIT_BUFFER_MAX, Ar as parseAtprotoDidDocument, As as readBeacon, At as knockRecords, Au as SESSION_RECEIVE_PENDING, Av as viewerTag, Aw as PREVIOUS_DEFAULT_RELAYS, Ax as assembleAppBundle, Ay as handoffVersions, B as APP_STORE_KINDS, BC as TURN_TTL, BS as OwnInviteError, BT as hasVisible, B_ as extractRtcParams, Ba as videoMetadataPatches, Bb as ContactRequestError, Bc as parsePinFrame, Bd as storageProofPath, Bf as wellKnownUrl, Bg as OFFER_STEP_MAX, Bh as decryptText, Bi as TEST_USDT_FAUCET_AMOUNT, Bl as isServeId, Bm as PR_CHECKS, Bn as SSH_PUBLIC_KEY_MAX, Bo as GROUP_VERSION_FILES, Bp as dhtEditId, Br as parseAtprotoDidKey, Bs as parsePairedCallFrame, Bt as groupWakes, Bu as capsDescriptors, Bv as HANDOFF_FILE_REQUEST, Bw as WATCH_SHARE, Bx as sha256Paced, By as readHandoffHave, C as buildX401TokenObject, CC as TURN_SETTLE_MS, CS as CONTACT_LINK_VERSION, CT as createIdentity, C_ as withViewerPolicy, Ca as parseInvoiceCallback, Cb as verifyEnrollProof, Cc as TypingReceiver, Cd as IDENTITY_TIMELINE_MAX, Cf as DOMAIN_TXT_MAX_BYTES, Cg as DIRECT_EVIDENCE_MS, Ch as OWN_FRAME_LIMIT, Ci as decodeDidDhtPacket, Cl as generateVapidKeys, Cm as readDhtReactions, Cn as groupMetaPicture, Co as SWITCH_RETIRE_MS, Cp as PLAYABLE_VIDEO, Cr as ATPROTO_PROOF_SCOPE, Cs as lobbyKeys, Ct as KNOCK_TTL_MS, Cu as UPGRADE_CAPABILITY, Cv as decodeServices, Cw as GROUP_BURST_MS, Cx as APP_FORBIDDEN_KEYS, Cy as handoffPakeFrame, D as readX401ProofRequest, DC as turnPutSummary, DS as DEVICE_INVITE_BYTES, DT as sign, D_ as MAX_CHUNK_PAYLOAD_BYTES, Da as resolveLightningDestination, Db as MAX_WAITING, Dc as plainStatusLine, Dd as PROOF_CAPABILITY, Df as dnsProofName, Dg as directBlocked, Dh as expectedRoster, Di as didDhtRecords, Dl as APP_RANGE_DATA_KIND, Dm as PAIRED_REPLY_AUTHORS, Dn as keepPastGroupMeta, Do as pairedEditFits, Dp as isVideoMime, Dr as checkAtprotoProofRecord, Ds as newerHead, Dt as entryParams, Du as PAIRED_PROFILE, Dv as serviceIdFromName, Dw as GROUP_SIGNALING_ALLOWANCE_SHARE, Dx as APP_VIEWS, Dy as handoffStreamKey, E as isX401Protocol, EC as keptAtEqualSequence, ES as readContactLink, ET as publicKeyFromZ32, E_ as LIMITS, Ea as requestLnurlInvoice, Eb as MAX_MISSED, Ec as parseTypingFrame, Ed as PROOF_ADAPTERS, Ef as decodeDnsResponse, Eg as DirectPathWatch, Eh as commitUntaggedHash, Ei as didDhtKey, El as vapidKeysMatch, Em as wireReaction, En as groupName, Eo as WAKE_LOST_MS, Ep as isPlayableVideoType, Er as atprotoProofRkey, Es as mergeLobby, Et as encodeGroupEntryLink, Eu as sessionCapabilitiesFrame, Ev as isViewerTag, Ew as GROUP_RATION_WINDOW_MS, Ex as APP_SCREENSHOTS_DIR, Ey as handoffRetryAfter, F as appRevocationFor, FC as TURN_NO_ACTIVE, FS as DEVICE_INVITE_VERSION, FT as MAX_AVATAR_SIDE, F_ as DATA_CHANNEL_ID, Fa as isFederationId, Fb as settleRequest, Fc as PIN_CLOCK_SKEW_MS, Fd as proofCapability, Ff as recordsFromTxt, Fg as IDLE_THRESHOLD, Fh as verifyCommit, Fi as EVM_TEST_CHAINS, Fl as appRangeEndFrame, Fm as ACTIVE_TASK_STATUSES, Fn as verifyGroupMetaSignature, Fo as engineText, Fp as EDIT_SEND_LIMIT, Fr as decodeAtprotoCommit, Fs as CALL_RATE_WINDOW_MS, Ft as GROUP_WAKE_GROUP_WINDOW_MS, Fu as CAPS_REFRESH_MS, Fv as HANDOFF_CANCEL, Fw as SIGNALING_ALLOWANCE_SHARE, Fx as isAppPath, Fy as readHandoffBusy, G as readAppStore, GC as nextTurnPosition, GS as encodeInviteCode, GT as unwrapPasted, G_ as CALL_SIGNAL_MAX_AGE_MS, Ga as stripPictureMetadata, Gb as MAX_SLOT_KNOCKS, Gc as pinnedFrame, Gd as ringAuthorization, Gf as DHT_TEXT_BYTES, Gg as SIGNAL_OUT_READS, Gh as openPair, Gi as assertWholeSats, Gl as APP_PEER_OPEN_MAX, Gm as STATUS_CARD_LIMITS, Gn as sshFingerprint, Go as isGroupMessageId, Gp as validEditMessage, Gr as verifyAtprotoSignature, Gs as FileUplink, Gt as GROUP_READ_NOTE, Gu as IDENTITY_CHALLENGE_WINDOW, Gv as HANDOFF_MANIFEST, Gw as readRelayBody, Gx as appFingerprint, Gy as readHandoffTurnFrame, H as checkAppListing, HC as TurnRecordError, HS as createLink, HT as sanitizeNick, H_ as parseRtcSignal, Ha as NO_PICTURE_METADATA, Hb as KNOCK_SLOT_LABEL, Hc as pinFrame, Hd as verifyNostrProof, Hf as DHT_FILE_REFUSED, Hg as PRESENCE_WINDOW, Hh as encryptText, Hi as WALLET_NETWORKS, Hl as readAppRangeFrame, Hm as REMOVABLE_KINDS, Hn as parseSshPublicKey, Ho as GROUP_WANT_NO_FRAME, Hp as editedFrame, Hr as readAtprotoCid, Hs as FILE_DATA_KIND, Ht as parseGroupWakeFrame, Hu as emptyCapsState, Hv as HANDOFF_HELLO, Hw as WRITE_FIRST_MS, Hx as APP_NAME, Hy as readHandoffManifest, I as appStoreDecision, IC as TURN_REV_LIMIT, IS as INVITE_HRP, IT as jpegSize, I_ as DATA_CHANNEL_LABEL, Ia as parseCashuRequestPayload, Ib as takeRequest, Ic as PIN_FRAME, Id as proofHash, If as recordsFromWellKnown, Ig as LinkSession, Ih as verifyCommitSignature, Ii as ONCHAIN_PROVIDER, Il as appRangeErrorFrame, Im as BUTTON_ID, In as wrapGroupMeta, Io as parseEngineError, Ip as MAX_EDITS_PER_MESSAGE, Ir as decodeDagCbor, Is as CALL_RECEIVE_LIMIT, It as GROUP_WAKE_MEMBER_INTERVAL_MS, Iu as CapsExchange, Iv as HANDOFF_CANCEL_REASONS, Iw as SIGNALING_WINDOW_MS, Ix as isAppUrl, Iy as readHandoffCancel, J as GROUP_TYPING_FRAME, JC as readTurnPacket, JS as inviteQrSegments, JT as fromBase64, J_ as RTC_CONFIG, Ja as ANSWERS_REFUSED_PAUSE_MS, Jb as REQUEST_LIFETIME_MS, Jc as WAKE_CALL_INTERVAL_MS, Jd as validRingKey, Jf as LIVE_POLL_MS, Jg as UNUSED_INVITE_READS_PER_MINUTE, Jh as sealSecret, Ji as parsePaymentAmount, Jl as APP_RESUME_GRACE_MS, Jm as appCardUrl, Jn as verifySshSignature, Jo as readGroupWant, Jp as LINK_MAX_CHARS, Jr as DID_GHOSTLY_SERVICE, Js as refusalText, Jt as chainPieces, Ju as IDENTITY_FRAME_LIMIT, Jv as HANDOFF_PIECE_BYTES, Jw as traceLink, Jx as appRevocationId, Jy as sealHandoffPiece, K as readAppStoreSteps, KC as openTurnValue, KS as inviteLink, KT as bytesEqual, K_ as PAIRED_CALL_CANDIDATES, Ka as withoutPictureMetadata, Kb as REQUEST_CLOCK_SKEW_MS, Kc as readPin, Kd as ringClaims, Kf as DHT_TEXT_REFUSED, Kg as STALLED_LOOK_MS, Kh as openSecret, Ki as formatPaymentAmount, Kl as APP_RATE_LIMIT, Km as TASK_STATUSES, Kn as sshKeyDigestHex, Ko as readGroupFileMeta, Kp as validEditNumber, Kr as DID_DOCUMENT_MAX_BYTES, Ks as decodeFileData, Kt as GroupSession, Ku as IDENTITY_CHECK_UNAVAILABLE, Kv as HANDOFF_OFFER, Kw as relayUrlProblem, Kx as appRef, Ky as readHandoffVerified, L as appUpdateDecision, LC as TURN_SEALED_BYTES, LS as INVITE_LINK_ORIGIN, LT as sanitizeAvatar, L_ as RTC_SIGNAL_FUTURE_MS, La as parseFedimintRequestPayload, Lb as turnOff, Lc as PIN_LIMITS, Ld as proofStatement, Lf as recordsName, Lg as MAX_DHT_TEXT_BYTES, Lh as GROUP_PROFILE, Li as PaymentPreflightError, Ll as appRangeGetFrame, Lm as BUTTON_STYLES, Ln as SSHSIG_MAX_ARMOR, Lo as PairingTracker, Lp as MAX_REMOVAL_NUMBER, Lr as encodeDagCbor, Ls as MAX_PAIRED_CALL_SIGNAL, Lt as GROUP_WAKE_RECEIVE_LIMIT, Lu as CapsKeys, Lv as HANDOFF_DATA, Lw as SLOW_DEMOTE_MS, Lx as pacer, Ly as readHandoffData, M as readX401ProofResultHeader, MC as TURN_LAST_SEQUENCE, MS as deviceInviteJoinerParams, MT as sealedLength, M_ as encodeControl, Ma as cashuRequestPayload, Mb as inboxRecord, Mc as COMMUNITY_PIN_FRAME, Md as importedProof, Mf as nip05RootKey, Mg as DHT_POLL_INTERVALS, Mh as signCommit, Mi as resolveDidDht, Ml as appRangeCancelFrame, Mm as readReply, Mn as parseGroupMetaStatement, Mo as ENGINE_ERRORS, Mp as EDIT_FRAME, Mr as AtprotoCid, Ms as readLobby, Mt as readKnocks, Mu as CAPS_LABEL, Mv as HANDOFF_ATTEMPTS, Mw as REQUESTS_PER_MINUTE, Mx as checkAppManifest, My as newHandoffId, N as x401AnswerableRequests, NC as TURN_MAX, NS as encodeDeviceInvite, NT as tryDecrypt, N_ as sendBody, Na as fedimintRequestPayload, Nb as newInbox, Nc as GROUP_PIN_FRAME, Nd as isProofAdapter, Nf as normalizeDomain, Ng as EXPECT_PEER_MS, Nh as sortRoster, Ni as signDidDhtPacket, Nl as appRangeChunk, Nm as replySnippet, Nn as parseGroupMetaTag, No as EngineError, Np as EDIT_RATE_WINDOW_MS, Nr as AtprotoProofError, Ns as shouldBeHub, Nt as GROUP_WAKE_FRAME, Nu as CAPS_LIMITS, Nv as HANDOFF_BUSY, Nw as RelayTransport, Nx as findAppForbiddenKey, Ny as openHandoffPiece, O as readX401ProofRequestHeader, OC as TOMBSTONE_SEQUENCE, OS as DEVICE_INVITE_LIFETIME_S, OT as verify, O_ as PROTOCOL_VERSION, Oa as BOLT11_PATTERN, Ob as NEW_PER_HOUR, Oc as sanitizeTypingStatus, Od as PeerProofs, Of as domainTxtRecord, Og as symmetricNat, Oh as parseGroupCommit, Oi as encodeDidDhtDeactivated, Ol as APP_RANGE_ERRORS, Om as REPLY_ID, On as nextGroupMetaRevision, Oo as pairedMessageFits, Op as parseVideoMeta, Or as isAtprotoDid, Os as pickHubs, Ot as groupEntryUrl, Ou as PairedSession, Ov as servicesFromWire, Ow as HEDGE_MISSING_MS, Ox as appDigest, Oy as handoffVerifiedFrame, P as addedAppPermissions, PC as TURN_NAME_BYTES, PS as readDeviceInvite, PT as MAX_AVATAR_LENGTH, P_ as wrapDataChannel, Pa as findEndpoint, Pb as planKnocks, Pc as PINNED_FRAME, Pd as nostrProofTemplate, Pf as parseDomainTxt, Pg as FIRST_PUBLISH_MAX_MS, Ph as verifyChain, Pi as ETHEREUM_USDT, Pl as appRangeDataFrame, Pm as wireReply, Pn as signGroupMeta, Po as engineError, Pp as EDIT_RECEIVE_LIMIT, Pr as atprotoCidFor, Ps as validHead, Pt as GROUP_WAKE_GROUP_LIMIT, Pu as CAPS_PUBLISH_SPACING_MS, Pv as HANDOFF_BUSY_REASONS, Pw as RelaysFailedError, Px as isAppLicense, Py as readHandoffAck, Q as sealGroupTyping, QC as signTurnRelease, QS as readInviteCode, QT as randomBytes, Q_ as callSignalHeardAt, Qa as CROSSED_WAIT_MS, Qb as STAMP_BITS_DEFAULT, Qc as WAKE_INTERVAL_MS, Qd as RELAY_URL, Qf as dhtFileElements, Qg as countUnusedInvite, Qh as MAX_SKIPPED_KEYS, Qi as SPARK_PROVIDER, Ql as appCloseFrame, Qm as cardLinkHost, Qn as BIP322_REVISION, Qo as GROUP_SIGNAL_FRAME, Qp as linkEnd, Qr as DID_METHODS, Qs as PRESENCES, Qt as GROUP_EDIT_FRAME, Qu as IDENTITY_MAX_FRAME, Qv as HANDOFF_TIMINGS, Qw as BREAKER_THRESHOLD, Qx as isAppKey, Qy as encodeSetSlots, R as checkAppBeforeRun, RC as TURN_SIGNED_BYTES, RS as INVITE_MAX_LENGTH, RT as MAX_NICK_LENGTH, R_ as RTC_SIGNAL_MAX_AGE_MS, Ra as NO_VIDEO_METADATA, Rb as CONTACT_ASKER_FRAME, Rc as mayPin, Rd as storageProof, Rf as txtValue, Rg as OFFER_FAST_MS, Rh as confirmationMatches, Ri as SEPOLIA_TEST_USDT, Rl as decodeAppRangeData, Rm as CRON_LINE, Rn as SSHSIG_NAMESPACE, Ro as GROUP_FILE_LIMITS, Rp as REMOVED_TEXT, Rr as findInMst, Rs as PAIRED_CALL_FRAME, Rt as GroupWakeLimiter, Ru as CapsRefusedError, Rv as HANDOFF_DONE, Rw as SLOW_MS, Rx as readAppBundle, Ry as readHandoffDone, S as buildX401ResultArtifact, SC as TURN_RAISE_READ_TIMEOUT_MS, SS as CONTACT_LINK_BYTES, ST as IDENTITY_MEMO_SIZE, S_ as webLocalFetch, Sa as invoiceCallbackUrl, Sb as readEnrollHello, Sc as TYPING_TIMEOUT_MS, Sd as verifyIdentityPresentation, Sf as DOMAIN_METHODS, Sg as STALLED_EVIDENCE_MS, Sh as MEMBER_KEY, Si as DidDhtError, Sl as encryptPushPayload, Sm as reactionIsNewer, Sn as groupMetaNewer, So as RTC_UNSTARTED_MS, Sp as voicePeaksOf, Sr as ATPROTO_PROOF_COLLECTION, Ss as hubRank, St as GROUP_ENTRY_PROFILE, Su as TYPING_CAPABILITY, Sv as SERVICES_VERSION, Sw as FRESH_READ_MS, Sx as APP_CLIENT_NAME, Sy as handoffOfferFrame, T as encodeX401Header, TC as classifyTurnRead, TS as encodeContactLink, TT as identityFromSeedB64, T_ as CHUNK_KIND, Ta as parsePayParams, Tb as MAX_DONE, Tc as parseTypingActivity, Td as lastSharedWithMe, Tf as WELL_KNOWN_PATH, Tg as DIRECT_PEERS, Th as commitHash, Ti as didDhtFromPublicKey, Tl as vapidAuthorization, Tm as validReactionNumber, Tn as groupMetaToHand, To as WAKE_ANSWER_GRACE_MS, Tp as formatVideoDuration, Tr as atprotoProofRecord, Ts as mergeBeacon, Tt as decodeGroupEntryLink, Tu as parseSessionCapabilities, Tv as isValidServiceId, Tw as GROUP_OVER_PACE_MS, Tx as APP_PERMISSIONS, Ty as handoffRequestFrame, U as checkAppStoreIndex, UC as encodeTurnFields, US as decodeInviteCode, UT as stripHidden, U_ as BURST_RING_MS, Ua as PICTURE_METADATA_LIMITS, Ub as LINK_RECORD_LABEL, Uc as pinIsNewer, Ud as verifyPeerProof, Uf as DHT_FILE_TOO_LARGE, Ug as RELAY_POLL_INTERVALS, Uh as epochKeys, Ui as arkAddressPrefix, Ul as APP_DATA_MAX_BYTES, Um as ROUTINE_STATES, Un as parseSshSignature, Uo as fetchesByItself, Up as parseEditFrame, Ur as unsignedCommitBytes, Us as FILE_FRAMES, Ut as GROUP_LIMITS, Uu as encodePacketTransports, Uv as HANDOFF_LATER_BYTES, Uw as currentRelays, Ux as APP_PREFIXES, Uy as readHandoffPake, V as APP_STORE_LIMITS, VC as TURN_VERSION, VS as createChatInvite, VT as sanitizeDisplayText, V_ as offerIsFresh, Va as withoutVideoMetadata, Vb as KNOCK_SLOTS, Vc as parsePinnedFrame, Vd as validExternalKey, Vf as ACTIVE_DHT_POLL_MS, Vg as PRESENCE_HEARTBEAT, Vh as edgeParams, Vi as USDT_PUBLIC_RPC, Vl as parseAppRangeFrame, Vm as PR_STATES, Vn as SshSigError, Vo as GROUP_WANT_FRAME, Vp as editFrame, Vr as parseAtprotoVerificationKey, Vs as ChatFiles, Vt as mentionedMembers, Vu as dialDescriptors, Vv as HANDOFF_HAVE, Vw as WAY_BACK_SHARE, Vx as yieldThread, Vy as readHandoffHello, W as readAppListing, WC as firstDeviceSetSecret, WS as encodeGhostlyInvite, WT as trimEndOf, W_ as CALL_SIGNAL_FUTURE_MS, Wa as isStrippedPicture, Wb as MAX_SEEN, Wc as pinNumberHolds, Wd as RING_LIFETIME, Wf as DHT_MESSAGE_TTL, Wg as SIGNAL_DUE_READS, Wh as newEpochSecret, Wi as assertTokenUnits, Wl as APP_FRAME, Wm as RUN_RESULTS, Wn as sameSshKey, Wo as groupFileFallback, Wp as parseEditedFrame, Wr as verifyAtprotoRecordProof, Ws as FILE_LIMITS, Wt as GROUP_REACTED_FRAME, Wu as parsePacketTransports, Wv as HANDOFF_LIST_PER_FRAME, Ww as normalizeRelayUrl, Wx as APP_STATEMENT_LIMITS, Wy as readHandoffRelease, X as groupTypingEpoch, XC as signTurnBody, XS as ownInviteRefusal, XT as fromZ32, X_ as buildSdpFromSignal, Xa as CROSSED_FRESH_MS, Xb as REQUEST_PACKET_BYTES, Xc as WAKE_CALL_WAIT_MS, Xd as verifyRingEvidence, Xf as peekDhtMailbox, Xg as UNUSED_INVITE_WAIT_MAX_MS, Xh as FOLLOW_MS, Xi as walletNetworkOf, Xl as APP_VERSION_MAX, Xm as cardEditNumber, Xn as legacyMessageHash, Xo as CARRIED_DEFER_MS, Xp as LINK_TRAILING, Xr as DID_JWS_MAX_LENGTH, Xs as transferEnded, Xt as groupMessageId, Xu as IDENTITY_MAX_CHECKS_PER_HOUR, Xv as HANDOFF_RELEASE, Xw as BREAKER_BASE_MS, Xx as checkAppRevokeStatement, Xy as SET_ACK, Y as GroupTypingBoard, YC as sealTurnBody, YS as inviteQrText, YT as fromBase64Url, Y_ as answersOffer, Ya as BLOCKED_DIAL_WAIT_MS, Yb as REQUEST_NAME_UNITS, Yc as WAKE_CALL_TTL_SECONDS, Yd as verifyRingAuthorization, Yf as emptyDhtDeliveryState, Yg as UNUSED_INVITE_UPKEEP_MS, Yh as sha256Hex, Yi as validatePaymentTarget, Yl as APP_SEND_LIMIT, Ym as buttonLabelClash, Yn as isLegacySignature, Yo as readGroupWantNo, Yp as LINK_PREVIEW_LIMITS, Yr as DID_JWS_ALGS, Ys as sentWhole, Yt as frameBytes, Yu as IDENTITY_FRAME_WINDOW_MS, Yv as HANDOFF_PIECE_OVERHEAD, Yw as BREAKER_ALL_DOWN_PROBE_MS, Yx as appSignedBytes, Yy as sortParts, Z as openGroupTyping, ZC as signTurnPacket, ZS as pastedAgain, ZT as isZ32Key, Z_ as callRtcConfig, Za as CROSSED_PROBE_MS, Zb as REQUEST_TEXT_BYTES, Zc as WAKE_FRAME, Zd as AUTOMATIC_ORDER, Zf as DHT_FILE_CAPABILITY, Zg as WATCH_PEER_MS, Zh as MAX_SKIP, Zi as SPARK_NETWORKS, Zl as AppSessions, Zm as cardLine, Zn as verifyBitcoinMessage, Zo as CarriedTransport, Zp as canonicalUrl, Zr as DID_MAX_LENGTH, Zs as transferStalled, Zt as COMMUNITY_EDIT_FRAME, Zu as IDENTITY_MAX_EVIDENCE, Zv as HANDOFF_REQUEST, Zw as BREAKER_MAX_MS, Zx as isAppHash, Zy as SET_UPDATE, _ as X401_PROTOCOLS, _C as unsignedDeviceTransports, _S as previewable, _T as signRelayPayload, __ as resolveTargetUrl, _a as pubkyHomeserverOf, _b as enrollHelloFrame, _c as TYPING_RATE_LIMIT, _d as isIdentityBinding, _f as readManifest, _g as GATHER_ATTEMPTS, _h as GROUP_MEMBER_CAP, _i as strictBase64Url, _l as PUSH_PAD_BYTES, _m as parseReactionFrame, _n as MAX_GROUP_PICTURE_LENGTH, _o as RACE_RELAYED_MS, _p as recordingMime, _r as u32, _s as COMMUNITY_TOPOLOGY, _t as shortHash, _u as SERVICES_CAPABILITY, _v as isEmptyLinkPacket, _w as CHAT_RESERVE_MOST_SHARE, _x as seenEntry, _y as handoffFileMissingFrame, a as X401_DCQL_LIMITS, aC as deviceEchoFrame, aS as readAppSignature, aT as publishedNowhere, a_ as guardViewerAnswer, aa as PUBKY_PROOF_MAX_BYTES, ab as DEVICE_KINDS, ac as STATUS_TEXT_MAX, ad as IDENTITY_STATEMENT_PREFIX, af as irohRelayUrl, ag as isRatcheted, ah as statusCardBytes, ai as didWebDocumentUrl, al as WAKE_SUBJECT, am as forwardedAgain, an as validEditText, ao as HANDLED_WAIT_MS, ap as sanitizeFileName, ar as BitcoinAddressError, as as SIGNAL_REPLY_MS, at as communityHasFrame, au as parseAppFrame, av as isGlobalIpv4Host, aw as turnSequence, ax as knockSlotIdentity, ay as handoffAckFrame, b as buildX401ProofRequest, bC as webCryptoSigner, bS as canonicalJsonBytes, bT as encodeTxtPacket, b_ as viewerResponseHeaders, ba as fetchLnurlJson, bb as formatEnrollDigits, bc as TYPING_SEND_LIMIT, bd as revokesIdentity, bf as DOMAIN_FILE_MAX_BYTES, bg as OFFER_HOST_GATHER_MS, bh as MAX_GROUP_CHAIN, bi as DID_DHT_TTL, bl as checkPushEndpoint, bm as reactionEmoji, bn as groupMetaBody, bo as RTC_SIGNAL_RATE_WINDOW_MS, bp as voiceLevel, br as ATPROTO_DECLARED_SCOPE, bs as doorHubs, bt as verifyCommunityChainPaced, bu as STATUS_CARD_CAPABILITY, bv as LEGACY_SERVICES, bw as DEFAULT_RELAYS, bx as APP_BUNDLE_MAGIC, by as handoffHelloFrame, c as readX401DcqlQuery, cC as deviceKeyZ32, cS as signAppRevocation, cT as PKARR_FUTURE_SKEW_MS, c_ as HttpClient, ca as isPubkyProofFolder, cb as ENROLL_DONE, cc as liveStatus, cd as IdentityExchange, cf as relayedTransports, cg as ratchetOpen, ch as usageLeft, ci as didWebFileUrl, cl as deviceWakeRequest, cm as COMMUNITY_REACTION_FRAME, cn as mentionsBytes, co as LIVENESS_MISSED_PINGS, cp as RECORDING_TYPES, cr as decodeAnyBitcoinAddress, cs as GROUP_VERSION_HUBS, ct as communityUntaggedHash, cu as APP_RANGES_CAPABILITY, cv as pickCallCandidates, cw as turnVerifierMark, cx as linkRecords, cy as handoffAttemptSucceeded, d as newX401HolderKey, dC as deviceLinkRendezvousSeed, dS as verifyAppStatementBytes, dT as createRelayPayload, d_ as VIEWER_DROPPED_HEADERS, da as pubkyProofCapability, db as ENROLL_PROOF, dc as sameStatusState, dd as emptyIdentityLedger, df as HOLD_DATED_BACK_MS, dg as ratchetSessionOf, dh as claimedTime, di as parseDid, dl as readWake, dm as REACTED_FRAME, dn as wireMentions, do as PAIRED_FRAME_TOO_LARGE, dp as baseMime, dr as decodeWitness, ds as mayBeHub, dt as encodeCommunityLink, du as EDIT_CAPABILITY, dv as waitForIceGathering, dw as ANSWER_READ_SPACING_MS, dx as mergeContactKnocks, dy as handoffContext, eC as DEVICE_CAPABILITIES, eE as toBase64Url, eS as isAppRef, eT as DiscoveryBudgetError, e_ as unusedInviteWait, ea as sparkAddressKind, eb as setAckFrame, ec as STATUS_FRAME, ed as IDENTITY_MAX_VALIDITY, ef as TRANSPORTS, eg as RATCHET_HEADER_BYTES, eh as cardUrl, ei as checkDidJws, el as WAKE_ONLINE_BATCH_MS, em as linksIn, en as carryMentions, eo as DEMOTE_MS, ep as readDhtFile, er as bip322MessageHash, es as SIGNALS_PER_MINUTE, et as COMMUNITY_PROFILE, eu as appDataFrame, ev as contactRtcConfig, ew as turnKeys, ex as STAMP_BITS_MIN, ey as HANDOFF_VERSION, f as readX401SdJwtVc, fC as deviceLinkSealKey, fS as IMAGE_LIMITS, fT as measureRecords, f_ as VIEWER_SERVICE_CSP, fa as pubkyProofFile, fb as enrollCancelFrame, fc as sanitizeStatusText, fd as identityPresentationBytes, ff as HOLD_LIMITS, fg as ratchetUnknownSession, fh as heardTime, fi as parseDidDocument, fl as readWakePayload, fm as REACTION_FRAME, fn as GROUP_META_PAST, fo as PAIRING_ATTEMPT_MS, fp as downsamplePeaks, fr as encodeTx, fs as meshHubs, ft as leaveStands, fu as FILES_BINARY_CAPABILITY, fv as LABEL, fw as AWAITED_READS, fx as openRequest, fy as handoffContextProof, g as X401_LIMITS, gC as signDeviceTransports, gS as parseImageMeta, gT as readOwnRelayPayload, g_ as relativizeLocation, ga as homeserverWebEndpoint, gb as enrollGrantFrame, gc as TYPING_KINDS, gd as identityStatementText, gf as newMailbox, gg as DataLink, gh as GROUP_ID, gi as staticDidDocument, gl as wakeRequest, gm as parseReactedFrame, gn as MAX_GROUP_NAME_LENGTH, go as RACE_DIRECT_MS, gp as parseVoiceMeta, gr as txHash, gs as wireHubPolicy, gt as rosterHash, gu as REACTIONS_CAPABILITY, gv as emptyLinkRecords, gw as CHAT_RESERVE, gx as requestRecords, gy as handoffEphemeral, h as X401_HEADERS, hC as newDeviceSetSecret, hS as isImageMime, hT as parseRelayPayload, h_ as parseLocalTarget, ha as encodeSvcbPacket, hb as enrollDoneFrame, hc as TYPING_FRAME, hd as identityStatement, hf as isHoldUrl, hg as DATA_SETTLE_MS, hh as GROUP_ADMIN_OFF_ERROR, hi as signingKeys, hl as wakePayload, hm as nextReactionNumber, hn as MAX_GROUP_NAME_BYTES, ho as RACE_ANSWERED_MS, hp as isPlayableAudioType, hr as sha256d, hs as pickMeshHubs, ht as leftStatement, hu as PIN_CAPABILITY, hv as buildLinkRecords, hw as BACKGROUND_WRITES_SHARE, hx as requestPlaintextBytes, hy as handoffDoneFrame, i as x401ApprovalDigest, iC as HANDOFF_CAPABILITY, iS as readAppRevocations, iT as isDiscoveryBudgetError, i_ as allowingViewerGuard, ia as isBitcoinAddress, ib as verifySetUpdate, ic as STATUS_SEND_INTERVAL_MS, id as IDENTITY_REVOCATION_LABEL, if as irohDescriptor, ig as emptyRatchetState, ih as sameButtonText, ii as didSignedMessages, il as WAKE_RETRY_MS, im as FORWARD_LIMITS, in as parseCommunityEdit, io as GhostLink, ip as safeBlobType, ir as verifyBip322, is as SIGNAL_PROVEN_MS, it as communityGroupId, iu as isChatAppId, iv as isCandidateAddress, iw as turnReleaseMessage, ix as knockHolds, iy as filePartName, j as readX401ProofResult, jC as TURN_LABEL, jS as deviceInviteJoinerKeyZ32, jT as generateEncryptionKey, j_ as encodeChunk, ja as ENDPOINT, jb as endedRequests, jc as typingKindOf, jd as emptyProofLedger, jf as isPublicAddress, jg as DEPARTED_READ_MS, jh as rosterHas, ji as openDidDhtPayload, jl as AppRanges, jm as pairedReplyAuthor, jn as parseGroupMetaFrame, jo as publishFailure, jp as EDIT_BUFFER_MS, jr as shortAtprotoDid, js as readBeaconHead, jt as mergeKnocks, ju as CAPS_ISSUED_BACK_MS, jv as HANDOFF_ACK, jw as RELAY_REQUESTS_PER_MINUTE, jx as buildAppBundle, jy as isHandoffPartName, k as readX401ProofResponse, kC as TOMBSTONE_TURN, kS as DEVICE_INVITE_OWN_DEVICE, kT as decrypt, k_ as decodeChunk, ka as decodeBolt11, kb as REOPEN_BELOW, kc as typingActivity, kd as STORAGE_LIFETIME, kf as domainWellKnownFile, kg as AWAITING_PEER_MS, kh as rememberAlone, ki as encodeDidDhtPacket, kl as APP_RANGE_FRAMES, km as REPLY_LIMITS, kn as openGroupMeta, ko as pairedMessageFrame, kp as EDITED_FRAME, kr as normalizeAtprotoHandle, ks as rankHubs, kt as knockIdentity, ku as SESSION_FRAME_MAX, kv as servicesToWire, kw as HEDGE_MS, kx as appViewOf, ky as handoffVerifiedMessage, l as x401VpToken, lC as deviceLinkPairing, lS as verifyAppRevocation, lT as PacketTooLargeError, l_ as HttpHost, la as newPubkyProofFolder, lb as ENROLL_GRANT, lc as parseStatusFrame, ld as boundIdentityDisplay, lf as transportOrder, lg as ratchetRoot, lh as MESSAGE_CLOCK_SKEW_MS, li as didWebHost, ll as newWakeToken, lm as GROUP_REACTION_FRAME, ln as mentionsMember, lo as LIVENESS_PING_MS, lp as VOICE_LIMITS, lr as decodeBitcoinAddress, ls as MESH_HUBS, lt as decodeCommunityLink, lu as BUTTONS_CAPABILITY, lv as sdpHasCandidates, lw as ANSWER_READ_ALLOWANCE, lx as makeStamp, ly as handoffBusyFrame, m as x401HolderJwk, mC as devicePingFrame, mS as imageSize, mT as openRelayPayload, m_ as formatLocalTarget, ma as decodeSvcbRecords, mb as enrollDigits, mc as statusState, md as identityRevocationValue, mf as HoldRefusedError, mg as CONNECT_TIMEOUT_MS, mh as shownTime, mi as parseDidSignaturePaste, ml as wakeFrame, mm as ReactionWindow, mn as MAX_GROUP_META_BODY, mo as PONG_WAIT_MS, mp as formatVoiceDuration, mr as hash160, ms as parseHubPolicy, mt as leaveStatement3, mu as KNOWN_SESSION_CAPABILITIES, mv as RECORD_TTL, mw as BACKGROUND_WHILE_SIGNALING, mx as readLinkRecord, my as handoffDigest, n as X401_RESPONSE_MODES, nC as DEVICE_PING_FRAME, nE as utf8Decode, nS as readAppRevocation, nT as budgetRetryMs, n_ as VIEWER_GUARD_HASH, na as sparkNetworkOf, nb as setUpdateMessage, nc as STATUS_RATE_LIMIT, nd as IDENTITY_PROVIDER_ID, nf as checkedDescriptors, ng as RATCHET_OVERHEAD, nh as readStatusCard, ni as didGhostlyServiceEntry, nl as WAKE_ONLINE_INTERVAL_MS, nm as previewImageSize, nn as communityMessageAuthor, no as EARLY_DIAL_JOIN_MS, np as PREVIEWABLE_IMAGE, nr as bip322ToSpend, ns as SIGNAL_FRESH_MS, nt as GROUP_READ_NOTE_COMMUNITY, nu as chatAppId, nv as extractParamsFromSdp, nw as turnPacket, nx as contactAskerHolds, ny as NO_ATTEMPTS, o as matchX401Dcql, oC as deviceEchoNonce, oS as setAppSignatureFastPath, oT as withRequestOptions, o_ as viewerGuardOffset, oa as PUBKY_PROOF_ROOT, ob as ENROLL_CANCEL, oc as StatusReceiver, od as IDENTITY_SUBJECT, of as rankTransports, og as ratchetHeard, oh as statusCardText, oi as didWebFile, ol as WAKE_TTL_SECONDS, om as forwardedMany, on as MENTION_EVERYONE, oo as INVITER_DIAL_GRACE_MS, op as sanitizeMime, or as ByteReader, os as groupSignalFrame, ot as communityMessageId, ou as readAppFrame, ov as keepsToRelays, ow as turnSignedMessage, ox as knockSlotOf, oy as handoffAttemptAllowed, p as sameX401HolderJwk, pC as deviceLinkSecret, pS as exifOrientation, pT as newerPacket, p_ as VIEWER_SERVICE_CSP_RELAY_ONLY, pa as pubkyProofPath, pb as enrollCancelReason, pc as statusFrame, pd as identityRefusal, pf as HoldKeys, pg as ANSWER_REFUSED_REDIALS, ph as receivedTimestamp, pi as parseDidJws, pl as relayRequest, pm as REACTION_LIMITS, pn as GROUP_META_PAST_CHARS, po as PAIRING_RETRY_MS, pp as fileMessageText, pr as encodeWitness, ps as meshRendezvous, pt as leaveStatement, pu as FILES_CAPABILITY, pv as MAX_MSGS_PAYLOAD_B64, pw as BACKGROUND_REQUESTS_PER_MINUTE, px as readKnockSlot, py as handoffDataFrame, q as signAppStore, qC as readTurnBody, qS as inviteOwnership, qT as concatBytes, q_ as QUICK_REDIAL_MS, qa as ANSWERS_REFUSED_PAUSES, qb as REQUEST_LABEL, qc as DEVICE_WAKE_TTL_SECONDS, qd as ringEvidence, qf as DhtDelivery, qg as TRANSPORTS_GONE_MS, qh as sealPair, qi as isWalletNetwork, ql as APP_RATE_WINDOW_MS, qm as appCardId, qn as sshSignCommand, qo as readGroupHave, qp as validRemovalNumber, qr as DID_FILE_MAX_BYTES, qs as encodeFileData, qt as asWritten, qu as IDENTITY_CLOCK_SKEW, qv as HANDOFF_PAKE, qw as setLinkTraceSink, qx as appRefPublisher, qy as sameDigest, r as readX401OpenId4VpRequest, rC as ENROLL_CAPABILITY, rE as utf8Encode, rS as readAppRevocationShape, rT as heldBackError, r_ as VIEWER_GUARD_SCRIPT, ra as BITCOIN_NETWORKS, rb as signTombstone, rc as STATUS_RATE_WINDOW_MS, rd as IDENTITY_REUSE_CHECK_S, rf as dialableIrohRelay, rg as RatchetBox, rh as removedCardText, ri as didJwsAlg, rl as WAKE_ONLINE_TTL_SECONDS, rm as sanitizePreviewImage, rn as meshMessageRef, ro as FIRST_PAIRING_PACE_MS, rp as formatFileSize, rr as decodeBase64, rs as SIGNAL_HOLD_MS, rt as communityCommitHash, ru as isAppVersion, rv as heardCallSignal, rw as turnPayloadSequence, rx as contactDay, ry as filePartDigest, s as presentX401SdJwtVc, sC as deviceFrameCapability, sS as signAppObject, sT as MAX_DNS_PACKET_BYTES, s_ as GhostlyHttpError, sa as isPubkyKey, sb as ENROLL_CANCEL_REASONS, sc as StatusSender, sd as IdentityCheckUnavailable, sf as relayUrl, sg as ratchetOn, sh as taskProgress, si as didWebFileNames, sl as WakeLimiter, sm as readForwarded, sn as MENTION_LIMITS, so as INVITE_TAKEN, sp as PLAYABLE_AUDIO, sr as compactSize, ss as readGroupSignal, st as communityRoster, su as APPS_CAPABILITY, sv as parseCallSignal, sw as turnStatedVerifier, sx as knockSlotRecords, sy as handoffAttemptFailed, t as X401_REQUEST_LIMITS, tC as DEVICE_ECHO_FRAME, tE as toZ32, tS as isAppSignature, tT as PublishFailedError, t_ as VIEWER_GUARD_CSP, ta as sparkInvoiceDetails, tb as setUpdateFrame, tc as STATUS_IDLE_AFTER_MS, td as IDENTITY_PROOF_CAPABILITY, tf as automaticTransport, tg as RATCHET_KEEP_MS, th as checkStatusCard, ti as checkDidSignature, tl as WAKE_ONLINE_DELAY_MS, tm as parseLinkPreview, tn as communityEditFrame, to as DHT_PIN_GRACE_MS, tp as FileTransfers, tr as bip322ToSign, ts as SIGNAL_CARRIERS, tt as CommunitySession, tu as appOpenFrame, tv as decompressSdp, tw as turnName, tx as contactAskerFrame, ty as HANDOFF_WINDOW, u as X401_CREDENTIAL_LIMITS, uC as deviceLinkParams, uS as verifyAppSignature, uT as RELAY_PAYLOAD_MAX_BYTES, u_ as VIEWER_DROPPED_DIRECTIVES, ua as normalizePubkyKey, ub as ENROLL_HELLO, uc as personStatus, ud as boundVerifiedIdentity, uf as HOLD_CAPABILITY, ug as ratchetSeal, uh as arrivalKey, ui as normalizeDid, ul as parseWakeFrame, um as QUICK_REACTIONS, un as validMentions, uo as MAX_PAIRED_MESSAGE_FRAME, up as VOICE_METER, ur as decodeTx, us as NO_HUB_POLICY, ut as derivedSecret, uu as CALLS_CAPABILITY, uv as signalHasVideo, uw as ANSWER_READ_FIRST_MS, ux as makeStampPaced, uy as handoffCancelFrame, v as X401_SCHEME, vC as verifyDeviceTransports, vS as readImageMeta, vT as decodeDnsAnswers, v_ as sanitizeRequestHeaders, va as LIGHTNING_DESTINATION_PATTERN, vb as enrollMessage, vc as TYPING_RATE_WINDOW_MS, vd as newIdentityBinding, vf as DNS_LABEL, vg as GATHER_STALL_MS, vh as GROUP_VERSION_LARGE, vi as DID_DHT_MAX_PAYLOAD, vl as PUSH_SERVICE_HOSTS, vm as queueReaction, vn as encodeGroupMetaBody, vo as REDESCRIBED_GRACE_MS, vp as voiceDownloadName, vr as u64, vs as beaconKeys, vt as signCommunity, vu as SESSION_CAPABILITIES_FRAME, vv as parseLinkRecords, vw as CHAT_RESERVE_PER_CHAT, vx as stampHolds, vy as handoffFileRequestFrame, w as decodeX401Header, wC as TURN_VISIBLE_MS, wS as createContactLink, wT as identityFromSeed, w_ as CHUNK_FLAG_END, wa as parseLightningDestination, wb as FLOOD_PER_DAY, wc as TypingSender, wd as applyIdentityEvent, wf as NIP05_PATH, wg as DIRECT_OWN_ATTEMPTS, wh as SAID_AGAIN, wi as didDhtDocument, wl as pushRequest, wm as readReaction, wn as groupMetaTag, wo as UNPROVEN_AUTH_MS, wp as VIDEO_LIMITS, wr as atprotoDidMethod, ws as lobbyRecords, wt as MAX_KNOCKS, wu as WAKE_SESSION_CAPABILITY, wv as encodeServices, ww as GROUP_BURST_ONE_LINK, wx as APP_ICON_PATH, wy as handoffReleaseFrame, x as buildX401ProofResult, xC as TURN_PUT_WINDOW_MS, xS as readCanonicalJson, xT as readDnsName, x_ as viewerServicePolicy, xa as findLightningDestination, xb as readEnrollGrant, xc as TYPING_STATUS_MAX, xd as signIdentityPresentation, xf as DOMAIN_MAX_RECORDS, xg as REANSWERS, xh as MAX_GROUP_MEMBERS, xi as DID_DHT_VERSION, xl as decryptPushPayload, xm as reactionFrame, xn as groupMetaChange, xo as RTC_SIGNAL_RECEIVE_LIMIT, xp as voiceLevelsOf, xr as ATPROTO_FULL_SCOPE, xs as freshHubs, xt as verifyCommunityCommit, xu as SessionCapabilities, xv as MAX_SERVICES, xw as DEPARTED_READS, xx as APP_CLIENTS, xy as handoffManifestFrames, y as X401_VERSION, yC as seedSigner, yS as canonicalJson, yT as decodeTxtPacket, y_ as sanitizeResponseHeaders, ya as LNURL_LIMITS, yb as enrollProofFrame, yc as TYPING_REFRESH_MS, yd as receivedIdentityStatus, yf as DNS_TYPE, yg as LATE_ANSWER_MS, yh as LEGACY_GROUP_MEMBERS, yi as DID_DHT_PREFIX, yl as WebPushError, ym as reactedFrame, yn as groupDisplayName, yo as RESUME_WAIT_MS, yp as voiceFileName, yr as varBytes, ys as beaconRecords, yt as verifyCommunityChain, yu as STATUS_CAPABILITY, yv as HTTP_SERVICE_PROTO, yw as CHAT_WATCH_SHARE, yx as APP_BUNDLE_LIMITS, yy as handoffHaveFrames, z as planAppUpdate, zC as TURN_SLOTS, zS as INVITE_VERSION, zT as dropLoneJoiners, z_ as buildDataSdp, za as VIDEO_METADATA_LIMITS, zb as CONTACT_RECORD_TTL, zc as nextPinNumber, zd as storageProofBody, zf as validDomainRecord, zg as OFFER_LOOK_MS, zh as confirmationTag, zi as SEPOLIA_TEST_USDT_FAUCET, zl as encodeAppRangeData, zm as ITEM_STATES, zn as SSH_KEY_TYPES, zo as GROUP_HAVE_FRAME, zp as RateWindow, zr as parseAtprotoCar, zs as PairedCalls, zt as groupWakeFrame, zu as DHT_TEXT_CAPABILITY, zv as HANDOFF_FILE_MISSING, zw as TURN_SOURCE_TIMEOUT_MS, zx as readAppBundleAsync, zy as readHandoffFileFrame } from "./src-i6IUh-ng.js";
1
+ import { $ as COMMUNITY_LIMITS, $C as readTurnBody, $S as inviteOwnership, $T as concatBytes, $_ as QUICK_REDIAL_MS, $a as ANSWERS_REFUSED_PAUSE_MS, $b as REQUEST_LABEL, $c as WAKE_CALL_INTERVAL_MS, $d as validRingKey, $f as LIVE_POLL_MS, $g as UNUSED_INVITE_READS_PER_MINUTE, $h as sealSecret, $i as isSparkAddress, $l as APP_RESUME_GRACE_MS, $m as appCardUrl, $n as MessageRefusal, $o as readGroupWant, $p as LINK_MAX_CHARS, $r as DidError, $s as refusalText, $t as GROUP_EDIT_TEXT_BYTES, $u as IDENTITY_FRAME_LIMIT, $v as HANDOFF_PAKE, $w as setLinkTraceSink, $x as appRefPublisher, $y as sameDigest, A as readX401ProofResponseHeader, AC as TURN_VISIBLE_MS, AS as createContactLink, AT as identityFromSeed, A_ as CHUNK_FLAG_END, Aa as findBolt11, Ab as FLOOD_PER_DAY, Ac as parseTypingActivity, Ad as lastSharedWithMe, Af as WELL_KNOWN_PATH, Ag as DIRECT_PEERS, Ah as commitHash, Ai as jwkThumbprint, Al as vapidAuthorization, Am as validReactionNumber, An as parseGroupMetaBody, Ao as WAKE_ANSWER_GRACE_MS, Ap as formatVideoDuration, Ar as parseAtprotoDidDocument, As as mergeBeacon, At as knockRecords, Au as parseSessionCapabilities, Av as encodeServices, Aw as GROUP_BURST_ONE_LINK, Ax as APP_ICON_PATH, Ay as handoffReleaseFrame, B as APP_STORE_KINDS, BC as TURN_NAME_BYTES, BS as readDeviceInvite, BT as MAX_AVATAR_LENGTH, B_ as wrapDataChannel, Ba as audioMetadataPatches, Bb as planKnocks, Bc as PIN_CLOCK_SKEW_MS, Bd as proofCapability, Bf as recordsFromTxt, Bg as IDLE_THRESHOLD, Bh as verifyCommit, Bi as TEST_USDT_FAUCET_AMOUNT, Bl as appRangeEndFrame, Bm as ACTIVE_TASK_STATUSES, Bn as SSH_PUBLIC_KEY_MAX, Bo as engineText, Bp as EDIT_SEND_LIMIT, Br as parseAtprotoDidKey, Bs as CALL_RATE_WINDOW_MS, Bt as groupWakes, Bu as CAPS_REFRESH_MS, Bv as HANDOFF_BUSY_REASONS, Bw as RelaysFailedError, Bx as isAppLicense, By as readHandoffAck, C as buildX401TokenObject, CC as unsignedDeviceTransports, CS as previewable, CT as signRelayPayload, C_ as resolveTargetUrl, Ca as parseInvoiceCallback, Cb as enrollHelloFrame, Cc as TYPING_RATE_WINDOW_MS, Cd as newIdentityBinding, Cf as DNS_LABEL, Cg as GATHER_STALL_MS, Ch as GROUP_VERSION_LARGE, Ci as decodeDidDhtPacket, Cl as PUSH_SERVICE_HOSTS, Cm as queueReaction, Cn as groupMetaPicture, Co as REDESCRIBED_GRACE_MS, Cp as voiceDownloadName, Cr as ATPROTO_PROOF_SCOPE, Cs as beaconKeys, Ct as KNOCK_TTL_MS, Cu as SESSION_CAPABILITIES_FRAME, Cv as isEmptyLinkPacket, Cw as CHAT_RESERVE_MOST_SHARE, Cx as seenEntry, Cy as handoffFileMissingFrame, D as readX401ProofRequest, DC as TURN_PUT_WINDOW_MS, DS as readCanonicalJson, DT as readDnsName, D_ as viewerServicePolicy, Da as resolveLightningDestination, Db as readEnrollGrant, Dc as TYPING_TIMEOUT_MS, Dd as verifyIdentityPresentation, Df as DOMAIN_METHODS, Dg as STALLED_EVIDENCE_MS, Dh as MEMBER_KEY, Di as didDhtRecords, Dl as encryptPushPayload, Dm as reactionIsNewer, Dn as keepPastGroupMeta, Do as RTC_UNSTARTED_MS, Dp as voicePeaksOf, Dr as checkAtprotoProofRecord, Ds as hubRank, Dt as entryParams, Du as TYPING_CAPABILITY, Dv as MAX_SERVICES, Dw as DEPARTED_READS, Dx as APP_CLIENTS, Dy as handoffManifestFrames, E as isX401Protocol, EC as webCryptoSigner, ES as canonicalJsonBytes, ET as encodeTxtPacket, E_ as viewerResponseHeaders, Ea as requestLnurlInvoice, Eb as formatEnrollDigits, Ec as TYPING_STATUS_MAX, Ed as signIdentityPresentation, Ef as DOMAIN_MAX_RECORDS, Eg as REANSWERS, Eh as MAX_GROUP_MEMBERS, Ei as didDhtKey, El as decryptPushPayload, Em as reactionFrame, En as groupName, Eo as RTC_SIGNAL_RECEIVE_LIMIT, Ep as voiceLevelsOf, Er as atprotoProofRkey, Es as freshHubs, Et as encodeGroupEntryLink, Eu as SessionCapabilities, Ev as LEGACY_SERVICES, Ew as DEFAULT_RELAYS, Ex as APP_BUNDLE_MAGIC, Ey as handoffHelloFrame, F as appRevocationFor, FC as TOMBSTONE_TURN, FS as DEVICE_INVITE_OWN_DEVICE, FT as decrypt, F_ as decodeChunk, Fa as isFederationId, Fb as REOPEN_BELOW, Fc as typingFrame, Fd as STORAGE_ROOT, Ff as encodeDnsQuery, Fg as DAEMON_WATCH_PEER_IDLE_MS, Fh as rosterAdmin, Fi as EVM_TEST_CHAINS, Fl as APP_RANGE_LIMITS, Fm as groupReplyAuthor, Fn as verifyGroupMetaSignature, Fo as parsePaymentNetworks, Fp as EDIT_BUFFER_MAX, Fr as decodeAtprotoCommit, Fs as readBeacon, Ft as GROUP_WAKE_GROUP_WINDOW_MS, Fu as SESSION_RECEIVE_PENDING, Fv as servicesToWire, Fw as HEDGE_MS, Fx as appViewOf, Fy as handoffVerifiedMessage, G as readAppStore, GC as TURN_SLOTS, GS as INVITE_VERSION, GT as dropLoneJoiners, G_ as buildDataSdp, Ga as videoMetadataPatches, Gb as CONTACT_RECORD_TTL, Gc as parsePinFrame, Gd as storageProofPath, Gf as wellKnownUrl, Gg as OFFER_STEP_MAX, Gh as decryptText, Gi as assertWholeSats, Gl as isServeId, Gm as PR_CHECKS, Gn as sshFingerprint, Go as GROUP_VERSION_FILES, Gp as dhtEditId, Gr as verifyAtprotoSignature, Gs as parsePairedCallFrame, Gt as GROUP_READ_NOTE, Gu as capsDescriptors, Gv as HANDOFF_FILE_MISSING, Gw as TURN_SOURCE_TIMEOUT_MS, Gx as readAppBundleAsync, Gy as readHandoffFileFrame, H as checkAppListing, HC as TURN_REV_LIMIT, HS as INVITE_HRP, HT as jpegSize, H_ as DATA_CHANNEL_LABEL, Ha as NO_VIDEO_METADATA, Hb as takeRequest, Hc as PIN_LIMITS, Hd as proofStatement, Hf as recordsName, Hg as MAX_DHT_TEXT_BYTES, Hh as GROUP_PROFILE, Hi as WALLET_NETWORKS, Hl as appRangeGetFrame, Hm as BUTTON_STYLES, Hn as parseSshPublicKey, Ho as PairingTracker, Hp as MAX_REMOVAL_NUMBER, Hr as readAtprotoCid, Hs as MAX_PAIRED_CALL_SIGNAL, Ht as parseGroupWakeFrame, Hu as CapsKeys, Hv as HANDOFF_CANCEL_REASONS, Hw as SIGNALING_WINDOW_MS, Hx as isAppUrl, Hy as readHandoffCancel, I as appStoreDecision, IC as TURN_BODY_BYTES, IS as createDeviceInvite, IT as encrypt, I_ as decodeControl, Ia as parseCashuRequestPayload, Ib as clearMissed, Ic as typingKindOf, Id as emptyProofLedger, If as isPublicAddress, Ig as DEPARTED_READ_MS, Ih as rosterHas, Ii as ONCHAIN_PROVIDER, Il as AppRanges, Im as pairedReplyAuthor, In as wrapGroupMeta, Io as publishFailure, Ip as EDIT_BUFFER_MS, Ir as decodeDagCbor, Is as readBeaconHead, It as GROUP_WAKE_MEMBER_INTERVAL_MS, Iu as CAPS_ISSUED_BACK_MS, Iv as viewerTag, Iw as PREVIOUS_DEFAULT_RELAYS, Ix as assembleAppBundle, Iy as handoffVersions, J as GROUP_TYPING_FRAME, JC as TurnRecordError, JS as createLink, JT as sanitizeNick, J_ as parseRtcSignal, Ja as PICTURE_METADATA_LIMITS, Jb as KNOCK_SLOT_LABEL, Jc as pinIsNewer, Jd as verifyPeerProof, Jf as DHT_FILE_TOO_LARGE, Jg as RELAY_POLL_INTERVALS, Jh as epochKeys, Ji as parsePaymentAmount, Jl as APP_DATA_MAX_BYTES, Jm as ROUTINE_STATES, Jn as verifySshSignature, Jo as fetchesByItself, Jp as parseEditFrame, Jr as DID_GHOSTLY_SERVICE, Js as FILE_FRAMES, Jt as chainPieces, Ju as encodePacketTransports, Jv as HANDOFF_HELLO, Jw as WRITE_FIRST_MS, Jx as APP_NAME, Jy as readHandoffManifest, K as readAppStoreSteps, KC as TURN_TTL, KS as OwnInviteError, KT as hasVisible, K_ as extractRtcParams, Ka as withoutVideoMetadata, Kb as ContactRequestError, Kc as parsePinnedFrame, Kd as validExternalKey, Kf as ACTIVE_DHT_POLL_MS, Kg as PRESENCE_HEARTBEAT, Kh as edgeParams, Ki as formatPaymentAmount, Kl as parseAppRangeFrame, Km as PR_STATES, Kn as sshKeyDigestHex, Ko as GROUP_WANT_FRAME, Kp as editFrame, Kr as DID_DOCUMENT_MAX_BYTES, Ks as ChatFiles, Kt as GroupSession, Ku as dialDescriptors, Kv as HANDOFF_FILE_REQUEST, Kw as WATCH_SHARE, Kx as sha256Paced, Ky as readHandoffHave, L as appUpdateDecision, LC as TURN_LABEL, LS as deviceInviteJoinerKeyZ32, LT as generateEncryptionKey, L_ as encodeChunk, La as parseFedimintRequestPayload, Lb as endedRequests, Lc as COMMUNITY_PIN_FRAME, Ld as importedProof, Lf as nip05RootKey, Lg as DHT_POLL_INTERVALS, Lh as signCommit, Li as PaymentPreflightError, Ll as appRangeCancelFrame, Lm as readReply, Ln as SSHSIG_MAX_ARMOR, Lo as ENGINE_ERRORS, Lp as EDIT_FRAME, Lr as encodeDagCbor, Ls as readLobby, Lt as GROUP_WAKE_RECEIVE_LIMIT, Lu as CAPS_LABEL, Lv as HANDOFF_ACK, Lw as RELAY_REQUESTS_PER_MINUTE, Lx as buildAppBundle, Ly as isHandoffPartName, M as readX401ProofResultHeader, MC as keptAtEqualSequence, MS as readContactLink, MT as publicKeyFromZ32, M_ as LIMITS, Ma as cashuRequestPayload, Mb as MAX_MISSED, Mc as plainStatusLine, Md as PROOF_CAPABILITY, Mf as dnsProofName, Mg as directBlocked, Mh as expectedRoster, Mi as resolveDidDht, Ml as APP_RANGE_DATA_KIND, Mm as PAIRED_REPLY_AUTHORS, Mn as parseGroupMetaStatement, Mo as pairedEditFits, Mp as isVideoMime, Mr as AtprotoCid, Ms as newerHead, Mt as readKnocks, Mu as PAIRED_PROFILE, Mv as isViewerTag, Mw as GROUP_RATION_WINDOW_MS, Mx as APP_SCREENSHOTS_DIR, My as handoffRetryAfter, N as x401AnswerableRequests, NC as turnPutSummary, NS as DEVICE_INVITE_BYTES, NT as sign, N_ as MAX_CHUNK_PAYLOAD_BYTES, Na as fedimintRequestPayload, Nb as MAX_WAITING, Nc as sanitizeTypingStatus, Nd as PeerProofs, Nf as domainTxtRecord, Ng as symmetricNat, Nh as parseGroupCommit, Ni as signDidDhtPacket, Nl as APP_RANGE_ERRORS, Nm as REPLY_ID, Nn as parseGroupMetaTag, No as pairedMessageFits, Np as parseVideoMeta, Nr as AtprotoProofError, Ns as pickHubs, Nt as GROUP_WAKE_FRAME, Nu as PairedSession, Nv as serviceIdFromName, Nw as GROUP_SIGNALING_ALLOWANCE_SHARE, Nx as APP_VIEWS, Ny as handoffStreamKey, O as readX401ProofRequestHeader, OC as TURN_RAISE_READ_TIMEOUT_MS, OS as CONTACT_LINK_BYTES, OT as IDENTITY_MEMO_SIZE, O_ as webLocalFetch, Oa as BOLT11_PATTERN, Ob as readEnrollHello, Oc as TypingReceiver, Od as IDENTITY_TIMELINE_MAX, Of as DOMAIN_TXT_MAX_BYTES, Og as DIRECT_EVIDENCE_MS, Oh as OWN_FRAME_LIMIT, Oi as encodeDidDhtDeactivated, Ol as generateVapidKeys, Om as readDhtReactions, On as nextGroupMetaRevision, Oo as SWITCH_RETIRE_MS, Op as PLAYABLE_VIDEO, Or as isAtprotoDid, Os as lobbyKeys, Ot as groupEntryUrl, Ou as UPGRADE_CAPABILITY, Ov as SERVICES_VERSION, Ow as FRESH_READ_MS, Ox as APP_CLIENT_NAME, Oy as handoffOfferFrame, P as addedAppPermissions, PC as TOMBSTONE_SEQUENCE, PS as DEVICE_INVITE_LIFETIME_S, PT as verify, P_ as PROTOCOL_VERSION, Pa as findEndpoint, Pb as NEW_PER_HOUR, Pc as typingActivity, Pd as STORAGE_LIFETIME, Pf as domainWellKnownFile, Pg as AWAITING_PEER_MS, Ph as rememberAlone, Pi as ETHEREUM_USDT, Pl as APP_RANGE_FRAMES, Pm as REPLY_LIMITS, Pn as signGroupMeta, Po as pairedMessageFrame, Pp as EDITED_FRAME, Pr as atprotoCidFor, Ps as rankHubs, Pt as GROUP_WAKE_GROUP_LIMIT, Pu as SESSION_FRAME_MAX, Pv as servicesFromWire, Pw as HEDGE_MISSING_MS, Px as appDigest, Py as handoffVerifiedFrame, Q as sealGroupTyping, QC as openTurnValue, QS as inviteLink, QT as bytesEqual, Q_ as PAIRED_CALL_CANDIDATES, Qa as ANSWERS_REFUSED_PAUSES, Qb as REQUEST_CLOCK_SKEW_MS, Qc as DEVICE_WAKE_TTL_SECONDS, Qd as ringEvidence, Qf as DhtDelivery, Qg as TRANSPORTS_GONE_MS, Qh as sealPair, Qi as SPARK_PROVIDER, Ql as APP_RATE_WINDOW_MS, Qm as appCardId, Qn as BIP322_REVISION, Qo as readGroupHave, Qp as validRemovalNumber, Qr as DID_METHODS, Qs as encodeFileData, Qt as GROUP_EDIT_FRAME, Qu as IDENTITY_CLOCK_SKEW, Qv as HANDOFF_OFFER, Qw as relayUrlProblem, Qx as appRef, Qy as readHandoffVerified, R as checkAppBeforeRun, RC as TURN_LAST_SEQUENCE, RS as deviceInviteJoinerParams, RT as sealedLength, R_ as encodeControl, Ra as AUDIO_METADATA_LIMITS, Rb as inboxRecord, Rc as GROUP_PIN_FRAME, Rd as isProofAdapter, Rf as normalizeDomain, Rg as EXPECT_PEER_MS, Rh as sortRoster, Ri as SEPOLIA_TEST_USDT, Rl as appRangeChunk, Rm as replySnippet, Rn as SSHSIG_NAMESPACE, Ro as EngineError, Rp as EDIT_RATE_WINDOW_MS, Rr as findInMst, Rs as shouldBeHub, Rt as GroupWakeLimiter, Ru as CAPS_LIMITS, Rv as HANDOFF_ATTEMPTS, Rw as REQUESTS_PER_MINUTE, Rx as checkAppManifest, Ry as newHandoffId, S as buildX401ResultArtifact, SC as signDeviceTransports, SS as parseImageMeta, ST as readOwnRelayPayload, S_ as relativizeLocation, Sa as invoiceCallbackUrl, Sb as enrollGrantFrame, Sc as TYPING_RATE_LIMIT, Sd as isIdentityBinding, Sf as readManifest, Sg as GATHER_ATTEMPTS, Sh as GROUP_MEMBER_CAP, Si as DidDhtError, Sl as PUSH_PAD_BYTES, Sm as parseReactionFrame, Sn as groupMetaNewer, So as RACE_RELAYED_MS, Sp as recordingMime, Sr as ATPROTO_PROOF_COLLECTION, Ss as COMMUNITY_TOPOLOGY, St as GROUP_ENTRY_PROFILE, Su as SERVICES_CAPABILITY, Sv as emptyLinkRecords, Sw as CHAT_RESERVE, Sx as requestRecords, Sy as handoffEphemeral, T as encodeX401Header, TC as seedSigner, TS as canonicalJson, TT as decodeTxtPacket, T_ as sanitizeResponseHeaders, Ta as parsePayParams, Tb as enrollProofFrame, Tc as TYPING_SEND_LIMIT, Td as revokesIdentity, Tf as DOMAIN_FILE_MAX_BYTES, Tg as OFFER_HOST_GATHER_MS, Th as MAX_GROUP_CHAIN, Ti as didDhtFromPublicKey, Tl as checkPushEndpoint, Tm as reactionEmoji, Tn as groupMetaToHand, To as RTC_SIGNAL_RATE_WINDOW_MS, Tp as voiceLevel, Tr as atprotoProofRecord, Ts as doorHubs, Tt as decodeGroupEntryLink, Tu as STATUS_CARD_CAPABILITY, Tv as HTTP_SERVICE_PROTO, Tw as CHAT_WATCH_SHARE, Tx as APP_BUNDLE_LIMITS, Ty as handoffHaveFrames, U as checkAppStoreIndex, UC as TURN_SEALED_BYTES, US as INVITE_LINK_ORIGIN, UT as sanitizeAvatar, U_ as RTC_SIGNAL_FUTURE_MS, Ua as VIDEO_METADATA_LIMITS, Ub as turnOff, Uc as mayPin, Ud as storageProof, Uf as txtValue, Ug as OFFER_FAST_MS, Uh as confirmationMatches, Ui as arkAddressPrefix, Ul as decodeAppRangeData, Um as CRON_LINE, Un as parseSshSignature, Uo as GROUP_FILE_LIMITS, Up as REMOVED_TEXT, Ur as unsignedCommitBytes, Us as PAIRED_CALL_FRAME, Ut as GROUP_LIMITS, Uu as CapsRefusedError, Uv as HANDOFF_DATA, Uw as SLOW_DEMOTE_MS, Ux as pacer, Uy as readHandoffData, V as APP_STORE_LIMITS, VC as TURN_NO_ACTIVE, VS as DEVICE_INVITE_VERSION, VT as MAX_AVATAR_SIDE, V_ as DATA_CHANNEL_ID, Va as withoutAudioMetadata, Vb as settleRequest, Vc as PIN_FRAME, Vd as proofHash, Vf as recordsFromWellKnown, Vg as LinkSession, Vh as verifyCommitSignature, Vi as USDT_PUBLIC_RPC, Vl as appRangeErrorFrame, Vm as BUTTON_ID, Vn as SshSigError, Vo as parseEngineError, Vp as MAX_EDITS_PER_MESSAGE, Vr as parseAtprotoVerificationKey, Vs as CALL_RECEIVE_LIMIT, Vt as mentionedMembers, Vu as CapsExchange, Vv as HANDOFF_CANCEL, Vw as SIGNALING_ALLOWANCE_SHARE, Vx as isAppPath, Vy as readHandoffBusy, W as readAppListing, WC as TURN_SIGNED_BYTES, WS as INVITE_MAX_LENGTH, WT as MAX_NICK_LENGTH, W_ as RTC_SIGNAL_MAX_AGE_MS, Wa as readingAhead, Wb as CONTACT_ASKER_FRAME, Wc as nextPinNumber, Wd as storageProofBody, Wf as validDomainRecord, Wg as OFFER_LOOK_MS, Wh as confirmationTag, Wi as assertTokenUnits, Wl as encodeAppRangeData, Wm as ITEM_STATES, Wn as sameSshKey, Wo as GROUP_HAVE_FRAME, Wp as RateWindow, Wr as verifyAtprotoRecordProof, Ws as PairedCalls, Wt as GROUP_REACTED_FRAME, Wu as DHT_TEXT_CAPABILITY, Wv as HANDOFF_DONE, Ww as SLOW_MS, Wx as readAppBundle, Wy as readHandoffDone, X as groupTypingEpoch, XC as firstDeviceSetSecret, XS as encodeGhostlyInvite, XT as trimEndOf, X_ as CALL_SIGNAL_FUTURE_MS, Xa as stripPictureMetadata, Xb as MAX_SEEN, Xc as pinnedFrame, Xd as ringAuthorization, Xf as DHT_TEXT_BYTES, Xg as SIGNAL_OUT_READS, Xh as openPair, Xi as walletNetworkOf, Xl as APP_PEER_OPEN_MAX, Xm as STATUS_CARD_LIMITS, Xn as legacyMessageHash, Xo as isGroupMessageId, Xp as validEditMessage, Xr as DID_JWS_MAX_LENGTH, Xs as FileUplink, Xt as groupMessageId, Xu as IDENTITY_CHALLENGE_WINDOW, Xv as HANDOFF_LIST_PER_FRAME, Xw as normalizeRelayUrl, Xx as APP_STATEMENT_LIMITS, Xy as readHandoffRelease, Y as GroupTypingBoard, YC as encodeTurnFields, YS as decodeInviteCode, YT as stripHidden, Y_ as BURST_RING_MS, Ya as isStrippedPicture, Yb as LINK_RECORD_LABEL, Yc as pinNumberHolds, Yd as RING_LIFETIME, Yf as DHT_MESSAGE_TTL, Yg as SIGNAL_DUE_READS, Yh as newEpochSecret, Yi as validatePaymentTarget, Yl as APP_FRAME, Ym as RUN_RESULTS, Yn as isLegacySignature, Yo as groupFileFallback, Yp as parseEditedFrame, Yr as DID_JWS_ALGS, Ys as FILE_LIMITS, Yt as frameBytes, Yu as parsePacketTransports, Yv as HANDOFF_LATER_BYTES, Yw as currentRelays, Yx as APP_PREFIXES, Yy as readHandoffPake, Z as openGroupTyping, ZC as nextTurnPosition, ZS as encodeInviteCode, ZT as unwrapPasted, Z_ as CALL_SIGNAL_MAX_AGE_MS, Za as withoutPictureMetadata, Zb as MAX_SLOT_KNOCKS, Zc as readPin, Zd as ringClaims, Zf as DHT_TEXT_REFUSED, Zg as STALLED_LOOK_MS, Zh as openSecret, Zi as SPARK_NETWORKS, Zl as APP_RATE_LIMIT, Zm as TASK_STATUSES, Zn as verifyBitcoinMessage, Zo as readGroupFileMeta, Zp as validEditNumber, Zr as DID_MAX_LENGTH, Zs as decodeFileData, Zt as COMMUNITY_EDIT_FRAME, Zu as IDENTITY_CHECK_UNAVAILABLE, Zv as HANDOFF_MANIFEST, Zw as readRelayBody, Zx as appFingerprint, Zy as readHandoffTurnFrame, _ as X401_PROTOCOLS, _C as deviceLinkRendezvousSeed, _S as verifyAppStatementBytes, _T as createRelayPayload, __ as VIEWER_DROPPED_HEADERS, _a as pubkyHomeserverOf, _b as ENROLL_PROOF, _c as sanitizeStatusText, _d as identityPresentationBytes, _f as HOLD_LIMITS, _g as ratchetUnknownSession, _h as heardTime, _i as strictBase64Url, _l as readWakePayload, _m as REACTION_FRAME, _n as MAX_GROUP_PICTURE_LENGTH, _o as PAIRING_ATTEMPT_MS, _p as downsamplePeaks, _r as u32, _s as meshHubs, _t as shortHash, _u as FILES_BINARY_CAPABILITY, _v as waitForIceGathering, _w as ANSWER_READ_SPACING_MS, _x as mergeContactKnocks, _y as handoffContext, a as X401_DCQL_LIMITS, aC as DEVICES_CAPABILITY, aE as toBase64, aS as isAppLine, aT as RelayBreaker, a_ as unusedInviteWait, aa as PUBKY_PROOF_MAX_BYTES, ab as readSetUpdate, ac as STATUS_FRAME, ad as IDENTITY_MAX_VALIDITY, af as TRANSPORTS, ag as RATCHET_HEADER_BYTES, ah as cardUrl, ai as didWebDocumentUrl, al as WAKE_ONLINE_BATCH_MS, am as linksIn, an as validEditText, ao as DEMOTE_MS, ap as readDhtFile, ar as BitcoinAddressError, as as SIGNALS_PER_MINUTE, at as communityHasFrame, au as appDataFrame, av as compressSdp, aw as turnInstance, ax as STAMP_BITS_MAX, ay as HANDOFF_VERIFIED, b as buildX401ProofRequest, bC as devicePingFrame, bS as imageSize, bT as openRelayPayload, b_ as formatLocalTarget, ba as fetchLnurlJson, bb as enrollDigits, bc as TYPING_FRAME, bd as identityStatement, bf as isHoldUrl, bg as DATA_SETTLE_MS, bh as GROUP_ADMIN_OFF_ERROR, bi as DID_DHT_TTL, bl as wakePayload, bm as nextReactionNumber, bn as groupMetaBody, bo as RACE_ANSWERED_MS, bp as isPlayableAudioType, br as ATPROTO_DECLARED_SCOPE, bs as pickMeshHubs, bt as verifyCommunityChainPaced, bu as PIN_CAPABILITY, bv as RECORD_TTL, bw as BACKGROUND_WHILE_SIGNALING, bx as readLinkRecord, by as handoffDigest, c as readX401DcqlQuery, cC as DEVICE_PING_FRAME, cE as utf8Decode, cS as readAppRevocation, cT as budgetRetryMs, c_ as VIEWER_GUARD_SCRIPT, ca as isPubkyProofFolder, cb as setUpdateMessage, cc as STATUS_RATE_WINDOW_MS, cd as IDENTITY_REUSE_CHECK_S, cf as dialableIrohRelay, cg as RatchetBox, ch as removedCardText, ci as didWebFileUrl, cl as WAKE_ONLINE_TTL_SECONDS, cm as sanitizePreviewImage, cn as mentionsBytes, co as FIRST_PAIRING_PACE_MS, cp as formatFileSize, cr as decodeAnyBitcoinAddress, cs as SIGNAL_HOLD_MS, ct as communityUntaggedHash, cu as isAppVersion, cv as extractParamsFromSdp, cw as turnPacket, cx as contactAskerHolds, cy as NO_ATTEMPTS, d as newX401HolderKey, dC as deviceEchoFrame, dS as readAppSignature, dT as publishedNowhere, d_ as guardViewerAnswer, da as pubkyProofCapability, db as DEVICE_KINDS, dc as StatusReceiver, dd as IDENTITY_SUBJECT, df as rankTransports, dg as ratchetHeard, dh as statusCardText, di as parseDid, dl as WAKE_TTL_SECONDS, dm as forwardedMany, dn as wireMentions, do as INVITER_DIAL_GRACE_MS, dp as sanitizeMime, dr as decodeWitness, ds as groupSignalFrame, dt as encodeCommunityLink, du as readAppFrame, dv as isGlobalIpv4Host, dw as turnSequence, dx as knockSlotIdentity, dy as handoffAckFrame, eC as inviteQrSegments, eE as fromBase64, eS as appRevocationId, eT as traceLink, e_ as UNUSED_INVITE_UPKEEP_MS, ea as sparkAddressKind, eb as sealHandoffPiece, ec as sentWhole, ed as IDENTITY_FRAME_WINDOW_MS, ef as verifyRingAuthorization, eg as sha256Hex, eh as buttonLabelClash, ei as checkDidJws, el as WAKE_CALL_TTL_SECONDS, em as LINK_PREVIEW_LIMITS, en as carryMentions, eo as BLOCKED_DIAL_WAIT_MS, ep as emptyDhtDeliveryState, er as bip322MessageHash, es as readGroupWantNo, et as COMMUNITY_PROFILE, eu as APP_SEND_LIMIT, ev as RTC_CONFIG, ew as readTurnPacket, ex as REQUEST_LIFETIME_MS, ey as HANDOFF_PIECE_BYTES, f as readX401SdJwtVc, fC as deviceEchoNonce, fS as setAppSignatureFastPath, fT as withRequestOptions, f_ as viewerGuardOffset, fa as pubkyProofFile, fb as ENROLL_CANCEL, fc as StatusSender, fd as IdentityCheckUnavailable, ff as relayUrl, fg as ratchetOn, fh as taskProgress, fi as parseDidDocument, fl as WakeLimiter, fm as readForwarded, fn as GROUP_META_PAST, fo as INVITE_TAKEN, fp as PLAYABLE_AUDIO, fr as encodeTx, fs as readGroupSignal, ft as leaveStands, fu as APPS_CAPABILITY, fv as keepsToRelays, fw as turnSignedMessage, fx as knockSlotOf, fy as handoffAttemptAllowed, g as X401_LIMITS, gC as deviceLinkParams, gS as verifyAppSignature, gT as RELAY_PAYLOAD_MAX_BYTES, g_ as VIEWER_DROPPED_DIRECTIVES, ga as homeserverWebEndpoint, gb as ENROLL_HELLO, gc as sameStatusState, gd as emptyIdentityLedger, gf as HOLD_DATED_BACK_MS, gg as ratchetSessionOf, gh as claimedTime, gi as staticDidDocument, gl as readWake, gm as REACTED_FRAME, gn as MAX_GROUP_NAME_LENGTH, go as PAIRED_FRAME_TOO_LARGE, gp as baseMime, gr as txHash, gs as mayBeHub, gt as rosterHash, gu as EDIT_CAPABILITY, gv as signalHasVideo, gw as ANSWER_READ_FIRST_MS, gx as makeStampPaced, gy as handoffCancelFrame, h as X401_HEADERS, hC as deviceLinkPairing, hS as verifyAppRevocation, hT as PacketTooLargeError, h_ as HttpHost, ha as encodeSvcbPacket, hb as ENROLL_GRANT, hc as personStatus, hd as boundVerifiedIdentity, hf as HOLD_CAPABILITY, hg as ratchetSeal, hh as arrivalKey, hi as signingKeys, hl as parseWakeFrame, hm as QUICK_REACTIONS, hn as MAX_GROUP_NAME_BYTES, ho as MAX_PAIRED_MESSAGE_FRAME, hp as VOICE_METER, hr as sha256d, hs as NO_HUB_POLICY, ht as leftStatement, hu as CALLS_CAPABILITY, hv as sdpHasCandidates, hw as ANSWER_READ_ALLOWANCE, hx as makeStamp, hy as handoffBusyFrame, i as x401ApprovalDigest, iC as readInviteCode, iE as randomBytes, iS as isAppKey, iT as BREAKER_THRESHOLD, i_ as presenceSeenAt, ia as isBitcoinAddress, ib as encodeSetSlots, ic as STATUS_AVAILABILITIES, id as IDENTITY_MAX_RECEIVED, if as RELAY_WITH_SECRETS, ig as RATCHET_CAPABILITY, ih as cardTimeUtc, ii as didSignedMessages, il as WAKE_ONLINE_BATCH, im as linkStop, in as parseCommunityEdit, io as DEMOTE_AFTER_FAILURES, ip as dhtFileId, ir as verifyBip322, is as GROUP_VERSION_SIGNALS, it as communityGroupId, iu as appDataBytes, iv as callSignalHeardAt, iw as signTurnRelease, ix as STAMP_BITS_DEFAULT, iy as HANDOFF_TIMINGS, j as readX401ProofResult, jC as classifyTurnRead, jS as encodeContactLink, jT as identityFromSeedB64, j_ as CHUNK_KIND, ja as ENDPOINT, jb as MAX_DONE, jc as parseTypingFrame, jd as PROOF_ADAPTERS, jf as decodeDnsResponse, jg as DirectPathWatch, jh as commitUntaggedHash, ji as openDidDhtPayload, jl as vapidKeysMatch, jm as wireReaction, jn as parseGroupMetaFrame, jo as WAKE_LOST_MS, jp as isPlayableVideoType, jr as shortAtprotoDid, js as mergeLobby, jt as mergeKnocks, ju as sessionCapabilitiesFrame, jv as isValidServiceId, jw as GROUP_OVER_PACE_MS, jx as APP_PERMISSIONS, jy as handoffRequestFrame, k as readX401ProofResponse, kC as TURN_SETTLE_MS, kS as CONTACT_LINK_VERSION, kT as createIdentity, k_ as withViewerPolicy, ka as decodeBolt11, kb as verifyEnrollProof, kc as TypingSender, kd as applyIdentityEvent, kf as NIP05_PATH, kg as DIRECT_OWN_ATTEMPTS, kh as SAID_AGAIN, ki as encodeDidDhtPacket, kl as pushRequest, km as readReaction, kn as openGroupMeta, ko as UNPROVEN_AUTH_MS, kp as VIDEO_LIMITS, kr as normalizeAtprotoHandle, ks as lobbyRecords, kt as knockIdentity, ku as WAKE_SESSION_CAPABILITY, kv as decodeServices, kw as GROUP_BURST_MS, kx as APP_FORBIDDEN_KEYS, ky as handoffPakeFrame, l as x401VpToken, lC as ENROLL_CAPABILITY, lE as utf8Encode, lS as readAppRevocationShape, lT as heldBackError, l_ as WEBRTC_GUARD, la as newPubkyProofFolder, lb as signTombstone, lc as STATUS_SEND_INTERVAL_MS, ld as IDENTITY_REVOCATION_LABEL, lf as irohDescriptor, lg as emptyRatchetState, lh as sameButtonText, li as didWebHost, ll as WAKE_RETRY_MS, lm as FORWARD_LIMITS, ln as mentionsMember, lo as GhostLink, lp as safeBlobType, lr as decodeBitcoinAddress, ls as SIGNAL_PROVEN_MS, lt as decodeCommunityLink, lu as isChatAppId, lv as heardCallSignal, lw as turnPayloadSequence, lx as contactDay, ly as filePartDigest, m as x401HolderJwk, mC as deviceKeyZ32, mS as signAppRevocation, mT as PKARR_FUTURE_SKEW_MS, m_ as HttpClient, ma as decodeSvcbRecords, mb as ENROLL_DONE, mc as parseStatusFrame, md as boundIdentityDisplay, mf as transportOrder, mg as ratchetRoot, mh as MESSAGE_CLOCK_SKEW_MS, mi as parseDidSignaturePaste, ml as newWakeToken, mm as GROUP_REACTION_FRAME, mn as MAX_GROUP_META_BODY, mo as LIVENESS_PING_MS, mp as VOICE_LIMITS, mr as hash160, ms as MESH_HUBS, mt as leaveStatement3, mu as BUTTONS_CAPABILITY, mv as pickCallCandidates, mw as turnVerifierMark, mx as linkRecords, my as handoffAttemptSucceeded, n as X401_RESPONSE_MODES, nC as ownInviteRefusal, nE as fromZ32, nS as checkAppRevokeStatement, nT as BREAKER_BASE_MS, n_ as WATCH_PEER_MS, na as sparkNetworkOf, nb as SET_ACK, nc as transferStalled, nd as IDENTITY_MAX_EVIDENCE, nf as AUTOMATIC_ORDER, ng as MAX_SKIP, nh as cardLine, ni as didGhostlyServiceEntry, nl as WAKE_FRAME, nm as canonicalUrl, nn as communityMessageAuthor, no as CROSSED_PROBE_MS, np as DHT_FILE_CAPABILITY, nr as bip322ToSpend, ns as CarriedTransport, nt as GROUP_READ_NOTE_COMMUNITY, nu as AppSessions, nv as buildSdpFromSignal, nw as signTurnBody, nx as REQUEST_PACKET_BYTES, ny as HANDOFF_RELEASE, o as matchX401Dcql, oC as DEVICE_CAPABILITIES, oE as toBase64Url, oS as isAppRef, oT as DiscoveryBudgetError, o_ as VIEWER_GUARD_CSP, oa as PUBKY_PROOF_ROOT, ob as setAckFrame, oc as STATUS_IDLE_AFTER_MS, od as IDENTITY_PROOF_CAPABILITY, of as automaticTransport, og as RATCHET_KEEP_MS, oh as checkStatusCard, oi as didWebFile, ol as WAKE_ONLINE_DELAY_MS, om as parseLinkPreview, on as MENTION_EVERYONE, oo as DHT_PIN_GRACE_MS, op as FileTransfers, or as ByteReader, os as SIGNAL_CARRIERS, ot as communityMessageId, ou as appOpenFrame, ov as contactRtcConfig, ow as turnKeys, ox as STAMP_BITS_MIN, oy as HANDOFF_VERSION, p as sameX401HolderJwk, pC as deviceFrameCapability, pS as signAppObject, pT as MAX_DNS_PACKET_BYTES, p_ as GhostlyHttpError, pa as pubkyProofPath, pb as ENROLL_CANCEL_REASONS, pc as liveStatus, pd as IdentityExchange, pf as relayedTransports, pg as ratchetOpen, ph as usageLeft, pi as parseDidJws, pl as deviceWakeRequest, pm as COMMUNITY_REACTION_FRAME, pn as GROUP_META_PAST_CHARS, po as LIVENESS_MISSED_PINGS, pp as RECORDING_TYPES, pr as encodeWitness, ps as GROUP_VERSION_HUBS, pt as leaveStatement, pu as APP_RANGES_CAPABILITY, pv as parseCallSignal, pw as turnStatedVerifier, px as knockSlotRecords, py as handoffAttemptFailed, q as signAppStore, qC as TURN_VERSION, qS as createChatInvite, qT as sanitizeDisplayText, q_ as offerIsFresh, qa as NO_PICTURE_METADATA, qb as KNOCK_SLOTS, qc as pinFrame, qd as verifyNostrProof, qf as DHT_FILE_REFUSED, qg as PRESENCE_WINDOW, qh as encryptText, qi as isWalletNetwork, ql as readAppRangeFrame, qm as REMOVABLE_KINDS, qn as sshSignCommand, qo as GROUP_WANT_NO_FRAME, qp as editedFrame, qr as DID_FILE_MAX_BYTES, qs as FILE_DATA_KIND, qt as asWritten, qu as emptyCapsState, qv as HANDOFF_HAVE, qw as WAY_BACK_SHARE, qx as yieldThread, qy as readHandoffHello, r as readX401OpenId4VpRequest, rC as pastedAgain, rE as isZ32Key, rS as isAppHash, rT as BREAKER_MAX_MS, r_ as countUnusedInvite, ra as BITCOIN_NETWORKS, rb as SET_UPDATE, rc as PRESENCES, rd as IDENTITY_MAX_FRAME, rf as RELAY_URL, rg as MAX_SKIPPED_KEYS, rh as cardLinkHost, ri as didJwsAlg, rl as WAKE_INTERVAL_MS, rm as linkEnd, rn as meshMessageRef, ro as CROSSED_WAIT_MS, rp as dhtFileElements, rr as decodeBase64, rs as GROUP_SIGNAL_FRAME, rt as communityCommitHash, ru as appCloseFrame, rv as callRtcConfig, rw as signTurnPacket, rx as REQUEST_TEXT_BYTES, ry as HANDOFF_REQUEST, s as presentX401SdJwtVc, sC as DEVICE_ECHO_FRAME, sE as toZ32, sS as isAppSignature, sT as PublishFailedError, s_ as VIEWER_GUARD_HASH, sa as isPubkyKey, sb as setUpdateFrame, sc as STATUS_RATE_LIMIT, sd as IDENTITY_PROVIDER_ID, sf as checkedDescriptors, sg as RATCHET_OVERHEAD, sh as readStatusCard, si as didWebFileNames, sl as WAKE_ONLINE_INTERVAL_MS, sm as previewImageSize, sn as MENTION_LIMITS, so as EARLY_DIAL_JOIN_MS, sp as PREVIEWABLE_IMAGE, sr as compactSize, ss as SIGNAL_FRESH_MS, st as communityRoster, su as chatAppId, sv as decompressSdp, sw as turnName, sx as contactAskerFrame, sy as HANDOFF_WINDOW, t as X401_REQUEST_LIMITS, tC as inviteQrText, tE as fromBase64Url, tS as appSignedBytes, tT as BREAKER_ALL_DOWN_PROBE_MS, t_ as UNUSED_INVITE_WAIT_MAX_MS, ta as sparkInvoiceDetails, tb as sortParts, tc as transferEnded, td as IDENTITY_MAX_CHECKS_PER_HOUR, tf as verifyRingEvidence, tg as FOLLOW_MS, th as cardEditNumber, ti as checkDidSignature, tl as WAKE_CALL_WAIT_MS, tm as LINK_TRAILING, tn as communityEditFrame, to as CROSSED_FRESH_MS, tp as peekDhtMailbox, tr as bip322ToSign, ts as CARRIED_DEFER_MS, tt as CommunitySession, tu as APP_VERSION_MAX, tv as answersOffer, tw as sealTurnBody, tx as REQUEST_NAME_UNITS, ty as HANDOFF_PIECE_OVERHEAD, u as X401_CREDENTIAL_LIMITS, uC as HANDOFF_CAPABILITY, uS as readAppRevocations, uT as isDiscoveryBudgetError, u_ as allowingViewerGuard, ua as normalizePubkyKey, ub as verifySetUpdate, uc as STATUS_TEXT_MAX, ud as IDENTITY_STATEMENT_PREFIX, uf as irohRelayUrl, ug as isRatcheted, uh as statusCardBytes, ui as normalizeDid, ul as WAKE_SUBJECT, um as forwardedAgain, un as validMentions, uo as HANDLED_WAIT_MS, up as sanitizeFileName, ur as decodeTx, us as SIGNAL_REPLY_MS, ut as derivedSecret, uu as parseAppFrame, uv as isCandidateAddress, uw as turnReleaseMessage, ux as knockHolds, uy as filePartName, v as X401_SCHEME, vC as deviceLinkSealKey, vS as IMAGE_LIMITS, vT as measureRecords, v_ as VIEWER_SERVICE_CSP, va as LIGHTNING_DESTINATION_PATTERN, vb as enrollCancelFrame, vc as statusFrame, vd as identityRefusal, vf as HoldKeys, vg as ANSWER_REFUSED_REDIALS, vh as receivedTimestamp, vi as DID_DHT_MAX_PAYLOAD, vl as relayRequest, vm as REACTION_LIMITS, vn as encodeGroupMetaBody, vo as PAIRING_RETRY_MS, vp as fileMessageText, vr as u64, vs as meshRendezvous, vt as signCommunity, vu as FILES_CAPABILITY, vv as LABEL, vw as AWAITED_READS, vx as openRequest, vy as handoffContextProof, w as decodeX401Header, wC as verifyDeviceTransports, wS as readImageMeta, wT as decodeDnsAnswers, w_ as sanitizeRequestHeaders, wa as parseLightningDestination, wb as enrollMessage, wc as TYPING_REFRESH_MS, wd as receivedIdentityStatus, wf as DNS_TYPE, wg as LATE_ANSWER_MS, wh as LEGACY_GROUP_MEMBERS, wi as didDhtDocument, wl as WebPushError, wm as reactedFrame, wn as groupMetaTag, wo as RESUME_WAIT_MS, wp as voiceFileName, wr as atprotoDidMethod, ws as beaconRecords, wt as MAX_KNOCKS, wu as STATUS_CAPABILITY, wv as parseLinkRecords, ww as CHAT_RESERVE_PER_CHAT, wx as stampHolds, wy as handoffFileRequestFrame, x as buildX401ProofResult, xC as newDeviceSetSecret, xS as isImageMime, xT as parseRelayPayload, x_ as parseLocalTarget, xa as findLightningDestination, xb as enrollDoneFrame, xc as TYPING_KINDS, xd as identityStatementText, xf as newMailbox, xg as DataLink, xh as GROUP_ID, xi as DID_DHT_VERSION, xl as wakeRequest, xm as parseReactedFrame, xn as groupMetaChange, xo as RACE_DIRECT_MS, xp as parseVoiceMeta, xr as ATPROTO_FULL_SCOPE, xs as wireHubPolicy, xt as verifyCommunityCommit, xu as REACTIONS_CAPABILITY, xv as buildLinkRecords, xw as BACKGROUND_WRITES_SHARE, xx as requestPlaintextBytes, xy as handoffDoneFrame, y as X401_VERSION, yC as deviceLinkSecret, yS as exifOrientation, yT as newerPacket, y_ as VIEWER_SERVICE_CSP_RELAY_ONLY, ya as LNURL_LIMITS, yb as enrollCancelReason, yc as statusState, yd as identityRevocationValue, yf as HoldRefusedError, yg as CONNECT_TIMEOUT_MS, yh as shownTime, yi as DID_DHT_PREFIX, yl as wakeFrame, ym as ReactionWindow, yn as groupDisplayName, yo as PONG_WAIT_MS, yp as formatVoiceDuration, yr as varBytes, ys as parseHubPolicy, yt as verifyCommunityChain, yu as KNOWN_SESSION_CAPABILITIES, yv as MAX_MSGS_PAYLOAD_B64, yw as BACKGROUND_REQUESTS_PER_MINUTE, yx as readKnockSlot, yy as handoffDataFrame, z as planAppUpdate, zC as TURN_MAX, zS as encodeDeviceInvite, zT as tryDecrypt, z_ as sendBody, za as NO_AUDIO_METADATA, zb as newInbox, zc as PINNED_FRAME, zd as nostrProofTemplate, zf as parseDomainTxt, zg as FIRST_PUBLISH_MAX_MS, zh as verifyChain, zi as SEPOLIA_TEST_USDT_FAUCET, zl as appRangeDataFrame, zm as wireReply, zn as SSH_KEY_TYPES, zo as engineError, zp as EDIT_RECEIVE_LIMIT, zr as parseAtprotoCar, zs as validHead, zt as groupWakeFrame, zu as CAPS_PUBLISH_SPACING_MS, zv as HANDOFF_BUSY, zw as RelayTransport, zx as findAppForbiddenKey, zy as openHandoffPiece } from "./src-BN4AAuHI.js";
2
+ //#region ../core/src/clipboardGuard.ts
3
+ /**
4
+ * A contact's shared app on the web writes the clipboard only in the person's own tap in it. Its frames allow no
5
+ * `clipboard-write`, but Chromium lets `document.execCommand("copy")` write the system clipboard for as long as a tap's
6
+ * activation lasts (seconds, from a timer too), and no sandbox token or permissions policy turns that off. So this
7
+ * script runs first in each of the app's pages (`guardViewerAnswer`) and in the bridge (apps/web/src/svc/bridge.ts):
8
+ * - `execCommand("copy")` and `execCommand("cut")` work only while a trusted tap, click or key of the person's is being
9
+ * dispatched in that window: a copy button copies on its own tap, and nothing else does (not on load, not from a
10
+ * timer or a promise after a tap). `execCommand("paste")` is refused. Every other command passes as it is. The
11
+ * wrapped `execCommand` is left fixed in place (not writable, not configurable), once per window;
12
+ * - runs in a frame's window before the page holds it, as the WebRTC guard does (`VIEWER_GUARD_SCRIPT`): what a frame
13
+ * element hands out is guarded first, the frames of the document and of its shadow trees are gone over as one loads
14
+ * (an empty frame's first load fires as it is put in the page) and as the page changes, each `srcdoc` frame gets
15
+ * this script first, a declarative shadow root the page's script would make is refused, and with `VIEWER_GUARD_CSP`
16
+ * a `javascript:` URL is refused (its own Trusted Types default policy; one passes every other string on as it is).
17
+ * A frame's window keeps what was run in it on its first, empty page when the page it loads is of the same origin (the
18
+ * bridge's guard reaches the app's frame then): there this script only watches the new document. Each document it
19
+ * watches is marked (`ghostlyClipboardGuard`, fixed in place): the bridge reads that to know the guard ran in the page
20
+ * it shows. It uses nothing the page can change after it ran (the page's own code runs later, in the same realm).
21
+ *
22
+ * A fence, not a wall, as the WebRTC guard's own: a frame's window read by its index (`window[0]`) before it loads,
23
+ * inside a shadow tree written in the HTML the page itself sends, is out of its sight.
24
+ * No backslash, `${` or backtick in it.
25
+ */
26
+ var CLIPBOARD_GUARD_SCRIPT = `(function noClipboardWrites(w) {
27
+ "use strict";
28
+ try {
29
+ const apply = w.Reflect.apply;
30
+ const describe = w.Object.getOwnPropertyDescriptor;
31
+ const define = w.Object.defineProperty;
32
+ const proto = w.Document.prototype;
33
+ const home = w.document;
34
+ const exec = describe(proto, "execCommand");
35
+ const fresh = !!exec && exec.configurable === true && typeof exec.value === "function";
36
+ const watched = !!describe(home, "ghostlyClipboardGuard");
37
+ if (!fresh && watched) return;
38
+ if (!watched) define(home, "ghostlyClipboardGuard", { value: true });
39
+ const own = "<script>(" + noClipboardWrites + ")(window)<" + "/script>";
40
+ const close = "<" + "/script>";
41
+ const webRtc = "<script>(function noWebRtc(";
42
+ const text = w.String;
43
+ const lower = text.prototype.toLowerCase;
44
+ const slice = text.prototype.slice;
45
+ const index = text.prototype.indexOf;
46
+ const listen = w.EventTarget.prototype.addEventListener;
47
+ const shut = (inner) => {
48
+ try { if (inner && inner !== w) noClipboardWrites(inner); } catch (e) {}
49
+ };
50
+ const count = describe(w, "length").get;
51
+ const view = describe(proto, "defaultView").get;
52
+ const sweep = () => {
53
+ try { for (let i = apply(count, w, []); i-- > 0;) shut(w[i]); } catch (e) {}
54
+ };
55
+ const elements = w.Element.prototype;
56
+ const getAttribute = elements.getAttribute;
57
+ const setAttribute = elements.setAttribute;
58
+ const removeAttribute = elements.removeAttribute;
59
+ const attachShadow = elements.attachShadow;
60
+ const size = describe(w.NodeList.prototype, "length").get;
61
+ const first = (frame) => {
62
+ const doc = apply(getAttribute, frame, ["srcdoc"]);
63
+ if (doc === null) return;
64
+ let at = 0;
65
+ if (apply(slice, doc, [0, webRtc.length]) === webRtc) {
66
+ const end = apply(index, doc, [close]);
67
+ if (end >= 0) at = end + close.length;
68
+ }
69
+ if (apply(slice, doc, [at, at + own.length]) === own) return;
70
+ try { apply(setAttribute, frame, ["srcdoc", own + doc]); } catch (e) { apply(removeAttribute, frame, ["srcdoc"]); }
71
+ };
72
+ const Observer = w.MutationObserver;
73
+ const observe = Observer.prototype.observe;
74
+ const watch = (root, all) => {
75
+ const scan = () => {
76
+ try {
77
+ const frames = apply(all, root, ["iframe[srcdoc]"]);
78
+ for (let i = apply(size, frames, []); i-- > 0;) first(frames[i]);
79
+ } catch (e) {}
80
+ sweep();
81
+ };
82
+ apply(observe, new Observer(scan), [root, { subtree: true, childList: true, attributes: true, attributeFilter: ["srcdoc"] }]);
83
+ apply(listen, root, ["load", sweep, true]);
84
+ scan();
85
+ return root;
86
+ };
87
+ if (fresh) {
88
+ const run = exec.value;
89
+ const phase = describe(w.Event.prototype, "eventPhase").get;
90
+ let tap = null;
91
+ let trusted = null;
92
+ const seen = (event) => {
93
+ try {
94
+ const found = describe(event, "isTrusted");
95
+ if (found && found.get && apply(found.get, event, []) === true) { tap = event; trusted = found.get; }
96
+ } catch (e) {}
97
+ };
98
+ const taps = ["pointerdown", "pointerup", "mousedown", "mouseup", "click", "auxclick", "touchstart", "touchend", "keydown", "keyup"];
99
+ for (let i = 0; i < taps.length; i++) apply(listen, w, [taps[i], seen, true]);
100
+ const tapping = () => {
101
+ try { return tap !== null && apply(trusted, tap, []) === true && apply(phase, tap, []) !== 0; } catch (e) { return false; }
102
+ };
103
+ const guarded = function execCommand(command) {
104
+ const name = apply(lower, text(command), []);
105
+ if (name === "paste" || ((name === "copy" || name === "cut") && !tapping())) return false;
106
+ const args = [name];
107
+ for (let i = 1; i < arguments.length; i++) args[i] = arguments[i];
108
+ return apply(run, this, args);
109
+ };
110
+ define(proto, "execCommand", { value: guarded, writable: false, enumerable: exec.enumerable, configurable: false });
111
+ if (w.trustedTypes && !w.trustedTypes.defaultPolicy) {
112
+ try {
113
+ w.trustedTypes.createPolicy("default", {
114
+ createHTML: (input) => input,
115
+ createScript: (input, type, sink) => (sink === "Location href" ? null : input),
116
+ createScriptURL: (input) => input,
117
+ });
118
+ } catch (e) {}
119
+ }
120
+ const reopen = proto.open;
121
+ proto.open = function () {
122
+ const got = apply(reopen, this, arguments);
123
+ try { if (apply(view, this, []) === w) apply(listen, this, ["load", sweep, true]); } catch (e) {}
124
+ return got;
125
+ };
126
+ const shadowed = (html) => apply(index, apply(lower, html, []), ["shadowrootmode"]) >= 0;
127
+ const Refused = w.TypeError;
128
+ const refuse = () => { throw new Refused("A declarative shadow root is not allowed here"); };
129
+ const parsers = [[elements, "setHTMLUnsafe"], [w.ShadowRoot && w.ShadowRoot.prototype, "setHTMLUnsafe"], [w.Document, "parseHTMLUnsafe"]];
130
+ for (let i = 0; i < parsers.length; i++) {
131
+ const owner = parsers[i][0];
132
+ const name = parsers[i][1];
133
+ const real = owner && owner[name];
134
+ if (typeof real !== "function") continue;
135
+ owner[name] = function (html) {
136
+ const checked = text(html);
137
+ if (shadowed(checked)) refuse();
138
+ return apply(real, this, arguments.length > 1 ? [checked, arguments[1]] : [checked]);
139
+ };
140
+ }
141
+ let tail = "";
142
+ const writes = ["write", "writeln"];
143
+ for (let i = 0; i < writes.length; i++) {
144
+ const real = proto[writes[i]];
145
+ if (typeof real !== "function") continue;
146
+ proto[writes[i]] = function () {
147
+ let checked = "";
148
+ for (let j = 0; j < arguments.length; j++) checked += text(arguments[j]);
149
+ if (shadowed(tail + checked)) refuse();
150
+ tail = apply(slice, tail + checked, [-16]);
151
+ return apply(real, this, [checked]);
152
+ };
153
+ }
154
+ const kinds = ["HTMLIFrameElement", "HTMLFrameElement", "HTMLObjectElement", "HTMLEmbedElement"];
155
+ const reads = ["contentWindow", "contentDocument", "getSVGDocument"];
156
+ for (let k = 0; k < kinds.length; k++) {
157
+ const owner = w[kinds[k]] && w[kinds[k]].prototype;
158
+ for (let r = 0; r < reads.length; r++) {
159
+ const name = reads[r];
160
+ const found = owner && describe(owner, name);
161
+ const key = found && found.get ? "get" : "value";
162
+ if (!found || typeof found[key] !== "function") continue;
163
+ const read = found[key];
164
+ found[key] = function () {
165
+ const got = apply(read, this, arguments);
166
+ try { shut(name === "contentWindow" ? got : apply(view, got, [])); } catch (e) {}
167
+ return got;
168
+ };
169
+ try { define(owner, name, found); } catch (e) {}
170
+ }
171
+ }
172
+ const inShadow = w.DocumentFragment.prototype.querySelectorAll;
173
+ if (attachShadow) {
174
+ elements.attachShadow = function () {
175
+ const root = apply(attachShadow, this, arguments);
176
+ try { watch(root, inShadow); } catch (e) {}
177
+ return root;
178
+ };
179
+ }
180
+ }
181
+ if (!watched) watch(home, proto.querySelectorAll);
182
+ } catch (e) {}
183
+ })(window)`;
184
+ /** `CLIPBOARD_GUARD_SCRIPT`'s hash, as a CSP source: the bridge's policy and a contact's own are given it. */
185
+ var CLIPBOARD_GUARD_HASH = "'sha256-FGs001DxOSnlZv8nm6JyMeex+LlNQJzrCFbnJhAh8n4='";
186
+ //#endregion
2
187
  //#region ../core/src/paymentUri.ts
3
188
  /** Whole sats as the decimal BTC amount BIP 21 wants (`21` → `0.00000021`), never in exponent form. */
4
189
  function satsToBtc(sats) {
@@ -202,6 +387,6 @@ var ClockWatch = class {
202
387
  }
203
388
  };
204
389
  //#endregion
205
- export { ACTIVE_DHT_POLL_MS, ACTIVE_TASK_STATUSES, ANSWERS_REFUSED_PAUSES, ANSWERS_REFUSED_PAUSE_MS, ANSWER_READ_ALLOWANCE, ANSWER_READ_FIRST_MS, ANSWER_READ_SPACING_MS, ANSWER_REFUSED_REDIALS, APPS_CAPABILITY, APP_BUNDLE_LIMITS, APP_BUNDLE_MAGIC, APP_CLIENTS, APP_CLIENT_NAME, APP_DATA_MAX_BYTES, APP_FORBIDDEN_KEYS, APP_FRAME, APP_ICON_PATH, APP_NAME, APP_PEER_OPEN_MAX, APP_PERMISSIONS, APP_PREFIXES, APP_RANGES_CAPABILITY, APP_RANGE_DATA_KIND, APP_RANGE_ERRORS, APP_RANGE_FRAMES, APP_RANGE_LIMITS, APP_RATE_LIMIT, APP_RATE_WINDOW_MS, APP_RESUME_GRACE_MS, APP_SCREENSHOTS_DIR, APP_SEND_LIMIT, APP_STATEMENT_LIMITS, APP_STORE_KINDS, APP_STORE_LIMITS, APP_VERSION_MAX, APP_VIEWS, ATPROTO_DECLARED_SCOPE, ATPROTO_FULL_SCOPE, ATPROTO_PROOF_COLLECTION, ATPROTO_PROOF_SCOPE, AUTOMATIC_ORDER, AWAITED_READS, AWAITING_PEER_MS, AppRanges, AppSessions, AtprotoCid, AtprotoProofError, BACKGROUND_REQUESTS_PER_MINUTE, BACKGROUND_WHILE_SIGNALING, BACKGROUND_WRITES_SHARE, BIP322_REVISION, BITCOIN_NETWORKS, BLOCKED_DIAL_WAIT_MS, BOLT11_PATTERN, BREAKER_ALL_DOWN_PROBE_MS, BREAKER_BASE_MS, BREAKER_MAX_MS, BREAKER_THRESHOLD, BURST_RING_MS, BUTTONS_CAPABILITY, BUTTON_ID, BUTTON_STYLES, BitcoinAddressError, ByteReader, CALLS_CAPABILITY, CALL_RATE_WINDOW_MS, CALL_RECEIVE_LIMIT, CALL_SIGNAL_FUTURE_MS, CALL_SIGNAL_MAX_AGE_MS, CAPS_ISSUED_BACK_MS, CAPS_LABEL, CAPS_LIMITS, CAPS_PUBLISH_SPACING_MS, CAPS_REFRESH_MS, CARRIED_DEFER_MS, CHAT_RESERVE, CHAT_RESERVE_MOST_SHARE, CHAT_RESERVE_PER_CHAT, CHAT_WATCH_SHARE, CHUNK_FLAG_END, CHUNK_KIND, CLOCK_EVIDENCE_MS, CLOCK_OFF_MS, CLOCK_PEERS, CLOCK_PEER_READ_GAP_MS, CLOCK_SERVERS, COMMUNITY_EDIT_FRAME, COMMUNITY_LIMITS, COMMUNITY_PIN_FRAME, COMMUNITY_PROFILE, COMMUNITY_REACTION_FRAME, COMMUNITY_TOPOLOGY, CONNECT_TIMEOUT_MS, CONTACT_ASKER_FRAME, CONTACT_LINK_BYTES, CONTACT_LINK_VERSION, CONTACT_RECORD_TTL, CRON_LINE, CROSSED_FRESH_MS, CROSSED_PROBE_MS, CROSSED_WAIT_MS, CapsExchange, CapsKeys, CapsRefusedError, CarriedTransport, ChatFiles, ClockWatch, CommunitySession, ContactRequestError, DAEMON_WATCH_PEER_IDLE_MS, DATA_CHANNEL_ID, DATA_CHANNEL_LABEL, DATA_SETTLE_MS, DEFAULT_RELAYS, DEMOTE_AFTER_FAILURES, DEMOTE_MS, DEPARTED_READS, DEPARTED_READ_MS, DEVICES_CAPABILITY, DEVICE_CAPABILITIES, DEVICE_ECHO_FRAME, DEVICE_INVITE_BYTES, DEVICE_INVITE_LIFETIME_S, DEVICE_INVITE_OWN_DEVICE, DEVICE_INVITE_VERSION, DEVICE_KINDS, DEVICE_PING_FRAME, DEVICE_WAKE_TTL_SECONDS, DHT_FILE_CAPABILITY, DHT_FILE_REFUSED, DHT_FILE_TOO_LARGE, DHT_MESSAGE_TTL, DHT_PIN_GRACE_MS, DHT_POLL_INTERVALS, DHT_TEXT_BYTES, DHT_TEXT_CAPABILITY, DHT_TEXT_REFUSED, DID_DHT_MAX_PAYLOAD, DID_DHT_PREFIX, DID_DHT_TTL, DID_DHT_VERSION, DID_DOCUMENT_MAX_BYTES, DID_FILE_MAX_BYTES, DID_GHOSTLY_SERVICE, DID_JWS_ALGS, DID_JWS_MAX_LENGTH, DID_MAX_LENGTH, DID_METHODS, DIRECT_EVIDENCE_MS, DIRECT_OWN_ATTEMPTS, DIRECT_PEERS, DNS_LABEL, DNS_TYPE, DOMAIN_FILE_MAX_BYTES, DOMAIN_MAX_RECORDS, DOMAIN_METHODS, DOMAIN_TXT_MAX_BYTES, DataLink, DhtDelivery, DidDhtError, DidError, DirectPathWatch, DiscoveryBudgetError, EARLY_DIAL_JOIN_MS, EDITED_FRAME, EDIT_BUFFER_MAX, EDIT_BUFFER_MS, EDIT_CAPABILITY, EDIT_FRAME, EDIT_RATE_WINDOW_MS, EDIT_RECEIVE_LIMIT, EDIT_SEND_LIMIT, ENDPOINT, ENGINE_ERRORS, ENROLL_CANCEL, ENROLL_CANCEL_REASONS, ENROLL_CAPABILITY, ENROLL_DONE, ENROLL_GRANT, ENROLL_HELLO, ENROLL_PROOF, ETHEREUM_USDT, EVM_TEST_CHAINS, EXPECT_PEER_MS, EngineError, FILES_BINARY_CAPABILITY, FILES_CAPABILITY, FILE_DATA_KIND, FILE_FRAMES, FILE_LIMITS, FIRST_PAIRING_PACE_MS, FIRST_PUBLISH_MAX_MS, FLOOD_PER_DAY, FOLLOW_MS, FORWARD_LIMITS, FRESH_READ_MS, FileTransfers, FileUplink, GATHER_ATTEMPTS, GATHER_STALL_MS, GROUP_ADMIN_OFF_ERROR, GROUP_BURST_MS, GROUP_BURST_ONE_LINK, GROUP_EDIT_FRAME, GROUP_EDIT_TEXT_BYTES, GROUP_ENTRY_PROFILE, GROUP_FILE_LIMITS, GROUP_HAVE_FRAME, GROUP_ID, GROUP_LIMITS, GROUP_MEMBER_CAP, GROUP_META_PAST, GROUP_META_PAST_CHARS, GROUP_OVER_PACE_MS, GROUP_PIN_FRAME, GROUP_PROFILE, GROUP_RATION_WINDOW_MS, GROUP_REACTED_FRAME, GROUP_REACTION_FRAME, GROUP_READ_NOTE, GROUP_READ_NOTE_COMMUNITY, GROUP_SIGNALING_ALLOWANCE_SHARE, GROUP_SIGNAL_FRAME, GROUP_TYPING_FRAME, GROUP_VERSION_FILES, GROUP_VERSION_HUBS, GROUP_VERSION_LARGE, GROUP_VERSION_SIGNALS, GROUP_WAKE_FRAME, GROUP_WAKE_GROUP_LIMIT, GROUP_WAKE_GROUP_WINDOW_MS, GROUP_WAKE_MEMBER_INTERVAL_MS, GROUP_WAKE_RECEIVE_LIMIT, GROUP_WANT_FRAME, GROUP_WANT_NO_FRAME, GhostLink, GhostlyHttpError, GroupSession, GroupTypingBoard, GroupWakeLimiter, HANDLED_WAIT_MS, HANDOFF_ACK, HANDOFF_ATTEMPTS, HANDOFF_BUSY, HANDOFF_BUSY_REASONS, HANDOFF_CANCEL, HANDOFF_CANCEL_REASONS, HANDOFF_CAPABILITY, HANDOFF_DATA, HANDOFF_DONE, HANDOFF_FILE_MISSING, HANDOFF_FILE_REQUEST, HANDOFF_HAVE, HANDOFF_HELLO, HANDOFF_LATER_BYTES, HANDOFF_LIST_PER_FRAME, HANDOFF_MANIFEST, HANDOFF_OFFER, HANDOFF_PAKE, HANDOFF_PIECE_BYTES, HANDOFF_PIECE_OVERHEAD, HANDOFF_RELEASE, HANDOFF_REQUEST, HANDOFF_TIMINGS, HANDOFF_VERIFIED, HANDOFF_VERSION, HANDOFF_WINDOW, HEDGE_MISSING_MS, HEDGE_MS, HOLD_CAPABILITY, HOLD_DATED_BACK_MS, HOLD_LIMITS, HTTP_SERVICE_PROTO, HoldKeys, HoldRefusedError, HttpClient, HttpHost, IDENTITY_CHALLENGE_WINDOW, IDENTITY_CHECK_UNAVAILABLE, IDENTITY_CLOCK_SKEW, IDENTITY_FRAME_LIMIT, IDENTITY_FRAME_WINDOW_MS, IDENTITY_MAX_CHECKS_PER_HOUR, IDENTITY_MAX_EVIDENCE, IDENTITY_MAX_FRAME, IDENTITY_MAX_RECEIVED, IDENTITY_MAX_VALIDITY, IDENTITY_MEMO_SIZE, IDENTITY_PROOF_CAPABILITY, IDENTITY_PROVIDER_ID, IDENTITY_REUSE_CHECK_S, IDENTITY_REVOCATION_LABEL, IDENTITY_STATEMENT_PREFIX, IDENTITY_SUBJECT, IDENTITY_TIMELINE_MAX, IDLE_THRESHOLD, IMAGE_LIMITS, INVITER_DIAL_GRACE_MS, INVITE_HRP, INVITE_LINK_ORIGIN, INVITE_MAX_LENGTH, INVITE_TAKEN, INVITE_VERSION, ITEM_STATES, IdentityCheckUnavailable, IdentityExchange, KNOCK_SLOTS, KNOCK_SLOT_LABEL, KNOCK_TTL_MS, KNOWN_SESSION_CAPABILITIES, LABEL, LATE_ANSWER_MS, LEGACY_GROUP_MEMBERS, LEGACY_SERVICES, LIGHTNING_DESTINATION_PATTERN, LIMITS, LINK_MAX_CHARS, LINK_PREVIEW_LIMITS, LINK_RECORD_LABEL, LINK_TRAILING, LIVENESS_MISSED_PINGS, LIVENESS_PING_MS, LIVE_POLL_MS, LNURL_LIMITS, LinkSession, MAX_AVATAR_LENGTH, MAX_AVATAR_SIDE, MAX_CHUNK_PAYLOAD_BYTES, MAX_DHT_TEXT_BYTES, MAX_DNS_PACKET_BYTES, MAX_DONE, MAX_EDITS_PER_MESSAGE, MAX_GROUP_CHAIN, MAX_GROUP_MEMBERS, MAX_GROUP_META_BODY, MAX_GROUP_NAME_BYTES, MAX_GROUP_NAME_LENGTH, MAX_GROUP_PICTURE_LENGTH, MAX_KNOCKS, MAX_MISSED, MAX_MSGS_PAYLOAD_B64, MAX_NICK_LENGTH, MAX_PAIRED_CALL_SIGNAL, MAX_PAIRED_MESSAGE_FRAME, MAX_REMOVAL_NUMBER, MAX_SEEN, MAX_SERVICES, MAX_SKIP, MAX_SKIPPED_KEYS, MAX_SLOT_KNOCKS, MAX_WAITING, MEMBER_KEY, MENTION_EVERYONE, MENTION_LIMITS, MESH_HUBS, MESSAGE_CLOCK_SKEW_MS, MessageRefusal, NEW_PER_HOUR, NIP05_PATH, NO_ATTEMPTS, NO_HUB_POLICY, NO_PICTURE_METADATA, NO_VIDEO_METADATA, OFFER_FAST_MS, OFFER_HOST_GATHER_MS, OFFER_LOOK_MS, OFFER_STEP_MAX, ONCHAIN_PROVIDER, OWN_FRAME_LIMIT, OwnInviteError, PAIRED_CALL_CANDIDATES, PAIRED_CALL_FRAME, PAIRED_FRAME_TOO_LARGE, PAIRED_PROFILE, PAIRED_REPLY_AUTHORS, PAIRING_ATTEMPT_MS, PAIRING_RETRY_MS, PICTURE_METADATA_LIMITS, PINNED_FRAME, PIN_CAPABILITY, PIN_CLOCK_SKEW_MS, PIN_FRAME, PIN_LIMITS, PKARR_FUTURE_SKEW_MS, PLAYABLE_AUDIO, PLAYABLE_VIDEO, PONG_WAIT_MS, PRESENCES, PRESENCE_HEARTBEAT, PRESENCE_WINDOW, PREVIEWABLE_IMAGE, PREVIOUS_DEFAULT_RELAYS, PROOF_ADAPTERS, PROOF_CAPABILITY, PROTOCOL_VERSION, PR_CHECKS, PR_STATES, PUBKY_PROOF_MAX_BYTES, PUBKY_PROOF_ROOT, PUSH_PAD_BYTES, PUSH_SERVICE_HOSTS, PacketTooLargeError, PairedCalls, PairedSession, PairingTracker, PaymentPreflightError, PeerProofs, PublishFailedError, QUICK_REACTIONS, QUICK_REDIAL_MS, RACE_ANSWERED_MS, RACE_DIRECT_MS, RACE_RELAYED_MS, RATCHET_CAPABILITY, RATCHET_HEADER_BYTES, RATCHET_KEEP_MS, RATCHET_OVERHEAD, REACTED_FRAME, REACTIONS_CAPABILITY, REACTION_FRAME, REACTION_LIMITS, REANSWERS, RECORDING_TYPES, RECORD_TTL, REDESCRIBED_GRACE_MS, RELAY_PAYLOAD_MAX_BYTES, RELAY_POLL_INTERVALS, RELAY_REQUESTS_PER_MINUTE, RELAY_URL, RELAY_WITH_SECRETS, REMOVABLE_KINDS, REMOVED_TEXT, REOPEN_BELOW, REPLY_ID, REPLY_LIMITS, REQUESTS_PER_MINUTE, REQUEST_CLOCK_SKEW_MS, REQUEST_LABEL, REQUEST_LIFETIME_MS, REQUEST_NAME_UNITS, REQUEST_PACKET_BYTES, REQUEST_TEXT_BYTES, RESUME_WAIT_MS, RING_LIFETIME, ROUTINE_STATES, RTC_CONFIG, RTC_SIGNAL_FUTURE_MS, RTC_SIGNAL_MAX_AGE_MS, RTC_SIGNAL_RATE_WINDOW_MS, RTC_SIGNAL_RECEIVE_LIMIT, RTC_UNSTARTED_MS, RUN_RESULTS, RatchetBox, RateWindow, ReactionWindow, RelayBreaker, RelayTransport, RelaysFailedError, SAID_AGAIN, SEPOLIA_TEST_USDT, SEPOLIA_TEST_USDT_FAUCET, SERVICES_CAPABILITY, SERVICES_VERSION, SESSION_CAPABILITIES_FRAME, SESSION_FRAME_MAX, SESSION_RECEIVE_PENDING, SET_ACK, SET_UPDATE, SIGNALING_ALLOWANCE_SHARE, SIGNALING_WINDOW_MS, SIGNALS_PER_MINUTE, SIGNAL_CARRIERS, SIGNAL_DUE_READS, SIGNAL_FRESH_MS, SIGNAL_HOLD_MS, SIGNAL_OUT_READS, SIGNAL_PROVEN_MS, SIGNAL_REPLY_MS, SLOW_DEMOTE_MS, SLOW_MS, SPARK_NETWORKS, SPARK_PROVIDER, SSHSIG_MAX_ARMOR, SSHSIG_NAMESPACE, SSH_KEY_TYPES, SSH_PUBLIC_KEY_MAX, STALLED_EVIDENCE_MS, STALLED_LOOK_MS, STAMP_BITS_DEFAULT, STAMP_BITS_MAX, STAMP_BITS_MIN, STATUS_AVAILABILITIES, STATUS_CAPABILITY, STATUS_CARD_CAPABILITY, STATUS_CARD_LIMITS, STATUS_FRAME, STATUS_IDLE_AFTER_MS, STATUS_RATE_LIMIT, STATUS_RATE_WINDOW_MS, STATUS_SEND_INTERVAL_MS, STATUS_TEXT_MAX, STORAGE_LIFETIME, STORAGE_ROOT, SWITCH_RETIRE_MS, SessionCapabilities, SshSigError, StatusReceiver, StatusSender, TASK_STATUSES, TEST_USDT_FAUCET_AMOUNT, TOMBSTONE_SEQUENCE, TOMBSTONE_TURN, TRANSPORTS, TRANSPORTS_GONE_MS, TURN_BODY_BYTES, TURN_LABEL, TURN_LAST_SEQUENCE, TURN_MAX, TURN_NAME_BYTES, TURN_NO_ACTIVE, TURN_PUT_WINDOW_MS, TURN_RAISE_READ_TIMEOUT_MS, TURN_REV_LIMIT, TURN_SEALED_BYTES, TURN_SETTLE_MS, TURN_SIGNED_BYTES, TURN_SLOTS, TURN_SOURCE_TIMEOUT_MS, TURN_TTL, TURN_VERSION, TURN_VISIBLE_MS, TYPING_CAPABILITY, TYPING_FRAME, TYPING_KINDS, TYPING_RATE_LIMIT, TYPING_RATE_WINDOW_MS, TYPING_REFRESH_MS, TYPING_SEND_LIMIT, TYPING_STATUS_MAX, TYPING_TIMEOUT_MS, TurnRecordError, TypingReceiver, TypingSender, UNPROVEN_AUTH_MS, UNUSED_INVITE_READS_PER_MINUTE, UNUSED_INVITE_UPKEEP_MS, UNUSED_INVITE_WAIT_MAX_MS, UPGRADE_CAPABILITY, USDT_PUBLIC_RPC, VIDEO_LIMITS, VIDEO_METADATA_LIMITS, VIEWER_DROPPED_DIRECTIVES, VIEWER_DROPPED_HEADERS, VIEWER_GUARD_CSP, VIEWER_GUARD_HASH, VIEWER_GUARD_SCRIPT, VIEWER_SERVICE_CSP, VIEWER_SERVICE_CSP_RELAY_ONLY, VOICE_LIMITS, VOICE_METER, WAKE_ANSWER_GRACE_MS, WAKE_CALL_INTERVAL_MS, WAKE_CALL_TTL_SECONDS, WAKE_CALL_WAIT_MS, WAKE_SESSION_CAPABILITY as WAKE_CAPABILITY, WAKE_SESSION_CAPABILITY, WAKE_FRAME, WAKE_INTERVAL_MS, WAKE_LOST_MS, WAKE_ONLINE_BATCH, WAKE_ONLINE_BATCH_MS, WAKE_ONLINE_DELAY_MS, WAKE_ONLINE_INTERVAL_MS, WAKE_ONLINE_TTL_SECONDS, WAKE_RETRY_MS, WAKE_SUBJECT, WAKE_TTL_SECONDS, WALLET_NETWORKS, WATCH_PEER_MS, WATCH_SHARE, WAY_BACK_SHARE, WELL_KNOWN_PATH, WRITE_FIRST_MS, WakeLimiter, WebPushError, X401_CREDENTIAL_LIMITS, X401_DCQL_LIMITS, X401_HEADERS, X401_LIMITS, X401_PROTOCOLS, X401_REQUEST_LIMITS, X401_RESPONSE_MODES, X401_SCHEME, X401_VERSION, addedAppPermissions, allowingViewerGuard, answersOffer, appCardId, appCardUrl, appCloseFrame, appDataBytes, appDataFrame, appDigest, appFingerprint, appOpenFrame, appRangeCancelFrame, appRangeChunk, appRangeDataFrame, appRangeEndFrame, appRangeErrorFrame, appRangeGetFrame, appRef, appRefPublisher, appRevocationFor, appRevocationId, appSignedBytes, appStoreDecision, appUpdateDecision, appViewOf, applyIdentityEvent, arkAddressPrefix, arrivalKey, asWritten, assembleAppBundle, assertTokenUnits, assertWholeSats, atprotoCidFor, atprotoDidMethod, atprotoProofRecord, atprotoProofRkey, automaticTransport, baseMime, beaconKeys, beaconRecords, bip322MessageHash, bip322ToSign, bip322ToSpend, boundIdentityDisplay, boundVerifiedIdentity, budgetRetryMs, buildAppBundle, buildDataSdp, buildLinkRecords, buildSdpFromSignal, buildX401ProofRequest, buildX401ProofResult, buildX401ResultArtifact, buildX401TokenObject, buttonLabelClash, bytesEqual, callRtcConfig, callSignalHeardAt, canonicalJson, canonicalJsonBytes, canonicalUrl, capsDescriptors, cardEditNumber, cardLine, cardLinkHost, cardTimeUtc, cardUrl, carryMentions, cashuRequestPayload, chainPieces, chatAppId, checkAppBeforeRun, checkAppListing, checkAppManifest, checkAppRevokeStatement, checkAppStoreIndex, checkAtprotoProofRecord, checkDidJws, checkDidSignature, checkPushEndpoint, checkStatusCard, checkedDescriptors, claimedTime, classifyTurnRead, clearMissed, clockOffset, commitHash, commitUntaggedHash, communityCommitHash, communityEditFrame, communityGroupId, communityHasFrame, communityMessageAuthor, communityMessageId, communityRoster, communityUntaggedHash, compactSize, compareVersions, compressSdp, concatBytes, confirmationMatches, confirmationTag, contactAskerFrame, contactAskerHolds, contactDay, contactRtcConfig, countUnusedInvite, createChatInvite, createContactLink, createDeviceInvite, createIdentity, createLink, createRelayPayload, currentRelays, decodeAnyBitcoinAddress, decodeAppRangeData, decodeAtprotoCommit, decodeBase64, decodeBitcoinAddress, decodeBolt11, decodeChunk, decodeCommunityLink, decodeControl, decodeDagCbor, decodeDidDhtPacket, decodeDnsAnswers, decodeDnsResponse, decodeFileData, decodeGroupEntryLink, decodeInviteCode, decodeServices, decodeSvcbRecords, decodeTx, decodeTxtPacket, decodeWitness, decodeX401Header, decompressSdp, decrypt, decryptPushPayload, decryptText, derivedSecret, deviceEchoFrame, deviceEchoNonce, deviceFrameCapability, deviceInviteJoinerKeyZ32, deviceInviteJoinerParams, deviceKeyZ32, deviceLinkPairing, deviceLinkParams, deviceLinkRendezvousSeed, deviceLinkSealKey, deviceLinkSecret, devicePingFrame, deviceWakeRequest, dhtEditId, dhtFileElements, dhtFileId, dialDescriptors, dialableIrohRelay, didDhtDocument, didDhtFromPublicKey, didDhtKey, didDhtRecords, didGhostlyServiceEntry, didJwsAlg, didSignedMessages, didWebDocumentUrl, didWebFile, didWebFileNames, didWebFileUrl, didWebHost, directBlocked, dnsProofName, domainTxtRecord, domainWellKnownFile, doorHubs, downsamplePeaks, dropLoneJoiners, edgeParams, editFrame, editedFrame, emptyCapsState, emptyDhtDeliveryState, emptyIdentityLedger, emptyLinkRecords, emptyProofLedger, emptyRatchetState, encodeAppRangeData, encodeChunk, encodeCommunityLink, encodeContactLink, encodeControl, encodeDagCbor, encodeDeviceInvite, encodeDidDhtDeactivated, encodeDidDhtPacket, encodeDnsQuery, encodeFileData, encodeGhostlyInvite, encodeGroupEntryLink, encodeGroupMetaBody, encodeInviteCode, encodePacketTransports, encodeServices, encodeSetSlots, encodeSvcbPacket, encodeTurnFields, encodeTx, encodeTxtPacket, encodeWitness, encodeX401Header, encrypt, encryptPushPayload, encryptText, endedRequests, engineError, engineText, enrollCancelFrame, enrollCancelReason, enrollDigits, enrollDoneFrame, enrollGrantFrame, enrollHelloFrame, enrollMessage, enrollProofFrame, entryParams, epochKeys, exifOrientation, expectedRoster, extractParamsFromSdp, extractRtcParams, fedimintRequestPayload, fetchLnurlJson, fetchesByItself, fileMessageText, filePartDigest, filePartName, findAppForbiddenKey, findBolt11, findEndpoint, findInMst, findLightningDestination, firstDeviceSetSecret, formatEnrollDigits, formatFileSize, formatLocalTarget, formatPaymentAmount, formatVideoDuration, formatVoiceDuration, forwardedAgain, forwardedMany, frameBytes, freshHubs, fromBase64, fromBase64Url, fromZ32, generateEncryptionKey, generateVapidKeys, groupDisplayName, groupEntryUrl, groupFileFallback, groupMessageId, groupMetaBody, groupMetaChange, groupMetaNewer, groupMetaPicture, groupMetaTag, groupMetaToHand, groupName, groupReplyAuthor, groupSignalFrame, groupTypingEpoch, groupWakeFrame, groupWakes, guardViewerAnswer, handoffAckFrame, handoffAttemptAllowed, handoffAttemptFailed, handoffAttemptSucceeded, handoffBusyFrame, handoffCancelFrame, handoffContext, handoffContextProof, handoffDataFrame, handoffDigest, handoffDoneFrame, handoffEphemeral, handoffFileMissingFrame, handoffFileRequestFrame, handoffHaveFrames, handoffHelloFrame, handoffManifestFrames, handoffOfferFrame, handoffPakeFrame, handoffReleaseFrame, handoffRequestFrame, handoffRetryAfter, handoffStreamKey, handoffVerifiedFrame, handoffVerifiedMessage, handoffVersions, hasVisible, hash160, heardCallSignal, heardTime, heldBackError, homeserverWebEndpoint, hubRank, identityFromSeed, identityFromSeedB64, identityPresentationBytes, identityRefusal, identityRevocationValue, identityStatement, identityStatementText, imageSize, importedProof, inboxRecord, inviteLink, inviteOwnership, inviteQrSegments, inviteQrText, invoiceCallbackUrl, irohDescriptor, irohRelayUrl, isAppHash, isAppKey, isAppLicense, isAppLine, isAppPath, isAppRef, isAppSignature, isAppUrl, isAppVersion, isAtprotoDid, isBitcoinAddress, isCandidateAddress, isChatAppId, isDiscoveryBudgetError, isEmptyLinkPacket, isFederationId, isGlobalIpv4Host, isGroupMessageId, isHandoffPartName, isHoldUrl, isIdentityBinding, isImageMime, isLegacySignature, isNewerVersion, isPlayableAudioType, isPlayableVideoType, isProofAdapter, isPubkyKey, isPubkyProofFolder, isPublicAddress, isRatcheted, isServeId, isSparkAddress, isStrippedPicture, isValidServiceId, isVideoMime, isViewerTag, isWalletNetwork, isX401Protocol, isZ32Key, jpegSize, jwkThumbprint, keepPastGroupMeta, keepsToRelays, keptAtEqualSequence, knockHolds, knockIdentity, knockRecords, knockSlotIdentity, knockSlotOf, knockSlotRecords, lastSharedWithMe, leaveStands, leaveStatement, leaveStatement3, leftStatement, legacyMessageHash, linkEnd, linkRecords, linkStop, linksIn, liveStatus, lobbyKeys, lobbyRecords, makeStamp, makeStampPaced, matchX401Dcql, mayBeHub, mayPin, measureRecords, mentionedMembers, mentionsBytes, mentionsMember, mergeBeacon, mergeContactKnocks, mergeKnocks, mergeLobby, meshHubs, meshMessageRef, meshRendezvous, newDeviceSetSecret, newEpochSecret, newHandoffId, newMailbox as newHoldMailbox, newIdentityBinding, newInbox, newPubkyProofFolder, newWakeToken, newX401HolderKey, newerHead, newerPacket, nextGroupMetaRevision, nextPinNumber, nextReactionNumber, nextTurnPosition, nip05RootKey, normalizeAtprotoHandle, normalizeDid, normalizeDomain, normalizePubkyKey, normalizeRelayUrl, nostrProofTemplate, offerIsFresh, openDidDhtPayload, openGroupMeta, openGroupTyping, openHandoffPiece, openPair, openRelayPayload, openRequest, openSecret, openTurnValue, ownInviteRefusal, pacer, pairedEditFits, pairedMessageFits, pairedMessageFrame, pairedReplyAuthor, parseAppFrame, parseAppRangeFrame, parseAtprotoCar, parseAtprotoDidDocument, parseAtprotoDidKey, parseAtprotoVerificationKey, parseCallSignal, parseCashuRequestPayload, parseCommunityEdit, parseDid, parseDidDocument, parseDidJws, parseDidSignaturePaste, parseDomainTxt, parseEditFrame, parseEditedFrame, parseEngineError, parseFedimintRequestPayload, parseGroupCommit, parseGroupMetaBody, parseGroupMetaFrame, parseGroupMetaStatement, parseGroupMetaTag, parseGroupWakeFrame, parseHubPolicy, parseImageMeta, parseInvoiceCallback, parseLightningDestination, parseLinkPreview, parseLinkRecords, parseLocalTarget, parsePacketTransports, parsePairedCallFrame, parsePayParams, parsePaymentAmount, parsePaymentNetworks, parsePinFrame, parsePinnedFrame, parseReactedFrame, parseReactionFrame, parseRelayPayload, parseRtcSignal, parseSessionCapabilities, parseSshPublicKey, parseSshSignature, parseStatusFrame, parseTypingActivity, parseTypingFrame, parseVideoMeta, parseVoiceMeta, parseWakeFrame, pastedAgain, paymentUri, peekDhtMailbox, personStatus, pickCallCandidates, pickHubs, pickMeshHubs, pinFrame, pinIsNewer, pinNumberHolds, pinnedFrame, plainStatusLine, planAppUpdate, planKnocks, presenceSeenAt, presentX401SdJwtVc, previewImageSize, previewable, proofCapability, proofHash, proofStatement, pubkyHomeserverOf, pubkyProofCapability, pubkyProofFile, pubkyProofPath, publicKeyFromZ32, publishFailure, publishedNowhere, pushRequest, qrText, queueReaction, randomBytes, rankHubs, rankTransports, ratchetHeard, ratchetOn, ratchetOpen, ratchetRoot, ratchetSeal, ratchetSessionOf, ratchetUnknownSession, reactedFrame, reactionEmoji, reactionFrame, reactionIsNewer, readAppBundle, readAppBundleAsync, readAppFrame, readAppListing, readAppRangeFrame, readAppRevocation, readAppRevocationShape, readAppRevocations, readAppSignature, readAppStore, readAppStoreSteps, readAtprotoCid, readBeacon, readBeaconHead, readCanonicalJson, readContactLink, readDeviceInvite, readDhtFile, readDhtReactions, readDnsName, readEnrollGrant, readEnrollHello, readForwarded, readGroupFileMeta, readGroupHave, readGroupSignal, readGroupWant, readGroupWantNo, readHandoffAck, readHandoffBusy, readHandoffCancel, readHandoffData, readHandoffDone, readHandoffFileFrame, readHandoffHave, readHandoffHello, readHandoffManifest, readHandoffPake, readHandoffRelease, readHandoffTurnFrame, readHandoffVerified, readImageMeta, readInviteCode, readKnockSlot, readKnocks, readLinkRecord, readLobby, readManifest, readOwnRelayPayload, readPin, readReaction, readRelayBody, readReply, readSetUpdate, readStatusCard, readTurnBody, readTurnPacket, readWake, readWakePayload, readX401DcqlQuery, readX401OpenId4VpRequest, readX401ProofRequest, readX401ProofRequestHeader, readX401ProofResponse, readX401ProofResponseHeader, readX401ProofResult, readX401ProofResultHeader, readX401SdJwtVc, receivedIdentityStatus, receivedTimestamp, recordingMime, recordsFromTxt, recordsFromWellKnown, recordsName, refusalText, relativizeLocation, relayRequest, relayUrl, relayUrlProblem, relayedTransports, rememberAlone, removedCardText, replySnippet, requestLnurlInvoice, requestPlaintextBytes, requestRecords, resolveDidDht, resolveLightningDestination, resolveTargetUrl, revokesIdentity, ringAuthorization, ringClaims, ringEvidence, rosterAdmin, rosterHas, rosterHash, safeBlobType, sameButtonText, sameDigest, sameSshKey, sameStatusState, sameX401HolderJwk, sanitizeAvatar, sanitizeDisplayText, sanitizeFileName, sanitizeMime, sanitizeNick, sanitizePreviewImage, sanitizeRequestHeaders, sanitizeResponseHeaders, sanitizeStatusText, sanitizeTypingStatus, satsToBtc, sdpHasCandidates, sealGroupTyping, sealHandoffPiece, sealPair, sealSecret, sealTurnBody, sealedLength, seedSigner, seenEntry, sendBody, sentWhole, serviceIdFromName, servicesFromWire, servicesToWire, sessionCapabilitiesFrame, setAckFrame, setAppSignatureFastPath, setLinkTraceSink, setUpdateFrame, setUpdateMessage, settleRequest, sha256Hex, sha256Paced, sha256d, shortAtprotoDid, shortHash, shouldBeHub, shownTime, sign, signAppObject, signAppRevocation, signAppStore, signCommit, signCommunity, signDeviceTransports, signDidDhtPacket, signGroupMeta, signIdentityPresentation, signRelayPayload, signTombstone, signTurnBody, signTurnPacket, signTurnRelease, signalHasVideo, signingKeys, sortParts, sortRoster, sparkAddressKind, sparkInvoiceDetails, sparkNetworkOf, sshFingerprint, sshKeyDigestHex, sshSignCommand, stampHolds, staticDidDocument, statusCardBytes, statusCardText, statusFrame, statusState, storageProof, storageProofBody, storageProofPath, strictBase64Url, stripHidden, stripPictureMetadata, symmetricNat, takeRequest, taskProgress, toBase64, toBase64Url, toZ32, traceLink, transferEnded, transferStalled, transportOrder, trimEndOf, tryDecrypt, turnInstance, turnKeys, turnName, turnOff, turnPacket, turnPayloadSequence, turnPutSummary, turnReleaseMessage, turnSequence, turnSignedMessage, turnStatedVerifier, turnVerifierMark, txHash, txtValue, typingActivity, typingFrame, typingKindOf, u32, u64, unsignedCommitBytes, unsignedDeviceTransports, unusedInviteWait, unwrapPasted, usageLeft, utf8Decode, utf8Encode, validDomainRecord, validEditMessage, validEditNumber, validEditText, validExternalKey, validHead, validMentions, validReactionNumber, validRemovalNumber, validRingKey, validatePaymentTarget, vapidAuthorization, vapidKeysMatch, varBytes, verify, verifyAppRevocation, verifyAppSignature, verifyAppStatementBytes, verifyAtprotoRecordProof, verifyAtprotoSignature, verifyBip322, verifyBitcoinMessage, verifyChain, verifyCommit, verifyCommitSignature, verifyCommunityChain, verifyCommunityChainPaced, verifyCommunityCommit, verifyDeviceTransports, verifyEnrollProof, verifyGroupMetaSignature, verifyIdentityPresentation, verifyNostrProof, verifyPeerProof, verifyRingAuthorization, verifyRingEvidence, verifySetUpdate, verifySshSignature, videoMetadataPatches, viewerGuardOffset, viewerResponseHeaders, viewerServicePolicy, viewerTag, voiceDownloadName, voiceFileName, voiceLevel, voiceLevelsOf, voicePeaksOf, waitForIceGathering, wakeFrame, wakePayload, wakeRequest, walletNetworkOf, webCryptoSigner, webLocalFetch, wellKnownUrl, wireHubPolicy, wireMentions, wireReaction, wireReply, withRequestOptions, withViewerPolicy, withoutPictureMetadata, withoutVideoMetadata, wrapDataChannel, wrapGroupMeta, x401AnswerableRequests, x401ApprovalDigest, x401HolderJwk, x401VpToken, yieldThread };
390
+ export { ACTIVE_DHT_POLL_MS, ACTIVE_TASK_STATUSES, ANSWERS_REFUSED_PAUSES, ANSWERS_REFUSED_PAUSE_MS, ANSWER_READ_ALLOWANCE, ANSWER_READ_FIRST_MS, ANSWER_READ_SPACING_MS, ANSWER_REFUSED_REDIALS, APPS_CAPABILITY, APP_BUNDLE_LIMITS, APP_BUNDLE_MAGIC, APP_CLIENTS, APP_CLIENT_NAME, APP_DATA_MAX_BYTES, APP_FORBIDDEN_KEYS, APP_FRAME, APP_ICON_PATH, APP_NAME, APP_PEER_OPEN_MAX, APP_PERMISSIONS, APP_PREFIXES, APP_RANGES_CAPABILITY, APP_RANGE_DATA_KIND, APP_RANGE_ERRORS, APP_RANGE_FRAMES, APP_RANGE_LIMITS, APP_RATE_LIMIT, APP_RATE_WINDOW_MS, APP_RESUME_GRACE_MS, APP_SCREENSHOTS_DIR, APP_SEND_LIMIT, APP_STATEMENT_LIMITS, APP_STORE_KINDS, APP_STORE_LIMITS, APP_VERSION_MAX, APP_VIEWS, ATPROTO_DECLARED_SCOPE, ATPROTO_FULL_SCOPE, ATPROTO_PROOF_COLLECTION, ATPROTO_PROOF_SCOPE, AUDIO_METADATA_LIMITS, AUTOMATIC_ORDER, AWAITED_READS, AWAITING_PEER_MS, AppRanges, AppSessions, AtprotoCid, AtprotoProofError, BACKGROUND_REQUESTS_PER_MINUTE, BACKGROUND_WHILE_SIGNALING, BACKGROUND_WRITES_SHARE, BIP322_REVISION, BITCOIN_NETWORKS, BLOCKED_DIAL_WAIT_MS, BOLT11_PATTERN, BREAKER_ALL_DOWN_PROBE_MS, BREAKER_BASE_MS, BREAKER_MAX_MS, BREAKER_THRESHOLD, BURST_RING_MS, BUTTONS_CAPABILITY, BUTTON_ID, BUTTON_STYLES, BitcoinAddressError, ByteReader, CALLS_CAPABILITY, CALL_RATE_WINDOW_MS, CALL_RECEIVE_LIMIT, CALL_SIGNAL_FUTURE_MS, CALL_SIGNAL_MAX_AGE_MS, CAPS_ISSUED_BACK_MS, CAPS_LABEL, CAPS_LIMITS, CAPS_PUBLISH_SPACING_MS, CAPS_REFRESH_MS, CARRIED_DEFER_MS, CHAT_RESERVE, CHAT_RESERVE_MOST_SHARE, CHAT_RESERVE_PER_CHAT, CHAT_WATCH_SHARE, CHUNK_FLAG_END, CHUNK_KIND, CLIPBOARD_GUARD_HASH, CLIPBOARD_GUARD_SCRIPT, CLOCK_EVIDENCE_MS, CLOCK_OFF_MS, CLOCK_PEERS, CLOCK_PEER_READ_GAP_MS, CLOCK_SERVERS, COMMUNITY_EDIT_FRAME, COMMUNITY_LIMITS, COMMUNITY_PIN_FRAME, COMMUNITY_PROFILE, COMMUNITY_REACTION_FRAME, COMMUNITY_TOPOLOGY, CONNECT_TIMEOUT_MS, CONTACT_ASKER_FRAME, CONTACT_LINK_BYTES, CONTACT_LINK_VERSION, CONTACT_RECORD_TTL, CRON_LINE, CROSSED_FRESH_MS, CROSSED_PROBE_MS, CROSSED_WAIT_MS, CapsExchange, CapsKeys, CapsRefusedError, CarriedTransport, ChatFiles, ClockWatch, CommunitySession, ContactRequestError, DAEMON_WATCH_PEER_IDLE_MS, DATA_CHANNEL_ID, DATA_CHANNEL_LABEL, DATA_SETTLE_MS, DEFAULT_RELAYS, DEMOTE_AFTER_FAILURES, DEMOTE_MS, DEPARTED_READS, DEPARTED_READ_MS, DEVICES_CAPABILITY, DEVICE_CAPABILITIES, DEVICE_ECHO_FRAME, DEVICE_INVITE_BYTES, DEVICE_INVITE_LIFETIME_S, DEVICE_INVITE_OWN_DEVICE, DEVICE_INVITE_VERSION, DEVICE_KINDS, DEVICE_PING_FRAME, DEVICE_WAKE_TTL_SECONDS, DHT_FILE_CAPABILITY, DHT_FILE_REFUSED, DHT_FILE_TOO_LARGE, DHT_MESSAGE_TTL, DHT_PIN_GRACE_MS, DHT_POLL_INTERVALS, DHT_TEXT_BYTES, DHT_TEXT_CAPABILITY, DHT_TEXT_REFUSED, DID_DHT_MAX_PAYLOAD, DID_DHT_PREFIX, DID_DHT_TTL, DID_DHT_VERSION, DID_DOCUMENT_MAX_BYTES, DID_FILE_MAX_BYTES, DID_GHOSTLY_SERVICE, DID_JWS_ALGS, DID_JWS_MAX_LENGTH, DID_MAX_LENGTH, DID_METHODS, DIRECT_EVIDENCE_MS, DIRECT_OWN_ATTEMPTS, DIRECT_PEERS, DNS_LABEL, DNS_TYPE, DOMAIN_FILE_MAX_BYTES, DOMAIN_MAX_RECORDS, DOMAIN_METHODS, DOMAIN_TXT_MAX_BYTES, DataLink, DhtDelivery, DidDhtError, DidError, DirectPathWatch, DiscoveryBudgetError, EARLY_DIAL_JOIN_MS, EDITED_FRAME, EDIT_BUFFER_MAX, EDIT_BUFFER_MS, EDIT_CAPABILITY, EDIT_FRAME, EDIT_RATE_WINDOW_MS, EDIT_RECEIVE_LIMIT, EDIT_SEND_LIMIT, ENDPOINT, ENGINE_ERRORS, ENROLL_CANCEL, ENROLL_CANCEL_REASONS, ENROLL_CAPABILITY, ENROLL_DONE, ENROLL_GRANT, ENROLL_HELLO, ENROLL_PROOF, ETHEREUM_USDT, EVM_TEST_CHAINS, EXPECT_PEER_MS, EngineError, FILES_BINARY_CAPABILITY, FILES_CAPABILITY, FILE_DATA_KIND, FILE_FRAMES, FILE_LIMITS, FIRST_PAIRING_PACE_MS, FIRST_PUBLISH_MAX_MS, FLOOD_PER_DAY, FOLLOW_MS, FORWARD_LIMITS, FRESH_READ_MS, FileTransfers, FileUplink, GATHER_ATTEMPTS, GATHER_STALL_MS, GROUP_ADMIN_OFF_ERROR, GROUP_BURST_MS, GROUP_BURST_ONE_LINK, GROUP_EDIT_FRAME, GROUP_EDIT_TEXT_BYTES, GROUP_ENTRY_PROFILE, GROUP_FILE_LIMITS, GROUP_HAVE_FRAME, GROUP_ID, GROUP_LIMITS, GROUP_MEMBER_CAP, GROUP_META_PAST, GROUP_META_PAST_CHARS, GROUP_OVER_PACE_MS, GROUP_PIN_FRAME, GROUP_PROFILE, GROUP_RATION_WINDOW_MS, GROUP_REACTED_FRAME, GROUP_REACTION_FRAME, GROUP_READ_NOTE, GROUP_READ_NOTE_COMMUNITY, GROUP_SIGNALING_ALLOWANCE_SHARE, GROUP_SIGNAL_FRAME, GROUP_TYPING_FRAME, GROUP_VERSION_FILES, GROUP_VERSION_HUBS, GROUP_VERSION_LARGE, GROUP_VERSION_SIGNALS, GROUP_WAKE_FRAME, GROUP_WAKE_GROUP_LIMIT, GROUP_WAKE_GROUP_WINDOW_MS, GROUP_WAKE_MEMBER_INTERVAL_MS, GROUP_WAKE_RECEIVE_LIMIT, GROUP_WANT_FRAME, GROUP_WANT_NO_FRAME, GhostLink, GhostlyHttpError, GroupSession, GroupTypingBoard, GroupWakeLimiter, HANDLED_WAIT_MS, HANDOFF_ACK, HANDOFF_ATTEMPTS, HANDOFF_BUSY, HANDOFF_BUSY_REASONS, HANDOFF_CANCEL, HANDOFF_CANCEL_REASONS, HANDOFF_CAPABILITY, HANDOFF_DATA, HANDOFF_DONE, HANDOFF_FILE_MISSING, HANDOFF_FILE_REQUEST, HANDOFF_HAVE, HANDOFF_HELLO, HANDOFF_LATER_BYTES, HANDOFF_LIST_PER_FRAME, HANDOFF_MANIFEST, HANDOFF_OFFER, HANDOFF_PAKE, HANDOFF_PIECE_BYTES, HANDOFF_PIECE_OVERHEAD, HANDOFF_RELEASE, HANDOFF_REQUEST, HANDOFF_TIMINGS, HANDOFF_VERIFIED, HANDOFF_VERSION, HANDOFF_WINDOW, HEDGE_MISSING_MS, HEDGE_MS, HOLD_CAPABILITY, HOLD_DATED_BACK_MS, HOLD_LIMITS, HTTP_SERVICE_PROTO, HoldKeys, HoldRefusedError, HttpClient, HttpHost, IDENTITY_CHALLENGE_WINDOW, IDENTITY_CHECK_UNAVAILABLE, IDENTITY_CLOCK_SKEW, IDENTITY_FRAME_LIMIT, IDENTITY_FRAME_WINDOW_MS, IDENTITY_MAX_CHECKS_PER_HOUR, IDENTITY_MAX_EVIDENCE, IDENTITY_MAX_FRAME, IDENTITY_MAX_RECEIVED, IDENTITY_MAX_VALIDITY, IDENTITY_MEMO_SIZE, IDENTITY_PROOF_CAPABILITY, IDENTITY_PROVIDER_ID, IDENTITY_REUSE_CHECK_S, IDENTITY_REVOCATION_LABEL, IDENTITY_STATEMENT_PREFIX, IDENTITY_SUBJECT, IDENTITY_TIMELINE_MAX, IDLE_THRESHOLD, IMAGE_LIMITS, INVITER_DIAL_GRACE_MS, INVITE_HRP, INVITE_LINK_ORIGIN, INVITE_MAX_LENGTH, INVITE_TAKEN, INVITE_VERSION, ITEM_STATES, IdentityCheckUnavailable, IdentityExchange, KNOCK_SLOTS, KNOCK_SLOT_LABEL, KNOCK_TTL_MS, KNOWN_SESSION_CAPABILITIES, LABEL, LATE_ANSWER_MS, LEGACY_GROUP_MEMBERS, LEGACY_SERVICES, LIGHTNING_DESTINATION_PATTERN, LIMITS, LINK_MAX_CHARS, LINK_PREVIEW_LIMITS, LINK_RECORD_LABEL, LINK_TRAILING, LIVENESS_MISSED_PINGS, LIVENESS_PING_MS, LIVE_POLL_MS, LNURL_LIMITS, LinkSession, MAX_AVATAR_LENGTH, MAX_AVATAR_SIDE, MAX_CHUNK_PAYLOAD_BYTES, MAX_DHT_TEXT_BYTES, MAX_DNS_PACKET_BYTES, MAX_DONE, MAX_EDITS_PER_MESSAGE, MAX_GROUP_CHAIN, MAX_GROUP_MEMBERS, MAX_GROUP_META_BODY, MAX_GROUP_NAME_BYTES, MAX_GROUP_NAME_LENGTH, MAX_GROUP_PICTURE_LENGTH, MAX_KNOCKS, MAX_MISSED, MAX_MSGS_PAYLOAD_B64, MAX_NICK_LENGTH, MAX_PAIRED_CALL_SIGNAL, MAX_PAIRED_MESSAGE_FRAME, MAX_REMOVAL_NUMBER, MAX_SEEN, MAX_SERVICES, MAX_SKIP, MAX_SKIPPED_KEYS, MAX_SLOT_KNOCKS, MAX_WAITING, MEMBER_KEY, MENTION_EVERYONE, MENTION_LIMITS, MESH_HUBS, MESSAGE_CLOCK_SKEW_MS, MessageRefusal, NEW_PER_HOUR, NIP05_PATH, NO_ATTEMPTS, NO_AUDIO_METADATA, NO_HUB_POLICY, NO_PICTURE_METADATA, NO_VIDEO_METADATA, OFFER_FAST_MS, OFFER_HOST_GATHER_MS, OFFER_LOOK_MS, OFFER_STEP_MAX, ONCHAIN_PROVIDER, OWN_FRAME_LIMIT, OwnInviteError, PAIRED_CALL_CANDIDATES, PAIRED_CALL_FRAME, PAIRED_FRAME_TOO_LARGE, PAIRED_PROFILE, PAIRED_REPLY_AUTHORS, PAIRING_ATTEMPT_MS, PAIRING_RETRY_MS, PICTURE_METADATA_LIMITS, PINNED_FRAME, PIN_CAPABILITY, PIN_CLOCK_SKEW_MS, PIN_FRAME, PIN_LIMITS, PKARR_FUTURE_SKEW_MS, PLAYABLE_AUDIO, PLAYABLE_VIDEO, PONG_WAIT_MS, PRESENCES, PRESENCE_HEARTBEAT, PRESENCE_WINDOW, PREVIEWABLE_IMAGE, PREVIOUS_DEFAULT_RELAYS, PROOF_ADAPTERS, PROOF_CAPABILITY, PROTOCOL_VERSION, PR_CHECKS, PR_STATES, PUBKY_PROOF_MAX_BYTES, PUBKY_PROOF_ROOT, PUSH_PAD_BYTES, PUSH_SERVICE_HOSTS, PacketTooLargeError, PairedCalls, PairedSession, PairingTracker, PaymentPreflightError, PeerProofs, PublishFailedError, QUICK_REACTIONS, QUICK_REDIAL_MS, RACE_ANSWERED_MS, RACE_DIRECT_MS, RACE_RELAYED_MS, RATCHET_CAPABILITY, RATCHET_HEADER_BYTES, RATCHET_KEEP_MS, RATCHET_OVERHEAD, REACTED_FRAME, REACTIONS_CAPABILITY, REACTION_FRAME, REACTION_LIMITS, REANSWERS, RECORDING_TYPES, RECORD_TTL, REDESCRIBED_GRACE_MS, RELAY_PAYLOAD_MAX_BYTES, RELAY_POLL_INTERVALS, RELAY_REQUESTS_PER_MINUTE, RELAY_URL, RELAY_WITH_SECRETS, REMOVABLE_KINDS, REMOVED_TEXT, REOPEN_BELOW, REPLY_ID, REPLY_LIMITS, REQUESTS_PER_MINUTE, REQUEST_CLOCK_SKEW_MS, REQUEST_LABEL, REQUEST_LIFETIME_MS, REQUEST_NAME_UNITS, REQUEST_PACKET_BYTES, REQUEST_TEXT_BYTES, RESUME_WAIT_MS, RING_LIFETIME, ROUTINE_STATES, RTC_CONFIG, RTC_SIGNAL_FUTURE_MS, RTC_SIGNAL_MAX_AGE_MS, RTC_SIGNAL_RATE_WINDOW_MS, RTC_SIGNAL_RECEIVE_LIMIT, RTC_UNSTARTED_MS, RUN_RESULTS, RatchetBox, RateWindow, ReactionWindow, RelayBreaker, RelayTransport, RelaysFailedError, SAID_AGAIN, SEPOLIA_TEST_USDT, SEPOLIA_TEST_USDT_FAUCET, SERVICES_CAPABILITY, SERVICES_VERSION, SESSION_CAPABILITIES_FRAME, SESSION_FRAME_MAX, SESSION_RECEIVE_PENDING, SET_ACK, SET_UPDATE, SIGNALING_ALLOWANCE_SHARE, SIGNALING_WINDOW_MS, SIGNALS_PER_MINUTE, SIGNAL_CARRIERS, SIGNAL_DUE_READS, SIGNAL_FRESH_MS, SIGNAL_HOLD_MS, SIGNAL_OUT_READS, SIGNAL_PROVEN_MS, SIGNAL_REPLY_MS, SLOW_DEMOTE_MS, SLOW_MS, SPARK_NETWORKS, SPARK_PROVIDER, SSHSIG_MAX_ARMOR, SSHSIG_NAMESPACE, SSH_KEY_TYPES, SSH_PUBLIC_KEY_MAX, STALLED_EVIDENCE_MS, STALLED_LOOK_MS, STAMP_BITS_DEFAULT, STAMP_BITS_MAX, STAMP_BITS_MIN, STATUS_AVAILABILITIES, STATUS_CAPABILITY, STATUS_CARD_CAPABILITY, STATUS_CARD_LIMITS, STATUS_FRAME, STATUS_IDLE_AFTER_MS, STATUS_RATE_LIMIT, STATUS_RATE_WINDOW_MS, STATUS_SEND_INTERVAL_MS, STATUS_TEXT_MAX, STORAGE_LIFETIME, STORAGE_ROOT, SWITCH_RETIRE_MS, SessionCapabilities, SshSigError, StatusReceiver, StatusSender, TASK_STATUSES, TEST_USDT_FAUCET_AMOUNT, TOMBSTONE_SEQUENCE, TOMBSTONE_TURN, TRANSPORTS, TRANSPORTS_GONE_MS, TURN_BODY_BYTES, TURN_LABEL, TURN_LAST_SEQUENCE, TURN_MAX, TURN_NAME_BYTES, TURN_NO_ACTIVE, TURN_PUT_WINDOW_MS, TURN_RAISE_READ_TIMEOUT_MS, TURN_REV_LIMIT, TURN_SEALED_BYTES, TURN_SETTLE_MS, TURN_SIGNED_BYTES, TURN_SLOTS, TURN_SOURCE_TIMEOUT_MS, TURN_TTL, TURN_VERSION, TURN_VISIBLE_MS, TYPING_CAPABILITY, TYPING_FRAME, TYPING_KINDS, TYPING_RATE_LIMIT, TYPING_RATE_WINDOW_MS, TYPING_REFRESH_MS, TYPING_SEND_LIMIT, TYPING_STATUS_MAX, TYPING_TIMEOUT_MS, TurnRecordError, TypingReceiver, TypingSender, UNPROVEN_AUTH_MS, UNUSED_INVITE_READS_PER_MINUTE, UNUSED_INVITE_UPKEEP_MS, UNUSED_INVITE_WAIT_MAX_MS, UPGRADE_CAPABILITY, USDT_PUBLIC_RPC, VIDEO_LIMITS, VIDEO_METADATA_LIMITS, VIEWER_DROPPED_DIRECTIVES, VIEWER_DROPPED_HEADERS, VIEWER_GUARD_CSP, VIEWER_GUARD_HASH, VIEWER_GUARD_SCRIPT, VIEWER_SERVICE_CSP, VIEWER_SERVICE_CSP_RELAY_ONLY, VOICE_LIMITS, VOICE_METER, WAKE_ANSWER_GRACE_MS, WAKE_CALL_INTERVAL_MS, WAKE_CALL_TTL_SECONDS, WAKE_CALL_WAIT_MS, WAKE_SESSION_CAPABILITY as WAKE_CAPABILITY, WAKE_SESSION_CAPABILITY, WAKE_FRAME, WAKE_INTERVAL_MS, WAKE_LOST_MS, WAKE_ONLINE_BATCH, WAKE_ONLINE_BATCH_MS, WAKE_ONLINE_DELAY_MS, WAKE_ONLINE_INTERVAL_MS, WAKE_ONLINE_TTL_SECONDS, WAKE_RETRY_MS, WAKE_SUBJECT, WAKE_TTL_SECONDS, WALLET_NETWORKS, WATCH_PEER_MS, WATCH_SHARE, WAY_BACK_SHARE, WEBRTC_GUARD, WELL_KNOWN_PATH, WRITE_FIRST_MS, WakeLimiter, WebPushError, X401_CREDENTIAL_LIMITS, X401_DCQL_LIMITS, X401_HEADERS, X401_LIMITS, X401_PROTOCOLS, X401_REQUEST_LIMITS, X401_RESPONSE_MODES, X401_SCHEME, X401_VERSION, addedAppPermissions, allowingViewerGuard, answersOffer, appCardId, appCardUrl, appCloseFrame, appDataBytes, appDataFrame, appDigest, appFingerprint, appOpenFrame, appRangeCancelFrame, appRangeChunk, appRangeDataFrame, appRangeEndFrame, appRangeErrorFrame, appRangeGetFrame, appRef, appRefPublisher, appRevocationFor, appRevocationId, appSignedBytes, appStoreDecision, appUpdateDecision, appViewOf, applyIdentityEvent, arkAddressPrefix, arrivalKey, asWritten, assembleAppBundle, assertTokenUnits, assertWholeSats, atprotoCidFor, atprotoDidMethod, atprotoProofRecord, atprotoProofRkey, audioMetadataPatches, automaticTransport, baseMime, beaconKeys, beaconRecords, bip322MessageHash, bip322ToSign, bip322ToSpend, boundIdentityDisplay, boundVerifiedIdentity, budgetRetryMs, buildAppBundle, buildDataSdp, buildLinkRecords, buildSdpFromSignal, buildX401ProofRequest, buildX401ProofResult, buildX401ResultArtifact, buildX401TokenObject, buttonLabelClash, bytesEqual, callRtcConfig, callSignalHeardAt, canonicalJson, canonicalJsonBytes, canonicalUrl, capsDescriptors, cardEditNumber, cardLine, cardLinkHost, cardTimeUtc, cardUrl, carryMentions, cashuRequestPayload, chainPieces, chatAppId, checkAppBeforeRun, checkAppListing, checkAppManifest, checkAppRevokeStatement, checkAppStoreIndex, checkAtprotoProofRecord, checkDidJws, checkDidSignature, checkPushEndpoint, checkStatusCard, checkedDescriptors, claimedTime, classifyTurnRead, clearMissed, clockOffset, commitHash, commitUntaggedHash, communityCommitHash, communityEditFrame, communityGroupId, communityHasFrame, communityMessageAuthor, communityMessageId, communityRoster, communityUntaggedHash, compactSize, compareVersions, compressSdp, concatBytes, confirmationMatches, confirmationTag, contactAskerFrame, contactAskerHolds, contactDay, contactRtcConfig, countUnusedInvite, createChatInvite, createContactLink, createDeviceInvite, createIdentity, createLink, createRelayPayload, currentRelays, decodeAnyBitcoinAddress, decodeAppRangeData, decodeAtprotoCommit, decodeBase64, decodeBitcoinAddress, decodeBolt11, decodeChunk, decodeCommunityLink, decodeControl, decodeDagCbor, decodeDidDhtPacket, decodeDnsAnswers, decodeDnsResponse, decodeFileData, decodeGroupEntryLink, decodeInviteCode, decodeServices, decodeSvcbRecords, decodeTx, decodeTxtPacket, decodeWitness, decodeX401Header, decompressSdp, decrypt, decryptPushPayload, decryptText, derivedSecret, deviceEchoFrame, deviceEchoNonce, deviceFrameCapability, deviceInviteJoinerKeyZ32, deviceInviteJoinerParams, deviceKeyZ32, deviceLinkPairing, deviceLinkParams, deviceLinkRendezvousSeed, deviceLinkSealKey, deviceLinkSecret, devicePingFrame, deviceWakeRequest, dhtEditId, dhtFileElements, dhtFileId, dialDescriptors, dialableIrohRelay, didDhtDocument, didDhtFromPublicKey, didDhtKey, didDhtRecords, didGhostlyServiceEntry, didJwsAlg, didSignedMessages, didWebDocumentUrl, didWebFile, didWebFileNames, didWebFileUrl, didWebHost, directBlocked, dnsProofName, domainTxtRecord, domainWellKnownFile, doorHubs, downsamplePeaks, dropLoneJoiners, edgeParams, editFrame, editedFrame, emptyCapsState, emptyDhtDeliveryState, emptyIdentityLedger, emptyLinkRecords, emptyProofLedger, emptyRatchetState, encodeAppRangeData, encodeChunk, encodeCommunityLink, encodeContactLink, encodeControl, encodeDagCbor, encodeDeviceInvite, encodeDidDhtDeactivated, encodeDidDhtPacket, encodeDnsQuery, encodeFileData, encodeGhostlyInvite, encodeGroupEntryLink, encodeGroupMetaBody, encodeInviteCode, encodePacketTransports, encodeServices, encodeSetSlots, encodeSvcbPacket, encodeTurnFields, encodeTx, encodeTxtPacket, encodeWitness, encodeX401Header, encrypt, encryptPushPayload, encryptText, endedRequests, engineError, engineText, enrollCancelFrame, enrollCancelReason, enrollDigits, enrollDoneFrame, enrollGrantFrame, enrollHelloFrame, enrollMessage, enrollProofFrame, entryParams, epochKeys, exifOrientation, expectedRoster, extractParamsFromSdp, extractRtcParams, fedimintRequestPayload, fetchLnurlJson, fetchesByItself, fileMessageText, filePartDigest, filePartName, findAppForbiddenKey, findBolt11, findEndpoint, findInMst, findLightningDestination, firstDeviceSetSecret, formatEnrollDigits, formatFileSize, formatLocalTarget, formatPaymentAmount, formatVideoDuration, formatVoiceDuration, forwardedAgain, forwardedMany, frameBytes, freshHubs, fromBase64, fromBase64Url, fromZ32, generateEncryptionKey, generateVapidKeys, groupDisplayName, groupEntryUrl, groupFileFallback, groupMessageId, groupMetaBody, groupMetaChange, groupMetaNewer, groupMetaPicture, groupMetaTag, groupMetaToHand, groupName, groupReplyAuthor, groupSignalFrame, groupTypingEpoch, groupWakeFrame, groupWakes, guardViewerAnswer, handoffAckFrame, handoffAttemptAllowed, handoffAttemptFailed, handoffAttemptSucceeded, handoffBusyFrame, handoffCancelFrame, handoffContext, handoffContextProof, handoffDataFrame, handoffDigest, handoffDoneFrame, handoffEphemeral, handoffFileMissingFrame, handoffFileRequestFrame, handoffHaveFrames, handoffHelloFrame, handoffManifestFrames, handoffOfferFrame, handoffPakeFrame, handoffReleaseFrame, handoffRequestFrame, handoffRetryAfter, handoffStreamKey, handoffVerifiedFrame, handoffVerifiedMessage, handoffVersions, hasVisible, hash160, heardCallSignal, heardTime, heldBackError, homeserverWebEndpoint, hubRank, identityFromSeed, identityFromSeedB64, identityPresentationBytes, identityRefusal, identityRevocationValue, identityStatement, identityStatementText, imageSize, importedProof, inboxRecord, inviteLink, inviteOwnership, inviteQrSegments, inviteQrText, invoiceCallbackUrl, irohDescriptor, irohRelayUrl, isAppHash, isAppKey, isAppLicense, isAppLine, isAppPath, isAppRef, isAppSignature, isAppUrl, isAppVersion, isAtprotoDid, isBitcoinAddress, isCandidateAddress, isChatAppId, isDiscoveryBudgetError, isEmptyLinkPacket, isFederationId, isGlobalIpv4Host, isGroupMessageId, isHandoffPartName, isHoldUrl, isIdentityBinding, isImageMime, isLegacySignature, isNewerVersion, isPlayableAudioType, isPlayableVideoType, isProofAdapter, isPubkyKey, isPubkyProofFolder, isPublicAddress, isRatcheted, isServeId, isSparkAddress, isStrippedPicture, isValidServiceId, isVideoMime, isViewerTag, isWalletNetwork, isX401Protocol, isZ32Key, jpegSize, jwkThumbprint, keepPastGroupMeta, keepsToRelays, keptAtEqualSequence, knockHolds, knockIdentity, knockRecords, knockSlotIdentity, knockSlotOf, knockSlotRecords, lastSharedWithMe, leaveStands, leaveStatement, leaveStatement3, leftStatement, legacyMessageHash, linkEnd, linkRecords, linkStop, linksIn, liveStatus, lobbyKeys, lobbyRecords, makeStamp, makeStampPaced, matchX401Dcql, mayBeHub, mayPin, measureRecords, mentionedMembers, mentionsBytes, mentionsMember, mergeBeacon, mergeContactKnocks, mergeKnocks, mergeLobby, meshHubs, meshMessageRef, meshRendezvous, newDeviceSetSecret, newEpochSecret, newHandoffId, newMailbox as newHoldMailbox, newIdentityBinding, newInbox, newPubkyProofFolder, newWakeToken, newX401HolderKey, newerHead, newerPacket, nextGroupMetaRevision, nextPinNumber, nextReactionNumber, nextTurnPosition, nip05RootKey, normalizeAtprotoHandle, normalizeDid, normalizeDomain, normalizePubkyKey, normalizeRelayUrl, nostrProofTemplate, offerIsFresh, openDidDhtPayload, openGroupMeta, openGroupTyping, openHandoffPiece, openPair, openRelayPayload, openRequest, openSecret, openTurnValue, ownInviteRefusal, pacer, pairedEditFits, pairedMessageFits, pairedMessageFrame, pairedReplyAuthor, parseAppFrame, parseAppRangeFrame, parseAtprotoCar, parseAtprotoDidDocument, parseAtprotoDidKey, parseAtprotoVerificationKey, parseCallSignal, parseCashuRequestPayload, parseCommunityEdit, parseDid, parseDidDocument, parseDidJws, parseDidSignaturePaste, parseDomainTxt, parseEditFrame, parseEditedFrame, parseEngineError, parseFedimintRequestPayload, parseGroupCommit, parseGroupMetaBody, parseGroupMetaFrame, parseGroupMetaStatement, parseGroupMetaTag, parseGroupWakeFrame, parseHubPolicy, parseImageMeta, parseInvoiceCallback, parseLightningDestination, parseLinkPreview, parseLinkRecords, parseLocalTarget, parsePacketTransports, parsePairedCallFrame, parsePayParams, parsePaymentAmount, parsePaymentNetworks, parsePinFrame, parsePinnedFrame, parseReactedFrame, parseReactionFrame, parseRelayPayload, parseRtcSignal, parseSessionCapabilities, parseSshPublicKey, parseSshSignature, parseStatusFrame, parseTypingActivity, parseTypingFrame, parseVideoMeta, parseVoiceMeta, parseWakeFrame, pastedAgain, paymentUri, peekDhtMailbox, personStatus, pickCallCandidates, pickHubs, pickMeshHubs, pinFrame, pinIsNewer, pinNumberHolds, pinnedFrame, plainStatusLine, planAppUpdate, planKnocks, presenceSeenAt, presentX401SdJwtVc, previewImageSize, previewable, proofCapability, proofHash, proofStatement, pubkyHomeserverOf, pubkyProofCapability, pubkyProofFile, pubkyProofPath, publicKeyFromZ32, publishFailure, publishedNowhere, pushRequest, qrText, queueReaction, randomBytes, rankHubs, rankTransports, ratchetHeard, ratchetOn, ratchetOpen, ratchetRoot, ratchetSeal, ratchetSessionOf, ratchetUnknownSession, reactedFrame, reactionEmoji, reactionFrame, reactionIsNewer, readAppBundle, readAppBundleAsync, readAppFrame, readAppListing, readAppRangeFrame, readAppRevocation, readAppRevocationShape, readAppRevocations, readAppSignature, readAppStore, readAppStoreSteps, readAtprotoCid, readBeacon, readBeaconHead, readCanonicalJson, readContactLink, readDeviceInvite, readDhtFile, readDhtReactions, readDnsName, readEnrollGrant, readEnrollHello, readForwarded, readGroupFileMeta, readGroupHave, readGroupSignal, readGroupWant, readGroupWantNo, readHandoffAck, readHandoffBusy, readHandoffCancel, readHandoffData, readHandoffDone, readHandoffFileFrame, readHandoffHave, readHandoffHello, readHandoffManifest, readHandoffPake, readHandoffRelease, readHandoffTurnFrame, readHandoffVerified, readImageMeta, readInviteCode, readKnockSlot, readKnocks, readLinkRecord, readLobby, readManifest, readOwnRelayPayload, readPin, readReaction, readRelayBody, readReply, readSetUpdate, readStatusCard, readTurnBody, readTurnPacket, readWake, readWakePayload, readX401DcqlQuery, readX401OpenId4VpRequest, readX401ProofRequest, readX401ProofRequestHeader, readX401ProofResponse, readX401ProofResponseHeader, readX401ProofResult, readX401ProofResultHeader, readX401SdJwtVc, readingAhead, receivedIdentityStatus, receivedTimestamp, recordingMime, recordsFromTxt, recordsFromWellKnown, recordsName, refusalText, relativizeLocation, relayRequest, relayUrl, relayUrlProblem, relayedTransports, rememberAlone, removedCardText, replySnippet, requestLnurlInvoice, requestPlaintextBytes, requestRecords, resolveDidDht, resolveLightningDestination, resolveTargetUrl, revokesIdentity, ringAuthorization, ringClaims, ringEvidence, rosterAdmin, rosterHas, rosterHash, safeBlobType, sameButtonText, sameDigest, sameSshKey, sameStatusState, sameX401HolderJwk, sanitizeAvatar, sanitizeDisplayText, sanitizeFileName, sanitizeMime, sanitizeNick, sanitizePreviewImage, sanitizeRequestHeaders, sanitizeResponseHeaders, sanitizeStatusText, sanitizeTypingStatus, satsToBtc, sdpHasCandidates, sealGroupTyping, sealHandoffPiece, sealPair, sealSecret, sealTurnBody, sealedLength, seedSigner, seenEntry, sendBody, sentWhole, serviceIdFromName, servicesFromWire, servicesToWire, sessionCapabilitiesFrame, setAckFrame, setAppSignatureFastPath, setLinkTraceSink, setUpdateFrame, setUpdateMessage, settleRequest, sha256Hex, sha256Paced, sha256d, shortAtprotoDid, shortHash, shouldBeHub, shownTime, sign, signAppObject, signAppRevocation, signAppStore, signCommit, signCommunity, signDeviceTransports, signDidDhtPacket, signGroupMeta, signIdentityPresentation, signRelayPayload, signTombstone, signTurnBody, signTurnPacket, signTurnRelease, signalHasVideo, signingKeys, sortParts, sortRoster, sparkAddressKind, sparkInvoiceDetails, sparkNetworkOf, sshFingerprint, sshKeyDigestHex, sshSignCommand, stampHolds, staticDidDocument, statusCardBytes, statusCardText, statusFrame, statusState, storageProof, storageProofBody, storageProofPath, strictBase64Url, stripHidden, stripPictureMetadata, symmetricNat, takeRequest, taskProgress, toBase64, toBase64Url, toZ32, traceLink, transferEnded, transferStalled, transportOrder, trimEndOf, tryDecrypt, turnInstance, turnKeys, turnName, turnOff, turnPacket, turnPayloadSequence, turnPutSummary, turnReleaseMessage, turnSequence, turnSignedMessage, turnStatedVerifier, turnVerifierMark, txHash, txtValue, typingActivity, typingFrame, typingKindOf, u32, u64, unsignedCommitBytes, unsignedDeviceTransports, unusedInviteWait, unwrapPasted, usageLeft, utf8Decode, utf8Encode, validDomainRecord, validEditMessage, validEditNumber, validEditText, validExternalKey, validHead, validMentions, validReactionNumber, validRemovalNumber, validRingKey, validatePaymentTarget, vapidAuthorization, vapidKeysMatch, varBytes, verify, verifyAppRevocation, verifyAppSignature, verifyAppStatementBytes, verifyAtprotoRecordProof, verifyAtprotoSignature, verifyBip322, verifyBitcoinMessage, verifyChain, verifyCommit, verifyCommitSignature, verifyCommunityChain, verifyCommunityChainPaced, verifyCommunityCommit, verifyDeviceTransports, verifyEnrollProof, verifyGroupMetaSignature, verifyIdentityPresentation, verifyNostrProof, verifyPeerProof, verifyRingAuthorization, verifyRingEvidence, verifySetUpdate, verifySshSignature, videoMetadataPatches, viewerGuardOffset, viewerResponseHeaders, viewerServicePolicy, viewerTag, voiceDownloadName, voiceFileName, voiceLevel, voiceLevelsOf, voicePeaksOf, waitForIceGathering, wakeFrame, wakePayload, wakeRequest, walletNetworkOf, webCryptoSigner, webLocalFetch, wellKnownUrl, wireHubPolicy, wireMentions, wireReaction, wireReply, withRequestOptions, withViewerPolicy, withoutAudioMetadata, withoutPictureMetadata, withoutVideoMetadata, wrapDataChannel, wrapGroupMeta, x401AnswerableRequests, x401ApprovalDigest, x401HolderJwk, x401VpToken, yieldThread };
206
391
 
207
392
  //# sourceMappingURL=core.js.map
package/dist/core.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"core.js","names":[],"sources":["../../core/src/paymentUri.ts","../../core/src/version.ts","../../core/src/clockWatch.ts"],"sourcesContent":["/**\n * Payment URIs for a wallet that is not Ghostly: what a QR code shows and what a `lightning:` or\n * `bitcoin:` link opens. Building them is all this does; whether the payment arrives is watched by the\n * payee's own source, never assumed from the link having been opened.\n *\n * - `lightning:<invoice>` ([BOLT 11](https://github.com/lightning/bolts/blob/master/11-payment-encoding.md)).\n * - `bitcoin:<address>?amount=<btc>&lightning=<invoice>` ([BIP 21](https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki)),\n * with the `lightning` parameter of the unified QR convention when an invoice exists too.\n * - `bitcoin:?ark=<address>&amount=<btc>` for an Ark address, the BIP 21 form Ark wallets read.\n */\nexport type PaymentUriInput =\n | { kind: \"lightning\"; invoice: string }\n | { kind: \"bitcoin\"; address: string; amountSat?: number; label?: string; message?: string; lightning?: string }\n | { kind: \"ark\"; address: string; amountSat?: number };\n\n/** Whole sats as the decimal BTC amount BIP 21 wants (`21` → `0.00000021`), never in exponent form. */\nexport function satsToBtc(sats: number): string {\n if (!Number.isSafeInteger(sats) || sats < 0) throw new Error(\"Amount must be a whole number of sats\");\n const whole = Math.floor(sats / 100_000_000);\n const fraction = String(sats % 100_000_000).padStart(8, \"0\").replace(/0+$/, \"\");\n return fraction ? `${whole}.${fraction}` : String(whole);\n}\n\nconst cleanInvoice = (invoice: string) => invoice.trim().toLowerCase().replace(/^lightning:/, \"\");\n\n/** The URI to open in another wallet. Throws on an input that cannot be one. */\nexport function paymentUri(input: PaymentUriInput): string {\n if (input.kind === \"lightning\") {\n const invoice = cleanInvoice(input.invoice);\n if (!/^ln[a-z0-9]+$/.test(invoice)) throw new Error(\"That is not a Lightning invoice\");\n return `lightning:${invoice}`;\n }\n const params = new URLSearchParams();\n if (input.kind === \"ark\") {\n if (!/^[a-z0-9]+$/i.test(input.address)) throw new Error(\"That is not an Ark address\");\n params.set(\"ark\", input.address);\n if (input.amountSat) params.set(\"amount\", satsToBtc(input.amountSat));\n return `bitcoin:?${params.toString()}`;\n }\n if (!/^[a-zA-Z0-9]+$/.test(input.address)) throw new Error(\"That is not a Bitcoin address\");\n if (input.amountSat) params.set(\"amount\", satsToBtc(input.amountSat));\n if (input.label) params.set(\"label\", input.label.slice(0, 140));\n if (input.message) params.set(\"message\", input.message.slice(0, 140));\n if (input.lightning) params.set(\"lightning\", cleanInvoice(input.lightning));\n // `+` would be read as a space by some wallets; BIP 21 wants percent-encoding.\n const query = params.toString().replace(/\\+/g, \"%20\");\n return query ? `bitcoin:${input.address}?${query}` : `bitcoin:${input.address}`;\n}\n\n/**\n * What to put in the QR code: a `lightning:` URI in upper case, so the code uses the smaller alphanumeric\n * mode every Lightning wallet reads; anything with characters outside that mode as it is.\n */\nexport function qrText(uri: string): string {\n const upper = uri.toUpperCase();\n return /^[A-Z0-9 $%*+\\-./:]*$/.test(upper) ? upper : uri;\n}\n","/**\n * Which of two released versions is newer. Every client asks this of whatever\n * it found published, so a malformed answer must never read as an update: the\n * numbers are the only thing trusted here, and anything else sorts as older.\n */\n\n/** `1.2.3`, with an optional `v` and an optional `-beta.1` this ignores. */\nconst RELEASE = /^v?(\\d{1,6})\\.(\\d{1,6})\\.(\\d{1,6})(?:[-+].*)?$/;\n\nfunction parse(version: string): [number, number, number] | null {\n const match = RELEASE.exec(version.trim());\n return match ? [Number(match[1]), Number(match[2]), Number(match[3])] : null;\n}\n\n/** Negative when `a` is older, positive when it is newer, 0 when they match or either is not a version. */\nexport function compareVersions(a: string, b: string): number {\n const left = parse(a);\n const right = parse(b);\n if (!left || !right) return 0;\n for (let i = 0; i < 3; i++) {\n if (left[i] !== right[i]) return left[i] - right[i];\n }\n return 0;\n}\n\n/** Whether `latest` is worth updating to from `current`. Unparseable input is never an update. */\nexport function isNewerVersion(latest: string, current: string): boolean {\n return compareVersions(latest, current) > 0;\n}\n","/**\n * Whether this device's own clock seems to be off, and by how much, so the app can say so where people look at the\n * connection (the chat's connection panel, Settings → Network): \"This device's clock seems to be off by about 2 minutes.\n * Chats may be slow to connect.\"\n *\n * Ghostly dates what it publishes by this device's clock, and several of its checks hold a contact's dates against\n * it. A clock a few minutes off makes chats and groups slow to connect, or never connect with apps that have not been\n * updated, and nothing on screen says why. The app cannot set the clock; it can notice and say.\n *\n * What it hears (`ClockWatch`), each as \"this clock minus theirs is between `low` and `high`\":\n * - a **server**: the `Date` header of an HTTP answer (a Pkarr relay's), a time to the second read between the moment\n * the request went out and the moment its answer came. Where a browser may not read that header of another origin,\n * there is none.\n * - a **contact**: the time of a contact's packet that came between two close reads of its record. Its own clock dated\n * it, and this device knows within seconds when it was published.\n *\n * The rule, on purpose slow to say yes, and never on one contact's word (it is as likely that contact's clock):\n * - a source says \"off\" only when everything it allows is more than `CLOCK_OFF_MS` on one side;\n * - two servers that both say so, the same way, are enough: servers keep time;\n * - else one server and a contact that say so, with no contact saying otherwise;\n * - else three contacts that say so, the same way, and at least three for each one that does not.\n * The amount is the middle of what the sources that say so give (the servers', when two do). Evidence older than\n * `CLOCK_EVIDENCE_MS` says nothing: a clock that was set right is believed at the next answer, and the note goes away.\n */\n/** A clock closer than this to the others' is not said to be off: a minute is what apps up to 1.0.2 allow at their strictest. */\nexport const CLOCK_OFF_MS = 60_000;\n/** Evidence older than this says nothing about the clock now. */\nexport const CLOCK_EVIDENCE_MS = 30 * 60_000;\n/** Contacts that must say so when no server does. */\nexport const CLOCK_PEERS = 3;\n/** Servers that are enough by themselves. */\nexport const CLOCK_SERVERS = 2;\n/** A contact's packet says something only when the two reads around it were this close. */\nexport const CLOCK_PEER_READ_GAP_MS = 15_000;\n/** Sources kept of each kind: a profile has a few relays, and may have hundreds of contacts. */\nconst KEPT = 64;\n\nexport interface ClockSample { low: number; high: number; at: number }\n\n/** -1: everything the sample allows is behind by more than `CLOCK_OFF_MS`; 1: ahead; 0: it does not say. */\nconst says = (sample: ClockSample): -1 | 0 | 1 => (sample.low > CLOCK_OFF_MS ? 1 : sample.high < -CLOCK_OFF_MS ? -1 : 0);\nconst middle = (values: number[]): number => { const sorted = [...values].sort((a, b) => a - b); return sorted[Math.floor((sorted.length - 1) / 2)]; };\n\n/**\n * The rule alone: how far this clock is from the others' (ms, positive when it is ahead) when the samples fresh at\n * `now` say it is clearly off, else null.\n */\nexport function clockOffset(servers: ReadonlyMap<string, ClockSample>, peers: ReadonlyMap<string, ClockSample>, now: number): number | null {\n const fresh = (samples: ReadonlyMap<string, ClockSample>) => [...samples.values()].filter(s => now - s.at < CLOCK_EVIDENCE_MS);\n const s = fresh(servers), p = fresh(peers);\n const mid = (sample: ClockSample) => (sample.low + sample.high) / 2;\n for (const way of [1, -1] as const) {\n const serversOff = s.filter(x => says(x) === way), peersOff = p.filter(x => says(x) === way);\n const serversNot = s.length - serversOff.length, peersNot = p.length - peersOff.length;\n if (serversOff.length >= CLOCK_SERVERS && serversNot === 0) return Math.round(middle(serversOff.map(mid)));\n // A server that does not say so, when one could be read, outweighs any number of contacts.\n if (serversNot > 0) continue;\n if (serversOff.length === 1 && peersOff.length >= 1 && peersNot === 0) return Math.round(middle([...serversOff, ...peersOff].map(mid)));\n if (peersOff.length >= CLOCK_PEERS && peersOff.length >= 3 * peersNot) return Math.round(middle(peersOff.map(mid)));\n }\n return null;\n}\n\nexport class ClockWatch {\n private readonly servers = new Map<string, ClockSample>();\n private readonly peers = new Map<string, ClockSample>();\n private was: number | null = null;\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n /** `onChange`: what `offset` says changed (it appeared, went away, or moved by a minute). */\n constructor(private readonly onChange: (offset: number | null) => void = () => {}, private readonly now: () => number = Date.now) {}\n\n /**\n * A server's time: `date` (ms, to the second) from an answer to a request that went out at `sent` and came back at\n * `received`, both by this clock.\n */\n server(source: string, date: number, sent: number, received: number): void {\n if (!Number.isFinite(date) || date <= 0 || received < sent) return;\n // The answer was made somewhere between the two, at a server time between `date` and the end of that second.\n this.keep(this.servers, source, { low: sent - date - 999, high: received - date, at: this.now() });\n }\n\n /**\n * A contact's packet, dated `packetAt` by its clock, that came between this device's reads of its record at\n * `readBefore` and `readAt` (this clock). Says nothing when the two reads were far apart.\n */\n peer(peer: string, packetAt: number, readBefore: number, readAt: number): void {\n if (!(readBefore > 0) || readAt < readBefore || readAt - readBefore > CLOCK_PEER_READ_GAP_MS || !Number.isFinite(packetAt)) return;\n this.keep(this.peers, peer, { low: readBefore - packetAt, high: readAt - packetAt, at: this.now() });\n }\n\n private keep(samples: Map<string, ClockSample>, source: string, sample: ClockSample): void {\n samples.delete(source);\n samples.set(source, sample);\n if (samples.size > KEPT) samples.delete(samples.keys().next().value!);\n this.settle();\n }\n\n /** This clock minus the others', in ms (positive: ahead), when it is clearly off; else null. */\n get offset(): number | null { return clockOffset(this.servers, this.peers, this.now()); }\n\n /** The clock was set, or the evidence is of another time: nothing is known until the next answers. */\n reset(): void {\n this.servers.clear();\n this.peers.clear();\n this.settle();\n }\n\n /** Stops the timer that lets the evidence age out. */\n close(): void {\n if (this.timer) clearTimeout(this.timer);\n this.timer = null;\n }\n\n private settle(): void {\n this.close();\n for (const samples of [this.servers, this.peers]) for (const [source, sample] of samples) if (this.now() - sample.at >= CLOCK_EVIDENCE_MS) samples.delete(source);\n const offset = this.offset;\n if (offset !== null) {\n // Looked at again when the oldest evidence ages out: what is left may no longer be enough.\n const oldest = Math.min(...[...this.servers.values(), ...this.peers.values()].map(s => s.at));\n this.timer = setTimeout(() => this.settle(), Math.max(1_000, oldest + CLOCK_EVIDENCE_MS - this.now()));\n (this.timer as { unref?: () => void }).unref?.();\n }\n // Told again only when it would read differently: the note says minutes.\n const reads = (value: number | null) => (value === null ? null : Math.round(value / 60_000));\n if (reads(offset) === reads(this.was)) return;\n this.was = offset;\n this.onChange(offset);\n }\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"core.js","names":[],"sources":["../../core/src/clipboardGuard.ts","../../core/src/paymentUri.ts","../../core/src/version.ts","../../core/src/clockWatch.ts"],"sourcesContent":["/**\n * A contact's shared app on the web writes the clipboard only in the person's own tap in it. Its frames allow no\n * `clipboard-write`, but Chromium lets `document.execCommand(\"copy\")` write the system clipboard for as long as a tap's\n * activation lasts (seconds, from a timer too), and no sandbox token or permissions policy turns that off. So this\n * script runs first in each of the app's pages (`guardViewerAnswer`) and in the bridge (apps/web/src/svc/bridge.ts):\n * - `execCommand(\"copy\")` and `execCommand(\"cut\")` work only while a trusted tap, click or key of the person's is being\n * dispatched in that window: a copy button copies on its own tap, and nothing else does (not on load, not from a\n * timer or a promise after a tap). `execCommand(\"paste\")` is refused. Every other command passes as it is. The\n * wrapped `execCommand` is left fixed in place (not writable, not configurable), once per window;\n * - runs in a frame's window before the page holds it, as the WebRTC guard does (`VIEWER_GUARD_SCRIPT`): what a frame\n * element hands out is guarded first, the frames of the document and of its shadow trees are gone over as one loads\n * (an empty frame's first load fires as it is put in the page) and as the page changes, each `srcdoc` frame gets\n * this script first, a declarative shadow root the page's script would make is refused, and with `VIEWER_GUARD_CSP`\n * a `javascript:` URL is refused (its own Trusted Types default policy; one passes every other string on as it is).\n * A frame's window keeps what was run in it on its first, empty page when the page it loads is of the same origin (the\n * bridge's guard reaches the app's frame then): there this script only watches the new document. Each document it\n * watches is marked (`ghostlyClipboardGuard`, fixed in place): the bridge reads that to know the guard ran in the page\n * it shows. It uses nothing the page can change after it ran (the page's own code runs later, in the same realm).\n *\n * A fence, not a wall, as the WebRTC guard's own: a frame's window read by its index (`window[0]`) before it loads,\n * inside a shadow tree written in the HTML the page itself sends, is out of its sight.\n * No backslash, `${` or backtick in it.\n */\nexport const CLIPBOARD_GUARD_SCRIPT = `(function noClipboardWrites(w) {\n \"use strict\";\n try {\n const apply = w.Reflect.apply;\n const describe = w.Object.getOwnPropertyDescriptor;\n const define = w.Object.defineProperty;\n const proto = w.Document.prototype;\n const home = w.document;\n const exec = describe(proto, \"execCommand\");\n const fresh = !!exec && exec.configurable === true && typeof exec.value === \"function\";\n const watched = !!describe(home, \"ghostlyClipboardGuard\");\n if (!fresh && watched) return;\n if (!watched) define(home, \"ghostlyClipboardGuard\", { value: true });\n const own = \"<script>(\" + noClipboardWrites + \")(window)<\" + \"/script>\";\n const close = \"<\" + \"/script>\";\n const webRtc = \"<script>(function noWebRtc(\";\n const text = w.String;\n const lower = text.prototype.toLowerCase;\n const slice = text.prototype.slice;\n const index = text.prototype.indexOf;\n const listen = w.EventTarget.prototype.addEventListener;\n const shut = (inner) => {\n try { if (inner && inner !== w) noClipboardWrites(inner); } catch (e) {}\n };\n const count = describe(w, \"length\").get;\n const view = describe(proto, \"defaultView\").get;\n const sweep = () => {\n try { for (let i = apply(count, w, []); i-- > 0;) shut(w[i]); } catch (e) {}\n };\n const elements = w.Element.prototype;\n const getAttribute = elements.getAttribute;\n const setAttribute = elements.setAttribute;\n const removeAttribute = elements.removeAttribute;\n const attachShadow = elements.attachShadow;\n const size = describe(w.NodeList.prototype, \"length\").get;\n const first = (frame) => {\n const doc = apply(getAttribute, frame, [\"srcdoc\"]);\n if (doc === null) return;\n let at = 0;\n if (apply(slice, doc, [0, webRtc.length]) === webRtc) {\n const end = apply(index, doc, [close]);\n if (end >= 0) at = end + close.length;\n }\n if (apply(slice, doc, [at, at + own.length]) === own) return;\n try { apply(setAttribute, frame, [\"srcdoc\", own + doc]); } catch (e) { apply(removeAttribute, frame, [\"srcdoc\"]); }\n };\n const Observer = w.MutationObserver;\n const observe = Observer.prototype.observe;\n const watch = (root, all) => {\n const scan = () => {\n try {\n const frames = apply(all, root, [\"iframe[srcdoc]\"]);\n for (let i = apply(size, frames, []); i-- > 0;) first(frames[i]);\n } catch (e) {}\n sweep();\n };\n apply(observe, new Observer(scan), [root, { subtree: true, childList: true, attributes: true, attributeFilter: [\"srcdoc\"] }]);\n apply(listen, root, [\"load\", sweep, true]);\n scan();\n return root;\n };\n if (fresh) {\n const run = exec.value;\n const phase = describe(w.Event.prototype, \"eventPhase\").get;\n let tap = null;\n let trusted = null;\n const seen = (event) => {\n try {\n const found = describe(event, \"isTrusted\");\n if (found && found.get && apply(found.get, event, []) === true) { tap = event; trusted = found.get; }\n } catch (e) {}\n };\n const taps = [\"pointerdown\", \"pointerup\", \"mousedown\", \"mouseup\", \"click\", \"auxclick\", \"touchstart\", \"touchend\", \"keydown\", \"keyup\"];\n for (let i = 0; i < taps.length; i++) apply(listen, w, [taps[i], seen, true]);\n const tapping = () => {\n try { return tap !== null && apply(trusted, tap, []) === true && apply(phase, tap, []) !== 0; } catch (e) { return false; }\n };\n const guarded = function execCommand(command) {\n const name = apply(lower, text(command), []);\n if (name === \"paste\" || ((name === \"copy\" || name === \"cut\") && !tapping())) return false;\n const args = [name];\n for (let i = 1; i < arguments.length; i++) args[i] = arguments[i];\n return apply(run, this, args);\n };\n define(proto, \"execCommand\", { value: guarded, writable: false, enumerable: exec.enumerable, configurable: false });\n if (w.trustedTypes && !w.trustedTypes.defaultPolicy) {\n try {\n w.trustedTypes.createPolicy(\"default\", {\n createHTML: (input) => input,\n createScript: (input, type, sink) => (sink === \"Location href\" ? null : input),\n createScriptURL: (input) => input,\n });\n } catch (e) {}\n }\n const reopen = proto.open;\n proto.open = function () {\n const got = apply(reopen, this, arguments);\n try { if (apply(view, this, []) === w) apply(listen, this, [\"load\", sweep, true]); } catch (e) {}\n return got;\n };\n const shadowed = (html) => apply(index, apply(lower, html, []), [\"shadowrootmode\"]) >= 0;\n const Refused = w.TypeError;\n const refuse = () => { throw new Refused(\"A declarative shadow root is not allowed here\"); };\n const parsers = [[elements, \"setHTMLUnsafe\"], [w.ShadowRoot && w.ShadowRoot.prototype, \"setHTMLUnsafe\"], [w.Document, \"parseHTMLUnsafe\"]];\n for (let i = 0; i < parsers.length; i++) {\n const owner = parsers[i][0];\n const name = parsers[i][1];\n const real = owner && owner[name];\n if (typeof real !== \"function\") continue;\n owner[name] = function (html) {\n const checked = text(html);\n if (shadowed(checked)) refuse();\n return apply(real, this, arguments.length > 1 ? [checked, arguments[1]] : [checked]);\n };\n }\n let tail = \"\";\n const writes = [\"write\", \"writeln\"];\n for (let i = 0; i < writes.length; i++) {\n const real = proto[writes[i]];\n if (typeof real !== \"function\") continue;\n proto[writes[i]] = function () {\n let checked = \"\";\n for (let j = 0; j < arguments.length; j++) checked += text(arguments[j]);\n if (shadowed(tail + checked)) refuse();\n tail = apply(slice, tail + checked, [-16]);\n return apply(real, this, [checked]);\n };\n }\n const kinds = [\"HTMLIFrameElement\", \"HTMLFrameElement\", \"HTMLObjectElement\", \"HTMLEmbedElement\"];\n const reads = [\"contentWindow\", \"contentDocument\", \"getSVGDocument\"];\n for (let k = 0; k < kinds.length; k++) {\n const owner = w[kinds[k]] && w[kinds[k]].prototype;\n for (let r = 0; r < reads.length; r++) {\n const name = reads[r];\n const found = owner && describe(owner, name);\n const key = found && found.get ? \"get\" : \"value\";\n if (!found || typeof found[key] !== \"function\") continue;\n const read = found[key];\n found[key] = function () {\n const got = apply(read, this, arguments);\n try { shut(name === \"contentWindow\" ? got : apply(view, got, [])); } catch (e) {}\n return got;\n };\n try { define(owner, name, found); } catch (e) {}\n }\n }\n const inShadow = w.DocumentFragment.prototype.querySelectorAll;\n if (attachShadow) {\n elements.attachShadow = function () {\n const root = apply(attachShadow, this, arguments);\n try { watch(root, inShadow); } catch (e) {}\n return root;\n };\n }\n }\n if (!watched) watch(home, proto.querySelectorAll);\n } catch (e) {}\n})(window)`;\n\n/** `CLIPBOARD_GUARD_SCRIPT`'s hash, as a CSP source: the bridge's policy and a contact's own are given it. */\nexport const CLIPBOARD_GUARD_HASH = \"'sha256-FGs001DxOSnlZv8nm6JyMeex+LlNQJzrCFbnJhAh8n4='\";\n","/**\n * Payment URIs for a wallet that is not Ghostly: what a QR code shows and what a `lightning:` or\n * `bitcoin:` link opens. Building them is all this does; whether the payment arrives is watched by the\n * payee's own source, never assumed from the link having been opened.\n *\n * - `lightning:<invoice>` ([BOLT 11](https://github.com/lightning/bolts/blob/master/11-payment-encoding.md)).\n * - `bitcoin:<address>?amount=<btc>&lightning=<invoice>` ([BIP 21](https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki)),\n * with the `lightning` parameter of the unified QR convention when an invoice exists too.\n * - `bitcoin:?ark=<address>&amount=<btc>` for an Ark address, the BIP 21 form Ark wallets read.\n */\nexport type PaymentUriInput =\n | { kind: \"lightning\"; invoice: string }\n | { kind: \"bitcoin\"; address: string; amountSat?: number; label?: string; message?: string; lightning?: string }\n | { kind: \"ark\"; address: string; amountSat?: number };\n\n/** Whole sats as the decimal BTC amount BIP 21 wants (`21` → `0.00000021`), never in exponent form. */\nexport function satsToBtc(sats: number): string {\n if (!Number.isSafeInteger(sats) || sats < 0) throw new Error(\"Amount must be a whole number of sats\");\n const whole = Math.floor(sats / 100_000_000);\n const fraction = String(sats % 100_000_000).padStart(8, \"0\").replace(/0+$/, \"\");\n return fraction ? `${whole}.${fraction}` : String(whole);\n}\n\nconst cleanInvoice = (invoice: string) => invoice.trim().toLowerCase().replace(/^lightning:/, \"\");\n\n/** The URI to open in another wallet. Throws on an input that cannot be one. */\nexport function paymentUri(input: PaymentUriInput): string {\n if (input.kind === \"lightning\") {\n const invoice = cleanInvoice(input.invoice);\n if (!/^ln[a-z0-9]+$/.test(invoice)) throw new Error(\"That is not a Lightning invoice\");\n return `lightning:${invoice}`;\n }\n const params = new URLSearchParams();\n if (input.kind === \"ark\") {\n if (!/^[a-z0-9]+$/i.test(input.address)) throw new Error(\"That is not an Ark address\");\n params.set(\"ark\", input.address);\n if (input.amountSat) params.set(\"amount\", satsToBtc(input.amountSat));\n return `bitcoin:?${params.toString()}`;\n }\n if (!/^[a-zA-Z0-9]+$/.test(input.address)) throw new Error(\"That is not a Bitcoin address\");\n if (input.amountSat) params.set(\"amount\", satsToBtc(input.amountSat));\n if (input.label) params.set(\"label\", input.label.slice(0, 140));\n if (input.message) params.set(\"message\", input.message.slice(0, 140));\n if (input.lightning) params.set(\"lightning\", cleanInvoice(input.lightning));\n // `+` would be read as a space by some wallets; BIP 21 wants percent-encoding.\n const query = params.toString().replace(/\\+/g, \"%20\");\n return query ? `bitcoin:${input.address}?${query}` : `bitcoin:${input.address}`;\n}\n\n/**\n * What to put in the QR code: a `lightning:` URI in upper case, so the code uses the smaller alphanumeric\n * mode every Lightning wallet reads; anything with characters outside that mode as it is.\n */\nexport function qrText(uri: string): string {\n const upper = uri.toUpperCase();\n return /^[A-Z0-9 $%*+\\-./:]*$/.test(upper) ? upper : uri;\n}\n","/**\n * Which of two released versions is newer. Every client asks this of whatever\n * it found published, so a malformed answer must never read as an update: the\n * numbers are the only thing trusted here, and anything else sorts as older.\n */\n\n/** `1.2.3`, with an optional `v` and an optional `-beta.1` this ignores. */\nconst RELEASE = /^v?(\\d{1,6})\\.(\\d{1,6})\\.(\\d{1,6})(?:[-+].*)?$/;\n\nfunction parse(version: string): [number, number, number] | null {\n const match = RELEASE.exec(version.trim());\n return match ? [Number(match[1]), Number(match[2]), Number(match[3])] : null;\n}\n\n/** Negative when `a` is older, positive when it is newer, 0 when they match or either is not a version. */\nexport function compareVersions(a: string, b: string): number {\n const left = parse(a);\n const right = parse(b);\n if (!left || !right) return 0;\n for (let i = 0; i < 3; i++) {\n if (left[i] !== right[i]) return left[i] - right[i];\n }\n return 0;\n}\n\n/** Whether `latest` is worth updating to from `current`. Unparseable input is never an update. */\nexport function isNewerVersion(latest: string, current: string): boolean {\n return compareVersions(latest, current) > 0;\n}\n","/**\n * Whether this device's own clock seems to be off, and by how much, so the app can say so where people look at the\n * connection (the chat's connection panel, Settings → Network): \"This device's clock seems to be off by about 2 minutes.\n * Chats may be slow to connect.\"\n *\n * Ghostly dates what it publishes by this device's clock, and several of its checks hold a contact's dates against\n * it. A clock a few minutes off makes chats and groups slow to connect, or never connect with apps that have not been\n * updated, and nothing on screen says why. The app cannot set the clock; it can notice and say.\n *\n * What it hears (`ClockWatch`), each as \"this clock minus theirs is between `low` and `high`\":\n * - a **server**: the `Date` header of an HTTP answer (a Pkarr relay's), a time to the second read between the moment\n * the request went out and the moment its answer came. Where a browser may not read that header of another origin,\n * there is none.\n * - a **contact**: the time of a contact's packet that came between two close reads of its record. Its own clock dated\n * it, and this device knows within seconds when it was published.\n *\n * The rule, on purpose slow to say yes, and never on one contact's word (it is as likely that contact's clock):\n * - a source says \"off\" only when everything it allows is more than `CLOCK_OFF_MS` on one side;\n * - two servers that both say so, the same way, are enough: servers keep time;\n * - else one server and a contact that say so, with no contact saying otherwise;\n * - else three contacts that say so, the same way, and at least three for each one that does not.\n * The amount is the middle of what the sources that say so give (the servers', when two do). Evidence older than\n * `CLOCK_EVIDENCE_MS` says nothing: a clock that was set right is believed at the next answer, and the note goes away.\n */\n/** A clock closer than this to the others' is not said to be off: a minute is what apps up to 1.0.2 allow at their strictest. */\nexport const CLOCK_OFF_MS = 60_000;\n/** Evidence older than this says nothing about the clock now. */\nexport const CLOCK_EVIDENCE_MS = 30 * 60_000;\n/** Contacts that must say so when no server does. */\nexport const CLOCK_PEERS = 3;\n/** Servers that are enough by themselves. */\nexport const CLOCK_SERVERS = 2;\n/** A contact's packet says something only when the two reads around it were this close. */\nexport const CLOCK_PEER_READ_GAP_MS = 15_000;\n/** Sources kept of each kind: a profile has a few relays, and may have hundreds of contacts. */\nconst KEPT = 64;\n\nexport interface ClockSample { low: number; high: number; at: number }\n\n/** -1: everything the sample allows is behind by more than `CLOCK_OFF_MS`; 1: ahead; 0: it does not say. */\nconst says = (sample: ClockSample): -1 | 0 | 1 => (sample.low > CLOCK_OFF_MS ? 1 : sample.high < -CLOCK_OFF_MS ? -1 : 0);\nconst middle = (values: number[]): number => { const sorted = [...values].sort((a, b) => a - b); return sorted[Math.floor((sorted.length - 1) / 2)]; };\n\n/**\n * The rule alone: how far this clock is from the others' (ms, positive when it is ahead) when the samples fresh at\n * `now` say it is clearly off, else null.\n */\nexport function clockOffset(servers: ReadonlyMap<string, ClockSample>, peers: ReadonlyMap<string, ClockSample>, now: number): number | null {\n const fresh = (samples: ReadonlyMap<string, ClockSample>) => [...samples.values()].filter(s => now - s.at < CLOCK_EVIDENCE_MS);\n const s = fresh(servers), p = fresh(peers);\n const mid = (sample: ClockSample) => (sample.low + sample.high) / 2;\n for (const way of [1, -1] as const) {\n const serversOff = s.filter(x => says(x) === way), peersOff = p.filter(x => says(x) === way);\n const serversNot = s.length - serversOff.length, peersNot = p.length - peersOff.length;\n if (serversOff.length >= CLOCK_SERVERS && serversNot === 0) return Math.round(middle(serversOff.map(mid)));\n // A server that does not say so, when one could be read, outweighs any number of contacts.\n if (serversNot > 0) continue;\n if (serversOff.length === 1 && peersOff.length >= 1 && peersNot === 0) return Math.round(middle([...serversOff, ...peersOff].map(mid)));\n if (peersOff.length >= CLOCK_PEERS && peersOff.length >= 3 * peersNot) return Math.round(middle(peersOff.map(mid)));\n }\n return null;\n}\n\nexport class ClockWatch {\n private readonly servers = new Map<string, ClockSample>();\n private readonly peers = new Map<string, ClockSample>();\n private was: number | null = null;\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n /** `onChange`: what `offset` says changed (it appeared, went away, or moved by a minute). */\n constructor(private readonly onChange: (offset: number | null) => void = () => {}, private readonly now: () => number = Date.now) {}\n\n /**\n * A server's time: `date` (ms, to the second) from an answer to a request that went out at `sent` and came back at\n * `received`, both by this clock.\n */\n server(source: string, date: number, sent: number, received: number): void {\n if (!Number.isFinite(date) || date <= 0 || received < sent) return;\n // The answer was made somewhere between the two, at a server time between `date` and the end of that second.\n this.keep(this.servers, source, { low: sent - date - 999, high: received - date, at: this.now() });\n }\n\n /**\n * A contact's packet, dated `packetAt` by its clock, that came between this device's reads of its record at\n * `readBefore` and `readAt` (this clock). Says nothing when the two reads were far apart.\n */\n peer(peer: string, packetAt: number, readBefore: number, readAt: number): void {\n if (!(readBefore > 0) || readAt < readBefore || readAt - readBefore > CLOCK_PEER_READ_GAP_MS || !Number.isFinite(packetAt)) return;\n this.keep(this.peers, peer, { low: readBefore - packetAt, high: readAt - packetAt, at: this.now() });\n }\n\n private keep(samples: Map<string, ClockSample>, source: string, sample: ClockSample): void {\n samples.delete(source);\n samples.set(source, sample);\n if (samples.size > KEPT) samples.delete(samples.keys().next().value!);\n this.settle();\n }\n\n /** This clock minus the others', in ms (positive: ahead), when it is clearly off; else null. */\n get offset(): number | null { return clockOffset(this.servers, this.peers, this.now()); }\n\n /** The clock was set, or the evidence is of another time: nothing is known until the next answers. */\n reset(): void {\n this.servers.clear();\n this.peers.clear();\n this.settle();\n }\n\n /** Stops the timer that lets the evidence age out. */\n close(): void {\n if (this.timer) clearTimeout(this.timer);\n this.timer = null;\n }\n\n private settle(): void {\n this.close();\n for (const samples of [this.servers, this.peers]) for (const [source, sample] of samples) if (this.now() - sample.at >= CLOCK_EVIDENCE_MS) samples.delete(source);\n const offset = this.offset;\n if (offset !== null) {\n // Looked at again when the oldest evidence ages out: what is left may no longer be enough.\n const oldest = Math.min(...[...this.servers.values(), ...this.peers.values()].map(s => s.at));\n this.timer = setTimeout(() => this.settle(), Math.max(1_000, oldest + CLOCK_EVIDENCE_MS - this.now()));\n (this.timer as { unref?: () => void }).unref?.();\n }\n // Told again only when it would read differently: the note says minutes.\n const reads = (value: number | null) => (value === null ? null : Math.round(value / 60_000));\n if (reads(offset) === reads(this.was)) return;\n this.was = offset;\n this.onChange(offset);\n }\n}\n"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- import { YT as fromBase64Url, eE as toBase64Url, ka as decodeBolt11, nE as utf8Decode, rE as utf8Encode } from "./src-i6IUh-ng.js";
1
+ import { cE as utf8Decode, ka as decodeBolt11, lE as utf8Encode, oE as toBase64Url, tE as fromBase64Url } from "./src-BN4AAuHI.js";
2
2
  import { t as NothingSpentError } from "./types-DvtCy3WB.js";
3
3
  import { ed25519 } from "@noble/curves/ed25519.js";
4
4
  import { sha256 } from "@noble/hashes/sha2.js";
@@ -537,4 +537,4 @@ var FAKE_IDENTITY_PROVIDERS = [
537
537
  //#endregion
538
538
  export { fakeAddress as _, fakeAccount as a, fakeOnchain as b, fakeKeySign as c, fakeRecord as d, fakeRecordText as f, TEST_PROVIDERS_FLAG as g, FakeOnchainProvider as h, TEST_IDENTITIES_FLAG as i, fakeKeySubject as l, FakeLightningProvider as m, FAKE_ISSUER as n, fakeAccountToken as o, testIdentitiesEnabled as p, FAKE_RECORD_HOST as r, fakeKey as s, FAKE_IDENTITY_PROVIDERS as t, fakeKeyring as u, fakeInvoice as v, testProvidersEnabled as x, fakeLightning as y };
539
539
 
540
- //# sourceMappingURL=fakes-Cu6mpUKs.js.map
540
+ //# sourceMappingURL=fakes-LaWqqMv4.js.map