@ghostlytools/sdk 1.8.1 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.js +2 -593
- package/dist/core.js.map +1 -1
- package/dist/{fakes-Cyfc_vXC.js → fakes-Bx53XiDM.js} +2 -2
- package/dist/{fakes-Cyfc_vXC.js.map → fakes-Bx53XiDM.js.map} +1 -1
- package/dist/fakes.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{keet-identity-key-uq3scTiE.js → keet-identity-key-D8ioYMkd.js} +2 -2
- package/dist/{keet-identity-key-uq3scTiE.js.map → keet-identity-key-D8ioYMkd.js.map} +1 -1
- package/dist/{src-DytzSJB6.js → src-Ch4NWeBg.js} +1048 -33
- package/dist/src-Ch4NWeBg.js.map +1 -0
- package/dist/testing.js +3 -3
- package/dist/types/core/src/chatFiles.d.ts +4 -1
- package/dist/types/core/src/index.d.ts +1 -0
- package/dist/types/core/src/videoMetadata.d.ts +16 -0
- package/dist/{verify-BC1Eu1lE.js → verify-Bi_Y5oat.js} +2 -2
- package/dist/{verify-BC1Eu1lE.js.map → verify-Bi_Y5oat.js.map} +1 -1
- package/package.json +1 -1
- package/dist/src-DytzSJB6.js.map +0 -1
package/dist/core.js
CHANGED
|
@@ -1,595 +1,4 @@
|
|
|
1
|
-
import { $ as COMMUNITY_LIMITS, $C as decodeTxtPacket, $S as CHAT_RESERVE_MOST_SHARE, $_ as handoffBusyFrame, $a as LIVENESS_MISSED_PINGS, $b as exifOrientation, $c as decodeAppRangeData, $d as DHT_TEXT_BYTES, $f as validEditMessage, $g as sdpHasCandidates, $h as UNUSED_INVITE_READS_PER_MINUTE, $i as isSparkAddress, $l as DNS_LABEL, $m as openPair, $n as MessageRefusal, $o as mayBeHub, $p as STATUS_CARD_LIMITS, $r as DidError, $s as typingKindOf, $t as GROUP_EDIT_TEXT_BYTES, $u as emptyIdentityLedger, $v as ENROLL_GRANT, $x as deviceLinkSecret, $y as openRequest, A as readX401ProofResponseHeader, AC as traceLink, AS as firstDeviceSetSecret, A_ as HANDOFF_FILE_REQUEST, Aa as findBolt11, Ab as APP_PREFIXES, Ac as wakeFrame, Ad as verifyPeerProof, Af as voicePeaksOf, Ag as RTC_SIGNAL_FUTURE_MS, Ah as DIRECT_EVIDENCE_MS, Ai as jwkThumbprint, Al as PIN_CAPABILITY, Am as MEMBER_KEY, An as parseGroupMetaBody, Ao as GROUP_WANT_NO_FRAME, Ap as reactionIsNewer, Ar as parseAtprotoDidDocument, As as FILE_LIMITS, At as knockRecords, Au as DHT_TEXT_CAPABILITY, Av as readHandoffHave, Aw as isZ32Key, Ax as encodeGhostlyInvite, Ay as KNOCK_SLOTS, B as APP_STORE_KINDS, BC as withRequestOptions, BS as turnKeys, B_ as HANDOFF_RELEASE, Ba as BLOCKED_DIAL_WAIT_MS, Bb as isAppRef, Bc as vapidAuthorization, Bd as TRANSPORTS, Bf as EDIT_FRAME, Bg as answersOffer, Bh as FIRST_PUBLISH_MAX_MS, Bi as TEST_USDT_FAUCET_AMOUNT, Bl as sessionCapabilitiesFrame, Bm as signCommit, Bn as SSH_PUBLIC_KEY_MAX, Bo as GROUP_SIGNAL_FRAME, Bp as readReply, Br as parseAtprotoDidKey, Bs as TYPING_RATE_LIMIT, Bt as groupWakes, Bu as IDENTITY_FRAME_WINDOW_MS, Bv as SET_ACK, Bx as DEVICE_CAPABILITIES, By as REQUEST_TEXT_BYTES, C as buildX401TokenObject, CC as WAY_BACK_SHARE, CS as TURN_SEALED_BYTES, C_ as HANDOFF_BUSY, Ca as parseInvoiceCallback, Cb as isAppUrl, Cc as WakeLimiter, Cd as proofHash, Cf as isPlayableAudioType, Cg as decodeControl, Ch as DATA_SETTLE_MS, Ci as decodeDidDhtPacket, Cl as APP_RANGES_CAPABILITY, Cm as GROUP_ADMIN_OFF_ERROR, Cn as groupMetaPicture, Co as engineText, Cp as nextReactionNumber, Cr as ATPROTO_PROOF_SCOPE, Cs as MAX_PAIRED_CALL_SIGNAL, Ct as KNOCK_TTL_MS, Cu as CAPS_LABEL, Cv as openHandoffPiece, Cw as trimEndOf, Cx as INVITE_LINK_ORIGIN, Cy as newInbox, D as readX401ProofRequest, DC as readRelayBody, DS as TURN_VERSION, D_ as HANDOFF_DATA, Da as resolveLightningDestination, Db as sha256Paced, Dc as readWake, Dd as storageProofPath, Df as voiceFileName, Dg as wrapDataChannel, Dh as OFFER_HOST_GATHER_MS, Di as didDhtRecords, Dl as FILES_BINARY_CAPABILITY, Dm as LEGACY_GROUP_MEMBERS, Dn as keepPastGroupMeta, Do as GROUP_HAVE_FRAME, Dp as reactedFrame, Dr as checkAtprotoProofRecord, Ds as ChatFiles, Dt as entryParams, Du as CapsExchange, Dv as readHandoffData, Dw as fromBase64, Dx as createChatInvite, Dy as turnOff, E as isX401Protocol, EC as normalizeRelayUrl, ES as TURN_TTL, E_ as HANDOFF_CANCEL_REASONS, Ea as requestLnurlInvoice, Eb as readAppBundleAsync, Ec as parseWakeFrame, Ed as storageProofBody, Ef as voiceDownloadName, Eg as sendBody, Eh as GATHER_STALL_MS, Ei as didDhtKey, El as EDIT_CAPABILITY, Em as GROUP_VERSION_LARGE, En as groupName, Eo as GROUP_FILE_LIMITS, Ep as queueReaction, Er as atprotoProofRkey, Es as parsePairedCallFrame, Et as encodeGroupEntryLink, Eu as CAPS_REFRESH_MS, Ev as readHandoffCancel, Ew as concatBytes, Ex as OwnInviteError, Ey as takeRequest, F as appRevocationFor, FC as RelayBreaker, FS as sealTurnBody, F_ as HANDOFF_MANIFEST, Fa as isFederationId, Fb as appRevocationId, Fc as checkPushEndpoint, Fd as validRingKey, Ff as isVideoMime, Fg as parseRtcSignal, Fh as symmetricNat, Fi as EVM_TEST_CHAINS, Fl as SessionCapabilities, Fm as expectedRoster, Fn as verifyGroupMetaSignature, Fo as readGroupHave, Fp as PAIRED_REPLY_AUTHORS, Fr as decodeAtprotoCommit, Fs as sentWhole, Ft as GROUP_WAKE_GROUP_WINDOW_MS, Fu as parsePacketTransports, Fv as readHandoffTurnFrame, Fw as utf8Decode, Fx as inviteQrText, Fy as REQUEST_CLOCK_SKEW_MS, G as readAppStore, GC as createRelayPayload, GS as turnSequence, G_ as HANDOFF_WINDOW, Ga as DEMOTE_MS, Gb as readAppSignature, Gc as APP_RANGE_LIMITS, Gd as rankTransports, Gf as MAX_REMOVAL_NUMBER, Gg as contactRtcConfig, Gh as OFFER_LOOK_MS, Gi as assertWholeSats, Gl as HOLD_CAPABILITY, Gm as GROUP_PROFILE, Gn as sshFingerprint, Go as SIGNAL_HOLD_MS, Gp as BUTTON_STYLES, Gr as verifyAtprotoSignature, Gs as TYPING_TIMEOUT_MS, Gt as GROUP_READ_NOTE, Gu as IDENTITY_PROOF_CAPABILITY, Gv as setUpdateFrame, Gx as deviceEchoFrame, Gy as knockHolds, H as checkAppListing, HC as PKARR_FUTURE_SKEW_MS, HS as turnPacket, H_ as HANDOFF_TIMINGS, Ha as CROSSED_PROBE_MS, Hb as readAppRevocation, Hc as APP_RANGE_DATA_KIND, Hd as checkedDescriptors, Hf as EDIT_RECEIVE_LIMIT, Hg as callRtcConfig, Hh as LinkSession, Hi as WALLET_NETWORKS, Hl as PairedSession, Hm as verifyChain, Hn as parseSshPublicKey, Ho as SIGNALS_PER_MINUTE, Hp as wireReply, Hr as readAtprotoCid, Hs as TYPING_REFRESH_MS, Ht as parseGroupWakeFrame, Hu as IDENTITY_MAX_FRAME, Hv as encodeSetSlots, Hx as DEVICE_PING_FRAME, Hy as STAMP_BITS_MAX, I as appStoreDecision, IC as DiscoveryBudgetError, IS as signTurnBody, I_ as HANDOFF_OFFER, Ia as parseCashuRequestPayload, Ib as appSignedBytes, Ic as decryptPushPayload, Id as verifyRingAuthorization, If as parseVideoMeta, Ig as CALL_SIGNAL_FUTURE_MS, Ih as AWAITING_PEER_MS, Ii as ONCHAIN_PROVIDER, Il as TYPING_CAPABILITY, Im as parseGroupCommit, In as wrapGroupMeta, Io as readGroupWant, Ip as REPLY_ID, Ir as decodeDagCbor, Is as transferEnded, It as GROUP_WAKE_MEMBER_INTERVAL_MS, Iu as IDENTITY_CHALLENGE_WINDOW, Iv as readHandoffVerified, Iw as utf8Encode, Ix as ownInviteRefusal, Iy as REQUEST_LABEL, J as GROUP_TYPING_FRAME, JC as openRelayPayload, JS as turnVerifierMark, J_ as filePartName, Ja as FIRST_PAIRING_PACE_MS, Jb as signAppRevocation, Jc as appRangeChunk, Jd as transportOrder, Jf as dhtEditId, Jg as heardCallSignal, Jh as PRESENCE_WINDOW, Ji as parsePaymentAmount, Jl as HoldKeys, Jm as decryptText, Jn as verifySshSignature, Jo as groupSignalFrame, Jp as PR_CHECKS, Jr as DID_GHOSTLY_SERVICE, Js as parseTypingActivity, Jt as chainPieces, Ju as IDENTITY_STATEMENT_PREFIX, Jv as verifySetUpdate, Jx as deviceKeyZ32, Jy as knockSlotRecords, K as readAppStoreSteps, KC as measureRecords, KS as turnSignedMessage, K_ as NO_ATTEMPTS, Ka as DHT_PIN_GRACE_MS, Kb as setAppSignatureFastPath, Kc as AppRanges, Kd as relayUrl, Kf as REMOVED_TEXT, Kg as decompressSdp, Kh as OFFER_STEP_MAX, Ki as formatPaymentAmount, Kl as HOLD_DATED_BACK_MS, Km as confirmationMatches, Kn as sshKeyDigestHex, Ko as SIGNAL_PROVEN_MS, Kp as CRON_LINE, Kr as DID_DOCUMENT_MAX_BYTES, Ks as TypingReceiver, Kt as GroupSession, Ku as IDENTITY_PROVIDER_ID, Kv as setUpdateMessage, Kx as deviceEchoNonce, Ky as knockSlotIdentity, L as appUpdateDecision, LC as budgetRetryMs, LS as signTurnPacket, L_ as HANDOFF_PAKE, La as parseFedimintRequestPayload, Lb as checkAppRevokeStatement, Lc as encryptPushPayload, Ld as verifyRingEvidence, Lf as EDITED_FRAME, Lg as CALL_SIGNAL_MAX_AGE_MS, Lh as DEPARTED_READ_MS, Li as PaymentPreflightError, Ll as UPGRADE_CAPABILITY, Lm as rememberAlone, Ln as SSHSIG_MAX_ARMOR, Lo as readGroupWantNo, Lp as REPLY_LIMITS, Lr as encodeDagCbor, Ls as transferStalled, Lt as GROUP_WAKE_RECEIVE_LIMIT, Lu as IDENTITY_CHECK_UNAVAILABLE, Lv as sameDigest, Lx as pastedAgain, Ly as REQUEST_LIFETIME_MS, M as readX401ProofResultHeader, MC as BREAKER_BASE_MS, MS as openTurnValue, M_ as HANDOFF_HELLO, Ma as cashuRequestPayload, Mb as appFingerprint, Mc as wakeRequest, Md as ringAuthorization, Mf as VIDEO_LIMITS, Mg as buildDataSdp, Mh as DIRECT_PEERS, Mi as resolveDidDht, Ml as SERVICES_CAPABILITY, Mm as SAID_AGAIN, Mn as parseGroupMetaStatement, Mo as groupFileFallback, Mp as readReaction, Mr as AtprotoCid, Ms as decodeFileData, Mt as readKnocks, Mu as dialDescriptors, Mv as readHandoffManifest, Mw as toBase64, Mx as inviteLink, My as LINK_RECORD_LABEL, N as x401AnswerableRequests, NC as BREAKER_MAX_MS, NS as readTurnBody, N_ as HANDOFF_LATER_BYTES, Na as fedimintRequestPayload, Nb as appRef, Nc as PUSH_SERVICE_HOSTS, Nd as ringClaims, Nf as formatVideoDuration, Ng as extractRtcParams, Nh as DirectPathWatch, Ni as signDidDhtPacket, Nl as SESSION_CAPABILITIES_FRAME, Nm as commitHash, Nn as parseGroupMetaTag, No as isGroupMessageId, Np as validReactionNumber, Nr as AtprotoProofError, Ns as encodeFileData, Nt as GROUP_WAKE_FRAME, Nu as emptyCapsState, Nv as readHandoffPake, Nw as toBase64Url, Nx as inviteOwnership, Ny as MAX_SEEN, O as readX401ProofRequestHeader, OC as relayUrlProblem, OS as TurnRecordError, O_ as HANDOFF_DONE, Oa as BOLT11_PATTERN, Ob as yieldThread, Oc as readWakePayload, Od as validExternalKey, Of as voiceLevel, Og as DATA_CHANNEL_ID, Oh as REANSWERS, Oi as encodeDidDhtDeactivated, Ol as FILES_CAPABILITY, Om as MAX_GROUP_CHAIN, On as nextGroupMetaRevision, Oo as GROUP_VERSION_FILES, Op as reactionEmoji, Or as isAtprotoDid, Os as FILE_DATA_KIND, Ot as groupEntryUrl, Ou as CapsKeys, Ov as readHandoffDone, Ow as fromBase64Url, Ox as createLink, Oy as CONTACT_RECORD_TTL, P as addedAppPermissions, PC as BREAKER_THRESHOLD, PS as readTurnPacket, P_ as HANDOFF_LIST_PER_FRAME, Pa as findEndpoint, Pb as appRefPublisher, Pc as WebPushError, Pd as ringEvidence, Pf as isPlayableVideoType, Pg as offerIsFresh, Ph as directBlocked, Pi as ETHEREUM_USDT, Pl as STATUS_CARD_CAPABILITY, Pm as commitUntaggedHash, Pn as signGroupMeta, Po as readGroupFileMeta, Pp as wireReaction, Pr as atprotoCidFor, Ps as refusalText, Pt as GROUP_WAKE_GROUP_LIMIT, Pu as encodePacketTransports, Pv as readHandoffRelease, Pw as toZ32, Px as inviteQrSegments, Py as MAX_SLOT_KNOCKS, Q as sealGroupTyping, QC as decodeDnsAnswers, QS as CHAT_RESERVE, Q_ as handoffAttemptSucceeded, Qa as INVITE_TAKEN, Qb as IMAGE_LIMITS, Qc as appRangeGetFrame, Qd as DHT_MESSAGE_TTL, Qf as parseEditedFrame, Qg as pickCallCandidates, Qh as TRANSPORTS_GONE_MS, Qi as SPARK_PROVIDER, Ql as readManifest, Qm as newEpochSecret, Qn as BIP322_REVISION, Qo as NO_HUB_POLICY, Qp as RUN_RESULTS, Qr as DID_METHODS, Qs as typingFrame, Qt as GROUP_EDIT_FRAME, Qu as boundVerifiedIdentity, Qv as ENROLL_DONE, Qx as deviceLinkSealKey, Qy as mergeContactKnocks, R as checkAppBeforeRun, RC as heldBackError, RS as signTurnRelease, R_ as HANDOFF_PIECE_BYTES, Ra as ANSWERS_REFUSED_PAUSES, Rb as isAppHash, Rc as generateVapidKeys, Rd as RELAY_URL, Rf as EDIT_BUFFER_MAX, Rg as PAIRED_CALL_CANDIDATES, Rh as DHT_POLL_INTERVALS, Ri as SEPOLIA_TEST_USDT, Rl as WAKE_SESSION_CAPABILITY, Rm as rosterAdmin, Rn as SSHSIG_NAMESPACE, Ro as CARRIED_DEFER_MS, Rp as groupReplyAuthor, Rr as findInMst, Rs as TYPING_FRAME, Rt as GroupWakeLimiter, Ru as IDENTITY_CLOCK_SKEW, Rv as sealHandoffPiece, Rx as readInviteCode, Ry as REQUEST_NAME_UNITS, S as buildX401ResultArtifact, SC as WATCH_SHARE, SS as TURN_REV_LIMIT, S_ as HANDOFF_ATTEMPTS, Sa as invoiceCallbackUrl, Sb as isAppPath, Sc as WAKE_TTL_SECONDS, Sd as proofCapability, Sf as formatVoiceDuration, Sg as decodeChunk, Sh as CONNECT_TIMEOUT_MS, Si as DidDhtError, Sl as APPS_CAPABILITY, Sm as shownTime, Sn as groupMetaNewer, So as engineError, Sp as ReactionWindow, Sr as ATPROTO_PROOF_COLLECTION, Ss as validHead, St as GROUP_ENTRY_PROFILE, Su as CAPS_ISSUED_BACK_MS, Sv as newHandoffId, Sw as stripHidden, Sx as INVITE_HRP, Sy as inboxRecord, T as encodeX401Header, TC as currentRelays, TS as TURN_SLOTS, T_ as HANDOFF_CANCEL, Ta as parsePayParams, Tb as readAppBundle, Tc as newWakeToken, Td as storageProof, Tf as recordingMime, Tg as encodeControl, Th as GATHER_ATTEMPTS, Ti as didDhtFromPublicKey, Tl as CALLS_CAPABILITY, Tm as GROUP_MEMBER_CAP, Tn as groupMetaToHand, To as PairingTracker, Tp as parseReactionFrame, Tr as atprotoProofRecord, Ts as PairedCalls, Tt as decodeGroupEntryLink, Tu as CAPS_PUBLISH_SPACING_MS, Tv as readHandoffBusy, Tw as bytesEqual, Tx as INVITE_VERSION, Ty as settleRequest, U as checkAppStoreIndex, UC as PacketTooLargeError, US as turnPayloadSequence, U_ as HANDOFF_VERIFIED, Ua as CROSSED_WAIT_MS, Ub as readAppRevocationShape, Uc as APP_RANGE_ERRORS, Ud as irohDescriptor, Uf as EDIT_SEND_LIMIT, Ug as callSignalHeardAt, Uh as MAX_DHT_TEXT_BYTES, Ui as arkAddressPrefix, Ul as SESSION_FRAME_MAX, Um as verifyCommit, Un as parseSshSignature, Uo as SIGNAL_CARRIERS, Up as ACTIVE_TASK_STATUSES, Ur as unsignedCommitBytes, Us as TYPING_SEND_LIMIT, Ut as GROUP_LIMITS, Uu as IDENTITY_MAX_RECEIVED, Uv as readSetUpdate, Ux as ENROLL_CAPABILITY, Uy as STAMP_BITS_MIN, V as APP_STORE_LIMITS, VC as MAX_DNS_PACKET_BYTES, VS as turnName, V_ as HANDOFF_REQUEST, Va as CROSSED_FRESH_MS, Vb as isAppSignature, Vc as vapidKeysMatch, Vd as automaticTransport, Vf as EDIT_RATE_WINDOW_MS, Vg as buildSdpFromSignal, Vh as IDLE_THRESHOLD, Vi as USDT_PUBLIC_RPC, Vl as PAIRED_PROFILE, Vm as sortRoster, Vn as SshSigError, Vo as GROUP_VERSION_SIGNALS, Vp as replySnippet, Vr as parseAtprotoVerificationKey, Vs as TYPING_RATE_WINDOW_MS, Vt as mentionedMembers, Vu as IDENTITY_MAX_EVIDENCE, Vv as SET_UPDATE, Vx as DEVICE_ECHO_FRAME, Vy as STAMP_BITS_DEFAULT, W as readAppListing, WC as RELAY_PAYLOAD_MAX_BYTES, WS as turnReleaseMessage, W_ as HANDOFF_VERSION, Wa as DEMOTE_AFTER_FAILURES, Wb as readAppRevocations, Wc as APP_RANGE_FRAMES, Wd as irohRelayUrl, Wf as MAX_EDITS_PER_MESSAGE, Wg as compressSdp, Wh as OFFER_FAST_MS, Wi as assertTokenUnits, Wl as SESSION_RECEIVE_PENDING, Wm as verifyCommitSignature, Wn as sameSshKey, Wo as SIGNAL_FRESH_MS, Wp as BUTTON_ID, Wr as verifyAtprotoRecordProof, Ws as TYPING_STATUS_MAX, Wt as GROUP_REACTED_FRAME, Wu as IDENTITY_MAX_VALIDITY, Wv as setAckFrame, Wx as HANDOFF_CAPABILITY, Wy as contactDay, X as groupTypingEpoch, XC as readOwnRelayPayload, XS as BACKGROUND_WHILE_SIGNALING, X_ as handoffAttemptAllowed, Xa as HANDLED_WAIT_MS, Xb as verifyAppSignature, Xc as appRangeEndFrame, Xd as DHT_FILE_REFUSED, Xf as editedFrame, Xg as keepsToRelays, Xh as SIGNAL_OUT_READS, Xi as walletNetworkOf, Xl as isHoldUrl, Xm as encryptText, Xn as legacyMessageHash, Xo as GROUP_VERSION_HUBS, Xp as REMOVABLE_KINDS, Xr as DID_JWS_MAX_LENGTH, Xs as sanitizeTypingStatus, Xt as groupMessageId, Xu as IdentityCheckUnavailable, Xv as ENROLL_CANCEL, Xx as deviceLinkParams, Xy as makeStamp, Y as GroupTypingBoard, YC as parseRelayPayload, YS as BACKGROUND_REQUESTS_PER_MINUTE, Y_ as handoffAckFrame, Ya as GhostLink, Yb as verifyAppRevocation, Yc as appRangeDataFrame, Yd as ACTIVE_DHT_POLL_MS, Yf as editFrame, Yg as isGlobalIpv4Host, Yh as RELAY_POLL_INTERVALS, Yi as validatePaymentTarget, Yl as HoldRefusedError, Ym as edgeParams, Yn as isLegacySignature, Yo as readGroupSignal, Yp as PR_STATES, Yr as DID_JWS_ALGS, Ys as parseTypingFrame, Yt as frameBytes, Yu as IDENTITY_SUBJECT, Yv as DEVICE_KINDS, Yx as deviceLinkPairing, Yy as linkRecords, Z as openGroupTyping, ZC as signRelayPayload, ZS as BACKGROUND_WRITES_SHARE, Z_ as handoffAttemptFailed, Za as INVITER_DIAL_GRACE_MS, Zb as verifyAppStatementBytes, Zc as appRangeErrorFrame, Zd as DHT_FILE_TOO_LARGE, Zf as parseEditFrame, Zg as parseCallSignal, Zh as STALLED_LOOK_MS, Zi as SPARK_NETWORKS, Zl as newMailbox, Zm as epochKeys, Zn as verifyBitcoinMessage, Zo as MESH_HUBS, Zp as ROUTINE_STATES, Zr as DID_MAX_LENGTH, Zs as typingActivity, Zt as COMMUNITY_EDIT_FRAME, Zu as IdentityExchange, Zv as ENROLL_CANCEL_REASONS, Zx as deviceLinkRendezvousSeed, Zy as makeStampPaced, _ as X401_PROTOCOLS, _C as SIGNALING_ALLOWANCE_SHARE, _S as TURN_LABEL, __ as serviceIdFromName, _a as pubkyHomeserverOf, _b as assembleAppBundle, _c as WAKE_CALL_TTL_SECONDS, _d as STORAGE_ROOT, _f as VOICE_LIMITS, _g as CHUNK_FLAG_END, _h as ratchetRoot, _i as strictBase64Url, _l as chatAppId, _m as MESSAGE_CLOCK_SKEW_MS, _n as MAX_GROUP_PICTURE_LENGTH, _o as pairedMessageFrame, _p as GROUP_REACTION_FRAME, _r as u32, _s as rankHubs, _t as shortHash, _u as recordsFromWellKnown, _v as handoffStreamKey, _w as sanitizeAvatar, _x as deviceInviteJoinerKeyZ32, _y as MAX_WAITING, a as X401_DCQL_LIMITS, aC as GROUP_BURST_MS, aS as seedSigner, a_ as buildLinkRecords, aa as PUBKY_PROOF_MAX_BYTES, ab as stampHolds, ac as PIN_LIMITS, ad as newIdentityBinding, af as DHT_FILE_CAPABILITY, ag as unusedInviteWait, ah as MAX_SKIP, ai as didWebDocumentUrl, al as APP_FRAME, am as cardLine, an as validEditText, ao as PONG_WAIT_MS, ap as canonicalUrl, ar as BitcoinAddressError, as as COMMUNITY_TOPOLOGY, at as communityHasFrame, au as NIP05_PATH, av as handoffDoneFrame, aw as identityFromSeedB64, ax as canonicalJson, ay as enrollDoneFrame, b as buildX401ProofRequest, bC as SLOW_MS, bS as TURN_NAME_BYTES, b_ as viewerTag, ba as fetchLnurlJson, bb as findAppForbiddenKey, bc as WAKE_INTERVAL_MS, bd as isProofAdapter, bf as downsamplePeaks, bg as MAX_CHUNK_PAYLOAD_BYTES, bh as ratchetUnknownSession, bi as DID_DHT_TTL, bl as parseAppFrame, bm as heardTime, bn as groupMetaBody, bo as ENGINE_ERRORS, bp as REACTION_FRAME, br as ATPROTO_DECLARED_SCOPE, bs as readLobby, bt as verifyCommunityChainPaced, bu as validDomainRecord, bv as handoffVersions, bw as sanitizeDisplayText, bx as readDeviceInvite, by as clearMissed, c as readX401DcqlQuery, cC as GROUP_RATION_WINDOW_MS, cS as TURN_RAISE_READ_TIMEOUT_MS, c_ as parseLinkRecords, ca as isPubkyProofFolder, cb as APP_CLIENTS, cc as parsePinFrame, cd as signIdentityPresentation, cf as readDhtFile, cg as HttpHost, ch as RATCHET_HEADER_BYTES, ci as didWebFileUrl, cl as APP_RATE_WINDOW_MS, cm as cardUrl, cn as mentionsBytes, co as RACE_RELAYED_MS, cp as linksIn, cr as decodeAnyBitcoinAddress, cs as doorHubs, ct as communityUntaggedHash, cu as dnsProofName, cv as handoffFileRequestFrame, cw as verify, cx as CONTACT_LINK_BYTES, cy as enrollMessage, d as newX401HolderKey, dC as HEDGE_MS, dS as classifyTurnRead, d_ as MAX_SERVICES, da as pubkyProofCapability, db as APP_ICON_PATH, dc as pinIsNewer, dd as applyIdentityEvent, df as formatFileSize, dg as relativizeLocation, dh as RatchetBox, di as parseDid, dl as APP_VERSION_MAX, dm as removedCardText, dn as wireMentions, do as RTC_UNSTARTED_MS, dp as sanitizePreviewImage, dr as decodeWitness, ds as lobbyKeys, dt as encodeCommunityLink, du as encodeDnsQuery, dv as handoffManifestFrames, dw as generateEncryptionKey, dx as encodeContactLink, dy as readEnrollGrant, eC as CHAT_RESERVE_PER_CHAT, eS as devicePingFrame, e_ as signalHasVideo, ea as sparkAddressKind, eb as readKnockSlot, ec as COMMUNITY_PIN_FRAME, ed as identityPresentationBytes, ef as DHT_TEXT_REFUSED, eg as UNUSED_INVITE_UPKEEP_MS, eh as openSecret, ei as checkDidJws, el as encodeAppRangeData, em as TASK_STATUSES, en as carryMentions, eo as LIVENESS_PING_MS, ep as validEditNumber, er as bip322MessageHash, es as meshHubs, et as COMMUNITY_PROFILE, eu as DNS_TYPE, ev as handoffCancelFrame, ew as encodeTxtPacket, ex as imageSize, ey as ENROLL_HELLO, f as readX401SdJwtVc, fC as PREVIOUS_DEFAULT_RELAYS, fS as keptAtEqualSequence, f_ as SERVICES_VERSION, fa as pubkyProofFile, fb as APP_PERMISSIONS, fc as pinNumberHolds, fd as lastSharedWithMe, ff as safeBlobType, fg as resolveTargetUrl, fh as emptyRatchetState, fi as parseDidDocument, fl as AppSessions, fm as sameButtonText, fn as GROUP_META_PAST, fo as SWITCH_RETIRE_MS, fp as FORWARD_LIMITS, fr as encodeTx, fs as lobbyRecords, ft as leaveStands, fu as isPublicAddress, fv as handoffOfferFrame, fw as sealedLength, fx as readContactLink, fy as readEnrollHello, g as X401_LIMITS, gC as RelaysFailedError, gS as TURN_BODY_BYTES, g_ as isViewerTag, ga as homeserverWebEndpoint, gb as appViewOf, gc as WAKE_CALL_INTERVAL_MS, gd as STORAGE_LIFETIME, gf as RECORDING_TYPES, gg as webLocalFetch, gh as ratchetOpen, gi as staticDidDocument, gl as appOpenFrame, gm as usageLeft, gn as MAX_GROUP_NAME_LENGTH, go as pairedMessageFits, gp as COMMUNITY_REACTION_FRAME, gr as txHash, gs as pickHubs, gt as rosterHash, gu as recordsFromTxt, gv as handoffRetryAfter, gw as jpegSize, gx as createDeviceInvite, gy as MAX_MISSED, h as X401_HEADERS, hC as RelayTransport, hS as TOMBSTONE_TURN, h_ as isValidServiceId, ha as encodeSvcbPacket, hb as appDigest, hc as DEVICE_WAKE_TTL_SECONDS, hd as PeerProofs, hf as PLAYABLE_AUDIO, hg as viewerResponseHeaders, hh as ratchetOn, hi as signingKeys, hl as appDataFrame, hm as taskProgress, hn as MAX_GROUP_NAME_BYTES, ho as WAKE_LOST_MS, hp as readForwarded, hr as sha256d, hs as newerHead, ht as leftStatement, hu as parseDomainTxt, hv as handoffRequestFrame, hw as MAX_AVATAR_SIDE, hx as DEVICE_INVITE_OWN_DEVICE, hy as MAX_DONE, i as x401ApprovalDigest, iC as FRESH_READ_MS, iS as verifyDeviceTransports, i_ as RECORD_TTL, ia as isBitcoinAddress, ib as seenEntry, ic as PIN_FRAME, id as isIdentityBinding, if as peekDhtMailbox, ig as presenceSeenAt, ih as FOLLOW_MS, ii as didSignedMessages, il as APP_DATA_MAX_BYTES, im as cardEditNumber, in as parseCommunityEdit, io as PAIRING_RETRY_MS, ip as LINK_TRAILING, ir as verifyBip322, is as wireHubPolicy, it as communityGroupId, iu as DOMAIN_TXT_MAX_BYTES, iv as handoffDigest, iw as identityFromSeed, ix as readImageMeta, iy as enrollDigits, j as readX401ProofResult, jC as BREAKER_ALL_DOWN_PROBE_MS, jS as nextTurnPosition, j_ as HANDOFF_HAVE, ja as ENDPOINT, jb as APP_STATEMENT_LIMITS, jc as wakePayload, jd as RING_LIFETIME, jf as PLAYABLE_VIDEO, jg as RTC_SIGNAL_MAX_AGE_MS, jh as DIRECT_OWN_ATTEMPTS, ji as openDidDhtPayload, jl as REACTIONS_CAPABILITY, jm as OWN_FRAME_LIMIT, jn as parseGroupMetaFrame, jo as fetchesByItself, jp as readDhtReactions, jr as shortAtprotoDid, js as FileUplink, jt as mergeKnocks, ju as capsDescriptors, jv as readHandoffHello, jw as randomBytes, jx as encodeInviteCode, jy as KNOCK_SLOT_LABEL, k as readX401ProofResponse, kC as setLinkTraceSink, kS as encodeTurnFields, k_ as HANDOFF_FILE_MISSING, ka as decodeBolt11, kb as APP_NAME, kc as relayRequest, kd as verifyNostrProof, kf as voiceLevelsOf, kg as DATA_CHANNEL_LABEL, kh as STALLED_EVIDENCE_MS, ki as encodeDidDhtPacket, kl as KNOWN_SESSION_CAPABILITIES, km as MAX_GROUP_MEMBERS, kn as openGroupMeta, ko as GROUP_WANT_FRAME, kp as reactionFrame, kr as normalizeAtprotoHandle, ks as FILE_FRAMES, kt as knockIdentity, ku as CapsRefusedError, kv as readHandoffFileFrame, kw as fromZ32, kx as decodeInviteCode, ky as ContactRequestError, l as x401VpToken, lC as GROUP_SIGNALING_ALLOWANCE_SHARE, lS as TURN_SETTLE_MS, l_ as HTTP_SERVICE_PROTO, la as newPubkyProofFolder, lb as APP_CLIENT_NAME, lc as parsePinnedFrame, ld as verifyIdentityPresentation, lf as FileTransfers, lg as formatLocalTarget, lh as RATCHET_KEEP_MS, li as didWebHost, ll as APP_RESUME_GRACE_MS, lm as checkStatusCard, ln as mentionsMember, lo as REDESCRIBED_GRACE_MS, lp as parseLinkPreview, lr as decodeBitcoinAddress, ls as freshHubs, lt as decodeCommunityLink, lu as domainTxtRecord, lv as handoffHaveFrames, lw as decrypt, lx as CONTACT_LINK_VERSION, ly as enrollProofFrame, m as x401HolderJwk, mC as REQUESTS_PER_MINUTE, mS as TOMBSTONE_SEQUENCE, m_ as encodeServices, ma as decodeSvcbRecords, mb as APP_VIEWS, mc as readPin, md as PROOF_CAPABILITY, mf as sanitizeMime, mg as sanitizeResponseHeaders, mh as ratchetHeard, mi as parseDidSignaturePaste, ml as appDataBytes, mm as statusCardText, mn as MAX_GROUP_META_BODY, mo as WAKE_ANSWER_GRACE_MS, mp as forwardedMany, mr as hash160, ms as mergeLobby, mt as leaveStatement3, mu as normalizeDomain, mv as handoffReleaseFrame, mw as MAX_AVATAR_LENGTH, mx as DEVICE_INVITE_LIFETIME_S, my as FLOOD_PER_DAY, n as X401_RESPONSE_MODES, nC as DEFAULT_RELAYS, nS as signDeviceTransports, n_ as LABEL, na as sparkNetworkOf, nb as requestPlaintextBytes, nc as PINNED_FRAME, nd as identityStatement, nf as LIVE_POLL_MS, ng as WATCH_PEER_MS, nh as sealSecret, ni as didGhostlyServiceEntry, nl as parseAppRangeFrame, nm as appCardUrl, nn as communityMessageAuthor, no as PAIRED_FRAME_TOO_LARGE, np as LINK_MAX_CHARS, nr as bip322ToSpend, ns as parseHubPolicy, nt as GROUP_READ_NOTE_COMMUNITY, nu as DOMAIN_MAX_RECORDS, nv as handoffContextProof, nw as IDENTITY_MEMO_SIZE, nx as parseImageMeta, ny as enrollCancelFrame, o as matchX401Dcql, oC as GROUP_BURST_ONE_LINK, oS as webCryptoSigner, o_ as emptyLinkRecords, oa as PUBKY_PROOF_ROOT, ob as APP_BUNDLE_LIMITS, oc as mayPin, od as receivedIdentityStatus, of as dhtFileElements, og as GhostlyHttpError, oh as MAX_SKIPPED_KEYS, oi as didWebFile, ol as APP_PEER_OPEN_MAX, om as cardLinkHost, on as MENTION_EVERYONE, oo as RACE_ANSWERED_MS, op as linkEnd, or as ByteReader, os as beaconKeys, ot as communityMessageId, ou as WELL_KNOWN_PATH, ov as handoffEphemeral, ow as publicKeyFromZ32, ox as canonicalJsonBytes, oy as enrollGrantFrame, p as sameX401HolderJwk, pC as RELAY_REQUESTS_PER_MINUTE, pS as turnPutSummary, p_ as decodeServices, pa as pubkyProofPath, pb as APP_SCREENSHOTS_DIR, pc as pinnedFrame, pd as PROOF_ADAPTERS, pf as sanitizeFileName, pg as sanitizeRequestHeaders, ph as isRatcheted, pi as parseDidJws, pl as appCloseFrame, pm as statusCardBytes, pn as GROUP_META_PAST_CHARS, po as UNPROVEN_AUTH_MS, pp as forwardedAgain, pr as encodeWitness, ps as mergeBeacon, pt as leaveStatement, pu as nip05RootKey, pv as handoffPakeFrame, pw as tryDecrypt, px as DEVICE_INVITE_BYTES, py as verifyEnrollProof, q as signAppStore, qC as newerPacket, qS as turnStatedVerifier, q_ as filePartDigest, qa as EARLY_DIAL_JOIN_MS, qb as signAppObject, qc as appRangeCancelFrame, qd as relayedTransports, qf as RateWindow, qg as extractParamsFromSdp, qh as PRESENCE_HEARTBEAT, qi as isWalletNetwork, ql as HOLD_LIMITS, qm as confirmationTag, qn as sshSignCommand, qo as SIGNAL_REPLY_MS, qp as ITEM_STATES, qr as DID_FILE_MAX_BYTES, qs as TypingSender, qt as asWritten, qu as IDENTITY_REVOCATION_LABEL, qv as signTombstone, qx as deviceFrameCapability, qy as knockSlotOf, r as readX401OpenId4VpRequest, rC as DEPARTED_READS, rS as unsignedDeviceTransports, r_ as MAX_MSGS_PAYLOAD_B64, ra as BITCOIN_NETWORKS, rb as requestRecords, rc as PIN_CLOCK_SKEW_MS, rd as identityStatementText, rf as emptyDhtDeliveryState, rg as countUnusedInvite, rh as sha256Hex, ri as didJwsAlg, rl as readAppRangeFrame, rm as buttonLabelClash, rn as meshMessageRef, ro as PAIRING_ATTEMPT_MS, rp as LINK_PREVIEW_LIMITS, rr as decodeBase64, rs as pickMeshHubs, rt as communityCommitHash, ru as DOMAIN_METHODS, rv as handoffDataFrame, rw as createIdentity, rx as previewable, ry as enrollCancelReason, s as presentX401SdJwtVc, sC as GROUP_OVER_PACE_MS, sS as TURN_PUT_WINDOW_MS, s_ as isEmptyLinkPacket, sa as isPubkyKey, sb as APP_BUNDLE_MAGIC, sc as nextPinNumber, sd as revokesIdentity, sf as dhtFileId, sg as HttpClient, sh as RATCHET_CAPABILITY, si as didWebFileNames, sl as APP_RATE_LIMIT, sm as cardTimeUtc, sn as MENTION_LIMITS, so as RACE_DIRECT_MS, sp as linkStop, sr as compactSize, ss as beaconRecords, st as communityRoster, su as decodeDnsResponse, sv as handoffFileMissingFrame, sw as sign, sx as readCanonicalJson, sy as enrollHelloFrame, t as X401_REQUEST_LIMITS, tC as CHAT_WATCH_SHARE, tS as newDeviceSetSecret, t_ as waitForIceGathering, ta as sparkInvoiceDetails, tb as readLinkRecord, tc as GROUP_PIN_FRAME, td as identityRevocationValue, tf as DhtDelivery, tg as UNUSED_INVITE_WAIT_MAX_MS, th as sealPair, ti as checkDidSignature, tl as isServeId, tm as appCardId, tn as communityEditFrame, to as MAX_PAIRED_MESSAGE_FRAME, tp as validRemovalNumber, tr as bip322ToSign, ts as meshRendezvous, tt as CommunitySession, tu as DOMAIN_FILE_MAX_BYTES, tv as handoffContext, tw as readDnsName, tx as isImageMime, ty as ENROLL_PROOF, u as X401_CREDENTIAL_LIMITS, uC as HEDGE_MISSING_MS, uS as TURN_VISIBLE_MS, u_ as LEGACY_SERVICES, ua as normalizePubkyKey, ub as APP_FORBIDDEN_KEYS, uc as pinFrame, ud as IDENTITY_TIMELINE_MAX, uf as PREVIEWABLE_IMAGE, ug as parseLocalTarget, uh as RATCHET_OVERHEAD, ui as normalizeDid, ul as APP_SEND_LIMIT, um as readStatusCard, un as validMentions, uo as RESUME_WAIT_MS, up as previewImageSize, ur as decodeTx, us as hubRank, ut as derivedSecret, uu as domainWellKnownFile, uv as handoffHelloFrame, uw as encrypt, ux as createContactLink, uy as formatEnrollDigits, v as X401_SCHEME, vC as SIGNALING_WINDOW_MS, vS as TURN_LAST_SEQUENCE, v_ as servicesFromWire, va as LIGHTNING_DESTINATION_PATTERN, vb as buildAppBundle, vc as WAKE_CALL_WAIT_MS, vd as emptyProofLedger, vf as VOICE_METER, vg as CHUNK_KIND, vh as ratchetSeal, vi as DID_DHT_MAX_PAYLOAD, vl as isAppVersion, vm as arrivalKey, vn as encodeGroupMetaBody, vo as parsePaymentNetworks, vp as QUICK_REACTIONS, vr as u64, vs as readBeacon, vt as signCommunity, vu as recordsName, vv as handoffVerifiedFrame, vw as MAX_NICK_LENGTH, vx as deviceInviteJoinerParams, vy as NEW_PER_HOUR, w as decodeX401Header, wC as WRITE_FIRST_MS, wS as TURN_SIGNED_BYTES, w_ as HANDOFF_BUSY_REASONS, wa as parseLightningDestination, wb as pacer, wc as deviceWakeRequest, wd as proofStatement, wf as parseVoiceMeta, wg as encodeChunk, wh as DataLink, wi as didDhtDocument, wl as BUTTONS_CAPABILITY, wm as GROUP_ID, wn as groupMetaTag, wo as parseEngineError, wp as parseReactedFrame, wr as atprotoDidMethod, ws as PAIRED_CALL_FRAME, wt as MAX_KNOCKS, wu as CAPS_LIMITS, wv as readHandoffAck, ww as unwrapPasted, wx as INVITE_MAX_LENGTH, wy as planKnocks, x as buildX401ProofResult, xC as TURN_SOURCE_TIMEOUT_MS, xS as TURN_NO_ACTIVE, x_ as HANDOFF_ACK, xa as findLightningDestination, xb as isAppLicense, xc as WAKE_SUBJECT, xd as nostrProofTemplate, xf as fileMessageText, xg as PROTOCOL_VERSION, xh as ANSWER_REFUSED_REDIALS, xi as DID_DHT_VERSION, xl as readAppFrame, xm as receivedTimestamp, xn as groupMetaChange, xo as EngineError, xp as REACTION_LIMITS, xr as ATPROTO_FULL_SCOPE, xs as shouldBeHub, xt as verifyCommunityCommit, xu as wellKnownUrl, xv as isHandoffPartName, xw as sanitizeNick, xx as DEVICE_INVITE_VERSION, xy as endedRequests, y as X401_VERSION, yC as SLOW_DEMOTE_MS, yS as TURN_MAX, y_ as servicesToWire, ya as LNURL_LIMITS, yb as checkAppManifest, yc as WAKE_FRAME, yd as importedProof, yf as baseMime, yg as LIMITS, yh as ratchetSessionOf, yi as DID_DHT_PREFIX, yl as isChatAppId, ym as claimedTime, yn as groupDisplayName, yo as publishFailure, yp as REACTED_FRAME, yr as varBytes, ys as readBeaconHead, yt as verifyCommunityChain, yu as txtValue, yv as handoffVerifiedMessage, yw as hasVisible, yx as encodeDeviceInvite, yy as REOPEN_BELOW, z as planAppUpdate, zC as isDiscoveryBudgetError, zS as turnInstance, z_ as HANDOFF_PIECE_OVERHEAD, za as ANSWERS_REFUSED_PAUSE_MS, zb as isAppKey, zc as pushRequest, zd as RELAY_WITH_SECRETS, zf as EDIT_BUFFER_MS, zg as RTC_CONFIG, zh as EXPECT_PEER_MS, zi as SEPOLIA_TEST_USDT_FAUCET, zl as parseSessionCapabilities, zm as rosterHas, zn as SSH_KEY_TYPES, zo as CarriedTransport, zp as pairedReplyAuthor, zr as parseAtprotoCar, zs as TYPING_KINDS, zt as groupWakeFrame, zu as IDENTITY_FRAME_LIMIT, zv as sortParts, zx as DEVICES_CAPABILITY, zy as REQUEST_PACKET_BYTES } from "./src-DytzSJB6.js";
|
|
2
|
-
//#region ../core/src/pictureMetadata.ts
|
|
3
|
-
/**
|
|
4
|
-
* What a picture leaves with. A photo's file says more than its pixels: its Exif and XMP hold where it was taken, the
|
|
5
|
-
* device, the time, often a thumbnail of the uncropped original. The sender removes them before the file is stored and
|
|
6
|
-
* its digest computed, so what the contact (or anyone in a community) receives is the picture alone: JPEG, PNG, WebP
|
|
7
|
-
* and HEIF (HEIC, AVIF), without decoding or re-encoding a pixel.
|
|
8
|
-
*
|
|
9
|
-
* Fail-closed: a file that is one of these pictures, by its bytes or by its type, and whose metadata cannot be removed
|
|
10
|
-
* (truncated, malformed, a part this does not know) is refused with `NO_PICTURE_METADATA`, never sent as it was. Any
|
|
11
|
-
* other file goes as it is.
|
|
12
|
-
*/
|
|
13
|
-
var PICTURE_METADATA_LIMITS = {
|
|
14
|
-
/** The largest picture read whole to remove its metadata: past this it is refused. */
|
|
15
|
-
maxBytes: 268435456,
|
|
16
|
-
/** Bytes read first to tell a picture from another file. */
|
|
17
|
-
headBytes: 64
|
|
18
|
-
};
|
|
19
|
-
/** Why a picture is refused: its metadata could not be removed, so it does not go at all. */
|
|
20
|
-
var NO_PICTURE_METADATA = "This picture cannot be sent: Ghostly could not remove the details saved in it, like where it was taken";
|
|
21
|
-
/** The types of the pictures stripped here: a file of one of them whose bytes are not that picture is refused. */
|
|
22
|
-
var STRIPPED_TYPES = /* @__PURE__ */ new Set([
|
|
23
|
-
"image/jpeg",
|
|
24
|
-
"image/jpg",
|
|
25
|
-
"image/pjpeg",
|
|
26
|
-
"image/png",
|
|
27
|
-
"image/apng",
|
|
28
|
-
"image/webp",
|
|
29
|
-
"image/heic",
|
|
30
|
-
"image/heif",
|
|
31
|
-
"image/heic-sequence",
|
|
32
|
-
"image/heif-sequence",
|
|
33
|
-
"image/avif",
|
|
34
|
-
"image/gif",
|
|
35
|
-
"image/tiff",
|
|
36
|
-
"image/tiff-fx"
|
|
37
|
-
]);
|
|
38
|
-
/** HEIF brands (HEIC, AVIF, the generic `mif1`): an MP4 video's `ftyp` names none of them. */
|
|
39
|
-
var HEIF_BRANDS = /* @__PURE__ */ new Set([
|
|
40
|
-
"heic",
|
|
41
|
-
"heix",
|
|
42
|
-
"heim",
|
|
43
|
-
"heis",
|
|
44
|
-
"hevc",
|
|
45
|
-
"hevx",
|
|
46
|
-
"mif1",
|
|
47
|
-
"mif2",
|
|
48
|
-
"msf1",
|
|
49
|
-
"avif",
|
|
50
|
-
"avis"
|
|
51
|
-
]);
|
|
52
|
-
var u16be = (b, at) => b[at] << 8 | b[at + 1];
|
|
53
|
-
var u32be = (b, at) => (b[at] << 24 >>> 0) + (b[at + 1] << 16) + (b[at + 2] << 8) + b[at + 3];
|
|
54
|
-
var u32le = (b, at) => (b[at] | b[at + 1] << 8 | b[at + 2] << 16 | b[at + 3] << 24) >>> 0;
|
|
55
|
-
var text = (b, at, length) => String.fromCharCode(...b.subarray(at, at + length));
|
|
56
|
-
var starts = (b, at, prefix) => at + prefix.length <= b.length && text(b, at, prefix.length) === prefix;
|
|
57
|
-
/** A picture this strips, by its first bytes. */
|
|
58
|
-
function kindOf(b) {
|
|
59
|
-
if (b.length >= 3 && b[0] === 255 && b[1] === 216 && b[2] === 255) return "jpeg";
|
|
60
|
-
if (b.length >= 8 && b[0] === 137 && starts(b, 1, "PNG\r\n\n")) return "png";
|
|
61
|
-
if (b.length >= 12 && starts(b, 0, "RIFF") && starts(b, 8, "WEBP")) return "webp";
|
|
62
|
-
if (starts(b, 0, "GIF87a") || starts(b, 0, "GIF89a")) return "gif";
|
|
63
|
-
if (starts(b, 0, "II*\0") || starts(b, 0, "MM\0*") || starts(b, 0, "II+\0") || starts(b, 0, "MM\0+")) return "tiff";
|
|
64
|
-
if (b.length >= 16 && starts(b, 4, "ftyp")) {
|
|
65
|
-
const end = Math.min(b.length, u32be(b, 0));
|
|
66
|
-
for (let at = 8; at + 4 <= end; at += 4) if (at !== 12 && HEIF_BRANDS.has(text(b, at, 4))) return "heif";
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
/** Refuses the picture where its bytes are not what this expects. */
|
|
70
|
-
function check(ok) {
|
|
71
|
-
if (!ok) throw new Error(NO_PICTURE_METADATA);
|
|
72
|
-
}
|
|
73
|
-
/** SOFn markers: every frame type but DHT (C4), JPG (C8) and DAC (CC). */
|
|
74
|
-
var JPEG_FRAME = /* @__PURE__ */ new Set([
|
|
75
|
-
192,
|
|
76
|
-
193,
|
|
77
|
-
194,
|
|
78
|
-
195,
|
|
79
|
-
197,
|
|
80
|
-
198,
|
|
81
|
-
199,
|
|
82
|
-
201,
|
|
83
|
-
202,
|
|
84
|
-
203,
|
|
85
|
-
205,
|
|
86
|
-
206,
|
|
87
|
-
207
|
|
88
|
-
]);
|
|
89
|
-
function jpegKeeps(marker, b, payload) {
|
|
90
|
-
if (marker >= 192 && marker <= 207 || marker >= 218 && marker <= 223) return true;
|
|
91
|
-
if (marker === 224) return starts(b, payload, "JFIF\0");
|
|
92
|
-
if (marker === 226) return starts(b, payload, "ICC_PROFILE\0");
|
|
93
|
-
if (marker === 238) return starts(b, payload, "Adobe");
|
|
94
|
-
return false;
|
|
95
|
-
}
|
|
96
|
-
/** An APP1 Exif, big-endian, whose IFD0 holds `orientation` alone. */
|
|
97
|
-
var orientationOnly = (orientation) => Uint8Array.of(255, 225, 0, 34, 69, 120, 105, 102, 0, 0, 77, 77, 0, 42, 0, 0, 0, 8, 0, 1, 1, 18, 0, 3, 0, 0, 0, 1, 0, orientation, 0, 0, 0, 0, 0, 0);
|
|
98
|
-
function stripJpeg(b) {
|
|
99
|
-
const parts = [b.subarray(0, 2)];
|
|
100
|
-
let at = 2, framed = false, scanned = false, exif = false;
|
|
101
|
-
for (;;) {
|
|
102
|
-
check(at < b.length && b[at] === 255);
|
|
103
|
-
while (at < b.length && b[at] === 255) at++;
|
|
104
|
-
check(at < b.length);
|
|
105
|
-
const marker = b[at++];
|
|
106
|
-
if (marker === 217) {
|
|
107
|
-
check(framed && scanned);
|
|
108
|
-
parts.push(Uint8Array.of(255, 217));
|
|
109
|
-
return parts;
|
|
110
|
-
}
|
|
111
|
-
if (marker === 1 || marker >= 208 && marker <= 215) {
|
|
112
|
-
parts.push(Uint8Array.of(255, marker));
|
|
113
|
-
continue;
|
|
114
|
-
}
|
|
115
|
-
check(marker !== 0 && marker !== 216 && at + 2 <= b.length);
|
|
116
|
-
const length = u16be(b, at);
|
|
117
|
-
check(length >= 2 && at + length <= b.length);
|
|
118
|
-
if (jpegKeeps(marker, b, at + 2)) {
|
|
119
|
-
parts.push(Uint8Array.of(255, marker), b.subarray(at, at + length));
|
|
120
|
-
if (JPEG_FRAME.has(marker)) framed = true;
|
|
121
|
-
} else if (marker === 225 && !scanned && !exif && starts(b, at + 2, "Exif\0\0")) {
|
|
122
|
-
exif = true;
|
|
123
|
-
const orientation = exifOrientation(b, at + 8, at + length);
|
|
124
|
-
if (orientation >= 2) parts.push(orientationOnly(orientation));
|
|
125
|
-
}
|
|
126
|
-
at += length;
|
|
127
|
-
if (marker !== 218) continue;
|
|
128
|
-
check(framed);
|
|
129
|
-
scanned = true;
|
|
130
|
-
let end = at;
|
|
131
|
-
for (;;) {
|
|
132
|
-
end = b.indexOf(255, end);
|
|
133
|
-
check(end >= 0);
|
|
134
|
-
let next = end + 1;
|
|
135
|
-
while (next < b.length && b[next] === 255) next++;
|
|
136
|
-
check(next < b.length);
|
|
137
|
-
if (b[next] !== 0 && !(b[next] >= 208 && b[next] <= 215)) break;
|
|
138
|
-
end = next + 1;
|
|
139
|
-
}
|
|
140
|
-
parts.push(b.subarray(at, end));
|
|
141
|
-
at = end;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
var PNG_CRITICAL = /* @__PURE__ */ new Set([
|
|
145
|
-
"IHDR",
|
|
146
|
-
"PLTE",
|
|
147
|
-
"IDAT",
|
|
148
|
-
"IEND"
|
|
149
|
-
]);
|
|
150
|
-
var PNG_DRAWS = /* @__PURE__ */ new Set([
|
|
151
|
-
"tRNS",
|
|
152
|
-
"gAMA",
|
|
153
|
-
"cHRM",
|
|
154
|
-
"sRGB",
|
|
155
|
-
"iCCP",
|
|
156
|
-
"sBIT",
|
|
157
|
-
"bKGD",
|
|
158
|
-
"pHYs",
|
|
159
|
-
"cICP",
|
|
160
|
-
"mDCV",
|
|
161
|
-
"cLLI",
|
|
162
|
-
"acTL",
|
|
163
|
-
"fcTL",
|
|
164
|
-
"fdAT"
|
|
165
|
-
]);
|
|
166
|
-
function stripPng(b) {
|
|
167
|
-
const parts = [b.subarray(0, 8)];
|
|
168
|
-
let at = 8;
|
|
169
|
-
for (;;) {
|
|
170
|
-
check(at + 12 <= b.length);
|
|
171
|
-
const length = u32be(b, at), type = text(b, at + 4, 4);
|
|
172
|
-
check(at + 12 + length <= b.length && (at > 8 || type === "IHDR"));
|
|
173
|
-
const critical = (b[at + 4] & 32) === 0;
|
|
174
|
-
check(!critical || PNG_CRITICAL.has(type));
|
|
175
|
-
if (critical || PNG_DRAWS.has(type)) parts.push(b.subarray(at, at + 12 + length));
|
|
176
|
-
at += 12 + length;
|
|
177
|
-
if (type === "IEND") return parts;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
var WEBP_KEEPS = /* @__PURE__ */ new Set([
|
|
181
|
-
"VP8 ",
|
|
182
|
-
"VP8L",
|
|
183
|
-
"VP8X",
|
|
184
|
-
"ALPH",
|
|
185
|
-
"ANIM",
|
|
186
|
-
"ANMF",
|
|
187
|
-
"ICCP"
|
|
188
|
-
]);
|
|
189
|
-
function stripWebp(b) {
|
|
190
|
-
check(b.length >= 20);
|
|
191
|
-
const riffEnd = 8 + u32le(b, 4);
|
|
192
|
-
check(riffEnd <= b.length && riffEnd % 2 === 0);
|
|
193
|
-
const parts = [];
|
|
194
|
-
let at = 12, size = 4, drawn = false;
|
|
195
|
-
while (at < riffEnd) {
|
|
196
|
-
check(at + 8 <= riffEnd);
|
|
197
|
-
const type = text(b, at, 4), length = u32le(b, at + 4), end = at + 8 + length + (length & 1);
|
|
198
|
-
check(end <= riffEnd && (at > 12 || type === "VP8 " || type === "VP8L" || type === "VP8X"));
|
|
199
|
-
if (WEBP_KEEPS.has(type)) {
|
|
200
|
-
let chunk = b.subarray(at, end);
|
|
201
|
-
if (type === "VP8X") {
|
|
202
|
-
check(length >= 10);
|
|
203
|
-
chunk = chunk.slice();
|
|
204
|
-
chunk[8] = chunk[8] & -13;
|
|
205
|
-
}
|
|
206
|
-
if (type === "VP8 " || type === "VP8L" || type === "ANMF") drawn = true;
|
|
207
|
-
parts.push(chunk);
|
|
208
|
-
size += chunk.length;
|
|
209
|
-
}
|
|
210
|
-
at = end;
|
|
211
|
-
}
|
|
212
|
-
check(drawn);
|
|
213
|
-
const header = /* @__PURE__ */ new Uint8Array(12);
|
|
214
|
-
header.set(b.subarray(0, 12));
|
|
215
|
-
new DataView(header.buffer).setUint32(4, size, true);
|
|
216
|
-
return [header, ...parts];
|
|
217
|
-
}
|
|
218
|
-
var HEIF_TOP = /* @__PURE__ */ new Set([
|
|
219
|
-
"ftyp",
|
|
220
|
-
"meta",
|
|
221
|
-
"mdat",
|
|
222
|
-
"free",
|
|
223
|
-
"skip"
|
|
224
|
-
]);
|
|
225
|
-
var HEIF_META = /* @__PURE__ */ new Set([
|
|
226
|
-
"hdlr",
|
|
227
|
-
"dinf",
|
|
228
|
-
"pitm",
|
|
229
|
-
"iloc",
|
|
230
|
-
"iinf",
|
|
231
|
-
"iref",
|
|
232
|
-
"iprp",
|
|
233
|
-
"idat",
|
|
234
|
-
"grpl",
|
|
235
|
-
"free",
|
|
236
|
-
"skip"
|
|
237
|
-
]);
|
|
238
|
-
/** Items that hold metadata: Exif, and XMP (or any other document) as a MIME item. */
|
|
239
|
-
var HEIF_METADATA_ITEMS = /* @__PURE__ */ new Set([
|
|
240
|
-
"Exif",
|
|
241
|
-
"mime",
|
|
242
|
-
"uri "
|
|
243
|
-
]);
|
|
244
|
-
function boxes(b, start, end) {
|
|
245
|
-
const found = [];
|
|
246
|
-
for (let at = start; at < end;) {
|
|
247
|
-
check(at + 8 <= end);
|
|
248
|
-
let size = u32be(b, at), body = at + 8;
|
|
249
|
-
const type = text(b, at + 4, 4);
|
|
250
|
-
if (size === 1) {
|
|
251
|
-
check(at + 16 <= end);
|
|
252
|
-
size = u32be(b, at + 8) * 2 ** 32 + u32be(b, at + 12);
|
|
253
|
-
body = at + 16;
|
|
254
|
-
} else if (size === 0) size = end - at;
|
|
255
|
-
if (type === "uuid") body += 16;
|
|
256
|
-
check(size >= body - at && at + size <= end);
|
|
257
|
-
found.push({
|
|
258
|
-
type,
|
|
259
|
-
start: at,
|
|
260
|
-
body,
|
|
261
|
-
end: at + size
|
|
262
|
-
});
|
|
263
|
-
at += size;
|
|
264
|
-
}
|
|
265
|
-
return found;
|
|
266
|
-
}
|
|
267
|
-
function stripHeif(b) {
|
|
268
|
-
const top = boxes(b, 0, b.length);
|
|
269
|
-
check(top[0]?.type === "ftyp" && top.every((box) => HEIF_TOP.has(box.type)));
|
|
270
|
-
const metas = top.filter((box) => box.type === "meta");
|
|
271
|
-
check(metas.length === 1);
|
|
272
|
-
const meta = metas[0];
|
|
273
|
-
const children = boxes(b, meta.body + 4, meta.end);
|
|
274
|
-
check(children.every((box) => HEIF_META.has(box.type)));
|
|
275
|
-
const one = (type) => {
|
|
276
|
-
const of = children.filter((box) => box.type === type);
|
|
277
|
-
check(of.length <= 1);
|
|
278
|
-
return of[0];
|
|
279
|
-
};
|
|
280
|
-
const iinf = one("iinf"), iloc = one("iloc"), idat = one("idat");
|
|
281
|
-
check(!!iinf && !!iloc);
|
|
282
|
-
const metadata = /* @__PURE__ */ new Set();
|
|
283
|
-
const infeVersion = b[iinf.body];
|
|
284
|
-
const entries = boxes(b, iinf.body + 4 + (infeVersion === 0 ? 2 : 4), iinf.end);
|
|
285
|
-
for (const infe of entries) {
|
|
286
|
-
check(infe.type === "infe" && infe.body + 4 <= infe.end);
|
|
287
|
-
const version = b[infe.body];
|
|
288
|
-
check(version === 2 || version === 3);
|
|
289
|
-
let at = infe.body + 4;
|
|
290
|
-
const id = version === 2 ? u16be(b, at) : u32be(b, at);
|
|
291
|
-
at += version === 2 ? 2 : 4;
|
|
292
|
-
check(at + 6 <= infe.end);
|
|
293
|
-
if (HEIF_METADATA_ITEMS.has(text(b, at + 2, 4))) metadata.add(id);
|
|
294
|
-
}
|
|
295
|
-
const out = b.slice();
|
|
296
|
-
const version = b[iloc.body];
|
|
297
|
-
check(version <= 2);
|
|
298
|
-
let at = iloc.body + 4;
|
|
299
|
-
/** The next field of `size` bytes (0, 2, 4 or 8), big-endian. */
|
|
300
|
-
const read = (size) => {
|
|
301
|
-
check(at + size <= iloc.end);
|
|
302
|
-
const value = size === 0 ? 0 : size === 2 ? u16be(b, at) : size === 4 ? u32be(b, at) : size === 8 ? u32be(b, at) * 2 ** 32 + u32be(b, at + 4) : NaN;
|
|
303
|
-
check(Number.isSafeInteger(value));
|
|
304
|
-
at += size;
|
|
305
|
-
return value;
|
|
306
|
-
};
|
|
307
|
-
const read2 = () => read(2);
|
|
308
|
-
check(at + 2 <= iloc.end);
|
|
309
|
-
const offsetSize = b[at] >> 4, lengthSize = b[at] & 15, baseSize = b[at + 1] >> 4, indexSize = version > 0 ? b[at + 1] & 15 : 0;
|
|
310
|
-
check([
|
|
311
|
-
offsetSize,
|
|
312
|
-
lengthSize,
|
|
313
|
-
baseSize,
|
|
314
|
-
indexSize
|
|
315
|
-
].every((size) => size === 0 || size === 4 || size === 8));
|
|
316
|
-
at += 2;
|
|
317
|
-
const count = read(version < 2 ? 2 : 4);
|
|
318
|
-
for (let i = 0; i < count; i++) {
|
|
319
|
-
const id = version < 2 ? read2() : read(4);
|
|
320
|
-
const method = version > 0 ? read2() & 15 : 0;
|
|
321
|
-
const reference = read2();
|
|
322
|
-
const base = read(baseSize);
|
|
323
|
-
const extents = read2();
|
|
324
|
-
for (let e = 0; e < extents; e++) {
|
|
325
|
-
if (indexSize) read(indexSize);
|
|
326
|
-
const offset = read(offsetSize), length = read(lengthSize);
|
|
327
|
-
if (!metadata.has(id)) continue;
|
|
328
|
-
check(reference === 0 && length > 0 && (method === 0 || method === 1 && !!idat));
|
|
329
|
-
const start = (method === 1 ? idat.body : 0) + base + offset, limit = method === 1 ? idat.end : b.length;
|
|
330
|
-
check(start + length <= limit);
|
|
331
|
-
out.fill(0, start, start + length);
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
return [out];
|
|
335
|
-
}
|
|
336
|
-
var GIF_APPS_KEPT = /* @__PURE__ */ new Set([
|
|
337
|
-
"NETSCAPE2.0",
|
|
338
|
-
"ANIMEXTS1.0",
|
|
339
|
-
"ICCRGBG1012"
|
|
340
|
-
]);
|
|
341
|
-
function stripGif(b) {
|
|
342
|
-
check(b.length >= 13);
|
|
343
|
-
/** A colour table's bytes, from the flags that say it is there and its size. */
|
|
344
|
-
const table = (flags) => flags & 128 ? 3 << (flags & 7) + 1 : 0;
|
|
345
|
-
/** The end of the data sub-blocks at `at`, past their empty block. */
|
|
346
|
-
const blocks = (at) => {
|
|
347
|
-
for (;;) {
|
|
348
|
-
check(at < b.length);
|
|
349
|
-
const length = b[at];
|
|
350
|
-
at += 1 + length;
|
|
351
|
-
if (!length) return at;
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
let at = 13 + table(b[10]), framed = false;
|
|
355
|
-
check(at <= b.length);
|
|
356
|
-
const parts = [b.subarray(0, at)];
|
|
357
|
-
for (;;) {
|
|
358
|
-
check(at < b.length);
|
|
359
|
-
const introducer = b[at];
|
|
360
|
-
if (introducer === 59) {
|
|
361
|
-
check(framed);
|
|
362
|
-
parts.push(Uint8Array.of(59));
|
|
363
|
-
return parts;
|
|
364
|
-
}
|
|
365
|
-
if (introducer === 44) {
|
|
366
|
-
check(at + 10 <= b.length);
|
|
367
|
-
const data = at + 10 + table(b[at + 9]);
|
|
368
|
-
check(data < b.length);
|
|
369
|
-
const end = blocks(data + 1);
|
|
370
|
-
parts.push(b.subarray(at, end));
|
|
371
|
-
framed = true;
|
|
372
|
-
at = end;
|
|
373
|
-
continue;
|
|
374
|
-
}
|
|
375
|
-
check(introducer === 33 && at + 2 < b.length);
|
|
376
|
-
const label = b[at + 1], end = blocks(at + 2);
|
|
377
|
-
const app = label === 255 && b[at + 2] === 11 && GIF_APPS_KEPT.has(text(b, at + 3, 11));
|
|
378
|
-
if (label === 249 || label === 1 || app) parts.push(b.subarray(at, end));
|
|
379
|
-
else check(label === 254 || label === 255);
|
|
380
|
-
at = end;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
var TIFF_DRAWS = /* @__PURE__ */ new Set([
|
|
384
|
-
254,
|
|
385
|
-
255,
|
|
386
|
-
256,
|
|
387
|
-
257,
|
|
388
|
-
258,
|
|
389
|
-
259,
|
|
390
|
-
262,
|
|
391
|
-
263,
|
|
392
|
-
264,
|
|
393
|
-
265,
|
|
394
|
-
266,
|
|
395
|
-
273,
|
|
396
|
-
274,
|
|
397
|
-
277,
|
|
398
|
-
278,
|
|
399
|
-
279,
|
|
400
|
-
280,
|
|
401
|
-
281,
|
|
402
|
-
282,
|
|
403
|
-
283,
|
|
404
|
-
284,
|
|
405
|
-
286,
|
|
406
|
-
287,
|
|
407
|
-
290,
|
|
408
|
-
291,
|
|
409
|
-
292,
|
|
410
|
-
293,
|
|
411
|
-
296,
|
|
412
|
-
297,
|
|
413
|
-
301,
|
|
414
|
-
317,
|
|
415
|
-
318,
|
|
416
|
-
319,
|
|
417
|
-
320,
|
|
418
|
-
321,
|
|
419
|
-
322,
|
|
420
|
-
323,
|
|
421
|
-
324,
|
|
422
|
-
325,
|
|
423
|
-
332,
|
|
424
|
-
334,
|
|
425
|
-
336,
|
|
426
|
-
338,
|
|
427
|
-
339,
|
|
428
|
-
340,
|
|
429
|
-
341,
|
|
430
|
-
529,
|
|
431
|
-
530,
|
|
432
|
-
531,
|
|
433
|
-
532,
|
|
434
|
-
34675
|
|
435
|
-
]);
|
|
436
|
-
/** Text and documents about the picture: DocumentName to HostComputer, InkNames, XMP, Copyright, IPTC, Photoshop, Windows' XP tags, PrintIM. */
|
|
437
|
-
var TIFF_METADATA = /* @__PURE__ */ new Set([
|
|
438
|
-
269,
|
|
439
|
-
270,
|
|
440
|
-
271,
|
|
441
|
-
272,
|
|
442
|
-
285,
|
|
443
|
-
305,
|
|
444
|
-
306,
|
|
445
|
-
315,
|
|
446
|
-
316,
|
|
447
|
-
333,
|
|
448
|
-
700,
|
|
449
|
-
33432,
|
|
450
|
-
33723,
|
|
451
|
-
34377,
|
|
452
|
-
18246,
|
|
453
|
-
18249,
|
|
454
|
-
40091,
|
|
455
|
-
40092,
|
|
456
|
-
40093,
|
|
457
|
-
40094,
|
|
458
|
-
40095,
|
|
459
|
-
50341
|
|
460
|
-
]);
|
|
461
|
-
/** The IFDs of Exif, GPS and interoperability, emptied whole. */
|
|
462
|
-
var TIFF_METADATA_IFDS = /* @__PURE__ */ new Set([
|
|
463
|
-
34665,
|
|
464
|
-
34853,
|
|
465
|
-
40965
|
|
466
|
-
]);
|
|
467
|
-
/** Compression without JPEG: none, CCITT, LZW, Deflate, PackBits. */
|
|
468
|
-
var TIFF_COMPRESSION = /* @__PURE__ */ new Set([
|
|
469
|
-
1,
|
|
470
|
-
2,
|
|
471
|
-
3,
|
|
472
|
-
4,
|
|
473
|
-
5,
|
|
474
|
-
8,
|
|
475
|
-
32773,
|
|
476
|
-
32946
|
|
477
|
-
]);
|
|
478
|
-
/** Bytes per value of each field type. */
|
|
479
|
-
var TIFF_TYPE_BYTES = [
|
|
480
|
-
0,
|
|
481
|
-
1,
|
|
482
|
-
1,
|
|
483
|
-
2,
|
|
484
|
-
4,
|
|
485
|
-
8,
|
|
486
|
-
1,
|
|
487
|
-
1,
|
|
488
|
-
2,
|
|
489
|
-
4,
|
|
490
|
-
8,
|
|
491
|
-
4,
|
|
492
|
-
8,
|
|
493
|
-
4
|
|
494
|
-
];
|
|
495
|
-
function stripTiff(b) {
|
|
496
|
-
const little = b[0] === 73;
|
|
497
|
-
const u16 = (at) => {
|
|
498
|
-
check(at + 2 <= b.length);
|
|
499
|
-
return little ? b[at] | b[at + 1] << 8 : u16be(b, at);
|
|
500
|
-
};
|
|
501
|
-
const u32 = (at) => {
|
|
502
|
-
check(at + 4 <= b.length);
|
|
503
|
-
return little ? u32le(b, at) : u32be(b, at);
|
|
504
|
-
};
|
|
505
|
-
check(b.length >= 8 && u16(2) === 42);
|
|
506
|
-
const out = b.slice(), seen = /* @__PURE__ */ new Set();
|
|
507
|
-
/** An IFD's entries: tag, type, the value's first byte (in the entry or where it points) and its bytes. */
|
|
508
|
-
const entries = (ifd) => {
|
|
509
|
-
check(ifd >= 8 && !seen.has(ifd) && seen.size < 1024);
|
|
510
|
-
seen.add(ifd);
|
|
511
|
-
const count = u16(ifd), next = ifd + 2 + count * 12;
|
|
512
|
-
u32(next);
|
|
513
|
-
return {
|
|
514
|
-
next,
|
|
515
|
-
list: Array.from({ length: count }, (_, i) => {
|
|
516
|
-
const at = ifd + 2 + i * 12, tag = u16(at), type = u16(at + 2);
|
|
517
|
-
check(type >= 1 && type < TIFF_TYPE_BYTES.length);
|
|
518
|
-
const bytes = TIFF_TYPE_BYTES[type] * u32(at + 4);
|
|
519
|
-
const value = bytes <= 4 ? at + 8 : u32(at + 8);
|
|
520
|
-
check(Number.isSafeInteger(bytes) && value + bytes <= b.length);
|
|
521
|
-
return {
|
|
522
|
-
at,
|
|
523
|
-
tag,
|
|
524
|
-
type,
|
|
525
|
-
value,
|
|
526
|
-
bytes
|
|
527
|
-
};
|
|
528
|
-
})
|
|
529
|
-
};
|
|
530
|
-
};
|
|
531
|
-
/** An Exif, GPS or interoperability IFD: every value zeroed, then the IFD itself, so it holds no entry. */
|
|
532
|
-
const empty = (ifd) => {
|
|
533
|
-
const { next, list } = entries(ifd);
|
|
534
|
-
for (const entry of list) {
|
|
535
|
-
check(entry.tag !== 37500);
|
|
536
|
-
if (TIFF_METADATA_IFDS.has(entry.tag)) empty(u32(entry.value));
|
|
537
|
-
out.fill(0, entry.value, entry.value + entry.bytes);
|
|
538
|
-
}
|
|
539
|
-
out.fill(0, ifd, next + 4);
|
|
540
|
-
};
|
|
541
|
-
for (let ifd = u32(4); ifd;) {
|
|
542
|
-
const { next, list } = entries(ifd);
|
|
543
|
-
for (const { tag, value, bytes } of list) {
|
|
544
|
-
if (tag === 259) check(TIFF_COMPRESSION.has(u16(value)));
|
|
545
|
-
if (TIFF_METADATA_IFDS.has(tag)) empty(u32(value));
|
|
546
|
-
else if (TIFF_METADATA.has(tag)) out.fill(0, value, value + bytes);
|
|
547
|
-
else check(TIFF_DRAWS.has(tag));
|
|
548
|
-
}
|
|
549
|
-
ifd = u32(next);
|
|
550
|
-
}
|
|
551
|
-
return [out];
|
|
552
|
-
}
|
|
553
|
-
var STRIP = {
|
|
554
|
-
jpeg: stripJpeg,
|
|
555
|
-
png: stripPng,
|
|
556
|
-
webp: stripWebp,
|
|
557
|
-
heif: stripHeif,
|
|
558
|
-
gif: stripGif,
|
|
559
|
-
tiff: stripTiff
|
|
560
|
-
};
|
|
561
|
-
/**
|
|
562
|
-
* A picture's bytes without its metadata, as parts to put in a Blob; undefined when the file is not a picture this
|
|
563
|
-
* strips (by its bytes and its type), so it goes as it is. Throws `NO_PICTURE_METADATA` when it is one but its
|
|
564
|
-
* metadata cannot be removed.
|
|
565
|
-
*/
|
|
566
|
-
function stripPictureMetadata(bytes, mime) {
|
|
567
|
-
const kind = kindOf(bytes);
|
|
568
|
-
if (!kind) {
|
|
569
|
-
if (STRIPPED_TYPES.has(mime.split(";")[0].trim().toLowerCase())) throw new Error(NO_PICTURE_METADATA);
|
|
570
|
-
return;
|
|
571
|
-
}
|
|
572
|
-
return STRIP[kind](bytes);
|
|
573
|
-
}
|
|
574
|
-
/**
|
|
575
|
-
* Whether a file is a picture whose metadata goes before it is sent, by its first `PICTURE_METADATA_LIMITS.headBytes`
|
|
576
|
-
* bytes or by its type: then it is read whole and stripped (`stripPictureMetadata`), else it goes as it is.
|
|
577
|
-
*/
|
|
578
|
-
function isStrippedPicture(head, mime) {
|
|
579
|
-
return !!kindOf(head) || STRIPPED_TYPES.has(mime.split(";")[0].trim().toLowerCase());
|
|
580
|
-
}
|
|
581
|
-
/**
|
|
582
|
-
* `source` as it is sent: without its metadata when it is a picture (`stripPictureMetadata`), or undefined when it is
|
|
583
|
-
* not one and goes as it is. Only its first bytes are read for any other file. Throws `NO_PICTURE_METADATA` for a
|
|
584
|
-
* picture that cannot be stripped or is past `PICTURE_METADATA_LIMITS.maxBytes`; an error reading `source` as it is.
|
|
585
|
-
*/
|
|
586
|
-
async function withoutPictureMetadata(source, mime) {
|
|
587
|
-
if (!isStrippedPicture(new Uint8Array(await source.slice(0, PICTURE_METADATA_LIMITS.headBytes).arrayBuffer()), mime)) return void 0;
|
|
588
|
-
if (source.size > PICTURE_METADATA_LIMITS.maxBytes) throw new Error(NO_PICTURE_METADATA);
|
|
589
|
-
const parts = stripPictureMetadata(new Uint8Array(await source.arrayBuffer()), mime);
|
|
590
|
-
return parts && new Blob(parts, { type: mime });
|
|
591
|
-
}
|
|
592
|
-
//#endregion
|
|
1
|
+
import { $ as COMMUNITY_LIMITS, $C as createRelayPayload, $S as turnSequence, $_ as HANDOFF_WINDOW, $a as DEMOTE_MS, $b as readAppSignature, $c as APP_RANGE_LIMITS, $d as rankTransports, $f as MAX_REMOVAL_NUMBER, $g as contactRtcConfig, $h as OFFER_LOOK_MS, $i as isSparkAddress, $l as HOLD_CAPABILITY, $m as GROUP_PROFILE, $n as MessageRefusal, $o as SIGNAL_HOLD_MS, $p as BUTTON_STYLES, $r as DidError, $s as TYPING_TIMEOUT_MS, $t as GROUP_EDIT_TEXT_BYTES, $u as IDENTITY_PROOF_CAPABILITY, $v as setUpdateFrame, $x as deviceEchoFrame, $y as knockHolds, A as readX401ProofResponseHeader, AC as WATCH_SHARE, AS as TURN_REV_LIMIT, A_ as HANDOFF_ATTEMPTS, Aa as findBolt11, Ab as isAppPath, Ac as WAKE_TTL_SECONDS, Ad as proofCapability, Af as formatVoiceDuration, Ag as decodeChunk, Ah as CONNECT_TIMEOUT_MS, Ai as jwkThumbprint, Al as APPS_CAPABILITY, Am as shownTime, An as parseGroupMetaBody, Ao as engineError, Ap as ReactionWindow, Ar as parseAtprotoDidDocument, As as validHead, At as knockRecords, Au as CAPS_ISSUED_BACK_MS, Av as newHandoffId, Aw as stripHidden, Ax as INVITE_HRP, Ay as inboxRecord, B as APP_STORE_KINDS, BC as BREAKER_BASE_MS, BS as openTurnValue, B_ as HANDOFF_HELLO, Ba as withoutVideoMetadata, Bb as appFingerprint, Bc as wakeRequest, Bd as ringAuthorization, Bf as VIDEO_LIMITS, Bg as buildDataSdp, Bh as DIRECT_PEERS, Bi as TEST_USDT_FAUCET_AMOUNT, Bl as SERVICES_CAPABILITY, Bm as SAID_AGAIN, Bn as SSH_PUBLIC_KEY_MAX, Bo as groupFileFallback, Bp as readReaction, Br as parseAtprotoDidKey, Bs as decodeFileData, Bt as groupWakes, Bu as dialDescriptors, Bv as readHandoffManifest, Bw as toBase64, Bx as inviteLink, By as LINK_RECORD_LABEL, C as buildX401TokenObject, CC as RelayTransport, CS as TOMBSTONE_TURN, C_ as isValidServiceId, Ca as parseInvoiceCallback, Cb as appDigest, Cc as DEVICE_WAKE_TTL_SECONDS, Cd as PeerProofs, Cf as PLAYABLE_AUDIO, Cg as viewerResponseHeaders, Ch as ratchetOn, Ci as decodeDidDhtPacket, Cl as appDataFrame, Cm as taskProgress, Cn as groupMetaPicture, Co as WAKE_LOST_MS, Cp as readForwarded, Cr as ATPROTO_PROOF_SCOPE, Cs as newerHead, Ct as KNOCK_TTL_MS, Cu as parseDomainTxt, Cv as handoffRequestFrame, Cw as MAX_AVATAR_SIDE, Cx as DEVICE_INVITE_OWN_DEVICE, Cy as MAX_DONE, D as readX401ProofRequest, DC as SLOW_DEMOTE_MS, DS as TURN_MAX, D_ as servicesToWire, Da as resolveLightningDestination, Db as checkAppManifest, Dc as WAKE_FRAME, Dd as importedProof, Df as baseMime, Dg as LIMITS, Dh as ratchetSessionOf, Di as didDhtRecords, Dl as isChatAppId, Dm as claimedTime, Dn as keepPastGroupMeta, Do as publishFailure, Dp as REACTED_FRAME, Dr as checkAtprotoProofRecord, Ds as readBeaconHead, Dt as entryParams, Du as txtValue, Dv as handoffVerifiedMessage, Dw as hasVisible, Dx as encodeDeviceInvite, Dy as REOPEN_BELOW, E as isX401Protocol, EC as SIGNALING_WINDOW_MS, ES as TURN_LAST_SEQUENCE, E_ as servicesFromWire, Ea as requestLnurlInvoice, Eb as buildAppBundle, Ec as WAKE_CALL_WAIT_MS, Ed as emptyProofLedger, Ef as VOICE_METER, Eg as CHUNK_KIND, Eh as ratchetSeal, Ei as didDhtKey, El as isAppVersion, Em as arrivalKey, En as groupName, Eo as parsePaymentNetworks, Ep as QUICK_REACTIONS, Er as atprotoProofRkey, Es as readBeacon, Et as encodeGroupEntryLink, Eu as recordsName, Ev as handoffVerifiedFrame, Ew as MAX_NICK_LENGTH, Ex as deviceInviteJoinerParams, Ey as NEW_PER_HOUR, F as appRevocationFor, FC as readRelayBody, FS as TURN_VERSION, F_ as HANDOFF_DATA, Fa as isFederationId, Fb as sha256Paced, Fc as readWake, Fd as storageProofPath, Ff as voiceFileName, Fg as wrapDataChannel, Fh as OFFER_HOST_GATHER_MS, Fi as EVM_TEST_CHAINS, Fl as FILES_BINARY_CAPABILITY, Fm as LEGACY_GROUP_MEMBERS, Fn as verifyGroupMetaSignature, Fo as GROUP_HAVE_FRAME, Fp as reactedFrame, Fr as decodeAtprotoCommit, Fs as ChatFiles, Ft as GROUP_WAKE_GROUP_WINDOW_MS, Fu as CapsExchange, Fv as readHandoffData, Fw as fromBase64, Fx as createChatInvite, Fy as turnOff, G as readAppStore, GC as budgetRetryMs, GS as signTurnPacket, G_ as HANDOFF_PAKE, Ga as withoutPictureMetadata, Gb as checkAppRevokeStatement, Gc as encryptPushPayload, Gd as verifyRingEvidence, Gf as EDITED_FRAME, Gg as CALL_SIGNAL_MAX_AGE_MS, Gh as DEPARTED_READ_MS, Gi as assertWholeSats, Gl as UPGRADE_CAPABILITY, Gm as rememberAlone, Gn as sshFingerprint, Go as readGroupWantNo, Gp as REPLY_LIMITS, Gr as verifyAtprotoSignature, Gs as transferStalled, Gt as GROUP_READ_NOTE, Gu as IDENTITY_CHECK_UNAVAILABLE, Gv as sameDigest, Gx as pastedAgain, Gy as REQUEST_LIFETIME_MS, H as checkAppListing, HC as BREAKER_THRESHOLD, HS as readTurnPacket, H_ as HANDOFF_LIST_PER_FRAME, Ha as PICTURE_METADATA_LIMITS, Hb as appRefPublisher, Hc as WebPushError, Hd as ringEvidence, Hf as isPlayableVideoType, Hg as offerIsFresh, Hh as directBlocked, Hi as WALLET_NETWORKS, Hl as STATUS_CARD_CAPABILITY, Hm as commitUntaggedHash, Hn as parseSshPublicKey, Ho as readGroupFileMeta, Hp as wireReaction, Hr as readAtprotoCid, Hs as refusalText, Ht as parseGroupWakeFrame, Hu as encodePacketTransports, Hv as readHandoffRelease, Hw as toZ32, Hx as inviteQrSegments, Hy as MAX_SLOT_KNOCKS, I as appStoreDecision, IC as relayUrlProblem, IS as TurnRecordError, I_ as HANDOFF_DONE, Ia as parseCashuRequestPayload, Ib as yieldThread, Ic as readWakePayload, Id as validExternalKey, If as voiceLevel, Ig as DATA_CHANNEL_ID, Ih as REANSWERS, Ii as ONCHAIN_PROVIDER, Il as FILES_CAPABILITY, Im as MAX_GROUP_CHAIN, In as wrapGroupMeta, Io as GROUP_VERSION_FILES, Ip as reactionEmoji, Ir as decodeDagCbor, Is as FILE_DATA_KIND, It as GROUP_WAKE_MEMBER_INTERVAL_MS, Iu as CapsKeys, Iv as readHandoffDone, Iw as fromBase64Url, Ix as createLink, Iy as CONTACT_RECORD_TTL, J as GROUP_TYPING_FRAME, JC as withRequestOptions, JS as turnKeys, J_ as HANDOFF_RELEASE, Ja as BLOCKED_DIAL_WAIT_MS, Jb as isAppRef, Jc as vapidAuthorization, Jd as TRANSPORTS, Jf as EDIT_FRAME, Jg as answersOffer, Jh as FIRST_PUBLISH_MAX_MS, Ji as parsePaymentAmount, Jl as sessionCapabilitiesFrame, Jm as signCommit, Jn as verifySshSignature, Jo as GROUP_SIGNAL_FRAME, Jp as readReply, Jr as DID_GHOSTLY_SERVICE, Js as TYPING_RATE_LIMIT, Jt as chainPieces, Ju as IDENTITY_FRAME_WINDOW_MS, Jv as SET_ACK, Jx as DEVICE_CAPABILITIES, Jy as REQUEST_TEXT_BYTES, K as readAppStoreSteps, KC as heldBackError, KS as signTurnRelease, K_ as HANDOFF_PIECE_BYTES, Ka as ANSWERS_REFUSED_PAUSES, Kb as isAppHash, Kc as generateVapidKeys, Kd as RELAY_URL, Kf as EDIT_BUFFER_MAX, Kg as PAIRED_CALL_CANDIDATES, Kh as DHT_POLL_INTERVALS, Ki as formatPaymentAmount, Kl as WAKE_SESSION_CAPABILITY, Km as rosterAdmin, Kn as sshKeyDigestHex, Ko as CARRIED_DEFER_MS, Kp as groupReplyAuthor, Kr as DID_DOCUMENT_MAX_BYTES, Ks as TYPING_FRAME, Kt as GroupSession, Ku as IDENTITY_CLOCK_SKEW, Kv as sealHandoffPiece, Kx as readInviteCode, Ky as REQUEST_NAME_UNITS, L as appUpdateDecision, LC as setLinkTraceSink, LS as encodeTurnFields, L_ as HANDOFF_FILE_MISSING, La as parseFedimintRequestPayload, Lb as APP_NAME, Lc as relayRequest, Ld as verifyNostrProof, Lf as voiceLevelsOf, Lg as DATA_CHANNEL_LABEL, Lh as STALLED_EVIDENCE_MS, Li as PaymentPreflightError, Ll as KNOWN_SESSION_CAPABILITIES, Lm as MAX_GROUP_MEMBERS, Ln as SSHSIG_MAX_ARMOR, Lo as GROUP_WANT_FRAME, Lp as reactionFrame, Lr as encodeDagCbor, Ls as FILE_FRAMES, Lt as GROUP_WAKE_RECEIVE_LIMIT, Lu as CapsRefusedError, Lv as readHandoffFileFrame, Lw as fromZ32, Lx as decodeInviteCode, Ly as ContactRequestError, M as readX401ProofResultHeader, MC as WRITE_FIRST_MS, MS as TURN_SIGNED_BYTES, M_ as HANDOFF_BUSY_REASONS, Ma as cashuRequestPayload, Mb as pacer, Mc as deviceWakeRequest, Md as proofStatement, Mf as parseVoiceMeta, Mg as encodeChunk, Mh as DataLink, Mi as resolveDidDht, Ml as BUTTONS_CAPABILITY, Mm as GROUP_ID, Mn as parseGroupMetaStatement, Mo as parseEngineError, Mp as parseReactedFrame, Mr as AtprotoCid, Ms as PAIRED_CALL_FRAME, Mt as readKnocks, Mu as CAPS_LIMITS, Mv as readHandoffAck, Mw as unwrapPasted, Mx as INVITE_MAX_LENGTH, My as planKnocks, N as x401AnswerableRequests, NC as currentRelays, NS as TURN_SLOTS, N_ as HANDOFF_CANCEL, Na as fedimintRequestPayload, Nb as readAppBundle, Nc as newWakeToken, Nd as storageProof, Nf as recordingMime, Ng as encodeControl, Nh as GATHER_ATTEMPTS, Ni as signDidDhtPacket, Nl as CALLS_CAPABILITY, Nm as GROUP_MEMBER_CAP, Nn as parseGroupMetaTag, No as PairingTracker, Np as parseReactionFrame, Nr as AtprotoProofError, Ns as PairedCalls, Nt as GROUP_WAKE_FRAME, Nu as CAPS_PUBLISH_SPACING_MS, Nv as readHandoffBusy, Nw as bytesEqual, Nx as INVITE_VERSION, Ny as settleRequest, O as readX401ProofRequestHeader, OC as SLOW_MS, OS as TURN_NAME_BYTES, O_ as viewerTag, Oa as BOLT11_PATTERN, Ob as findAppForbiddenKey, Oc as WAKE_INTERVAL_MS, Od as isProofAdapter, Of as downsamplePeaks, Og as MAX_CHUNK_PAYLOAD_BYTES, Oh as ratchetUnknownSession, Oi as encodeDidDhtDeactivated, Ol as parseAppFrame, Om as heardTime, On as nextGroupMetaRevision, Oo as ENGINE_ERRORS, Op as REACTION_FRAME, Or as isAtprotoDid, Os as readLobby, Ot as groupEntryUrl, Ou as validDomainRecord, Ov as handoffVersions, Ow as sanitizeDisplayText, Ox as readDeviceInvite, Oy as clearMissed, P as addedAppPermissions, PC as normalizeRelayUrl, PS as TURN_TTL, P_ as HANDOFF_CANCEL_REASONS, Pa as findEndpoint, Pb as readAppBundleAsync, Pc as parseWakeFrame, Pd as storageProofBody, Pf as voiceDownloadName, Pg as sendBody, Ph as GATHER_STALL_MS, Pi as ETHEREUM_USDT, Pl as EDIT_CAPABILITY, Pm as GROUP_VERSION_LARGE, Pn as signGroupMeta, Po as GROUP_FILE_LIMITS, Pp as queueReaction, Pr as atprotoCidFor, Ps as parsePairedCallFrame, Pt as GROUP_WAKE_GROUP_LIMIT, Pu as CAPS_REFRESH_MS, Pv as readHandoffCancel, Pw as concatBytes, Px as OwnInviteError, Py as takeRequest, Q as sealGroupTyping, QC as RELAY_PAYLOAD_MAX_BYTES, QS as turnReleaseMessage, Q_ as HANDOFF_VERSION, Qa as DEMOTE_AFTER_FAILURES, Qb as readAppRevocations, Qc as APP_RANGE_FRAMES, Qd as irohRelayUrl, Qf as MAX_EDITS_PER_MESSAGE, Qg as compressSdp, Qh as OFFER_FAST_MS, Qi as SPARK_PROVIDER, Ql as SESSION_RECEIVE_PENDING, Qm as verifyCommitSignature, Qn as BIP322_REVISION, Qo as SIGNAL_FRESH_MS, Qp as BUTTON_ID, Qr as DID_METHODS, Qs as TYPING_STATUS_MAX, Qt as GROUP_EDIT_FRAME, Qu as IDENTITY_MAX_VALIDITY, Qv as setAckFrame, Qx as HANDOFF_CAPABILITY, Qy as contactDay, R as checkAppBeforeRun, RC as traceLink, RS as firstDeviceSetSecret, R_ as HANDOFF_FILE_REQUEST, Ra as NO_VIDEO_METADATA, Rb as APP_PREFIXES, Rc as wakeFrame, Rd as verifyPeerProof, Rf as voicePeaksOf, Rg as RTC_SIGNAL_FUTURE_MS, Rh as DIRECT_EVIDENCE_MS, Ri as SEPOLIA_TEST_USDT, Rl as PIN_CAPABILITY, Rm as MEMBER_KEY, Rn as SSHSIG_NAMESPACE, Ro as GROUP_WANT_NO_FRAME, Rp as reactionIsNewer, Rr as findInMst, Rs as FILE_LIMITS, Rt as GroupWakeLimiter, Ru as DHT_TEXT_CAPABILITY, Rv as readHandoffHave, Rw as isZ32Key, Rx as encodeGhostlyInvite, Ry as KNOCK_SLOTS, S as buildX401ResultArtifact, SC as REQUESTS_PER_MINUTE, SS as TOMBSTONE_SEQUENCE, S_ as encodeServices, Sa as invoiceCallbackUrl, Sb as APP_VIEWS, Sc as readPin, Sd as PROOF_CAPABILITY, Sf as sanitizeMime, Sg as sanitizeResponseHeaders, Sh as ratchetHeard, Si as DidDhtError, Sl as appDataBytes, Sm as statusCardText, Sn as groupMetaNewer, So as WAKE_ANSWER_GRACE_MS, Sp as forwardedMany, Sr as ATPROTO_PROOF_COLLECTION, Ss as mergeLobby, St as GROUP_ENTRY_PROFILE, Su as normalizeDomain, Sv as handoffReleaseFrame, Sw as MAX_AVATAR_LENGTH, Sx as DEVICE_INVITE_LIFETIME_S, Sy as FLOOD_PER_DAY, T as encodeX401Header, TC as SIGNALING_ALLOWANCE_SHARE, TS as TURN_LABEL, T_ as serviceIdFromName, Ta as parsePayParams, Tb as assembleAppBundle, Tc as WAKE_CALL_TTL_SECONDS, Td as STORAGE_ROOT, Tf as VOICE_LIMITS, Tg as CHUNK_FLAG_END, Th as ratchetRoot, Ti as didDhtFromPublicKey, Tl as chatAppId, Tm as MESSAGE_CLOCK_SKEW_MS, Tn as groupMetaToHand, To as pairedMessageFrame, Tp as GROUP_REACTION_FRAME, Tr as atprotoProofRecord, Ts as rankHubs, Tt as decodeGroupEntryLink, Tu as recordsFromWellKnown, Tv as handoffStreamKey, Tw as sanitizeAvatar, Tx as deviceInviteJoinerKeyZ32, Ty as MAX_WAITING, U as checkAppStoreIndex, UC as RelayBreaker, US as sealTurnBody, U_ as HANDOFF_MANIFEST, Ua as isStrippedPicture, Ub as appRevocationId, Uc as checkPushEndpoint, Ud as validRingKey, Uf as isVideoMime, Ug as parseRtcSignal, Uh as symmetricNat, Ui as arkAddressPrefix, Ul as SessionCapabilities, Um as expectedRoster, Un as parseSshSignature, Uo as readGroupHave, Up as PAIRED_REPLY_AUTHORS, Ur as unsignedCommitBytes, Us as sentWhole, Ut as GROUP_LIMITS, Uu as parsePacketTransports, Uv as readHandoffTurnFrame, Uw as utf8Decode, Ux as inviteQrText, Uy as REQUEST_CLOCK_SKEW_MS, V as APP_STORE_LIMITS, VC as BREAKER_MAX_MS, VS as readTurnBody, V_ as HANDOFF_LATER_BYTES, Va as NO_PICTURE_METADATA, Vb as appRef, Vc as PUSH_SERVICE_HOSTS, Vd as ringClaims, Vf as formatVideoDuration, Vg as extractRtcParams, Vh as DirectPathWatch, Vi as USDT_PUBLIC_RPC, Vl as SESSION_CAPABILITIES_FRAME, Vm as commitHash, Vn as SshSigError, Vo as isGroupMessageId, Vp as validReactionNumber, Vr as parseAtprotoVerificationKey, Vs as encodeFileData, Vt as mentionedMembers, Vu as emptyCapsState, Vv as readHandoffPake, Vw as toBase64Url, Vx as inviteOwnership, Vy as MAX_SEEN, W as readAppListing, WC as DiscoveryBudgetError, WS as signTurnBody, W_ as HANDOFF_OFFER, Wa as stripPictureMetadata, Wb as appSignedBytes, Wc as decryptPushPayload, Wd as verifyRingAuthorization, Wf as parseVideoMeta, Wg as CALL_SIGNAL_FUTURE_MS, Wh as AWAITING_PEER_MS, Wi as assertTokenUnits, Wl as TYPING_CAPABILITY, Wm as parseGroupCommit, Wn as sameSshKey, Wo as readGroupWant, Wp as REPLY_ID, Wr as verifyAtprotoRecordProof, Ws as transferEnded, Wt as GROUP_REACTED_FRAME, Wu as IDENTITY_CHALLENGE_WINDOW, Wv as readHandoffVerified, Ww as utf8Encode, Wx as ownInviteRefusal, Wy as REQUEST_LABEL, X as groupTypingEpoch, XC as PKARR_FUTURE_SKEW_MS, XS as turnPacket, X_ as HANDOFF_TIMINGS, Xa as CROSSED_PROBE_MS, Xb as readAppRevocation, Xc as APP_RANGE_DATA_KIND, Xd as checkedDescriptors, Xf as EDIT_RECEIVE_LIMIT, Xg as callRtcConfig, Xh as LinkSession, Xi as walletNetworkOf, Xl as PairedSession, Xm as verifyChain, Xn as legacyMessageHash, Xo as SIGNALS_PER_MINUTE, Xp as wireReply, Xr as DID_JWS_MAX_LENGTH, Xs as TYPING_REFRESH_MS, Xt as groupMessageId, Xu as IDENTITY_MAX_FRAME, Xv as encodeSetSlots, Xx as DEVICE_PING_FRAME, Xy as STAMP_BITS_MAX, Y as GroupTypingBoard, YC as MAX_DNS_PACKET_BYTES, YS as turnName, Y_ as HANDOFF_REQUEST, Ya as CROSSED_FRESH_MS, Yb as isAppSignature, Yc as vapidKeysMatch, Yd as automaticTransport, Yf as EDIT_RATE_WINDOW_MS, Yg as buildSdpFromSignal, Yh as IDLE_THRESHOLD, Yi as validatePaymentTarget, Yl as PAIRED_PROFILE, Ym as sortRoster, Yn as isLegacySignature, Yo as GROUP_VERSION_SIGNALS, Yp as replySnippet, Yr as DID_JWS_ALGS, Ys as TYPING_RATE_WINDOW_MS, Yt as frameBytes, Yu as IDENTITY_MAX_EVIDENCE, Yv as SET_UPDATE, Yx as DEVICE_ECHO_FRAME, Yy as STAMP_BITS_DEFAULT, Z as openGroupTyping, ZC as PacketTooLargeError, ZS as turnPayloadSequence, Z_ as HANDOFF_VERIFIED, Za as CROSSED_WAIT_MS, Zb as readAppRevocationShape, Zc as APP_RANGE_ERRORS, Zd as irohDescriptor, Zf as EDIT_SEND_LIMIT, Zg as callSignalHeardAt, Zh as MAX_DHT_TEXT_BYTES, Zi as SPARK_NETWORKS, Zl as SESSION_FRAME_MAX, Zm as verifyCommit, Zn as verifyBitcoinMessage, Zo as SIGNAL_CARRIERS, Zp as ACTIVE_TASK_STATUSES, Zr as DID_MAX_LENGTH, Zs as TYPING_SEND_LIMIT, Zt as COMMUNITY_EDIT_FRAME, Zu as IDENTITY_MAX_RECEIVED, Zv as readSetUpdate, Zx as ENROLL_CAPABILITY, Zy as STAMP_BITS_MIN, _ as X401_PROTOCOLS, _C as GROUP_SIGNALING_ALLOWANCE_SHARE, _S as TURN_SETTLE_MS, __ as HTTP_SERVICE_PROTO, _a as pubkyHomeserverOf, _b as APP_CLIENT_NAME, _c as parsePinnedFrame, _d as verifyIdentityPresentation, _f as FileTransfers, _g as formatLocalTarget, _h as RATCHET_KEEP_MS, _i as strictBase64Url, _l as APP_RESUME_GRACE_MS, _m as checkStatusCard, _n as MAX_GROUP_PICTURE_LENGTH, _o as REDESCRIBED_GRACE_MS, _p as parseLinkPreview, _r as u32, _s as freshHubs, _t as shortHash, _u as domainTxtRecord, _v as handoffHaveFrames, _w as decrypt, _x as CONTACT_LINK_VERSION, _y as enrollProofFrame, a as X401_DCQL_LIMITS, aC as BACKGROUND_WRITES_SHARE, aS as deviceLinkRendezvousSeed, a_ as parseCallSignal, aa as PUBKY_PROOF_MAX_BYTES, ab as makeStampPaced, ac as typingActivity, ad as IdentityExchange, af as DHT_FILE_TOO_LARGE, ag as STALLED_LOOK_MS, ah as epochKeys, ai as didWebDocumentUrl, al as appRangeErrorFrame, am as ROUTINE_STATES, an as validEditText, ao as INVITER_DIAL_GRACE_MS, ap as parseEditFrame, ar as BitcoinAddressError, as as MESH_HUBS, at as communityHasFrame, au as newMailbox, av as handoffAttemptFailed, aw as signRelayPayload, ax as verifyAppStatementBytes, ay as ENROLL_CANCEL_REASONS, b as buildX401ProofRequest, bC as PREVIOUS_DEFAULT_RELAYS, bS as keptAtEqualSequence, b_ as SERVICES_VERSION, ba as fetchLnurlJson, bb as APP_PERMISSIONS, bc as pinNumberHolds, bd as lastSharedWithMe, bf as safeBlobType, bg as resolveTargetUrl, bh as emptyRatchetState, bi as DID_DHT_TTL, bl as AppSessions, bm as sameButtonText, bn as groupMetaBody, bo as SWITCH_RETIRE_MS, bp as FORWARD_LIMITS, br as ATPROTO_DECLARED_SCOPE, bs as lobbyRecords, bt as verifyCommunityChainPaced, bu as isPublicAddress, bv as handoffOfferFrame, bw as sealedLength, bx as readContactLink, by as readEnrollHello, c as readX401DcqlQuery, cC as CHAT_RESERVE_PER_CHAT, cS as devicePingFrame, c_ as signalHasVideo, ca as isPubkyProofFolder, cb as readKnockSlot, cc as COMMUNITY_PIN_FRAME, cd as identityPresentationBytes, cf as DHT_TEXT_REFUSED, cg as UNUSED_INVITE_UPKEEP_MS, ch as openSecret, ci as didWebFileUrl, cl as encodeAppRangeData, cm as TASK_STATUSES, cn as mentionsBytes, co as LIVENESS_PING_MS, cp as validEditNumber, cr as decodeAnyBitcoinAddress, cs as meshHubs, ct as communityUntaggedHash, cu as DNS_TYPE, cv as handoffCancelFrame, cw as encodeTxtPacket, cx as imageSize, cy as ENROLL_HELLO, d as newX401HolderKey, dC as DEPARTED_READS, dS as unsignedDeviceTransports, d_ as MAX_MSGS_PAYLOAD_B64, da as pubkyProofCapability, db as requestRecords, dc as PIN_CLOCK_SKEW_MS, dd as identityStatementText, df as emptyDhtDeliveryState, dg as countUnusedInvite, dh as sha256Hex, di as parseDid, dl as readAppRangeFrame, dm as buttonLabelClash, dn as wireMentions, do as PAIRING_ATTEMPT_MS, dp as LINK_PREVIEW_LIMITS, dr as decodeWitness, ds as pickMeshHubs, dt as encodeCommunityLink, du as DOMAIN_METHODS, dv as handoffDataFrame, dw as createIdentity, dx as previewable, dy as enrollCancelReason, eC as turnSignedMessage, eS as deviceEchoNonce, e_ as decompressSdp, ea as sparkAddressKind, eb as knockSlotIdentity, ec as TypingReceiver, ed as IDENTITY_PROVIDER_ID, ef as relayUrl, eg as OFFER_STEP_MAX, eh as confirmationMatches, ei as checkDidJws, el as AppRanges, em as CRON_LINE, en as carryMentions, eo as DHT_PIN_GRACE_MS, ep as REMOVED_TEXT, er as bip322MessageHash, es as SIGNAL_PROVEN_MS, et as COMMUNITY_PROFILE, eu as HOLD_DATED_BACK_MS, ev as NO_ATTEMPTS, ew as measureRecords, ex as setAppSignatureFastPath, ey as setUpdateMessage, f as readX401SdJwtVc, fC as FRESH_READ_MS, fS as verifyDeviceTransports, f_ as RECORD_TTL, fa as pubkyProofFile, fb as seenEntry, fc as PIN_FRAME, fd as isIdentityBinding, ff as peekDhtMailbox, fg as presenceSeenAt, fh as FOLLOW_MS, fi as parseDidDocument, fl as APP_DATA_MAX_BYTES, fm as cardEditNumber, fn as GROUP_META_PAST, fo as PAIRING_RETRY_MS, fp as LINK_TRAILING, fr as encodeTx, fs as wireHubPolicy, ft as leaveStands, fu as DOMAIN_TXT_MAX_BYTES, fv as handoffDigest, fw as identityFromSeed, fx as readImageMeta, fy as enrollDigits, g as X401_LIMITS, gC as GROUP_RATION_WINDOW_MS, gS as TURN_RAISE_READ_TIMEOUT_MS, g_ as parseLinkRecords, ga as homeserverWebEndpoint, gb as APP_CLIENTS, gc as parsePinFrame, gd as signIdentityPresentation, gf as readDhtFile, gg as HttpHost, gh as RATCHET_HEADER_BYTES, gi as staticDidDocument, gl as APP_RATE_WINDOW_MS, gm as cardUrl, gn as MAX_GROUP_NAME_LENGTH, go as RACE_RELAYED_MS, gp as linksIn, gr as txHash, gs as doorHubs, gt as rosterHash, gu as dnsProofName, gv as handoffFileRequestFrame, gw as verify, gx as CONTACT_LINK_BYTES, gy as enrollMessage, h as X401_HEADERS, hC as GROUP_OVER_PACE_MS, hS as TURN_PUT_WINDOW_MS, h_ as isEmptyLinkPacket, ha as encodeSvcbPacket, hb as APP_BUNDLE_MAGIC, hc as nextPinNumber, hd as revokesIdentity, hf as dhtFileId, hg as HttpClient, hh as RATCHET_CAPABILITY, hi as signingKeys, hl as APP_RATE_LIMIT, hm as cardTimeUtc, hn as MAX_GROUP_NAME_BYTES, ho as RACE_DIRECT_MS, hp as linkStop, hr as sha256d, hs as beaconRecords, ht as leftStatement, hu as decodeDnsResponse, hv as handoffFileMissingFrame, hw as sign, hx as readCanonicalJson, hy as enrollHelloFrame, i as x401ApprovalDigest, iC as BACKGROUND_WHILE_SIGNALING, iS as deviceLinkParams, i_ as keepsToRelays, ia as isBitcoinAddress, ib as makeStamp, ic as sanitizeTypingStatus, id as IdentityCheckUnavailable, if as DHT_FILE_REFUSED, ig as SIGNAL_OUT_READS, ih as encryptText, ii as didSignedMessages, il as appRangeEndFrame, im as REMOVABLE_KINDS, in as parseCommunityEdit, io as HANDLED_WAIT_MS, ip as editedFrame, ir as verifyBip322, is as GROUP_VERSION_HUBS, it as communityGroupId, iu as isHoldUrl, iv as handoffAttemptAllowed, iw as readOwnRelayPayload, ix as verifyAppSignature, iy as ENROLL_CANCEL, j as readX401ProofResult, jC as WAY_BACK_SHARE, jS as TURN_SEALED_BYTES, j_ as HANDOFF_BUSY, ja as ENDPOINT, jb as isAppUrl, jc as WakeLimiter, jd as proofHash, jf as isPlayableAudioType, jg as decodeControl, jh as DATA_SETTLE_MS, ji as openDidDhtPayload, jl as APP_RANGES_CAPABILITY, jm as GROUP_ADMIN_OFF_ERROR, jn as parseGroupMetaFrame, jo as engineText, jp as nextReactionNumber, jr as shortAtprotoDid, js as MAX_PAIRED_CALL_SIGNAL, jt as mergeKnocks, ju as CAPS_LABEL, jv as openHandoffPiece, jw as trimEndOf, jx as INVITE_LINK_ORIGIN, jy as newInbox, k as readX401ProofResponse, kC as TURN_SOURCE_TIMEOUT_MS, kS as TURN_NO_ACTIVE, k_ as HANDOFF_ACK, ka as decodeBolt11, kb as isAppLicense, kc as WAKE_SUBJECT, kd as nostrProofTemplate, kf as fileMessageText, kg as PROTOCOL_VERSION, kh as ANSWER_REFUSED_REDIALS, ki as encodeDidDhtPacket, kl as readAppFrame, km as receivedTimestamp, kn as openGroupMeta, ko as EngineError, kp as REACTION_LIMITS, kr as normalizeAtprotoHandle, ks as shouldBeHub, kt as knockIdentity, ku as wellKnownUrl, kv as isHandoffPartName, kw as sanitizeNick, kx as DEVICE_INVITE_VERSION, ky as endedRequests, l as x401VpToken, lC as CHAT_WATCH_SHARE, lS as newDeviceSetSecret, l_ as waitForIceGathering, la as newPubkyProofFolder, lb as readLinkRecord, lc as GROUP_PIN_FRAME, ld as identityRevocationValue, lf as DhtDelivery, lg as UNUSED_INVITE_WAIT_MAX_MS, lh as sealPair, li as didWebHost, ll as isServeId, lm as appCardId, ln as mentionsMember, lo as MAX_PAIRED_MESSAGE_FRAME, lp as validRemovalNumber, lr as decodeBitcoinAddress, ls as meshRendezvous, lt as decodeCommunityLink, lu as DOMAIN_FILE_MAX_BYTES, lv as handoffContext, lw as readDnsName, lx as isImageMime, ly as ENROLL_PROOF, m as x401HolderJwk, mC as GROUP_BURST_ONE_LINK, mS as webCryptoSigner, m_ as emptyLinkRecords, ma as decodeSvcbRecords, mb as APP_BUNDLE_LIMITS, mc as mayPin, md as receivedIdentityStatus, mf as dhtFileElements, mg as GhostlyHttpError, mh as MAX_SKIPPED_KEYS, mi as parseDidSignaturePaste, ml as APP_PEER_OPEN_MAX, mm as cardLinkHost, mn as MAX_GROUP_META_BODY, mo as RACE_ANSWERED_MS, mp as linkEnd, mr as hash160, ms as beaconKeys, mt as leaveStatement3, mu as WELL_KNOWN_PATH, mv as handoffEphemeral, mw as publicKeyFromZ32, mx as canonicalJsonBytes, my as enrollGrantFrame, n as X401_RESPONSE_MODES, nC as turnVerifierMark, nS as deviceKeyZ32, n_ as heardCallSignal, na as sparkNetworkOf, nb as knockSlotRecords, nc as parseTypingActivity, nd as IDENTITY_STATEMENT_PREFIX, nf as transportOrder, ng as PRESENCE_WINDOW, nh as decryptText, ni as didGhostlyServiceEntry, nl as appRangeChunk, nm as PR_CHECKS, nn as communityMessageAuthor, no as FIRST_PAIRING_PACE_MS, np as dhtEditId, nr as bip322ToSpend, ns as groupSignalFrame, nt as GROUP_READ_NOTE_COMMUNITY, nu as HoldKeys, nv as filePartName, nw as openRelayPayload, nx as signAppRevocation, ny as verifySetUpdate, o as matchX401Dcql, oC as CHAT_RESERVE, oS as deviceLinkSealKey, o_ as pickCallCandidates, oa as PUBKY_PROOF_ROOT, ob as mergeContactKnocks, oc as typingFrame, od as boundVerifiedIdentity, of as DHT_MESSAGE_TTL, og as TRANSPORTS_GONE_MS, oh as newEpochSecret, oi as didWebFile, ol as appRangeGetFrame, om as RUN_RESULTS, on as MENTION_EVERYONE, oo as INVITE_TAKEN, op as parseEditedFrame, or as ByteReader, os as NO_HUB_POLICY, ot as communityMessageId, ou as readManifest, ov as handoffAttemptSucceeded, ow as decodeDnsAnswers, ox as IMAGE_LIMITS, oy as ENROLL_DONE, p as sameX401HolderJwk, pC as GROUP_BURST_MS, pS as seedSigner, p_ as buildLinkRecords, pa as pubkyProofPath, pb as stampHolds, pc as PIN_LIMITS, pd as newIdentityBinding, pf as DHT_FILE_CAPABILITY, pg as unusedInviteWait, ph as MAX_SKIP, pi as parseDidJws, pl as APP_FRAME, pm as cardLine, pn as GROUP_META_PAST_CHARS, po as PONG_WAIT_MS, pp as canonicalUrl, pr as encodeWitness, ps as COMMUNITY_TOPOLOGY, pt as leaveStatement, pu as NIP05_PATH, pv as handoffDoneFrame, pw as identityFromSeedB64, px as canonicalJson, py as enrollDoneFrame, q as signAppStore, qC as isDiscoveryBudgetError, qS as turnInstance, q_ as HANDOFF_PIECE_OVERHEAD, qa as ANSWERS_REFUSED_PAUSE_MS, qb as isAppKey, qc as pushRequest, qd as RELAY_WITH_SECRETS, qf as EDIT_BUFFER_MS, qg as RTC_CONFIG, qh as EXPECT_PEER_MS, qi as isWalletNetwork, ql as parseSessionCapabilities, qm as rosterHas, qn as sshSignCommand, qo as CarriedTransport, qp as pairedReplyAuthor, qr as DID_FILE_MAX_BYTES, qs as TYPING_KINDS, qt as asWritten, qu as IDENTITY_FRAME_LIMIT, qv as sortParts, qx as DEVICES_CAPABILITY, qy as REQUEST_PACKET_BYTES, r as readX401OpenId4VpRequest, rC as BACKGROUND_REQUESTS_PER_MINUTE, rS as deviceLinkPairing, r_ as isGlobalIpv4Host, ra as BITCOIN_NETWORKS, rb as linkRecords, rc as parseTypingFrame, rd as IDENTITY_SUBJECT, rf as ACTIVE_DHT_POLL_MS, rg as RELAY_POLL_INTERVALS, rh as edgeParams, ri as didJwsAlg, rl as appRangeDataFrame, rm as PR_STATES, rn as meshMessageRef, ro as GhostLink, rp as editFrame, rr as decodeBase64, rs as readGroupSignal, rt as communityCommitHash, ru as HoldRefusedError, rv as handoffAckFrame, rw as parseRelayPayload, rx as verifyAppRevocation, ry as DEVICE_KINDS, s as presentX401SdJwtVc, sC as CHAT_RESERVE_MOST_SHARE, sS as deviceLinkSecret, s_ as sdpHasCandidates, sa as isPubkyKey, sb as openRequest, sc as typingKindOf, sd as emptyIdentityLedger, sf as DHT_TEXT_BYTES, sg as UNUSED_INVITE_READS_PER_MINUTE, sh as openPair, si as didWebFileNames, sl as decodeAppRangeData, sm as STATUS_CARD_LIMITS, sn as MENTION_LIMITS, so as LIVENESS_MISSED_PINGS, sp as validEditMessage, sr as compactSize, ss as mayBeHub, st as communityRoster, su as DNS_LABEL, sv as handoffBusyFrame, sw as decodeTxtPacket, sx as exifOrientation, sy as ENROLL_GRANT, t as X401_REQUEST_LIMITS, tC as turnStatedVerifier, tS as deviceFrameCapability, t_ as extractParamsFromSdp, ta as sparkInvoiceDetails, tb as knockSlotOf, tc as TypingSender, td as IDENTITY_REVOCATION_LABEL, tf as relayedTransports, tg as PRESENCE_HEARTBEAT, th as confirmationTag, ti as checkDidSignature, tl as appRangeCancelFrame, tm as ITEM_STATES, tn as communityEditFrame, to as EARLY_DIAL_JOIN_MS, tp as RateWindow, tr as bip322ToSign, ts as SIGNAL_REPLY_MS, tt as CommunitySession, tu as HOLD_LIMITS, tv as filePartDigest, tw as newerPacket, tx as signAppObject, ty as signTombstone, u as X401_CREDENTIAL_LIMITS, uC as DEFAULT_RELAYS, uS as signDeviceTransports, u_ as LABEL, ua as normalizePubkyKey, ub as requestPlaintextBytes, uc as PINNED_FRAME, ud as identityStatement, uf as LIVE_POLL_MS, ug as WATCH_PEER_MS, uh as sealSecret, ui as normalizeDid, ul as parseAppRangeFrame, um as appCardUrl, un as validMentions, uo as PAIRED_FRAME_TOO_LARGE, up as LINK_MAX_CHARS, ur as decodeTx, us as parseHubPolicy, ut as derivedSecret, uu as DOMAIN_MAX_RECORDS, uv as handoffContextProof, uw as IDENTITY_MEMO_SIZE, ux as parseImageMeta, uy as enrollCancelFrame, v as X401_SCHEME, vC as HEDGE_MISSING_MS, vS as TURN_VISIBLE_MS, v_ as LEGACY_SERVICES, va as LIGHTNING_DESTINATION_PATTERN, vb as APP_FORBIDDEN_KEYS, vc as pinFrame, vd as IDENTITY_TIMELINE_MAX, vf as PREVIEWABLE_IMAGE, vg as parseLocalTarget, vh as RATCHET_OVERHEAD, vi as DID_DHT_MAX_PAYLOAD, vl as APP_SEND_LIMIT, vm as readStatusCard, vn as encodeGroupMetaBody, vo as RESUME_WAIT_MS, vp as previewImageSize, vr as u64, vs as hubRank, vt as signCommunity, vu as domainWellKnownFile, vv as handoffHelloFrame, vw as encrypt, vx as createContactLink, vy as formatEnrollDigits, w as decodeX401Header, wC as RelaysFailedError, wS as TURN_BODY_BYTES, w_ as isViewerTag, wa as parseLightningDestination, wb as appViewOf, wc as WAKE_CALL_INTERVAL_MS, wd as STORAGE_LIFETIME, wf as RECORDING_TYPES, wg as webLocalFetch, wh as ratchetOpen, wi as didDhtDocument, wl as appOpenFrame, wm as usageLeft, wn as groupMetaTag, wo as pairedMessageFits, wp as COMMUNITY_REACTION_FRAME, wr as atprotoDidMethod, ws as pickHubs, wt as MAX_KNOCKS, wu as recordsFromTxt, wv as handoffRetryAfter, ww as jpegSize, wx as createDeviceInvite, wy as MAX_MISSED, x as buildX401ProofResult, xC as RELAY_REQUESTS_PER_MINUTE, xS as turnPutSummary, x_ as decodeServices, xa as findLightningDestination, xb as APP_SCREENSHOTS_DIR, xc as pinnedFrame, xd as PROOF_ADAPTERS, xf as sanitizeFileName, xg as sanitizeRequestHeaders, xh as isRatcheted, xi as DID_DHT_VERSION, xl as appCloseFrame, xm as statusCardBytes, xn as groupMetaChange, xo as UNPROVEN_AUTH_MS, xp as forwardedAgain, xr as ATPROTO_FULL_SCOPE, xs as mergeBeacon, xt as verifyCommunityCommit, xu as nip05RootKey, xv as handoffPakeFrame, xw as tryDecrypt, xx as DEVICE_INVITE_BYTES, xy as verifyEnrollProof, y as X401_VERSION, yC as HEDGE_MS, yS as classifyTurnRead, y_ as MAX_SERVICES, ya as LNURL_LIMITS, yb as APP_ICON_PATH, yc as pinIsNewer, yd as applyIdentityEvent, yf as formatFileSize, yg as relativizeLocation, yh as RatchetBox, yi as DID_DHT_PREFIX, yl as APP_VERSION_MAX, ym as removedCardText, yn as groupDisplayName, yo as RTC_UNSTARTED_MS, yp as sanitizePreviewImage, yr as varBytes, ys as lobbyKeys, yt as verifyCommunityChain, yu as encodeDnsQuery, yv as handoffManifestFrames, yw as generateEncryptionKey, yx as encodeContactLink, yy as readEnrollGrant, z as planAppUpdate, zC as BREAKER_ALL_DOWN_PROBE_MS, zS as nextTurnPosition, z_ as HANDOFF_HAVE, za as VIDEO_METADATA_LIMITS, zb as APP_STATEMENT_LIMITS, zc as wakePayload, zd as RING_LIFETIME, zf as PLAYABLE_VIDEO, zg as RTC_SIGNAL_MAX_AGE_MS, zh as DIRECT_OWN_ATTEMPTS, zi as SEPOLIA_TEST_USDT_FAUCET, zl as REACTIONS_CAPABILITY, zm as OWN_FRAME_LIMIT, zn as SSH_KEY_TYPES, zo as fetchesByItself, zp as readDhtReactions, zr as parseAtprotoCar, zs as FileUplink, zt as groupWakeFrame, zu as capsDescriptors, zv as readHandoffHello, zw as randomBytes, zx as encodeInviteCode, zy as KNOCK_SLOT_LABEL } from "./src-Ch4NWeBg.js";
|
|
593
2
|
//#region ../core/src/paymentUri.ts
|
|
594
3
|
/** Whole sats as the decimal BTC amount BIP 21 wants (`21` → `0.00000021`), never in exponent form. */
|
|
595
4
|
function satsToBtc(sats) {
|
|
@@ -793,6 +202,6 @@ var ClockWatch = class {
|
|
|
793
202
|
}
|
|
794
203
|
};
|
|
795
204
|
//#endregion
|
|
796
|
-
export { ACTIVE_DHT_POLL_MS, ACTIVE_TASK_STATUSES, ANSWERS_REFUSED_PAUSES, ANSWERS_REFUSED_PAUSE_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, 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, BUTTONS_CAPABILITY, BUTTON_ID, BUTTON_STYLES, BitcoinAddressError, ByteReader, CALLS_CAPABILITY, 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_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, 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_EVIDENCE, IDENTITY_MAX_FRAME, IDENTITY_MAX_RECEIVED, IDENTITY_MAX_VALIDITY, IDENTITY_MEMO_SIZE, IDENTITY_PROOF_CAPABILITY, IDENTITY_PROVIDER_ID, 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, 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, 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, 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_SERVICE_HOSTS, PacketTooLargeError, PairedCalls, PairedSession, PairingTracker, PaymentPreflightError, PeerProofs, QUICK_REACTIONS, 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_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_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_CARD_CAPABILITY, STATUS_CARD_LIMITS, STORAGE_LIFETIME, STORAGE_ROOT, SWITCH_RETIRE_MS, SessionCapabilities, SshSigError, 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, 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_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, 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, 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, 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, didDhtDocument, didDhtFromPublicKey, didDhtKey, didDhtRecords, didGhostlyServiceEntry, didJwsAlg, didSignedMessages, didWebDocumentUrl, didWebFile, didWebFileNames, didWebFileUrl, didWebHost, directBlocked, dnsProofName, domainTxtRecord, domainWellKnownFile, doorHubs, downsamplePeaks, 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, 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, identityRevocationValue, identityStatement, identityStatementText, imageSize, importedProof, inboxRecord, inviteLink, inviteOwnership, inviteQrSegments, inviteQrText, invoiceCallbackUrl, irohDescriptor, irohRelayUrl, isAppHash, isAppKey, isAppLicense, isAppPath, isAppRef, isAppSignature, isAppUrl, isAppVersion, isAtprotoDid, isBitcoinAddress, 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, 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, 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, parseTypingActivity, parseTypingFrame, parseVideoMeta, parseVoiceMeta, parseWakeFrame, pastedAgain, paymentUri, peekDhtMailbox, pickCallCandidates, pickHubs, pickMeshHubs, pinFrame, pinIsNewer, pinNumberHolds, pinnedFrame, planAppUpdate, planKnocks, presenceSeenAt, presentX401SdJwtVc, previewImageSize, previewable, proofCapability, proofHash, proofStatement, pubkyHomeserverOf, pubkyProofCapability, pubkyProofFile, pubkyProofPath, publicKeyFromZ32, publishFailure, 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, sameX401HolderJwk, sanitizeAvatar, sanitizeDisplayText, sanitizeFileName, sanitizeMime, sanitizeNick, sanitizePreviewImage, sanitizeRequestHeaders, sanitizeResponseHeaders, 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, 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, viewerResponseHeaders, viewerTag, voiceDownloadName, voiceFileName, voiceLevel, voiceLevelsOf, voicePeaksOf, waitForIceGathering, wakeFrame, wakePayload, wakeRequest, walletNetworkOf, webCryptoSigner, webLocalFetch, wellKnownUrl, wireHubPolicy, wireMentions, wireReaction, wireReply, withRequestOptions, withoutPictureMetadata, wrapDataChannel, wrapGroupMeta, x401AnswerableRequests, x401ApprovalDigest, x401HolderJwk, x401VpToken, yieldThread };
|
|
205
|
+
export { ACTIVE_DHT_POLL_MS, ACTIVE_TASK_STATUSES, ANSWERS_REFUSED_PAUSES, ANSWERS_REFUSED_PAUSE_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, 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, BUTTONS_CAPABILITY, BUTTON_ID, BUTTON_STYLES, BitcoinAddressError, ByteReader, CALLS_CAPABILITY, 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_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, 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_EVIDENCE, IDENTITY_MAX_FRAME, IDENTITY_MAX_RECEIVED, IDENTITY_MAX_VALIDITY, IDENTITY_MEMO_SIZE, IDENTITY_PROOF_CAPABILITY, IDENTITY_PROVIDER_ID, 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, 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, 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_SERVICE_HOSTS, PacketTooLargeError, PairedCalls, PairedSession, PairingTracker, PaymentPreflightError, PeerProofs, QUICK_REACTIONS, 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_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_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_CARD_CAPABILITY, STATUS_CARD_LIMITS, STORAGE_LIFETIME, STORAGE_ROOT, SWITCH_RETIRE_MS, SessionCapabilities, SshSigError, 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, 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_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, 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, 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, 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, didDhtDocument, didDhtFromPublicKey, didDhtKey, didDhtRecords, didGhostlyServiceEntry, didJwsAlg, didSignedMessages, didWebDocumentUrl, didWebFile, didWebFileNames, didWebFileUrl, didWebHost, directBlocked, dnsProofName, domainTxtRecord, domainWellKnownFile, doorHubs, downsamplePeaks, 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, 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, identityRevocationValue, identityStatement, identityStatementText, imageSize, importedProof, inboxRecord, inviteLink, inviteOwnership, inviteQrSegments, inviteQrText, invoiceCallbackUrl, irohDescriptor, irohRelayUrl, isAppHash, isAppKey, isAppLicense, isAppPath, isAppRef, isAppSignature, isAppUrl, isAppVersion, isAtprotoDid, isBitcoinAddress, 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, 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, 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, parseTypingActivity, parseTypingFrame, parseVideoMeta, parseVoiceMeta, parseWakeFrame, pastedAgain, paymentUri, peekDhtMailbox, pickCallCandidates, pickHubs, pickMeshHubs, pinFrame, pinIsNewer, pinNumberHolds, pinnedFrame, planAppUpdate, planKnocks, presenceSeenAt, presentX401SdJwtVc, previewImageSize, previewable, proofCapability, proofHash, proofStatement, pubkyHomeserverOf, pubkyProofCapability, pubkyProofFile, pubkyProofPath, publicKeyFromZ32, publishFailure, 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, sameX401HolderJwk, sanitizeAvatar, sanitizeDisplayText, sanitizeFileName, sanitizeMime, sanitizeNick, sanitizePreviewImage, sanitizeRequestHeaders, sanitizeResponseHeaders, 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, 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, viewerResponseHeaders, viewerTag, voiceDownloadName, voiceFileName, voiceLevel, voiceLevelsOf, voicePeaksOf, waitForIceGathering, wakeFrame, wakePayload, wakeRequest, walletNetworkOf, webCryptoSigner, webLocalFetch, wellKnownUrl, wireHubPolicy, wireMentions, wireReaction, wireReply, withRequestOptions, withoutPictureMetadata, withoutVideoMetadata, wrapDataChannel, wrapGroupMeta, x401AnswerableRequests, x401ApprovalDigest, x401HolderJwk, x401VpToken, yieldThread };
|
|
797
206
|
|
|
798
207
|
//# sourceMappingURL=core.js.map
|