@oxidezap/whatsapp-rust-bridge 0.18.0 → 0.19.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/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var K2=Object.defineProperty;var q2=($)=>$;function X2($,Q){this[$]=q2.bind(null,Q)}var Y2=($,Q)=>{for(var q in Q)K2($,q,{get:Q[q],enumerable:!0,configurable:!0,set:X2.bind(Q,q)})};import{readFileSync as MM}from"node:fs";class Yz{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,P2.unregister(this),$}free(){let $=this.__destroy_into_raw();H.__wbg_intounderlyingbytesource_free($,0)}get autoAllocateChunkSize(){return H.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}cancel(){let $=this.__destroy_into_raw();H.intounderlyingbytesource_cancel($)}pull($){let Q=H.intounderlyingbytesource_pull(this.__wbg_ptr,B($));return D(Q)}start($){H.intounderlyingbytesource_start(this.__wbg_ptr,B($))}get type(){let $=H.intounderlyingbytesource_type(this.__wbg_ptr);return F2[$]}}if(Symbol.dispose)Yz.prototype[Symbol.dispose]=Yz.prototype.free;class Vz{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,L2.unregister(this),$}free(){let $=this.__destroy_into_raw();H.__wbg_intounderlyingsink_free($,0)}abort($){let Q=this.__destroy_into_raw(),q=H.intounderlyingsink_abort(Q,B($));return D(q)}close(){let $=this.__destroy_into_raw(),Q=H.intounderlyingsink_close($);return D(Q)}write($){let Q=H.intounderlyingsink_write(this.__wbg_ptr,B($));return D(Q)}}if(Symbol.dispose)Vz.prototype[Symbol.dispose]=Vz.prototype.free;class YQ{static __wrap($){let Q=Object.create(YQ.prototype);return Q.__wbg_ptr=$,Tz.register(Q,Q.__wbg_ptr,Q),Q}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,Tz.unregister(this),$}free(){let $=this.__destroy_into_raw();H.__wbg_intounderlyingsource_free($,0)}cancel(){let $=this.__destroy_into_raw();H.intounderlyingsource_cancel($)}pull($){let Q=H.intounderlyingsource_pull(this.__wbg_ptr,B($));return D(Q)}}if(Symbol.dispose)YQ.prototype[Symbol.dispose]=YQ.prototype.free;class VQ{static __wrap($){let Q=Object.create(VQ.prototype);return Q.__wbg_ptr=$,yz.register(Q,Q.__wbg_ptr,Q),Q}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,yz.unregister(this),$}free(){let $=this.__destroy_into_raw();H.__wbg_wasmwhatsappclient_free($,0)}acknowledgeStanza($){let Q=H.wasmwhatsappclient_acknowledgeStanza(this.__wbg_ptr,B($));return D(Q)}addChatLabel($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_addChatLabel(this.__wbg_ptr,q,Z,X,K);return D(J)}addLidPnMappings($){let Q=H.wasmwhatsappclient_addLidPnMappings(this.__wbg_ptr,B($));return D(Q)}addMessageLabel($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=H.wasmwhatsappclient_addMessageLabel(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}archiveChat($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_archiveChat(this.__wbg_ptr,q,Z,Q);return D(X)}assertSessions($,Q){let q=s($,H.__wbindgen_export),Z=U,X=H.wasmwhatsappclient_assertSessions(this.__wbg_ptr,q,Z,Q);return D(X)}cleanDirtyBits($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_cleanDirtyBits(this.__wbg_ptr,q,Z,!d(Q),d(Q)?0:Q);return D(X)}clearChat($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=H.wasmwhatsappclient_clearChat(this.__wbg_ptr,Z,X,Q,q);return D(K)}communityFetchAllParticipating(){let $=H.wasmwhatsappclient_communityFetchAllParticipating(this.__wbg_ptr);return D($)}communityParticipantsUpdate($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=s(Q,H.__wbindgen_export),J=U,V=H.wasmwhatsappclient_communityParticipantsUpdate(this.__wbg_ptr,Z,X,K,J,B(q));return D(V)}connect(){let $=H.wasmwhatsappclient_connect(this.__wbg_ptr);return D($)}createCommunity($,Q,q,Z,X){let K=P($,H.__wbindgen_export,H.__wbindgen_export2),J=U;var V=d(Q)?0:P(Q,H.__wbindgen_export,H.__wbindgen_export2),C=U;let F=H.wasmwhatsappclient_createCommunity(this.__wbg_ptr,K,J,V,C,q,Z,X);return D(F)}createCommunitySubgroup($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=s(Q,H.__wbindgen_export),J=U,V=P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=H.wasmwhatsappclient_createCommunitySubgroup(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}createGroup($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=s(Q,H.__wbindgen_export),K=U,J=H.wasmwhatsappclient_createGroup(this.__wbg_ptr,q,Z,X,K);return D(J)}createLabel($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=H.wasmwhatsappclient_createLabel(this.__wbg_ptr,Z,X,K,J,q);return D(V)}createParticipantNodesBytes($,Q,q){let Z=s($,H.__wbindgen_export),X=U,K=j(Q,H.__wbindgen_export),J=U,V=H.wasmwhatsappclient_createParticipantNodesBytes(this.__wbg_ptr,Z,X,K,J,B(q));return D(V)}createPoll($,Q,q,Z){let X=P($,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=P(Q,H.__wbindgen_export,H.__wbindgen_export2),V=U,C=s(q,H.__wbindgen_export),F=U,A=H.wasmwhatsappclient_createPoll(this.__wbg_ptr,X,K,J,V,C,F,Z);return D(A)}deactivateCommunity($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_deactivateCommunity(this.__wbg_ptr,Q,q);return D(Z)}deleteChat($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_deleteChat(this.__wbg_ptr,Q,q);return D(Z)}deleteLabel($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_deleteLabel(this.__wbg_ptr,Q,q);return D(Z)}deleteMessageForMe($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=H.wasmwhatsappclient_deleteMessageForMe(this.__wbg_ptr,Z,X,K,J,q);return D(V)}deleteQuickReply($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_deleteQuickReply(this.__wbg_ptr,Q,q);return D(Z)}disconnect(){let $=H.wasmwhatsappclient_disconnect(this.__wbg_ptr);return D($)}downloadMedia($,Q,q,Z,X,K){let J=P($,H.__wbindgen_export,H.__wbindgen_export2),V=U,C=j(Q,H.__wbindgen_export),F=U,A=j(q,H.__wbindgen_export),E=U,h=j(Z,H.__wbindgen_export),T=U,I=H.wasmwhatsappclient_downloadMedia(this.__wbg_ptr,J,V,C,F,A,E,h,T,X,B(K));return D(I)}downloadMediaStream($,Q,q,Z,X,K){try{let F=H.__wbindgen_add_to_stack_pointer(-16),A=P($,H.__wbindgen_export,H.__wbindgen_export2),E=U,h=j(Q,H.__wbindgen_export),T=U,I=j(q,H.__wbindgen_export),w=U,M=j(Z,H.__wbindgen_export),D0=U;H.wasmwhatsappclient_downloadMediaStream(F,this.__wbg_ptr,A,E,h,T,I,w,M,D0,X,B(K));var J=_().getInt32(F+0,!0),V=_().getInt32(F+4,!0),C=_().getInt32(F+8,!0);if(C)throw D(V);return D(J)}finally{H.__wbindgen_add_to_stack_pointer(16)}}editMessageBytes($,Q,q,Z){let X=P($,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=P(Q,H.__wbindgen_export,H.__wbindgen_export2),V=U,C=j(q,H.__wbindgen_export),F=U;var A=d(Z)?0:P(Z,H.__wbindgen_export,H.__wbindgen_export2),E=U;let h=H.wasmwhatsappclient_editMessageBytes(this.__wbg_ptr,X,K,J,V,C,F,A,E);return D(h)}encryptMediaStream($,Q,q){let Z=H.wasmwhatsappclient_encryptMediaStream(this.__wbg_ptr,B($),B(Q),B(q));return D(Z)}ensurePreKeys(){let $=H.wasmwhatsappclient_ensurePreKeys(this.__wbg_ptr);return D($)}fetchBlocklist(){let $=H.wasmwhatsappclient_fetchBlocklist(this.__wbg_ptr);return D($)}fetchMessageHistory($,Q,q,Z,X){let K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=H.wasmwhatsappclient_fetchMessageHistory(this.__wbg_ptr,$,K,J,V,C,Z,X);return D(F)}fetchNewChatMessageCappingInfo(){let $=H.wasmwhatsappclient_fetchNewChatMessageCappingInfo(this.__wbg_ptr);return D($)}fetchPrivacySettings(){let $=H.wasmwhatsappclient_fetchPrivacySettings(this.__wbg_ptr);return D($)}fetchReachoutTimelock(){let $=H.wasmwhatsappclient_fetchReachoutTimelock(this.__wbg_ptr);return D($)}fetchStatus($){let Q=s($,H.__wbindgen_export),q=U,Z=H.wasmwhatsappclient_fetchStatus(this.__wbg_ptr,Q,q);return D(Z)}fetchUserInfo($){let Q=s($,H.__wbindgen_export),q=U,Z=H.wasmwhatsappclient_fetchUserInfo(this.__wbg_ptr,Q,q);return D(Z)}getAccount(){let $=H.wasmwhatsappclient_getAccount(this.__wbg_ptr);return D($)}getBotList(){let $=H.wasmwhatsappclient_getBotList(this.__wbg_ptr);return D($)}getBusinessProfile($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_getBusinessProfile(this.__wbg_ptr,Q,q);return D(Z)}getCatalog($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_getCatalog(this.__wbg_ptr,q,Z,B(Q));return D(X)}getCollections($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_getCollections(this.__wbg_ptr,q,Z,B(Q));return D(X)}getCommunitySubgroups($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_getCommunitySubgroups(this.__wbg_ptr,Q,q);return D(Z)}getCoreAllocationSnapshot(){let $=H.wasmwhatsappclient_getCoreAllocationSnapshot(this.__wbg_ptr);return D($)}getGroupMetadata($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_getGroupMetadata(this.__wbg_ptr,Q,q);return D(Z)}getJid(){let $=H.wasmwhatsappclient_getJid(this.__wbg_ptr);return D($)}getLid(){let $=H.wasmwhatsappclient_getLid(this.__wbg_ptr);return D($)}getMediaConn($){let Q=H.wasmwhatsappclient_getMediaConn(this.__wbg_ptr,$);return D(Q)}getMemoryDiagnostics(){let $=H.wasmwhatsappclient_getMemoryDiagnostics(this.__wbg_ptr);return D($)}getOrder($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=H.wasmwhatsappclient_getOrder(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}getPushName(){let $=H.wasmwhatsappclient_getPushName(this.__wbg_ptr);return D($)}getUSyncDevices($,Q,q){let Z=s($,H.__wbindgen_export),X=U,K=H.wasmwhatsappclient_getUSyncDevices(this.__wbg_ptr,Z,X,Q,q);return D(K)}groupAcceptInvite($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_groupAcceptInvite(this.__wbg_ptr,Q,q);return D(Z)}groupAcceptInviteV4($,Q,q,Z){let X=P($,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=P(Q,H.__wbindgen_export,H.__wbindgen_export2),V=U,C=P(Z,H.__wbindgen_export,H.__wbindgen_export2),F=U,A=H.wasmwhatsappclient_groupAcceptInviteV4(this.__wbg_ptr,X,K,J,V,q,C,F);return D(A)}groupFetchAllParticipating(){let $=H.wasmwhatsappclient_groupFetchAllParticipating(this.__wbg_ptr);return D($)}groupGetInviteInfo($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_groupGetInviteInfo(this.__wbg_ptr,Q,q);return D(Z)}groupInviteCode($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_groupInviteCode(this.__wbg_ptr,Q,q);return D(Z)}groupLeave($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_groupLeave(this.__wbg_ptr,Q,q);return D(Z)}groupMemberAddMode($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_groupMemberAddMode(this.__wbg_ptr,q,Z,B(Q));return D(X)}groupParticipantsUpdate($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=s(Q,H.__wbindgen_export),J=U,V=H.wasmwhatsappclient_groupParticipantsUpdate(this.__wbg_ptr,Z,X,K,J,B(q));return D(V)}groupRequestParticipantsList($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_groupRequestParticipantsList(this.__wbg_ptr,Q,q);return D(Z)}groupRequestParticipantsUpdate($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=s(Q,H.__wbindgen_export),J=U,V=H.wasmwhatsappclient_groupRequestParticipantsUpdate(this.__wbg_ptr,Z,X,K,J,B(q));return D(V)}groupRevokeInvite($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_groupRevokeInvite(this.__wbg_ptr,Q,q);return D(Z)}groupRevokeInviteV4($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_groupRevokeInviteV4(this.__wbg_ptr,q,Z,X,K);return D(J)}groupSettingUpdate($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=H.wasmwhatsappclient_groupSettingUpdate(this.__wbg_ptr,Z,X,B(Q),q);return D(K)}groupToggleEphemeral($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_groupToggleEphemeral(this.__wbg_ptr,q,Z,Q);return D(X)}groupUpdateDescription($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U;var X=d(Q)?0:P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U;let J=H.wasmwhatsappclient_groupUpdateDescription(this.__wbg_ptr,q,Z,X,K);return D(J)}groupUpdateSubject($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_groupUpdateSubject(this.__wbg_ptr,q,Z,X,K);return D(J)}isConnected(){return H.wasmwhatsappclient_isConnected(this.__wbg_ptr)!==0}isLoggedIn(){return H.wasmwhatsappclient_isLoggedIn(this.__wbg_ptr)!==0}isOnWhatsApp($){let Q=s($,H.__wbindgen_export),q=U,Z=H.wasmwhatsappclient_isOnWhatsApp(this.__wbg_ptr,Q,q);return D(Z)}jidToSignalProtocolAddress($){let Q,q;try{let F=H.__wbindgen_add_to_stack_pointer(-16),A=P($,H.__wbindgen_export,H.__wbindgen_export2),E=U;H.wasmwhatsappclient_jidToSignalProtocolAddress(F,this.__wbg_ptr,A,E);var Z=_().getInt32(F+0,!0),X=_().getInt32(F+4,!0),K=_().getInt32(F+8,!0),J=_().getInt32(F+12,!0),V=Z,C=X;if(J)throw V=0,C=0,D(K);return Q=V,q=C,F0(V,C)}finally{H.__wbindgen_add_to_stack_pointer(16),H.__wbindgen_export4(Q,q,1)}}lidForPn($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_lidForPn(this.__wbg_ptr,Q,q);return D(Z)}linkCommunitySubgroups($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=s(Q,H.__wbindgen_export),K=U,J=H.wasmwhatsappclient_linkCommunitySubgroups(this.__wbg_ptr,q,Z,X,K);return D(J)}logout(){let $=H.wasmwhatsappclient_logout(this.__wbg_ptr);return D($)}markChatAsRead($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_markChatAsRead(this.__wbg_ptr,q,Z,Q);return D(X)}markPlayed($){let Q=H.wasmwhatsappclient_markPlayed(this.__wbg_ptr,B($));return D(Q)}muteChat($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_muteChat(this.__wbg_ptr,q,Z,!d(Q),d(Q)?0:Q);return D(X)}newsletterAdminInfo($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_newsletterAdminInfo(this.__wbg_ptr,Q,q);return D(Z)}newsletterAdminMute($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_newsletterAdminMute(this.__wbg_ptr,q,Z,Q);return D(X)}newsletterChangeOwner($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_newsletterChangeOwner(this.__wbg_ptr,q,Z,X,K);return D(J)}newsletterCreate($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U;var X=d(Q)?0:P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U;let J=H.wasmwhatsappclient_newsletterCreate(this.__wbg_ptr,q,Z,X,K);return D(J)}newsletterDelete($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_newsletterDelete(this.__wbg_ptr,Q,q);return D(Z)}newsletterDemoteAdmin($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_newsletterDemoteAdmin(this.__wbg_ptr,q,Z,X,K);return D(J)}newsletterEditMessage($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=j(q,H.__wbindgen_export),C=U,F=H.wasmwhatsappclient_newsletterEditMessage(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}newsletterFollowerMute($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_newsletterFollowerMute(this.__wbg_ptr,q,Z,Q);return D(X)}newsletterFollowers($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_newsletterFollowers(this.__wbg_ptr,q,Z,Q);return D(X)}newsletterList(){let $=H.wasmwhatsappclient_newsletterList(this.__wbg_ptr);return D($)}newsletterMessages($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U;var K=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),J=U;let V=H.wasmwhatsappclient_newsletterMessages(this.__wbg_ptr,Z,X,Q,K,J);return D(V)}newsletterMetadata($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_newsletterMetadata(this.__wbg_ptr,Q,q);return D(Z)}newsletterMetadataByInvite($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_newsletterMetadataByInvite(this.__wbg_ptr,Q,q);return D(Z)}newsletterMute($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_newsletterMute(this.__wbg_ptr,q,Z,Q);return D(X)}newsletterReactMessage($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U;var V=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U;let F=H.wasmwhatsappclient_newsletterReactMessage(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}newsletterRemovePicture($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_newsletterRemovePicture(this.__wbg_ptr,Q,q);return D(Z)}newsletterRevokeMessage($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_newsletterRevokeMessage(this.__wbg_ptr,q,Z,X,K);return D(J)}newsletterSetPicture($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=j(Q,H.__wbindgen_export),K=U,J=H.wasmwhatsappclient_newsletterSetPicture(this.__wbg_ptr,q,Z,X,K);return D(J)}newsletterSubscribe($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_newsletterSubscribe(this.__wbg_ptr,Q,q);return D(Z)}newsletterSubscribeLiveUpdates($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_newsletterSubscribeLiveUpdates(this.__wbg_ptr,Q,q);return D(Z)}newsletterUnsubscribe($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_newsletterUnsubscribe(this.__wbg_ptr,Q,q);return D(Z)}newsletterUpdate($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U;var K=d(Q)?0:P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U;let F=H.wasmwhatsappclient_newsletterUpdate(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}pinChat($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_pinChat(this.__wbg_ptr,q,Z,Q);return D(X)}pnForLid($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_pnForLid(this.__wbg_ptr,Q,q);return D(Z)}presenceSubscribe($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_presenceSubscribe(this.__wbg_ptr,Q,q);return D(Z)}profilePictureUrl($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=H.wasmwhatsappclient_profilePictureUrl(this.__wbg_ptr,Z,X,B(Q),!d(q),d(q)?0:q);return D(K)}queryNode($,Q){let q=H.wasmwhatsappclient_queryNode(this.__wbg_ptr,B($),!d(Q),d(Q)?0:Q);return D(q)}queryUsync($){let Q=H.wasmwhatsappclient_queryUsync(this.__wbg_ptr,B($));return D(Q)}reachability(){let $=H.wasmwhatsappclient_reachability(this.__wbg_ptr);return D($)}readMessages($){let Q=H.wasmwhatsappclient_readMessages(this.__wbg_ptr,B($));return D(Q)}reconnect(){let $=H.wasmwhatsappclient_reconnect(this.__wbg_ptr);return D($)}refreshPreKeys($){let Q=H.wasmwhatsappclient_refreshPreKeys(this.__wbg_ptr,d($)?Number.MAX_SAFE_INTEGER:$>>>0);return D(Q)}rejectCall($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=H.wasmwhatsappclient_rejectCall(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}rejectStanza($,Q,q){let Z=H.wasmwhatsappclient_rejectStanza(this.__wbg_ptr,B($),Q,d(q)?Number.MAX_SAFE_INTEGER:q>>0);return D(Z)}relayMessageBytes($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=j(Q,H.__wbindgen_export),J=U;var V=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U;let F=H.wasmwhatsappclient_relayMessageBytes(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}relayMessageBytesWithOptions($,Q,q,Z,X,K){let J=P($,H.__wbindgen_export,H.__wbindgen_export2),V=U,C=j(Q,H.__wbindgen_export),F=U;var A=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),E=U;let h=H.wasmwhatsappclient_relayMessageBytesWithOptions(this.__wbg_ptr,J,V,C,F,A,E,B(Z),X,K);return D(h)}removeBusinessCoverPhoto($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_removeBusinessCoverPhoto(this.__wbg_ptr,Q,q);return D(Z)}removeChatLabel($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_removeChatLabel(this.__wbg_ptr,q,Z,X,K);return D(J)}removeContact($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_removeContact(this.__wbg_ptr,Q,q);return D(Z)}removeGroupProfilePicture($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_removeGroupProfilePicture(this.__wbg_ptr,Q,q);return D(Z)}removeMessageLabel($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=H.wasmwhatsappclient_removeMessageLabel(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}removeProfilePicture(){let $=H.wasmwhatsappclient_removeProfilePicture(this.__wbg_ptr);return D($)}requestMediaReupload($,Q,q,Z,X){let K=P($,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=P(Q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=j(q,H.__wbindgen_export),A=U;var E=d(X)?0:P(X,H.__wbindgen_export,H.__wbindgen_export2),h=U;let T=H.wasmwhatsappclient_requestMediaReupload(this.__wbg_ptr,K,J,V,C,F,A,Z,E,h);return D(T)}requestMessageRetry($,Q){let q=H.wasmwhatsappclient_requestMessageRetry(this.__wbg_ptr,B($),d(Q)?16777215:Q?1:0);return D(q)}requestPairingCode($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U;var X=d(Q)?0:P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U;let J=H.wasmwhatsappclient_requestPairingCode(this.__wbg_ptr,q,Z,X,K);return D(J)}retransmitMessageBytes($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=j(Q,H.__wbindgen_export),J=U,V=H.wasmwhatsappclient_retransmitMessageBytes(this.__wbg_ptr,Z,X,K,J,B(q));return D(V)}revokeMessage($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U;var V=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U;let F=H.wasmwhatsappclient_revokeMessage(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}rotateSignedKey(){let $=H.wasmwhatsappclient_rotateSignedKey(this.__wbg_ptr);return D($)}run(){try{let q=H.__wbindgen_add_to_stack_pointer(-16);H.wasmwhatsappclient_run(q,this.__wbg_ptr);var $=_().getInt32(q+0,!0),Q=_().getInt32(q+4,!0);if(Q)throw D($)}finally{H.__wbindgen_add_to_stack_pointer(16)}}saveContact($,Q,q,Z){let X=P($,H.__wbindgen_export,H.__wbindgen_export2),K=U;var J=d(Q)?0:P(Q,H.__wbindgen_export,H.__wbindgen_export2),V=U,C=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),F=U;let A=H.wasmwhatsappclient_saveContact(this.__wbg_ptr,X,K,J,V,C,F,Z);return D(A)}sendChatState($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_sendChatState(this.__wbg_ptr,q,Z,B(Q));return D(X)}sendCommentBytes($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=j(q,H.__wbindgen_export),J=U,V=H.wasmwhatsappclient_sendCommentBytes(this.__wbg_ptr,Z,X,B(Q),K,J);return D(V)}sendMessageBytes($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=j(Q,H.__wbindgen_export),K=U,J=H.wasmwhatsappclient_sendMessageBytes(this.__wbg_ptr,q,Z,X,K);return D(J)}sendNode($){let Q=H.wasmwhatsappclient_sendNode(this.__wbg_ptr,B($));return D(Q)}sendPresence($){let Q=H.wasmwhatsappclient_sendPresence(this.__wbg_ptr,B($));return D(Q)}sendRawMessage($){let Q=j($,H.__wbindgen_export),q=U,Z=H.wasmwhatsappclient_sendRawMessage(this.__wbg_ptr,Q,q);return D(Z)}sendReaction($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U;var K=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),J=U;let V=H.wasmwhatsappclient_sendReaction(this.__wbg_ptr,Z,X,B(Q),K,J);return D(V)}sendStatusMessageBytes($,Q){let q=j($,H.__wbindgen_export),Z=U,X=s(Q,H.__wbindgen_export),K=U,J=H.wasmwhatsappclient_sendStatusMessageBytes(this.__wbg_ptr,q,Z,X,K);return D(J)}sendStatusMessageBytesWithOptions($,Q,q,Z,X){let K=j($,H.__wbindgen_export),J=U,V=s(Q,H.__wbindgen_export),C=U;var F=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),A=U;let E=H.wasmwhatsappclient_sendStatusMessageBytesWithOptions(this.__wbg_ptr,K,J,V,C,F,A,B(Z),X);return D(E)}setAutoReconnect($){H.wasmwhatsappclient_setAutoReconnect(this.__wbg_ptr,$)}setBusinessCoverPhoto($){let Q=H.wasmwhatsappclient_setBusinessCoverPhoto(this.__wbg_ptr,B($));return D(Q)}setClientProfile($){let Q=H.wasmwhatsappclient_setClientProfile(this.__wbg_ptr,B($));return D(Q)}setDeviceProps($){let Q=H.wasmwhatsappclient_setDeviceProps(this.__wbg_ptr,B($));return D(Q)}setGroupProfilePicture($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=j(Q,H.__wbindgen_export),K=U,J=H.wasmwhatsappclient_setGroupProfilePicture(this.__wbg_ptr,q,Z,X,K);return D(J)}setInitialPushName($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_setInitialPushName(this.__wbg_ptr,Q,q);return D(Z)}setLinkPreviewsDisabled($){let Q=H.wasmwhatsappclient_setLinkPreviewsDisabled(this.__wbg_ptr,$);return D(Q)}setPushName($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_setPushName(this.__wbg_ptr,Q,q);return D(Z)}setQuickReply($,Q,q,Z,X){let K=P($,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=P(Q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=P(q,H.__wbindgen_export,H.__wbindgen_export2),A=U,E=s(Z,H.__wbindgen_export),h=U,T=H.wasmwhatsappclient_setQuickReply(this.__wbg_ptr,K,J,V,C,F,A,E,h,X);return D(T)}setRawNodeForwarding($){H.wasmwhatsappclient_setRawNodeForwarding(this.__wbg_ptr,$)}setUserStatusMute($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_setUserStatusMute(this.__wbg_ptr,q,Z,Q);return D(X)}signalDecryptGroupMessage($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=j(q,H.__wbindgen_export),C=U,F=H.wasmwhatsappclient_signalDecryptGroupMessage(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}signalDecryptMessage($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=j(q,H.__wbindgen_export),C=U,F=H.wasmwhatsappclient_signalDecryptMessage(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}signalDeleteSenderKey($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_signalDeleteSenderKey(this.__wbg_ptr,q,Z,X,K);return D(J)}signalDeleteSessions($){let Q=s($,H.__wbindgen_export),q=U,Z=H.wasmwhatsappclient_signalDeleteSessions(this.__wbg_ptr,Q,q);return D(Z)}signalEncryptGroupMessage($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=j(Q,H.__wbindgen_export),J=U,V=P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=H.wasmwhatsappclient_signalEncryptGroupMessage(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}signalEncryptMessage($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=j(Q,H.__wbindgen_export),K=U,J=H.wasmwhatsappclient_signalEncryptMessage(this.__wbg_ptr,q,Z,X,K);return D(J)}signalGetSenderKeyDistribution($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_signalGetSenderKeyDistribution(this.__wbg_ptr,q,Z,X,K);return D(J)}signalGetSessionInfo($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_signalGetSessionInfo(this.__wbg_ptr,Q,q);return D(Z)}signalHasSenderKey($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_signalHasSenderKey(this.__wbg_ptr,q,Z,X,K);return D(J)}signalInstallPreKeyBundle($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_signalInstallPreKeyBundle(this.__wbg_ptr,q,Z,B(Q));return D(X)}signalMigrateSessions($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_signalMigrateSessions(this.__wbg_ptr,q,Z,X,K);return D(J)}signalProcessSenderKeyDistribution($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=j(q,H.__wbindgen_export),C=U,F=H.wasmwhatsappclient_signalProcessSenderKeyDistribution(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}signalValidateSession($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_signalValidateSession(this.__wbg_ptr,Q,q);return D(Z)}starMessage($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=H.wasmwhatsappclient_starMessage(this.__wbg_ptr,Z,X,K,J,q);return D(V)}unlinkCommunitySubgroups($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=s(Q,H.__wbindgen_export),J=U,V=H.wasmwhatsappclient_unlinkCommunitySubgroups(this.__wbg_ptr,Z,X,K,J,q);return D(V)}updateBlockStatus($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_updateBlockStatus(this.__wbg_ptr,q,Z,B(Q));return D(X)}updateBusinessProfile($){let Q=H.wasmwhatsappclient_updateBusinessProfile(this.__wbg_ptr,B($));return D(Q)}updateDefaultDisappearingMode($){let Q=H.wasmwhatsappclient_updateDefaultDisappearingMode(this.__wbg_ptr,$);return D(Q)}updateMemberLabel($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_updateMemberLabel(this.__wbg_ptr,q,Z,X,K);return D(J)}updatePrivacySetting($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_updatePrivacySetting(this.__wbg_ptr,q,Z,X,K);return D(J)}updateProfilePicture($){let Q=j($,H.__wbindgen_export),q=U,Z=H.wasmwhatsappclient_updateProfilePicture(this.__wbg_ptr,Q,q);return D(Z)}updateProfileStatus($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_updateProfileStatus(this.__wbg_ptr,Q,q);return D(Z)}uploadEncryptedMediaStream($,Q,q,Z,X,K){let J=j(Q,H.__wbindgen_export),V=U,C=j(q,H.__wbindgen_export),F=U,A=j(Z,H.__wbindgen_export),E=U,h=H.wasmwhatsappclient_uploadEncryptedMediaStream(this.__wbg_ptr,B($),J,V,C,F,A,E,X,B(K));return D(h)}uploadMedia($,Q){let q=j($,H.__wbindgen_export),Z=U,X=H.wasmwhatsappclient_uploadMedia(this.__wbg_ptr,q,Z,B(Q));return D(X)}validateKeyBundle(){let $=H.wasmwhatsappclient_validateKeyBundle(this.__wbg_ptr);return D($)}votePoll($,Q,q,Z,X){let K=P($,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=P(Q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=P(q,H.__wbindgen_export,H.__wbindgen_export2),A=U,E=j(Z,H.__wbindgen_export),h=U,T=s(X,H.__wbindgen_export),I=U,w=H.wasmwhatsappclient_votePoll(this.__wbg_ptr,K,J,V,C,F,A,E,h,T,I);return D(w)}waitForConnected($){let Q=H.wasmwhatsappclient_waitForConnected(this.__wbg_ptr,$);return D(Q)}waitForSocket($){let Q=H.wasmwhatsappclient_waitForSocket(this.__wbg_ptr,$);return D(Q)}waitUntilReachable(){let $=H.wasmwhatsappclient_waitUntilReachable(this.__wbg_ptr);return D($)}withdrawParkedCalls(){return H.wasmwhatsappclient_withdrawParkedCalls(this.__wbg_ptr)>>>0}}if(Symbol.dispose)VQ.prototype[Symbol.dispose]=VQ.prototype.free;function TM(){H.beginWasmAllocationProfile()}function yM($,Q){try{let K=H.__wbindgen_add_to_stack_pointer(-16),J=j($,H.__wbindgen_export),V=U,C=j(Q,H.__wbindgen_export),F=U;H.calculateAgreement(K,J,V,C,F);var q=_().getInt32(K+0,!0),Z=_().getInt32(K+4,!0),X=_().getInt32(K+8,!0);if(X)throw D(Z);return D(q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function vM($,Q){try{let K=H.__wbindgen_add_to_stack_pointer(-16),J=j($,H.__wbindgen_export),V=U,C=j(Q,H.__wbindgen_export),F=U;H.calculateSignature(K,J,V,C,F);var q=_().getInt32(K+0,!0),Z=_().getInt32(K+4,!0),X=_().getInt32(K+8,!0);if(X)throw D(Z);return D(q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function fz($,Q,q,Z,X,K,J){let V=H.createWhatsAppClient(B($),B(Q),d(q)?0:B(q),d(Z)?0:B(Z),d(X)?0:B(X),d(K)?0:B(K),d(J)?0:B(J));return D(V)}function fM($){try{let X=H.__wbindgen_add_to_stack_pointer(-16),K=j($,H.__wbindgen_export),J=U;H.decodeSenderKeyRecordComponents(X,K,J);var Q=_().getInt32(X+0,!0),q=_().getInt32(X+4,!0),Z=_().getInt32(X+8,!0);if(Z)throw D(q);return D(Q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function _M($){try{let X=H.__wbindgen_add_to_stack_pointer(-16),K=j($,H.__wbindgen_export),J=U;H.decodeSessionRecordComponents(X,K,J);var Q=_().getInt32(X+0,!0),q=_().getInt32(X+4,!0),Z=_().getInt32(X+8,!0);if(Z)throw D(q);return D(Q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function hM($,Q,q,Z,X,K){try{let F=H.__wbindgen_add_to_stack_pointer(-16),A=j($,H.__wbindgen_export),E=U,h=j(Q,H.__wbindgen_export),T=U,I=j(q,H.__wbindgen_export),w=U,M=P(Z,H.__wbindgen_export,H.__wbindgen_export2),D0=U,q0=P(X,H.__wbindgen_export,H.__wbindgen_export2),v=U,X0=P(K,H.__wbindgen_export,H.__wbindgen_export2),m=U;H.decryptEventResponsePayload(F,A,E,h,T,I,w,M,D0,q0,v,X0,m);var J=_().getInt32(F+0,!0),V=_().getInt32(F+4,!0),C=_().getInt32(F+8,!0);if(C)throw D(V);return D(J)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function lM($,Q,q,Z,X,K,J){try{let h=H.__wbindgen_add_to_stack_pointer(-16),T=j($,H.__wbindgen_export),I=U,w=j(Q,H.__wbindgen_export),M=U,D0=j(q,H.__wbindgen_export),q0=U,v=P(Z,H.__wbindgen_export,H.__wbindgen_export2),X0=U,m=P(X,H.__wbindgen_export,H.__wbindgen_export2),u=U,qz=P(K,H.__wbindgen_export,H.__wbindgen_export2),$Q=U,QQ=s(J,H.__wbindgen_export),RV=U;H.decryptPollVote(h,T,I,w,M,D0,q0,v,X0,m,u,qz,$Q,QQ,RV);var V=_().getInt32(h+0,!0),C=_().getInt32(h+4,!0),F=_().getInt32(h+8,!0),A=_().getInt32(h+12,!0);if(A)throw D(F);var E=_0(V,C).slice();return H.__wbindgen_export4(V,C*4,4),E}finally{H.__wbindgen_add_to_stack_pointer(16)}}function pM($,Q,q,Z,X,K){try{let F=H.__wbindgen_add_to_stack_pointer(-16),A=j($,H.__wbindgen_export),E=U,h=j(Q,H.__wbindgen_export),T=U,I=j(q,H.__wbindgen_export),w=U,M=P(Z,H.__wbindgen_export,H.__wbindgen_export2),D0=U,q0=P(X,H.__wbindgen_export,H.__wbindgen_export2),v=U,X0=P(K,H.__wbindgen_export,H.__wbindgen_export2),m=U;H.decryptPollVotePayload(F,A,E,h,T,I,w,M,D0,q0,v,X0,m);var J=_().getInt32(F+0,!0),V=_().getInt32(F+4,!0),C=_().getInt32(F+8,!0);if(C)throw D(V);return D(J)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function uM($){try{let X=H.__wbindgen_add_to_stack_pointer(-16);H.encodeSenderKeyRecordComponents(X,B($));var Q=_().getInt32(X+0,!0),q=_().getInt32(X+4,!0),Z=_().getInt32(X+8,!0);if(Z)throw D(q);return D(Q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function wM($){try{let X=H.__wbindgen_add_to_stack_pointer(-16);H.encodeSessionRecordComponents(X,B($));var Q=_().getInt32(X+0,!0),q=_().getInt32(X+4,!0),Z=_().getInt32(X+8,!0);if(Z)throw D(q);return D(Q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function jM(){let $=H.generateKeyPair();return D($)}function cM(){let $=H.getEnabledFeatures();return D($)}function dM($){try{let X=H.__wbindgen_add_to_stack_pointer(-16),K=j($,H.__wbindgen_export),J=U;H.getPublicFromPrivateKey(X,K,J);var Q=_().getInt32(X+0,!0),q=_().getInt32(X+4,!0),Z=_().getInt32(X+8,!0);if(Z)throw D(q);return D(Q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function nM(){try{let Z=H.__wbindgen_add_to_stack_pointer(-16);H.getWasmAllocationSnapshot(Z);var $=_().getInt32(Z+0,!0),Q=_().getInt32(Z+4,!0),q=_().getInt32(Z+8,!0);if(q)throw D(Q);return D($)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function bM(){return H.getWasmMemoryBytes()}function oM(){return H.hasLogger()!==0}function iM($,Q,q){try{let J=H.__wbindgen_add_to_stack_pointer(-16),V=j($,H.__wbindgen_export),C=U;H.hkdf(J,V,C,Q,B(q));var Z=_().getInt32(J+0,!0),X=_().getInt32(J+4,!0),K=_().getInt32(J+8,!0);if(K)throw D(X);return D(Z)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function mM($,Q){try{let K=H.__wbindgen_add_to_stack_pointer(-16);H.importLegacySessionRecordV1(K,B($),B(Q));var q=_().getInt32(K+0,!0),Z=_().getInt32(K+4,!0),X=_().getInt32(K+8,!0);if(X)throw D(Z);return D(q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function gM($,Q){try{let K=H.__wbindgen_add_to_stack_pointer(-16),J=j($,H.__wbindgen_export),V=U;H.inflateZlib(K,J,V,!d(Q),d(Q)?0:Q);var q=_().getInt32(K+0,!0),Z=_().getInt32(K+4,!0),X=_().getInt32(K+8,!0);if(X)throw D(Z);return D(q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function _z($,Q){H.initWasmEngine(B($),B(Q))}function rM($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U;H.logMessage(q,Z,X,K)}function tM($){let Q=j($,H.__wbindgen_export),q=U,Z=H.md5(Q,q);return D(Z)}function aM($){try{let X=H.__wbindgen_add_to_stack_pointer(-16),K=j($,H.__wbindgen_export),J=U;H.projectLegacySessionRecordV1(X,K,J);var Q=_().getInt32(X+0,!0),q=_().getInt32(X+4,!0),Z=_().getInt32(X+8,!0);if(Z)throw D(q);return D(Q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function sM($){try{let Z=H.__wbindgen_add_to_stack_pointer(-16);H.setLogger(Z,B($));var Q=_().getInt32(Z+0,!0),q=_().getInt32(Z+4,!0);if(q)throw D(Q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function eM($){H.updateLogger(B($))}function $W($,Q,q){try{let J=H.__wbindgen_add_to_stack_pointer(-16),V=j($,H.__wbindgen_export),C=U,F=j(Q,H.__wbindgen_export),A=U,E=j(q,H.__wbindgen_export),h=U;H.verifySignature(J,V,C,F,A,E,h);var Z=_().getInt32(J+0,!0),X=_().getInt32(J+4,!0),K=_().getInt32(J+8,!0);if(K)throw D(X);return Z!==0}finally{H.__wbindgen_add_to_stack_pointer(16)}}function V2(){return{__proto__:null,"./whatsapp_rust_bridge_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(Q,q){let Z=Error(F0(Q,q));return B(Z)},__wbg_Number_9a4e0ecb0fa16705:function(Q){return Number(k(Q))},__wbg_String_8564e559799eccda:function(Q,q){let Z=String(k(q)),X=P(Z,H.__wbindgen_export,H.__wbindgen_export2),K=U;_().setInt32(Q+4,K,!0),_().setInt32(Q+0,X,!0)},__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f:function(Q,q){let Z=k(q),X=typeof Z==="bigint"?Z:void 0;_().setBigInt64(Q+8,d(X)?BigInt(0):X,!0),_().setInt32(Q+0,!d(X),!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(Q){let q=k(Q),Z=typeof q==="boolean"?q:void 0;return d(Z)?16777215:Z?1:0},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(Q,q){let Z=zz(k(q)),X=P(Z,H.__wbindgen_export,H.__wbindgen_export2),K=U;_().setInt32(Q+4,K,!0),_().setInt32(Q+0,X,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(Q,q){return k(Q)in k(q)},__wbg___wbindgen_is_bigint_2f76dc55065b4273:function(Q){return typeof k(Q)==="bigint"},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(Q){return typeof k(Q)==="function"},__wbg___wbindgen_is_null_ea9085d691f535d3:function(Q){return k(Q)===null},__wbg___wbindgen_is_object_a27215656b807791:function(Q){let q=k(Q);return typeof q==="object"&&q!==null},__wbg___wbindgen_is_string_ea5e6cc2e4141dfe:function(Q){return typeof k(Q)==="string"},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(Q){return k(Q)===void 0},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(Q,q){return k(Q)===k(q)},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(Q,q){return k(Q)==k(q)},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(Q,q){let Z=k(q),X=typeof Z==="number"?Z:void 0;_().setFloat64(Q+8,d(X)?0:X,!0),_().setInt32(Q+0,!d(X),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(Q,q){let Z=k(q),X=typeof Z==="string"?Z:void 0;var K=d(X)?0:P(X,H.__wbindgen_export,H.__wbindgen_export2),J=U;_().setInt32(Q+4,J,!0),_().setInt32(Q+0,K,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(Q,q){throw Error(F0(Q,q))},__wbg__wbg_cb_unref_fffb441def202758:function(Q){k(Q)._wbg_cb_unref()},__wbg_apply_3ac86a26fdb56c05:function(){return Z0(function(Q,q,Z){let X=k(Q).apply(k(q),k(Z));return B(X)},arguments)},__wbg_bind_ed119fc9a791cb9c:function(Q,q,Z,X){let K=k(Q).bind(k(q),k(Z),k(X));return B(K)},__wbg_buffer_54b87055582c8a81:function(Q){let q=k(Q).buffer;return B(q)},__wbg_byobRequest_06b654bb15590436:function(Q){let q=k(Q).byobRequest;return d(q)?0:B(q)},__wbg_byteLength_41862ca4020b9c43:function(Q){return k(Q).byteLength},__wbg_byteOffset_d42e18c4441f628b:function(Q){return k(Q).byteOffset},__wbg_call_44b7209e1e252e6a:function(){return Z0(function(Q,q,Z,X,K){let J=k(Q).call(k(q),k(Z),k(X),k(K));return B(J)},arguments)},__wbg_call_8a2dd23819f8a60a:function(){return Z0(function(Q,q){let Z=k(Q).call(k(q));return B(Z)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return Z0(function(Q,q,Z){let X=k(Q).call(k(q),k(Z));return B(X)},arguments)},__wbg_call_d118afd8bd2557eb:function(){return Z0(function(Q,q,Z,X,K,J){let V=k(Q).call(k(q),k(Z),k(X),k(K),k(J));return B(V)},arguments)},__wbg_call_e3b662382210db98:function(){return Z0(function(Q,q,Z,X){let K=k(Q).call(k(q),k(Z),k(X));return B(K)},arguments)},__wbg_cancel_3983a93e24cc66b3:function(Q){let q=k(Q).cancel();return B(q)},__wbg_catch_c1a60df4c30d76d3:function(Q,q){let Z=k(Q).catch(k(q));return B(Z)},__wbg_close_1e6096d41f7ce5d0:function(Q){let q=k(Q).close();return B(q)},__wbg_close_249a23304523681b:function(){return Z0(function(Q){k(Q).close()},arguments)},__wbg_close_72d318d9c16e83ef:function(){return Z0(function(Q){k(Q).close()},arguments)},__wbg_debug_10ca7029b12f8d85:function(Q,q,Z,X){k(Q).debug(k(q),Z===0?void 0:F0(Z,X))},__wbg_debug_cf53e2612c84e4ee:function(Q,q,Z,X){console.debug(k(Q),k(q),k(Z),k(X))},__wbg_done_89b2b13e91a60321:function(Q){return k(Q).done},__wbg_enqueue_6d83b4c6281bafd6:function(){return Z0(function(Q,q){k(Q).enqueue(k(q))},arguments)},__wbg_entries_015dc610cd81ede0:function(Q){let q=Object.entries(k(Q));return B(q)},__wbg_error_657700d53a73881f:function(Q,q,Z,X){console.error(k(Q),k(q),k(Z),k(X))},__wbg_error_9cce413345f88385:function(Q,q,Z,X){k(Q).error(k(q),Z===0?void 0:F0(Z,X))},__wbg_error_a6fa202b58aa1cd3:function(Q,q){let Z,X;try{Z=Q,X=q,console.error(F0(Q,q))}finally{H.__wbindgen_export4(Z,X,1)}},__wbg_from_13e323c65fc8f464:function(Q){let q=Array.from(k(Q));return B(q)},__wbg_getRandomValues_cc7f052a444bb2ce:function(){return Z0(function(Q,q){globalThis.crypto.getRandomValues(g$(Q,q))},arguments)},__wbg_getReader_bb0230851fbf986b:function(){return Z0(function(Q){let q=k(Q).getReader();return B(q)},arguments)},__wbg_getWriter_d71a99bcd847ccef:function(){return Z0(function(Q){let q=k(Q).getWriter();return B(q)},arguments)},__wbg_get_507a50627bffa49b:function(Q,q){let Z=k(Q)[q>>>0];return B(Z)},__wbg_get_78f252d074a84d0b:function(){return Z0(function(Q,q){let Z=Reflect.get(k(Q),k(q));return B(Z)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return Z0(function(Q,q){let Z=Reflect.get(k(Q),k(q));return B(Z)},arguments)},__wbg_get_done_670108eb06ecbe46:function(Q){let q=k(Q).done;return d(q)?16777215:q?1:0},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(Q,q){let Z=k(Q)[q>>>0];return B(Z)},__wbg_get_value_f465f5be30aa0963:function(Q){let q=k(Q).value;return B(q)},__wbg_get_with_ref_key_6412cf3094599694:function(Q,q){let Z=k(Q)[k(q)];return B(Z)},__wbg_info_79f5309d69d9c70e:function(Q,q,Z,X){console.info(k(Q),k(q),k(Z),k(X))},__wbg_info_b728e87a346ff6a2:function(Q,q,Z,X){k(Q).info(k(q),Z===0?void 0:F0(Z,X))},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(Q){let q;try{q=k(Q)instanceof ArrayBuffer}catch(X){q=!1}return q},__wbg_instanceof_Array_de0fa65266a8c7c0:function(Q){let q;try{q=k(Q)instanceof Array}catch(X){q=!1}return q},__wbg_instanceof_Error_1fdac9f13a8181ba:function(Q){let q;try{q=k(Q)instanceof Error}catch(X){q=!1}return q},__wbg_instanceof_Map_e5b5e3db98422fcc:function(Q){let q;try{q=k(Q)instanceof Map}catch(X){q=!1}return q},__wbg_instanceof_Object_33f20e6f12439f3e:function(Q){let q;try{q=k(Q)instanceof Object}catch(X){q=!1}return q},__wbg_instanceof_Promise_4cb210c0b8f8c959:function(Q){let q;try{q=k(Q)instanceof Promise}catch(X){q=!1}return q},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(Q){let q;try{q=k(Q)instanceof Uint8Array}catch(X){q=!1}return q},__wbg_isArray_0677c962b281d01a:function(Q){return Array.isArray(k(Q))},__wbg_isSafeInteger_04f36e4056f1b851:function(Q){return Number.isSafeInteger(k(Q))},__wbg_iterator_6f722e4a93058b71:function(){return B(Symbol.iterator)},__wbg_keys_58421f8f96795607:function(Q){let q=Object.keys(k(Q));return B(q)},__wbg_length_1f0964f4a5e2c6d8:function(Q){return k(Q).length},__wbg_length_370319915dc99107:function(Q){return k(Q).length},__wbg_level_4b50b181832c5acf:function(Q,q){let Z=k(q).level,X=P(Z,H.__wbindgen_export,H.__wbindgen_export2),K=U;_().setInt32(Q+4,K,!0),_().setInt32(Q+0,X,!0)},__wbg_log_a45418e25b210a4c:function(Q,q,Z,X){console.log(k(Q),k(q),k(Z),k(X))},__wbg_message_8326fb1d549bebc5:function(Q){let q=k(Q).message;return B(q)},__wbg_new_227d7c05414eb861:function(){let Q=Error();return B(Q)},__wbg_new_32b398fb48b6d94a:function(){return B([])},__wbg_new_7796ffc7ed656783:function(){return B(new Map)},__wbg_new_b667d279fd5aa943:function(Q,q){let Z=Error(F0(Q,q));return B(Z)},__wbg_new_cd45aabdf6073e84:function(Q){let q=new Uint8Array(k(Q));return B(q)},__wbg_new_da52cf8fe3429cb2:function(){return B({})},__wbg_new_from_slice_7568ba55b4a7e81f:function(Q,q){let Z=new Uint32Array(k2(Q,q));return B(Z)},__wbg_new_from_slice_77cdfb7977362f3c:function(Q,q){let Z=new Uint8Array(g$(Q,q));return B(Z)},__wbg_new_typed_1824d93f294193e5:function(Q,q){try{var Z={a:Q,b:q},X=(J,V)=>{let C=Z.a;Z.a=0;try{return C2(C,Z.b,J,V)}finally{Z.a=C}};let K=new Promise(X);return B(K)}finally{Z.a=0}},__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82:function(Q,q,Z){let X=new Uint8Array(k(Q),q>>>0,Z>>>0);return B(X)},__wbg_new_with_into_underlying_source_8812003c9985c511:function(Q,q){let Z=new ReadableStream(YQ.__wrap(Q),D(q));return B(Z)},__wbg_new_with_length_e6785c33c8e4cce8:function(Q){let q=new Uint8Array(Q>>>0);return B(q)},__wbg_new_with_length_f8cbc3a5b9ff9368:function(Q){let q=Array(Q>>>0);return B(q)},__wbg_next_6dbf2c0ac8cde20f:function(Q){let q=k(Q).next;return B(q)},__wbg_next_71f2aa1cb3d1e37e:function(){return Z0(function(Q){let q=k(Q).next();return B(q)},arguments)},__wbg_now_44881ed1d5dba857:function(){return Z0(function(){return performance.now()},arguments)},__wbg_now_86c0d4ba3fa605b8:function(){return Date.now()},__wbg_now_fefb743ab429013f:function(){return performance.now()},__wbg_of_2bf3ed8a776ff19a:function(Q,q,Z,X){let K=Array.of(k(Q),k(q),k(Z),k(X));return B(K)},__wbg_prototypesetcall_2592ffff58ff115d:function(Q,q,Z){Uint8Array.prototype.set.call(g$(Q,q),k(Z))},__wbg_prototypesetcall_4770620bbe4688a0:function(Q,q,Z){Uint8Array.prototype.set.call(g$(Q,q),k(Z))},__wbg_push_d2ae3af0c1217ae6:function(Q,q){return k(Q).push(k(q))},__wbg_queueMicrotask_0ab5b2d2393e99b9:function(Q){let q=k(Q).queueMicrotask;return B(q)},__wbg_queueMicrotask_6a09b7bc46549209:function(Q){queueMicrotask(k(Q))},__wbg_read_8afa15f12a160ef8:function(Q){let q=k(Q).read();return B(q)},__wbg_ready_68b537848a5c627a:function(Q){let q=k(Q).ready;return B(q)},__wbg_releaseLock_33c25ace78b2d4c6:function(Q){k(Q).releaseLock()},__wbg_releaseLock_5b92874cad775644:function(Q){k(Q).releaseLock()},__wbg_resolve_2191a4dfe481c25b:function(Q){let q=Promise.resolve(k(Q));return B(q)},__wbg_respond_510e32df8aeb6817:function(){return Z0(function(Q,q){k(Q).respond(q>>>0)},arguments)},__wbg_set_4d7dd76f3dae2926:function(Q,q,Z){k(Q).set(g$(q,Z))},__wbg_set_575dd786d51585f8:function(Q,q,Z){let X=k(Q).set(k(q),k(Z));return B(X)},__wbg_set_6be42768c690e380:function(Q,q,Z){k(Q)[D(q)]=D(Z)},__wbg_set_8535240470bf2500:function(){return Z0(function(Q,q,Z){return Reflect.set(k(Q),k(q),k(Z))},arguments)},__wbg_set_8a16b38e4805b298:function(Q,q,Z){k(Q)[q>>>0]=D(Z)},__wbg_set_high_water_mark_44d043cd607dd13a:function(Q,q){k(Q).highWaterMark=q},__wbg_set_name_3bbc583faefa4193:function(Q,q,Z){k(Q).name=F0(q,Z)},__wbg_stack_3b0d974bbf31e44f:function(Q,q){let Z=k(q).stack,X=P(Z,H.__wbindgen_export,H.__wbindgen_export2),K=U;_().setInt32(Q+4,K,!0),_().setInt32(Q+0,X,!0)},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){let Q=typeof global>"u"?null:global;return d(Q)?0:B(Q)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){let Q=typeof globalThis>"u"?null:globalThis;return d(Q)?0:B(Q)},__wbg_static_accessor_SELF_146583524fe1469b:function(){let Q=typeof self>"u"?null:self;return d(Q)?0:B(Q)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){let Q=typeof window>"u"?null:window;return d(Q)?0:B(Q)},__wbg_subarray_3ed232c8a6baee09:function(Q,q,Z){let X=k(Q).subarray(q>>>0,Z>>>0);return B(X)},__wbg_then_16d107c451e9905d:function(Q,q,Z){let X=k(Q).then(k(q),k(Z));return B(X)},__wbg_then_6ec10ae38b3e92f7:function(Q,q){let Z=k(Q).then(k(q));return B(Z)},__wbg_trace_58264fbce2ceb5e6:function(Q,q,Z,X){k(Q).trace(k(q),Z===0?void 0:F0(Z,X))},__wbg_value_a5d5488a9589444a:function(Q){let q=k(Q).value;return B(q)},__wbg_view_21f1d4a4f175dfa9:function(Q){let q=k(Q).view;return d(q)?0:B(q)},__wbg_warn_77c4eb4a21e10a21:function(Q,q,Z,X){console.warn(k(Q),k(q),k(Z),k(X))},__wbg_warn_db531770752932a9:function(Q,q,Z,X){k(Q).warn(k(q),Z===0?void 0:F0(Z,X))},__wbg_wasmwhatsappclient_new:function(Q){let q=VQ.__wrap(Q);return B(q)},__wbg_write_f6dc0059c3feedce:function(Q,q){let Z=k(Q).write(k(q));return B(Z)},__wbindgen_cast_0000000000000001:function(Q,q){let Z=ZQ(Q,q,H2);return B(Z)},__wbindgen_cast_0000000000000002:function(Q,q){let Z=ZQ(Q,q,U2);return B(Z)},__wbindgen_cast_0000000000000003:function(Q,q){let Z=ZQ(Q,q,D2);return B(Z)},__wbindgen_cast_0000000000000004:function(Q,q){let Z=ZQ(Q,q,G2);return B(Z)},__wbindgen_cast_0000000000000005:function(Q,q){let Z=ZQ(Q,q,z2);return B(Z)},__wbindgen_cast_0000000000000006:function(Q){return B(Q)},__wbindgen_cast_0000000000000007:function(Q){return B(Q)},__wbindgen_cast_0000000000000008:function(Q,q){let Z=g$(Q,q);return B(Z)},__wbindgen_cast_0000000000000009:function(Q,q){let Z=F0(Q,q);return B(Z)},__wbindgen_cast_000000000000000a:function(Q){let q=BigInt.asUintN(64,Q);return B(q)},__wbindgen_cast_000000000000000b:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_cast_000000000000000c:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_cast_000000000000000d:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_cast_000000000000000e:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_cast_000000000000000f:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_cast_0000000000000010:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_cast_0000000000000011:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_cast_0000000000000012:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_cast_0000000000000013:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_object_clone_ref:function(Q){let q=k(Q);return B(q)},__wbindgen_object_drop_ref:function(Q){D(Q)}}}}function z2($,Q){H.__wasm_bindgen_func_elem_4415($,Q)}function H2($,Q,q){H.__wasm_bindgen_func_elem_9408($,Q,B(q))}function G2($,Q,q){H.__wasm_bindgen_func_elem_4416($,Q,B(q))}function U2($,Q,q){try{let K=H.__wbindgen_add_to_stack_pointer(-16);H.__wasm_bindgen_func_elem_26574(K,$,Q,B(q));var Z=_().getInt32(K+0,!0),X=_().getInt32(K+4,!0);if(X)throw D(Z)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function C2($,Q,q,Z){H.__wasm_bindgen_func_elem_26576($,Q,B(q),B(Z))}function D2($,Q,q){H.__wasm_bindgen_func_elem_4417($,Q,q)}var F2=["bytes"],P2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>H.__wbg_intounderlyingbytesource_free($,1)),L2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>H.__wbg_intounderlyingsink_free($,1)),Tz=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>H.__wbg_intounderlyingsource_free($,1)),yz=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>H.__wbg_wasmwhatsappclient_free($,1));function B($){if(qQ===d0.length)d0.push(d0.length+1);let Q=qQ;return qQ=d0[Q],d0[Q]=$,Q}var vz=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>H.__wbindgen_export5($.a,$.b));function zz($){let Q=typeof $;if(Q=="number"||Q=="boolean"||$==null)return`${$}`;if(Q=="string")return`"${$}"`;if(Q=="symbol"){let X=$.description;if(X==null)return"Symbol";else return`Symbol(${X})`}if(Q=="function"){let X=$.name;if(typeof X=="string"&&X.length>0)return`Function(${X})`;else return"Function"}if(Array.isArray($)){let X=$.length,K="[";if(X>0)K+=zz($[0]);for(let J=1;J<X;J++)K+=", "+zz($[J]);return K+="]",K}let q=/\[object ([^\]]+)\]/.exec(toString.call($)),Z;if(q&&q.length>1)Z=q[1];else return toString.call($);if(Z=="Object")try{return"Object("+JSON.stringify($)+")"}catch(X){return"Object"}if($ instanceof Error)return`${$.name}: ${$.message}
|
|
1
|
+
var K2=Object.defineProperty;var q2=($)=>$;function X2($,Q){this[$]=q2.bind(null,Q)}var Y2=($,Q)=>{for(var q in Q)K2($,q,{get:Q[q],enumerable:!0,configurable:!0,set:X2.bind(Q,q)})};import{readFileSync as MM}from"node:fs";class Yz{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,P2.unregister(this),$}free(){let $=this.__destroy_into_raw();H.__wbg_intounderlyingbytesource_free($,0)}get autoAllocateChunkSize(){return H.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}cancel(){let $=this.__destroy_into_raw();H.intounderlyingbytesource_cancel($)}pull($){let Q=H.intounderlyingbytesource_pull(this.__wbg_ptr,B($));return D(Q)}start($){H.intounderlyingbytesource_start(this.__wbg_ptr,B($))}get type(){let $=H.intounderlyingbytesource_type(this.__wbg_ptr);return F2[$]}}if(Symbol.dispose)Yz.prototype[Symbol.dispose]=Yz.prototype.free;class Vz{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,L2.unregister(this),$}free(){let $=this.__destroy_into_raw();H.__wbg_intounderlyingsink_free($,0)}abort($){let Q=this.__destroy_into_raw(),q=H.intounderlyingsink_abort(Q,B($));return D(q)}close(){let $=this.__destroy_into_raw(),Q=H.intounderlyingsink_close($);return D(Q)}write($){let Q=H.intounderlyingsink_write(this.__wbg_ptr,B($));return D(Q)}}if(Symbol.dispose)Vz.prototype[Symbol.dispose]=Vz.prototype.free;class YQ{static __wrap($){let Q=Object.create(YQ.prototype);return Q.__wbg_ptr=$,Tz.register(Q,Q.__wbg_ptr,Q),Q}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,Tz.unregister(this),$}free(){let $=this.__destroy_into_raw();H.__wbg_intounderlyingsource_free($,0)}cancel(){let $=this.__destroy_into_raw();H.intounderlyingsource_cancel($)}pull($){let Q=H.intounderlyingsource_pull(this.__wbg_ptr,B($));return D(Q)}}if(Symbol.dispose)YQ.prototype[Symbol.dispose]=YQ.prototype.free;class VQ{static __wrap($){let Q=Object.create(VQ.prototype);return Q.__wbg_ptr=$,yz.register(Q,Q.__wbg_ptr,Q),Q}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,yz.unregister(this),$}free(){let $=this.__destroy_into_raw();H.__wbg_wasmwhatsappclient_free($,0)}acknowledgeStanza($){let Q=H.wasmwhatsappclient_acknowledgeStanza(this.__wbg_ptr,B($));return D(Q)}addChatLabel($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_addChatLabel(this.__wbg_ptr,q,Z,X,K);return D(J)}addLidPnMappings($){let Q=H.wasmwhatsappclient_addLidPnMappings(this.__wbg_ptr,B($));return D(Q)}addMessageLabel($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=H.wasmwhatsappclient_addMessageLabel(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}archiveChat($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_archiveChat(this.__wbg_ptr,q,Z,Q);return D(X)}assertSessions($,Q){let q=s($,H.__wbindgen_export),Z=U,X=H.wasmwhatsappclient_assertSessions(this.__wbg_ptr,q,Z,Q);return D(X)}cleanDirtyBits($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_cleanDirtyBits(this.__wbg_ptr,q,Z,!d(Q),d(Q)?0:Q);return D(X)}clearChat($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=H.wasmwhatsappclient_clearChat(this.__wbg_ptr,Z,X,Q,q);return D(K)}communityFetchAllParticipating(){let $=H.wasmwhatsappclient_communityFetchAllParticipating(this.__wbg_ptr);return D($)}communityParticipantsUpdate($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=s(Q,H.__wbindgen_export),J=U,V=H.wasmwhatsappclient_communityParticipantsUpdate(this.__wbg_ptr,Z,X,K,J,B(q));return D(V)}connect(){let $=H.wasmwhatsappclient_connect(this.__wbg_ptr);return D($)}createCommunity($,Q,q,Z,X){let K=P($,H.__wbindgen_export,H.__wbindgen_export2),J=U;var V=d(Q)?0:P(Q,H.__wbindgen_export,H.__wbindgen_export2),C=U;let F=H.wasmwhatsappclient_createCommunity(this.__wbg_ptr,K,J,V,C,q,Z,X);return D(F)}createCommunitySubgroup($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=s(Q,H.__wbindgen_export),J=U,V=P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=H.wasmwhatsappclient_createCommunitySubgroup(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}createGroup($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=s(Q,H.__wbindgen_export),K=U,J=H.wasmwhatsappclient_createGroup(this.__wbg_ptr,q,Z,X,K);return D(J)}createLabel($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=H.wasmwhatsappclient_createLabel(this.__wbg_ptr,Z,X,K,J,q);return D(V)}createParticipantNodesBytes($,Q,q){let Z=s($,H.__wbindgen_export),X=U,K=j(Q,H.__wbindgen_export),J=U,V=H.wasmwhatsappclient_createParticipantNodesBytes(this.__wbg_ptr,Z,X,K,J,B(q));return D(V)}createPoll($,Q,q,Z){let X=P($,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=P(Q,H.__wbindgen_export,H.__wbindgen_export2),V=U,C=s(q,H.__wbindgen_export),F=U,A=H.wasmwhatsappclient_createPoll(this.__wbg_ptr,X,K,J,V,C,F,Z);return D(A)}deactivateCommunity($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_deactivateCommunity(this.__wbg_ptr,Q,q);return D(Z)}deleteChat($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_deleteChat(this.__wbg_ptr,Q,q);return D(Z)}deleteLabel($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_deleteLabel(this.__wbg_ptr,Q,q);return D(Z)}deleteMessageForMe($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=H.wasmwhatsappclient_deleteMessageForMe(this.__wbg_ptr,Z,X,K,J,q);return D(V)}deleteQuickReply($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_deleteQuickReply(this.__wbg_ptr,Q,q);return D(Z)}disconnect(){let $=H.wasmwhatsappclient_disconnect(this.__wbg_ptr);return D($)}downloadMedia($,Q,q,Z,X,K){let J=P($,H.__wbindgen_export,H.__wbindgen_export2),V=U,C=j(Q,H.__wbindgen_export),F=U,A=j(q,H.__wbindgen_export),E=U,h=j(Z,H.__wbindgen_export),T=U,I=H.wasmwhatsappclient_downloadMedia(this.__wbg_ptr,J,V,C,F,A,E,h,T,X,B(K));return D(I)}downloadMediaStream($,Q,q,Z,X,K){try{let F=H.__wbindgen_add_to_stack_pointer(-16),A=P($,H.__wbindgen_export,H.__wbindgen_export2),E=U,h=j(Q,H.__wbindgen_export),T=U,I=j(q,H.__wbindgen_export),w=U,M=j(Z,H.__wbindgen_export),D0=U;H.wasmwhatsappclient_downloadMediaStream(F,this.__wbg_ptr,A,E,h,T,I,w,M,D0,X,B(K));var J=_().getInt32(F+0,!0),V=_().getInt32(F+4,!0),C=_().getInt32(F+8,!0);if(C)throw D(V);return D(J)}finally{H.__wbindgen_add_to_stack_pointer(16)}}editMessageBytes($,Q,q,Z){let X=P($,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=P(Q,H.__wbindgen_export,H.__wbindgen_export2),V=U,C=j(q,H.__wbindgen_export),F=U;var A=d(Z)?0:P(Z,H.__wbindgen_export,H.__wbindgen_export2),E=U;let h=H.wasmwhatsappclient_editMessageBytes(this.__wbg_ptr,X,K,J,V,C,F,A,E);return D(h)}encryptMediaStream($,Q,q){let Z=H.wasmwhatsappclient_encryptMediaStream(this.__wbg_ptr,B($),B(Q),B(q));return D(Z)}ensurePreKeys(){let $=H.wasmwhatsappclient_ensurePreKeys(this.__wbg_ptr);return D($)}fetchBlocklist(){let $=H.wasmwhatsappclient_fetchBlocklist(this.__wbg_ptr);return D($)}fetchMessageHistory($,Q,q,Z,X){let K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=H.wasmwhatsappclient_fetchMessageHistory(this.__wbg_ptr,$,K,J,V,C,Z,X);return D(F)}fetchNewChatMessageCappingInfo(){let $=H.wasmwhatsappclient_fetchNewChatMessageCappingInfo(this.__wbg_ptr);return D($)}fetchPrivacySettings(){let $=H.wasmwhatsappclient_fetchPrivacySettings(this.__wbg_ptr);return D($)}fetchReachoutTimelock(){let $=H.wasmwhatsappclient_fetchReachoutTimelock(this.__wbg_ptr);return D($)}fetchStatus($){let Q=s($,H.__wbindgen_export),q=U,Z=H.wasmwhatsappclient_fetchStatus(this.__wbg_ptr,Q,q);return D(Z)}fetchUserInfo($){let Q=s($,H.__wbindgen_export),q=U,Z=H.wasmwhatsappclient_fetchUserInfo(this.__wbg_ptr,Q,q);return D(Z)}getAccount(){let $=H.wasmwhatsappclient_getAccount(this.__wbg_ptr);return D($)}getBotList(){let $=H.wasmwhatsappclient_getBotList(this.__wbg_ptr);return D($)}getBusinessProfile($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_getBusinessProfile(this.__wbg_ptr,Q,q);return D(Z)}getCatalog($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_getCatalog(this.__wbg_ptr,q,Z,B(Q));return D(X)}getCollections($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_getCollections(this.__wbg_ptr,q,Z,B(Q));return D(X)}getCommunitySubgroups($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_getCommunitySubgroups(this.__wbg_ptr,Q,q);return D(Z)}getCoreAllocationSnapshot(){let $=H.wasmwhatsappclient_getCoreAllocationSnapshot(this.__wbg_ptr);return D($)}getGroupMetadata($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_getGroupMetadata(this.__wbg_ptr,Q,q);return D(Z)}getJid(){let $=H.wasmwhatsappclient_getJid(this.__wbg_ptr);return D($)}getLid(){let $=H.wasmwhatsappclient_getLid(this.__wbg_ptr);return D($)}getMediaConn($){let Q=H.wasmwhatsappclient_getMediaConn(this.__wbg_ptr,$);return D(Q)}getMemoryDiagnostics(){let $=H.wasmwhatsappclient_getMemoryDiagnostics(this.__wbg_ptr);return D($)}getOrder($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=H.wasmwhatsappclient_getOrder(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}getPushName(){let $=H.wasmwhatsappclient_getPushName(this.__wbg_ptr);return D($)}getUSyncDevices($,Q,q){let Z=s($,H.__wbindgen_export),X=U,K=H.wasmwhatsappclient_getUSyncDevices(this.__wbg_ptr,Z,X,Q,q);return D(K)}groupAcceptInvite($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_groupAcceptInvite(this.__wbg_ptr,Q,q);return D(Z)}groupAcceptInviteV4($,Q,q,Z){let X=P($,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=P(Q,H.__wbindgen_export,H.__wbindgen_export2),V=U,C=P(Z,H.__wbindgen_export,H.__wbindgen_export2),F=U,A=H.wasmwhatsappclient_groupAcceptInviteV4(this.__wbg_ptr,X,K,J,V,q,C,F);return D(A)}groupFetchAllParticipating(){let $=H.wasmwhatsappclient_groupFetchAllParticipating(this.__wbg_ptr);return D($)}groupGetInviteInfo($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_groupGetInviteInfo(this.__wbg_ptr,Q,q);return D(Z)}groupInviteCode($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_groupInviteCode(this.__wbg_ptr,Q,q);return D(Z)}groupLeave($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_groupLeave(this.__wbg_ptr,Q,q);return D(Z)}groupMemberAddMode($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_groupMemberAddMode(this.__wbg_ptr,q,Z,B(Q));return D(X)}groupParticipantsUpdate($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=s(Q,H.__wbindgen_export),J=U,V=H.wasmwhatsappclient_groupParticipantsUpdate(this.__wbg_ptr,Z,X,K,J,B(q));return D(V)}groupRequestParticipantsList($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_groupRequestParticipantsList(this.__wbg_ptr,Q,q);return D(Z)}groupRequestParticipantsUpdate($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=s(Q,H.__wbindgen_export),J=U,V=H.wasmwhatsappclient_groupRequestParticipantsUpdate(this.__wbg_ptr,Z,X,K,J,B(q));return D(V)}groupRevokeInvite($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_groupRevokeInvite(this.__wbg_ptr,Q,q);return D(Z)}groupRevokeInviteV4($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_groupRevokeInviteV4(this.__wbg_ptr,q,Z,X,K);return D(J)}groupSettingUpdate($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=H.wasmwhatsappclient_groupSettingUpdate(this.__wbg_ptr,Z,X,B(Q),q);return D(K)}groupToggleEphemeral($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_groupToggleEphemeral(this.__wbg_ptr,q,Z,Q);return D(X)}groupUpdateDescription($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U;var X=d(Q)?0:P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U;let J=H.wasmwhatsappclient_groupUpdateDescription(this.__wbg_ptr,q,Z,X,K);return D(J)}groupUpdateSubject($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_groupUpdateSubject(this.__wbg_ptr,q,Z,X,K);return D(J)}isConnected(){return H.wasmwhatsappclient_isConnected(this.__wbg_ptr)!==0}isLoggedIn(){return H.wasmwhatsappclient_isLoggedIn(this.__wbg_ptr)!==0}isOnWhatsApp($){let Q=s($,H.__wbindgen_export),q=U,Z=H.wasmwhatsappclient_isOnWhatsApp(this.__wbg_ptr,Q,q);return D(Z)}jidToSignalProtocolAddress($){let Q,q;try{let F=H.__wbindgen_add_to_stack_pointer(-16),A=P($,H.__wbindgen_export,H.__wbindgen_export2),E=U;H.wasmwhatsappclient_jidToSignalProtocolAddress(F,this.__wbg_ptr,A,E);var Z=_().getInt32(F+0,!0),X=_().getInt32(F+4,!0),K=_().getInt32(F+8,!0),J=_().getInt32(F+12,!0),V=Z,C=X;if(J)throw V=0,C=0,D(K);return Q=V,q=C,F0(V,C)}finally{H.__wbindgen_add_to_stack_pointer(16),H.__wbindgen_export4(Q,q,1)}}lidForPn($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_lidForPn(this.__wbg_ptr,Q,q);return D(Z)}linkCommunitySubgroups($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=s(Q,H.__wbindgen_export),K=U,J=H.wasmwhatsappclient_linkCommunitySubgroups(this.__wbg_ptr,q,Z,X,K);return D(J)}logout(){let $=H.wasmwhatsappclient_logout(this.__wbg_ptr);return D($)}markChatAsRead($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_markChatAsRead(this.__wbg_ptr,q,Z,Q);return D(X)}markPlayed($){let Q=H.wasmwhatsappclient_markPlayed(this.__wbg_ptr,B($));return D(Q)}muteChat($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_muteChat(this.__wbg_ptr,q,Z,!d(Q),d(Q)?0:Q);return D(X)}newsletterAdminInfo($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_newsletterAdminInfo(this.__wbg_ptr,Q,q);return D(Z)}newsletterAdminMute($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_newsletterAdminMute(this.__wbg_ptr,q,Z,Q);return D(X)}newsletterChangeOwner($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_newsletterChangeOwner(this.__wbg_ptr,q,Z,X,K);return D(J)}newsletterCreate($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U;var X=d(Q)?0:P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U;let J=H.wasmwhatsappclient_newsletterCreate(this.__wbg_ptr,q,Z,X,K);return D(J)}newsletterDelete($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_newsletterDelete(this.__wbg_ptr,Q,q);return D(Z)}newsletterDemoteAdmin($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_newsletterDemoteAdmin(this.__wbg_ptr,q,Z,X,K);return D(J)}newsletterEditMessage($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=j(q,H.__wbindgen_export),C=U,F=H.wasmwhatsappclient_newsletterEditMessage(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}newsletterFollowerMute($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_newsletterFollowerMute(this.__wbg_ptr,q,Z,Q);return D(X)}newsletterFollowers($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_newsletterFollowers(this.__wbg_ptr,q,Z,Q);return D(X)}newsletterList(){let $=H.wasmwhatsappclient_newsletterList(this.__wbg_ptr);return D($)}newsletterMessages($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U;var K=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),J=U;let V=H.wasmwhatsappclient_newsletterMessages(this.__wbg_ptr,Z,X,Q,K,J);return D(V)}newsletterMetadata($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_newsletterMetadata(this.__wbg_ptr,Q,q);return D(Z)}newsletterMetadataByInvite($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_newsletterMetadataByInvite(this.__wbg_ptr,Q,q);return D(Z)}newsletterMute($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_newsletterMute(this.__wbg_ptr,q,Z,Q);return D(X)}newsletterReactMessage($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U;var V=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U;let F=H.wasmwhatsappclient_newsletterReactMessage(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}newsletterRemovePicture($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_newsletterRemovePicture(this.__wbg_ptr,Q,q);return D(Z)}newsletterRevokeMessage($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_newsletterRevokeMessage(this.__wbg_ptr,q,Z,X,K);return D(J)}newsletterSetPicture($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=j(Q,H.__wbindgen_export),K=U,J=H.wasmwhatsappclient_newsletterSetPicture(this.__wbg_ptr,q,Z,X,K);return D(J)}newsletterSubscribe($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_newsletterSubscribe(this.__wbg_ptr,Q,q);return D(Z)}newsletterSubscribeLiveUpdates($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_newsletterSubscribeLiveUpdates(this.__wbg_ptr,Q,q);return D(Z)}newsletterUnsubscribe($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_newsletterUnsubscribe(this.__wbg_ptr,Q,q);return D(Z)}newsletterUpdate($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U;var K=d(Q)?0:P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U;let F=H.wasmwhatsappclient_newsletterUpdate(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}pinChat($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_pinChat(this.__wbg_ptr,q,Z,Q);return D(X)}pnForLid($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_pnForLid(this.__wbg_ptr,Q,q);return D(Z)}presenceSubscribe($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_presenceSubscribe(this.__wbg_ptr,Q,q);return D(Z)}profilePictureUrl($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=H.wasmwhatsappclient_profilePictureUrl(this.__wbg_ptr,Z,X,B(Q),!d(q),d(q)?0:q);return D(K)}queryNode($,Q){let q=H.wasmwhatsappclient_queryNode(this.__wbg_ptr,B($),!d(Q),d(Q)?0:Q);return D(q)}queryUsync($){let Q=H.wasmwhatsappclient_queryUsync(this.__wbg_ptr,B($));return D(Q)}reachability(){let $=H.wasmwhatsappclient_reachability(this.__wbg_ptr);return D($)}readMessages($){let Q=H.wasmwhatsappclient_readMessages(this.__wbg_ptr,B($));return D(Q)}reconnect(){let $=H.wasmwhatsappclient_reconnect(this.__wbg_ptr);return D($)}refreshPreKeys($){let Q=H.wasmwhatsappclient_refreshPreKeys(this.__wbg_ptr,d($)?Number.MAX_SAFE_INTEGER:$>>>0);return D(Q)}rejectCall($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=H.wasmwhatsappclient_rejectCall(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}rejectStanza($,Q,q){let Z=H.wasmwhatsappclient_rejectStanza(this.__wbg_ptr,B($),Q,d(q)?Number.MAX_SAFE_INTEGER:q>>0);return D(Z)}relayMessageBytes($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=j(Q,H.__wbindgen_export),J=U;var V=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U;let F=H.wasmwhatsappclient_relayMessageBytes(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}relayMessageBytesWithOptions($,Q,q,Z,X,K){let J=P($,H.__wbindgen_export,H.__wbindgen_export2),V=U,C=j(Q,H.__wbindgen_export),F=U;var A=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),E=U;let h=H.wasmwhatsappclient_relayMessageBytesWithOptions(this.__wbg_ptr,J,V,C,F,A,E,B(Z),X,K);return D(h)}removeBusinessCoverPhoto($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_removeBusinessCoverPhoto(this.__wbg_ptr,Q,q);return D(Z)}removeChatLabel($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_removeChatLabel(this.__wbg_ptr,q,Z,X,K);return D(J)}removeContact($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_removeContact(this.__wbg_ptr,Q,q);return D(Z)}removeGroupProfilePicture($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_removeGroupProfilePicture(this.__wbg_ptr,Q,q);return D(Z)}removeMessageLabel($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=H.wasmwhatsappclient_removeMessageLabel(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}removeProfilePicture(){let $=H.wasmwhatsappclient_removeProfilePicture(this.__wbg_ptr);return D($)}requestMediaReupload($,Q,q,Z,X){let K=P($,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=P(Q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=j(q,H.__wbindgen_export),A=U;var E=d(X)?0:P(X,H.__wbindgen_export,H.__wbindgen_export2),h=U;let T=H.wasmwhatsappclient_requestMediaReupload(this.__wbg_ptr,K,J,V,C,F,A,Z,E,h);return D(T)}requestMessageRetry($,Q){let q=H.wasmwhatsappclient_requestMessageRetry(this.__wbg_ptr,B($),d(Q)?16777215:Q?1:0);return D(q)}requestPairingCode($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U;var X=d(Q)?0:P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U;let J=H.wasmwhatsappclient_requestPairingCode(this.__wbg_ptr,q,Z,X,K);return D(J)}retransmitMessageBytes($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=j(Q,H.__wbindgen_export),J=U,V=H.wasmwhatsappclient_retransmitMessageBytes(this.__wbg_ptr,Z,X,K,J,B(q));return D(V)}revokeMessage($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U;var V=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U;let F=H.wasmwhatsappclient_revokeMessage(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}rotateSignedKey(){let $=H.wasmwhatsappclient_rotateSignedKey(this.__wbg_ptr);return D($)}run(){try{let q=H.__wbindgen_add_to_stack_pointer(-16);H.wasmwhatsappclient_run(q,this.__wbg_ptr);var $=_().getInt32(q+0,!0),Q=_().getInt32(q+4,!0);if(Q)throw D($)}finally{H.__wbindgen_add_to_stack_pointer(16)}}saveContact($,Q,q,Z){let X=P($,H.__wbindgen_export,H.__wbindgen_export2),K=U;var J=d(Q)?0:P(Q,H.__wbindgen_export,H.__wbindgen_export2),V=U,C=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),F=U;let A=H.wasmwhatsappclient_saveContact(this.__wbg_ptr,X,K,J,V,C,F,Z);return D(A)}sendChatState($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_sendChatState(this.__wbg_ptr,q,Z,B(Q));return D(X)}sendCommentBytes($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=j(q,H.__wbindgen_export),J=U,V=H.wasmwhatsappclient_sendCommentBytes(this.__wbg_ptr,Z,X,B(Q),K,J);return D(V)}sendMessageBytes($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=j(Q,H.__wbindgen_export),K=U,J=H.wasmwhatsappclient_sendMessageBytes(this.__wbg_ptr,q,Z,X,K);return D(J)}sendNode($){let Q=H.wasmwhatsappclient_sendNode(this.__wbg_ptr,B($));return D(Q)}sendPresence($){let Q=H.wasmwhatsappclient_sendPresence(this.__wbg_ptr,B($));return D(Q)}sendRawMessage($){let Q=j($,H.__wbindgen_export),q=U,Z=H.wasmwhatsappclient_sendRawMessage(this.__wbg_ptr,Q,q);return D(Z)}sendReaction($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U;var K=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),J=U;let V=H.wasmwhatsappclient_sendReaction(this.__wbg_ptr,Z,X,B(Q),K,J);return D(V)}sendStatusMessageBytes($,Q){let q=j($,H.__wbindgen_export),Z=U,X=s(Q,H.__wbindgen_export),K=U,J=H.wasmwhatsappclient_sendStatusMessageBytes(this.__wbg_ptr,q,Z,X,K);return D(J)}sendStatusMessageBytesWithOptions($,Q,q,Z,X){let K=j($,H.__wbindgen_export),J=U,V=s(Q,H.__wbindgen_export),C=U;var F=d(q)?0:P(q,H.__wbindgen_export,H.__wbindgen_export2),A=U;let E=H.wasmwhatsappclient_sendStatusMessageBytesWithOptions(this.__wbg_ptr,K,J,V,C,F,A,B(Z),X);return D(E)}setAutoReconnect($){H.wasmwhatsappclient_setAutoReconnect(this.__wbg_ptr,$)}setBusinessCoverPhoto($){let Q=H.wasmwhatsappclient_setBusinessCoverPhoto(this.__wbg_ptr,B($));return D(Q)}setClientProfile($){let Q=H.wasmwhatsappclient_setClientProfile(this.__wbg_ptr,B($));return D(Q)}setDeviceProps($){let Q=H.wasmwhatsappclient_setDeviceProps(this.__wbg_ptr,B($));return D(Q)}setGroupProfilePicture($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=j(Q,H.__wbindgen_export),K=U,J=H.wasmwhatsappclient_setGroupProfilePicture(this.__wbg_ptr,q,Z,X,K);return D(J)}setInitialPushName($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_setInitialPushName(this.__wbg_ptr,Q,q);return D(Z)}setLinkPreviewsDisabled($){let Q=H.wasmwhatsappclient_setLinkPreviewsDisabled(this.__wbg_ptr,$);return D(Q)}setPushName($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_setPushName(this.__wbg_ptr,Q,q);return D(Z)}setQuickReply($,Q,q,Z,X){let K=P($,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=P(Q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=P(q,H.__wbindgen_export,H.__wbindgen_export2),A=U,E=s(Z,H.__wbindgen_export),h=U,T=H.wasmwhatsappclient_setQuickReply(this.__wbg_ptr,K,J,V,C,F,A,E,h,X);return D(T)}setRawNodeForwarding($){H.wasmwhatsappclient_setRawNodeForwarding(this.__wbg_ptr,$)}setUserStatusMute($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_setUserStatusMute(this.__wbg_ptr,q,Z,Q);return D(X)}signalDecryptGroupMessage($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=j(q,H.__wbindgen_export),C=U,F=H.wasmwhatsappclient_signalDecryptGroupMessage(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}signalDecryptMessage($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=j(q,H.__wbindgen_export),C=U,F=H.wasmwhatsappclient_signalDecryptMessage(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}signalDeleteSenderKey($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_signalDeleteSenderKey(this.__wbg_ptr,q,Z,X,K);return D(J)}signalDeleteSessions($){let Q=s($,H.__wbindgen_export),q=U,Z=H.wasmwhatsappclient_signalDeleteSessions(this.__wbg_ptr,Q,q);return D(Z)}signalEncryptGroupMessage($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=j(Q,H.__wbindgen_export),J=U,V=P(q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=H.wasmwhatsappclient_signalEncryptGroupMessage(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}signalEncryptMessage($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=j(Q,H.__wbindgen_export),K=U,J=H.wasmwhatsappclient_signalEncryptMessage(this.__wbg_ptr,q,Z,X,K);return D(J)}signalGetSenderKeyDistribution($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_signalGetSenderKeyDistribution(this.__wbg_ptr,q,Z,X,K);return D(J)}signalGetSessionInfo($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_signalGetSessionInfo(this.__wbg_ptr,Q,q);return D(Z)}signalHasSenderKey($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_signalHasSenderKey(this.__wbg_ptr,q,Z,X,K);return D(J)}signalInstallPreKeyBundle($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_signalInstallPreKeyBundle(this.__wbg_ptr,q,Z,B(Q));return D(X)}signalMigrateSessions($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_signalMigrateSessions(this.__wbg_ptr,q,Z,X,K);return D(J)}signalProcessSenderKeyDistribution($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=j(q,H.__wbindgen_export),C=U,F=H.wasmwhatsappclient_signalProcessSenderKeyDistribution(this.__wbg_ptr,Z,X,K,J,V,C);return D(F)}signalValidateSession($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_signalValidateSession(this.__wbg_ptr,Q,q);return D(Z)}starMessage($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=P(Q,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=H.wasmwhatsappclient_starMessage(this.__wbg_ptr,Z,X,K,J,q);return D(V)}unlinkCommunitySubgroups($,Q,q){let Z=P($,H.__wbindgen_export,H.__wbindgen_export2),X=U,K=s(Q,H.__wbindgen_export),J=U,V=H.wasmwhatsappclient_unlinkCommunitySubgroups(this.__wbg_ptr,Z,X,K,J,q);return D(V)}updateBlockStatus($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=H.wasmwhatsappclient_updateBlockStatus(this.__wbg_ptr,q,Z,B(Q));return D(X)}updateBusinessProfile($){let Q=H.wasmwhatsappclient_updateBusinessProfile(this.__wbg_ptr,B($));return D(Q)}updateDefaultDisappearingMode($){let Q=H.wasmwhatsappclient_updateDefaultDisappearingMode(this.__wbg_ptr,$);return D(Q)}updateMemberLabel($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_updateMemberLabel(this.__wbg_ptr,q,Z,X,K);return D(J)}updatePrivacySetting($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U,J=H.wasmwhatsappclient_updatePrivacySetting(this.__wbg_ptr,q,Z,X,K);return D(J)}updateProfilePicture($){let Q=j($,H.__wbindgen_export),q=U,Z=H.wasmwhatsappclient_updateProfilePicture(this.__wbg_ptr,Q,q);return D(Z)}updateProfileStatus($){let Q=P($,H.__wbindgen_export,H.__wbindgen_export2),q=U,Z=H.wasmwhatsappclient_updateProfileStatus(this.__wbg_ptr,Q,q);return D(Z)}uploadEncryptedMediaStream($,Q,q,Z,X,K){let J=j(Q,H.__wbindgen_export),V=U,C=j(q,H.__wbindgen_export),F=U,A=j(Z,H.__wbindgen_export),E=U,h=H.wasmwhatsappclient_uploadEncryptedMediaStream(this.__wbg_ptr,B($),J,V,C,F,A,E,X,B(K));return D(h)}uploadMedia($,Q){let q=j($,H.__wbindgen_export),Z=U,X=H.wasmwhatsappclient_uploadMedia(this.__wbg_ptr,q,Z,B(Q));return D(X)}validateKeyBundle(){let $=H.wasmwhatsappclient_validateKeyBundle(this.__wbg_ptr);return D($)}votePoll($,Q,q,Z,X){let K=P($,H.__wbindgen_export,H.__wbindgen_export2),J=U,V=P(Q,H.__wbindgen_export,H.__wbindgen_export2),C=U,F=P(q,H.__wbindgen_export,H.__wbindgen_export2),A=U,E=j(Z,H.__wbindgen_export),h=U,T=s(X,H.__wbindgen_export),I=U,w=H.wasmwhatsappclient_votePoll(this.__wbg_ptr,K,J,V,C,F,A,E,h,T,I);return D(w)}waitForConnected($){let Q=H.wasmwhatsappclient_waitForConnected(this.__wbg_ptr,$);return D(Q)}waitForSocket($){let Q=H.wasmwhatsappclient_waitForSocket(this.__wbg_ptr,$);return D(Q)}waitUntilReachable(){let $=H.wasmwhatsappclient_waitUntilReachable(this.__wbg_ptr);return D($)}withdrawParkedCalls(){return H.wasmwhatsappclient_withdrawParkedCalls(this.__wbg_ptr)>>>0}}if(Symbol.dispose)VQ.prototype[Symbol.dispose]=VQ.prototype.free;function TM(){H.beginWasmAllocationProfile()}function yM($,Q){try{let K=H.__wbindgen_add_to_stack_pointer(-16),J=j($,H.__wbindgen_export),V=U,C=j(Q,H.__wbindgen_export),F=U;H.calculateAgreement(K,J,V,C,F);var q=_().getInt32(K+0,!0),Z=_().getInt32(K+4,!0),X=_().getInt32(K+8,!0);if(X)throw D(Z);return D(q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function vM($,Q){try{let K=H.__wbindgen_add_to_stack_pointer(-16),J=j($,H.__wbindgen_export),V=U,C=j(Q,H.__wbindgen_export),F=U;H.calculateSignature(K,J,V,C,F);var q=_().getInt32(K+0,!0),Z=_().getInt32(K+4,!0),X=_().getInt32(K+8,!0);if(X)throw D(Z);return D(q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function fz($,Q,q,Z,X,K,J){let V=H.createWhatsAppClient(B($),B(Q),d(q)?0:B(q),d(Z)?0:B(Z),d(X)?0:B(X),d(K)?0:B(K),d(J)?0:B(J));return D(V)}function fM($){try{let X=H.__wbindgen_add_to_stack_pointer(-16),K=j($,H.__wbindgen_export),J=U;H.decodeSenderKeyRecordComponents(X,K,J);var Q=_().getInt32(X+0,!0),q=_().getInt32(X+4,!0),Z=_().getInt32(X+8,!0);if(Z)throw D(q);return D(Q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function _M($){try{let X=H.__wbindgen_add_to_stack_pointer(-16),K=j($,H.__wbindgen_export),J=U;H.decodeSessionRecordComponents(X,K,J);var Q=_().getInt32(X+0,!0),q=_().getInt32(X+4,!0),Z=_().getInt32(X+8,!0);if(Z)throw D(q);return D(Q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function hM($,Q,q,Z,X,K){try{let F=H.__wbindgen_add_to_stack_pointer(-16),A=j($,H.__wbindgen_export),E=U,h=j(Q,H.__wbindgen_export),T=U,I=j(q,H.__wbindgen_export),w=U,M=P(Z,H.__wbindgen_export,H.__wbindgen_export2),D0=U,q0=P(X,H.__wbindgen_export,H.__wbindgen_export2),v=U,X0=P(K,H.__wbindgen_export,H.__wbindgen_export2),m=U;H.decryptEventResponsePayload(F,A,E,h,T,I,w,M,D0,q0,v,X0,m);var J=_().getInt32(F+0,!0),V=_().getInt32(F+4,!0),C=_().getInt32(F+8,!0);if(C)throw D(V);return D(J)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function lM($,Q,q,Z,X,K,J){try{let h=H.__wbindgen_add_to_stack_pointer(-16),T=j($,H.__wbindgen_export),I=U,w=j(Q,H.__wbindgen_export),M=U,D0=j(q,H.__wbindgen_export),q0=U,v=P(Z,H.__wbindgen_export,H.__wbindgen_export2),X0=U,m=P(X,H.__wbindgen_export,H.__wbindgen_export2),u=U,qz=P(K,H.__wbindgen_export,H.__wbindgen_export2),$Q=U,QQ=s(J,H.__wbindgen_export),RV=U;H.decryptPollVote(h,T,I,w,M,D0,q0,v,X0,m,u,qz,$Q,QQ,RV);var V=_().getInt32(h+0,!0),C=_().getInt32(h+4,!0),F=_().getInt32(h+8,!0),A=_().getInt32(h+12,!0);if(A)throw D(F);var E=_0(V,C).slice();return H.__wbindgen_export4(V,C*4,4),E}finally{H.__wbindgen_add_to_stack_pointer(16)}}function pM($,Q,q,Z,X,K){try{let F=H.__wbindgen_add_to_stack_pointer(-16),A=j($,H.__wbindgen_export),E=U,h=j(Q,H.__wbindgen_export),T=U,I=j(q,H.__wbindgen_export),w=U,M=P(Z,H.__wbindgen_export,H.__wbindgen_export2),D0=U,q0=P(X,H.__wbindgen_export,H.__wbindgen_export2),v=U,X0=P(K,H.__wbindgen_export,H.__wbindgen_export2),m=U;H.decryptPollVotePayload(F,A,E,h,T,I,w,M,D0,q0,v,X0,m);var J=_().getInt32(F+0,!0),V=_().getInt32(F+4,!0),C=_().getInt32(F+8,!0);if(C)throw D(V);return D(J)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function uM($){try{let X=H.__wbindgen_add_to_stack_pointer(-16);H.encodeSenderKeyRecordComponents(X,B($));var Q=_().getInt32(X+0,!0),q=_().getInt32(X+4,!0),Z=_().getInt32(X+8,!0);if(Z)throw D(q);return D(Q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function wM($){try{let X=H.__wbindgen_add_to_stack_pointer(-16);H.encodeSessionRecordComponents(X,B($));var Q=_().getInt32(X+0,!0),q=_().getInt32(X+4,!0),Z=_().getInt32(X+8,!0);if(Z)throw D(q);return D(Q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function jM(){let $=H.generateKeyPair();return D($)}function cM(){let $=H.getEnabledFeatures();return D($)}function dM($){try{let X=H.__wbindgen_add_to_stack_pointer(-16),K=j($,H.__wbindgen_export),J=U;H.getPublicFromPrivateKey(X,K,J);var Q=_().getInt32(X+0,!0),q=_().getInt32(X+4,!0),Z=_().getInt32(X+8,!0);if(Z)throw D(q);return D(Q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function nM(){try{let Z=H.__wbindgen_add_to_stack_pointer(-16);H.getWasmAllocationSnapshot(Z);var $=_().getInt32(Z+0,!0),Q=_().getInt32(Z+4,!0),q=_().getInt32(Z+8,!0);if(q)throw D(Q);return D($)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function bM(){return H.getWasmMemoryBytes()}function oM(){return H.hasLogger()!==0}function iM($,Q,q){try{let J=H.__wbindgen_add_to_stack_pointer(-16),V=j($,H.__wbindgen_export),C=U;H.hkdf(J,V,C,Q,B(q));var Z=_().getInt32(J+0,!0),X=_().getInt32(J+4,!0),K=_().getInt32(J+8,!0);if(K)throw D(X);return D(Z)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function mM($,Q){try{let K=H.__wbindgen_add_to_stack_pointer(-16);H.importLegacySessionRecordV1(K,B($),B(Q));var q=_().getInt32(K+0,!0),Z=_().getInt32(K+4,!0),X=_().getInt32(K+8,!0);if(X)throw D(Z);return D(q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function gM($,Q){try{let K=H.__wbindgen_add_to_stack_pointer(-16),J=j($,H.__wbindgen_export),V=U;H.inflateZlib(K,J,V,!d(Q),d(Q)?0:Q);var q=_().getInt32(K+0,!0),Z=_().getInt32(K+4,!0),X=_().getInt32(K+8,!0);if(X)throw D(Z);return D(q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function _z($,Q){H.initWasmEngine(B($),B(Q))}function rM($,Q){let q=P($,H.__wbindgen_export,H.__wbindgen_export2),Z=U,X=P(Q,H.__wbindgen_export,H.__wbindgen_export2),K=U;H.logMessage(q,Z,X,K)}function tM($){let Q=j($,H.__wbindgen_export),q=U,Z=H.md5(Q,q);return D(Z)}function aM($){try{let X=H.__wbindgen_add_to_stack_pointer(-16),K=j($,H.__wbindgen_export),J=U;H.projectLegacySessionRecordV1(X,K,J);var Q=_().getInt32(X+0,!0),q=_().getInt32(X+4,!0),Z=_().getInt32(X+8,!0);if(Z)throw D(q);return D(Q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function sM($){try{let Z=H.__wbindgen_add_to_stack_pointer(-16);H.setLogger(Z,B($));var Q=_().getInt32(Z+0,!0),q=_().getInt32(Z+4,!0);if(q)throw D(Q)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function eM($){H.updateLogger(B($))}function $W($,Q,q){try{let J=H.__wbindgen_add_to_stack_pointer(-16),V=j($,H.__wbindgen_export),C=U,F=j(Q,H.__wbindgen_export),A=U,E=j(q,H.__wbindgen_export),h=U;H.verifySignature(J,V,C,F,A,E,h);var Z=_().getInt32(J+0,!0),X=_().getInt32(J+4,!0),K=_().getInt32(J+8,!0);if(K)throw D(X);return Z!==0}finally{H.__wbindgen_add_to_stack_pointer(16)}}function V2(){return{__proto__:null,"./whatsapp_rust_bridge_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(Q,q){let Z=Error(F0(Q,q));return B(Z)},__wbg_Number_9a4e0ecb0fa16705:function(Q){return Number(k(Q))},__wbg_String_8564e559799eccda:function(Q,q){let Z=String(k(q)),X=P(Z,H.__wbindgen_export,H.__wbindgen_export2),K=U;_().setInt32(Q+4,K,!0),_().setInt32(Q+0,X,!0)},__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f:function(Q,q){let Z=k(q),X=typeof Z==="bigint"?Z:void 0;_().setBigInt64(Q+8,d(X)?BigInt(0):X,!0),_().setInt32(Q+0,!d(X),!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(Q){let q=k(Q),Z=typeof q==="boolean"?q:void 0;return d(Z)?16777215:Z?1:0},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(Q,q){let Z=zz(k(q)),X=P(Z,H.__wbindgen_export,H.__wbindgen_export2),K=U;_().setInt32(Q+4,K,!0),_().setInt32(Q+0,X,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(Q,q){return k(Q)in k(q)},__wbg___wbindgen_is_bigint_2f76dc55065b4273:function(Q){return typeof k(Q)==="bigint"},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(Q){return typeof k(Q)==="function"},__wbg___wbindgen_is_null_ea9085d691f535d3:function(Q){return k(Q)===null},__wbg___wbindgen_is_object_a27215656b807791:function(Q){let q=k(Q);return typeof q==="object"&&q!==null},__wbg___wbindgen_is_string_ea5e6cc2e4141dfe:function(Q){return typeof k(Q)==="string"},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(Q){return k(Q)===void 0},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(Q,q){return k(Q)===k(q)},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(Q,q){return k(Q)==k(q)},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(Q,q){let Z=k(q),X=typeof Z==="number"?Z:void 0;_().setFloat64(Q+8,d(X)?0:X,!0),_().setInt32(Q+0,!d(X),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(Q,q){let Z=k(q),X=typeof Z==="string"?Z:void 0;var K=d(X)?0:P(X,H.__wbindgen_export,H.__wbindgen_export2),J=U;_().setInt32(Q+4,J,!0),_().setInt32(Q+0,K,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(Q,q){throw Error(F0(Q,q))},__wbg__wbg_cb_unref_fffb441def202758:function(Q){k(Q)._wbg_cb_unref()},__wbg_apply_3ac86a26fdb56c05:function(){return Z0(function(Q,q,Z){let X=k(Q).apply(k(q),k(Z));return B(X)},arguments)},__wbg_bind_ed119fc9a791cb9c:function(Q,q,Z,X){let K=k(Q).bind(k(q),k(Z),k(X));return B(K)},__wbg_buffer_54b87055582c8a81:function(Q){let q=k(Q).buffer;return B(q)},__wbg_byobRequest_06b654bb15590436:function(Q){let q=k(Q).byobRequest;return d(q)?0:B(q)},__wbg_byteLength_41862ca4020b9c43:function(Q){return k(Q).byteLength},__wbg_byteOffset_d42e18c4441f628b:function(Q){return k(Q).byteOffset},__wbg_call_44b7209e1e252e6a:function(){return Z0(function(Q,q,Z,X,K){let J=k(Q).call(k(q),k(Z),k(X),k(K));return B(J)},arguments)},__wbg_call_8a2dd23819f8a60a:function(){return Z0(function(Q,q){let Z=k(Q).call(k(q));return B(Z)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return Z0(function(Q,q,Z){let X=k(Q).call(k(q),k(Z));return B(X)},arguments)},__wbg_call_d118afd8bd2557eb:function(){return Z0(function(Q,q,Z,X,K,J){let V=k(Q).call(k(q),k(Z),k(X),k(K),k(J));return B(V)},arguments)},__wbg_call_e3b662382210db98:function(){return Z0(function(Q,q,Z,X){let K=k(Q).call(k(q),k(Z),k(X));return B(K)},arguments)},__wbg_cancel_3983a93e24cc66b3:function(Q){let q=k(Q).cancel();return B(q)},__wbg_catch_c1a60df4c30d76d3:function(Q,q){let Z=k(Q).catch(k(q));return B(Z)},__wbg_close_1e6096d41f7ce5d0:function(Q){let q=k(Q).close();return B(q)},__wbg_close_249a23304523681b:function(){return Z0(function(Q){k(Q).close()},arguments)},__wbg_close_72d318d9c16e83ef:function(){return Z0(function(Q){k(Q).close()},arguments)},__wbg_debug_10ca7029b12f8d85:function(Q,q,Z,X){k(Q).debug(k(q),Z===0?void 0:F0(Z,X))},__wbg_debug_cf53e2612c84e4ee:function(Q,q,Z,X){console.debug(k(Q),k(q),k(Z),k(X))},__wbg_done_89b2b13e91a60321:function(Q){return k(Q).done},__wbg_enqueue_6d83b4c6281bafd6:function(){return Z0(function(Q,q){k(Q).enqueue(k(q))},arguments)},__wbg_entries_015dc610cd81ede0:function(Q){let q=Object.entries(k(Q));return B(q)},__wbg_error_657700d53a73881f:function(Q,q,Z,X){console.error(k(Q),k(q),k(Z),k(X))},__wbg_error_9cce413345f88385:function(Q,q,Z,X){k(Q).error(k(q),Z===0?void 0:F0(Z,X))},__wbg_error_a6fa202b58aa1cd3:function(Q,q){let Z,X;try{Z=Q,X=q,console.error(F0(Q,q))}finally{H.__wbindgen_export4(Z,X,1)}},__wbg_from_13e323c65fc8f464:function(Q){let q=Array.from(k(Q));return B(q)},__wbg_getRandomValues_cc7f052a444bb2ce:function(){return Z0(function(Q,q){globalThis.crypto.getRandomValues(g$(Q,q))},arguments)},__wbg_getReader_bb0230851fbf986b:function(){return Z0(function(Q){let q=k(Q).getReader();return B(q)},arguments)},__wbg_getWriter_d71a99bcd847ccef:function(){return Z0(function(Q){let q=k(Q).getWriter();return B(q)},arguments)},__wbg_get_507a50627bffa49b:function(Q,q){let Z=k(Q)[q>>>0];return B(Z)},__wbg_get_78f252d074a84d0b:function(){return Z0(function(Q,q){let Z=Reflect.get(k(Q),k(q));return B(Z)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return Z0(function(Q,q){let Z=Reflect.get(k(Q),k(q));return B(Z)},arguments)},__wbg_get_done_670108eb06ecbe46:function(Q){let q=k(Q).done;return d(q)?16777215:q?1:0},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(Q,q){let Z=k(Q)[q>>>0];return B(Z)},__wbg_get_value_f465f5be30aa0963:function(Q){let q=k(Q).value;return B(q)},__wbg_get_with_ref_key_6412cf3094599694:function(Q,q){let Z=k(Q)[k(q)];return B(Z)},__wbg_info_79f5309d69d9c70e:function(Q,q,Z,X){console.info(k(Q),k(q),k(Z),k(X))},__wbg_info_b728e87a346ff6a2:function(Q,q,Z,X){k(Q).info(k(q),Z===0?void 0:F0(Z,X))},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(Q){let q;try{q=k(Q)instanceof ArrayBuffer}catch(X){q=!1}return q},__wbg_instanceof_Array_de0fa65266a8c7c0:function(Q){let q;try{q=k(Q)instanceof Array}catch(X){q=!1}return q},__wbg_instanceof_Error_1fdac9f13a8181ba:function(Q){let q;try{q=k(Q)instanceof Error}catch(X){q=!1}return q},__wbg_instanceof_Map_e5b5e3db98422fcc:function(Q){let q;try{q=k(Q)instanceof Map}catch(X){q=!1}return q},__wbg_instanceof_Object_33f20e6f12439f3e:function(Q){let q;try{q=k(Q)instanceof Object}catch(X){q=!1}return q},__wbg_instanceof_Promise_4cb210c0b8f8c959:function(Q){let q;try{q=k(Q)instanceof Promise}catch(X){q=!1}return q},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(Q){let q;try{q=k(Q)instanceof Uint8Array}catch(X){q=!1}return q},__wbg_isArray_0677c962b281d01a:function(Q){return Array.isArray(k(Q))},__wbg_isSafeInteger_04f36e4056f1b851:function(Q){return Number.isSafeInteger(k(Q))},__wbg_iterator_6f722e4a93058b71:function(){return B(Symbol.iterator)},__wbg_keys_58421f8f96795607:function(Q){let q=Object.keys(k(Q));return B(q)},__wbg_length_1f0964f4a5e2c6d8:function(Q){return k(Q).length},__wbg_length_370319915dc99107:function(Q){return k(Q).length},__wbg_level_4b50b181832c5acf:function(Q,q){let Z=k(q).level,X=P(Z,H.__wbindgen_export,H.__wbindgen_export2),K=U;_().setInt32(Q+4,K,!0),_().setInt32(Q+0,X,!0)},__wbg_log_a45418e25b210a4c:function(Q,q,Z,X){console.log(k(Q),k(q),k(Z),k(X))},__wbg_message_8326fb1d549bebc5:function(Q){let q=k(Q).message;return B(q)},__wbg_new_227d7c05414eb861:function(){let Q=Error();return B(Q)},__wbg_new_32b398fb48b6d94a:function(){return B([])},__wbg_new_7796ffc7ed656783:function(){return B(new Map)},__wbg_new_b667d279fd5aa943:function(Q,q){let Z=Error(F0(Q,q));return B(Z)},__wbg_new_cd45aabdf6073e84:function(Q){let q=new Uint8Array(k(Q));return B(q)},__wbg_new_da52cf8fe3429cb2:function(){return B({})},__wbg_new_from_slice_7568ba55b4a7e81f:function(Q,q){let Z=new Uint32Array(k2(Q,q));return B(Z)},__wbg_new_from_slice_77cdfb7977362f3c:function(Q,q){let Z=new Uint8Array(g$(Q,q));return B(Z)},__wbg_new_typed_1824d93f294193e5:function(Q,q){try{var Z={a:Q,b:q},X=(J,V)=>{let C=Z.a;Z.a=0;try{return C2(C,Z.b,J,V)}finally{Z.a=C}};let K=new Promise(X);return B(K)}finally{Z.a=0}},__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82:function(Q,q,Z){let X=new Uint8Array(k(Q),q>>>0,Z>>>0);return B(X)},__wbg_new_with_into_underlying_source_8812003c9985c511:function(Q,q){let Z=new ReadableStream(YQ.__wrap(Q),D(q));return B(Z)},__wbg_new_with_length_e6785c33c8e4cce8:function(Q){let q=new Uint8Array(Q>>>0);return B(q)},__wbg_new_with_length_f8cbc3a5b9ff9368:function(Q){let q=Array(Q>>>0);return B(q)},__wbg_next_6dbf2c0ac8cde20f:function(Q){let q=k(Q).next;return B(q)},__wbg_next_71f2aa1cb3d1e37e:function(){return Z0(function(Q){let q=k(Q).next();return B(q)},arguments)},__wbg_now_44881ed1d5dba857:function(){return Z0(function(){return performance.now()},arguments)},__wbg_now_86c0d4ba3fa605b8:function(){return Date.now()},__wbg_now_fefb743ab429013f:function(){return performance.now()},__wbg_of_2bf3ed8a776ff19a:function(Q,q,Z,X){let K=Array.of(k(Q),k(q),k(Z),k(X));return B(K)},__wbg_prototypesetcall_2592ffff58ff115d:function(Q,q,Z){Uint8Array.prototype.set.call(g$(Q,q),k(Z))},__wbg_prototypesetcall_4770620bbe4688a0:function(Q,q,Z){Uint8Array.prototype.set.call(g$(Q,q),k(Z))},__wbg_push_d2ae3af0c1217ae6:function(Q,q){return k(Q).push(k(q))},__wbg_queueMicrotask_0ab5b2d2393e99b9:function(Q){let q=k(Q).queueMicrotask;return B(q)},__wbg_queueMicrotask_6a09b7bc46549209:function(Q){queueMicrotask(k(Q))},__wbg_read_8afa15f12a160ef8:function(Q){let q=k(Q).read();return B(q)},__wbg_ready_68b537848a5c627a:function(Q){let q=k(Q).ready;return B(q)},__wbg_releaseLock_33c25ace78b2d4c6:function(Q){k(Q).releaseLock()},__wbg_releaseLock_5b92874cad775644:function(Q){k(Q).releaseLock()},__wbg_resolve_2191a4dfe481c25b:function(Q){let q=Promise.resolve(k(Q));return B(q)},__wbg_respond_510e32df8aeb6817:function(){return Z0(function(Q,q){k(Q).respond(q>>>0)},arguments)},__wbg_set_4d7dd76f3dae2926:function(Q,q,Z){k(Q).set(g$(q,Z))},__wbg_set_575dd786d51585f8:function(Q,q,Z){let X=k(Q).set(k(q),k(Z));return B(X)},__wbg_set_6be42768c690e380:function(Q,q,Z){k(Q)[D(q)]=D(Z)},__wbg_set_8535240470bf2500:function(){return Z0(function(Q,q,Z){return Reflect.set(k(Q),k(q),k(Z))},arguments)},__wbg_set_8a16b38e4805b298:function(Q,q,Z){k(Q)[q>>>0]=D(Z)},__wbg_set_high_water_mark_44d043cd607dd13a:function(Q,q){k(Q).highWaterMark=q},__wbg_set_name_3bbc583faefa4193:function(Q,q,Z){k(Q).name=F0(q,Z)},__wbg_stack_3b0d974bbf31e44f:function(Q,q){let Z=k(q).stack,X=P(Z,H.__wbindgen_export,H.__wbindgen_export2),K=U;_().setInt32(Q+4,K,!0),_().setInt32(Q+0,X,!0)},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){let Q=typeof global>"u"?null:global;return d(Q)?0:B(Q)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){let Q=typeof globalThis>"u"?null:globalThis;return d(Q)?0:B(Q)},__wbg_static_accessor_SELF_146583524fe1469b:function(){let Q=typeof self>"u"?null:self;return d(Q)?0:B(Q)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){let Q=typeof window>"u"?null:window;return d(Q)?0:B(Q)},__wbg_subarray_3ed232c8a6baee09:function(Q,q,Z){let X=k(Q).subarray(q>>>0,Z>>>0);return B(X)},__wbg_then_16d107c451e9905d:function(Q,q,Z){let X=k(Q).then(k(q),k(Z));return B(X)},__wbg_then_6ec10ae38b3e92f7:function(Q,q){let Z=k(Q).then(k(q));return B(Z)},__wbg_trace_58264fbce2ceb5e6:function(Q,q,Z,X){k(Q).trace(k(q),Z===0?void 0:F0(Z,X))},__wbg_value_a5d5488a9589444a:function(Q){let q=k(Q).value;return B(q)},__wbg_view_21f1d4a4f175dfa9:function(Q){let q=k(Q).view;return d(q)?0:B(q)},__wbg_warn_77c4eb4a21e10a21:function(Q,q,Z,X){console.warn(k(Q),k(q),k(Z),k(X))},__wbg_warn_db531770752932a9:function(Q,q,Z,X){k(Q).warn(k(q),Z===0?void 0:F0(Z,X))},__wbg_wasmwhatsappclient_new:function(Q){let q=VQ.__wrap(Q);return B(q)},__wbg_write_f6dc0059c3feedce:function(Q,q){let Z=k(Q).write(k(q));return B(Z)},__wbindgen_cast_0000000000000001:function(Q,q){let Z=ZQ(Q,q,H2);return B(Z)},__wbindgen_cast_0000000000000002:function(Q,q){let Z=ZQ(Q,q,U2);return B(Z)},__wbindgen_cast_0000000000000003:function(Q,q){let Z=ZQ(Q,q,D2);return B(Z)},__wbindgen_cast_0000000000000004:function(Q,q){let Z=ZQ(Q,q,G2);return B(Z)},__wbindgen_cast_0000000000000005:function(Q,q){let Z=ZQ(Q,q,z2);return B(Z)},__wbindgen_cast_0000000000000006:function(Q){return B(Q)},__wbindgen_cast_0000000000000007:function(Q){return B(Q)},__wbindgen_cast_0000000000000008:function(Q,q){let Z=g$(Q,q);return B(Z)},__wbindgen_cast_0000000000000009:function(Q,q){let Z=F0(Q,q);return B(Z)},__wbindgen_cast_000000000000000a:function(Q){let q=BigInt.asUintN(64,Q);return B(q)},__wbindgen_cast_000000000000000b:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_cast_000000000000000c:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_cast_000000000000000d:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_cast_000000000000000e:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_cast_000000000000000f:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_cast_0000000000000010:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_cast_0000000000000011:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_cast_0000000000000012:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_cast_0000000000000013:function(Q,q){var Z=_0(Q,q).slice();return H.__wbindgen_export4(Q,q*4,4),B(Z)},__wbindgen_object_clone_ref:function(Q){let q=k(Q);return B(q)},__wbindgen_object_drop_ref:function(Q){D(Q)}}}}function z2($,Q){H.__wasm_bindgen_func_elem_4418($,Q)}function H2($,Q,q){H.__wasm_bindgen_func_elem_9413($,Q,B(q))}function G2($,Q,q){H.__wasm_bindgen_func_elem_4419($,Q,B(q))}function U2($,Q,q){try{let K=H.__wbindgen_add_to_stack_pointer(-16);H.__wasm_bindgen_func_elem_26654(K,$,Q,B(q));var Z=_().getInt32(K+0,!0),X=_().getInt32(K+4,!0);if(X)throw D(Z)}finally{H.__wbindgen_add_to_stack_pointer(16)}}function C2($,Q,q,Z){H.__wasm_bindgen_func_elem_26656($,Q,B(q),B(Z))}function D2($,Q,q){H.__wasm_bindgen_func_elem_4420($,Q,q)}var F2=["bytes"],P2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>H.__wbg_intounderlyingbytesource_free($,1)),L2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>H.__wbg_intounderlyingsink_free($,1)),Tz=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>H.__wbg_intounderlyingsource_free($,1)),yz=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>H.__wbg_wasmwhatsappclient_free($,1));function B($){if(qQ===d0.length)d0.push(d0.length+1);let Q=qQ;return qQ=d0[Q],d0[Q]=$,Q}var vz=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>H.__wbindgen_export5($.a,$.b));function zz($){let Q=typeof $;if(Q=="number"||Q=="boolean"||$==null)return`${$}`;if(Q=="string")return`"${$}"`;if(Q=="symbol"){let X=$.description;if(X==null)return"Symbol";else return`Symbol(${X})`}if(Q=="function"){let X=$.name;if(typeof X=="string"&&X.length>0)return`Function(${X})`;else return"Function"}if(Array.isArray($)){let X=$.length,K="[";if(X>0)K+=zz($[0]);for(let J=1;J<X;J++)K+=", "+zz($[J]);return K+="]",K}let q=/\[object ([^\]]+)\]/.exec(toString.call($)),Z;if(q&&q.length>1)Z=q[1];else return toString.call($);if(Z=="Object")try{return"Object("+JSON.stringify($)+")"}catch(X){return"Object"}if($ instanceof Error)return`${$.name}: ${$.message}
|
|
2
2
|
${$.stack}`;return Z}function x2($){if($<1028)return;d0[$]=qQ,qQ=$}function _0($,Q){$=$>>>0;let q=_(),Z=[];for(let X=$;X<$+4*Q;X+=4)Z.push(D(q.getUint32(X,!0)));return Z}function k2($,Q){return $=$>>>0,N2().subarray($/4,$/4+Q)}function g$($,Q){return $=$>>>0,r$().subarray($/1,$/1+Q)}var n$=null;function _(){if(n$===null||n$.buffer.detached===!0||n$.buffer.detached===void 0&&n$.buffer!==H.memory.buffer)n$=new DataView(H.memory.buffer);return n$}function F0($,Q){return R2($>>>0,Q)}var JQ=null;function N2(){if(JQ===null||JQ.byteLength===0)JQ=new Uint32Array(H.memory.buffer);return JQ}var KQ=null;function r$(){if(KQ===null||KQ.byteLength===0)KQ=new Uint8Array(H.memory.buffer);return KQ}function k($){return d0[$]}function Z0($,Q){try{return $.apply(this,Q)}catch(q){H.__wbindgen_export3(B(q))}}var d0=Array(1024).fill(void 0);d0.push(void 0,null,!0,!1);var qQ=d0.length;function d($){return $===void 0||$===null}function ZQ($,Q,q){let Z={a:$,b:Q,cnt:1},X=(...K)=>{Z.cnt++;let J=Z.a;Z.a=0;try{return q(J,Z.b,...K)}finally{Z.a=J,X._wbg_cb_unref()}};return X._wbg_cb_unref=()=>{if(--Z.cnt===0)H.__wbindgen_export5(Z.a,Z.b),Z.a=0,vz.unregister(Z)},vz.register(X,Z,Z),X}function j($,Q){let q=Q($.length*1,1)>>>0;return r$().set($,q/1),U=$.length,q}function s($,Q){let q=Q($.length*4,4)>>>0,Z=_();for(let X=0;X<$.length;X++)Z.setUint32(q+4*X,B($[X]),!0);return U=$.length,q}function P($,Q,q){if(q===void 0){let V=XQ.encode($),C=Q(V.length,1)>>>0;return r$().subarray(C,C+V.length).set(V),U=V.length,C}let Z=$.length,X=Q(Z,1)>>>0,K=r$(),J=0;for(;J<Z;J++){let V=$.charCodeAt(J);if(V>127)break;K[X+J]=V}if(J!==Z){if(J!==0)$=$.slice(J);X=q(X,Z,Z=J+$.length*3,1)>>>0;let V=r$().subarray(X+J,X+Z),C=XQ.encodeInto($,V);J+=C.written,X=q(X,Z,J,1)>>>0}return U=J,X}function D($){let Q=k($);return x2($),Q}var AV=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});AV.decode();var B2=2146435072,Xz=0;function R2($,Q){if(Xz+=Q,Xz>=B2)AV=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),AV.decode(),Xz=Q;return AV.decode(r$().subarray($,$+Q))}var XQ=new TextEncoder;if(!("encodeInto"in XQ))XQ.encodeInto=function($,Q){let q=XQ.encode($);return Q.set(q),{read:$.length,written:q.length}};var U=0,O2,A2,H;function E2($,Q){return A2=$,H=$.exports,O2=Q,n$=null,JQ=null,KQ=null,H}function hz($){if(H!==void 0)return H;if($!==void 0)if(Object.getPrototypeOf($)===Object.prototype)({module:$}=$);else console.warn("using deprecated parameters for `initSync()`; pass a single object instead");let Q=V2();if(!($ instanceof WebAssembly.Module))$=new WebAssembly.Module($);let q=new WebAssembly.Instance($,Q);return E2(q,$)}var NV={};Y2(NV,{protobufPackage:()=>o2,mentionMentionType:()=>FB,futureProofBehavior:()=>CB,extendedContentMessageXmaLayoutType:()=>UB,extendedContentMessageXmaDataclassType:()=>GB,extendedContentMessageExtendedContentType:()=>HB,extendedContentMessageCtaButtonType:()=>zB,consumerApplicationStatusTextMesageFontType:()=>YB,consumerApplicationMetadataSpecialTextSize:()=>XB,commandCommandType:()=>qB,WrapTransportSigningSecretKeyResult:()=>SE,WrapTransportSigningSecretKeyInput:()=>kV,WrapTransportSigningPublicKeyResult:()=>WE,WrapTransportSigningPublicKeyInput:()=>xV,WebNotificationsInfo:()=>ME,WebMessageInfo_StubType:()=>sA,WebMessageInfo_Status:()=>aA,WebMessageInfo_BizPrivacyStatus:()=>tA,WebMessageInfoWithMessageBytes:()=>Y0,WebMessageInfo:()=>g,WebLinkRenderConfig:()=>BB,WebFeatures_Flag:()=>rA,WebFeatures:()=>EE,WallpaperSettings:()=>R0,VirtualDeviceOutput:()=>LV,VerifiedNameCertificate_Details:()=>sV,VerifiedNameCertificate:()=>c0,UserReceipt:()=>PV,UserPassword_TransformerArg_Value:()=>FV,UserPassword_TransformerArg:()=>DV,UserPassword_Transformer:()=>gA,UserPassword_Encoding:()=>mA,UserPassword:()=>CV,UrlTrackingMap_UrlTrackingMapElement:()=>UV,UrlTrackingMap:()=>c$,UnCountedAssociatedMessageListWithMessageBytes:()=>GV,UnCountedAssociatedMessageList:()=>HV,ThreadID_ThreadType:()=>iA,ThreadID:()=>zV,TemplateButton_URLButton:()=>VV,TemplateButton_QuickReplyButton:()=>YV,TemplateButton_CallButton:()=>XV,TemplateButton:()=>qV,TapLinkAction:()=>KV,SyncdVersion:()=>f0,SyncdValue:()=>j$,SyncdSnapshotRecovery:()=>AE,SyncdSnapshot:()=>aV,SyncdRecord:()=>j0,SyncdPlainTextRecord:()=>JV,SyncdPatch:()=>tV,SyncdMutations:()=>rV,SyncdMutation_SyncdOperation:()=>oA,SyncdMutation:()=>w0,SyncdIndex:()=>w$,SyncActionValue_WamoUserIdentifierAction:()=>ZV,SyncActionValue_WaffleAccountLinkStateAction_AccountLinkState:()=>bA,SyncActionValue_WaffleAccountLinkStateAction:()=>QV,SyncActionValue_WASARootSecretAction_RootSecretEntry_Status:()=>nA,SyncActionValue_WASARootSecretAction_RootSecretEntry:()=>$V,SyncActionValue_WASARootSecretAction:()=>eY,SyncActionValue_UsernameChatStartModeAction_ChatStartMode:()=>dA,SyncActionValue_UsernameChatStartModeAction:()=>sY,SyncActionValue_UserStatusMuteAction:()=>aY,SyncActionValue_UnarchiveChatsSetting:()=>tY,SyncActionValue_UGCBot:()=>rY,SyncActionValue_TimeFormatAction:()=>gY,SyncActionValue_ThreadPinAction:()=>mY,SyncActionValue_SyncActionMessageRange:()=>G0,SyncActionValue_SyncActionMessage:()=>iY,SyncActionValue_SubscriptionsSyncV2Action_SubscriptionInfo:()=>oY,SyncActionValue_SubscriptionsSyncV2Action_PaidFeature:()=>bY,SyncActionValue_SubscriptionsSyncV2Action:()=>nY,SyncActionValue_SubscriptionAction:()=>dY,SyncActionValue_StickerAction:()=>u$,SyncActionValue_StatusPrivacyAction_StatusDistributionMode:()=>cA,SyncActionValue_StatusPrivacyAction_CustomList:()=>cY,SyncActionValue_StatusPrivacyAction:()=>jY,SyncActionValue_StatusPostOptInNotificationPreferencesAction:()=>wY,SyncActionValue_StarAction:()=>uY,SyncActionValue_SettingsSyncAction_SettingPlatform:()=>jA,SyncActionValue_SettingsSyncAction_SettingKey:()=>wA,SyncActionValue_SettingsSyncAction_MediaQualitySetting:()=>uA,SyncActionValue_SettingsSyncAction_DisplayMode:()=>pA,SyncActionValue_SettingsSyncAction:()=>pY,SyncActionValue_RemoveRecentStickerAction:()=>lY,SyncActionValue_RecentEmojiWeightsAction:()=>hY,SyncActionValue_QuickReplyAction:()=>_Y,SyncActionValue_PushNameSetting:()=>fY,SyncActionValue_PrivateProcessingSettingAction_PrivateProcessingStatus:()=>lA,SyncActionValue_PrivateProcessingSettingAction:()=>vY,SyncActionValue_PrivacySettingRelayAllCalls:()=>yY,SyncActionValue_PrivacySettingDisableLinkPreviewsAction:()=>TY,SyncActionValue_PrivacySettingChannelsPersonalisedRecommendationAction:()=>IY,SyncActionValue_PrimaryVersionAction:()=>SY,SyncActionValue_PrimaryFeature:()=>WY,SyncActionValue_PnForLidChatAction:()=>MY,SyncActionValue_PinAction:()=>EY,SyncActionValue_PaymentTosAction_PaymentNotice:()=>hA,SyncActionValue_PaymentTosAction:()=>AY,SyncActionValue_PaymentInfoAction:()=>OY,SyncActionValue_OutContactAction:()=>RY,SyncActionValue_NuxAction:()=>BY,SyncActionValue_NotificationActivitySettingAction_NotificationActivitySetting:()=>_A,SyncActionValue_NotificationActivitySettingAction:()=>NY,SyncActionValue_NoteEditAction_NoteType:()=>fA,SyncActionValue_NoteEditAction:()=>kY,SyncActionValue_NewsletterSavedInterestsAction:()=>xY,SyncActionValue_NctSaltSyncAction:()=>LY,SyncActionValue_MuteAction:()=>PY,SyncActionValue_MusicUserIdAction_MusicUserIdMapEntry:()=>fV,SyncActionValue_MusicUserIdAction:()=>FY,SyncActionValue_MerchantPaymentPartnerAction_Status:()=>vA,SyncActionValue_MerchantPaymentPartnerAction:()=>DY,SyncActionValue_MarketingMessageBroadcastAction:()=>CY,SyncActionValue_MarketingMessageAction_MarketingMessagePrototypeType:()=>yA,SyncActionValue_MarketingMessageAction:()=>UY,SyncActionValue_MarkChatAsReadAction:()=>GY,SyncActionValue_MaibaAIFeaturesControlAction_MaibaAIReplyMode:()=>TA,SyncActionValue_MaibaAIFeaturesControlAction_MaibaAIFeatureStatus:()=>IA,SyncActionValue_MaibaAIFeaturesControlAction:()=>HY,SyncActionValue_LockChatAction:()=>zY,SyncActionValue_LocaleSetting:()=>VY,SyncActionValue_LidContactAction:()=>YY,SyncActionValue_LabelSublistAction:()=>XY,SyncActionValue_LabelReorderingAction:()=>qY,SyncActionValue_LabelEditAction_ListType:()=>SA,SyncActionValue_LabelEditAction:()=>KY,SyncActionValue_LabelAssociationAction:()=>JY,SyncActionValue_KeyExpiration:()=>ZY,SyncActionValue_InteractiveMessageAction_InteractiveMessageActionMode:()=>WA,SyncActionValue_InteractiveMessageAction:()=>QY,SyncActionValue_FavoritesAction_Favorite:()=>$Y,SyncActionValue_FavoritesAction:()=>e6,SyncActionValue_ExternalWebBetaAction:()=>s6,SyncActionValue_DetectedOutcomesStatusAction:()=>a6,SyncActionValue_DeleteMessageForMeAction:()=>t6,SyncActionValue_DeleteIndividualCallLogAction:()=>r6,SyncActionValue_DeleteChatAction:()=>g6,SyncActionValue_CustomerDataAction:()=>m6,SyncActionValue_CustomPaymentMethodsAction:()=>i6,SyncActionValue_CustomPaymentMethodMetadata:()=>o6,SyncActionValue_CustomPaymentMethod:()=>b6,SyncActionValue_CtwaPerCustomerDataSharingAction:()=>n6,SyncActionValue_CtwaMessageReceivedAction:()=>d6,SyncActionValue_ContactAction:()=>c6,SyncActionValue_CoexV2VersionAction:()=>j6,SyncActionValue_ClearChatAction:()=>w6,SyncActionValue_ChatAssignmentOpenedStatusAction:()=>u6,SyncActionValue_ChatAssignmentAction:()=>p6,SyncActionValue_CallLogAction:()=>l6,SyncActionValue_BusinessBroadcastListAction:()=>h6,SyncActionValue_BusinessBroadcastInsightsAction:()=>_6,SyncActionValue_BusinessBroadcastCampaignStatus:()=>AA,SyncActionValue_BusinessBroadcastCampaignAction:()=>f6,SyncActionValue_BusinessBroadcastAssociationAction:()=>OE,SyncActionValue_BubbleLockMessageAction:()=>v6,SyncActionValue_BroadcastListParticipant:()=>y6,SyncActionValue_BotWelcomeRequestAction:()=>T6,SyncActionValue_BizAISettingsNudgeAction_BizAISettingsCategory:()=>MA,SyncActionValue_BizAISettingsNudgeAction:()=>I6,SyncActionValue_AvatarUpdatedAction_AvatarEventType:()=>EA,SyncActionValue_AvatarUpdatedAction:()=>S6,SyncActionValue_AutoOrganizeBusinessChatSetting:()=>W6,SyncActionValue_ArchiveChatAction:()=>M6,SyncActionValue_AndroidUnsupportedActions:()=>E6,SyncActionValue_AiThreadRenameAction:()=>A6,SyncActionValue_AgentAction:()=>O6,SyncActionValue:()=>m$,SyncActionData:()=>i$,SubProtocol:()=>n,StickerMetadata:()=>R6,StatusPSA:()=>B6,StatusMentionMessage:()=>N6,StatusAttribution_Type:()=>kA,StatusAttribution_StatusReshare_Source:()=>OA,StatusAttribution_StatusReshare_Metadata:()=>k6,StatusAttribution_StatusReshare:()=>x6,StatusAttribution_RLAttribution_Source:()=>RA,StatusAttribution_RLAttribution:()=>L6,StatusAttribution_Music:()=>P6,StatusAttribution_GroupStatus:()=>F6,StatusAttribution_ExternalShare_Source:()=>BA,StatusAttribution_ExternalShare:()=>D6,StatusAttribution_AiCreatedAttribution_Source:()=>NA,StatusAttribution_AiCreatedAttribution:()=>C6,StatusAttribution:()=>U6,SignedPreKeyRecordStructure:()=>RE,SignedMmkDistributionFromMailbox:()=>G6,SignalMessage:()=>BE,SessionTransparencyType:()=>NB,SessionTransparencyMetadata:()=>H6,SessionStructure_PendingPreKey:()=>z6,SessionStructure_PendingKeyExchange:()=>V6,SessionStructure_Chain_MessageKey:()=>Y6,SessionStructure_Chain_ChainKey:()=>X6,SessionStructure_Chain:()=>K$,SessionStructure:()=>J$,ServerErrorReceipt:()=>gV,SenderKeyStateStructure_SenderSigningKey:()=>q6,SenderKeyStateStructure_SenderMessageKey:()=>K6,SenderKeyStateStructure_SenderChainKey:()=>J6,SenderKeyStateStructure:()=>Z6,SenderKeyRecordStructure:()=>NE,SenderKeyMessage:()=>mV,SenderKeyDistributionMessage:()=>iV,ScheduledMessageMetadata:()=>Q6,RoutingInfo:()=>kE,RotateEpochOutput:()=>xE,RotateEpochMemberInput:()=>$6,RotateEpochMemberEdge:()=>e9,RotateEpochInput:()=>s9,ReportingTokenInfo:()=>a9,Reportable:()=>LE,RecordStructure:()=>PE,RecentEmojiWeight:()=>t9,Reaction:()=>r9,QuarantinedMessage:()=>g9,QP_FilterResult:()=>xA,QP_FilterParameters:()=>m9,QP_FilterClientNotSupportedConfig:()=>LA,QP_FilterClause:()=>CQ,QP_Filter:()=>i9,QP_ClauseType:()=>PA,QP:()=>FE,Pushname:()=>o9,ProloguePayload:()=>DE,ProcessedVideo_VideoQuality:()=>FA,ProcessedVideo:()=>b9,PrivacySystemMessage:()=>kB,PrimaryEphemeralIdentity:()=>CE,PremiumMessageInfo:()=>n9,PreKeySignalMessage:()=>UE,PreKeyRecordStructure:()=>GE,PollUpdate:()=>d9,PollEncValue:()=>c9,PollAdditionalMetadata_PollNameHashHistoryEntry:()=>j9,PollAdditionalMetadata:()=>w9,Point:()=>u9,PinInChat_Type:()=>DA,PinInChat:()=>p9,PhotoChange:()=>l9,PhoneNumberToLIDMapping:()=>h9,PaymentInfo_TxnStatus:()=>CA,PaymentInfo_Status:()=>UA,PaymentInfo_Currency:()=>GA,PaymentInfo:()=>Z$,PaymentBackground_Type:()=>HA,PaymentBackground_MediaData:()=>_9,PaymentBackground:()=>p$,PatchDebugData_Platform:()=>zA,PatchDebugData:()=>HE,PastParticipants:()=>f9,PastParticipant_LeaveReason:()=>VA,PastParticipant:()=>v9,PairingRequest:()=>zE,OrfThreadIdOutput:()=>VE,OrfThreadIdInput:()=>y9,NotificationSettings:()=>Q$,NotificationMessageInfo:()=>YE,NonE2EEAttestation_AccountType:()=>YA,NonE2EEAttestation:()=>T9,NoiseCertificate_Details:()=>XE,NoiseCertificate:()=>qE,MutationProps:()=>xB,MsgRowOpaqueData:()=>KE,MsgOpaqueData_PollVotesSnapshot:()=>I9,MsgOpaqueData_PollVoteSnapshot:()=>S9,MsgOpaqueData_PollType:()=>XA,MsgOpaqueData_PollOption:()=>l$,MsgOpaqueData_PollContentType:()=>qA,MsgOpaqueData_EventLocation:()=>W9,MsgOpaqueData:()=>$$,Money:()=>$0,MmkFromDetachedDevice:()=>M9,MmkDistributionToMailbox:()=>E9,MmkDistributionToDetachedDevice:()=>A9,MmkDistribution:()=>O9,MinosVerifySingleEpochResult:()=>JE,MinosVerifySingleEpochInput:()=>R9,MinosValidateEpochResult:()=>ZE,MinosValidateEpochInput:()=>B9,MinosThreadIdFromOneToOneThreadResult:()=>QE,MinosThreadIdFromOneToOneThreadInput:()=>N9,MinosThreadIdFromActThreadIdResult:()=>$E,MinosThreadIdFromActThreadIdInput:()=>k9,MinosSignedEpoch:()=>v0,MinosOpenInitialEpochResult:()=>e3,MinosOpenInitialEpochInput:()=>x9,MinosOpenEpochResult:()=>s3,MinosOpenEpochInput:()=>L9,MinosMessageMetadata:()=>h$,MinosEncryptAndSignMessageResult:()=>a3,MinosEncryptAndSignMessageInput:()=>P9,MinosDecryptAndVerifyMessageSuccess:()=>F9,MinosDecryptAndVerifyMessageResult:()=>t3,MinosDecryptAndVerifyMessageInput:()=>D9,MinosCommand:()=>r3,MinosClientConfig:()=>i,MessagingMailboxPublicData:()=>b,Message_VideoMessage_VideoSourceType:()=>QA,Message_VideoMessage_Attribution:()=>$A,Message_VideoMessage:()=>e,Message_VideoEndCard:()=>G9,Message_URLMetadata:()=>H9,Message_TemplateMessage_HydratedFourRowTemplate:()=>e0,Message_TemplateMessage_FourRowTemplate:()=>z9,Message_TemplateMessage:()=>v$,Message_TemplateButtonReplyMessage:()=>V9,Message_StickerSyncRMRMessage:()=>Y9,Message_StickerPackMessage_StickerPackOrigin:()=>eO,Message_StickerPackMessage_Sticker:()=>X9,Message_StickerPackMessage:()=>q9,Message_StickerMessage:()=>y$,Message_StatusStickerInteractionMessage_StatusStickerType:()=>sO,Message_StatusStickerInteractionMessage:()=>K9,Message_StatusQuotedMessage_StatusQuotedMessageType:()=>aO,Message_StatusQuotedMessage:()=>J9,Message_StatusQuestionAnswerMessage:()=>Z9,Message_StatusNotificationMessage_StatusNotificationType:()=>tO,Message_StatusNotificationMessage:()=>Q9,Message_StatusLinkPreviewMetadata_Style:()=>rO,Message_StatusLinkPreviewMetadata:()=>$9,Message_SplitPaymentUpdateMessage:()=>eX,Message_SplitPaymentParticipant_SplitPaymentStatus:()=>gO,Message_SplitPaymentParticipant:()=>sX,Message_SplitPaymentMessage:()=>aX,Message_SenderKeyDistributionMessage:()=>s0,Message_SendPaymentMessage:()=>tX,Message_SecretEncryptedMessage_SecretEncType:()=>mO,Message_SecretEncryptedMessage:()=>rX,Message_ScheduledCallEditMessage_EditType:()=>iO,Message_ScheduledCallEditMessage:()=>gX,Message_ScheduledCallCreationMessage_CallType:()=>oO,Message_ScheduledCallCreationMessage:()=>mX,Message_RootSecretDistributeMessage:()=>iX,Message_RequestWelcomeMessageMetadata_WelcomeTrigger:()=>bO,Message_RequestWelcomeMessageMetadata_LocalChatState:()=>nO,Message_RequestWelcomeMessageMetadata:()=>oX,Message_RequestPhoneNumberMessage:()=>bX,Message_RequestPaymentMessage:()=>nX,Message_ReactionMessage:()=>dX,Message_QuestionResponseMessage:()=>cX,Message_ProtocolMessage_Type:()=>dO,Message_ProtocolMessage:()=>jX,Message_ProductMessage_ProductSnapshot:()=>wX,Message_ProductMessage_CatalogSnapshot:()=>uX,Message_ProductMessage:()=>T$,Message_PollVoteMessage:()=>u0,Message_PollUpdateMessageMetadata:()=>y0,Message_PollUpdateMessage:()=>pX,Message_PollType:()=>qO,Message_PollResultSnapshotMessage_PollVote:()=>lX,Message_PollResultSnapshotMessage:()=>a0,Message_PollEncValue:()=>hX,Message_PollCreationMessage_Option:()=>B0,Message_PollCreationMessage:()=>J0,Message_PollContentType:()=>KO,Message_PollAddOptionMessage:()=>_X,Message_PlaceholderMessage_PlaceholderType:()=>cO,Message_PlaceholderMessage:()=>fX,Message_PinInChatMessage_Type:()=>jO,Message_PinInChatMessage:()=>vX,Message_PeerDataOperationRequestType:()=>JO,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_WaffleNonceFetchResponse:()=>yX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_SyncDSnapshotFatalRecoveryResponse:()=>TX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_PlaceholderMessageResendResponse:()=>IX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse_PaymentLinkPreviewMetadata:()=>SX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse_LinkPreviewHighQualityThumbnail:()=>WX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse:()=>MX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_HistorySyncChunkRetryResponseCode:()=>wO,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_HistorySyncChunkRetryResponse:()=>EX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FullHistorySyncOnDemandResponseCode:()=>uO,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FullHistorySyncOnDemandRequestResponse:()=>AX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FlowResponsesCsvBundle:()=>OX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_ContactRefreshResponse:()=>RX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_CompanionMetaNonceFetchResponse:()=>BX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_CompanionCanonicalUserNonceFetchResponse:()=>NX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_BizBroadcastInsightsContactState:()=>kX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_BizBroadcastInsightsContactListResponse:()=>xX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult:()=>LX,Message_PeerDataOperationRequestResponseMessage:()=>PX,Message_PeerDataOperationRequestMessage_SyncDCollectionFatalRecoveryRequest:()=>FX,Message_PeerDataOperationRequestMessage_RequestUrlPreview:()=>DX,Message_PeerDataOperationRequestMessage_RequestStickerReupload:()=>CX,Message_PeerDataOperationRequestMessage_PlaceholderMessageResendRequest:()=>UX,Message_PeerDataOperationRequestMessage_HistorySyncOnDemandRequest:()=>GX,Message_PeerDataOperationRequestMessage_HistorySyncChunkRetryRequest:()=>HX,Message_PeerDataOperationRequestMessage_GalaxyFlowAction_GalaxyFlowActionType:()=>pO,Message_PeerDataOperationRequestMessage_GalaxyFlowAction:()=>zX,Message_PeerDataOperationRequestMessage_FullHistorySyncOnDemandRequest:()=>VX,Message_PeerDataOperationRequestMessage_CompanionCanonicalUserNonceFetchRequest:()=>YX,Message_PeerDataOperationRequestMessage_BizBroadcastInsightsRefreshRequest:()=>XX,Message_PeerDataOperationRequestMessage_BizBroadcastInsightsContactListRequest:()=>qX,Message_PeerDataOperationRequestMessage:()=>KX,Message_PaymentReminderMessage_ReminderStatus:()=>lO,Message_PaymentReminderMessage_ReminderFrequency:()=>hO,Message_PaymentReminderMessage:()=>JX,Message_PaymentLinkMetadata_PaymentLinkProvider:()=>ZX,Message_PaymentLinkMetadata_PaymentLinkHeader_PaymentLinkHeaderType:()=>_O,Message_PaymentLinkMetadata_PaymentLinkHeader:()=>QX,Message_PaymentLinkMetadata_PaymentLinkButton:()=>$X,Message_PaymentLinkMetadata:()=>I$,Message_PaymentInviteMessage_ServiceType:()=>fO,Message_PaymentInviteMessage_InviteType:()=>vO,Message_PaymentInviteMessage:()=>eq,Message_PaymentExtendedMetadata:()=>sq,Message_OrderMessage_OrderSurface:()=>yO,Message_OrderMessage_OrderStatus:()=>TO,Message_OrderMessage:()=>aq,Message_NewsletterFollowerInviteMessage:()=>tq,Message_NewsletterAdminInviteMessage:()=>rq,Message_MusicMessage_MusicMessageStyle:()=>IO,Message_MusicMessage:()=>gq,Message_MessageHistoryNotice:()=>mq,Message_MessageHistoryMetadata:()=>S$,Message_MessageHistoryBundle:()=>W$,Message_MarkAsVerifiedAction:()=>iq,Message_MMSThumbnailMetadata:()=>oq,Message_LocationMessage:()=>Q0,Message_LiveLocationMessage:()=>M$,Message_ListResponseMessage_SingleSelectReply:()=>bq,Message_ListResponseMessage_ListType:()=>SO,Message_ListResponseMessage:()=>nq,Message_ListMessage_Section:()=>dq,Message_ListMessage_Row:()=>cq,Message_ListMessage_ProductSection:()=>jq,Message_ListMessage_ProductListInfo:()=>wq,Message_ListMessage_ProductListHeaderImage:()=>uq,Message_ListMessage_Product:()=>pq,Message_ListMessage_ListType:()=>WO,Message_ListMessage:()=>lq,Message_LinkPreviewMetadata_SocialMediaPostType:()=>MO,Message_LinkPreviewMetadata:()=>hq,Message_KeepInChatMessage:()=>_q,Message_InvoiceMessage_AttachmentType:()=>EO,Message_InvoiceMessage:()=>fq,Message_InteractiveResponseMessage_NativeFlowResponseMessage:()=>vq,Message_InteractiveResponseMessage_Body_Format:()=>AO,Message_InteractiveResponseMessage_Body:()=>yq,Message_InteractiveResponseMessage:()=>Tq,Message_InteractiveMessage_ShopMessage_Surface:()=>OO,Message_InteractiveMessage_ShopMessage:()=>Iq,Message_InteractiveMessage_NativeFlowMessage_NativeFlowButton:()=>Sq,Message_InteractiveMessage_NativeFlowMessage:()=>Wq,Message_InteractiveMessage_Header:()=>Mq,Message_InteractiveMessage_Footer:()=>Eq,Message_InteractiveMessage_CollectionMessage:()=>Aq,Message_InteractiveMessage_CarouselMessage_CarouselCardType:()=>RO,Message_InteractiveMessage_CarouselMessage:()=>Oq,Message_InteractiveMessage_Body:()=>Rq,Message_InteractiveMessage_BloksWidget:()=>E$,Message_InteractiveMessage:()=>T0,Message_InsightDeliveryState:()=>ZO,Message_InitialSecurityNotificationSettingSync:()=>Bq,Message_ImageMessage_ImageSourceType:()=>BO,Message_ImageMessage:()=>t,Message_HistorySyncType:()=>QO,Message_HistorySyncNotification:()=>Nq,Message_HistorySyncMessageAccessStatus:()=>kq,Message_HistoryShareMessageEntry:()=>xq,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeUnixEpoch:()=>Lq,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent_DayOfWeekType:()=>NO,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent_CalendarType:()=>kO,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent:()=>Pq,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime:()=>Fq,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMCurrency:()=>Dq,Message_HighlyStructuredMessage_HSMLocalizableParameter:()=>Cq,Message_HighlyStructuredMessage:()=>o,Message_GroupInviteMessage_GroupType:()=>xO,Message_GroupInviteMessage:()=>Uq,Message_FutureProofMessage:()=>y,Message_FullHistorySyncOnDemandRequestMetadata:()=>I0,Message_FullHistorySyncOnDemandConfig:()=>Gq,Message_ExtendedTextMessage_PreviewType:()=>LO,Message_ExtendedTextMessage_InviteLinkGroupType:()=>PO,Message_ExtendedTextMessage_FontType:()=>FO,Message_ExtendedTextMessage:()=>Hq,Message_EventResponseMessage_EventResponseType:()=>DO,Message_EventResponseMessage:()=>p0,Message_EventMessage:()=>zq,Message_EventInviteMessage:()=>Vq,Message_EncReactionMessage:()=>Yq,Message_EncEventResponseMessage:()=>Xq,Message_EncCommentMessage:()=>qq,Message_DocumentMessage:()=>K0,Message_DeviceSentMessage:()=>Kq,Message_DeclinePaymentRequestMessage:()=>Jq,Message_ContactsArrayMessage:()=>Zq,Message_ContactMessage:()=>A$,Message_ConditionalRevealMessage_ConditionalRevealMessageType:()=>CO,Message_ConditionalRevealMessage:()=>Qq,Message_CommentMessage:()=>$q,Message_CloudAPIThreadControlNotification_CloudAPIThreadControlNotificationContent:()=>e8,Message_CloudAPIThreadControlNotification_CloudAPIThreadControl:()=>UO,Message_CloudAPIThreadControlNotification:()=>s8,Message_ChatThemeSetting:()=>a8,Message_ChatStockImageWallpaper:()=>t8,Message_ChatSolidColorWallpaper:()=>r8,Message_ChatDefaultWallpaper:()=>g8,Message_ChatCustomImageWallpaper:()=>m8,Message_Chat:()=>i8,Message_CancelPaymentRequestMessage:()=>o8,Message_CallLogMessage_CallType:()=>GO,Message_CallLogMessage_CallParticipant:()=>b8,Message_CallLogMessage_CallOutcome:()=>HO,Message_CallLogMessage:()=>n8,Message_Call:()=>d8,Message_ButtonsResponseMessage_Type:()=>zO,Message_ButtonsResponseMessage:()=>c8,Message_ButtonsMessage_HeaderType:()=>YO,Message_ButtonsMessage_Button_Type:()=>VO,Message_ButtonsMessage_Button_NativeFlowInfo:()=>j8,Message_ButtonsMessage_Button_ButtonText:()=>w8,Message_ButtonsMessage_Button:()=>u8,Message_ButtonsMessage:()=>p8,Message_BotHistoryShareSyncMetadata:()=>l8,Message_BCallMessage_MediaType:()=>XO,Message_BCallMessage:()=>h8,Message_AudioMessage:()=>O$,Message_AppStateSyncKeyShare:()=>_8,Message_AppStateSyncKeyRequest:()=>f8,Message_AppStateSyncKeyId:()=>R$,Message_AppStateSyncKeyFingerprint:()=>v8,Message_AppStateSyncKeyData:()=>y8,Message_AppStateSyncKey:()=>T8,Message_AppStateFatalExceptionNotification:()=>I8,Message_AlbumMessage:()=>S8,MessageText:()=>a,MessageSecretMessage:()=>g3,MessageKey:()=>N,MessageContextInfo_MessageAddonExpiryType:()=>KA,MessageContextInfo:()=>_$,MessageAssociation_AssociationType:()=>JA,MessageAssociation:()=>C9,MessageAddOn_MessageAddOnType:()=>ZA,MessageAddOnContextInfo:()=>f$,MessageAddOn:()=>U9,Message:()=>c,MerkleMembershipProof:()=>S0,Mention:()=>B$,MemberLabel:()=>W0,MekBundle:()=>M0,MediaVisibility:()=>LB,MediaRetryNotification_ResultType:()=>$O,MediaRetryNotification:()=>oV,MediaNotifyMessage:()=>W8,MediaKeyDomain:()=>PB,MediaEntry_ProgressiveJpegDetails:()=>M8,MediaEntry_DownloadableThumbnail:()=>E8,MediaEntry:()=>m3,MediaDomainInfo:()=>A8,MediaData:()=>t0,MandrakeValidateNewMmkResult:()=>i3,MandrakeValidateNewMmkFromMailboxInput:()=>O8,MandrakeValidateNewMmkFromDetachedDeviceInput:()=>R8,MandrakeOpenInitialEpochResult:()=>o3,MandrakeOpenInitialEpochInput:()=>B8,MandrakeOpenEpochSuccess:()=>N$,MandrakeOpenEpochResult:()=>b3,MandrakeOpenEpochInput:()=>N8,MandrakeMekBundle:()=>k8,MandrakeEncryptMekSuccess_MekDistributionSingleRecipient:()=>x8,MandrakeEncryptMekSuccess:()=>L8,MandrakeEncryptMekResult:()=>n3,MandrakeEncryptMekInput_MmkSender:()=>P8,MandrakeEncryptMekInput_EpochSender:()=>F8,MandrakeEncryptMekInput_DetachedDeviceSender:()=>D8,MandrakeEncryptMekInput:()=>C8,MandrakeDecryptMekSuccess:()=>U8,MandrakeDecryptMekResult:()=>d3,MandrakeDecryptMekInput_PrecomputedEpochSenderPublicData:()=>G8,MandrakeDecryptMekInput_MmkSenderPublicData:()=>H8,MandrakeDecryptMekInput_EpochSenderPublicData:()=>z8,MandrakeDecryptMekInput:()=>V8,Location:()=>Y8,LocalizedName:()=>X8,LimitSharing_TriggerType:()=>eR,LimitSharing:()=>N0,LegacyMessage:()=>q8,LabyrinthWaCommand:()=>c3,LIDMigrationMappingSyncPayload:()=>bV,LIDMigrationMappingSyncMessage:()=>J8,LIDMigrationMapping:()=>K8,KeyId:()=>E0,KeyExchangeMessage:()=>j3,KeepType:()=>DB,KeepInChat:()=>Z8,InteractiveMessageAdditionalMetadata:()=>Q8,InteractiveAnnotation_StatusLinkType:()=>sR,InteractiveAnnotation:()=>V0,InlineContact:()=>$8,InThreadSurveyMetadata_InThreadSurveyQuestion:()=>eK,InThreadSurveyMetadata_InThreadSurveyPrivacyStatementPart:()=>sK,InThreadSurveyMetadata_InThreadSurveyOption:()=>aK,InThreadSurveyMetadata:()=>tK,IdentityVerificationState:()=>rK,IdentityKeyPairStructure:()=>w3,HydratedTemplateButton_HydratedURLButton_WebviewPresentationType:()=>aR,HydratedTemplateButton_HydratedURLButton:()=>gK,HydratedTemplateButton_HydratedQuickReplyButton:()=>mK,HydratedTemplateButton_HydratedCallButton:()=>iK,HydratedTemplateButton:()=>oK,HistorySync_HistorySyncType:()=>tR,HistorySync_BotAIWaitListState:()=>rR,HistorySyncMsg:()=>bK,HistorySync:()=>nV,HatchMetadataSync:()=>nK,HandshakeMessage_ServerHello:()=>dK,HandshakeMessage_HandshakePqMode:()=>gR,HandshakeMessage_ClientHello:()=>cK,HandshakeMessage_ClientFinish:()=>jK,HandshakeMessage:()=>dV,GroupRootKeyShareEntry:()=>wK,GroupRootKeyShare:()=>uK,GroupParticipant_Rank:()=>mR,GroupParticipant:()=>pK,GroupMention:()=>lK,GroupHistoryWithMessageBytes:()=>u3,GroupHistoryIndividualMessageInfo:()=>hK,GroupHistoryBundleInfo_ProcessState:()=>iR,GroupHistoryBundleInfo:()=>_K,GroupHistory:()=>p3,GlobalSettings:()=>fK,GenerateMekRosterHashResult:()=>l3,GenerateMekRosterHashInput:()=>vK,GenerateMekResult:()=>h3,GenerateMekInput:()=>yK,ForwardedAIBotMessageInfo:()=>TK,FingerprintData_HostedState:()=>oR,FingerprintData:()=>r0,Field_SubfieldEntry:()=>vV,Field:()=>l0,ExternalBlobReference:()=>o$,ExtendedContentMessage_extendedContentMessageOverlayIconGlyph:()=>bR,ExtendedContentMessage_CTA:()=>IK,ExtendedContentMessage:()=>_3,ExitCode:()=>b$,EventResponse:()=>SK,EventAdditionalMetadata:()=>WK,EpochSignatures:()=>k$,EpochPublicData:()=>r,Epoch0Output:()=>MK,EphemeralSetting:()=>f3,EncryptedSecretValuesOutput:()=>EK,EncryptedPairingRequest:()=>v3,EncryptMessageOutput:()=>y3,EncryptMessageInput:()=>AK,EncryptMeksForDistributionFromTransportSenderResult:()=>T3,EncryptMeksForDistributionFromTransportSenderInput_TransportSigningKP:()=>OK,EncryptMeksForDistributionFromTransportSenderInput:()=>RK,EncryptMekForDistributionResult:()=>I3,EncryptMekForDistributionInput_MailboxAuthKP:()=>BK,EncryptMekForDistributionInput:()=>NK,EmbeddedMusic:()=>H0,EmbeddedMessage:()=>kK,EmbeddedContent:()=>xK,DisappearingMode_Trigger:()=>nR,DisappearingMode_Initiator:()=>dR,DisappearingMode:()=>A0,DeviceProps_PlatformType:()=>cR,DeviceProps_HistorySyncConfig:()=>x$,DeviceProps_AppVersion:()=>LK,DeviceProps:()=>cV,DeviceOutput:()=>PK,DeviceListMetadata:()=>FK,DeviceConsistencyCodeMessage:()=>S3,DeviceCapabilities_UserHasAvatar:()=>DK,DeviceCapabilities_MemberNameTagPrimarySupport:()=>wR,DeviceCapabilities_LIDMigration:()=>CK,DeviceCapabilities_ContactRefresh:()=>UK,DeviceCapabilities_ChatLockSupportLevel:()=>uR,DeviceCapabilities_BusinessBroadcast:()=>GK,DeviceCapabilities_BizAiSettingsSync:()=>HK,DeviceCapabilities_AiThread_SupportLevel:()=>jR,DeviceCapabilities_AiThread:()=>zK,DeviceCapabilities_AiFbidMigration:()=>VK,DeviceCapabilities:()=>g0,DetachedDevicePublicData:()=>z0,DeriveMessagingMailboxKeypairsSuccess:()=>YK,DeriveMessagingMailboxKeypairsResult:()=>W3,DeriveMessagingMailboxKeypairsInput:()=>XK,DeriveMessageKeyOutput:()=>M3,DeriveMessageKeyInput:()=>qK,DeriveMailboxSigningKeypairSuccess:()=>KK,DeriveMailboxSigningKeypairResult:()=>E3,DeriveMailboxSigningKeypairInput:()=>JK,DeriveMailboxEncryptionKeypairResult:()=>A3,DeriveMailboxEncryptionKeypairInput:()=>ZK,DeriveMailboxAuthKeypairResult:()=>O3,DeriveMailboxAuthKeypairInput:()=>QK,DeriveAttachmentPrimaryKeySecretResult:()=>R3,DeriveAttachmentPrimaryKeySecretInput:()=>$K,DeriveAttachmentAccessTokenSecretResult:()=>B3,DeriveAttachmentAccessTokenSecretInput:()=>eJ,DecryptSelfMmkDistributionSuccess:()=>sJ,DecryptSelfMmkDistributionResult:()=>N3,DecryptSelfMmkDistributionInput:()=>aJ,DecryptMessageOutput:()=>k3,DecryptMessageInput:()=>tJ,DecryptMekForDistributionSuccess:()=>rJ,DecryptMekForDistributionResult:()=>x3,DecryptMekForDistributionInput:()=>gJ,DecryptMekForDistributionFromTransportSenderSuccess:()=>mJ,DecryptMekForDistributionFromTransportSenderResult:()=>L3,DecryptMekForDistributionFromTransportSenderInput_TransportSenderMEKDistributionSingleRecipient:()=>iJ,DecryptMekForDistributionFromTransportSenderInput:()=>oJ,CreateBackupOutput:()=>P3,CreateBackupInput:()=>bJ,Conversation_GroupAppealStatus:()=>pR,Conversation_EndOfHistoryTransferType:()=>lR,Conversation:()=>nJ,ContextInfo_UTMInfo:()=>dJ,ContextInfo_StatusSourceType:()=>WR,ContextInfo_StatusAudienceMetadata_AudienceType:()=>hR,ContextInfo_StatusAudienceMetadata:()=>cJ,ContextInfo_StatusAttributionType:()=>MR,ContextInfo_QuotedType:()=>ER,ContextInfo_QuestionReplyQuotedMessage:()=>jJ,ContextInfo_PartiallySelectedContent:()=>wJ,ContextInfo_PairedMediaType:()=>AR,ContextInfo_InstagramThreadLink:()=>uJ,ContextInfo_ForwardedNewsletterMessageInfo_ContentType:()=>_R,ContextInfo_ForwardedNewsletterMessageInfo:()=>L$,ContextInfo_ForwardOrigin:()=>OR,ContextInfo_FeatureEligibilities:()=>pJ,ContextInfo_ExternalAdReplyInfo_MediaType:()=>fR,ContextInfo_ExternalAdReplyInfo_AdType:()=>vR,ContextInfo_ExternalAdReplyInfo:()=>lJ,ContextInfo_DataSharingContext_Parameters:()=>q$,ContextInfo_DataSharingContext_DataSharingFlags:()=>yR,ContextInfo_DataSharingContext:()=>hJ,ContextInfo_CrossAppSource:()=>RR,ContextInfo_BusinessMessageForwardInfo:()=>_J,ContextInfo_BusinessInteractionPills_UnauthenticatedBusinessMetadata:()=>fJ,ContextInfo_BusinessInteractionPills_SignedPayload:()=>F3,ContextInfo_BusinessInteractionPills_PillType:()=>TR,ContextInfo_BusinessInteractionPills_Pill:()=>P$,ContextInfo_BusinessInteractionPills_EntryPoint:()=>IR,ContextInfo_BusinessInteractionPills:()=>vJ,ContextInfo_AdReplyInfo_MediaType:()=>SR,ContextInfo_AdReplyInfo:()=>yJ,ContextInfo:()=>W,ConsumerApplication_consumerApplicationExtendedTextMessagePreviewType:()=>BR,ConsumerApplication_ViewOnceMessage:()=>TJ,ConsumerApplication_VideoMessage:()=>F$,ConsumerApplication_SubProtocolPayload:()=>IJ,ConsumerApplication_StickerMessage:()=>SJ,ConsumerApplication_StatusTextMesage:()=>WJ,ConsumerApplication_Signal:()=>MJ,ConsumerApplication_RevokeMessage:()=>EJ,ConsumerApplication_ReactionMessage:()=>AJ,ConsumerApplication_PollVoteMessage:()=>D3,ConsumerApplication_PollUpdateMessage:()=>OJ,ConsumerApplication_PollEncValue:()=>m0,ConsumerApplication_PollCreationMessage:()=>RJ,ConsumerApplication_PollAddOptionMessage:()=>C3,ConsumerApplication_Point:()=>BJ,ConsumerApplication_Payload:()=>NJ,ConsumerApplication_Option:()=>D$,ConsumerApplication_Metadata:()=>kJ,ConsumerApplication_MediaPayload:()=>U3,ConsumerApplication_LocationMessage:()=>xJ,ConsumerApplication_Location:()=>O0,ConsumerApplication_LiveLocationMessage:()=>LJ,ConsumerApplication_InteractiveAnnotation:()=>G3,ConsumerApplication_ImageMessage:()=>C$,ConsumerApplication_GroupInviteMessage:()=>PJ,ConsumerApplication_ExtendedTextMessage:()=>U$,ConsumerApplication_EditMessage:()=>FJ,ConsumerApplication_DocumentMessage:()=>DJ,ConsumerApplication_Content:()=>CJ,ConsumerApplication_ContactsArrayMessage:()=>UJ,ConsumerApplication_ContactMessage:()=>G$,ConsumerApplication_AudioMessage:()=>GJ,ConsumerApplication_ApplicationData:()=>HJ,ConsumerApplication:()=>H3,Config_FieldEntry:()=>yV,Config:()=>z3,CompanionEphemeralIdentity:()=>V3,CompanionCommitment:()=>zJ,CommentMetadata:()=>VJ,Command:()=>H$,CombinedFingerprint:()=>Y3,CollectionName:()=>VB,CoexStateSync_Mutation:()=>YJ,CoexStateSync_CollectionMutations:()=>XJ,CoexStateSync:()=>qJ,ClientPayload_WebInfo_WebdPayload:()=>KJ,ClientPayload_WebInfo_WebSubPlatform:()=>NR,ClientPayload_WebInfo:()=>JJ,ClientPayload_UserAgent_ReleaseChannel:()=>kR,ClientPayload_UserAgent_Platform:()=>xR,ClientPayload_UserAgent_DistributionChannel:()=>LR,ClientPayload_UserAgent_DeviceType:()=>PR,ClientPayload_UserAgent_AppVersion:()=>ZJ,ClientPayload_UserAgent:()=>QJ,ClientPayload_TrafficAnonymization:()=>DR,ClientPayload_Product:()=>CR,ClientPayload_InteropData:()=>$J,ClientPayload_IOSAppExtension:()=>UR,ClientPayload_DevicePairingRegistrationData:()=>eZ,ClientPayload_DNSSource_DNSResolutionMethod:()=>FR,ClientPayload_DNSSource:()=>sZ,ClientPayload_ConnectType:()=>GR,ClientPayload_ConnectReason:()=>HR,ClientPayload_AccountType:()=>zR,ClientPayload:()=>jV,ClientPairingProps:()=>X3,Citation:()=>aZ,ChatRowOpaqueData_DraftMessage_CtwaContextLinkData:()=>tZ,ChatRowOpaqueData_DraftMessage_CtwaContextData_ContextInfoExternalAdReplyInfoMediaType:()=>VR,ChatRowOpaqueData_DraftMessage_CtwaContextData:()=>rZ,ChatRowOpaqueData_DraftMessage:()=>gZ,ChatRowOpaqueData:()=>q3,ChatLockSettings:()=>z$,CertChain_NoiseCertificate_Details:()=>wV,CertChain_NoiseCertificate:()=>h0,CertChain:()=>uV,CallLogRecord_SilenceReason:()=>YR,CallLogRecord_ParticipantInfo:()=>mZ,CallLogRecord_CallType:()=>XR,CallLogRecord_CallResult:()=>qR,CallLogRecord:()=>V$,BotUnifiedResponseMutation_SideBySideMetadata:()=>iZ,BotUnifiedResponseMutation_MediaDetailsMetadata:()=>oZ,BotUnifiedResponseMutation:()=>bZ,BotSuggestedPromptMetadata:()=>nZ,BotSourcesMetadata_BotSourceItem_SourceProvider:()=>KR,BotSourcesMetadata_BotSourceItem:()=>dZ,BotSourcesMetadata:()=>cZ,BotSignatureVerificationUseCaseProof_CertificateSKI:()=>jZ,BotSignatureVerificationUseCaseProof_BotSignatureUseCase:()=>JR,BotSignatureVerificationUseCaseProof:()=>wZ,BotSignatureVerificationMetadata:()=>Y$,BotSessionSource:()=>KB,BotSessionMetadata:()=>uZ,BotResolvedToolCallMetadata:()=>pZ,BotRenderingMetadata_Keyword:()=>lZ,BotRenderingMetadata:()=>hZ,BotRenderingConfigMetadata:()=>_Z,BotReminderMetadata_ReminderFrequency:()=>ZR,BotReminderMetadata_ReminderAction:()=>QR,BotReminderMetadata:()=>fZ,BotQuotaMetadata_BotFeatureQuotaMetadata_BotFeatureType:()=>$R,BotQuotaMetadata_BotFeatureQuotaMetadata:()=>vZ,BotQuotaMetadata:()=>yZ,BotPttPromptMetadata:()=>TZ,BotPromptSuggestions:()=>IZ,BotPromptSuggestion:()=>SZ,BotPromotionMessageMetadata_BotPromotionType:()=>eB,BotPromotionMessageMetadata:()=>WZ,BotProgressIndicatorMetadata_BotPlanningStepMetadata_PlanningStepStatus:()=>aB,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotSearchSourceProvider:()=>tB,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningStepSectionMetadata:()=>MZ,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourcesMetadata_BotPlanningSearchSourceProvider:()=>sB,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourcesMetadata:()=>EZ,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourceMetadata:()=>AZ,BotProgressIndicatorMetadata_BotPlanningStepMetadata:()=>OZ,BotProgressIndicatorMetadata:()=>RZ,BotPluginMetadata_SearchProvider:()=>rB,BotPluginMetadata_PluginType:()=>gB,BotPluginMetadata:()=>BZ,BotModelMetadata_PremiumModelStatus:()=>mB,BotModelMetadata_ModelType:()=>iB,BotModelMetadata:()=>NZ,BotModeSelectionMetadata_BotUserSelectionMode:()=>oB,BotModeSelectionMetadata:()=>kZ,BotMetricsThreadEntryPoint:()=>JB,BotMetricsMetadata:()=>xZ,BotMetricsEntryPoint:()=>ZB,BotMetadata:()=>LZ,BotMessageSharingInfo:()=>PZ,BotMessageOrigin_BotMessageOriginType:()=>bB,BotMessageOriginMetadata:()=>FZ,BotMessageOrigin:()=>DZ,BotMemuMetadata:()=>CZ,BotMemoryMetadata:()=>UZ,BotMemoryFact:()=>i0,BotMediaMetadata_OrientationType:()=>nB,BotMediaMetadata:()=>k0,BotLinkedAccountsMetadata:()=>GZ,BotLinkedAccount_BotLinkedAccountType:()=>dB,BotLinkedAccount:()=>HZ,BotInfrastructureDiagnostics_BotBackend:()=>cB,BotInfrastructureDiagnostics:()=>zZ,BotImagineMetadata_ImagineType:()=>jB,BotImagineMetadata:()=>VZ,BotHistoryShareMetadata:()=>YZ,BotGroupParticipantMetadata:()=>X$,BotGroupMetadata:()=>XZ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyResponseEventData:()=>qZ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCardImpressionEventData:()=>KZ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCTAImpressionEventData:()=>JZ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCTAClickEventData:()=>ZZ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyAbandonEventData:()=>QZ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData:()=>$Z,BotFeedbackMessage_SideBySideSurveyMetadata_SideBySideSurveyAnalyticsData:()=>eQ,BotFeedbackMessage_SideBySideSurveyMetadata:()=>sQ,BotFeedbackMessage_ReportKind:()=>wB,BotFeedbackMessage_BotFeedbackKindMultiplePositive:()=>uB,BotFeedbackMessage_BotFeedbackKindMultipleNegative:()=>pB,BotFeedbackMessage_BotFeedbackKind:()=>lB,BotFeedbackMessage:()=>aQ,BotDocumentMessageMetadata_DocumentPluginType:()=>hB,BotDocumentMessageMetadata:()=>tQ,BotCommandMetadata:()=>rQ,BotCapabilityMetadata_BotCapabilityType:()=>_B,BotCapabilityMetadata:()=>gQ,BotAgentMetadata:()=>mQ,BotAgentDeepLinkMetadata:()=>iQ,BotAgeCollectionMetadata_AgeCollectionType:()=>fB,BotAgeCollectionMetadata:()=>oQ,BizIdentityInfo_VerifiedLevelValue:()=>vB,BizIdentityInfo_HostStorageType:()=>yB,BizIdentityInfo_ActualActorsType:()=>TB,BizIdentityInfo:()=>K3,BizAccountPayload:()=>J3,BizAccountLinkInfo_HostStorageType:()=>IB,BizAccountLinkInfo_AccountType:()=>SB,BizAccountLinkInfo:()=>Z3,BackwardEdge:()=>bQ,AvatarUserSettings:()=>nQ,AutoDownloadSettings:()=>L0,ActionLink:()=>dQ,AccountLinkingOpaqueData:()=>Q3,Account:()=>cQ,AIThreadInfo_AIThreadServerInfo:()=>jQ,AIThreadInfo_AIThreadClientInfo_AIThreadType:()=>WB,AIThreadInfo_AIThreadClientInfo:()=>wQ,AIThreadInfo:()=>uQ,AISubscriptionUpsellMetadata:()=>pQ,AISubscriptionRequestType:()=>QB,AIRichResponseUnifiedResponse:()=>lQ,AIRichResponseTableMetadata_AIRichResponseTableRow:()=>hQ,AIRichResponseTableMetadata:()=>_Q,AIRichResponseSubMessageType:()=>$B,AIRichResponseSubMessage:()=>fQ,AIRichResponseMessageType:()=>eN,AIRichResponseMessage:()=>vQ,AIRichResponseMapMetadata_AIRichResponseMapAnnotation:()=>yQ,AIRichResponseMapMetadata:()=>TQ,AIRichResponseLatexMetadata_AIRichResponseLatexExpression:()=>IQ,AIRichResponseLatexMetadata:()=>SQ,AIRichResponseInlineImageMetadata_AIRichResponseImageAlignment:()=>MB,AIRichResponseInlineImageMetadata:()=>WQ,AIRichResponseImageURL:()=>x0,AIRichResponseGridImageMetadata:()=>MQ,AIRichResponseDynamicMetadata_AIRichResponseDynamicMetadataType:()=>EB,AIRichResponseDynamicMetadata:()=>EQ,AIRichResponseContentItemsMetadata_ContentType:()=>AB,AIRichResponseContentItemsMetadata_AIRichResponseReelItem:()=>AQ,AIRichResponseContentItemsMetadata_AIRichResponseContentItemMetadata:()=>OQ,AIRichResponseContentItemsMetadata:()=>RQ,AIRichResponseCodeMetadata_AIRichResponseCodeHighlightType:()=>OB,AIRichResponseCodeMetadata_AIRichResponseCodeBlock:()=>BQ,AIRichResponseCodeMetadata:()=>NQ,AIRegenerateMetadata:()=>kQ,AIQueryFanout:()=>xQ,AIProvenance_Metadata:()=>o0,AIProvenance:()=>LQ,AIMetadataOperation:()=>PQ,AIMediaCollectionMetadata:()=>FQ,AIMediaCollectionMessage:()=>DQ,AIHomeState_AIHomeOption_AIHomeActionType:()=>RB,AIHomeState_AIHomeOption:()=>b0,AIHomeState:()=>$3,ADVSignedKeyIndexList:()=>pV,ADVSignedDeviceIdentityHMAC:()=>lV,ADVSignedDeviceIdentity:()=>hV,ADVKeyIndexList:()=>eA,ADVEncryptionType:()=>sN,ADVDeviceIdentity:()=>_V});function pz(){let $=0,Q=0;for(let Z=0;Z<28;Z+=7){let X=this.buf[this.pos++];if($|=(X&127)<<Z,(X&128)==0)return this.assertBounds(),[$,Q]}let q=this.buf[this.pos++];if($|=(q&15)<<28,Q=(q&112)>>4,(q&128)==0)return this.assertBounds(),[$,Q];for(let Z=3;Z<=31;Z+=7){let X=this.buf[this.pos++];if(Q|=(X&127)<<Z,(X&128)==0)return this.assertBounds(),[$,Q]}throw Error("invalid varint")}function MV($,Q,q){for(let K=0;K<28;K=K+7){let J=$>>>K,V=!(J>>>7==0&&Q==0),C=(V?J|128:J)&255;if(q.push(C),!V)return}let Z=$>>>28&15|(Q&7)<<4,X=Q>>3!=0;if(q.push((X?Z|128:Z)&255),!X)return;for(let K=3;K<31;K=K+7){let J=Q>>>K,V=J>>>7!=0,C=(V?J|128:J)&255;if(q.push(C),!V)return}q.push(Q>>>31&1)}var EV=4294967296;function Hz($){let Q=$[0]==="-";if(Q)$=$.slice(1);let q=1e6,Z=0,X=0;function K(J,V){let C=Number($.slice(J,V));if(X*=q,Z=Z*q+C,Z>=EV)X=X+(Z/EV|0),Z=Z%EV}return K(-24,-18),K(-18,-12),K(-12,-6),K(-6),Q?wz(Z,X):Uz(Z,X)}function uz($,Q){let q=Uz($,Q),Z=q.hi&2147483648;if(Z)q=wz(q.lo,q.hi);let X=Gz(q.lo,q.hi);return Z?"-"+X:X}function Gz($,Q){if({lo:$,hi:Q}=M2($,Q),Q<=2097151)return String(EV*Q+$);let q=$&16777215,Z=($>>>24|Q<<8)&16777215,X=Q>>16&65535,K=q+Z*6777216+X*6710656,J=Z+X*8147497,V=X*2,C=1e7;if(K>=C)J+=Math.floor(K/C),K%=C;if(J>=C)V+=Math.floor(J/C),J%=C;return V.toString()+lz(J)+lz(K)}function M2($,Q){return{lo:$>>>0,hi:Q>>>0}}function Uz($,Q){return{lo:$|0,hi:Q|0}}function wz($,Q){if(Q=~Q,$)$=~$+1;else Q+=1;return Uz($,Q)}var lz=($)=>{let Q=String($);return"0000000".slice(Q.length)+Q};function Cz($,Q){if($>=0){while($>127)Q.push($&127|128),$=$>>>7;Q.push($)}else{for(let q=0;q<9;q++)Q.push($&127|128),$=$>>7;Q.push(1)}}function jz(){let $=this.buf[this.pos++],Q=$&127;if(($&128)==0)return this.assertBounds(),Q;if($=this.buf[this.pos++],Q|=($&127)<<7,($&128)==0)return this.assertBounds(),Q;if($=this.buf[this.pos++],Q|=($&127)<<14,($&128)==0)return this.assertBounds(),Q;if($=this.buf[this.pos++],Q|=($&127)<<21,($&128)==0)return this.assertBounds(),Q;$=this.buf[this.pos++],Q|=($&15)<<28;for(let q=5;($&128)!==0&&q<10;q++)$=this.buf[this.pos++];if(($&128)!=0)throw Error("invalid varint");return this.assertBounds(),Q>>>0}var P0=W2();function W2(){let $=new DataView(new ArrayBuffer(8));if(typeof BigInt==="function"&&typeof $.getBigInt64==="function"&&typeof $.getBigUint64==="function"&&typeof $.setBigInt64==="function"&&typeof $.setBigUint64==="function"&&(!!globalThis.Deno||typeof process!="object"||typeof process.env!="object"||process.env.BUF_BIGINT_DISABLE!=="1")){let q=BigInt("-9223372036854775808"),Z=BigInt("9223372036854775807"),X=BigInt("0"),K=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(J){let V=typeof J=="bigint"?J:BigInt(J);if(V>Z||V<q)throw Error(`invalid int64: ${J}`);return V},uParse(J){let V=typeof J=="bigint"?J:BigInt(J);if(V>K||V<X)throw Error(`invalid uint64: ${J}`);return V},enc(J){return $.setBigInt64(0,this.parse(J),!0),{lo:$.getInt32(0,!0),hi:$.getInt32(4,!0)}},uEnc(J){return $.setBigInt64(0,this.uParse(J),!0),{lo:$.getInt32(0,!0),hi:$.getInt32(4,!0)}},dec(J,V){return $.setInt32(0,J,!0),$.setInt32(4,V,!0),$.getBigInt64(0,!0)},uDec(J,V){return $.setInt32(0,J,!0),$.setInt32(4,V,!0),$.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(q){if(typeof q!="string")q=q.toString();return cz(q),q},uParse(q){if(typeof q!="string")q=q.toString();return dz(q),q},enc(q){if(typeof q!="string")q=q.toString();return cz(q),Hz(q)},uEnc(q){if(typeof q!="string")q=q.toString();return dz(q),Hz(q)},dec(q,Z){return uz(q,Z)},uDec(q,Z){return Gz(q,Z)}}}function cz($){if(!/^-?[0-9]+$/.test($))throw Error("invalid int64: "+$)}function dz($){if(!/^[0-9]+$/.test($))throw Error("invalid uint64: "+$)}var Dz=Symbol.for("@bufbuild/protobuf/text-encoding");function Fz(){if(globalThis[Dz]==null){let $=new globalThis.TextEncoder,Q=new globalThis.TextDecoder,q;globalThis[Dz]={encodeUtf8(Z){return $.encode(Z)},decodeUtf8(Z,X){if(X){if(q===void 0)q=new globalThis.TextDecoder("utf-8",{fatal:!0});return q.decode(Z)}return Q.decode(Z)},checkUtf8(Z){try{return encodeURIComponent(Z),!0}catch(X){return!1}}}}return globalThis[Dz]}var n0;(function($){$[$.Varint=0]="Varint",$[$.Bit64=1]="Bit64",$[$.LengthDelimited=2]="LengthDelimited",$[$.StartGroup=3]="StartGroup",$[$.EndGroup=4]="EndGroup",$[$.Bit32=5]="Bit32"})(n0||(n0={}));var S2=340282346638528860000000000000000000000,I2=-340282346638528860000000000000000000000,T2=4294967295,y2=2147483647,v2=-2147483648;class Lz{constructor($=Fz().encodeUtf8){this.encodeUtf8=$,this.stack=[],this.chunks=[],this.buf=[]}finish(){if(this.buf.length)this.chunks.push(new Uint8Array(this.buf)),this.buf=[];let $=0;for(let Z=0;Z<this.chunks.length;Z++)$+=this.chunks[Z].length;let Q=new Uint8Array($),q=0;for(let Z=0;Z<this.chunks.length;Z++)Q.set(this.chunks[Z],q),q+=this.chunks[Z].length;return this.chunks=[],Q}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let $=this.finish(),Q=this.stack.pop();if(!Q)throw Error("invalid state, fork stack empty");return this.chunks=Q.chunks,this.buf=Q.buf,this.uint32($.byteLength),this.raw($)}tag($,Q){return this.uint32(($<<3|Q)>>>0)}raw($){if(this.buf.length)this.chunks.push(new Uint8Array(this.buf)),this.buf=[];return this.chunks.push($),this}uint32($){nz($);while($>127)this.buf.push($&127|128),$=$>>>7;return this.buf.push($),this}int32($){return Pz($),Cz($,this.buf),this}bool($){return this.buf.push($?1:0),this}bytes($){return this.uint32($.byteLength),this.raw($)}string($){let Q=this.encodeUtf8($);return this.uint32(Q.byteLength),this.raw(Q)}float($){f2($);let Q=new Uint8Array(4);return new DataView(Q.buffer).setFloat32(0,$,!0),this.raw(Q)}double($){let Q=new Uint8Array(8);return new DataView(Q.buffer).setFloat64(0,$,!0),this.raw(Q)}fixed32($){nz($);let Q=new Uint8Array(4);return new DataView(Q.buffer).setUint32(0,$,!0),this.raw(Q)}sfixed32($){Pz($);let Q=new Uint8Array(4);return new DataView(Q.buffer).setInt32(0,$,!0),this.raw(Q)}sint32($){return Pz($),$=($<<1^$>>31)>>>0,Cz($,this.buf),this}sfixed64($){let Q=new Uint8Array(8),q=new DataView(Q.buffer),Z=P0.enc($);return q.setInt32(0,Z.lo,!0),q.setInt32(4,Z.hi,!0),this.raw(Q)}fixed64($){let Q=new Uint8Array(8),q=new DataView(Q.buffer),Z=P0.uEnc($);return q.setInt32(0,Z.lo,!0),q.setInt32(4,Z.hi,!0),this.raw(Q)}int64($){let Q=P0.enc($);return MV(Q.lo,Q.hi,this.buf),this}sint64($){let Q=P0.enc($),q=Q.hi>>31,Z=Q.lo<<1^q,X=(Q.hi<<1|Q.lo>>>31)^q;return MV(Z,X,this.buf),this}uint64($){let Q=P0.uEnc($);return MV(Q.lo,Q.hi,this.buf),this}}class xz{constructor($,Q=Fz().decodeUtf8){this.decodeUtf8=Q,this.varint64=pz,this.uint32=jz,this.buf=$,this.len=$.length,this.pos=0,this.view=new DataView($.buffer,$.byteOffset,$.byteLength)}tag(){let $=this.pos,Q=this.uint32(),q=this.pos-$;if(q>5||q==5&&this.buf[this.pos-1]>15)throw Error("illegal tag: varint overflows uint32");let Z=Q>>>3,X=Q&7;if(Z<=0||X>5)throw Error("illegal tag: field no "+Z+" wire type "+X);return[Z,X]}skip($,Q){let q=this.pos;switch($){case n0.Varint:while(this.buf[this.pos++]&128);break;case n0.Bit64:this.pos+=4;case n0.Bit32:this.pos+=4;break;case n0.LengthDelimited:let Z=this.uint32();this.pos+=Z;break;case n0.StartGroup:for(;;){let[X,K]=this.tag();if(K===n0.EndGroup){if(Q!==void 0&&X!==Q)throw Error("invalid end group tag");break}this.skip(K,X)}break;default:throw Error("cant skip wire type "+$)}return this.assertBounds(),this.buf.subarray(q,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let $=this.uint32();return $>>>1^-($&1)}int64(){return P0.dec(...this.varint64())}uint64(){return P0.uDec(...this.varint64())}sint64(){let[$,Q]=this.varint64(),q=-($&1);return $=($>>>1|(Q&1)<<31)^q,Q=Q>>>1^q,P0.dec($,Q)}bool(){let[$,Q]=this.varint64();return $!==0||Q!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return P0.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return P0.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let $=this.uint32(),Q=this.pos;return this.pos+=$,this.assertBounds(),this.buf.subarray(Q,Q+$)}string($){return this.decodeUtf8(this.bytes(),$)}}function Pz($){if(typeof $=="string")$=Number($);else if(typeof $!="number")throw Error("invalid int32: "+typeof $);if(!Number.isInteger($)||$>y2||$<v2)throw Error("invalid int32: "+$)}function nz($){if(typeof $=="string")$=Number($);else if(typeof $!="number")throw Error("invalid uint32: "+typeof $);if(!Number.isInteger($)||$>T2||$<0)throw Error("invalid uint32: "+$)}function f2($){if(typeof $=="string"){let Q=$;if($=Number($),Number.isNaN($)&&Q!=="NaN")throw Error("invalid float32: "+Q)}else if(typeof $!="number")throw Error("invalid float32: "+typeof $);if(Number.isFinite($)&&($>S2||$<I2))throw Error("invalid float32: "+$)}import{Buffer as rz}from"node:buffer";var tz=32,Bz=2**tz,SV=7,WV=1<<SV,_2=WV-1,Nz="utf8",h2="�",l2=55296,bz=56319,oz=57343,p2=4,u2=Math.floor(Math.log2(Number.MAX_SAFE_INTEGER)/SV)*SV;function IV($){for(let Q=0;Q<$.length;Q++){let q=$.charCodeAt(Q);if(q<l2||q>oz)continue;if(q>bz)return Q;let Z=$.charCodeAt(Q+1);if(Number.isNaN(Z)||Z<=bz||Z>oz)return Q;Q++}return-1}class a$ extends RangeError{index;codeUnit;path;constructor($,Q,q){super(`unpaired surrogate U+${Q.toString(16).toUpperCase().padStart(p2,"0")} at index ${$} in ${q===void 0?"a protobuf string field":`protobuf field ${q}`}`);this.index=$;this.codeUnit=Q;this.path=q;this.name="UnpairedSurrogateError"}}var az=($,Q,q)=>({low:$>>>0,high:Q|0,unsigned:q}),iz=($,Q)=>{let q=(Q>>>0)*Bz+($>>>0);return q<=Number.MAX_SAFE_INTEGER?q:az($,Q,!0)},kz=($,Q)=>{let q=(Q|0)*Bz+($>>>0);return q>=Number.MIN_SAFE_INTEGER&&q<=Number.MAX_SAFE_INTEGER?q:az($,Q,!1)},GQ=($)=>{let Q=BigInt($.low>>>0);return($.unsigned?BigInt($.high>>>0):BigInt($.high|0))*BigInt(Bz)+Q},mz=($)=>typeof $==="number"&&Number.isInteger($)&&$>=-2147483648&&$<=4294967295,TV=($)=>typeof $==="object"&&$!==null&&typeof $.unsigned==="boolean"&&mz($.low)&&mz($.high),w2=($)=>typeof $==="string"?JSON.stringify($):typeof $==="number"||typeof $==="bigint"?String($):typeof $,HQ=($,Q)=>Error(`invalid ${$}: ${w2(Q)}`);function sz($,Q){let q=typeof $;if(q==="number"||q==="bigint")return $;if(q==="string"&&$.trim()!=="")return $;throw HQ(Q,$)}var j2=/^\s*[+-]?Infinity\s*$/,c2=/^\s*NaN\s*$/;function gz($,Q){if(TV($))return Number(GQ($));let q=sz($,Q);if(typeof q==="number")return q;let Z=Number(q);if(Number.isNaN(Z)){if(!c2.test(String(q)))throw HQ(Q,$)}else if(!Number.isFinite(Z)&&!j2.test(String(q)))throw HQ(Q,$);return Z}var d2=/^\s*([+-]?)(\d*)(?:\.(\d*))?(?:[eE]([+-]?\d+))?\s*$/,n2=40;function b2($){let Q=d2.exec($);if(!Q)return;let[,q,Z="",X="",K]=Q;if(Z===""&&X==="")return;let J=Z+X;if(/^0*$/.test(J))return 0n;let V=J.length-J.replace(/^0+/,"").length,C=J.slice(V),F=Z.length+(K?Number(K):0)-V;if(F<=0||F>n2)return;let A;if(F>=C.length)A=C+"0".repeat(F-C.length);else{if(!/^0*$/.test(C.slice(F)))return;A=C.slice(0,F)}let E=BigInt(A);return q==="-"?-E:E}function t$($,Q){if(TV($))return GQ($);let q=sz($,Q);if(typeof q==="bigint")return q;if(typeof q==="number"){if(!Number.isInteger(q))throw HQ(Q,$);return q}try{return BigInt(q)}catch{let Z=b2(q);if(Z===void 0)throw HQ(Q,$);return Z}}function zQ($,Q){let q=t$($,Q);return typeof q==="bigint"?Number(q):q}class z extends Lz{string($){if(!$.isWellFormed()){let Q=IV($);throw new a$(Q,$.charCodeAt(Q))}return super.string($)}uint32($){return super.uint32(typeof $==="number"?$:zQ($,"uint32"))}int32($){return super.int32(typeof $==="number"?$:zQ($,"int32"))}sint32($){return super.sint32(typeof $==="number"?$:zQ($,"sint32"))}fixed32($){return super.fixed32(typeof $==="number"?$:zQ($,"fixed32"))}sfixed32($){return super.sfixed32(typeof $==="number"?$:zQ($,"sfixed32"))}float($){return super.float(typeof $==="number"?$:gz($,"float"))}double($){return super.double(typeof $==="number"?$:gz($,"double"))}int64($){return super.int64(t$($,"int64"))}uint64($){return super.uint64(t$($,"uint64"))}sint64($){return super.sint64(t$($,"sint64"))}fixed64($){return super.fixed64(t$($,"fixed64"))}sfixed64($){return super.sfixed64(t$($,"sfixed64"))}}class Y extends xz{utf8Buffer;constructor($){super($);this.utf8Buffer=rz.from($.buffer,$.byteOffset,$.byteLength)}string($){if($)return super.string(!0);let Q=this.uint32(),q=this.pos;return this.pos+=Q,this.assertBounds(),this.utf8Buffer.toString(Nz,q,this.pos)}bool(){let $=this.buf[this.pos++];if(($&WV)===0)return this.assertBounds(),$!==0;this.pos--;let[Q,q]=this.varint64();return Q!==0||q!==0}positiveSafeVarint(){let $=this.pos,Q=0,q=1;for(let Z=0;Z<=u2;Z+=SV){let X=this.buf[this.pos++];if(Q+=(X&_2)*q,(X&WV)===0){if(this.assertBounds(),Q<=Number.MAX_SAFE_INTEGER)return Q;break}q*=WV}this.pos=$;return}uint64Value(){let $=this.positiveSafeVarint();if($!==void 0)return $;let[Q,q]=this.varint64();return iz(Q,q)}int64Value(){let $=this.positiveSafeVarint();if($!==void 0)return $;let[Q,q]=this.varint64();return kz(Q,q)}sint64Value(){let[$,Q]=this.varint64(),q=-($&1);return $=($>>>1|(Q&1)<<tz-1)^q,Q=Q>>>1^q,kz($,Q)}fixed64Value(){return iz(this.sfixed32(),this.sfixed32())}sfixed64Value(){return kz(this.sfixed32(),this.sfixed32())}}class UQ extends Y{invalidUtf8Fields=0;string($){if($)return super.string(!0);let Q=this.uint32(),q=this.pos;this.pos+=Q,this.assertBounds();let Z=this.utf8Buffer.toString(Nz,q,this.pos);if(Z.includes(h2)&&!this.decodedExactly(Z,q,this.pos))this.invalidUtf8Fields++;return Z}decodedExactly($,Q,q){let Z=rz.from($,Nz);return this.utf8Buffer.compare(Z,0,Z.length,Q,q)===0}}var o2="whatsapp",sN;((X)=>{X[X.E2EE=0]="E2EE";X[X.HOSTED=1]="HOSTED";X[X.NON_E2EE=2]="NON_E2EE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sN||={});var eN;((Z)=>{Z[Z.AI_RICH_RESPONSE_TYPE_UNKNOWN=0]="AI_RICH_RESPONSE_TYPE_UNKNOWN";Z[Z.AI_RICH_RESPONSE_TYPE_STANDARD=1]="AI_RICH_RESPONSE_TYPE_STANDARD";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eN||={});var $B;((E)=>{E[E.AI_RICH_RESPONSE_UNKNOWN=0]="AI_RICH_RESPONSE_UNKNOWN";E[E.AI_RICH_RESPONSE_GRID_IMAGE=1]="AI_RICH_RESPONSE_GRID_IMAGE";E[E.AI_RICH_RESPONSE_TEXT=2]="AI_RICH_RESPONSE_TEXT";E[E.AI_RICH_RESPONSE_INLINE_IMAGE=3]="AI_RICH_RESPONSE_INLINE_IMAGE";E[E.AI_RICH_RESPONSE_TABLE=4]="AI_RICH_RESPONSE_TABLE";E[E.AI_RICH_RESPONSE_CODE=5]="AI_RICH_RESPONSE_CODE";E[E.AI_RICH_RESPONSE_DYNAMIC=6]="AI_RICH_RESPONSE_DYNAMIC";E[E.AI_RICH_RESPONSE_MAP=7]="AI_RICH_RESPONSE_MAP";E[E.AI_RICH_RESPONSE_LATEX=8]="AI_RICH_RESPONSE_LATEX";E[E.AI_RICH_RESPONSE_CONTENT_ITEMS=9]="AI_RICH_RESPONSE_CONTENT_ITEMS";E[E.UNRECOGNIZED=-1]="UNRECOGNIZED"})($B||={});var QB;((K)=>{K[K.UNSPECIFIED=0]="UNSPECIFIED";K[K.THINK_HARD=1]="THINK_HARD";K[K.IMAGE_GEN=2]="IMAGE_GEN";K[K.VIDEO_GEN=3]="VIDEO_GEN";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QB||={});var ZB;((S)=>{S[S.UNDEFINED_ENTRY_POINT=0]="UNDEFINED_ENTRY_POINT";S[S.FAVICON=1]="FAVICON";S[S.CHATLIST=2]="CHATLIST";S[S.AISEARCH_NULL_STATE_PAPER_PLANE=3]="AISEARCH_NULL_STATE_PAPER_PLANE";S[S.AISEARCH_NULL_STATE_SUGGESTION=4]="AISEARCH_NULL_STATE_SUGGESTION";S[S.AISEARCH_TYPE_AHEAD_SUGGESTION=5]="AISEARCH_TYPE_AHEAD_SUGGESTION";S[S.AISEARCH_TYPE_AHEAD_PAPER_PLANE=6]="AISEARCH_TYPE_AHEAD_PAPER_PLANE";S[S.AISEARCH_TYPE_AHEAD_RESULT_CHATLIST=7]="AISEARCH_TYPE_AHEAD_RESULT_CHATLIST";S[S.AISEARCH_TYPE_AHEAD_RESULT_MESSAGES=8]="AISEARCH_TYPE_AHEAD_RESULT_MESSAGES";S[S.AIVOICE_SEARCH_BAR=9]="AIVOICE_SEARCH_BAR";S[S.AIVOICE_FAVICON=10]="AIVOICE_FAVICON";S[S.AISTUDIO=11]="AISTUDIO";S[S.DEEPLINK=12]="DEEPLINK";S[S.NOTIFICATION=13]="NOTIFICATION";S[S.PROFILE_MESSAGE_BUTTON=14]="PROFILE_MESSAGE_BUTTON";S[S.FORWARD=15]="FORWARD";S[S.APP_SHORTCUT=16]="APP_SHORTCUT";S[S.FF_FAMILY=17]="FF_FAMILY";S[S.AI_TAB=18]="AI_TAB";S[S.AI_HOME=19]="AI_HOME";S[S.AI_DEEPLINK_IMMERSIVE=20]="AI_DEEPLINK_IMMERSIVE";S[S.AI_DEEPLINK=21]="AI_DEEPLINK";S[S.META_AI_CHAT_SHORTCUT_AI_STUDIO=22]="META_AI_CHAT_SHORTCUT_AI_STUDIO";S[S.UGC_CHAT_SHORTCUT_AI_STUDIO=23]="UGC_CHAT_SHORTCUT_AI_STUDIO";S[S.NEW_CHAT_AI_STUDIO=24]="NEW_CHAT_AI_STUDIO";S[S.AIVOICE_FAVICON_CALL_HISTORY=25]="AIVOICE_FAVICON_CALL_HISTORY";S[S.ASK_META_AI_CONTEXT_MENU=26]="ASK_META_AI_CONTEXT_MENU";S[S.ASK_META_AI_CONTEXT_MENU_1ON1=27]="ASK_META_AI_CONTEXT_MENU_1ON1";S[S.ASK_META_AI_CONTEXT_MENU_GROUP=28]="ASK_META_AI_CONTEXT_MENU_GROUP";S[S.INVOKE_META_AI_1ON1=29]="INVOKE_META_AI_1ON1";S[S.INVOKE_META_AI_GROUP=30]="INVOKE_META_AI_GROUP";S[S.META_AI_FORWARD=31]="META_AI_FORWARD";S[S.NEW_CHAT_AI_CONTACT=32]="NEW_CHAT_AI_CONTACT";S[S.MESSAGE_QUICK_ACTION_1_ON_1_CHAT=33]="MESSAGE_QUICK_ACTION_1_ON_1_CHAT";S[S.MESSAGE_QUICK_ACTION_GROUP_CHAT=34]="MESSAGE_QUICK_ACTION_GROUP_CHAT";S[S.ATTACHMENT_TRAY_1_ON_1_CHAT=35]="ATTACHMENT_TRAY_1_ON_1_CHAT";S[S.ATTACHMENT_TRAY_GROUP_CHAT=36]="ATTACHMENT_TRAY_GROUP_CHAT";S[S.ASK_META_AI_MEDIA_VIEWER_1ON1=37]="ASK_META_AI_MEDIA_VIEWER_1ON1";S[S.ASK_META_AI_MEDIA_VIEWER_GROUP=38]="ASK_META_AI_MEDIA_VIEWER_GROUP";S[S.MEDIA_PICKER_1_ON_1_CHAT=39]="MEDIA_PICKER_1_ON_1_CHAT";S[S.MEDIA_PICKER_GROUP_CHAT=40]="MEDIA_PICKER_GROUP_CHAT";S[S.ASK_META_AI_NO_SEARCH_RESULTS=41]="ASK_META_AI_NO_SEARCH_RESULTS";S[S.META_AI_SETTINGS=45]="META_AI_SETTINGS";S[S.WEB_INTRO_PANEL=46]="WEB_INTRO_PANEL";S[S.WEB_NAVIGATION_BAR=47]="WEB_NAVIGATION_BAR";S[S.GROUP_MEMBER=54]="GROUP_MEMBER";S[S.CHATLIST_SEARCH=55]="CHATLIST_SEARCH";S[S.NEW_CHAT_LIST=56]="NEW_CHAT_LIST";S[S.CONTACTS_TAB=57]="CONTACTS_TAB";S[S.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ZB||={});var JB;((J)=>{J[J.AI_TAB_THREAD=1]="AI_TAB_THREAD";J[J.AI_HOME_THREAD=2]="AI_HOME_THREAD";J[J.AI_DEEPLINK_IMMERSIVE_THREAD=3]="AI_DEEPLINK_IMMERSIVE_THREAD";J[J.AI_DEEPLINK_THREAD=4]="AI_DEEPLINK_THREAD";J[J.ASK_META_AI_CONTEXT_MENU_THREAD=5]="ASK_META_AI_CONTEXT_MENU_THREAD";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JB||={});var KB;((F)=>{F[F.NONE=0]="NONE";F[F.NULL_STATE=1]="NULL_STATE";F[F.TYPEAHEAD=2]="TYPEAHEAD";F[F.USER_INPUT=3]="USER_INPUT";F[F.EMU_FLASH=4]="EMU_FLASH";F[F.EMU_FLASH_FOLLOWUP=5]="EMU_FLASH_FOLLOWUP";F[F.VOICE=6]="VOICE";F[F.AI_HOME_SESSION=7]="AI_HOME_SESSION";F[F.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KB||={});var qB;((K)=>{K[K.EVERYONE=1]="EVERYONE";K[K.SILENT=2]="SILENT";K[K.AI=3]="AI";K[K.AI_IMAGINE=4]="AI_IMAGINE";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qB||={});var XB;((X)=>{X[X.SMALL=1]="SMALL";X[X.MEDIUM=2]="MEDIUM";X[X.LARGE=3]="LARGE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XB||={});var YB;((V)=>{V[V.SANS_SERIF=0]="SANS_SERIF";V[V.SERIF=1]="SERIF";V[V.NORICAN_REGULAR=2]="NORICAN_REGULAR";V[V.BRYNDAN_WRITE=3]="BRYNDAN_WRITE";V[V.BEBASNEUE_REGULAR=4]="BEBASNEUE_REGULAR";V[V.OSWALD_HEAVY=5]="OSWALD_HEAVY";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YB||={});var VB;((V)=>{V[V.COLLECTION_NAME_UNKNOWN=0]="COLLECTION_NAME_UNKNOWN";V[V.REGULAR=1]="REGULAR";V[V.REGULAR_LOW=2]="REGULAR_LOW";V[V.REGULAR_HIGH=3]="REGULAR_HIGH";V[V.CRITICAL_BLOCK=4]="CRITICAL_BLOCK";V[V.CRITICAL_UNBLOCK_LOW=5]="CRITICAL_UNBLOCK_LOW";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VB||={});var zB;((q)=>{q[q.OPEN_NATIVE=11]="OPEN_NATIVE";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zB||={});var HB;((x)=>{x[x.UNSUPPORTED=-1]="UNSUPPORTED";x[x.IG_STORY_PHOTO_MENTION=4]="IG_STORY_PHOTO_MENTION";x[x.IG_SINGLE_IMAGE_POST_SHARE=9]="IG_SINGLE_IMAGE_POST_SHARE";x[x.IG_MULTIPOST_SHARE=10]="IG_MULTIPOST_SHARE";x[x.IG_SINGLE_VIDEO_POST_SHARE=11]="IG_SINGLE_VIDEO_POST_SHARE";x[x.IG_STORY_PHOTO_SHARE=12]="IG_STORY_PHOTO_SHARE";x[x.IG_STORY_VIDEO_SHARE=13]="IG_STORY_VIDEO_SHARE";x[x.IG_CLIPS_SHARE=14]="IG_CLIPS_SHARE";x[x.IG_IGTV_SHARE=15]="IG_IGTV_SHARE";x[x.IG_SHOP_SHARE=16]="IG_SHOP_SHARE";x[x.IG_PROFILE_SHARE=19]="IG_PROFILE_SHARE";x[x.IG_STORY_PHOTO_HIGHLIGHT_SHARE=20]="IG_STORY_PHOTO_HIGHLIGHT_SHARE";x[x.IG_STORY_VIDEO_HIGHLIGHT_SHARE=21]="IG_STORY_VIDEO_HIGHLIGHT_SHARE";x[x.IG_STORY_REPLY=22]="IG_STORY_REPLY";x[x.IG_STORY_REACTION=23]="IG_STORY_REACTION";x[x.IG_STORY_VIDEO_MENTION=24]="IG_STORY_VIDEO_MENTION";x[x.IG_STORY_HIGHLIGHT_REPLY=25]="IG_STORY_HIGHLIGHT_REPLY";x[x.IG_STORY_HIGHLIGHT_REACTION=26]="IG_STORY_HIGHLIGHT_REACTION";x[x.IG_EXTERNAL_LINK=27]="IG_EXTERNAL_LINK";x[x.IG_RECEIVER_FETCH=28]="IG_RECEIVER_FETCH";x[x.FB_FEED_SHARE=1000]="FB_FEED_SHARE";x[x.FB_STORY_REPLY=1001]="FB_STORY_REPLY";x[x.FB_STORY_SHARE=1002]="FB_STORY_SHARE";x[x.FB_STORY_MENTION=1003]="FB_STORY_MENTION";x[x.FB_FEED_VIDEO_SHARE=1004]="FB_FEED_VIDEO_SHARE";x[x.FB_GAMING_CUSTOM_UPDATE=1005]="FB_GAMING_CUSTOM_UPDATE";x[x.FB_PRODUCER_STORY_REPLY=1006]="FB_PRODUCER_STORY_REPLY";x[x.FB_EVENT=1007]="FB_EVENT";x[x.FB_FEED_POST_PRIVATE_REPLY=1008]="FB_FEED_POST_PRIVATE_REPLY";x[x.FB_SHORT=1009]="FB_SHORT";x[x.FB_COMMENT_MENTION_SHARE=1010]="FB_COMMENT_MENTION_SHARE";x[x.FB_POST_MENTION=1011]="FB_POST_MENTION";x[x.FB_PROFILE_DIRECTORY_ITEM=1013]="FB_PROFILE_DIRECTORY_ITEM";x[x.FB_FEED_POST_REACTION_REPLY=1014]="FB_FEED_POST_REACTION_REPLY";x[x.FB_QUICKSNAP_REPLY=1015]="FB_QUICKSNAP_REPLY";x[x.MSG_EXTERNAL_LINK_SHARE=2000]="MSG_EXTERNAL_LINK_SHARE";x[x.MSG_P2P_PAYMENT=2001]="MSG_P2P_PAYMENT";x[x.MSG_LOCATION_SHARING=2002]="MSG_LOCATION_SHARING";x[x.MSG_LOCATION_SHARING_V2=2003]="MSG_LOCATION_SHARING_V2";x[x.MSG_HIGHLIGHTS_TAB_FRIEND_UPDATES_REPLY=2004]="MSG_HIGHLIGHTS_TAB_FRIEND_UPDATES_REPLY";x[x.MSG_HIGHLIGHTS_TAB_LOCAL_EVENT_REPLY=2005]="MSG_HIGHLIGHTS_TAB_LOCAL_EVENT_REPLY";x[x.MSG_RECEIVER_FETCH=2006]="MSG_RECEIVER_FETCH";x[x.MSG_IG_MEDIA_SHARE=2007]="MSG_IG_MEDIA_SHARE";x[x.MSG_GEN_AI_SEARCH_PLUGIN_RESPONSE=2008]="MSG_GEN_AI_SEARCH_PLUGIN_RESPONSE";x[x.MSG_REELS_LIST=2009]="MSG_REELS_LIST";x[x.MSG_CONTACT=2010]="MSG_CONTACT";x[x.MSG_THREADS_POST_SHARE=2011]="MSG_THREADS_POST_SHARE";x[x.MSG_FILE=2012]="MSG_FILE";x[x.MSG_AVATAR_DETAILS=2013]="MSG_AVATAR_DETAILS";x[x.MSG_AI_CONTACT=2014]="MSG_AI_CONTACT";x[x.MSG_MEMORIES_SHARE=2015]="MSG_MEMORIES_SHARE";x[x.MSG_SHARED_ALBUM_REPLY=2016]="MSG_SHARED_ALBUM_REPLY";x[x.MSG_SHARED_ALBUM=2017]="MSG_SHARED_ALBUM";x[x.MSG_OCCAMADILLO_XMA=2018]="MSG_OCCAMADILLO_XMA";x[x.MSG_GEN_AI_SUBSCRIPTION=2021]="MSG_GEN_AI_SUBSCRIPTION";x[x.MSG_GEN_AI_REMINDER=2022]="MSG_GEN_AI_REMINDER";x[x.MSG_GEN_AI_MEMU_ONBOARDING_RESPONSE=2023]="MSG_GEN_AI_MEMU_ONBOARDING_RESPONSE";x[x.MSG_NOTE_REPLY=2024]="MSG_NOTE_REPLY";x[x.MSG_NOTE_MENTION=2025]="MSG_NOTE_MENTION";x[x.GEN_AI_ENTITY=2026]="GEN_AI_ENTITY";x[x.MSG_OPG_P2P_PAYMENT=2027]="MSG_OPG_P2P_PAYMENT";x[x.GEN_AI_RICH_RESPONSE=2028]="GEN_AI_RICH_RESPONSE";x[x.MSG_MUSIC_STICKER=2029]="MSG_MUSIC_STICKER";x[x.MSG_PHONE_NUMBER=2030]="MSG_PHONE_NUMBER";x[x.AI_ACTIVITY_SHARE=2031]="AI_ACTIVITY_SHARE";x[x.MSG_PRIVATE_XMA=2032]="MSG_PRIVATE_XMA";x[x.MSG_SOCIAL_CUE_MEMORIES=2033]="MSG_SOCIAL_CUE_MEMORIES";x[x.MSG_MANUS_GROWTH_REFERRAL=2060]="MSG_MANUS_GROWTH_REFERRAL";x[x.MSG_MOMENT_LINK=2061]="MSG_MOMENT_LINK";x[x.MSG_HORIZON_WEEL=2062]="MSG_HORIZON_WEEL";x[x.MSG_MOMENT_ADDED=2063]="MSG_MOMENT_ADDED";x[x.RTC_AUDIO_CALL=3000]="RTC_AUDIO_CALL";x[x.RTC_VIDEO_CALL=3001]="RTC_VIDEO_CALL";x[x.RTC_MISSED_AUDIO_CALL=3002]="RTC_MISSED_AUDIO_CALL";x[x.RTC_MISSED_VIDEO_CALL=3003]="RTC_MISSED_VIDEO_CALL";x[x.RTC_GROUP_AUDIO_CALL=3004]="RTC_GROUP_AUDIO_CALL";x[x.RTC_GROUP_VIDEO_CALL=3005]="RTC_GROUP_VIDEO_CALL";x[x.RTC_MISSED_GROUP_AUDIO_CALL=3006]="RTC_MISSED_GROUP_AUDIO_CALL";x[x.RTC_MISSED_GROUP_VIDEO_CALL=3007]="RTC_MISSED_GROUP_VIDEO_CALL";x[x.RTC_ONGOING_AUDIO_CALL=3008]="RTC_ONGOING_AUDIO_CALL";x[x.RTC_ONGOING_VIDEO_CALL=3009]="RTC_ONGOING_VIDEO_CALL";x[x.MSG_RECEIVER_FETCH_FALLBACK=3025]="MSG_RECEIVER_FETCH_FALLBACK";x[x.DATACLASS_SENDER_COPY=4000]="DATACLASS_SENDER_COPY"})(HB||={});var GB;((X)=>{X[X.SENDER_COPY=0]="SENDER_COPY";X[X.SERVER=1]="SERVER";X[X.SIGNED_CLIENT=2]="SIGNED_CLIENT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(GB||={});var UB;((V)=>{V[V.SINGLE=0]="SINGLE";V[V.HSCROLL=1]="HSCROLL";V[V.PORTRAIT=3]="PORTRAIT";V[V.STANDARD_DXMA=12]="STANDARD_DXMA";V[V.LIST_DXMA=15]="LIST_DXMA";V[V.GRID=16]="GRID";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(UB||={});var CB;((X)=>{X[X.PLACEHOLDER=0]="PLACEHOLDER";X[X.NO_PLACEHOLDER=1]="NO_PLACEHOLDER";X[X.IGNORE=2]="IGNORE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CB||={});var DB;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.KEEP_FOR_ALL=1]="KEEP_FOR_ALL";X[X.UNDO_KEEP_FOR_ALL=2]="UNDO_KEEP_FOR_ALL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(DB||={});var FB;((q)=>{q[q.PROFILE=0]="PROFILE";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FB||={});var PB;((X)=>{X[X.MEDIA_KEY_DOMAIN_UNKNOWN=0]="MEDIA_KEY_DOMAIN_UNKNOWN";X[X.MEDIA_KEY_DOMAIN_E2EE=1]="MEDIA_KEY_DOMAIN_E2EE";X[X.MEDIA_KEY_DOMAIN_NON_E2EE=2]="MEDIA_KEY_DOMAIN_NON_E2EE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(PB||={});var LB;((X)=>{X[X.DEFAULT=0]="DEFAULT";X[X.OFF=1]="OFF";X[X.ON=2]="ON";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(LB||={});var xB;((L)=>{L[L.STAR_ACTION=2]="STAR_ACTION";L[L.CONTACT_ACTION=3]="CONTACT_ACTION";L[L.MUTE_ACTION=4]="MUTE_ACTION";L[L.PIN_ACTION=5]="PIN_ACTION";L[L.SECURITY_NOTIFICATION_SETTING=6]="SECURITY_NOTIFICATION_SETTING";L[L.PUSH_NAME_SETTING=7]="PUSH_NAME_SETTING";L[L.QUICK_REPLY_ACTION=8]="QUICK_REPLY_ACTION";L[L.RECENT_EMOJI_WEIGHTS_ACTION=11]="RECENT_EMOJI_WEIGHTS_ACTION";L[L.LABEL_MESSAGE_ACTION=13]="LABEL_MESSAGE_ACTION";L[L.LABEL_EDIT_ACTION=14]="LABEL_EDIT_ACTION";L[L.LABEL_ASSOCIATION_ACTION=15]="LABEL_ASSOCIATION_ACTION";L[L.LOCALE_SETTING=16]="LOCALE_SETTING";L[L.ARCHIVE_CHAT_ACTION=17]="ARCHIVE_CHAT_ACTION";L[L.DELETE_MESSAGE_FOR_ME_ACTION=18]="DELETE_MESSAGE_FOR_ME_ACTION";L[L.KEY_EXPIRATION=19]="KEY_EXPIRATION";L[L.MARK_CHAT_AS_READ_ACTION=20]="MARK_CHAT_AS_READ_ACTION";L[L.CLEAR_CHAT_ACTION=21]="CLEAR_CHAT_ACTION";L[L.DELETE_CHAT_ACTION=22]="DELETE_CHAT_ACTION";L[L.UNARCHIVE_CHATS_SETTING=23]="UNARCHIVE_CHATS_SETTING";L[L.PRIMARY_FEATURE=24]="PRIMARY_FEATURE";L[L.ANDROID_UNSUPPORTED_ACTIONS=26]="ANDROID_UNSUPPORTED_ACTIONS";L[L.AGENT_ACTION=27]="AGENT_ACTION";L[L.SUBSCRIPTION_ACTION=28]="SUBSCRIPTION_ACTION";L[L.USER_STATUS_MUTE_ACTION=29]="USER_STATUS_MUTE_ACTION";L[L.TIME_FORMAT_ACTION=30]="TIME_FORMAT_ACTION";L[L.NUX_ACTION=31]="NUX_ACTION";L[L.PRIMARY_VERSION_ACTION=32]="PRIMARY_VERSION_ACTION";L[L.STICKER_ACTION=33]="STICKER_ACTION";L[L.REMOVE_RECENT_STICKER_ACTION=34]="REMOVE_RECENT_STICKER_ACTION";L[L.CHAT_ASSIGNMENT=35]="CHAT_ASSIGNMENT";L[L.CHAT_ASSIGNMENT_OPENED_STATUS=36]="CHAT_ASSIGNMENT_OPENED_STATUS";L[L.PN_FOR_LID_CHAT_ACTION=37]="PN_FOR_LID_CHAT_ACTION";L[L.MARKETING_MESSAGE_ACTION=38]="MARKETING_MESSAGE_ACTION";L[L.MARKETING_MESSAGE_BROADCAST_ACTION=39]="MARKETING_MESSAGE_BROADCAST_ACTION";L[L.EXTERNAL_WEB_BETA_ACTION=40]="EXTERNAL_WEB_BETA_ACTION";L[L.PRIVACY_SETTING_RELAY_ALL_CALLS=41]="PRIVACY_SETTING_RELAY_ALL_CALLS";L[L.CALL_LOG_ACTION=42]="CALL_LOG_ACTION";L[L.UGC_BOT=43]="UGC_BOT";L[L.STATUS_PRIVACY=44]="STATUS_PRIVACY";L[L.BOT_WELCOME_REQUEST_ACTION=45]="BOT_WELCOME_REQUEST_ACTION";L[L.DELETE_INDIVIDUAL_CALL_LOG=46]="DELETE_INDIVIDUAL_CALL_LOG";L[L.LABEL_REORDERING_ACTION=47]="LABEL_REORDERING_ACTION";L[L.PAYMENT_INFO_ACTION=48]="PAYMENT_INFO_ACTION";L[L.CUSTOM_PAYMENT_METHODS_ACTION=49]="CUSTOM_PAYMENT_METHODS_ACTION";L[L.LOCK_CHAT_ACTION=50]="LOCK_CHAT_ACTION";L[L.CHAT_LOCK_SETTINGS=51]="CHAT_LOCK_SETTINGS";L[L.WAMO_USER_IDENTIFIER_ACTION=52]="WAMO_USER_IDENTIFIER_ACTION";L[L.PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION=53]="PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION";L[L.DEVICE_CAPABILITIES=54]="DEVICE_CAPABILITIES";L[L.NOTE_EDIT_ACTION=55]="NOTE_EDIT_ACTION";L[L.FAVORITES_ACTION=56]="FAVORITES_ACTION";L[L.MERCHANT_PAYMENT_PARTNER_ACTION=57]="MERCHANT_PAYMENT_PARTNER_ACTION";L[L.WAFFLE_ACCOUNT_LINK_STATE_ACTION=58]="WAFFLE_ACCOUNT_LINK_STATE_ACTION";L[L.USERNAME_CHAT_START_MODE=59]="USERNAME_CHAT_START_MODE";L[L.NOTIFICATION_ACTIVITY_SETTING_ACTION=60]="NOTIFICATION_ACTIVITY_SETTING_ACTION";L[L.LID_CONTACT_ACTION=61]="LID_CONTACT_ACTION";L[L.CTWA_PER_CUSTOMER_DATA_SHARING_ACTION=62]="CTWA_PER_CUSTOMER_DATA_SHARING_ACTION";L[L.PAYMENT_TOS_ACTION=63]="PAYMENT_TOS_ACTION";L[L.PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION=64]="PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION";L[L.BUSINESS_BROADCAST_ASSOCIATION_ACTION=65]="BUSINESS_BROADCAST_ASSOCIATION_ACTION";L[L.DETECTED_OUTCOMES_STATUS_ACTION=66]="DETECTED_OUTCOMES_STATUS_ACTION";L[L.MAIBA_AI_FEATURES_CONTROL_ACTION=68]="MAIBA_AI_FEATURES_CONTROL_ACTION";L[L.BUSINESS_BROADCAST_LIST_ACTION=69]="BUSINESS_BROADCAST_LIST_ACTION";L[L.MUSIC_USER_ID_ACTION=70]="MUSIC_USER_ID_ACTION";L[L.STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION=71]="STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION";L[L.AVATAR_UPDATED_ACTION=72]="AVATAR_UPDATED_ACTION";L[L.GALAXY_FLOW_ACTION=73]="GALAXY_FLOW_ACTION";L[L.PRIVATE_PROCESSING_SETTING_ACTION=74]="PRIVATE_PROCESSING_SETTING_ACTION";L[L.NEWSLETTER_SAVED_INTERESTS_ACTION=75]="NEWSLETTER_SAVED_INTERESTS_ACTION";L[L.AI_THREAD_RENAME_ACTION=76]="AI_THREAD_RENAME_ACTION";L[L.INTERACTIVE_MESSAGE_ACTION=77]="INTERACTIVE_MESSAGE_ACTION";L[L.SETTINGS_SYNC_ACTION=78]="SETTINGS_SYNC_ACTION";L[L.OUT_CONTACT_ACTION=79]="OUT_CONTACT_ACTION";L[L.NCT_SALT_SYNC_ACTION=80]="NCT_SALT_SYNC_ACTION";L[L.BUSINESS_BROADCAST_CAMPAIGN_ACTION=81]="BUSINESS_BROADCAST_CAMPAIGN_ACTION";L[L.BUSINESS_BROADCAST_INSIGHTS_ACTION=82]="BUSINESS_BROADCAST_INSIGHTS_ACTION";L[L.CUSTOMER_DATA_ACTION=83]="CUSTOMER_DATA_ACTION";L[L.SUBSCRIPTIONS_SYNC_V2_ACTION=84]="SUBSCRIPTIONS_SYNC_V2_ACTION";L[L.THREAD_PIN_ACTION=85]="THREAD_PIN_ACTION";L[L.AUTO_ORGANIZE_BUSINESS_CHAT_SETTING=86]="AUTO_ORGANIZE_BUSINESS_CHAT_SETTING";L[L.BIZ_AI_SETTINGS_NUDGE_ACTION=87]="BIZ_AI_SETTINGS_NUDGE_ACTION";L[L.COEX_V2_VERSION_ACTION=88]="COEX_V2_VERSION_ACTION";L[L.WASA_ROOT_SECRET_ACTION=89]="WASA_ROOT_SECRET_ACTION";L[L.BUBBLE_LOCK_MESSAGE_ACTION=90]="BUBBLE_LOCK_MESSAGE_ACTION";L[L.LABEL_SUBLIST_ACTION=91]="LABEL_SUBLIST_ACTION";L[L.DEVICE_CAPABILITIES_V2=92]="DEVICE_CAPABILITIES_V2";L[L.CTWA_MESSAGE_RECEIVED_ACTION=93]="CTWA_MESSAGE_RECEIVED_ACTION";L[L.SHARE_OWN_PN=10001]="SHARE_OWN_PN";L[L.BUSINESS_BROADCAST_ACTION=10002]="BUSINESS_BROADCAST_ACTION";L[L.AI_THREAD_DELETE_ACTION=10003]="AI_THREAD_DELETE_ACTION";L[L.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xB||={});var kB;((X)=>{X[X.E2EE_MSG=1]="E2EE_MSG";X[X.NE2EE_SELF=2]="NE2EE_SELF";X[X.NE2EE_OTHER=3]="NE2EE_OTHER";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kB||={});var NB;((Z)=>{Z[Z.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";Z[Z.NY_AI_SAFETY_DISCLAIMER=1]="NY_AI_SAFETY_DISCLAIMER";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(NB||={});var BB;((Z)=>{Z[Z.WEBVIEW=0]="WEBVIEW";Z[Z.SYSTEM=1]="SYSTEM";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(BB||={});var RB;((V)=>{V[V.PROMPT=0]="PROMPT";V[V.CREATE_IMAGE=1]="CREATE_IMAGE";V[V.ANIMATE_PHOTO=2]="ANIMATE_PHOTO";V[V.ANALYZE_FILE=3]="ANALYZE_FILE";V[V.COLLABORATE=4]="COLLABORATE";V[V.OPEN_GREETING_CARD=5]="OPEN_GREETING_CARD";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(RB||={});var OB;((V)=>{V[V.AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT=0]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT";V[V.AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD=1]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD";V[V.AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD=2]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD";V[V.AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING=3]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING";V[V.AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER=4]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER";V[V.AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT=5]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(OB||={});var AB;((Z)=>{Z[Z.DEFAULT=0]="DEFAULT";Z[Z.CAROUSEL=1]="CAROUSEL";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(AB||={});var EB;((X)=>{X[X.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN=0]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN";X[X.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE=1]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE";X[X.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF=2]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(EB||={});var MB;((X)=>{X[X.AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED=0]="AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED";X[X.AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED=1]="AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED";X[X.AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED=2]="AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MB||={});var WB;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.DEFAULT=1]="DEFAULT";K[K.INCOGNITO=2]="INCOGNITO";K[K.SIDE_CHAT=3]="SIDE_CHAT";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WB||={});var SB;((q)=>{q[q.ENTERPRISE=0]="ENTERPRISE";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(SB||={});var IB;((Z)=>{Z[Z.ON_PREMISE=0]="ON_PREMISE";Z[Z.FACEBOOK=1]="FACEBOOK";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IB||={});var TB;((Z)=>{Z[Z.SELF=0]="SELF";Z[Z.BSP=1]="BSP";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TB||={});var yB;((Z)=>{Z[Z.ON_PREMISE=0]="ON_PREMISE";Z[Z.FACEBOOK=1]="FACEBOOK";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yB||={});var vB;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.LOW=1]="LOW";X[X.HIGH=2]="HIGH";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vB||={});var fB;((Z)=>{Z[Z.O18_BINARY=0]="O18_BINARY";Z[Z.WAFFLE=1]="WAFFLE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fB||={});var _B;((R)=>{R[R.UNKNOWN=0]="UNKNOWN";R[R.PROGRESS_INDICATOR=1]="PROGRESS_INDICATOR";R[R.RICH_RESPONSE_HEADING=2]="RICH_RESPONSE_HEADING";R[R.RICH_RESPONSE_NESTED_LIST=3]="RICH_RESPONSE_NESTED_LIST";R[R.AI_MEMORY=4]="AI_MEMORY";R[R.RICH_RESPONSE_THREAD_SURFING=5]="RICH_RESPONSE_THREAD_SURFING";R[R.RICH_RESPONSE_TABLE=6]="RICH_RESPONSE_TABLE";R[R.RICH_RESPONSE_CODE=7]="RICH_RESPONSE_CODE";R[R.RICH_RESPONSE_STRUCTURED_RESPONSE=8]="RICH_RESPONSE_STRUCTURED_RESPONSE";R[R.RICH_RESPONSE_INLINE_IMAGE=9]="RICH_RESPONSE_INLINE_IMAGE";R[R.WA_IG_1P_PLUGIN_RANKING_CONTROL=10]="WA_IG_1P_PLUGIN_RANKING_CONTROL";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_1=11]="WA_IG_1P_PLUGIN_RANKING_UPDATE_1";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_2=12]="WA_IG_1P_PLUGIN_RANKING_UPDATE_2";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_3=13]="WA_IG_1P_PLUGIN_RANKING_UPDATE_3";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_4=14]="WA_IG_1P_PLUGIN_RANKING_UPDATE_4";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_5=15]="WA_IG_1P_PLUGIN_RANKING_UPDATE_5";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_6=16]="WA_IG_1P_PLUGIN_RANKING_UPDATE_6";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_7=17]="WA_IG_1P_PLUGIN_RANKING_UPDATE_7";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_8=18]="WA_IG_1P_PLUGIN_RANKING_UPDATE_8";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_9=19]="WA_IG_1P_PLUGIN_RANKING_UPDATE_9";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_10=20]="WA_IG_1P_PLUGIN_RANKING_UPDATE_10";R[R.RICH_RESPONSE_SUB_HEADING=21]="RICH_RESPONSE_SUB_HEADING";R[R.RICH_RESPONSE_GRID_IMAGE=22]="RICH_RESPONSE_GRID_IMAGE";R[R.AI_STUDIO_UGC_MEMORY=23]="AI_STUDIO_UGC_MEMORY";R[R.RICH_RESPONSE_LATEX=24]="RICH_RESPONSE_LATEX";R[R.RICH_RESPONSE_MAPS=25]="RICH_RESPONSE_MAPS";R[R.RICH_RESPONSE_INLINE_REELS=26]="RICH_RESPONSE_INLINE_REELS";R[R.AGENTIC_PLANNING=27]="AGENTIC_PLANNING";R[R.ACCOUNT_LINKING=28]="ACCOUNT_LINKING";R[R.STREAMING_DISAGGREGATION=29]="STREAMING_DISAGGREGATION";R[R.RICH_RESPONSE_GRID_IMAGE_3P=30]="RICH_RESPONSE_GRID_IMAGE_3P";R[R.RICH_RESPONSE_LATEX_INLINE=31]="RICH_RESPONSE_LATEX_INLINE";R[R.QUERY_PLAN=32]="QUERY_PLAN";R[R.PROACTIVE_MESSAGE=33]="PROACTIVE_MESSAGE";R[R.RICH_RESPONSE_UNIFIED_RESPONSE=34]="RICH_RESPONSE_UNIFIED_RESPONSE";R[R.PROMOTION_MESSAGE=35]="PROMOTION_MESSAGE";R[R.SIMPLIFIED_PROFILE_PAGE=36]="SIMPLIFIED_PROFILE_PAGE";R[R.RICH_RESPONSE_SOURCES_IN_MESSAGE=37]="RICH_RESPONSE_SOURCES_IN_MESSAGE";R[R.RICH_RESPONSE_SIDE_BY_SIDE_SURVEY=38]="RICH_RESPONSE_SIDE_BY_SIDE_SURVEY";R[R.RICH_RESPONSE_UNIFIED_TEXT_COMPONENT=39]="RICH_RESPONSE_UNIFIED_TEXT_COMPONENT";R[R.AI_SHARED_MEMORY=40]="AI_SHARED_MEMORY";R[R.RICH_RESPONSE_UNIFIED_SOURCES=41]="RICH_RESPONSE_UNIFIED_SOURCES";R[R.RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS=42]="RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS";R[R.RICH_RESPONSE_UR_INLINE_REELS_ENABLED=43]="RICH_RESPONSE_UR_INLINE_REELS_ENABLED";R[R.RICH_RESPONSE_UR_MEDIA_GRID_ENABLED=44]="RICH_RESPONSE_UR_MEDIA_GRID_ENABLED";R[R.RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER=45]="RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER";R[R.RICH_RESPONSE_IN_APP_SURVEY=46]="RICH_RESPONSE_IN_APP_SURVEY";R[R.AI_RESPONSE_MODEL_BRANDING=47]="AI_RESPONSE_MODEL_BRANDING";R[R.SESSION_TRANSPARENCY_SYSTEM_MESSAGE=48]="SESSION_TRANSPARENCY_SYSTEM_MESSAGE";R[R.RICH_RESPONSE_UR_REASONING=49]="RICH_RESPONSE_UR_REASONING";R[R.RICH_RESPONSE_UR_ZEITGEIST_CITATIONS=50]="RICH_RESPONSE_UR_ZEITGEIST_CITATIONS";R[R.RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL=51]="RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL";R[R.AI_IMAGINE_LOADING_INDICATOR=52]="AI_IMAGINE_LOADING_INDICATOR";R[R.RICH_RESPONSE_UR_IMAGINE=53]="RICH_RESPONSE_UR_IMAGINE";R[R.AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR=54]="AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR";R[R.RICH_RESPONSE_UR_BLOKS_ENABLED=55]="RICH_RESPONSE_UR_BLOKS_ENABLED";R[R.RICH_RESPONSE_INLINE_LINKS_ENABLED=56]="RICH_RESPONSE_INLINE_LINKS_ENABLED";R[R.RICH_RESPONSE_UR_IMAGINE_VIDEO=57]="RICH_RESPONSE_UR_IMAGINE_VIDEO";R[R.JSON_PATCH_STREAMING=58]="JSON_PATCH_STREAMING";R[R.AI_TAB_FORCE_CLIPPY=59]="AI_TAB_FORCE_CLIPPY";R[R.UNIFIED_RESPONSE_EMBEDDED_SCREENS=60]="UNIFIED_RESPONSE_EMBEDDED_SCREENS";R[R.AI_SUBSCRIPTION_ENABLED=61]="AI_SUBSCRIPTION_ENABLED";R[R.UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED=62]="UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED";R[R.UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED=63]="UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED";R[R.AI_RICH_RESPONSE_MAPS_V2_ENABLED=64]="AI_RICH_RESPONSE_MAPS_V2_ENABLED";R[R.AI_SUBSCRIPTION_METERING_ENABLED=65]="AI_SUBSCRIPTION_METERING_ENABLED";R[R.RICH_RESPONSE_SPORTS_WIDGET_ENABLED=66]="RICH_RESPONSE_SPORTS_WIDGET_ENABLED";R[R.AI_RICH_RESPONSE_ARTIFACTS_ENABLED=67]="AI_RICH_RESPONSE_ARTIFACTS_ENABLED";R[R.AI_RICH_RESPONSE_EMAIL_CALENDAR_ENABLED=68]="AI_RICH_RESPONSE_EMAIL_CALENDAR_ENABLED";R[R.AI_RICH_RESPONSE_REMINDERS_ENABLED=69]="AI_RICH_RESPONSE_REMINDERS_ENABLED";R[R.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_B||={});var hB;((Z)=>{Z[Z.TEXT_EXTRACTION=0]="TEXT_EXTRACTION";Z[Z.OCR_AND_IMAGES=1]="OCR_AND_IMAGES";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hB||={});var lB;((M)=>{M[M.BOT_FEEDBACK_POSITIVE=0]="BOT_FEEDBACK_POSITIVE";M[M.BOT_FEEDBACK_NEGATIVE_GENERIC=1]="BOT_FEEDBACK_NEGATIVE_GENERIC";M[M.BOT_FEEDBACK_NEGATIVE_HELPFUL=2]="BOT_FEEDBACK_NEGATIVE_HELPFUL";M[M.BOT_FEEDBACK_NEGATIVE_INTERESTING=3]="BOT_FEEDBACK_NEGATIVE_INTERESTING";M[M.BOT_FEEDBACK_NEGATIVE_ACCURATE=4]="BOT_FEEDBACK_NEGATIVE_ACCURATE";M[M.BOT_FEEDBACK_NEGATIVE_SAFE=5]="BOT_FEEDBACK_NEGATIVE_SAFE";M[M.BOT_FEEDBACK_NEGATIVE_OTHER=6]="BOT_FEEDBACK_NEGATIVE_OTHER";M[M.BOT_FEEDBACK_NEGATIVE_REFUSED=7]="BOT_FEEDBACK_NEGATIVE_REFUSED";M[M.BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING=8]="BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING";M[M.BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT=9]="BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT";M[M.BOT_FEEDBACK_NEGATIVE_PERSONALIZED=10]="BOT_FEEDBACK_NEGATIVE_PERSONALIZED";M[M.BOT_FEEDBACK_NEGATIVE_CLARITY=11]="BOT_FEEDBACK_NEGATIVE_CLARITY";M[M.BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON=12]="BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON";M[M.BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY=13]="BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY";M[M.BOT_FEEDBACK_NEGATIVE=14]="BOT_FEEDBACK_NEGATIVE";M[M.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lB||={});var pB;((A)=>{A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC=1]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC";A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL=2]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL";A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING=4]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING";A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE=8]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE";A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE=16]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE";A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER=32]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER";A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED=64]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED";A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING=128]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING";A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT=256]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT";A[A.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pB||={});var uB;((q)=>{q[q.BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC=1]="BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uB||={});var wB;((Z)=>{Z[Z.NONE=0]="NONE";Z[Z.GENERIC=1]="GENERIC";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wB||={});var jB;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.IMAGINE=1]="IMAGINE";J[J.MEMU=2]="MEMU";J[J.FLASH=3]="FLASH";J[J.EDIT=4]="EDIT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jB||={});var cB;((Z)=>{Z[Z.AAPI=0]="AAPI";Z[Z.CLIPPY=1]="CLIPPY";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cB||={});var dB;((q)=>{q[q.BOT_LINKED_ACCOUNT_TYPE_1P=0]="BOT_LINKED_ACCOUNT_TYPE_1P";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dB||={});var nB;((X)=>{X[X.CENTER=1]="CENTER";X[X.LEFT=2]="LEFT";X[X.RIGHT=3]="RIGHT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nB||={});var bB;((q)=>{q[q.BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED=0]="BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bB||={});var oB;((Z)=>{Z[Z.DEFAULT_MODE=0]="DEFAULT_MODE";Z[Z.THINK_HARD_MODE=1]="THINK_HARD_MODE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oB||={});var iB;((X)=>{X[X.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";X[X.LLAMA_PROD=1]="LLAMA_PROD";X[X.LLAMA_PROD_PREMIUM=2]="LLAMA_PROD_PREMIUM";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iB||={});var mB;((X)=>{X[X.UNKNOWN_STATUS=0]="UNKNOWN_STATUS";X[X.AVAILABLE=1]="AVAILABLE";X[X.QUOTA_EXCEED_LIMIT=2]="QUOTA_EXCEED_LIMIT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mB||={});var gB;((X)=>{X[X.UNKNOWN_PLUGIN=0]="UNKNOWN_PLUGIN";X[X.REELS=1]="REELS";X[X.SEARCH=2]="SEARCH";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gB||={});var rB;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.BING=1]="BING";K[K.GOOGLE=2]="GOOGLE";K[K.SUPPORT=3]="SUPPORT";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rB||={});var tB;((K)=>{K[K.UNKNOWN_PROVIDER=0]="UNKNOWN_PROVIDER";K[K.OTHER=1]="OTHER";K[K.GOOGLE=2]="GOOGLE";K[K.BING=3]="BING";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tB||={});var aB;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.PLANNED=1]="PLANNED";K[K.EXECUTING=2]="EXECUTING";K[K.FINISHED=3]="FINISHED";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aB||={});var sB;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.OTHER=1]="OTHER";K[K.GOOGLE=2]="GOOGLE";K[K.BING=3]="BING";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sB||={});var eB;((X)=>{X[X.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";X[X.C50=1]="C50";X[X.SURVEY_PLATFORM=2]="SURVEY_PLATFORM";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eB||={});var $R;((Z)=>{Z[Z.UNKNOWN_FEATURE=0]="UNKNOWN_FEATURE";Z[Z.REASONING_FEATURE=1]="REASONING_FEATURE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})($R||={});var QR;((K)=>{K[K.NOTIFY=1]="NOTIFY";K[K.CREATE=2]="CREATE";K[K.DELETE=3]="DELETE";K[K.UPDATE=4]="UPDATE";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QR||={});var ZR;((J)=>{J[J.ONCE=1]="ONCE";J[J.DAILY=2]="DAILY";J[J.WEEKLY=3]="WEEKLY";J[J.BIWEEKLY=4]="BIWEEKLY";J[J.MONTHLY=5]="MONTHLY";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ZR||={});var JR;((V)=>{V[V.UNSPECIFIED=0]="UNSPECIFIED";V[V.WA_BOT_MSG=1]="WA_BOT_MSG";V[V.WA_TEE_BOT_MSG=2]="WA_TEE_BOT_MSG";V[V.P2P_PILLS=3]="P2P_PILLS";V[V.WA_WAFFLE=4]="WA_WAFFLE";V[V.WA_FEATURE_PKI=5]="WA_FEATURE_PKI";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JR||={});var KR;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.BING=1]="BING";J[J.GOOGLE=2]="GOOGLE";J[J.SUPPORT=3]="SUPPORT";J[J.OTHER=4]="OTHER";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KR||={});var qR;((h)=>{h[h.CONNECTED=0]="CONNECTED";h[h.REJECTED=1]="REJECTED";h[h.CANCELLED=2]="CANCELLED";h[h.ACCEPTEDELSEWHERE=3]="ACCEPTEDELSEWHERE";h[h.MISSED=4]="MISSED";h[h.INVALID=5]="INVALID";h[h.UNAVAILABLE=6]="UNAVAILABLE";h[h.UPCOMING=7]="UPCOMING";h[h.FAILED=8]="FAILED";h[h.ABANDONED=9]="ABANDONED";h[h.ONGOING=10]="ONGOING";h[h.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qR||={});var XR;((X)=>{X[X.REGULAR=0]="REGULAR";X[X.SCHEDULED_CALL=1]="SCHEDULED_CALL";X[X.VOICE_CHAT=2]="VOICE_CHAT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XR||={});var YR;((K)=>{K[K.NONE=0]="NONE";K[K.SCHEDULED=1]="SCHEDULED";K[K.PRIVACY=2]="PRIVACY";K[K.LIGHTWEIGHT=3]="LIGHTWEIGHT";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YR||={});var VR;((X)=>{X[X.NONE=0]="NONE";X[X.IMAGE=1]="IMAGE";X[X.VIDEO=2]="VIDEO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VR||={});var zR;((Z)=>{Z[Z.DEFAULT=0]="DEFAULT";Z[Z.GUEST=1]="GUEST";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zR||={});var HR;((C)=>{C[C.PUSH=0]="PUSH";C[C.USER_ACTIVATED=1]="USER_ACTIVATED";C[C.SCHEDULED=2]="SCHEDULED";C[C.ERROR_RECONNECT=3]="ERROR_RECONNECT";C[C.NETWORK_SWITCH=4]="NETWORK_SWITCH";C[C.PING_RECONNECT=5]="PING_RECONNECT";C[C.UNKNOWN=6]="UNKNOWN";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(HR||={});var GR;((M)=>{M[M.CELLULAR_UNKNOWN=0]="CELLULAR_UNKNOWN";M[M.WIFI_UNKNOWN=1]="WIFI_UNKNOWN";M[M.CELLULAR_EDGE=100]="CELLULAR_EDGE";M[M.CELLULAR_IDEN=101]="CELLULAR_IDEN";M[M.CELLULAR_UMTS=102]="CELLULAR_UMTS";M[M.CELLULAR_EVDO=103]="CELLULAR_EVDO";M[M.CELLULAR_GPRS=104]="CELLULAR_GPRS";M[M.CELLULAR_HSDPA=105]="CELLULAR_HSDPA";M[M.CELLULAR_HSUPA=106]="CELLULAR_HSUPA";M[M.CELLULAR_HSPA=107]="CELLULAR_HSPA";M[M.CELLULAR_CDMA=108]="CELLULAR_CDMA";M[M.CELLULAR_1XRTT=109]="CELLULAR_1XRTT";M[M.CELLULAR_EHRPD=110]="CELLULAR_EHRPD";M[M.CELLULAR_LTE=111]="CELLULAR_LTE";M[M.CELLULAR_HSPAP=112]="CELLULAR_HSPAP";M[M.UNRECOGNIZED=-1]="UNRECOGNIZED"})(GR||={});var UR;((X)=>{X[X.SHARE_EXTENSION=0]="SHARE_EXTENSION";X[X.SERVICE_EXTENSION=1]="SERVICE_EXTENSION";X[X.INTENTS_EXTENSION=2]="INTENTS_EXTENSION";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(UR||={});var CR;((J)=>{J[J.WHATSAPP=0]="WHATSAPP";J[J.MESSENGER=1]="MESSENGER";J[J.INTEROP=2]="INTEROP";J[J.INTEROP_MSGR=3]="INTEROP_MSGR";J[J.WHATSAPP_LID=4]="WHATSAPP_LID";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CR||={});var DR;((Z)=>{Z[Z.OFF=0]="OFF";Z[Z.STANDARD=1]="STANDARD";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(DR||={});var FR;((F)=>{F[F.SYSTEM=0]="SYSTEM";F[F.GOOGLE=1]="GOOGLE";F[F.HARDCODED=2]="HARDCODED";F[F.OVERRIDE=3]="OVERRIDE";F[F.FALLBACK=4]="FALLBACK";F[F.MNS=5]="MNS";F[F.MNS_SECONDARY=6]="MNS_SECONDARY";F[F.SOCKS_PROXY=7]="SOCKS_PROXY";F[F.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FR||={});var PR;((J)=>{J[J.PHONE=0]="PHONE";J[J.TABLET=1]="TABLET";J[J.DESKTOP=2]="DESKTOP";J[J.WEARABLE=3]="WEARABLE";J[J.VR=4]="VR";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(PR||={});var LR;((K)=>{K[K.APPSTORE=0]="APPSTORE";K[K.WEBSITE=1]="WEBSITE";K[K.TESTFLIGHT=2]="TESTFLIGHT";K[K.INTERNAL=3]="INTERNAL";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(LR||={});var xR;((f)=>{f[f.ANDROID=0]="ANDROID";f[f.IOS=1]="IOS";f[f.WINDOWS_PHONE=2]="WINDOWS_PHONE";f[f.BLACKBERRY=3]="BLACKBERRY";f[f.BLACKBERRYX=4]="BLACKBERRYX";f[f.S40=5]="S40";f[f.S60=6]="S60";f[f.PYTHON_CLIENT=7]="PYTHON_CLIENT";f[f.TIZEN=8]="TIZEN";f[f.ENTERPRISE=9]="ENTERPRISE";f[f.SMB_ANDROID=10]="SMB_ANDROID";f[f.KAIOS=11]="KAIOS";f[f.SMB_IOS=12]="SMB_IOS";f[f.WINDOWS=13]="WINDOWS";f[f.WEB=14]="WEB";f[f.PORTAL=15]="PORTAL";f[f.GREEN_ANDROID=16]="GREEN_ANDROID";f[f.GREEN_IPHONE=17]="GREEN_IPHONE";f[f.BLUE_ANDROID=18]="BLUE_ANDROID";f[f.BLUE_IPHONE=19]="BLUE_IPHONE";f[f.FBLITE_ANDROID=20]="FBLITE_ANDROID";f[f.MLITE_ANDROID=21]="MLITE_ANDROID";f[f.IGLITE_ANDROID=22]="IGLITE_ANDROID";f[f.PAGE=23]="PAGE";f[f.MACOS=24]="MACOS";f[f.OCULUS_MSG=25]="OCULUS_MSG";f[f.OCULUS_CALL=26]="OCULUS_CALL";f[f.MILAN=27]="MILAN";f[f.CAPI=28]="CAPI";f[f.WEAROS=29]="WEAROS";f[f.ARDEVICE=30]="ARDEVICE";f[f.VRDEVICE=31]="VRDEVICE";f[f.BLUE_WEB=32]="BLUE_WEB";f[f.IPAD=33]="IPAD";f[f.TEST=34]="TEST";f[f.SMART_GLASSES=35]="SMART_GLASSES";f[f.BLUE_VR=36]="BLUE_VR";f[f.AR_WRIST=37]="AR_WRIST";f[f.WAIL=38]="WAIL";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xR||={});var kR;((K)=>{K[K.RELEASE=0]="RELEASE";K[K.BETA=1]="BETA";K[K.ALPHA=2]="ALPHA";K[K.DEBUG=3]="DEBUG";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kR||={});var NR;((V)=>{V[V.WEB_BROWSER=0]="WEB_BROWSER";V[V.APP_STORE=1]="APP_STORE";V[V.WIN_STORE=2]="WIN_STORE";V[V.DARWIN=3]="DARWIN";V[V.WIN32=4]="WIN32";V[V.WIN_HYBRID=5]="WIN_HYBRID";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(NR||={});var BR;((Z)=>{Z[Z.NONE=0]="NONE";Z[Z.VIDEO=1]="VIDEO";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(BR||={});var RR;((X)=>{X[X.CROSS_APP_SOURCE_UNKNOWN=0]="CROSS_APP_SOURCE_UNKNOWN";X[X.CROSS_APP_SOURCE_INSTAGRAM=1]="CROSS_APP_SOURCE_INSTAGRAM";X[X.CROSS_APP_SOURCE_FACEBOOK=2]="CROSS_APP_SOURCE_FACEBOOK";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(RR||={});var OR;((V)=>{V[V.UNKNOWN=0]="UNKNOWN";V[V.CHAT=1]="CHAT";V[V.STATUS=2]="STATUS";V[V.CHANNELS=3]="CHANNELS";V[V.META_AI=4]="META_AI";V[V.UGC=5]="UGC";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(OR||={});var AR;((A)=>{A[A.NOT_PAIRED_MEDIA=0]="NOT_PAIRED_MEDIA";A[A.SD_VIDEO_PARENT=1]="SD_VIDEO_PARENT";A[A.HD_VIDEO_CHILD=2]="HD_VIDEO_CHILD";A[A.SD_IMAGE_PARENT=3]="SD_IMAGE_PARENT";A[A.HD_IMAGE_CHILD=4]="HD_IMAGE_CHILD";A[A.MOTION_PHOTO_PARENT=5]="MOTION_PHOTO_PARENT";A[A.MOTION_PHOTO_CHILD=6]="MOTION_PHOTO_CHILD";A[A.HEVC_VIDEO_PARENT=7]="HEVC_VIDEO_PARENT";A[A.HEVC_VIDEO_CHILD=8]="HEVC_VIDEO_CHILD";A[A.UNRECOGNIZED=-1]="UNRECOGNIZED"})(AR||={});var ER;((Z)=>{Z[Z.EXPLICIT=0]="EXPLICIT";Z[Z.AUTO=1]="AUTO";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ER||={});var MR;((J)=>{J[J.NONE=0]="NONE";J[J.RESHARED_FROM_MENTION=1]="RESHARED_FROM_MENTION";J[J.RESHARED_FROM_POST=2]="RESHARED_FROM_POST";J[J.RESHARED_FROM_POST_MANY_TIMES=3]="RESHARED_FROM_POST_MANY_TIMES";J[J.FORWARDED_FROM_STATUS=4]="FORWARDED_FROM_STATUS";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MR||={});var WR;((V)=>{V[V.IMAGE=0]="IMAGE";V[V.VIDEO=1]="VIDEO";V[V.GIF=2]="GIF";V[V.AUDIO=3]="AUDIO";V[V.TEXT=4]="TEXT";V[V.MUSIC_STANDALONE=5]="MUSIC_STANDALONE";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WR||={});var SR;((X)=>{X[X.NONE=0]="NONE";X[X.IMAGE=1]="IMAGE";X[X.VIDEO=2]="VIDEO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(SR||={});var IR;((V)=>{V[V.ENTRY_POINT_UNKNOWN=0]="ENTRY_POINT_UNKNOWN";V[V.P2P_LINK_SHARE=1]="P2P_LINK_SHARE";V[V.CONTACT_CARD_SHARING=2]="CONTACT_CARD_SHARING";V[V.PHONE_NUMBER=3]="PHONE_NUMBER";V[V.STATUS=4]="STATUS";V[V.IN_THREAD_CONTEXT_CARD=5]="IN_THREAD_CONTEXT_CARD";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IR||={});var TR;((I)=>{I[I.UNKNOWN=0]="UNKNOWN";I[I.VIEW_BUSINESS=1]="VIEW_BUSINESS";I[I.CHAT=2]="CHAT";I[I.CALL=3]="CALL";I[I.CATALOG=4]="CATALOG";I[I.CHANNEL=5]="CHANNEL";I[I.BOOK_APPOINTMENT=6]="BOOK_APPOINTMENT";I[I.OFFERS=7]="OFFERS";I[I.BESTSELLERS=8]="BESTSELLERS";I[I.MENU=9]="MENU";I[I.ABOUT=10]="ABOUT";I[I.SHOP=11]="SHOP";I[I.ORDER=12]="ORDER";I[I.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TR||={});var yR;((Z)=>{Z[Z.SHOW_MM_DISCLOSURE_ON_CLICK=1]="SHOW_MM_DISCLOSURE_ON_CLICK";Z[Z.SHOW_MM_DISCLOSURE_ON_READ=2]="SHOW_MM_DISCLOSURE_ON_READ";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yR||={});var vR;((Z)=>{Z[Z.CTWA=0]="CTWA";Z[Z.CAWC=1]="CAWC";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vR||={});var fR;((X)=>{X[X.NONE=0]="NONE";X[X.IMAGE=1]="IMAGE";X[X.VIDEO=2]="VIDEO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fR||={});var _R;((X)=>{X[X.UPDATE=1]="UPDATE";X[X.UPDATE_CARD=2]="UPDATE_CARD";X[X.LINK_CARD=3]="LINK_CARD";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_R||={});var hR;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.CLOSE_FRIENDS=1]="CLOSE_FRIENDS";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hR||={});var lR;((K)=>{K[K.COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY=0]="COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY";K[K.COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY=1]="COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY";K[K.COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY=2]="COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY";K[K.COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS=3]="COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lR||={});var pR;((K)=>{K[K.NO_APPEAL=0]="NO_APPEAL";K[K.APPEAL_IN_REVIEW=1]="APPEAL_IN_REVIEW";K[K.APPEAL_APPROVED=2]="APPEAL_APPROVED";K[K.APPEAL_REJECTED=3]="APPEAL_REJECTED";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pR||={});var uR;((X)=>{X[X.NONE=0]="NONE";X[X.MINIMAL=1]="MINIMAL";X[X.FULL=2]="FULL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uR||={});var wR;((X)=>{X[X.DISABLED=0]="DISABLED";X[X.RECEIVER_ENABLED=1]="RECEIVER_ENABLED";X[X.SENDER_ENABLED=2]="SENDER_ENABLED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wR||={});var jR;((X)=>{X[X.NONE=0]="NONE";X[X.INFRA=1]="INFRA";X[X.FULL=2]="FULL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jR||={});var cR;((l)=>{l[l.UNKNOWN=0]="UNKNOWN";l[l.CHROME=1]="CHROME";l[l.FIREFOX=2]="FIREFOX";l[l.IE=3]="IE";l[l.OPERA=4]="OPERA";l[l.SAFARI=5]="SAFARI";l[l.EDGE=6]="EDGE";l[l.DESKTOP=7]="DESKTOP";l[l.IPAD=8]="IPAD";l[l.ANDROID_TABLET=9]="ANDROID_TABLET";l[l.OHANA=10]="OHANA";l[l.ALOHA=11]="ALOHA";l[l.CATALINA=12]="CATALINA";l[l.TCL_TV=13]="TCL_TV";l[l.IOS_PHONE=14]="IOS_PHONE";l[l.IOS_CATALYST=15]="IOS_CATALYST";l[l.ANDROID_PHONE=16]="ANDROID_PHONE";l[l.ANDROID_AMBIGUOUS=17]="ANDROID_AMBIGUOUS";l[l.WEAR_OS=18]="WEAR_OS";l[l.AR_WRIST=19]="AR_WRIST";l[l.AR_DEVICE=20]="AR_DEVICE";l[l.UWP=21]="UWP";l[l.VR=22]="VR";l[l.CLOUD_API=23]="CLOUD_API";l[l.SMARTGLASSES=24]="SMARTGLASSES";l[l.WAIL=25]="WAIL";l[l.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cR||={});var dR;((K)=>{K[K.CHANGED_IN_CHAT=0]="CHANGED_IN_CHAT";K[K.INITIATED_BY_ME=1]="INITIATED_BY_ME";K[K.INITIATED_BY_OTHER=2]="INITIATED_BY_OTHER";K[K.BIZ_UPGRADE_FB_HOSTING=3]="BIZ_UPGRADE_FB_HOSTING";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dR||={});var nR;((V)=>{V[V.UNKNOWN=0]="UNKNOWN";V[V.CHAT_SETTING=1]="CHAT_SETTING";V[V.ACCOUNT_SETTING=2]="ACCOUNT_SETTING";V[V.BULK_CHANGE=3]="BULK_CHANGE";V[V.BIZ_SUPPORTS_FB_HOSTING=4]="BIZ_SUPPORTS_FB_HOSTING";V[V.UNKNOWN_GROUPS=5]="UNKNOWN_GROUPS";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nR||={});var bR;((E)=>{E[E.INFO=0]="INFO";E[E.EYE_OFF=1]="EYE_OFF";E[E.NEWS_OFF=2]="NEWS_OFF";E[E.WARNING=3]="WARNING";E[E.PRIVATE=4]="PRIVATE";E[E.NONE=5]="NONE";E[E.MEDIA_LABEL=6]="MEDIA_LABEL";E[E.POST_COVER=7]="POST_COVER";E[E.POST_LABEL=8]="POST_LABEL";E[E.WARNING_SCREENS=9]="WARNING_SCREENS";E[E.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bR||={});var oR;((Z)=>{Z[Z.E2EE=0]="E2EE";Z[Z.HOSTED=1]="HOSTED";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oR||={});var iR;((V)=>{V[V.NOT_INJECTED=0]="NOT_INJECTED";V[V.INJECTED=1]="INJECTED";V[V.INJECTED_PARTIAL=2]="INJECTED_PARTIAL";V[V.INJECTION_FAILED=3]="INJECTION_FAILED";V[V.INJECTION_FAILED_NO_RETRY=4]="INJECTION_FAILED_NO_RETRY";V[V.DEDUPED=5]="DEDUPED";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iR||={});var mR;((X)=>{X[X.REGULAR=0]="REGULAR";X[X.ADMIN=1]="ADMIN";X[X.SUPERADMIN=2]="SUPERADMIN";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mR||={});var gR;((E)=>{E[E.HANDSHAKE_PQ_MODE_UNKNOWN=0]="HANDSHAKE_PQ_MODE_UNKNOWN";E[E.XXKEM=1]="XXKEM";E[E.XXKEM_FS=2]="XXKEM_FS";E[E.XXKEM_EPH=9]="XXKEM_EPH";E[E.WA_CLASSICAL=3]="WA_CLASSICAL";E[E.WA_PQ=4]="WA_PQ";E[E.IKKEM=5]="IKKEM";E[E.IKKEM_FS=6]="IKKEM_FS";E[E.XXKEM_2=7]="XXKEM_2";E[E.IKKEM_2=8]="IKKEM_2";E[E.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gR||={});var rR;((Z)=>{Z[Z.IN_WAITLIST=0]="IN_WAITLIST";Z[Z.AI_AVAILABLE=1]="AI_AVAILABLE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rR||={});var tR;((C)=>{C[C.INITIAL_BOOTSTRAP=0]="INITIAL_BOOTSTRAP";C[C.INITIAL_STATUS_V3=1]="INITIAL_STATUS_V3";C[C.FULL=2]="FULL";C[C.RECENT=3]="RECENT";C[C.PUSH_NAME=4]="PUSH_NAME";C[C.NON_BLOCKING_DATA=5]="NON_BLOCKING_DATA";C[C.ON_DEMAND=6]="ON_DEMAND";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tR||={});var aR;((X)=>{X[X.FULL=1]="FULL";X[X.TALL=2]="TALL";X[X.COMPACT=3]="COMPACT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aR||={});var sR;((X)=>{X[X.RASTERIZED_LINK_PREVIEW=1]="RASTERIZED_LINK_PREVIEW";X[X.RASTERIZED_LINK_TRUNCATED=2]="RASTERIZED_LINK_TRUNCATED";X[X.RASTERIZED_LINK_FULL_URL=3]="RASTERIZED_LINK_FULL_URL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sR||={});var eR;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.CHAT_SETTING=1]="CHAT_SETTING";K[K.BIZ_SUPPORTS_FB_HOSTING=2]="BIZ_SUPPORTS_FB_HOSTING";K[K.UNKNOWN_GROUP=3]="UNKNOWN_GROUP";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eR||={});var $O;((K)=>{K[K.GENERAL_ERROR=0]="GENERAL_ERROR";K[K.SUCCESS=1]="SUCCESS";K[K.NOT_FOUND=2]="NOT_FOUND";K[K.DECRYPTION_ERROR=3]="DECRYPTION_ERROR";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})($O||={});var QO;((A)=>{A[A.INITIAL_BOOTSTRAP=0]="INITIAL_BOOTSTRAP";A[A.INITIAL_STATUS_V3=1]="INITIAL_STATUS_V3";A[A.FULL=2]="FULL";A[A.RECENT=3]="RECENT";A[A.PUSH_NAME=4]="PUSH_NAME";A[A.NON_BLOCKING_DATA=5]="NON_BLOCKING_DATA";A[A.ON_DEMAND=6]="ON_DEMAND";A[A.NO_HISTORY=7]="NO_HISTORY";A[A.MESSAGE_ACCESS_STATUS=8]="MESSAGE_ACCESS_STATUS";A[A.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QO||={});var ZO;((J)=>{J[J.SENT=0]="SENT";J[J.DELIVERED=1]="DELIVERED";J[J.READ=2]="READ";J[J.REPLIED=3]="REPLIED";J[J.QUICK_REPLIED=4]="QUICK_REPLIED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ZO||={});var JO;((M)=>{M[M.UPLOAD_STICKER=0]="UPLOAD_STICKER";M[M.SEND_RECENT_STICKER_BOOTSTRAP=1]="SEND_RECENT_STICKER_BOOTSTRAP";M[M.GENERATE_LINK_PREVIEW=2]="GENERATE_LINK_PREVIEW";M[M.HISTORY_SYNC_ON_DEMAND=3]="HISTORY_SYNC_ON_DEMAND";M[M.PLACEHOLDER_MESSAGE_RESEND=4]="PLACEHOLDER_MESSAGE_RESEND";M[M.WAFFLE_LINKING_NONCE_FETCH=5]="WAFFLE_LINKING_NONCE_FETCH";M[M.FULL_HISTORY_SYNC_ON_DEMAND=6]="FULL_HISTORY_SYNC_ON_DEMAND";M[M.COMPANION_META_NONCE_FETCH=7]="COMPANION_META_NONCE_FETCH";M[M.COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY=8]="COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY";M[M.COMPANION_CANONICAL_USER_NONCE_FETCH=9]="COMPANION_CANONICAL_USER_NONCE_FETCH";M[M.HISTORY_SYNC_CHUNK_RETRY=10]="HISTORY_SYNC_CHUNK_RETRY";M[M.GALAXY_FLOW_ACTION=11]="GALAXY_FLOW_ACTION";M[M.BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO=12]="BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO";M[M.BUSINESS_BROADCAST_INSIGHTS_REFRESH=13]="BUSINESS_BROADCAST_INSIGHTS_REFRESH";M[M.CONTACT_REFRESH_REQUEST=14]="CONTACT_REFRESH_REQUEST";M[M.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JO||={});var KO;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.TEXT=1]="TEXT";X[X.IMAGE=2]="IMAGE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KO||={});var qO;((Z)=>{Z[Z.POLL=0]="POLL";Z[Z.QUIZ=1]="QUIZ";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qO||={});var XO;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.AUDIO=1]="AUDIO";X[X.VIDEO=2]="VIDEO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XO||={});var YO;((C)=>{C[C.UNKNOWN=0]="UNKNOWN";C[C.EMPTY=1]="EMPTY";C[C.TEXT=2]="TEXT";C[C.DOCUMENT=3]="DOCUMENT";C[C.IMAGE=4]="IMAGE";C[C.VIDEO=5]="VIDEO";C[C.LOCATION=6]="LOCATION";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YO||={});var VO;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.RESPONSE=1]="RESPONSE";X[X.NATIVE_FLOW=2]="NATIVE_FLOW";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VO||={});var zO;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.DISPLAY_TEXT=1]="DISPLAY_TEXT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zO||={});var HO;((F)=>{F[F.CONNECTED=0]="CONNECTED";F[F.MISSED=1]="MISSED";F[F.FAILED=2]="FAILED";F[F.REJECTED=3]="REJECTED";F[F.ACCEPTED_ELSEWHERE=4]="ACCEPTED_ELSEWHERE";F[F.ONGOING=5]="ONGOING";F[F.SILENCED_BY_DND=6]="SILENCED_BY_DND";F[F.SILENCED_UNKNOWN_CALLER=7]="SILENCED_UNKNOWN_CALLER";F[F.UNRECOGNIZED=-1]="UNRECOGNIZED"})(HO||={});var GO;((X)=>{X[X.REGULAR=0]="REGULAR";X[X.SCHEDULED_CALL=1]="SCHEDULED_CALL";X[X.VOICE_CHAT=2]="VOICE_CHAT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(GO||={});var UO;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.CONTROL_PASSED=1]="CONTROL_PASSED";K[K.CONTROL_TAKEN=2]="CONTROL_TAKEN";K[K.INFO=3]="INFO";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(UO||={});var CO;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.SCHEDULED_MESSAGE=1]="SCHEDULED_MESSAGE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CO||={});var DO;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.GOING=1]="GOING";K[K.NOT_GOING=2]="NOT_GOING";K[K.MAYBE=3]="MAYBE";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(DO||={});var FO;((F)=>{F[F.SYSTEM=0]="SYSTEM";F[F.SYSTEM_TEXT=1]="SYSTEM_TEXT";F[F.FB_SCRIPT=2]="FB_SCRIPT";F[F.SYSTEM_BOLD=6]="SYSTEM_BOLD";F[F.MORNINGBREEZE_REGULAR=7]="MORNINGBREEZE_REGULAR";F[F.CALISTOGA_REGULAR=8]="CALISTOGA_REGULAR";F[F.EXO2_EXTRABOLD=9]="EXO2_EXTRABOLD";F[F.COURIERPRIME_BOLD=10]="COURIERPRIME_BOLD";F[F.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FO||={});var PO;((K)=>{K[K.DEFAULT=0]="DEFAULT";K[K.PARENT=1]="PARENT";K[K.SUB=2]="SUB";K[K.DEFAULT_SUB=3]="DEFAULT_SUB";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(PO||={});var LO;((V)=>{V[V.NONE=0]="NONE";V[V.VIDEO=1]="VIDEO";V[V.PLACEHOLDER=4]="PLACEHOLDER";V[V.IMAGE=5]="IMAGE";V[V.PAYMENT_LINKS=6]="PAYMENT_LINKS";V[V.PROFILE=7]="PROFILE";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(LO||={});var xO;((Z)=>{Z[Z.DEFAULT=0]="DEFAULT";Z[Z.PARENT=1]="PARENT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xO||={});var kO;((Z)=>{Z[Z.GREGORIAN=1]="GREGORIAN";Z[Z.SOLAR_HIJRI=2]="SOLAR_HIJRI";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kO||={});var NO;((C)=>{C[C.MONDAY=1]="MONDAY";C[C.TUESDAY=2]="TUESDAY";C[C.WEDNESDAY=3]="WEDNESDAY";C[C.THURSDAY=4]="THURSDAY";C[C.FRIDAY=5]="FRIDAY";C[C.SATURDAY=6]="SATURDAY";C[C.SUNDAY=7]="SUNDAY";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(NO||={});var BO;((K)=>{K[K.USER_IMAGE=0]="USER_IMAGE";K[K.AI_GENERATED=1]="AI_GENERATED";K[K.AI_MODIFIED=2]="AI_MODIFIED";K[K.RASTERIZED_TEXT_STATUS=3]="RASTERIZED_TEXT_STATUS";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(BO||={});var RO;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.HSCROLL_CARDS=1]="HSCROLL_CARDS";X[X.ALBUM_IMAGE=2]="ALBUM_IMAGE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(RO||={});var OO;((K)=>{K[K.UNKNOWN_SURFACE=0]="UNKNOWN_SURFACE";K[K.FB=1]="FB";K[K.IG=2]="IG";K[K.WA=3]="WA";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(OO||={});var AO;((Z)=>{Z[Z.DEFAULT=0]="DEFAULT";Z[Z.EXTENSIONS_1=1]="EXTENSIONS_1";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(AO||={});var EO;((Z)=>{Z[Z.IMAGE=0]="IMAGE";Z[Z.PDF=1]="PDF";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(EO||={});var MO;((V)=>{V[V.NONE=0]="NONE";V[V.REEL=1]="REEL";V[V.LIVE_VIDEO=2]="LIVE_VIDEO";V[V.LONG_VIDEO=3]="LONG_VIDEO";V[V.SINGLE_IMAGE=4]="SINGLE_IMAGE";V[V.CAROUSEL=5]="CAROUSEL";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MO||={});var WO;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.SINGLE_SELECT=1]="SINGLE_SELECT";X[X.PRODUCT_LIST=2]="PRODUCT_LIST";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WO||={});var SO;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.SINGLE_SELECT=1]="SINGLE_SELECT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(SO||={});var IO;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.VINYL=1]="VINYL";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IO||={});var TO;((X)=>{X[X.INQUIRY=1]="INQUIRY";X[X.ACCEPTED=2]="ACCEPTED";X[X.DECLINED=3]="DECLINED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TO||={});var yO;((q)=>{q[q.CATALOG=1]="CATALOG";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yO||={});var vO;((Z)=>{Z[Z.DEFAULT=0]="DEFAULT";Z[Z.MAPPER=1]="MAPPER";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vO||={});var fO;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.FBPAY=1]="FBPAY";J[J.NOVI=2]="NOVI";J[J.UPI=3]="UPI";J[J.PIX=4]="PIX";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fO||={});var _O;((Z)=>{Z[Z.LINK_PREVIEW=0]="LINK_PREVIEW";Z[Z.ORDER=1]="ORDER";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_O||={});var hO;((J)=>{J[J.REMINDER_FREQUENCY_UNKNOWN=0]="REMINDER_FREQUENCY_UNKNOWN";J[J.WEEKLY=1]="WEEKLY";J[J.BI_WEEKLY=2]="BI_WEEKLY";J[J.MONTHLY=3]="MONTHLY";J[J.QUARTERLY=4]="QUARTERLY";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hO||={});var lO;((V)=>{V[V.REMINDER_STATUS_UNKNOWN=0]="REMINDER_STATUS_UNKNOWN";V[V.ACTIVE=1]="ACTIVE";V[V.CANCELLED_BY_CREATOR=2]="CANCELLED_BY_CREATOR";V[V.STOPPED_BY_RECEIVER=3]="STOPPED_BY_RECEIVER";V[V.EXPIRED=4]="EXPIRED";V[V.PAID=5]="PAID";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lO||={});var pO;((Z)=>{Z[Z.NOTIFY_LAUNCH=1]="NOTIFY_LAUNCH";Z[Z.DOWNLOAD_RESPONSES=2]="DOWNLOAD_RESPONSES";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pO||={});var uO;((F)=>{F[F.REQUEST_SUCCESS=0]="REQUEST_SUCCESS";F[F.REQUEST_TIME_EXPIRED=1]="REQUEST_TIME_EXPIRED";F[F.DECLINED_SHARING_HISTORY=2]="DECLINED_SHARING_HISTORY";F[F.GENERIC_ERROR=3]="GENERIC_ERROR";F[F.ERROR_REQUEST_ON_NON_SMB_PRIMARY=4]="ERROR_REQUEST_ON_NON_SMB_PRIMARY";F[F.ERROR_HOSTED_DEVICE_NOT_CONNECTED=5]="ERROR_HOSTED_DEVICE_NOT_CONNECTED";F[F.ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET=6]="ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET";F[F.ERROR_MULTI_PROVIDER_NOT_CONFIGURED=7]="ERROR_MULTI_PROVIDER_NOT_CONFIGURED";F[F.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uO||={});var wO;((V)=>{V[V.GENERATION_ERROR=1]="GENERATION_ERROR";V[V.CHUNK_CONSUMED=2]="CHUNK_CONSUMED";V[V.TIMEOUT=3]="TIMEOUT";V[V.SESSION_EXHAUSTED=4]="SESSION_EXHAUSTED";V[V.CHUNK_EXHAUSTED=5]="CHUNK_EXHAUSTED";V[V.DUPLICATED_REQUEST=6]="DUPLICATED_REQUEST";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wO||={});var jO;((X)=>{X[X.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";X[X.PIN_FOR_ALL=1]="PIN_FOR_ALL";X[X.UNPIN_FOR_ALL=2]="UNPIN_FOR_ALL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jO||={});var cO;((q)=>{q[q.MASK_LINKED_DEVICES=0]="MASK_LINKED_DEVICES";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cO||={});var dO;((O)=>{O[O.REVOKE=0]="REVOKE";O[O.EPHEMERAL_SETTING=3]="EPHEMERAL_SETTING";O[O.EPHEMERAL_SYNC_RESPONSE=4]="EPHEMERAL_SYNC_RESPONSE";O[O.HISTORY_SYNC_NOTIFICATION=5]="HISTORY_SYNC_NOTIFICATION";O[O.APP_STATE_SYNC_KEY_SHARE=6]="APP_STATE_SYNC_KEY_SHARE";O[O.APP_STATE_SYNC_KEY_REQUEST=7]="APP_STATE_SYNC_KEY_REQUEST";O[O.MSG_FANOUT_BACKFILL_REQUEST=8]="MSG_FANOUT_BACKFILL_REQUEST";O[O.INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC=9]="INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC";O[O.APP_STATE_FATAL_EXCEPTION_NOTIFICATION=10]="APP_STATE_FATAL_EXCEPTION_NOTIFICATION";O[O.SHARE_PHONE_NUMBER=11]="SHARE_PHONE_NUMBER";O[O.MESSAGE_EDIT=14]="MESSAGE_EDIT";O[O.PEER_DATA_OPERATION_REQUEST_MESSAGE=16]="PEER_DATA_OPERATION_REQUEST_MESSAGE";O[O.PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE=17]="PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE";O[O.REQUEST_WELCOME_MESSAGE=18]="REQUEST_WELCOME_MESSAGE";O[O.BOT_FEEDBACK_MESSAGE=19]="BOT_FEEDBACK_MESSAGE";O[O.MEDIA_NOTIFY_MESSAGE=20]="MEDIA_NOTIFY_MESSAGE";O[O.CLOUD_API_THREAD_CONTROL_NOTIFICATION=21]="CLOUD_API_THREAD_CONTROL_NOTIFICATION";O[O.LID_MIGRATION_MAPPING_SYNC=22]="LID_MIGRATION_MAPPING_SYNC";O[O.REMINDER_MESSAGE=23]="REMINDER_MESSAGE";O[O.BOT_MEMU_ONBOARDING_MESSAGE=24]="BOT_MEMU_ONBOARDING_MESSAGE";O[O.STATUS_MENTION_MESSAGE=25]="STATUS_MENTION_MESSAGE";O[O.STOP_GENERATION_MESSAGE=26]="STOP_GENERATION_MESSAGE";O[O.LIMIT_SHARING=27]="LIMIT_SHARING";O[O.AI_PSI_METADATA=28]="AI_PSI_METADATA";O[O.AI_QUERY_FANOUT=29]="AI_QUERY_FANOUT";O[O.GROUP_MEMBER_LABEL_CHANGE=30]="GROUP_MEMBER_LABEL_CHANGE";O[O.AI_MEDIA_COLLECTION_MESSAGE=31]="AI_MEDIA_COLLECTION_MESSAGE";O[O.MESSAGE_UNSCHEDULE=32]="MESSAGE_UNSCHEDULE";O[O.CHAT_THEME_SETTING=34]="CHAT_THEME_SETTING";O[O.AI_METADATA_OPERATION=35]="AI_METADATA_OPERATION";O[O.MARK_AS_VERIFIED_ACTION=36]="MARK_AS_VERIFIED_ACTION";O[O.COEX_STATE_SYNC=37]="COEX_STATE_SYNC";O[O.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dO||={});var nO;((Z)=>{Z[Z.EMPTY=0]="EMPTY";Z[Z.NON_EMPTY=1]="NON_EMPTY";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nO||={});var bO;((Z)=>{Z[Z.CHAT_OPEN=0]="CHAT_OPEN";Z[Z.COMPANION_PAIRING=1]="COMPANION_PAIRING";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bO||={});var oO;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.VOICE=1]="VOICE";X[X.VIDEO=2]="VIDEO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oO||={});var iO;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.CANCEL=1]="CANCEL";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iO||={});var mO;((V)=>{V[V.UNKNOWN=0]="UNKNOWN";V[V.EVENT_EDIT=1]="EVENT_EDIT";V[V.MESSAGE_EDIT=2]="MESSAGE_EDIT";V[V.MESSAGE_SCHEDULE=3]="MESSAGE_SCHEDULE";V[V.POLL_EDIT=4]="POLL_EDIT";V[V.POLL_ADD_OPTION=5]="POLL_ADD_OPTION";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mO||={});var gO;((Z)=>{Z[Z.PENDING=0]="PENDING";Z[Z.PAID=1]="PAID";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gO||={});var rO;((K)=>{K[K.AUTO=0]="AUTO";K[K.COMPACT=1]="COMPACT";K[K.FULL=2]="FULL";K[K.IMMERSIVE=3]="IMMERSIVE";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rO||={});var tO;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.STATUS_ADD_YOURS=1]="STATUS_ADD_YOURS";J[J.STATUS_RESHARE=2]="STATUS_RESHARE";J[J.STATUS_QUESTION_ANSWER_RESHARE=3]="STATUS_QUESTION_ANSWER_RESHARE";J[J.STATUS_GROUP_STATUS_REPLY=4]="STATUS_GROUP_STATUS_REPLY";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tO||={});var aO;((q)=>{q[q.QUESTION_ANSWER=1]="QUESTION_ANSWER";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aO||={});var sO;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.REACTION=1]="REACTION";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sO||={});var eO;((X)=>{X[X.FIRST_PARTY=0]="FIRST_PARTY";X[X.THIRD_PARTY=1]="THIRD_PARTY";X[X.USER_CREATED=2]="USER_CREATED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eO||={});var $A;((K)=>{K[K.NONE=0]="NONE";K[K.GIPHY=1]="GIPHY";K[K.TENOR=2]="TENOR";K[K.KLIPY=3]="KLIPY";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})($A||={});var QA;((Z)=>{Z[Z.USER_VIDEO=0]="USER_VIDEO";Z[Z.AI_GENERATED=1]="AI_GENERATED";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QA||={});var ZA;((J)=>{J[J.UNDEFINED=0]="UNDEFINED";J[J.REACTION=1]="REACTION";J[J.EVENT_RESPONSE=2]="EVENT_RESPONSE";J[J.POLL_UPDATE=3]="POLL_UPDATE";J[J.PIN_IN_CHAT=4]="PIN_IN_CHAT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ZA||={});var JA;((u)=>{u[u.UNKNOWN=0]="UNKNOWN";u[u.MEDIA_ALBUM=1]="MEDIA_ALBUM";u[u.BOT_PLUGIN=2]="BOT_PLUGIN";u[u.EVENT_COVER_IMAGE=3]="EVENT_COVER_IMAGE";u[u.STATUS_POLL=4]="STATUS_POLL";u[u.HD_VIDEO_DUAL_UPLOAD=5]="HD_VIDEO_DUAL_UPLOAD";u[u.STATUS_EXTERNAL_RESHARE=6]="STATUS_EXTERNAL_RESHARE";u[u.MEDIA_POLL=7]="MEDIA_POLL";u[u.STATUS_ADD_YOURS=8]="STATUS_ADD_YOURS";u[u.STATUS_NOTIFICATION=9]="STATUS_NOTIFICATION";u[u.HD_IMAGE_DUAL_UPLOAD=10]="HD_IMAGE_DUAL_UPLOAD";u[u.STICKER_ANNOTATION=11]="STICKER_ANNOTATION";u[u.MOTION_PHOTO=12]="MOTION_PHOTO";u[u.STATUS_LINK_ACTION=13]="STATUS_LINK_ACTION";u[u.VIEW_ALL_REPLIES=14]="VIEW_ALL_REPLIES";u[u.STATUS_ADD_YOURS_AI_IMAGINE=15]="STATUS_ADD_YOURS_AI_IMAGINE";u[u.STATUS_QUESTION=16]="STATUS_QUESTION";u[u.STATUS_ADD_YOURS_DIWALI=17]="STATUS_ADD_YOURS_DIWALI";u[u.STATUS_REACTION=18]="STATUS_REACTION";u[u.HEVC_VIDEO_DUAL_UPLOAD=19]="HEVC_VIDEO_DUAL_UPLOAD";u[u.POLL_ADD_OPTION=20]="POLL_ADD_OPTION";u[u.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JA||={});var KA;((Z)=>{Z[Z.STATIC=1]="STATIC";Z[Z.DEPENDENT_ON_PARENT=2]="DEPENDENT_ON_PARENT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KA||={});var qA;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.TEXT=1]="TEXT";X[X.IMAGE=2]="IMAGE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qA||={});var XA;((Z)=>{Z[Z.POLL=0]="POLL";Z[Z.QUIZ=1]="QUIZ";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XA||={});var YA;((X)=>{X[X.E2EE=0]="E2EE";X[X.HYBRID_E2EE=1]="HYBRID_E2EE";X[X.NON_E2EE=2]="NON_E2EE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YA||={});var VA;((Z)=>{Z[Z.LEFT=0]="LEFT";Z[Z.REMOVED=1]="REMOVED";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VA||={});var zA;((T)=>{T[T.ANDROID=0]="ANDROID";T[T.SMBA=1]="SMBA";T[T.IPHONE=2]="IPHONE";T[T.SMBI=3]="SMBI";T[T.WEB=4]="WEB";T[T.UWP=5]="UWP";T[T.DARWIN=6]="DARWIN";T[T.IPAD=7]="IPAD";T[T.WEAROS=8]="WEAROS";T[T.WASG=9]="WASG";T[T.WEARM=10]="WEARM";T[T.CAPI=11]="CAPI";T[T.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zA||={});var HA;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.DEFAULT=1]="DEFAULT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(HA||={});var GA;((Z)=>{Z[Z.UNKNOWN_CURRENCY=0]="UNKNOWN_CURRENCY";Z[Z.INR=1]="INR";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(GA||={});var UA;((T)=>{T[T.UNKNOWN_STATUS=0]="UNKNOWN_STATUS";T[T.PROCESSING=1]="PROCESSING";T[T.SENT=2]="SENT";T[T.NEED_TO_ACCEPT=3]="NEED_TO_ACCEPT";T[T.COMPLETE=4]="COMPLETE";T[T.COULD_NOT_COMPLETE=5]="COULD_NOT_COMPLETE";T[T.REFUNDED=6]="REFUNDED";T[T.EXPIRED=7]="EXPIRED";T[T.REJECTED=8]="REJECTED";T[T.CANCELLED=9]="CANCELLED";T[T.WAITING_FOR_PAYER=10]="WAITING_FOR_PAYER";T[T.WAITING=11]="WAITING";T[T.UNRECOGNIZED=-1]="UNRECOGNIZED"})(UA||={});var CA;((O)=>{O[O.UNKNOWN=0]="UNKNOWN";O[O.PENDING_SETUP=1]="PENDING_SETUP";O[O.PENDING_RECEIVER_SETUP=2]="PENDING_RECEIVER_SETUP";O[O.INIT=3]="INIT";O[O.SUCCESS=4]="SUCCESS";O[O.COMPLETED=5]="COMPLETED";O[O.FAILED=6]="FAILED";O[O.FAILED_RISK=7]="FAILED_RISK";O[O.FAILED_PROCESSING=8]="FAILED_PROCESSING";O[O.FAILED_RECEIVER_PROCESSING=9]="FAILED_RECEIVER_PROCESSING";O[O.FAILED_DA=10]="FAILED_DA";O[O.FAILED_DA_FINAL=11]="FAILED_DA_FINAL";O[O.REFUNDED_TXN=12]="REFUNDED_TXN";O[O.REFUND_FAILED=13]="REFUND_FAILED";O[O.REFUND_FAILED_PROCESSING=14]="REFUND_FAILED_PROCESSING";O[O.REFUND_FAILED_DA=15]="REFUND_FAILED_DA";O[O.EXPIRED_TXN=16]="EXPIRED_TXN";O[O.AUTH_CANCELED=17]="AUTH_CANCELED";O[O.AUTH_CANCEL_FAILED_PROCESSING=18]="AUTH_CANCEL_FAILED_PROCESSING";O[O.AUTH_CANCEL_FAILED=19]="AUTH_CANCEL_FAILED";O[O.COLLECT_INIT=20]="COLLECT_INIT";O[O.COLLECT_SUCCESS=21]="COLLECT_SUCCESS";O[O.COLLECT_FAILED=22]="COLLECT_FAILED";O[O.COLLECT_FAILED_RISK=23]="COLLECT_FAILED_RISK";O[O.COLLECT_REJECTED=24]="COLLECT_REJECTED";O[O.COLLECT_EXPIRED=25]="COLLECT_EXPIRED";O[O.COLLECT_CANCELED=26]="COLLECT_CANCELED";O[O.COLLECT_CANCELLING=27]="COLLECT_CANCELLING";O[O.IN_REVIEW=28]="IN_REVIEW";O[O.REVERSAL_SUCCESS=29]="REVERSAL_SUCCESS";O[O.REVERSAL_PENDING=30]="REVERSAL_PENDING";O[O.REFUND_PENDING=31]="REFUND_PENDING";O[O.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CA||={});var DA;((X)=>{X[X.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";X[X.PIN_FOR_ALL=1]="PIN_FOR_ALL";X[X.UNPIN_FOR_ALL=2]="UNPIN_FOR_ALL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(DA||={});var FA;((K)=>{K[K.UNDEFINED=0]="UNDEFINED";K[K.LOW=1]="LOW";K[K.MID=2]="MID";K[K.HIGH=3]="HIGH";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FA||={});var PA;((X)=>{X[X.AND=1]="AND";X[X.OR=2]="OR";X[X.NOR=3]="NOR";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(PA||={});var LA;((Z)=>{Z[Z.PASS_BY_DEFAULT=1]="PASS_BY_DEFAULT";Z[Z.FAIL_BY_DEFAULT=2]="FAIL_BY_DEFAULT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(LA||={});var xA;((X)=>{X[X.TRUE=1]="TRUE";X[X.FALSE=2]="FALSE";X[X.UNKNOWN=3]="UNKNOWN";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xA||={});var kA;((I)=>{I[I.UNKNOWN=0]="UNKNOWN";I[I.RESHARE=1]="RESHARE";I[I.EXTERNAL_SHARE=2]="EXTERNAL_SHARE";I[I.MUSIC=3]="MUSIC";I[I.STATUS_MENTION=4]="STATUS_MENTION";I[I.GROUP_STATUS=5]="GROUP_STATUS";I[I.RL_ATTRIBUTION=6]="RL_ATTRIBUTION";I[I.AI_CREATED=7]="AI_CREATED";I[I.LAYOUTS=8]="LAYOUTS";I[I.NEWSLETTER_STATUS=9]="NEWSLETTER_STATUS";I[I.STATUS_CLOSE_SHARING=10]="STATUS_CLOSE_SHARING";I[I.PAID_PARTNERSHIP=11]="PAID_PARTNERSHIP";I[I.USERNAME_STATUS=12]="USERNAME_STATUS";I[I.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kA||={});var NA;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.STATUS_MIMICRY=1]="STATUS_MIMICRY";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(NA||={});var BA;((w)=>{w[w.UNKNOWN=0]="UNKNOWN";w[w.INSTAGRAM=1]="INSTAGRAM";w[w.FACEBOOK=2]="FACEBOOK";w[w.MESSENGER=3]="MESSENGER";w[w.SPOTIFY=4]="SPOTIFY";w[w.YOUTUBE=5]="YOUTUBE";w[w.PINTEREST=6]="PINTEREST";w[w.THREADS=7]="THREADS";w[w.APPLE_MUSIC=8]="APPLE_MUSIC";w[w.SHARECHAT=9]="SHARECHAT";w[w.GOOGLE_PHOTOS=10]="GOOGLE_PHOTOS";w[w.SOUNDCLOUD=11]="SOUNDCLOUD";w[w.SHAZAM=12]="SHAZAM";w[w.PICSART=13]="PICSART";w[w.UNRECOGNIZED=-1]="UNRECOGNIZED"})(BA||={});var RA;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.RAY_BAN_META_GLASSES=1]="RAY_BAN_META_GLASSES";K[K.OAKLEY_META_GLASSES=2]="OAKLEY_META_GLASSES";K[K.HYPERNOVA_GLASSES=3]="HYPERNOVA_GLASSES";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(RA||={});var OA;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.INTERNAL_RESHARE=1]="INTERNAL_RESHARE";J[J.MENTION_RESHARE=2]="MENTION_RESHARE";J[J.CHANNEL_RESHARE=3]="CHANNEL_RESHARE";J[J.FORWARD=4]="FORWARD";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(OA||={});var AA;((J)=>{J[J.DRAFT=1]="DRAFT";J[J.SCHEDULED=2]="SCHEDULED";J[J.PROCESSING=3]="PROCESSING";J[J.FAILED=4]="FAILED";J[J.SENT=5]="SENT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(AA||={});var EA;((X)=>{X[X.UPDATED=0]="UPDATED";X[X.CREATED=1]="CREATED";X[X.DELETED=2]="DELETED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(EA||={});var MA;((C)=>{C[C.UNKNOWN=0]="UNKNOWN";C[C.INSTRUCTIONS=1]="INSTRUCTIONS";C[C.RESPONSE_SETTINGS=2]="RESPONSE_SETTINGS";C[C.EXAMPLE_RESPONSES=3]="EXAMPLE_RESPONSES";C[C.KNOWLEDGE=4]="KNOWLEDGE";C[C.LEAD_GEN=5]="LEAD_GEN";C[C.HANDOFF_REMOVAL_TIMING=6]="HANDOFF_REMOVAL_TIMING";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MA||={});var WA;((q)=>{q[q.DISABLE_CTA=1]="DISABLE_CTA";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WA||={});var SA;((v)=>{v[v.NONE=0]="NONE";v[v.UNREAD=1]="UNREAD";v[v.GROUPS=2]="GROUPS";v[v.FAVORITES=3]="FAVORITES";v[v.PREDEFINED=4]="PREDEFINED";v[v.CUSTOM=5]="CUSTOM";v[v.COMMUNITY=6]="COMMUNITY";v[v.SERVER_ASSIGNED=7]="SERVER_ASSIGNED";v[v.DRAFTED=8]="DRAFTED";v[v.AI_HANDOFF=9]="AI_HANDOFF";v[v.CHANNELS=10]="CHANNELS";v[v.AI_RESPONDING=11]="AI_RESPONDING";v[v.ARCHIVED=12]="ARCHIVED";v[v.LOCKED=13]="LOCKED";v[v.INVITES=14]="INVITES";v[v.THIRD_PARTY=15]="THIRD_PARTY";v[v.LEAD=16]="LEAD";v[v.MENTIONS_AND_REPLIES=17]="MENTIONS_AND_REPLIES";v[v.UNRECOGNIZED=-1]="UNRECOGNIZED"})(SA||={});var IA;((X)=>{X[X.ENABLED=0]="ENABLED";X[X.ENABLED_HAS_LEARNING=1]="ENABLED_HAS_LEARNING";X[X.DISABLED=2]="DISABLED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IA||={});var TA;((X)=>{X[X.MUTED=0]="MUTED";X[X.AI_AGENT=1]="AI_AGENT";X[X.SUGGESTIONS=2]="SUGGESTIONS";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TA||={});var yA;((q)=>{q[q.PERSONALIZED=0]="PERSONALIZED";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yA||={});var vA;((Z)=>{Z[Z.ACTIVE=0]="ACTIVE";Z[Z.INACTIVE=1]="INACTIVE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vA||={});var fA;((Z)=>{Z[Z.UNSTRUCTURED=1]="UNSTRUCTURED";Z[Z.STRUCTURED=2]="STRUCTURED";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fA||={});var _A;((K)=>{K[K.DEFAULT_ALL_MESSAGES=0]="DEFAULT_ALL_MESSAGES";K[K.ALL_MESSAGES=1]="ALL_MESSAGES";K[K.HIGHLIGHTS=2]="HIGHLIGHTS";K[K.DEFAULT_HIGHLIGHTS=3]="DEFAULT_HIGHLIGHTS";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_A||={});var hA;((q)=>{q[q.BR_PAY_PRIVACY_POLICY=0]="BR_PAY_PRIVACY_POLICY";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hA||={});var lA;((X)=>{X[X.UNDEFINED=0]="UNDEFINED";X[X.ENABLED=1]="ENABLED";X[X.DISABLED=2]="DISABLED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lA||={});var pA;((K)=>{K[K.DISPLAY_MODE_UNKNOWN=0]="DISPLAY_MODE_UNKNOWN";K[K.ALWAYS=1]="ALWAYS";K[K.NEVER=2]="NEVER";K[K.ONLY_WHEN_APP_IS_OPEN=3]="ONLY_WHEN_APP_IS_OPEN";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pA||={});var uA;((X)=>{X[X.MEDIA_QUALITY_UNKNOWN=0]="MEDIA_QUALITY_UNKNOWN";X[X.STANDARD=1]="STANDARD";X[X.HD=2]="HD";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uA||={});var wA;((p)=>{p[p.SETTING_KEY_UNKNOWN=0]="SETTING_KEY_UNKNOWN";p[p.START_AT_LOGIN=1]="START_AT_LOGIN";p[p.MINIMIZE_TO_TRAY=2]="MINIMIZE_TO_TRAY";p[p.LANGUAGE=3]="LANGUAGE";p[p.REPLACE_TEXT_WITH_EMOJI=4]="REPLACE_TEXT_WITH_EMOJI";p[p.BANNER_NOTIFICATION_DISPLAY_MODE=5]="BANNER_NOTIFICATION_DISPLAY_MODE";p[p.UNREAD_COUNTER_BADGE_DISPLAY_MODE=6]="UNREAD_COUNTER_BADGE_DISPLAY_MODE";p[p.IS_MESSAGES_NOTIFICATION_ENABLED=7]="IS_MESSAGES_NOTIFICATION_ENABLED";p[p.IS_CALLS_NOTIFICATION_ENABLED=8]="IS_CALLS_NOTIFICATION_ENABLED";p[p.IS_REACTIONS_NOTIFICATION_ENABLED=9]="IS_REACTIONS_NOTIFICATION_ENABLED";p[p.IS_STATUS_REACTIONS_NOTIFICATION_ENABLED=10]="IS_STATUS_REACTIONS_NOTIFICATION_ENABLED";p[p.IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED=11]="IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED";p[p.DEFAULT_NOTIFICATION_TONE_ID=12]="DEFAULT_NOTIFICATION_TONE_ID";p[p.GROUP_DEFAULT_NOTIFICATION_TONE_ID=13]="GROUP_DEFAULT_NOTIFICATION_TONE_ID";p[p.APP_THEME=14]="APP_THEME";p[p.WALLPAPER_ID=15]="WALLPAPER_ID";p[p.IS_DOODLE_WALLPAPER_ENABLED=16]="IS_DOODLE_WALLPAPER_ENABLED";p[p.FONT_SIZE=17]="FONT_SIZE";p[p.IS_PHOTOS_AUTODOWNLOAD_ENABLED=18]="IS_PHOTOS_AUTODOWNLOAD_ENABLED";p[p.IS_AUDIOS_AUTODOWNLOAD_ENABLED=19]="IS_AUDIOS_AUTODOWNLOAD_ENABLED";p[p.IS_VIDEOS_AUTODOWNLOAD_ENABLED=20]="IS_VIDEOS_AUTODOWNLOAD_ENABLED";p[p.IS_DOCUMENTS_AUTODOWNLOAD_ENABLED=21]="IS_DOCUMENTS_AUTODOWNLOAD_ENABLED";p[p.DISABLE_LINK_PREVIEWS=22]="DISABLE_LINK_PREVIEWS";p[p.NOTIFICATION_TONE_ID=23]="NOTIFICATION_TONE_ID";p[p.MEDIA_UPLOAD_QUALITY=24]="MEDIA_UPLOAD_QUALITY";p[p.IS_SPELL_CHECK_ENABLED=25]="IS_SPELL_CHECK_ENABLED";p[p.IS_ENTER_TO_SEND_ENABLED=26]="IS_ENTER_TO_SEND_ENABLED";p[p.IS_GROUP_MESSAGE_NOTIFICATION_ENABLED=27]="IS_GROUP_MESSAGE_NOTIFICATION_ENABLED";p[p.IS_GROUP_REACTIONS_NOTIFICATION_ENABLED=28]="IS_GROUP_REACTIONS_NOTIFICATION_ENABLED";p[p.IS_STATUS_NOTIFICATION_ENABLED=29]="IS_STATUS_NOTIFICATION_ENABLED";p[p.STATUS_NOTIFICATION_TONE_ID=30]="STATUS_NOTIFICATION_TONE_ID";p[p.SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION=31]="SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION";p[p.CHAT_THEME_ID=32]="CHAT_THEME_ID";p[p.COLOR_SCHEME_ID=33]="COLOR_SCHEME_ID";p[p.STOCK_WALLPAPER_IMAGE_ID=34]="STOCK_WALLPAPER_IMAGE_ID";p[p.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wA||={});var jA;((J)=>{J[J.PLATFORM_UNKNOWN=0]="PLATFORM_UNKNOWN";J[J.WEB=1]="WEB";J[J.HYBRID=2]="HYBRID";J[J.WINDOWS=3]="WINDOWS";J[J.MAC=4]="MAC";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jA||={});var cA;((J)=>{J[J.ALLOW_LIST=0]="ALLOW_LIST";J[J.DENY_LIST=1]="DENY_LIST";J[J.CONTACTS=2]="CONTACTS";J[J.CLOSE_FRIENDS=3]="CLOSE_FRIENDS";J[J.CUSTOM_LIST=4]="CUSTOM_LIST";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cA||={});var dA;((Z)=>{Z[Z.LID=1]="LID";Z[Z.PN=2]="PN";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dA||={});var nA;((Z)=>{Z[Z.INACTIVE=0]="INACTIVE";Z[Z.ACTIVE=1]="ACTIVE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nA||={});var bA;((X)=>{X[X.ACTIVE=0]="ACTIVE";X[X.PAUSED=1]="PAUSED";X[X.UNLINKED=2]="UNLINKED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bA||={});var oA;((Z)=>{Z[Z.SET=0]="SET";Z[Z.REMOVE=1]="REMOVE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oA||={});var iA;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.VIEW_REPLIES=1]="VIEW_REPLIES";X[X.AI_THREAD=2]="AI_THREAD";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iA||={});var mA;((Z)=>{Z[Z.UTF8=0]="UTF8";Z[Z.UTF8_BROKEN=1]="UTF8_BROKEN";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mA||={});var gA;((X)=>{X[X.NONE=0]="NONE";X[X.PBKDF2_HMAC_SHA512=1]="PBKDF2_HMAC_SHA512";X[X.PBKDF2_HMAC_SHA384=2]="PBKDF2_HMAC_SHA384";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gA||={});var rA;((K)=>{K[K.NOT_STARTED=0]="NOT_STARTED";K[K.FORCE_UPGRADE=1]="FORCE_UPGRADE";K[K.DEVELOPMENT=2]="DEVELOPMENT";K[K.PRODUCTION=3]="PRODUCTION";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rA||={});var tA;((K)=>{K[K.E2EE=0]="E2EE";K[K.FB=2]="FB";K[K.BSP=1]="BSP";K[K.BSP_AND_FB=3]="BSP_AND_FB";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tA||={});var aA;((V)=>{V[V.ERROR=0]="ERROR";V[V.PENDING=1]="PENDING";V[V.SERVER_ACK=2]="SERVER_ACK";V[V.DELIVERY_ACK=3]="DELIVERY_ACK";V[V.READ=4]="READ";V[V.PLAYED=5]="PLAYED";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aA||={});var sA;((G)=>{G[G.UNKNOWN=0]="UNKNOWN";G[G.REVOKE=1]="REVOKE";G[G.CIPHERTEXT=2]="CIPHERTEXT";G[G.FUTUREPROOF=3]="FUTUREPROOF";G[G.NON_VERIFIED_TRANSITION=4]="NON_VERIFIED_TRANSITION";G[G.UNVERIFIED_TRANSITION=5]="UNVERIFIED_TRANSITION";G[G.VERIFIED_TRANSITION=6]="VERIFIED_TRANSITION";G[G.VERIFIED_LOW_UNKNOWN=7]="VERIFIED_LOW_UNKNOWN";G[G.VERIFIED_HIGH=8]="VERIFIED_HIGH";G[G.VERIFIED_INITIAL_UNKNOWN=9]="VERIFIED_INITIAL_UNKNOWN";G[G.VERIFIED_INITIAL_LOW=10]="VERIFIED_INITIAL_LOW";G[G.VERIFIED_INITIAL_HIGH=11]="VERIFIED_INITIAL_HIGH";G[G.VERIFIED_TRANSITION_ANY_TO_NONE=12]="VERIFIED_TRANSITION_ANY_TO_NONE";G[G.VERIFIED_TRANSITION_ANY_TO_HIGH=13]="VERIFIED_TRANSITION_ANY_TO_HIGH";G[G.VERIFIED_TRANSITION_HIGH_TO_LOW=14]="VERIFIED_TRANSITION_HIGH_TO_LOW";G[G.VERIFIED_TRANSITION_HIGH_TO_UNKNOWN=15]="VERIFIED_TRANSITION_HIGH_TO_UNKNOWN";G[G.VERIFIED_TRANSITION_UNKNOWN_TO_LOW=16]="VERIFIED_TRANSITION_UNKNOWN_TO_LOW";G[G.VERIFIED_TRANSITION_LOW_TO_UNKNOWN=17]="VERIFIED_TRANSITION_LOW_TO_UNKNOWN";G[G.VERIFIED_TRANSITION_NONE_TO_LOW=18]="VERIFIED_TRANSITION_NONE_TO_LOW";G[G.VERIFIED_TRANSITION_NONE_TO_UNKNOWN=19]="VERIFIED_TRANSITION_NONE_TO_UNKNOWN";G[G.GROUP_CREATE=20]="GROUP_CREATE";G[G.GROUP_CHANGE_SUBJECT=21]="GROUP_CHANGE_SUBJECT";G[G.GROUP_CHANGE_ICON=22]="GROUP_CHANGE_ICON";G[G.GROUP_CHANGE_INVITE_LINK=23]="GROUP_CHANGE_INVITE_LINK";G[G.GROUP_CHANGE_DESCRIPTION=24]="GROUP_CHANGE_DESCRIPTION";G[G.GROUP_CHANGE_RESTRICT=25]="GROUP_CHANGE_RESTRICT";G[G.GROUP_CHANGE_ANNOUNCE=26]="GROUP_CHANGE_ANNOUNCE";G[G.GROUP_PARTICIPANT_ADD=27]="GROUP_PARTICIPANT_ADD";G[G.GROUP_PARTICIPANT_REMOVE=28]="GROUP_PARTICIPANT_REMOVE";G[G.GROUP_PARTICIPANT_PROMOTE=29]="GROUP_PARTICIPANT_PROMOTE";G[G.GROUP_PARTICIPANT_DEMOTE=30]="GROUP_PARTICIPANT_DEMOTE";G[G.GROUP_PARTICIPANT_INVITE=31]="GROUP_PARTICIPANT_INVITE";G[G.GROUP_PARTICIPANT_LEAVE=32]="GROUP_PARTICIPANT_LEAVE";G[G.GROUP_PARTICIPANT_CHANGE_NUMBER=33]="GROUP_PARTICIPANT_CHANGE_NUMBER";G[G.BROADCAST_CREATE=34]="BROADCAST_CREATE";G[G.BROADCAST_ADD=35]="BROADCAST_ADD";G[G.BROADCAST_REMOVE=36]="BROADCAST_REMOVE";G[G.GENERIC_NOTIFICATION=37]="GENERIC_NOTIFICATION";G[G.E2E_IDENTITY_CHANGED=38]="E2E_IDENTITY_CHANGED";G[G.E2E_ENCRYPTED=39]="E2E_ENCRYPTED";G[G.CALL_MISSED_VOICE=40]="CALL_MISSED_VOICE";G[G.CALL_MISSED_VIDEO=41]="CALL_MISSED_VIDEO";G[G.INDIVIDUAL_CHANGE_NUMBER=42]="INDIVIDUAL_CHANGE_NUMBER";G[G.GROUP_DELETE=43]="GROUP_DELETE";G[G.GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE=44]="GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE";G[G.CALL_MISSED_GROUP_VOICE=45]="CALL_MISSED_GROUP_VOICE";G[G.CALL_MISSED_GROUP_VIDEO=46]="CALL_MISSED_GROUP_VIDEO";G[G.PAYMENT_CIPHERTEXT=47]="PAYMENT_CIPHERTEXT";G[G.PAYMENT_FUTUREPROOF=48]="PAYMENT_FUTUREPROOF";G[G.PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED=49]="PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED";G[G.PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED=50]="PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED";G[G.PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED=51]="PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED";G[G.PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP=52]="PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP";G[G.PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP=53]="PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP";G[G.PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER=54]="PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER";G[G.PAYMENT_ACTION_SEND_PAYMENT_REMINDER=55]="PAYMENT_ACTION_SEND_PAYMENT_REMINDER";G[G.PAYMENT_ACTION_SEND_PAYMENT_INVITATION=56]="PAYMENT_ACTION_SEND_PAYMENT_INVITATION";G[G.PAYMENT_ACTION_REQUEST_DECLINED=57]="PAYMENT_ACTION_REQUEST_DECLINED";G[G.PAYMENT_ACTION_REQUEST_EXPIRED=58]="PAYMENT_ACTION_REQUEST_EXPIRED";G[G.PAYMENT_ACTION_REQUEST_CANCELLED=59]="PAYMENT_ACTION_REQUEST_CANCELLED";G[G.BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM=60]="BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM";G[G.BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP=61]="BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP";G[G.BIZ_INTRO_TOP=62]="BIZ_INTRO_TOP";G[G.BIZ_INTRO_BOTTOM=63]="BIZ_INTRO_BOTTOM";G[G.BIZ_NAME_CHANGE=64]="BIZ_NAME_CHANGE";G[G.BIZ_MOVE_TO_CONSUMER_APP=65]="BIZ_MOVE_TO_CONSUMER_APP";G[G.BIZ_TWO_TIER_MIGRATION_TOP=66]="BIZ_TWO_TIER_MIGRATION_TOP";G[G.BIZ_TWO_TIER_MIGRATION_BOTTOM=67]="BIZ_TWO_TIER_MIGRATION_BOTTOM";G[G.OVERSIZED=68]="OVERSIZED";G[G.GROUP_CHANGE_NO_FREQUENTLY_FORWARDED=69]="GROUP_CHANGE_NO_FREQUENTLY_FORWARDED";G[G.GROUP_V4_ADD_INVITE_SENT=70]="GROUP_V4_ADD_INVITE_SENT";G[G.GROUP_PARTICIPANT_ADD_REQUEST_JOIN=71]="GROUP_PARTICIPANT_ADD_REQUEST_JOIN";G[G.CHANGE_EPHEMERAL_SETTING=72]="CHANGE_EPHEMERAL_SETTING";G[G.E2E_DEVICE_CHANGED=73]="E2E_DEVICE_CHANGED";G[G.VIEWED_ONCE=74]="VIEWED_ONCE";G[G.E2E_ENCRYPTED_NOW=75]="E2E_ENCRYPTED_NOW";G[G.BLUE_MSG_BSP_FB_TO_BSP_PREMISE=76]="BLUE_MSG_BSP_FB_TO_BSP_PREMISE";G[G.BLUE_MSG_BSP_FB_TO_SELF_FB=77]="BLUE_MSG_BSP_FB_TO_SELF_FB";G[G.BLUE_MSG_BSP_FB_TO_SELF_PREMISE=78]="BLUE_MSG_BSP_FB_TO_SELF_PREMISE";G[G.BLUE_MSG_BSP_FB_UNVERIFIED=79]="BLUE_MSG_BSP_FB_UNVERIFIED";G[G.BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=80]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";G[G.BLUE_MSG_BSP_FB_VERIFIED=81]="BLUE_MSG_BSP_FB_VERIFIED";G[G.BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=82]="BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";G[G.BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE=83]="BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE";G[G.BLUE_MSG_BSP_PREMISE_UNVERIFIED=84]="BLUE_MSG_BSP_PREMISE_UNVERIFIED";G[G.BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=85]="BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";G[G.BLUE_MSG_BSP_PREMISE_VERIFIED=86]="BLUE_MSG_BSP_PREMISE_VERIFIED";G[G.BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=87]="BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";G[G.BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED=88]="BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED";G[G.BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED=89]="BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED";G[G.BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED=90]="BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED";G[G.BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED=91]="BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED";G[G.BLUE_MSG_SELF_FB_TO_BSP_PREMISE=92]="BLUE_MSG_SELF_FB_TO_BSP_PREMISE";G[G.BLUE_MSG_SELF_FB_TO_SELF_PREMISE=93]="BLUE_MSG_SELF_FB_TO_SELF_PREMISE";G[G.BLUE_MSG_SELF_FB_UNVERIFIED=94]="BLUE_MSG_SELF_FB_UNVERIFIED";G[G.BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=95]="BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";G[G.BLUE_MSG_SELF_FB_VERIFIED=96]="BLUE_MSG_SELF_FB_VERIFIED";G[G.BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=97]="BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";G[G.BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE=98]="BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE";G[G.BLUE_MSG_SELF_PREMISE_UNVERIFIED=99]="BLUE_MSG_SELF_PREMISE_UNVERIFIED";G[G.BLUE_MSG_SELF_PREMISE_VERIFIED=100]="BLUE_MSG_SELF_PREMISE_VERIFIED";G[G.BLUE_MSG_TO_BSP_FB=101]="BLUE_MSG_TO_BSP_FB";G[G.BLUE_MSG_TO_CONSUMER=102]="BLUE_MSG_TO_CONSUMER";G[G.BLUE_MSG_TO_SELF_FB=103]="BLUE_MSG_TO_SELF_FB";G[G.BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED=104]="BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED";G[G.BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=105]="BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";G[G.BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED=106]="BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED";G[G.BLUE_MSG_UNVERIFIED_TO_VERIFIED=107]="BLUE_MSG_UNVERIFIED_TO_VERIFIED";G[G.BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED=108]="BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED";G[G.BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=109]="BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";G[G.BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED=110]="BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED";G[G.BLUE_MSG_VERIFIED_TO_UNVERIFIED=111]="BLUE_MSG_VERIFIED_TO_UNVERIFIED";G[G.BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=112]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";G[G.BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED=113]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED";G[G.BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=114]="BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";G[G.BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED=115]="BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED";G[G.BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=116]="BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";G[G.BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=117]="BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";G[G.E2E_IDENTITY_UNAVAILABLE=118]="E2E_IDENTITY_UNAVAILABLE";G[G.GROUP_CREATING=119]="GROUP_CREATING";G[G.GROUP_CREATE_FAILED=120]="GROUP_CREATE_FAILED";G[G.GROUP_BOUNCED=121]="GROUP_BOUNCED";G[G.BLOCK_CONTACT=122]="BLOCK_CONTACT";G[G.EPHEMERAL_SETTING_NOT_APPLIED=123]="EPHEMERAL_SETTING_NOT_APPLIED";G[G.SYNC_FAILED=124]="SYNC_FAILED";G[G.SYNCING=125]="SYNCING";G[G.BIZ_PRIVACY_MODE_INIT_FB=126]="BIZ_PRIVACY_MODE_INIT_FB";G[G.BIZ_PRIVACY_MODE_INIT_BSP=127]="BIZ_PRIVACY_MODE_INIT_BSP";G[G.BIZ_PRIVACY_MODE_TO_FB=128]="BIZ_PRIVACY_MODE_TO_FB";G[G.BIZ_PRIVACY_MODE_TO_BSP=129]="BIZ_PRIVACY_MODE_TO_BSP";G[G.DISAPPEARING_MODE=130]="DISAPPEARING_MODE";G[G.E2E_DEVICE_FETCH_FAILED=131]="E2E_DEVICE_FETCH_FAILED";G[G.ADMIN_REVOKE=132]="ADMIN_REVOKE";G[G.GROUP_INVITE_LINK_GROWTH_LOCKED=133]="GROUP_INVITE_LINK_GROWTH_LOCKED";G[G.COMMUNITY_LINK_PARENT_GROUP=134]="COMMUNITY_LINK_PARENT_GROUP";G[G.COMMUNITY_LINK_SIBLING_GROUP=135]="COMMUNITY_LINK_SIBLING_GROUP";G[G.COMMUNITY_LINK_SUB_GROUP=136]="COMMUNITY_LINK_SUB_GROUP";G[G.COMMUNITY_UNLINK_PARENT_GROUP=137]="COMMUNITY_UNLINK_PARENT_GROUP";G[G.COMMUNITY_UNLINK_SIBLING_GROUP=138]="COMMUNITY_UNLINK_SIBLING_GROUP";G[G.COMMUNITY_UNLINK_SUB_GROUP=139]="COMMUNITY_UNLINK_SUB_GROUP";G[G.GROUP_PARTICIPANT_ACCEPT=140]="GROUP_PARTICIPANT_ACCEPT";G[G.GROUP_PARTICIPANT_LINKED_GROUP_JOIN=141]="GROUP_PARTICIPANT_LINKED_GROUP_JOIN";G[G.COMMUNITY_CREATE=142]="COMMUNITY_CREATE";G[G.EPHEMERAL_KEEP_IN_CHAT=143]="EPHEMERAL_KEEP_IN_CHAT";G[G.GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST=144]="GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST";G[G.GROUP_MEMBERSHIP_JOIN_APPROVAL_MODE=145]="GROUP_MEMBERSHIP_JOIN_APPROVAL_MODE";G[G.INTEGRITY_UNLINK_PARENT_GROUP=146]="INTEGRITY_UNLINK_PARENT_GROUP";G[G.COMMUNITY_PARTICIPANT_PROMOTE=147]="COMMUNITY_PARTICIPANT_PROMOTE";G[G.COMMUNITY_PARTICIPANT_DEMOTE=148]="COMMUNITY_PARTICIPANT_DEMOTE";G[G.COMMUNITY_PARENT_GROUP_DELETED=149]="COMMUNITY_PARENT_GROUP_DELETED";G[G.COMMUNITY_LINK_PARENT_GROUP_MEMBERSHIP_APPROVAL=150]="COMMUNITY_LINK_PARENT_GROUP_MEMBERSHIP_APPROVAL";G[G.GROUP_PARTICIPANT_JOINED_GROUP_AND_PARENT_GROUP=151]="GROUP_PARTICIPANT_JOINED_GROUP_AND_PARENT_GROUP";G[G.MASKED_THREAD_CREATED=152]="MASKED_THREAD_CREATED";G[G.MASKED_THREAD_UNMASKED=153]="MASKED_THREAD_UNMASKED";G[G.BIZ_CHAT_ASSIGNMENT=154]="BIZ_CHAT_ASSIGNMENT";G[G.CHAT_PSA=155]="CHAT_PSA";G[G.CHAT_POLL_CREATION_MESSAGE=156]="CHAT_POLL_CREATION_MESSAGE";G[G.CAG_MASKED_THREAD_CREATED=157]="CAG_MASKED_THREAD_CREATED";G[G.COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED=158]="COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED";G[G.CAG_INVITE_AUTO_ADD=159]="CAG_INVITE_AUTO_ADD";G[G.BIZ_CHAT_ASSIGNMENT_UNASSIGN=160]="BIZ_CHAT_ASSIGNMENT_UNASSIGN";G[G.CAG_INVITE_AUTO_JOINED=161]="CAG_INVITE_AUTO_JOINED";G[G.SCHEDULED_CALL_START_MESSAGE=162]="SCHEDULED_CALL_START_MESSAGE";G[G.COMMUNITY_INVITE_RICH=163]="COMMUNITY_INVITE_RICH";G[G.COMMUNITY_INVITE_AUTO_ADD_RICH=164]="COMMUNITY_INVITE_AUTO_ADD_RICH";G[G.SUB_GROUP_INVITE_RICH=165]="SUB_GROUP_INVITE_RICH";G[G.SUB_GROUP_PARTICIPANT_ADD_RICH=166]="SUB_GROUP_PARTICIPANT_ADD_RICH";G[G.COMMUNITY_LINK_PARENT_GROUP_RICH=167]="COMMUNITY_LINK_PARENT_GROUP_RICH";G[G.COMMUNITY_PARTICIPANT_ADD_RICH=168]="COMMUNITY_PARTICIPANT_ADD_RICH";G[G.SILENCED_UNKNOWN_CALLER_AUDIO=169]="SILENCED_UNKNOWN_CALLER_AUDIO";G[G.SILENCED_UNKNOWN_CALLER_VIDEO=170]="SILENCED_UNKNOWN_CALLER_VIDEO";G[G.GROUP_MEMBER_ADD_MODE=171]="GROUP_MEMBER_ADD_MODE";G[G.GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST_NON_ADMIN_ADD=172]="GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST_NON_ADMIN_ADD";G[G.COMMUNITY_CHANGE_DESCRIPTION=173]="COMMUNITY_CHANGE_DESCRIPTION";G[G.SENDER_INVITE=174]="SENDER_INVITE";G[G.RECEIVER_INVITE=175]="RECEIVER_INVITE";G[G.COMMUNITY_ALLOW_MEMBER_ADDED_GROUPS=176]="COMMUNITY_ALLOW_MEMBER_ADDED_GROUPS";G[G.PINNED_MESSAGE_IN_CHAT=177]="PINNED_MESSAGE_IN_CHAT";G[G.PAYMENT_INVITE_SETUP_INVITER=178]="PAYMENT_INVITE_SETUP_INVITER";G[G.PAYMENT_INVITE_SETUP_INVITEE_RECEIVE_ONLY=179]="PAYMENT_INVITE_SETUP_INVITEE_RECEIVE_ONLY";G[G.PAYMENT_INVITE_SETUP_INVITEE_SEND_AND_RECEIVE=180]="PAYMENT_INVITE_SETUP_INVITEE_SEND_AND_RECEIVE";G[G.LINKED_GROUP_CALL_START=181]="LINKED_GROUP_CALL_START";G[G.REPORT_TO_ADMIN_ENABLED_STATUS=182]="REPORT_TO_ADMIN_ENABLED_STATUS";G[G.EMPTY_SUBGROUP_CREATE=183]="EMPTY_SUBGROUP_CREATE";G[G.SCHEDULED_CALL_CANCEL=184]="SCHEDULED_CALL_CANCEL";G[G.SUBGROUP_ADMIN_TRIGGERED_AUTO_ADD_RICH=185]="SUBGROUP_ADMIN_TRIGGERED_AUTO_ADD_RICH";G[G.GROUP_CHANGE_RECENT_HISTORY_SHARING=186]="GROUP_CHANGE_RECENT_HISTORY_SHARING";G[G.PAID_MESSAGE_SERVER_CAMPAIGN_ID=187]="PAID_MESSAGE_SERVER_CAMPAIGN_ID";G[G.GENERAL_CHAT_CREATE=188]="GENERAL_CHAT_CREATE";G[G.GENERAL_CHAT_ADD=189]="GENERAL_CHAT_ADD";G[G.GENERAL_CHAT_AUTO_ADD_DISABLED=190]="GENERAL_CHAT_AUTO_ADD_DISABLED";G[G.SUGGESTED_SUBGROUP_ANNOUNCE=191]="SUGGESTED_SUBGROUP_ANNOUNCE";G[G.BIZ_BOT_1P_MESSAGING_ENABLED=192]="BIZ_BOT_1P_MESSAGING_ENABLED";G[G.CHANGE_USERNAME=193]="CHANGE_USERNAME";G[G.BIZ_COEX_PRIVACY_INIT_SELF=194]="BIZ_COEX_PRIVACY_INIT_SELF";G[G.BIZ_COEX_PRIVACY_TRANSITION_SELF=195]="BIZ_COEX_PRIVACY_TRANSITION_SELF";G[G.SUPPORT_AI_EDUCATION=196]="SUPPORT_AI_EDUCATION";G[G.BIZ_BOT_3P_MESSAGING_ENABLED=197]="BIZ_BOT_3P_MESSAGING_ENABLED";G[G.REMINDER_SETUP_MESSAGE=198]="REMINDER_SETUP_MESSAGE";G[G.REMINDER_SENT_MESSAGE=199]="REMINDER_SENT_MESSAGE";G[G.REMINDER_CANCEL_MESSAGE=200]="REMINDER_CANCEL_MESSAGE";G[G.BIZ_COEX_PRIVACY_INIT=201]="BIZ_COEX_PRIVACY_INIT";G[G.BIZ_COEX_PRIVACY_TRANSITION=202]="BIZ_COEX_PRIVACY_TRANSITION";G[G.GROUP_DEACTIVATED=203]="GROUP_DEACTIVATED";G[G.COMMUNITY_DEACTIVATE_SIBLING_GROUP=204]="COMMUNITY_DEACTIVATE_SIBLING_GROUP";G[G.EVENT_UPDATED=205]="EVENT_UPDATED";G[G.EVENT_CANCELED=206]="EVENT_CANCELED";G[G.COMMUNITY_OWNER_UPDATED=207]="COMMUNITY_OWNER_UPDATED";G[G.COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN=208]="COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN";G[G.CAPI_GROUP_NE2EE_SYSTEM_MESSAGE=209]="CAPI_GROUP_NE2EE_SYSTEM_MESSAGE";G[G.STATUS_MENTION=210]="STATUS_MENTION";G[G.USER_CONTROLS_SYSTEM_MESSAGE=211]="USER_CONTROLS_SYSTEM_MESSAGE";G[G.SUPPORT_SYSTEM_MESSAGE=212]="SUPPORT_SYSTEM_MESSAGE";G[G.CHANGE_LID=213]="CHANGE_LID";G[G.BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE=214]="BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE";G[G.BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE=215]="BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE";G[G.CHANGE_LIMIT_SHARING=216]="CHANGE_LIMIT_SHARING";G[G.GROUP_MEMBER_LINK_MODE=217]="GROUP_MEMBER_LINK_MODE";G[G.BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE=218]="BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE";G[G.PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE=219]="PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE";G[G.QUARANTINED_MESSAGE=220]="QUARANTINED_MESSAGE";G[G.GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE=221]="GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE";G[G.GROUP_OPEN_BOT_ADDED=222]="GROUP_OPEN_BOT_ADDED";G[G.GROUP_TEE_BOT_ADDED=223]="GROUP_TEE_BOT_ADDED";G[G.CONTACT_INFO=224]="CONTACT_INFO";G[G.SCHEDULED_MESSAGE_CREATED=225]="SCHEDULED_MESSAGE_CREATED";G[G.IDENTITY_TRUST_MARKED=226]="IDENTITY_TRUST_MARKED";G[G.IDENTITY_TRUST_UNMARKED=227]="IDENTITY_TRUST_UNMARKED";G[G.IDENTITY_TRUST_REVOKED=228]="IDENTITY_TRUST_REVOKED";G[G.CTWA_CONSUMER_DISCLOSURE=230]="CTWA_CONSUMER_DISCLOSURE";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sA||={});function ez(){return{}}var _V={encode($,Q=new z){if($.rawId!==void 0)Q.uint32(8).uint32($.rawId);if($.timestamp!==void 0)Q.uint32(16).uint64($.timestamp);if($.keyIndex!==void 0)Q.uint32(24).uint32($.keyIndex);if($.accountType!==void 0)Q.uint32(32).int32($.accountType);if($.deviceType!==void 0)Q.uint32(40).int32($.deviceType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ez();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.rawId=Z.uint32();continue}case 2:{if(J!==16)break;K.timestamp=Z.uint64Value();continue}case 3:{if(J!==24)break;K.keyIndex=Z.uint32();continue}case 4:{if(J!==32)break;K.accountType=Z.int32();continue}case 5:{if(J!==40)break;K.deviceType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return _V.fromPartial($??{})},fromPartial($){let Q=ez();return Q.rawId=$.rawId??void 0,Q.timestamp=$.timestamp??void 0,Q.keyIndex=$.keyIndex??void 0,Q.accountType=$.accountType??void 0,Q.deviceType=$.deviceType??void 0,Q}};function $5(){return{}}var eA={encode($,Q=new z){if($.rawId!==void 0)Q.uint32(8).uint32($.rawId);if($.timestamp!==void 0)Q.uint32(16).uint64($.timestamp);if($.currentIndex!==void 0)Q.uint32(24).uint32($.currentIndex);if($.validIndexes!==void 0&&$.validIndexes.length!==0){Q.uint32(34).fork();for(let q of $.validIndexes)Q.uint32(q);Q.join()}if($.accountType!==void 0)Q.uint32(40).int32($.accountType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??$5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.rawId=Z.uint32();continue}case 2:{if(J!==16)break;K.timestamp=Z.uint64Value();continue}case 3:{if(J!==24)break;K.currentIndex=Z.uint32();continue}case 4:{if(J===32){if(K.validIndexes===void 0)K.validIndexes=[];K.validIndexes.push(Z.uint32());continue}if(J===34){if(K.validIndexes===void 0)K.validIndexes=[];let V=Z.uint32()+Z.pos;while(Z.pos<V)K.validIndexes.push(Z.uint32());continue}break}case 5:{if(J!==40)break;K.accountType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return eA.fromPartial($??{})},fromPartial($){let Q=$5();return Q.rawId=$.rawId??void 0,Q.timestamp=$.timestamp??void 0,Q.currentIndex=$.currentIndex??void 0,Q.validIndexes=$.validIndexes?.map((q)=>q)||void 0,Q.accountType=$.accountType??void 0,Q}};function Q5(){return{}}var hV={encode($,Q=new z){if($.details!==void 0)Q.uint32(10).bytes($.details);if($.accountSignatureKey!==void 0)Q.uint32(18).bytes($.accountSignatureKey);if($.accountSignature!==void 0)Q.uint32(26).bytes($.accountSignature);if($.deviceSignature!==void 0)Q.uint32(34).bytes($.deviceSignature);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Q5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.details=Z.bytes();continue}case 2:{if(J!==18)break;K.accountSignatureKey=Z.bytes();continue}case 3:{if(J!==26)break;K.accountSignature=Z.bytes();continue}case 4:{if(J!==34)break;K.deviceSignature=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return hV.fromPartial($??{})},fromPartial($){let Q=Q5();return Q.details=$.details??void 0,Q.accountSignatureKey=$.accountSignatureKey??void 0,Q.accountSignature=$.accountSignature??void 0,Q.deviceSignature=$.deviceSignature??void 0,Q}};function Z5(){return{}}var lV={encode($,Q=new z){if($.details!==void 0)Q.uint32(10).bytes($.details);if($.hmac!==void 0)Q.uint32(18).bytes($.hmac);if($.accountType!==void 0)Q.uint32(24).int32($.accountType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Z5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.details=Z.bytes();continue}case 2:{if(J!==18)break;K.hmac=Z.bytes();continue}case 3:{if(J!==24)break;K.accountType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return lV.fromPartial($??{})},fromPartial($){let Q=Z5();return Q.details=$.details??void 0,Q.hmac=$.hmac??void 0,Q.accountType=$.accountType??void 0,Q}};function J5(){return{}}var pV={encode($,Q=new z){if($.details!==void 0)Q.uint32(10).bytes($.details);if($.accountSignature!==void 0)Q.uint32(18).bytes($.accountSignature);if($.accountSignatureKey!==void 0)Q.uint32(26).bytes($.accountSignatureKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??J5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.details=Z.bytes();continue}case 2:{if(J!==18)break;K.accountSignature=Z.bytes();continue}case 3:{if(J!==26)break;K.accountSignatureKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return pV.fromPartial($??{})},fromPartial($){let Q=J5();return Q.details=$.details??void 0,Q.accountSignature=$.accountSignature??void 0,Q.accountSignatureKey=$.accountSignatureKey??void 0,Q}};function K5(){return{}}var $3={encode($,Q=new z){if($.lastFetchTime!==void 0)Q.uint32(8).int64($.lastFetchTime);if($.capabilityOptions!==void 0&&$.capabilityOptions.length!==0)for(let q of $.capabilityOptions)b0.encode(q,Q.uint32(18).fork()).join();if($.conversationOptions!==void 0&&$.conversationOptions.length!==0)for(let q of $.conversationOptions)b0.encode(q,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??K5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.lastFetchTime=Z.int64Value();continue}case 2:{if(J!==18)break;if(K.capabilityOptions===void 0)K.capabilityOptions=[];let V=b0.decode(Z,Z.uint32());if(V!==void 0)K.capabilityOptions.push(V);continue}case 3:{if(J!==26)break;if(K.conversationOptions===void 0)K.conversationOptions=[];let V=b0.decode(Z,Z.uint32());if(V!==void 0)K.conversationOptions.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return $3.fromPartial($??{})},fromPartial($){let Q=K5();return Q.lastFetchTime=$.lastFetchTime??void 0,Q.capabilityOptions=$.capabilityOptions?.map((q)=>b0.fromPartial(q))||void 0,Q.conversationOptions=$.conversationOptions?.map((q)=>b0.fromPartial(q))||void 0,Q}};function q5(){return{}}var b0={encode($,Q=new z){if($.type!==void 0)Q.uint32(8).int32($.type);if($.title!==void 0)Q.uint32(18).string($.title);if($.promptText!==void 0)Q.uint32(26).string($.promptText);if($.sessionId!==void 0)Q.uint32(34).string($.sessionId);if($.imageWdsIdentifier!==void 0)Q.uint32(42).string($.imageWdsIdentifier);if($.imageTintColor!==void 0)Q.uint32(50).string($.imageTintColor);if($.imageBackgroundColor!==void 0)Q.uint32(58).string($.imageBackgroundColor);if($.cardTypeId!==void 0)Q.uint32(66).string($.cardTypeId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??q5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.type=Z.int32();continue}case 2:{if(J!==18)break;K.title=Z.string();continue}case 3:{if(J!==26)break;K.promptText=Z.string();continue}case 4:{if(J!==34)break;K.sessionId=Z.string();continue}case 5:{if(J!==42)break;K.imageWdsIdentifier=Z.string();continue}case 6:{if(J!==50)break;K.imageTintColor=Z.string();continue}case 7:{if(J!==58)break;K.imageBackgroundColor=Z.string();continue}case 8:{if(J!==66)break;K.cardTypeId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return b0.fromPartial($??{})},fromPartial($){let Q=q5();return Q.type=$.type??void 0,Q.title=$.title??void 0,Q.promptText=$.promptText??void 0,Q.sessionId=$.sessionId??void 0,Q.imageWdsIdentifier=$.imageWdsIdentifier??void 0,Q.imageTintColor=$.imageTintColor??void 0,Q.imageBackgroundColor=$.imageBackgroundColor??void 0,Q.cardTypeId=$.cardTypeId??void 0,Q}};function X5(){return{}}var DQ={encode($,Q=new z){if($.collectionId!==void 0)Q.uint32(10).string($.collectionId);if($.expectedMediaCount!==void 0)Q.uint32(16).uint32($.expectedMediaCount);if($.hasGlobalCaption!==void 0)Q.uint32(24).bool($.hasGlobalCaption);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??X5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.collectionId=Z.string();continue}case 2:{if(J!==16)break;K.expectedMediaCount=Z.uint32();continue}case 3:{if(J!==24)break;K.hasGlobalCaption=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return DQ.fromPartial($??{})},fromPartial($){let Q=X5();return Q.collectionId=$.collectionId??void 0,Q.expectedMediaCount=$.expectedMediaCount??void 0,Q.hasGlobalCaption=$.hasGlobalCaption??void 0,Q}};function Y5(){return{}}var FQ={encode($,Q=new z){if($.collectionId!==void 0)Q.uint32(10).string($.collectionId);if($.uploadOrderIndex!==void 0)Q.uint32(16).uint32($.uploadOrderIndex);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Y5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.collectionId=Z.string();continue}case 2:{if(J!==16)break;K.uploadOrderIndex=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return FQ.fromPartial($??{})},fromPartial($){let Q=Y5();return Q.collectionId=$.collectionId??void 0,Q.uploadOrderIndex=$.uploadOrderIndex??void 0,Q}};function V5(){return{}}var PQ={encode($,Q=new z){if($.hatchMetadataSync!==void 0)nK.encode($.hatchMetadataSync,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??V5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.hatchMetadataSync=nK.decode(Z,Z.uint32(),K.hatchMetadataSync);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return PQ.fromPartial($??{})},fromPartial($){let Q=V5();return Q.hatchMetadataSync=$.hatchMetadataSync!==void 0&&$.hatchMetadataSync!==null?nK.fromPartial($.hatchMetadataSync):void 0,Q}};function z5(){return{}}var LQ={encode($,Q=new z){if($.c2PaMetadata!==void 0)o0.encode($.c2PaMetadata,Q.uint32(10).fork()).join();if($.iptcMetadata!==void 0)o0.encode($.iptcMetadata,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??z5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.c2PaMetadata=o0.decode(Z,Z.uint32(),K.c2PaMetadata);continue}case 2:{if(J!==18)break;K.iptcMetadata=o0.decode(Z,Z.uint32(),K.iptcMetadata);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return LQ.fromPartial($??{})},fromPartial($){let Q=z5();return Q.c2PaMetadata=$.c2PaMetadata!==void 0&&$.c2PaMetadata!==null?o0.fromPartial($.c2PaMetadata):void 0,Q.iptcMetadata=$.iptcMetadata!==void 0&&$.iptcMetadata!==null?o0.fromPartial($.iptcMetadata):void 0,Q}};function H5(){return{}}var o0={encode($,Q=new z){if($.createdWithGenAi!==void 0)Q.uint32(8).bool($.createdWithGenAi);if($.editedWithGenAi!==void 0)Q.uint32(16).bool($.editedWithGenAi);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??H5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.createdWithGenAi=Z.bool();continue}case 2:{if(J!==16)break;K.editedWithGenAi=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return o0.fromPartial($??{})},fromPartial($){let Q=H5();return Q.createdWithGenAi=$.createdWithGenAi??void 0,Q.editedWithGenAi=$.editedWithGenAi??void 0,Q}};function G5(){return{}}var xQ={encode($,Q=new z){if($.messageKey!==void 0)N.encode($.messageKey,Q.uint32(10).fork()).join();if($.message!==void 0)c.encode($.message,Q.uint32(18).fork()).join();if($.timestamp!==void 0)Q.uint32(24).int64($.timestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??G5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageKey=N.decode(Z,Z.uint32(),K.messageKey);continue}case 2:{if(J!==18)break;K.message=c.decode(Z,Z.uint32(),K.message);continue}case 3:{if(J!==24)break;K.timestamp=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return xQ.fromPartial($??{})},fromPartial($){let Q=G5();return Q.messageKey=$.messageKey!==void 0&&$.messageKey!==null?N.fromPartial($.messageKey):void 0,Q.message=$.message!==void 0&&$.message!==null?c.fromPartial($.message):void 0,Q.timestamp=$.timestamp??void 0,Q}};function U5(){return{}}var kQ={encode($,Q=new z){if($.messageKey!==void 0)N.encode($.messageKey,Q.uint32(10).fork()).join();if($.responseTimestampMs!==void 0)Q.uint32(16).int64($.responseTimestampMs);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??U5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageKey=N.decode(Z,Z.uint32(),K.messageKey);continue}case 2:{if(J!==16)break;K.responseTimestampMs=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return kQ.fromPartial($??{})},fromPartial($){let Q=U5();return Q.messageKey=$.messageKey!==void 0&&$.messageKey!==null?N.fromPartial($.messageKey):void 0,Q.responseTimestampMs=$.responseTimestampMs??void 0,Q}};function C5(){return{}}var NQ={encode($,Q=new z){if($.codeLanguage!==void 0)Q.uint32(10).string($.codeLanguage);if($.codeBlocks!==void 0&&$.codeBlocks.length!==0)for(let q of $.codeBlocks)BQ.encode(q,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??C5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.codeLanguage=Z.string();continue}case 2:{if(J!==18)break;if(K.codeBlocks===void 0)K.codeBlocks=[];let V=BQ.decode(Z,Z.uint32());if(V!==void 0)K.codeBlocks.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return NQ.fromPartial($??{})},fromPartial($){let Q=C5();return Q.codeLanguage=$.codeLanguage??void 0,Q.codeBlocks=$.codeBlocks?.map((q)=>BQ.fromPartial(q))||void 0,Q}};function D5(){return{}}var BQ={encode($,Q=new z){if($.highlightType!==void 0)Q.uint32(8).int32($.highlightType);if($.codeContent!==void 0)Q.uint32(18).string($.codeContent);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??D5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.highlightType=Z.int32();continue}case 2:{if(J!==18)break;K.codeContent=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return BQ.fromPartial($??{})},fromPartial($){let Q=D5();return Q.highlightType=$.highlightType??void 0,Q.codeContent=$.codeContent??void 0,Q}};function F5(){return{}}var RQ={encode($,Q=new z){if($.itemsMetadata!==void 0&&$.itemsMetadata.length!==0)for(let q of $.itemsMetadata)OQ.encode(q,Q.uint32(10).fork()).join();if($.contentType!==void 0)Q.uint32(16).int32($.contentType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??F5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.itemsMetadata===void 0)K.itemsMetadata=[];let V=OQ.decode(Z,Z.uint32());if(V!==void 0)K.itemsMetadata.push(V);continue}case 2:{if(J!==16)break;K.contentType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return RQ.fromPartial($??{})},fromPartial($){let Q=F5();return Q.itemsMetadata=$.itemsMetadata?.map((q)=>OQ.fromPartial(q))||void 0,Q.contentType=$.contentType??void 0,Q}};function P5(){return{}}var OQ={encode($,Q=new z){if($.reelItem!==void 0)AQ.encode($.reelItem,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??P5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.reelItem=AQ.decode(Z,Z.uint32(),K.reelItem);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return OQ.fromPartial($??{})},fromPartial($){let Q=P5();return Q.reelItem=$.reelItem!==void 0&&$.reelItem!==null?AQ.fromPartial($.reelItem):void 0,Q}};function L5(){return{}}var AQ={encode($,Q=new z){if($.title!==void 0)Q.uint32(10).string($.title);if($.profileIconUrl!==void 0)Q.uint32(18).string($.profileIconUrl);if($.thumbnailUrl!==void 0)Q.uint32(26).string($.thumbnailUrl);if($.videoUrl!==void 0)Q.uint32(34).string($.videoUrl);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??L5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.title=Z.string();continue}case 2:{if(J!==18)break;K.profileIconUrl=Z.string();continue}case 3:{if(J!==26)break;K.thumbnailUrl=Z.string();continue}case 4:{if(J!==34)break;K.videoUrl=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return AQ.fromPartial($??{})},fromPartial($){let Q=L5();return Q.title=$.title??void 0,Q.profileIconUrl=$.profileIconUrl??void 0,Q.thumbnailUrl=$.thumbnailUrl??void 0,Q.videoUrl=$.videoUrl??void 0,Q}};function x5(){return{}}var EQ={encode($,Q=new z){if($.type!==void 0)Q.uint32(8).int32($.type);if($.version!==void 0)Q.uint32(16).uint64($.version);if($.url!==void 0)Q.uint32(26).string($.url);if($.loopCount!==void 0)Q.uint32(32).uint32($.loopCount);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??x5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.type=Z.int32();continue}case 2:{if(J!==16)break;K.version=Z.uint64Value();continue}case 3:{if(J!==26)break;K.url=Z.string();continue}case 4:{if(J!==32)break;K.loopCount=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return EQ.fromPartial($??{})},fromPartial($){let Q=x5();return Q.type=$.type??void 0,Q.version=$.version??void 0,Q.url=$.url??void 0,Q.loopCount=$.loopCount??void 0,Q}};function k5(){return{}}var MQ={encode($,Q=new z){if($.gridImageUrl!==void 0)x0.encode($.gridImageUrl,Q.uint32(10).fork()).join();if($.imageUrls!==void 0&&$.imageUrls.length!==0)for(let q of $.imageUrls)x0.encode(q,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??k5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.gridImageUrl=x0.decode(Z,Z.uint32(),K.gridImageUrl);continue}case 2:{if(J!==18)break;if(K.imageUrls===void 0)K.imageUrls=[];let V=x0.decode(Z,Z.uint32());if(V!==void 0)K.imageUrls.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return MQ.fromPartial($??{})},fromPartial($){let Q=k5();return Q.gridImageUrl=$.gridImageUrl!==void 0&&$.gridImageUrl!==null?x0.fromPartial($.gridImageUrl):void 0,Q.imageUrls=$.imageUrls?.map((q)=>x0.fromPartial(q))||void 0,Q}};function N5(){return{}}var x0={encode($,Q=new z){if($.imagePreviewUrl!==void 0)Q.uint32(10).string($.imagePreviewUrl);if($.imageHighResUrl!==void 0)Q.uint32(18).string($.imageHighResUrl);if($.sourceUrl!==void 0)Q.uint32(26).string($.sourceUrl);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??N5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.imagePreviewUrl=Z.string();continue}case 2:{if(J!==18)break;K.imageHighResUrl=Z.string();continue}case 3:{if(J!==26)break;K.sourceUrl=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return x0.fromPartial($??{})},fromPartial($){let Q=N5();return Q.imagePreviewUrl=$.imagePreviewUrl??void 0,Q.imageHighResUrl=$.imageHighResUrl??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q}};function B5(){return{}}var WQ={encode($,Q=new z){if($.imageUrl!==void 0)x0.encode($.imageUrl,Q.uint32(10).fork()).join();if($.imageText!==void 0)Q.uint32(18).string($.imageText);if($.alignment!==void 0)Q.uint32(24).int32($.alignment);if($.tapLinkUrl!==void 0)Q.uint32(34).string($.tapLinkUrl);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??B5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.imageUrl=x0.decode(Z,Z.uint32(),K.imageUrl);continue}case 2:{if(J!==18)break;K.imageText=Z.string();continue}case 3:{if(J!==24)break;K.alignment=Z.int32();continue}case 4:{if(J!==34)break;K.tapLinkUrl=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return WQ.fromPartial($??{})},fromPartial($){let Q=B5();return Q.imageUrl=$.imageUrl!==void 0&&$.imageUrl!==null?x0.fromPartial($.imageUrl):void 0,Q.imageText=$.imageText??void 0,Q.alignment=$.alignment??void 0,Q.tapLinkUrl=$.tapLinkUrl??void 0,Q}};function R5(){return{}}var SQ={encode($,Q=new z){if($.text!==void 0)Q.uint32(10).string($.text);if($.expressions!==void 0&&$.expressions.length!==0)for(let q of $.expressions)IQ.encode(q,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??R5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.text=Z.string();continue}case 2:{if(J!==18)break;if(K.expressions===void 0)K.expressions=[];let V=IQ.decode(Z,Z.uint32());if(V!==void 0)K.expressions.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return SQ.fromPartial($??{})},fromPartial($){let Q=R5();return Q.text=$.text??void 0,Q.expressions=$.expressions?.map((q)=>IQ.fromPartial(q))||void 0,Q}};function O5(){return{}}var IQ={encode($,Q=new z){if($.latexExpression!==void 0)Q.uint32(10).string($.latexExpression);if($.url!==void 0)Q.uint32(18).string($.url);if($.width!==void 0)Q.uint32(25).double($.width);if($.height!==void 0)Q.uint32(33).double($.height);if($.fontHeight!==void 0)Q.uint32(41).double($.fontHeight);if($.imageTopPadding!==void 0)Q.uint32(49).double($.imageTopPadding);if($.imageLeadingPadding!==void 0)Q.uint32(57).double($.imageLeadingPadding);if($.imageBottomPadding!==void 0)Q.uint32(65).double($.imageBottomPadding);if($.imageTrailingPadding!==void 0)Q.uint32(73).double($.imageTrailingPadding);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??O5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.latexExpression=Z.string();continue}case 2:{if(J!==18)break;K.url=Z.string();continue}case 3:{if(J!==25)break;K.width=Z.double();continue}case 4:{if(J!==33)break;K.height=Z.double();continue}case 5:{if(J!==41)break;K.fontHeight=Z.double();continue}case 6:{if(J!==49)break;K.imageTopPadding=Z.double();continue}case 7:{if(J!==57)break;K.imageLeadingPadding=Z.double();continue}case 8:{if(J!==65)break;K.imageBottomPadding=Z.double();continue}case 9:{if(J!==73)break;K.imageTrailingPadding=Z.double();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return IQ.fromPartial($??{})},fromPartial($){let Q=O5();return Q.latexExpression=$.latexExpression??void 0,Q.url=$.url??void 0,Q.width=$.width??void 0,Q.height=$.height??void 0,Q.fontHeight=$.fontHeight??void 0,Q.imageTopPadding=$.imageTopPadding??void 0,Q.imageLeadingPadding=$.imageLeadingPadding??void 0,Q.imageBottomPadding=$.imageBottomPadding??void 0,Q.imageTrailingPadding=$.imageTrailingPadding??void 0,Q}};function A5(){return{}}var TQ={encode($,Q=new z){if($.centerLatitude!==void 0)Q.uint32(9).double($.centerLatitude);if($.centerLongitude!==void 0)Q.uint32(17).double($.centerLongitude);if($.latitudeDelta!==void 0)Q.uint32(25).double($.latitudeDelta);if($.longitudeDelta!==void 0)Q.uint32(33).double($.longitudeDelta);if($.annotations!==void 0&&$.annotations.length!==0)for(let q of $.annotations)yQ.encode(q,Q.uint32(42).fork()).join();if($.showInfoList!==void 0)Q.uint32(48).bool($.showInfoList);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??A5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==9)break;K.centerLatitude=Z.double();continue}case 2:{if(J!==17)break;K.centerLongitude=Z.double();continue}case 3:{if(J!==25)break;K.latitudeDelta=Z.double();continue}case 4:{if(J!==33)break;K.longitudeDelta=Z.double();continue}case 5:{if(J!==42)break;if(K.annotations===void 0)K.annotations=[];let V=yQ.decode(Z,Z.uint32());if(V!==void 0)K.annotations.push(V);continue}case 6:{if(J!==48)break;K.showInfoList=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return TQ.fromPartial($??{})},fromPartial($){let Q=A5();return Q.centerLatitude=$.centerLatitude??void 0,Q.centerLongitude=$.centerLongitude??void 0,Q.latitudeDelta=$.latitudeDelta??void 0,Q.longitudeDelta=$.longitudeDelta??void 0,Q.annotations=$.annotations?.map((q)=>yQ.fromPartial(q))||void 0,Q.showInfoList=$.showInfoList??void 0,Q}};function E5(){return{}}var yQ={encode($,Q=new z){if($.annotationNumber!==void 0)Q.uint32(8).uint32($.annotationNumber);if($.latitude!==void 0)Q.uint32(17).double($.latitude);if($.longitude!==void 0)Q.uint32(25).double($.longitude);if($.title!==void 0)Q.uint32(34).string($.title);if($.body!==void 0)Q.uint32(42).string($.body);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??E5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.annotationNumber=Z.uint32();continue}case 2:{if(J!==17)break;K.latitude=Z.double();continue}case 3:{if(J!==25)break;K.longitude=Z.double();continue}case 4:{if(J!==34)break;K.title=Z.string();continue}case 5:{if(J!==42)break;K.body=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return yQ.fromPartial($??{})},fromPartial($){let Q=E5();return Q.annotationNumber=$.annotationNumber??void 0,Q.latitude=$.latitude??void 0,Q.longitude=$.longitude??void 0,Q.title=$.title??void 0,Q.body=$.body??void 0,Q}};function M5(){return{}}var vQ={encode($,Q=new z){if($.messageType!==void 0)Q.uint32(8).int32($.messageType);if($.submessages!==void 0&&$.submessages.length!==0)for(let q of $.submessages)fQ.encode(q,Q.uint32(18).fork()).join();if($.unifiedResponse!==void 0)lQ.encode($.unifiedResponse,Q.uint32(26).fork()).join();if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(34).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??M5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.messageType=Z.int32();continue}case 2:{if(J!==18)break;if(K.submessages===void 0)K.submessages=[];let V=fQ.decode(Z,Z.uint32());if(V!==void 0)K.submessages.push(V);continue}case 3:{if(J!==26)break;K.unifiedResponse=lQ.decode(Z,Z.uint32(),K.unifiedResponse);continue}case 4:{if(J!==34)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return vQ.fromPartial($??{})},fromPartial($){let Q=M5();return Q.messageType=$.messageType??void 0,Q.submessages=$.submessages?.map((q)=>fQ.fromPartial(q))||void 0,Q.unifiedResponse=$.unifiedResponse!==void 0&&$.unifiedResponse!==null?lQ.fromPartial($.unifiedResponse):void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function W5(){return{}}var fQ={encode($,Q=new z){if($.messageType!==void 0)Q.uint32(8).int32($.messageType);if($.gridImageMetadata!==void 0)MQ.encode($.gridImageMetadata,Q.uint32(18).fork()).join();if($.messageText!==void 0)Q.uint32(26).string($.messageText);if($.imageMetadata!==void 0)WQ.encode($.imageMetadata,Q.uint32(34).fork()).join();if($.codeMetadata!==void 0)NQ.encode($.codeMetadata,Q.uint32(42).fork()).join();if($.tableMetadata!==void 0)_Q.encode($.tableMetadata,Q.uint32(50).fork()).join();if($.dynamicMetadata!==void 0)EQ.encode($.dynamicMetadata,Q.uint32(58).fork()).join();if($.latexMetadata!==void 0)SQ.encode($.latexMetadata,Q.uint32(66).fork()).join();if($.mapMetadata!==void 0)TQ.encode($.mapMetadata,Q.uint32(74).fork()).join();if($.contentItemsMetadata!==void 0)RQ.encode($.contentItemsMetadata,Q.uint32(82).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??W5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.messageType=Z.int32();continue}case 2:{if(J!==18)break;K.gridImageMetadata=MQ.decode(Z,Z.uint32(),K.gridImageMetadata);continue}case 3:{if(J!==26)break;K.messageText=Z.string();continue}case 4:{if(J!==34)break;K.imageMetadata=WQ.decode(Z,Z.uint32(),K.imageMetadata);continue}case 5:{if(J!==42)break;K.codeMetadata=NQ.decode(Z,Z.uint32(),K.codeMetadata);continue}case 6:{if(J!==50)break;K.tableMetadata=_Q.decode(Z,Z.uint32(),K.tableMetadata);continue}case 7:{if(J!==58)break;K.dynamicMetadata=EQ.decode(Z,Z.uint32(),K.dynamicMetadata);continue}case 8:{if(J!==66)break;K.latexMetadata=SQ.decode(Z,Z.uint32(),K.latexMetadata);continue}case 9:{if(J!==74)break;K.mapMetadata=TQ.decode(Z,Z.uint32(),K.mapMetadata);continue}case 10:{if(J!==82)break;K.contentItemsMetadata=RQ.decode(Z,Z.uint32(),K.contentItemsMetadata);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return fQ.fromPartial($??{})},fromPartial($){let Q=W5();return Q.messageType=$.messageType??void 0,Q.gridImageMetadata=$.gridImageMetadata!==void 0&&$.gridImageMetadata!==null?MQ.fromPartial($.gridImageMetadata):void 0,Q.messageText=$.messageText??void 0,Q.imageMetadata=$.imageMetadata!==void 0&&$.imageMetadata!==null?WQ.fromPartial($.imageMetadata):void 0,Q.codeMetadata=$.codeMetadata!==void 0&&$.codeMetadata!==null?NQ.fromPartial($.codeMetadata):void 0,Q.tableMetadata=$.tableMetadata!==void 0&&$.tableMetadata!==null?_Q.fromPartial($.tableMetadata):void 0,Q.dynamicMetadata=$.dynamicMetadata!==void 0&&$.dynamicMetadata!==null?EQ.fromPartial($.dynamicMetadata):void 0,Q.latexMetadata=$.latexMetadata!==void 0&&$.latexMetadata!==null?SQ.fromPartial($.latexMetadata):void 0,Q.mapMetadata=$.mapMetadata!==void 0&&$.mapMetadata!==null?TQ.fromPartial($.mapMetadata):void 0,Q.contentItemsMetadata=$.contentItemsMetadata!==void 0&&$.contentItemsMetadata!==null?RQ.fromPartial($.contentItemsMetadata):void 0,Q}};function S5(){return{}}var _Q={encode($,Q=new z){if($.rows!==void 0&&$.rows.length!==0)for(let q of $.rows)hQ.encode(q,Q.uint32(10).fork()).join();if($.title!==void 0)Q.uint32(18).string($.title);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??S5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.rows===void 0)K.rows=[];let V=hQ.decode(Z,Z.uint32());if(V!==void 0)K.rows.push(V);continue}case 2:{if(J!==18)break;K.title=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return _Q.fromPartial($??{})},fromPartial($){let Q=S5();return Q.rows=$.rows?.map((q)=>hQ.fromPartial(q))||void 0,Q.title=$.title??void 0,Q}};function I5(){return{}}var hQ={encode($,Q=new z){if($.items!==void 0&&$.items.length!==0)for(let q of $.items)Q.uint32(10).string(q);if($.isHeading!==void 0)Q.uint32(16).bool($.isHeading);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??I5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.items===void 0)K.items=[];let V=Z.string();if(V!==void 0)K.items.push(V);continue}case 2:{if(J!==16)break;K.isHeading=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return hQ.fromPartial($??{})},fromPartial($){let Q=I5();return Q.items=$.items?.map((q)=>q)||void 0,Q.isHeading=$.isHeading??void 0,Q}};function T5(){return{}}var lQ={encode($,Q=new z){if($.data!==void 0)Q.uint32(10).bytes($.data);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??T5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.data=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return lQ.fromPartial($??{})},fromPartial($){let Q=T5();return Q.data=$.data??void 0,Q}};function y5(){return{}}var pQ={encode($,Q=new z){if($.requestType!==void 0)Q.uint32(8).int32($.requestType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??y5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.requestType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return pQ.fromPartial($??{})},fromPartial($){let Q=y5();return Q.requestType=$.requestType??void 0,Q}};function v5(){return{}}var uQ={encode($,Q=new z){if($.serverInfo!==void 0)jQ.encode($.serverInfo,Q.uint32(10).fork()).join();if($.clientInfo!==void 0)wQ.encode($.clientInfo,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??v5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.serverInfo=jQ.decode(Z,Z.uint32(),K.serverInfo);continue}case 2:{if(J!==18)break;K.clientInfo=wQ.decode(Z,Z.uint32(),K.clientInfo);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return uQ.fromPartial($??{})},fromPartial($){let Q=v5();return Q.serverInfo=$.serverInfo!==void 0&&$.serverInfo!==null?jQ.fromPartial($.serverInfo):void 0,Q.clientInfo=$.clientInfo!==void 0&&$.clientInfo!==null?wQ.fromPartial($.clientInfo):void 0,Q}};function f5(){return{}}var wQ={encode($,Q=new z){if($.type!==void 0)Q.uint32(8).int32($.type);if($.sourceChatJid!==void 0)Q.uint32(18).string($.sourceChatJid);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??f5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.type=Z.int32();continue}case 2:{if(J!==18)break;K.sourceChatJid=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return wQ.fromPartial($??{})},fromPartial($){let Q=f5();return Q.type=$.type??void 0,Q.sourceChatJid=$.sourceChatJid??void 0,Q}};function _5(){return{}}var jQ={encode($,Q=new z){if($.title!==void 0)Q.uint32(10).string($.title);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??_5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.title=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return jQ.fromPartial($??{})},fromPartial($){let Q=_5();return Q.title=$.title??void 0,Q}};function h5(){return{}}var cQ={encode($,Q=new z){if($.lid!==void 0)Q.uint32(10).string($.lid);if($.username!==void 0)Q.uint32(18).string($.username);if($.countryCode!==void 0)Q.uint32(26).string($.countryCode);if($.isUsernameDeleted!==void 0)Q.uint32(32).bool($.isUsernameDeleted);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??h5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.lid=Z.string();continue}case 2:{if(J!==18)break;K.username=Z.string();continue}case 3:{if(J!==26)break;K.countryCode=Z.string();continue}case 4:{if(J!==32)break;K.isUsernameDeleted=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return cQ.fromPartial($??{})},fromPartial($){let Q=h5();return Q.lid=$.lid??void 0,Q.username=$.username??void 0,Q.countryCode=$.countryCode??void 0,Q.isUsernameDeleted=$.isUsernameDeleted??void 0,Q}};function l5(){return{}}var Q3={encode($,Q=new z){if($.accesstoken!==void 0)Q.uint32(10).string($.accesstoken);if($.fbid!==void 0)Q.uint32(18).string($.fbid);if($.nonce!==void 0)Q.uint32(26).string($.nonce);if($.encryptedPassword!==void 0)Q.uint32(34).string($.encryptedPassword);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??l5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.accesstoken=Z.string();continue}case 2:{if(J!==18)break;K.fbid=Z.string();continue}case 3:{if(J!==26)break;K.nonce=Z.string();continue}case 4:{if(J!==34)break;K.encryptedPassword=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Q3.fromPartial($??{})},fromPartial($){let Q=l5();return Q.accesstoken=$.accesstoken??void 0,Q.fbid=$.fbid??void 0,Q.nonce=$.nonce??void 0,Q.encryptedPassword=$.encryptedPassword??void 0,Q}};function p5(){return{}}var dQ={encode($,Q=new z){if($.url!==void 0)Q.uint32(10).string($.url);if($.buttonTitle!==void 0)Q.uint32(18).string($.buttonTitle);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??p5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.url=Z.string();continue}case 2:{if(J!==18)break;K.buttonTitle=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return dQ.fromPartial($??{})},fromPartial($){let Q=p5();return Q.url=$.url??void 0,Q.buttonTitle=$.buttonTitle??void 0,Q}};function u5(){return{}}var L0={encode($,Q=new z){if($.downloadImages!==void 0)Q.uint32(8).bool($.downloadImages);if($.downloadAudio!==void 0)Q.uint32(16).bool($.downloadAudio);if($.downloadVideo!==void 0)Q.uint32(24).bool($.downloadVideo);if($.downloadDocuments!==void 0)Q.uint32(32).bool($.downloadDocuments);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??u5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.downloadImages=Z.bool();continue}case 2:{if(J!==16)break;K.downloadAudio=Z.bool();continue}case 3:{if(J!==24)break;K.downloadVideo=Z.bool();continue}case 4:{if(J!==32)break;K.downloadDocuments=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return L0.fromPartial($??{})},fromPartial($){let Q=u5();return Q.downloadImages=$.downloadImages??void 0,Q.downloadAudio=$.downloadAudio??void 0,Q.downloadVideo=$.downloadVideo??void 0,Q.downloadDocuments=$.downloadDocuments??void 0,Q}};function w5(){return{}}var nQ={encode($,Q=new z){if($.fbid!==void 0)Q.uint32(10).string($.fbid);if($.password!==void 0)Q.uint32(18).string($.password);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??w5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.fbid=Z.string();continue}case 2:{if(J!==18)break;K.password=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return nQ.fromPartial($??{})},fromPartial($){let Q=w5();return Q.fbid=$.fbid??void 0,Q.password=$.password??void 0,Q}};function j5(){return{}}var bQ={encode($,Q=new z){if($.encryptedPrevEpochAnonId!==void 0)Q.uint32(10).bytes($.encryptedPrevEpochAnonId);if($.encryptedPrevEpochRootKey!==void 0)Q.uint32(18).bytes($.encryptedPrevEpochRootKey);if($.prevEpochRootKeyFingerprint!==void 0)Q.uint32(26).bytes($.prevEpochRootKeyFingerprint);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??j5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encryptedPrevEpochAnonId=Z.bytes();continue}case 2:{if(J!==18)break;K.encryptedPrevEpochRootKey=Z.bytes();continue}case 3:{if(J!==26)break;K.prevEpochRootKeyFingerprint=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return bQ.fromPartial($??{})},fromPartial($){let Q=j5();return Q.encryptedPrevEpochAnonId=$.encryptedPrevEpochAnonId??void 0,Q.encryptedPrevEpochRootKey=$.encryptedPrevEpochRootKey??void 0,Q.prevEpochRootKeyFingerprint=$.prevEpochRootKeyFingerprint??void 0,Q}};function c5(){return{}}var Z3={encode($,Q=new z){if($.whatsappBizAcctFbid!==void 0)Q.uint32(8).uint64($.whatsappBizAcctFbid);if($.whatsappAcctNumber!==void 0)Q.uint32(18).string($.whatsappAcctNumber);if($.issueTime!==void 0)Q.uint32(24).uint64($.issueTime);if($.hostStorage!==void 0)Q.uint32(32).int32($.hostStorage);if($.accountType!==void 0)Q.uint32(40).int32($.accountType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??c5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.whatsappBizAcctFbid=Z.uint64Value();continue}case 2:{if(J!==18)break;K.whatsappAcctNumber=Z.string();continue}case 3:{if(J!==24)break;K.issueTime=Z.uint64Value();continue}case 4:{if(J!==32)break;K.hostStorage=Z.int32();continue}case 5:{if(J!==40)break;K.accountType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Z3.fromPartial($??{})},fromPartial($){let Q=c5();return Q.whatsappBizAcctFbid=$.whatsappBizAcctFbid??void 0,Q.whatsappAcctNumber=$.whatsappAcctNumber??void 0,Q.issueTime=$.issueTime??void 0,Q.hostStorage=$.hostStorage??void 0,Q.accountType=$.accountType??void 0,Q}};function d5(){return{}}var J3={encode($,Q=new z){if($.vnameCert!==void 0)c0.encode($.vnameCert,Q.uint32(10).fork()).join();if($.bizAcctLinkInfo!==void 0)Q.uint32(18).bytes($.bizAcctLinkInfo);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??d5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.vnameCert=c0.decode(Z,Z.uint32(),K.vnameCert);continue}case 2:{if(J!==18)break;K.bizAcctLinkInfo=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return J3.fromPartial($??{})},fromPartial($){let Q=d5();return Q.vnameCert=$.vnameCert!==void 0&&$.vnameCert!==null?c0.fromPartial($.vnameCert):void 0,Q.bizAcctLinkInfo=$.bizAcctLinkInfo??void 0,Q}};function n5(){return{}}var K3={encode($,Q=new z){if($.vlevel!==void 0)Q.uint32(8).int32($.vlevel);if($.vnameCert!==void 0)c0.encode($.vnameCert,Q.uint32(18).fork()).join();if($.signed!==void 0)Q.uint32(24).bool($.signed);if($.revoked!==void 0)Q.uint32(32).bool($.revoked);if($.hostStorage!==void 0)Q.uint32(40).int32($.hostStorage);if($.actualActors!==void 0)Q.uint32(48).int32($.actualActors);if($.privacyModeTs!==void 0)Q.uint32(56).uint64($.privacyModeTs);if($.featureControls!==void 0)Q.uint32(64).uint64($.featureControls);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??n5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.vlevel=Z.int32();continue}case 2:{if(J!==18)break;K.vnameCert=c0.decode(Z,Z.uint32(),K.vnameCert);continue}case 3:{if(J!==24)break;K.signed=Z.bool();continue}case 4:{if(J!==32)break;K.revoked=Z.bool();continue}case 5:{if(J!==40)break;K.hostStorage=Z.int32();continue}case 6:{if(J!==48)break;K.actualActors=Z.int32();continue}case 7:{if(J!==56)break;K.privacyModeTs=Z.uint64Value();continue}case 8:{if(J!==64)break;K.featureControls=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return K3.fromPartial($??{})},fromPartial($){let Q=n5();return Q.vlevel=$.vlevel??void 0,Q.vnameCert=$.vnameCert!==void 0&&$.vnameCert!==null?c0.fromPartial($.vnameCert):void 0,Q.signed=$.signed??void 0,Q.revoked=$.revoked??void 0,Q.hostStorage=$.hostStorage??void 0,Q.actualActors=$.actualActors??void 0,Q.privacyModeTs=$.privacyModeTs??void 0,Q.featureControls=$.featureControls??void 0,Q}};function b5(){return{}}var oQ={encode($,Q=new z){if($.ageCollectionEligible!==void 0)Q.uint32(8).bool($.ageCollectionEligible);if($.shouldTriggerAgeCollectionOnClient!==void 0)Q.uint32(16).bool($.shouldTriggerAgeCollectionOnClient);if($.ageCollectionType!==void 0)Q.uint32(24).int32($.ageCollectionType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??b5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.ageCollectionEligible=Z.bool();continue}case 2:{if(J!==16)break;K.shouldTriggerAgeCollectionOnClient=Z.bool();continue}case 3:{if(J!==24)break;K.ageCollectionType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return oQ.fromPartial($??{})},fromPartial($){let Q=b5();return Q.ageCollectionEligible=$.ageCollectionEligible??void 0,Q.shouldTriggerAgeCollectionOnClient=$.shouldTriggerAgeCollectionOnClient??void 0,Q.ageCollectionType=$.ageCollectionType??void 0,Q}};function o5(){return{}}var iQ={encode($,Q=new z){if($.token!==void 0)Q.uint32(10).string($.token);if($.clientPublicKey!==void 0)Q.uint32(18).bytes($.clientPublicKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??o5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.token=Z.string();continue}case 2:{if(J!==18)break;K.clientPublicKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return iQ.fromPartial($??{})},fromPartial($){let Q=o5();return Q.token=$.token??void 0,Q.clientPublicKey=$.clientPublicKey??void 0,Q}};function i5(){return{}}var mQ={encode($,Q=new z){if($.deepLinkMetadata!==void 0)iQ.encode($.deepLinkMetadata,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??i5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.deepLinkMetadata=iQ.decode(Z,Z.uint32(),K.deepLinkMetadata);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return mQ.fromPartial($??{})},fromPartial($){let Q=i5();return Q.deepLinkMetadata=$.deepLinkMetadata!==void 0&&$.deepLinkMetadata!==null?iQ.fromPartial($.deepLinkMetadata):void 0,Q}};function m5(){return{}}var gQ={encode($,Q=new z){if($.capabilities!==void 0&&$.capabilities.length!==0)for(let q of $.capabilities)Q.uint32(8).int32(q);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??m5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J===8){if(K.capabilities===void 0)K.capabilities=[];K.capabilities.push(Z.int32());continue}if(J===10){if(K.capabilities===void 0)K.capabilities=[];let V=Z.uint32()+Z.pos;while(Z.pos<V)K.capabilities.push(Z.int32());continue}break}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return gQ.fromPartial($??{})},fromPartial($){let Q=m5();return Q.capabilities=$.capabilities?.map((q)=>q)||void 0,Q}};function g5(){return{}}var rQ={encode($,Q=new z){if($.commandName!==void 0)Q.uint32(10).string($.commandName);if($.commandDescription!==void 0)Q.uint32(18).string($.commandDescription);if($.commandPrompt!==void 0)Q.uint32(26).string($.commandPrompt);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??g5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.commandName=Z.string();continue}case 2:{if(J!==18)break;K.commandDescription=Z.string();continue}case 3:{if(J!==26)break;K.commandPrompt=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return rQ.fromPartial($??{})},fromPartial($){let Q=g5();return Q.commandName=$.commandName??void 0,Q.commandDescription=$.commandDescription??void 0,Q.commandPrompt=$.commandPrompt??void 0,Q}};function r5(){return{}}var tQ={encode($,Q=new z){if($.pluginType!==void 0)Q.uint32(8).int32($.pluginType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??r5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.pluginType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return tQ.fromPartial($??{})},fromPartial($){let Q=r5();return Q.pluginType=$.pluginType??void 0,Q}};function t5(){return{}}var aQ={encode($,Q=new z){if($.messageKey!==void 0)N.encode($.messageKey,Q.uint32(10).fork()).join();if($.kind!==void 0)Q.uint32(16).int32($.kind);if($.text!==void 0)Q.uint32(26).string($.text);if($.kindNegative!==void 0)Q.uint32(32).uint64($.kindNegative);if($.kindPositive!==void 0)Q.uint32(40).uint64($.kindPositive);if($.kindReport!==void 0)Q.uint32(48).int32($.kindReport);if($.sideBySideSurveyMetadata!==void 0)sQ.encode($.sideBySideSurveyMetadata,Q.uint32(58).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??t5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageKey=N.decode(Z,Z.uint32(),K.messageKey);continue}case 2:{if(J!==16)break;K.kind=Z.int32();continue}case 3:{if(J!==26)break;K.text=Z.string();continue}case 4:{if(J!==32)break;K.kindNegative=Z.uint64Value();continue}case 5:{if(J!==40)break;K.kindPositive=Z.uint64Value();continue}case 6:{if(J!==48)break;K.kindReport=Z.int32();continue}case 7:{if(J!==58)break;K.sideBySideSurveyMetadata=sQ.decode(Z,Z.uint32(),K.sideBySideSurveyMetadata);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return aQ.fromPartial($??{})},fromPartial($){let Q=t5();return Q.messageKey=$.messageKey!==void 0&&$.messageKey!==null?N.fromPartial($.messageKey):void 0,Q.kind=$.kind??void 0,Q.text=$.text??void 0,Q.kindNegative=$.kindNegative??void 0,Q.kindPositive=$.kindPositive??void 0,Q.kindReport=$.kindReport??void 0,Q.sideBySideSurveyMetadata=$.sideBySideSurveyMetadata!==void 0&&$.sideBySideSurveyMetadata!==null?sQ.fromPartial($.sideBySideSurveyMetadata):void 0,Q}};function a5(){return{}}var sQ={encode($,Q=new z){if($.selectedRequestId!==void 0)Q.uint32(10).string($.selectedRequestId);if($.surveyId!==void 0)Q.uint32(16).uint32($.surveyId);if($.simonSessionFbid!==void 0)Q.uint32(26).string($.simonSessionFbid);if($.responseOtid!==void 0)Q.uint32(34).string($.responseOtid);if($.responseTimestampMsString!==void 0)Q.uint32(42).string($.responseTimestampMsString);if($.isSelectedResponsePrimary!==void 0)Q.uint32(48).bool($.isSelectedResponsePrimary);if($.messageIdToEdit!==void 0)Q.uint32(58).string($.messageIdToEdit);if($.analyticsData!==void 0)eQ.encode($.analyticsData,Q.uint32(66).fork()).join();if($.metaAiAnalyticsData!==void 0)$Z.encode($.metaAiAnalyticsData,Q.uint32(74).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??a5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.selectedRequestId=Z.string();continue}case 2:{if(J!==16)break;K.surveyId=Z.uint32();continue}case 3:{if(J!==26)break;K.simonSessionFbid=Z.string();continue}case 4:{if(J!==34)break;K.responseOtid=Z.string();continue}case 5:{if(J!==42)break;K.responseTimestampMsString=Z.string();continue}case 6:{if(J!==48)break;K.isSelectedResponsePrimary=Z.bool();continue}case 7:{if(J!==58)break;K.messageIdToEdit=Z.string();continue}case 8:{if(J!==66)break;K.analyticsData=eQ.decode(Z,Z.uint32(),K.analyticsData);continue}case 9:{if(J!==74)break;K.metaAiAnalyticsData=$Z.decode(Z,Z.uint32(),K.metaAiAnalyticsData);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return sQ.fromPartial($??{})},fromPartial($){let Q=a5();return Q.selectedRequestId=$.selectedRequestId??void 0,Q.surveyId=$.surveyId??void 0,Q.simonSessionFbid=$.simonSessionFbid??void 0,Q.responseOtid=$.responseOtid??void 0,Q.responseTimestampMsString=$.responseTimestampMsString??void 0,Q.isSelectedResponsePrimary=$.isSelectedResponsePrimary??void 0,Q.messageIdToEdit=$.messageIdToEdit??void 0,Q.analyticsData=$.analyticsData!==void 0&&$.analyticsData!==null?eQ.fromPartial($.analyticsData):void 0,Q.metaAiAnalyticsData=$.metaAiAnalyticsData!==void 0&&$.metaAiAnalyticsData!==null?$Z.fromPartial($.metaAiAnalyticsData):void 0,Q}};function s5(){return{}}var eQ={encode($,Q=new z){if($.tessaEvent!==void 0)Q.uint32(10).string($.tessaEvent);if($.tessaSessionFbid!==void 0)Q.uint32(18).string($.tessaSessionFbid);if($.simonSessionFbid!==void 0)Q.uint32(26).string($.simonSessionFbid);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??s5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.tessaEvent=Z.string();continue}case 2:{if(J!==18)break;K.tessaSessionFbid=Z.string();continue}case 3:{if(J!==26)break;K.simonSessionFbid=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return eQ.fromPartial($??{})},fromPartial($){let Q=s5();return Q.tessaEvent=$.tessaEvent??void 0,Q.tessaSessionFbid=$.tessaSessionFbid??void 0,Q.simonSessionFbid=$.simonSessionFbid??void 0,Q}};function e5(){return{}}var $Z={encode($,Q=new z){if($.surveyId!==void 0)Q.uint32(8).uint32($.surveyId);if($.primaryResponseId!==void 0)Q.uint32(18).string($.primaryResponseId);if($.testArmName!==void 0)Q.uint32(26).string($.testArmName);if($.timestampMsString!==void 0)Q.uint32(34).string($.timestampMsString);if($.ctaImpressionEvent!==void 0)JZ.encode($.ctaImpressionEvent,Q.uint32(42).fork()).join();if($.ctaClickEvent!==void 0)ZZ.encode($.ctaClickEvent,Q.uint32(50).fork()).join();if($.cardImpressionEvent!==void 0)KZ.encode($.cardImpressionEvent,Q.uint32(58).fork()).join();if($.responseEvent!==void 0)qZ.encode($.responseEvent,Q.uint32(66).fork()).join();if($.abandonEvent!==void 0)QZ.encode($.abandonEvent,Q.uint32(74).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??e5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.surveyId=Z.uint32();continue}case 2:{if(J!==18)break;K.primaryResponseId=Z.string();continue}case 3:{if(J!==26)break;K.testArmName=Z.string();continue}case 4:{if(J!==34)break;K.timestampMsString=Z.string();continue}case 5:{if(J!==42)break;K.ctaImpressionEvent=JZ.decode(Z,Z.uint32(),K.ctaImpressionEvent);continue}case 6:{if(J!==50)break;K.ctaClickEvent=ZZ.decode(Z,Z.uint32(),K.ctaClickEvent);continue}case 7:{if(J!==58)break;K.cardImpressionEvent=KZ.decode(Z,Z.uint32(),K.cardImpressionEvent);continue}case 8:{if(J!==66)break;K.responseEvent=qZ.decode(Z,Z.uint32(),K.responseEvent);continue}case 9:{if(J!==74)break;K.abandonEvent=QZ.decode(Z,Z.uint32(),K.abandonEvent);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return $Z.fromPartial($??{})},fromPartial($){let Q=e5();return Q.surveyId=$.surveyId??void 0,Q.primaryResponseId=$.primaryResponseId??void 0,Q.testArmName=$.testArmName??void 0,Q.timestampMsString=$.timestampMsString??void 0,Q.ctaImpressionEvent=$.ctaImpressionEvent!==void 0&&$.ctaImpressionEvent!==null?JZ.fromPartial($.ctaImpressionEvent):void 0,Q.ctaClickEvent=$.ctaClickEvent!==void 0&&$.ctaClickEvent!==null?ZZ.fromPartial($.ctaClickEvent):void 0,Q.cardImpressionEvent=$.cardImpressionEvent!==void 0&&$.cardImpressionEvent!==null?KZ.fromPartial($.cardImpressionEvent):void 0,Q.responseEvent=$.responseEvent!==void 0&&$.responseEvent!==null?qZ.fromPartial($.responseEvent):void 0,Q.abandonEvent=$.abandonEvent!==void 0&&$.abandonEvent!==null?QZ.fromPartial($.abandonEvent):void 0,Q}};function $H(){return{}}var QZ={encode($,Q=new z){if($.abandonDwellTimeMsString!==void 0)Q.uint32(10).string($.abandonDwellTimeMsString);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??$H();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.abandonDwellTimeMsString=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return QZ.fromPartial($??{})},fromPartial($){let Q=$H();return Q.abandonDwellTimeMsString=$.abandonDwellTimeMsString??void 0,Q}};function QH(){return{}}var ZZ={encode($,Q=new z){if($.isSurveyExpired!==void 0)Q.uint32(8).bool($.isSurveyExpired);if($.clickDwellTimeMsString!==void 0)Q.uint32(18).string($.clickDwellTimeMsString);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??QH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isSurveyExpired=Z.bool();continue}case 2:{if(J!==18)break;K.clickDwellTimeMsString=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return ZZ.fromPartial($??{})},fromPartial($){let Q=QH();return Q.isSurveyExpired=$.isSurveyExpired??void 0,Q.clickDwellTimeMsString=$.clickDwellTimeMsString??void 0,Q}};function ZH(){return{}}var JZ={encode($,Q=new z){if($.isSurveyExpired!==void 0)Q.uint32(8).bool($.isSurveyExpired);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ZH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isSurveyExpired=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return JZ.fromPartial($??{})},fromPartial($){let Q=ZH();return Q.isSurveyExpired=$.isSurveyExpired??void 0,Q}};function JH(){return{}}var KZ={encode($,Q=new z){return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??JH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return KZ.fromPartial($??{})},fromPartial($){return JH()}};function KH(){return{}}var qZ={encode($,Q=new z){if($.responseDwellTimeMsString!==void 0)Q.uint32(10).string($.responseDwellTimeMsString);if($.selectedResponseId!==void 0)Q.uint32(18).string($.selectedResponseId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??KH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.responseDwellTimeMsString=Z.string();continue}case 2:{if(J!==18)break;K.selectedResponseId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return qZ.fromPartial($??{})},fromPartial($){let Q=KH();return Q.responseDwellTimeMsString=$.responseDwellTimeMsString??void 0,Q.selectedResponseId=$.selectedResponseId??void 0,Q}};function qH(){return{}}var XZ={encode($,Q=new z){if($.participantsMetadata!==void 0&&$.participantsMetadata.length!==0)for(let q of $.participantsMetadata)X$.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??qH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.participantsMetadata===void 0)K.participantsMetadata=[];let V=X$.decode(Z,Z.uint32());if(V!==void 0)K.participantsMetadata.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return XZ.fromPartial($??{})},fromPartial($){let Q=qH();return Q.participantsMetadata=$.participantsMetadata?.map((q)=>X$.fromPartial(q))||void 0,Q}};function XH(){return{}}var X$={encode($,Q=new z){if($.botFbid!==void 0)Q.uint32(10).string($.botFbid);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??XH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.botFbid=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return X$.fromPartial($??{})},fromPartial($){let Q=XH();return Q.botFbid=$.botFbid??void 0,Q}};function YH(){return{}}var YZ={encode($,Q=new z){if($.participantsMetadata!==void 0&&$.participantsMetadata.length!==0)for(let q of $.participantsMetadata)X$.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??YH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.participantsMetadata===void 0)K.participantsMetadata=[];let V=X$.decode(Z,Z.uint32());if(V!==void 0)K.participantsMetadata.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return YZ.fromPartial($??{})},fromPartial($){let Q=YH();return Q.participantsMetadata=$.participantsMetadata?.map((q)=>X$.fromPartial(q))||void 0,Q}};function VH(){return{}}var VZ={encode($,Q=new z){if($.imagineType!==void 0)Q.uint32(8).int32($.imagineType);if($.shortPrompt!==void 0)Q.uint32(18).string($.shortPrompt);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??VH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.imagineType=Z.int32();continue}case 2:{if(J!==18)break;K.shortPrompt=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return VZ.fromPartial($??{})},fromPartial($){let Q=VH();return Q.imagineType=$.imagineType??void 0,Q.shortPrompt=$.shortPrompt??void 0,Q}};function zH(){return{}}var zZ={encode($,Q=new z){if($.botBackend!==void 0)Q.uint32(8).int32($.botBackend);if($.toolsUsed!==void 0&&$.toolsUsed.length!==0)for(let q of $.toolsUsed)Q.uint32(18).string(q);if($.isThinking!==void 0)Q.uint32(24).bool($.isThinking);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??zH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.botBackend=Z.int32();continue}case 2:{if(J!==18)break;if(K.toolsUsed===void 0)K.toolsUsed=[];let V=Z.string();if(V!==void 0)K.toolsUsed.push(V);continue}case 3:{if(J!==24)break;K.isThinking=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return zZ.fromPartial($??{})},fromPartial($){let Q=zH();return Q.botBackend=$.botBackend??void 0,Q.toolsUsed=$.toolsUsed?.map((q)=>q)||void 0,Q.isThinking=$.isThinking??void 0,Q}};function HH(){return{}}var HZ={encode($,Q=new z){if($.type!==void 0)Q.uint32(8).int32($.type);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??HH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.type=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return HZ.fromPartial($??{})},fromPartial($){let Q=HH();return Q.type=$.type??void 0,Q}};function GH(){return{}}var GZ={encode($,Q=new z){if($.accounts!==void 0&&$.accounts.length!==0)for(let q of $.accounts)HZ.encode(q,Q.uint32(10).fork()).join();if($.acAuthTokens!==void 0)Q.uint32(18).bytes($.acAuthTokens);if($.acErrorCode!==void 0)Q.uint32(24).int32($.acErrorCode);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??GH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.accounts===void 0)K.accounts=[];let V=HZ.decode(Z,Z.uint32());if(V!==void 0)K.accounts.push(V);continue}case 2:{if(J!==18)break;K.acAuthTokens=Z.bytes();continue}case 3:{if(J!==24)break;K.acErrorCode=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return GZ.fromPartial($??{})},fromPartial($){let Q=GH();return Q.accounts=$.accounts?.map((q)=>HZ.fromPartial(q))||void 0,Q.acAuthTokens=$.acAuthTokens??void 0,Q.acErrorCode=$.acErrorCode??void 0,Q}};function UH(){return{}}var k0={encode($,Q=new z){if($.fileSha256!==void 0)Q.uint32(10).string($.fileSha256);if($.mediaKey!==void 0)Q.uint32(18).string($.mediaKey);if($.fileEncSha256!==void 0)Q.uint32(26).string($.fileEncSha256);if($.directPath!==void 0)Q.uint32(34).string($.directPath);if($.mediaKeyTimestamp!==void 0)Q.uint32(40).int64($.mediaKeyTimestamp);if($.mimetype!==void 0)Q.uint32(50).string($.mimetype);if($.orientationType!==void 0)Q.uint32(56).int32($.orientationType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??UH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.fileSha256=Z.string();continue}case 2:{if(J!==18)break;K.mediaKey=Z.string();continue}case 3:{if(J!==26)break;K.fileEncSha256=Z.string();continue}case 4:{if(J!==34)break;K.directPath=Z.string();continue}case 5:{if(J!==40)break;K.mediaKeyTimestamp=Z.int64Value();continue}case 6:{if(J!==50)break;K.mimetype=Z.string();continue}case 7:{if(J!==56)break;K.orientationType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return k0.fromPartial($??{})},fromPartial($){let Q=UH();return Q.fileSha256=$.fileSha256??void 0,Q.mediaKey=$.mediaKey??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.directPath=$.directPath??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.mimetype=$.mimetype??void 0,Q.orientationType=$.orientationType??void 0,Q}};function CH(){return{}}var i0={encode($,Q=new z){if($.fact!==void 0)Q.uint32(10).string($.fact);if($.factId!==void 0)Q.uint32(18).string($.factId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??CH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.fact=Z.string();continue}case 2:{if(J!==18)break;K.factId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return i0.fromPartial($??{})},fromPartial($){let Q=CH();return Q.fact=$.fact??void 0,Q.factId=$.factId??void 0,Q}};function DH(){return{}}var UZ={encode($,Q=new z){if($.addedFacts!==void 0&&$.addedFacts.length!==0)for(let q of $.addedFacts)i0.encode(q,Q.uint32(10).fork()).join();if($.removedFacts!==void 0&&$.removedFacts.length!==0)for(let q of $.removedFacts)i0.encode(q,Q.uint32(18).fork()).join();if($.disclaimer!==void 0)Q.uint32(26).string($.disclaimer);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??DH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.addedFacts===void 0)K.addedFacts=[];let V=i0.decode(Z,Z.uint32());if(V!==void 0)K.addedFacts.push(V);continue}case 2:{if(J!==18)break;if(K.removedFacts===void 0)K.removedFacts=[];let V=i0.decode(Z,Z.uint32());if(V!==void 0)K.removedFacts.push(V);continue}case 3:{if(J!==26)break;K.disclaimer=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return UZ.fromPartial($??{})},fromPartial($){let Q=DH();return Q.addedFacts=$.addedFacts?.map((q)=>i0.fromPartial(q))||void 0,Q.removedFacts=$.removedFacts?.map((q)=>i0.fromPartial(q))||void 0,Q.disclaimer=$.disclaimer??void 0,Q}};function FH(){return{}}var CZ={encode($,Q=new z){if($.faceImages!==void 0&&$.faceImages.length!==0)for(let q of $.faceImages)k0.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??FH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.faceImages===void 0)K.faceImages=[];let V=k0.decode(Z,Z.uint32());if(V!==void 0)K.faceImages.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return CZ.fromPartial($??{})},fromPartial($){let Q=FH();return Q.faceImages=$.faceImages?.map((q)=>k0.fromPartial(q))||void 0,Q}};function PH(){return{}}var DZ={encode($,Q=new z){if($.type!==void 0)Q.uint32(8).int32($.type);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??PH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.type=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return DZ.fromPartial($??{})},fromPartial($){let Q=PH();return Q.type=$.type??void 0,Q}};function LH(){return{}}var FZ={encode($,Q=new z){if($.origins!==void 0&&$.origins.length!==0)for(let q of $.origins)DZ.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??LH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.origins===void 0)K.origins=[];let V=DZ.decode(Z,Z.uint32());if(V!==void 0)K.origins.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return FZ.fromPartial($??{})},fromPartial($){let Q=LH();return Q.origins=$.origins?.map((q)=>DZ.fromPartial(q))||void 0,Q}};function xH(){return{}}var PZ={encode($,Q=new z){if($.botEntryPointOrigin!==void 0)Q.uint32(8).int32($.botEntryPointOrigin);if($.forwardScore!==void 0)Q.uint32(16).uint32($.forwardScore);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??xH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.botEntryPointOrigin=Z.int32();continue}case 2:{if(J!==16)break;K.forwardScore=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return PZ.fromPartial($??{})},fromPartial($){let Q=xH();return Q.botEntryPointOrigin=$.botEntryPointOrigin??void 0,Q.forwardScore=$.forwardScore??void 0,Q}};function kH(){return{}}var LZ={encode($,Q=new z){if($.personaId!==void 0)Q.uint32(18).string($.personaId);if($.pluginMetadata!==void 0)BZ.encode($.pluginMetadata,Q.uint32(26).fork()).join();if($.suggestedPromptMetadata!==void 0)nZ.encode($.suggestedPromptMetadata,Q.uint32(34).fork()).join();if($.invokerJid!==void 0)Q.uint32(42).string($.invokerJid);if($.sessionMetadata!==void 0)uZ.encode($.sessionMetadata,Q.uint32(50).fork()).join();if($.memuMetadata!==void 0)CZ.encode($.memuMetadata,Q.uint32(58).fork()).join();if($.timezone!==void 0)Q.uint32(66).string($.timezone);if($.reminderMetadata!==void 0)fZ.encode($.reminderMetadata,Q.uint32(74).fork()).join();if($.modelMetadata!==void 0)NZ.encode($.modelMetadata,Q.uint32(82).fork()).join();if($.messageDisclaimerText!==void 0)Q.uint32(90).string($.messageDisclaimerText);if($.progressIndicatorMetadata!==void 0)RZ.encode($.progressIndicatorMetadata,Q.uint32(98).fork()).join();if($.capabilityMetadata!==void 0)gQ.encode($.capabilityMetadata,Q.uint32(106).fork()).join();if($.imagineMetadata!==void 0)VZ.encode($.imagineMetadata,Q.uint32(114).fork()).join();if($.memoryMetadata!==void 0)UZ.encode($.memoryMetadata,Q.uint32(122).fork()).join();if($.renderingMetadata!==void 0)hZ.encode($.renderingMetadata,Q.uint32(130).fork()).join();if($.botMetricsMetadata!==void 0)xZ.encode($.botMetricsMetadata,Q.uint32(138).fork()).join();if($.botLinkedAccountsMetadata!==void 0)GZ.encode($.botLinkedAccountsMetadata,Q.uint32(146).fork()).join();if($.richResponseSourcesMetadata!==void 0)cZ.encode($.richResponseSourcesMetadata,Q.uint32(154).fork()).join();if($.aiConversationContext!==void 0)Q.uint32(162).bytes($.aiConversationContext);if($.botPromotionMessageMetadata!==void 0)WZ.encode($.botPromotionMessageMetadata,Q.uint32(170).fork()).join();if($.botModeSelectionMetadata!==void 0)kZ.encode($.botModeSelectionMetadata,Q.uint32(178).fork()).join();if($.botQuotaMetadata!==void 0)yZ.encode($.botQuotaMetadata,Q.uint32(186).fork()).join();if($.botAgeCollectionMetadata!==void 0)oQ.encode($.botAgeCollectionMetadata,Q.uint32(194).fork()).join();if($.conversationStarterPromptId!==void 0)Q.uint32(202).string($.conversationStarterPromptId);if($.botResponseId!==void 0)Q.uint32(210).string($.botResponseId);if($.verificationMetadata!==void 0)Y$.encode($.verificationMetadata,Q.uint32(218).fork()).join();if($.unifiedResponseMutation!==void 0)bZ.encode($.unifiedResponseMutation,Q.uint32(226).fork()).join();if($.botMessageOriginMetadata!==void 0)FZ.encode($.botMessageOriginMetadata,Q.uint32(234).fork()).join();if($.inThreadSurveyMetadata!==void 0)tK.encode($.inThreadSurveyMetadata,Q.uint32(242).fork()).join();if($.botThreadInfo!==void 0)uQ.encode($.botThreadInfo,Q.uint32(250).fork()).join();if($.regenerateMetadata!==void 0)kQ.encode($.regenerateMetadata,Q.uint32(258).fork()).join();if($.sessionTransparencyMetadata!==void 0)H6.encode($.sessionTransparencyMetadata,Q.uint32(266).fork()).join();if($.botDocumentMessageMetadata!==void 0)tQ.encode($.botDocumentMessageMetadata,Q.uint32(274).fork()).join();if($.botGroupMetadata!==void 0)XZ.encode($.botGroupMetadata,Q.uint32(282).fork()).join();if($.botRenderingConfigMetadata!==void 0)_Z.encode($.botRenderingConfigMetadata,Q.uint32(290).fork()).join();if($.botInfrastructureDiagnostics!==void 0)zZ.encode($.botInfrastructureDiagnostics,Q.uint32(298).fork()).join();if($.aiMediaCollectionMetadata!==void 0)FQ.encode($.aiMediaCollectionMetadata,Q.uint32(306).fork()).join();if($.commandMetadata!==void 0)rQ.encode($.commandMetadata,Q.uint32(314).fork()).join();if($.resolvedToolCallMetadata!==void 0)pZ.encode($.resolvedToolCallMetadata,Q.uint32(322).fork()).join();if($.subscriptionUpsellMetadata!==void 0)pQ.encode($.subscriptionUpsellMetadata,Q.uint32(330).fork()).join();if($.pttPromptMetadata!==void 0)TZ.encode($.pttPromptMetadata,Q.uint32(338).fork()).join();if($.botHistoryShareMetadata!==void 0)YZ.encode($.botHistoryShareMetadata,Q.uint32(346).fork()).join();if($.internalMetadata!==void 0)Q.uint32(7994).bytes($.internalMetadata);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??kH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 2:{if(J!==18)break;K.personaId=Z.string();continue}case 3:{if(J!==26)break;K.pluginMetadata=BZ.decode(Z,Z.uint32(),K.pluginMetadata);continue}case 4:{if(J!==34)break;K.suggestedPromptMetadata=nZ.decode(Z,Z.uint32(),K.suggestedPromptMetadata);continue}case 5:{if(J!==42)break;K.invokerJid=Z.string();continue}case 6:{if(J!==50)break;K.sessionMetadata=uZ.decode(Z,Z.uint32(),K.sessionMetadata);continue}case 7:{if(J!==58)break;K.memuMetadata=CZ.decode(Z,Z.uint32(),K.memuMetadata);continue}case 8:{if(J!==66)break;K.timezone=Z.string();continue}case 9:{if(J!==74)break;K.reminderMetadata=fZ.decode(Z,Z.uint32(),K.reminderMetadata);continue}case 10:{if(J!==82)break;K.modelMetadata=NZ.decode(Z,Z.uint32(),K.modelMetadata);continue}case 11:{if(J!==90)break;K.messageDisclaimerText=Z.string();continue}case 12:{if(J!==98)break;K.progressIndicatorMetadata=RZ.decode(Z,Z.uint32(),K.progressIndicatorMetadata);continue}case 13:{if(J!==106)break;K.capabilityMetadata=gQ.decode(Z,Z.uint32(),K.capabilityMetadata);continue}case 14:{if(J!==114)break;K.imagineMetadata=VZ.decode(Z,Z.uint32(),K.imagineMetadata);continue}case 15:{if(J!==122)break;K.memoryMetadata=UZ.decode(Z,Z.uint32(),K.memoryMetadata);continue}case 16:{if(J!==130)break;K.renderingMetadata=hZ.decode(Z,Z.uint32(),K.renderingMetadata);continue}case 17:{if(J!==138)break;K.botMetricsMetadata=xZ.decode(Z,Z.uint32(),K.botMetricsMetadata);continue}case 18:{if(J!==146)break;K.botLinkedAccountsMetadata=GZ.decode(Z,Z.uint32(),K.botLinkedAccountsMetadata);continue}case 19:{if(J!==154)break;K.richResponseSourcesMetadata=cZ.decode(Z,Z.uint32(),K.richResponseSourcesMetadata);continue}case 20:{if(J!==162)break;K.aiConversationContext=Z.bytes();continue}case 21:{if(J!==170)break;K.botPromotionMessageMetadata=WZ.decode(Z,Z.uint32(),K.botPromotionMessageMetadata);continue}case 22:{if(J!==178)break;K.botModeSelectionMetadata=kZ.decode(Z,Z.uint32(),K.botModeSelectionMetadata);continue}case 23:{if(J!==186)break;K.botQuotaMetadata=yZ.decode(Z,Z.uint32(),K.botQuotaMetadata);continue}case 24:{if(J!==194)break;K.botAgeCollectionMetadata=oQ.decode(Z,Z.uint32(),K.botAgeCollectionMetadata);continue}case 25:{if(J!==202)break;K.conversationStarterPromptId=Z.string();continue}case 26:{if(J!==210)break;K.botResponseId=Z.string();continue}case 27:{if(J!==218)break;K.verificationMetadata=Y$.decode(Z,Z.uint32(),K.verificationMetadata);continue}case 28:{if(J!==226)break;K.unifiedResponseMutation=bZ.decode(Z,Z.uint32(),K.unifiedResponseMutation);continue}case 29:{if(J!==234)break;K.botMessageOriginMetadata=FZ.decode(Z,Z.uint32(),K.botMessageOriginMetadata);continue}case 30:{if(J!==242)break;K.inThreadSurveyMetadata=tK.decode(Z,Z.uint32(),K.inThreadSurveyMetadata);continue}case 31:{if(J!==250)break;K.botThreadInfo=uQ.decode(Z,Z.uint32(),K.botThreadInfo);continue}case 32:{if(J!==258)break;K.regenerateMetadata=kQ.decode(Z,Z.uint32(),K.regenerateMetadata);continue}case 33:{if(J!==266)break;K.sessionTransparencyMetadata=H6.decode(Z,Z.uint32(),K.sessionTransparencyMetadata);continue}case 34:{if(J!==274)break;K.botDocumentMessageMetadata=tQ.decode(Z,Z.uint32(),K.botDocumentMessageMetadata);continue}case 35:{if(J!==282)break;K.botGroupMetadata=XZ.decode(Z,Z.uint32(),K.botGroupMetadata);continue}case 36:{if(J!==290)break;K.botRenderingConfigMetadata=_Z.decode(Z,Z.uint32(),K.botRenderingConfigMetadata);continue}case 37:{if(J!==298)break;K.botInfrastructureDiagnostics=zZ.decode(Z,Z.uint32(),K.botInfrastructureDiagnostics);continue}case 38:{if(J!==306)break;K.aiMediaCollectionMetadata=FQ.decode(Z,Z.uint32(),K.aiMediaCollectionMetadata);continue}case 39:{if(J!==314)break;K.commandMetadata=rQ.decode(Z,Z.uint32(),K.commandMetadata);continue}case 40:{if(J!==322)break;K.resolvedToolCallMetadata=pZ.decode(Z,Z.uint32(),K.resolvedToolCallMetadata);continue}case 41:{if(J!==330)break;K.subscriptionUpsellMetadata=pQ.decode(Z,Z.uint32(),K.subscriptionUpsellMetadata);continue}case 42:{if(J!==338)break;K.pttPromptMetadata=TZ.decode(Z,Z.uint32(),K.pttPromptMetadata);continue}case 43:{if(J!==346)break;K.botHistoryShareMetadata=YZ.decode(Z,Z.uint32(),K.botHistoryShareMetadata);continue}case 999:{if(J!==7994)break;K.internalMetadata=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return LZ.fromPartial($??{})},fromPartial($){let Q=kH();return Q.personaId=$.personaId??void 0,Q.pluginMetadata=$.pluginMetadata!==void 0&&$.pluginMetadata!==null?BZ.fromPartial($.pluginMetadata):void 0,Q.suggestedPromptMetadata=$.suggestedPromptMetadata!==void 0&&$.suggestedPromptMetadata!==null?nZ.fromPartial($.suggestedPromptMetadata):void 0,Q.invokerJid=$.invokerJid??void 0,Q.sessionMetadata=$.sessionMetadata!==void 0&&$.sessionMetadata!==null?uZ.fromPartial($.sessionMetadata):void 0,Q.memuMetadata=$.memuMetadata!==void 0&&$.memuMetadata!==null?CZ.fromPartial($.memuMetadata):void 0,Q.timezone=$.timezone??void 0,Q.reminderMetadata=$.reminderMetadata!==void 0&&$.reminderMetadata!==null?fZ.fromPartial($.reminderMetadata):void 0,Q.modelMetadata=$.modelMetadata!==void 0&&$.modelMetadata!==null?NZ.fromPartial($.modelMetadata):void 0,Q.messageDisclaimerText=$.messageDisclaimerText??void 0,Q.progressIndicatorMetadata=$.progressIndicatorMetadata!==void 0&&$.progressIndicatorMetadata!==null?RZ.fromPartial($.progressIndicatorMetadata):void 0,Q.capabilityMetadata=$.capabilityMetadata!==void 0&&$.capabilityMetadata!==null?gQ.fromPartial($.capabilityMetadata):void 0,Q.imagineMetadata=$.imagineMetadata!==void 0&&$.imagineMetadata!==null?VZ.fromPartial($.imagineMetadata):void 0,Q.memoryMetadata=$.memoryMetadata!==void 0&&$.memoryMetadata!==null?UZ.fromPartial($.memoryMetadata):void 0,Q.renderingMetadata=$.renderingMetadata!==void 0&&$.renderingMetadata!==null?hZ.fromPartial($.renderingMetadata):void 0,Q.botMetricsMetadata=$.botMetricsMetadata!==void 0&&$.botMetricsMetadata!==null?xZ.fromPartial($.botMetricsMetadata):void 0,Q.botLinkedAccountsMetadata=$.botLinkedAccountsMetadata!==void 0&&$.botLinkedAccountsMetadata!==null?GZ.fromPartial($.botLinkedAccountsMetadata):void 0,Q.richResponseSourcesMetadata=$.richResponseSourcesMetadata!==void 0&&$.richResponseSourcesMetadata!==null?cZ.fromPartial($.richResponseSourcesMetadata):void 0,Q.aiConversationContext=$.aiConversationContext??void 0,Q.botPromotionMessageMetadata=$.botPromotionMessageMetadata!==void 0&&$.botPromotionMessageMetadata!==null?WZ.fromPartial($.botPromotionMessageMetadata):void 0,Q.botModeSelectionMetadata=$.botModeSelectionMetadata!==void 0&&$.botModeSelectionMetadata!==null?kZ.fromPartial($.botModeSelectionMetadata):void 0,Q.botQuotaMetadata=$.botQuotaMetadata!==void 0&&$.botQuotaMetadata!==null?yZ.fromPartial($.botQuotaMetadata):void 0,Q.botAgeCollectionMetadata=$.botAgeCollectionMetadata!==void 0&&$.botAgeCollectionMetadata!==null?oQ.fromPartial($.botAgeCollectionMetadata):void 0,Q.conversationStarterPromptId=$.conversationStarterPromptId??void 0,Q.botResponseId=$.botResponseId??void 0,Q.verificationMetadata=$.verificationMetadata!==void 0&&$.verificationMetadata!==null?Y$.fromPartial($.verificationMetadata):void 0,Q.unifiedResponseMutation=$.unifiedResponseMutation!==void 0&&$.unifiedResponseMutation!==null?bZ.fromPartial($.unifiedResponseMutation):void 0,Q.botMessageOriginMetadata=$.botMessageOriginMetadata!==void 0&&$.botMessageOriginMetadata!==null?FZ.fromPartial($.botMessageOriginMetadata):void 0,Q.inThreadSurveyMetadata=$.inThreadSurveyMetadata!==void 0&&$.inThreadSurveyMetadata!==null?tK.fromPartial($.inThreadSurveyMetadata):void 0,Q.botThreadInfo=$.botThreadInfo!==void 0&&$.botThreadInfo!==null?uQ.fromPartial($.botThreadInfo):void 0,Q.regenerateMetadata=$.regenerateMetadata!==void 0&&$.regenerateMetadata!==null?kQ.fromPartial($.regenerateMetadata):void 0,Q.sessionTransparencyMetadata=$.sessionTransparencyMetadata!==void 0&&$.sessionTransparencyMetadata!==null?H6.fromPartial($.sessionTransparencyMetadata):void 0,Q.botDocumentMessageMetadata=$.botDocumentMessageMetadata!==void 0&&$.botDocumentMessageMetadata!==null?tQ.fromPartial($.botDocumentMessageMetadata):void 0,Q.botGroupMetadata=$.botGroupMetadata!==void 0&&$.botGroupMetadata!==null?XZ.fromPartial($.botGroupMetadata):void 0,Q.botRenderingConfigMetadata=$.botRenderingConfigMetadata!==void 0&&$.botRenderingConfigMetadata!==null?_Z.fromPartial($.botRenderingConfigMetadata):void 0,Q.botInfrastructureDiagnostics=$.botInfrastructureDiagnostics!==void 0&&$.botInfrastructureDiagnostics!==null?zZ.fromPartial($.botInfrastructureDiagnostics):void 0,Q.aiMediaCollectionMetadata=$.aiMediaCollectionMetadata!==void 0&&$.aiMediaCollectionMetadata!==null?FQ.fromPartial($.aiMediaCollectionMetadata):void 0,Q.commandMetadata=$.commandMetadata!==void 0&&$.commandMetadata!==null?rQ.fromPartial($.commandMetadata):void 0,Q.resolvedToolCallMetadata=$.resolvedToolCallMetadata!==void 0&&$.resolvedToolCallMetadata!==null?pZ.fromPartial($.resolvedToolCallMetadata):void 0,Q.subscriptionUpsellMetadata=$.subscriptionUpsellMetadata!==void 0&&$.subscriptionUpsellMetadata!==null?pQ.fromPartial($.subscriptionUpsellMetadata):void 0,Q.pttPromptMetadata=$.pttPromptMetadata!==void 0&&$.pttPromptMetadata!==null?TZ.fromPartial($.pttPromptMetadata):void 0,Q.botHistoryShareMetadata=$.botHistoryShareMetadata!==void 0&&$.botHistoryShareMetadata!==null?YZ.fromPartial($.botHistoryShareMetadata):void 0,Q.internalMetadata=$.internalMetadata??void 0,Q}};function NH(){return{}}var xZ={encode($,Q=new z){if($.destinationId!==void 0)Q.uint32(10).string($.destinationId);if($.destinationEntryPoint!==void 0)Q.uint32(16).int32($.destinationEntryPoint);if($.threadOrigin!==void 0)Q.uint32(24).int32($.threadOrigin);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??NH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.destinationId=Z.string();continue}case 2:{if(J!==16)break;K.destinationEntryPoint=Z.int32();continue}case 3:{if(J!==24)break;K.threadOrigin=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return xZ.fromPartial($??{})},fromPartial($){let Q=NH();return Q.destinationId=$.destinationId??void 0,Q.destinationEntryPoint=$.destinationEntryPoint??void 0,Q.threadOrigin=$.threadOrigin??void 0,Q}};function BH(){return{}}var kZ={encode($,Q=new z){if($.mode!==void 0&&$.mode.length!==0)for(let q of $.mode)Q.uint32(8).int32(q);if($.overrideMode!==void 0&&$.overrideMode.length!==0)for(let q of $.overrideMode)Q.uint32(16).uint32(q);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??BH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J===8){if(K.mode===void 0)K.mode=[];K.mode.push(Z.int32());continue}if(J===10){if(K.mode===void 0)K.mode=[];let V=Z.uint32()+Z.pos;while(Z.pos<V)K.mode.push(Z.int32());continue}break}case 2:{if(J===16){if(K.overrideMode===void 0)K.overrideMode=[];K.overrideMode.push(Z.uint32());continue}if(J===18){if(K.overrideMode===void 0)K.overrideMode=[];let V=Z.uint32()+Z.pos;while(Z.pos<V)K.overrideMode.push(Z.uint32());continue}break}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return kZ.fromPartial($??{})},fromPartial($){let Q=BH();return Q.mode=$.mode?.map((q)=>q)||void 0,Q.overrideMode=$.overrideMode?.map((q)=>q)||void 0,Q}};function RH(){return{}}var NZ={encode($,Q=new z){if($.modelType!==void 0)Q.uint32(8).int32($.modelType);if($.premiumModelStatus!==void 0)Q.uint32(16).int32($.premiumModelStatus);if($.modelNameOverride!==void 0)Q.uint32(26).string($.modelNameOverride);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??RH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.modelType=Z.int32();continue}case 2:{if(J!==16)break;K.premiumModelStatus=Z.int32();continue}case 3:{if(J!==26)break;K.modelNameOverride=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return NZ.fromPartial($??{})},fromPartial($){let Q=RH();return Q.modelType=$.modelType??void 0,Q.premiumModelStatus=$.premiumModelStatus??void 0,Q.modelNameOverride=$.modelNameOverride??void 0,Q}};function OH(){return{}}var BZ={encode($,Q=new z){if($.provider!==void 0)Q.uint32(8).int32($.provider);if($.pluginType!==void 0)Q.uint32(16).int32($.pluginType);if($.thumbnailCdnUrl!==void 0)Q.uint32(26).string($.thumbnailCdnUrl);if($.profilePhotoCdnUrl!==void 0)Q.uint32(34).string($.profilePhotoCdnUrl);if($.searchProviderUrl!==void 0)Q.uint32(42).string($.searchProviderUrl);if($.referenceIndex!==void 0)Q.uint32(48).uint32($.referenceIndex);if($.expectedLinksCount!==void 0)Q.uint32(56).uint32($.expectedLinksCount);if($.searchQuery!==void 0)Q.uint32(74).string($.searchQuery);if($.parentPluginMessageKey!==void 0)N.encode($.parentPluginMessageKey,Q.uint32(82).fork()).join();if($.deprecatedField!==void 0)Q.uint32(88).int32($.deprecatedField);if($.parentPluginType!==void 0)Q.uint32(96).int32($.parentPluginType);if($.faviconCdnUrl!==void 0)Q.uint32(106).string($.faviconCdnUrl);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??OH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.provider=Z.int32();continue}case 2:{if(J!==16)break;K.pluginType=Z.int32();continue}case 3:{if(J!==26)break;K.thumbnailCdnUrl=Z.string();continue}case 4:{if(J!==34)break;K.profilePhotoCdnUrl=Z.string();continue}case 5:{if(J!==42)break;K.searchProviderUrl=Z.string();continue}case 6:{if(J!==48)break;K.referenceIndex=Z.uint32();continue}case 7:{if(J!==56)break;K.expectedLinksCount=Z.uint32();continue}case 9:{if(J!==74)break;K.searchQuery=Z.string();continue}case 10:{if(J!==82)break;K.parentPluginMessageKey=N.decode(Z,Z.uint32(),K.parentPluginMessageKey);continue}case 11:{if(J!==88)break;K.deprecatedField=Z.int32();continue}case 12:{if(J!==96)break;K.parentPluginType=Z.int32();continue}case 13:{if(J!==106)break;K.faviconCdnUrl=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return BZ.fromPartial($??{})},fromPartial($){let Q=OH();return Q.provider=$.provider??void 0,Q.pluginType=$.pluginType??void 0,Q.thumbnailCdnUrl=$.thumbnailCdnUrl??void 0,Q.profilePhotoCdnUrl=$.profilePhotoCdnUrl??void 0,Q.searchProviderUrl=$.searchProviderUrl??void 0,Q.referenceIndex=$.referenceIndex??void 0,Q.expectedLinksCount=$.expectedLinksCount??void 0,Q.searchQuery=$.searchQuery??void 0,Q.parentPluginMessageKey=$.parentPluginMessageKey!==void 0&&$.parentPluginMessageKey!==null?N.fromPartial($.parentPluginMessageKey):void 0,Q.deprecatedField=$.deprecatedField??void 0,Q.parentPluginType=$.parentPluginType??void 0,Q.faviconCdnUrl=$.faviconCdnUrl??void 0,Q}};function AH(){return{}}var RZ={encode($,Q=new z){if($.progressDescription!==void 0)Q.uint32(10).string($.progressDescription);if($.stepsMetadata!==void 0&&$.stepsMetadata.length!==0)for(let q of $.stepsMetadata)OZ.encode(q,Q.uint32(18).fork()).join();if($.estimatedCompletionTime!==void 0)Q.uint32(24).int64($.estimatedCompletionTime);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??AH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.progressDescription=Z.string();continue}case 2:{if(J!==18)break;if(K.stepsMetadata===void 0)K.stepsMetadata=[];let V=OZ.decode(Z,Z.uint32());if(V!==void 0)K.stepsMetadata.push(V);continue}case 3:{if(J!==24)break;K.estimatedCompletionTime=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return RZ.fromPartial($??{})},fromPartial($){let Q=AH();return Q.progressDescription=$.progressDescription??void 0,Q.stepsMetadata=$.stepsMetadata?.map((q)=>OZ.fromPartial(q))||void 0,Q.estimatedCompletionTime=$.estimatedCompletionTime??void 0,Q}};function EH(){return{}}var OZ={encode($,Q=new z){if($.statusTitle!==void 0)Q.uint32(10).string($.statusTitle);if($.statusBody!==void 0)Q.uint32(18).string($.statusBody);if($.sourcesMetadata!==void 0&&$.sourcesMetadata.length!==0)for(let q of $.sourcesMetadata)EZ.encode(q,Q.uint32(26).fork()).join();if($.status!==void 0)Q.uint32(32).int32($.status);if($.isReasoning!==void 0)Q.uint32(40).bool($.isReasoning);if($.isEnhancedSearch!==void 0)Q.uint32(48).bool($.isEnhancedSearch);if($.sections!==void 0&&$.sections.length!==0)for(let q of $.sections)MZ.encode(q,Q.uint32(58).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??EH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.statusTitle=Z.string();continue}case 2:{if(J!==18)break;K.statusBody=Z.string();continue}case 3:{if(J!==26)break;if(K.sourcesMetadata===void 0)K.sourcesMetadata=[];let V=EZ.decode(Z,Z.uint32());if(V!==void 0)K.sourcesMetadata.push(V);continue}case 4:{if(J!==32)break;K.status=Z.int32();continue}case 5:{if(J!==40)break;K.isReasoning=Z.bool();continue}case 6:{if(J!==48)break;K.isEnhancedSearch=Z.bool();continue}case 7:{if(J!==58)break;if(K.sections===void 0)K.sections=[];let V=MZ.decode(Z,Z.uint32());if(V!==void 0)K.sections.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return OZ.fromPartial($??{})},fromPartial($){let Q=EH();return Q.statusTitle=$.statusTitle??void 0,Q.statusBody=$.statusBody??void 0,Q.sourcesMetadata=$.sourcesMetadata?.map((q)=>EZ.fromPartial(q))||void 0,Q.status=$.status??void 0,Q.isReasoning=$.isReasoning??void 0,Q.isEnhancedSearch=$.isEnhancedSearch??void 0,Q.sections=$.sections?.map((q)=>MZ.fromPartial(q))||void 0,Q}};function MH(){return{}}var AZ={encode($,Q=new z){if($.title!==void 0)Q.uint32(10).string($.title);if($.provider!==void 0)Q.uint32(16).int32($.provider);if($.sourceUrl!==void 0)Q.uint32(26).string($.sourceUrl);if($.favIconUrl!==void 0)Q.uint32(34).string($.favIconUrl);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??MH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.title=Z.string();continue}case 2:{if(J!==16)break;K.provider=Z.int32();continue}case 3:{if(J!==26)break;K.sourceUrl=Z.string();continue}case 4:{if(J!==34)break;K.favIconUrl=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return AZ.fromPartial($??{})},fromPartial($){let Q=MH();return Q.title=$.title??void 0,Q.provider=$.provider??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q.favIconUrl=$.favIconUrl??void 0,Q}};function WH(){return{}}var EZ={encode($,Q=new z){if($.sourceTitle!==void 0)Q.uint32(10).string($.sourceTitle);if($.provider!==void 0)Q.uint32(16).int32($.provider);if($.sourceUrl!==void 0)Q.uint32(26).string($.sourceUrl);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??WH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.sourceTitle=Z.string();continue}case 2:{if(J!==16)break;K.provider=Z.int32();continue}case 3:{if(J!==26)break;K.sourceUrl=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return EZ.fromPartial($??{})},fromPartial($){let Q=WH();return Q.sourceTitle=$.sourceTitle??void 0,Q.provider=$.provider??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q}};function SH(){return{}}var MZ={encode($,Q=new z){if($.sectionTitle!==void 0)Q.uint32(10).string($.sectionTitle);if($.sectionBody!==void 0)Q.uint32(18).string($.sectionBody);if($.sourcesMetadata!==void 0&&$.sourcesMetadata.length!==0)for(let q of $.sourcesMetadata)AZ.encode(q,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??SH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.sectionTitle=Z.string();continue}case 2:{if(J!==18)break;K.sectionBody=Z.string();continue}case 3:{if(J!==26)break;if(K.sourcesMetadata===void 0)K.sourcesMetadata=[];let V=AZ.decode(Z,Z.uint32());if(V!==void 0)K.sourcesMetadata.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return MZ.fromPartial($??{})},fromPartial($){let Q=SH();return Q.sectionTitle=$.sectionTitle??void 0,Q.sectionBody=$.sectionBody??void 0,Q.sourcesMetadata=$.sourcesMetadata?.map((q)=>AZ.fromPartial(q))||void 0,Q}};function IH(){return{}}var WZ={encode($,Q=new z){if($.promotionType!==void 0)Q.uint32(8).int32($.promotionType);if($.buttonTitle!==void 0)Q.uint32(18).string($.buttonTitle);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??IH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.promotionType=Z.int32();continue}case 2:{if(J!==18)break;K.buttonTitle=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return WZ.fromPartial($??{})},fromPartial($){let Q=IH();return Q.promotionType=$.promotionType??void 0,Q.buttonTitle=$.buttonTitle??void 0,Q}};function TH(){return{}}var SZ={encode($,Q=new z){if($.prompt!==void 0)Q.uint32(10).string($.prompt);if($.promptId!==void 0)Q.uint32(18).string($.promptId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??TH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.prompt=Z.string();continue}case 2:{if(J!==18)break;K.promptId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return SZ.fromPartial($??{})},fromPartial($){let Q=TH();return Q.prompt=$.prompt??void 0,Q.promptId=$.promptId??void 0,Q}};function yH(){return{}}var IZ={encode($,Q=new z){if($.suggestions!==void 0&&$.suggestions.length!==0)for(let q of $.suggestions)SZ.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??yH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.suggestions===void 0)K.suggestions=[];let V=SZ.decode(Z,Z.uint32());if(V!==void 0)K.suggestions.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return IZ.fromPartial($??{})},fromPartial($){let Q=yH();return Q.suggestions=$.suggestions?.map((q)=>SZ.fromPartial(q))||void 0,Q}};function vH(){return{}}var TZ={encode($,Q=new z){if($.transcript!==void 0)Q.uint32(10).string($.transcript);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??vH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.transcript=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return TZ.fromPartial($??{})},fromPartial($){let Q=vH();return Q.transcript=$.transcript??void 0,Q}};function fH(){return{}}var yZ={encode($,Q=new z){if($.botFeatureQuotaMetadata!==void 0&&$.botFeatureQuotaMetadata.length!==0)for(let q of $.botFeatureQuotaMetadata)vZ.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??fH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.botFeatureQuotaMetadata===void 0)K.botFeatureQuotaMetadata=[];let V=vZ.decode(Z,Z.uint32());if(V!==void 0)K.botFeatureQuotaMetadata.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return yZ.fromPartial($??{})},fromPartial($){let Q=fH();return Q.botFeatureQuotaMetadata=$.botFeatureQuotaMetadata?.map((q)=>vZ.fromPartial(q))||void 0,Q}};function _H(){return{}}var vZ={encode($,Q=new z){if($.featureType!==void 0)Q.uint32(8).int32($.featureType);if($.remainingQuota!==void 0)Q.uint32(16).uint32($.remainingQuota);if($.expirationTimestamp!==void 0)Q.uint32(24).uint64($.expirationTimestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??_H();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.featureType=Z.int32();continue}case 2:{if(J!==16)break;K.remainingQuota=Z.uint32();continue}case 3:{if(J!==24)break;K.expirationTimestamp=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return vZ.fromPartial($??{})},fromPartial($){let Q=_H();return Q.featureType=$.featureType??void 0,Q.remainingQuota=$.remainingQuota??void 0,Q.expirationTimestamp=$.expirationTimestamp??void 0,Q}};function hH(){return{}}var fZ={encode($,Q=new z){if($.requestMessageKey!==void 0)N.encode($.requestMessageKey,Q.uint32(10).fork()).join();if($.action!==void 0)Q.uint32(16).int32($.action);if($.name!==void 0)Q.uint32(26).string($.name);if($.nextTriggerTimestamp!==void 0)Q.uint32(32).uint64($.nextTriggerTimestamp);if($.frequency!==void 0)Q.uint32(40).int32($.frequency);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??hH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.requestMessageKey=N.decode(Z,Z.uint32(),K.requestMessageKey);continue}case 2:{if(J!==16)break;K.action=Z.int32();continue}case 3:{if(J!==26)break;K.name=Z.string();continue}case 4:{if(J!==32)break;K.nextTriggerTimestamp=Z.uint64Value();continue}case 5:{if(J!==40)break;K.frequency=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return fZ.fromPartial($??{})},fromPartial($){let Q=hH();return Q.requestMessageKey=$.requestMessageKey!==void 0&&$.requestMessageKey!==null?N.fromPartial($.requestMessageKey):void 0,Q.action=$.action??void 0,Q.name=$.name??void 0,Q.nextTriggerTimestamp=$.nextTriggerTimestamp??void 0,Q.frequency=$.frequency??void 0,Q}};function lH(){return{}}var _Z={encode($,Q=new z){if($.bloksVersioningId!==void 0)Q.uint32(10).string($.bloksVersioningId);if($.pixelDensity!==void 0)Q.uint32(17).double($.pixelDensity);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??lH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.bloksVersioningId=Z.string();continue}case 2:{if(J!==17)break;K.pixelDensity=Z.double();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return _Z.fromPartial($??{})},fromPartial($){let Q=lH();return Q.bloksVersioningId=$.bloksVersioningId??void 0,Q.pixelDensity=$.pixelDensity??void 0,Q}};function pH(){return{}}var hZ={encode($,Q=new z){if($.keywords!==void 0&&$.keywords.length!==0)for(let q of $.keywords)lZ.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??pH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.keywords===void 0)K.keywords=[];let V=lZ.decode(Z,Z.uint32());if(V!==void 0)K.keywords.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return hZ.fromPartial($??{})},fromPartial($){let Q=pH();return Q.keywords=$.keywords?.map((q)=>lZ.fromPartial(q))||void 0,Q}};function uH(){return{}}var lZ={encode($,Q=new z){if($.value!==void 0)Q.uint32(10).string($.value);if($.associatedPrompts!==void 0&&$.associatedPrompts.length!==0)for(let q of $.associatedPrompts)Q.uint32(18).string(q);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??uH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.value=Z.string();continue}case 2:{if(J!==18)break;if(K.associatedPrompts===void 0)K.associatedPrompts=[];let V=Z.string();if(V!==void 0)K.associatedPrompts.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return lZ.fromPartial($??{})},fromPartial($){let Q=uH();return Q.value=$.value??void 0,Q.associatedPrompts=$.associatedPrompts?.map((q)=>q)||void 0,Q}};function wH(){return{}}var pZ={encode($,Q=new z){if($.toolCallId!==void 0)Q.uint32(10).string($.toolCallId);if($.resolutionDataSerialized!==void 0)Q.uint32(18).string($.resolutionDataSerialized);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??wH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.toolCallId=Z.string();continue}case 2:{if(J!==18)break;K.resolutionDataSerialized=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return pZ.fromPartial($??{})},fromPartial($){let Q=wH();return Q.toolCallId=$.toolCallId??void 0,Q.resolutionDataSerialized=$.resolutionDataSerialized??void 0,Q}};function jH(){return{}}var uZ={encode($,Q=new z){if($.sessionId!==void 0)Q.uint32(10).string($.sessionId);if($.sessionSource!==void 0)Q.uint32(16).int32($.sessionSource);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??jH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.sessionId=Z.string();continue}case 2:{if(J!==16)break;K.sessionSource=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return uZ.fromPartial($??{})},fromPartial($){let Q=jH();return Q.sessionId=$.sessionId??void 0,Q.sessionSource=$.sessionSource??void 0,Q}};function cH(){return{}}var Y$={encode($,Q=new z){if($.proofs!==void 0&&$.proofs.length!==0)for(let q of $.proofs)wZ.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??cH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.proofs===void 0)K.proofs=[];let V=wZ.decode(Z,Z.uint32());if(V!==void 0)K.proofs.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Y$.fromPartial($??{})},fromPartial($){let Q=cH();return Q.proofs=$.proofs?.map((q)=>wZ.fromPartial(q))||void 0,Q}};function dH(){return{}}var wZ={encode($,Q=new z){if($.version!==void 0)Q.uint32(8).int32($.version);if($.useCase!==void 0)Q.uint32(16).int32($.useCase);if($.signature!==void 0)Q.uint32(26).bytes($.signature);if($.certificateChain!==void 0&&$.certificateChain.length!==0)for(let q of $.certificateChain)Q.uint32(34).bytes(q);if($.certificateChainSki!==void 0&&$.certificateChainSki.length!==0)for(let q of $.certificateChainSki)jZ.encode(q,Q.uint32(42).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??dH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.version=Z.int32();continue}case 2:{if(J!==16)break;K.useCase=Z.int32();continue}case 3:{if(J!==26)break;K.signature=Z.bytes();continue}case 4:{if(J!==34)break;if(K.certificateChain===void 0)K.certificateChain=[];let V=Z.bytes();if(V!==void 0)K.certificateChain.push(V);continue}case 5:{if(J!==42)break;if(K.certificateChainSki===void 0)K.certificateChainSki=[];let V=jZ.decode(Z,Z.uint32());if(V!==void 0)K.certificateChainSki.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return wZ.fromPartial($??{})},fromPartial($){let Q=dH();return Q.version=$.version??void 0,Q.useCase=$.useCase??void 0,Q.signature=$.signature??void 0,Q.certificateChain=$.certificateChain?.map((q)=>q)||void 0,Q.certificateChainSki=$.certificateChainSki?.map((q)=>jZ.fromPartial(q))||void 0,Q}};function nH(){return{}}var jZ={encode($,Q=new z){if($.useCase!==void 0)Q.uint32(8).int32($.useCase);if($.ski!==void 0)Q.uint32(18).bytes($.ski);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??nH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.useCase=Z.int32();continue}case 2:{if(J!==18)break;K.ski=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return jZ.fromPartial($??{})},fromPartial($){let Q=nH();return Q.useCase=$.useCase??void 0,Q.ski=$.ski??void 0,Q}};function bH(){return{}}var cZ={encode($,Q=new z){if($.sources!==void 0&&$.sources.length!==0)for(let q of $.sources)dZ.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??bH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.sources===void 0)K.sources=[];let V=dZ.decode(Z,Z.uint32());if(V!==void 0)K.sources.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return cZ.fromPartial($??{})},fromPartial($){let Q=bH();return Q.sources=$.sources?.map((q)=>dZ.fromPartial(q))||void 0,Q}};function oH(){return{}}var dZ={encode($,Q=new z){if($.provider!==void 0)Q.uint32(8).int32($.provider);if($.thumbnailCdnUrl!==void 0)Q.uint32(18).string($.thumbnailCdnUrl);if($.sourceProviderUrl!==void 0)Q.uint32(26).string($.sourceProviderUrl);if($.sourceQuery!==void 0)Q.uint32(34).string($.sourceQuery);if($.faviconCdnUrl!==void 0)Q.uint32(42).string($.faviconCdnUrl);if($.citationNumber!==void 0)Q.uint32(48).uint32($.citationNumber);if($.sourceTitle!==void 0)Q.uint32(58).string($.sourceTitle);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??oH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.provider=Z.int32();continue}case 2:{if(J!==18)break;K.thumbnailCdnUrl=Z.string();continue}case 3:{if(J!==26)break;K.sourceProviderUrl=Z.string();continue}case 4:{if(J!==34)break;K.sourceQuery=Z.string();continue}case 5:{if(J!==42)break;K.faviconCdnUrl=Z.string();continue}case 6:{if(J!==48)break;K.citationNumber=Z.uint32();continue}case 7:{if(J!==58)break;K.sourceTitle=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return dZ.fromPartial($??{})},fromPartial($){let Q=oH();return Q.provider=$.provider??void 0,Q.thumbnailCdnUrl=$.thumbnailCdnUrl??void 0,Q.sourceProviderUrl=$.sourceProviderUrl??void 0,Q.sourceQuery=$.sourceQuery??void 0,Q.faviconCdnUrl=$.faviconCdnUrl??void 0,Q.citationNumber=$.citationNumber??void 0,Q.sourceTitle=$.sourceTitle??void 0,Q}};function iH(){return{}}var nZ={encode($,Q=new z){if($.suggestedPrompts!==void 0&&$.suggestedPrompts.length!==0)for(let q of $.suggestedPrompts)Q.uint32(10).string(q);if($.selectedPromptIndex!==void 0)Q.uint32(16).uint32($.selectedPromptIndex);if($.promptSuggestions!==void 0)IZ.encode($.promptSuggestions,Q.uint32(26).fork()).join();if($.selectedPromptId!==void 0)Q.uint32(34).string($.selectedPromptId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??iH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.suggestedPrompts===void 0)K.suggestedPrompts=[];let V=Z.string();if(V!==void 0)K.suggestedPrompts.push(V);continue}case 2:{if(J!==16)break;K.selectedPromptIndex=Z.uint32();continue}case 3:{if(J!==26)break;K.promptSuggestions=IZ.decode(Z,Z.uint32(),K.promptSuggestions);continue}case 4:{if(J!==34)break;K.selectedPromptId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return nZ.fromPartial($??{})},fromPartial($){let Q=iH();return Q.suggestedPrompts=$.suggestedPrompts?.map((q)=>q)||void 0,Q.selectedPromptIndex=$.selectedPromptIndex??void 0,Q.promptSuggestions=$.promptSuggestions!==void 0&&$.promptSuggestions!==null?IZ.fromPartial($.promptSuggestions):void 0,Q.selectedPromptId=$.selectedPromptId??void 0,Q}};function mH(){return{}}var bZ={encode($,Q=new z){if($.sbsMetadata!==void 0)iZ.encode($.sbsMetadata,Q.uint32(10).fork()).join();if($.mediaDetailsMetadataList!==void 0&&$.mediaDetailsMetadataList.length!==0)for(let q of $.mediaDetailsMetadataList)oZ.encode(q,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??mH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.sbsMetadata=iZ.decode(Z,Z.uint32(),K.sbsMetadata);continue}case 2:{if(J!==18)break;if(K.mediaDetailsMetadataList===void 0)K.mediaDetailsMetadataList=[];let V=oZ.decode(Z,Z.uint32());if(V!==void 0)K.mediaDetailsMetadataList.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return bZ.fromPartial($??{})},fromPartial($){let Q=mH();return Q.sbsMetadata=$.sbsMetadata!==void 0&&$.sbsMetadata!==null?iZ.fromPartial($.sbsMetadata):void 0,Q.mediaDetailsMetadataList=$.mediaDetailsMetadataList?.map((q)=>oZ.fromPartial(q))||void 0,Q}};function gH(){return{}}var oZ={encode($,Q=new z){if($.id!==void 0)Q.uint32(10).string($.id);if($.highResMedia!==void 0)k0.encode($.highResMedia,Q.uint32(18).fork()).join();if($.previewMedia!==void 0)k0.encode($.previewMedia,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??gH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.id=Z.string();continue}case 2:{if(J!==18)break;K.highResMedia=k0.decode(Z,Z.uint32(),K.highResMedia);continue}case 3:{if(J!==26)break;K.previewMedia=k0.decode(Z,Z.uint32(),K.previewMedia);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return oZ.fromPartial($??{})},fromPartial($){let Q=gH();return Q.id=$.id??void 0,Q.highResMedia=$.highResMedia!==void 0&&$.highResMedia!==null?k0.fromPartial($.highResMedia):void 0,Q.previewMedia=$.previewMedia!==void 0&&$.previewMedia!==null?k0.fromPartial($.previewMedia):void 0,Q}};function rH(){return{}}var iZ={encode($,Q=new z){if($.primaryResponseId!==void 0)Q.uint32(10).string($.primaryResponseId);if($.surveyCtaHasRendered!==void 0)Q.uint32(16).bool($.surveyCtaHasRendered);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??rH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.primaryResponseId=Z.string();continue}case 2:{if(J!==16)break;K.surveyCtaHasRendered=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return iZ.fromPartial($??{})},fromPartial($){let Q=rH();return Q.primaryResponseId=$.primaryResponseId??void 0,Q.surveyCtaHasRendered=$.surveyCtaHasRendered??void 0,Q}};function tH(){return{}}var V$={encode($,Q=new z){if($.callResult!==void 0)Q.uint32(8).int32($.callResult);if($.isDndMode!==void 0)Q.uint32(16).bool($.isDndMode);if($.silenceReason!==void 0)Q.uint32(24).int32($.silenceReason);if($.duration!==void 0)Q.uint32(32).int64($.duration);if($.startTime!==void 0)Q.uint32(40).int64($.startTime);if($.isIncoming!==void 0)Q.uint32(48).bool($.isIncoming);if($.isVideo!==void 0)Q.uint32(56).bool($.isVideo);if($.isCallLink!==void 0)Q.uint32(64).bool($.isCallLink);if($.callLinkToken!==void 0)Q.uint32(74).string($.callLinkToken);if($.scheduledCallId!==void 0)Q.uint32(82).string($.scheduledCallId);if($.callId!==void 0)Q.uint32(90).string($.callId);if($.callCreatorJid!==void 0)Q.uint32(98).string($.callCreatorJid);if($.groupJid!==void 0)Q.uint32(106).string($.groupJid);if($.participants!==void 0&&$.participants.length!==0)for(let q of $.participants)mZ.encode(q,Q.uint32(114).fork()).join();if($.callType!==void 0)Q.uint32(120).int32($.callType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??tH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.callResult=Z.int32();continue}case 2:{if(J!==16)break;K.isDndMode=Z.bool();continue}case 3:{if(J!==24)break;K.silenceReason=Z.int32();continue}case 4:{if(J!==32)break;K.duration=Z.int64Value();continue}case 5:{if(J!==40)break;K.startTime=Z.int64Value();continue}case 6:{if(J!==48)break;K.isIncoming=Z.bool();continue}case 7:{if(J!==56)break;K.isVideo=Z.bool();continue}case 8:{if(J!==64)break;K.isCallLink=Z.bool();continue}case 9:{if(J!==74)break;K.callLinkToken=Z.string();continue}case 10:{if(J!==82)break;K.scheduledCallId=Z.string();continue}case 11:{if(J!==90)break;K.callId=Z.string();continue}case 12:{if(J!==98)break;K.callCreatorJid=Z.string();continue}case 13:{if(J!==106)break;K.groupJid=Z.string();continue}case 14:{if(J!==114)break;if(K.participants===void 0)K.participants=[];let V=mZ.decode(Z,Z.uint32());if(V!==void 0)K.participants.push(V);continue}case 15:{if(J!==120)break;K.callType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return V$.fromPartial($??{})},fromPartial($){let Q=tH();return Q.callResult=$.callResult??void 0,Q.isDndMode=$.isDndMode??void 0,Q.silenceReason=$.silenceReason??void 0,Q.duration=$.duration??void 0,Q.startTime=$.startTime??void 0,Q.isIncoming=$.isIncoming??void 0,Q.isVideo=$.isVideo??void 0,Q.isCallLink=$.isCallLink??void 0,Q.callLinkToken=$.callLinkToken??void 0,Q.scheduledCallId=$.scheduledCallId??void 0,Q.callId=$.callId??void 0,Q.callCreatorJid=$.callCreatorJid??void 0,Q.groupJid=$.groupJid??void 0,Q.participants=$.participants?.map((q)=>mZ.fromPartial(q))||void 0,Q.callType=$.callType??void 0,Q}};function aH(){return{}}var mZ={encode($,Q=new z){if($.userJid!==void 0)Q.uint32(10).string($.userJid);if($.callResult!==void 0)Q.uint32(16).int32($.callResult);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??aH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.userJid=Z.string();continue}case 2:{if(J!==16)break;K.callResult=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return mZ.fromPartial($??{})},fromPartial($){let Q=aH();return Q.userJid=$.userJid??void 0,Q.callResult=$.callResult??void 0,Q}};function sH(){return{}}var uV={encode($,Q=new z){if($.leaf!==void 0)h0.encode($.leaf,Q.uint32(10).fork()).join();if($.intermediate!==void 0)h0.encode($.intermediate,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??sH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.leaf=h0.decode(Z,Z.uint32(),K.leaf);continue}case 2:{if(J!==18)break;K.intermediate=h0.decode(Z,Z.uint32(),K.intermediate);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return uV.fromPartial($??{})},fromPartial($){let Q=sH();return Q.leaf=$.leaf!==void 0&&$.leaf!==null?h0.fromPartial($.leaf):void 0,Q.intermediate=$.intermediate!==void 0&&$.intermediate!==null?h0.fromPartial($.intermediate):void 0,Q}};function eH(){return{}}var h0={encode($,Q=new z){if($.details!==void 0)Q.uint32(10).bytes($.details);if($.signature!==void 0)Q.uint32(18).bytes($.signature);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??eH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.details=Z.bytes();continue}case 2:{if(J!==18)break;K.signature=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return h0.fromPartial($??{})},fromPartial($){let Q=eH();return Q.details=$.details??void 0,Q.signature=$.signature??void 0,Q}};function $7(){return{}}var wV={encode($,Q=new z){if($.serial!==void 0)Q.uint32(8).uint32($.serial);if($.issuerSerial!==void 0)Q.uint32(16).uint32($.issuerSerial);if($.key!==void 0)Q.uint32(26).bytes($.key);if($.notBefore!==void 0)Q.uint32(32).uint64($.notBefore);if($.notAfter!==void 0)Q.uint32(40).uint64($.notAfter);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??$7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.serial=Z.uint32();continue}case 2:{if(J!==16)break;K.issuerSerial=Z.uint32();continue}case 3:{if(J!==26)break;K.key=Z.bytes();continue}case 4:{if(J!==32)break;K.notBefore=Z.uint64Value();continue}case 5:{if(J!==40)break;K.notAfter=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return wV.fromPartial($??{})},fromPartial($){let Q=$7();return Q.serial=$.serial??void 0,Q.issuerSerial=$.issuerSerial??void 0,Q.key=$.key??void 0,Q.notBefore=$.notBefore??void 0,Q.notAfter=$.notAfter??void 0,Q}};function Q7(){return{}}var z$={encode($,Q=new z){if($.hideLockedChats!==void 0)Q.uint32(8).bool($.hideLockedChats);if($.secretCode!==void 0)CV.encode($.secretCode,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Q7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.hideLockedChats=Z.bool();continue}case 2:{if(J!==18)break;K.secretCode=CV.decode(Z,Z.uint32(),K.secretCode);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return z$.fromPartial($??{})},fromPartial($){let Q=Q7();return Q.hideLockedChats=$.hideLockedChats??void 0,Q.secretCode=$.secretCode!==void 0&&$.secretCode!==null?CV.fromPartial($.secretCode):void 0,Q}};function Z7(){return{}}var q3={encode($,Q=new z){if($.draftMessage!==void 0)gZ.encode($.draftMessage,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Z7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.draftMessage=gZ.decode(Z,Z.uint32(),K.draftMessage);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return q3.fromPartial($??{})},fromPartial($){let Q=Z7();return Q.draftMessage=$.draftMessage!==void 0&&$.draftMessage!==null?gZ.fromPartial($.draftMessage):void 0,Q}};function J7(){return{}}var gZ={encode($,Q=new z){if($.text!==void 0)Q.uint32(10).string($.text);if($.omittedUrl!==void 0)Q.uint32(18).string($.omittedUrl);if($.ctwaContextLinkData!==void 0)tZ.encode($.ctwaContextLinkData,Q.uint32(26).fork()).join();if($.ctwaContext!==void 0)rZ.encode($.ctwaContext,Q.uint32(34).fork()).join();if($.timestamp!==void 0)Q.uint32(40).int64($.timestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??J7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.text=Z.string();continue}case 2:{if(J!==18)break;K.omittedUrl=Z.string();continue}case 3:{if(J!==26)break;K.ctwaContextLinkData=tZ.decode(Z,Z.uint32(),K.ctwaContextLinkData);continue}case 4:{if(J!==34)break;K.ctwaContext=rZ.decode(Z,Z.uint32(),K.ctwaContext);continue}case 5:{if(J!==40)break;K.timestamp=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return gZ.fromPartial($??{})},fromPartial($){let Q=J7();return Q.text=$.text??void 0,Q.omittedUrl=$.omittedUrl??void 0,Q.ctwaContextLinkData=$.ctwaContextLinkData!==void 0&&$.ctwaContextLinkData!==null?tZ.fromPartial($.ctwaContextLinkData):void 0,Q.ctwaContext=$.ctwaContext!==void 0&&$.ctwaContext!==null?rZ.fromPartial($.ctwaContext):void 0,Q.timestamp=$.timestamp??void 0,Q}};function K7(){return{}}var rZ={encode($,Q=new z){if($.conversionSource!==void 0)Q.uint32(10).string($.conversionSource);if($.conversionData!==void 0)Q.uint32(18).bytes($.conversionData);if($.sourceUrl!==void 0)Q.uint32(26).string($.sourceUrl);if($.sourceId!==void 0)Q.uint32(34).string($.sourceId);if($.sourceType!==void 0)Q.uint32(42).string($.sourceType);if($.title!==void 0)Q.uint32(50).string($.title);if($.description!==void 0)Q.uint32(58).string($.description);if($.thumbnail!==void 0)Q.uint32(66).string($.thumbnail);if($.thumbnailUrl!==void 0)Q.uint32(74).string($.thumbnailUrl);if($.mediaType!==void 0)Q.uint32(80).int32($.mediaType);if($.mediaUrl!==void 0)Q.uint32(90).string($.mediaUrl);if($.isSuspiciousLink!==void 0)Q.uint32(96).bool($.isSuspiciousLink);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??K7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.conversionSource=Z.string();continue}case 2:{if(J!==18)break;K.conversionData=Z.bytes();continue}case 3:{if(J!==26)break;K.sourceUrl=Z.string();continue}case 4:{if(J!==34)break;K.sourceId=Z.string();continue}case 5:{if(J!==42)break;K.sourceType=Z.string();continue}case 6:{if(J!==50)break;K.title=Z.string();continue}case 7:{if(J!==58)break;K.description=Z.string();continue}case 8:{if(J!==66)break;K.thumbnail=Z.string();continue}case 9:{if(J!==74)break;K.thumbnailUrl=Z.string();continue}case 10:{if(J!==80)break;K.mediaType=Z.int32();continue}case 11:{if(J!==90)break;K.mediaUrl=Z.string();continue}case 12:{if(J!==96)break;K.isSuspiciousLink=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return rZ.fromPartial($??{})},fromPartial($){let Q=K7();return Q.conversionSource=$.conversionSource??void 0,Q.conversionData=$.conversionData??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q.sourceId=$.sourceId??void 0,Q.sourceType=$.sourceType??void 0,Q.title=$.title??void 0,Q.description=$.description??void 0,Q.thumbnail=$.thumbnail??void 0,Q.thumbnailUrl=$.thumbnailUrl??void 0,Q.mediaType=$.mediaType??void 0,Q.mediaUrl=$.mediaUrl??void 0,Q.isSuspiciousLink=$.isSuspiciousLink??void 0,Q}};function q7(){return{}}var tZ={encode($,Q=new z){if($.context!==void 0)Q.uint32(10).string($.context);if($.sourceUrl!==void 0)Q.uint32(18).string($.sourceUrl);if($.icebreaker!==void 0)Q.uint32(26).string($.icebreaker);if($.phone!==void 0)Q.uint32(34).string($.phone);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??q7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.context=Z.string();continue}case 2:{if(J!==18)break;K.sourceUrl=Z.string();continue}case 3:{if(J!==26)break;K.icebreaker=Z.string();continue}case 4:{if(J!==34)break;K.phone=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return tZ.fromPartial($??{})},fromPartial($){let Q=q7();return Q.context=$.context??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q.icebreaker=$.icebreaker??void 0,Q.phone=$.phone??void 0,Q}};function X7(){return{}}var aZ={encode($,Q=new z){if($.title!==void 0)Q.uint32(10).string($.title);if($.subtitle!==void 0)Q.uint32(18).string($.subtitle);if($.cmsId!==void 0)Q.uint32(26).string($.cmsId);if($.imageUrl!==void 0)Q.uint32(34).string($.imageUrl);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??X7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.title=Z.string();continue}case 2:{if(J!==18)break;K.subtitle=Z.string();continue}case 3:{if(J!==26)break;K.cmsId=Z.string();continue}case 4:{if(J!==34)break;K.imageUrl=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return aZ.fromPartial($??{})},fromPartial($){let Q=X7();return Q.title=$.title??void 0,Q.subtitle=$.subtitle??void 0,Q.cmsId=$.cmsId??void 0,Q.imageUrl=$.imageUrl??void 0,Q}};function Y7(){return{}}var X3={encode($,Q=new z){if($.isChatDbLidMigrated!==void 0)Q.uint32(8).bool($.isChatDbLidMigrated);if($.isSyncdPureLidSession!==void 0)Q.uint32(16).bool($.isSyncdPureLidSession);if($.isSyncdSnapshotRecoveryEnabled!==void 0)Q.uint32(24).bool($.isSyncdSnapshotRecoveryEnabled);if($.isHsThumbnailSyncEnabled!==void 0)Q.uint32(32).bool($.isHsThumbnailSyncEnabled);if($.subscriptionSyncPayload!==void 0)Q.uint32(42).bytes($.subscriptionSyncPayload);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Y7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isChatDbLidMigrated=Z.bool();continue}case 2:{if(J!==16)break;K.isSyncdPureLidSession=Z.bool();continue}case 3:{if(J!==24)break;K.isSyncdSnapshotRecoveryEnabled=Z.bool();continue}case 4:{if(J!==32)break;K.isHsThumbnailSyncEnabled=Z.bool();continue}case 5:{if(J!==42)break;K.subscriptionSyncPayload=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return X3.fromPartial($??{})},fromPartial($){let Q=Y7();return Q.isChatDbLidMigrated=$.isChatDbLidMigrated??void 0,Q.isSyncdPureLidSession=$.isSyncdPureLidSession??void 0,Q.isSyncdSnapshotRecoveryEnabled=$.isSyncdSnapshotRecoveryEnabled??void 0,Q.isHsThumbnailSyncEnabled=$.isHsThumbnailSyncEnabled??void 0,Q.subscriptionSyncPayload=$.subscriptionSyncPayload??void 0,Q}};function V7(){return{}}var jV={encode($,Q=new z){if($.username!==void 0)Q.uint32(8).uint64($.username);if($.passive!==void 0)Q.uint32(24).bool($.passive);if($.userAgent!==void 0)QJ.encode($.userAgent,Q.uint32(42).fork()).join();if($.webInfo!==void 0)JJ.encode($.webInfo,Q.uint32(50).fork()).join();if($.pushName!==void 0)Q.uint32(58).string($.pushName);if($.sessionId!==void 0)Q.uint32(77).sfixed32($.sessionId);if($.shortConnect!==void 0)Q.uint32(80).bool($.shortConnect);if($.connectType!==void 0)Q.uint32(96).int32($.connectType);if($.connectReason!==void 0)Q.uint32(104).int32($.connectReason);if($.shards!==void 0&&$.shards.length!==0)for(let q of $.shards)Q.uint32(112).int32(q);if($.dnsSource!==void 0)sZ.encode($.dnsSource,Q.uint32(122).fork()).join();if($.connectAttemptCount!==void 0)Q.uint32(128).uint32($.connectAttemptCount);if($.device!==void 0)Q.uint32(144).uint32($.device);if($.devicePairingData!==void 0)eZ.encode($.devicePairingData,Q.uint32(154).fork()).join();if($.product!==void 0)Q.uint32(160).int32($.product);if($.fbCat!==void 0)Q.uint32(170).bytes($.fbCat);if($.fbUserAgent!==void 0)Q.uint32(178).bytes($.fbUserAgent);if($.oc!==void 0)Q.uint32(184).bool($.oc);if($.lc!==void 0)Q.uint32(192).int32($.lc);if($.iosAppExtension!==void 0)Q.uint32(240).int32($.iosAppExtension);if($.fbAppId!==void 0)Q.uint32(248).uint64($.fbAppId);if($.fbDeviceId!==void 0)Q.uint32(258).bytes($.fbDeviceId);if($.pull!==void 0)Q.uint32(264).bool($.pull);if($.paddingBytes!==void 0)Q.uint32(274).bytes($.paddingBytes);if($.yearClass!==void 0)Q.uint32(288).int32($.yearClass);if($.memClass!==void 0)Q.uint32(296).int32($.memClass);if($.interopData!==void 0)$J.encode($.interopData,Q.uint32(306).fork()).join();if($.trafficAnonymization!==void 0)Q.uint32(320).int32($.trafficAnonymization);if($.lidDbMigrated!==void 0)Q.uint32(328).bool($.lidDbMigrated);if($.accountType!==void 0)Q.uint32(336).int32($.accountType);if($.connectionSequenceInfo!==void 0)Q.uint32(349).sfixed32($.connectionSequenceInfo);if($.paaLink!==void 0)Q.uint32(352).bool($.paaLink);if($.preacksCount!==void 0)Q.uint32(360).int32($.preacksCount);if($.processingQueueSize!==void 0)Q.uint32(368).int32($.processingQueueSize);if($.pairedPeripherals!==void 0&&$.pairedPeripherals.length!==0)for(let q of $.pairedPeripherals)Q.uint32(378).string(q);if($.testIsolationId!==void 0)Q.uint32(386).bytes($.testIsolationId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??V7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.username=Z.uint64Value();continue}case 3:{if(J!==24)break;K.passive=Z.bool();continue}case 5:{if(J!==42)break;K.userAgent=QJ.decode(Z,Z.uint32(),K.userAgent);continue}case 6:{if(J!==50)break;K.webInfo=JJ.decode(Z,Z.uint32(),K.webInfo);continue}case 7:{if(J!==58)break;K.pushName=Z.string();continue}case 9:{if(J!==77)break;K.sessionId=Z.sfixed32();continue}case 10:{if(J!==80)break;K.shortConnect=Z.bool();continue}case 12:{if(J!==96)break;K.connectType=Z.int32();continue}case 13:{if(J!==104)break;K.connectReason=Z.int32();continue}case 14:{if(J===112){if(K.shards===void 0)K.shards=[];K.shards.push(Z.int32());continue}if(J===114){if(K.shards===void 0)K.shards=[];let V=Z.uint32()+Z.pos;while(Z.pos<V)K.shards.push(Z.int32());continue}break}case 15:{if(J!==122)break;K.dnsSource=sZ.decode(Z,Z.uint32(),K.dnsSource);continue}case 16:{if(J!==128)break;K.connectAttemptCount=Z.uint32();continue}case 18:{if(J!==144)break;K.device=Z.uint32();continue}case 19:{if(J!==154)break;K.devicePairingData=eZ.decode(Z,Z.uint32(),K.devicePairingData);continue}case 20:{if(J!==160)break;K.product=Z.int32();continue}case 21:{if(J!==170)break;K.fbCat=Z.bytes();continue}case 22:{if(J!==178)break;K.fbUserAgent=Z.bytes();continue}case 23:{if(J!==184)break;K.oc=Z.bool();continue}case 24:{if(J!==192)break;K.lc=Z.int32();continue}case 30:{if(J!==240)break;K.iosAppExtension=Z.int32();continue}case 31:{if(J!==248)break;K.fbAppId=Z.uint64Value();continue}case 32:{if(J!==258)break;K.fbDeviceId=Z.bytes();continue}case 33:{if(J!==264)break;K.pull=Z.bool();continue}case 34:{if(J!==274)break;K.paddingBytes=Z.bytes();continue}case 36:{if(J!==288)break;K.yearClass=Z.int32();continue}case 37:{if(J!==296)break;K.memClass=Z.int32();continue}case 38:{if(J!==306)break;K.interopData=$J.decode(Z,Z.uint32(),K.interopData);continue}case 40:{if(J!==320)break;K.trafficAnonymization=Z.int32();continue}case 41:{if(J!==328)break;K.lidDbMigrated=Z.bool();continue}case 42:{if(J!==336)break;K.accountType=Z.int32();continue}case 43:{if(J!==349)break;K.connectionSequenceInfo=Z.sfixed32();continue}case 44:{if(J!==352)break;K.paaLink=Z.bool();continue}case 45:{if(J!==360)break;K.preacksCount=Z.int32();continue}case 46:{if(J!==368)break;K.processingQueueSize=Z.int32();continue}case 47:{if(J!==378)break;if(K.pairedPeripherals===void 0)K.pairedPeripherals=[];let V=Z.string();if(V!==void 0)K.pairedPeripherals.push(V);continue}case 48:{if(J!==386)break;K.testIsolationId=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return jV.fromPartial($??{})},fromPartial($){let Q=V7();return Q.username=$.username??void 0,Q.passive=$.passive??void 0,Q.userAgent=$.userAgent!==void 0&&$.userAgent!==null?QJ.fromPartial($.userAgent):void 0,Q.webInfo=$.webInfo!==void 0&&$.webInfo!==null?JJ.fromPartial($.webInfo):void 0,Q.pushName=$.pushName??void 0,Q.sessionId=$.sessionId??void 0,Q.shortConnect=$.shortConnect??void 0,Q.connectType=$.connectType??void 0,Q.connectReason=$.connectReason??void 0,Q.shards=$.shards?.map((q)=>q)||void 0,Q.dnsSource=$.dnsSource!==void 0&&$.dnsSource!==null?sZ.fromPartial($.dnsSource):void 0,Q.connectAttemptCount=$.connectAttemptCount??void 0,Q.device=$.device??void 0,Q.devicePairingData=$.devicePairingData!==void 0&&$.devicePairingData!==null?eZ.fromPartial($.devicePairingData):void 0,Q.product=$.product??void 0,Q.fbCat=$.fbCat??void 0,Q.fbUserAgent=$.fbUserAgent??void 0,Q.oc=$.oc??void 0,Q.lc=$.lc??void 0,Q.iosAppExtension=$.iosAppExtension??void 0,Q.fbAppId=$.fbAppId??void 0,Q.fbDeviceId=$.fbDeviceId??void 0,Q.pull=$.pull??void 0,Q.paddingBytes=$.paddingBytes??void 0,Q.yearClass=$.yearClass??void 0,Q.memClass=$.memClass??void 0,Q.interopData=$.interopData!==void 0&&$.interopData!==null?$J.fromPartial($.interopData):void 0,Q.trafficAnonymization=$.trafficAnonymization??void 0,Q.lidDbMigrated=$.lidDbMigrated??void 0,Q.accountType=$.accountType??void 0,Q.connectionSequenceInfo=$.connectionSequenceInfo??void 0,Q.paaLink=$.paaLink??void 0,Q.preacksCount=$.preacksCount??void 0,Q.processingQueueSize=$.processingQueueSize??void 0,Q.pairedPeripherals=$.pairedPeripherals?.map((q)=>q)||void 0,Q.testIsolationId=$.testIsolationId??void 0,Q}};function z7(){return{}}var sZ={encode($,Q=new z){if($.dnsMethod!==void 0)Q.uint32(120).int32($.dnsMethod);if($.appCached!==void 0)Q.uint32(128).bool($.appCached);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??z7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 15:{if(J!==120)break;K.dnsMethod=Z.int32();continue}case 16:{if(J!==128)break;K.appCached=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return sZ.fromPartial($??{})},fromPartial($){let Q=z7();return Q.dnsMethod=$.dnsMethod??void 0,Q.appCached=$.appCached??void 0,Q}};function H7(){return{}}var eZ={encode($,Q=new z){if($.eRegid!==void 0)Q.uint32(10).bytes($.eRegid);if($.eKeytype!==void 0)Q.uint32(18).bytes($.eKeytype);if($.eIdent!==void 0)Q.uint32(26).bytes($.eIdent);if($.eSkeyId!==void 0)Q.uint32(34).bytes($.eSkeyId);if($.eSkeyVal!==void 0)Q.uint32(42).bytes($.eSkeyVal);if($.eSkeySig!==void 0)Q.uint32(50).bytes($.eSkeySig);if($.buildHash!==void 0)Q.uint32(58).bytes($.buildHash);if($.deviceProps!==void 0)Q.uint32(66).bytes($.deviceProps);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??H7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.eRegid=Z.bytes();continue}case 2:{if(J!==18)break;K.eKeytype=Z.bytes();continue}case 3:{if(J!==26)break;K.eIdent=Z.bytes();continue}case 4:{if(J!==34)break;K.eSkeyId=Z.bytes();continue}case 5:{if(J!==42)break;K.eSkeyVal=Z.bytes();continue}case 6:{if(J!==50)break;K.eSkeySig=Z.bytes();continue}case 7:{if(J!==58)break;K.buildHash=Z.bytes();continue}case 8:{if(J!==66)break;K.deviceProps=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return eZ.fromPartial($??{})},fromPartial($){let Q=H7();return Q.eRegid=$.eRegid??void 0,Q.eKeytype=$.eKeytype??void 0,Q.eIdent=$.eIdent??void 0,Q.eSkeyId=$.eSkeyId??void 0,Q.eSkeyVal=$.eSkeyVal??void 0,Q.eSkeySig=$.eSkeySig??void 0,Q.buildHash=$.buildHash??void 0,Q.deviceProps=$.deviceProps??void 0,Q}};function G7(){return{}}var $J={encode($,Q=new z){if($.accountId!==void 0)Q.uint32(8).uint64($.accountId);if($.token!==void 0)Q.uint32(18).bytes($.token);if($.enableReadReceipts!==void 0)Q.uint32(24).bool($.enableReadReceipts);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??G7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.accountId=Z.uint64Value();continue}case 2:{if(J!==18)break;K.token=Z.bytes();continue}case 3:{if(J!==24)break;K.enableReadReceipts=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return $J.fromPartial($??{})},fromPartial($){let Q=G7();return Q.accountId=$.accountId??void 0,Q.token=$.token??void 0,Q.enableReadReceipts=$.enableReadReceipts??void 0,Q}};function U7(){return{}}var QJ={encode($,Q=new z){if($.platform!==void 0)Q.uint32(8).int32($.platform);if($.appVersion!==void 0)ZJ.encode($.appVersion,Q.uint32(18).fork()).join();if($.mcc!==void 0)Q.uint32(26).string($.mcc);if($.mnc!==void 0)Q.uint32(34).string($.mnc);if($.osVersion!==void 0)Q.uint32(42).string($.osVersion);if($.manufacturer!==void 0)Q.uint32(50).string($.manufacturer);if($.device!==void 0)Q.uint32(58).string($.device);if($.osBuildNumber!==void 0)Q.uint32(66).string($.osBuildNumber);if($.phoneId!==void 0)Q.uint32(74).string($.phoneId);if($.releaseChannel!==void 0)Q.uint32(80).int32($.releaseChannel);if($.localeLanguageIso6391!==void 0)Q.uint32(90).string($.localeLanguageIso6391);if($.localeCountryIso31661Alpha2!==void 0)Q.uint32(98).string($.localeCountryIso31661Alpha2);if($.deviceBoard!==void 0)Q.uint32(106).string($.deviceBoard);if($.deviceExpId!==void 0)Q.uint32(114).string($.deviceExpId);if($.deviceType!==void 0)Q.uint32(120).int32($.deviceType);if($.deviceModelType!==void 0)Q.uint32(130).string($.deviceModelType);if($.distributionChannel!==void 0)Q.uint32(136).int32($.distributionChannel);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??U7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.platform=Z.int32();continue}case 2:{if(J!==18)break;K.appVersion=ZJ.decode(Z,Z.uint32(),K.appVersion);continue}case 3:{if(J!==26)break;K.mcc=Z.string();continue}case 4:{if(J!==34)break;K.mnc=Z.string();continue}case 5:{if(J!==42)break;K.osVersion=Z.string();continue}case 6:{if(J!==50)break;K.manufacturer=Z.string();continue}case 7:{if(J!==58)break;K.device=Z.string();continue}case 8:{if(J!==66)break;K.osBuildNumber=Z.string();continue}case 9:{if(J!==74)break;K.phoneId=Z.string();continue}case 10:{if(J!==80)break;K.releaseChannel=Z.int32();continue}case 11:{if(J!==90)break;K.localeLanguageIso6391=Z.string();continue}case 12:{if(J!==98)break;K.localeCountryIso31661Alpha2=Z.string();continue}case 13:{if(J!==106)break;K.deviceBoard=Z.string();continue}case 14:{if(J!==114)break;K.deviceExpId=Z.string();continue}case 15:{if(J!==120)break;K.deviceType=Z.int32();continue}case 16:{if(J!==130)break;K.deviceModelType=Z.string();continue}case 17:{if(J!==136)break;K.distributionChannel=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return QJ.fromPartial($??{})},fromPartial($){let Q=U7();return Q.platform=$.platform??void 0,Q.appVersion=$.appVersion!==void 0&&$.appVersion!==null?ZJ.fromPartial($.appVersion):void 0,Q.mcc=$.mcc??void 0,Q.mnc=$.mnc??void 0,Q.osVersion=$.osVersion??void 0,Q.manufacturer=$.manufacturer??void 0,Q.device=$.device??void 0,Q.osBuildNumber=$.osBuildNumber??void 0,Q.phoneId=$.phoneId??void 0,Q.releaseChannel=$.releaseChannel??void 0,Q.localeLanguageIso6391=$.localeLanguageIso6391??void 0,Q.localeCountryIso31661Alpha2=$.localeCountryIso31661Alpha2??void 0,Q.deviceBoard=$.deviceBoard??void 0,Q.deviceExpId=$.deviceExpId??void 0,Q.deviceType=$.deviceType??void 0,Q.deviceModelType=$.deviceModelType??void 0,Q.distributionChannel=$.distributionChannel??void 0,Q}};function C7(){return{}}var ZJ={encode($,Q=new z){if($.primary!==void 0)Q.uint32(8).uint32($.primary);if($.secondary!==void 0)Q.uint32(16).uint32($.secondary);if($.tertiary!==void 0)Q.uint32(24).uint32($.tertiary);if($.quaternary!==void 0)Q.uint32(32).uint32($.quaternary);if($.quinary!==void 0)Q.uint32(40).uint32($.quinary);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??C7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.primary=Z.uint32();continue}case 2:{if(J!==16)break;K.secondary=Z.uint32();continue}case 3:{if(J!==24)break;K.tertiary=Z.uint32();continue}case 4:{if(J!==32)break;K.quaternary=Z.uint32();continue}case 5:{if(J!==40)break;K.quinary=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return ZJ.fromPartial($??{})},fromPartial($){let Q=C7();return Q.primary=$.primary??void 0,Q.secondary=$.secondary??void 0,Q.tertiary=$.tertiary??void 0,Q.quaternary=$.quaternary??void 0,Q.quinary=$.quinary??void 0,Q}};function D7(){return{}}var JJ={encode($,Q=new z){if($.refToken!==void 0)Q.uint32(10).string($.refToken);if($.version!==void 0)Q.uint32(18).string($.version);if($.webdPayload!==void 0)KJ.encode($.webdPayload,Q.uint32(26).fork()).join();if($.webSubPlatform!==void 0)Q.uint32(32).int32($.webSubPlatform);if($.browser!==void 0)Q.uint32(42).string($.browser);if($.browserVersion!==void 0)Q.uint32(50).string($.browserVersion);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??D7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.refToken=Z.string();continue}case 2:{if(J!==18)break;K.version=Z.string();continue}case 3:{if(J!==26)break;K.webdPayload=KJ.decode(Z,Z.uint32(),K.webdPayload);continue}case 4:{if(J!==32)break;K.webSubPlatform=Z.int32();continue}case 5:{if(J!==42)break;K.browser=Z.string();continue}case 6:{if(J!==50)break;K.browserVersion=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return JJ.fromPartial($??{})},fromPartial($){let Q=D7();return Q.refToken=$.refToken??void 0,Q.version=$.version??void 0,Q.webdPayload=$.webdPayload!==void 0&&$.webdPayload!==null?KJ.fromPartial($.webdPayload):void 0,Q.webSubPlatform=$.webSubPlatform??void 0,Q.browser=$.browser??void 0,Q.browserVersion=$.browserVersion??void 0,Q}};function F7(){return{}}var KJ={encode($,Q=new z){if($.usesParticipantInKey!==void 0)Q.uint32(8).bool($.usesParticipantInKey);if($.supportsStarredMessages!==void 0)Q.uint32(16).bool($.supportsStarredMessages);if($.supportsDocumentMessages!==void 0)Q.uint32(24).bool($.supportsDocumentMessages);if($.supportsUrlMessages!==void 0)Q.uint32(32).bool($.supportsUrlMessages);if($.supportsMediaRetry!==void 0)Q.uint32(40).bool($.supportsMediaRetry);if($.supportsE2EImage!==void 0)Q.uint32(48).bool($.supportsE2EImage);if($.supportsE2EVideo!==void 0)Q.uint32(56).bool($.supportsE2EVideo);if($.supportsE2EAudio!==void 0)Q.uint32(64).bool($.supportsE2EAudio);if($.supportsE2EDocument!==void 0)Q.uint32(72).bool($.supportsE2EDocument);if($.documentTypes!==void 0)Q.uint32(82).string($.documentTypes);if($.features!==void 0)Q.uint32(90).bytes($.features);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??F7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.usesParticipantInKey=Z.bool();continue}case 2:{if(J!==16)break;K.supportsStarredMessages=Z.bool();continue}case 3:{if(J!==24)break;K.supportsDocumentMessages=Z.bool();continue}case 4:{if(J!==32)break;K.supportsUrlMessages=Z.bool();continue}case 5:{if(J!==40)break;K.supportsMediaRetry=Z.bool();continue}case 6:{if(J!==48)break;K.supportsE2EImage=Z.bool();continue}case 7:{if(J!==56)break;K.supportsE2EVideo=Z.bool();continue}case 8:{if(J!==64)break;K.supportsE2EAudio=Z.bool();continue}case 9:{if(J!==72)break;K.supportsE2EDocument=Z.bool();continue}case 10:{if(J!==82)break;K.documentTypes=Z.string();continue}case 11:{if(J!==90)break;K.features=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return KJ.fromPartial($??{})},fromPartial($){let Q=F7();return Q.usesParticipantInKey=$.usesParticipantInKey??void 0,Q.supportsStarredMessages=$.supportsStarredMessages??void 0,Q.supportsDocumentMessages=$.supportsDocumentMessages??void 0,Q.supportsUrlMessages=$.supportsUrlMessages??void 0,Q.supportsMediaRetry=$.supportsMediaRetry??void 0,Q.supportsE2EImage=$.supportsE2EImage??void 0,Q.supportsE2EVideo=$.supportsE2EVideo??void 0,Q.supportsE2EAudio=$.supportsE2EAudio??void 0,Q.supportsE2EDocument=$.supportsE2EDocument??void 0,Q.documentTypes=$.documentTypes??void 0,Q.features=$.features??void 0,Q}};function P7(){return{}}var qJ={encode($,Q=new z){if($.collectionMutations!==void 0&&$.collectionMutations.length!==0)for(let q of $.collectionMutations)XJ.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??P7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.collectionMutations===void 0)K.collectionMutations=[];let V=XJ.decode(Z,Z.uint32());if(V!==void 0)K.collectionMutations.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return qJ.fromPartial($??{})},fromPartial($){let Q=P7();return Q.collectionMutations=$.collectionMutations?.map((q)=>XJ.fromPartial(q))||void 0,Q}};function L7(){return{}}var XJ={encode($,Q=new z){if($.collection!==void 0)Q.uint32(10).string($.collection);if($.mutations!==void 0&&$.mutations.length!==0)for(let q of $.mutations)YJ.encode(q,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??L7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.collection=Z.string();continue}case 2:{if(J!==18)break;if(K.mutations===void 0)K.mutations=[];let V=YJ.decode(Z,Z.uint32());if(V!==void 0)K.mutations.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return XJ.fromPartial($??{})},fromPartial($){let Q=L7();return Q.collection=$.collection??void 0,Q.mutations=$.mutations?.map((q)=>YJ.fromPartial(q))||void 0,Q}};function x7(){return{}}var YJ={encode($,Q=new z){if($.index!==void 0)w$.encode($.index,Q.uint32(10).fork()).join();if($.value!==void 0)j$.encode($.value,Q.uint32(18).fork()).join();if($.dirtyVersion!==void 0)Q.uint32(24).uint64($.dirtyVersion);if($.operation!==void 0)Q.uint32(32).int32($.operation);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??x7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.index=w$.decode(Z,Z.uint32(),K.index);continue}case 2:{if(J!==18)break;K.value=j$.decode(Z,Z.uint32(),K.value);continue}case 3:{if(J!==24)break;K.dirtyVersion=Z.uint64Value();continue}case 4:{if(J!==32)break;K.operation=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return YJ.fromPartial($??{})},fromPartial($){let Q=x7();return Q.index=$.index!==void 0&&$.index!==null?w$.fromPartial($.index):void 0,Q.value=$.value!==void 0&&$.value!==null?j$.fromPartial($.value):void 0,Q.dirtyVersion=$.dirtyVersion??void 0,Q.operation=$.operation??void 0,Q}};function k7(){return{}}var Y3={encode($,Q=new z){if($.version!==void 0)Q.uint32(8).uint32($.version);if($.localFingerprint!==void 0)r0.encode($.localFingerprint,Q.uint32(18).fork()).join();if($.remoteFingerprint!==void 0)r0.encode($.remoteFingerprint,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??k7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.version=Z.uint32();continue}case 2:{if(J!==18)break;K.localFingerprint=r0.decode(Z,Z.uint32(),K.localFingerprint);continue}case 3:{if(J!==26)break;K.remoteFingerprint=r0.decode(Z,Z.uint32(),K.remoteFingerprint);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Y3.fromPartial($??{})},fromPartial($){let Q=k7();return Q.version=$.version??void 0,Q.localFingerprint=$.localFingerprint!==void 0&&$.localFingerprint!==null?r0.fromPartial($.localFingerprint):void 0,Q.remoteFingerprint=$.remoteFingerprint!==void 0&&$.remoteFingerprint!==null?r0.fromPartial($.remoteFingerprint):void 0,Q}};function N7(){return{}}var H$={encode($,Q=new z){if($.commandType!==void 0)Q.uint32(8).int32($.commandType);if($.offset!==void 0)Q.uint32(16).uint32($.offset);if($.length!==void 0)Q.uint32(24).uint32($.length);if($.validationToken!==void 0)Q.uint32(34).string($.validationToken);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??N7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.commandType=Z.int32();continue}case 2:{if(J!==16)break;K.offset=Z.uint32();continue}case 3:{if(J!==24)break;K.length=Z.uint32();continue}case 4:{if(J!==34)break;K.validationToken=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return H$.fromPartial($??{})},fromPartial($){let Q=N7();return Q.commandType=$.commandType??void 0,Q.offset=$.offset??void 0,Q.length=$.length??void 0,Q.validationToken=$.validationToken??void 0,Q}};function B7(){return{}}var VJ={encode($,Q=new z){if($.commentParentKey!==void 0)N.encode($.commentParentKey,Q.uint32(10).fork()).join();if($.replyCount!==void 0)Q.uint32(16).uint32($.replyCount);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??B7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.commentParentKey=N.decode(Z,Z.uint32(),K.commentParentKey);continue}case 2:{if(J!==16)break;K.replyCount=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return VJ.fromPartial($??{})},fromPartial($){let Q=B7();return Q.commentParentKey=$.commentParentKey!==void 0&&$.commentParentKey!==null?N.fromPartial($.commentParentKey):void 0,Q.replyCount=$.replyCount??void 0,Q}};function R7(){return{}}var zJ={encode($,Q=new z){if($.hash!==void 0)Q.uint32(10).bytes($.hash);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??R7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.hash=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return zJ.fromPartial($??{})},fromPartial($){let Q=R7();return Q.hash=$.hash??void 0,Q}};function O7(){return{}}var V3={encode($,Q=new z){if($.publicKey!==void 0)Q.uint32(10).bytes($.publicKey);if($.deviceType!==void 0)Q.uint32(16).int32($.deviceType);if($.ref!==void 0)Q.uint32(26).string($.ref);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??O7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.publicKey=Z.bytes();continue}case 2:{if(J!==16)break;K.deviceType=Z.int32();continue}case 3:{if(J!==26)break;K.ref=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return V3.fromPartial($??{})},fromPartial($){let Q=O7();return Q.publicKey=$.publicKey??void 0,Q.deviceType=$.deviceType??void 0,Q.ref=$.ref??void 0,Q}};function A7(){return{}}var z3={encode($,Q=new z){if(globalThis.Object.entries($.field||{}).forEach(([q,Z])=>{yV.encode({key:q,value:Z},Q.uint32(10).fork()).join()}),$.version!==void 0)Q.uint32(16).uint32($.version);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??A7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;let V=yV.decode(Z,Z.uint32());if(V.value!==void 0&&V.key!==void 0){if(K.field===void 0)K.field={};K.field[V.key]=V.value}continue}case 2:{if(J!==16)break;K.version=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return z3.fromPartial($??{})},fromPartial($){let Q=A7();return Q.field=$.field===void 0||$.field===null?void 0:globalThis.Object.entries($.field??{}).reduce((q,[Z,X])=>{if(X!==void 0)q[globalThis.Number(Z)]=l0.fromPartial(X);return q},{}),Q.version=$.version??void 0,Q}};function E7(){return{}}var yV={encode($,Q=new z){if($.key!==void 0)Q.uint32(8).uint32($.key);if($.value!==void 0)l0.encode($.value,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??E7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.key=Z.uint32();continue}case 2:{if(J!==18)break;K.value=l0.decode(Z,Z.uint32(),K.value);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return yV.fromPartial($??{})},fromPartial($){let Q=E7();return Q.key=$.key??void 0,Q.value=$.value!==void 0&&$.value!==null?l0.fromPartial($.value):void 0,Q}};function M7(){return{}}var H3={encode($,Q=new z){if($.payload!==void 0)NJ.encode($.payload,Q.uint32(10).fork()).join();if($.metadata!==void 0)kJ.encode($.metadata,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??M7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.payload=NJ.decode(Z,Z.uint32(),K.payload);continue}case 2:{if(J!==18)break;K.metadata=kJ.decode(Z,Z.uint32(),K.metadata);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return H3.fromPartial($??{})},fromPartial($){let Q=M7();return Q.payload=$.payload!==void 0&&$.payload!==null?NJ.fromPartial($.payload):void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?kJ.fromPartial($.metadata):void 0,Q}};function W7(){return{}}var HJ={encode($,Q=new z){if($.revoke!==void 0)EJ.encode($.revoke,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??W7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.revoke=EJ.decode(Z,Z.uint32(),K.revoke);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return HJ.fromPartial($??{})},fromPartial($){let Q=W7();return Q.revoke=$.revoke!==void 0&&$.revoke!==null?EJ.fromPartial($.revoke):void 0,Q}};function S7(){return{}}var GJ={encode($,Q=new z){if($.audio!==void 0)n.encode($.audio,Q.uint32(10).fork()).join();if($.ptt!==void 0)Q.uint32(16).bool($.ptt);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??S7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.audio=n.decode(Z,Z.uint32(),K.audio);continue}case 2:{if(J!==16)break;K.ptt=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return GJ.fromPartial($??{})},fromPartial($){let Q=S7();return Q.audio=$.audio!==void 0&&$.audio!==null?n.fromPartial($.audio):void 0,Q.ptt=$.ptt??void 0,Q}};function I7(){return{}}var G$={encode($,Q=new z){if($.contact!==void 0)n.encode($.contact,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??I7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.contact=n.decode(Z,Z.uint32(),K.contact);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return G$.fromPartial($??{})},fromPartial($){let Q=I7();return Q.contact=$.contact!==void 0&&$.contact!==null?n.fromPartial($.contact):void 0,Q}};function T7(){return{}}var UJ={encode($,Q=new z){if($.displayName!==void 0)Q.uint32(10).string($.displayName);if($.contacts!==void 0&&$.contacts.length!==0)for(let q of $.contacts)G$.encode(q,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??T7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayName=Z.string();continue}case 2:{if(J!==18)break;if(K.contacts===void 0)K.contacts=[];let V=G$.decode(Z,Z.uint32());if(V!==void 0)K.contacts.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return UJ.fromPartial($??{})},fromPartial($){let Q=T7();return Q.displayName=$.displayName??void 0,Q.contacts=$.contacts?.map((q)=>G$.fromPartial(q))||void 0,Q}};function y7(){return{}}var CJ={encode($,Q=new z){if($.messageText!==void 0)a.encode($.messageText,Q.uint32(10).fork()).join();if($.imageMessage!==void 0)C$.encode($.imageMessage,Q.uint32(18).fork()).join();if($.contactMessage!==void 0)G$.encode($.contactMessage,Q.uint32(26).fork()).join();if($.locationMessage!==void 0)xJ.encode($.locationMessage,Q.uint32(34).fork()).join();if($.extendedTextMessage!==void 0)U$.encode($.extendedTextMessage,Q.uint32(42).fork()).join();if($.statusTextMessage!==void 0)WJ.encode($.statusTextMessage,Q.uint32(50).fork()).join();if($.documentMessage!==void 0)DJ.encode($.documentMessage,Q.uint32(58).fork()).join();if($.audioMessage!==void 0)GJ.encode($.audioMessage,Q.uint32(66).fork()).join();if($.videoMessage!==void 0)F$.encode($.videoMessage,Q.uint32(74).fork()).join();if($.contactsArrayMessage!==void 0)UJ.encode($.contactsArrayMessage,Q.uint32(82).fork()).join();if($.liveLocationMessage!==void 0)LJ.encode($.liveLocationMessage,Q.uint32(90).fork()).join();if($.stickerMessage!==void 0)SJ.encode($.stickerMessage,Q.uint32(98).fork()).join();if($.groupInviteMessage!==void 0)PJ.encode($.groupInviteMessage,Q.uint32(106).fork()).join();if($.viewOnceMessage!==void 0)TJ.encode($.viewOnceMessage,Q.uint32(114).fork()).join();if($.reactionMessage!==void 0)AJ.encode($.reactionMessage,Q.uint32(130).fork()).join();if($.pollCreationMessage!==void 0)RJ.encode($.pollCreationMessage,Q.uint32(138).fork()).join();if($.pollUpdateMessage!==void 0)OJ.encode($.pollUpdateMessage,Q.uint32(146).fork()).join();if($.editMessage!==void 0)FJ.encode($.editMessage,Q.uint32(154).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??y7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageText=a.decode(Z,Z.uint32(),K.messageText);continue}case 2:{if(J!==18)break;K.imageMessage=C$.decode(Z,Z.uint32(),K.imageMessage);continue}case 3:{if(J!==26)break;K.contactMessage=G$.decode(Z,Z.uint32(),K.contactMessage);continue}case 4:{if(J!==34)break;K.locationMessage=xJ.decode(Z,Z.uint32(),K.locationMessage);continue}case 5:{if(J!==42)break;K.extendedTextMessage=U$.decode(Z,Z.uint32(),K.extendedTextMessage);continue}case 6:{if(J!==50)break;K.statusTextMessage=WJ.decode(Z,Z.uint32(),K.statusTextMessage);continue}case 7:{if(J!==58)break;K.documentMessage=DJ.decode(Z,Z.uint32(),K.documentMessage);continue}case 8:{if(J!==66)break;K.audioMessage=GJ.decode(Z,Z.uint32(),K.audioMessage);continue}case 9:{if(J!==74)break;K.videoMessage=F$.decode(Z,Z.uint32(),K.videoMessage);continue}case 10:{if(J!==82)break;K.contactsArrayMessage=UJ.decode(Z,Z.uint32(),K.contactsArrayMessage);continue}case 11:{if(J!==90)break;K.liveLocationMessage=LJ.decode(Z,Z.uint32(),K.liveLocationMessage);continue}case 12:{if(J!==98)break;K.stickerMessage=SJ.decode(Z,Z.uint32(),K.stickerMessage);continue}case 13:{if(J!==106)break;K.groupInviteMessage=PJ.decode(Z,Z.uint32(),K.groupInviteMessage);continue}case 14:{if(J!==114)break;K.viewOnceMessage=TJ.decode(Z,Z.uint32(),K.viewOnceMessage);continue}case 16:{if(J!==130)break;K.reactionMessage=AJ.decode(Z,Z.uint32(),K.reactionMessage);continue}case 17:{if(J!==138)break;K.pollCreationMessage=RJ.decode(Z,Z.uint32(),K.pollCreationMessage);continue}case 18:{if(J!==146)break;K.pollUpdateMessage=OJ.decode(Z,Z.uint32(),K.pollUpdateMessage);continue}case 19:{if(J!==154)break;K.editMessage=FJ.decode(Z,Z.uint32(),K.editMessage);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return CJ.fromPartial($??{})},fromPartial($){let Q=y7();return Q.messageText=$.messageText!==void 0&&$.messageText!==null?a.fromPartial($.messageText):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?C$.fromPartial($.imageMessage):void 0,Q.contactMessage=$.contactMessage!==void 0&&$.contactMessage!==null?G$.fromPartial($.contactMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?xJ.fromPartial($.locationMessage):void 0,Q.extendedTextMessage=$.extendedTextMessage!==void 0&&$.extendedTextMessage!==null?U$.fromPartial($.extendedTextMessage):void 0,Q.statusTextMessage=$.statusTextMessage!==void 0&&$.statusTextMessage!==null?WJ.fromPartial($.statusTextMessage):void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?DJ.fromPartial($.documentMessage):void 0,Q.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?GJ.fromPartial($.audioMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?F$.fromPartial($.videoMessage):void 0,Q.contactsArrayMessage=$.contactsArrayMessage!==void 0&&$.contactsArrayMessage!==null?UJ.fromPartial($.contactsArrayMessage):void 0,Q.liveLocationMessage=$.liveLocationMessage!==void 0&&$.liveLocationMessage!==null?LJ.fromPartial($.liveLocationMessage):void 0,Q.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?SJ.fromPartial($.stickerMessage):void 0,Q.groupInviteMessage=$.groupInviteMessage!==void 0&&$.groupInviteMessage!==null?PJ.fromPartial($.groupInviteMessage):void 0,Q.viewOnceMessage=$.viewOnceMessage!==void 0&&$.viewOnceMessage!==null?TJ.fromPartial($.viewOnceMessage):void 0,Q.reactionMessage=$.reactionMessage!==void 0&&$.reactionMessage!==null?AJ.fromPartial($.reactionMessage):void 0,Q.pollCreationMessage=$.pollCreationMessage!==void 0&&$.pollCreationMessage!==null?RJ.fromPartial($.pollCreationMessage):void 0,Q.pollUpdateMessage=$.pollUpdateMessage!==void 0&&$.pollUpdateMessage!==null?OJ.fromPartial($.pollUpdateMessage):void 0,Q.editMessage=$.editMessage!==void 0&&$.editMessage!==null?FJ.fromPartial($.editMessage):void 0,Q}};function v7(){return{}}var DJ={encode($,Q=new z){if($.document!==void 0)n.encode($.document,Q.uint32(10).fork()).join();if($.fileName!==void 0)Q.uint32(18).string($.fileName);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??v7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.document=n.decode(Z,Z.uint32(),K.document);continue}case 2:{if(J!==18)break;K.fileName=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return DJ.fromPartial($??{})},fromPartial($){let Q=v7();return Q.document=$.document!==void 0&&$.document!==null?n.fromPartial($.document):void 0,Q.fileName=$.fileName??void 0,Q}};function f7(){return{}}var FJ={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();if($.message!==void 0)a.encode($.message,Q.uint32(18).fork()).join();if($.timestampMs!==void 0)Q.uint32(24).int64($.timestampMs);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??f7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==18)break;K.message=a.decode(Z,Z.uint32(),K.message);continue}case 3:{if(J!==24)break;K.timestampMs=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return FJ.fromPartial($??{})},fromPartial($){let Q=f7();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q.message=$.message!==void 0&&$.message!==null?a.fromPartial($.message):void 0,Q.timestampMs=$.timestampMs??void 0,Q}};function _7(){return{}}var U$={encode($,Q=new z){if($.text!==void 0)a.encode($.text,Q.uint32(10).fork()).join();if($.matchedText!==void 0)Q.uint32(18).string($.matchedText);if($.canonicalUrl!==void 0)Q.uint32(26).string($.canonicalUrl);if($.description!==void 0)Q.uint32(34).string($.description);if($.title!==void 0)Q.uint32(42).string($.title);if($.thumbnail!==void 0)n.encode($.thumbnail,Q.uint32(50).fork()).join();if($.previewType!==void 0)Q.uint32(56).int32($.previewType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??_7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.text=a.decode(Z,Z.uint32(),K.text);continue}case 2:{if(J!==18)break;K.matchedText=Z.string();continue}case 3:{if(J!==26)break;K.canonicalUrl=Z.string();continue}case 4:{if(J!==34)break;K.description=Z.string();continue}case 5:{if(J!==42)break;K.title=Z.string();continue}case 6:{if(J!==50)break;K.thumbnail=n.decode(Z,Z.uint32(),K.thumbnail);continue}case 7:{if(J!==56)break;K.previewType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return U$.fromPartial($??{})},fromPartial($){let Q=_7();return Q.text=$.text!==void 0&&$.text!==null?a.fromPartial($.text):void 0,Q.matchedText=$.matchedText??void 0,Q.canonicalUrl=$.canonicalUrl??void 0,Q.description=$.description??void 0,Q.title=$.title??void 0,Q.thumbnail=$.thumbnail!==void 0&&$.thumbnail!==null?n.fromPartial($.thumbnail):void 0,Q.previewType=$.previewType??void 0,Q}};function h7(){return{}}var PJ={encode($,Q=new z){if($.groupJid!==void 0)Q.uint32(10).string($.groupJid);if($.inviteCode!==void 0)Q.uint32(18).string($.inviteCode);if($.inviteExpiration!==void 0)Q.uint32(24).int64($.inviteExpiration);if($.groupName!==void 0)Q.uint32(34).string($.groupName);if($.jpegThumbnail!==void 0)Q.uint32(42).bytes($.jpegThumbnail);if($.caption!==void 0)a.encode($.caption,Q.uint32(50).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??h7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.groupJid=Z.string();continue}case 2:{if(J!==18)break;K.inviteCode=Z.string();continue}case 3:{if(J!==24)break;K.inviteExpiration=Z.int64Value();continue}case 4:{if(J!==34)break;K.groupName=Z.string();continue}case 5:{if(J!==42)break;K.jpegThumbnail=Z.bytes();continue}case 6:{if(J!==50)break;K.caption=a.decode(Z,Z.uint32(),K.caption);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return PJ.fromPartial($??{})},fromPartial($){let Q=h7();return Q.groupJid=$.groupJid??void 0,Q.inviteCode=$.inviteCode??void 0,Q.inviteExpiration=$.inviteExpiration??void 0,Q.groupName=$.groupName??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.caption=$.caption!==void 0&&$.caption!==null?a.fromPartial($.caption):void 0,Q}};function l7(){return{}}var C$={encode($,Q=new z){if($.image!==void 0)n.encode($.image,Q.uint32(10).fork()).join();if($.caption!==void 0)a.encode($.caption,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??l7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.image=n.decode(Z,Z.uint32(),K.image);continue}case 2:{if(J!==18)break;K.caption=a.decode(Z,Z.uint32(),K.caption);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return C$.fromPartial($??{})},fromPartial($){let Q=l7();return Q.image=$.image!==void 0&&$.image!==null?n.fromPartial($.image):void 0,Q.caption=$.caption!==void 0&&$.caption!==null?a.fromPartial($.caption):void 0,Q}};function p7(){return{}}var G3={encode($,Q=new z){if($.polygonVertices!==void 0&&$.polygonVertices.length!==0)for(let q of $.polygonVertices)BJ.encode(q,Q.uint32(10).fork()).join();if($.location!==void 0)O0.encode($.location,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??p7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.polygonVertices===void 0)K.polygonVertices=[];let V=BJ.decode(Z,Z.uint32());if(V!==void 0)K.polygonVertices.push(V);continue}case 2:{if(J!==18)break;K.location=O0.decode(Z,Z.uint32(),K.location);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return G3.fromPartial($??{})},fromPartial($){let Q=p7();return Q.polygonVertices=$.polygonVertices?.map((q)=>BJ.fromPartial(q))||void 0,Q.location=$.location!==void 0&&$.location!==null?O0.fromPartial($.location):void 0,Q}};function u7(){return{}}var LJ={encode($,Q=new z){if($.location!==void 0)O0.encode($.location,Q.uint32(10).fork()).join();if($.accuracyInMeters!==void 0)Q.uint32(16).uint32($.accuracyInMeters);if($.speedInMps!==void 0)Q.uint32(29).float($.speedInMps);if($.degreesClockwiseFromMagneticNorth!==void 0)Q.uint32(32).uint32($.degreesClockwiseFromMagneticNorth);if($.caption!==void 0)a.encode($.caption,Q.uint32(42).fork()).join();if($.sequenceNumber!==void 0)Q.uint32(48).int64($.sequenceNumber);if($.timeOffset!==void 0)Q.uint32(56).uint32($.timeOffset);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??u7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.location=O0.decode(Z,Z.uint32(),K.location);continue}case 2:{if(J!==16)break;K.accuracyInMeters=Z.uint32();continue}case 3:{if(J!==29)break;K.speedInMps=Z.float();continue}case 4:{if(J!==32)break;K.degreesClockwiseFromMagneticNorth=Z.uint32();continue}case 5:{if(J!==42)break;K.caption=a.decode(Z,Z.uint32(),K.caption);continue}case 6:{if(J!==48)break;K.sequenceNumber=Z.int64Value();continue}case 7:{if(J!==56)break;K.timeOffset=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return LJ.fromPartial($??{})},fromPartial($){let Q=u7();return Q.location=$.location!==void 0&&$.location!==null?O0.fromPartial($.location):void 0,Q.accuracyInMeters=$.accuracyInMeters??void 0,Q.speedInMps=$.speedInMps??void 0,Q.degreesClockwiseFromMagneticNorth=$.degreesClockwiseFromMagneticNorth??void 0,Q.caption=$.caption!==void 0&&$.caption!==null?a.fromPartial($.caption):void 0,Q.sequenceNumber=$.sequenceNumber??void 0,Q.timeOffset=$.timeOffset??void 0,Q}};function w7(){return{}}var O0={encode($,Q=new z){if($.degreesLatitude!==void 0)Q.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)Q.uint32(17).double($.degreesLongitude);if($.name!==void 0)Q.uint32(26).string($.name);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??w7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==9)break;K.degreesLatitude=Z.double();continue}case 2:{if(J!==17)break;K.degreesLongitude=Z.double();continue}case 3:{if(J!==26)break;K.name=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return O0.fromPartial($??{})},fromPartial($){let Q=w7();return Q.degreesLatitude=$.degreesLatitude??void 0,Q.degreesLongitude=$.degreesLongitude??void 0,Q.name=$.name??void 0,Q}};function j7(){return{}}var xJ={encode($,Q=new z){if($.location!==void 0)O0.encode($.location,Q.uint32(10).fork()).join();if($.address!==void 0)Q.uint32(18).string($.address);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??j7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.location=O0.decode(Z,Z.uint32(),K.location);continue}case 2:{if(J!==18)break;K.address=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return xJ.fromPartial($??{})},fromPartial($){let Q=j7();return Q.location=$.location!==void 0&&$.location!==null?O0.fromPartial($.location):void 0,Q.address=$.address??void 0,Q}};function c7(){return{}}var U3={encode($,Q=new z){if($.protocol!==void 0)n.encode($.protocol,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??c7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.protocol=n.decode(Z,Z.uint32(),K.protocol);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return U3.fromPartial($??{})},fromPartial($){let Q=c7();return Q.protocol=$.protocol!==void 0&&$.protocol!==null?n.fromPartial($.protocol):void 0,Q}};function d7(){return{}}var kJ={encode($,Q=new z){if($.specialTextSize!==void 0)Q.uint32(8).int32($.specialTextSize);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??d7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.specialTextSize=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return kJ.fromPartial($??{})},fromPartial($){let Q=d7();return Q.specialTextSize=$.specialTextSize??void 0,Q}};function n7(){return{}}var D$={encode($,Q=new z){if($.optionName!==void 0)Q.uint32(10).string($.optionName);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??n7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.optionName=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return D$.fromPartial($??{})},fromPartial($){let Q=n7();return Q.optionName=$.optionName??void 0,Q}};function b7(){return{}}var NJ={encode($,Q=new z){if($.content!==void 0)CJ.encode($.content,Q.uint32(10).fork()).join();if($.applicationData!==void 0)HJ.encode($.applicationData,Q.uint32(18).fork()).join();if($.signal!==void 0)MJ.encode($.signal,Q.uint32(26).fork()).join();if($.subProtocol!==void 0)IJ.encode($.subProtocol,Q.uint32(34).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??b7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.content=CJ.decode(Z,Z.uint32(),K.content);continue}case 2:{if(J!==18)break;K.applicationData=HJ.decode(Z,Z.uint32(),K.applicationData);continue}case 3:{if(J!==26)break;K.signal=MJ.decode(Z,Z.uint32(),K.signal);continue}case 4:{if(J!==34)break;K.subProtocol=IJ.decode(Z,Z.uint32(),K.subProtocol);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return NJ.fromPartial($??{})},fromPartial($){let Q=b7();return Q.content=$.content!==void 0&&$.content!==null?CJ.fromPartial($.content):void 0,Q.applicationData=$.applicationData!==void 0&&$.applicationData!==null?HJ.fromPartial($.applicationData):void 0,Q.signal=$.signal!==void 0&&$.signal!==null?MJ.fromPartial($.signal):void 0,Q.subProtocol=$.subProtocol!==void 0&&$.subProtocol!==null?IJ.fromPartial($.subProtocol):void 0,Q}};function o7(){return{}}var BJ={encode($,Q=new z){if($.x!==void 0)Q.uint32(9).double($.x);if($.y!==void 0)Q.uint32(17).double($.y);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??o7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==9)break;K.x=Z.double();continue}case 2:{if(J!==17)break;K.y=Z.double();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return BJ.fromPartial($??{})},fromPartial($){let Q=o7();return Q.x=$.x??void 0,Q.y=$.y??void 0,Q}};function i7(){return{}}var C3={encode($,Q=new z){if($.pollOption!==void 0&&$.pollOption.length!==0)for(let q of $.pollOption)D$.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??i7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.pollOption===void 0)K.pollOption=[];let V=D$.decode(Z,Z.uint32());if(V!==void 0)K.pollOption.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return C3.fromPartial($??{})},fromPartial($){let Q=i7();return Q.pollOption=$.pollOption?.map((q)=>D$.fromPartial(q))||void 0,Q}};function m7(){return{}}var RJ={encode($,Q=new z){if($.encKey!==void 0)Q.uint32(10).bytes($.encKey);if($.name!==void 0)Q.uint32(18).string($.name);if($.options!==void 0&&$.options.length!==0)for(let q of $.options)D$.encode(q,Q.uint32(26).fork()).join();if($.selectableOptionsCount!==void 0)Q.uint32(32).uint32($.selectableOptionsCount);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??m7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encKey=Z.bytes();continue}case 2:{if(J!==18)break;K.name=Z.string();continue}case 3:{if(J!==26)break;if(K.options===void 0)K.options=[];let V=D$.decode(Z,Z.uint32());if(V!==void 0)K.options.push(V);continue}case 4:{if(J!==32)break;K.selectableOptionsCount=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return RJ.fromPartial($??{})},fromPartial($){let Q=m7();return Q.encKey=$.encKey??void 0,Q.name=$.name??void 0,Q.options=$.options?.map((q)=>D$.fromPartial(q))||void 0,Q.selectableOptionsCount=$.selectableOptionsCount??void 0,Q}};function g7(){return{}}var m0={encode($,Q=new z){if($.encPayload!==void 0)Q.uint32(10).bytes($.encPayload);if($.encIv!==void 0)Q.uint32(18).bytes($.encIv);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??g7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encPayload=Z.bytes();continue}case 2:{if(J!==18)break;K.encIv=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return m0.fromPartial($??{})},fromPartial($){let Q=g7();return Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function r7(){return{}}var OJ={encode($,Q=new z){if($.pollCreationMessageKey!==void 0)N.encode($.pollCreationMessageKey,Q.uint32(10).fork()).join();if($.vote!==void 0)m0.encode($.vote,Q.uint32(18).fork()).join();if($.addOption!==void 0)m0.encode($.addOption,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??r7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.pollCreationMessageKey=N.decode(Z,Z.uint32(),K.pollCreationMessageKey);continue}case 2:{if(J!==18)break;K.vote=m0.decode(Z,Z.uint32(),K.vote);continue}case 3:{if(J!==26)break;K.addOption=m0.decode(Z,Z.uint32(),K.addOption);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return OJ.fromPartial($??{})},fromPartial($){let Q=r7();return Q.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?N.fromPartial($.pollCreationMessageKey):void 0,Q.vote=$.vote!==void 0&&$.vote!==null?m0.fromPartial($.vote):void 0,Q.addOption=$.addOption!==void 0&&$.addOption!==null?m0.fromPartial($.addOption):void 0,Q}};function t7(){return{}}var D3={encode($,Q=new z){if($.selectedOptions!==void 0&&$.selectedOptions.length!==0)for(let q of $.selectedOptions)Q.uint32(10).bytes(q);if($.senderTimestampMs!==void 0)Q.uint32(16).int64($.senderTimestampMs);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??t7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.selectedOptions===void 0)K.selectedOptions=[];let V=Z.bytes();if(V!==void 0)K.selectedOptions.push(V);continue}case 2:{if(J!==16)break;K.senderTimestampMs=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return D3.fromPartial($??{})},fromPartial($){let Q=t7();return Q.selectedOptions=$.selectedOptions?.map((q)=>q)||void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q}};function a7(){return{}}var AJ={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();if($.text!==void 0)Q.uint32(18).string($.text);if($.groupingKey!==void 0)Q.uint32(26).string($.groupingKey);if($.senderTimestampMs!==void 0)Q.uint32(32).int64($.senderTimestampMs);if($.reactionMetadataDataclassData!==void 0)Q.uint32(42).string($.reactionMetadataDataclassData);if($.style!==void 0)Q.uint32(48).int32($.style);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??a7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==18)break;K.text=Z.string();continue}case 3:{if(J!==26)break;K.groupingKey=Z.string();continue}case 4:{if(J!==32)break;K.senderTimestampMs=Z.int64Value();continue}case 5:{if(J!==42)break;K.reactionMetadataDataclassData=Z.string();continue}case 6:{if(J!==48)break;K.style=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return AJ.fromPartial($??{})},fromPartial($){let Q=a7();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q.text=$.text??void 0,Q.groupingKey=$.groupingKey??void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q.reactionMetadataDataclassData=$.reactionMetadataDataclassData??void 0,Q.style=$.style??void 0,Q}};function s7(){return{}}var EJ={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??s7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return EJ.fromPartial($??{})},fromPartial($){let Q=s7();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q}};function e7(){return{}}var MJ={encode($,Q=new z){return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??e7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return MJ.fromPartial($??{})},fromPartial($){return e7()}};function $G(){return{}}var WJ={encode($,Q=new z){if($.text!==void 0)U$.encode($.text,Q.uint32(10).fork()).join();if($.textArgb!==void 0)Q.uint32(53).fixed32($.textArgb);if($.backgroundArgb!==void 0)Q.uint32(61).fixed32($.backgroundArgb);if($.font!==void 0)Q.uint32(64).int32($.font);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??$G();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.text=U$.decode(Z,Z.uint32(),K.text);continue}case 6:{if(J!==53)break;K.textArgb=Z.fixed32();continue}case 7:{if(J!==61)break;K.backgroundArgb=Z.fixed32();continue}case 8:{if(J!==64)break;K.font=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return WJ.fromPartial($??{})},fromPartial($){let Q=$G();return Q.text=$.text!==void 0&&$.text!==null?U$.fromPartial($.text):void 0,Q.textArgb=$.textArgb??void 0,Q.backgroundArgb=$.backgroundArgb??void 0,Q.font=$.font??void 0,Q}};function QG(){return{}}var SJ={encode($,Q=new z){if($.sticker!==void 0)n.encode($.sticker,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??QG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.sticker=n.decode(Z,Z.uint32(),K.sticker);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return SJ.fromPartial($??{})},fromPartial($){let Q=QG();return Q.sticker=$.sticker!==void 0&&$.sticker!==null?n.fromPartial($.sticker):void 0,Q}};function ZG(){return{}}var IJ={encode($,Q=new z){if($.futureProof!==void 0)Q.uint32(8).int32($.futureProof);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ZG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.futureProof=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return IJ.fromPartial($??{})},fromPartial($){let Q=ZG();return Q.futureProof=$.futureProof??void 0,Q}};function JG(){return{}}var F$={encode($,Q=new z){if($.video!==void 0)n.encode($.video,Q.uint32(10).fork()).join();if($.caption!==void 0)a.encode($.caption,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??JG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.video=n.decode(Z,Z.uint32(),K.video);continue}case 2:{if(J!==18)break;K.caption=a.decode(Z,Z.uint32(),K.caption);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return F$.fromPartial($??{})},fromPartial($){let Q=JG();return Q.video=$.video!==void 0&&$.video!==null?n.fromPartial($.video):void 0,Q.caption=$.caption!==void 0&&$.caption!==null?a.fromPartial($.caption):void 0,Q}};function KG(){return{}}var TJ={encode($,Q=new z){if($.imageMessage!==void 0)C$.encode($.imageMessage,Q.uint32(10).fork()).join();if($.videoMessage!==void 0)F$.encode($.videoMessage,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??KG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.imageMessage=C$.decode(Z,Z.uint32(),K.imageMessage);continue}case 2:{if(J!==18)break;K.videoMessage=F$.decode(Z,Z.uint32(),K.videoMessage);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return TJ.fromPartial($??{})},fromPartial($){let Q=KG();return Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?C$.fromPartial($.imageMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?F$.fromPartial($.videoMessage):void 0,Q}};function qG(){return{}}var W={encode($,Q=new z){if($.stanzaId!==void 0)Q.uint32(10).string($.stanzaId);if($.participant!==void 0)Q.uint32(18).string($.participant);if($.quotedMessage!==void 0)c.encode($.quotedMessage,Q.uint32(26).fork()).join();if($.remoteJid!==void 0)Q.uint32(34).string($.remoteJid);if($.mentionedJid!==void 0&&$.mentionedJid.length!==0)for(let q of $.mentionedJid)Q.uint32(122).string(q);if($.conversionSource!==void 0)Q.uint32(146).string($.conversionSource);if($.conversionData!==void 0)Q.uint32(154).bytes($.conversionData);if($.conversionDelaySeconds!==void 0)Q.uint32(160).uint32($.conversionDelaySeconds);if($.forwardingScore!==void 0)Q.uint32(168).uint32($.forwardingScore);if($.isForwarded!==void 0)Q.uint32(176).bool($.isForwarded);if($.quotedAd!==void 0)yJ.encode($.quotedAd,Q.uint32(186).fork()).join();if($.placeholderKey!==void 0)N.encode($.placeholderKey,Q.uint32(194).fork()).join();if($.expiration!==void 0)Q.uint32(200).uint32($.expiration);if($.ephemeralSettingTimestamp!==void 0)Q.uint32(208).int64($.ephemeralSettingTimestamp);if($.ephemeralSharedSecret!==void 0)Q.uint32(218).bytes($.ephemeralSharedSecret);if($.externalAdReply!==void 0)lJ.encode($.externalAdReply,Q.uint32(226).fork()).join();if($.entryPointConversionSource!==void 0)Q.uint32(234).string($.entryPointConversionSource);if($.entryPointConversionApp!==void 0)Q.uint32(242).string($.entryPointConversionApp);if($.entryPointConversionDelaySeconds!==void 0)Q.uint32(248).uint32($.entryPointConversionDelaySeconds);if($.disappearingMode!==void 0)A0.encode($.disappearingMode,Q.uint32(258).fork()).join();if($.actionLink!==void 0)dQ.encode($.actionLink,Q.uint32(266).fork()).join();if($.groupSubject!==void 0)Q.uint32(274).string($.groupSubject);if($.parentGroupJid!==void 0)Q.uint32(282).string($.parentGroupJid);if($.trustBannerType!==void 0)Q.uint32(298).string($.trustBannerType);if($.trustBannerAction!==void 0)Q.uint32(304).uint32($.trustBannerAction);if($.isSampled!==void 0)Q.uint32(312).bool($.isSampled);if($.groupMentions!==void 0&&$.groupMentions.length!==0)for(let q of $.groupMentions)lK.encode(q,Q.uint32(322).fork()).join();if($.utm!==void 0)dJ.encode($.utm,Q.uint32(330).fork()).join();if($.forwardedNewsletterMessageInfo!==void 0)L$.encode($.forwardedNewsletterMessageInfo,Q.uint32(346).fork()).join();if($.businessMessageForwardInfo!==void 0)_J.encode($.businessMessageForwardInfo,Q.uint32(354).fork()).join();if($.smbClientCampaignId!==void 0)Q.uint32(362).string($.smbClientCampaignId);if($.smbServerCampaignId!==void 0)Q.uint32(370).string($.smbServerCampaignId);if($.dataSharingContext!==void 0)hJ.encode($.dataSharingContext,Q.uint32(378).fork()).join();if($.alwaysShowAdAttribution!==void 0)Q.uint32(384).bool($.alwaysShowAdAttribution);if($.featureEligibilities!==void 0)pJ.encode($.featureEligibilities,Q.uint32(394).fork()).join();if($.entryPointConversionExternalSource!==void 0)Q.uint32(402).string($.entryPointConversionExternalSource);if($.entryPointConversionExternalMedium!==void 0)Q.uint32(410).string($.entryPointConversionExternalMedium);if($.ctwaSignals!==void 0)Q.uint32(434).string($.ctwaSignals);if($.ctwaPayload!==void 0)Q.uint32(442).bytes($.ctwaPayload);if($.forwardedAiBotMessageInfo!==void 0)TK.encode($.forwardedAiBotMessageInfo,Q.uint32(450).fork()).join();if($.statusAttributionType!==void 0)Q.uint32(456).int32($.statusAttributionType);if($.urlTrackingMap!==void 0)c$.encode($.urlTrackingMap,Q.uint32(466).fork()).join();if($.pairedMediaType!==void 0)Q.uint32(472).int32($.pairedMediaType);if($.rankingVersion!==void 0)Q.uint32(480).uint32($.rankingVersion);if($.memberLabel!==void 0)W0.encode($.memberLabel,Q.uint32(498).fork()).join();if($.isQuestion!==void 0)Q.uint32(504).bool($.isQuestion);if($.statusSourceType!==void 0)Q.uint32(512).int32($.statusSourceType);if($.statusAttributions!==void 0&&$.statusAttributions.length!==0)for(let q of $.statusAttributions)U6.encode(q,Q.uint32(522).fork()).join();if($.isGroupStatus!==void 0)Q.uint32(528).bool($.isGroupStatus);if($.forwardOrigin!==void 0)Q.uint32(536).int32($.forwardOrigin);if($.questionReplyQuotedMessage!==void 0)jJ.encode($.questionReplyQuotedMessage,Q.uint32(546).fork()).join();if($.statusAudienceMetadata!==void 0)cJ.encode($.statusAudienceMetadata,Q.uint32(554).fork()).join();if($.nonJidMentions!==void 0)Q.uint32(560).uint32($.nonJidMentions);if($.quotedType!==void 0)Q.uint32(568).int32($.quotedType);if($.botMessageSharingInfo!==void 0)PZ.encode($.botMessageSharingInfo,Q.uint32(578).fork()).join();if($.isSpoiler!==void 0)Q.uint32(584).bool($.isSpoiler);if($.mediaDomainInfo!==void 0)A8.encode($.mediaDomainInfo,Q.uint32(594).fork()).join();if($.partiallySelectedContent!==void 0)wJ.encode($.partiallySelectedContent,Q.uint32(602).fork()).join();if($.afterReadDuration!==void 0)Q.uint32(608).uint32($.afterReadDuration);if($.crossAppSource!==void 0)Q.uint32(616).int32($.crossAppSource);if($.businessInteractionPills!==void 0)vJ.encode($.businessInteractionPills,Q.uint32(626).fork()).join();if($.posterStatusId!==void 0)Q.uint32(634).string($.posterStatusId);if($.instagramThreadLink!==void 0)uJ.encode($.instagramThreadLink,Q.uint32(642).fork()).join();if($.aiProvenance!==void 0)LQ.encode($.aiProvenance,Q.uint32(650).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??qG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.stanzaId=Z.string();continue}case 2:{if(J!==18)break;K.participant=Z.string();continue}case 3:{if(J!==26)break;K.quotedMessage=c.decode(Z,Z.uint32(),K.quotedMessage);continue}case 4:{if(J!==34)break;K.remoteJid=Z.string();continue}case 15:{if(J!==122)break;if(K.mentionedJid===void 0)K.mentionedJid=[];let V=Z.string();if(V!==void 0)K.mentionedJid.push(V);continue}case 18:{if(J!==146)break;K.conversionSource=Z.string();continue}case 19:{if(J!==154)break;K.conversionData=Z.bytes();continue}case 20:{if(J!==160)break;K.conversionDelaySeconds=Z.uint32();continue}case 21:{if(J!==168)break;K.forwardingScore=Z.uint32();continue}case 22:{if(J!==176)break;K.isForwarded=Z.bool();continue}case 23:{if(J!==186)break;K.quotedAd=yJ.decode(Z,Z.uint32(),K.quotedAd);continue}case 24:{if(J!==194)break;K.placeholderKey=N.decode(Z,Z.uint32(),K.placeholderKey);continue}case 25:{if(J!==200)break;K.expiration=Z.uint32();continue}case 26:{if(J!==208)break;K.ephemeralSettingTimestamp=Z.int64Value();continue}case 27:{if(J!==218)break;K.ephemeralSharedSecret=Z.bytes();continue}case 28:{if(J!==226)break;K.externalAdReply=lJ.decode(Z,Z.uint32(),K.externalAdReply);continue}case 29:{if(J!==234)break;K.entryPointConversionSource=Z.string();continue}case 30:{if(J!==242)break;K.entryPointConversionApp=Z.string();continue}case 31:{if(J!==248)break;K.entryPointConversionDelaySeconds=Z.uint32();continue}case 32:{if(J!==258)break;K.disappearingMode=A0.decode(Z,Z.uint32(),K.disappearingMode);continue}case 33:{if(J!==266)break;K.actionLink=dQ.decode(Z,Z.uint32(),K.actionLink);continue}case 34:{if(J!==274)break;K.groupSubject=Z.string();continue}case 35:{if(J!==282)break;K.parentGroupJid=Z.string();continue}case 37:{if(J!==298)break;K.trustBannerType=Z.string();continue}case 38:{if(J!==304)break;K.trustBannerAction=Z.uint32();continue}case 39:{if(J!==312)break;K.isSampled=Z.bool();continue}case 40:{if(J!==322)break;if(K.groupMentions===void 0)K.groupMentions=[];let V=lK.decode(Z,Z.uint32());if(V!==void 0)K.groupMentions.push(V);continue}case 41:{if(J!==330)break;K.utm=dJ.decode(Z,Z.uint32(),K.utm);continue}case 43:{if(J!==346)break;K.forwardedNewsletterMessageInfo=L$.decode(Z,Z.uint32(),K.forwardedNewsletterMessageInfo);continue}case 44:{if(J!==354)break;K.businessMessageForwardInfo=_J.decode(Z,Z.uint32(),K.businessMessageForwardInfo);continue}case 45:{if(J!==362)break;K.smbClientCampaignId=Z.string();continue}case 46:{if(J!==370)break;K.smbServerCampaignId=Z.string();continue}case 47:{if(J!==378)break;K.dataSharingContext=hJ.decode(Z,Z.uint32(),K.dataSharingContext);continue}case 48:{if(J!==384)break;K.alwaysShowAdAttribution=Z.bool();continue}case 49:{if(J!==394)break;K.featureEligibilities=pJ.decode(Z,Z.uint32(),K.featureEligibilities);continue}case 50:{if(J!==402)break;K.entryPointConversionExternalSource=Z.string();continue}case 51:{if(J!==410)break;K.entryPointConversionExternalMedium=Z.string();continue}case 54:{if(J!==434)break;K.ctwaSignals=Z.string();continue}case 55:{if(J!==442)break;K.ctwaPayload=Z.bytes();continue}case 56:{if(J!==450)break;K.forwardedAiBotMessageInfo=TK.decode(Z,Z.uint32(),K.forwardedAiBotMessageInfo);continue}case 57:{if(J!==456)break;K.statusAttributionType=Z.int32();continue}case 58:{if(J!==466)break;K.urlTrackingMap=c$.decode(Z,Z.uint32(),K.urlTrackingMap);continue}case 59:{if(J!==472)break;K.pairedMediaType=Z.int32();continue}case 60:{if(J!==480)break;K.rankingVersion=Z.uint32();continue}case 62:{if(J!==498)break;K.memberLabel=W0.decode(Z,Z.uint32(),K.memberLabel);continue}case 63:{if(J!==504)break;K.isQuestion=Z.bool();continue}case 64:{if(J!==512)break;K.statusSourceType=Z.int32();continue}case 65:{if(J!==522)break;if(K.statusAttributions===void 0)K.statusAttributions=[];let V=U6.decode(Z,Z.uint32());if(V!==void 0)K.statusAttributions.push(V);continue}case 66:{if(J!==528)break;K.isGroupStatus=Z.bool();continue}case 67:{if(J!==536)break;K.forwardOrigin=Z.int32();continue}case 68:{if(J!==546)break;K.questionReplyQuotedMessage=jJ.decode(Z,Z.uint32(),K.questionReplyQuotedMessage);continue}case 69:{if(J!==554)break;K.statusAudienceMetadata=cJ.decode(Z,Z.uint32(),K.statusAudienceMetadata);continue}case 70:{if(J!==560)break;K.nonJidMentions=Z.uint32();continue}case 71:{if(J!==568)break;K.quotedType=Z.int32();continue}case 72:{if(J!==578)break;K.botMessageSharingInfo=PZ.decode(Z,Z.uint32(),K.botMessageSharingInfo);continue}case 73:{if(J!==584)break;K.isSpoiler=Z.bool();continue}case 74:{if(J!==594)break;K.mediaDomainInfo=A8.decode(Z,Z.uint32(),K.mediaDomainInfo);continue}case 75:{if(J!==602)break;K.partiallySelectedContent=wJ.decode(Z,Z.uint32(),K.partiallySelectedContent);continue}case 76:{if(J!==608)break;K.afterReadDuration=Z.uint32();continue}case 77:{if(J!==616)break;K.crossAppSource=Z.int32();continue}case 78:{if(J!==626)break;K.businessInteractionPills=vJ.decode(Z,Z.uint32(),K.businessInteractionPills);continue}case 79:{if(J!==634)break;K.posterStatusId=Z.string();continue}case 80:{if(J!==642)break;K.instagramThreadLink=uJ.decode(Z,Z.uint32(),K.instagramThreadLink);continue}case 81:{if(J!==650)break;K.aiProvenance=LQ.decode(Z,Z.uint32(),K.aiProvenance);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return W.fromPartial($??{})},fromPartial($){let Q=qG();return Q.stanzaId=$.stanzaId??void 0,Q.participant=$.participant??void 0,Q.quotedMessage=$.quotedMessage!==void 0&&$.quotedMessage!==null?c.fromPartial($.quotedMessage):void 0,Q.remoteJid=$.remoteJid??void 0,Q.mentionedJid=$.mentionedJid?.map((q)=>q)||void 0,Q.conversionSource=$.conversionSource??void 0,Q.conversionData=$.conversionData??void 0,Q.conversionDelaySeconds=$.conversionDelaySeconds??void 0,Q.forwardingScore=$.forwardingScore??void 0,Q.isForwarded=$.isForwarded??void 0,Q.quotedAd=$.quotedAd!==void 0&&$.quotedAd!==null?yJ.fromPartial($.quotedAd):void 0,Q.placeholderKey=$.placeholderKey!==void 0&&$.placeholderKey!==null?N.fromPartial($.placeholderKey):void 0,Q.expiration=$.expiration??void 0,Q.ephemeralSettingTimestamp=$.ephemeralSettingTimestamp??void 0,Q.ephemeralSharedSecret=$.ephemeralSharedSecret??void 0,Q.externalAdReply=$.externalAdReply!==void 0&&$.externalAdReply!==null?lJ.fromPartial($.externalAdReply):void 0,Q.entryPointConversionSource=$.entryPointConversionSource??void 0,Q.entryPointConversionApp=$.entryPointConversionApp??void 0,Q.entryPointConversionDelaySeconds=$.entryPointConversionDelaySeconds??void 0,Q.disappearingMode=$.disappearingMode!==void 0&&$.disappearingMode!==null?A0.fromPartial($.disappearingMode):void 0,Q.actionLink=$.actionLink!==void 0&&$.actionLink!==null?dQ.fromPartial($.actionLink):void 0,Q.groupSubject=$.groupSubject??void 0,Q.parentGroupJid=$.parentGroupJid??void 0,Q.trustBannerType=$.trustBannerType??void 0,Q.trustBannerAction=$.trustBannerAction??void 0,Q.isSampled=$.isSampled??void 0,Q.groupMentions=$.groupMentions?.map((q)=>lK.fromPartial(q))||void 0,Q.utm=$.utm!==void 0&&$.utm!==null?dJ.fromPartial($.utm):void 0,Q.forwardedNewsletterMessageInfo=$.forwardedNewsletterMessageInfo!==void 0&&$.forwardedNewsletterMessageInfo!==null?L$.fromPartial($.forwardedNewsletterMessageInfo):void 0,Q.businessMessageForwardInfo=$.businessMessageForwardInfo!==void 0&&$.businessMessageForwardInfo!==null?_J.fromPartial($.businessMessageForwardInfo):void 0,Q.smbClientCampaignId=$.smbClientCampaignId??void 0,Q.smbServerCampaignId=$.smbServerCampaignId??void 0,Q.dataSharingContext=$.dataSharingContext!==void 0&&$.dataSharingContext!==null?hJ.fromPartial($.dataSharingContext):void 0,Q.alwaysShowAdAttribution=$.alwaysShowAdAttribution??void 0,Q.featureEligibilities=$.featureEligibilities!==void 0&&$.featureEligibilities!==null?pJ.fromPartial($.featureEligibilities):void 0,Q.entryPointConversionExternalSource=$.entryPointConversionExternalSource??void 0,Q.entryPointConversionExternalMedium=$.entryPointConversionExternalMedium??void 0,Q.ctwaSignals=$.ctwaSignals??void 0,Q.ctwaPayload=$.ctwaPayload??void 0,Q.forwardedAiBotMessageInfo=$.forwardedAiBotMessageInfo!==void 0&&$.forwardedAiBotMessageInfo!==null?TK.fromPartial($.forwardedAiBotMessageInfo):void 0,Q.statusAttributionType=$.statusAttributionType??void 0,Q.urlTrackingMap=$.urlTrackingMap!==void 0&&$.urlTrackingMap!==null?c$.fromPartial($.urlTrackingMap):void 0,Q.pairedMediaType=$.pairedMediaType??void 0,Q.rankingVersion=$.rankingVersion??void 0,Q.memberLabel=$.memberLabel!==void 0&&$.memberLabel!==null?W0.fromPartial($.memberLabel):void 0,Q.isQuestion=$.isQuestion??void 0,Q.statusSourceType=$.statusSourceType??void 0,Q.statusAttributions=$.statusAttributions?.map((q)=>U6.fromPartial(q))||void 0,Q.isGroupStatus=$.isGroupStatus??void 0,Q.forwardOrigin=$.forwardOrigin??void 0,Q.questionReplyQuotedMessage=$.questionReplyQuotedMessage!==void 0&&$.questionReplyQuotedMessage!==null?jJ.fromPartial($.questionReplyQuotedMessage):void 0,Q.statusAudienceMetadata=$.statusAudienceMetadata!==void 0&&$.statusAudienceMetadata!==null?cJ.fromPartial($.statusAudienceMetadata):void 0,Q.nonJidMentions=$.nonJidMentions??void 0,Q.quotedType=$.quotedType??void 0,Q.botMessageSharingInfo=$.botMessageSharingInfo!==void 0&&$.botMessageSharingInfo!==null?PZ.fromPartial($.botMessageSharingInfo):void 0,Q.isSpoiler=$.isSpoiler??void 0,Q.mediaDomainInfo=$.mediaDomainInfo!==void 0&&$.mediaDomainInfo!==null?A8.fromPartial($.mediaDomainInfo):void 0,Q.partiallySelectedContent=$.partiallySelectedContent!==void 0&&$.partiallySelectedContent!==null?wJ.fromPartial($.partiallySelectedContent):void 0,Q.afterReadDuration=$.afterReadDuration??void 0,Q.crossAppSource=$.crossAppSource??void 0,Q.businessInteractionPills=$.businessInteractionPills!==void 0&&$.businessInteractionPills!==null?vJ.fromPartial($.businessInteractionPills):void 0,Q.posterStatusId=$.posterStatusId??void 0,Q.instagramThreadLink=$.instagramThreadLink!==void 0&&$.instagramThreadLink!==null?uJ.fromPartial($.instagramThreadLink):void 0,Q.aiProvenance=$.aiProvenance!==void 0&&$.aiProvenance!==null?LQ.fromPartial($.aiProvenance):void 0,Q}};function XG(){return{}}var yJ={encode($,Q=new z){if($.advertiserName!==void 0)Q.uint32(10).string($.advertiserName);if($.mediaType!==void 0)Q.uint32(16).int32($.mediaType);if($.jpegThumbnail!==void 0)Q.uint32(130).bytes($.jpegThumbnail);if($.caption!==void 0)Q.uint32(138).string($.caption);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??XG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.advertiserName=Z.string();continue}case 2:{if(J!==16)break;K.mediaType=Z.int32();continue}case 16:{if(J!==130)break;K.jpegThumbnail=Z.bytes();continue}case 17:{if(J!==138)break;K.caption=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return yJ.fromPartial($??{})},fromPartial($){let Q=XG();return Q.advertiserName=$.advertiserName??void 0,Q.mediaType=$.mediaType??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.caption=$.caption??void 0,Q}};function YG(){return{}}var vJ={encode($,Q=new z){if($.businessJid!==void 0)Q.uint32(10).string($.businessJid);if($.pills!==void 0&&$.pills.length!==0)for(let q of $.pills)P$.encode(q,Q.uint32(18).fork()).join();if($.entryPoint!==void 0)Q.uint32(24).int32($.entryPoint);if($.signedPayload!==void 0)Q.uint32(34).bytes($.signedPayload);if($.signatureEnvelope!==void 0)Y$.encode($.signatureEnvelope,Q.uint32(42).fork()).join();if($.unauthenticatedBusinessMetadata!==void 0)fJ.encode($.unauthenticatedBusinessMetadata,Q.uint32(50).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??YG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.businessJid=Z.string();continue}case 2:{if(J!==18)break;if(K.pills===void 0)K.pills=[];let V=P$.decode(Z,Z.uint32());if(V!==void 0)K.pills.push(V);continue}case 3:{if(J!==24)break;K.entryPoint=Z.int32();continue}case 4:{if(J!==34)break;K.signedPayload=Z.bytes();continue}case 5:{if(J!==42)break;K.signatureEnvelope=Y$.decode(Z,Z.uint32(),K.signatureEnvelope);continue}case 6:{if(J!==50)break;K.unauthenticatedBusinessMetadata=fJ.decode(Z,Z.uint32(),K.unauthenticatedBusinessMetadata);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return vJ.fromPartial($??{})},fromPartial($){let Q=YG();return Q.businessJid=$.businessJid??void 0,Q.pills=$.pills?.map((q)=>P$.fromPartial(q))||void 0,Q.entryPoint=$.entryPoint??void 0,Q.signedPayload=$.signedPayload??void 0,Q.signatureEnvelope=$.signatureEnvelope!==void 0&&$.signatureEnvelope!==null?Y$.fromPartial($.signatureEnvelope):void 0,Q.unauthenticatedBusinessMetadata=$.unauthenticatedBusinessMetadata!==void 0&&$.unauthenticatedBusinessMetadata!==null?fJ.fromPartial($.unauthenticatedBusinessMetadata):void 0,Q}};function VG(){return{}}var P$={encode($,Q=new z){if($.pillType!==void 0)Q.uint32(8).int32($.pillType);if($.actionUrl!==void 0)Q.uint32(18).string($.actionUrl);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??VG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.pillType=Z.int32();continue}case 2:{if(J!==18)break;K.actionUrl=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return P$.fromPartial($??{})},fromPartial($){let Q=VG();return Q.pillType=$.pillType??void 0,Q.actionUrl=$.actionUrl??void 0,Q}};function zG(){return{}}var F3={encode($,Q=new z){if($.verifiedName!==void 0)Q.uint32(10).string($.verifiedName);if($.pills!==void 0&&$.pills.length!==0)for(let q of $.pills)P$.encode(q,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??zG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.verifiedName=Z.string();continue}case 2:{if(J!==18)break;if(K.pills===void 0)K.pills=[];let V=P$.decode(Z,Z.uint32());if(V!==void 0)K.pills.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return F3.fromPartial($??{})},fromPartial($){let Q=zG();return Q.verifiedName=$.verifiedName??void 0,Q.pills=$.pills?.map((q)=>P$.fromPartial(q))||void 0,Q}};function HG(){return{}}var fJ={encode($,Q=new z){if($.businessName!==void 0)Q.uint32(10).string($.businessName);if($.businessCategory!==void 0)Q.uint32(18).string($.businessCategory);if($.businessIsOpen!==void 0)Q.uint32(24).bool($.businessIsOpen);if($.businessIsOpenSnapshotMs!==void 0)Q.uint32(32).int64($.businessIsOpenSnapshotMs);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??HG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.businessName=Z.string();continue}case 2:{if(J!==18)break;K.businessCategory=Z.string();continue}case 3:{if(J!==24)break;K.businessIsOpen=Z.bool();continue}case 4:{if(J!==32)break;K.businessIsOpenSnapshotMs=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return fJ.fromPartial($??{})},fromPartial($){let Q=HG();return Q.businessName=$.businessName??void 0,Q.businessCategory=$.businessCategory??void 0,Q.businessIsOpen=$.businessIsOpen??void 0,Q.businessIsOpenSnapshotMs=$.businessIsOpenSnapshotMs??void 0,Q}};function GG(){return{}}var _J={encode($,Q=new z){if($.businessOwnerJid!==void 0)Q.uint32(10).string($.businessOwnerJid);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??GG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.businessOwnerJid=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return _J.fromPartial($??{})},fromPartial($){let Q=GG();return Q.businessOwnerJid=$.businessOwnerJid??void 0,Q}};function UG(){return{}}var hJ={encode($,Q=new z){if($.showMmDisclosure!==void 0)Q.uint32(8).bool($.showMmDisclosure);if($.encryptedSignalTokenConsented!==void 0)Q.uint32(18).string($.encryptedSignalTokenConsented);if($.parameters!==void 0&&$.parameters.length!==0)for(let q of $.parameters)q$.encode(q,Q.uint32(26).fork()).join();if($.dataSharingFlags!==void 0)Q.uint32(32).int32($.dataSharingFlags);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??UG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.showMmDisclosure=Z.bool();continue}case 2:{if(J!==18)break;K.encryptedSignalTokenConsented=Z.string();continue}case 3:{if(J!==26)break;if(K.parameters===void 0)K.parameters=[];let V=q$.decode(Z,Z.uint32());if(V!==void 0)K.parameters.push(V);continue}case 4:{if(J!==32)break;K.dataSharingFlags=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return hJ.fromPartial($??{})},fromPartial($){let Q=UG();return Q.showMmDisclosure=$.showMmDisclosure??void 0,Q.encryptedSignalTokenConsented=$.encryptedSignalTokenConsented??void 0,Q.parameters=$.parameters?.map((q)=>q$.fromPartial(q))||void 0,Q.dataSharingFlags=$.dataSharingFlags??void 0,Q}};function CG(){return{}}var q$={encode($,Q=new z){if($.key!==void 0)Q.uint32(10).string($.key);if($.stringData!==void 0)Q.uint32(18).string($.stringData);if($.intData!==void 0)Q.uint32(24).int64($.intData);if($.floatData!==void 0)Q.uint32(37).float($.floatData);if($.contents!==void 0)q$.encode($.contents,Q.uint32(42).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??CG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=Z.string();continue}case 2:{if(J!==18)break;K.stringData=Z.string();continue}case 3:{if(J!==24)break;K.intData=Z.int64Value();continue}case 4:{if(J!==37)break;K.floatData=Z.float();continue}case 5:{if(J!==42)break;K.contents=q$.decode(Z,Z.uint32(),K.contents);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return q$.fromPartial($??{})},fromPartial($){let Q=CG();return Q.key=$.key??void 0,Q.stringData=$.stringData??void 0,Q.intData=$.intData??void 0,Q.floatData=$.floatData??void 0,Q.contents=$.contents!==void 0&&$.contents!==null?q$.fromPartial($.contents):void 0,Q}};function DG(){return{}}var lJ={encode($,Q=new z){if($.title!==void 0)Q.uint32(10).string($.title);if($.body!==void 0)Q.uint32(18).string($.body);if($.mediaType!==void 0)Q.uint32(24).int32($.mediaType);if($.thumbnailUrl!==void 0)Q.uint32(34).string($.thumbnailUrl);if($.mediaUrl!==void 0)Q.uint32(42).string($.mediaUrl);if($.thumbnail!==void 0)Q.uint32(50).bytes($.thumbnail);if($.sourceType!==void 0)Q.uint32(58).string($.sourceType);if($.sourceId!==void 0)Q.uint32(66).string($.sourceId);if($.sourceUrl!==void 0)Q.uint32(74).string($.sourceUrl);if($.containsAutoReply!==void 0)Q.uint32(80).bool($.containsAutoReply);if($.renderLargerThumbnail!==void 0)Q.uint32(88).bool($.renderLargerThumbnail);if($.showAdAttribution!==void 0)Q.uint32(96).bool($.showAdAttribution);if($.ctwaClid!==void 0)Q.uint32(106).string($.ctwaClid);if($.ref!==void 0)Q.uint32(114).string($.ref);if($.clickToWhatsappCall!==void 0)Q.uint32(120).bool($.clickToWhatsappCall);if($.adContextPreviewDismissed!==void 0)Q.uint32(128).bool($.adContextPreviewDismissed);if($.sourceApp!==void 0)Q.uint32(138).string($.sourceApp);if($.automatedGreetingMessageShown!==void 0)Q.uint32(144).bool($.automatedGreetingMessageShown);if($.greetingMessageBody!==void 0)Q.uint32(154).string($.greetingMessageBody);if($.ctaPayload!==void 0)Q.uint32(162).string($.ctaPayload);if($.disableNudge!==void 0)Q.uint32(168).bool($.disableNudge);if($.originalImageUrl!==void 0)Q.uint32(178).string($.originalImageUrl);if($.automatedGreetingMessageCtaType!==void 0)Q.uint32(186).string($.automatedGreetingMessageCtaType);if($.wtwaAdFormat!==void 0)Q.uint32(192).bool($.wtwaAdFormat);if($.adType!==void 0)Q.uint32(200).int32($.adType);if($.wtwaWebsiteUrl!==void 0)Q.uint32(210).string($.wtwaWebsiteUrl);if($.adPreviewUrl!==void 0)Q.uint32(218).string($.adPreviewUrl);if($.containsCtwaFlowsAutoReply!==void 0)Q.uint32(224).bool($.containsCtwaFlowsAutoReply);if($.agmThumbnailStrategy!==void 0)Q.uint32(232).int32($.agmThumbnailStrategy);if($.agmTitleStrategy!==void 0)Q.uint32(240).int32($.agmTitleStrategy);if($.agmSubtitleStrategy!==void 0)Q.uint32(248).int32($.agmSubtitleStrategy);if($.agmHeaderInteractionStrategy!==void 0)Q.uint32(256).int32($.agmHeaderInteractionStrategy);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??DG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.title=Z.string();continue}case 2:{if(J!==18)break;K.body=Z.string();continue}case 3:{if(J!==24)break;K.mediaType=Z.int32();continue}case 4:{if(J!==34)break;K.thumbnailUrl=Z.string();continue}case 5:{if(J!==42)break;K.mediaUrl=Z.string();continue}case 6:{if(J!==50)break;K.thumbnail=Z.bytes();continue}case 7:{if(J!==58)break;K.sourceType=Z.string();continue}case 8:{if(J!==66)break;K.sourceId=Z.string();continue}case 9:{if(J!==74)break;K.sourceUrl=Z.string();continue}case 10:{if(J!==80)break;K.containsAutoReply=Z.bool();continue}case 11:{if(J!==88)break;K.renderLargerThumbnail=Z.bool();continue}case 12:{if(J!==96)break;K.showAdAttribution=Z.bool();continue}case 13:{if(J!==106)break;K.ctwaClid=Z.string();continue}case 14:{if(J!==114)break;K.ref=Z.string();continue}case 15:{if(J!==120)break;K.clickToWhatsappCall=Z.bool();continue}case 16:{if(J!==128)break;K.adContextPreviewDismissed=Z.bool();continue}case 17:{if(J!==138)break;K.sourceApp=Z.string();continue}case 18:{if(J!==144)break;K.automatedGreetingMessageShown=Z.bool();continue}case 19:{if(J!==154)break;K.greetingMessageBody=Z.string();continue}case 20:{if(J!==162)break;K.ctaPayload=Z.string();continue}case 21:{if(J!==168)break;K.disableNudge=Z.bool();continue}case 22:{if(J!==178)break;K.originalImageUrl=Z.string();continue}case 23:{if(J!==186)break;K.automatedGreetingMessageCtaType=Z.string();continue}case 24:{if(J!==192)break;K.wtwaAdFormat=Z.bool();continue}case 25:{if(J!==200)break;K.adType=Z.int32();continue}case 26:{if(J!==210)break;K.wtwaWebsiteUrl=Z.string();continue}case 27:{if(J!==218)break;K.adPreviewUrl=Z.string();continue}case 28:{if(J!==224)break;K.containsCtwaFlowsAutoReply=Z.bool();continue}case 29:{if(J!==232)break;K.agmThumbnailStrategy=Z.int32();continue}case 30:{if(J!==240)break;K.agmTitleStrategy=Z.int32();continue}case 31:{if(J!==248)break;K.agmSubtitleStrategy=Z.int32();continue}case 32:{if(J!==256)break;K.agmHeaderInteractionStrategy=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return lJ.fromPartial($??{})},fromPartial($){let Q=DG();return Q.title=$.title??void 0,Q.body=$.body??void 0,Q.mediaType=$.mediaType??void 0,Q.thumbnailUrl=$.thumbnailUrl??void 0,Q.mediaUrl=$.mediaUrl??void 0,Q.thumbnail=$.thumbnail??void 0,Q.sourceType=$.sourceType??void 0,Q.sourceId=$.sourceId??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q.containsAutoReply=$.containsAutoReply??void 0,Q.renderLargerThumbnail=$.renderLargerThumbnail??void 0,Q.showAdAttribution=$.showAdAttribution??void 0,Q.ctwaClid=$.ctwaClid??void 0,Q.ref=$.ref??void 0,Q.clickToWhatsappCall=$.clickToWhatsappCall??void 0,Q.adContextPreviewDismissed=$.adContextPreviewDismissed??void 0,Q.sourceApp=$.sourceApp??void 0,Q.automatedGreetingMessageShown=$.automatedGreetingMessageShown??void 0,Q.greetingMessageBody=$.greetingMessageBody??void 0,Q.ctaPayload=$.ctaPayload??void 0,Q.disableNudge=$.disableNudge??void 0,Q.originalImageUrl=$.originalImageUrl??void 0,Q.automatedGreetingMessageCtaType=$.automatedGreetingMessageCtaType??void 0,Q.wtwaAdFormat=$.wtwaAdFormat??void 0,Q.adType=$.adType??void 0,Q.wtwaWebsiteUrl=$.wtwaWebsiteUrl??void 0,Q.adPreviewUrl=$.adPreviewUrl??void 0,Q.containsCtwaFlowsAutoReply=$.containsCtwaFlowsAutoReply??void 0,Q.agmThumbnailStrategy=$.agmThumbnailStrategy??void 0,Q.agmTitleStrategy=$.agmTitleStrategy??void 0,Q.agmSubtitleStrategy=$.agmSubtitleStrategy??void 0,Q.agmHeaderInteractionStrategy=$.agmHeaderInteractionStrategy??void 0,Q}};function FG(){return{}}var pJ={encode($,Q=new z){if($.cannotBeReactedTo!==void 0)Q.uint32(8).bool($.cannotBeReactedTo);if($.cannotBeRanked!==void 0)Q.uint32(16).bool($.cannotBeRanked);if($.canRequestFeedback!==void 0)Q.uint32(24).bool($.canRequestFeedback);if($.canBeReshared!==void 0)Q.uint32(32).bool($.canBeReshared);if($.canReceiveMultiReact!==void 0)Q.uint32(40).bool($.canReceiveMultiReact);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??FG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.cannotBeReactedTo=Z.bool();continue}case 2:{if(J!==16)break;K.cannotBeRanked=Z.bool();continue}case 3:{if(J!==24)break;K.canRequestFeedback=Z.bool();continue}case 4:{if(J!==32)break;K.canBeReshared=Z.bool();continue}case 5:{if(J!==40)break;K.canReceiveMultiReact=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return pJ.fromPartial($??{})},fromPartial($){let Q=FG();return Q.cannotBeReactedTo=$.cannotBeReactedTo??void 0,Q.cannotBeRanked=$.cannotBeRanked??void 0,Q.canRequestFeedback=$.canRequestFeedback??void 0,Q.canBeReshared=$.canBeReshared??void 0,Q.canReceiveMultiReact=$.canReceiveMultiReact??void 0,Q}};function PG(){return{}}var L$={encode($,Q=new z){if($.newsletterJid!==void 0)Q.uint32(10).string($.newsletterJid);if($.serverMessageId!==void 0)Q.uint32(16).int32($.serverMessageId);if($.newsletterName!==void 0)Q.uint32(26).string($.newsletterName);if($.contentType!==void 0)Q.uint32(32).int32($.contentType);if($.accessibilityText!==void 0)Q.uint32(42).string($.accessibilityText);if($.profileName!==void 0)Q.uint32(50).string($.profileName);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??PG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.newsletterJid=Z.string();continue}case 2:{if(J!==16)break;K.serverMessageId=Z.int32();continue}case 3:{if(J!==26)break;K.newsletterName=Z.string();continue}case 4:{if(J!==32)break;K.contentType=Z.int32();continue}case 5:{if(J!==42)break;K.accessibilityText=Z.string();continue}case 6:{if(J!==50)break;K.profileName=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return L$.fromPartial($??{})},fromPartial($){let Q=PG();return Q.newsletterJid=$.newsletterJid??void 0,Q.serverMessageId=$.serverMessageId??void 0,Q.newsletterName=$.newsletterName??void 0,Q.contentType=$.contentType??void 0,Q.accessibilityText=$.accessibilityText??void 0,Q.profileName=$.profileName??void 0,Q}};function LG(){return{}}var uJ={encode($,Q=new z){if($.url!==void 0)Q.uint32(10).string($.url);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??LG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.url=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return uJ.fromPartial($??{})},fromPartial($){let Q=LG();return Q.url=$.url??void 0,Q}};function xG(){return{}}var wJ={encode($,Q=new z){if($.text!==void 0)Q.uint32(10).string($.text);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??xG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.text=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return wJ.fromPartial($??{})},fromPartial($){let Q=xG();return Q.text=$.text??void 0,Q}};function kG(){return{}}var jJ={encode($,Q=new z){if($.serverQuestionId!==void 0)Q.uint32(8).int32($.serverQuestionId);if($.quotedQuestion!==void 0)c.encode($.quotedQuestion,Q.uint32(18).fork()).join();if($.quotedResponse!==void 0)c.encode($.quotedResponse,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??kG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.serverQuestionId=Z.int32();continue}case 2:{if(J!==18)break;K.quotedQuestion=c.decode(Z,Z.uint32(),K.quotedQuestion);continue}case 3:{if(J!==26)break;K.quotedResponse=c.decode(Z,Z.uint32(),K.quotedResponse);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return jJ.fromPartial($??{})},fromPartial($){let Q=kG();return Q.serverQuestionId=$.serverQuestionId??void 0,Q.quotedQuestion=$.quotedQuestion!==void 0&&$.quotedQuestion!==null?c.fromPartial($.quotedQuestion):void 0,Q.quotedResponse=$.quotedResponse!==void 0&&$.quotedResponse!==null?c.fromPartial($.quotedResponse):void 0,Q}};function NG(){return{}}var cJ={encode($,Q=new z){if($.audienceType!==void 0)Q.uint32(8).int32($.audienceType);if($.listName!==void 0)Q.uint32(18).string($.listName);if($.listEmoji!==void 0)Q.uint32(26).string($.listEmoji);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??NG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.audienceType=Z.int32();continue}case 2:{if(J!==18)break;K.listName=Z.string();continue}case 3:{if(J!==26)break;K.listEmoji=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return cJ.fromPartial($??{})},fromPartial($){let Q=NG();return Q.audienceType=$.audienceType??void 0,Q.listName=$.listName??void 0,Q.listEmoji=$.listEmoji??void 0,Q}};function BG(){return{}}var dJ={encode($,Q=new z){if($.utmSource!==void 0)Q.uint32(10).string($.utmSource);if($.utmCampaign!==void 0)Q.uint32(18).string($.utmCampaign);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??BG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.utmSource=Z.string();continue}case 2:{if(J!==18)break;K.utmCampaign=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return dJ.fromPartial($??{})},fromPartial($){let Q=BG();return Q.utmSource=$.utmSource??void 0,Q.utmCampaign=$.utmCampaign??void 0,Q}};function RG(){return{}}var nJ={encode($,Q=new z){if($.id!==void 0)Q.uint32(10).string($.id);if($.messages!==void 0&&$.messages.length!==0)for(let q of $.messages)bK.encode(q,Q.uint32(18).fork()).join();if($.newJid!==void 0)Q.uint32(26).string($.newJid);if($.oldJid!==void 0)Q.uint32(34).string($.oldJid);if($.lastMsgTimestamp!==void 0)Q.uint32(40).uint64($.lastMsgTimestamp);if($.unreadCount!==void 0)Q.uint32(48).uint32($.unreadCount);if($.readOnly!==void 0)Q.uint32(56).bool($.readOnly);if($.endOfHistoryTransfer!==void 0)Q.uint32(64).bool($.endOfHistoryTransfer);if($.ephemeralExpiration!==void 0)Q.uint32(72).uint32($.ephemeralExpiration);if($.ephemeralSettingTimestamp!==void 0)Q.uint32(80).int64($.ephemeralSettingTimestamp);if($.endOfHistoryTransferType!==void 0)Q.uint32(88).int32($.endOfHistoryTransferType);if($.conversationTimestamp!==void 0)Q.uint32(96).uint64($.conversationTimestamp);if($.name!==void 0)Q.uint32(106).string($.name);if($.pHash!==void 0)Q.uint32(114).string($.pHash);if($.notSpam!==void 0)Q.uint32(120).bool($.notSpam);if($.archived!==void 0)Q.uint32(128).bool($.archived);if($.disappearingMode!==void 0)A0.encode($.disappearingMode,Q.uint32(138).fork()).join();if($.unreadMentionCount!==void 0)Q.uint32(144).uint32($.unreadMentionCount);if($.markedAsUnread!==void 0)Q.uint32(152).bool($.markedAsUnread);if($.participant!==void 0&&$.participant.length!==0)for(let q of $.participant)pK.encode(q,Q.uint32(162).fork()).join();if($.tcToken!==void 0)Q.uint32(170).bytes($.tcToken);if($.tcTokenTimestamp!==void 0)Q.uint32(176).uint64($.tcTokenTimestamp);if($.contactPrimaryIdentityKey!==void 0)Q.uint32(186).bytes($.contactPrimaryIdentityKey);if($.pinned!==void 0)Q.uint32(192).uint32($.pinned);if($.muteEndTime!==void 0)Q.uint32(200).uint64($.muteEndTime);if($.wallpaper!==void 0)R0.encode($.wallpaper,Q.uint32(210).fork()).join();if($.mediaVisibility!==void 0)Q.uint32(216).int32($.mediaVisibility);if($.tcTokenSenderTimestamp!==void 0)Q.uint32(224).uint64($.tcTokenSenderTimestamp);if($.suspended!==void 0)Q.uint32(232).bool($.suspended);if($.terminated!==void 0)Q.uint32(240).bool($.terminated);if($.createdAt!==void 0)Q.uint32(248).uint64($.createdAt);if($.createdBy!==void 0)Q.uint32(258).string($.createdBy);if($.description!==void 0)Q.uint32(266).string($.description);if($.support!==void 0)Q.uint32(272).bool($.support);if($.isParentGroup!==void 0)Q.uint32(280).bool($.isParentGroup);if($.parentGroupId!==void 0)Q.uint32(298).string($.parentGroupId);if($.isDefaultSubgroup!==void 0)Q.uint32(288).bool($.isDefaultSubgroup);if($.displayName!==void 0)Q.uint32(306).string($.displayName);if($.pnJid!==void 0)Q.uint32(314).string($.pnJid);if($.shareOwnPn!==void 0)Q.uint32(320).bool($.shareOwnPn);if($.pnhDuplicateLidThread!==void 0)Q.uint32(328).bool($.pnhDuplicateLidThread);if($.lidJid!==void 0)Q.uint32(338).string($.lidJid);if($.username!==void 0)Q.uint32(346).string($.username);if($.lidOriginType!==void 0)Q.uint32(354).string($.lidOriginType);if($.commentsCount!==void 0)Q.uint32(360).uint32($.commentsCount);if($.locked!==void 0)Q.uint32(368).bool($.locked);if($.systemMessageToInsert!==void 0)Q.uint32(376).int32($.systemMessageToInsert);if($.capiCreatedGroup!==void 0)Q.uint32(384).bool($.capiCreatedGroup);if($.accountLid!==void 0)Q.uint32(394).string($.accountLid);if($.limitSharing!==void 0)Q.uint32(400).bool($.limitSharing);if($.limitSharingSettingTimestamp!==void 0)Q.uint32(408).int64($.limitSharingSettingTimestamp);if($.limitSharingTrigger!==void 0)Q.uint32(416).int32($.limitSharingTrigger);if($.limitSharingInitiatedByMe!==void 0)Q.uint32(424).bool($.limitSharingInitiatedByMe);if($.maibaAiThreadEnabled!==void 0)Q.uint32(432).bool($.maibaAiThreadEnabled);if($.isMarketingMessageThread!==void 0)Q.uint32(440).bool($.isMarketingMessageThread);if($.isSenderNewAccount!==void 0)Q.uint32(448).bool($.isSenderNewAccount);if($.afterReadDuration!==void 0)Q.uint32(456).uint32($.afterReadDuration);if($.isSenderSuspicious!==void 0)Q.uint32(464).bool($.isSenderSuspicious);if($.appealStatus!==void 0)Q.uint32(472).int32($.appealStatus);if($.appealUpdateTime!==void 0)Q.uint32(480).uint64($.appealUpdateTime);if($.authAgentParentCompanyName!==void 0)Q.uint32(490).string($.authAgentParentCompanyName);if($.authAgentObaPhoneNumber!==void 0)Q.uint32(498).string($.authAgentObaPhoneNumber);if($.identityVerification!==void 0)rK.encode($.identityVerification,Q.uint32(506).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??RG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.id=Z.string();continue}case 2:{if(J!==18)break;if(K.messages===void 0)K.messages=[];let V=bK.decode(Z,Z.uint32());if(V!==void 0)K.messages.push(V);continue}case 3:{if(J!==26)break;K.newJid=Z.string();continue}case 4:{if(J!==34)break;K.oldJid=Z.string();continue}case 5:{if(J!==40)break;K.lastMsgTimestamp=Z.uint64Value();continue}case 6:{if(J!==48)break;K.unreadCount=Z.uint32();continue}case 7:{if(J!==56)break;K.readOnly=Z.bool();continue}case 8:{if(J!==64)break;K.endOfHistoryTransfer=Z.bool();continue}case 9:{if(J!==72)break;K.ephemeralExpiration=Z.uint32();continue}case 10:{if(J!==80)break;K.ephemeralSettingTimestamp=Z.int64Value();continue}case 11:{if(J!==88)break;K.endOfHistoryTransferType=Z.int32();continue}case 12:{if(J!==96)break;K.conversationTimestamp=Z.uint64Value();continue}case 13:{if(J!==106)break;K.name=Z.string();continue}case 14:{if(J!==114)break;K.pHash=Z.string();continue}case 15:{if(J!==120)break;K.notSpam=Z.bool();continue}case 16:{if(J!==128)break;K.archived=Z.bool();continue}case 17:{if(J!==138)break;K.disappearingMode=A0.decode(Z,Z.uint32(),K.disappearingMode);continue}case 18:{if(J!==144)break;K.unreadMentionCount=Z.uint32();continue}case 19:{if(J!==152)break;K.markedAsUnread=Z.bool();continue}case 20:{if(J!==162)break;if(K.participant===void 0)K.participant=[];let V=pK.decode(Z,Z.uint32());if(V!==void 0)K.participant.push(V);continue}case 21:{if(J!==170)break;K.tcToken=Z.bytes();continue}case 22:{if(J!==176)break;K.tcTokenTimestamp=Z.uint64Value();continue}case 23:{if(J!==186)break;K.contactPrimaryIdentityKey=Z.bytes();continue}case 24:{if(J!==192)break;K.pinned=Z.uint32();continue}case 25:{if(J!==200)break;K.muteEndTime=Z.uint64Value();continue}case 26:{if(J!==210)break;K.wallpaper=R0.decode(Z,Z.uint32(),K.wallpaper);continue}case 27:{if(J!==216)break;K.mediaVisibility=Z.int32();continue}case 28:{if(J!==224)break;K.tcTokenSenderTimestamp=Z.uint64Value();continue}case 29:{if(J!==232)break;K.suspended=Z.bool();continue}case 30:{if(J!==240)break;K.terminated=Z.bool();continue}case 31:{if(J!==248)break;K.createdAt=Z.uint64Value();continue}case 32:{if(J!==258)break;K.createdBy=Z.string();continue}case 33:{if(J!==266)break;K.description=Z.string();continue}case 34:{if(J!==272)break;K.support=Z.bool();continue}case 35:{if(J!==280)break;K.isParentGroup=Z.bool();continue}case 37:{if(J!==298)break;K.parentGroupId=Z.string();continue}case 36:{if(J!==288)break;K.isDefaultSubgroup=Z.bool();continue}case 38:{if(J!==306)break;K.displayName=Z.string();continue}case 39:{if(J!==314)break;K.pnJid=Z.string();continue}case 40:{if(J!==320)break;K.shareOwnPn=Z.bool();continue}case 41:{if(J!==328)break;K.pnhDuplicateLidThread=Z.bool();continue}case 42:{if(J!==338)break;K.lidJid=Z.string();continue}case 43:{if(J!==346)break;K.username=Z.string();continue}case 44:{if(J!==354)break;K.lidOriginType=Z.string();continue}case 45:{if(J!==360)break;K.commentsCount=Z.uint32();continue}case 46:{if(J!==368)break;K.locked=Z.bool();continue}case 47:{if(J!==376)break;K.systemMessageToInsert=Z.int32();continue}case 48:{if(J!==384)break;K.capiCreatedGroup=Z.bool();continue}case 49:{if(J!==394)break;K.accountLid=Z.string();continue}case 50:{if(J!==400)break;K.limitSharing=Z.bool();continue}case 51:{if(J!==408)break;K.limitSharingSettingTimestamp=Z.int64Value();continue}case 52:{if(J!==416)break;K.limitSharingTrigger=Z.int32();continue}case 53:{if(J!==424)break;K.limitSharingInitiatedByMe=Z.bool();continue}case 54:{if(J!==432)break;K.maibaAiThreadEnabled=Z.bool();continue}case 55:{if(J!==440)break;K.isMarketingMessageThread=Z.bool();continue}case 56:{if(J!==448)break;K.isSenderNewAccount=Z.bool();continue}case 57:{if(J!==456)break;K.afterReadDuration=Z.uint32();continue}case 58:{if(J!==464)break;K.isSenderSuspicious=Z.bool();continue}case 59:{if(J!==472)break;K.appealStatus=Z.int32();continue}case 60:{if(J!==480)break;K.appealUpdateTime=Z.uint64Value();continue}case 61:{if(J!==490)break;K.authAgentParentCompanyName=Z.string();continue}case 62:{if(J!==498)break;K.authAgentObaPhoneNumber=Z.string();continue}case 63:{if(J!==506)break;K.identityVerification=rK.decode(Z,Z.uint32(),K.identityVerification);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return nJ.fromPartial($??{})},fromPartial($){let Q=RG();return Q.id=$.id??void 0,Q.messages=$.messages?.map((q)=>bK.fromPartial(q))||void 0,Q.newJid=$.newJid??void 0,Q.oldJid=$.oldJid??void 0,Q.lastMsgTimestamp=$.lastMsgTimestamp??void 0,Q.unreadCount=$.unreadCount??void 0,Q.readOnly=$.readOnly??void 0,Q.endOfHistoryTransfer=$.endOfHistoryTransfer??void 0,Q.ephemeralExpiration=$.ephemeralExpiration??void 0,Q.ephemeralSettingTimestamp=$.ephemeralSettingTimestamp??void 0,Q.endOfHistoryTransferType=$.endOfHistoryTransferType??void 0,Q.conversationTimestamp=$.conversationTimestamp??void 0,Q.name=$.name??void 0,Q.pHash=$.pHash??void 0,Q.notSpam=$.notSpam??void 0,Q.archived=$.archived??void 0,Q.disappearingMode=$.disappearingMode!==void 0&&$.disappearingMode!==null?A0.fromPartial($.disappearingMode):void 0,Q.unreadMentionCount=$.unreadMentionCount??void 0,Q.markedAsUnread=$.markedAsUnread??void 0,Q.participant=$.participant?.map((q)=>pK.fromPartial(q))||void 0,Q.tcToken=$.tcToken??void 0,Q.tcTokenTimestamp=$.tcTokenTimestamp??void 0,Q.contactPrimaryIdentityKey=$.contactPrimaryIdentityKey??void 0,Q.pinned=$.pinned??void 0,Q.muteEndTime=$.muteEndTime??void 0,Q.wallpaper=$.wallpaper!==void 0&&$.wallpaper!==null?R0.fromPartial($.wallpaper):void 0,Q.mediaVisibility=$.mediaVisibility??void 0,Q.tcTokenSenderTimestamp=$.tcTokenSenderTimestamp??void 0,Q.suspended=$.suspended??void 0,Q.terminated=$.terminated??void 0,Q.createdAt=$.createdAt??void 0,Q.createdBy=$.createdBy??void 0,Q.description=$.description??void 0,Q.support=$.support??void 0,Q.isParentGroup=$.isParentGroup??void 0,Q.parentGroupId=$.parentGroupId??void 0,Q.isDefaultSubgroup=$.isDefaultSubgroup??void 0,Q.displayName=$.displayName??void 0,Q.pnJid=$.pnJid??void 0,Q.shareOwnPn=$.shareOwnPn??void 0,Q.pnhDuplicateLidThread=$.pnhDuplicateLidThread??void 0,Q.lidJid=$.lidJid??void 0,Q.username=$.username??void 0,Q.lidOriginType=$.lidOriginType??void 0,Q.commentsCount=$.commentsCount??void 0,Q.locked=$.locked??void 0,Q.systemMessageToInsert=$.systemMessageToInsert??void 0,Q.capiCreatedGroup=$.capiCreatedGroup??void 0,Q.accountLid=$.accountLid??void 0,Q.limitSharing=$.limitSharing??void 0,Q.limitSharingSettingTimestamp=$.limitSharingSettingTimestamp??void 0,Q.limitSharingTrigger=$.limitSharingTrigger??void 0,Q.limitSharingInitiatedByMe=$.limitSharingInitiatedByMe??void 0,Q.maibaAiThreadEnabled=$.maibaAiThreadEnabled??void 0,Q.isMarketingMessageThread=$.isMarketingMessageThread??void 0,Q.isSenderNewAccount=$.isSenderNewAccount??void 0,Q.afterReadDuration=$.afterReadDuration??void 0,Q.isSenderSuspicious=$.isSenderSuspicious??void 0,Q.appealStatus=$.appealStatus??void 0,Q.appealUpdateTime=$.appealUpdateTime??void 0,Q.authAgentParentCompanyName=$.authAgentParentCompanyName??void 0,Q.authAgentObaPhoneNumber=$.authAgentObaPhoneNumber??void 0,Q.identityVerification=$.identityVerification!==void 0&&$.identityVerification!==null?rK.fromPartial($.identityVerification):void 0,Q}};function OG(){return{}}var bJ={encode($,Q=new z){if($.recoveryCode!==void 0)Q.uint32(10).string($.recoveryCode);if($.userId!==void 0)Q.uint32(16).uint64($.userId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??OG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.recoveryCode=Z.string();continue}case 2:{if(J!==16)break;K.userId=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return bJ.fromPartial($??{})},fromPartial($){let Q=OG();return Q.recoveryCode=$.recoveryCode??void 0,Q.userId=$.userId??void 0,Q}};function AG(){return{}}var P3={encode($,Q=new z){if($.device!==void 0)PK.encode($.device,Q.uint32(10).fork()).join();if($.virtualDevice!==void 0)LV.encode($.virtualDevice,Q.uint32(18).fork()).join();if($.epoch0!==void 0)MK.encode($.epoch0,Q.uint32(26).fork()).join();if($.mailboxRootKey!==void 0)Q.uint32(34).bytes($.mailboxRootKey);if($.error!==void 0)Q.uint32(42).string($.error);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??AG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.device=PK.decode(Z,Z.uint32(),K.device);continue}case 2:{if(J!==18)break;K.virtualDevice=LV.decode(Z,Z.uint32(),K.virtualDevice);continue}case 3:{if(J!==26)break;K.epoch0=MK.decode(Z,Z.uint32(),K.epoch0);continue}case 4:{if(J!==34)break;K.mailboxRootKey=Z.bytes();continue}case 5:{if(J!==42)break;K.error=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return P3.fromPartial($??{})},fromPartial($){let Q=AG();return Q.device=$.device!==void 0&&$.device!==null?PK.fromPartial($.device):void 0,Q.virtualDevice=$.virtualDevice!==void 0&&$.virtualDevice!==null?LV.fromPartial($.virtualDevice):void 0,Q.epoch0=$.epoch0!==void 0&&$.epoch0!==null?MK.fromPartial($.epoch0):void 0,Q.mailboxRootKey=$.mailboxRootKey??void 0,Q.error=$.error??void 0,Q}};function EG(){return{}}var oJ={encode($,Q=new z){if($.mekDistribution!==void 0)iJ.encode($.mekDistribution,Q.uint32(10).fork()).join();if($.mekId!==void 0)Q.uint32(18).bytes($.mekId);if($.rosterHash!==void 0)Q.uint32(26).bytes($.rosterHash);if($.recipientEncSk!==void 0)Q.uint32(34).bytes($.recipientEncSk);if($.version!==void 0)Q.uint32(40).uint64($.version);if($.conf!==void 0)i.encode($.conf,Q.uint32(50).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??EG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mekDistribution=iJ.decode(Z,Z.uint32(),K.mekDistribution);continue}case 2:{if(J!==18)break;K.mekId=Z.bytes();continue}case 3:{if(J!==26)break;K.rosterHash=Z.bytes();continue}case 4:{if(J!==34)break;K.recipientEncSk=Z.bytes();continue}case 5:{if(J!==40)break;K.version=Z.uint64Value();continue}case 6:{if(J!==50)break;K.conf=i.decode(Z,Z.uint32(),K.conf);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return oJ.fromPartial($??{})},fromPartial($){let Q=EG();return Q.mekDistribution=$.mekDistribution!==void 0&&$.mekDistribution!==null?iJ.fromPartial($.mekDistribution):void 0,Q.mekId=$.mekId??void 0,Q.rosterHash=$.rosterHash??void 0,Q.recipientEncSk=$.recipientEncSk??void 0,Q.version=$.version??void 0,Q.conf=$.conf!==void 0&&$.conf!==null?i.fromPartial($.conf):void 0,Q}};function MG(){return{}}var iJ={encode($,Q=new z){if($.encryptedMek!==void 0)Q.uint32(10).bytes($.encryptedMek);if($.ephemeralEncryptionPk!==void 0)Q.uint32(18).bytes($.ephemeralEncryptionPk);if($.signingPk!==void 0)Q.uint32(26).bytes($.signingPk);if($.signature!==void 0)Q.uint32(34).bytes($.signature);if($.recipientEpochHead!==void 0)Q.uint32(42).bytes($.recipientEpochHead);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??MG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encryptedMek=Z.bytes();continue}case 2:{if(J!==18)break;K.ephemeralEncryptionPk=Z.bytes();continue}case 3:{if(J!==26)break;K.signingPk=Z.bytes();continue}case 4:{if(J!==34)break;K.signature=Z.bytes();continue}case 5:{if(J!==42)break;K.recipientEpochHead=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return iJ.fromPartial($??{})},fromPartial($){let Q=MG();return Q.encryptedMek=$.encryptedMek??void 0,Q.ephemeralEncryptionPk=$.ephemeralEncryptionPk??void 0,Q.signingPk=$.signingPk??void 0,Q.signature=$.signature??void 0,Q.recipientEpochHead=$.recipientEpochHead??void 0,Q}};function WG(){return{}}var L3={encode($,Q=new z){if($.success!==void 0)mJ.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??WG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.success=mJ.decode(Z,Z.uint32(),K.success);continue}case 2:{if(J!==18)break;K.errorMessage=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return L3.fromPartial($??{})},fromPartial($){let Q=WG();return Q.success=$.success!==void 0&&$.success!==null?mJ.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function SG(){return{}}var mJ={encode($,Q=new z){if($.mek!==void 0)Q.uint32(10).bytes($.mek);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??SG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mek=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return mJ.fromPartial($??{})},fromPartial($){let Q=SG();return Q.mek=$.mek??void 0,Q}};function IG(){return{}}var gJ={encode($,Q=new z){if($.toMailboxSk!==void 0)Q.uint32(10).bytes($.toMailboxSk);if($.fromPk!==void 0)Q.uint32(18).bytes($.fromPk);if($.mekId!==void 0)Q.uint32(26).bytes($.mekId);if($.senderEpochHead!==void 0)Q.uint32(34).bytes($.senderEpochHead);if($.rosterHash!==void 0)Q.uint32(42).bytes($.rosterHash);if($.ciphertext!==void 0)Q.uint32(50).bytes($.ciphertext);if($.toEpochHead!==void 0)Q.uint32(58).bytes($.toEpochHead);if($.mekEncryptionVersion!==void 0)Q.uint32(64).int32($.mekEncryptionVersion);if($.conf!==void 0)i.encode($.conf,Q.uint32(74).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??IG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.toMailboxSk=Z.bytes();continue}case 2:{if(J!==18)break;K.fromPk=Z.bytes();continue}case 3:{if(J!==26)break;K.mekId=Z.bytes();continue}case 4:{if(J!==34)break;K.senderEpochHead=Z.bytes();continue}case 5:{if(J!==42)break;K.rosterHash=Z.bytes();continue}case 6:{if(J!==50)break;K.ciphertext=Z.bytes();continue}case 7:{if(J!==58)break;K.toEpochHead=Z.bytes();continue}case 8:{if(J!==64)break;K.mekEncryptionVersion=Z.int32();continue}case 9:{if(J!==74)break;K.conf=i.decode(Z,Z.uint32(),K.conf);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return gJ.fromPartial($??{})},fromPartial($){let Q=IG();return Q.toMailboxSk=$.toMailboxSk??void 0,Q.fromPk=$.fromPk??void 0,Q.mekId=$.mekId??void 0,Q.senderEpochHead=$.senderEpochHead??void 0,Q.rosterHash=$.rosterHash??void 0,Q.ciphertext=$.ciphertext??void 0,Q.toEpochHead=$.toEpochHead??void 0,Q.mekEncryptionVersion=$.mekEncryptionVersion??void 0,Q.conf=$.conf!==void 0&&$.conf!==null?i.fromPartial($.conf):void 0,Q}};function TG(){return{}}var x3={encode($,Q=new z){if($.success!==void 0)rJ.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??TG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.success=rJ.decode(Z,Z.uint32(),K.success);continue}case 2:{if(J!==18)break;K.errorMessage=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return x3.fromPartial($??{})},fromPartial($){let Q=TG();return Q.success=$.success!==void 0&&$.success!==null?rJ.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function yG(){return{}}var rJ={encode($,Q=new z){if($.mek!==void 0)Q.uint32(10).bytes($.mek);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??yG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mek=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return rJ.fromPartial($??{})},fromPartial($){let Q=yG();return Q.mek=$.mek??void 0,Q}};function vG(){return{}}var tJ={encode($,Q=new z){if($.epochRootKey!==void 0)Q.uint32(10).bytes($.epochRootKey);if($.epochAnonId!==void 0)Q.uint32(18).bytes($.epochAnonId);if($.threadId!==void 0)Q.uint32(26).string($.threadId);if($.encryptionVersion!==void 0)Q.uint32(32).int32($.encryptionVersion);if($.ciphertext!==void 0)Q.uint32(42).bytes($.ciphertext);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??vG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.epochRootKey=Z.bytes();continue}case 2:{if(J!==18)break;K.epochAnonId=Z.bytes();continue}case 3:{if(J!==26)break;K.threadId=Z.string();continue}case 4:{if(J!==32)break;K.encryptionVersion=Z.int32();continue}case 5:{if(J!==42)break;K.ciphertext=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return tJ.fromPartial($??{})},fromPartial($){let Q=vG();return Q.epochRootKey=$.epochRootKey??void 0,Q.epochAnonId=$.epochAnonId??void 0,Q.threadId=$.threadId??void 0,Q.encryptionVersion=$.encryptionVersion??void 0,Q.ciphertext=$.ciphertext??void 0,Q}};function fG(){return{}}var k3={encode($,Q=new z){if($.plaintextPayload!==void 0)Q.uint32(10).bytes($.plaintextPayload);if($.error!==void 0)Q.uint32(18).string($.error);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??fG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.plaintextPayload=Z.bytes();continue}case 2:{if(J!==18)break;K.error=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return k3.fromPartial($??{})},fromPartial($){let Q=fG();return Q.plaintextPayload=$.plaintextPayload??void 0,Q.error=$.error??void 0,Q}};function _G(){return{}}var aJ={encode($,Q=new z){if($.encryptedMmk!==void 0)Q.uint32(10).bytes($.encryptedMmk);if($.exportRootKey!==void 0)Q.uint32(18).bytes($.exportRootKey);if($.mailboxHeadHash!==void 0)Q.uint32(26).bytes($.mailboxHeadHash);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??_G();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encryptedMmk=Z.bytes();continue}case 2:{if(J!==18)break;K.exportRootKey=Z.bytes();continue}case 3:{if(J!==26)break;K.mailboxHeadHash=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return aJ.fromPartial($??{})},fromPartial($){let Q=_G();return Q.encryptedMmk=$.encryptedMmk??void 0,Q.exportRootKey=$.exportRootKey??void 0,Q.mailboxHeadHash=$.mailboxHeadHash??void 0,Q}};function hG(){return{}}var N3={encode($,Q=new z){if($.success!==void 0)sJ.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??hG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.success=sJ.decode(Z,Z.uint32(),K.success);continue}case 2:{if(J!==18)break;K.errorMessage=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return N3.fromPartial($??{})},fromPartial($){let Q=hG();return Q.success=$.success!==void 0&&$.success!==null?sJ.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function lG(){return{}}var sJ={encode($,Q=new z){if($.mmkSeed!==void 0)Q.uint32(10).bytes($.mmkSeed);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??lG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mmkSeed=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return sJ.fromPartial($??{})},fromPartial($){let Q=lG();return Q.mmkSeed=$.mmkSeed??void 0,Q}};function pG(){return{}}var eJ={encode($,Q=new z){if($.mediaKey!==void 0)Q.uint32(10).bytes($.mediaKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??pG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mediaKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return eJ.fromPartial($??{})},fromPartial($){let Q=pG();return Q.mediaKey=$.mediaKey??void 0,Q}};function uG(){return{}}var B3={encode($,Q=new z){if($.attachmentAccessTokenSecret!==void 0)Q.uint32(10).bytes($.attachmentAccessTokenSecret);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??uG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.attachmentAccessTokenSecret=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return B3.fromPartial($??{})},fromPartial($){let Q=uG();return Q.attachmentAccessTokenSecret=$.attachmentAccessTokenSecret??void 0,Q}};function wG(){return{}}var $K={encode($,Q=new z){if($.mediaKey!==void 0)Q.uint32(10).bytes($.mediaKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??wG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mediaKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return $K.fromPartial($??{})},fromPartial($){let Q=wG();return Q.mediaKey=$.mediaKey??void 0,Q}};function jG(){return{}}var R3={encode($,Q=new z){if($.attachmentPrimaryKeySecret!==void 0)Q.uint32(10).bytes($.attachmentPrimaryKeySecret);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??jG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.attachmentPrimaryKeySecret=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return R3.fromPartial($??{})},fromPartial($){let Q=jG();return Q.attachmentPrimaryKeySecret=$.attachmentPrimaryKeySecret??void 0,Q}};function cG(){return{}}var QK={encode($,Q=new z){if($.exportRootKey!==void 0)Q.uint32(10).bytes($.exportRootKey);if($.epochNumber!==void 0)Q.uint32(16).uint64($.epochNumber);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??cG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.exportRootKey=Z.bytes();continue}case 2:{if(J!==16)break;K.epochNumber=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return QK.fromPartial($??{})},fromPartial($){let Q=cG();return Q.exportRootKey=$.exportRootKey??void 0,Q.epochNumber=$.epochNumber??void 0,Q}};function dG(){return{}}var O3={encode($,Q=new z){if($.mailboxAuthPublicKey!==void 0)Q.uint32(10).bytes($.mailboxAuthPublicKey);if($.mailboxAuthPrivateKey!==void 0)Q.uint32(18).bytes($.mailboxAuthPrivateKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??dG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mailboxAuthPublicKey=Z.bytes();continue}case 2:{if(J!==18)break;K.mailboxAuthPrivateKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return O3.fromPartial($??{})},fromPartial($){let Q=dG();return Q.mailboxAuthPublicKey=$.mailboxAuthPublicKey??void 0,Q.mailboxAuthPrivateKey=$.mailboxAuthPrivateKey??void 0,Q}};function nG(){return{}}var ZK={encode($,Q=new z){if($.exportRootKey!==void 0)Q.uint32(10).bytes($.exportRootKey);if($.epochNumber!==void 0)Q.uint32(16).uint64($.epochNumber);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??nG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.exportRootKey=Z.bytes();continue}case 2:{if(J!==16)break;K.epochNumber=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return ZK.fromPartial($??{})},fromPartial($){let Q=nG();return Q.exportRootKey=$.exportRootKey??void 0,Q.epochNumber=$.epochNumber??void 0,Q}};function bG(){return{}}var A3={encode($,Q=new z){if($.mailboxEncryptionPublicKey!==void 0)Q.uint32(10).bytes($.mailboxEncryptionPublicKey);if($.mailboxEncryptionPrivateKey!==void 0)Q.uint32(18).bytes($.mailboxEncryptionPrivateKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??bG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mailboxEncryptionPublicKey=Z.bytes();continue}case 2:{if(J!==18)break;K.mailboxEncryptionPrivateKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return A3.fromPartial($??{})},fromPartial($){let Q=bG();return Q.mailboxEncryptionPublicKey=$.mailboxEncryptionPublicKey??void 0,Q.mailboxEncryptionPrivateKey=$.mailboxEncryptionPrivateKey??void 0,Q}};function oG(){return{}}var JK={encode($,Q=new z){if($.exportRootKey!==void 0)Q.uint32(10).bytes($.exportRootKey);if($.epochNumber!==void 0)Q.uint32(16).uint64($.epochNumber);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??oG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.exportRootKey=Z.bytes();continue}case 2:{if(J!==16)break;K.epochNumber=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return JK.fromPartial($??{})},fromPartial($){let Q=oG();return Q.exportRootKey=$.exportRootKey??void 0,Q.epochNumber=$.epochNumber??void 0,Q}};function iG(){return{}}var E3={encode($,Q=new z){if($.success!==void 0)KK.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??iG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.success=KK.decode(Z,Z.uint32(),K.success);continue}case 2:{if(J!==18)break;K.errorMessage=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return E3.fromPartial($??{})},fromPartial($){let Q=iG();return Q.success=$.success!==void 0&&$.success!==null?KK.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function mG(){return{}}var KK={encode($,Q=new z){if($.mailboxSigningPublicKey!==void 0)Q.uint32(10).bytes($.mailboxSigningPublicKey);if($.mailboxSigningPrivateKey!==void 0)Q.uint32(18).bytes($.mailboxSigningPrivateKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??mG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mailboxSigningPublicKey=Z.bytes();continue}case 2:{if(J!==18)break;K.mailboxSigningPrivateKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return KK.fromPartial($??{})},fromPartial($){let Q=mG();return Q.mailboxSigningPublicKey=$.mailboxSigningPublicKey??void 0,Q.mailboxSigningPrivateKey=$.mailboxSigningPrivateKey??void 0,Q}};function gG(){return{}}var qK={encode($,Q=new z){if($.epochRootKey!==void 0)Q.uint32(10).bytes($.epochRootKey);if($.epochAnonId!==void 0)Q.uint32(18).bytes($.epochAnonId);if($.threadId!==void 0)Q.uint32(26).string($.threadId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??gG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.epochRootKey=Z.bytes();continue}case 2:{if(J!==18)break;K.epochAnonId=Z.bytes();continue}case 3:{if(J!==26)break;K.threadId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return qK.fromPartial($??{})},fromPartial($){let Q=gG();return Q.epochRootKey=$.epochRootKey??void 0,Q.epochAnonId=$.epochAnonId??void 0,Q.threadId=$.threadId??void 0,Q}};function rG(){return{}}var M3={encode($,Q=new z){if($.messageKey!==void 0)Q.uint32(10).bytes($.messageKey);if($.error!==void 0)Q.uint32(18).string($.error);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??rG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageKey=Z.bytes();continue}case 2:{if(J!==18)break;K.error=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return M3.fromPartial($??{})},fromPartial($){let Q=rG();return Q.messageKey=$.messageKey??void 0,Q.error=$.error??void 0,Q}};function tG(){return{}}var XK={encode($,Q=new z){if($.mmkSeed!==void 0)Q.uint32(10).bytes($.mmkSeed);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??tG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mmkSeed=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return XK.fromPartial($??{})},fromPartial($){let Q=tG();return Q.mmkSeed=$.mmkSeed??void 0,Q}};function aG(){return{}}var W3={encode($,Q=new z){if($.success!==void 0)YK.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??aG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.success=YK.decode(Z,Z.uint32(),K.success);continue}case 2:{if(J!==18)break;K.errorMessage=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return W3.fromPartial($??{})},fromPartial($){let Q=aG();return Q.success=$.success!==void 0&&$.success!==null?YK.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function sG(){return{}}var YK={encode($,Q=new z){if($.encSk!==void 0)Q.uint32(10).bytes($.encSk);if($.encPk!==void 0)Q.uint32(18).bytes($.encPk);if($.authSk!==void 0)Q.uint32(26).bytes($.authSk);if($.authPk!==void 0)Q.uint32(34).bytes($.authPk);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??sG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encSk=Z.bytes();continue}case 2:{if(J!==18)break;K.encPk=Z.bytes();continue}case 3:{if(J!==26)break;K.authSk=Z.bytes();continue}case 4:{if(J!==34)break;K.authPk=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return YK.fromPartial($??{})},fromPartial($){let Q=sG();return Q.encSk=$.encSk??void 0,Q.encPk=$.encPk??void 0,Q.authSk=$.authSk??void 0,Q.authPk=$.authPk??void 0,Q}};function eG(){return{}}var z0={encode($,Q=new z){if($.deviceId!==void 0)Q.uint32(8).uint64($.deviceId);if($.name!==void 0)Q.uint32(18).bytes($.name);if($.sigPk!==void 0)Q.uint32(26).bytes($.sigPk);if($.authPk!==void 0)Q.uint32(34).bytes($.authPk);if($.encPk!==void 0)Q.uint32(42).bytes($.encPk);if($.signature!==void 0)Q.uint32(50).bytes($.signature);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??eG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.deviceId=Z.uint64Value();continue}case 2:{if(J!==18)break;K.name=Z.bytes();continue}case 3:{if(J!==26)break;K.sigPk=Z.bytes();continue}case 4:{if(J!==34)break;K.authPk=Z.bytes();continue}case 5:{if(J!==42)break;K.encPk=Z.bytes();continue}case 6:{if(J!==50)break;K.signature=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return z0.fromPartial($??{})},fromPartial($){let Q=eG();return Q.deviceId=$.deviceId??void 0,Q.name=$.name??void 0,Q.sigPk=$.sigPk??void 0,Q.authPk=$.authPk??void 0,Q.encPk=$.encPk??void 0,Q.signature=$.signature??void 0,Q}};function $U(){return{}}var g0={encode($,Q=new z){if($.chatLockSupportLevel!==void 0)Q.uint32(8).int32($.chatLockSupportLevel);if($.lidMigration!==void 0)CK.encode($.lidMigration,Q.uint32(18).fork()).join();if($.businessBroadcast!==void 0)GK.encode($.businessBroadcast,Q.uint32(26).fork()).join();if($.userHasAvatar!==void 0)DK.encode($.userHasAvatar,Q.uint32(34).fork()).join();if($.memberNameTagPrimarySupport!==void 0)Q.uint32(40).int32($.memberNameTagPrimarySupport);if($.aiThread!==void 0)zK.encode($.aiThread,Q.uint32(50).fork()).join();if($.aiFbidMigration!==void 0)VK.encode($.aiFbidMigration,Q.uint32(58).fork()).join();if($.bizAiSettingsSync!==void 0)HK.encode($.bizAiSettingsSync,Q.uint32(66).fork()).join();if($.contactRefresh!==void 0)UK.encode($.contactRefresh,Q.uint32(74).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??$U();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.chatLockSupportLevel=Z.int32();continue}case 2:{if(J!==18)break;K.lidMigration=CK.decode(Z,Z.uint32(),K.lidMigration);continue}case 3:{if(J!==26)break;K.businessBroadcast=GK.decode(Z,Z.uint32(),K.businessBroadcast);continue}case 4:{if(J!==34)break;K.userHasAvatar=DK.decode(Z,Z.uint32(),K.userHasAvatar);continue}case 5:{if(J!==40)break;K.memberNameTagPrimarySupport=Z.int32();continue}case 6:{if(J!==50)break;K.aiThread=zK.decode(Z,Z.uint32(),K.aiThread);continue}case 7:{if(J!==58)break;K.aiFbidMigration=VK.decode(Z,Z.uint32(),K.aiFbidMigration);continue}case 8:{if(J!==66)break;K.bizAiSettingsSync=HK.decode(Z,Z.uint32(),K.bizAiSettingsSync);continue}case 9:{if(J!==74)break;K.contactRefresh=UK.decode(Z,Z.uint32(),K.contactRefresh);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return g0.fromPartial($??{})},fromPartial($){let Q=$U();return Q.chatLockSupportLevel=$.chatLockSupportLevel??void 0,Q.lidMigration=$.lidMigration!==void 0&&$.lidMigration!==null?CK.fromPartial($.lidMigration):void 0,Q.businessBroadcast=$.businessBroadcast!==void 0&&$.businessBroadcast!==null?GK.fromPartial($.businessBroadcast):void 0,Q.userHasAvatar=$.userHasAvatar!==void 0&&$.userHasAvatar!==null?DK.fromPartial($.userHasAvatar):void 0,Q.memberNameTagPrimarySupport=$.memberNameTagPrimarySupport??void 0,Q.aiThread=$.aiThread!==void 0&&$.aiThread!==null?zK.fromPartial($.aiThread):void 0,Q.aiFbidMigration=$.aiFbidMigration!==void 0&&$.aiFbidMigration!==null?VK.fromPartial($.aiFbidMigration):void 0,Q.bizAiSettingsSync=$.bizAiSettingsSync!==void 0&&$.bizAiSettingsSync!==null?HK.fromPartial($.bizAiSettingsSync):void 0,Q.contactRefresh=$.contactRefresh!==void 0&&$.contactRefresh!==null?UK.fromPartial($.contactRefresh):void 0,Q}};function QU(){return{}}var VK={encode($,Q=new z){if($.chatDbMigrationTimestamp!==void 0)Q.uint32(8).uint64($.chatDbMigrationTimestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??QU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.chatDbMigrationTimestamp=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return VK.fromPartial($??{})},fromPartial($){let Q=QU();return Q.chatDbMigrationTimestamp=$.chatDbMigrationTimestamp??void 0,Q}};function ZU(){return{}}var zK={encode($,Q=new z){if($.supportLevel!==void 0)Q.uint32(8).int32($.supportLevel);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ZU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.supportLevel=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return zK.fromPartial($??{})},fromPartial($){let Q=ZU();return Q.supportLevel=$.supportLevel??void 0,Q}};function JU(){return{}}var HK={encode($,Q=new z){if($.handoffRemovalTimingEnabled!==void 0)Q.uint32(8).bool($.handoffRemovalTimingEnabled);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??JU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.handoffRemovalTimingEnabled=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return HK.fromPartial($??{})},fromPartial($){let Q=JU();return Q.handoffRemovalTimingEnabled=$.handoffRemovalTimingEnabled??void 0,Q}};function KU(){return{}}var GK={encode($,Q=new z){if($.importListEnabled!==void 0)Q.uint32(8).bool($.importListEnabled);if($.companionSupportEnabled!==void 0)Q.uint32(16).bool($.companionSupportEnabled);if($.campaignSyncEnabled!==void 0)Q.uint32(24).bool($.campaignSyncEnabled);if($.insightsSyncEnabled!==void 0)Q.uint32(32).bool($.insightsSyncEnabled);if($.recipientLimit!==void 0)Q.uint32(40).int32($.recipientLimit);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??KU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.importListEnabled=Z.bool();continue}case 2:{if(J!==16)break;K.companionSupportEnabled=Z.bool();continue}case 3:{if(J!==24)break;K.campaignSyncEnabled=Z.bool();continue}case 4:{if(J!==32)break;K.insightsSyncEnabled=Z.bool();continue}case 5:{if(J!==40)break;K.recipientLimit=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return GK.fromPartial($??{})},fromPartial($){let Q=KU();return Q.importListEnabled=$.importListEnabled??void 0,Q.companionSupportEnabled=$.companionSupportEnabled??void 0,Q.campaignSyncEnabled=$.campaignSyncEnabled??void 0,Q.insightsSyncEnabled=$.insightsSyncEnabled??void 0,Q.recipientLimit=$.recipientLimit??void 0,Q}};function qU(){return{}}var UK={encode($,Q=new z){if($.refreshSupported!==void 0)Q.uint32(8).bool($.refreshSupported);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??qU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.refreshSupported=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return UK.fromPartial($??{})},fromPartial($){let Q=qU();return Q.refreshSupported=$.refreshSupported??void 0,Q}};function XU(){return{}}var CK={encode($,Q=new z){if($.chatDbMigrationTimestamp!==void 0)Q.uint32(8).uint64($.chatDbMigrationTimestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??XU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.chatDbMigrationTimestamp=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return CK.fromPartial($??{})},fromPartial($){let Q=XU();return Q.chatDbMigrationTimestamp=$.chatDbMigrationTimestamp??void 0,Q}};function YU(){return{}}var DK={encode($,Q=new z){if($.userHasAvatar!==void 0)Q.uint32(8).bool($.userHasAvatar);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??YU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.userHasAvatar=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return DK.fromPartial($??{})},fromPartial($){let Q=YU();return Q.userHasAvatar=$.userHasAvatar??void 0,Q}};function VU(){return{}}var S3={encode($,Q=new z){if($.generation!==void 0)Q.uint32(8).uint32($.generation);if($.signature!==void 0)Q.uint32(18).bytes($.signature);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??VU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.generation=Z.uint32();continue}case 2:{if(J!==18)break;K.signature=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return S3.fromPartial($??{})},fromPartial($){let Q=VU();return Q.generation=$.generation??void 0,Q.signature=$.signature??void 0,Q}};function zU(){return{}}var FK={encode($,Q=new z){if($.senderKeyHash!==void 0)Q.uint32(10).bytes($.senderKeyHash);if($.senderTimestamp!==void 0)Q.uint32(16).uint64($.senderTimestamp);if($.senderKeyIndexes!==void 0&&$.senderKeyIndexes.length!==0){Q.uint32(26).fork();for(let q of $.senderKeyIndexes)Q.uint32(q);Q.join()}if($.senderAccountType!==void 0)Q.uint32(32).int32($.senderAccountType);if($.receiverAccountType!==void 0)Q.uint32(40).int32($.receiverAccountType);if($.recipientKeyHash!==void 0)Q.uint32(66).bytes($.recipientKeyHash);if($.recipientTimestamp!==void 0)Q.uint32(72).uint64($.recipientTimestamp);if($.recipientKeyIndexes!==void 0&&$.recipientKeyIndexes.length!==0){Q.uint32(82).fork();for(let q of $.recipientKeyIndexes)Q.uint32(q);Q.join()}return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??zU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.senderKeyHash=Z.bytes();continue}case 2:{if(J!==16)break;K.senderTimestamp=Z.uint64Value();continue}case 3:{if(J===24){if(K.senderKeyIndexes===void 0)K.senderKeyIndexes=[];K.senderKeyIndexes.push(Z.uint32());continue}if(J===26){if(K.senderKeyIndexes===void 0)K.senderKeyIndexes=[];let V=Z.uint32()+Z.pos;while(Z.pos<V)K.senderKeyIndexes.push(Z.uint32());continue}break}case 4:{if(J!==32)break;K.senderAccountType=Z.int32();continue}case 5:{if(J!==40)break;K.receiverAccountType=Z.int32();continue}case 8:{if(J!==66)break;K.recipientKeyHash=Z.bytes();continue}case 9:{if(J!==72)break;K.recipientTimestamp=Z.uint64Value();continue}case 10:{if(J===80){if(K.recipientKeyIndexes===void 0)K.recipientKeyIndexes=[];K.recipientKeyIndexes.push(Z.uint32());continue}if(J===82){if(K.recipientKeyIndexes===void 0)K.recipientKeyIndexes=[];let V=Z.uint32()+Z.pos;while(Z.pos<V)K.recipientKeyIndexes.push(Z.uint32());continue}break}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return FK.fromPartial($??{})},fromPartial($){let Q=zU();return Q.senderKeyHash=$.senderKeyHash??void 0,Q.senderTimestamp=$.senderTimestamp??void 0,Q.senderKeyIndexes=$.senderKeyIndexes?.map((q)=>q)||void 0,Q.senderAccountType=$.senderAccountType??void 0,Q.receiverAccountType=$.receiverAccountType??void 0,Q.recipientKeyHash=$.recipientKeyHash??void 0,Q.recipientTimestamp=$.recipientTimestamp??void 0,Q.recipientKeyIndexes=$.recipientKeyIndexes?.map((q)=>q)||void 0,Q}};function HU(){return{}}var PK={encode($,Q=new z){if($.publicKey!==void 0)Q.uint32(10).bytes($.publicKey);if($.epochAuthPublicKey!==void 0)Q.uint32(18).bytes($.epochAuthPublicKey);if($.epochAuthPublicKeySig!==void 0)Q.uint32(26).bytes($.epochAuthPublicKeySig);if($.epochStoragePublicKey!==void 0)Q.uint32(34).bytes($.epochStoragePublicKey);if($.epochStoragePublicKeySig!==void 0)Q.uint32(42).bytes($.epochStoragePublicKeySig);if($.supportedEncryptionVersions!==void 0&&$.supportedEncryptionVersions.length!==0)for(let q of $.supportedEncryptionVersions)Q.uint32(48).int32(q);if($.encryptionVersionSignature!==void 0)Q.uint32(58).bytes($.encryptionVersionSignature);if($.clientVersion!==void 0)Q.uint32(64).int32($.clientVersion);if($.ocmfClientState!==void 0)Q.uint32(74).bytes($.ocmfClientState);if($.epochStoragePrivateKey!==void 0)Q.uint32(82).bytes($.epochStoragePrivateKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??HU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.publicKey=Z.bytes();continue}case 2:{if(J!==18)break;K.epochAuthPublicKey=Z.bytes();continue}case 3:{if(J!==26)break;K.epochAuthPublicKeySig=Z.bytes();continue}case 4:{if(J!==34)break;K.epochStoragePublicKey=Z.bytes();continue}case 5:{if(J!==42)break;K.epochStoragePublicKeySig=Z.bytes();continue}case 6:{if(J===48){if(K.supportedEncryptionVersions===void 0)K.supportedEncryptionVersions=[];K.supportedEncryptionVersions.push(Z.int32());continue}if(J===50){if(K.supportedEncryptionVersions===void 0)K.supportedEncryptionVersions=[];let V=Z.uint32()+Z.pos;while(Z.pos<V)K.supportedEncryptionVersions.push(Z.int32());continue}break}case 7:{if(J!==58)break;K.encryptionVersionSignature=Z.bytes();continue}case 8:{if(J!==64)break;K.clientVersion=Z.int32();continue}case 9:{if(J!==74)break;K.ocmfClientState=Z.bytes();continue}case 10:{if(J!==82)break;K.epochStoragePrivateKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return PK.fromPartial($??{})},fromPartial($){let Q=HU();return Q.publicKey=$.publicKey??void 0,Q.epochAuthPublicKey=$.epochAuthPublicKey??void 0,Q.epochAuthPublicKeySig=$.epochAuthPublicKeySig??void 0,Q.epochStoragePublicKey=$.epochStoragePublicKey??void 0,Q.epochStoragePublicKeySig=$.epochStoragePublicKeySig??void 0,Q.supportedEncryptionVersions=$.supportedEncryptionVersions?.map((q)=>q)||void 0,Q.encryptionVersionSignature=$.encryptionVersionSignature??void 0,Q.clientVersion=$.clientVersion??void 0,Q.ocmfClientState=$.ocmfClientState??void 0,Q.epochStoragePrivateKey=$.epochStoragePrivateKey??void 0,Q}};function GU(){return{}}var cV={encode($,Q=new z){if($.os!==void 0)Q.uint32(10).string($.os);if($.version!==void 0)LK.encode($.version,Q.uint32(18).fork()).join();if($.platformType!==void 0)Q.uint32(24).int32($.platformType);if($.requireFullSync!==void 0)Q.uint32(32).bool($.requireFullSync);if($.historySyncConfig!==void 0)x$.encode($.historySyncConfig,Q.uint32(42).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??GU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.os=Z.string();continue}case 2:{if(J!==18)break;K.version=LK.decode(Z,Z.uint32(),K.version);continue}case 3:{if(J!==24)break;K.platformType=Z.int32();continue}case 4:{if(J!==32)break;K.requireFullSync=Z.bool();continue}case 5:{if(J!==42)break;K.historySyncConfig=x$.decode(Z,Z.uint32(),K.historySyncConfig);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return cV.fromPartial($??{})},fromPartial($){let Q=GU();return Q.os=$.os??void 0,Q.version=$.version!==void 0&&$.version!==null?LK.fromPartial($.version):void 0,Q.platformType=$.platformType??void 0,Q.requireFullSync=$.requireFullSync??void 0,Q.historySyncConfig=$.historySyncConfig!==void 0&&$.historySyncConfig!==null?x$.fromPartial($.historySyncConfig):void 0,Q}};function UU(){return{}}var LK={encode($,Q=new z){if($.primary!==void 0)Q.uint32(8).uint32($.primary);if($.secondary!==void 0)Q.uint32(16).uint32($.secondary);if($.tertiary!==void 0)Q.uint32(24).uint32($.tertiary);if($.quaternary!==void 0)Q.uint32(32).uint32($.quaternary);if($.quinary!==void 0)Q.uint32(40).uint32($.quinary);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??UU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.primary=Z.uint32();continue}case 2:{if(J!==16)break;K.secondary=Z.uint32();continue}case 3:{if(J!==24)break;K.tertiary=Z.uint32();continue}case 4:{if(J!==32)break;K.quaternary=Z.uint32();continue}case 5:{if(J!==40)break;K.quinary=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return LK.fromPartial($??{})},fromPartial($){let Q=UU();return Q.primary=$.primary??void 0,Q.secondary=$.secondary??void 0,Q.tertiary=$.tertiary??void 0,Q.quaternary=$.quaternary??void 0,Q.quinary=$.quinary??void 0,Q}};function CU(){return{}}var x$={encode($,Q=new z){if($.fullSyncDaysLimit!==void 0)Q.uint32(8).uint32($.fullSyncDaysLimit);if($.fullSyncSizeMbLimit!==void 0)Q.uint32(16).uint32($.fullSyncSizeMbLimit);if($.storageQuotaMb!==void 0)Q.uint32(24).uint32($.storageQuotaMb);if($.inlineInitialPayloadInE2EeMsg!==void 0)Q.uint32(32).bool($.inlineInitialPayloadInE2EeMsg);if($.recentSyncDaysLimit!==void 0)Q.uint32(40).uint32($.recentSyncDaysLimit);if($.supportCallLogHistory!==void 0)Q.uint32(48).bool($.supportCallLogHistory);if($.supportBotUserAgentChatHistory!==void 0)Q.uint32(56).bool($.supportBotUserAgentChatHistory);if($.supportCagReactionsAndPolls!==void 0)Q.uint32(64).bool($.supportCagReactionsAndPolls);if($.supportBizHostedMsg!==void 0)Q.uint32(72).bool($.supportBizHostedMsg);if($.supportRecentSyncChunkMessageCountTuning!==void 0)Q.uint32(80).bool($.supportRecentSyncChunkMessageCountTuning);if($.supportHostedGroupMsg!==void 0)Q.uint32(88).bool($.supportHostedGroupMsg);if($.supportFbidBotChatHistory!==void 0)Q.uint32(96).bool($.supportFbidBotChatHistory);if($.supportAddOnHistorySyncMigration!==void 0)Q.uint32(104).bool($.supportAddOnHistorySyncMigration);if($.supportMessageAssociation!==void 0)Q.uint32(112).bool($.supportMessageAssociation);if($.supportGroupHistory!==void 0)Q.uint32(120).bool($.supportGroupHistory);if($.onDemandReady!==void 0)Q.uint32(128).bool($.onDemandReady);if($.supportGuestChat!==void 0)Q.uint32(136).bool($.supportGuestChat);if($.completeOnDemandReady!==void 0)Q.uint32(144).bool($.completeOnDemandReady);if($.thumbnailSyncDaysLimit!==void 0)Q.uint32(152).uint32($.thumbnailSyncDaysLimit);if($.initialSyncMaxMessagesPerChat!==void 0)Q.uint32(160).uint32($.initialSyncMaxMessagesPerChat);if($.supportManusHistory!==void 0)Q.uint32(168).bool($.supportManusHistory);if($.supportHatchHistory!==void 0)Q.uint32(176).bool($.supportHatchHistory);if($.supportedBotChannelFbids!==void 0&&$.supportedBotChannelFbids.length!==0)for(let q of $.supportedBotChannelFbids)Q.uint32(186).string(q);if($.supportInlineContacts!==void 0)Q.uint32(192).bool($.supportInlineContacts);if($.supportNewsletter!==void 0)Q.uint32(200).bool($.supportNewsletter);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??CU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.fullSyncDaysLimit=Z.uint32();continue}case 2:{if(J!==16)break;K.fullSyncSizeMbLimit=Z.uint32();continue}case 3:{if(J!==24)break;K.storageQuotaMb=Z.uint32();continue}case 4:{if(J!==32)break;K.inlineInitialPayloadInE2EeMsg=Z.bool();continue}case 5:{if(J!==40)break;K.recentSyncDaysLimit=Z.uint32();continue}case 6:{if(J!==48)break;K.supportCallLogHistory=Z.bool();continue}case 7:{if(J!==56)break;K.supportBotUserAgentChatHistory=Z.bool();continue}case 8:{if(J!==64)break;K.supportCagReactionsAndPolls=Z.bool();continue}case 9:{if(J!==72)break;K.supportBizHostedMsg=Z.bool();continue}case 10:{if(J!==80)break;K.supportRecentSyncChunkMessageCountTuning=Z.bool();continue}case 11:{if(J!==88)break;K.supportHostedGroupMsg=Z.bool();continue}case 12:{if(J!==96)break;K.supportFbidBotChatHistory=Z.bool();continue}case 13:{if(J!==104)break;K.supportAddOnHistorySyncMigration=Z.bool();continue}case 14:{if(J!==112)break;K.supportMessageAssociation=Z.bool();continue}case 15:{if(J!==120)break;K.supportGroupHistory=Z.bool();continue}case 16:{if(J!==128)break;K.onDemandReady=Z.bool();continue}case 17:{if(J!==136)break;K.supportGuestChat=Z.bool();continue}case 18:{if(J!==144)break;K.completeOnDemandReady=Z.bool();continue}case 19:{if(J!==152)break;K.thumbnailSyncDaysLimit=Z.uint32();continue}case 20:{if(J!==160)break;K.initialSyncMaxMessagesPerChat=Z.uint32();continue}case 21:{if(J!==168)break;K.supportManusHistory=Z.bool();continue}case 22:{if(J!==176)break;K.supportHatchHistory=Z.bool();continue}case 23:{if(J!==186)break;if(K.supportedBotChannelFbids===void 0)K.supportedBotChannelFbids=[];let V=Z.string();if(V!==void 0)K.supportedBotChannelFbids.push(V);continue}case 24:{if(J!==192)break;K.supportInlineContacts=Z.bool();continue}case 25:{if(J!==200)break;K.supportNewsletter=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return x$.fromPartial($??{})},fromPartial($){let Q=CU();return Q.fullSyncDaysLimit=$.fullSyncDaysLimit??void 0,Q.fullSyncSizeMbLimit=$.fullSyncSizeMbLimit??void 0,Q.storageQuotaMb=$.storageQuotaMb??void 0,Q.inlineInitialPayloadInE2EeMsg=$.inlineInitialPayloadInE2EeMsg??void 0,Q.recentSyncDaysLimit=$.recentSyncDaysLimit??void 0,Q.supportCallLogHistory=$.supportCallLogHistory??void 0,Q.supportBotUserAgentChatHistory=$.supportBotUserAgentChatHistory??void 0,Q.supportCagReactionsAndPolls=$.supportCagReactionsAndPolls??void 0,Q.supportBizHostedMsg=$.supportBizHostedMsg??void 0,Q.supportRecentSyncChunkMessageCountTuning=$.supportRecentSyncChunkMessageCountTuning??void 0,Q.supportHostedGroupMsg=$.supportHostedGroupMsg??void 0,Q.supportFbidBotChatHistory=$.supportFbidBotChatHistory??void 0,Q.supportAddOnHistorySyncMigration=$.supportAddOnHistorySyncMigration??void 0,Q.supportMessageAssociation=$.supportMessageAssociation??void 0,Q.supportGroupHistory=$.supportGroupHistory??void 0,Q.onDemandReady=$.onDemandReady??void 0,Q.supportGuestChat=$.supportGuestChat??void 0,Q.completeOnDemandReady=$.completeOnDemandReady??void 0,Q.thumbnailSyncDaysLimit=$.thumbnailSyncDaysLimit??void 0,Q.initialSyncMaxMessagesPerChat=$.initialSyncMaxMessagesPerChat??void 0,Q.supportManusHistory=$.supportManusHistory??void 0,Q.supportHatchHistory=$.supportHatchHistory??void 0,Q.supportedBotChannelFbids=$.supportedBotChannelFbids?.map((q)=>q)||void 0,Q.supportInlineContacts=$.supportInlineContacts??void 0,Q.supportNewsletter=$.supportNewsletter??void 0,Q}};function DU(){return{}}var A0={encode($,Q=new z){if($.initiator!==void 0)Q.uint32(8).int32($.initiator);if($.trigger!==void 0)Q.uint32(16).int32($.trigger);if($.initiatorDeviceJid!==void 0)Q.uint32(26).string($.initiatorDeviceJid);if($.initiatedByMe!==void 0)Q.uint32(32).bool($.initiatedByMe);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??DU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.initiator=Z.int32();continue}case 2:{if(J!==16)break;K.trigger=Z.int32();continue}case 3:{if(J!==26)break;K.initiatorDeviceJid=Z.string();continue}case 4:{if(J!==32)break;K.initiatedByMe=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return A0.fromPartial($??{})},fromPartial($){let Q=DU();return Q.initiator=$.initiator??void 0,Q.trigger=$.trigger??void 0,Q.initiatorDeviceJid=$.initiatorDeviceJid??void 0,Q.initiatedByMe=$.initiatedByMe??void 0,Q}};function FU(){return{}}var xK={encode($,Q=new z){if($.embeddedMessage!==void 0)kK.encode($.embeddedMessage,Q.uint32(10).fork()).join();if($.embeddedMusic!==void 0)H0.encode($.embeddedMusic,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??FU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.embeddedMessage=kK.decode(Z,Z.uint32(),K.embeddedMessage);continue}case 2:{if(J!==18)break;K.embeddedMusic=H0.decode(Z,Z.uint32(),K.embeddedMusic);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return xK.fromPartial($??{})},fromPartial($){let Q=FU();return Q.embeddedMessage=$.embeddedMessage!==void 0&&$.embeddedMessage!==null?kK.fromPartial($.embeddedMessage):void 0,Q.embeddedMusic=$.embeddedMusic!==void 0&&$.embeddedMusic!==null?H0.fromPartial($.embeddedMusic):void 0,Q}};function PU(){return{}}var kK={encode($,Q=new z){if($.stanzaId!==void 0)Q.uint32(10).string($.stanzaId);if($.message!==void 0)c.encode($.message,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??PU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.stanzaId=Z.string();continue}case 2:{if(J!==18)break;K.message=c.decode(Z,Z.uint32(),K.message);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return kK.fromPartial($??{})},fromPartial($){let Q=PU();return Q.stanzaId=$.stanzaId??void 0,Q.message=$.message!==void 0&&$.message!==null?c.fromPartial($.message):void 0,Q}};function LU(){return{}}var H0={encode($,Q=new z){if($.musicContentMediaId!==void 0)Q.uint32(10).string($.musicContentMediaId);if($.songId!==void 0)Q.uint32(18).string($.songId);if($.author!==void 0)Q.uint32(26).string($.author);if($.title!==void 0)Q.uint32(34).string($.title);if($.artworkDirectPath!==void 0)Q.uint32(42).string($.artworkDirectPath);if($.artworkSha256!==void 0)Q.uint32(50).bytes($.artworkSha256);if($.artworkEncSha256!==void 0)Q.uint32(58).bytes($.artworkEncSha256);if($.artistAttribution!==void 0)Q.uint32(66).string($.artistAttribution);if($.countryBlocklist!==void 0)Q.uint32(74).bytes($.countryBlocklist);if($.isExplicit!==void 0)Q.uint32(80).bool($.isExplicit);if($.artworkMediaKey!==void 0)Q.uint32(90).bytes($.artworkMediaKey);if($.musicSongStartTimeInMs!==void 0)Q.uint32(96).int64($.musicSongStartTimeInMs);if($.derivedContentStartTimeInMs!==void 0)Q.uint32(104).int64($.derivedContentStartTimeInMs);if($.overlapDurationInMs!==void 0)Q.uint32(112).int64($.overlapDurationInMs);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??LU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.musicContentMediaId=Z.string();continue}case 2:{if(J!==18)break;K.songId=Z.string();continue}case 3:{if(J!==26)break;K.author=Z.string();continue}case 4:{if(J!==34)break;K.title=Z.string();continue}case 5:{if(J!==42)break;K.artworkDirectPath=Z.string();continue}case 6:{if(J!==50)break;K.artworkSha256=Z.bytes();continue}case 7:{if(J!==58)break;K.artworkEncSha256=Z.bytes();continue}case 8:{if(J!==66)break;K.artistAttribution=Z.string();continue}case 9:{if(J!==74)break;K.countryBlocklist=Z.bytes();continue}case 10:{if(J!==80)break;K.isExplicit=Z.bool();continue}case 11:{if(J!==90)break;K.artworkMediaKey=Z.bytes();continue}case 12:{if(J!==96)break;K.musicSongStartTimeInMs=Z.int64Value();continue}case 13:{if(J!==104)break;K.derivedContentStartTimeInMs=Z.int64Value();continue}case 14:{if(J!==112)break;K.overlapDurationInMs=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return H0.fromPartial($??{})},fromPartial($){let Q=LU();return Q.musicContentMediaId=$.musicContentMediaId??void 0,Q.songId=$.songId??void 0,Q.author=$.author??void 0,Q.title=$.title??void 0,Q.artworkDirectPath=$.artworkDirectPath??void 0,Q.artworkSha256=$.artworkSha256??void 0,Q.artworkEncSha256=$.artworkEncSha256??void 0,Q.artistAttribution=$.artistAttribution??void 0,Q.countryBlocklist=$.countryBlocklist??void 0,Q.isExplicit=$.isExplicit??void 0,Q.artworkMediaKey=$.artworkMediaKey??void 0,Q.musicSongStartTimeInMs=$.musicSongStartTimeInMs??void 0,Q.derivedContentStartTimeInMs=$.derivedContentStartTimeInMs??void 0,Q.overlapDurationInMs=$.overlapDurationInMs??void 0,Q}};function xU(){return{}}var NK={encode($,Q=new z){if($.senderEpochHead!==void 0)Q.uint32(10).bytes($.senderEpochHead);if($.toMailboxPk!==void 0)Q.uint32(18).bytes($.toMailboxPk);if($.fromKeypair!==void 0)BK.encode($.fromKeypair,Q.uint32(26).fork()).join();if($.mek!==void 0)M0.encode($.mek,Q.uint32(34).fork()).join();if($.toEpochHead!==void 0)Q.uint32(42).bytes($.toEpochHead);if($.conf!==void 0)i.encode($.conf,Q.uint32(50).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??xU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.senderEpochHead=Z.bytes();continue}case 2:{if(J!==18)break;K.toMailboxPk=Z.bytes();continue}case 3:{if(J!==26)break;K.fromKeypair=BK.decode(Z,Z.uint32(),K.fromKeypair);continue}case 4:{if(J!==34)break;K.mek=M0.decode(Z,Z.uint32(),K.mek);continue}case 5:{if(J!==42)break;K.toEpochHead=Z.bytes();continue}case 6:{if(J!==50)break;K.conf=i.decode(Z,Z.uint32(),K.conf);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return NK.fromPartial($??{})},fromPartial($){let Q=xU();return Q.senderEpochHead=$.senderEpochHead??void 0,Q.toMailboxPk=$.toMailboxPk??void 0,Q.fromKeypair=$.fromKeypair!==void 0&&$.fromKeypair!==null?BK.fromPartial($.fromKeypair):void 0,Q.mek=$.mek!==void 0&&$.mek!==null?M0.fromPartial($.mek):void 0,Q.toEpochHead=$.toEpochHead??void 0,Q.conf=$.conf!==void 0&&$.conf!==null?i.fromPartial($.conf):void 0,Q}};function kU(){return{}}var BK={encode($,Q=new z){if($.sk!==void 0)Q.uint32(10).bytes($.sk);if($.pk!==void 0)Q.uint32(18).bytes($.pk);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??kU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.sk=Z.bytes();continue}case 2:{if(J!==18)break;K.pk=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return BK.fromPartial($??{})},fromPartial($){let Q=kU();return Q.sk=$.sk??void 0,Q.pk=$.pk??void 0,Q}};function NU(){return{}}var I3={encode($,Q=new z){if($.ciphertext!==void 0)Q.uint32(10).bytes($.ciphertext);if($.version!==void 0)Q.uint32(16).uint64($.version);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??NU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.ciphertext=Z.bytes();continue}case 2:{if(J!==16)break;K.version=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return I3.fromPartial($??{})},fromPartial($){let Q=NU();return Q.ciphertext=$.ciphertext??void 0,Q.version=$.version??void 0,Q}};function BU(){return{}}var RK={encode($,Q=new z){if($.mek!==void 0)M0.encode($.mek,Q.uint32(10).fork()).join();if($.transportSigningKp!==void 0)OK.encode($.transportSigningKp,Q.uint32(18).fork()).join();if($.recipientMailboxEncryptionPks!==void 0&&$.recipientMailboxEncryptionPks.length!==0)for(let q of $.recipientMailboxEncryptionPks)Q.uint32(26).bytes(q);if($.recipientEpochHeads!==void 0&&$.recipientEpochHeads.length!==0)for(let q of $.recipientEpochHeads)Q.uint32(34).bytes(q);if($.conf!==void 0)i.encode($.conf,Q.uint32(42).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??BU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mek=M0.decode(Z,Z.uint32(),K.mek);continue}case 2:{if(J!==18)break;K.transportSigningKp=OK.decode(Z,Z.uint32(),K.transportSigningKp);continue}case 3:{if(J!==26)break;if(K.recipientMailboxEncryptionPks===void 0)K.recipientMailboxEncryptionPks=[];let V=Z.bytes();if(V!==void 0)K.recipientMailboxEncryptionPks.push(V);continue}case 4:{if(J!==34)break;if(K.recipientEpochHeads===void 0)K.recipientEpochHeads=[];let V=Z.bytes();if(V!==void 0)K.recipientEpochHeads.push(V);continue}case 5:{if(J!==42)break;K.conf=i.decode(Z,Z.uint32(),K.conf);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return RK.fromPartial($??{})},fromPartial($){let Q=BU();return Q.mek=$.mek!==void 0&&$.mek!==null?M0.fromPartial($.mek):void 0,Q.transportSigningKp=$.transportSigningKp!==void 0&&$.transportSigningKp!==null?OK.fromPartial($.transportSigningKp):void 0,Q.recipientMailboxEncryptionPks=$.recipientMailboxEncryptionPks?.map((q)=>q)||void 0,Q.recipientEpochHeads=$.recipientEpochHeads?.map((q)=>q)||void 0,Q.conf=$.conf!==void 0&&$.conf!==null?i.fromPartial($.conf):void 0,Q}};function RU(){return{}}var OK={encode($,Q=new z){if($.sk!==void 0)Q.uint32(10).bytes($.sk);if($.pk!==void 0)Q.uint32(18).bytes($.pk);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??RU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.sk=Z.bytes();continue}case 2:{if(J!==18)break;K.pk=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return OK.fromPartial($??{})},fromPartial($){let Q=RU();return Q.sk=$.sk??void 0,Q.pk=$.pk??void 0,Q}};function OU(){return{}}var T3={encode($,Q=new z){if($.encryptedMeks!==void 0&&$.encryptedMeks.length!==0)for(let q of $.encryptedMeks)Q.uint32(10).bytes(q);if($.ephemeralEncryptionPk!==void 0)Q.uint32(18).bytes($.ephemeralEncryptionPk);if($.signingPk!==void 0)Q.uint32(26).bytes($.signingPk);if($.signature!==void 0)Q.uint32(34).bytes($.signature);if($.version!==void 0)Q.uint32(40).uint64($.version);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??OU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.encryptedMeks===void 0)K.encryptedMeks=[];let V=Z.bytes();if(V!==void 0)K.encryptedMeks.push(V);continue}case 2:{if(J!==18)break;K.ephemeralEncryptionPk=Z.bytes();continue}case 3:{if(J!==26)break;K.signingPk=Z.bytes();continue}case 4:{if(J!==34)break;K.signature=Z.bytes();continue}case 5:{if(J!==40)break;K.version=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return T3.fromPartial($??{})},fromPartial($){let Q=OU();return Q.encryptedMeks=$.encryptedMeks?.map((q)=>q)||void 0,Q.ephemeralEncryptionPk=$.ephemeralEncryptionPk??void 0,Q.signingPk=$.signingPk??void 0,Q.signature=$.signature??void 0,Q.version=$.version??void 0,Q}};function AU(){return{}}var AK={encode($,Q=new z){if($.epochRootKey!==void 0)Q.uint32(10).bytes($.epochRootKey);if($.mailboxRootKey!==void 0)Q.uint32(18).bytes($.mailboxRootKey);if($.orfClientState!==void 0)Q.uint32(26).bytes($.orfClientState);if($.epochAnonId!==void 0)Q.uint32(34).bytes($.epochAnonId);if($.epochId!==void 0)Q.uint32(40).uint64($.epochId);if($.threadId!==void 0)Q.uint32(50).string($.threadId);if($.waCanonicalUserFbid!==void 0)Q.uint32(56).uint64($.waCanonicalUserFbid);if($.timestampMs!==void 0)Q.uint32(64).uint64($.timestampMs);if($.backupId!==void 0)Q.uint32(72).uint64($.backupId);if($.plaintextPayload!==void 0)Q.uint32(82).bytes($.plaintextPayload);if($.stanzaId!==void 0)Q.uint32(90).string($.stanzaId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??AU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.epochRootKey=Z.bytes();continue}case 2:{if(J!==18)break;K.mailboxRootKey=Z.bytes();continue}case 3:{if(J!==26)break;K.orfClientState=Z.bytes();continue}case 4:{if(J!==34)break;K.epochAnonId=Z.bytes();continue}case 5:{if(J!==40)break;K.epochId=Z.uint64Value();continue}case 6:{if(J!==50)break;K.threadId=Z.string();continue}case 7:{if(J!==56)break;K.waCanonicalUserFbid=Z.uint64Value();continue}case 8:{if(J!==64)break;K.timestampMs=Z.uint64Value();continue}case 9:{if(J!==72)break;K.backupId=Z.uint64Value();continue}case 10:{if(J!==82)break;K.plaintextPayload=Z.bytes();continue}case 11:{if(J!==90)break;K.stanzaId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return AK.fromPartial($??{})},fromPartial($){let Q=AU();return Q.epochRootKey=$.epochRootKey??void 0,Q.mailboxRootKey=$.mailboxRootKey??void 0,Q.orfClientState=$.orfClientState??void 0,Q.epochAnonId=$.epochAnonId??void 0,Q.epochId=$.epochId??void 0,Q.threadId=$.threadId??void 0,Q.waCanonicalUserFbid=$.waCanonicalUserFbid??void 0,Q.timestampMs=$.timestampMs??void 0,Q.backupId=$.backupId??void 0,Q.plaintextPayload=$.plaintextPayload??void 0,Q.stanzaId=$.stanzaId??void 0,Q}};function EU(){return{}}var y3={encode($,Q=new z){if($.encryptedProtobuf!==void 0)Q.uint32(10).bytes($.encryptedProtobuf);if($.orfThreadId!==void 0)Q.uint32(18).bytes($.orfThreadId);if($.valueSecretRef!==void 0)Q.uint32(26).string($.valueSecretRef);if($.offlineThreadingId!==void 0)Q.uint32(32).uint64($.offlineThreadingId);if($.timestampMs!==void 0)Q.uint32(40).uint64($.timestampMs);if($.error!==void 0)Q.uint32(58).string($.error);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??EU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encryptedProtobuf=Z.bytes();continue}case 2:{if(J!==18)break;K.orfThreadId=Z.bytes();continue}case 3:{if(J!==26)break;K.valueSecretRef=Z.string();continue}case 4:{if(J!==32)break;K.offlineThreadingId=Z.uint64Value();continue}case 5:{if(J!==40)break;K.timestampMs=Z.uint64Value();continue}case 7:{if(J!==58)break;K.error=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return y3.fromPartial($??{})},fromPartial($){let Q=EU();return Q.encryptedProtobuf=$.encryptedProtobuf??void 0,Q.orfThreadId=$.orfThreadId??void 0,Q.valueSecretRef=$.valueSecretRef??void 0,Q.offlineThreadingId=$.offlineThreadingId??void 0,Q.timestampMs=$.timestampMs??void 0,Q.error=$.error??void 0,Q}};function MU(){return{}}var v3={encode($,Q=new z){if($.encryptedPayload!==void 0)Q.uint32(10).bytes($.encryptedPayload);if($.iv!==void 0)Q.uint32(18).bytes($.iv);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??MU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encryptedPayload=Z.bytes();continue}case 2:{if(J!==18)break;K.iv=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return v3.fromPartial($??{})},fromPartial($){let Q=MU();return Q.encryptedPayload=$.encryptedPayload??void 0,Q.iv=$.iv??void 0,Q}};function WU(){return{}}var EK={encode($,Q=new z){if($.encryptedDevicePrivateKey!==void 0)Q.uint32(10).bytes($.encryptedDevicePrivateKey);if($.encryptedObliviousValidationTokenBlob!==void 0)Q.uint32(18).bytes($.encryptedObliviousValidationTokenBlob);if($.encryptedEpochStoragePrivateKey!==void 0)Q.uint32(26).bytes($.encryptedEpochStoragePrivateKey);if($.encryptedOcmfClientState!==void 0)Q.uint32(34).bytes($.encryptedOcmfClientState);if($.encryptedOrfClientStateV2!==void 0)Q.uint32(42).bytes($.encryptedOrfClientStateV2);if($.encryptedMailboxRootKeyBlob!==void 0)Q.uint32(50).bytes($.encryptedMailboxRootKeyBlob);if($.encryptedEpochAnonId!==void 0)Q.uint32(58).bytes($.encryptedEpochAnonId);if($.encryptedEpochRootKey!==void 0)Q.uint32(66).bytes($.encryptedEpochRootKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??WU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encryptedDevicePrivateKey=Z.bytes();continue}case 2:{if(J!==18)break;K.encryptedObliviousValidationTokenBlob=Z.bytes();continue}case 3:{if(J!==26)break;K.encryptedEpochStoragePrivateKey=Z.bytes();continue}case 4:{if(J!==34)break;K.encryptedOcmfClientState=Z.bytes();continue}case 5:{if(J!==42)break;K.encryptedOrfClientStateV2=Z.bytes();continue}case 6:{if(J!==50)break;K.encryptedMailboxRootKeyBlob=Z.bytes();continue}case 7:{if(J!==58)break;K.encryptedEpochAnonId=Z.bytes();continue}case 8:{if(J!==66)break;K.encryptedEpochRootKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return EK.fromPartial($??{})},fromPartial($){let Q=WU();return Q.encryptedDevicePrivateKey=$.encryptedDevicePrivateKey??void 0,Q.encryptedObliviousValidationTokenBlob=$.encryptedObliviousValidationTokenBlob??void 0,Q.encryptedEpochStoragePrivateKey=$.encryptedEpochStoragePrivateKey??void 0,Q.encryptedOcmfClientState=$.encryptedOcmfClientState??void 0,Q.encryptedOrfClientStateV2=$.encryptedOrfClientStateV2??void 0,Q.encryptedMailboxRootKeyBlob=$.encryptedMailboxRootKeyBlob??void 0,Q.encryptedEpochAnonId=$.encryptedEpochAnonId??void 0,Q.encryptedEpochRootKey=$.encryptedEpochRootKey??void 0,Q}};function SU(){return{}}var f3={encode($,Q=new z){if($.duration!==void 0)Q.uint32(13).sfixed32($.duration);if($.timestamp!==void 0)Q.uint32(17).sfixed64($.timestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??SU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==13)break;K.duration=Z.sfixed32();continue}case 2:{if(J!==17)break;K.timestamp=Z.sfixed64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return f3.fromPartial($??{})},fromPartial($){let Q=SU();return Q.duration=$.duration??void 0,Q.timestamp=$.timestamp??void 0,Q}};function IU(){return{}}var MK={encode($,Q=new z){if($.epochFbid!==void 0)Q.uint32(8).uint64($.epochFbid);if($.epochAnonId!==void 0)Q.uint32(18).bytes($.epochAnonId);if($.epochData!==void 0)Q.uint32(26).bytes($.epochData);if($.wrappedRootKeyForSelf!==void 0)Q.uint32(34).bytes($.wrappedRootKeyForSelf);if($.epochSignature!==void 0)Q.uint32(42).bytes($.epochSignature);if($.epochRootKeyFingerprint!==void 0)Q.uint32(50).bytes($.epochRootKeyFingerprint);if($.epochRootKey!==void 0)Q.uint32(58).bytes($.epochRootKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??IU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.epochFbid=Z.uint64Value();continue}case 2:{if(J!==18)break;K.epochAnonId=Z.bytes();continue}case 3:{if(J!==26)break;K.epochData=Z.bytes();continue}case 4:{if(J!==34)break;K.wrappedRootKeyForSelf=Z.bytes();continue}case 5:{if(J!==42)break;K.epochSignature=Z.bytes();continue}case 6:{if(J!==50)break;K.epochRootKeyFingerprint=Z.bytes();continue}case 7:{if(J!==58)break;K.epochRootKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return MK.fromPartial($??{})},fromPartial($){let Q=IU();return Q.epochFbid=$.epochFbid??void 0,Q.epochAnonId=$.epochAnonId??void 0,Q.epochData=$.epochData??void 0,Q.wrappedRootKeyForSelf=$.wrappedRootKeyForSelf??void 0,Q.epochSignature=$.epochSignature??void 0,Q.epochRootKeyFingerprint=$.epochRootKeyFingerprint??void 0,Q.epochRootKey=$.epochRootKey??void 0,Q}};function TU(){return{}}var r={encode($,Q=new z){if($.epochNumber!==void 0)Q.uint32(8).uint64($.epochNumber);if($.userFbid!==void 0)Q.uint32(18).string($.userFbid);if($.mailboxSigningPk!==void 0)Q.uint32(26).bytes($.mailboxSigningPk);if($.mailboxEncryptionPk!==void 0)Q.uint32(34).bytes($.mailboxEncryptionPk);if($.mailboxAuthPk!==void 0)Q.uint32(42).bytes($.mailboxAuthPk);if($.previousEpochHead!==void 0)Q.uint32(50).bytes($.previousEpochHead);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??TU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.epochNumber=Z.uint64Value();continue}case 2:{if(J!==18)break;K.userFbid=Z.string();continue}case 3:{if(J!==26)break;K.mailboxSigningPk=Z.bytes();continue}case 4:{if(J!==34)break;K.mailboxEncryptionPk=Z.bytes();continue}case 5:{if(J!==42)break;K.mailboxAuthPk=Z.bytes();continue}case 6:{if(J!==50)break;K.previousEpochHead=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return r.fromPartial($??{})},fromPartial($){let Q=TU();return Q.epochNumber=$.epochNumber??void 0,Q.userFbid=$.userFbid??void 0,Q.mailboxSigningPk=$.mailboxSigningPk??void 0,Q.mailboxEncryptionPk=$.mailboxEncryptionPk??void 0,Q.mailboxAuthPk=$.mailboxAuthPk??void 0,Q.previousEpochHead=$.previousEpochHead??void 0,Q}};function yU(){return{}}var k$={encode($,Q=new z){if($.selfSignature!==void 0)Q.uint32(10).bytes($.selfSignature);if($.prevSignature!==void 0)Q.uint32(18).bytes($.prevSignature);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??yU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.selfSignature=Z.bytes();continue}case 2:{if(J!==18)break;K.prevSignature=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return k$.fromPartial($??{})},fromPartial($){let Q=yU();return Q.selfSignature=$.selfSignature??void 0,Q.prevSignature=$.prevSignature??void 0,Q}};function vU(){return{}}var WK={encode($,Q=new z){if($.isStale!==void 0)Q.uint32(8).bool($.isStale);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??vU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isStale=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return WK.fromPartial($??{})},fromPartial($){let Q=vU();return Q.isStale=$.isStale??void 0,Q}};function fU(){return{}}var SK={encode($,Q=new z){if($.eventResponseMessageKey!==void 0)N.encode($.eventResponseMessageKey,Q.uint32(10).fork()).join();if($.timestampMs!==void 0)Q.uint32(16).int64($.timestampMs);if($.eventResponseMessage!==void 0)p0.encode($.eventResponseMessage,Q.uint32(26).fork()).join();if($.unread!==void 0)Q.uint32(32).bool($.unread);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??fU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.eventResponseMessageKey=N.decode(Z,Z.uint32(),K.eventResponseMessageKey);continue}case 2:{if(J!==16)break;K.timestampMs=Z.int64Value();continue}case 3:{if(J!==26)break;K.eventResponseMessage=p0.decode(Z,Z.uint32(),K.eventResponseMessage);continue}case 4:{if(J!==32)break;K.unread=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return SK.fromPartial($??{})},fromPartial($){let Q=fU();return Q.eventResponseMessageKey=$.eventResponseMessageKey!==void 0&&$.eventResponseMessageKey!==null?N.fromPartial($.eventResponseMessageKey):void 0,Q.timestampMs=$.timestampMs??void 0,Q.eventResponseMessage=$.eventResponseMessage!==void 0&&$.eventResponseMessage!==null?p0.fromPartial($.eventResponseMessage):void 0,Q.unread=$.unread??void 0,Q}};function _U(){return{}}var b$={encode($,Q=new z){if($.code!==void 0)Q.uint32(8).uint64($.code);if($.text!==void 0)Q.uint32(18).string($.text);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??_U();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.code=Z.uint64Value();continue}case 2:{if(J!==18)break;K.text=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return b$.fromPartial($??{})},fromPartial($){let Q=_U();return Q.code=$.code??void 0,Q.text=$.text??void 0,Q}};function hU(){return{}}var _3={encode($,Q=new z){if($.associatedMessage!==void 0)n.encode($.associatedMessage,Q.uint32(10).fork()).join();if($.targetType!==void 0)Q.uint32(16).int32($.targetType);if($.targetUsername!==void 0)Q.uint32(26).string($.targetUsername);if($.targetId!==void 0)Q.uint32(34).string($.targetId);if($.targetExpiringAtSec!==void 0)Q.uint32(40).int64($.targetExpiringAtSec);if($.xmaLayoutType!==void 0)Q.uint32(48).int32($.xmaLayoutType);if($.ctas!==void 0&&$.ctas.length!==0)for(let q of $.ctas)IK.encode(q,Q.uint32(58).fork()).join();if($.previews!==void 0&&$.previews.length!==0)for(let q of $.previews)n.encode(q,Q.uint32(66).fork()).join();if($.titleText!==void 0)Q.uint32(74).string($.titleText);if($.subtitleText!==void 0)Q.uint32(82).string($.subtitleText);if($.maxTitleNumOfLines!==void 0)Q.uint32(88).uint32($.maxTitleNumOfLines);if($.maxSubtitleNumOfLines!==void 0)Q.uint32(96).uint32($.maxSubtitleNumOfLines);if($.favicon!==void 0)n.encode($.favicon,Q.uint32(106).fork()).join();if($.headerImage!==void 0)n.encode($.headerImage,Q.uint32(114).fork()).join();if($.headerTitle!==void 0)Q.uint32(122).string($.headerTitle);if($.overlayIconGlyph!==void 0)Q.uint32(128).int32($.overlayIconGlyph);if($.overlayTitle!==void 0)Q.uint32(138).string($.overlayTitle);if($.overlayDescription!==void 0)Q.uint32(146).string($.overlayDescription);if($.sentWithMessageId!==void 0)Q.uint32(154).string($.sentWithMessageId);if($.messageText!==void 0)Q.uint32(162).string($.messageText);if($.headerSubtitle!==void 0)Q.uint32(170).string($.headerSubtitle);if($.xmaDataclass!==void 0)Q.uint32(178).string($.xmaDataclass);if($.contentRef!==void 0)Q.uint32(186).string($.contentRef);if($.mentionedJid!==void 0&&$.mentionedJid.length!==0)for(let q of $.mentionedJid)Q.uint32(194).string(q);if($.commands!==void 0&&$.commands.length!==0)for(let q of $.commands)H$.encode(q,Q.uint32(202).fork()).join();if($.mentions!==void 0&&$.mentions.length!==0)for(let q of $.mentions)B$.encode(q,Q.uint32(210).fork()).join();if($.xmaDataclassType!==void 0)Q.uint32(216).int32($.xmaDataclassType);if($.signedXmaDataclassValidation!==void 0)Q.uint32(226).string($.signedXmaDataclassValidation);if($.featureSharedSessionId!==void 0)Q.uint32(234).string($.featureSharedSessionId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??hU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.associatedMessage=n.decode(Z,Z.uint32(),K.associatedMessage);continue}case 2:{if(J!==16)break;K.targetType=Z.int32();continue}case 3:{if(J!==26)break;K.targetUsername=Z.string();continue}case 4:{if(J!==34)break;K.targetId=Z.string();continue}case 5:{if(J!==40)break;K.targetExpiringAtSec=Z.int64Value();continue}case 6:{if(J!==48)break;K.xmaLayoutType=Z.int32();continue}case 7:{if(J!==58)break;if(K.ctas===void 0)K.ctas=[];let V=IK.decode(Z,Z.uint32());if(V!==void 0)K.ctas.push(V);continue}case 8:{if(J!==66)break;if(K.previews===void 0)K.previews=[];let V=n.decode(Z,Z.uint32());if(V!==void 0)K.previews.push(V);continue}case 9:{if(J!==74)break;K.titleText=Z.string();continue}case 10:{if(J!==82)break;K.subtitleText=Z.string();continue}case 11:{if(J!==88)break;K.maxTitleNumOfLines=Z.uint32();continue}case 12:{if(J!==96)break;K.maxSubtitleNumOfLines=Z.uint32();continue}case 13:{if(J!==106)break;K.favicon=n.decode(Z,Z.uint32(),K.favicon);continue}case 14:{if(J!==114)break;K.headerImage=n.decode(Z,Z.uint32(),K.headerImage);continue}case 15:{if(J!==122)break;K.headerTitle=Z.string();continue}case 16:{if(J!==128)break;K.overlayIconGlyph=Z.int32();continue}case 17:{if(J!==138)break;K.overlayTitle=Z.string();continue}case 18:{if(J!==146)break;K.overlayDescription=Z.string();continue}case 19:{if(J!==154)break;K.sentWithMessageId=Z.string();continue}case 20:{if(J!==162)break;K.messageText=Z.string();continue}case 21:{if(J!==170)break;K.headerSubtitle=Z.string();continue}case 22:{if(J!==178)break;K.xmaDataclass=Z.string();continue}case 23:{if(J!==186)break;K.contentRef=Z.string();continue}case 24:{if(J!==194)break;if(K.mentionedJid===void 0)K.mentionedJid=[];let V=Z.string();if(V!==void 0)K.mentionedJid.push(V);continue}case 25:{if(J!==202)break;if(K.commands===void 0)K.commands=[];let V=H$.decode(Z,Z.uint32());if(V!==void 0)K.commands.push(V);continue}case 26:{if(J!==210)break;if(K.mentions===void 0)K.mentions=[];let V=B$.decode(Z,Z.uint32());if(V!==void 0)K.mentions.push(V);continue}case 27:{if(J!==216)break;K.xmaDataclassType=Z.int32();continue}case 28:{if(J!==226)break;K.signedXmaDataclassValidation=Z.string();continue}case 29:{if(J!==234)break;K.featureSharedSessionId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return _3.fromPartial($??{})},fromPartial($){let Q=hU();return Q.associatedMessage=$.associatedMessage!==void 0&&$.associatedMessage!==null?n.fromPartial($.associatedMessage):void 0,Q.targetType=$.targetType??void 0,Q.targetUsername=$.targetUsername??void 0,Q.targetId=$.targetId??void 0,Q.targetExpiringAtSec=$.targetExpiringAtSec??void 0,Q.xmaLayoutType=$.xmaLayoutType??void 0,Q.ctas=$.ctas?.map((q)=>IK.fromPartial(q))||void 0,Q.previews=$.previews?.map((q)=>n.fromPartial(q))||void 0,Q.titleText=$.titleText??void 0,Q.subtitleText=$.subtitleText??void 0,Q.maxTitleNumOfLines=$.maxTitleNumOfLines??void 0,Q.maxSubtitleNumOfLines=$.maxSubtitleNumOfLines??void 0,Q.favicon=$.favicon!==void 0&&$.favicon!==null?n.fromPartial($.favicon):void 0,Q.headerImage=$.headerImage!==void 0&&$.headerImage!==null?n.fromPartial($.headerImage):void 0,Q.headerTitle=$.headerTitle??void 0,Q.overlayIconGlyph=$.overlayIconGlyph??void 0,Q.overlayTitle=$.overlayTitle??void 0,Q.overlayDescription=$.overlayDescription??void 0,Q.sentWithMessageId=$.sentWithMessageId??void 0,Q.messageText=$.messageText??void 0,Q.headerSubtitle=$.headerSubtitle??void 0,Q.xmaDataclass=$.xmaDataclass??void 0,Q.contentRef=$.contentRef??void 0,Q.mentionedJid=$.mentionedJid?.map((q)=>q)||void 0,Q.commands=$.commands?.map((q)=>H$.fromPartial(q))||void 0,Q.mentions=$.mentions?.map((q)=>B$.fromPartial(q))||void 0,Q.xmaDataclassType=$.xmaDataclassType??void 0,Q.signedXmaDataclassValidation=$.signedXmaDataclassValidation??void 0,Q.featureSharedSessionId=$.featureSharedSessionId??void 0,Q}};function lU(){return{}}var IK={encode($,Q=new z){if($.buttonType!==void 0)Q.uint32(8).int32($.buttonType);if($.title!==void 0)Q.uint32(18).string($.title);if($.actionUrl!==void 0)Q.uint32(26).string($.actionUrl);if($.nativeUrl!==void 0)Q.uint32(34).string($.nativeUrl);if($.ctaType!==void 0)Q.uint32(42).string($.ctaType);if($.actionContentBlob!==void 0)Q.uint32(50).string($.actionContentBlob);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??lU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.buttonType=Z.int32();continue}case 2:{if(J!==18)break;K.title=Z.string();continue}case 3:{if(J!==26)break;K.actionUrl=Z.string();continue}case 4:{if(J!==34)break;K.nativeUrl=Z.string();continue}case 5:{if(J!==42)break;K.ctaType=Z.string();continue}case 6:{if(J!==50)break;K.actionContentBlob=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return IK.fromPartial($??{})},fromPartial($){let Q=lU();return Q.buttonType=$.buttonType??void 0,Q.title=$.title??void 0,Q.actionUrl=$.actionUrl??void 0,Q.nativeUrl=$.nativeUrl??void 0,Q.ctaType=$.ctaType??void 0,Q.actionContentBlob=$.actionContentBlob??void 0,Q}};function pU(){return{}}var o$={encode($,Q=new z){if($.mediaKey!==void 0)Q.uint32(10).bytes($.mediaKey);if($.directPath!==void 0)Q.uint32(18).string($.directPath);if($.handle!==void 0)Q.uint32(26).string($.handle);if($.fileSizeBytes!==void 0)Q.uint32(32).uint64($.fileSizeBytes);if($.fileSha256!==void 0)Q.uint32(42).bytes($.fileSha256);if($.fileEncSha256!==void 0)Q.uint32(50).bytes($.fileEncSha256);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??pU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mediaKey=Z.bytes();continue}case 2:{if(J!==18)break;K.directPath=Z.string();continue}case 3:{if(J!==26)break;K.handle=Z.string();continue}case 4:{if(J!==32)break;K.fileSizeBytes=Z.uint64Value();continue}case 5:{if(J!==42)break;K.fileSha256=Z.bytes();continue}case 6:{if(J!==50)break;K.fileEncSha256=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return o$.fromPartial($??{})},fromPartial($){let Q=pU();return Q.mediaKey=$.mediaKey??void 0,Q.directPath=$.directPath??void 0,Q.handle=$.handle??void 0,Q.fileSizeBytes=$.fileSizeBytes??void 0,Q.fileSha256=$.fileSha256??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q}};function uU(){return{}}var l0={encode($,Q=new z){if($.minVersion!==void 0)Q.uint32(8).uint32($.minVersion);if($.maxVersion!==void 0)Q.uint32(16).uint32($.maxVersion);if($.notReportableMinVersion!==void 0)Q.uint32(24).uint32($.notReportableMinVersion);if($.isMessage!==void 0)Q.uint32(32).bool($.isMessage);return globalThis.Object.entries($.subfield||{}).forEach(([q,Z])=>{vV.encode({key:q,value:Z},Q.uint32(42).fork()).join()}),Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??uU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.minVersion=Z.uint32();continue}case 2:{if(J!==16)break;K.maxVersion=Z.uint32();continue}case 3:{if(J!==24)break;K.notReportableMinVersion=Z.uint32();continue}case 4:{if(J!==32)break;K.isMessage=Z.bool();continue}case 5:{if(J!==42)break;let V=vV.decode(Z,Z.uint32());if(V.value!==void 0&&V.key!==void 0){if(K.subfield===void 0)K.subfield={};K.subfield[V.key]=V.value}continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return l0.fromPartial($??{})},fromPartial($){let Q=uU();return Q.minVersion=$.minVersion??void 0,Q.maxVersion=$.maxVersion??void 0,Q.notReportableMinVersion=$.notReportableMinVersion??void 0,Q.isMessage=$.isMessage??void 0,Q.subfield=$.subfield===void 0||$.subfield===null?void 0:globalThis.Object.entries($.subfield??{}).reduce((q,[Z,X])=>{if(X!==void 0)q[globalThis.Number(Z)]=l0.fromPartial(X);return q},{}),Q}};function wU(){return{}}var vV={encode($,Q=new z){if($.key!==void 0)Q.uint32(8).uint32($.key);if($.value!==void 0)l0.encode($.value,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??wU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.key=Z.uint32();continue}case 2:{if(J!==18)break;K.value=l0.decode(Z,Z.uint32(),K.value);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return vV.fromPartial($??{})},fromPartial($){let Q=wU();return Q.key=$.key??void 0,Q.value=$.value!==void 0&&$.value!==null?l0.fromPartial($.value):void 0,Q}};function jU(){return{}}var r0={encode($,Q=new z){if($.publicKey!==void 0)Q.uint32(10).bytes($.publicKey);if($.pnIdentifier!==void 0)Q.uint32(18).bytes($.pnIdentifier);if($.lidIdentifier!==void 0)Q.uint32(26).bytes($.lidIdentifier);if($.usernameIdentifier!==void 0)Q.uint32(34).bytes($.usernameIdentifier);if($.hostedState!==void 0)Q.uint32(40).int32($.hostedState);if($.hashedPublicKey!==void 0)Q.uint32(50).bytes($.hashedPublicKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??jU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.publicKey=Z.bytes();continue}case 2:{if(J!==18)break;K.pnIdentifier=Z.bytes();continue}case 3:{if(J!==26)break;K.lidIdentifier=Z.bytes();continue}case 4:{if(J!==34)break;K.usernameIdentifier=Z.bytes();continue}case 5:{if(J!==40)break;K.hostedState=Z.int32();continue}case 6:{if(J!==50)break;K.hashedPublicKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return r0.fromPartial($??{})},fromPartial($){let Q=jU();return Q.publicKey=$.publicKey??void 0,Q.pnIdentifier=$.pnIdentifier??void 0,Q.lidIdentifier=$.lidIdentifier??void 0,Q.usernameIdentifier=$.usernameIdentifier??void 0,Q.hostedState=$.hostedState??void 0,Q.hashedPublicKey=$.hashedPublicKey??void 0,Q}};function cU(){return{}}var TK={encode($,Q=new z){if($.botName!==void 0)Q.uint32(10).string($.botName);if($.botJid!==void 0)Q.uint32(18).string($.botJid);if($.creatorName!==void 0)Q.uint32(26).string($.creatorName);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??cU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.botName=Z.string();continue}case 2:{if(J!==18)break;K.botJid=Z.string();continue}case 3:{if(J!==26)break;K.creatorName=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return TK.fromPartial($??{})},fromPartial($){let Q=cU();return Q.botName=$.botName??void 0,Q.botJid=$.botJid??void 0,Q.creatorName=$.creatorName??void 0,Q}};function dU(){return{}}var yK={encode($,Q=new z){if($.epochHeads!==void 0&&$.epochHeads.length!==0)for(let q of $.epochHeads)Q.uint32(10).bytes(q);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??dU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.epochHeads===void 0)K.epochHeads=[];let V=Z.bytes();if(V!==void 0)K.epochHeads.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return yK.fromPartial($??{})},fromPartial($){let Q=dU();return Q.epochHeads=$.epochHeads?.map((q)=>q)||void 0,Q}};function nU(){return{}}var h3={encode($,Q=new z){if($.mek!==void 0)M0.encode($.mek,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??nU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mek=M0.decode(Z,Z.uint32(),K.mek);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return h3.fromPartial($??{})},fromPartial($){let Q=nU();return Q.mek=$.mek!==void 0&&$.mek!==null?M0.fromPartial($.mek):void 0,Q}};function bU(){return{}}var vK={encode($,Q=new z){if($.epochHeads!==void 0&&$.epochHeads.length!==0)for(let q of $.epochHeads)Q.uint32(10).bytes(q);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??bU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.epochHeads===void 0)K.epochHeads=[];let V=Z.bytes();if(V!==void 0)K.epochHeads.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return vK.fromPartial($??{})},fromPartial($){let Q=bU();return Q.epochHeads=$.epochHeads?.map((q)=>q)||void 0,Q}};function oU(){return{}}var l3={encode($,Q=new z){if($.rosterHash!==void 0)Q.uint32(10).bytes($.rosterHash);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??oU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.rosterHash=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return l3.fromPartial($??{})},fromPartial($){let Q=oU();return Q.rosterHash=$.rosterHash??void 0,Q}};function iU(){return{}}var fK={encode($,Q=new z){if($.lightThemeWallpaper!==void 0)R0.encode($.lightThemeWallpaper,Q.uint32(10).fork()).join();if($.mediaVisibility!==void 0)Q.uint32(16).int32($.mediaVisibility);if($.darkThemeWallpaper!==void 0)R0.encode($.darkThemeWallpaper,Q.uint32(26).fork()).join();if($.autoDownloadWiFi!==void 0)L0.encode($.autoDownloadWiFi,Q.uint32(34).fork()).join();if($.autoDownloadCellular!==void 0)L0.encode($.autoDownloadCellular,Q.uint32(42).fork()).join();if($.autoDownloadRoaming!==void 0)L0.encode($.autoDownloadRoaming,Q.uint32(50).fork()).join();if($.showIndividualNotificationsPreview!==void 0)Q.uint32(56).bool($.showIndividualNotificationsPreview);if($.showGroupNotificationsPreview!==void 0)Q.uint32(64).bool($.showGroupNotificationsPreview);if($.disappearingModeDuration!==void 0)Q.uint32(72).int32($.disappearingModeDuration);if($.disappearingModeTimestamp!==void 0)Q.uint32(80).int64($.disappearingModeTimestamp);if($.avatarUserSettings!==void 0)nQ.encode($.avatarUserSettings,Q.uint32(90).fork()).join();if($.fontSize!==void 0)Q.uint32(96).int32($.fontSize);if($.securityNotifications!==void 0)Q.uint32(104).bool($.securityNotifications);if($.autoUnarchiveChats!==void 0)Q.uint32(112).bool($.autoUnarchiveChats);if($.videoQualityMode!==void 0)Q.uint32(120).int32($.videoQualityMode);if($.photoQualityMode!==void 0)Q.uint32(128).int32($.photoQualityMode);if($.individualNotificationSettings!==void 0)Q$.encode($.individualNotificationSettings,Q.uint32(138).fork()).join();if($.groupNotificationSettings!==void 0)Q$.encode($.groupNotificationSettings,Q.uint32(146).fork()).join();if($.chatLockSettings!==void 0)z$.encode($.chatLockSettings,Q.uint32(154).fork()).join();if($.chatDbLidMigrationTimestamp!==void 0)Q.uint32(160).int64($.chatDbLidMigrationTimestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??iU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.lightThemeWallpaper=R0.decode(Z,Z.uint32(),K.lightThemeWallpaper);continue}case 2:{if(J!==16)break;K.mediaVisibility=Z.int32();continue}case 3:{if(J!==26)break;K.darkThemeWallpaper=R0.decode(Z,Z.uint32(),K.darkThemeWallpaper);continue}case 4:{if(J!==34)break;K.autoDownloadWiFi=L0.decode(Z,Z.uint32(),K.autoDownloadWiFi);continue}case 5:{if(J!==42)break;K.autoDownloadCellular=L0.decode(Z,Z.uint32(),K.autoDownloadCellular);continue}case 6:{if(J!==50)break;K.autoDownloadRoaming=L0.decode(Z,Z.uint32(),K.autoDownloadRoaming);continue}case 7:{if(J!==56)break;K.showIndividualNotificationsPreview=Z.bool();continue}case 8:{if(J!==64)break;K.showGroupNotificationsPreview=Z.bool();continue}case 9:{if(J!==72)break;K.disappearingModeDuration=Z.int32();continue}case 10:{if(J!==80)break;K.disappearingModeTimestamp=Z.int64Value();continue}case 11:{if(J!==90)break;K.avatarUserSettings=nQ.decode(Z,Z.uint32(),K.avatarUserSettings);continue}case 12:{if(J!==96)break;K.fontSize=Z.int32();continue}case 13:{if(J!==104)break;K.securityNotifications=Z.bool();continue}case 14:{if(J!==112)break;K.autoUnarchiveChats=Z.bool();continue}case 15:{if(J!==120)break;K.videoQualityMode=Z.int32();continue}case 16:{if(J!==128)break;K.photoQualityMode=Z.int32();continue}case 17:{if(J!==138)break;K.individualNotificationSettings=Q$.decode(Z,Z.uint32(),K.individualNotificationSettings);continue}case 18:{if(J!==146)break;K.groupNotificationSettings=Q$.decode(Z,Z.uint32(),K.groupNotificationSettings);continue}case 19:{if(J!==154)break;K.chatLockSettings=z$.decode(Z,Z.uint32(),K.chatLockSettings);continue}case 20:{if(J!==160)break;K.chatDbLidMigrationTimestamp=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return fK.fromPartial($??{})},fromPartial($){let Q=iU();return Q.lightThemeWallpaper=$.lightThemeWallpaper!==void 0&&$.lightThemeWallpaper!==null?R0.fromPartial($.lightThemeWallpaper):void 0,Q.mediaVisibility=$.mediaVisibility??void 0,Q.darkThemeWallpaper=$.darkThemeWallpaper!==void 0&&$.darkThemeWallpaper!==null?R0.fromPartial($.darkThemeWallpaper):void 0,Q.autoDownloadWiFi=$.autoDownloadWiFi!==void 0&&$.autoDownloadWiFi!==null?L0.fromPartial($.autoDownloadWiFi):void 0,Q.autoDownloadCellular=$.autoDownloadCellular!==void 0&&$.autoDownloadCellular!==null?L0.fromPartial($.autoDownloadCellular):void 0,Q.autoDownloadRoaming=$.autoDownloadRoaming!==void 0&&$.autoDownloadRoaming!==null?L0.fromPartial($.autoDownloadRoaming):void 0,Q.showIndividualNotificationsPreview=$.showIndividualNotificationsPreview??void 0,Q.showGroupNotificationsPreview=$.showGroupNotificationsPreview??void 0,Q.disappearingModeDuration=$.disappearingModeDuration??void 0,Q.disappearingModeTimestamp=$.disappearingModeTimestamp??void 0,Q.avatarUserSettings=$.avatarUserSettings!==void 0&&$.avatarUserSettings!==null?nQ.fromPartial($.avatarUserSettings):void 0,Q.fontSize=$.fontSize??void 0,Q.securityNotifications=$.securityNotifications??void 0,Q.autoUnarchiveChats=$.autoUnarchiveChats??void 0,Q.videoQualityMode=$.videoQualityMode??void 0,Q.photoQualityMode=$.photoQualityMode??void 0,Q.individualNotificationSettings=$.individualNotificationSettings!==void 0&&$.individualNotificationSettings!==null?Q$.fromPartial($.individualNotificationSettings):void 0,Q.groupNotificationSettings=$.groupNotificationSettings!==void 0&&$.groupNotificationSettings!==null?Q$.fromPartial($.groupNotificationSettings):void 0,Q.chatLockSettings=$.chatLockSettings!==void 0&&$.chatLockSettings!==null?z$.fromPartial($.chatLockSettings):void 0,Q.chatDbLidMigrationTimestamp=$.chatDbLidMigrationTimestamp??void 0,Q}};function mU(){return{}}var p3={encode($,Q=new z){if($.messages!==void 0&&$.messages.length!==0)for(let q of $.messages)g.encode(q,Q.uint32(10).fork()).join();if($.uncountedAssociatedMessageLists!==void 0&&$.uncountedAssociatedMessageLists.length!==0)for(let q of $.uncountedAssociatedMessageLists)HV.encode(q,Q.uint32(18).fork()).join();if($.commentMessages!==void 0&&$.commentMessages.length!==0)for(let q of $.commentMessages)g.encode(q,Q.uint32(26).fork()).join();if($.outOfWindowPinnedMessages!==void 0&&$.outOfWindowPinnedMessages.length!==0)for(let q of $.outOfWindowPinnedMessages)g.encode(q,Q.uint32(34).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??mU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.messages===void 0)K.messages=[];let V=g.decode(Z,Z.uint32());if(V!==void 0)K.messages.push(V);continue}case 2:{if(J!==18)break;if(K.uncountedAssociatedMessageLists===void 0)K.uncountedAssociatedMessageLists=[];let V=HV.decode(Z,Z.uint32());if(V!==void 0)K.uncountedAssociatedMessageLists.push(V);continue}case 3:{if(J!==26)break;if(K.commentMessages===void 0)K.commentMessages=[];let V=g.decode(Z,Z.uint32());if(V!==void 0)K.commentMessages.push(V);continue}case 4:{if(J!==34)break;if(K.outOfWindowPinnedMessages===void 0)K.outOfWindowPinnedMessages=[];let V=g.decode(Z,Z.uint32());if(V!==void 0)K.outOfWindowPinnedMessages.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return p3.fromPartial($??{})},fromPartial($){let Q=mU();return Q.messages=$.messages?.map((q)=>g.fromPartial(q))||void 0,Q.uncountedAssociatedMessageLists=$.uncountedAssociatedMessageLists?.map((q)=>HV.fromPartial(q))||void 0,Q.commentMessages=$.commentMessages?.map((q)=>g.fromPartial(q))||void 0,Q.outOfWindowPinnedMessages=$.outOfWindowPinnedMessages?.map((q)=>g.fromPartial(q))||void 0,Q}};function gU(){return{}}var _K={encode($,Q=new z){if($.deprecatedMessageHistoryBundle!==void 0)W$.encode($.deprecatedMessageHistoryBundle,Q.uint32(10).fork()).join();if($.processState!==void 0)Q.uint32(16).int32($.processState);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??gU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.deprecatedMessageHistoryBundle=W$.decode(Z,Z.uint32(),K.deprecatedMessageHistoryBundle);continue}case 2:{if(J!==16)break;K.processState=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return _K.fromPartial($??{})},fromPartial($){let Q=gU();return Q.deprecatedMessageHistoryBundle=$.deprecatedMessageHistoryBundle!==void 0&&$.deprecatedMessageHistoryBundle!==null?W$.fromPartial($.deprecatedMessageHistoryBundle):void 0,Q.processState=$.processState??void 0,Q}};function rU(){return{}}var hK={encode($,Q=new z){if($.bundleMessageKey!==void 0)N.encode($.bundleMessageKey,Q.uint32(10).fork()).join();if($.editedAfterReceivedAsHistory!==void 0)Q.uint32(16).bool($.editedAfterReceivedAsHistory);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??rU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.bundleMessageKey=N.decode(Z,Z.uint32(),K.bundleMessageKey);continue}case 2:{if(J!==16)break;K.editedAfterReceivedAsHistory=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return hK.fromPartial($??{})},fromPartial($){let Q=rU();return Q.bundleMessageKey=$.bundleMessageKey!==void 0&&$.bundleMessageKey!==null?N.fromPartial($.bundleMessageKey):void 0,Q.editedAfterReceivedAsHistory=$.editedAfterReceivedAsHistory??void 0,Q}};function tU(){return{}}var u3={encode($,Q=new z){if($.messages!==void 0&&$.messages.length!==0)for(let q of $.messages)Y0.encode(q,Q.uint32(10).fork()).join();if($.uncountedAssociatedMessageLists!==void 0&&$.uncountedAssociatedMessageLists.length!==0)for(let q of $.uncountedAssociatedMessageLists)GV.encode(q,Q.uint32(18).fork()).join();if($.commentMessages!==void 0&&$.commentMessages.length!==0)for(let q of $.commentMessages)Y0.encode(q,Q.uint32(26).fork()).join();if($.outOfWindowPinnedMessages!==void 0&&$.outOfWindowPinnedMessages.length!==0)for(let q of $.outOfWindowPinnedMessages)Y0.encode(q,Q.uint32(34).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??tU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.messages===void 0)K.messages=[];let V=Y0.decode(Z,Z.uint32());if(V!==void 0)K.messages.push(V);continue}case 2:{if(J!==18)break;if(K.uncountedAssociatedMessageLists===void 0)K.uncountedAssociatedMessageLists=[];let V=GV.decode(Z,Z.uint32());if(V!==void 0)K.uncountedAssociatedMessageLists.push(V);continue}case 3:{if(J!==26)break;if(K.commentMessages===void 0)K.commentMessages=[];let V=Y0.decode(Z,Z.uint32());if(V!==void 0)K.commentMessages.push(V);continue}case 4:{if(J!==34)break;if(K.outOfWindowPinnedMessages===void 0)K.outOfWindowPinnedMessages=[];let V=Y0.decode(Z,Z.uint32());if(V!==void 0)K.outOfWindowPinnedMessages.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return u3.fromPartial($??{})},fromPartial($){let Q=tU();return Q.messages=$.messages?.map((q)=>Y0.fromPartial(q))||void 0,Q.uncountedAssociatedMessageLists=$.uncountedAssociatedMessageLists?.map((q)=>GV.fromPartial(q))||void 0,Q.commentMessages=$.commentMessages?.map((q)=>Y0.fromPartial(q))||void 0,Q.outOfWindowPinnedMessages=$.outOfWindowPinnedMessages?.map((q)=>Y0.fromPartial(q))||void 0,Q}};function aU(){return{}}var lK={encode($,Q=new z){if($.groupJid!==void 0)Q.uint32(10).string($.groupJid);if($.groupSubject!==void 0)Q.uint32(18).string($.groupSubject);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??aU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.groupJid=Z.string();continue}case 2:{if(J!==18)break;K.groupSubject=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return lK.fromPartial($??{})},fromPartial($){let Q=aU();return Q.groupJid=$.groupJid??void 0,Q.groupSubject=$.groupSubject??void 0,Q}};function sU(){return{}}var pK={encode($,Q=new z){if($.userJid!==void 0)Q.uint32(10).string($.userJid);if($.rank!==void 0)Q.uint32(16).int32($.rank);if($.memberLabel!==void 0)W0.encode($.memberLabel,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??sU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.userJid=Z.string();continue}case 2:{if(J!==16)break;K.rank=Z.int32();continue}case 3:{if(J!==26)break;K.memberLabel=W0.decode(Z,Z.uint32(),K.memberLabel);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return pK.fromPartial($??{})},fromPartial($){let Q=sU();return Q.userJid=$.userJid??void 0,Q.rank=$.rank??void 0,Q.memberLabel=$.memberLabel!==void 0&&$.memberLabel!==null?W0.fromPartial($.memberLabel):void 0,Q}};function eU(){return{}}var uK={encode($,Q=new z){if($.keys!==void 0&&$.keys.length!==0)for(let q of $.keys)wK.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??eU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.keys===void 0)K.keys=[];let V=wK.decode(Z,Z.uint32());if(V!==void 0)K.keys.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return uK.fromPartial($??{})},fromPartial($){let Q=eU();return Q.keys=$.keys?.map((q)=>wK.fromPartial(q))||void 0,Q}};function $C(){return{}}var wK={encode($,Q=new z){if($.groupRootKey!==void 0)Q.uint32(10).bytes($.groupRootKey);if($.keyId!==void 0)Q.uint32(18).string($.keyId);if($.expiryTimestampMs!==void 0)Q.uint32(24).int64($.expiryTimestampMs);if($.createdTimestampMs!==void 0)Q.uint32(32).int64($.createdTimestampMs);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??$C();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.groupRootKey=Z.bytes();continue}case 2:{if(J!==18)break;K.keyId=Z.string();continue}case 3:{if(J!==24)break;K.expiryTimestampMs=Z.int64Value();continue}case 4:{if(J!==32)break;K.createdTimestampMs=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return wK.fromPartial($??{})},fromPartial($){let Q=$C();return Q.groupRootKey=$.groupRootKey??void 0,Q.keyId=$.keyId??void 0,Q.expiryTimestampMs=$.expiryTimestampMs??void 0,Q.createdTimestampMs=$.createdTimestampMs??void 0,Q}};function QC(){return{}}var dV={encode($,Q=new z){if($.clientHello!==void 0)cK.encode($.clientHello,Q.uint32(18).fork()).join();if($.serverHello!==void 0)dK.encode($.serverHello,Q.uint32(26).fork()).join();if($.clientFinish!==void 0)jK.encode($.clientFinish,Q.uint32(34).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??QC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 2:{if(J!==18)break;K.clientHello=cK.decode(Z,Z.uint32(),K.clientHello);continue}case 3:{if(J!==26)break;K.serverHello=dK.decode(Z,Z.uint32(),K.serverHello);continue}case 4:{if(J!==34)break;K.clientFinish=jK.decode(Z,Z.uint32(),K.clientFinish);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return dV.fromPartial($??{})},fromPartial($){let Q=QC();return Q.clientHello=$.clientHello!==void 0&&$.clientHello!==null?cK.fromPartial($.clientHello):void 0,Q.serverHello=$.serverHello!==void 0&&$.serverHello!==null?dK.fromPartial($.serverHello):void 0,Q.clientFinish=$.clientFinish!==void 0&&$.clientFinish!==null?jK.fromPartial($.clientFinish):void 0,Q}};function ZC(){return{}}var jK={encode($,Q=new z){if($.static!==void 0)Q.uint32(10).bytes($.static);if($.payload!==void 0)Q.uint32(18).bytes($.payload);if($.extendedCiphertext!==void 0)Q.uint32(26).bytes($.extendedCiphertext);if($.paddedBytes!==void 0)Q.uint32(34).bytes($.paddedBytes);if($.simulateXxkemFs!==void 0)Q.uint32(40).bool($.simulateXxkemFs);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ZC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.static=Z.bytes();continue}case 2:{if(J!==18)break;K.payload=Z.bytes();continue}case 3:{if(J!==26)break;K.extendedCiphertext=Z.bytes();continue}case 4:{if(J!==34)break;K.paddedBytes=Z.bytes();continue}case 5:{if(J!==40)break;K.simulateXxkemFs=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return jK.fromPartial($??{})},fromPartial($){let Q=ZC();return Q.static=$.static??void 0,Q.payload=$.payload??void 0,Q.extendedCiphertext=$.extendedCiphertext??void 0,Q.paddedBytes=$.paddedBytes??void 0,Q.simulateXxkemFs=$.simulateXxkemFs??void 0,Q}};function JC(){return{}}var cK={encode($,Q=new z){if($.ephemeral!==void 0)Q.uint32(10).bytes($.ephemeral);if($.static!==void 0)Q.uint32(18).bytes($.static);if($.payload!==void 0)Q.uint32(26).bytes($.payload);if($.useExtended!==void 0)Q.uint32(32).bool($.useExtended);if($.extendedCiphertext!==void 0)Q.uint32(42).bytes($.extendedCiphertext);if($.paddedBytes!==void 0)Q.uint32(50).bytes($.paddedBytes);if($.sendServerHelloPaddedBytes!==void 0)Q.uint32(56).bool($.sendServerHelloPaddedBytes);if($.simulateXxkemFs!==void 0)Q.uint32(64).bool($.simulateXxkemFs);if($.pqMode!==void 0)Q.uint32(72).int32($.pqMode);if($.extendedEphemeral!==void 0)Q.uint32(82).bytes($.extendedEphemeral);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??JC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.ephemeral=Z.bytes();continue}case 2:{if(J!==18)break;K.static=Z.bytes();continue}case 3:{if(J!==26)break;K.payload=Z.bytes();continue}case 4:{if(J!==32)break;K.useExtended=Z.bool();continue}case 5:{if(J!==42)break;K.extendedCiphertext=Z.bytes();continue}case 6:{if(J!==50)break;K.paddedBytes=Z.bytes();continue}case 7:{if(J!==56)break;K.sendServerHelloPaddedBytes=Z.bool();continue}case 8:{if(J!==64)break;K.simulateXxkemFs=Z.bool();continue}case 9:{if(J!==72)break;K.pqMode=Z.int32();continue}case 10:{if(J!==82)break;K.extendedEphemeral=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return cK.fromPartial($??{})},fromPartial($){let Q=JC();return Q.ephemeral=$.ephemeral??void 0,Q.static=$.static??void 0,Q.payload=$.payload??void 0,Q.useExtended=$.useExtended??void 0,Q.extendedCiphertext=$.extendedCiphertext??void 0,Q.paddedBytes=$.paddedBytes??void 0,Q.sendServerHelloPaddedBytes=$.sendServerHelloPaddedBytes??void 0,Q.simulateXxkemFs=$.simulateXxkemFs??void 0,Q.pqMode=$.pqMode??void 0,Q.extendedEphemeral=$.extendedEphemeral??void 0,Q}};function KC(){return{}}var dK={encode($,Q=new z){if($.ephemeral!==void 0)Q.uint32(10).bytes($.ephemeral);if($.static!==void 0)Q.uint32(18).bytes($.static);if($.payload!==void 0)Q.uint32(26).bytes($.payload);if($.extendedStatic!==void 0)Q.uint32(34).bytes($.extendedStatic);if($.paddingBytes!==void 0)Q.uint32(42).bytes($.paddingBytes);if($.extendedCiphertext!==void 0)Q.uint32(50).bytes($.extendedCiphertext);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??KC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.ephemeral=Z.bytes();continue}case 2:{if(J!==18)break;K.static=Z.bytes();continue}case 3:{if(J!==26)break;K.payload=Z.bytes();continue}case 4:{if(J!==34)break;K.extendedStatic=Z.bytes();continue}case 5:{if(J!==42)break;K.paddingBytes=Z.bytes();continue}case 6:{if(J!==50)break;K.extendedCiphertext=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return dK.fromPartial($??{})},fromPartial($){let Q=KC();return Q.ephemeral=$.ephemeral??void 0,Q.static=$.static??void 0,Q.payload=$.payload??void 0,Q.extendedStatic=$.extendedStatic??void 0,Q.paddingBytes=$.paddingBytes??void 0,Q.extendedCiphertext=$.extendedCiphertext??void 0,Q}};function qC(){return{}}var nK={encode($,Q=new z){if($.data!==void 0)Q.uint32(10).bytes($.data);if($.timestampMs!==void 0)Q.uint32(16).int64($.timestampMs);if($.requestId!==void 0)Q.uint32(26).string($.requestId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??qC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.data=Z.bytes();continue}case 2:{if(J!==16)break;K.timestampMs=Z.int64Value();continue}case 3:{if(J!==26)break;K.requestId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return nK.fromPartial($??{})},fromPartial($){let Q=qC();return Q.data=$.data??void 0,Q.timestampMs=$.timestampMs??void 0,Q.requestId=$.requestId??void 0,Q}};function XC(){return{}}var nV={encode($,Q=new z){if($.syncType!==void 0)Q.uint32(8).int32($.syncType);if($.conversations!==void 0&&$.conversations.length!==0)for(let q of $.conversations)nJ.encode(q,Q.uint32(18).fork()).join();if($.statusV3Messages!==void 0&&$.statusV3Messages.length!==0)for(let q of $.statusV3Messages)g.encode(q,Q.uint32(26).fork()).join();if($.chunkOrder!==void 0)Q.uint32(40).uint32($.chunkOrder);if($.progress!==void 0)Q.uint32(48).uint32($.progress);if($.pushnames!==void 0&&$.pushnames.length!==0)for(let q of $.pushnames)o9.encode(q,Q.uint32(58).fork()).join();if($.globalSettings!==void 0)fK.encode($.globalSettings,Q.uint32(66).fork()).join();if($.threadIdUserSecret!==void 0)Q.uint32(74).bytes($.threadIdUserSecret);if($.threadDsTimeframeOffset!==void 0)Q.uint32(80).uint32($.threadDsTimeframeOffset);if($.recentStickers!==void 0&&$.recentStickers.length!==0)for(let q of $.recentStickers)R6.encode(q,Q.uint32(90).fork()).join();if($.pastParticipants!==void 0&&$.pastParticipants.length!==0)for(let q of $.pastParticipants)f9.encode(q,Q.uint32(98).fork()).join();if($.callLogRecords!==void 0&&$.callLogRecords.length!==0)for(let q of $.callLogRecords)V$.encode(q,Q.uint32(106).fork()).join();if($.aiWaitListState!==void 0)Q.uint32(112).int32($.aiWaitListState);if($.phoneNumberToLidMappings!==void 0&&$.phoneNumberToLidMappings.length!==0)for(let q of $.phoneNumberToLidMappings)h9.encode(q,Q.uint32(122).fork()).join();if($.companionMetaNonce!==void 0)Q.uint32(130).string($.companionMetaNonce);if($.shareableChatIdentifierEncryptionKey!==void 0)Q.uint32(138).bytes($.shareableChatIdentifierEncryptionKey);if($.accounts!==void 0&&$.accounts.length!==0)for(let q of $.accounts)cQ.encode(q,Q.uint32(146).fork()).join();if($.nctSalt!==void 0)Q.uint32(154).bytes($.nctSalt);if($.inlineContacts!==void 0&&$.inlineContacts.length!==0)for(let q of $.inlineContacts)$8.encode(q,Q.uint32(162).fork()).join();if($.inlineContactsProvided!==void 0)Q.uint32(168).bool($.inlineContactsProvided);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??XC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.syncType=Z.int32();continue}case 2:{if(J!==18)break;if(K.conversations===void 0)K.conversations=[];let V=nJ.decode(Z,Z.uint32());if(V!==void 0)K.conversations.push(V);continue}case 3:{if(J!==26)break;if(K.statusV3Messages===void 0)K.statusV3Messages=[];let V=g.decode(Z,Z.uint32());if(V!==void 0)K.statusV3Messages.push(V);continue}case 5:{if(J!==40)break;K.chunkOrder=Z.uint32();continue}case 6:{if(J!==48)break;K.progress=Z.uint32();continue}case 7:{if(J!==58)break;if(K.pushnames===void 0)K.pushnames=[];let V=o9.decode(Z,Z.uint32());if(V!==void 0)K.pushnames.push(V);continue}case 8:{if(J!==66)break;K.globalSettings=fK.decode(Z,Z.uint32(),K.globalSettings);continue}case 9:{if(J!==74)break;K.threadIdUserSecret=Z.bytes();continue}case 10:{if(J!==80)break;K.threadDsTimeframeOffset=Z.uint32();continue}case 11:{if(J!==90)break;if(K.recentStickers===void 0)K.recentStickers=[];let V=R6.decode(Z,Z.uint32());if(V!==void 0)K.recentStickers.push(V);continue}case 12:{if(J!==98)break;if(K.pastParticipants===void 0)K.pastParticipants=[];let V=f9.decode(Z,Z.uint32());if(V!==void 0)K.pastParticipants.push(V);continue}case 13:{if(J!==106)break;if(K.callLogRecords===void 0)K.callLogRecords=[];let V=V$.decode(Z,Z.uint32());if(V!==void 0)K.callLogRecords.push(V);continue}case 14:{if(J!==112)break;K.aiWaitListState=Z.int32();continue}case 15:{if(J!==122)break;if(K.phoneNumberToLidMappings===void 0)K.phoneNumberToLidMappings=[];let V=h9.decode(Z,Z.uint32());if(V!==void 0)K.phoneNumberToLidMappings.push(V);continue}case 16:{if(J!==130)break;K.companionMetaNonce=Z.string();continue}case 17:{if(J!==138)break;K.shareableChatIdentifierEncryptionKey=Z.bytes();continue}case 18:{if(J!==146)break;if(K.accounts===void 0)K.accounts=[];let V=cQ.decode(Z,Z.uint32());if(V!==void 0)K.accounts.push(V);continue}case 19:{if(J!==154)break;K.nctSalt=Z.bytes();continue}case 20:{if(J!==162)break;if(K.inlineContacts===void 0)K.inlineContacts=[];let V=$8.decode(Z,Z.uint32());if(V!==void 0)K.inlineContacts.push(V);continue}case 21:{if(J!==168)break;K.inlineContactsProvided=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return nV.fromPartial($??{})},fromPartial($){let Q=XC();return Q.syncType=$.syncType??void 0,Q.conversations=$.conversations?.map((q)=>nJ.fromPartial(q))||void 0,Q.statusV3Messages=$.statusV3Messages?.map((q)=>g.fromPartial(q))||void 0,Q.chunkOrder=$.chunkOrder??void 0,Q.progress=$.progress??void 0,Q.pushnames=$.pushnames?.map((q)=>o9.fromPartial(q))||void 0,Q.globalSettings=$.globalSettings!==void 0&&$.globalSettings!==null?fK.fromPartial($.globalSettings):void 0,Q.threadIdUserSecret=$.threadIdUserSecret??void 0,Q.threadDsTimeframeOffset=$.threadDsTimeframeOffset??void 0,Q.recentStickers=$.recentStickers?.map((q)=>R6.fromPartial(q))||void 0,Q.pastParticipants=$.pastParticipants?.map((q)=>f9.fromPartial(q))||void 0,Q.callLogRecords=$.callLogRecords?.map((q)=>V$.fromPartial(q))||void 0,Q.aiWaitListState=$.aiWaitListState??void 0,Q.phoneNumberToLidMappings=$.phoneNumberToLidMappings?.map((q)=>h9.fromPartial(q))||void 0,Q.companionMetaNonce=$.companionMetaNonce??void 0,Q.shareableChatIdentifierEncryptionKey=$.shareableChatIdentifierEncryptionKey??void 0,Q.accounts=$.accounts?.map((q)=>cQ.fromPartial(q))||void 0,Q.nctSalt=$.nctSalt??void 0,Q.inlineContacts=$.inlineContacts?.map((q)=>$8.fromPartial(q))||void 0,Q.inlineContactsProvided=$.inlineContactsProvided??void 0,Q}};function YC(){return{}}var bK={encode($,Q=new z){if($.message!==void 0)g.encode($.message,Q.uint32(10).fork()).join();if($.msgOrderId!==void 0)Q.uint32(16).uint64($.msgOrderId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??YC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.message=g.decode(Z,Z.uint32(),K.message);continue}case 2:{if(J!==16)break;K.msgOrderId=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return bK.fromPartial($??{})},fromPartial($){let Q=YC();return Q.message=$.message!==void 0&&$.message!==null?g.fromPartial($.message):void 0,Q.msgOrderId=$.msgOrderId??void 0,Q}};function VC(){return{}}var oK={encode($,Q=new z){if($.index!==void 0)Q.uint32(32).uint32($.index);if($.quickReplyButton!==void 0)mK.encode($.quickReplyButton,Q.uint32(10).fork()).join();if($.urlButton!==void 0)gK.encode($.urlButton,Q.uint32(18).fork()).join();if($.callButton!==void 0)iK.encode($.callButton,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??VC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 4:{if(J!==32)break;K.index=Z.uint32();continue}case 1:{if(J!==10)break;K.quickReplyButton=mK.decode(Z,Z.uint32(),K.quickReplyButton);continue}case 2:{if(J!==18)break;K.urlButton=gK.decode(Z,Z.uint32(),K.urlButton);continue}case 3:{if(J!==26)break;K.callButton=iK.decode(Z,Z.uint32(),K.callButton);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return oK.fromPartial($??{})},fromPartial($){let Q=VC();return Q.index=$.index??void 0,Q.quickReplyButton=$.quickReplyButton!==void 0&&$.quickReplyButton!==null?mK.fromPartial($.quickReplyButton):void 0,Q.urlButton=$.urlButton!==void 0&&$.urlButton!==null?gK.fromPartial($.urlButton):void 0,Q.callButton=$.callButton!==void 0&&$.callButton!==null?iK.fromPartial($.callButton):void 0,Q}};function zC(){return{}}var iK={encode($,Q=new z){if($.displayText!==void 0)Q.uint32(10).string($.displayText);if($.phoneNumber!==void 0)Q.uint32(18).string($.phoneNumber);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??zC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayText=Z.string();continue}case 2:{if(J!==18)break;K.phoneNumber=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return iK.fromPartial($??{})},fromPartial($){let Q=zC();return Q.displayText=$.displayText??void 0,Q.phoneNumber=$.phoneNumber??void 0,Q}};function HC(){return{}}var mK={encode($,Q=new z){if($.displayText!==void 0)Q.uint32(10).string($.displayText);if($.id!==void 0)Q.uint32(18).string($.id);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??HC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayText=Z.string();continue}case 2:{if(J!==18)break;K.id=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return mK.fromPartial($??{})},fromPartial($){let Q=HC();return Q.displayText=$.displayText??void 0,Q.id=$.id??void 0,Q}};function GC(){return{}}var gK={encode($,Q=new z){if($.displayText!==void 0)Q.uint32(10).string($.displayText);if($.url!==void 0)Q.uint32(18).string($.url);if($.consentedUsersUrl!==void 0)Q.uint32(26).string($.consentedUsersUrl);if($.webviewPresentation!==void 0)Q.uint32(32).int32($.webviewPresentation);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??GC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayText=Z.string();continue}case 2:{if(J!==18)break;K.url=Z.string();continue}case 3:{if(J!==26)break;K.consentedUsersUrl=Z.string();continue}case 4:{if(J!==32)break;K.webviewPresentation=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return gK.fromPartial($??{})},fromPartial($){let Q=GC();return Q.displayText=$.displayText??void 0,Q.url=$.url??void 0,Q.consentedUsersUrl=$.consentedUsersUrl??void 0,Q.webviewPresentation=$.webviewPresentation??void 0,Q}};function UC(){return{}}var w3={encode($,Q=new z){if($.publicKey!==void 0)Q.uint32(10).bytes($.publicKey);if($.privateKey!==void 0)Q.uint32(18).bytes($.privateKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??UC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.publicKey=Z.bytes();continue}case 2:{if(J!==18)break;K.privateKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return w3.fromPartial($??{})},fromPartial($){let Q=UC();return Q.publicKey=$.publicKey??void 0,Q.privateKey=$.privateKey??void 0,Q}};function CC(){return{}}var rK={encode($,Q=new z){if($.verified!==void 0)Q.uint32(8).bool($.verified);if($.actionSeq!==void 0)Q.uint32(16).uint64($.actionSeq);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??CC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.verified=Z.bool();continue}case 2:{if(J!==16)break;K.actionSeq=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return rK.fromPartial($??{})},fromPartial($){let Q=CC();return Q.verified=$.verified??void 0,Q.actionSeq=$.actionSeq??void 0,Q}};function DC(){return{}}var tK={encode($,Q=new z){if($.tessaSessionId!==void 0)Q.uint32(10).string($.tessaSessionId);if($.simonSessionId!==void 0)Q.uint32(18).string($.simonSessionId);if($.simonSurveyId!==void 0)Q.uint32(26).string($.simonSurveyId);if($.tessaRootId!==void 0)Q.uint32(34).string($.tessaRootId);if($.requestId!==void 0)Q.uint32(42).string($.requestId);if($.tessaEvent!==void 0)Q.uint32(50).string($.tessaEvent);if($.invitationHeaderText!==void 0)Q.uint32(58).string($.invitationHeaderText);if($.invitationBodyText!==void 0)Q.uint32(66).string($.invitationBodyText);if($.invitationCtaText!==void 0)Q.uint32(74).string($.invitationCtaText);if($.invitationCtaUrl!==void 0)Q.uint32(82).string($.invitationCtaUrl);if($.surveyTitle!==void 0)Q.uint32(90).string($.surveyTitle);if($.questions!==void 0&&$.questions.length!==0)for(let q of $.questions)eK.encode(q,Q.uint32(98).fork()).join();if($.surveyContinueButtonText!==void 0)Q.uint32(106).string($.surveyContinueButtonText);if($.surveySubmitButtonText!==void 0)Q.uint32(114).string($.surveySubmitButtonText);if($.privacyStatementFull!==void 0)Q.uint32(122).string($.privacyStatementFull);if($.privacyStatementParts!==void 0&&$.privacyStatementParts.length!==0)for(let q of $.privacyStatementParts)sK.encode(q,Q.uint32(130).fork()).join();if($.feedbackToastText!==void 0)Q.uint32(138).string($.feedbackToastText);if($.startQuestionIndex!==void 0)Q.uint32(144).int32($.startQuestionIndex);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??DC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.tessaSessionId=Z.string();continue}case 2:{if(J!==18)break;K.simonSessionId=Z.string();continue}case 3:{if(J!==26)break;K.simonSurveyId=Z.string();continue}case 4:{if(J!==34)break;K.tessaRootId=Z.string();continue}case 5:{if(J!==42)break;K.requestId=Z.string();continue}case 6:{if(J!==50)break;K.tessaEvent=Z.string();continue}case 7:{if(J!==58)break;K.invitationHeaderText=Z.string();continue}case 8:{if(J!==66)break;K.invitationBodyText=Z.string();continue}case 9:{if(J!==74)break;K.invitationCtaText=Z.string();continue}case 10:{if(J!==82)break;K.invitationCtaUrl=Z.string();continue}case 11:{if(J!==90)break;K.surveyTitle=Z.string();continue}case 12:{if(J!==98)break;if(K.questions===void 0)K.questions=[];let V=eK.decode(Z,Z.uint32());if(V!==void 0)K.questions.push(V);continue}case 13:{if(J!==106)break;K.surveyContinueButtonText=Z.string();continue}case 14:{if(J!==114)break;K.surveySubmitButtonText=Z.string();continue}case 15:{if(J!==122)break;K.privacyStatementFull=Z.string();continue}case 16:{if(J!==130)break;if(K.privacyStatementParts===void 0)K.privacyStatementParts=[];let V=sK.decode(Z,Z.uint32());if(V!==void 0)K.privacyStatementParts.push(V);continue}case 17:{if(J!==138)break;K.feedbackToastText=Z.string();continue}case 18:{if(J!==144)break;K.startQuestionIndex=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return tK.fromPartial($??{})},fromPartial($){let Q=DC();return Q.tessaSessionId=$.tessaSessionId??void 0,Q.simonSessionId=$.simonSessionId??void 0,Q.simonSurveyId=$.simonSurveyId??void 0,Q.tessaRootId=$.tessaRootId??void 0,Q.requestId=$.requestId??void 0,Q.tessaEvent=$.tessaEvent??void 0,Q.invitationHeaderText=$.invitationHeaderText??void 0,Q.invitationBodyText=$.invitationBodyText??void 0,Q.invitationCtaText=$.invitationCtaText??void 0,Q.invitationCtaUrl=$.invitationCtaUrl??void 0,Q.surveyTitle=$.surveyTitle??void 0,Q.questions=$.questions?.map((q)=>eK.fromPartial(q))||void 0,Q.surveyContinueButtonText=$.surveyContinueButtonText??void 0,Q.surveySubmitButtonText=$.surveySubmitButtonText??void 0,Q.privacyStatementFull=$.privacyStatementFull??void 0,Q.privacyStatementParts=$.privacyStatementParts?.map((q)=>sK.fromPartial(q))||void 0,Q.feedbackToastText=$.feedbackToastText??void 0,Q.startQuestionIndex=$.startQuestionIndex??void 0,Q}};function FC(){return{}}var aK={encode($,Q=new z){if($.stringValue!==void 0)Q.uint32(10).string($.stringValue);if($.numericValue!==void 0)Q.uint32(16).uint32($.numericValue);if($.textTranslated!==void 0)Q.uint32(26).string($.textTranslated);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??FC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.stringValue=Z.string();continue}case 2:{if(J!==16)break;K.numericValue=Z.uint32();continue}case 3:{if(J!==26)break;K.textTranslated=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return aK.fromPartial($??{})},fromPartial($){let Q=FC();return Q.stringValue=$.stringValue??void 0,Q.numericValue=$.numericValue??void 0,Q.textTranslated=$.textTranslated??void 0,Q}};function PC(){return{}}var sK={encode($,Q=new z){if($.text!==void 0)Q.uint32(10).string($.text);if($.url!==void 0)Q.uint32(18).string($.url);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??PC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.text=Z.string();continue}case 2:{if(J!==18)break;K.url=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return sK.fromPartial($??{})},fromPartial($){let Q=PC();return Q.text=$.text??void 0,Q.url=$.url??void 0,Q}};function LC(){return{}}var eK={encode($,Q=new z){if($.questionText!==void 0)Q.uint32(10).string($.questionText);if($.questionId!==void 0)Q.uint32(18).string($.questionId);if($.questionOptions!==void 0&&$.questionOptions.length!==0)for(let q of $.questionOptions)aK.encode(q,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??LC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.questionText=Z.string();continue}case 2:{if(J!==18)break;K.questionId=Z.string();continue}case 3:{if(J!==26)break;if(K.questionOptions===void 0)K.questionOptions=[];let V=aK.decode(Z,Z.uint32());if(V!==void 0)K.questionOptions.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return eK.fromPartial($??{})},fromPartial($){let Q=LC();return Q.questionText=$.questionText??void 0,Q.questionId=$.questionId??void 0,Q.questionOptions=$.questionOptions?.map((q)=>aK.fromPartial(q))||void 0,Q}};function xC(){return{}}var $8={encode($,Q=new z){if($.pnJid!==void 0)Q.uint32(10).string($.pnJid);if($.lidJid!==void 0)Q.uint32(18).string($.lidJid);if($.fullName!==void 0)Q.uint32(26).string($.fullName);if($.firstName!==void 0)Q.uint32(34).string($.firstName);if($.username!==void 0)Q.uint32(42).string($.username);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??xC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.pnJid=Z.string();continue}case 2:{if(J!==18)break;K.lidJid=Z.string();continue}case 3:{if(J!==26)break;K.fullName=Z.string();continue}case 4:{if(J!==34)break;K.firstName=Z.string();continue}case 5:{if(J!==42)break;K.username=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return $8.fromPartial($??{})},fromPartial($){let Q=xC();return Q.pnJid=$.pnJid??void 0,Q.lidJid=$.lidJid??void 0,Q.fullName=$.fullName??void 0,Q.firstName=$.firstName??void 0,Q.username=$.username??void 0,Q}};function kC(){return{}}var V0={encode($,Q=new z){if($.polygonVertices!==void 0&&$.polygonVertices.length!==0)for(let q of $.polygonVertices)u9.encode(q,Q.uint32(10).fork()).join();if($.shouldSkipConfirmation!==void 0)Q.uint32(32).bool($.shouldSkipConfirmation);if($.embeddedContent!==void 0)xK.encode($.embeddedContent,Q.uint32(42).fork()).join();if($.statusLinkType!==void 0)Q.uint32(64).int32($.statusLinkType);if($.location!==void 0)Y8.encode($.location,Q.uint32(18).fork()).join();if($.newsletter!==void 0)L$.encode($.newsletter,Q.uint32(26).fork()).join();if($.embeddedAction!==void 0)Q.uint32(48).bool($.embeddedAction);if($.tapAction!==void 0)KV.encode($.tapAction,Q.uint32(58).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??kC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.polygonVertices===void 0)K.polygonVertices=[];let V=u9.decode(Z,Z.uint32());if(V!==void 0)K.polygonVertices.push(V);continue}case 4:{if(J!==32)break;K.shouldSkipConfirmation=Z.bool();continue}case 5:{if(J!==42)break;K.embeddedContent=xK.decode(Z,Z.uint32(),K.embeddedContent);continue}case 8:{if(J!==64)break;K.statusLinkType=Z.int32();continue}case 2:{if(J!==18)break;K.location=Y8.decode(Z,Z.uint32(),K.location);continue}case 3:{if(J!==26)break;K.newsletter=L$.decode(Z,Z.uint32(),K.newsletter);continue}case 6:{if(J!==48)break;K.embeddedAction=Z.bool();continue}case 7:{if(J!==58)break;K.tapAction=KV.decode(Z,Z.uint32(),K.tapAction);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return V0.fromPartial($??{})},fromPartial($){let Q=kC();return Q.polygonVertices=$.polygonVertices?.map((q)=>u9.fromPartial(q))||void 0,Q.shouldSkipConfirmation=$.shouldSkipConfirmation??void 0,Q.embeddedContent=$.embeddedContent!==void 0&&$.embeddedContent!==null?xK.fromPartial($.embeddedContent):void 0,Q.statusLinkType=$.statusLinkType??void 0,Q.location=$.location!==void 0&&$.location!==null?Y8.fromPartial($.location):void 0,Q.newsletter=$.newsletter!==void 0&&$.newsletter!==null?L$.fromPartial($.newsletter):void 0,Q.embeddedAction=$.embeddedAction??void 0,Q.tapAction=$.tapAction!==void 0&&$.tapAction!==null?KV.fromPartial($.tapAction):void 0,Q}};function NC(){return{}}var Q8={encode($,Q=new z){if($.isGalaxyFlowCompleted!==void 0)Q.uint32(8).bool($.isGalaxyFlowCompleted);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??NC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isGalaxyFlowCompleted=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Q8.fromPartial($??{})},fromPartial($){let Q=NC();return Q.isGalaxyFlowCompleted=$.isGalaxyFlowCompleted??void 0,Q}};function BC(){return{}}var Z8={encode($,Q=new z){if($.keepType!==void 0)Q.uint32(8).int32($.keepType);if($.serverTimestamp!==void 0)Q.uint32(16).int64($.serverTimestamp);if($.key!==void 0)N.encode($.key,Q.uint32(26).fork()).join();if($.deviceJid!==void 0)Q.uint32(34).string($.deviceJid);if($.clientTimestampMs!==void 0)Q.uint32(40).int64($.clientTimestampMs);if($.serverTimestampMs!==void 0)Q.uint32(48).int64($.serverTimestampMs);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??BC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.keepType=Z.int32();continue}case 2:{if(J!==16)break;K.serverTimestamp=Z.int64Value();continue}case 3:{if(J!==26)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}case 4:{if(J!==34)break;K.deviceJid=Z.string();continue}case 5:{if(J!==40)break;K.clientTimestampMs=Z.int64Value();continue}case 6:{if(J!==48)break;K.serverTimestampMs=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Z8.fromPartial($??{})},fromPartial($){let Q=BC();return Q.keepType=$.keepType??void 0,Q.serverTimestamp=$.serverTimestamp??void 0,Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q.deviceJid=$.deviceJid??void 0,Q.clientTimestampMs=$.clientTimestampMs??void 0,Q.serverTimestampMs=$.serverTimestampMs??void 0,Q}};function RC(){return{}}var j3={encode($,Q=new z){if($.id!==void 0)Q.uint32(8).uint32($.id);if($.baseKey!==void 0)Q.uint32(18).bytes($.baseKey);if($.ratchetKey!==void 0)Q.uint32(26).bytes($.ratchetKey);if($.identityKey!==void 0)Q.uint32(34).bytes($.identityKey);if($.baseKeySignature!==void 0)Q.uint32(42).bytes($.baseKeySignature);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??RC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.id=Z.uint32();continue}case 2:{if(J!==18)break;K.baseKey=Z.bytes();continue}case 3:{if(J!==26)break;K.ratchetKey=Z.bytes();continue}case 4:{if(J!==34)break;K.identityKey=Z.bytes();continue}case 5:{if(J!==42)break;K.baseKeySignature=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return j3.fromPartial($??{})},fromPartial($){let Q=RC();return Q.id=$.id??void 0,Q.baseKey=$.baseKey??void 0,Q.ratchetKey=$.ratchetKey??void 0,Q.identityKey=$.identityKey??void 0,Q.baseKeySignature=$.baseKeySignature??void 0,Q}};function OC(){return{}}var E0={encode($,Q=new z){if($.id!==void 0)Q.uint32(10).bytes($.id);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??OC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.id=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return E0.fromPartial($??{})},fromPartial($){let Q=OC();return Q.id=$.id??void 0,Q}};function AC(){return{}}var J8={encode($,Q=new z){if($.encodedMappingPayload!==void 0)Q.uint32(10).bytes($.encodedMappingPayload);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??AC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encodedMappingPayload=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return J8.fromPartial($??{})},fromPartial($){let Q=AC();return Q.encodedMappingPayload=$.encodedMappingPayload??void 0,Q}};function EC(){return{}}var K8={encode($,Q=new z){if($.pn!==void 0)Q.uint32(8).uint64($.pn);if($.assignedLid!==void 0)Q.uint32(16).uint64($.assignedLid);if($.latestLid!==void 0)Q.uint32(24).uint64($.latestLid);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??EC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.pn=Z.uint64Value();continue}case 2:{if(J!==16)break;K.assignedLid=Z.uint64Value();continue}case 3:{if(J!==24)break;K.latestLid=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return K8.fromPartial($??{})},fromPartial($){let Q=EC();return Q.pn=$.pn??void 0,Q.assignedLid=$.assignedLid??void 0,Q.latestLid=$.latestLid??void 0,Q}};function MC(){return{}}var bV={encode($,Q=new z){if($.pnToLidMappings!==void 0&&$.pnToLidMappings.length!==0)for(let q of $.pnToLidMappings)K8.encode(q,Q.uint32(10).fork()).join();if($.chatDbMigrationTimestamp!==void 0)Q.uint32(16).uint64($.chatDbMigrationTimestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??MC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.pnToLidMappings===void 0)K.pnToLidMappings=[];let V=K8.decode(Z,Z.uint32());if(V!==void 0)K.pnToLidMappings.push(V);continue}case 2:{if(J!==16)break;K.chatDbMigrationTimestamp=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return bV.fromPartial($??{})},fromPartial($){let Q=MC();return Q.pnToLidMappings=$.pnToLidMappings?.map((q)=>K8.fromPartial(q))||void 0,Q.chatDbMigrationTimestamp=$.chatDbMigrationTimestamp??void 0,Q}};function WC(){return{}}var c3={encode($,Q=new z){if($.createBackupInput!==void 0)bJ.encode($.createBackupInput,Q.uint32(10).fork()).join();if($.encryptMessageInput!==void 0)AK.encode($.encryptMessageInput,Q.uint32(18).fork()).join();if($.decryptMessageInput!==void 0)tJ.encode($.decryptMessageInput,Q.uint32(26).fork()).join();if($.orfThreadIdInput!==void 0)y9.encode($.orfThreadIdInput,Q.uint32(34).fork()).join();if($.deriveMessageKeyInput!==void 0)qK.encode($.deriveMessageKeyInput,Q.uint32(42).fork()).join();if($.rotateEpochInput!==void 0)s9.encode($.rotateEpochInput,Q.uint32(50).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??WC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.createBackupInput=bJ.decode(Z,Z.uint32(),K.createBackupInput);continue}case 2:{if(J!==18)break;K.encryptMessageInput=AK.decode(Z,Z.uint32(),K.encryptMessageInput);continue}case 3:{if(J!==26)break;K.decryptMessageInput=tJ.decode(Z,Z.uint32(),K.decryptMessageInput);continue}case 4:{if(J!==34)break;K.orfThreadIdInput=y9.decode(Z,Z.uint32(),K.orfThreadIdInput);continue}case 5:{if(J!==42)break;K.deriveMessageKeyInput=qK.decode(Z,Z.uint32(),K.deriveMessageKeyInput);continue}case 6:{if(J!==50)break;K.rotateEpochInput=s9.decode(Z,Z.uint32(),K.rotateEpochInput);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return c3.fromPartial($??{})},fromPartial($){let Q=WC();return Q.createBackupInput=$.createBackupInput!==void 0&&$.createBackupInput!==null?bJ.fromPartial($.createBackupInput):void 0,Q.encryptMessageInput=$.encryptMessageInput!==void 0&&$.encryptMessageInput!==null?AK.fromPartial($.encryptMessageInput):void 0,Q.decryptMessageInput=$.decryptMessageInput!==void 0&&$.decryptMessageInput!==null?tJ.fromPartial($.decryptMessageInput):void 0,Q.orfThreadIdInput=$.orfThreadIdInput!==void 0&&$.orfThreadIdInput!==null?y9.fromPartial($.orfThreadIdInput):void 0,Q.deriveMessageKeyInput=$.deriveMessageKeyInput!==void 0&&$.deriveMessageKeyInput!==null?qK.fromPartial($.deriveMessageKeyInput):void 0,Q.rotateEpochInput=$.rotateEpochInput!==void 0&&$.rotateEpochInput!==null?s9.fromPartial($.rotateEpochInput):void 0,Q}};function SC(){return{}}var q8={encode($,Q=new z){if($.eventResponseMessage!==void 0)p0.encode($.eventResponseMessage,Q.uint32(10).fork()).join();if($.pollVote!==void 0)u0.encode($.pollVote,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??SC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.eventResponseMessage=p0.decode(Z,Z.uint32(),K.eventResponseMessage);continue}case 2:{if(J!==18)break;K.pollVote=u0.decode(Z,Z.uint32(),K.pollVote);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return q8.fromPartial($??{})},fromPartial($){let Q=SC();return Q.eventResponseMessage=$.eventResponseMessage!==void 0&&$.eventResponseMessage!==null?p0.fromPartial($.eventResponseMessage):void 0,Q.pollVote=$.pollVote!==void 0&&$.pollVote!==null?u0.fromPartial($.pollVote):void 0,Q}};function IC(){return{}}var N0={encode($,Q=new z){if($.sharingLimited!==void 0)Q.uint32(8).bool($.sharingLimited);if($.trigger!==void 0)Q.uint32(16).int32($.trigger);if($.limitSharingSettingTimestamp!==void 0)Q.uint32(24).int64($.limitSharingSettingTimestamp);if($.initiatedByMe!==void 0)Q.uint32(32).bool($.initiatedByMe);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??IC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.sharingLimited=Z.bool();continue}case 2:{if(J!==16)break;K.trigger=Z.int32();continue}case 3:{if(J!==24)break;K.limitSharingSettingTimestamp=Z.int64Value();continue}case 4:{if(J!==32)break;K.initiatedByMe=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return N0.fromPartial($??{})},fromPartial($){let Q=IC();return Q.sharingLimited=$.sharingLimited??void 0,Q.trigger=$.trigger??void 0,Q.limitSharingSettingTimestamp=$.limitSharingSettingTimestamp??void 0,Q.initiatedByMe=$.initiatedByMe??void 0,Q}};function TC(){return{}}var X8={encode($,Q=new z){if($.lg!==void 0)Q.uint32(10).string($.lg);if($.lc!==void 0)Q.uint32(18).string($.lc);if($.verifiedName!==void 0)Q.uint32(26).string($.verifiedName);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??TC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.lg=Z.string();continue}case 2:{if(J!==18)break;K.lc=Z.string();continue}case 3:{if(J!==26)break;K.verifiedName=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return X8.fromPartial($??{})},fromPartial($){let Q=TC();return Q.lg=$.lg??void 0,Q.lc=$.lc??void 0,Q.verifiedName=$.verifiedName??void 0,Q}};function yC(){return{}}var Y8={encode($,Q=new z){if($.degreesLatitude!==void 0)Q.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)Q.uint32(17).double($.degreesLongitude);if($.name!==void 0)Q.uint32(26).string($.name);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??yC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==9)break;K.degreesLatitude=Z.double();continue}case 2:{if(J!==17)break;K.degreesLongitude=Z.double();continue}case 3:{if(J!==26)break;K.name=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Y8.fromPartial($??{})},fromPartial($){let Q=yC();return Q.degreesLatitude=$.degreesLatitude??void 0,Q.degreesLongitude=$.degreesLongitude??void 0,Q.name=$.name??void 0,Q}};function vC(){return{}}var V8={encode($,Q=new z){if($.encryptedMek!==void 0)Q.uint32(10).bytes($.encryptedMek);if($.recipientsHash!==void 0)Q.uint32(34).bytes($.recipientsHash);if($.recipientEncSk!==void 0)Q.uint32(42).bytes($.recipientEncSk);if($.mekEncryptionVersion!==void 0)Q.uint32(48).uint64($.mekEncryptionVersion);if($.conf!==void 0)i.encode($.conf,Q.uint32(58).fork()).join();if($.recipientMmk!==void 0)b.encode($.recipientMmk,Q.uint32(66).fork()).join();if($.mekId!==void 0)Q.uint32(74).bytes($.mekId);if($.recipientMembershipProof!==void 0)S0.encode($.recipientMembershipProof,Q.uint32(82).fork()).join();if($.mmkSender!==void 0)H8.encode($.mmkSender,Q.uint32(18).fork()).join();if($.epochSender!==void 0)z8.encode($.epochSender,Q.uint32(26).fork()).join();if($.precomputedEpochSender!==void 0)G8.encode($.precomputedEpochSender,Q.uint32(90).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??vC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encryptedMek=Z.bytes();continue}case 4:{if(J!==34)break;K.recipientsHash=Z.bytes();continue}case 5:{if(J!==42)break;K.recipientEncSk=Z.bytes();continue}case 6:{if(J!==48)break;K.mekEncryptionVersion=Z.uint64Value();continue}case 7:{if(J!==58)break;K.conf=i.decode(Z,Z.uint32(),K.conf);continue}case 8:{if(J!==66)break;K.recipientMmk=b.decode(Z,Z.uint32(),K.recipientMmk);continue}case 9:{if(J!==74)break;K.mekId=Z.bytes();continue}case 10:{if(J!==82)break;K.recipientMembershipProof=S0.decode(Z,Z.uint32(),K.recipientMembershipProof);continue}case 2:{if(J!==18)break;K.mmkSender=H8.decode(Z,Z.uint32(),K.mmkSender);continue}case 3:{if(J!==26)break;K.epochSender=z8.decode(Z,Z.uint32(),K.epochSender);continue}case 11:{if(J!==90)break;K.precomputedEpochSender=G8.decode(Z,Z.uint32(),K.precomputedEpochSender);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return V8.fromPartial($??{})},fromPartial($){let Q=vC();return Q.encryptedMek=$.encryptedMek??void 0,Q.recipientsHash=$.recipientsHash??void 0,Q.recipientEncSk=$.recipientEncSk??void 0,Q.mekEncryptionVersion=$.mekEncryptionVersion??void 0,Q.conf=$.conf!==void 0&&$.conf!==null?i.fromPartial($.conf):void 0,Q.recipientMmk=$.recipientMmk!==void 0&&$.recipientMmk!==null?b.fromPartial($.recipientMmk):void 0,Q.mekId=$.mekId??void 0,Q.recipientMembershipProof=$.recipientMembershipProof!==void 0&&$.recipientMembershipProof!==null?S0.fromPartial($.recipientMembershipProof):void 0,Q.mmkSender=$.mmkSender!==void 0&&$.mmkSender!==null?H8.fromPartial($.mmkSender):void 0,Q.epochSender=$.epochSender!==void 0&&$.epochSender!==null?z8.fromPartial($.epochSender):void 0,Q.precomputedEpochSender=$.precomputedEpochSender!==void 0&&$.precomputedEpochSender!==null?G8.fromPartial($.precomputedEpochSender):void 0,Q}};function fC(){return{}}var z8={encode($,Q=new z){if($.epochPublicData!==void 0)r.encode($.epochPublicData,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??fC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.epochPublicData=r.decode(Z,Z.uint32(),K.epochPublicData);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return z8.fromPartial($??{})},fromPartial($){let Q=fC();return Q.epochPublicData=$.epochPublicData!==void 0&&$.epochPublicData!==null?r.fromPartial($.epochPublicData):void 0,Q}};function _C(){return{}}var H8={encode($,Q=new z){if($.mmkPublicData!==void 0)b.encode($.mmkPublicData,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??_C();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mmkPublicData=b.decode(Z,Z.uint32(),K.mmkPublicData);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return H8.fromPartial($??{})},fromPartial($){let Q=_C();return Q.mmkPublicData=$.mmkPublicData!==void 0&&$.mmkPublicData!==null?b.fromPartial($.mmkPublicData):void 0,Q}};function hC(){return{}}var G8={encode($,Q=new z){if($.authPk!==void 0)Q.uint32(10).bytes($.authPk);if($.epochHead!==void 0)Q.uint32(18).bytes($.epochHead);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??hC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.authPk=Z.bytes();continue}case 2:{if(J!==18)break;K.epochHead=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return G8.fromPartial($??{})},fromPartial($){let Q=hC();return Q.authPk=$.authPk??void 0,Q.epochHead=$.epochHead??void 0,Q}};function lC(){return{}}var d3={encode($,Q=new z){if($.success!==void 0)U8.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??lC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.success=U8.decode(Z,Z.uint32(),K.success);continue}case 2:{if(J!==18)break;K.errorMessage=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return d3.fromPartial($??{})},fromPartial($){let Q=lC();return Q.success=$.success!==void 0&&$.success!==null?U8.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function pC(){return{}}var U8={encode($,Q=new z){if($.mek!==void 0)Q.uint32(10).bytes($.mek);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??pC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mek=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return U8.fromPartial($??{})},fromPartial($){let Q=pC();return Q.mek=$.mek??void 0,Q}};function uC(){return{}}var C8={encode($,Q=new z){if($.mek!==void 0)k8.encode($.mek,Q.uint32(10).fork()).join();if($.recipients!==void 0&&$.recipients.length!==0)for(let q of $.recipients)b.encode(q,Q.uint32(18).fork()).join();if($.conf!==void 0)i.encode($.conf,Q.uint32(42).fork()).join();if($.mmkSender!==void 0)P8.encode($.mmkSender,Q.uint32(26).fork()).join();if($.epochSender!==void 0)F8.encode($.epochSender,Q.uint32(34).fork()).join();if($.detachedDeviceSender!==void 0)D8.encode($.detachedDeviceSender,Q.uint32(50).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??uC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mek=k8.decode(Z,Z.uint32(),K.mek);continue}case 2:{if(J!==18)break;if(K.recipients===void 0)K.recipients=[];let V=b.decode(Z,Z.uint32());if(V!==void 0)K.recipients.push(V);continue}case 5:{if(J!==42)break;K.conf=i.decode(Z,Z.uint32(),K.conf);continue}case 3:{if(J!==26)break;K.mmkSender=P8.decode(Z,Z.uint32(),K.mmkSender);continue}case 4:{if(J!==34)break;K.epochSender=F8.decode(Z,Z.uint32(),K.epochSender);continue}case 6:{if(J!==50)break;K.detachedDeviceSender=D8.decode(Z,Z.uint32(),K.detachedDeviceSender);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return C8.fromPartial($??{})},fromPartial($){let Q=uC();return Q.mek=$.mek!==void 0&&$.mek!==null?k8.fromPartial($.mek):void 0,Q.recipients=$.recipients?.map((q)=>b.fromPartial(q))||void 0,Q.conf=$.conf!==void 0&&$.conf!==null?i.fromPartial($.conf):void 0,Q.mmkSender=$.mmkSender!==void 0&&$.mmkSender!==null?P8.fromPartial($.mmkSender):void 0,Q.epochSender=$.epochSender!==void 0&&$.epochSender!==null?F8.fromPartial($.epochSender):void 0,Q.detachedDeviceSender=$.detachedDeviceSender!==void 0&&$.detachedDeviceSender!==null?D8.fromPartial($.detachedDeviceSender):void 0,Q}};function wC(){return{}}var D8={encode($,Q=new z){if($.detachedDevicePublicData!==void 0)z0.encode($.detachedDevicePublicData,Q.uint32(10).fork()).join();if($.authSk!==void 0)Q.uint32(18).bytes($.authSk);if($.authPk!==void 0)Q.uint32(26).bytes($.authPk);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??wC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.detachedDevicePublicData=z0.decode(Z,Z.uint32(),K.detachedDevicePublicData);continue}case 2:{if(J!==18)break;K.authSk=Z.bytes();continue}case 3:{if(J!==26)break;K.authPk=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return D8.fromPartial($??{})},fromPartial($){let Q=wC();return Q.detachedDevicePublicData=$.detachedDevicePublicData!==void 0&&$.detachedDevicePublicData!==null?z0.fromPartial($.detachedDevicePublicData):void 0,Q.authSk=$.authSk??void 0,Q.authPk=$.authPk??void 0,Q}};function jC(){return{}}var F8={encode($,Q=new z){if($.epochPublicData!==void 0)r.encode($.epochPublicData,Q.uint32(10).fork()).join();if($.authSk!==void 0)Q.uint32(18).bytes($.authSk);if($.authPk!==void 0)Q.uint32(26).bytes($.authPk);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??jC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.epochPublicData=r.decode(Z,Z.uint32(),K.epochPublicData);continue}case 2:{if(J!==18)break;K.authSk=Z.bytes();continue}case 3:{if(J!==26)break;K.authPk=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return F8.fromPartial($??{})},fromPartial($){let Q=jC();return Q.epochPublicData=$.epochPublicData!==void 0&&$.epochPublicData!==null?r.fromPartial($.epochPublicData):void 0,Q.authSk=$.authSk??void 0,Q.authPk=$.authPk??void 0,Q}};function cC(){return{}}var P8={encode($,Q=new z){if($.mmkPublicData!==void 0)b.encode($.mmkPublicData,Q.uint32(10).fork()).join();if($.authSk!==void 0)Q.uint32(18).bytes($.authSk);if($.authPk!==void 0)Q.uint32(26).bytes($.authPk);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??cC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mmkPublicData=b.decode(Z,Z.uint32(),K.mmkPublicData);continue}case 2:{if(J!==18)break;K.authSk=Z.bytes();continue}case 3:{if(J!==26)break;K.authPk=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return P8.fromPartial($??{})},fromPartial($){let Q=cC();return Q.mmkPublicData=$.mmkPublicData!==void 0&&$.mmkPublicData!==null?b.fromPartial($.mmkPublicData):void 0,Q.authSk=$.authSk??void 0,Q.authPk=$.authPk??void 0,Q}};function dC(){return{}}var n3={encode($,Q=new z){if($.success!==void 0)L8.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??dC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.success=L8.decode(Z,Z.uint32(),K.success);continue}case 2:{if(J!==18)break;K.errorMessage=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return n3.fromPartial($??{})},fromPartial($){let Q=dC();return Q.success=$.success!==void 0&&$.success!==null?L8.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function nC(){return{}}var L8={encode($,Q=new z){if($.distributions!==void 0&&$.distributions.length!==0)for(let q of $.distributions)x8.encode(q,Q.uint32(10).fork()).join();if($.recipientsHash!==void 0)Q.uint32(18).bytes($.recipientsHash);if($.version!==void 0)Q.uint32(24).uint64($.version);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??nC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.distributions===void 0)K.distributions=[];let V=x8.decode(Z,Z.uint32());if(V!==void 0)K.distributions.push(V);continue}case 2:{if(J!==18)break;K.recipientsHash=Z.bytes();continue}case 3:{if(J!==24)break;K.version=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return L8.fromPartial($??{})},fromPartial($){let Q=nC();return Q.distributions=$.distributions?.map((q)=>x8.fromPartial(q))||void 0,Q.recipientsHash=$.recipientsHash??void 0,Q.version=$.version??void 0,Q}};function bC(){return{}}var x8={encode($,Q=new z){if($.encryptedMek!==void 0)Q.uint32(10).bytes($.encryptedMek);if($.toMmk!==void 0)b.encode($.toMmk,Q.uint32(18).fork()).join();if($.recipientMembershipProof!==void 0)S0.encode($.recipientMembershipProof,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??bC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encryptedMek=Z.bytes();continue}case 2:{if(J!==18)break;K.toMmk=b.decode(Z,Z.uint32(),K.toMmk);continue}case 3:{if(J!==26)break;K.recipientMembershipProof=S0.decode(Z,Z.uint32(),K.recipientMembershipProof);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return x8.fromPartial($??{})},fromPartial($){let Q=bC();return Q.encryptedMek=$.encryptedMek??void 0,Q.toMmk=$.toMmk!==void 0&&$.toMmk!==null?b.fromPartial($.toMmk):void 0,Q.recipientMembershipProof=$.recipientMembershipProof!==void 0&&$.recipientMembershipProof!==null?S0.fromPartial($.recipientMembershipProof):void 0,Q}};function oC(){return{}}var k8={encode($,Q=new z){if($.key!==void 0)Q.uint32(10).bytes($.key);if($.mekId!==void 0)Q.uint32(18).bytes($.mekId);if($.mailboxHeadHash!==void 0)Q.uint32(26).bytes($.mailboxHeadHash);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??oC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=Z.bytes();continue}case 2:{if(J!==18)break;K.mekId=Z.bytes();continue}case 3:{if(J!==26)break;K.mailboxHeadHash=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return k8.fromPartial($??{})},fromPartial($){let Q=oC();return Q.key=$.key??void 0,Q.mekId=$.mekId??void 0,Q.mailboxHeadHash=$.mailboxHeadHash??void 0,Q}};function iC(){return{}}var N8={encode($,Q=new z){if($.userFbid!==void 0)Q.uint32(10).string($.userFbid);if($.epochNumber!==void 0)Q.uint32(16).uint64($.epochNumber);if($.exportRootKey!==void 0)Q.uint32(26).bytes($.exportRootKey);if($.previousExportRootKey!==void 0)Q.uint32(34).bytes($.previousExportRootKey);if($.previousEpochNumber!==void 0)Q.uint32(40).uint64($.previousEpochNumber);if($.previousEpochHead!==void 0)Q.uint32(50).bytes($.previousEpochHead);if($.previousMmk!==void 0)b.encode($.previousMmk,Q.uint32(58).fork()).join();if($.detachedDevices!==void 0&&$.detachedDevices.length!==0)for(let q of $.detachedDevices)z0.encode(q,Q.uint32(66).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??iC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.userFbid=Z.string();continue}case 2:{if(J!==16)break;K.epochNumber=Z.uint64Value();continue}case 3:{if(J!==26)break;K.exportRootKey=Z.bytes();continue}case 4:{if(J!==34)break;K.previousExportRootKey=Z.bytes();continue}case 5:{if(J!==40)break;K.previousEpochNumber=Z.uint64Value();continue}case 6:{if(J!==50)break;K.previousEpochHead=Z.bytes();continue}case 7:{if(J!==58)break;K.previousMmk=b.decode(Z,Z.uint32(),K.previousMmk);continue}case 8:{if(J!==66)break;if(K.detachedDevices===void 0)K.detachedDevices=[];let V=z0.decode(Z,Z.uint32());if(V!==void 0)K.detachedDevices.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return N8.fromPartial($??{})},fromPartial($){let Q=iC();return Q.userFbid=$.userFbid??void 0,Q.epochNumber=$.epochNumber??void 0,Q.exportRootKey=$.exportRootKey??void 0,Q.previousExportRootKey=$.previousExportRootKey??void 0,Q.previousEpochNumber=$.previousEpochNumber??void 0,Q.previousEpochHead=$.previousEpochHead??void 0,Q.previousMmk=$.previousMmk!==void 0&&$.previousMmk!==null?b.fromPartial($.previousMmk):void 0,Q.detachedDevices=$.detachedDevices?.map((q)=>z0.fromPartial(q))||void 0,Q}};function mC(){return{}}var b3={encode($,Q=new z){if($.success!==void 0)N$.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??mC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.success=N$.decode(Z,Z.uint32(),K.success);continue}case 2:{if(J!==18)break;K.errorMessage=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return b3.fromPartial($??{})},fromPartial($){let Q=mC();return Q.success=$.success!==void 0&&$.success!==null?N$.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function gC(){return{}}var N$={encode($,Q=new z){if($.minosSignedEpoch!==void 0)v0.encode($.minosSignedEpoch,Q.uint32(10).fork()).join();if($.signedMmkDistribution!==void 0)G6.encode($.signedMmkDistribution,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??gC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.minosSignedEpoch=v0.decode(Z,Z.uint32(),K.minosSignedEpoch);continue}case 2:{if(J!==18)break;K.signedMmkDistribution=G6.decode(Z,Z.uint32(),K.signedMmkDistribution);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return N$.fromPartial($??{})},fromPartial($){let Q=gC();return Q.minosSignedEpoch=$.minosSignedEpoch!==void 0&&$.minosSignedEpoch!==null?v0.fromPartial($.minosSignedEpoch):void 0,Q.signedMmkDistribution=$.signedMmkDistribution!==void 0&&$.signedMmkDistribution!==null?G6.fromPartial($.signedMmkDistribution):void 0,Q}};function rC(){return{}}var B8={encode($,Q=new z){if($.userFbid!==void 0)Q.uint32(10).string($.userFbid);if($.epochNumber!==void 0)Q.uint32(16).uint64($.epochNumber);if($.exportRootKey!==void 0)Q.uint32(26).bytes($.exportRootKey);if($.detachedDevices!==void 0&&$.detachedDevices.length!==0)for(let q of $.detachedDevices)z0.encode(q,Q.uint32(34).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??rC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.userFbid=Z.string();continue}case 2:{if(J!==16)break;K.epochNumber=Z.uint64Value();continue}case 3:{if(J!==26)break;K.exportRootKey=Z.bytes();continue}case 4:{if(J!==34)break;if(K.detachedDevices===void 0)K.detachedDevices=[];let V=z0.decode(Z,Z.uint32());if(V!==void 0)K.detachedDevices.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return B8.fromPartial($??{})},fromPartial($){let Q=rC();return Q.userFbid=$.userFbid??void 0,Q.epochNumber=$.epochNumber??void 0,Q.exportRootKey=$.exportRootKey??void 0,Q.detachedDevices=$.detachedDevices?.map((q)=>z0.fromPartial(q))||void 0,Q}};function tC(){return{}}var o3={encode($,Q=new z){if($.success!==void 0)N$.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??tC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.success=N$.decode(Z,Z.uint32(),K.success);continue}case 2:{if(J!==18)break;K.errorMessage=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return o3.fromPartial($??{})},fromPartial($){let Q=tC();return Q.success=$.success!==void 0&&$.success!==null?N$.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function aC(){return{}}var R8={encode($,Q=new z){if($.mmkFromDevice!==void 0)M9.encode($.mmkFromDevice,Q.uint32(10).fork()).join();if($.signature!==void 0)Q.uint32(18).bytes($.signature);if($.prevMmk!==void 0)b.encode($.prevMmk,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??aC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mmkFromDevice=M9.decode(Z,Z.uint32(),K.mmkFromDevice);continue}case 2:{if(J!==18)break;K.signature=Z.bytes();continue}case 3:{if(J!==26)break;K.prevMmk=b.decode(Z,Z.uint32(),K.prevMmk);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return R8.fromPartial($??{})},fromPartial($){let Q=aC();return Q.mmkFromDevice=$.mmkFromDevice!==void 0&&$.mmkFromDevice!==null?M9.fromPartial($.mmkFromDevice):void 0,Q.signature=$.signature??void 0,Q.prevMmk=$.prevMmk!==void 0&&$.prevMmk!==null?b.fromPartial($.prevMmk):void 0,Q}};function sC(){return{}}var O8={encode($,Q=new z){if($.newMmk!==void 0)b.encode($.newMmk,Q.uint32(10).fork()).join();if($.signature!==void 0)Q.uint32(18).bytes($.signature);if($.prevMmk!==void 0)b.encode($.prevMmk,Q.uint32(26).fork()).join();if($.epochPublicData!==void 0)r.encode($.epochPublicData,Q.uint32(34).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??sC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.newMmk=b.decode(Z,Z.uint32(),K.newMmk);continue}case 2:{if(J!==18)break;K.signature=Z.bytes();continue}case 3:{if(J!==26)break;K.prevMmk=b.decode(Z,Z.uint32(),K.prevMmk);continue}case 4:{if(J!==34)break;K.epochPublicData=r.decode(Z,Z.uint32(),K.epochPublicData);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return O8.fromPartial($??{})},fromPartial($){let Q=sC();return Q.newMmk=$.newMmk!==void 0&&$.newMmk!==null?b.fromPartial($.newMmk):void 0,Q.signature=$.signature??void 0,Q.prevMmk=$.prevMmk!==void 0&&$.prevMmk!==null?b.fromPartial($.prevMmk):void 0,Q.epochPublicData=$.epochPublicData!==void 0&&$.epochPublicData!==null?r.fromPartial($.epochPublicData):void 0,Q}};function eC(){return{}}var i3={encode($,Q=new z){if($.valid!==void 0)Q.uint32(8).bool($.valid);if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??eC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.valid=Z.bool();continue}case 2:{if(J!==18)break;K.errorMessage=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return i3.fromPartial($??{})},fromPartial($){let Q=eC();return Q.valid=$.valid??void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function $4(){return{}}var t0={encode($,Q=new z){if($.localPath!==void 0)Q.uint32(10).string($.localPath);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??$4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.localPath=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return t0.fromPartial($??{})},fromPartial($){let Q=$4();return Q.localPath=$.localPath??void 0,Q}};function Q4(){return{}}var A8={encode($,Q=new z){if($.mediaKeyDomain!==void 0)Q.uint32(8).int32($.mediaKeyDomain);if($.e2EeMediaKey!==void 0)Q.uint32(18).bytes($.e2EeMediaKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Q4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.mediaKeyDomain=Z.int32();continue}case 2:{if(J!==18)break;K.e2EeMediaKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return A8.fromPartial($??{})},fromPartial($){let Q=Q4();return Q.mediaKeyDomain=$.mediaKeyDomain??void 0,Q.e2EeMediaKey=$.e2EeMediaKey??void 0,Q}};function Z4(){return{}}var m3={encode($,Q=new z){if($.fileSha256!==void 0)Q.uint32(10).bytes($.fileSha256);if($.mediaKey!==void 0)Q.uint32(18).bytes($.mediaKey);if($.fileEncSha256!==void 0)Q.uint32(26).bytes($.fileEncSha256);if($.directPath!==void 0)Q.uint32(34).string($.directPath);if($.mediaKeyTimestamp!==void 0)Q.uint32(40).int64($.mediaKeyTimestamp);if($.serverMediaType!==void 0)Q.uint32(50).string($.serverMediaType);if($.uploadToken!==void 0)Q.uint32(58).bytes($.uploadToken);if($.validatedTimestamp!==void 0)Q.uint32(66).bytes($.validatedTimestamp);if($.sidecar!==void 0)Q.uint32(74).bytes($.sidecar);if($.objectId!==void 0)Q.uint32(82).string($.objectId);if($.fbid!==void 0)Q.uint32(90).string($.fbid);if($.downloadableThumbnail!==void 0)E8.encode($.downloadableThumbnail,Q.uint32(98).fork()).join();if($.handle!==void 0)Q.uint32(106).string($.handle);if($.filename!==void 0)Q.uint32(114).string($.filename);if($.progressiveJpegDetails!==void 0)M8.encode($.progressiveJpegDetails,Q.uint32(122).fork()).join();if($.size!==void 0)Q.uint32(128).int64($.size);if($.lastDownloadAttemptTimestamp!==void 0)Q.uint32(136).int64($.lastDownloadAttemptTimestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Z4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.fileSha256=Z.bytes();continue}case 2:{if(J!==18)break;K.mediaKey=Z.bytes();continue}case 3:{if(J!==26)break;K.fileEncSha256=Z.bytes();continue}case 4:{if(J!==34)break;K.directPath=Z.string();continue}case 5:{if(J!==40)break;K.mediaKeyTimestamp=Z.int64Value();continue}case 6:{if(J!==50)break;K.serverMediaType=Z.string();continue}case 7:{if(J!==58)break;K.uploadToken=Z.bytes();continue}case 8:{if(J!==66)break;K.validatedTimestamp=Z.bytes();continue}case 9:{if(J!==74)break;K.sidecar=Z.bytes();continue}case 10:{if(J!==82)break;K.objectId=Z.string();continue}case 11:{if(J!==90)break;K.fbid=Z.string();continue}case 12:{if(J!==98)break;K.downloadableThumbnail=E8.decode(Z,Z.uint32(),K.downloadableThumbnail);continue}case 13:{if(J!==106)break;K.handle=Z.string();continue}case 14:{if(J!==114)break;K.filename=Z.string();continue}case 15:{if(J!==122)break;K.progressiveJpegDetails=M8.decode(Z,Z.uint32(),K.progressiveJpegDetails);continue}case 16:{if(J!==128)break;K.size=Z.int64Value();continue}case 17:{if(J!==136)break;K.lastDownloadAttemptTimestamp=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return m3.fromPartial($??{})},fromPartial($){let Q=Z4();return Q.fileSha256=$.fileSha256??void 0,Q.mediaKey=$.mediaKey??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.directPath=$.directPath??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.serverMediaType=$.serverMediaType??void 0,Q.uploadToken=$.uploadToken??void 0,Q.validatedTimestamp=$.validatedTimestamp??void 0,Q.sidecar=$.sidecar??void 0,Q.objectId=$.objectId??void 0,Q.fbid=$.fbid??void 0,Q.downloadableThumbnail=$.downloadableThumbnail!==void 0&&$.downloadableThumbnail!==null?E8.fromPartial($.downloadableThumbnail):void 0,Q.handle=$.handle??void 0,Q.filename=$.filename??void 0,Q.progressiveJpegDetails=$.progressiveJpegDetails!==void 0&&$.progressiveJpegDetails!==null?M8.fromPartial($.progressiveJpegDetails):void 0,Q.size=$.size??void 0,Q.lastDownloadAttemptTimestamp=$.lastDownloadAttemptTimestamp??void 0,Q}};function J4(){return{}}var E8={encode($,Q=new z){if($.fileSha256!==void 0)Q.uint32(10).bytes($.fileSha256);if($.fileEncSha256!==void 0)Q.uint32(18).bytes($.fileEncSha256);if($.directPath!==void 0)Q.uint32(26).string($.directPath);if($.mediaKey!==void 0)Q.uint32(34).bytes($.mediaKey);if($.mediaKeyTimestamp!==void 0)Q.uint32(40).int64($.mediaKeyTimestamp);if($.objectId!==void 0)Q.uint32(50).string($.objectId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??J4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.fileSha256=Z.bytes();continue}case 2:{if(J!==18)break;K.fileEncSha256=Z.bytes();continue}case 3:{if(J!==26)break;K.directPath=Z.string();continue}case 4:{if(J!==34)break;K.mediaKey=Z.bytes();continue}case 5:{if(J!==40)break;K.mediaKeyTimestamp=Z.int64Value();continue}case 6:{if(J!==50)break;K.objectId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return E8.fromPartial($??{})},fromPartial($){let Q=J4();return Q.fileSha256=$.fileSha256??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.directPath=$.directPath??void 0,Q.mediaKey=$.mediaKey??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.objectId=$.objectId??void 0,Q}};function K4(){return{}}var M8={encode($,Q=new z){if($.scanLengths!==void 0&&$.scanLengths.length!==0)for(let q of $.scanLengths)Q.uint32(8).uint32(q);if($.sidecar!==void 0)Q.uint32(18).bytes($.sidecar);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??K4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J===8){if(K.scanLengths===void 0)K.scanLengths=[];K.scanLengths.push(Z.uint32());continue}if(J===10){if(K.scanLengths===void 0)K.scanLengths=[];let V=Z.uint32()+Z.pos;while(Z.pos<V)K.scanLengths.push(Z.uint32());continue}break}case 2:{if(J!==18)break;K.sidecar=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return M8.fromPartial($??{})},fromPartial($){let Q=K4();return Q.scanLengths=$.scanLengths?.map((q)=>q)||void 0,Q.sidecar=$.sidecar??void 0,Q}};function q4(){return{}}var W8={encode($,Q=new z){if($.expressPathUrl!==void 0)Q.uint32(10).string($.expressPathUrl);if($.fileEncSha256!==void 0)Q.uint32(18).bytes($.fileEncSha256);if($.fileLength!==void 0)Q.uint32(24).uint64($.fileLength);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??q4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.expressPathUrl=Z.string();continue}case 2:{if(J!==18)break;K.fileEncSha256=Z.bytes();continue}case 3:{if(J!==24)break;K.fileLength=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return W8.fromPartial($??{})},fromPartial($){let Q=q4();return Q.expressPathUrl=$.expressPathUrl??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.fileLength=$.fileLength??void 0,Q}};function X4(){return{}}var oV={encode($,Q=new z){if($.stanzaId!==void 0)Q.uint32(10).string($.stanzaId);if($.directPath!==void 0)Q.uint32(18).string($.directPath);if($.result!==void 0)Q.uint32(24).int32($.result);if($.messageSecret!==void 0)Q.uint32(34).bytes($.messageSecret);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??X4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.stanzaId=Z.string();continue}case 2:{if(J!==18)break;K.directPath=Z.string();continue}case 3:{if(J!==24)break;K.result=Z.int32();continue}case 4:{if(J!==34)break;K.messageSecret=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return oV.fromPartial($??{})},fromPartial($){let Q=X4();return Q.stanzaId=$.stanzaId??void 0,Q.directPath=$.directPath??void 0,Q.result=$.result??void 0,Q.messageSecret=$.messageSecret??void 0,Q}};function Y4(){return{}}var M0={encode($,Q=new z){if($.key!==void 0)Q.uint32(10).bytes($.key);if($.mekId!==void 0)Q.uint32(18).bytes($.mekId);if($.rosterHash!==void 0)Q.uint32(26).bytes($.rosterHash);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Y4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=Z.bytes();continue}case 2:{if(J!==18)break;K.mekId=Z.bytes();continue}case 3:{if(J!==26)break;K.rosterHash=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return M0.fromPartial($??{})},fromPartial($){let Q=Y4();return Q.key=$.key??void 0,Q.mekId=$.mekId??void 0,Q.rosterHash=$.rosterHash??void 0,Q}};function V4(){return{}}var W0={encode($,Q=new z){if($.label!==void 0)Q.uint32(10).string($.label);if($.labelTimestamp!==void 0)Q.uint32(16).int64($.labelTimestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??V4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.label=Z.string();continue}case 2:{if(J!==16)break;K.labelTimestamp=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return W0.fromPartial($??{})},fromPartial($){let Q=V4();return Q.label=$.label??void 0,Q.labelTimestamp=$.labelTimestamp??void 0,Q}};function z4(){return{}}var B$={encode($,Q=new z){if($.mentionType!==void 0)Q.uint32(8).int32($.mentionType);if($.mentionedJid!==void 0)Q.uint32(18).string($.mentionedJid);if($.offset!==void 0)Q.uint32(24).uint32($.offset);if($.length!==void 0)Q.uint32(32).uint32($.length);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??z4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.mentionType=Z.int32();continue}case 2:{if(J!==18)break;K.mentionedJid=Z.string();continue}case 3:{if(J!==24)break;K.offset=Z.uint32();continue}case 4:{if(J!==32)break;K.length=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return B$.fromPartial($??{})},fromPartial($){let Q=z4();return Q.mentionType=$.mentionType??void 0,Q.mentionedJid=$.mentionedJid??void 0,Q.offset=$.offset??void 0,Q.length=$.length??void 0,Q}};function H4(){return{}}var S0={encode($,Q=new z){if($.proof!==void 0)Q.uint32(10).bytes($.proof);if($.root!==void 0)Q.uint32(18).bytes($.root);if($.leafIndex!==void 0)Q.uint32(24).uint64($.leafIndex);if($.totalLeaves!==void 0)Q.uint32(32).uint64($.totalLeaves);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??H4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.proof=Z.bytes();continue}case 2:{if(J!==18)break;K.root=Z.bytes();continue}case 3:{if(J!==24)break;K.leafIndex=Z.uint64Value();continue}case 4:{if(J!==32)break;K.totalLeaves=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return S0.fromPartial($??{})},fromPartial($){let Q=H4();return Q.proof=$.proof??void 0,Q.root=$.root??void 0,Q.leafIndex=$.leafIndex??void 0,Q.totalLeaves=$.totalLeaves??void 0,Q}};function G4(){return{}}var c={encode($,Q=new z){if($.conversation!==void 0)Q.uint32(10).string($.conversation);if($.senderKeyDistributionMessage!==void 0)s0.encode($.senderKeyDistributionMessage,Q.uint32(18).fork()).join();if($.imageMessage!==void 0)t.encode($.imageMessage,Q.uint32(26).fork()).join();if($.contactMessage!==void 0)A$.encode($.contactMessage,Q.uint32(34).fork()).join();if($.locationMessage!==void 0)Q0.encode($.locationMessage,Q.uint32(42).fork()).join();if($.extendedTextMessage!==void 0)Hq.encode($.extendedTextMessage,Q.uint32(50).fork()).join();if($.documentMessage!==void 0)K0.encode($.documentMessage,Q.uint32(58).fork()).join();if($.audioMessage!==void 0)O$.encode($.audioMessage,Q.uint32(66).fork()).join();if($.videoMessage!==void 0)e.encode($.videoMessage,Q.uint32(74).fork()).join();if($.call!==void 0)d8.encode($.call,Q.uint32(82).fork()).join();if($.chat!==void 0)i8.encode($.chat,Q.uint32(90).fork()).join();if($.protocolMessage!==void 0)jX.encode($.protocolMessage,Q.uint32(98).fork()).join();if($.contactsArrayMessage!==void 0)Zq.encode($.contactsArrayMessage,Q.uint32(106).fork()).join();if($.highlyStructuredMessage!==void 0)o.encode($.highlyStructuredMessage,Q.uint32(114).fork()).join();if($.fastRatchetKeySenderKeyDistributionMessage!==void 0)s0.encode($.fastRatchetKeySenderKeyDistributionMessage,Q.uint32(122).fork()).join();if($.sendPaymentMessage!==void 0)tX.encode($.sendPaymentMessage,Q.uint32(130).fork()).join();if($.liveLocationMessage!==void 0)M$.encode($.liveLocationMessage,Q.uint32(146).fork()).join();if($.requestPaymentMessage!==void 0)nX.encode($.requestPaymentMessage,Q.uint32(178).fork()).join();if($.declinePaymentRequestMessage!==void 0)Jq.encode($.declinePaymentRequestMessage,Q.uint32(186).fork()).join();if($.cancelPaymentRequestMessage!==void 0)o8.encode($.cancelPaymentRequestMessage,Q.uint32(194).fork()).join();if($.templateMessage!==void 0)v$.encode($.templateMessage,Q.uint32(202).fork()).join();if($.stickerMessage!==void 0)y$.encode($.stickerMessage,Q.uint32(210).fork()).join();if($.groupInviteMessage!==void 0)Uq.encode($.groupInviteMessage,Q.uint32(226).fork()).join();if($.templateButtonReplyMessage!==void 0)V9.encode($.templateButtonReplyMessage,Q.uint32(234).fork()).join();if($.productMessage!==void 0)T$.encode($.productMessage,Q.uint32(242).fork()).join();if($.deviceSentMessage!==void 0)Kq.encode($.deviceSentMessage,Q.uint32(250).fork()).join();if($.messageContextInfo!==void 0)_$.encode($.messageContextInfo,Q.uint32(282).fork()).join();if($.listMessage!==void 0)lq.encode($.listMessage,Q.uint32(290).fork()).join();if($.viewOnceMessage!==void 0)y.encode($.viewOnceMessage,Q.uint32(298).fork()).join();if($.orderMessage!==void 0)aq.encode($.orderMessage,Q.uint32(306).fork()).join();if($.listResponseMessage!==void 0)nq.encode($.listResponseMessage,Q.uint32(314).fork()).join();if($.ephemeralMessage!==void 0)y.encode($.ephemeralMessage,Q.uint32(322).fork()).join();if($.invoiceMessage!==void 0)fq.encode($.invoiceMessage,Q.uint32(330).fork()).join();if($.buttonsMessage!==void 0)p8.encode($.buttonsMessage,Q.uint32(338).fork()).join();if($.buttonsResponseMessage!==void 0)c8.encode($.buttonsResponseMessage,Q.uint32(346).fork()).join();if($.paymentInviteMessage!==void 0)eq.encode($.paymentInviteMessage,Q.uint32(354).fork()).join();if($.interactiveMessage!==void 0)T0.encode($.interactiveMessage,Q.uint32(362).fork()).join();if($.reactionMessage!==void 0)dX.encode($.reactionMessage,Q.uint32(370).fork()).join();if($.stickerSyncRmrMessage!==void 0)Y9.encode($.stickerSyncRmrMessage,Q.uint32(378).fork()).join();if($.interactiveResponseMessage!==void 0)Tq.encode($.interactiveResponseMessage,Q.uint32(386).fork()).join();if($.pollCreationMessage!==void 0)J0.encode($.pollCreationMessage,Q.uint32(394).fork()).join();if($.pollUpdateMessage!==void 0)pX.encode($.pollUpdateMessage,Q.uint32(402).fork()).join();if($.keepInChatMessage!==void 0)_q.encode($.keepInChatMessage,Q.uint32(410).fork()).join();if($.documentWithCaptionMessage!==void 0)y.encode($.documentWithCaptionMessage,Q.uint32(426).fork()).join();if($.requestPhoneNumberMessage!==void 0)bX.encode($.requestPhoneNumberMessage,Q.uint32(434).fork()).join();if($.viewOnceMessageV2!==void 0)y.encode($.viewOnceMessageV2,Q.uint32(442).fork()).join();if($.encReactionMessage!==void 0)Yq.encode($.encReactionMessage,Q.uint32(450).fork()).join();if($.editedMessage!==void 0)y.encode($.editedMessage,Q.uint32(466).fork()).join();if($.viewOnceMessageV2Extension!==void 0)y.encode($.viewOnceMessageV2Extension,Q.uint32(474).fork()).join();if($.pollCreationMessageV2!==void 0)J0.encode($.pollCreationMessageV2,Q.uint32(482).fork()).join();if($.scheduledCallCreationMessage!==void 0)mX.encode($.scheduledCallCreationMessage,Q.uint32(490).fork()).join();if($.groupMentionedMessage!==void 0)y.encode($.groupMentionedMessage,Q.uint32(498).fork()).join();if($.pinInChatMessage!==void 0)vX.encode($.pinInChatMessage,Q.uint32(506).fork()).join();if($.pollCreationMessageV3!==void 0)J0.encode($.pollCreationMessageV3,Q.uint32(514).fork()).join();if($.scheduledCallEditMessage!==void 0)gX.encode($.scheduledCallEditMessage,Q.uint32(522).fork()).join();if($.ptvMessage!==void 0)e.encode($.ptvMessage,Q.uint32(530).fork()).join();if($.botInvokeMessage!==void 0)y.encode($.botInvokeMessage,Q.uint32(538).fork()).join();if($.callLogMesssage!==void 0)n8.encode($.callLogMesssage,Q.uint32(554).fork()).join();if($.messageHistoryBundle!==void 0)W$.encode($.messageHistoryBundle,Q.uint32(562).fork()).join();if($.encCommentMessage!==void 0)qq.encode($.encCommentMessage,Q.uint32(570).fork()).join();if($.bcallMessage!==void 0)h8.encode($.bcallMessage,Q.uint32(578).fork()).join();if($.lottieStickerMessage!==void 0)y.encode($.lottieStickerMessage,Q.uint32(594).fork()).join();if($.eventMessage!==void 0)zq.encode($.eventMessage,Q.uint32(602).fork()).join();if($.encEventResponseMessage!==void 0)Xq.encode($.encEventResponseMessage,Q.uint32(610).fork()).join();if($.commentMessage!==void 0)$q.encode($.commentMessage,Q.uint32(618).fork()).join();if($.newsletterAdminInviteMessage!==void 0)rq.encode($.newsletterAdminInviteMessage,Q.uint32(626).fork()).join();if($.placeholderMessage!==void 0)fX.encode($.placeholderMessage,Q.uint32(642).fork()).join();if($.secretEncryptedMessage!==void 0)rX.encode($.secretEncryptedMessage,Q.uint32(658).fork()).join();if($.albumMessage!==void 0)S8.encode($.albumMessage,Q.uint32(666).fork()).join();if($.eventCoverImage!==void 0)y.encode($.eventCoverImage,Q.uint32(682).fork()).join();if($.stickerPackMessage!==void 0)q9.encode($.stickerPackMessage,Q.uint32(690).fork()).join();if($.statusMentionMessage!==void 0)y.encode($.statusMentionMessage,Q.uint32(698).fork()).join();if($.pollResultSnapshotMessage!==void 0)a0.encode($.pollResultSnapshotMessage,Q.uint32(706).fork()).join();if($.pollCreationOptionImageMessage!==void 0)y.encode($.pollCreationOptionImageMessage,Q.uint32(722).fork()).join();if($.associatedChildMessage!==void 0)y.encode($.associatedChildMessage,Q.uint32(730).fork()).join();if($.groupStatusMentionMessage!==void 0)y.encode($.groupStatusMentionMessage,Q.uint32(738).fork()).join();if($.pollCreationMessageV4!==void 0)y.encode($.pollCreationMessageV4,Q.uint32(746).fork()).join();if($.statusAddYours!==void 0)y.encode($.statusAddYours,Q.uint32(762).fork()).join();if($.groupStatusMessage!==void 0)y.encode($.groupStatusMessage,Q.uint32(770).fork()).join();if($.richResponseMessage!==void 0)vQ.encode($.richResponseMessage,Q.uint32(778).fork()).join();if($.statusNotificationMessage!==void 0)Q9.encode($.statusNotificationMessage,Q.uint32(786).fork()).join();if($.limitSharingMessage!==void 0)y.encode($.limitSharingMessage,Q.uint32(794).fork()).join();if($.botTaskMessage!==void 0)y.encode($.botTaskMessage,Q.uint32(802).fork()).join();if($.questionMessage!==void 0)y.encode($.questionMessage,Q.uint32(810).fork()).join();if($.messageHistoryNotice!==void 0)mq.encode($.messageHistoryNotice,Q.uint32(818).fork()).join();if($.groupStatusMessageV2!==void 0)y.encode($.groupStatusMessageV2,Q.uint32(826).fork()).join();if($.botForwardedMessage!==void 0)y.encode($.botForwardedMessage,Q.uint32(834).fork()).join();if($.statusQuestionAnswerMessage!==void 0)Z9.encode($.statusQuestionAnswerMessage,Q.uint32(842).fork()).join();if($.questionReplyMessage!==void 0)y.encode($.questionReplyMessage,Q.uint32(850).fork()).join();if($.questionResponseMessage!==void 0)cX.encode($.questionResponseMessage,Q.uint32(858).fork()).join();if($.statusQuotedMessage!==void 0)J9.encode($.statusQuotedMessage,Q.uint32(874).fork()).join();if($.statusStickerInteractionMessage!==void 0)K9.encode($.statusStickerInteractionMessage,Q.uint32(882).fork()).join();if($.pollCreationMessageV5!==void 0)J0.encode($.pollCreationMessageV5,Q.uint32(890).fork()).join();if($.newsletterFollowerInviteMessageV2!==void 0)tq.encode($.newsletterFollowerInviteMessageV2,Q.uint32(906).fork()).join();if($.pollResultSnapshotMessageV3!==void 0)a0.encode($.pollResultSnapshotMessageV3,Q.uint32(922).fork()).join();if($.newsletterAdminProfileMessage!==void 0)y.encode($.newsletterAdminProfileMessage,Q.uint32(930).fork()).join();if($.newsletterAdminProfileMessageV2!==void 0)y.encode($.newsletterAdminProfileMessageV2,Q.uint32(938).fork()).join();if($.spoilerMessage!==void 0)y.encode($.spoilerMessage,Q.uint32(946).fork()).join();if($.pollCreationMessageV6!==void 0)J0.encode($.pollCreationMessageV6,Q.uint32(954).fork()).join();if($.conditionalRevealMessage!==void 0)Qq.encode($.conditionalRevealMessage,Q.uint32(962).fork()).join();if($.pollAddOptionMessage!==void 0)_X.encode($.pollAddOptionMessage,Q.uint32(970).fork()).join();if($.eventInviteMessage!==void 0)Vq.encode($.eventInviteMessage,Q.uint32(978).fork()).join();if($.groupRootKeyShare!==void 0)uK.encode($.groupRootKeyShare,Q.uint32(986).fork()).join();if($.paymentReminderMessage!==void 0)JX.encode($.paymentReminderMessage,Q.uint32(994).fork()).join();if($.splitPaymentMessage!==void 0)aX.encode($.splitPaymentMessage,Q.uint32(1002).fork()).join();if($.newsletterAdminProfileStatusMessage!==void 0)y.encode($.newsletterAdminProfileStatusMessage,Q.uint32(1010).fork()).join();if($.rootSecretDistributeMessage!==void 0)iX.encode($.rootSecretDistributeMessage,Q.uint32(1018).fork()).join();if($.splitPaymentUpdateMessage!==void 0)eX.encode($.splitPaymentUpdateMessage,Q.uint32(1026).fork()).join();if($.musicMessage!==void 0)gq.encode($.musicMessage,Q.uint32(1034).fork()).join();if($.statusLinkPreviewMetadata!==void 0)$9.encode($.statusLinkPreviewMetadata,Q.uint32(1042).fork()).join();if($.botPlatformRegistrationSuccessMessage!==void 0)y.encode($.botPlatformRegistrationSuccessMessage,Q.uint32(1050).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??G4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.conversation=Z.string();continue}case 2:{if(J!==18)break;K.senderKeyDistributionMessage=s0.decode(Z,Z.uint32(),K.senderKeyDistributionMessage);continue}case 3:{if(J!==26)break;K.imageMessage=t.decode(Z,Z.uint32(),K.imageMessage);continue}case 4:{if(J!==34)break;K.contactMessage=A$.decode(Z,Z.uint32(),K.contactMessage);continue}case 5:{if(J!==42)break;K.locationMessage=Q0.decode(Z,Z.uint32(),K.locationMessage);continue}case 6:{if(J!==50)break;K.extendedTextMessage=Hq.decode(Z,Z.uint32(),K.extendedTextMessage);continue}case 7:{if(J!==58)break;K.documentMessage=K0.decode(Z,Z.uint32(),K.documentMessage);continue}case 8:{if(J!==66)break;K.audioMessage=O$.decode(Z,Z.uint32(),K.audioMessage);continue}case 9:{if(J!==74)break;K.videoMessage=e.decode(Z,Z.uint32(),K.videoMessage);continue}case 10:{if(J!==82)break;K.call=d8.decode(Z,Z.uint32(),K.call);continue}case 11:{if(J!==90)break;K.chat=i8.decode(Z,Z.uint32(),K.chat);continue}case 12:{if(J!==98)break;K.protocolMessage=jX.decode(Z,Z.uint32(),K.protocolMessage);continue}case 13:{if(J!==106)break;K.contactsArrayMessage=Zq.decode(Z,Z.uint32(),K.contactsArrayMessage);continue}case 14:{if(J!==114)break;K.highlyStructuredMessage=o.decode(Z,Z.uint32(),K.highlyStructuredMessage);continue}case 15:{if(J!==122)break;K.fastRatchetKeySenderKeyDistributionMessage=s0.decode(Z,Z.uint32(),K.fastRatchetKeySenderKeyDistributionMessage);continue}case 16:{if(J!==130)break;K.sendPaymentMessage=tX.decode(Z,Z.uint32(),K.sendPaymentMessage);continue}case 18:{if(J!==146)break;K.liveLocationMessage=M$.decode(Z,Z.uint32(),K.liveLocationMessage);continue}case 22:{if(J!==178)break;K.requestPaymentMessage=nX.decode(Z,Z.uint32(),K.requestPaymentMessage);continue}case 23:{if(J!==186)break;K.declinePaymentRequestMessage=Jq.decode(Z,Z.uint32(),K.declinePaymentRequestMessage);continue}case 24:{if(J!==194)break;K.cancelPaymentRequestMessage=o8.decode(Z,Z.uint32(),K.cancelPaymentRequestMessage);continue}case 25:{if(J!==202)break;K.templateMessage=v$.decode(Z,Z.uint32(),K.templateMessage);continue}case 26:{if(J!==210)break;K.stickerMessage=y$.decode(Z,Z.uint32(),K.stickerMessage);continue}case 28:{if(J!==226)break;K.groupInviteMessage=Uq.decode(Z,Z.uint32(),K.groupInviteMessage);continue}case 29:{if(J!==234)break;K.templateButtonReplyMessage=V9.decode(Z,Z.uint32(),K.templateButtonReplyMessage);continue}case 30:{if(J!==242)break;K.productMessage=T$.decode(Z,Z.uint32(),K.productMessage);continue}case 31:{if(J!==250)break;K.deviceSentMessage=Kq.decode(Z,Z.uint32(),K.deviceSentMessage);continue}case 35:{if(J!==282)break;K.messageContextInfo=_$.decode(Z,Z.uint32(),K.messageContextInfo);continue}case 36:{if(J!==290)break;K.listMessage=lq.decode(Z,Z.uint32(),K.listMessage);continue}case 37:{if(J!==298)break;K.viewOnceMessage=y.decode(Z,Z.uint32(),K.viewOnceMessage);continue}case 38:{if(J!==306)break;K.orderMessage=aq.decode(Z,Z.uint32(),K.orderMessage);continue}case 39:{if(J!==314)break;K.listResponseMessage=nq.decode(Z,Z.uint32(),K.listResponseMessage);continue}case 40:{if(J!==322)break;K.ephemeralMessage=y.decode(Z,Z.uint32(),K.ephemeralMessage);continue}case 41:{if(J!==330)break;K.invoiceMessage=fq.decode(Z,Z.uint32(),K.invoiceMessage);continue}case 42:{if(J!==338)break;K.buttonsMessage=p8.decode(Z,Z.uint32(),K.buttonsMessage);continue}case 43:{if(J!==346)break;K.buttonsResponseMessage=c8.decode(Z,Z.uint32(),K.buttonsResponseMessage);continue}case 44:{if(J!==354)break;K.paymentInviteMessage=eq.decode(Z,Z.uint32(),K.paymentInviteMessage);continue}case 45:{if(J!==362)break;K.interactiveMessage=T0.decode(Z,Z.uint32(),K.interactiveMessage);continue}case 46:{if(J!==370)break;K.reactionMessage=dX.decode(Z,Z.uint32(),K.reactionMessage);continue}case 47:{if(J!==378)break;K.stickerSyncRmrMessage=Y9.decode(Z,Z.uint32(),K.stickerSyncRmrMessage);continue}case 48:{if(J!==386)break;K.interactiveResponseMessage=Tq.decode(Z,Z.uint32(),K.interactiveResponseMessage);continue}case 49:{if(J!==394)break;K.pollCreationMessage=J0.decode(Z,Z.uint32(),K.pollCreationMessage);continue}case 50:{if(J!==402)break;K.pollUpdateMessage=pX.decode(Z,Z.uint32(),K.pollUpdateMessage);continue}case 51:{if(J!==410)break;K.keepInChatMessage=_q.decode(Z,Z.uint32(),K.keepInChatMessage);continue}case 53:{if(J!==426)break;K.documentWithCaptionMessage=y.decode(Z,Z.uint32(),K.documentWithCaptionMessage);continue}case 54:{if(J!==434)break;K.requestPhoneNumberMessage=bX.decode(Z,Z.uint32(),K.requestPhoneNumberMessage);continue}case 55:{if(J!==442)break;K.viewOnceMessageV2=y.decode(Z,Z.uint32(),K.viewOnceMessageV2);continue}case 56:{if(J!==450)break;K.encReactionMessage=Yq.decode(Z,Z.uint32(),K.encReactionMessage);continue}case 58:{if(J!==466)break;K.editedMessage=y.decode(Z,Z.uint32(),K.editedMessage);continue}case 59:{if(J!==474)break;K.viewOnceMessageV2Extension=y.decode(Z,Z.uint32(),K.viewOnceMessageV2Extension);continue}case 60:{if(J!==482)break;K.pollCreationMessageV2=J0.decode(Z,Z.uint32(),K.pollCreationMessageV2);continue}case 61:{if(J!==490)break;K.scheduledCallCreationMessage=mX.decode(Z,Z.uint32(),K.scheduledCallCreationMessage);continue}case 62:{if(J!==498)break;K.groupMentionedMessage=y.decode(Z,Z.uint32(),K.groupMentionedMessage);continue}case 63:{if(J!==506)break;K.pinInChatMessage=vX.decode(Z,Z.uint32(),K.pinInChatMessage);continue}case 64:{if(J!==514)break;K.pollCreationMessageV3=J0.decode(Z,Z.uint32(),K.pollCreationMessageV3);continue}case 65:{if(J!==522)break;K.scheduledCallEditMessage=gX.decode(Z,Z.uint32(),K.scheduledCallEditMessage);continue}case 66:{if(J!==530)break;K.ptvMessage=e.decode(Z,Z.uint32(),K.ptvMessage);continue}case 67:{if(J!==538)break;K.botInvokeMessage=y.decode(Z,Z.uint32(),K.botInvokeMessage);continue}case 69:{if(J!==554)break;K.callLogMesssage=n8.decode(Z,Z.uint32(),K.callLogMesssage);continue}case 70:{if(J!==562)break;K.messageHistoryBundle=W$.decode(Z,Z.uint32(),K.messageHistoryBundle);continue}case 71:{if(J!==570)break;K.encCommentMessage=qq.decode(Z,Z.uint32(),K.encCommentMessage);continue}case 72:{if(J!==578)break;K.bcallMessage=h8.decode(Z,Z.uint32(),K.bcallMessage);continue}case 74:{if(J!==594)break;K.lottieStickerMessage=y.decode(Z,Z.uint32(),K.lottieStickerMessage);continue}case 75:{if(J!==602)break;K.eventMessage=zq.decode(Z,Z.uint32(),K.eventMessage);continue}case 76:{if(J!==610)break;K.encEventResponseMessage=Xq.decode(Z,Z.uint32(),K.encEventResponseMessage);continue}case 77:{if(J!==618)break;K.commentMessage=$q.decode(Z,Z.uint32(),K.commentMessage);continue}case 78:{if(J!==626)break;K.newsletterAdminInviteMessage=rq.decode(Z,Z.uint32(),K.newsletterAdminInviteMessage);continue}case 80:{if(J!==642)break;K.placeholderMessage=fX.decode(Z,Z.uint32(),K.placeholderMessage);continue}case 82:{if(J!==658)break;K.secretEncryptedMessage=rX.decode(Z,Z.uint32(),K.secretEncryptedMessage);continue}case 83:{if(J!==666)break;K.albumMessage=S8.decode(Z,Z.uint32(),K.albumMessage);continue}case 85:{if(J!==682)break;K.eventCoverImage=y.decode(Z,Z.uint32(),K.eventCoverImage);continue}case 86:{if(J!==690)break;K.stickerPackMessage=q9.decode(Z,Z.uint32(),K.stickerPackMessage);continue}case 87:{if(J!==698)break;K.statusMentionMessage=y.decode(Z,Z.uint32(),K.statusMentionMessage);continue}case 88:{if(J!==706)break;K.pollResultSnapshotMessage=a0.decode(Z,Z.uint32(),K.pollResultSnapshotMessage);continue}case 90:{if(J!==722)break;K.pollCreationOptionImageMessage=y.decode(Z,Z.uint32(),K.pollCreationOptionImageMessage);continue}case 91:{if(J!==730)break;K.associatedChildMessage=y.decode(Z,Z.uint32(),K.associatedChildMessage);continue}case 92:{if(J!==738)break;K.groupStatusMentionMessage=y.decode(Z,Z.uint32(),K.groupStatusMentionMessage);continue}case 93:{if(J!==746)break;K.pollCreationMessageV4=y.decode(Z,Z.uint32(),K.pollCreationMessageV4);continue}case 95:{if(J!==762)break;K.statusAddYours=y.decode(Z,Z.uint32(),K.statusAddYours);continue}case 96:{if(J!==770)break;K.groupStatusMessage=y.decode(Z,Z.uint32(),K.groupStatusMessage);continue}case 97:{if(J!==778)break;K.richResponseMessage=vQ.decode(Z,Z.uint32(),K.richResponseMessage);continue}case 98:{if(J!==786)break;K.statusNotificationMessage=Q9.decode(Z,Z.uint32(),K.statusNotificationMessage);continue}case 99:{if(J!==794)break;K.limitSharingMessage=y.decode(Z,Z.uint32(),K.limitSharingMessage);continue}case 100:{if(J!==802)break;K.botTaskMessage=y.decode(Z,Z.uint32(),K.botTaskMessage);continue}case 101:{if(J!==810)break;K.questionMessage=y.decode(Z,Z.uint32(),K.questionMessage);continue}case 102:{if(J!==818)break;K.messageHistoryNotice=mq.decode(Z,Z.uint32(),K.messageHistoryNotice);continue}case 103:{if(J!==826)break;K.groupStatusMessageV2=y.decode(Z,Z.uint32(),K.groupStatusMessageV2);continue}case 104:{if(J!==834)break;K.botForwardedMessage=y.decode(Z,Z.uint32(),K.botForwardedMessage);continue}case 105:{if(J!==842)break;K.statusQuestionAnswerMessage=Z9.decode(Z,Z.uint32(),K.statusQuestionAnswerMessage);continue}case 106:{if(J!==850)break;K.questionReplyMessage=y.decode(Z,Z.uint32(),K.questionReplyMessage);continue}case 107:{if(J!==858)break;K.questionResponseMessage=cX.decode(Z,Z.uint32(),K.questionResponseMessage);continue}case 109:{if(J!==874)break;K.statusQuotedMessage=J9.decode(Z,Z.uint32(),K.statusQuotedMessage);continue}case 110:{if(J!==882)break;K.statusStickerInteractionMessage=K9.decode(Z,Z.uint32(),K.statusStickerInteractionMessage);continue}case 111:{if(J!==890)break;K.pollCreationMessageV5=J0.decode(Z,Z.uint32(),K.pollCreationMessageV5);continue}case 113:{if(J!==906)break;K.newsletterFollowerInviteMessageV2=tq.decode(Z,Z.uint32(),K.newsletterFollowerInviteMessageV2);continue}case 115:{if(J!==922)break;K.pollResultSnapshotMessageV3=a0.decode(Z,Z.uint32(),K.pollResultSnapshotMessageV3);continue}case 116:{if(J!==930)break;K.newsletterAdminProfileMessage=y.decode(Z,Z.uint32(),K.newsletterAdminProfileMessage);continue}case 117:{if(J!==938)break;K.newsletterAdminProfileMessageV2=y.decode(Z,Z.uint32(),K.newsletterAdminProfileMessageV2);continue}case 118:{if(J!==946)break;K.spoilerMessage=y.decode(Z,Z.uint32(),K.spoilerMessage);continue}case 119:{if(J!==954)break;K.pollCreationMessageV6=J0.decode(Z,Z.uint32(),K.pollCreationMessageV6);continue}case 120:{if(J!==962)break;K.conditionalRevealMessage=Qq.decode(Z,Z.uint32(),K.conditionalRevealMessage);continue}case 121:{if(J!==970)break;K.pollAddOptionMessage=_X.decode(Z,Z.uint32(),K.pollAddOptionMessage);continue}case 122:{if(J!==978)break;K.eventInviteMessage=Vq.decode(Z,Z.uint32(),K.eventInviteMessage);continue}case 123:{if(J!==986)break;K.groupRootKeyShare=uK.decode(Z,Z.uint32(),K.groupRootKeyShare);continue}case 124:{if(J!==994)break;K.paymentReminderMessage=JX.decode(Z,Z.uint32(),K.paymentReminderMessage);continue}case 125:{if(J!==1002)break;K.splitPaymentMessage=aX.decode(Z,Z.uint32(),K.splitPaymentMessage);continue}case 126:{if(J!==1010)break;K.newsletterAdminProfileStatusMessage=y.decode(Z,Z.uint32(),K.newsletterAdminProfileStatusMessage);continue}case 127:{if(J!==1018)break;K.rootSecretDistributeMessage=iX.decode(Z,Z.uint32(),K.rootSecretDistributeMessage);continue}case 128:{if(J!==1026)break;K.splitPaymentUpdateMessage=eX.decode(Z,Z.uint32(),K.splitPaymentUpdateMessage);continue}case 129:{if(J!==1034)break;K.musicMessage=gq.decode(Z,Z.uint32(),K.musicMessage);continue}case 130:{if(J!==1042)break;K.statusLinkPreviewMetadata=$9.decode(Z,Z.uint32(),K.statusLinkPreviewMetadata);continue}case 131:{if(J!==1050)break;K.botPlatformRegistrationSuccessMessage=y.decode(Z,Z.uint32(),K.botPlatformRegistrationSuccessMessage);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return c.fromPartial($??{})},fromPartial($){let Q=G4();return Q.conversation=$.conversation??void 0,Q.senderKeyDistributionMessage=$.senderKeyDistributionMessage!==void 0&&$.senderKeyDistributionMessage!==null?s0.fromPartial($.senderKeyDistributionMessage):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?t.fromPartial($.imageMessage):void 0,Q.contactMessage=$.contactMessage!==void 0&&$.contactMessage!==null?A$.fromPartial($.contactMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?Q0.fromPartial($.locationMessage):void 0,Q.extendedTextMessage=$.extendedTextMessage!==void 0&&$.extendedTextMessage!==null?Hq.fromPartial($.extendedTextMessage):void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?K0.fromPartial($.documentMessage):void 0,Q.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?O$.fromPartial($.audioMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?e.fromPartial($.videoMessage):void 0,Q.call=$.call!==void 0&&$.call!==null?d8.fromPartial($.call):void 0,Q.chat=$.chat!==void 0&&$.chat!==null?i8.fromPartial($.chat):void 0,Q.protocolMessage=$.protocolMessage!==void 0&&$.protocolMessage!==null?jX.fromPartial($.protocolMessage):void 0,Q.contactsArrayMessage=$.contactsArrayMessage!==void 0&&$.contactsArrayMessage!==null?Zq.fromPartial($.contactsArrayMessage):void 0,Q.highlyStructuredMessage=$.highlyStructuredMessage!==void 0&&$.highlyStructuredMessage!==null?o.fromPartial($.highlyStructuredMessage):void 0,Q.fastRatchetKeySenderKeyDistributionMessage=$.fastRatchetKeySenderKeyDistributionMessage!==void 0&&$.fastRatchetKeySenderKeyDistributionMessage!==null?s0.fromPartial($.fastRatchetKeySenderKeyDistributionMessage):void 0,Q.sendPaymentMessage=$.sendPaymentMessage!==void 0&&$.sendPaymentMessage!==null?tX.fromPartial($.sendPaymentMessage):void 0,Q.liveLocationMessage=$.liveLocationMessage!==void 0&&$.liveLocationMessage!==null?M$.fromPartial($.liveLocationMessage):void 0,Q.requestPaymentMessage=$.requestPaymentMessage!==void 0&&$.requestPaymentMessage!==null?nX.fromPartial($.requestPaymentMessage):void 0,Q.declinePaymentRequestMessage=$.declinePaymentRequestMessage!==void 0&&$.declinePaymentRequestMessage!==null?Jq.fromPartial($.declinePaymentRequestMessage):void 0,Q.cancelPaymentRequestMessage=$.cancelPaymentRequestMessage!==void 0&&$.cancelPaymentRequestMessage!==null?o8.fromPartial($.cancelPaymentRequestMessage):void 0,Q.templateMessage=$.templateMessage!==void 0&&$.templateMessage!==null?v$.fromPartial($.templateMessage):void 0,Q.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?y$.fromPartial($.stickerMessage):void 0,Q.groupInviteMessage=$.groupInviteMessage!==void 0&&$.groupInviteMessage!==null?Uq.fromPartial($.groupInviteMessage):void 0,Q.templateButtonReplyMessage=$.templateButtonReplyMessage!==void 0&&$.templateButtonReplyMessage!==null?V9.fromPartial($.templateButtonReplyMessage):void 0,Q.productMessage=$.productMessage!==void 0&&$.productMessage!==null?T$.fromPartial($.productMessage):void 0,Q.deviceSentMessage=$.deviceSentMessage!==void 0&&$.deviceSentMessage!==null?Kq.fromPartial($.deviceSentMessage):void 0,Q.messageContextInfo=$.messageContextInfo!==void 0&&$.messageContextInfo!==null?_$.fromPartial($.messageContextInfo):void 0,Q.listMessage=$.listMessage!==void 0&&$.listMessage!==null?lq.fromPartial($.listMessage):void 0,Q.viewOnceMessage=$.viewOnceMessage!==void 0&&$.viewOnceMessage!==null?y.fromPartial($.viewOnceMessage):void 0,Q.orderMessage=$.orderMessage!==void 0&&$.orderMessage!==null?aq.fromPartial($.orderMessage):void 0,Q.listResponseMessage=$.listResponseMessage!==void 0&&$.listResponseMessage!==null?nq.fromPartial($.listResponseMessage):void 0,Q.ephemeralMessage=$.ephemeralMessage!==void 0&&$.ephemeralMessage!==null?y.fromPartial($.ephemeralMessage):void 0,Q.invoiceMessage=$.invoiceMessage!==void 0&&$.invoiceMessage!==null?fq.fromPartial($.invoiceMessage):void 0,Q.buttonsMessage=$.buttonsMessage!==void 0&&$.buttonsMessage!==null?p8.fromPartial($.buttonsMessage):void 0,Q.buttonsResponseMessage=$.buttonsResponseMessage!==void 0&&$.buttonsResponseMessage!==null?c8.fromPartial($.buttonsResponseMessage):void 0,Q.paymentInviteMessage=$.paymentInviteMessage!==void 0&&$.paymentInviteMessage!==null?eq.fromPartial($.paymentInviteMessage):void 0,Q.interactiveMessage=$.interactiveMessage!==void 0&&$.interactiveMessage!==null?T0.fromPartial($.interactiveMessage):void 0,Q.reactionMessage=$.reactionMessage!==void 0&&$.reactionMessage!==null?dX.fromPartial($.reactionMessage):void 0,Q.stickerSyncRmrMessage=$.stickerSyncRmrMessage!==void 0&&$.stickerSyncRmrMessage!==null?Y9.fromPartial($.stickerSyncRmrMessage):void 0,Q.interactiveResponseMessage=$.interactiveResponseMessage!==void 0&&$.interactiveResponseMessage!==null?Tq.fromPartial($.interactiveResponseMessage):void 0,Q.pollCreationMessage=$.pollCreationMessage!==void 0&&$.pollCreationMessage!==null?J0.fromPartial($.pollCreationMessage):void 0,Q.pollUpdateMessage=$.pollUpdateMessage!==void 0&&$.pollUpdateMessage!==null?pX.fromPartial($.pollUpdateMessage):void 0,Q.keepInChatMessage=$.keepInChatMessage!==void 0&&$.keepInChatMessage!==null?_q.fromPartial($.keepInChatMessage):void 0,Q.documentWithCaptionMessage=$.documentWithCaptionMessage!==void 0&&$.documentWithCaptionMessage!==null?y.fromPartial($.documentWithCaptionMessage):void 0,Q.requestPhoneNumberMessage=$.requestPhoneNumberMessage!==void 0&&$.requestPhoneNumberMessage!==null?bX.fromPartial($.requestPhoneNumberMessage):void 0,Q.viewOnceMessageV2=$.viewOnceMessageV2!==void 0&&$.viewOnceMessageV2!==null?y.fromPartial($.viewOnceMessageV2):void 0,Q.encReactionMessage=$.encReactionMessage!==void 0&&$.encReactionMessage!==null?Yq.fromPartial($.encReactionMessage):void 0,Q.editedMessage=$.editedMessage!==void 0&&$.editedMessage!==null?y.fromPartial($.editedMessage):void 0,Q.viewOnceMessageV2Extension=$.viewOnceMessageV2Extension!==void 0&&$.viewOnceMessageV2Extension!==null?y.fromPartial($.viewOnceMessageV2Extension):void 0,Q.pollCreationMessageV2=$.pollCreationMessageV2!==void 0&&$.pollCreationMessageV2!==null?J0.fromPartial($.pollCreationMessageV2):void 0,Q.scheduledCallCreationMessage=$.scheduledCallCreationMessage!==void 0&&$.scheduledCallCreationMessage!==null?mX.fromPartial($.scheduledCallCreationMessage):void 0,Q.groupMentionedMessage=$.groupMentionedMessage!==void 0&&$.groupMentionedMessage!==null?y.fromPartial($.groupMentionedMessage):void 0,Q.pinInChatMessage=$.pinInChatMessage!==void 0&&$.pinInChatMessage!==null?vX.fromPartial($.pinInChatMessage):void 0,Q.pollCreationMessageV3=$.pollCreationMessageV3!==void 0&&$.pollCreationMessageV3!==null?J0.fromPartial($.pollCreationMessageV3):void 0,Q.scheduledCallEditMessage=$.scheduledCallEditMessage!==void 0&&$.scheduledCallEditMessage!==null?gX.fromPartial($.scheduledCallEditMessage):void 0,Q.ptvMessage=$.ptvMessage!==void 0&&$.ptvMessage!==null?e.fromPartial($.ptvMessage):void 0,Q.botInvokeMessage=$.botInvokeMessage!==void 0&&$.botInvokeMessage!==null?y.fromPartial($.botInvokeMessage):void 0,Q.callLogMesssage=$.callLogMesssage!==void 0&&$.callLogMesssage!==null?n8.fromPartial($.callLogMesssage):void 0,Q.messageHistoryBundle=$.messageHistoryBundle!==void 0&&$.messageHistoryBundle!==null?W$.fromPartial($.messageHistoryBundle):void 0,Q.encCommentMessage=$.encCommentMessage!==void 0&&$.encCommentMessage!==null?qq.fromPartial($.encCommentMessage):void 0,Q.bcallMessage=$.bcallMessage!==void 0&&$.bcallMessage!==null?h8.fromPartial($.bcallMessage):void 0,Q.lottieStickerMessage=$.lottieStickerMessage!==void 0&&$.lottieStickerMessage!==null?y.fromPartial($.lottieStickerMessage):void 0,Q.eventMessage=$.eventMessage!==void 0&&$.eventMessage!==null?zq.fromPartial($.eventMessage):void 0,Q.encEventResponseMessage=$.encEventResponseMessage!==void 0&&$.encEventResponseMessage!==null?Xq.fromPartial($.encEventResponseMessage):void 0,Q.commentMessage=$.commentMessage!==void 0&&$.commentMessage!==null?$q.fromPartial($.commentMessage):void 0,Q.newsletterAdminInviteMessage=$.newsletterAdminInviteMessage!==void 0&&$.newsletterAdminInviteMessage!==null?rq.fromPartial($.newsletterAdminInviteMessage):void 0,Q.placeholderMessage=$.placeholderMessage!==void 0&&$.placeholderMessage!==null?fX.fromPartial($.placeholderMessage):void 0,Q.secretEncryptedMessage=$.secretEncryptedMessage!==void 0&&$.secretEncryptedMessage!==null?rX.fromPartial($.secretEncryptedMessage):void 0,Q.albumMessage=$.albumMessage!==void 0&&$.albumMessage!==null?S8.fromPartial($.albumMessage):void 0,Q.eventCoverImage=$.eventCoverImage!==void 0&&$.eventCoverImage!==null?y.fromPartial($.eventCoverImage):void 0,Q.stickerPackMessage=$.stickerPackMessage!==void 0&&$.stickerPackMessage!==null?q9.fromPartial($.stickerPackMessage):void 0,Q.statusMentionMessage=$.statusMentionMessage!==void 0&&$.statusMentionMessage!==null?y.fromPartial($.statusMentionMessage):void 0,Q.pollResultSnapshotMessage=$.pollResultSnapshotMessage!==void 0&&$.pollResultSnapshotMessage!==null?a0.fromPartial($.pollResultSnapshotMessage):void 0,Q.pollCreationOptionImageMessage=$.pollCreationOptionImageMessage!==void 0&&$.pollCreationOptionImageMessage!==null?y.fromPartial($.pollCreationOptionImageMessage):void 0,Q.associatedChildMessage=$.associatedChildMessage!==void 0&&$.associatedChildMessage!==null?y.fromPartial($.associatedChildMessage):void 0,Q.groupStatusMentionMessage=$.groupStatusMentionMessage!==void 0&&$.groupStatusMentionMessage!==null?y.fromPartial($.groupStatusMentionMessage):void 0,Q.pollCreationMessageV4=$.pollCreationMessageV4!==void 0&&$.pollCreationMessageV4!==null?y.fromPartial($.pollCreationMessageV4):void 0,Q.statusAddYours=$.statusAddYours!==void 0&&$.statusAddYours!==null?y.fromPartial($.statusAddYours):void 0,Q.groupStatusMessage=$.groupStatusMessage!==void 0&&$.groupStatusMessage!==null?y.fromPartial($.groupStatusMessage):void 0,Q.richResponseMessage=$.richResponseMessage!==void 0&&$.richResponseMessage!==null?vQ.fromPartial($.richResponseMessage):void 0,Q.statusNotificationMessage=$.statusNotificationMessage!==void 0&&$.statusNotificationMessage!==null?Q9.fromPartial($.statusNotificationMessage):void 0,Q.limitSharingMessage=$.limitSharingMessage!==void 0&&$.limitSharingMessage!==null?y.fromPartial($.limitSharingMessage):void 0,Q.botTaskMessage=$.botTaskMessage!==void 0&&$.botTaskMessage!==null?y.fromPartial($.botTaskMessage):void 0,Q.questionMessage=$.questionMessage!==void 0&&$.questionMessage!==null?y.fromPartial($.questionMessage):void 0,Q.messageHistoryNotice=$.messageHistoryNotice!==void 0&&$.messageHistoryNotice!==null?mq.fromPartial($.messageHistoryNotice):void 0,Q.groupStatusMessageV2=$.groupStatusMessageV2!==void 0&&$.groupStatusMessageV2!==null?y.fromPartial($.groupStatusMessageV2):void 0,Q.botForwardedMessage=$.botForwardedMessage!==void 0&&$.botForwardedMessage!==null?y.fromPartial($.botForwardedMessage):void 0,Q.statusQuestionAnswerMessage=$.statusQuestionAnswerMessage!==void 0&&$.statusQuestionAnswerMessage!==null?Z9.fromPartial($.statusQuestionAnswerMessage):void 0,Q.questionReplyMessage=$.questionReplyMessage!==void 0&&$.questionReplyMessage!==null?y.fromPartial($.questionReplyMessage):void 0,Q.questionResponseMessage=$.questionResponseMessage!==void 0&&$.questionResponseMessage!==null?cX.fromPartial($.questionResponseMessage):void 0,Q.statusQuotedMessage=$.statusQuotedMessage!==void 0&&$.statusQuotedMessage!==null?J9.fromPartial($.statusQuotedMessage):void 0,Q.statusStickerInteractionMessage=$.statusStickerInteractionMessage!==void 0&&$.statusStickerInteractionMessage!==null?K9.fromPartial($.statusStickerInteractionMessage):void 0,Q.pollCreationMessageV5=$.pollCreationMessageV5!==void 0&&$.pollCreationMessageV5!==null?J0.fromPartial($.pollCreationMessageV5):void 0,Q.newsletterFollowerInviteMessageV2=$.newsletterFollowerInviteMessageV2!==void 0&&$.newsletterFollowerInviteMessageV2!==null?tq.fromPartial($.newsletterFollowerInviteMessageV2):void 0,Q.pollResultSnapshotMessageV3=$.pollResultSnapshotMessageV3!==void 0&&$.pollResultSnapshotMessageV3!==null?a0.fromPartial($.pollResultSnapshotMessageV3):void 0,Q.newsletterAdminProfileMessage=$.newsletterAdminProfileMessage!==void 0&&$.newsletterAdminProfileMessage!==null?y.fromPartial($.newsletterAdminProfileMessage):void 0,Q.newsletterAdminProfileMessageV2=$.newsletterAdminProfileMessageV2!==void 0&&$.newsletterAdminProfileMessageV2!==null?y.fromPartial($.newsletterAdminProfileMessageV2):void 0,Q.spoilerMessage=$.spoilerMessage!==void 0&&$.spoilerMessage!==null?y.fromPartial($.spoilerMessage):void 0,Q.pollCreationMessageV6=$.pollCreationMessageV6!==void 0&&$.pollCreationMessageV6!==null?J0.fromPartial($.pollCreationMessageV6):void 0,Q.conditionalRevealMessage=$.conditionalRevealMessage!==void 0&&$.conditionalRevealMessage!==null?Qq.fromPartial($.conditionalRevealMessage):void 0,Q.pollAddOptionMessage=$.pollAddOptionMessage!==void 0&&$.pollAddOptionMessage!==null?_X.fromPartial($.pollAddOptionMessage):void 0,Q.eventInviteMessage=$.eventInviteMessage!==void 0&&$.eventInviteMessage!==null?Vq.fromPartial($.eventInviteMessage):void 0,Q.groupRootKeyShare=$.groupRootKeyShare!==void 0&&$.groupRootKeyShare!==null?uK.fromPartial($.groupRootKeyShare):void 0,Q.paymentReminderMessage=$.paymentReminderMessage!==void 0&&$.paymentReminderMessage!==null?JX.fromPartial($.paymentReminderMessage):void 0,Q.splitPaymentMessage=$.splitPaymentMessage!==void 0&&$.splitPaymentMessage!==null?aX.fromPartial($.splitPaymentMessage):void 0,Q.newsletterAdminProfileStatusMessage=$.newsletterAdminProfileStatusMessage!==void 0&&$.newsletterAdminProfileStatusMessage!==null?y.fromPartial($.newsletterAdminProfileStatusMessage):void 0,Q.rootSecretDistributeMessage=$.rootSecretDistributeMessage!==void 0&&$.rootSecretDistributeMessage!==null?iX.fromPartial($.rootSecretDistributeMessage):void 0,Q.splitPaymentUpdateMessage=$.splitPaymentUpdateMessage!==void 0&&$.splitPaymentUpdateMessage!==null?eX.fromPartial($.splitPaymentUpdateMessage):void 0,Q.musicMessage=$.musicMessage!==void 0&&$.musicMessage!==null?gq.fromPartial($.musicMessage):void 0,Q.statusLinkPreviewMetadata=$.statusLinkPreviewMetadata!==void 0&&$.statusLinkPreviewMetadata!==null?$9.fromPartial($.statusLinkPreviewMetadata):void 0,Q.botPlatformRegistrationSuccessMessage=$.botPlatformRegistrationSuccessMessage!==void 0&&$.botPlatformRegistrationSuccessMessage!==null?y.fromPartial($.botPlatformRegistrationSuccessMessage):void 0,Q}};function U4(){return{}}var S8={encode($,Q=new z){if($.expectedImageCount!==void 0)Q.uint32(16).uint32($.expectedImageCount);if($.expectedVideoCount!==void 0)Q.uint32(24).uint32($.expectedVideoCount);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??U4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 2:{if(J!==16)break;K.expectedImageCount=Z.uint32();continue}case 3:{if(J!==24)break;K.expectedVideoCount=Z.uint32();continue}case 17:{if(J!==138)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return S8.fromPartial($??{})},fromPartial($){let Q=U4();return Q.expectedImageCount=$.expectedImageCount??void 0,Q.expectedVideoCount=$.expectedVideoCount??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function C4(){return{}}var I8={encode($,Q=new z){if($.collectionNames!==void 0&&$.collectionNames.length!==0)for(let q of $.collectionNames)Q.uint32(10).string(q);if($.timestamp!==void 0)Q.uint32(16).int64($.timestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??C4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.collectionNames===void 0)K.collectionNames=[];let V=Z.string();if(V!==void 0)K.collectionNames.push(V);continue}case 2:{if(J!==16)break;K.timestamp=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return I8.fromPartial($??{})},fromPartial($){let Q=C4();return Q.collectionNames=$.collectionNames?.map((q)=>q)||void 0,Q.timestamp=$.timestamp??void 0,Q}};function D4(){return{}}var T8={encode($,Q=new z){if($.keyId!==void 0)R$.encode($.keyId,Q.uint32(10).fork()).join();if($.keyData!==void 0)y8.encode($.keyData,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??D4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.keyId=R$.decode(Z,Z.uint32(),K.keyId);continue}case 2:{if(J!==18)break;K.keyData=y8.decode(Z,Z.uint32(),K.keyData);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return T8.fromPartial($??{})},fromPartial($){let Q=D4();return Q.keyId=$.keyId!==void 0&&$.keyId!==null?R$.fromPartial($.keyId):void 0,Q.keyData=$.keyData!==void 0&&$.keyData!==null?y8.fromPartial($.keyData):void 0,Q}};function F4(){return{}}var y8={encode($,Q=new z){if($.keyData!==void 0)Q.uint32(10).bytes($.keyData);if($.fingerprint!==void 0)v8.encode($.fingerprint,Q.uint32(18).fork()).join();if($.timestamp!==void 0)Q.uint32(24).int64($.timestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??F4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.keyData=Z.bytes();continue}case 2:{if(J!==18)break;K.fingerprint=v8.decode(Z,Z.uint32(),K.fingerprint);continue}case 3:{if(J!==24)break;K.timestamp=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return y8.fromPartial($??{})},fromPartial($){let Q=F4();return Q.keyData=$.keyData??void 0,Q.fingerprint=$.fingerprint!==void 0&&$.fingerprint!==null?v8.fromPartial($.fingerprint):void 0,Q.timestamp=$.timestamp??void 0,Q}};function P4(){return{}}var v8={encode($,Q=new z){if($.rawId!==void 0)Q.uint32(8).uint32($.rawId);if($.currentIndex!==void 0)Q.uint32(16).uint32($.currentIndex);if($.deviceIndexes!==void 0&&$.deviceIndexes.length!==0){Q.uint32(26).fork();for(let q of $.deviceIndexes)Q.uint32(q);Q.join()}return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??P4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.rawId=Z.uint32();continue}case 2:{if(J!==16)break;K.currentIndex=Z.uint32();continue}case 3:{if(J===24){if(K.deviceIndexes===void 0)K.deviceIndexes=[];K.deviceIndexes.push(Z.uint32());continue}if(J===26){if(K.deviceIndexes===void 0)K.deviceIndexes=[];let V=Z.uint32()+Z.pos;while(Z.pos<V)K.deviceIndexes.push(Z.uint32());continue}break}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return v8.fromPartial($??{})},fromPartial($){let Q=P4();return Q.rawId=$.rawId??void 0,Q.currentIndex=$.currentIndex??void 0,Q.deviceIndexes=$.deviceIndexes?.map((q)=>q)||void 0,Q}};function L4(){return{}}var R$={encode($,Q=new z){if($.keyId!==void 0)Q.uint32(10).bytes($.keyId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??L4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.keyId=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return R$.fromPartial($??{})},fromPartial($){let Q=L4();return Q.keyId=$.keyId??void 0,Q}};function x4(){return{}}var f8={encode($,Q=new z){if($.keyIds!==void 0&&$.keyIds.length!==0)for(let q of $.keyIds)R$.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??x4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.keyIds===void 0)K.keyIds=[];let V=R$.decode(Z,Z.uint32());if(V!==void 0)K.keyIds.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return f8.fromPartial($??{})},fromPartial($){let Q=x4();return Q.keyIds=$.keyIds?.map((q)=>R$.fromPartial(q))||void 0,Q}};function k4(){return{}}var _8={encode($,Q=new z){if($.keys!==void 0&&$.keys.length!==0)for(let q of $.keys)T8.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??k4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.keys===void 0)K.keys=[];let V=T8.decode(Z,Z.uint32());if(V!==void 0)K.keys.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return _8.fromPartial($??{})},fromPartial($){let Q=k4();return Q.keys=$.keys?.map((q)=>T8.fromPartial(q))||void 0,Q}};function N4(){return{}}var O$={encode($,Q=new z){if($.url!==void 0)Q.uint32(10).string($.url);if($.mimetype!==void 0)Q.uint32(18).string($.mimetype);if($.fileSha256!==void 0)Q.uint32(26).bytes($.fileSha256);if($.fileLength!==void 0)Q.uint32(32).uint64($.fileLength);if($.seconds!==void 0)Q.uint32(40).uint32($.seconds);if($.ptt!==void 0)Q.uint32(48).bool($.ptt);if($.mediaKey!==void 0)Q.uint32(58).bytes($.mediaKey);if($.fileEncSha256!==void 0)Q.uint32(66).bytes($.fileEncSha256);if($.directPath!==void 0)Q.uint32(74).string($.directPath);if($.mediaKeyTimestamp!==void 0)Q.uint32(80).int64($.mediaKeyTimestamp);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();if($.streamingSidecar!==void 0)Q.uint32(146).bytes($.streamingSidecar);if($.waveform!==void 0)Q.uint32(154).bytes($.waveform);if($.backgroundArgb!==void 0)Q.uint32(165).fixed32($.backgroundArgb);if($.viewOnce!==void 0)Q.uint32(168).bool($.viewOnce);if($.accessibilityLabel!==void 0)Q.uint32(178).string($.accessibilityLabel);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??N4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.url=Z.string();continue}case 2:{if(J!==18)break;K.mimetype=Z.string();continue}case 3:{if(J!==26)break;K.fileSha256=Z.bytes();continue}case 4:{if(J!==32)break;K.fileLength=Z.uint64Value();continue}case 5:{if(J!==40)break;K.seconds=Z.uint32();continue}case 6:{if(J!==48)break;K.ptt=Z.bool();continue}case 7:{if(J!==58)break;K.mediaKey=Z.bytes();continue}case 8:{if(J!==66)break;K.fileEncSha256=Z.bytes();continue}case 9:{if(J!==74)break;K.directPath=Z.string();continue}case 10:{if(J!==80)break;K.mediaKeyTimestamp=Z.int64Value();continue}case 17:{if(J!==138)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 18:{if(J!==146)break;K.streamingSidecar=Z.bytes();continue}case 19:{if(J!==154)break;K.waveform=Z.bytes();continue}case 20:{if(J!==165)break;K.backgroundArgb=Z.fixed32();continue}case 21:{if(J!==168)break;K.viewOnce=Z.bool();continue}case 22:{if(J!==178)break;K.accessibilityLabel=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return O$.fromPartial($??{})},fromPartial($){let Q=N4();return Q.url=$.url??void 0,Q.mimetype=$.mimetype??void 0,Q.fileSha256=$.fileSha256??void 0,Q.fileLength=$.fileLength??void 0,Q.seconds=$.seconds??void 0,Q.ptt=$.ptt??void 0,Q.mediaKey=$.mediaKey??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.directPath=$.directPath??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.streamingSidecar=$.streamingSidecar??void 0,Q.waveform=$.waveform??void 0,Q.backgroundArgb=$.backgroundArgb??void 0,Q.viewOnce=$.viewOnce??void 0,Q.accessibilityLabel=$.accessibilityLabel??void 0,Q}};function B4(){return{}}var h8={encode($,Q=new z){if($.sessionId!==void 0)Q.uint32(10).string($.sessionId);if($.mediaType!==void 0)Q.uint32(16).int32($.mediaType);if($.masterKey!==void 0)Q.uint32(26).bytes($.masterKey);if($.caption!==void 0)Q.uint32(34).string($.caption);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??B4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.sessionId=Z.string();continue}case 2:{if(J!==16)break;K.mediaType=Z.int32();continue}case 3:{if(J!==26)break;K.masterKey=Z.bytes();continue}case 4:{if(J!==34)break;K.caption=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return h8.fromPartial($??{})},fromPartial($){let Q=B4();return Q.sessionId=$.sessionId??void 0,Q.mediaType=$.mediaType??void 0,Q.masterKey=$.masterKey??void 0,Q.caption=$.caption??void 0,Q}};function R4(){return{}}var l8={encode($,Q=new z){if($.botJid!==void 0)Q.uint32(10).string($.botJid);if($.historyShareCutoffTimestamp!==void 0)Q.uint32(16).int64($.historyShareCutoffTimestamp);if($.historyShareMessages!==void 0&&$.historyShareMessages.length!==0)for(let q of $.historyShareMessages)xq.encode(q,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??R4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.botJid=Z.string();continue}case 2:{if(J!==16)break;K.historyShareCutoffTimestamp=Z.int64Value();continue}case 3:{if(J!==26)break;if(K.historyShareMessages===void 0)K.historyShareMessages=[];let V=xq.decode(Z,Z.uint32());if(V!==void 0)K.historyShareMessages.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return l8.fromPartial($??{})},fromPartial($){let Q=R4();return Q.botJid=$.botJid??void 0,Q.historyShareCutoffTimestamp=$.historyShareCutoffTimestamp??void 0,Q.historyShareMessages=$.historyShareMessages?.map((q)=>xq.fromPartial(q))||void 0,Q}};function O4(){return{}}var p8={encode($,Q=new z){if($.contentText!==void 0)Q.uint32(50).string($.contentText);if($.footerText!==void 0)Q.uint32(58).string($.footerText);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(66).fork()).join();if($.buttons!==void 0&&$.buttons.length!==0)for(let q of $.buttons)u8.encode(q,Q.uint32(74).fork()).join();if($.headerType!==void 0)Q.uint32(80).int32($.headerType);if($.text!==void 0)Q.uint32(10).string($.text);if($.documentMessage!==void 0)K0.encode($.documentMessage,Q.uint32(18).fork()).join();if($.imageMessage!==void 0)t.encode($.imageMessage,Q.uint32(26).fork()).join();if($.videoMessage!==void 0)e.encode($.videoMessage,Q.uint32(34).fork()).join();if($.locationMessage!==void 0)Q0.encode($.locationMessage,Q.uint32(42).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??O4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 6:{if(J!==50)break;K.contentText=Z.string();continue}case 7:{if(J!==58)break;K.footerText=Z.string();continue}case 8:{if(J!==66)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 9:{if(J!==74)break;if(K.buttons===void 0)K.buttons=[];let V=u8.decode(Z,Z.uint32());if(V!==void 0)K.buttons.push(V);continue}case 10:{if(J!==80)break;K.headerType=Z.int32();continue}case 1:{if(J!==10)break;K.text=Z.string();continue}case 2:{if(J!==18)break;K.documentMessage=K0.decode(Z,Z.uint32(),K.documentMessage);continue}case 3:{if(J!==26)break;K.imageMessage=t.decode(Z,Z.uint32(),K.imageMessage);continue}case 4:{if(J!==34)break;K.videoMessage=e.decode(Z,Z.uint32(),K.videoMessage);continue}case 5:{if(J!==42)break;K.locationMessage=Q0.decode(Z,Z.uint32(),K.locationMessage);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return p8.fromPartial($??{})},fromPartial($){let Q=O4();return Q.contentText=$.contentText??void 0,Q.footerText=$.footerText??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.buttons=$.buttons?.map((q)=>u8.fromPartial(q))||void 0,Q.headerType=$.headerType??void 0,Q.text=$.text??void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?K0.fromPartial($.documentMessage):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?t.fromPartial($.imageMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?e.fromPartial($.videoMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?Q0.fromPartial($.locationMessage):void 0,Q}};function A4(){return{}}var u8={encode($,Q=new z){if($.buttonId!==void 0)Q.uint32(10).string($.buttonId);if($.buttonText!==void 0)w8.encode($.buttonText,Q.uint32(18).fork()).join();if($.type!==void 0)Q.uint32(24).int32($.type);if($.nativeFlowInfo!==void 0)j8.encode($.nativeFlowInfo,Q.uint32(34).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??A4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.buttonId=Z.string();continue}case 2:{if(J!==18)break;K.buttonText=w8.decode(Z,Z.uint32(),K.buttonText);continue}case 3:{if(J!==24)break;K.type=Z.int32();continue}case 4:{if(J!==34)break;K.nativeFlowInfo=j8.decode(Z,Z.uint32(),K.nativeFlowInfo);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return u8.fromPartial($??{})},fromPartial($){let Q=A4();return Q.buttonId=$.buttonId??void 0,Q.buttonText=$.buttonText!==void 0&&$.buttonText!==null?w8.fromPartial($.buttonText):void 0,Q.type=$.type??void 0,Q.nativeFlowInfo=$.nativeFlowInfo!==void 0&&$.nativeFlowInfo!==null?j8.fromPartial($.nativeFlowInfo):void 0,Q}};function E4(){return{}}var w8={encode($,Q=new z){if($.displayText!==void 0)Q.uint32(10).string($.displayText);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??E4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayText=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return w8.fromPartial($??{})},fromPartial($){let Q=E4();return Q.displayText=$.displayText??void 0,Q}};function M4(){return{}}var j8={encode($,Q=new z){if($.name!==void 0)Q.uint32(10).string($.name);if($.paramsJson!==void 0)Q.uint32(18).string($.paramsJson);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??M4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.name=Z.string();continue}case 2:{if(J!==18)break;K.paramsJson=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return j8.fromPartial($??{})},fromPartial($){let Q=M4();return Q.name=$.name??void 0,Q.paramsJson=$.paramsJson??void 0,Q}};function W4(){return{}}var c8={encode($,Q=new z){if($.selectedButtonId!==void 0)Q.uint32(10).string($.selectedButtonId);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(26).fork()).join();if($.type!==void 0)Q.uint32(32).int32($.type);if($.selectedDisplayText!==void 0)Q.uint32(18).string($.selectedDisplayText);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??W4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.selectedButtonId=Z.string();continue}case 3:{if(J!==26)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 4:{if(J!==32)break;K.type=Z.int32();continue}case 2:{if(J!==18)break;K.selectedDisplayText=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return c8.fromPartial($??{})},fromPartial($){let Q=W4();return Q.selectedButtonId=$.selectedButtonId??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.type=$.type??void 0,Q.selectedDisplayText=$.selectedDisplayText??void 0,Q}};function S4(){return{}}var d8={encode($,Q=new z){if($.callKey!==void 0)Q.uint32(10).bytes($.callKey);if($.conversionSource!==void 0)Q.uint32(18).string($.conversionSource);if($.conversionData!==void 0)Q.uint32(26).bytes($.conversionData);if($.conversionDelaySeconds!==void 0)Q.uint32(32).uint32($.conversionDelaySeconds);if($.ctwaSignals!==void 0)Q.uint32(42).string($.ctwaSignals);if($.ctwaPayload!==void 0)Q.uint32(50).bytes($.ctwaPayload);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(58).fork()).join();if($.nativeFlowCallButtonPayload!==void 0)Q.uint32(66).string($.nativeFlowCallButtonPayload);if($.deeplinkPayload!==void 0)Q.uint32(74).string($.deeplinkPayload);if($.messageContextInfo!==void 0)_$.encode($.messageContextInfo,Q.uint32(82).fork()).join();if($.callEntryPoint!==void 0)Q.uint32(88).uint32($.callEntryPoint);if($.callReason!==void 0)Q.uint32(98).string($.callReason);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??S4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.callKey=Z.bytes();continue}case 2:{if(J!==18)break;K.conversionSource=Z.string();continue}case 3:{if(J!==26)break;K.conversionData=Z.bytes();continue}case 4:{if(J!==32)break;K.conversionDelaySeconds=Z.uint32();continue}case 5:{if(J!==42)break;K.ctwaSignals=Z.string();continue}case 6:{if(J!==50)break;K.ctwaPayload=Z.bytes();continue}case 7:{if(J!==58)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 8:{if(J!==66)break;K.nativeFlowCallButtonPayload=Z.string();continue}case 9:{if(J!==74)break;K.deeplinkPayload=Z.string();continue}case 10:{if(J!==82)break;K.messageContextInfo=_$.decode(Z,Z.uint32(),K.messageContextInfo);continue}case 11:{if(J!==88)break;K.callEntryPoint=Z.uint32();continue}case 12:{if(J!==98)break;K.callReason=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return d8.fromPartial($??{})},fromPartial($){let Q=S4();return Q.callKey=$.callKey??void 0,Q.conversionSource=$.conversionSource??void 0,Q.conversionData=$.conversionData??void 0,Q.conversionDelaySeconds=$.conversionDelaySeconds??void 0,Q.ctwaSignals=$.ctwaSignals??void 0,Q.ctwaPayload=$.ctwaPayload??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.nativeFlowCallButtonPayload=$.nativeFlowCallButtonPayload??void 0,Q.deeplinkPayload=$.deeplinkPayload??void 0,Q.messageContextInfo=$.messageContextInfo!==void 0&&$.messageContextInfo!==null?_$.fromPartial($.messageContextInfo):void 0,Q.callEntryPoint=$.callEntryPoint??void 0,Q.callReason=$.callReason??void 0,Q}};function I4(){return{}}var n8={encode($,Q=new z){if($.isVideo!==void 0)Q.uint32(8).bool($.isVideo);if($.callOutcome!==void 0)Q.uint32(16).int32($.callOutcome);if($.durationSecs!==void 0)Q.uint32(24).int64($.durationSecs);if($.callType!==void 0)Q.uint32(32).int32($.callType);if($.participants!==void 0&&$.participants.length!==0)for(let q of $.participants)b8.encode(q,Q.uint32(42).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??I4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isVideo=Z.bool();continue}case 2:{if(J!==16)break;K.callOutcome=Z.int32();continue}case 3:{if(J!==24)break;K.durationSecs=Z.int64Value();continue}case 4:{if(J!==32)break;K.callType=Z.int32();continue}case 5:{if(J!==42)break;if(K.participants===void 0)K.participants=[];let V=b8.decode(Z,Z.uint32());if(V!==void 0)K.participants.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return n8.fromPartial($??{})},fromPartial($){let Q=I4();return Q.isVideo=$.isVideo??void 0,Q.callOutcome=$.callOutcome??void 0,Q.durationSecs=$.durationSecs??void 0,Q.callType=$.callType??void 0,Q.participants=$.participants?.map((q)=>b8.fromPartial(q))||void 0,Q}};function T4(){return{}}var b8={encode($,Q=new z){if($.jid!==void 0)Q.uint32(10).string($.jid);if($.callOutcome!==void 0)Q.uint32(16).int32($.callOutcome);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??T4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.jid=Z.string();continue}case 2:{if(J!==16)break;K.callOutcome=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return b8.fromPartial($??{})},fromPartial($){let Q=T4();return Q.jid=$.jid??void 0,Q.callOutcome=$.callOutcome??void 0,Q}};function y4(){return{}}var o8={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??y4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return o8.fromPartial($??{})},fromPartial($){let Q=y4();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q}};function v4(){return{}}var i8={encode($,Q=new z){if($.displayName!==void 0)Q.uint32(10).string($.displayName);if($.id!==void 0)Q.uint32(18).string($.id);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??v4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayName=Z.string();continue}case 2:{if(J!==18)break;K.id=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return i8.fromPartial($??{})},fromPartial($){let Q=v4();return Q.displayName=$.displayName??void 0,Q.id=$.id??void 0,Q}};function f4(){return{}}var m8={encode($,Q=new z){if($.directPath!==void 0)Q.uint32(10).string($.directPath);if($.mediaKey!==void 0)Q.uint32(18).bytes($.mediaKey);if($.fileEncSha256!==void 0)Q.uint32(26).bytes($.fileEncSha256);if($.fileSha256!==void 0)Q.uint32(34).bytes($.fileSha256);if($.dimLevel!==void 0)Q.uint32(45).float($.dimLevel);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??f4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.directPath=Z.string();continue}case 2:{if(J!==18)break;K.mediaKey=Z.bytes();continue}case 3:{if(J!==26)break;K.fileEncSha256=Z.bytes();continue}case 4:{if(J!==34)break;K.fileSha256=Z.bytes();continue}case 5:{if(J!==45)break;K.dimLevel=Z.float();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return m8.fromPartial($??{})},fromPartial($){let Q=f4();return Q.directPath=$.directPath??void 0,Q.mediaKey=$.mediaKey??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.fileSha256=$.fileSha256??void 0,Q.dimLevel=$.dimLevel??void 0,Q}};function _4(){return{}}var g8={encode($,Q=new z){if($.isDoodleEnabled!==void 0)Q.uint32(8).bool($.isDoodleEnabled);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??_4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isDoodleEnabled=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return g8.fromPartial($??{})},fromPartial($){let Q=_4();return Q.isDoodleEnabled=$.isDoodleEnabled??void 0,Q}};function h4(){return{}}var r8={encode($,Q=new z){if($.colorLight!==void 0)Q.uint32(10).string($.colorLight);if($.colorDark!==void 0)Q.uint32(18).string($.colorDark);if($.isDoodleEnabled!==void 0)Q.uint32(24).bool($.isDoodleEnabled);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??h4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.colorLight=Z.string();continue}case 2:{if(J!==18)break;K.colorDark=Z.string();continue}case 3:{if(J!==24)break;K.isDoodleEnabled=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return r8.fromPartial($??{})},fromPartial($){let Q=h4();return Q.colorLight=$.colorLight??void 0,Q.colorDark=$.colorDark??void 0,Q.isDoodleEnabled=$.isDoodleEnabled??void 0,Q}};function l4(){return{}}var t8={encode($,Q=new z){if($.stockImageId!==void 0)Q.uint32(10).string($.stockImageId);if($.dimLevel!==void 0)Q.uint32(21).float($.dimLevel);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??l4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.stockImageId=Z.string();continue}case 2:{if(J!==21)break;K.dimLevel=Z.float();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return t8.fromPartial($??{})},fromPartial($){let Q=l4();return Q.stockImageId=$.stockImageId??void 0,Q.dimLevel=$.dimLevel??void 0,Q}};function p4(){return{}}var a8={encode($,Q=new z){if($.settingTimestampMs!==void 0)Q.uint32(8).int64($.settingTimestampMs);if($.clearTheme!==void 0)Q.uint32(16).bool($.clearTheme);if($.colorSchemeId!==void 0)Q.uint32(26).string($.colorSchemeId);if($.defaultWallpaper!==void 0)g8.encode($.defaultWallpaper,Q.uint32(82).fork()).join();if($.solidColor!==void 0)r8.encode($.solidColor,Q.uint32(90).fork()).join();if($.stockImage!==void 0)t8.encode($.stockImage,Q.uint32(98).fork()).join();if($.customImage!==void 0)m8.encode($.customImage,Q.uint32(106).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??p4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.settingTimestampMs=Z.int64Value();continue}case 2:{if(J!==16)break;K.clearTheme=Z.bool();continue}case 3:{if(J!==26)break;K.colorSchemeId=Z.string();continue}case 10:{if(J!==82)break;K.defaultWallpaper=g8.decode(Z,Z.uint32(),K.defaultWallpaper);continue}case 11:{if(J!==90)break;K.solidColor=r8.decode(Z,Z.uint32(),K.solidColor);continue}case 12:{if(J!==98)break;K.stockImage=t8.decode(Z,Z.uint32(),K.stockImage);continue}case 13:{if(J!==106)break;K.customImage=m8.decode(Z,Z.uint32(),K.customImage);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return a8.fromPartial($??{})},fromPartial($){let Q=p4();return Q.settingTimestampMs=$.settingTimestampMs??void 0,Q.clearTheme=$.clearTheme??void 0,Q.colorSchemeId=$.colorSchemeId??void 0,Q.defaultWallpaper=$.defaultWallpaper!==void 0&&$.defaultWallpaper!==null?g8.fromPartial($.defaultWallpaper):void 0,Q.solidColor=$.solidColor!==void 0&&$.solidColor!==null?r8.fromPartial($.solidColor):void 0,Q.stockImage=$.stockImage!==void 0&&$.stockImage!==null?t8.fromPartial($.stockImage):void 0,Q.customImage=$.customImage!==void 0&&$.customImage!==null?m8.fromPartial($.customImage):void 0,Q}};function u4(){return{}}var s8={encode($,Q=new z){if($.status!==void 0)Q.uint32(8).int32($.status);if($.senderNotificationTimestampMs!==void 0)Q.uint32(16).int64($.senderNotificationTimestampMs);if($.consumerLid!==void 0)Q.uint32(26).string($.consumerLid);if($.consumerPhoneNumber!==void 0)Q.uint32(34).string($.consumerPhoneNumber);if($.notificationContent!==void 0)e8.encode($.notificationContent,Q.uint32(42).fork()).join();if($.shouldSuppressNotification!==void 0)Q.uint32(48).bool($.shouldSuppressNotification);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??u4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.status=Z.int32();continue}case 2:{if(J!==16)break;K.senderNotificationTimestampMs=Z.int64Value();continue}case 3:{if(J!==26)break;K.consumerLid=Z.string();continue}case 4:{if(J!==34)break;K.consumerPhoneNumber=Z.string();continue}case 5:{if(J!==42)break;K.notificationContent=e8.decode(Z,Z.uint32(),K.notificationContent);continue}case 6:{if(J!==48)break;K.shouldSuppressNotification=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return s8.fromPartial($??{})},fromPartial($){let Q=u4();return Q.status=$.status??void 0,Q.senderNotificationTimestampMs=$.senderNotificationTimestampMs??void 0,Q.consumerLid=$.consumerLid??void 0,Q.consumerPhoneNumber=$.consumerPhoneNumber??void 0,Q.notificationContent=$.notificationContent!==void 0&&$.notificationContent!==null?e8.fromPartial($.notificationContent):void 0,Q.shouldSuppressNotification=$.shouldSuppressNotification??void 0,Q}};function w4(){return{}}var e8={encode($,Q=new z){if($.handoffNotificationText!==void 0)Q.uint32(10).string($.handoffNotificationText);if($.extraJson!==void 0)Q.uint32(18).string($.extraJson);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??w4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.handoffNotificationText=Z.string();continue}case 2:{if(J!==18)break;K.extraJson=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return e8.fromPartial($??{})},fromPartial($){let Q=w4();return Q.handoffNotificationText=$.handoffNotificationText??void 0,Q.extraJson=$.extraJson??void 0,Q}};function j4(){return{}}var $q={encode($,Q=new z){if($.message!==void 0)c.encode($.message,Q.uint32(10).fork()).join();if($.targetMessageKey!==void 0)N.encode($.targetMessageKey,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??j4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.message=c.decode(Z,Z.uint32(),K.message);continue}case 2:{if(J!==18)break;K.targetMessageKey=N.decode(Z,Z.uint32(),K.targetMessageKey);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return $q.fromPartial($??{})},fromPartial($){let Q=j4();return Q.message=$.message!==void 0&&$.message!==null?c.fromPartial($.message):void 0,Q.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?N.fromPartial($.targetMessageKey):void 0,Q}};function c4(){return{}}var Qq={encode($,Q=new z){if($.encPayload!==void 0)Q.uint32(10).bytes($.encPayload);if($.encIv!==void 0)Q.uint32(18).bytes($.encIv);if($.conditionalRevealMessageType!==void 0)Q.uint32(24).int32($.conditionalRevealMessageType);if($.revealKeyId!==void 0)Q.uint32(34).string($.revealKeyId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??c4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encPayload=Z.bytes();continue}case 2:{if(J!==18)break;K.encIv=Z.bytes();continue}case 3:{if(J!==24)break;K.conditionalRevealMessageType=Z.int32();continue}case 4:{if(J!==34)break;K.revealKeyId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Qq.fromPartial($??{})},fromPartial($){let Q=c4();return Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q.conditionalRevealMessageType=$.conditionalRevealMessageType??void 0,Q.revealKeyId=$.revealKeyId??void 0,Q}};function d4(){return{}}var A$={encode($,Q=new z){if($.displayName!==void 0)Q.uint32(10).string($.displayName);if($.vcard!==void 0)Q.uint32(130).string($.vcard);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();if($.isSelfContact!==void 0)Q.uint32(144).bool($.isSelfContact);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??d4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayName=Z.string();continue}case 16:{if(J!==130)break;K.vcard=Z.string();continue}case 17:{if(J!==138)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 18:{if(J!==144)break;K.isSelfContact=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return A$.fromPartial($??{})},fromPartial($){let Q=d4();return Q.displayName=$.displayName??void 0,Q.vcard=$.vcard??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.isSelfContact=$.isSelfContact??void 0,Q}};function n4(){return{}}var Zq={encode($,Q=new z){if($.displayName!==void 0)Q.uint32(10).string($.displayName);if($.contacts!==void 0&&$.contacts.length!==0)for(let q of $.contacts)A$.encode(q,Q.uint32(18).fork()).join();if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??n4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayName=Z.string();continue}case 2:{if(J!==18)break;if(K.contacts===void 0)K.contacts=[];let V=A$.decode(Z,Z.uint32());if(V!==void 0)K.contacts.push(V);continue}case 17:{if(J!==138)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Zq.fromPartial($??{})},fromPartial($){let Q=n4();return Q.displayName=$.displayName??void 0,Q.contacts=$.contacts?.map((q)=>A$.fromPartial(q))||void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function b4(){return{}}var Jq={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??b4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Jq.fromPartial($??{})},fromPartial($){let Q=b4();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q}};function o4(){return{}}var Kq={encode($,Q=new z){if($.destinationJid!==void 0)Q.uint32(10).string($.destinationJid);if($.message!==void 0)c.encode($.message,Q.uint32(18).fork()).join();if($.phash!==void 0)Q.uint32(26).string($.phash);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??o4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.destinationJid=Z.string();continue}case 2:{if(J!==18)break;K.message=c.decode(Z,Z.uint32(),K.message);continue}case 3:{if(J!==26)break;K.phash=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Kq.fromPartial($??{})},fromPartial($){let Q=o4();return Q.destinationJid=$.destinationJid??void 0,Q.message=$.message!==void 0&&$.message!==null?c.fromPartial($.message):void 0,Q.phash=$.phash??void 0,Q}};function i4(){return{}}var K0={encode($,Q=new z){if($.url!==void 0)Q.uint32(10).string($.url);if($.mimetype!==void 0)Q.uint32(18).string($.mimetype);if($.title!==void 0)Q.uint32(26).string($.title);if($.fileSha256!==void 0)Q.uint32(34).bytes($.fileSha256);if($.fileLength!==void 0)Q.uint32(40).uint64($.fileLength);if($.pageCount!==void 0)Q.uint32(48).uint32($.pageCount);if($.mediaKey!==void 0)Q.uint32(58).bytes($.mediaKey);if($.fileName!==void 0)Q.uint32(66).string($.fileName);if($.fileEncSha256!==void 0)Q.uint32(74).bytes($.fileEncSha256);if($.directPath!==void 0)Q.uint32(82).string($.directPath);if($.mediaKeyTimestamp!==void 0)Q.uint32(88).int64($.mediaKeyTimestamp);if($.contactVcard!==void 0)Q.uint32(96).bool($.contactVcard);if($.thumbnailDirectPath!==void 0)Q.uint32(106).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)Q.uint32(114).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)Q.uint32(122).bytes($.thumbnailEncSha256);if($.jpegThumbnail!==void 0)Q.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();if($.thumbnailHeight!==void 0)Q.uint32(144).uint32($.thumbnailHeight);if($.thumbnailWidth!==void 0)Q.uint32(152).uint32($.thumbnailWidth);if($.caption!==void 0)Q.uint32(162).string($.caption);if($.accessibilityLabel!==void 0)Q.uint32(170).string($.accessibilityLabel);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??i4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.url=Z.string();continue}case 2:{if(J!==18)break;K.mimetype=Z.string();continue}case 3:{if(J!==26)break;K.title=Z.string();continue}case 4:{if(J!==34)break;K.fileSha256=Z.bytes();continue}case 5:{if(J!==40)break;K.fileLength=Z.uint64Value();continue}case 6:{if(J!==48)break;K.pageCount=Z.uint32();continue}case 7:{if(J!==58)break;K.mediaKey=Z.bytes();continue}case 8:{if(J!==66)break;K.fileName=Z.string();continue}case 9:{if(J!==74)break;K.fileEncSha256=Z.bytes();continue}case 10:{if(J!==82)break;K.directPath=Z.string();continue}case 11:{if(J!==88)break;K.mediaKeyTimestamp=Z.int64Value();continue}case 12:{if(J!==96)break;K.contactVcard=Z.bool();continue}case 13:{if(J!==106)break;K.thumbnailDirectPath=Z.string();continue}case 14:{if(J!==114)break;K.thumbnailSha256=Z.bytes();continue}case 15:{if(J!==122)break;K.thumbnailEncSha256=Z.bytes();continue}case 16:{if(J!==130)break;K.jpegThumbnail=Z.bytes();continue}case 17:{if(J!==138)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 18:{if(J!==144)break;K.thumbnailHeight=Z.uint32();continue}case 19:{if(J!==152)break;K.thumbnailWidth=Z.uint32();continue}case 20:{if(J!==162)break;K.caption=Z.string();continue}case 21:{if(J!==170)break;K.accessibilityLabel=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return K0.fromPartial($??{})},fromPartial($){let Q=i4();return Q.url=$.url??void 0,Q.mimetype=$.mimetype??void 0,Q.title=$.title??void 0,Q.fileSha256=$.fileSha256??void 0,Q.fileLength=$.fileLength??void 0,Q.pageCount=$.pageCount??void 0,Q.mediaKey=$.mediaKey??void 0,Q.fileName=$.fileName??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.directPath=$.directPath??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.contactVcard=$.contactVcard??void 0,Q.thumbnailDirectPath=$.thumbnailDirectPath??void 0,Q.thumbnailSha256=$.thumbnailSha256??void 0,Q.thumbnailEncSha256=$.thumbnailEncSha256??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.thumbnailHeight=$.thumbnailHeight??void 0,Q.thumbnailWidth=$.thumbnailWidth??void 0,Q.caption=$.caption??void 0,Q.accessibilityLabel=$.accessibilityLabel??void 0,Q}};function m4(){return{}}var qq={encode($,Q=new z){if($.targetMessageKey!==void 0)N.encode($.targetMessageKey,Q.uint32(10).fork()).join();if($.encPayload!==void 0)Q.uint32(18).bytes($.encPayload);if($.encIv!==void 0)Q.uint32(26).bytes($.encIv);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??m4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.targetMessageKey=N.decode(Z,Z.uint32(),K.targetMessageKey);continue}case 2:{if(J!==18)break;K.encPayload=Z.bytes();continue}case 3:{if(J!==26)break;K.encIv=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return qq.fromPartial($??{})},fromPartial($){let Q=m4();return Q.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?N.fromPartial($.targetMessageKey):void 0,Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function g4(){return{}}var Xq={encode($,Q=new z){if($.eventCreationMessageKey!==void 0)N.encode($.eventCreationMessageKey,Q.uint32(10).fork()).join();if($.encPayload!==void 0)Q.uint32(18).bytes($.encPayload);if($.encIv!==void 0)Q.uint32(26).bytes($.encIv);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??g4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.eventCreationMessageKey=N.decode(Z,Z.uint32(),K.eventCreationMessageKey);continue}case 2:{if(J!==18)break;K.encPayload=Z.bytes();continue}case 3:{if(J!==26)break;K.encIv=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Xq.fromPartial($??{})},fromPartial($){let Q=g4();return Q.eventCreationMessageKey=$.eventCreationMessageKey!==void 0&&$.eventCreationMessageKey!==null?N.fromPartial($.eventCreationMessageKey):void 0,Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function r4(){return{}}var Yq={encode($,Q=new z){if($.targetMessageKey!==void 0)N.encode($.targetMessageKey,Q.uint32(10).fork()).join();if($.encPayload!==void 0)Q.uint32(18).bytes($.encPayload);if($.encIv!==void 0)Q.uint32(26).bytes($.encIv);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??r4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.targetMessageKey=N.decode(Z,Z.uint32(),K.targetMessageKey);continue}case 2:{if(J!==18)break;K.encPayload=Z.bytes();continue}case 3:{if(J!==26)break;K.encIv=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Yq.fromPartial($??{})},fromPartial($){let Q=r4();return Q.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?N.fromPartial($.targetMessageKey):void 0,Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function t4(){return{}}var Vq={encode($,Q=new z){if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(10).fork()).join();if($.eventId!==void 0)Q.uint32(18).string($.eventId);if($.eventTitle!==void 0)Q.uint32(26).string($.eventTitle);if($.jpegThumbnail!==void 0)Q.uint32(34).bytes($.jpegThumbnail);if($.startTime!==void 0)Q.uint32(40).int64($.startTime);if($.caption!==void 0)Q.uint32(50).string($.caption);if($.isCanceled!==void 0)Q.uint32(56).bool($.isCanceled);if($.endTime!==void 0)Q.uint32(64).int64($.endTime);if($.callLink!==void 0)Q.uint32(74).string($.callLink);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??t4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 2:{if(J!==18)break;K.eventId=Z.string();continue}case 3:{if(J!==26)break;K.eventTitle=Z.string();continue}case 4:{if(J!==34)break;K.jpegThumbnail=Z.bytes();continue}case 5:{if(J!==40)break;K.startTime=Z.int64Value();continue}case 6:{if(J!==50)break;K.caption=Z.string();continue}case 7:{if(J!==56)break;K.isCanceled=Z.bool();continue}case 8:{if(J!==64)break;K.endTime=Z.int64Value();continue}case 9:{if(J!==74)break;K.callLink=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Vq.fromPartial($??{})},fromPartial($){let Q=t4();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.eventId=$.eventId??void 0,Q.eventTitle=$.eventTitle??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.startTime=$.startTime??void 0,Q.caption=$.caption??void 0,Q.isCanceled=$.isCanceled??void 0,Q.endTime=$.endTime??void 0,Q.callLink=$.callLink??void 0,Q}};function a4(){return{}}var zq={encode($,Q=new z){if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(10).fork()).join();if($.isCanceled!==void 0)Q.uint32(16).bool($.isCanceled);if($.name!==void 0)Q.uint32(26).string($.name);if($.description!==void 0)Q.uint32(34).string($.description);if($.location!==void 0)Q0.encode($.location,Q.uint32(42).fork()).join();if($.joinLink!==void 0)Q.uint32(50).string($.joinLink);if($.startTime!==void 0)Q.uint32(56).int64($.startTime);if($.endTime!==void 0)Q.uint32(64).int64($.endTime);if($.extraGuestsAllowed!==void 0)Q.uint32(72).bool($.extraGuestsAllowed);if($.isScheduleCall!==void 0)Q.uint32(80).bool($.isScheduleCall);if($.hasReminder!==void 0)Q.uint32(88).bool($.hasReminder);if($.reminderOffsetSec!==void 0)Q.uint32(96).int64($.reminderOffsetSec);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??a4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 2:{if(J!==16)break;K.isCanceled=Z.bool();continue}case 3:{if(J!==26)break;K.name=Z.string();continue}case 4:{if(J!==34)break;K.description=Z.string();continue}case 5:{if(J!==42)break;K.location=Q0.decode(Z,Z.uint32(),K.location);continue}case 6:{if(J!==50)break;K.joinLink=Z.string();continue}case 7:{if(J!==56)break;K.startTime=Z.int64Value();continue}case 8:{if(J!==64)break;K.endTime=Z.int64Value();continue}case 9:{if(J!==72)break;K.extraGuestsAllowed=Z.bool();continue}case 10:{if(J!==80)break;K.isScheduleCall=Z.bool();continue}case 11:{if(J!==88)break;K.hasReminder=Z.bool();continue}case 12:{if(J!==96)break;K.reminderOffsetSec=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return zq.fromPartial($??{})},fromPartial($){let Q=a4();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.isCanceled=$.isCanceled??void 0,Q.name=$.name??void 0,Q.description=$.description??void 0,Q.location=$.location!==void 0&&$.location!==null?Q0.fromPartial($.location):void 0,Q.joinLink=$.joinLink??void 0,Q.startTime=$.startTime??void 0,Q.endTime=$.endTime??void 0,Q.extraGuestsAllowed=$.extraGuestsAllowed??void 0,Q.isScheduleCall=$.isScheduleCall??void 0,Q.hasReminder=$.hasReminder??void 0,Q.reminderOffsetSec=$.reminderOffsetSec??void 0,Q}};function s4(){return{}}var p0={encode($,Q=new z){if($.response!==void 0)Q.uint32(8).int32($.response);if($.timestampMs!==void 0)Q.uint32(16).int64($.timestampMs);if($.extraGuestCount!==void 0)Q.uint32(24).int32($.extraGuestCount);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??s4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.response=Z.int32();continue}case 2:{if(J!==16)break;K.timestampMs=Z.int64Value();continue}case 3:{if(J!==24)break;K.extraGuestCount=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return p0.fromPartial($??{})},fromPartial($){let Q=s4();return Q.response=$.response??void 0,Q.timestampMs=$.timestampMs??void 0,Q.extraGuestCount=$.extraGuestCount??void 0,Q}};function e4(){return{}}var Hq={encode($,Q=new z){if($.text!==void 0)Q.uint32(10).string($.text);if($.matchedText!==void 0)Q.uint32(18).string($.matchedText);if($.description!==void 0)Q.uint32(42).string($.description);if($.title!==void 0)Q.uint32(50).string($.title);if($.textArgb!==void 0)Q.uint32(61).fixed32($.textArgb);if($.backgroundArgb!==void 0)Q.uint32(69).fixed32($.backgroundArgb);if($.font!==void 0)Q.uint32(72).int32($.font);if($.previewType!==void 0)Q.uint32(80).int32($.previewType);if($.jpegThumbnail!==void 0)Q.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();if($.doNotPlayInline!==void 0)Q.uint32(144).bool($.doNotPlayInline);if($.thumbnailDirectPath!==void 0)Q.uint32(154).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)Q.uint32(162).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)Q.uint32(170).bytes($.thumbnailEncSha256);if($.mediaKey!==void 0)Q.uint32(178).bytes($.mediaKey);if($.mediaKeyTimestamp!==void 0)Q.uint32(184).int64($.mediaKeyTimestamp);if($.thumbnailHeight!==void 0)Q.uint32(192).uint32($.thumbnailHeight);if($.thumbnailWidth!==void 0)Q.uint32(200).uint32($.thumbnailWidth);if($.inviteLinkGroupType!==void 0)Q.uint32(208).int32($.inviteLinkGroupType);if($.inviteLinkParentGroupSubjectV2!==void 0)Q.uint32(218).string($.inviteLinkParentGroupSubjectV2);if($.inviteLinkParentGroupThumbnailV2!==void 0)Q.uint32(226).bytes($.inviteLinkParentGroupThumbnailV2);if($.inviteLinkGroupTypeV2!==void 0)Q.uint32(232).int32($.inviteLinkGroupTypeV2);if($.viewOnce!==void 0)Q.uint32(240).bool($.viewOnce);if($.videoHeight!==void 0)Q.uint32(248).uint32($.videoHeight);if($.videoWidth!==void 0)Q.uint32(256).uint32($.videoWidth);if($.faviconMmsMetadata!==void 0)oq.encode($.faviconMmsMetadata,Q.uint32(266).fork()).join();if($.linkPreviewMetadata!==void 0)hq.encode($.linkPreviewMetadata,Q.uint32(274).fork()).join();if($.paymentLinkMetadata!==void 0)I$.encode($.paymentLinkMetadata,Q.uint32(282).fork()).join();if($.endCardTiles!==void 0&&$.endCardTiles.length!==0)for(let q of $.endCardTiles)G9.encode(q,Q.uint32(290).fork()).join();if($.videoContentUrl!==void 0)Q.uint32(298).string($.videoContentUrl);if($.musicMetadata!==void 0)H0.encode($.musicMetadata,Q.uint32(306).fork()).join();if($.paymentExtendedMetadata!==void 0)sq.encode($.paymentExtendedMetadata,Q.uint32(314).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??e4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.text=Z.string();continue}case 2:{if(J!==18)break;K.matchedText=Z.string();continue}case 5:{if(J!==42)break;K.description=Z.string();continue}case 6:{if(J!==50)break;K.title=Z.string();continue}case 7:{if(J!==61)break;K.textArgb=Z.fixed32();continue}case 8:{if(J!==69)break;K.backgroundArgb=Z.fixed32();continue}case 9:{if(J!==72)break;K.font=Z.int32();continue}case 10:{if(J!==80)break;K.previewType=Z.int32();continue}case 16:{if(J!==130)break;K.jpegThumbnail=Z.bytes();continue}case 17:{if(J!==138)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 18:{if(J!==144)break;K.doNotPlayInline=Z.bool();continue}case 19:{if(J!==154)break;K.thumbnailDirectPath=Z.string();continue}case 20:{if(J!==162)break;K.thumbnailSha256=Z.bytes();continue}case 21:{if(J!==170)break;K.thumbnailEncSha256=Z.bytes();continue}case 22:{if(J!==178)break;K.mediaKey=Z.bytes();continue}case 23:{if(J!==184)break;K.mediaKeyTimestamp=Z.int64Value();continue}case 24:{if(J!==192)break;K.thumbnailHeight=Z.uint32();continue}case 25:{if(J!==200)break;K.thumbnailWidth=Z.uint32();continue}case 26:{if(J!==208)break;K.inviteLinkGroupType=Z.int32();continue}case 27:{if(J!==218)break;K.inviteLinkParentGroupSubjectV2=Z.string();continue}case 28:{if(J!==226)break;K.inviteLinkParentGroupThumbnailV2=Z.bytes();continue}case 29:{if(J!==232)break;K.inviteLinkGroupTypeV2=Z.int32();continue}case 30:{if(J!==240)break;K.viewOnce=Z.bool();continue}case 31:{if(J!==248)break;K.videoHeight=Z.uint32();continue}case 32:{if(J!==256)break;K.videoWidth=Z.uint32();continue}case 33:{if(J!==266)break;K.faviconMmsMetadata=oq.decode(Z,Z.uint32(),K.faviconMmsMetadata);continue}case 34:{if(J!==274)break;K.linkPreviewMetadata=hq.decode(Z,Z.uint32(),K.linkPreviewMetadata);continue}case 35:{if(J!==282)break;K.paymentLinkMetadata=I$.decode(Z,Z.uint32(),K.paymentLinkMetadata);continue}case 36:{if(J!==290)break;if(K.endCardTiles===void 0)K.endCardTiles=[];let V=G9.decode(Z,Z.uint32());if(V!==void 0)K.endCardTiles.push(V);continue}case 37:{if(J!==298)break;K.videoContentUrl=Z.string();continue}case 38:{if(J!==306)break;K.musicMetadata=H0.decode(Z,Z.uint32(),K.musicMetadata);continue}case 39:{if(J!==314)break;K.paymentExtendedMetadata=sq.decode(Z,Z.uint32(),K.paymentExtendedMetadata);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Hq.fromPartial($??{})},fromPartial($){let Q=e4();return Q.text=$.text??void 0,Q.matchedText=$.matchedText??void 0,Q.description=$.description??void 0,Q.title=$.title??void 0,Q.textArgb=$.textArgb??void 0,Q.backgroundArgb=$.backgroundArgb??void 0,Q.font=$.font??void 0,Q.previewType=$.previewType??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.doNotPlayInline=$.doNotPlayInline??void 0,Q.thumbnailDirectPath=$.thumbnailDirectPath??void 0,Q.thumbnailSha256=$.thumbnailSha256??void 0,Q.thumbnailEncSha256=$.thumbnailEncSha256??void 0,Q.mediaKey=$.mediaKey??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.thumbnailHeight=$.thumbnailHeight??void 0,Q.thumbnailWidth=$.thumbnailWidth??void 0,Q.inviteLinkGroupType=$.inviteLinkGroupType??void 0,Q.inviteLinkParentGroupSubjectV2=$.inviteLinkParentGroupSubjectV2??void 0,Q.inviteLinkParentGroupThumbnailV2=$.inviteLinkParentGroupThumbnailV2??void 0,Q.inviteLinkGroupTypeV2=$.inviteLinkGroupTypeV2??void 0,Q.viewOnce=$.viewOnce??void 0,Q.videoHeight=$.videoHeight??void 0,Q.videoWidth=$.videoWidth??void 0,Q.faviconMmsMetadata=$.faviconMmsMetadata!==void 0&&$.faviconMmsMetadata!==null?oq.fromPartial($.faviconMmsMetadata):void 0,Q.linkPreviewMetadata=$.linkPreviewMetadata!==void 0&&$.linkPreviewMetadata!==null?hq.fromPartial($.linkPreviewMetadata):void 0,Q.paymentLinkMetadata=$.paymentLinkMetadata!==void 0&&$.paymentLinkMetadata!==null?I$.fromPartial($.paymentLinkMetadata):void 0,Q.endCardTiles=$.endCardTiles?.map((q)=>G9.fromPartial(q))||void 0,Q.videoContentUrl=$.videoContentUrl??void 0,Q.musicMetadata=$.musicMetadata!==void 0&&$.musicMetadata!==null?H0.fromPartial($.musicMetadata):void 0,Q.paymentExtendedMetadata=$.paymentExtendedMetadata!==void 0&&$.paymentExtendedMetadata!==null?sq.fromPartial($.paymentExtendedMetadata):void 0,Q}};function $D(){return{}}var Gq={encode($,Q=new z){if($.historyFromTimestamp!==void 0)Q.uint32(8).uint64($.historyFromTimestamp);if($.historyDurationDays!==void 0)Q.uint32(16).uint32($.historyDurationDays);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??$D();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.historyFromTimestamp=Z.uint64Value();continue}case 2:{if(J!==16)break;K.historyDurationDays=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Gq.fromPartial($??{})},fromPartial($){let Q=$D();return Q.historyFromTimestamp=$.historyFromTimestamp??void 0,Q.historyDurationDays=$.historyDurationDays??void 0,Q}};function QD(){return{}}var I0={encode($,Q=new z){if($.requestId!==void 0)Q.uint32(10).string($.requestId);if($.businessProduct!==void 0)Q.uint32(18).string($.businessProduct);if($.opaqueClientData!==void 0)Q.uint32(26).bytes($.opaqueClientData);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??QD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.requestId=Z.string();continue}case 2:{if(J!==18)break;K.businessProduct=Z.string();continue}case 3:{if(J!==26)break;K.opaqueClientData=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return I0.fromPartial($??{})},fromPartial($){let Q=QD();return Q.requestId=$.requestId??void 0,Q.businessProduct=$.businessProduct??void 0,Q.opaqueClientData=$.opaqueClientData??void 0,Q}};function ZD(){return{}}var y={encode($,Q=new z){if($.message!==void 0)c.encode($.message,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ZD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.message=c.decode(Z,Z.uint32(),K.message);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return y.fromPartial($??{})},fromPartial($){let Q=ZD();return Q.message=$.message!==void 0&&$.message!==null?c.fromPartial($.message):void 0,Q}};function JD(){return{}}var Uq={encode($,Q=new z){if($.groupJid!==void 0)Q.uint32(10).string($.groupJid);if($.inviteCode!==void 0)Q.uint32(18).string($.inviteCode);if($.inviteExpiration!==void 0)Q.uint32(24).int64($.inviteExpiration);if($.groupName!==void 0)Q.uint32(34).string($.groupName);if($.jpegThumbnail!==void 0)Q.uint32(42).bytes($.jpegThumbnail);if($.caption!==void 0)Q.uint32(50).string($.caption);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(58).fork()).join();if($.groupType!==void 0)Q.uint32(64).int32($.groupType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??JD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.groupJid=Z.string();continue}case 2:{if(J!==18)break;K.inviteCode=Z.string();continue}case 3:{if(J!==24)break;K.inviteExpiration=Z.int64Value();continue}case 4:{if(J!==34)break;K.groupName=Z.string();continue}case 5:{if(J!==42)break;K.jpegThumbnail=Z.bytes();continue}case 6:{if(J!==50)break;K.caption=Z.string();continue}case 7:{if(J!==58)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 8:{if(J!==64)break;K.groupType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Uq.fromPartial($??{})},fromPartial($){let Q=JD();return Q.groupJid=$.groupJid??void 0,Q.inviteCode=$.inviteCode??void 0,Q.inviteExpiration=$.inviteExpiration??void 0,Q.groupName=$.groupName??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.caption=$.caption??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.groupType=$.groupType??void 0,Q}};function KD(){return{}}var o={encode($,Q=new z){if($.namespace!==void 0)Q.uint32(10).string($.namespace);if($.elementName!==void 0)Q.uint32(18).string($.elementName);if($.params!==void 0&&$.params.length!==0)for(let q of $.params)Q.uint32(26).string(q);if($.fallbackLg!==void 0)Q.uint32(34).string($.fallbackLg);if($.fallbackLc!==void 0)Q.uint32(42).string($.fallbackLc);if($.localizableParams!==void 0&&$.localizableParams.length!==0)for(let q of $.localizableParams)Cq.encode(q,Q.uint32(50).fork()).join();if($.deterministicLg!==void 0)Q.uint32(58).string($.deterministicLg);if($.deterministicLc!==void 0)Q.uint32(66).string($.deterministicLc);if($.hydratedHsm!==void 0)v$.encode($.hydratedHsm,Q.uint32(74).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??KD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.namespace=Z.string();continue}case 2:{if(J!==18)break;K.elementName=Z.string();continue}case 3:{if(J!==26)break;if(K.params===void 0)K.params=[];let V=Z.string();if(V!==void 0)K.params.push(V);continue}case 4:{if(J!==34)break;K.fallbackLg=Z.string();continue}case 5:{if(J!==42)break;K.fallbackLc=Z.string();continue}case 6:{if(J!==50)break;if(K.localizableParams===void 0)K.localizableParams=[];let V=Cq.decode(Z,Z.uint32());if(V!==void 0)K.localizableParams.push(V);continue}case 7:{if(J!==58)break;K.deterministicLg=Z.string();continue}case 8:{if(J!==66)break;K.deterministicLc=Z.string();continue}case 9:{if(J!==74)break;K.hydratedHsm=v$.decode(Z,Z.uint32(),K.hydratedHsm);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return o.fromPartial($??{})},fromPartial($){let Q=KD();return Q.namespace=$.namespace??void 0,Q.elementName=$.elementName??void 0,Q.params=$.params?.map((q)=>q)||void 0,Q.fallbackLg=$.fallbackLg??void 0,Q.fallbackLc=$.fallbackLc??void 0,Q.localizableParams=$.localizableParams?.map((q)=>Cq.fromPartial(q))||void 0,Q.deterministicLg=$.deterministicLg??void 0,Q.deterministicLc=$.deterministicLc??void 0,Q.hydratedHsm=$.hydratedHsm!==void 0&&$.hydratedHsm!==null?v$.fromPartial($.hydratedHsm):void 0,Q}};function qD(){return{}}var Cq={encode($,Q=new z){if($.default!==void 0)Q.uint32(10).string($.default);if($.currency!==void 0)Dq.encode($.currency,Q.uint32(18).fork()).join();if($.dateTime!==void 0)Fq.encode($.dateTime,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??qD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.default=Z.string();continue}case 2:{if(J!==18)break;K.currency=Dq.decode(Z,Z.uint32(),K.currency);continue}case 3:{if(J!==26)break;K.dateTime=Fq.decode(Z,Z.uint32(),K.dateTime);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Cq.fromPartial($??{})},fromPartial($){let Q=qD();return Q.default=$.default??void 0,Q.currency=$.currency!==void 0&&$.currency!==null?Dq.fromPartial($.currency):void 0,Q.dateTime=$.dateTime!==void 0&&$.dateTime!==null?Fq.fromPartial($.dateTime):void 0,Q}};function XD(){return{}}var Dq={encode($,Q=new z){if($.currencyCode!==void 0)Q.uint32(10).string($.currencyCode);if($.amount1000!==void 0)Q.uint32(16).int64($.amount1000);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??XD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.currencyCode=Z.string();continue}case 2:{if(J!==16)break;K.amount1000=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Dq.fromPartial($??{})},fromPartial($){let Q=XD();return Q.currencyCode=$.currencyCode??void 0,Q.amount1000=$.amount1000??void 0,Q}};function YD(){return{}}var Fq={encode($,Q=new z){if($.component!==void 0)Pq.encode($.component,Q.uint32(10).fork()).join();if($.unixEpoch!==void 0)Lq.encode($.unixEpoch,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??YD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.component=Pq.decode(Z,Z.uint32(),K.component);continue}case 2:{if(J!==18)break;K.unixEpoch=Lq.decode(Z,Z.uint32(),K.unixEpoch);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Fq.fromPartial($??{})},fromPartial($){let Q=YD();return Q.component=$.component!==void 0&&$.component!==null?Pq.fromPartial($.component):void 0,Q.unixEpoch=$.unixEpoch!==void 0&&$.unixEpoch!==null?Lq.fromPartial($.unixEpoch):void 0,Q}};function VD(){return{}}var Pq={encode($,Q=new z){if($.dayOfWeek!==void 0)Q.uint32(8).int32($.dayOfWeek);if($.year!==void 0)Q.uint32(16).uint32($.year);if($.month!==void 0)Q.uint32(24).uint32($.month);if($.dayOfMonth!==void 0)Q.uint32(32).uint32($.dayOfMonth);if($.hour!==void 0)Q.uint32(40).uint32($.hour);if($.minute!==void 0)Q.uint32(48).uint32($.minute);if($.calendar!==void 0)Q.uint32(56).int32($.calendar);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??VD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.dayOfWeek=Z.int32();continue}case 2:{if(J!==16)break;K.year=Z.uint32();continue}case 3:{if(J!==24)break;K.month=Z.uint32();continue}case 4:{if(J!==32)break;K.dayOfMonth=Z.uint32();continue}case 5:{if(J!==40)break;K.hour=Z.uint32();continue}case 6:{if(J!==48)break;K.minute=Z.uint32();continue}case 7:{if(J!==56)break;K.calendar=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Pq.fromPartial($??{})},fromPartial($){let Q=VD();return Q.dayOfWeek=$.dayOfWeek??void 0,Q.year=$.year??void 0,Q.month=$.month??void 0,Q.dayOfMonth=$.dayOfMonth??void 0,Q.hour=$.hour??void 0,Q.minute=$.minute??void 0,Q.calendar=$.calendar??void 0,Q}};function zD(){return{}}var Lq={encode($,Q=new z){if($.timestamp!==void 0)Q.uint32(8).int64($.timestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??zD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.timestamp=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Lq.fromPartial($??{})},fromPartial($){let Q=zD();return Q.timestamp=$.timestamp??void 0,Q}};function HD(){return{}}var xq={encode($,Q=new z){if($.stanzaId!==void 0)Q.uint32(10).string($.stanzaId);if($.messageSecretProof!==void 0)Q.uint32(18).bytes($.messageSecretProof);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??HD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.stanzaId=Z.string();continue}case 2:{if(J!==18)break;K.messageSecretProof=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return xq.fromPartial($??{})},fromPartial($){let Q=HD();return Q.stanzaId=$.stanzaId??void 0,Q.messageSecretProof=$.messageSecretProof??void 0,Q}};function GD(){return{}}var kq={encode($,Q=new z){if($.completeAccessGranted!==void 0)Q.uint32(8).bool($.completeAccessGranted);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??GD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.completeAccessGranted=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return kq.fromPartial($??{})},fromPartial($){let Q=GD();return Q.completeAccessGranted=$.completeAccessGranted??void 0,Q}};function UD(){return{}}var Nq={encode($,Q=new z){if($.fileSha256!==void 0)Q.uint32(10).bytes($.fileSha256);if($.fileLength!==void 0)Q.uint32(16).uint64($.fileLength);if($.mediaKey!==void 0)Q.uint32(26).bytes($.mediaKey);if($.fileEncSha256!==void 0)Q.uint32(34).bytes($.fileEncSha256);if($.directPath!==void 0)Q.uint32(42).string($.directPath);if($.syncType!==void 0)Q.uint32(48).int32($.syncType);if($.chunkOrder!==void 0)Q.uint32(56).uint32($.chunkOrder);if($.originalMessageId!==void 0)Q.uint32(66).string($.originalMessageId);if($.progress!==void 0)Q.uint32(72).uint32($.progress);if($.oldestMsgInChunkTimestampSec!==void 0)Q.uint32(80).int64($.oldestMsgInChunkTimestampSec);if($.initialHistBootstrapInlinePayload!==void 0)Q.uint32(90).bytes($.initialHistBootstrapInlinePayload);if($.peerDataRequestSessionId!==void 0)Q.uint32(98).string($.peerDataRequestSessionId);if($.fullHistorySyncOnDemandRequestMetadata!==void 0)I0.encode($.fullHistorySyncOnDemandRequestMetadata,Q.uint32(106).fork()).join();if($.encHandle!==void 0)Q.uint32(114).string($.encHandle);if($.messageAccessStatus!==void 0)kq.encode($.messageAccessStatus,Q.uint32(122).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??UD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.fileSha256=Z.bytes();continue}case 2:{if(J!==16)break;K.fileLength=Z.uint64Value();continue}case 3:{if(J!==26)break;K.mediaKey=Z.bytes();continue}case 4:{if(J!==34)break;K.fileEncSha256=Z.bytes();continue}case 5:{if(J!==42)break;K.directPath=Z.string();continue}case 6:{if(J!==48)break;K.syncType=Z.int32();continue}case 7:{if(J!==56)break;K.chunkOrder=Z.uint32();continue}case 8:{if(J!==66)break;K.originalMessageId=Z.string();continue}case 9:{if(J!==72)break;K.progress=Z.uint32();continue}case 10:{if(J!==80)break;K.oldestMsgInChunkTimestampSec=Z.int64Value();continue}case 11:{if(J!==90)break;K.initialHistBootstrapInlinePayload=Z.bytes();continue}case 12:{if(J!==98)break;K.peerDataRequestSessionId=Z.string();continue}case 13:{if(J!==106)break;K.fullHistorySyncOnDemandRequestMetadata=I0.decode(Z,Z.uint32(),K.fullHistorySyncOnDemandRequestMetadata);continue}case 14:{if(J!==114)break;K.encHandle=Z.string();continue}case 15:{if(J!==122)break;K.messageAccessStatus=kq.decode(Z,Z.uint32(),K.messageAccessStatus);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Nq.fromPartial($??{})},fromPartial($){let Q=UD();return Q.fileSha256=$.fileSha256??void 0,Q.fileLength=$.fileLength??void 0,Q.mediaKey=$.mediaKey??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.directPath=$.directPath??void 0,Q.syncType=$.syncType??void 0,Q.chunkOrder=$.chunkOrder??void 0,Q.originalMessageId=$.originalMessageId??void 0,Q.progress=$.progress??void 0,Q.oldestMsgInChunkTimestampSec=$.oldestMsgInChunkTimestampSec??void 0,Q.initialHistBootstrapInlinePayload=$.initialHistBootstrapInlinePayload??void 0,Q.peerDataRequestSessionId=$.peerDataRequestSessionId??void 0,Q.fullHistorySyncOnDemandRequestMetadata=$.fullHistorySyncOnDemandRequestMetadata!==void 0&&$.fullHistorySyncOnDemandRequestMetadata!==null?I0.fromPartial($.fullHistorySyncOnDemandRequestMetadata):void 0,Q.encHandle=$.encHandle??void 0,Q.messageAccessStatus=$.messageAccessStatus!==void 0&&$.messageAccessStatus!==null?kq.fromPartial($.messageAccessStatus):void 0,Q}};function CD(){return{}}var t={encode($,Q=new z){if($.url!==void 0)Q.uint32(10).string($.url);if($.mimetype!==void 0)Q.uint32(18).string($.mimetype);if($.caption!==void 0)Q.uint32(26).string($.caption);if($.fileSha256!==void 0)Q.uint32(34).bytes($.fileSha256);if($.fileLength!==void 0)Q.uint32(40).uint64($.fileLength);if($.height!==void 0)Q.uint32(48).uint32($.height);if($.width!==void 0)Q.uint32(56).uint32($.width);if($.mediaKey!==void 0)Q.uint32(66).bytes($.mediaKey);if($.fileEncSha256!==void 0)Q.uint32(74).bytes($.fileEncSha256);if($.interactiveAnnotations!==void 0&&$.interactiveAnnotations.length!==0)for(let q of $.interactiveAnnotations)V0.encode(q,Q.uint32(82).fork()).join();if($.directPath!==void 0)Q.uint32(90).string($.directPath);if($.mediaKeyTimestamp!==void 0)Q.uint32(96).int64($.mediaKeyTimestamp);if($.jpegThumbnail!==void 0)Q.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();if($.firstScanSidecar!==void 0)Q.uint32(146).bytes($.firstScanSidecar);if($.firstScanLength!==void 0)Q.uint32(152).uint32($.firstScanLength);if($.experimentGroupId!==void 0)Q.uint32(160).uint32($.experimentGroupId);if($.scansSidecar!==void 0)Q.uint32(170).bytes($.scansSidecar);if($.scanLengths!==void 0&&$.scanLengths.length!==0)for(let q of $.scanLengths)Q.uint32(176).uint32(q);if($.midQualityFileSha256!==void 0)Q.uint32(186).bytes($.midQualityFileSha256);if($.midQualityFileEncSha256!==void 0)Q.uint32(194).bytes($.midQualityFileEncSha256);if($.viewOnce!==void 0)Q.uint32(200).bool($.viewOnce);if($.thumbnailDirectPath!==void 0)Q.uint32(210).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)Q.uint32(218).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)Q.uint32(226).bytes($.thumbnailEncSha256);if($.staticUrl!==void 0)Q.uint32(234).string($.staticUrl);if($.annotations!==void 0&&$.annotations.length!==0)for(let q of $.annotations)V0.encode(q,Q.uint32(242).fork()).join();if($.imageSourceType!==void 0)Q.uint32(248).int32($.imageSourceType);if($.accessibilityLabel!==void 0)Q.uint32(258).string($.accessibilityLabel);if($.qrUrl!==void 0)Q.uint32(274).string($.qrUrl);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??CD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.url=Z.string();continue}case 2:{if(J!==18)break;K.mimetype=Z.string();continue}case 3:{if(J!==26)break;K.caption=Z.string();continue}case 4:{if(J!==34)break;K.fileSha256=Z.bytes();continue}case 5:{if(J!==40)break;K.fileLength=Z.uint64Value();continue}case 6:{if(J!==48)break;K.height=Z.uint32();continue}case 7:{if(J!==56)break;K.width=Z.uint32();continue}case 8:{if(J!==66)break;K.mediaKey=Z.bytes();continue}case 9:{if(J!==74)break;K.fileEncSha256=Z.bytes();continue}case 10:{if(J!==82)break;if(K.interactiveAnnotations===void 0)K.interactiveAnnotations=[];let V=V0.decode(Z,Z.uint32());if(V!==void 0)K.interactiveAnnotations.push(V);continue}case 11:{if(J!==90)break;K.directPath=Z.string();continue}case 12:{if(J!==96)break;K.mediaKeyTimestamp=Z.int64Value();continue}case 16:{if(J!==130)break;K.jpegThumbnail=Z.bytes();continue}case 17:{if(J!==138)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 18:{if(J!==146)break;K.firstScanSidecar=Z.bytes();continue}case 19:{if(J!==152)break;K.firstScanLength=Z.uint32();continue}case 20:{if(J!==160)break;K.experimentGroupId=Z.uint32();continue}case 21:{if(J!==170)break;K.scansSidecar=Z.bytes();continue}case 22:{if(J===176){if(K.scanLengths===void 0)K.scanLengths=[];K.scanLengths.push(Z.uint32());continue}if(J===178){if(K.scanLengths===void 0)K.scanLengths=[];let V=Z.uint32()+Z.pos;while(Z.pos<V)K.scanLengths.push(Z.uint32());continue}break}case 23:{if(J!==186)break;K.midQualityFileSha256=Z.bytes();continue}case 24:{if(J!==194)break;K.midQualityFileEncSha256=Z.bytes();continue}case 25:{if(J!==200)break;K.viewOnce=Z.bool();continue}case 26:{if(J!==210)break;K.thumbnailDirectPath=Z.string();continue}case 27:{if(J!==218)break;K.thumbnailSha256=Z.bytes();continue}case 28:{if(J!==226)break;K.thumbnailEncSha256=Z.bytes();continue}case 29:{if(J!==234)break;K.staticUrl=Z.string();continue}case 30:{if(J!==242)break;if(K.annotations===void 0)K.annotations=[];let V=V0.decode(Z,Z.uint32());if(V!==void 0)K.annotations.push(V);continue}case 31:{if(J!==248)break;K.imageSourceType=Z.int32();continue}case 32:{if(J!==258)break;K.accessibilityLabel=Z.string();continue}case 34:{if(J!==274)break;K.qrUrl=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return t.fromPartial($??{})},fromPartial($){let Q=CD();return Q.url=$.url??void 0,Q.mimetype=$.mimetype??void 0,Q.caption=$.caption??void 0,Q.fileSha256=$.fileSha256??void 0,Q.fileLength=$.fileLength??void 0,Q.height=$.height??void 0,Q.width=$.width??void 0,Q.mediaKey=$.mediaKey??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.interactiveAnnotations=$.interactiveAnnotations?.map((q)=>V0.fromPartial(q))||void 0,Q.directPath=$.directPath??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.firstScanSidecar=$.firstScanSidecar??void 0,Q.firstScanLength=$.firstScanLength??void 0,Q.experimentGroupId=$.experimentGroupId??void 0,Q.scansSidecar=$.scansSidecar??void 0,Q.scanLengths=$.scanLengths?.map((q)=>q)||void 0,Q.midQualityFileSha256=$.midQualityFileSha256??void 0,Q.midQualityFileEncSha256=$.midQualityFileEncSha256??void 0,Q.viewOnce=$.viewOnce??void 0,Q.thumbnailDirectPath=$.thumbnailDirectPath??void 0,Q.thumbnailSha256=$.thumbnailSha256??void 0,Q.thumbnailEncSha256=$.thumbnailEncSha256??void 0,Q.staticUrl=$.staticUrl??void 0,Q.annotations=$.annotations?.map((q)=>V0.fromPartial(q))||void 0,Q.imageSourceType=$.imageSourceType??void 0,Q.accessibilityLabel=$.accessibilityLabel??void 0,Q.qrUrl=$.qrUrl??void 0,Q}};function DD(){return{}}var Bq={encode($,Q=new z){if($.securityNotificationEnabled!==void 0)Q.uint32(8).bool($.securityNotificationEnabled);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??DD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.securityNotificationEnabled=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Bq.fromPartial($??{})},fromPartial($){let Q=DD();return Q.securityNotificationEnabled=$.securityNotificationEnabled??void 0,Q}};function FD(){return{}}var T0={encode($,Q=new z){if($.header!==void 0)Mq.encode($.header,Q.uint32(10).fork()).join();if($.body!==void 0)Rq.encode($.body,Q.uint32(18).fork()).join();if($.footer!==void 0)Eq.encode($.footer,Q.uint32(26).fork()).join();if($.bloksWidget!==void 0)E$.encode($.bloksWidget,Q.uint32(66).fork()).join();if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(122).fork()).join();if($.urlTrackingMap!==void 0)c$.encode($.urlTrackingMap,Q.uint32(130).fork()).join();if($.shopStorefrontMessage!==void 0)Iq.encode($.shopStorefrontMessage,Q.uint32(34).fork()).join();if($.collectionMessage!==void 0)Aq.encode($.collectionMessage,Q.uint32(42).fork()).join();if($.nativeFlowMessage!==void 0)Wq.encode($.nativeFlowMessage,Q.uint32(50).fork()).join();if($.carouselMessage!==void 0)Oq.encode($.carouselMessage,Q.uint32(58).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??FD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.header=Mq.decode(Z,Z.uint32(),K.header);continue}case 2:{if(J!==18)break;K.body=Rq.decode(Z,Z.uint32(),K.body);continue}case 3:{if(J!==26)break;K.footer=Eq.decode(Z,Z.uint32(),K.footer);continue}case 8:{if(J!==66)break;K.bloksWidget=E$.decode(Z,Z.uint32(),K.bloksWidget);continue}case 15:{if(J!==122)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 16:{if(J!==130)break;K.urlTrackingMap=c$.decode(Z,Z.uint32(),K.urlTrackingMap);continue}case 4:{if(J!==34)break;K.shopStorefrontMessage=Iq.decode(Z,Z.uint32(),K.shopStorefrontMessage);continue}case 5:{if(J!==42)break;K.collectionMessage=Aq.decode(Z,Z.uint32(),K.collectionMessage);continue}case 6:{if(J!==50)break;K.nativeFlowMessage=Wq.decode(Z,Z.uint32(),K.nativeFlowMessage);continue}case 7:{if(J!==58)break;K.carouselMessage=Oq.decode(Z,Z.uint32(),K.carouselMessage);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return T0.fromPartial($??{})},fromPartial($){let Q=FD();return Q.header=$.header!==void 0&&$.header!==null?Mq.fromPartial($.header):void 0,Q.body=$.body!==void 0&&$.body!==null?Rq.fromPartial($.body):void 0,Q.footer=$.footer!==void 0&&$.footer!==null?Eq.fromPartial($.footer):void 0,Q.bloksWidget=$.bloksWidget!==void 0&&$.bloksWidget!==null?E$.fromPartial($.bloksWidget):void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.urlTrackingMap=$.urlTrackingMap!==void 0&&$.urlTrackingMap!==null?c$.fromPartial($.urlTrackingMap):void 0,Q.shopStorefrontMessage=$.shopStorefrontMessage!==void 0&&$.shopStorefrontMessage!==null?Iq.fromPartial($.shopStorefrontMessage):void 0,Q.collectionMessage=$.collectionMessage!==void 0&&$.collectionMessage!==null?Aq.fromPartial($.collectionMessage):void 0,Q.nativeFlowMessage=$.nativeFlowMessage!==void 0&&$.nativeFlowMessage!==null?Wq.fromPartial($.nativeFlowMessage):void 0,Q.carouselMessage=$.carouselMessage!==void 0&&$.carouselMessage!==null?Oq.fromPartial($.carouselMessage):void 0,Q}};function PD(){return{}}var E$={encode($,Q=new z){if($.uuid!==void 0)Q.uint32(10).string($.uuid);if($.data!==void 0)Q.uint32(18).string($.data);if($.type!==void 0)Q.uint32(26).string($.type);if($.fallback!==void 0)Q.uint32(34).string($.fallback);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??PD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.uuid=Z.string();continue}case 2:{if(J!==18)break;K.data=Z.string();continue}case 3:{if(J!==26)break;K.type=Z.string();continue}case 4:{if(J!==34)break;K.fallback=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return E$.fromPartial($??{})},fromPartial($){let Q=PD();return Q.uuid=$.uuid??void 0,Q.data=$.data??void 0,Q.type=$.type??void 0,Q.fallback=$.fallback??void 0,Q}};function LD(){return{}}var Rq={encode($,Q=new z){if($.text!==void 0)Q.uint32(10).string($.text);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??LD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.text=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Rq.fromPartial($??{})},fromPartial($){let Q=LD();return Q.text=$.text??void 0,Q}};function xD(){return{}}var Oq={encode($,Q=new z){if($.cards!==void 0&&$.cards.length!==0)for(let q of $.cards)T0.encode(q,Q.uint32(10).fork()).join();if($.messageVersion!==void 0)Q.uint32(16).int32($.messageVersion);if($.carouselCardType!==void 0)Q.uint32(24).int32($.carouselCardType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??xD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.cards===void 0)K.cards=[];let V=T0.decode(Z,Z.uint32());if(V!==void 0)K.cards.push(V);continue}case 2:{if(J!==16)break;K.messageVersion=Z.int32();continue}case 3:{if(J!==24)break;K.carouselCardType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Oq.fromPartial($??{})},fromPartial($){let Q=xD();return Q.cards=$.cards?.map((q)=>T0.fromPartial(q))||void 0,Q.messageVersion=$.messageVersion??void 0,Q.carouselCardType=$.carouselCardType??void 0,Q}};function kD(){return{}}var Aq={encode($,Q=new z){if($.bizJid!==void 0)Q.uint32(10).string($.bizJid);if($.id!==void 0)Q.uint32(18).string($.id);if($.messageVersion!==void 0)Q.uint32(24).int32($.messageVersion);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??kD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.bizJid=Z.string();continue}case 2:{if(J!==18)break;K.id=Z.string();continue}case 3:{if(J!==24)break;K.messageVersion=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Aq.fromPartial($??{})},fromPartial($){let Q=kD();return Q.bizJid=$.bizJid??void 0,Q.id=$.id??void 0,Q.messageVersion=$.messageVersion??void 0,Q}};function ND(){return{}}var Eq={encode($,Q=new z){if($.text!==void 0)Q.uint32(10).string($.text);if($.hasMediaAttachment!==void 0)Q.uint32(24).bool($.hasMediaAttachment);if($.audioMessage!==void 0)O$.encode($.audioMessage,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ND();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.text=Z.string();continue}case 3:{if(J!==24)break;K.hasMediaAttachment=Z.bool();continue}case 2:{if(J!==18)break;K.audioMessage=O$.decode(Z,Z.uint32(),K.audioMessage);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Eq.fromPartial($??{})},fromPartial($){let Q=ND();return Q.text=$.text??void 0,Q.hasMediaAttachment=$.hasMediaAttachment??void 0,Q.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?O$.fromPartial($.audioMessage):void 0,Q}};function BD(){return{}}var Mq={encode($,Q=new z){if($.title!==void 0)Q.uint32(10).string($.title);if($.subtitle!==void 0)Q.uint32(18).string($.subtitle);if($.hasMediaAttachment!==void 0)Q.uint32(40).bool($.hasMediaAttachment);if($.bloksWidget!==void 0)E$.encode($.bloksWidget,Q.uint32(82).fork()).join();if($.documentMessage!==void 0)K0.encode($.documentMessage,Q.uint32(26).fork()).join();if($.imageMessage!==void 0)t.encode($.imageMessage,Q.uint32(34).fork()).join();if($.jpegThumbnail!==void 0)Q.uint32(50).bytes($.jpegThumbnail);if($.videoMessage!==void 0)e.encode($.videoMessage,Q.uint32(58).fork()).join();if($.locationMessage!==void 0)Q0.encode($.locationMessage,Q.uint32(66).fork()).join();if($.productMessage!==void 0)T$.encode($.productMessage,Q.uint32(74).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??BD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.title=Z.string();continue}case 2:{if(J!==18)break;K.subtitle=Z.string();continue}case 5:{if(J!==40)break;K.hasMediaAttachment=Z.bool();continue}case 10:{if(J!==82)break;K.bloksWidget=E$.decode(Z,Z.uint32(),K.bloksWidget);continue}case 3:{if(J!==26)break;K.documentMessage=K0.decode(Z,Z.uint32(),K.documentMessage);continue}case 4:{if(J!==34)break;K.imageMessage=t.decode(Z,Z.uint32(),K.imageMessage);continue}case 6:{if(J!==50)break;K.jpegThumbnail=Z.bytes();continue}case 7:{if(J!==58)break;K.videoMessage=e.decode(Z,Z.uint32(),K.videoMessage);continue}case 8:{if(J!==66)break;K.locationMessage=Q0.decode(Z,Z.uint32(),K.locationMessage);continue}case 9:{if(J!==74)break;K.productMessage=T$.decode(Z,Z.uint32(),K.productMessage);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Mq.fromPartial($??{})},fromPartial($){let Q=BD();return Q.title=$.title??void 0,Q.subtitle=$.subtitle??void 0,Q.hasMediaAttachment=$.hasMediaAttachment??void 0,Q.bloksWidget=$.bloksWidget!==void 0&&$.bloksWidget!==null?E$.fromPartial($.bloksWidget):void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?K0.fromPartial($.documentMessage):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?t.fromPartial($.imageMessage):void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?e.fromPartial($.videoMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?Q0.fromPartial($.locationMessage):void 0,Q.productMessage=$.productMessage!==void 0&&$.productMessage!==null?T$.fromPartial($.productMessage):void 0,Q}};function RD(){return{}}var Wq={encode($,Q=new z){if($.buttons!==void 0&&$.buttons.length!==0)for(let q of $.buttons)Sq.encode(q,Q.uint32(10).fork()).join();if($.messageParamsJson!==void 0)Q.uint32(18).string($.messageParamsJson);if($.messageVersion!==void 0)Q.uint32(24).int32($.messageVersion);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??RD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.buttons===void 0)K.buttons=[];let V=Sq.decode(Z,Z.uint32());if(V!==void 0)K.buttons.push(V);continue}case 2:{if(J!==18)break;K.messageParamsJson=Z.string();continue}case 3:{if(J!==24)break;K.messageVersion=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Wq.fromPartial($??{})},fromPartial($){let Q=RD();return Q.buttons=$.buttons?.map((q)=>Sq.fromPartial(q))||void 0,Q.messageParamsJson=$.messageParamsJson??void 0,Q.messageVersion=$.messageVersion??void 0,Q}};function OD(){return{}}var Sq={encode($,Q=new z){if($.name!==void 0)Q.uint32(10).string($.name);if($.buttonParamsJson!==void 0)Q.uint32(18).string($.buttonParamsJson);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??OD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.name=Z.string();continue}case 2:{if(J!==18)break;K.buttonParamsJson=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Sq.fromPartial($??{})},fromPartial($){let Q=OD();return Q.name=$.name??void 0,Q.buttonParamsJson=$.buttonParamsJson??void 0,Q}};function AD(){return{}}var Iq={encode($,Q=new z){if($.id!==void 0)Q.uint32(10).string($.id);if($.surface!==void 0)Q.uint32(16).int32($.surface);if($.messageVersion!==void 0)Q.uint32(24).int32($.messageVersion);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??AD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.id=Z.string();continue}case 2:{if(J!==16)break;K.surface=Z.int32();continue}case 3:{if(J!==24)break;K.messageVersion=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Iq.fromPartial($??{})},fromPartial($){let Q=AD();return Q.id=$.id??void 0,Q.surface=$.surface??void 0,Q.messageVersion=$.messageVersion??void 0,Q}};function ED(){return{}}var Tq={encode($,Q=new z){if($.body!==void 0)yq.encode($.body,Q.uint32(10).fork()).join();if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(122).fork()).join();if($.nativeFlowResponseMessage!==void 0)vq.encode($.nativeFlowResponseMessage,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ED();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.body=yq.decode(Z,Z.uint32(),K.body);continue}case 15:{if(J!==122)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 2:{if(J!==18)break;K.nativeFlowResponseMessage=vq.decode(Z,Z.uint32(),K.nativeFlowResponseMessage);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Tq.fromPartial($??{})},fromPartial($){let Q=ED();return Q.body=$.body!==void 0&&$.body!==null?yq.fromPartial($.body):void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.nativeFlowResponseMessage=$.nativeFlowResponseMessage!==void 0&&$.nativeFlowResponseMessage!==null?vq.fromPartial($.nativeFlowResponseMessage):void 0,Q}};function MD(){return{}}var yq={encode($,Q=new z){if($.text!==void 0)Q.uint32(10).string($.text);if($.format!==void 0)Q.uint32(16).int32($.format);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??MD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.text=Z.string();continue}case 2:{if(J!==16)break;K.format=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return yq.fromPartial($??{})},fromPartial($){let Q=MD();return Q.text=$.text??void 0,Q.format=$.format??void 0,Q}};function WD(){return{}}var vq={encode($,Q=new z){if($.name!==void 0)Q.uint32(10).string($.name);if($.paramsJson!==void 0)Q.uint32(18).string($.paramsJson);if($.version!==void 0)Q.uint32(24).int32($.version);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??WD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.name=Z.string();continue}case 2:{if(J!==18)break;K.paramsJson=Z.string();continue}case 3:{if(J!==24)break;K.version=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return vq.fromPartial($??{})},fromPartial($){let Q=WD();return Q.name=$.name??void 0,Q.paramsJson=$.paramsJson??void 0,Q.version=$.version??void 0,Q}};function SD(){return{}}var fq={encode($,Q=new z){if($.note!==void 0)Q.uint32(10).string($.note);if($.token!==void 0)Q.uint32(18).string($.token);if($.attachmentType!==void 0)Q.uint32(24).int32($.attachmentType);if($.attachmentMimetype!==void 0)Q.uint32(34).string($.attachmentMimetype);if($.attachmentMediaKey!==void 0)Q.uint32(42).bytes($.attachmentMediaKey);if($.attachmentMediaKeyTimestamp!==void 0)Q.uint32(48).int64($.attachmentMediaKeyTimestamp);if($.attachmentFileSha256!==void 0)Q.uint32(58).bytes($.attachmentFileSha256);if($.attachmentFileEncSha256!==void 0)Q.uint32(66).bytes($.attachmentFileEncSha256);if($.attachmentDirectPath!==void 0)Q.uint32(74).string($.attachmentDirectPath);if($.attachmentJpegThumbnail!==void 0)Q.uint32(82).bytes($.attachmentJpegThumbnail);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??SD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.note=Z.string();continue}case 2:{if(J!==18)break;K.token=Z.string();continue}case 3:{if(J!==24)break;K.attachmentType=Z.int32();continue}case 4:{if(J!==34)break;K.attachmentMimetype=Z.string();continue}case 5:{if(J!==42)break;K.attachmentMediaKey=Z.bytes();continue}case 6:{if(J!==48)break;K.attachmentMediaKeyTimestamp=Z.int64Value();continue}case 7:{if(J!==58)break;K.attachmentFileSha256=Z.bytes();continue}case 8:{if(J!==66)break;K.attachmentFileEncSha256=Z.bytes();continue}case 9:{if(J!==74)break;K.attachmentDirectPath=Z.string();continue}case 10:{if(J!==82)break;K.attachmentJpegThumbnail=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return fq.fromPartial($??{})},fromPartial($){let Q=SD();return Q.note=$.note??void 0,Q.token=$.token??void 0,Q.attachmentType=$.attachmentType??void 0,Q.attachmentMimetype=$.attachmentMimetype??void 0,Q.attachmentMediaKey=$.attachmentMediaKey??void 0,Q.attachmentMediaKeyTimestamp=$.attachmentMediaKeyTimestamp??void 0,Q.attachmentFileSha256=$.attachmentFileSha256??void 0,Q.attachmentFileEncSha256=$.attachmentFileEncSha256??void 0,Q.attachmentDirectPath=$.attachmentDirectPath??void 0,Q.attachmentJpegThumbnail=$.attachmentJpegThumbnail??void 0,Q}};function ID(){return{}}var _q={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();if($.keepType!==void 0)Q.uint32(16).int32($.keepType);if($.timestampMs!==void 0)Q.uint32(24).int64($.timestampMs);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ID();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==16)break;K.keepType=Z.int32();continue}case 3:{if(J!==24)break;K.timestampMs=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return _q.fromPartial($??{})},fromPartial($){let Q=ID();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q.keepType=$.keepType??void 0,Q.timestampMs=$.timestampMs??void 0,Q}};function TD(){return{}}var hq={encode($,Q=new z){if($.paymentLinkMetadata!==void 0)I$.encode($.paymentLinkMetadata,Q.uint32(10).fork()).join();if($.urlMetadata!==void 0)H9.encode($.urlMetadata,Q.uint32(18).fork()).join();if($.fbExperimentId!==void 0)Q.uint32(24).uint32($.fbExperimentId);if($.linkMediaDuration!==void 0)Q.uint32(32).uint32($.linkMediaDuration);if($.socialMediaPostType!==void 0)Q.uint32(40).int32($.socialMediaPostType);if($.linkInlineVideoMuted!==void 0)Q.uint32(48).bool($.linkInlineVideoMuted);if($.videoContentUrl!==void 0)Q.uint32(58).string($.videoContentUrl);if($.musicMetadata!==void 0)H0.encode($.musicMetadata,Q.uint32(66).fork()).join();if($.videoContentCaption!==void 0)Q.uint32(74).string($.videoContentCaption);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??TD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.paymentLinkMetadata=I$.decode(Z,Z.uint32(),K.paymentLinkMetadata);continue}case 2:{if(J!==18)break;K.urlMetadata=H9.decode(Z,Z.uint32(),K.urlMetadata);continue}case 3:{if(J!==24)break;K.fbExperimentId=Z.uint32();continue}case 4:{if(J!==32)break;K.linkMediaDuration=Z.uint32();continue}case 5:{if(J!==40)break;K.socialMediaPostType=Z.int32();continue}case 6:{if(J!==48)break;K.linkInlineVideoMuted=Z.bool();continue}case 7:{if(J!==58)break;K.videoContentUrl=Z.string();continue}case 8:{if(J!==66)break;K.musicMetadata=H0.decode(Z,Z.uint32(),K.musicMetadata);continue}case 9:{if(J!==74)break;K.videoContentCaption=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return hq.fromPartial($??{})},fromPartial($){let Q=TD();return Q.paymentLinkMetadata=$.paymentLinkMetadata!==void 0&&$.paymentLinkMetadata!==null?I$.fromPartial($.paymentLinkMetadata):void 0,Q.urlMetadata=$.urlMetadata!==void 0&&$.urlMetadata!==null?H9.fromPartial($.urlMetadata):void 0,Q.fbExperimentId=$.fbExperimentId??void 0,Q.linkMediaDuration=$.linkMediaDuration??void 0,Q.socialMediaPostType=$.socialMediaPostType??void 0,Q.linkInlineVideoMuted=$.linkInlineVideoMuted??void 0,Q.videoContentUrl=$.videoContentUrl??void 0,Q.musicMetadata=$.musicMetadata!==void 0&&$.musicMetadata!==null?H0.fromPartial($.musicMetadata):void 0,Q.videoContentCaption=$.videoContentCaption??void 0,Q}};function yD(){return{}}var lq={encode($,Q=new z){if($.title!==void 0)Q.uint32(10).string($.title);if($.description!==void 0)Q.uint32(18).string($.description);if($.buttonText!==void 0)Q.uint32(26).string($.buttonText);if($.listType!==void 0)Q.uint32(32).int32($.listType);if($.sections!==void 0&&$.sections.length!==0)for(let q of $.sections)dq.encode(q,Q.uint32(42).fork()).join();if($.productListInfo!==void 0)wq.encode($.productListInfo,Q.uint32(50).fork()).join();if($.footerText!==void 0)Q.uint32(58).string($.footerText);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(66).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??yD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.title=Z.string();continue}case 2:{if(J!==18)break;K.description=Z.string();continue}case 3:{if(J!==26)break;K.buttonText=Z.string();continue}case 4:{if(J!==32)break;K.listType=Z.int32();continue}case 5:{if(J!==42)break;if(K.sections===void 0)K.sections=[];let V=dq.decode(Z,Z.uint32());if(V!==void 0)K.sections.push(V);continue}case 6:{if(J!==50)break;K.productListInfo=wq.decode(Z,Z.uint32(),K.productListInfo);continue}case 7:{if(J!==58)break;K.footerText=Z.string();continue}case 8:{if(J!==66)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return lq.fromPartial($??{})},fromPartial($){let Q=yD();return Q.title=$.title??void 0,Q.description=$.description??void 0,Q.buttonText=$.buttonText??void 0,Q.listType=$.listType??void 0,Q.sections=$.sections?.map((q)=>dq.fromPartial(q))||void 0,Q.productListInfo=$.productListInfo!==void 0&&$.productListInfo!==null?wq.fromPartial($.productListInfo):void 0,Q.footerText=$.footerText??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function vD(){return{}}var pq={encode($,Q=new z){if($.productId!==void 0)Q.uint32(10).string($.productId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??vD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.productId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return pq.fromPartial($??{})},fromPartial($){let Q=vD();return Q.productId=$.productId??void 0,Q}};function fD(){return{}}var uq={encode($,Q=new z){if($.productId!==void 0)Q.uint32(10).string($.productId);if($.jpegThumbnail!==void 0)Q.uint32(18).bytes($.jpegThumbnail);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??fD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.productId=Z.string();continue}case 2:{if(J!==18)break;K.jpegThumbnail=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return uq.fromPartial($??{})},fromPartial($){let Q=fD();return Q.productId=$.productId??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q}};function _D(){return{}}var wq={encode($,Q=new z){if($.productSections!==void 0&&$.productSections.length!==0)for(let q of $.productSections)jq.encode(q,Q.uint32(10).fork()).join();if($.headerImage!==void 0)uq.encode($.headerImage,Q.uint32(18).fork()).join();if($.businessOwnerJid!==void 0)Q.uint32(26).string($.businessOwnerJid);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??_D();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.productSections===void 0)K.productSections=[];let V=jq.decode(Z,Z.uint32());if(V!==void 0)K.productSections.push(V);continue}case 2:{if(J!==18)break;K.headerImage=uq.decode(Z,Z.uint32(),K.headerImage);continue}case 3:{if(J!==26)break;K.businessOwnerJid=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return wq.fromPartial($??{})},fromPartial($){let Q=_D();return Q.productSections=$.productSections?.map((q)=>jq.fromPartial(q))||void 0,Q.headerImage=$.headerImage!==void 0&&$.headerImage!==null?uq.fromPartial($.headerImage):void 0,Q.businessOwnerJid=$.businessOwnerJid??void 0,Q}};function hD(){return{}}var jq={encode($,Q=new z){if($.title!==void 0)Q.uint32(10).string($.title);if($.products!==void 0&&$.products.length!==0)for(let q of $.products)pq.encode(q,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??hD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.title=Z.string();continue}case 2:{if(J!==18)break;if(K.products===void 0)K.products=[];let V=pq.decode(Z,Z.uint32());if(V!==void 0)K.products.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return jq.fromPartial($??{})},fromPartial($){let Q=hD();return Q.title=$.title??void 0,Q.products=$.products?.map((q)=>pq.fromPartial(q))||void 0,Q}};function lD(){return{}}var cq={encode($,Q=new z){if($.title!==void 0)Q.uint32(10).string($.title);if($.description!==void 0)Q.uint32(18).string($.description);if($.rowId!==void 0)Q.uint32(26).string($.rowId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??lD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.title=Z.string();continue}case 2:{if(J!==18)break;K.description=Z.string();continue}case 3:{if(J!==26)break;K.rowId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return cq.fromPartial($??{})},fromPartial($){let Q=lD();return Q.title=$.title??void 0,Q.description=$.description??void 0,Q.rowId=$.rowId??void 0,Q}};function pD(){return{}}var dq={encode($,Q=new z){if($.title!==void 0)Q.uint32(10).string($.title);if($.rows!==void 0&&$.rows.length!==0)for(let q of $.rows)cq.encode(q,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??pD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.title=Z.string();continue}case 2:{if(J!==18)break;if(K.rows===void 0)K.rows=[];let V=cq.decode(Z,Z.uint32());if(V!==void 0)K.rows.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return dq.fromPartial($??{})},fromPartial($){let Q=pD();return Q.title=$.title??void 0,Q.rows=$.rows?.map((q)=>cq.fromPartial(q))||void 0,Q}};function uD(){return{}}var nq={encode($,Q=new z){if($.title!==void 0)Q.uint32(10).string($.title);if($.listType!==void 0)Q.uint32(16).int32($.listType);if($.singleSelectReply!==void 0)bq.encode($.singleSelectReply,Q.uint32(26).fork()).join();if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(34).fork()).join();if($.description!==void 0)Q.uint32(42).string($.description);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??uD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.title=Z.string();continue}case 2:{if(J!==16)break;K.listType=Z.int32();continue}case 3:{if(J!==26)break;K.singleSelectReply=bq.decode(Z,Z.uint32(),K.singleSelectReply);continue}case 4:{if(J!==34)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 5:{if(J!==42)break;K.description=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return nq.fromPartial($??{})},fromPartial($){let Q=uD();return Q.title=$.title??void 0,Q.listType=$.listType??void 0,Q.singleSelectReply=$.singleSelectReply!==void 0&&$.singleSelectReply!==null?bq.fromPartial($.singleSelectReply):void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.description=$.description??void 0,Q}};function wD(){return{}}var bq={encode($,Q=new z){if($.selectedRowId!==void 0)Q.uint32(10).string($.selectedRowId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??wD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.selectedRowId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return bq.fromPartial($??{})},fromPartial($){let Q=wD();return Q.selectedRowId=$.selectedRowId??void 0,Q}};function jD(){return{}}var M$={encode($,Q=new z){if($.degreesLatitude!==void 0)Q.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)Q.uint32(17).double($.degreesLongitude);if($.accuracyInMeters!==void 0)Q.uint32(24).uint32($.accuracyInMeters);if($.speedInMps!==void 0)Q.uint32(37).float($.speedInMps);if($.degreesClockwiseFromMagneticNorth!==void 0)Q.uint32(40).uint32($.degreesClockwiseFromMagneticNorth);if($.caption!==void 0)Q.uint32(50).string($.caption);if($.sequenceNumber!==void 0)Q.uint32(56).int64($.sequenceNumber);if($.timeOffset!==void 0)Q.uint32(64).uint32($.timeOffset);if($.jpegThumbnail!==void 0)Q.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??jD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==9)break;K.degreesLatitude=Z.double();continue}case 2:{if(J!==17)break;K.degreesLongitude=Z.double();continue}case 3:{if(J!==24)break;K.accuracyInMeters=Z.uint32();continue}case 4:{if(J!==37)break;K.speedInMps=Z.float();continue}case 5:{if(J!==40)break;K.degreesClockwiseFromMagneticNorth=Z.uint32();continue}case 6:{if(J!==50)break;K.caption=Z.string();continue}case 7:{if(J!==56)break;K.sequenceNumber=Z.int64Value();continue}case 8:{if(J!==64)break;K.timeOffset=Z.uint32();continue}case 16:{if(J!==130)break;K.jpegThumbnail=Z.bytes();continue}case 17:{if(J!==138)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return M$.fromPartial($??{})},fromPartial($){let Q=jD();return Q.degreesLatitude=$.degreesLatitude??void 0,Q.degreesLongitude=$.degreesLongitude??void 0,Q.accuracyInMeters=$.accuracyInMeters??void 0,Q.speedInMps=$.speedInMps??void 0,Q.degreesClockwiseFromMagneticNorth=$.degreesClockwiseFromMagneticNorth??void 0,Q.caption=$.caption??void 0,Q.sequenceNumber=$.sequenceNumber??void 0,Q.timeOffset=$.timeOffset??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function cD(){return{}}var Q0={encode($,Q=new z){if($.degreesLatitude!==void 0)Q.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)Q.uint32(17).double($.degreesLongitude);if($.name!==void 0)Q.uint32(26).string($.name);if($.address!==void 0)Q.uint32(34).string($.address);if($.url!==void 0)Q.uint32(42).string($.url);if($.isLive!==void 0)Q.uint32(48).bool($.isLive);if($.accuracyInMeters!==void 0)Q.uint32(56).uint32($.accuracyInMeters);if($.speedInMps!==void 0)Q.uint32(69).float($.speedInMps);if($.degreesClockwiseFromMagneticNorth!==void 0)Q.uint32(72).uint32($.degreesClockwiseFromMagneticNorth);if($.comment!==void 0)Q.uint32(90).string($.comment);if($.jpegThumbnail!==void 0)Q.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??cD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==9)break;K.degreesLatitude=Z.double();continue}case 2:{if(J!==17)break;K.degreesLongitude=Z.double();continue}case 3:{if(J!==26)break;K.name=Z.string();continue}case 4:{if(J!==34)break;K.address=Z.string();continue}case 5:{if(J!==42)break;K.url=Z.string();continue}case 6:{if(J!==48)break;K.isLive=Z.bool();continue}case 7:{if(J!==56)break;K.accuracyInMeters=Z.uint32();continue}case 8:{if(J!==69)break;K.speedInMps=Z.float();continue}case 9:{if(J!==72)break;K.degreesClockwiseFromMagneticNorth=Z.uint32();continue}case 11:{if(J!==90)break;K.comment=Z.string();continue}case 16:{if(J!==130)break;K.jpegThumbnail=Z.bytes();continue}case 17:{if(J!==138)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Q0.fromPartial($??{})},fromPartial($){let Q=cD();return Q.degreesLatitude=$.degreesLatitude??void 0,Q.degreesLongitude=$.degreesLongitude??void 0,Q.name=$.name??void 0,Q.address=$.address??void 0,Q.url=$.url??void 0,Q.isLive=$.isLive??void 0,Q.accuracyInMeters=$.accuracyInMeters??void 0,Q.speedInMps=$.speedInMps??void 0,Q.degreesClockwiseFromMagneticNorth=$.degreesClockwiseFromMagneticNorth??void 0,Q.comment=$.comment??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function dD(){return{}}var oq={encode($,Q=new z){if($.thumbnailDirectPath!==void 0)Q.uint32(10).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)Q.uint32(18).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)Q.uint32(26).bytes($.thumbnailEncSha256);if($.mediaKey!==void 0)Q.uint32(34).bytes($.mediaKey);if($.mediaKeyTimestamp!==void 0)Q.uint32(40).int64($.mediaKeyTimestamp);if($.thumbnailHeight!==void 0)Q.uint32(48).uint32($.thumbnailHeight);if($.thumbnailWidth!==void 0)Q.uint32(56).uint32($.thumbnailWidth);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??dD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.thumbnailDirectPath=Z.string();continue}case 2:{if(J!==18)break;K.thumbnailSha256=Z.bytes();continue}case 3:{if(J!==26)break;K.thumbnailEncSha256=Z.bytes();continue}case 4:{if(J!==34)break;K.mediaKey=Z.bytes();continue}case 5:{if(J!==40)break;K.mediaKeyTimestamp=Z.int64Value();continue}case 6:{if(J!==48)break;K.thumbnailHeight=Z.uint32();continue}case 7:{if(J!==56)break;K.thumbnailWidth=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return oq.fromPartial($??{})},fromPartial($){let Q=dD();return Q.thumbnailDirectPath=$.thumbnailDirectPath??void 0,Q.thumbnailSha256=$.thumbnailSha256??void 0,Q.thumbnailEncSha256=$.thumbnailEncSha256??void 0,Q.mediaKey=$.mediaKey??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.thumbnailHeight=$.thumbnailHeight??void 0,Q.thumbnailWidth=$.thumbnailWidth??void 0,Q}};function nD(){return{}}var iq={encode($,Q=new z){if($.userJidString!==void 0)Q.uint32(10).string($.userJidString);if($.verified!==void 0)Q.uint32(16).bool($.verified);if($.verifiedIdentityKey!==void 0)Q.uint32(26).bytes($.verifiedIdentityKey);if($.actionSeq!==void 0)Q.uint32(32).uint64($.actionSeq);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??nD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.userJidString=Z.string();continue}case 2:{if(J!==16)break;K.verified=Z.bool();continue}case 3:{if(J!==26)break;K.verifiedIdentityKey=Z.bytes();continue}case 4:{if(J!==32)break;K.actionSeq=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return iq.fromPartial($??{})},fromPartial($){let Q=nD();return Q.userJidString=$.userJidString??void 0,Q.verified=$.verified??void 0,Q.verifiedIdentityKey=$.verifiedIdentityKey??void 0,Q.actionSeq=$.actionSeq??void 0,Q}};function bD(){return{}}var W$={encode($,Q=new z){if($.mimetype!==void 0)Q.uint32(10).string($.mimetype);if($.fileSha256!==void 0)Q.uint32(18).bytes($.fileSha256);if($.mediaKey!==void 0)Q.uint32(26).bytes($.mediaKey);if($.fileEncSha256!==void 0)Q.uint32(34).bytes($.fileEncSha256);if($.directPath!==void 0)Q.uint32(42).string($.directPath);if($.mediaKeyTimestamp!==void 0)Q.uint32(48).int64($.mediaKeyTimestamp);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(58).fork()).join();if($.messageHistoryMetadata!==void 0)S$.encode($.messageHistoryMetadata,Q.uint32(66).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??bD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mimetype=Z.string();continue}case 2:{if(J!==18)break;K.fileSha256=Z.bytes();continue}case 3:{if(J!==26)break;K.mediaKey=Z.bytes();continue}case 4:{if(J!==34)break;K.fileEncSha256=Z.bytes();continue}case 5:{if(J!==42)break;K.directPath=Z.string();continue}case 6:{if(J!==48)break;K.mediaKeyTimestamp=Z.int64Value();continue}case 7:{if(J!==58)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 8:{if(J!==66)break;K.messageHistoryMetadata=S$.decode(Z,Z.uint32(),K.messageHistoryMetadata);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return W$.fromPartial($??{})},fromPartial($){let Q=bD();return Q.mimetype=$.mimetype??void 0,Q.fileSha256=$.fileSha256??void 0,Q.mediaKey=$.mediaKey??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.directPath=$.directPath??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.messageHistoryMetadata=$.messageHistoryMetadata!==void 0&&$.messageHistoryMetadata!==null?S$.fromPartial($.messageHistoryMetadata):void 0,Q}};function oD(){return{}}var S$={encode($,Q=new z){if($.historyReceivers!==void 0&&$.historyReceivers.length!==0)for(let q of $.historyReceivers)Q.uint32(10).string(q);if($.oldestMessageTimestampInWindow!==void 0)Q.uint32(16).int64($.oldestMessageTimestampInWindow);if($.messageCount!==void 0)Q.uint32(24).int64($.messageCount);if($.nonHistoryReceivers!==void 0&&$.nonHistoryReceivers.length!==0)for(let q of $.nonHistoryReceivers)Q.uint32(34).string(q);if($.oldestMessageTimestampInBundle!==void 0)Q.uint32(40).int64($.oldestMessageTimestampInBundle);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??oD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.historyReceivers===void 0)K.historyReceivers=[];let V=Z.string();if(V!==void 0)K.historyReceivers.push(V);continue}case 2:{if(J!==16)break;K.oldestMessageTimestampInWindow=Z.int64Value();continue}case 3:{if(J!==24)break;K.messageCount=Z.int64Value();continue}case 4:{if(J!==34)break;if(K.nonHistoryReceivers===void 0)K.nonHistoryReceivers=[];let V=Z.string();if(V!==void 0)K.nonHistoryReceivers.push(V);continue}case 5:{if(J!==40)break;K.oldestMessageTimestampInBundle=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return S$.fromPartial($??{})},fromPartial($){let Q=oD();return Q.historyReceivers=$.historyReceivers?.map((q)=>q)||void 0,Q.oldestMessageTimestampInWindow=$.oldestMessageTimestampInWindow??void 0,Q.messageCount=$.messageCount??void 0,Q.nonHistoryReceivers=$.nonHistoryReceivers?.map((q)=>q)||void 0,Q.oldestMessageTimestampInBundle=$.oldestMessageTimestampInBundle??void 0,Q}};function iD(){return{}}var mq={encode($,Q=new z){if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(10).fork()).join();if($.messageHistoryMetadata!==void 0)S$.encode($.messageHistoryMetadata,Q.uint32(18).fork()).join();if($.botHistoryShareSyncMetadata!==void 0)l8.encode($.botHistoryShareSyncMetadata,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??iD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 2:{if(J!==18)break;K.messageHistoryMetadata=S$.decode(Z,Z.uint32(),K.messageHistoryMetadata);continue}case 3:{if(J!==26)break;K.botHistoryShareSyncMetadata=l8.decode(Z,Z.uint32(),K.botHistoryShareSyncMetadata);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return mq.fromPartial($??{})},fromPartial($){let Q=iD();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.messageHistoryMetadata=$.messageHistoryMetadata!==void 0&&$.messageHistoryMetadata!==null?S$.fromPartial($.messageHistoryMetadata):void 0,Q.botHistoryShareSyncMetadata=$.botHistoryShareSyncMetadata!==void 0&&$.botHistoryShareSyncMetadata!==null?l8.fromPartial($.botHistoryShareSyncMetadata):void 0,Q}};function mD(){return{}}var gq={encode($,Q=new z){if($.embeddedMusic!==void 0)H0.encode($.embeddedMusic,Q.uint32(10).fork()).join();if($.songUri!==void 0)Q.uint32(18).string($.songUri);if($.artworkUri!==void 0)Q.uint32(26).string($.artworkUri);if($.style!==void 0)Q.uint32(32).int32($.style);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(42).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??mD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.embeddedMusic=H0.decode(Z,Z.uint32(),K.embeddedMusic);continue}case 2:{if(J!==18)break;K.songUri=Z.string();continue}case 3:{if(J!==26)break;K.artworkUri=Z.string();continue}case 4:{if(J!==32)break;K.style=Z.int32();continue}case 5:{if(J!==42)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return gq.fromPartial($??{})},fromPartial($){let Q=mD();return Q.embeddedMusic=$.embeddedMusic!==void 0&&$.embeddedMusic!==null?H0.fromPartial($.embeddedMusic):void 0,Q.songUri=$.songUri??void 0,Q.artworkUri=$.artworkUri??void 0,Q.style=$.style??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function gD(){return{}}var rq={encode($,Q=new z){if($.newsletterJid!==void 0)Q.uint32(10).string($.newsletterJid);if($.newsletterName!==void 0)Q.uint32(18).string($.newsletterName);if($.jpegThumbnail!==void 0)Q.uint32(26).bytes($.jpegThumbnail);if($.caption!==void 0)Q.uint32(34).string($.caption);if($.inviteExpiration!==void 0)Q.uint32(40).int64($.inviteExpiration);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(50).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??gD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.newsletterJid=Z.string();continue}case 2:{if(J!==18)break;K.newsletterName=Z.string();continue}case 3:{if(J!==26)break;K.jpegThumbnail=Z.bytes();continue}case 4:{if(J!==34)break;K.caption=Z.string();continue}case 5:{if(J!==40)break;K.inviteExpiration=Z.int64Value();continue}case 6:{if(J!==50)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return rq.fromPartial($??{})},fromPartial($){let Q=gD();return Q.newsletterJid=$.newsletterJid??void 0,Q.newsletterName=$.newsletterName??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.caption=$.caption??void 0,Q.inviteExpiration=$.inviteExpiration??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function rD(){return{}}var tq={encode($,Q=new z){if($.newsletterJid!==void 0)Q.uint32(10).string($.newsletterJid);if($.newsletterName!==void 0)Q.uint32(18).string($.newsletterName);if($.jpegThumbnail!==void 0)Q.uint32(26).bytes($.jpegThumbnail);if($.caption!==void 0)Q.uint32(34).string($.caption);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(42).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??rD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.newsletterJid=Z.string();continue}case 2:{if(J!==18)break;K.newsletterName=Z.string();continue}case 3:{if(J!==26)break;K.jpegThumbnail=Z.bytes();continue}case 4:{if(J!==34)break;K.caption=Z.string();continue}case 5:{if(J!==42)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return tq.fromPartial($??{})},fromPartial($){let Q=rD();return Q.newsletterJid=$.newsletterJid??void 0,Q.newsletterName=$.newsletterName??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.caption=$.caption??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function tD(){return{}}var aq={encode($,Q=new z){if($.orderId!==void 0)Q.uint32(10).string($.orderId);if($.thumbnail!==void 0)Q.uint32(18).bytes($.thumbnail);if($.itemCount!==void 0)Q.uint32(24).int32($.itemCount);if($.status!==void 0)Q.uint32(32).int32($.status);if($.surface!==void 0)Q.uint32(40).int32($.surface);if($.message!==void 0)Q.uint32(50).string($.message);if($.orderTitle!==void 0)Q.uint32(58).string($.orderTitle);if($.sellerJid!==void 0)Q.uint32(66).string($.sellerJid);if($.token!==void 0)Q.uint32(74).string($.token);if($.totalAmount1000!==void 0)Q.uint32(80).int64($.totalAmount1000);if($.totalCurrencyCode!==void 0)Q.uint32(90).string($.totalCurrencyCode);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();if($.messageVersion!==void 0)Q.uint32(96).int32($.messageVersion);if($.orderRequestMessageId!==void 0)N.encode($.orderRequestMessageId,Q.uint32(106).fork()).join();if($.catalogType!==void 0)Q.uint32(122).string($.catalogType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??tD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.orderId=Z.string();continue}case 2:{if(J!==18)break;K.thumbnail=Z.bytes();continue}case 3:{if(J!==24)break;K.itemCount=Z.int32();continue}case 4:{if(J!==32)break;K.status=Z.int32();continue}case 5:{if(J!==40)break;K.surface=Z.int32();continue}case 6:{if(J!==50)break;K.message=Z.string();continue}case 7:{if(J!==58)break;K.orderTitle=Z.string();continue}case 8:{if(J!==66)break;K.sellerJid=Z.string();continue}case 9:{if(J!==74)break;K.token=Z.string();continue}case 10:{if(J!==80)break;K.totalAmount1000=Z.int64Value();continue}case 11:{if(J!==90)break;K.totalCurrencyCode=Z.string();continue}case 17:{if(J!==138)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 12:{if(J!==96)break;K.messageVersion=Z.int32();continue}case 13:{if(J!==106)break;K.orderRequestMessageId=N.decode(Z,Z.uint32(),K.orderRequestMessageId);continue}case 15:{if(J!==122)break;K.catalogType=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return aq.fromPartial($??{})},fromPartial($){let Q=tD();return Q.orderId=$.orderId??void 0,Q.thumbnail=$.thumbnail??void 0,Q.itemCount=$.itemCount??void 0,Q.status=$.status??void 0,Q.surface=$.surface??void 0,Q.message=$.message??void 0,Q.orderTitle=$.orderTitle??void 0,Q.sellerJid=$.sellerJid??void 0,Q.token=$.token??void 0,Q.totalAmount1000=$.totalAmount1000??void 0,Q.totalCurrencyCode=$.totalCurrencyCode??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.messageVersion=$.messageVersion??void 0,Q.orderRequestMessageId=$.orderRequestMessageId!==void 0&&$.orderRequestMessageId!==null?N.fromPartial($.orderRequestMessageId):void 0,Q.catalogType=$.catalogType??void 0,Q}};function aD(){return{}}var sq={encode($,Q=new z){if($.type!==void 0)Q.uint32(8).uint32($.type);if($.platform!==void 0)Q.uint32(18).string($.platform);if($.messageParamsJson!==void 0)Q.uint32(26).string($.messageParamsJson);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??aD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.type=Z.uint32();continue}case 2:{if(J!==18)break;K.platform=Z.string();continue}case 3:{if(J!==26)break;K.messageParamsJson=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return sq.fromPartial($??{})},fromPartial($){let Q=aD();return Q.type=$.type??void 0,Q.platform=$.platform??void 0,Q.messageParamsJson=$.messageParamsJson??void 0,Q}};function sD(){return{}}var eq={encode($,Q=new z){if($.serviceType!==void 0)Q.uint32(8).int32($.serviceType);if($.expiryTimestamp!==void 0)Q.uint32(16).int64($.expiryTimestamp);if($.incentiveEligible!==void 0)Q.uint32(24).bool($.incentiveEligible);if($.referralId!==void 0)Q.uint32(34).string($.referralId);if($.inviteType!==void 0)Q.uint32(40).int32($.inviteType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??sD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.serviceType=Z.int32();continue}case 2:{if(J!==16)break;K.expiryTimestamp=Z.int64Value();continue}case 3:{if(J!==24)break;K.incentiveEligible=Z.bool();continue}case 4:{if(J!==34)break;K.referralId=Z.string();continue}case 5:{if(J!==40)break;K.inviteType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return eq.fromPartial($??{})},fromPartial($){let Q=sD();return Q.serviceType=$.serviceType??void 0,Q.expiryTimestamp=$.expiryTimestamp??void 0,Q.incentiveEligible=$.incentiveEligible??void 0,Q.referralId=$.referralId??void 0,Q.inviteType=$.inviteType??void 0,Q}};function eD(){return{}}var I$={encode($,Q=new z){if($.button!==void 0)$X.encode($.button,Q.uint32(10).fork()).join();if($.header!==void 0)QX.encode($.header,Q.uint32(18).fork()).join();if($.provider!==void 0)ZX.encode($.provider,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??eD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.button=$X.decode(Z,Z.uint32(),K.button);continue}case 2:{if(J!==18)break;K.header=QX.decode(Z,Z.uint32(),K.header);continue}case 3:{if(J!==26)break;K.provider=ZX.decode(Z,Z.uint32(),K.provider);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return I$.fromPartial($??{})},fromPartial($){let Q=eD();return Q.button=$.button!==void 0&&$.button!==null?$X.fromPartial($.button):void 0,Q.header=$.header!==void 0&&$.header!==null?QX.fromPartial($.header):void 0,Q.provider=$.provider!==void 0&&$.provider!==null?ZX.fromPartial($.provider):void 0,Q}};function $F(){return{}}var $X={encode($,Q=new z){if($.displayText!==void 0)Q.uint32(10).string($.displayText);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??$F();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayText=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return $X.fromPartial($??{})},fromPartial($){let Q=$F();return Q.displayText=$.displayText??void 0,Q}};function QF(){return{}}var QX={encode($,Q=new z){if($.headerType!==void 0)Q.uint32(8).int32($.headerType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??QF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.headerType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return QX.fromPartial($??{})},fromPartial($){let Q=QF();return Q.headerType=$.headerType??void 0,Q}};function ZF(){return{}}var ZX={encode($,Q=new z){if($.paramsJson!==void 0)Q.uint32(10).string($.paramsJson);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ZF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.paramsJson=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return ZX.fromPartial($??{})},fromPartial($){let Q=ZF();return Q.paramsJson=$.paramsJson??void 0,Q}};function JF(){return{}}var JX={encode($,Q=new z){if($.reminderId!==void 0)Q.uint32(10).string($.reminderId);if($.instanceId!==void 0)Q.uint32(18).string($.instanceId);if($.description!==void 0)Q.uint32(26).string($.description);if($.frequency!==void 0)Q.uint32(32).int32($.frequency);if($.status!==void 0)Q.uint32(40).int32($.status);if($.payeeVpa!==void 0)Q.uint32(50).string($.payeeVpa);if($.payeeJid!==void 0)Q.uint32(58).string($.payeeJid);if($.payerJid!==void 0)Q.uint32(66).string($.payerJid);if($.amount!==void 0)$0.encode($.amount,Q.uint32(74).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??JF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.reminderId=Z.string();continue}case 2:{if(J!==18)break;K.instanceId=Z.string();continue}case 3:{if(J!==26)break;K.description=Z.string();continue}case 4:{if(J!==32)break;K.frequency=Z.int32();continue}case 5:{if(J!==40)break;K.status=Z.int32();continue}case 6:{if(J!==50)break;K.payeeVpa=Z.string();continue}case 7:{if(J!==58)break;K.payeeJid=Z.string();continue}case 8:{if(J!==66)break;K.payerJid=Z.string();continue}case 9:{if(J!==74)break;K.amount=$0.decode(Z,Z.uint32(),K.amount);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return JX.fromPartial($??{})},fromPartial($){let Q=JF();return Q.reminderId=$.reminderId??void 0,Q.instanceId=$.instanceId??void 0,Q.description=$.description??void 0,Q.frequency=$.frequency??void 0,Q.status=$.status??void 0,Q.payeeVpa=$.payeeVpa??void 0,Q.payeeJid=$.payeeJid??void 0,Q.payerJid=$.payerJid??void 0,Q.amount=$.amount!==void 0&&$.amount!==null?$0.fromPartial($.amount):void 0,Q}};function KF(){return{}}var KX={encode($,Q=new z){if($.peerDataOperationRequestType!==void 0)Q.uint32(8).int32($.peerDataOperationRequestType);if($.requestStickerReupload!==void 0&&$.requestStickerReupload.length!==0)for(let q of $.requestStickerReupload)CX.encode(q,Q.uint32(18).fork()).join();if($.requestUrlPreview!==void 0&&$.requestUrlPreview.length!==0)for(let q of $.requestUrlPreview)DX.encode(q,Q.uint32(26).fork()).join();if($.historySyncOnDemandRequest!==void 0)GX.encode($.historySyncOnDemandRequest,Q.uint32(34).fork()).join();if($.placeholderMessageResendRequest!==void 0&&$.placeholderMessageResendRequest.length!==0)for(let q of $.placeholderMessageResendRequest)UX.encode(q,Q.uint32(42).fork()).join();if($.fullHistorySyncOnDemandRequest!==void 0)VX.encode($.fullHistorySyncOnDemandRequest,Q.uint32(50).fork()).join();if($.syncdCollectionFatalRecoveryRequest!==void 0)FX.encode($.syncdCollectionFatalRecoveryRequest,Q.uint32(58).fork()).join();if($.historySyncChunkRetryRequest!==void 0)HX.encode($.historySyncChunkRetryRequest,Q.uint32(66).fork()).join();if($.galaxyFlowAction!==void 0)zX.encode($.galaxyFlowAction,Q.uint32(74).fork()).join();if($.companionCanonicalUserNonceFetchRequest!==void 0)YX.encode($.companionCanonicalUserNonceFetchRequest,Q.uint32(82).fork()).join();if($.bizBroadcastInsightsContactListRequest!==void 0)qX.encode($.bizBroadcastInsightsContactListRequest,Q.uint32(90).fork()).join();if($.bizBroadcastInsightsRefreshRequest!==void 0)XX.encode($.bizBroadcastInsightsRefreshRequest,Q.uint32(98).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??KF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.peerDataOperationRequestType=Z.int32();continue}case 2:{if(J!==18)break;if(K.requestStickerReupload===void 0)K.requestStickerReupload=[];let V=CX.decode(Z,Z.uint32());if(V!==void 0)K.requestStickerReupload.push(V);continue}case 3:{if(J!==26)break;if(K.requestUrlPreview===void 0)K.requestUrlPreview=[];let V=DX.decode(Z,Z.uint32());if(V!==void 0)K.requestUrlPreview.push(V);continue}case 4:{if(J!==34)break;K.historySyncOnDemandRequest=GX.decode(Z,Z.uint32(),K.historySyncOnDemandRequest);continue}case 5:{if(J!==42)break;if(K.placeholderMessageResendRequest===void 0)K.placeholderMessageResendRequest=[];let V=UX.decode(Z,Z.uint32());if(V!==void 0)K.placeholderMessageResendRequest.push(V);continue}case 6:{if(J!==50)break;K.fullHistorySyncOnDemandRequest=VX.decode(Z,Z.uint32(),K.fullHistorySyncOnDemandRequest);continue}case 7:{if(J!==58)break;K.syncdCollectionFatalRecoveryRequest=FX.decode(Z,Z.uint32(),K.syncdCollectionFatalRecoveryRequest);continue}case 8:{if(J!==66)break;K.historySyncChunkRetryRequest=HX.decode(Z,Z.uint32(),K.historySyncChunkRetryRequest);continue}case 9:{if(J!==74)break;K.galaxyFlowAction=zX.decode(Z,Z.uint32(),K.galaxyFlowAction);continue}case 10:{if(J!==82)break;K.companionCanonicalUserNonceFetchRequest=YX.decode(Z,Z.uint32(),K.companionCanonicalUserNonceFetchRequest);continue}case 11:{if(J!==90)break;K.bizBroadcastInsightsContactListRequest=qX.decode(Z,Z.uint32(),K.bizBroadcastInsightsContactListRequest);continue}case 12:{if(J!==98)break;K.bizBroadcastInsightsRefreshRequest=XX.decode(Z,Z.uint32(),K.bizBroadcastInsightsRefreshRequest);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return KX.fromPartial($??{})},fromPartial($){let Q=KF();return Q.peerDataOperationRequestType=$.peerDataOperationRequestType??void 0,Q.requestStickerReupload=$.requestStickerReupload?.map((q)=>CX.fromPartial(q))||void 0,Q.requestUrlPreview=$.requestUrlPreview?.map((q)=>DX.fromPartial(q))||void 0,Q.historySyncOnDemandRequest=$.historySyncOnDemandRequest!==void 0&&$.historySyncOnDemandRequest!==null?GX.fromPartial($.historySyncOnDemandRequest):void 0,Q.placeholderMessageResendRequest=$.placeholderMessageResendRequest?.map((q)=>UX.fromPartial(q))||void 0,Q.fullHistorySyncOnDemandRequest=$.fullHistorySyncOnDemandRequest!==void 0&&$.fullHistorySyncOnDemandRequest!==null?VX.fromPartial($.fullHistorySyncOnDemandRequest):void 0,Q.syncdCollectionFatalRecoveryRequest=$.syncdCollectionFatalRecoveryRequest!==void 0&&$.syncdCollectionFatalRecoveryRequest!==null?FX.fromPartial($.syncdCollectionFatalRecoveryRequest):void 0,Q.historySyncChunkRetryRequest=$.historySyncChunkRetryRequest!==void 0&&$.historySyncChunkRetryRequest!==null?HX.fromPartial($.historySyncChunkRetryRequest):void 0,Q.galaxyFlowAction=$.galaxyFlowAction!==void 0&&$.galaxyFlowAction!==null?zX.fromPartial($.galaxyFlowAction):void 0,Q.companionCanonicalUserNonceFetchRequest=$.companionCanonicalUserNonceFetchRequest!==void 0&&$.companionCanonicalUserNonceFetchRequest!==null?YX.fromPartial($.companionCanonicalUserNonceFetchRequest):void 0,Q.bizBroadcastInsightsContactListRequest=$.bizBroadcastInsightsContactListRequest!==void 0&&$.bizBroadcastInsightsContactListRequest!==null?qX.fromPartial($.bizBroadcastInsightsContactListRequest):void 0,Q.bizBroadcastInsightsRefreshRequest=$.bizBroadcastInsightsRefreshRequest!==void 0&&$.bizBroadcastInsightsRefreshRequest!==null?XX.fromPartial($.bizBroadcastInsightsRefreshRequest):void 0,Q}};function qF(){return{}}var qX={encode($,Q=new z){if($.campaignId!==void 0)Q.uint32(10).string($.campaignId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??qF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.campaignId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return qX.fromPartial($??{})},fromPartial($){let Q=qF();return Q.campaignId=$.campaignId??void 0,Q}};function XF(){return{}}var XX={encode($,Q=new z){if($.campaignId!==void 0)Q.uint32(10).string($.campaignId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??XF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.campaignId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return XX.fromPartial($??{})},fromPartial($){let Q=XF();return Q.campaignId=$.campaignId??void 0,Q}};function YF(){return{}}var YX={encode($,Q=new z){if($.registrationTraceId!==void 0)Q.uint32(10).string($.registrationTraceId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??YF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.registrationTraceId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return YX.fromPartial($??{})},fromPartial($){let Q=YF();return Q.registrationTraceId=$.registrationTraceId??void 0,Q}};function VF(){return{}}var VX={encode($,Q=new z){if($.requestMetadata!==void 0)I0.encode($.requestMetadata,Q.uint32(10).fork()).join();if($.historySyncConfig!==void 0)x$.encode($.historySyncConfig,Q.uint32(18).fork()).join();if($.fullHistorySyncOnDemandConfig!==void 0)Gq.encode($.fullHistorySyncOnDemandConfig,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??VF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.requestMetadata=I0.decode(Z,Z.uint32(),K.requestMetadata);continue}case 2:{if(J!==18)break;K.historySyncConfig=x$.decode(Z,Z.uint32(),K.historySyncConfig);continue}case 3:{if(J!==26)break;K.fullHistorySyncOnDemandConfig=Gq.decode(Z,Z.uint32(),K.fullHistorySyncOnDemandConfig);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return VX.fromPartial($??{})},fromPartial($){let Q=VF();return Q.requestMetadata=$.requestMetadata!==void 0&&$.requestMetadata!==null?I0.fromPartial($.requestMetadata):void 0,Q.historySyncConfig=$.historySyncConfig!==void 0&&$.historySyncConfig!==null?x$.fromPartial($.historySyncConfig):void 0,Q.fullHistorySyncOnDemandConfig=$.fullHistorySyncOnDemandConfig!==void 0&&$.fullHistorySyncOnDemandConfig!==null?Gq.fromPartial($.fullHistorySyncOnDemandConfig):void 0,Q}};function zF(){return{}}var zX={encode($,Q=new z){if($.type!==void 0)Q.uint32(8).int32($.type);if($.flowId!==void 0)Q.uint32(18).string($.flowId);if($.stanzaId!==void 0)Q.uint32(26).string($.stanzaId);if($.galaxyFlowDownloadRequestId!==void 0)Q.uint32(34).string($.galaxyFlowDownloadRequestId);if($.agmId!==void 0)Q.uint32(42).string($.agmId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??zF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.type=Z.int32();continue}case 2:{if(J!==18)break;K.flowId=Z.string();continue}case 3:{if(J!==26)break;K.stanzaId=Z.string();continue}case 4:{if(J!==34)break;K.galaxyFlowDownloadRequestId=Z.string();continue}case 5:{if(J!==42)break;K.agmId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return zX.fromPartial($??{})},fromPartial($){let Q=zF();return Q.type=$.type??void 0,Q.flowId=$.flowId??void 0,Q.stanzaId=$.stanzaId??void 0,Q.galaxyFlowDownloadRequestId=$.galaxyFlowDownloadRequestId??void 0,Q.agmId=$.agmId??void 0,Q}};function HF(){return{}}var HX={encode($,Q=new z){if($.syncType!==void 0)Q.uint32(8).int32($.syncType);if($.chunkOrder!==void 0)Q.uint32(16).uint32($.chunkOrder);if($.chunkNotificationId!==void 0)Q.uint32(26).string($.chunkNotificationId);if($.regenerateChunk!==void 0)Q.uint32(32).bool($.regenerateChunk);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??HF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.syncType=Z.int32();continue}case 2:{if(J!==16)break;K.chunkOrder=Z.uint32();continue}case 3:{if(J!==26)break;K.chunkNotificationId=Z.string();continue}case 4:{if(J!==32)break;K.regenerateChunk=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return HX.fromPartial($??{})},fromPartial($){let Q=HF();return Q.syncType=$.syncType??void 0,Q.chunkOrder=$.chunkOrder??void 0,Q.chunkNotificationId=$.chunkNotificationId??void 0,Q.regenerateChunk=$.regenerateChunk??void 0,Q}};function GF(){return{}}var GX={encode($,Q=new z){if($.chatJid!==void 0)Q.uint32(10).string($.chatJid);if($.oldestMsgId!==void 0)Q.uint32(18).string($.oldestMsgId);if($.oldestMsgFromMe!==void 0)Q.uint32(24).bool($.oldestMsgFromMe);if($.onDemandMsgCount!==void 0)Q.uint32(32).int32($.onDemandMsgCount);if($.oldestMsgTimestampMs!==void 0)Q.uint32(40).int64($.oldestMsgTimestampMs);if($.accountLid!==void 0)Q.uint32(50).string($.accountLid);if($.supportInlineResponse!==void 0)Q.uint32(56).bool($.supportInlineResponse);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??GF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.chatJid=Z.string();continue}case 2:{if(J!==18)break;K.oldestMsgId=Z.string();continue}case 3:{if(J!==24)break;K.oldestMsgFromMe=Z.bool();continue}case 4:{if(J!==32)break;K.onDemandMsgCount=Z.int32();continue}case 5:{if(J!==40)break;K.oldestMsgTimestampMs=Z.int64Value();continue}case 6:{if(J!==50)break;K.accountLid=Z.string();continue}case 7:{if(J!==56)break;K.supportInlineResponse=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return GX.fromPartial($??{})},fromPartial($){let Q=GF();return Q.chatJid=$.chatJid??void 0,Q.oldestMsgId=$.oldestMsgId??void 0,Q.oldestMsgFromMe=$.oldestMsgFromMe??void 0,Q.onDemandMsgCount=$.onDemandMsgCount??void 0,Q.oldestMsgTimestampMs=$.oldestMsgTimestampMs??void 0,Q.accountLid=$.accountLid??void 0,Q.supportInlineResponse=$.supportInlineResponse??void 0,Q}};function UF(){return{}}var UX={encode($,Q=new z){if($.messageKey!==void 0)N.encode($.messageKey,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??UF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageKey=N.decode(Z,Z.uint32(),K.messageKey);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return UX.fromPartial($??{})},fromPartial($){let Q=UF();return Q.messageKey=$.messageKey!==void 0&&$.messageKey!==null?N.fromPartial($.messageKey):void 0,Q}};function CF(){return{}}var CX={encode($,Q=new z){if($.fileSha256!==void 0)Q.uint32(10).string($.fileSha256);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??CF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.fileSha256=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return CX.fromPartial($??{})},fromPartial($){let Q=CF();return Q.fileSha256=$.fileSha256??void 0,Q}};function DF(){return{}}var DX={encode($,Q=new z){if($.url!==void 0)Q.uint32(10).string($.url);if($.includeHqThumbnail!==void 0)Q.uint32(16).bool($.includeHqThumbnail);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??DF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.url=Z.string();continue}case 2:{if(J!==16)break;K.includeHqThumbnail=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return DX.fromPartial($??{})},fromPartial($){let Q=DF();return Q.url=$.url??void 0,Q.includeHqThumbnail=$.includeHqThumbnail??void 0,Q}};function FF(){return{}}var FX={encode($,Q=new z){if($.collectionName!==void 0)Q.uint32(10).string($.collectionName);if($.timestamp!==void 0)Q.uint32(16).int64($.timestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??FF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.collectionName=Z.string();continue}case 2:{if(J!==16)break;K.timestamp=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return FX.fromPartial($??{})},fromPartial($){let Q=FF();return Q.collectionName=$.collectionName??void 0,Q.timestamp=$.timestamp??void 0,Q}};function PF(){return{}}var PX={encode($,Q=new z){if($.peerDataOperationRequestType!==void 0)Q.uint32(8).int32($.peerDataOperationRequestType);if($.stanzaId!==void 0)Q.uint32(18).string($.stanzaId);if($.peerDataOperationResult!==void 0&&$.peerDataOperationResult.length!==0)for(let q of $.peerDataOperationResult)LX.encode(q,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??PF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.peerDataOperationRequestType=Z.int32();continue}case 2:{if(J!==18)break;K.stanzaId=Z.string();continue}case 3:{if(J!==26)break;if(K.peerDataOperationResult===void 0)K.peerDataOperationResult=[];let V=LX.decode(Z,Z.uint32());if(V!==void 0)K.peerDataOperationResult.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return PX.fromPartial($??{})},fromPartial($){let Q=PF();return Q.peerDataOperationRequestType=$.peerDataOperationRequestType??void 0,Q.stanzaId=$.stanzaId??void 0,Q.peerDataOperationResult=$.peerDataOperationResult?.map((q)=>LX.fromPartial(q))||void 0,Q}};function LF(){return{}}var LX={encode($,Q=new z){if($.mediaUploadResult!==void 0)Q.uint32(8).int32($.mediaUploadResult);if($.stickerMessage!==void 0)y$.encode($.stickerMessage,Q.uint32(18).fork()).join();if($.linkPreviewResponse!==void 0)MX.encode($.linkPreviewResponse,Q.uint32(26).fork()).join();if($.placeholderMessageResendResponse!==void 0)IX.encode($.placeholderMessageResendResponse,Q.uint32(34).fork()).join();if($.waffleNonceFetchRequestResponse!==void 0)yX.encode($.waffleNonceFetchRequestResponse,Q.uint32(42).fork()).join();if($.fullHistorySyncOnDemandRequestResponse!==void 0)AX.encode($.fullHistorySyncOnDemandRequestResponse,Q.uint32(50).fork()).join();if($.companionMetaNonceFetchRequestResponse!==void 0)BX.encode($.companionMetaNonceFetchRequestResponse,Q.uint32(58).fork()).join();if($.syncdSnapshotFatalRecoveryResponse!==void 0)TX.encode($.syncdSnapshotFatalRecoveryResponse,Q.uint32(66).fork()).join();if($.companionCanonicalUserNonceFetchRequestResponse!==void 0)NX.encode($.companionCanonicalUserNonceFetchRequestResponse,Q.uint32(74).fork()).join();if($.historySyncChunkRetryResponse!==void 0)EX.encode($.historySyncChunkRetryResponse,Q.uint32(82).fork()).join();if($.flowResponsesCsvBundle!==void 0)OX.encode($.flowResponsesCsvBundle,Q.uint32(90).fork()).join();if($.bizBroadcastInsightsContactListResponse!==void 0)xX.encode($.bizBroadcastInsightsContactListResponse,Q.uint32(98).fork()).join();if($.contactRefreshResponse!==void 0)RX.encode($.contactRefreshResponse,Q.uint32(106).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??LF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.mediaUploadResult=Z.int32();continue}case 2:{if(J!==18)break;K.stickerMessage=y$.decode(Z,Z.uint32(),K.stickerMessage);continue}case 3:{if(J!==26)break;K.linkPreviewResponse=MX.decode(Z,Z.uint32(),K.linkPreviewResponse);continue}case 4:{if(J!==34)break;K.placeholderMessageResendResponse=IX.decode(Z,Z.uint32(),K.placeholderMessageResendResponse);continue}case 5:{if(J!==42)break;K.waffleNonceFetchRequestResponse=yX.decode(Z,Z.uint32(),K.waffleNonceFetchRequestResponse);continue}case 6:{if(J!==50)break;K.fullHistorySyncOnDemandRequestResponse=AX.decode(Z,Z.uint32(),K.fullHistorySyncOnDemandRequestResponse);continue}case 7:{if(J!==58)break;K.companionMetaNonceFetchRequestResponse=BX.decode(Z,Z.uint32(),K.companionMetaNonceFetchRequestResponse);continue}case 8:{if(J!==66)break;K.syncdSnapshotFatalRecoveryResponse=TX.decode(Z,Z.uint32(),K.syncdSnapshotFatalRecoveryResponse);continue}case 9:{if(J!==74)break;K.companionCanonicalUserNonceFetchRequestResponse=NX.decode(Z,Z.uint32(),K.companionCanonicalUserNonceFetchRequestResponse);continue}case 10:{if(J!==82)break;K.historySyncChunkRetryResponse=EX.decode(Z,Z.uint32(),K.historySyncChunkRetryResponse);continue}case 11:{if(J!==90)break;K.flowResponsesCsvBundle=OX.decode(Z,Z.uint32(),K.flowResponsesCsvBundle);continue}case 12:{if(J!==98)break;K.bizBroadcastInsightsContactListResponse=xX.decode(Z,Z.uint32(),K.bizBroadcastInsightsContactListResponse);continue}case 13:{if(J!==106)break;K.contactRefreshResponse=RX.decode(Z,Z.uint32(),K.contactRefreshResponse);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return LX.fromPartial($??{})},fromPartial($){let Q=LF();return Q.mediaUploadResult=$.mediaUploadResult??void 0,Q.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?y$.fromPartial($.stickerMessage):void 0,Q.linkPreviewResponse=$.linkPreviewResponse!==void 0&&$.linkPreviewResponse!==null?MX.fromPartial($.linkPreviewResponse):void 0,Q.placeholderMessageResendResponse=$.placeholderMessageResendResponse!==void 0&&$.placeholderMessageResendResponse!==null?IX.fromPartial($.placeholderMessageResendResponse):void 0,Q.waffleNonceFetchRequestResponse=$.waffleNonceFetchRequestResponse!==void 0&&$.waffleNonceFetchRequestResponse!==null?yX.fromPartial($.waffleNonceFetchRequestResponse):void 0,Q.fullHistorySyncOnDemandRequestResponse=$.fullHistorySyncOnDemandRequestResponse!==void 0&&$.fullHistorySyncOnDemandRequestResponse!==null?AX.fromPartial($.fullHistorySyncOnDemandRequestResponse):void 0,Q.companionMetaNonceFetchRequestResponse=$.companionMetaNonceFetchRequestResponse!==void 0&&$.companionMetaNonceFetchRequestResponse!==null?BX.fromPartial($.companionMetaNonceFetchRequestResponse):void 0,Q.syncdSnapshotFatalRecoveryResponse=$.syncdSnapshotFatalRecoveryResponse!==void 0&&$.syncdSnapshotFatalRecoveryResponse!==null?TX.fromPartial($.syncdSnapshotFatalRecoveryResponse):void 0,Q.companionCanonicalUserNonceFetchRequestResponse=$.companionCanonicalUserNonceFetchRequestResponse!==void 0&&$.companionCanonicalUserNonceFetchRequestResponse!==null?NX.fromPartial($.companionCanonicalUserNonceFetchRequestResponse):void 0,Q.historySyncChunkRetryResponse=$.historySyncChunkRetryResponse!==void 0&&$.historySyncChunkRetryResponse!==null?EX.fromPartial($.historySyncChunkRetryResponse):void 0,Q.flowResponsesCsvBundle=$.flowResponsesCsvBundle!==void 0&&$.flowResponsesCsvBundle!==null?OX.fromPartial($.flowResponsesCsvBundle):void 0,Q.bizBroadcastInsightsContactListResponse=$.bizBroadcastInsightsContactListResponse!==void 0&&$.bizBroadcastInsightsContactListResponse!==null?xX.fromPartial($.bizBroadcastInsightsContactListResponse):void 0,Q.contactRefreshResponse=$.contactRefreshResponse!==void 0&&$.contactRefreshResponse!==null?RX.fromPartial($.contactRefreshResponse):void 0,Q}};function xF(){return{}}var xX={encode($,Q=new z){if($.campaignId!==void 0)Q.uint32(10).string($.campaignId);if($.timestampMs!==void 0)Q.uint32(16).int64($.timestampMs);if($.contacts!==void 0&&$.contacts.length!==0)for(let q of $.contacts)kX.encode(q,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??xF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.campaignId=Z.string();continue}case 2:{if(J!==16)break;K.timestampMs=Z.int64Value();continue}case 3:{if(J!==26)break;if(K.contacts===void 0)K.contacts=[];let V=kX.decode(Z,Z.uint32());if(V!==void 0)K.contacts.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return xX.fromPartial($??{})},fromPartial($){let Q=xF();return Q.campaignId=$.campaignId??void 0,Q.timestampMs=$.timestampMs??void 0,Q.contacts=$.contacts?.map((q)=>kX.fromPartial(q))||void 0,Q}};function kF(){return{}}var kX={encode($,Q=new z){if($.contactJid!==void 0)Q.uint32(10).string($.contactJid);if($.state!==void 0)Q.uint32(16).int32($.state);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??kF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.contactJid=Z.string();continue}case 2:{if(J!==16)break;K.state=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return kX.fromPartial($??{})},fromPartial($){let Q=kF();return Q.contactJid=$.contactJid??void 0,Q.state=$.state??void 0,Q}};function NF(){return{}}var NX={encode($,Q=new z){if($.nonce!==void 0)Q.uint32(10).string($.nonce);if($.waFbid!==void 0)Q.uint32(18).string($.waFbid);if($.forceRefresh!==void 0)Q.uint32(24).bool($.forceRefresh);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??NF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.nonce=Z.string();continue}case 2:{if(J!==18)break;K.waFbid=Z.string();continue}case 3:{if(J!==24)break;K.forceRefresh=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return NX.fromPartial($??{})},fromPartial($){let Q=NF();return Q.nonce=$.nonce??void 0,Q.waFbid=$.waFbid??void 0,Q.forceRefresh=$.forceRefresh??void 0,Q}};function BF(){return{}}var BX={encode($,Q=new z){if($.nonce!==void 0)Q.uint32(10).string($.nonce);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??BF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.nonce=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return BX.fromPartial($??{})},fromPartial($){let Q=BF();return Q.nonce=$.nonce??void 0,Q}};function RF(){return{}}var RX={encode($,Q=new z){if($.coveredRequestIds!==void 0&&$.coveredRequestIds.length!==0)for(let q of $.coveredRequestIds)Q.uint32(10).string(q);if($.collectionVersion!==void 0)Q.uint32(16).uint64($.collectionVersion);if($.primaryDurationMs!==void 0)Q.uint32(24).int64($.primaryDurationMs);if($.uniqueContactCount!==void 0)Q.uint32(32).uint32($.uniqueContactCount);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??RF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.coveredRequestIds===void 0)K.coveredRequestIds=[];let V=Z.string();if(V!==void 0)K.coveredRequestIds.push(V);continue}case 2:{if(J!==16)break;K.collectionVersion=Z.uint64Value();continue}case 3:{if(J!==24)break;K.primaryDurationMs=Z.int64Value();continue}case 4:{if(J!==32)break;K.uniqueContactCount=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return RX.fromPartial($??{})},fromPartial($){let Q=RF();return Q.coveredRequestIds=$.coveredRequestIds?.map((q)=>q)||void 0,Q.collectionVersion=$.collectionVersion??void 0,Q.primaryDurationMs=$.primaryDurationMs??void 0,Q.uniqueContactCount=$.uniqueContactCount??void 0,Q}};function OF(){return{}}var OX={encode($,Q=new z){if($.flowId!==void 0)Q.uint32(10).string($.flowId);if($.galaxyFlowDownloadRequestId!==void 0)Q.uint32(18).string($.galaxyFlowDownloadRequestId);if($.fileName!==void 0)Q.uint32(26).string($.fileName);if($.mimetype!==void 0)Q.uint32(34).string($.mimetype);if($.fileSha256!==void 0)Q.uint32(42).bytes($.fileSha256);if($.mediaKey!==void 0)Q.uint32(50).bytes($.mediaKey);if($.fileEncSha256!==void 0)Q.uint32(58).bytes($.fileEncSha256);if($.directPath!==void 0)Q.uint32(66).string($.directPath);if($.mediaKeyTimestamp!==void 0)Q.uint32(72).int64($.mediaKeyTimestamp);if($.fileLength!==void 0)Q.uint32(80).uint64($.fileLength);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??OF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.flowId=Z.string();continue}case 2:{if(J!==18)break;K.galaxyFlowDownloadRequestId=Z.string();continue}case 3:{if(J!==26)break;K.fileName=Z.string();continue}case 4:{if(J!==34)break;K.mimetype=Z.string();continue}case 5:{if(J!==42)break;K.fileSha256=Z.bytes();continue}case 6:{if(J!==50)break;K.mediaKey=Z.bytes();continue}case 7:{if(J!==58)break;K.fileEncSha256=Z.bytes();continue}case 8:{if(J!==66)break;K.directPath=Z.string();continue}case 9:{if(J!==72)break;K.mediaKeyTimestamp=Z.int64Value();continue}case 10:{if(J!==80)break;K.fileLength=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return OX.fromPartial($??{})},fromPartial($){let Q=OF();return Q.flowId=$.flowId??void 0,Q.galaxyFlowDownloadRequestId=$.galaxyFlowDownloadRequestId??void 0,Q.fileName=$.fileName??void 0,Q.mimetype=$.mimetype??void 0,Q.fileSha256=$.fileSha256??void 0,Q.mediaKey=$.mediaKey??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.directPath=$.directPath??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.fileLength=$.fileLength??void 0,Q}};function AF(){return{}}var AX={encode($,Q=new z){if($.requestMetadata!==void 0)I0.encode($.requestMetadata,Q.uint32(10).fork()).join();if($.responseCode!==void 0)Q.uint32(16).int32($.responseCode);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??AF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.requestMetadata=I0.decode(Z,Z.uint32(),K.requestMetadata);continue}case 2:{if(J!==16)break;K.responseCode=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return AX.fromPartial($??{})},fromPartial($){let Q=AF();return Q.requestMetadata=$.requestMetadata!==void 0&&$.requestMetadata!==null?I0.fromPartial($.requestMetadata):void 0,Q.responseCode=$.responseCode??void 0,Q}};function EF(){return{}}var EX={encode($,Q=new z){if($.syncType!==void 0)Q.uint32(8).int32($.syncType);if($.chunkOrder!==void 0)Q.uint32(16).uint32($.chunkOrder);if($.requestId!==void 0)Q.uint32(26).string($.requestId);if($.responseCode!==void 0)Q.uint32(32).int32($.responseCode);if($.canRecover!==void 0)Q.uint32(40).bool($.canRecover);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??EF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.syncType=Z.int32();continue}case 2:{if(J!==16)break;K.chunkOrder=Z.uint32();continue}case 3:{if(J!==26)break;K.requestId=Z.string();continue}case 4:{if(J!==32)break;K.responseCode=Z.int32();continue}case 5:{if(J!==40)break;K.canRecover=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return EX.fromPartial($??{})},fromPartial($){let Q=EF();return Q.syncType=$.syncType??void 0,Q.chunkOrder=$.chunkOrder??void 0,Q.requestId=$.requestId??void 0,Q.responseCode=$.responseCode??void 0,Q.canRecover=$.canRecover??void 0,Q}};function MF(){return{}}var MX={encode($,Q=new z){if($.url!==void 0)Q.uint32(10).string($.url);if($.title!==void 0)Q.uint32(18).string($.title);if($.description!==void 0)Q.uint32(26).string($.description);if($.thumbData!==void 0)Q.uint32(34).bytes($.thumbData);if($.matchText!==void 0)Q.uint32(50).string($.matchText);if($.previewType!==void 0)Q.uint32(58).string($.previewType);if($.hqThumbnail!==void 0)WX.encode($.hqThumbnail,Q.uint32(66).fork()).join();if($.previewMetadata!==void 0)SX.encode($.previewMetadata,Q.uint32(74).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??MF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.url=Z.string();continue}case 2:{if(J!==18)break;K.title=Z.string();continue}case 3:{if(J!==26)break;K.description=Z.string();continue}case 4:{if(J!==34)break;K.thumbData=Z.bytes();continue}case 6:{if(J!==50)break;K.matchText=Z.string();continue}case 7:{if(J!==58)break;K.previewType=Z.string();continue}case 8:{if(J!==66)break;K.hqThumbnail=WX.decode(Z,Z.uint32(),K.hqThumbnail);continue}case 9:{if(J!==74)break;K.previewMetadata=SX.decode(Z,Z.uint32(),K.previewMetadata);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return MX.fromPartial($??{})},fromPartial($){let Q=MF();return Q.url=$.url??void 0,Q.title=$.title??void 0,Q.description=$.description??void 0,Q.thumbData=$.thumbData??void 0,Q.matchText=$.matchText??void 0,Q.previewType=$.previewType??void 0,Q.hqThumbnail=$.hqThumbnail!==void 0&&$.hqThumbnail!==null?WX.fromPartial($.hqThumbnail):void 0,Q.previewMetadata=$.previewMetadata!==void 0&&$.previewMetadata!==null?SX.fromPartial($.previewMetadata):void 0,Q}};function WF(){return{}}var WX={encode($,Q=new z){if($.directPath!==void 0)Q.uint32(10).string($.directPath);if($.thumbHash!==void 0)Q.uint32(18).string($.thumbHash);if($.encThumbHash!==void 0)Q.uint32(26).string($.encThumbHash);if($.mediaKey!==void 0)Q.uint32(34).bytes($.mediaKey);if($.mediaKeyTimestampMs!==void 0)Q.uint32(40).int64($.mediaKeyTimestampMs);if($.thumbWidth!==void 0)Q.uint32(48).int32($.thumbWidth);if($.thumbHeight!==void 0)Q.uint32(56).int32($.thumbHeight);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??WF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.directPath=Z.string();continue}case 2:{if(J!==18)break;K.thumbHash=Z.string();continue}case 3:{if(J!==26)break;K.encThumbHash=Z.string();continue}case 4:{if(J!==34)break;K.mediaKey=Z.bytes();continue}case 5:{if(J!==40)break;K.mediaKeyTimestampMs=Z.int64Value();continue}case 6:{if(J!==48)break;K.thumbWidth=Z.int32();continue}case 7:{if(J!==56)break;K.thumbHeight=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return WX.fromPartial($??{})},fromPartial($){let Q=WF();return Q.directPath=$.directPath??void 0,Q.thumbHash=$.thumbHash??void 0,Q.encThumbHash=$.encThumbHash??void 0,Q.mediaKey=$.mediaKey??void 0,Q.mediaKeyTimestampMs=$.mediaKeyTimestampMs??void 0,Q.thumbWidth=$.thumbWidth??void 0,Q.thumbHeight=$.thumbHeight??void 0,Q}};function SF(){return{}}var SX={encode($,Q=new z){if($.isBusinessVerified!==void 0)Q.uint32(8).bool($.isBusinessVerified);if($.providerName!==void 0)Q.uint32(18).string($.providerName);if($.amount!==void 0)Q.uint32(26).string($.amount);if($.offset!==void 0)Q.uint32(34).string($.offset);if($.currency!==void 0)Q.uint32(42).string($.currency);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??SF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isBusinessVerified=Z.bool();continue}case 2:{if(J!==18)break;K.providerName=Z.string();continue}case 3:{if(J!==26)break;K.amount=Z.string();continue}case 4:{if(J!==34)break;K.offset=Z.string();continue}case 5:{if(J!==42)break;K.currency=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return SX.fromPartial($??{})},fromPartial($){let Q=SF();return Q.isBusinessVerified=$.isBusinessVerified??void 0,Q.providerName=$.providerName??void 0,Q.amount=$.amount??void 0,Q.offset=$.offset??void 0,Q.currency=$.currency??void 0,Q}};function IF(){return{}}var IX={encode($,Q=new z){if($.webMessageInfoBytes!==void 0)Q.uint32(10).bytes($.webMessageInfoBytes);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??IF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.webMessageInfoBytes=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return IX.fromPartial($??{})},fromPartial($){let Q=IF();return Q.webMessageInfoBytes=$.webMessageInfoBytes??void 0,Q}};function TF(){return{}}var TX={encode($,Q=new z){if($.collectionSnapshot!==void 0)Q.uint32(10).bytes($.collectionSnapshot);if($.isCompressed!==void 0)Q.uint32(16).bool($.isCompressed);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??TF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.collectionSnapshot=Z.bytes();continue}case 2:{if(J!==16)break;K.isCompressed=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return TX.fromPartial($??{})},fromPartial($){let Q=TF();return Q.collectionSnapshot=$.collectionSnapshot??void 0,Q.isCompressed=$.isCompressed??void 0,Q}};function yF(){return{}}var yX={encode($,Q=new z){if($.nonce!==void 0)Q.uint32(10).string($.nonce);if($.waEntFbid!==void 0)Q.uint32(18).string($.waEntFbid);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??yF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.nonce=Z.string();continue}case 2:{if(J!==18)break;K.waEntFbid=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return yX.fromPartial($??{})},fromPartial($){let Q=yF();return Q.nonce=$.nonce??void 0,Q.waEntFbid=$.waEntFbid??void 0,Q}};function vF(){return{}}var vX={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();if($.type!==void 0)Q.uint32(16).int32($.type);if($.senderTimestampMs!==void 0)Q.uint32(24).int64($.senderTimestampMs);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??vF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==16)break;K.type=Z.int32();continue}case 3:{if(J!==24)break;K.senderTimestampMs=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return vX.fromPartial($??{})},fromPartial($){let Q=vF();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q.type=$.type??void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q}};function fF(){return{}}var fX={encode($,Q=new z){if($.type!==void 0)Q.uint32(8).int32($.type);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??fF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.type=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return fX.fromPartial($??{})},fromPartial($){let Q=fF();return Q.type=$.type??void 0,Q}};function _F(){return{}}var _X={encode($,Q=new z){if($.pollCreationMessageKey!==void 0)N.encode($.pollCreationMessageKey,Q.uint32(10).fork()).join();if($.addOption!==void 0)B0.encode($.addOption,Q.uint32(18).fork()).join();if($.metadata!==void 0)y0.encode($.metadata,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??_F();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.pollCreationMessageKey=N.decode(Z,Z.uint32(),K.pollCreationMessageKey);continue}case 2:{if(J!==18)break;K.addOption=B0.decode(Z,Z.uint32(),K.addOption);continue}case 3:{if(J!==26)break;K.metadata=y0.decode(Z,Z.uint32(),K.metadata);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return _X.fromPartial($??{})},fromPartial($){let Q=_F();return Q.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?N.fromPartial($.pollCreationMessageKey):void 0,Q.addOption=$.addOption!==void 0&&$.addOption!==null?B0.fromPartial($.addOption):void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?y0.fromPartial($.metadata):void 0,Q}};function hF(){return{}}var J0={encode($,Q=new z){if($.encKey!==void 0)Q.uint32(10).bytes($.encKey);if($.name!==void 0)Q.uint32(18).string($.name);if($.options!==void 0&&$.options.length!==0)for(let q of $.options)B0.encode(q,Q.uint32(26).fork()).join();if($.selectableOptionsCount!==void 0)Q.uint32(32).uint32($.selectableOptionsCount);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(42).fork()).join();if($.pollContentType!==void 0)Q.uint32(48).int32($.pollContentType);if($.pollType!==void 0)Q.uint32(56).int32($.pollType);if($.correctAnswer!==void 0)B0.encode($.correctAnswer,Q.uint32(66).fork()).join();if($.endTime!==void 0)Q.uint32(72).int64($.endTime);if($.hideParticipantName!==void 0)Q.uint32(80).bool($.hideParticipantName);if($.allowAddOption!==void 0)Q.uint32(88).bool($.allowAddOption);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??hF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encKey=Z.bytes();continue}case 2:{if(J!==18)break;K.name=Z.string();continue}case 3:{if(J!==26)break;if(K.options===void 0)K.options=[];let V=B0.decode(Z,Z.uint32());if(V!==void 0)K.options.push(V);continue}case 4:{if(J!==32)break;K.selectableOptionsCount=Z.uint32();continue}case 5:{if(J!==42)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 6:{if(J!==48)break;K.pollContentType=Z.int32();continue}case 7:{if(J!==56)break;K.pollType=Z.int32();continue}case 8:{if(J!==66)break;K.correctAnswer=B0.decode(Z,Z.uint32(),K.correctAnswer);continue}case 9:{if(J!==72)break;K.endTime=Z.int64Value();continue}case 10:{if(J!==80)break;K.hideParticipantName=Z.bool();continue}case 11:{if(J!==88)break;K.allowAddOption=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return J0.fromPartial($??{})},fromPartial($){let Q=hF();return Q.encKey=$.encKey??void 0,Q.name=$.name??void 0,Q.options=$.options?.map((q)=>B0.fromPartial(q))||void 0,Q.selectableOptionsCount=$.selectableOptionsCount??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.pollContentType=$.pollContentType??void 0,Q.pollType=$.pollType??void 0,Q.correctAnswer=$.correctAnswer!==void 0&&$.correctAnswer!==null?B0.fromPartial($.correctAnswer):void 0,Q.endTime=$.endTime??void 0,Q.hideParticipantName=$.hideParticipantName??void 0,Q.allowAddOption=$.allowAddOption??void 0,Q}};function lF(){return{}}var B0={encode($,Q=new z){if($.optionName!==void 0)Q.uint32(10).string($.optionName);if($.optionHash!==void 0)Q.uint32(18).string($.optionHash);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??lF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.optionName=Z.string();continue}case 2:{if(J!==18)break;K.optionHash=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return B0.fromPartial($??{})},fromPartial($){let Q=lF();return Q.optionName=$.optionName??void 0,Q.optionHash=$.optionHash??void 0,Q}};function pF(){return{}}var hX={encode($,Q=new z){if($.encPayload!==void 0)Q.uint32(10).bytes($.encPayload);if($.encIv!==void 0)Q.uint32(18).bytes($.encIv);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??pF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encPayload=Z.bytes();continue}case 2:{if(J!==18)break;K.encIv=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return hX.fromPartial($??{})},fromPartial($){let Q=pF();return Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function uF(){return{}}var a0={encode($,Q=new z){if($.name!==void 0)Q.uint32(10).string($.name);if($.pollVotes!==void 0&&$.pollVotes.length!==0)for(let q of $.pollVotes)lX.encode(q,Q.uint32(18).fork()).join();if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(26).fork()).join();if($.pollType!==void 0)Q.uint32(32).int32($.pollType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??uF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.name=Z.string();continue}case 2:{if(J!==18)break;if(K.pollVotes===void 0)K.pollVotes=[];let V=lX.decode(Z,Z.uint32());if(V!==void 0)K.pollVotes.push(V);continue}case 3:{if(J!==26)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 4:{if(J!==32)break;K.pollType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return a0.fromPartial($??{})},fromPartial($){let Q=uF();return Q.name=$.name??void 0,Q.pollVotes=$.pollVotes?.map((q)=>lX.fromPartial(q))||void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.pollType=$.pollType??void 0,Q}};function wF(){return{}}var lX={encode($,Q=new z){if($.optionName!==void 0)Q.uint32(10).string($.optionName);if($.optionVoteCount!==void 0)Q.uint32(16).int64($.optionVoteCount);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??wF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.optionName=Z.string();continue}case 2:{if(J!==16)break;K.optionVoteCount=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return lX.fromPartial($??{})},fromPartial($){let Q=wF();return Q.optionName=$.optionName??void 0,Q.optionVoteCount=$.optionVoteCount??void 0,Q}};function jF(){return{}}var pX={encode($,Q=new z){if($.pollCreationMessageKey!==void 0)N.encode($.pollCreationMessageKey,Q.uint32(10).fork()).join();if($.vote!==void 0)hX.encode($.vote,Q.uint32(18).fork()).join();if($.metadata!==void 0)y0.encode($.metadata,Q.uint32(26).fork()).join();if($.senderTimestampMs!==void 0)Q.uint32(32).int64($.senderTimestampMs);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??jF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.pollCreationMessageKey=N.decode(Z,Z.uint32(),K.pollCreationMessageKey);continue}case 2:{if(J!==18)break;K.vote=hX.decode(Z,Z.uint32(),K.vote);continue}case 3:{if(J!==26)break;K.metadata=y0.decode(Z,Z.uint32(),K.metadata);continue}case 4:{if(J!==32)break;K.senderTimestampMs=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return pX.fromPartial($??{})},fromPartial($){let Q=jF();return Q.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?N.fromPartial($.pollCreationMessageKey):void 0,Q.vote=$.vote!==void 0&&$.vote!==null?hX.fromPartial($.vote):void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?y0.fromPartial($.metadata):void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q}};function cF(){return{}}var y0={encode($,Q=new z){if($.pollNameHash!==void 0)Q.uint32(10).bytes($.pollNameHash);if($.lastEditStanzaId!==void 0)Q.uint32(18).string($.lastEditStanzaId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??cF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.pollNameHash=Z.bytes();continue}case 2:{if(J!==18)break;K.lastEditStanzaId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return y0.fromPartial($??{})},fromPartial($){let Q=cF();return Q.pollNameHash=$.pollNameHash??void 0,Q.lastEditStanzaId=$.lastEditStanzaId??void 0,Q}};function dF(){return{}}var u0={encode($,Q=new z){if($.selectedOptions!==void 0&&$.selectedOptions.length!==0)for(let q of $.selectedOptions)Q.uint32(10).bytes(q);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??dF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.selectedOptions===void 0)K.selectedOptions=[];let V=Z.bytes();if(V!==void 0)K.selectedOptions.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return u0.fromPartial($??{})},fromPartial($){let Q=dF();return Q.selectedOptions=$.selectedOptions?.map((q)=>q)||void 0,Q}};function nF(){return{}}var T$={encode($,Q=new z){if($.product!==void 0)wX.encode($.product,Q.uint32(10).fork()).join();if($.businessOwnerJid!==void 0)Q.uint32(18).string($.businessOwnerJid);if($.catalog!==void 0)uX.encode($.catalog,Q.uint32(34).fork()).join();if($.body!==void 0)Q.uint32(42).string($.body);if($.footer!==void 0)Q.uint32(50).string($.footer);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??nF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.product=wX.decode(Z,Z.uint32(),K.product);continue}case 2:{if(J!==18)break;K.businessOwnerJid=Z.string();continue}case 4:{if(J!==34)break;K.catalog=uX.decode(Z,Z.uint32(),K.catalog);continue}case 5:{if(J!==42)break;K.body=Z.string();continue}case 6:{if(J!==50)break;K.footer=Z.string();continue}case 17:{if(J!==138)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return T$.fromPartial($??{})},fromPartial($){let Q=nF();return Q.product=$.product!==void 0&&$.product!==null?wX.fromPartial($.product):void 0,Q.businessOwnerJid=$.businessOwnerJid??void 0,Q.catalog=$.catalog!==void 0&&$.catalog!==null?uX.fromPartial($.catalog):void 0,Q.body=$.body??void 0,Q.footer=$.footer??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function bF(){return{}}var uX={encode($,Q=new z){if($.catalogImage!==void 0)t.encode($.catalogImage,Q.uint32(10).fork()).join();if($.title!==void 0)Q.uint32(18).string($.title);if($.description!==void 0)Q.uint32(26).string($.description);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??bF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.catalogImage=t.decode(Z,Z.uint32(),K.catalogImage);continue}case 2:{if(J!==18)break;K.title=Z.string();continue}case 3:{if(J!==26)break;K.description=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return uX.fromPartial($??{})},fromPartial($){let Q=bF();return Q.catalogImage=$.catalogImage!==void 0&&$.catalogImage!==null?t.fromPartial($.catalogImage):void 0,Q.title=$.title??void 0,Q.description=$.description??void 0,Q}};function oF(){return{}}var wX={encode($,Q=new z){if($.productImage!==void 0)t.encode($.productImage,Q.uint32(10).fork()).join();if($.productId!==void 0)Q.uint32(18).string($.productId);if($.title!==void 0)Q.uint32(26).string($.title);if($.description!==void 0)Q.uint32(34).string($.description);if($.currencyCode!==void 0)Q.uint32(42).string($.currencyCode);if($.priceAmount1000!==void 0)Q.uint32(48).int64($.priceAmount1000);if($.retailerId!==void 0)Q.uint32(58).string($.retailerId);if($.url!==void 0)Q.uint32(66).string($.url);if($.productImageCount!==void 0)Q.uint32(72).uint32($.productImageCount);if($.firstImageId!==void 0)Q.uint32(90).string($.firstImageId);if($.salePriceAmount1000!==void 0)Q.uint32(96).int64($.salePriceAmount1000);if($.signedUrl!==void 0)Q.uint32(106).string($.signedUrl);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??oF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.productImage=t.decode(Z,Z.uint32(),K.productImage);continue}case 2:{if(J!==18)break;K.productId=Z.string();continue}case 3:{if(J!==26)break;K.title=Z.string();continue}case 4:{if(J!==34)break;K.description=Z.string();continue}case 5:{if(J!==42)break;K.currencyCode=Z.string();continue}case 6:{if(J!==48)break;K.priceAmount1000=Z.int64Value();continue}case 7:{if(J!==58)break;K.retailerId=Z.string();continue}case 8:{if(J!==66)break;K.url=Z.string();continue}case 9:{if(J!==72)break;K.productImageCount=Z.uint32();continue}case 11:{if(J!==90)break;K.firstImageId=Z.string();continue}case 12:{if(J!==96)break;K.salePriceAmount1000=Z.int64Value();continue}case 13:{if(J!==106)break;K.signedUrl=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return wX.fromPartial($??{})},fromPartial($){let Q=oF();return Q.productImage=$.productImage!==void 0&&$.productImage!==null?t.fromPartial($.productImage):void 0,Q.productId=$.productId??void 0,Q.title=$.title??void 0,Q.description=$.description??void 0,Q.currencyCode=$.currencyCode??void 0,Q.priceAmount1000=$.priceAmount1000??void 0,Q.retailerId=$.retailerId??void 0,Q.url=$.url??void 0,Q.productImageCount=$.productImageCount??void 0,Q.firstImageId=$.firstImageId??void 0,Q.salePriceAmount1000=$.salePriceAmount1000??void 0,Q.signedUrl=$.signedUrl??void 0,Q}};function iF(){return{}}var jX={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();if($.type!==void 0)Q.uint32(16).int32($.type);if($.ephemeralExpiration!==void 0)Q.uint32(32).uint32($.ephemeralExpiration);if($.ephemeralSettingTimestamp!==void 0)Q.uint32(40).int64($.ephemeralSettingTimestamp);if($.historySyncNotification!==void 0)Nq.encode($.historySyncNotification,Q.uint32(50).fork()).join();if($.appStateSyncKeyShare!==void 0)_8.encode($.appStateSyncKeyShare,Q.uint32(58).fork()).join();if($.appStateSyncKeyRequest!==void 0)f8.encode($.appStateSyncKeyRequest,Q.uint32(66).fork()).join();if($.initialSecurityNotificationSettingSync!==void 0)Bq.encode($.initialSecurityNotificationSettingSync,Q.uint32(74).fork()).join();if($.appStateFatalExceptionNotification!==void 0)I8.encode($.appStateFatalExceptionNotification,Q.uint32(82).fork()).join();if($.disappearingMode!==void 0)A0.encode($.disappearingMode,Q.uint32(90).fork()).join();if($.editedMessage!==void 0)c.encode($.editedMessage,Q.uint32(114).fork()).join();if($.timestampMs!==void 0)Q.uint32(120).int64($.timestampMs);if($.peerDataOperationRequestMessage!==void 0)KX.encode($.peerDataOperationRequestMessage,Q.uint32(130).fork()).join();if($.peerDataOperationRequestResponseMessage!==void 0)PX.encode($.peerDataOperationRequestResponseMessage,Q.uint32(138).fork()).join();if($.botFeedbackMessage!==void 0)aQ.encode($.botFeedbackMessage,Q.uint32(146).fork()).join();if($.invokerJid!==void 0)Q.uint32(154).string($.invokerJid);if($.requestWelcomeMessageMetadata!==void 0)oX.encode($.requestWelcomeMessageMetadata,Q.uint32(162).fork()).join();if($.mediaNotifyMessage!==void 0)W8.encode($.mediaNotifyMessage,Q.uint32(170).fork()).join();if($.cloudApiThreadControlNotification!==void 0)s8.encode($.cloudApiThreadControlNotification,Q.uint32(178).fork()).join();if($.lidMigrationMappingSyncMessage!==void 0)J8.encode($.lidMigrationMappingSyncMessage,Q.uint32(186).fork()).join();if($.limitSharing!==void 0)N0.encode($.limitSharing,Q.uint32(194).fork()).join();if($.aiPsiMetadata!==void 0)Q.uint32(202).bytes($.aiPsiMetadata);if($.aiQueryFanout!==void 0)xQ.encode($.aiQueryFanout,Q.uint32(210).fork()).join();if($.memberLabel!==void 0)W0.encode($.memberLabel,Q.uint32(218).fork()).join();if($.aiMediaCollectionMessage!==void 0)DQ.encode($.aiMediaCollectionMessage,Q.uint32(226).fork()).join();if($.afterReadDuration!==void 0)Q.uint32(232).uint32($.afterReadDuration);if($.chatThemeSetting!==void 0)a8.encode($.chatThemeSetting,Q.uint32(242).fork()).join();if($.aiMetadataOperation!==void 0)PQ.encode($.aiMetadataOperation,Q.uint32(250).fork()).join();if($.markAsVerifiedAction!==void 0)iq.encode($.markAsVerifiedAction,Q.uint32(258).fork()).join();if($.coexStateSync!==void 0)qJ.encode($.coexStateSync,Q.uint32(266).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??iF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==16)break;K.type=Z.int32();continue}case 4:{if(J!==32)break;K.ephemeralExpiration=Z.uint32();continue}case 5:{if(J!==40)break;K.ephemeralSettingTimestamp=Z.int64Value();continue}case 6:{if(J!==50)break;K.historySyncNotification=Nq.decode(Z,Z.uint32(),K.historySyncNotification);continue}case 7:{if(J!==58)break;K.appStateSyncKeyShare=_8.decode(Z,Z.uint32(),K.appStateSyncKeyShare);continue}case 8:{if(J!==66)break;K.appStateSyncKeyRequest=f8.decode(Z,Z.uint32(),K.appStateSyncKeyRequest);continue}case 9:{if(J!==74)break;K.initialSecurityNotificationSettingSync=Bq.decode(Z,Z.uint32(),K.initialSecurityNotificationSettingSync);continue}case 10:{if(J!==82)break;K.appStateFatalExceptionNotification=I8.decode(Z,Z.uint32(),K.appStateFatalExceptionNotification);continue}case 11:{if(J!==90)break;K.disappearingMode=A0.decode(Z,Z.uint32(),K.disappearingMode);continue}case 14:{if(J!==114)break;K.editedMessage=c.decode(Z,Z.uint32(),K.editedMessage);continue}case 15:{if(J!==120)break;K.timestampMs=Z.int64Value();continue}case 16:{if(J!==130)break;K.peerDataOperationRequestMessage=KX.decode(Z,Z.uint32(),K.peerDataOperationRequestMessage);continue}case 17:{if(J!==138)break;K.peerDataOperationRequestResponseMessage=PX.decode(Z,Z.uint32(),K.peerDataOperationRequestResponseMessage);continue}case 18:{if(J!==146)break;K.botFeedbackMessage=aQ.decode(Z,Z.uint32(),K.botFeedbackMessage);continue}case 19:{if(J!==154)break;K.invokerJid=Z.string();continue}case 20:{if(J!==162)break;K.requestWelcomeMessageMetadata=oX.decode(Z,Z.uint32(),K.requestWelcomeMessageMetadata);continue}case 21:{if(J!==170)break;K.mediaNotifyMessage=W8.decode(Z,Z.uint32(),K.mediaNotifyMessage);continue}case 22:{if(J!==178)break;K.cloudApiThreadControlNotification=s8.decode(Z,Z.uint32(),K.cloudApiThreadControlNotification);continue}case 23:{if(J!==186)break;K.lidMigrationMappingSyncMessage=J8.decode(Z,Z.uint32(),K.lidMigrationMappingSyncMessage);continue}case 24:{if(J!==194)break;K.limitSharing=N0.decode(Z,Z.uint32(),K.limitSharing);continue}case 25:{if(J!==202)break;K.aiPsiMetadata=Z.bytes();continue}case 26:{if(J!==210)break;K.aiQueryFanout=xQ.decode(Z,Z.uint32(),K.aiQueryFanout);continue}case 27:{if(J!==218)break;K.memberLabel=W0.decode(Z,Z.uint32(),K.memberLabel);continue}case 28:{if(J!==226)break;K.aiMediaCollectionMessage=DQ.decode(Z,Z.uint32(),K.aiMediaCollectionMessage);continue}case 29:{if(J!==232)break;K.afterReadDuration=Z.uint32();continue}case 30:{if(J!==242)break;K.chatThemeSetting=a8.decode(Z,Z.uint32(),K.chatThemeSetting);continue}case 31:{if(J!==250)break;K.aiMetadataOperation=PQ.decode(Z,Z.uint32(),K.aiMetadataOperation);continue}case 32:{if(J!==258)break;K.markAsVerifiedAction=iq.decode(Z,Z.uint32(),K.markAsVerifiedAction);continue}case 33:{if(J!==266)break;K.coexStateSync=qJ.decode(Z,Z.uint32(),K.coexStateSync);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return jX.fromPartial($??{})},fromPartial($){let Q=iF();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q.type=$.type??void 0,Q.ephemeralExpiration=$.ephemeralExpiration??void 0,Q.ephemeralSettingTimestamp=$.ephemeralSettingTimestamp??void 0,Q.historySyncNotification=$.historySyncNotification!==void 0&&$.historySyncNotification!==null?Nq.fromPartial($.historySyncNotification):void 0,Q.appStateSyncKeyShare=$.appStateSyncKeyShare!==void 0&&$.appStateSyncKeyShare!==null?_8.fromPartial($.appStateSyncKeyShare):void 0,Q.appStateSyncKeyRequest=$.appStateSyncKeyRequest!==void 0&&$.appStateSyncKeyRequest!==null?f8.fromPartial($.appStateSyncKeyRequest):void 0,Q.initialSecurityNotificationSettingSync=$.initialSecurityNotificationSettingSync!==void 0&&$.initialSecurityNotificationSettingSync!==null?Bq.fromPartial($.initialSecurityNotificationSettingSync):void 0,Q.appStateFatalExceptionNotification=$.appStateFatalExceptionNotification!==void 0&&$.appStateFatalExceptionNotification!==null?I8.fromPartial($.appStateFatalExceptionNotification):void 0,Q.disappearingMode=$.disappearingMode!==void 0&&$.disappearingMode!==null?A0.fromPartial($.disappearingMode):void 0,Q.editedMessage=$.editedMessage!==void 0&&$.editedMessage!==null?c.fromPartial($.editedMessage):void 0,Q.timestampMs=$.timestampMs??void 0,Q.peerDataOperationRequestMessage=$.peerDataOperationRequestMessage!==void 0&&$.peerDataOperationRequestMessage!==null?KX.fromPartial($.peerDataOperationRequestMessage):void 0,Q.peerDataOperationRequestResponseMessage=$.peerDataOperationRequestResponseMessage!==void 0&&$.peerDataOperationRequestResponseMessage!==null?PX.fromPartial($.peerDataOperationRequestResponseMessage):void 0,Q.botFeedbackMessage=$.botFeedbackMessage!==void 0&&$.botFeedbackMessage!==null?aQ.fromPartial($.botFeedbackMessage):void 0,Q.invokerJid=$.invokerJid??void 0,Q.requestWelcomeMessageMetadata=$.requestWelcomeMessageMetadata!==void 0&&$.requestWelcomeMessageMetadata!==null?oX.fromPartial($.requestWelcomeMessageMetadata):void 0,Q.mediaNotifyMessage=$.mediaNotifyMessage!==void 0&&$.mediaNotifyMessage!==null?W8.fromPartial($.mediaNotifyMessage):void 0,Q.cloudApiThreadControlNotification=$.cloudApiThreadControlNotification!==void 0&&$.cloudApiThreadControlNotification!==null?s8.fromPartial($.cloudApiThreadControlNotification):void 0,Q.lidMigrationMappingSyncMessage=$.lidMigrationMappingSyncMessage!==void 0&&$.lidMigrationMappingSyncMessage!==null?J8.fromPartial($.lidMigrationMappingSyncMessage):void 0,Q.limitSharing=$.limitSharing!==void 0&&$.limitSharing!==null?N0.fromPartial($.limitSharing):void 0,Q.aiPsiMetadata=$.aiPsiMetadata??void 0,Q.aiQueryFanout=$.aiQueryFanout!==void 0&&$.aiQueryFanout!==null?xQ.fromPartial($.aiQueryFanout):void 0,Q.memberLabel=$.memberLabel!==void 0&&$.memberLabel!==null?W0.fromPartial($.memberLabel):void 0,Q.aiMediaCollectionMessage=$.aiMediaCollectionMessage!==void 0&&$.aiMediaCollectionMessage!==null?DQ.fromPartial($.aiMediaCollectionMessage):void 0,Q.afterReadDuration=$.afterReadDuration??void 0,Q.chatThemeSetting=$.chatThemeSetting!==void 0&&$.chatThemeSetting!==null?a8.fromPartial($.chatThemeSetting):void 0,Q.aiMetadataOperation=$.aiMetadataOperation!==void 0&&$.aiMetadataOperation!==null?PQ.fromPartial($.aiMetadataOperation):void 0,Q.markAsVerifiedAction=$.markAsVerifiedAction!==void 0&&$.markAsVerifiedAction!==null?iq.fromPartial($.markAsVerifiedAction):void 0,Q.coexStateSync=$.coexStateSync!==void 0&&$.coexStateSync!==null?qJ.fromPartial($.coexStateSync):void 0,Q}};function mF(){return{}}var cX={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();if($.text!==void 0)Q.uint32(18).string($.text);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??mF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==18)break;K.text=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return cX.fromPartial($??{})},fromPartial($){let Q=mF();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q.text=$.text??void 0,Q}};function gF(){return{}}var dX={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();if($.text!==void 0)Q.uint32(18).string($.text);if($.groupingKey!==void 0)Q.uint32(26).string($.groupingKey);if($.senderTimestampMs!==void 0)Q.uint32(32).int64($.senderTimestampMs);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??gF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==18)break;K.text=Z.string();continue}case 3:{if(J!==26)break;K.groupingKey=Z.string();continue}case 4:{if(J!==32)break;K.senderTimestampMs=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return dX.fromPartial($??{})},fromPartial($){let Q=gF();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q.text=$.text??void 0,Q.groupingKey=$.groupingKey??void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q}};function rF(){return{}}var nX={encode($,Q=new z){if($.noteMessage!==void 0)c.encode($.noteMessage,Q.uint32(34).fork()).join();if($.currencyCodeIso4217!==void 0)Q.uint32(10).string($.currencyCodeIso4217);if($.amount1000!==void 0)Q.uint32(16).uint64($.amount1000);if($.requestFrom!==void 0)Q.uint32(26).string($.requestFrom);if($.expiryTimestamp!==void 0)Q.uint32(40).int64($.expiryTimestamp);if($.amount!==void 0)$0.encode($.amount,Q.uint32(50).fork()).join();if($.background!==void 0)p$.encode($.background,Q.uint32(58).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??rF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 4:{if(J!==34)break;K.noteMessage=c.decode(Z,Z.uint32(),K.noteMessage);continue}case 1:{if(J!==10)break;K.currencyCodeIso4217=Z.string();continue}case 2:{if(J!==16)break;K.amount1000=Z.uint64Value();continue}case 3:{if(J!==26)break;K.requestFrom=Z.string();continue}case 5:{if(J!==40)break;K.expiryTimestamp=Z.int64Value();continue}case 6:{if(J!==50)break;K.amount=$0.decode(Z,Z.uint32(),K.amount);continue}case 7:{if(J!==58)break;K.background=p$.decode(Z,Z.uint32(),K.background);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return nX.fromPartial($??{})},fromPartial($){let Q=rF();return Q.noteMessage=$.noteMessage!==void 0&&$.noteMessage!==null?c.fromPartial($.noteMessage):void 0,Q.currencyCodeIso4217=$.currencyCodeIso4217??void 0,Q.amount1000=$.amount1000??void 0,Q.requestFrom=$.requestFrom??void 0,Q.expiryTimestamp=$.expiryTimestamp??void 0,Q.amount=$.amount!==void 0&&$.amount!==null?$0.fromPartial($.amount):void 0,Q.background=$.background!==void 0&&$.background!==null?p$.fromPartial($.background):void 0,Q}};function tF(){return{}}var bX={encode($,Q=new z){if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??tF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return bX.fromPartial($??{})},fromPartial($){let Q=tF();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function aF(){return{}}var oX={encode($,Q=new z){if($.localChatState!==void 0)Q.uint32(8).int32($.localChatState);if($.welcomeTrigger!==void 0)Q.uint32(16).int32($.welcomeTrigger);if($.botAgentMetadata!==void 0)mQ.encode($.botAgentMetadata,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??aF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.localChatState=Z.int32();continue}case 2:{if(J!==16)break;K.welcomeTrigger=Z.int32();continue}case 3:{if(J!==26)break;K.botAgentMetadata=mQ.decode(Z,Z.uint32(),K.botAgentMetadata);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return oX.fromPartial($??{})},fromPartial($){let Q=aF();return Q.localChatState=$.localChatState??void 0,Q.welcomeTrigger=$.welcomeTrigger??void 0,Q.botAgentMetadata=$.botAgentMetadata!==void 0&&$.botAgentMetadata!==null?mQ.fromPartial($.botAgentMetadata):void 0,Q}};function sF(){return{}}var iX={encode($,Q=new z){if($.chatJid!==void 0)Q.uint32(10).string($.chatJid);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??sF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.chatJid=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return iX.fromPartial($??{})},fromPartial($){let Q=sF();return Q.chatJid=$.chatJid??void 0,Q}};function eF(){return{}}var mX={encode($,Q=new z){if($.scheduledTimestampMs!==void 0)Q.uint32(8).int64($.scheduledTimestampMs);if($.callType!==void 0)Q.uint32(16).int32($.callType);if($.title!==void 0)Q.uint32(26).string($.title);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??eF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.scheduledTimestampMs=Z.int64Value();continue}case 2:{if(J!==16)break;K.callType=Z.int32();continue}case 3:{if(J!==26)break;K.title=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return mX.fromPartial($??{})},fromPartial($){let Q=eF();return Q.scheduledTimestampMs=$.scheduledTimestampMs??void 0,Q.callType=$.callType??void 0,Q.title=$.title??void 0,Q}};function $P(){return{}}var gX={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();if($.editType!==void 0)Q.uint32(16).int32($.editType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??$P();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==16)break;K.editType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return gX.fromPartial($??{})},fromPartial($){let Q=$P();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q.editType=$.editType??void 0,Q}};function QP(){return{}}var rX={encode($,Q=new z){if($.targetMessageKey!==void 0)N.encode($.targetMessageKey,Q.uint32(10).fork()).join();if($.encPayload!==void 0)Q.uint32(18).bytes($.encPayload);if($.encIv!==void 0)Q.uint32(26).bytes($.encIv);if($.secretEncType!==void 0)Q.uint32(32).int32($.secretEncType);if($.remoteKeyId!==void 0)Q.uint32(42).string($.remoteKeyId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??QP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.targetMessageKey=N.decode(Z,Z.uint32(),K.targetMessageKey);continue}case 2:{if(J!==18)break;K.encPayload=Z.bytes();continue}case 3:{if(J!==26)break;K.encIv=Z.bytes();continue}case 4:{if(J!==32)break;K.secretEncType=Z.int32();continue}case 5:{if(J!==42)break;K.remoteKeyId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return rX.fromPartial($??{})},fromPartial($){let Q=QP();return Q.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?N.fromPartial($.targetMessageKey):void 0,Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q.secretEncType=$.secretEncType??void 0,Q.remoteKeyId=$.remoteKeyId??void 0,Q}};function ZP(){return{}}var tX={encode($,Q=new z){if($.noteMessage!==void 0)c.encode($.noteMessage,Q.uint32(18).fork()).join();if($.requestMessageKey!==void 0)N.encode($.requestMessageKey,Q.uint32(26).fork()).join();if($.background!==void 0)p$.encode($.background,Q.uint32(34).fork()).join();if($.transactionData!==void 0)Q.uint32(42).string($.transactionData);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ZP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 2:{if(J!==18)break;K.noteMessage=c.decode(Z,Z.uint32(),K.noteMessage);continue}case 3:{if(J!==26)break;K.requestMessageKey=N.decode(Z,Z.uint32(),K.requestMessageKey);continue}case 4:{if(J!==34)break;K.background=p$.decode(Z,Z.uint32(),K.background);continue}case 5:{if(J!==42)break;K.transactionData=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return tX.fromPartial($??{})},fromPartial($){let Q=ZP();return Q.noteMessage=$.noteMessage!==void 0&&$.noteMessage!==null?c.fromPartial($.noteMessage):void 0,Q.requestMessageKey=$.requestMessageKey!==void 0&&$.requestMessageKey!==null?N.fromPartial($.requestMessageKey):void 0,Q.background=$.background!==void 0&&$.background!==null?p$.fromPartial($.background):void 0,Q.transactionData=$.transactionData??void 0,Q}};function JP(){return{}}var s0={encode($,Q=new z){if($.groupId!==void 0)Q.uint32(10).string($.groupId);if($.axolotlSenderKeyDistributionMessage!==void 0)Q.uint32(18).bytes($.axolotlSenderKeyDistributionMessage);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??JP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.groupId=Z.string();continue}case 2:{if(J!==18)break;K.axolotlSenderKeyDistributionMessage=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return s0.fromPartial($??{})},fromPartial($){let Q=JP();return Q.groupId=$.groupId??void 0,Q.axolotlSenderKeyDistributionMessage=$.axolotlSenderKeyDistributionMessage??void 0,Q}};function KP(){return{}}var aX={encode($,Q=new z){if($.splitId!==void 0)Q.uint32(10).string($.splitId);if($.totalAmount!==void 0)$0.encode($.totalAmount,Q.uint32(18).fork()).join();if($.description!==void 0)Q.uint32(26).string($.description);if($.requesterJid!==void 0)Q.uint32(34).string($.requesterJid);if($.participants!==void 0&&$.participants.length!==0)for(let q of $.participants)sX.encode(q,Q.uint32(42).fork()).join();if($.createdAtMs!==void 0)Q.uint32(48).int64($.createdAtMs);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??KP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.splitId=Z.string();continue}case 2:{if(J!==18)break;K.totalAmount=$0.decode(Z,Z.uint32(),K.totalAmount);continue}case 3:{if(J!==26)break;K.description=Z.string();continue}case 4:{if(J!==34)break;K.requesterJid=Z.string();continue}case 5:{if(J!==42)break;if(K.participants===void 0)K.participants=[];let V=sX.decode(Z,Z.uint32());if(V!==void 0)K.participants.push(V);continue}case 6:{if(J!==48)break;K.createdAtMs=Z.int64Value();continue}case 17:{if(J!==138)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return aX.fromPartial($??{})},fromPartial($){let Q=KP();return Q.splitId=$.splitId??void 0,Q.totalAmount=$.totalAmount!==void 0&&$.totalAmount!==null?$0.fromPartial($.totalAmount):void 0,Q.description=$.description??void 0,Q.requesterJid=$.requesterJid??void 0,Q.participants=$.participants?.map((q)=>sX.fromPartial(q))||void 0,Q.createdAtMs=$.createdAtMs??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function qP(){return{}}var sX={encode($,Q=new z){if($.jid!==void 0)Q.uint32(10).string($.jid);if($.amount!==void 0)$0.encode($.amount,Q.uint32(18).fork()).join();if($.status!==void 0)Q.uint32(24).int32($.status);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??qP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.jid=Z.string();continue}case 2:{if(J!==18)break;K.amount=$0.decode(Z,Z.uint32(),K.amount);continue}case 3:{if(J!==24)break;K.status=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return sX.fromPartial($??{})},fromPartial($){let Q=qP();return Q.jid=$.jid??void 0,Q.amount=$.amount!==void 0&&$.amount!==null?$0.fromPartial($.amount):void 0,Q.status=$.status??void 0,Q}};function XP(){return{}}var eX={encode($,Q=new z){if($.splitId!==void 0)Q.uint32(10).string($.splitId);if($.participantJid!==void 0)Q.uint32(18).string($.participantJid);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??XP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.splitId=Z.string();continue}case 2:{if(J!==18)break;K.participantJid=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return eX.fromPartial($??{})},fromPartial($){let Q=XP();return Q.splitId=$.splitId??void 0,Q.participantJid=$.participantJid??void 0,Q}};function YP(){return{}}var $9={encode($,Q=new z){if($.style!==void 0)Q.uint32(8).int32($.style);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??YP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.style=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return $9.fromPartial($??{})},fromPartial($){let Q=YP();return Q.style=$.style??void 0,Q}};function VP(){return{}}var Q9={encode($,Q=new z){if($.responseMessageKey!==void 0)N.encode($.responseMessageKey,Q.uint32(10).fork()).join();if($.originalMessageKey!==void 0)N.encode($.originalMessageKey,Q.uint32(18).fork()).join();if($.type!==void 0)Q.uint32(24).int32($.type);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??VP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.responseMessageKey=N.decode(Z,Z.uint32(),K.responseMessageKey);continue}case 2:{if(J!==18)break;K.originalMessageKey=N.decode(Z,Z.uint32(),K.originalMessageKey);continue}case 3:{if(J!==24)break;K.type=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Q9.fromPartial($??{})},fromPartial($){let Q=VP();return Q.responseMessageKey=$.responseMessageKey!==void 0&&$.responseMessageKey!==null?N.fromPartial($.responseMessageKey):void 0,Q.originalMessageKey=$.originalMessageKey!==void 0&&$.originalMessageKey!==null?N.fromPartial($.originalMessageKey):void 0,Q.type=$.type??void 0,Q}};function zP(){return{}}var Z9={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();if($.text!==void 0)Q.uint32(18).string($.text);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??zP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==18)break;K.text=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Z9.fromPartial($??{})},fromPartial($){let Q=zP();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q.text=$.text??void 0,Q}};function HP(){return{}}var J9={encode($,Q=new z){if($.type!==void 0)Q.uint32(8).int32($.type);if($.text!==void 0)Q.uint32(18).string($.text);if($.thumbnail!==void 0)Q.uint32(26).bytes($.thumbnail);if($.originalStatusId!==void 0)N.encode($.originalStatusId,Q.uint32(34).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??HP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.type=Z.int32();continue}case 2:{if(J!==18)break;K.text=Z.string();continue}case 3:{if(J!==26)break;K.thumbnail=Z.bytes();continue}case 4:{if(J!==34)break;K.originalStatusId=N.decode(Z,Z.uint32(),K.originalStatusId);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return J9.fromPartial($??{})},fromPartial($){let Q=HP();return Q.type=$.type??void 0,Q.text=$.text??void 0,Q.thumbnail=$.thumbnail??void 0,Q.originalStatusId=$.originalStatusId!==void 0&&$.originalStatusId!==null?N.fromPartial($.originalStatusId):void 0,Q}};function GP(){return{}}var K9={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();if($.stickerKey!==void 0)Q.uint32(18).string($.stickerKey);if($.type!==void 0)Q.uint32(24).int32($.type);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??GP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==18)break;K.stickerKey=Z.string();continue}case 3:{if(J!==24)break;K.type=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return K9.fromPartial($??{})},fromPartial($){let Q=GP();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q.stickerKey=$.stickerKey??void 0,Q.type=$.type??void 0,Q}};function UP(){return{}}var y$={encode($,Q=new z){if($.url!==void 0)Q.uint32(10).string($.url);if($.fileSha256!==void 0)Q.uint32(18).bytes($.fileSha256);if($.fileEncSha256!==void 0)Q.uint32(26).bytes($.fileEncSha256);if($.mediaKey!==void 0)Q.uint32(34).bytes($.mediaKey);if($.mimetype!==void 0)Q.uint32(42).string($.mimetype);if($.height!==void 0)Q.uint32(48).uint32($.height);if($.width!==void 0)Q.uint32(56).uint32($.width);if($.directPath!==void 0)Q.uint32(66).string($.directPath);if($.fileLength!==void 0)Q.uint32(72).uint64($.fileLength);if($.mediaKeyTimestamp!==void 0)Q.uint32(80).int64($.mediaKeyTimestamp);if($.firstFrameLength!==void 0)Q.uint32(88).uint32($.firstFrameLength);if($.firstFrameSidecar!==void 0)Q.uint32(98).bytes($.firstFrameSidecar);if($.isAnimated!==void 0)Q.uint32(104).bool($.isAnimated);if($.pngThumbnail!==void 0)Q.uint32(130).bytes($.pngThumbnail);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();if($.stickerSentTs!==void 0)Q.uint32(144).int64($.stickerSentTs);if($.isAvatar!==void 0)Q.uint32(152).bool($.isAvatar);if($.isAiSticker!==void 0)Q.uint32(160).bool($.isAiSticker);if($.isLottie!==void 0)Q.uint32(168).bool($.isLottie);if($.accessibilityLabel!==void 0)Q.uint32(178).string($.accessibilityLabel);if($.premium!==void 0)Q.uint32(192).int32($.premium);if($.emojis!==void 0)Q.uint32(202).string($.emojis);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??UP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.url=Z.string();continue}case 2:{if(J!==18)break;K.fileSha256=Z.bytes();continue}case 3:{if(J!==26)break;K.fileEncSha256=Z.bytes();continue}case 4:{if(J!==34)break;K.mediaKey=Z.bytes();continue}case 5:{if(J!==42)break;K.mimetype=Z.string();continue}case 6:{if(J!==48)break;K.height=Z.uint32();continue}case 7:{if(J!==56)break;K.width=Z.uint32();continue}case 8:{if(J!==66)break;K.directPath=Z.string();continue}case 9:{if(J!==72)break;K.fileLength=Z.uint64Value();continue}case 10:{if(J!==80)break;K.mediaKeyTimestamp=Z.int64Value();continue}case 11:{if(J!==88)break;K.firstFrameLength=Z.uint32();continue}case 12:{if(J!==98)break;K.firstFrameSidecar=Z.bytes();continue}case 13:{if(J!==104)break;K.isAnimated=Z.bool();continue}case 16:{if(J!==130)break;K.pngThumbnail=Z.bytes();continue}case 17:{if(J!==138)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 18:{if(J!==144)break;K.stickerSentTs=Z.int64Value();continue}case 19:{if(J!==152)break;K.isAvatar=Z.bool();continue}case 20:{if(J!==160)break;K.isAiSticker=Z.bool();continue}case 21:{if(J!==168)break;K.isLottie=Z.bool();continue}case 22:{if(J!==178)break;K.accessibilityLabel=Z.string();continue}case 24:{if(J!==192)break;K.premium=Z.int32();continue}case 25:{if(J!==202)break;K.emojis=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return y$.fromPartial($??{})},fromPartial($){let Q=UP();return Q.url=$.url??void 0,Q.fileSha256=$.fileSha256??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.mediaKey=$.mediaKey??void 0,Q.mimetype=$.mimetype??void 0,Q.height=$.height??void 0,Q.width=$.width??void 0,Q.directPath=$.directPath??void 0,Q.fileLength=$.fileLength??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.firstFrameLength=$.firstFrameLength??void 0,Q.firstFrameSidecar=$.firstFrameSidecar??void 0,Q.isAnimated=$.isAnimated??void 0,Q.pngThumbnail=$.pngThumbnail??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.stickerSentTs=$.stickerSentTs??void 0,Q.isAvatar=$.isAvatar??void 0,Q.isAiSticker=$.isAiSticker??void 0,Q.isLottie=$.isLottie??void 0,Q.accessibilityLabel=$.accessibilityLabel??void 0,Q.premium=$.premium??void 0,Q.emojis=$.emojis??void 0,Q}};function CP(){return{}}var q9={encode($,Q=new z){if($.stickerPackId!==void 0)Q.uint32(10).string($.stickerPackId);if($.name!==void 0)Q.uint32(18).string($.name);if($.publisher!==void 0)Q.uint32(26).string($.publisher);if($.stickers!==void 0&&$.stickers.length!==0)for(let q of $.stickers)X9.encode(q,Q.uint32(34).fork()).join();if($.fileLength!==void 0)Q.uint32(40).uint64($.fileLength);if($.fileSha256!==void 0)Q.uint32(50).bytes($.fileSha256);if($.fileEncSha256!==void 0)Q.uint32(58).bytes($.fileEncSha256);if($.mediaKey!==void 0)Q.uint32(66).bytes($.mediaKey);if($.directPath!==void 0)Q.uint32(74).string($.directPath);if($.caption!==void 0)Q.uint32(82).string($.caption);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(90).fork()).join();if($.packDescription!==void 0)Q.uint32(98).string($.packDescription);if($.mediaKeyTimestamp!==void 0)Q.uint32(104).int64($.mediaKeyTimestamp);if($.trayIconFileName!==void 0)Q.uint32(114).string($.trayIconFileName);if($.thumbnailDirectPath!==void 0)Q.uint32(122).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)Q.uint32(130).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)Q.uint32(138).bytes($.thumbnailEncSha256);if($.thumbnailHeight!==void 0)Q.uint32(144).uint32($.thumbnailHeight);if($.thumbnailWidth!==void 0)Q.uint32(152).uint32($.thumbnailWidth);if($.imageDataHash!==void 0)Q.uint32(162).string($.imageDataHash);if($.stickerPackSize!==void 0)Q.uint32(168).uint64($.stickerPackSize);if($.stickerPackOrigin!==void 0)Q.uint32(176).int32($.stickerPackOrigin);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??CP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.stickerPackId=Z.string();continue}case 2:{if(J!==18)break;K.name=Z.string();continue}case 3:{if(J!==26)break;K.publisher=Z.string();continue}case 4:{if(J!==34)break;if(K.stickers===void 0)K.stickers=[];let V=X9.decode(Z,Z.uint32());if(V!==void 0)K.stickers.push(V);continue}case 5:{if(J!==40)break;K.fileLength=Z.uint64Value();continue}case 6:{if(J!==50)break;K.fileSha256=Z.bytes();continue}case 7:{if(J!==58)break;K.fileEncSha256=Z.bytes();continue}case 8:{if(J!==66)break;K.mediaKey=Z.bytes();continue}case 9:{if(J!==74)break;K.directPath=Z.string();continue}case 10:{if(J!==82)break;K.caption=Z.string();continue}case 11:{if(J!==90)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 12:{if(J!==98)break;K.packDescription=Z.string();continue}case 13:{if(J!==104)break;K.mediaKeyTimestamp=Z.int64Value();continue}case 14:{if(J!==114)break;K.trayIconFileName=Z.string();continue}case 15:{if(J!==122)break;K.thumbnailDirectPath=Z.string();continue}case 16:{if(J!==130)break;K.thumbnailSha256=Z.bytes();continue}case 17:{if(J!==138)break;K.thumbnailEncSha256=Z.bytes();continue}case 18:{if(J!==144)break;K.thumbnailHeight=Z.uint32();continue}case 19:{if(J!==152)break;K.thumbnailWidth=Z.uint32();continue}case 20:{if(J!==162)break;K.imageDataHash=Z.string();continue}case 21:{if(J!==168)break;K.stickerPackSize=Z.uint64Value();continue}case 22:{if(J!==176)break;K.stickerPackOrigin=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return q9.fromPartial($??{})},fromPartial($){let Q=CP();return Q.stickerPackId=$.stickerPackId??void 0,Q.name=$.name??void 0,Q.publisher=$.publisher??void 0,Q.stickers=$.stickers?.map((q)=>X9.fromPartial(q))||void 0,Q.fileLength=$.fileLength??void 0,Q.fileSha256=$.fileSha256??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.mediaKey=$.mediaKey??void 0,Q.directPath=$.directPath??void 0,Q.caption=$.caption??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.packDescription=$.packDescription??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.trayIconFileName=$.trayIconFileName??void 0,Q.thumbnailDirectPath=$.thumbnailDirectPath??void 0,Q.thumbnailSha256=$.thumbnailSha256??void 0,Q.thumbnailEncSha256=$.thumbnailEncSha256??void 0,Q.thumbnailHeight=$.thumbnailHeight??void 0,Q.thumbnailWidth=$.thumbnailWidth??void 0,Q.imageDataHash=$.imageDataHash??void 0,Q.stickerPackSize=$.stickerPackSize??void 0,Q.stickerPackOrigin=$.stickerPackOrigin??void 0,Q}};function DP(){return{}}var X9={encode($,Q=new z){if($.fileName!==void 0)Q.uint32(10).string($.fileName);if($.isAnimated!==void 0)Q.uint32(16).bool($.isAnimated);if($.emojis!==void 0&&$.emojis.length!==0)for(let q of $.emojis)Q.uint32(26).string(q);if($.accessibilityLabel!==void 0)Q.uint32(34).string($.accessibilityLabel);if($.isLottie!==void 0)Q.uint32(40).bool($.isLottie);if($.mimetype!==void 0)Q.uint32(50).string($.mimetype);if($.premium!==void 0)Q.uint32(56).int32($.premium);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??DP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.fileName=Z.string();continue}case 2:{if(J!==16)break;K.isAnimated=Z.bool();continue}case 3:{if(J!==26)break;if(K.emojis===void 0)K.emojis=[];let V=Z.string();if(V!==void 0)K.emojis.push(V);continue}case 4:{if(J!==34)break;K.accessibilityLabel=Z.string();continue}case 5:{if(J!==40)break;K.isLottie=Z.bool();continue}case 6:{if(J!==50)break;K.mimetype=Z.string();continue}case 7:{if(J!==56)break;K.premium=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return X9.fromPartial($??{})},fromPartial($){let Q=DP();return Q.fileName=$.fileName??void 0,Q.isAnimated=$.isAnimated??void 0,Q.emojis=$.emojis?.map((q)=>q)||void 0,Q.accessibilityLabel=$.accessibilityLabel??void 0,Q.isLottie=$.isLottie??void 0,Q.mimetype=$.mimetype??void 0,Q.premium=$.premium??void 0,Q}};function FP(){return{}}var Y9={encode($,Q=new z){if($.filehash!==void 0&&$.filehash.length!==0)for(let q of $.filehash)Q.uint32(10).string(q);if($.rmrSource!==void 0)Q.uint32(18).string($.rmrSource);if($.requestTimestamp!==void 0)Q.uint32(24).int64($.requestTimestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??FP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.filehash===void 0)K.filehash=[];let V=Z.string();if(V!==void 0)K.filehash.push(V);continue}case 2:{if(J!==18)break;K.rmrSource=Z.string();continue}case 3:{if(J!==24)break;K.requestTimestamp=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Y9.fromPartial($??{})},fromPartial($){let Q=FP();return Q.filehash=$.filehash?.map((q)=>q)||void 0,Q.rmrSource=$.rmrSource??void 0,Q.requestTimestamp=$.requestTimestamp??void 0,Q}};function PP(){return{}}var V9={encode($,Q=new z){if($.selectedId!==void 0)Q.uint32(10).string($.selectedId);if($.selectedDisplayText!==void 0)Q.uint32(18).string($.selectedDisplayText);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(26).fork()).join();if($.selectedIndex!==void 0)Q.uint32(32).uint32($.selectedIndex);if($.selectedCarouselCardIndex!==void 0)Q.uint32(40).uint32($.selectedCarouselCardIndex);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??PP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.selectedId=Z.string();continue}case 2:{if(J!==18)break;K.selectedDisplayText=Z.string();continue}case 3:{if(J!==26)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 4:{if(J!==32)break;K.selectedIndex=Z.uint32();continue}case 5:{if(J!==40)break;K.selectedCarouselCardIndex=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return V9.fromPartial($??{})},fromPartial($){let Q=PP();return Q.selectedId=$.selectedId??void 0,Q.selectedDisplayText=$.selectedDisplayText??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.selectedIndex=$.selectedIndex??void 0,Q.selectedCarouselCardIndex=$.selectedCarouselCardIndex??void 0,Q}};function LP(){return{}}var v$={encode($,Q=new z){if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(26).fork()).join();if($.hydratedTemplate!==void 0)e0.encode($.hydratedTemplate,Q.uint32(34).fork()).join();if($.templateId!==void 0)Q.uint32(74).string($.templateId);if($.fourRowTemplate!==void 0)z9.encode($.fourRowTemplate,Q.uint32(10).fork()).join();if($.hydratedFourRowTemplate!==void 0)e0.encode($.hydratedFourRowTemplate,Q.uint32(18).fork()).join();if($.interactiveMessageTemplate!==void 0)T0.encode($.interactiveMessageTemplate,Q.uint32(42).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??LP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 3:{if(J!==26)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 4:{if(J!==34)break;K.hydratedTemplate=e0.decode(Z,Z.uint32(),K.hydratedTemplate);continue}case 9:{if(J!==74)break;K.templateId=Z.string();continue}case 1:{if(J!==10)break;K.fourRowTemplate=z9.decode(Z,Z.uint32(),K.fourRowTemplate);continue}case 2:{if(J!==18)break;K.hydratedFourRowTemplate=e0.decode(Z,Z.uint32(),K.hydratedFourRowTemplate);continue}case 5:{if(J!==42)break;K.interactiveMessageTemplate=T0.decode(Z,Z.uint32(),K.interactiveMessageTemplate);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return v$.fromPartial($??{})},fromPartial($){let Q=LP();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.hydratedTemplate=$.hydratedTemplate!==void 0&&$.hydratedTemplate!==null?e0.fromPartial($.hydratedTemplate):void 0,Q.templateId=$.templateId??void 0,Q.fourRowTemplate=$.fourRowTemplate!==void 0&&$.fourRowTemplate!==null?z9.fromPartial($.fourRowTemplate):void 0,Q.hydratedFourRowTemplate=$.hydratedFourRowTemplate!==void 0&&$.hydratedFourRowTemplate!==null?e0.fromPartial($.hydratedFourRowTemplate):void 0,Q.interactiveMessageTemplate=$.interactiveMessageTemplate!==void 0&&$.interactiveMessageTemplate!==null?T0.fromPartial($.interactiveMessageTemplate):void 0,Q}};function xP(){return{}}var z9={encode($,Q=new z){if($.content!==void 0)o.encode($.content,Q.uint32(50).fork()).join();if($.footer!==void 0)o.encode($.footer,Q.uint32(58).fork()).join();if($.buttons!==void 0&&$.buttons.length!==0)for(let q of $.buttons)qV.encode(q,Q.uint32(66).fork()).join();if($.documentMessage!==void 0)K0.encode($.documentMessage,Q.uint32(10).fork()).join();if($.highlyStructuredMessage!==void 0)o.encode($.highlyStructuredMessage,Q.uint32(18).fork()).join();if($.imageMessage!==void 0)t.encode($.imageMessage,Q.uint32(26).fork()).join();if($.videoMessage!==void 0)e.encode($.videoMessage,Q.uint32(34).fork()).join();if($.locationMessage!==void 0)Q0.encode($.locationMessage,Q.uint32(42).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??xP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 6:{if(J!==50)break;K.content=o.decode(Z,Z.uint32(),K.content);continue}case 7:{if(J!==58)break;K.footer=o.decode(Z,Z.uint32(),K.footer);continue}case 8:{if(J!==66)break;if(K.buttons===void 0)K.buttons=[];let V=qV.decode(Z,Z.uint32());if(V!==void 0)K.buttons.push(V);continue}case 1:{if(J!==10)break;K.documentMessage=K0.decode(Z,Z.uint32(),K.documentMessage);continue}case 2:{if(J!==18)break;K.highlyStructuredMessage=o.decode(Z,Z.uint32(),K.highlyStructuredMessage);continue}case 3:{if(J!==26)break;K.imageMessage=t.decode(Z,Z.uint32(),K.imageMessage);continue}case 4:{if(J!==34)break;K.videoMessage=e.decode(Z,Z.uint32(),K.videoMessage);continue}case 5:{if(J!==42)break;K.locationMessage=Q0.decode(Z,Z.uint32(),K.locationMessage);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return z9.fromPartial($??{})},fromPartial($){let Q=xP();return Q.content=$.content!==void 0&&$.content!==null?o.fromPartial($.content):void 0,Q.footer=$.footer!==void 0&&$.footer!==null?o.fromPartial($.footer):void 0,Q.buttons=$.buttons?.map((q)=>qV.fromPartial(q))||void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?K0.fromPartial($.documentMessage):void 0,Q.highlyStructuredMessage=$.highlyStructuredMessage!==void 0&&$.highlyStructuredMessage!==null?o.fromPartial($.highlyStructuredMessage):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?t.fromPartial($.imageMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?e.fromPartial($.videoMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?Q0.fromPartial($.locationMessage):void 0,Q}};function kP(){return{}}var e0={encode($,Q=new z){if($.hydratedContentText!==void 0)Q.uint32(50).string($.hydratedContentText);if($.hydratedFooterText!==void 0)Q.uint32(58).string($.hydratedFooterText);if($.hydratedButtons!==void 0&&$.hydratedButtons.length!==0)for(let q of $.hydratedButtons)oK.encode(q,Q.uint32(66).fork()).join();if($.templateId!==void 0)Q.uint32(74).string($.templateId);if($.maskLinkedDevices!==void 0)Q.uint32(80).bool($.maskLinkedDevices);if($.documentMessage!==void 0)K0.encode($.documentMessage,Q.uint32(10).fork()).join();if($.hydratedTitleText!==void 0)Q.uint32(18).string($.hydratedTitleText);if($.imageMessage!==void 0)t.encode($.imageMessage,Q.uint32(26).fork()).join();if($.videoMessage!==void 0)e.encode($.videoMessage,Q.uint32(34).fork()).join();if($.locationMessage!==void 0)Q0.encode($.locationMessage,Q.uint32(42).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??kP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 6:{if(J!==50)break;K.hydratedContentText=Z.string();continue}case 7:{if(J!==58)break;K.hydratedFooterText=Z.string();continue}case 8:{if(J!==66)break;if(K.hydratedButtons===void 0)K.hydratedButtons=[];let V=oK.decode(Z,Z.uint32());if(V!==void 0)K.hydratedButtons.push(V);continue}case 9:{if(J!==74)break;K.templateId=Z.string();continue}case 10:{if(J!==80)break;K.maskLinkedDevices=Z.bool();continue}case 1:{if(J!==10)break;K.documentMessage=K0.decode(Z,Z.uint32(),K.documentMessage);continue}case 2:{if(J!==18)break;K.hydratedTitleText=Z.string();continue}case 3:{if(J!==26)break;K.imageMessage=t.decode(Z,Z.uint32(),K.imageMessage);continue}case 4:{if(J!==34)break;K.videoMessage=e.decode(Z,Z.uint32(),K.videoMessage);continue}case 5:{if(J!==42)break;K.locationMessage=Q0.decode(Z,Z.uint32(),K.locationMessage);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return e0.fromPartial($??{})},fromPartial($){let Q=kP();return Q.hydratedContentText=$.hydratedContentText??void 0,Q.hydratedFooterText=$.hydratedFooterText??void 0,Q.hydratedButtons=$.hydratedButtons?.map((q)=>oK.fromPartial(q))||void 0,Q.templateId=$.templateId??void 0,Q.maskLinkedDevices=$.maskLinkedDevices??void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?K0.fromPartial($.documentMessage):void 0,Q.hydratedTitleText=$.hydratedTitleText??void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?t.fromPartial($.imageMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?e.fromPartial($.videoMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?Q0.fromPartial($.locationMessage):void 0,Q}};function NP(){return{}}var H9={encode($,Q=new z){if($.fbExperimentId!==void 0)Q.uint32(8).uint32($.fbExperimentId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??NP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.fbExperimentId=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return H9.fromPartial($??{})},fromPartial($){let Q=NP();return Q.fbExperimentId=$.fbExperimentId??void 0,Q}};function BP(){return{}}var G9={encode($,Q=new z){if($.username!==void 0)Q.uint32(10).string($.username);if($.caption!==void 0)Q.uint32(18).string($.caption);if($.thumbnailImageUrl!==void 0)Q.uint32(26).string($.thumbnailImageUrl);if($.profilePictureUrl!==void 0)Q.uint32(34).string($.profilePictureUrl);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??BP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.username=Z.string();continue}case 2:{if(J!==18)break;K.caption=Z.string();continue}case 3:{if(J!==26)break;K.thumbnailImageUrl=Z.string();continue}case 4:{if(J!==34)break;K.profilePictureUrl=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return G9.fromPartial($??{})},fromPartial($){let Q=BP();return Q.username=$.username??void 0,Q.caption=$.caption??void 0,Q.thumbnailImageUrl=$.thumbnailImageUrl??void 0,Q.profilePictureUrl=$.profilePictureUrl??void 0,Q}};function RP(){return{}}var e={encode($,Q=new z){if($.url!==void 0)Q.uint32(10).string($.url);if($.mimetype!==void 0)Q.uint32(18).string($.mimetype);if($.fileSha256!==void 0)Q.uint32(26).bytes($.fileSha256);if($.fileLength!==void 0)Q.uint32(32).uint64($.fileLength);if($.seconds!==void 0)Q.uint32(40).uint32($.seconds);if($.mediaKey!==void 0)Q.uint32(50).bytes($.mediaKey);if($.caption!==void 0)Q.uint32(58).string($.caption);if($.gifPlayback!==void 0)Q.uint32(64).bool($.gifPlayback);if($.height!==void 0)Q.uint32(72).uint32($.height);if($.width!==void 0)Q.uint32(80).uint32($.width);if($.fileEncSha256!==void 0)Q.uint32(90).bytes($.fileEncSha256);if($.interactiveAnnotations!==void 0&&$.interactiveAnnotations.length!==0)for(let q of $.interactiveAnnotations)V0.encode(q,Q.uint32(98).fork()).join();if($.directPath!==void 0)Q.uint32(106).string($.directPath);if($.mediaKeyTimestamp!==void 0)Q.uint32(112).int64($.mediaKeyTimestamp);if($.jpegThumbnail!==void 0)Q.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();if($.streamingSidecar!==void 0)Q.uint32(146).bytes($.streamingSidecar);if($.gifAttribution!==void 0)Q.uint32(152).int32($.gifAttribution);if($.viewOnce!==void 0)Q.uint32(160).bool($.viewOnce);if($.thumbnailDirectPath!==void 0)Q.uint32(170).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)Q.uint32(178).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)Q.uint32(186).bytes($.thumbnailEncSha256);if($.staticUrl!==void 0)Q.uint32(194).string($.staticUrl);if($.annotations!==void 0&&$.annotations.length!==0)for(let q of $.annotations)V0.encode(q,Q.uint32(202).fork()).join();if($.accessibilityLabel!==void 0)Q.uint32(210).string($.accessibilityLabel);if($.processedVideos!==void 0&&$.processedVideos.length!==0)for(let q of $.processedVideos)b9.encode(q,Q.uint32(218).fork()).join();if($.externalShareFullVideoDurationInSeconds!==void 0)Q.uint32(224).uint32($.externalShareFullVideoDurationInSeconds);if($.motionPhotoPresentationOffsetMs!==void 0)Q.uint32(232).uint64($.motionPhotoPresentationOffsetMs);if($.metadataUrl!==void 0)Q.uint32(242).string($.metadataUrl);if($.videoSourceType!==void 0)Q.uint32(248).int32($.videoSourceType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??RP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.url=Z.string();continue}case 2:{if(J!==18)break;K.mimetype=Z.string();continue}case 3:{if(J!==26)break;K.fileSha256=Z.bytes();continue}case 4:{if(J!==32)break;K.fileLength=Z.uint64Value();continue}case 5:{if(J!==40)break;K.seconds=Z.uint32();continue}case 6:{if(J!==50)break;K.mediaKey=Z.bytes();continue}case 7:{if(J!==58)break;K.caption=Z.string();continue}case 8:{if(J!==64)break;K.gifPlayback=Z.bool();continue}case 9:{if(J!==72)break;K.height=Z.uint32();continue}case 10:{if(J!==80)break;K.width=Z.uint32();continue}case 11:{if(J!==90)break;K.fileEncSha256=Z.bytes();continue}case 12:{if(J!==98)break;if(K.interactiveAnnotations===void 0)K.interactiveAnnotations=[];let V=V0.decode(Z,Z.uint32());if(V!==void 0)K.interactiveAnnotations.push(V);continue}case 13:{if(J!==106)break;K.directPath=Z.string();continue}case 14:{if(J!==112)break;K.mediaKeyTimestamp=Z.int64Value();continue}case 16:{if(J!==130)break;K.jpegThumbnail=Z.bytes();continue}case 17:{if(J!==138)break;K.contextInfo=W.decode(Z,Z.uint32(),K.contextInfo);continue}case 18:{if(J!==146)break;K.streamingSidecar=Z.bytes();continue}case 19:{if(J!==152)break;K.gifAttribution=Z.int32();continue}case 20:{if(J!==160)break;K.viewOnce=Z.bool();continue}case 21:{if(J!==170)break;K.thumbnailDirectPath=Z.string();continue}case 22:{if(J!==178)break;K.thumbnailSha256=Z.bytes();continue}case 23:{if(J!==186)break;K.thumbnailEncSha256=Z.bytes();continue}case 24:{if(J!==194)break;K.staticUrl=Z.string();continue}case 25:{if(J!==202)break;if(K.annotations===void 0)K.annotations=[];let V=V0.decode(Z,Z.uint32());if(V!==void 0)K.annotations.push(V);continue}case 26:{if(J!==210)break;K.accessibilityLabel=Z.string();continue}case 27:{if(J!==218)break;if(K.processedVideos===void 0)K.processedVideos=[];let V=b9.decode(Z,Z.uint32());if(V!==void 0)K.processedVideos.push(V);continue}case 28:{if(J!==224)break;K.externalShareFullVideoDurationInSeconds=Z.uint32();continue}case 29:{if(J!==232)break;K.motionPhotoPresentationOffsetMs=Z.uint64Value();continue}case 30:{if(J!==242)break;K.metadataUrl=Z.string();continue}case 31:{if(J!==248)break;K.videoSourceType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return e.fromPartial($??{})},fromPartial($){let Q=RP();return Q.url=$.url??void 0,Q.mimetype=$.mimetype??void 0,Q.fileSha256=$.fileSha256??void 0,Q.fileLength=$.fileLength??void 0,Q.seconds=$.seconds??void 0,Q.mediaKey=$.mediaKey??void 0,Q.caption=$.caption??void 0,Q.gifPlayback=$.gifPlayback??void 0,Q.height=$.height??void 0,Q.width=$.width??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.interactiveAnnotations=$.interactiveAnnotations?.map((q)=>V0.fromPartial(q))||void 0,Q.directPath=$.directPath??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.streamingSidecar=$.streamingSidecar??void 0,Q.gifAttribution=$.gifAttribution??void 0,Q.viewOnce=$.viewOnce??void 0,Q.thumbnailDirectPath=$.thumbnailDirectPath??void 0,Q.thumbnailSha256=$.thumbnailSha256??void 0,Q.thumbnailEncSha256=$.thumbnailEncSha256??void 0,Q.staticUrl=$.staticUrl??void 0,Q.annotations=$.annotations?.map((q)=>V0.fromPartial(q))||void 0,Q.accessibilityLabel=$.accessibilityLabel??void 0,Q.processedVideos=$.processedVideos?.map((q)=>b9.fromPartial(q))||void 0,Q.externalShareFullVideoDurationInSeconds=$.externalShareFullVideoDurationInSeconds??void 0,Q.motionPhotoPresentationOffsetMs=$.motionPhotoPresentationOffsetMs??void 0,Q.metadataUrl=$.metadataUrl??void 0,Q.videoSourceType=$.videoSourceType??void 0,Q}};function OP(){return{}}var U9={encode($,Q=new z){if($.messageAddOnType!==void 0)Q.uint32(8).int32($.messageAddOnType);if($.messageAddOn!==void 0)c.encode($.messageAddOn,Q.uint32(18).fork()).join();if($.senderTimestampMs!==void 0)Q.uint32(24).int64($.senderTimestampMs);if($.serverTimestampMs!==void 0)Q.uint32(32).int64($.serverTimestampMs);if($.status!==void 0)Q.uint32(40).int32($.status);if($.addOnContextInfo!==void 0)f$.encode($.addOnContextInfo,Q.uint32(50).fork()).join();if($.messageAddOnKey!==void 0)N.encode($.messageAddOnKey,Q.uint32(58).fork()).join();if($.legacyMessage!==void 0)q8.encode($.legacyMessage,Q.uint32(66).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??OP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.messageAddOnType=Z.int32();continue}case 2:{if(J!==18)break;K.messageAddOn=c.decode(Z,Z.uint32(),K.messageAddOn);continue}case 3:{if(J!==24)break;K.senderTimestampMs=Z.int64Value();continue}case 4:{if(J!==32)break;K.serverTimestampMs=Z.int64Value();continue}case 5:{if(J!==40)break;K.status=Z.int32();continue}case 6:{if(J!==50)break;K.addOnContextInfo=f$.decode(Z,Z.uint32(),K.addOnContextInfo);continue}case 7:{if(J!==58)break;K.messageAddOnKey=N.decode(Z,Z.uint32(),K.messageAddOnKey);continue}case 8:{if(J!==66)break;K.legacyMessage=q8.decode(Z,Z.uint32(),K.legacyMessage);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return U9.fromPartial($??{})},fromPartial($){let Q=OP();return Q.messageAddOnType=$.messageAddOnType??void 0,Q.messageAddOn=$.messageAddOn!==void 0&&$.messageAddOn!==null?c.fromPartial($.messageAddOn):void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q.serverTimestampMs=$.serverTimestampMs??void 0,Q.status=$.status??void 0,Q.addOnContextInfo=$.addOnContextInfo!==void 0&&$.addOnContextInfo!==null?f$.fromPartial($.addOnContextInfo):void 0,Q.messageAddOnKey=$.messageAddOnKey!==void 0&&$.messageAddOnKey!==null?N.fromPartial($.messageAddOnKey):void 0,Q.legacyMessage=$.legacyMessage!==void 0&&$.legacyMessage!==null?q8.fromPartial($.legacyMessage):void 0,Q}};function AP(){return{}}var f$={encode($,Q=new z){if($.messageAddOnDurationInSecs!==void 0)Q.uint32(8).uint32($.messageAddOnDurationInSecs);if($.messageAddOnExpiryType!==void 0)Q.uint32(16).int32($.messageAddOnExpiryType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??AP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.messageAddOnDurationInSecs=Z.uint32();continue}case 2:{if(J!==16)break;K.messageAddOnExpiryType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return f$.fromPartial($??{})},fromPartial($){let Q=AP();return Q.messageAddOnDurationInSecs=$.messageAddOnDurationInSecs??void 0,Q.messageAddOnExpiryType=$.messageAddOnExpiryType??void 0,Q}};function EP(){return{}}var C9={encode($,Q=new z){if($.associationType!==void 0)Q.uint32(8).int32($.associationType);if($.parentMessageKey!==void 0)N.encode($.parentMessageKey,Q.uint32(18).fork()).join();if($.messageIndex!==void 0)Q.uint32(24).int32($.messageIndex);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??EP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.associationType=Z.int32();continue}case 2:{if(J!==18)break;K.parentMessageKey=N.decode(Z,Z.uint32(),K.parentMessageKey);continue}case 3:{if(J!==24)break;K.messageIndex=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return C9.fromPartial($??{})},fromPartial($){let Q=EP();return Q.associationType=$.associationType??void 0,Q.parentMessageKey=$.parentMessageKey!==void 0&&$.parentMessageKey!==null?N.fromPartial($.parentMessageKey):void 0,Q.messageIndex=$.messageIndex??void 0,Q}};function MP(){return{}}var _$={encode($,Q=new z){if($.deviceListMetadata!==void 0)FK.encode($.deviceListMetadata,Q.uint32(10).fork()).join();if($.deviceListMetadataVersion!==void 0)Q.uint32(16).int32($.deviceListMetadataVersion);if($.messageSecret!==void 0)Q.uint32(26).bytes($.messageSecret);if($.paddingBytes!==void 0)Q.uint32(34).bytes($.paddingBytes);if($.messageAddOnDurationInSecs!==void 0)Q.uint32(40).uint32($.messageAddOnDurationInSecs);if($.botMessageSecret!==void 0)Q.uint32(50).bytes($.botMessageSecret);if($.botMetadata!==void 0)LZ.encode($.botMetadata,Q.uint32(58).fork()).join();if($.reportingTokenVersion!==void 0)Q.uint32(64).int32($.reportingTokenVersion);if($.messageAddOnExpiryType!==void 0)Q.uint32(72).int32($.messageAddOnExpiryType);if($.messageAssociation!==void 0)C9.encode($.messageAssociation,Q.uint32(82).fork()).join();if($.capiCreatedGroup!==void 0)Q.uint32(88).bool($.capiCreatedGroup);if($.supportPayload!==void 0)Q.uint32(98).string($.supportPayload);if($.limitSharing!==void 0)N0.encode($.limitSharing,Q.uint32(106).fork()).join();if($.limitSharingV2!==void 0)N0.encode($.limitSharingV2,Q.uint32(114).fork()).join();if($.threadId!==void 0&&$.threadId.length!==0)for(let q of $.threadId)zV.encode(q,Q.uint32(122).fork()).join();if($.weblinkRenderConfig!==void 0)Q.uint32(128).int32($.weblinkRenderConfig);if($.teeBotMetadata!==void 0)Q.uint32(138).bytes($.teeBotMetadata);if($.accountEncryptionAttestation!==void 0)T9.encode($.accountEncryptionAttestation,Q.uint32(146).fork()).join();if($.associatedPrimaryIdentityKey!==void 0)Q.uint32(154).bytes($.associatedPrimaryIdentityKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??MP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.deviceListMetadata=FK.decode(Z,Z.uint32(),K.deviceListMetadata);continue}case 2:{if(J!==16)break;K.deviceListMetadataVersion=Z.int32();continue}case 3:{if(J!==26)break;K.messageSecret=Z.bytes();continue}case 4:{if(J!==34)break;K.paddingBytes=Z.bytes();continue}case 5:{if(J!==40)break;K.messageAddOnDurationInSecs=Z.uint32();continue}case 6:{if(J!==50)break;K.botMessageSecret=Z.bytes();continue}case 7:{if(J!==58)break;K.botMetadata=LZ.decode(Z,Z.uint32(),K.botMetadata);continue}case 8:{if(J!==64)break;K.reportingTokenVersion=Z.int32();continue}case 9:{if(J!==72)break;K.messageAddOnExpiryType=Z.int32();continue}case 10:{if(J!==82)break;K.messageAssociation=C9.decode(Z,Z.uint32(),K.messageAssociation);continue}case 11:{if(J!==88)break;K.capiCreatedGroup=Z.bool();continue}case 12:{if(J!==98)break;K.supportPayload=Z.string();continue}case 13:{if(J!==106)break;K.limitSharing=N0.decode(Z,Z.uint32(),K.limitSharing);continue}case 14:{if(J!==114)break;K.limitSharingV2=N0.decode(Z,Z.uint32(),K.limitSharingV2);continue}case 15:{if(J!==122)break;if(K.threadId===void 0)K.threadId=[];let V=zV.decode(Z,Z.uint32());if(V!==void 0)K.threadId.push(V);continue}case 16:{if(J!==128)break;K.weblinkRenderConfig=Z.int32();continue}case 17:{if(J!==138)break;K.teeBotMetadata=Z.bytes();continue}case 18:{if(J!==146)break;K.accountEncryptionAttestation=T9.decode(Z,Z.uint32(),K.accountEncryptionAttestation);continue}case 19:{if(J!==154)break;K.associatedPrimaryIdentityKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return _$.fromPartial($??{})},fromPartial($){let Q=MP();return Q.deviceListMetadata=$.deviceListMetadata!==void 0&&$.deviceListMetadata!==null?FK.fromPartial($.deviceListMetadata):void 0,Q.deviceListMetadataVersion=$.deviceListMetadataVersion??void 0,Q.messageSecret=$.messageSecret??void 0,Q.paddingBytes=$.paddingBytes??void 0,Q.messageAddOnDurationInSecs=$.messageAddOnDurationInSecs??void 0,Q.botMessageSecret=$.botMessageSecret??void 0,Q.botMetadata=$.botMetadata!==void 0&&$.botMetadata!==null?LZ.fromPartial($.botMetadata):void 0,Q.reportingTokenVersion=$.reportingTokenVersion??void 0,Q.messageAddOnExpiryType=$.messageAddOnExpiryType??void 0,Q.messageAssociation=$.messageAssociation!==void 0&&$.messageAssociation!==null?C9.fromPartial($.messageAssociation):void 0,Q.capiCreatedGroup=$.capiCreatedGroup??void 0,Q.supportPayload=$.supportPayload??void 0,Q.limitSharing=$.limitSharing!==void 0&&$.limitSharing!==null?N0.fromPartial($.limitSharing):void 0,Q.limitSharingV2=$.limitSharingV2!==void 0&&$.limitSharingV2!==null?N0.fromPartial($.limitSharingV2):void 0,Q.threadId=$.threadId?.map((q)=>zV.fromPartial(q))||void 0,Q.weblinkRenderConfig=$.weblinkRenderConfig??void 0,Q.teeBotMetadata=$.teeBotMetadata??void 0,Q.accountEncryptionAttestation=$.accountEncryptionAttestation!==void 0&&$.accountEncryptionAttestation!==null?T9.fromPartial($.accountEncryptionAttestation):void 0,Q.associatedPrimaryIdentityKey=$.associatedPrimaryIdentityKey??void 0,Q}};function WP(){return{}}var N={encode($,Q=new z){if($.remoteJid!==void 0)Q.uint32(10).string($.remoteJid);if($.fromMe!==void 0)Q.uint32(16).bool($.fromMe);if($.id!==void 0)Q.uint32(26).string($.id);if($.participant!==void 0)Q.uint32(34).string($.participant);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??WP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.remoteJid=Z.string();continue}case 2:{if(J!==16)break;K.fromMe=Z.bool();continue}case 3:{if(J!==26)break;K.id=Z.string();continue}case 4:{if(J!==34)break;K.participant=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return N.fromPartial($??{})},fromPartial($){let Q=WP();return Q.remoteJid=$.remoteJid??void 0,Q.fromMe=$.fromMe??void 0,Q.id=$.id??void 0,Q.participant=$.participant??void 0,Q}};function SP(){return{}}var g3={encode($,Q=new z){if($.version!==void 0)Q.uint32(13).sfixed32($.version);if($.encIv!==void 0)Q.uint32(18).bytes($.encIv);if($.encPayload!==void 0)Q.uint32(26).bytes($.encPayload);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??SP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==13)break;K.version=Z.sfixed32();continue}case 2:{if(J!==18)break;K.encIv=Z.bytes();continue}case 3:{if(J!==26)break;K.encPayload=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return g3.fromPartial($??{})},fromPartial($){let Q=SP();return Q.version=$.version??void 0,Q.encIv=$.encIv??void 0,Q.encPayload=$.encPayload??void 0,Q}};function IP(){return{}}var a={encode($,Q=new z){if($.text!==void 0)Q.uint32(10).string($.text);if($.mentionedJid!==void 0&&$.mentionedJid.length!==0)for(let q of $.mentionedJid)Q.uint32(18).string(q);if($.commands!==void 0&&$.commands.length!==0)for(let q of $.commands)H$.encode(q,Q.uint32(26).fork()).join();if($.mentions!==void 0&&$.mentions.length!==0)for(let q of $.mentions)B$.encode(q,Q.uint32(34).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??IP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.text=Z.string();continue}case 2:{if(J!==18)break;if(K.mentionedJid===void 0)K.mentionedJid=[];let V=Z.string();if(V!==void 0)K.mentionedJid.push(V);continue}case 3:{if(J!==26)break;if(K.commands===void 0)K.commands=[];let V=H$.decode(Z,Z.uint32());if(V!==void 0)K.commands.push(V);continue}case 4:{if(J!==34)break;if(K.mentions===void 0)K.mentions=[];let V=B$.decode(Z,Z.uint32());if(V!==void 0)K.mentions.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return a.fromPartial($??{})},fromPartial($){let Q=IP();return Q.text=$.text??void 0,Q.mentionedJid=$.mentionedJid?.map((q)=>q)||void 0,Q.commands=$.commands?.map((q)=>H$.fromPartial(q))||void 0,Q.mentions=$.mentions?.map((q)=>B$.fromPartial(q))||void 0,Q}};function TP(){return{}}var b={encode($,Q=new z){if($.epochHead!==void 0)Q.uint32(10).bytes($.epochHead);if($.deviceRosterHash!==void 0)Q.uint32(18).bytes($.deviceRosterHash);if($.sequenceNumber!==void 0)Q.uint32(24).uint64($.sequenceNumber);if($.sigPk!==void 0)Q.uint32(34).bytes($.sigPk);if($.encPk!==void 0)Q.uint32(42).bytes($.encPk);if($.authPk!==void 0)Q.uint32(50).bytes($.authPk);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??TP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.epochHead=Z.bytes();continue}case 2:{if(J!==18)break;K.deviceRosterHash=Z.bytes();continue}case 3:{if(J!==24)break;K.sequenceNumber=Z.uint64Value();continue}case 4:{if(J!==34)break;K.sigPk=Z.bytes();continue}case 5:{if(J!==42)break;K.encPk=Z.bytes();continue}case 6:{if(J!==50)break;K.authPk=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return b.fromPartial($??{})},fromPartial($){let Q=TP();return Q.epochHead=$.epochHead??void 0,Q.deviceRosterHash=$.deviceRosterHash??void 0,Q.sequenceNumber=$.sequenceNumber??void 0,Q.sigPk=$.sigPk??void 0,Q.encPk=$.encPk??void 0,Q.authPk=$.authPk??void 0,Q}};function yP(){return{}}var i={encode($,Q=new z){if($.preferredMessageEncryptionVersion!==void 0)Q.uint32(8).int32($.preferredMessageEncryptionVersion);if($.preferredMekEncryptionVersion!==void 0)Q.uint32(16).int32($.preferredMekEncryptionVersion);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??yP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.preferredMessageEncryptionVersion=Z.int32();continue}case 2:{if(J!==16)break;K.preferredMekEncryptionVersion=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return i.fromPartial($??{})},fromPartial($){let Q=yP();return Q.preferredMessageEncryptionVersion=$.preferredMessageEncryptionVersion??void 0,Q.preferredMekEncryptionVersion=$.preferredMekEncryptionVersion??void 0,Q}};function vP(){return{}}var r3={encode($,Q=new z){if($.encryptAndSignMessage!==void 0)P9.encode($.encryptAndSignMessage,Q.uint32(10).fork()).join();if($.decryptAndVerifyMessage!==void 0)D9.encode($.decryptAndVerifyMessage,Q.uint32(18).fork()).join();if($.generateMek!==void 0)yK.encode($.generateMek,Q.uint32(26).fork()).join();if($.generateMekRosterHash!==void 0)vK.encode($.generateMekRosterHash,Q.uint32(34).fork()).join();if($.encryptMekForDistribution!==void 0)NK.encode($.encryptMekForDistribution,Q.uint32(42).fork()).join();if($.decryptMekForDistribution!==void 0)gJ.encode($.decryptMekForDistribution,Q.uint32(50).fork()).join();if($.encryptMeksForDistributionFromTransportSender!==void 0)RK.encode($.encryptMeksForDistributionFromTransportSender,Q.uint32(58).fork()).join();if($.decryptMekForDistributionFromTransportSender!==void 0)oJ.encode($.decryptMekForDistributionFromTransportSender,Q.uint32(66).fork()).join();if($.wrapTransportSigningPublicKey!==void 0)xV.encode($.wrapTransportSigningPublicKey,Q.uint32(74).fork()).join();if($.wrapTransportSigningSecretKey!==void 0)kV.encode($.wrapTransportSigningSecretKey,Q.uint32(82).fork()).join();if($.deriveMailboxSigningKeypair!==void 0)JK.encode($.deriveMailboxSigningKeypair,Q.uint32(90).fork()).join();if($.deriveMailboxEncryptionKeypair!==void 0)ZK.encode($.deriveMailboxEncryptionKeypair,Q.uint32(98).fork()).join();if($.deriveMailboxAuthKeypair!==void 0)QK.encode($.deriveMailboxAuthKeypair,Q.uint32(106).fork()).join();if($.deriveAttachmentAccessTokenSecret!==void 0)eJ.encode($.deriveAttachmentAccessTokenSecret,Q.uint32(114).fork()).join();if($.deriveAttachmentPrimaryKeySecret!==void 0)$K.encode($.deriveAttachmentPrimaryKeySecret,Q.uint32(122).fork()).join();if($.minosOpenInitialEpoch!==void 0)x9.encode($.minosOpenInitialEpoch,Q.uint32(130).fork()).join();if($.minosOpenEpoch!==void 0)L9.encode($.minosOpenEpoch,Q.uint32(138).fork()).join();if($.minosValidateEpoch!==void 0)B9.encode($.minosValidateEpoch,Q.uint32(146).fork()).join();if($.minosVerifySingleEpoch!==void 0)R9.encode($.minosVerifySingleEpoch,Q.uint32(154).fork()).join();if($.minosThreadIdFromOneToOneThread!==void 0)N9.encode($.minosThreadIdFromOneToOneThread,Q.uint32(162).fork()).join();if($.minosThreadIdFromActThreadId!==void 0)k9.encode($.minosThreadIdFromActThreadId,Q.uint32(170).fork()).join();if($.mandrakeOpenEpoch!==void 0)N8.encode($.mandrakeOpenEpoch,Q.uint32(178).fork()).join();if($.mandrakeEncryptMek!==void 0)C8.encode($.mandrakeEncryptMek,Q.uint32(186).fork()).join();if($.mandrakeDecryptMek!==void 0)V8.encode($.mandrakeDecryptMek,Q.uint32(194).fork()).join();if($.mandrakeOpenInitialEpoch!==void 0)B8.encode($.mandrakeOpenInitialEpoch,Q.uint32(202).fork()).join();if($.mandrakeValidateNewMmkFromMailbox!==void 0)O8.encode($.mandrakeValidateNewMmkFromMailbox,Q.uint32(218).fork()).join();if($.mandrakeValidateNewMmkFromDetachedDevice!==void 0)R8.encode($.mandrakeValidateNewMmkFromDetachedDevice,Q.uint32(226).fork()).join();if($.deriveMessagingMailboxKeypairs!==void 0)XK.encode($.deriveMessagingMailboxKeypairs,Q.uint32(234).fork()).join();if($.decryptSelfMmkDistribution!==void 0)aJ.encode($.decryptSelfMmkDistribution,Q.uint32(242).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??vP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encryptAndSignMessage=P9.decode(Z,Z.uint32(),K.encryptAndSignMessage);continue}case 2:{if(J!==18)break;K.decryptAndVerifyMessage=D9.decode(Z,Z.uint32(),K.decryptAndVerifyMessage);continue}case 3:{if(J!==26)break;K.generateMek=yK.decode(Z,Z.uint32(),K.generateMek);continue}case 4:{if(J!==34)break;K.generateMekRosterHash=vK.decode(Z,Z.uint32(),K.generateMekRosterHash);continue}case 5:{if(J!==42)break;K.encryptMekForDistribution=NK.decode(Z,Z.uint32(),K.encryptMekForDistribution);continue}case 6:{if(J!==50)break;K.decryptMekForDistribution=gJ.decode(Z,Z.uint32(),K.decryptMekForDistribution);continue}case 7:{if(J!==58)break;K.encryptMeksForDistributionFromTransportSender=RK.decode(Z,Z.uint32(),K.encryptMeksForDistributionFromTransportSender);continue}case 8:{if(J!==66)break;K.decryptMekForDistributionFromTransportSender=oJ.decode(Z,Z.uint32(),K.decryptMekForDistributionFromTransportSender);continue}case 9:{if(J!==74)break;K.wrapTransportSigningPublicKey=xV.decode(Z,Z.uint32(),K.wrapTransportSigningPublicKey);continue}case 10:{if(J!==82)break;K.wrapTransportSigningSecretKey=kV.decode(Z,Z.uint32(),K.wrapTransportSigningSecretKey);continue}case 11:{if(J!==90)break;K.deriveMailboxSigningKeypair=JK.decode(Z,Z.uint32(),K.deriveMailboxSigningKeypair);continue}case 12:{if(J!==98)break;K.deriveMailboxEncryptionKeypair=ZK.decode(Z,Z.uint32(),K.deriveMailboxEncryptionKeypair);continue}case 13:{if(J!==106)break;K.deriveMailboxAuthKeypair=QK.decode(Z,Z.uint32(),K.deriveMailboxAuthKeypair);continue}case 14:{if(J!==114)break;K.deriveAttachmentAccessTokenSecret=eJ.decode(Z,Z.uint32(),K.deriveAttachmentAccessTokenSecret);continue}case 15:{if(J!==122)break;K.deriveAttachmentPrimaryKeySecret=$K.decode(Z,Z.uint32(),K.deriveAttachmentPrimaryKeySecret);continue}case 16:{if(J!==130)break;K.minosOpenInitialEpoch=x9.decode(Z,Z.uint32(),K.minosOpenInitialEpoch);continue}case 17:{if(J!==138)break;K.minosOpenEpoch=L9.decode(Z,Z.uint32(),K.minosOpenEpoch);continue}case 18:{if(J!==146)break;K.minosValidateEpoch=B9.decode(Z,Z.uint32(),K.minosValidateEpoch);continue}case 19:{if(J!==154)break;K.minosVerifySingleEpoch=R9.decode(Z,Z.uint32(),K.minosVerifySingleEpoch);continue}case 20:{if(J!==162)break;K.minosThreadIdFromOneToOneThread=N9.decode(Z,Z.uint32(),K.minosThreadIdFromOneToOneThread);continue}case 21:{if(J!==170)break;K.minosThreadIdFromActThreadId=k9.decode(Z,Z.uint32(),K.minosThreadIdFromActThreadId);continue}case 22:{if(J!==178)break;K.mandrakeOpenEpoch=N8.decode(Z,Z.uint32(),K.mandrakeOpenEpoch);continue}case 23:{if(J!==186)break;K.mandrakeEncryptMek=C8.decode(Z,Z.uint32(),K.mandrakeEncryptMek);continue}case 24:{if(J!==194)break;K.mandrakeDecryptMek=V8.decode(Z,Z.uint32(),K.mandrakeDecryptMek);continue}case 25:{if(J!==202)break;K.mandrakeOpenInitialEpoch=B8.decode(Z,Z.uint32(),K.mandrakeOpenInitialEpoch);continue}case 27:{if(J!==218)break;K.mandrakeValidateNewMmkFromMailbox=O8.decode(Z,Z.uint32(),K.mandrakeValidateNewMmkFromMailbox);continue}case 28:{if(J!==226)break;K.mandrakeValidateNewMmkFromDetachedDevice=R8.decode(Z,Z.uint32(),K.mandrakeValidateNewMmkFromDetachedDevice);continue}case 29:{if(J!==234)break;K.deriveMessagingMailboxKeypairs=XK.decode(Z,Z.uint32(),K.deriveMessagingMailboxKeypairs);continue}case 30:{if(J!==242)break;K.decryptSelfMmkDistribution=aJ.decode(Z,Z.uint32(),K.decryptSelfMmkDistribution);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return r3.fromPartial($??{})},fromPartial($){let Q=vP();return Q.encryptAndSignMessage=$.encryptAndSignMessage!==void 0&&$.encryptAndSignMessage!==null?P9.fromPartial($.encryptAndSignMessage):void 0,Q.decryptAndVerifyMessage=$.decryptAndVerifyMessage!==void 0&&$.decryptAndVerifyMessage!==null?D9.fromPartial($.decryptAndVerifyMessage):void 0,Q.generateMek=$.generateMek!==void 0&&$.generateMek!==null?yK.fromPartial($.generateMek):void 0,Q.generateMekRosterHash=$.generateMekRosterHash!==void 0&&$.generateMekRosterHash!==null?vK.fromPartial($.generateMekRosterHash):void 0,Q.encryptMekForDistribution=$.encryptMekForDistribution!==void 0&&$.encryptMekForDistribution!==null?NK.fromPartial($.encryptMekForDistribution):void 0,Q.decryptMekForDistribution=$.decryptMekForDistribution!==void 0&&$.decryptMekForDistribution!==null?gJ.fromPartial($.decryptMekForDistribution):void 0,Q.encryptMeksForDistributionFromTransportSender=$.encryptMeksForDistributionFromTransportSender!==void 0&&$.encryptMeksForDistributionFromTransportSender!==null?RK.fromPartial($.encryptMeksForDistributionFromTransportSender):void 0,Q.decryptMekForDistributionFromTransportSender=$.decryptMekForDistributionFromTransportSender!==void 0&&$.decryptMekForDistributionFromTransportSender!==null?oJ.fromPartial($.decryptMekForDistributionFromTransportSender):void 0,Q.wrapTransportSigningPublicKey=$.wrapTransportSigningPublicKey!==void 0&&$.wrapTransportSigningPublicKey!==null?xV.fromPartial($.wrapTransportSigningPublicKey):void 0,Q.wrapTransportSigningSecretKey=$.wrapTransportSigningSecretKey!==void 0&&$.wrapTransportSigningSecretKey!==null?kV.fromPartial($.wrapTransportSigningSecretKey):void 0,Q.deriveMailboxSigningKeypair=$.deriveMailboxSigningKeypair!==void 0&&$.deriveMailboxSigningKeypair!==null?JK.fromPartial($.deriveMailboxSigningKeypair):void 0,Q.deriveMailboxEncryptionKeypair=$.deriveMailboxEncryptionKeypair!==void 0&&$.deriveMailboxEncryptionKeypair!==null?ZK.fromPartial($.deriveMailboxEncryptionKeypair):void 0,Q.deriveMailboxAuthKeypair=$.deriveMailboxAuthKeypair!==void 0&&$.deriveMailboxAuthKeypair!==null?QK.fromPartial($.deriveMailboxAuthKeypair):void 0,Q.deriveAttachmentAccessTokenSecret=$.deriveAttachmentAccessTokenSecret!==void 0&&$.deriveAttachmentAccessTokenSecret!==null?eJ.fromPartial($.deriveAttachmentAccessTokenSecret):void 0,Q.deriveAttachmentPrimaryKeySecret=$.deriveAttachmentPrimaryKeySecret!==void 0&&$.deriveAttachmentPrimaryKeySecret!==null?$K.fromPartial($.deriveAttachmentPrimaryKeySecret):void 0,Q.minosOpenInitialEpoch=$.minosOpenInitialEpoch!==void 0&&$.minosOpenInitialEpoch!==null?x9.fromPartial($.minosOpenInitialEpoch):void 0,Q.minosOpenEpoch=$.minosOpenEpoch!==void 0&&$.minosOpenEpoch!==null?L9.fromPartial($.minosOpenEpoch):void 0,Q.minosValidateEpoch=$.minosValidateEpoch!==void 0&&$.minosValidateEpoch!==null?B9.fromPartial($.minosValidateEpoch):void 0,Q.minosVerifySingleEpoch=$.minosVerifySingleEpoch!==void 0&&$.minosVerifySingleEpoch!==null?R9.fromPartial($.minosVerifySingleEpoch):void 0,Q.minosThreadIdFromOneToOneThread=$.minosThreadIdFromOneToOneThread!==void 0&&$.minosThreadIdFromOneToOneThread!==null?N9.fromPartial($.minosThreadIdFromOneToOneThread):void 0,Q.minosThreadIdFromActThreadId=$.minosThreadIdFromActThreadId!==void 0&&$.minosThreadIdFromActThreadId!==null?k9.fromPartial($.minosThreadIdFromActThreadId):void 0,Q.mandrakeOpenEpoch=$.mandrakeOpenEpoch!==void 0&&$.mandrakeOpenEpoch!==null?N8.fromPartial($.mandrakeOpenEpoch):void 0,Q.mandrakeEncryptMek=$.mandrakeEncryptMek!==void 0&&$.mandrakeEncryptMek!==null?C8.fromPartial($.mandrakeEncryptMek):void 0,Q.mandrakeDecryptMek=$.mandrakeDecryptMek!==void 0&&$.mandrakeDecryptMek!==null?V8.fromPartial($.mandrakeDecryptMek):void 0,Q.mandrakeOpenInitialEpoch=$.mandrakeOpenInitialEpoch!==void 0&&$.mandrakeOpenInitialEpoch!==null?B8.fromPartial($.mandrakeOpenInitialEpoch):void 0,Q.mandrakeValidateNewMmkFromMailbox=$.mandrakeValidateNewMmkFromMailbox!==void 0&&$.mandrakeValidateNewMmkFromMailbox!==null?O8.fromPartial($.mandrakeValidateNewMmkFromMailbox):void 0,Q.mandrakeValidateNewMmkFromDetachedDevice=$.mandrakeValidateNewMmkFromDetachedDevice!==void 0&&$.mandrakeValidateNewMmkFromDetachedDevice!==null?R8.fromPartial($.mandrakeValidateNewMmkFromDetachedDevice):void 0,Q.deriveMessagingMailboxKeypairs=$.deriveMessagingMailboxKeypairs!==void 0&&$.deriveMessagingMailboxKeypairs!==null?XK.fromPartial($.deriveMessagingMailboxKeypairs):void 0,Q.decryptSelfMmkDistribution=$.decryptSelfMmkDistribution!==void 0&&$.decryptSelfMmkDistribution!==null?aJ.fromPartial($.decryptSelfMmkDistribution):void 0,Q}};function fP(){return{}}var D9={encode($,Q=new z){if($.transportSigningPk!==void 0)Q.uint32(10).bytes($.transportSigningPk);if($.mek!==void 0)Q.uint32(18).bytes($.mek);if($.encryptedMessageCiphertext!==void 0)Q.uint32(26).bytes($.encryptedMessageCiphertext);if($.encryptedMessageSignature!==void 0)Q.uint32(34).bytes($.encryptedMessageSignature);if($.metadata!==void 0)h$.encode($.metadata,Q.uint32(42).fork()).join();if($.messageEncryptionVersion!==void 0)Q.uint32(48).int32($.messageEncryptionVersion);if($.conf!==void 0)i.encode($.conf,Q.uint32(58).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??fP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.transportSigningPk=Z.bytes();continue}case 2:{if(J!==18)break;K.mek=Z.bytes();continue}case 3:{if(J!==26)break;K.encryptedMessageCiphertext=Z.bytes();continue}case 4:{if(J!==34)break;K.encryptedMessageSignature=Z.bytes();continue}case 5:{if(J!==42)break;K.metadata=h$.decode(Z,Z.uint32(),K.metadata);continue}case 6:{if(J!==48)break;K.messageEncryptionVersion=Z.int32();continue}case 7:{if(J!==58)break;K.conf=i.decode(Z,Z.uint32(),K.conf);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return D9.fromPartial($??{})},fromPartial($){let Q=fP();return Q.transportSigningPk=$.transportSigningPk??void 0,Q.mek=$.mek??void 0,Q.encryptedMessageCiphertext=$.encryptedMessageCiphertext??void 0,Q.encryptedMessageSignature=$.encryptedMessageSignature??void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?h$.fromPartial($.metadata):void 0,Q.messageEncryptionVersion=$.messageEncryptionVersion??void 0,Q.conf=$.conf!==void 0&&$.conf!==null?i.fromPartial($.conf):void 0,Q}};function _P(){return{}}var t3={encode($,Q=new z){if($.success!==void 0)F9.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??_P();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.success=F9.decode(Z,Z.uint32(),K.success);continue}case 2:{if(J!==18)break;K.errorMessage=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return t3.fromPartial($??{})},fromPartial($){let Q=_P();return Q.success=$.success!==void 0&&$.success!==null?F9.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function hP(){return{}}var F9={encode($,Q=new z){if($.plaintext!==void 0)Q.uint32(10).bytes($.plaintext);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??hP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.plaintext=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return F9.fromPartial($??{})},fromPartial($){let Q=hP();return Q.plaintext=$.plaintext??void 0,Q}};function lP(){return{}}var P9={encode($,Q=new z){if($.transportSigningSk!==void 0)Q.uint32(10).bytes($.transportSigningSk);if($.mek!==void 0)Q.uint32(18).bytes($.mek);if($.plaintext!==void 0)Q.uint32(26).bytes($.plaintext);if($.metadata!==void 0)h$.encode($.metadata,Q.uint32(34).fork()).join();if($.transportSigningPk!==void 0)Q.uint32(42).bytes($.transportSigningPk);if($.conf!==void 0)i.encode($.conf,Q.uint32(50).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??lP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.transportSigningSk=Z.bytes();continue}case 2:{if(J!==18)break;K.mek=Z.bytes();continue}case 3:{if(J!==26)break;K.plaintext=Z.bytes();continue}case 4:{if(J!==34)break;K.metadata=h$.decode(Z,Z.uint32(),K.metadata);continue}case 5:{if(J!==42)break;K.transportSigningPk=Z.bytes();continue}case 6:{if(J!==50)break;K.conf=i.decode(Z,Z.uint32(),K.conf);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return P9.fromPartial($??{})},fromPartial($){let Q=lP();return Q.transportSigningSk=$.transportSigningSk??void 0,Q.mek=$.mek??void 0,Q.plaintext=$.plaintext??void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?h$.fromPartial($.metadata):void 0,Q.transportSigningPk=$.transportSigningPk??void 0,Q.conf=$.conf!==void 0&&$.conf!==null?i.fromPartial($.conf):void 0,Q}};function pP(){return{}}var a3={encode($,Q=new z){if($.ciphertext!==void 0)Q.uint32(10).bytes($.ciphertext);if($.signature!==void 0)Q.uint32(18).bytes($.signature);if($.version!==void 0)Q.uint32(24).int32($.version);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??pP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.ciphertext=Z.bytes();continue}case 2:{if(J!==18)break;K.signature=Z.bytes();continue}case 3:{if(J!==24)break;K.version=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return a3.fromPartial($??{})},fromPartial($){let Q=pP();return Q.ciphertext=$.ciphertext??void 0,Q.signature=$.signature??void 0,Q.version=$.version??void 0,Q}};function uP(){return{}}var h$={encode($,Q=new z){if($.mekId!==void 0)Q.uint32(10).bytes($.mekId);if($.timestamp!==void 0)Q.uint32(16).uint64($.timestamp);if($.messageId!==void 0)Q.uint32(26).string($.messageId);if($.threadId!==void 0)Q.uint32(34).bytes($.threadId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??uP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mekId=Z.bytes();continue}case 2:{if(J!==16)break;K.timestamp=Z.uint64Value();continue}case 3:{if(J!==26)break;K.messageId=Z.string();continue}case 4:{if(J!==34)break;K.threadId=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return h$.fromPartial($??{})},fromPartial($){let Q=uP();return Q.mekId=$.mekId??void 0,Q.timestamp=$.timestamp??void 0,Q.messageId=$.messageId??void 0,Q.threadId=$.threadId??void 0,Q}};function wP(){return{}}var L9={encode($,Q=new z){if($.userFbid!==void 0)Q.uint32(10).string($.userFbid);if($.epochNumber!==void 0)Q.uint32(16).uint64($.epochNumber);if($.exportRootKey!==void 0)Q.uint32(26).bytes($.exportRootKey);if($.previousExportRootKey!==void 0)Q.uint32(34).bytes($.previousExportRootKey);if($.previousEpochNumber!==void 0)Q.uint32(40).uint64($.previousEpochNumber);if($.previousEpochHead!==void 0)Q.uint32(50).bytes($.previousEpochHead);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??wP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.userFbid=Z.string();continue}case 2:{if(J!==16)break;K.epochNumber=Z.uint64Value();continue}case 3:{if(J!==26)break;K.exportRootKey=Z.bytes();continue}case 4:{if(J!==34)break;K.previousExportRootKey=Z.bytes();continue}case 5:{if(J!==40)break;K.previousEpochNumber=Z.uint64Value();continue}case 6:{if(J!==50)break;K.previousEpochHead=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return L9.fromPartial($??{})},fromPartial($){let Q=wP();return Q.userFbid=$.userFbid??void 0,Q.epochNumber=$.epochNumber??void 0,Q.exportRootKey=$.exportRootKey??void 0,Q.previousExportRootKey=$.previousExportRootKey??void 0,Q.previousEpochNumber=$.previousEpochNumber??void 0,Q.previousEpochHead=$.previousEpochHead??void 0,Q}};function jP(){return{}}var s3={encode($,Q=new z){if($.minosSignedEpoch!==void 0)v0.encode($.minosSignedEpoch,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??jP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.minosSignedEpoch=v0.decode(Z,Z.uint32(),K.minosSignedEpoch);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return s3.fromPartial($??{})},fromPartial($){let Q=jP();return Q.minosSignedEpoch=$.minosSignedEpoch!==void 0&&$.minosSignedEpoch!==null?v0.fromPartial($.minosSignedEpoch):void 0,Q}};function cP(){return{}}var x9={encode($,Q=new z){if($.userFbid!==void 0)Q.uint32(10).string($.userFbid);if($.epochNumber!==void 0)Q.uint32(16).uint64($.epochNumber);if($.exportRootKey!==void 0)Q.uint32(26).bytes($.exportRootKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??cP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.userFbid=Z.string();continue}case 2:{if(J!==16)break;K.epochNumber=Z.uint64Value();continue}case 3:{if(J!==26)break;K.exportRootKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return x9.fromPartial($??{})},fromPartial($){let Q=cP();return Q.userFbid=$.userFbid??void 0,Q.epochNumber=$.epochNumber??void 0,Q.exportRootKey=$.exportRootKey??void 0,Q}};function dP(){return{}}var e3={encode($,Q=new z){if($.minosSignedEpoch!==void 0)v0.encode($.minosSignedEpoch,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??dP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.minosSignedEpoch=v0.decode(Z,Z.uint32(),K.minosSignedEpoch);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return e3.fromPartial($??{})},fromPartial($){let Q=dP();return Q.minosSignedEpoch=$.minosSignedEpoch!==void 0&&$.minosSignedEpoch!==null?v0.fromPartial($.minosSignedEpoch):void 0,Q}};function nP(){return{}}var v0={encode($,Q=new z){if($.epochPublicData!==void 0)r.encode($.epochPublicData,Q.uint32(10).fork()).join();if($.signatures!==void 0)k$.encode($.signatures,Q.uint32(18).fork()).join();if($.epochHead!==void 0)Q.uint32(26).bytes($.epochHead);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??nP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.epochPublicData=r.decode(Z,Z.uint32(),K.epochPublicData);continue}case 2:{if(J!==18)break;K.signatures=k$.decode(Z,Z.uint32(),K.signatures);continue}case 3:{if(J!==26)break;K.epochHead=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return v0.fromPartial($??{})},fromPartial($){let Q=nP();return Q.epochPublicData=$.epochPublicData!==void 0&&$.epochPublicData!==null?r.fromPartial($.epochPublicData):void 0,Q.signatures=$.signatures!==void 0&&$.signatures!==null?k$.fromPartial($.signatures):void 0,Q.epochHead=$.epochHead??void 0,Q}};function bP(){return{}}var k9={encode($,Q=new z){if($.actThreadId!==void 0)Q.uint32(10).string($.actThreadId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??bP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.actThreadId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return k9.fromPartial($??{})},fromPartial($){let Q=bP();return Q.actThreadId=$.actThreadId??void 0,Q}};function oP(){return{}}var $E={encode($,Q=new z){if($.threadId!==void 0)Q.uint32(10).bytes($.threadId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??oP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.threadId=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return $E.fromPartial($??{})},fromPartial($){let Q=oP();return Q.threadId=$.threadId??void 0,Q}};function iP(){return{}}var N9={encode($,Q=new z){if($.actThreadId!==void 0)Q.uint32(10).string($.actThreadId);if($.selfFbid!==void 0)Q.uint32(18).string($.selfFbid);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??iP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.actThreadId=Z.string();continue}case 2:{if(J!==18)break;K.selfFbid=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return N9.fromPartial($??{})},fromPartial($){let Q=iP();return Q.actThreadId=$.actThreadId??void 0,Q.selfFbid=$.selfFbid??void 0,Q}};function mP(){return{}}var QE={encode($,Q=new z){if($.threadId!==void 0)Q.uint32(10).bytes($.threadId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??mP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.threadId=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return QE.fromPartial($??{})},fromPartial($){let Q=mP();return Q.threadId=$.threadId??void 0,Q}};function gP(){return{}}var B9={encode($,Q=new z){if($.epochPublicData!==void 0)r.encode($.epochPublicData,Q.uint32(10).fork()).join();if($.previousEpochPublicData!==void 0)r.encode($.previousEpochPublicData,Q.uint32(18).fork()).join();if($.signatures!==void 0)k$.encode($.signatures,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??gP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.epochPublicData=r.decode(Z,Z.uint32(),K.epochPublicData);continue}case 2:{if(J!==18)break;K.previousEpochPublicData=r.decode(Z,Z.uint32(),K.previousEpochPublicData);continue}case 3:{if(J!==26)break;K.signatures=k$.decode(Z,Z.uint32(),K.signatures);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return B9.fromPartial($??{})},fromPartial($){let Q=gP();return Q.epochPublicData=$.epochPublicData!==void 0&&$.epochPublicData!==null?r.fromPartial($.epochPublicData):void 0,Q.previousEpochPublicData=$.previousEpochPublicData!==void 0&&$.previousEpochPublicData!==null?r.fromPartial($.previousEpochPublicData):void 0,Q.signatures=$.signatures!==void 0&&$.signatures!==null?k$.fromPartial($.signatures):void 0,Q}};function rP(){return{}}var ZE={encode($,Q=new z){if($.valid!==void 0)Q.uint32(8).bool($.valid);if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??rP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.valid=Z.bool();continue}case 2:{if(J!==18)break;K.errorMessage=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return ZE.fromPartial($??{})},fromPartial($){let Q=rP();return Q.valid=$.valid??void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function tP(){return{}}var R9={encode($,Q=new z){if($.epochPublicData!==void 0)r.encode($.epochPublicData,Q.uint32(10).fork()).join();if($.signature!==void 0)Q.uint32(18).bytes($.signature);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??tP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.epochPublicData=r.decode(Z,Z.uint32(),K.epochPublicData);continue}case 2:{if(J!==18)break;K.signature=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return R9.fromPartial($??{})},fromPartial($){let Q=tP();return Q.epochPublicData=$.epochPublicData!==void 0&&$.epochPublicData!==null?r.fromPartial($.epochPublicData):void 0,Q.signature=$.signature??void 0,Q}};function aP(){return{}}var JE={encode($,Q=new z){if($.valid!==void 0)Q.uint32(8).bool($.valid);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??aP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.valid=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return JE.fromPartial($??{})},fromPartial($){let Q=aP();return Q.valid=$.valid??void 0,Q}};function sP(){return{}}var O9={encode($,Q=new z){if($.toDetachedDevices!==void 0&&$.toDetachedDevices.length!==0)for(let q of $.toDetachedDevices)A9.encode(q,Q.uint32(10).fork()).join();if($.toMailbox!==void 0)E9.encode($.toMailbox,Q.uint32(18).fork()).join();if($.version!==void 0)Q.uint32(24).uint64($.version);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??sP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.toDetachedDevices===void 0)K.toDetachedDevices=[];let V=A9.decode(Z,Z.uint32());if(V!==void 0)K.toDetachedDevices.push(V);continue}case 2:{if(J!==18)break;K.toMailbox=E9.decode(Z,Z.uint32(),K.toMailbox);continue}case 3:{if(J!==24)break;K.version=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return O9.fromPartial($??{})},fromPartial($){let Q=sP();return Q.toDetachedDevices=$.toDetachedDevices?.map((q)=>A9.fromPartial(q))||void 0,Q.toMailbox=$.toMailbox!==void 0&&$.toMailbox!==null?E9.fromPartial($.toMailbox):void 0,Q.version=$.version??void 0,Q}};function eP(){return{}}var A9={encode($,Q=new z){if($.encryptedMmk!==void 0)Q.uint32(10).bytes($.encryptedMmk);if($.recipDeviceHash!==void 0)Q.uint32(18).bytes($.recipDeviceHash);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??eP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encryptedMmk=Z.bytes();continue}case 2:{if(J!==18)break;K.recipDeviceHash=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return A9.fromPartial($??{})},fromPartial($){let Q=eP();return Q.encryptedMmk=$.encryptedMmk??void 0,Q.recipDeviceHash=$.recipDeviceHash??void 0,Q}};function $L(){return{}}var E9={encode($,Q=new z){if($.encryptedMmk!==void 0)Q.uint32(10).bytes($.encryptedMmk);if($.recipMailboxHeadHash!==void 0)Q.uint32(18).bytes($.recipMailboxHeadHash);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??$L();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encryptedMmk=Z.bytes();continue}case 2:{if(J!==18)break;K.recipMailboxHeadHash=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return E9.fromPartial($??{})},fromPartial($){let Q=$L();return Q.encryptedMmk=$.encryptedMmk??void 0,Q.recipMailboxHeadHash=$.recipMailboxHeadHash??void 0,Q}};function QL(){return{}}var M9={encode($,Q=new z){if($.mmk!==void 0)b.encode($.mmk,Q.uint32(10).fork()).join();if($.fromDetachedDevice!==void 0)z0.encode($.fromDetachedDevice,Q.uint32(18).fork()).join();if($.membershipProof!==void 0)S0.encode($.membershipProof,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??QL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mmk=b.decode(Z,Z.uint32(),K.mmk);continue}case 2:{if(J!==18)break;K.fromDetachedDevice=z0.decode(Z,Z.uint32(),K.fromDetachedDevice);continue}case 3:{if(J!==26)break;K.membershipProof=S0.decode(Z,Z.uint32(),K.membershipProof);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return M9.fromPartial($??{})},fromPartial($){let Q=QL();return Q.mmk=$.mmk!==void 0&&$.mmk!==null?b.fromPartial($.mmk):void 0,Q.fromDetachedDevice=$.fromDetachedDevice!==void 0&&$.fromDetachedDevice!==null?z0.fromPartial($.fromDetachedDevice):void 0,Q.membershipProof=$.membershipProof!==void 0&&$.membershipProof!==null?S0.fromPartial($.membershipProof):void 0,Q}};function ZL(){return{}}var $0={encode($,Q=new z){if($.value!==void 0)Q.uint32(8).int64($.value);if($.offset!==void 0)Q.uint32(16).uint32($.offset);if($.currencyCode!==void 0)Q.uint32(26).string($.currencyCode);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ZL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.value=Z.int64Value();continue}case 2:{if(J!==16)break;K.offset=Z.uint32();continue}case 3:{if(J!==26)break;K.currencyCode=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return $0.fromPartial($??{})},fromPartial($){let Q=ZL();return Q.value=$.value??void 0,Q.offset=$.offset??void 0,Q.currencyCode=$.currencyCode??void 0,Q}};function JL(){return{}}var $$={encode($,Q=new z){if($.body!==void 0)Q.uint32(10).string($.body);if($.caption!==void 0)Q.uint32(26).string($.caption);if($.lng!==void 0)Q.uint32(41).double($.lng);if($.isLive!==void 0)Q.uint32(48).bool($.isLive);if($.lat!==void 0)Q.uint32(57).double($.lat);if($.paymentAmount1000!==void 0)Q.uint32(64).int32($.paymentAmount1000);if($.paymentNoteMsgBody!==void 0)Q.uint32(74).string($.paymentNoteMsgBody);if($.matchedText!==void 0)Q.uint32(90).string($.matchedText);if($.title!==void 0)Q.uint32(98).string($.title);if($.description!==void 0)Q.uint32(106).string($.description);if($.futureproofBuffer!==void 0)Q.uint32(114).bytes($.futureproofBuffer);if($.clientUrl!==void 0)Q.uint32(122).string($.clientUrl);if($.loc!==void 0)Q.uint32(130).string($.loc);if($.pollName!==void 0)Q.uint32(138).string($.pollName);if($.pollOptions!==void 0&&$.pollOptions.length!==0)for(let q of $.pollOptions)l$.encode(q,Q.uint32(146).fork()).join();if($.pollSelectableOptionsCount!==void 0)Q.uint32(160).uint32($.pollSelectableOptionsCount);if($.messageSecret!==void 0)Q.uint32(170).bytes($.messageSecret);if($.originalSelfAuthor!==void 0)Q.uint32(410).string($.originalSelfAuthor);if($.senderTimestampMs!==void 0)Q.uint32(176).int64($.senderTimestampMs);if($.pollUpdateParentKey!==void 0)Q.uint32(186).string($.pollUpdateParentKey);if($.encPollVote!==void 0)c9.encode($.encPollVote,Q.uint32(194).fork()).join();if($.isSentCagPollCreation!==void 0)Q.uint32(224).bool($.isSentCagPollCreation);if($.pollContentType!==void 0)Q.uint32(336).int32($.pollContentType);if($.pollType!==void 0)Q.uint32(368).int32($.pollType);if($.correctOptionIndex!==void 0)Q.uint32(376).int32($.correctOptionIndex);if($.pollVotesSnapshot!==void 0)I9.encode($.pollVotesSnapshot,Q.uint32(330).fork()).join();if($.encReactionTargetMessageKey!==void 0)Q.uint32(202).string($.encReactionTargetMessageKey);if($.encReactionEncPayload!==void 0)Q.uint32(210).bytes($.encReactionEncPayload);if($.encReactionEncIv!==void 0)Q.uint32(218).bytes($.encReactionEncIv);if($.botMessageSecret!==void 0)Q.uint32(234).bytes($.botMessageSecret);if($.targetMessageKey!==void 0)Q.uint32(242).string($.targetMessageKey);if($.encPayload!==void 0)Q.uint32(250).bytes($.encPayload);if($.encIv!==void 0)Q.uint32(258).bytes($.encIv);if($.eventName!==void 0)Q.uint32(266).string($.eventName);if($.isEventCanceled!==void 0)Q.uint32(272).bool($.isEventCanceled);if($.eventDescription!==void 0)Q.uint32(282).string($.eventDescription);if($.eventJoinLink!==void 0)Q.uint32(290).string($.eventJoinLink);if($.eventStartTime!==void 0)Q.uint32(296).int64($.eventStartTime);if($.eventLocation!==void 0)W9.encode($.eventLocation,Q.uint32(306).fork()).join();if($.eventEndTime!==void 0)Q.uint32(320).int64($.eventEndTime);if($.eventIsScheduledCall!==void 0)Q.uint32(352).bool($.eventIsScheduledCall);if($.eventExtraGuestsAllowed!==void 0)Q.uint32(360).bool($.eventExtraGuestsAllowed);if($.plainProtobufBytes!==void 0)Q.uint32(346).bytes($.plainProtobufBytes);if($.quarantineExtractedText!==void 0)Q.uint32(386).string($.quarantineExtractedText);if($.pollEndTime!==void 0)Q.uint32(392).int64($.pollEndTime);if($.pollHideVoterNames!==void 0)Q.uint32(400).bool($.pollHideVoterNames);if($.pollAllowAddOption!==void 0)Q.uint32(416).bool($.pollAllowAddOption);if($.sharableEventInviteId!==void 0)Q.uint32(426).string($.sharableEventInviteId);if($.sharableEventInviteTitle!==void 0)Q.uint32(434).string($.sharableEventInviteTitle);if($.sharableEventInviteStartTime!==void 0)Q.uint32(440).int64($.sharableEventInviteStartTime);if($.sharableEventInviteEndTime!==void 0)Q.uint32(448).int64($.sharableEventInviteEndTime);if($.sharableEventInviteCaption!==void 0)Q.uint32(458).string($.sharableEventInviteCaption);if($.sharableEventInviteIsCanceled!==void 0)Q.uint32(464).bool($.sharableEventInviteIsCanceled);if($.sharableEventInviteJpegThumbnail!==void 0)Q.uint32(474).bytes($.sharableEventInviteJpegThumbnail);if($.sharableEventInviteCallLink!==void 0)Q.uint32(482).string($.sharableEventInviteCallLink);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??JL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.body=Z.string();continue}case 3:{if(J!==26)break;K.caption=Z.string();continue}case 5:{if(J!==41)break;K.lng=Z.double();continue}case 6:{if(J!==48)break;K.isLive=Z.bool();continue}case 7:{if(J!==57)break;K.lat=Z.double();continue}case 8:{if(J!==64)break;K.paymentAmount1000=Z.int32();continue}case 9:{if(J!==74)break;K.paymentNoteMsgBody=Z.string();continue}case 11:{if(J!==90)break;K.matchedText=Z.string();continue}case 12:{if(J!==98)break;K.title=Z.string();continue}case 13:{if(J!==106)break;K.description=Z.string();continue}case 14:{if(J!==114)break;K.futureproofBuffer=Z.bytes();continue}case 15:{if(J!==122)break;K.clientUrl=Z.string();continue}case 16:{if(J!==130)break;K.loc=Z.string();continue}case 17:{if(J!==138)break;K.pollName=Z.string();continue}case 18:{if(J!==146)break;if(K.pollOptions===void 0)K.pollOptions=[];let V=l$.decode(Z,Z.uint32());if(V!==void 0)K.pollOptions.push(V);continue}case 20:{if(J!==160)break;K.pollSelectableOptionsCount=Z.uint32();continue}case 21:{if(J!==170)break;K.messageSecret=Z.bytes();continue}case 51:{if(J!==410)break;K.originalSelfAuthor=Z.string();continue}case 22:{if(J!==176)break;K.senderTimestampMs=Z.int64Value();continue}case 23:{if(J!==186)break;K.pollUpdateParentKey=Z.string();continue}case 24:{if(J!==194)break;K.encPollVote=c9.decode(Z,Z.uint32(),K.encPollVote);continue}case 28:{if(J!==224)break;K.isSentCagPollCreation=Z.bool();continue}case 42:{if(J!==336)break;K.pollContentType=Z.int32();continue}case 46:{if(J!==368)break;K.pollType=Z.int32();continue}case 47:{if(J!==376)break;K.correctOptionIndex=Z.int32();continue}case 41:{if(J!==330)break;K.pollVotesSnapshot=I9.decode(Z,Z.uint32(),K.pollVotesSnapshot);continue}case 25:{if(J!==202)break;K.encReactionTargetMessageKey=Z.string();continue}case 26:{if(J!==210)break;K.encReactionEncPayload=Z.bytes();continue}case 27:{if(J!==218)break;K.encReactionEncIv=Z.bytes();continue}case 29:{if(J!==234)break;K.botMessageSecret=Z.bytes();continue}case 30:{if(J!==242)break;K.targetMessageKey=Z.string();continue}case 31:{if(J!==250)break;K.encPayload=Z.bytes();continue}case 32:{if(J!==258)break;K.encIv=Z.bytes();continue}case 33:{if(J!==266)break;K.eventName=Z.string();continue}case 34:{if(J!==272)break;K.isEventCanceled=Z.bool();continue}case 35:{if(J!==282)break;K.eventDescription=Z.string();continue}case 36:{if(J!==290)break;K.eventJoinLink=Z.string();continue}case 37:{if(J!==296)break;K.eventStartTime=Z.int64Value();continue}case 38:{if(J!==306)break;K.eventLocation=W9.decode(Z,Z.uint32(),K.eventLocation);continue}case 40:{if(J!==320)break;K.eventEndTime=Z.int64Value();continue}case 44:{if(J!==352)break;K.eventIsScheduledCall=Z.bool();continue}case 45:{if(J!==360)break;K.eventExtraGuestsAllowed=Z.bool();continue}case 43:{if(J!==346)break;K.plainProtobufBytes=Z.bytes();continue}case 48:{if(J!==386)break;K.quarantineExtractedText=Z.string();continue}case 49:{if(J!==392)break;K.pollEndTime=Z.int64Value();continue}case 50:{if(J!==400)break;K.pollHideVoterNames=Z.bool();continue}case 52:{if(J!==416)break;K.pollAllowAddOption=Z.bool();continue}case 53:{if(J!==426)break;K.sharableEventInviteId=Z.string();continue}case 54:{if(J!==434)break;K.sharableEventInviteTitle=Z.string();continue}case 55:{if(J!==440)break;K.sharableEventInviteStartTime=Z.int64Value();continue}case 56:{if(J!==448)break;K.sharableEventInviteEndTime=Z.int64Value();continue}case 57:{if(J!==458)break;K.sharableEventInviteCaption=Z.string();continue}case 58:{if(J!==464)break;K.sharableEventInviteIsCanceled=Z.bool();continue}case 59:{if(J!==474)break;K.sharableEventInviteJpegThumbnail=Z.bytes();continue}case 60:{if(J!==482)break;K.sharableEventInviteCallLink=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return $$.fromPartial($??{})},fromPartial($){let Q=JL();return Q.body=$.body??void 0,Q.caption=$.caption??void 0,Q.lng=$.lng??void 0,Q.isLive=$.isLive??void 0,Q.lat=$.lat??void 0,Q.paymentAmount1000=$.paymentAmount1000??void 0,Q.paymentNoteMsgBody=$.paymentNoteMsgBody??void 0,Q.matchedText=$.matchedText??void 0,Q.title=$.title??void 0,Q.description=$.description??void 0,Q.futureproofBuffer=$.futureproofBuffer??void 0,Q.clientUrl=$.clientUrl??void 0,Q.loc=$.loc??void 0,Q.pollName=$.pollName??void 0,Q.pollOptions=$.pollOptions?.map((q)=>l$.fromPartial(q))||void 0,Q.pollSelectableOptionsCount=$.pollSelectableOptionsCount??void 0,Q.messageSecret=$.messageSecret??void 0,Q.originalSelfAuthor=$.originalSelfAuthor??void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q.pollUpdateParentKey=$.pollUpdateParentKey??void 0,Q.encPollVote=$.encPollVote!==void 0&&$.encPollVote!==null?c9.fromPartial($.encPollVote):void 0,Q.isSentCagPollCreation=$.isSentCagPollCreation??void 0,Q.pollContentType=$.pollContentType??void 0,Q.pollType=$.pollType??void 0,Q.correctOptionIndex=$.correctOptionIndex??void 0,Q.pollVotesSnapshot=$.pollVotesSnapshot!==void 0&&$.pollVotesSnapshot!==null?I9.fromPartial($.pollVotesSnapshot):void 0,Q.encReactionTargetMessageKey=$.encReactionTargetMessageKey??void 0,Q.encReactionEncPayload=$.encReactionEncPayload??void 0,Q.encReactionEncIv=$.encReactionEncIv??void 0,Q.botMessageSecret=$.botMessageSecret??void 0,Q.targetMessageKey=$.targetMessageKey??void 0,Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q.eventName=$.eventName??void 0,Q.isEventCanceled=$.isEventCanceled??void 0,Q.eventDescription=$.eventDescription??void 0,Q.eventJoinLink=$.eventJoinLink??void 0,Q.eventStartTime=$.eventStartTime??void 0,Q.eventLocation=$.eventLocation!==void 0&&$.eventLocation!==null?W9.fromPartial($.eventLocation):void 0,Q.eventEndTime=$.eventEndTime??void 0,Q.eventIsScheduledCall=$.eventIsScheduledCall??void 0,Q.eventExtraGuestsAllowed=$.eventExtraGuestsAllowed??void 0,Q.plainProtobufBytes=$.plainProtobufBytes??void 0,Q.quarantineExtractedText=$.quarantineExtractedText??void 0,Q.pollEndTime=$.pollEndTime??void 0,Q.pollHideVoterNames=$.pollHideVoterNames??void 0,Q.pollAllowAddOption=$.pollAllowAddOption??void 0,Q.sharableEventInviteId=$.sharableEventInviteId??void 0,Q.sharableEventInviteTitle=$.sharableEventInviteTitle??void 0,Q.sharableEventInviteStartTime=$.sharableEventInviteStartTime??void 0,Q.sharableEventInviteEndTime=$.sharableEventInviteEndTime??void 0,Q.sharableEventInviteCaption=$.sharableEventInviteCaption??void 0,Q.sharableEventInviteIsCanceled=$.sharableEventInviteIsCanceled??void 0,Q.sharableEventInviteJpegThumbnail=$.sharableEventInviteJpegThumbnail??void 0,Q.sharableEventInviteCallLink=$.sharableEventInviteCallLink??void 0,Q}};function KL(){return{}}var W9={encode($,Q=new z){if($.degreesLatitude!==void 0)Q.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)Q.uint32(17).double($.degreesLongitude);if($.name!==void 0)Q.uint32(26).string($.name);if($.address!==void 0)Q.uint32(34).string($.address);if($.url!==void 0)Q.uint32(42).string($.url);if($.jpegThumbnail!==void 0)Q.uint32(50).bytes($.jpegThumbnail);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??KL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==9)break;K.degreesLatitude=Z.double();continue}case 2:{if(J!==17)break;K.degreesLongitude=Z.double();continue}case 3:{if(J!==26)break;K.name=Z.string();continue}case 4:{if(J!==34)break;K.address=Z.string();continue}case 5:{if(J!==42)break;K.url=Z.string();continue}case 6:{if(J!==50)break;K.jpegThumbnail=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return W9.fromPartial($??{})},fromPartial($){let Q=KL();return Q.degreesLatitude=$.degreesLatitude??void 0,Q.degreesLongitude=$.degreesLongitude??void 0,Q.name=$.name??void 0,Q.address=$.address??void 0,Q.url=$.url??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q}};function qL(){return{}}var l$={encode($,Q=new z){if($.name!==void 0)Q.uint32(10).string($.name);if($.hash!==void 0)Q.uint32(18).string($.hash);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??qL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.name=Z.string();continue}case 2:{if(J!==18)break;K.hash=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return l$.fromPartial($??{})},fromPartial($){let Q=qL();return Q.name=$.name??void 0,Q.hash=$.hash??void 0,Q}};function XL(){return{}}var S9={encode($,Q=new z){if($.option!==void 0)l$.encode($.option,Q.uint32(10).fork()).join();if($.optionVoteCount!==void 0)Q.uint32(16).int32($.optionVoteCount);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??XL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.option=l$.decode(Z,Z.uint32(),K.option);continue}case 2:{if(J!==16)break;K.optionVoteCount=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return S9.fromPartial($??{})},fromPartial($){let Q=XL();return Q.option=$.option!==void 0&&$.option!==null?l$.fromPartial($.option):void 0,Q.optionVoteCount=$.optionVoteCount??void 0,Q}};function YL(){return{}}var I9={encode($,Q=new z){if($.pollVotes!==void 0&&$.pollVotes.length!==0)for(let q of $.pollVotes)S9.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??YL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.pollVotes===void 0)K.pollVotes=[];let V=S9.decode(Z,Z.uint32());if(V!==void 0)K.pollVotes.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return I9.fromPartial($??{})},fromPartial($){let Q=YL();return Q.pollVotes=$.pollVotes?.map((q)=>S9.fromPartial(q))||void 0,Q}};function VL(){return{}}var KE={encode($,Q=new z){if($.currentMsg!==void 0)$$.encode($.currentMsg,Q.uint32(10).fork()).join();if($.quotedMsg!==void 0)$$.encode($.quotedMsg,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??VL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.currentMsg=$$.decode(Z,Z.uint32(),K.currentMsg);continue}case 2:{if(J!==18)break;K.quotedMsg=$$.decode(Z,Z.uint32(),K.quotedMsg);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return KE.fromPartial($??{})},fromPartial($){let Q=VL();return Q.currentMsg=$.currentMsg!==void 0&&$.currentMsg!==null?$$.fromPartial($.currentMsg):void 0,Q.quotedMsg=$.quotedMsg!==void 0&&$.quotedMsg!==null?$$.fromPartial($.quotedMsg):void 0,Q}};function zL(){return{}}var qE={encode($,Q=new z){if($.details!==void 0)Q.uint32(10).bytes($.details);if($.signature!==void 0)Q.uint32(18).bytes($.signature);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??zL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.details=Z.bytes();continue}case 2:{if(J!==18)break;K.signature=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return qE.fromPartial($??{})},fromPartial($){let Q=zL();return Q.details=$.details??void 0,Q.signature=$.signature??void 0,Q}};function HL(){return{}}var XE={encode($,Q=new z){if($.serial!==void 0)Q.uint32(8).uint32($.serial);if($.issuer!==void 0)Q.uint32(18).string($.issuer);if($.expires!==void 0)Q.uint32(24).uint64($.expires);if($.subject!==void 0)Q.uint32(34).string($.subject);if($.key!==void 0)Q.uint32(42).bytes($.key);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??HL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.serial=Z.uint32();continue}case 2:{if(J!==18)break;K.issuer=Z.string();continue}case 3:{if(J!==24)break;K.expires=Z.uint64Value();continue}case 4:{if(J!==34)break;K.subject=Z.string();continue}case 5:{if(J!==42)break;K.key=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return XE.fromPartial($??{})},fromPartial($){let Q=HL();return Q.serial=$.serial??void 0,Q.issuer=$.issuer??void 0,Q.expires=$.expires??void 0,Q.subject=$.subject??void 0,Q.key=$.key??void 0,Q}};function GL(){return{}}var T9={encode($,Q=new z){if($.accountType!==void 0)Q.uint32(8).int32($.accountType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??GL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.accountType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return T9.fromPartial($??{})},fromPartial($){let Q=GL();return Q.accountType=$.accountType??void 0,Q}};function UL(){return{}}var YE={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();if($.message!==void 0)c.encode($.message,Q.uint32(18).fork()).join();if($.messageTimestamp!==void 0)Q.uint32(24).uint64($.messageTimestamp);if($.participant!==void 0)Q.uint32(34).string($.participant);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??UL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==18)break;K.message=c.decode(Z,Z.uint32(),K.message);continue}case 3:{if(J!==24)break;K.messageTimestamp=Z.uint64Value();continue}case 4:{if(J!==34)break;K.participant=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return YE.fromPartial($??{})},fromPartial($){let Q=UL();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q.message=$.message!==void 0&&$.message!==null?c.fromPartial($.message):void 0,Q.messageTimestamp=$.messageTimestamp??void 0,Q.participant=$.participant??void 0,Q}};function CL(){return{}}var Q$={encode($,Q=new z){if($.messageVibrate!==void 0)Q.uint32(10).string($.messageVibrate);if($.messagePopup!==void 0)Q.uint32(18).string($.messagePopup);if($.messageLight!==void 0)Q.uint32(26).string($.messageLight);if($.lowPriorityNotifications!==void 0)Q.uint32(32).bool($.lowPriorityNotifications);if($.reactionsMuted!==void 0)Q.uint32(40).bool($.reactionsMuted);if($.callVibrate!==void 0)Q.uint32(50).string($.callVibrate);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??CL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageVibrate=Z.string();continue}case 2:{if(J!==18)break;K.messagePopup=Z.string();continue}case 3:{if(J!==26)break;K.messageLight=Z.string();continue}case 4:{if(J!==32)break;K.lowPriorityNotifications=Z.bool();continue}case 5:{if(J!==40)break;K.reactionsMuted=Z.bool();continue}case 6:{if(J!==50)break;K.callVibrate=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Q$.fromPartial($??{})},fromPartial($){let Q=CL();return Q.messageVibrate=$.messageVibrate??void 0,Q.messagePopup=$.messagePopup??void 0,Q.messageLight=$.messageLight??void 0,Q.lowPriorityNotifications=$.lowPriorityNotifications??void 0,Q.reactionsMuted=$.reactionsMuted??void 0,Q.callVibrate=$.callVibrate??void 0,Q}};function DL(){return{}}var y9={encode($,Q=new z){if($.orfClientState!==void 0)Q.uint32(10).bytes($.orfClientState);if($.threadId!==void 0)Q.uint32(18).string($.threadId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??DL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.orfClientState=Z.bytes();continue}case 2:{if(J!==18)break;K.threadId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return y9.fromPartial($??{})},fromPartial($){let Q=DL();return Q.orfClientState=$.orfClientState??void 0,Q.threadId=$.threadId??void 0,Q}};function FL(){return{}}var VE={encode($,Q=new z){if($.orfThreadId!==void 0)Q.uint32(10).bytes($.orfThreadId);if($.error!==void 0)Q.uint32(18).string($.error);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??FL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.orfThreadId=Z.bytes();continue}case 2:{if(J!==18)break;K.error=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return VE.fromPartial($??{})},fromPartial($){let Q=FL();return Q.orfThreadId=$.orfThreadId??void 0,Q.error=$.error??void 0,Q}};function PL(){return{}}var zE={encode($,Q=new z){if($.companionPublicKey!==void 0)Q.uint32(10).bytes($.companionPublicKey);if($.companionIdentityKey!==void 0)Q.uint32(18).bytes($.companionIdentityKey);if($.advSecret!==void 0)Q.uint32(26).bytes($.advSecret);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??PL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.companionPublicKey=Z.bytes();continue}case 2:{if(J!==18)break;K.companionIdentityKey=Z.bytes();continue}case 3:{if(J!==26)break;K.advSecret=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return zE.fromPartial($??{})},fromPartial($){let Q=PL();return Q.companionPublicKey=$.companionPublicKey??void 0,Q.companionIdentityKey=$.companionIdentityKey??void 0,Q.advSecret=$.advSecret??void 0,Q}};function LL(){return{}}var v9={encode($,Q=new z){if($.userJid!==void 0)Q.uint32(10).string($.userJid);if($.leaveReason!==void 0)Q.uint32(16).int32($.leaveReason);if($.leaveTs!==void 0)Q.uint32(24).uint64($.leaveTs);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??LL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.userJid=Z.string();continue}case 2:{if(J!==16)break;K.leaveReason=Z.int32();continue}case 3:{if(J!==24)break;K.leaveTs=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return v9.fromPartial($??{})},fromPartial($){let Q=LL();return Q.userJid=$.userJid??void 0,Q.leaveReason=$.leaveReason??void 0,Q.leaveTs=$.leaveTs??void 0,Q}};function xL(){return{}}var f9={encode($,Q=new z){if($.groupJid!==void 0)Q.uint32(10).string($.groupJid);if($.pastParticipants!==void 0&&$.pastParticipants.length!==0)for(let q of $.pastParticipants)v9.encode(q,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??xL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.groupJid=Z.string();continue}case 2:{if(J!==18)break;if(K.pastParticipants===void 0)K.pastParticipants=[];let V=v9.decode(Z,Z.uint32());if(V!==void 0)K.pastParticipants.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return f9.fromPartial($??{})},fromPartial($){let Q=xL();return Q.groupJid=$.groupJid??void 0,Q.pastParticipants=$.pastParticipants?.map((q)=>v9.fromPartial(q))||void 0,Q}};function kL(){return{}}var HE={encode($,Q=new z){if($.currentLthash!==void 0)Q.uint32(10).bytes($.currentLthash);if($.newLthash!==void 0)Q.uint32(18).bytes($.newLthash);if($.patchVersion!==void 0)Q.uint32(26).bytes($.patchVersion);if($.collectionName!==void 0)Q.uint32(34).bytes($.collectionName);if($.firstFourBytesFromAHashOfSnapshotMacKey!==void 0)Q.uint32(42).bytes($.firstFourBytesFromAHashOfSnapshotMacKey);if($.newLthashSubtract!==void 0)Q.uint32(50).bytes($.newLthashSubtract);if($.numberAdd!==void 0)Q.uint32(56).int32($.numberAdd);if($.numberRemove!==void 0)Q.uint32(64).int32($.numberRemove);if($.numberOverride!==void 0)Q.uint32(72).int32($.numberOverride);if($.senderPlatform!==void 0)Q.uint32(80).int32($.senderPlatform);if($.isSenderPrimary!==void 0)Q.uint32(88).bool($.isSenderPrimary);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??kL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.currentLthash=Z.bytes();continue}case 2:{if(J!==18)break;K.newLthash=Z.bytes();continue}case 3:{if(J!==26)break;K.patchVersion=Z.bytes();continue}case 4:{if(J!==34)break;K.collectionName=Z.bytes();continue}case 5:{if(J!==42)break;K.firstFourBytesFromAHashOfSnapshotMacKey=Z.bytes();continue}case 6:{if(J!==50)break;K.newLthashSubtract=Z.bytes();continue}case 7:{if(J!==56)break;K.numberAdd=Z.int32();continue}case 8:{if(J!==64)break;K.numberRemove=Z.int32();continue}case 9:{if(J!==72)break;K.numberOverride=Z.int32();continue}case 10:{if(J!==80)break;K.senderPlatform=Z.int32();continue}case 11:{if(J!==88)break;K.isSenderPrimary=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return HE.fromPartial($??{})},fromPartial($){let Q=kL();return Q.currentLthash=$.currentLthash??void 0,Q.newLthash=$.newLthash??void 0,Q.patchVersion=$.patchVersion??void 0,Q.collectionName=$.collectionName??void 0,Q.firstFourBytesFromAHashOfSnapshotMacKey=$.firstFourBytesFromAHashOfSnapshotMacKey??void 0,Q.newLthashSubtract=$.newLthashSubtract??void 0,Q.numberAdd=$.numberAdd??void 0,Q.numberRemove=$.numberRemove??void 0,Q.numberOverride=$.numberOverride??void 0,Q.senderPlatform=$.senderPlatform??void 0,Q.isSenderPrimary=$.isSenderPrimary??void 0,Q}};function NL(){return{}}var p$={encode($,Q=new z){if($.id!==void 0)Q.uint32(10).string($.id);if($.fileLength!==void 0)Q.uint32(16).uint64($.fileLength);if($.width!==void 0)Q.uint32(24).uint32($.width);if($.height!==void 0)Q.uint32(32).uint32($.height);if($.mimetype!==void 0)Q.uint32(42).string($.mimetype);if($.placeholderArgb!==void 0)Q.uint32(53).fixed32($.placeholderArgb);if($.textArgb!==void 0)Q.uint32(61).fixed32($.textArgb);if($.subtextArgb!==void 0)Q.uint32(69).fixed32($.subtextArgb);if($.mediaData!==void 0)_9.encode($.mediaData,Q.uint32(74).fork()).join();if($.type!==void 0)Q.uint32(80).int32($.type);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??NL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.id=Z.string();continue}case 2:{if(J!==16)break;K.fileLength=Z.uint64Value();continue}case 3:{if(J!==24)break;K.width=Z.uint32();continue}case 4:{if(J!==32)break;K.height=Z.uint32();continue}case 5:{if(J!==42)break;K.mimetype=Z.string();continue}case 6:{if(J!==53)break;K.placeholderArgb=Z.fixed32();continue}case 7:{if(J!==61)break;K.textArgb=Z.fixed32();continue}case 8:{if(J!==69)break;K.subtextArgb=Z.fixed32();continue}case 9:{if(J!==74)break;K.mediaData=_9.decode(Z,Z.uint32(),K.mediaData);continue}case 10:{if(J!==80)break;K.type=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return p$.fromPartial($??{})},fromPartial($){let Q=NL();return Q.id=$.id??void 0,Q.fileLength=$.fileLength??void 0,Q.width=$.width??void 0,Q.height=$.height??void 0,Q.mimetype=$.mimetype??void 0,Q.placeholderArgb=$.placeholderArgb??void 0,Q.textArgb=$.textArgb??void 0,Q.subtextArgb=$.subtextArgb??void 0,Q.mediaData=$.mediaData!==void 0&&$.mediaData!==null?_9.fromPartial($.mediaData):void 0,Q.type=$.type??void 0,Q}};function BL(){return{}}var _9={encode($,Q=new z){if($.mediaKey!==void 0)Q.uint32(10).bytes($.mediaKey);if($.mediaKeyTimestamp!==void 0)Q.uint32(16).int64($.mediaKeyTimestamp);if($.fileSha256!==void 0)Q.uint32(26).bytes($.fileSha256);if($.fileEncSha256!==void 0)Q.uint32(34).bytes($.fileEncSha256);if($.directPath!==void 0)Q.uint32(42).string($.directPath);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??BL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mediaKey=Z.bytes();continue}case 2:{if(J!==16)break;K.mediaKeyTimestamp=Z.int64Value();continue}case 3:{if(J!==26)break;K.fileSha256=Z.bytes();continue}case 4:{if(J!==34)break;K.fileEncSha256=Z.bytes();continue}case 5:{if(J!==42)break;K.directPath=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return _9.fromPartial($??{})},fromPartial($){let Q=BL();return Q.mediaKey=$.mediaKey??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.fileSha256=$.fileSha256??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.directPath=$.directPath??void 0,Q}};function RL(){return{}}var Z$={encode($,Q=new z){if($.currencyDeprecated!==void 0)Q.uint32(8).int32($.currencyDeprecated);if($.amount1000!==void 0)Q.uint32(16).uint64($.amount1000);if($.receiverJid!==void 0)Q.uint32(26).string($.receiverJid);if($.status!==void 0)Q.uint32(32).int32($.status);if($.transactionTimestamp!==void 0)Q.uint32(40).uint64($.transactionTimestamp);if($.requestMessageKey!==void 0)N.encode($.requestMessageKey,Q.uint32(50).fork()).join();if($.expiryTimestamp!==void 0)Q.uint32(56).uint64($.expiryTimestamp);if($.futureproofed!==void 0)Q.uint32(64).bool($.futureproofed);if($.currency!==void 0)Q.uint32(74).string($.currency);if($.txnStatus!==void 0)Q.uint32(80).int32($.txnStatus);if($.useNoviFiatFormat!==void 0)Q.uint32(88).bool($.useNoviFiatFormat);if($.primaryAmount!==void 0)$0.encode($.primaryAmount,Q.uint32(98).fork()).join();if($.exchangeAmount!==void 0)$0.encode($.exchangeAmount,Q.uint32(106).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??RL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.currencyDeprecated=Z.int32();continue}case 2:{if(J!==16)break;K.amount1000=Z.uint64Value();continue}case 3:{if(J!==26)break;K.receiverJid=Z.string();continue}case 4:{if(J!==32)break;K.status=Z.int32();continue}case 5:{if(J!==40)break;K.transactionTimestamp=Z.uint64Value();continue}case 6:{if(J!==50)break;K.requestMessageKey=N.decode(Z,Z.uint32(),K.requestMessageKey);continue}case 7:{if(J!==56)break;K.expiryTimestamp=Z.uint64Value();continue}case 8:{if(J!==64)break;K.futureproofed=Z.bool();continue}case 9:{if(J!==74)break;K.currency=Z.string();continue}case 10:{if(J!==80)break;K.txnStatus=Z.int32();continue}case 11:{if(J!==88)break;K.useNoviFiatFormat=Z.bool();continue}case 12:{if(J!==98)break;K.primaryAmount=$0.decode(Z,Z.uint32(),K.primaryAmount);continue}case 13:{if(J!==106)break;K.exchangeAmount=$0.decode(Z,Z.uint32(),K.exchangeAmount);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Z$.fromPartial($??{})},fromPartial($){let Q=RL();return Q.currencyDeprecated=$.currencyDeprecated??void 0,Q.amount1000=$.amount1000??void 0,Q.receiverJid=$.receiverJid??void 0,Q.status=$.status??void 0,Q.transactionTimestamp=$.transactionTimestamp??void 0,Q.requestMessageKey=$.requestMessageKey!==void 0&&$.requestMessageKey!==null?N.fromPartial($.requestMessageKey):void 0,Q.expiryTimestamp=$.expiryTimestamp??void 0,Q.futureproofed=$.futureproofed??void 0,Q.currency=$.currency??void 0,Q.txnStatus=$.txnStatus??void 0,Q.useNoviFiatFormat=$.useNoviFiatFormat??void 0,Q.primaryAmount=$.primaryAmount!==void 0&&$.primaryAmount!==null?$0.fromPartial($.primaryAmount):void 0,Q.exchangeAmount=$.exchangeAmount!==void 0&&$.exchangeAmount!==null?$0.fromPartial($.exchangeAmount):void 0,Q}};function OL(){return{}}var h9={encode($,Q=new z){if($.pnJid!==void 0)Q.uint32(10).string($.pnJid);if($.lidJid!==void 0)Q.uint32(18).string($.lidJid);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??OL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.pnJid=Z.string();continue}case 2:{if(J!==18)break;K.lidJid=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return h9.fromPartial($??{})},fromPartial($){let Q=OL();return Q.pnJid=$.pnJid??void 0,Q.lidJid=$.lidJid??void 0,Q}};function AL(){return{}}var l9={encode($,Q=new z){if($.oldPhoto!==void 0)Q.uint32(10).bytes($.oldPhoto);if($.newPhoto!==void 0)Q.uint32(18).bytes($.newPhoto);if($.newPhotoId!==void 0)Q.uint32(24).uint32($.newPhotoId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??AL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.oldPhoto=Z.bytes();continue}case 2:{if(J!==18)break;K.newPhoto=Z.bytes();continue}case 3:{if(J!==24)break;K.newPhotoId=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return l9.fromPartial($??{})},fromPartial($){let Q=AL();return Q.oldPhoto=$.oldPhoto??void 0,Q.newPhoto=$.newPhoto??void 0,Q.newPhotoId=$.newPhotoId??void 0,Q}};function EL(){return{}}var p9={encode($,Q=new z){if($.type!==void 0)Q.uint32(8).int32($.type);if($.key!==void 0)N.encode($.key,Q.uint32(18).fork()).join();if($.senderTimestampMs!==void 0)Q.uint32(24).int64($.senderTimestampMs);if($.serverTimestampMs!==void 0)Q.uint32(32).int64($.serverTimestampMs);if($.messageAddOnContextInfo!==void 0)f$.encode($.messageAddOnContextInfo,Q.uint32(42).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??EL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.type=Z.int32();continue}case 2:{if(J!==18)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}case 3:{if(J!==24)break;K.senderTimestampMs=Z.int64Value();continue}case 4:{if(J!==32)break;K.serverTimestampMs=Z.int64Value();continue}case 5:{if(J!==42)break;K.messageAddOnContextInfo=f$.decode(Z,Z.uint32(),K.messageAddOnContextInfo);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return p9.fromPartial($??{})},fromPartial($){let Q=EL();return Q.type=$.type??void 0,Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q.serverTimestampMs=$.serverTimestampMs??void 0,Q.messageAddOnContextInfo=$.messageAddOnContextInfo!==void 0&&$.messageAddOnContextInfo!==null?f$.fromPartial($.messageAddOnContextInfo):void 0,Q}};function ML(){return{}}var u9={encode($,Q=new z){if($.xDeprecated!==void 0)Q.uint32(8).int32($.xDeprecated);if($.yDeprecated!==void 0)Q.uint32(16).int32($.yDeprecated);if($.x!==void 0)Q.uint32(25).double($.x);if($.y!==void 0)Q.uint32(33).double($.y);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ML();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.xDeprecated=Z.int32();continue}case 2:{if(J!==16)break;K.yDeprecated=Z.int32();continue}case 3:{if(J!==25)break;K.x=Z.double();continue}case 4:{if(J!==33)break;K.y=Z.double();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return u9.fromPartial($??{})},fromPartial($){let Q=ML();return Q.xDeprecated=$.xDeprecated??void 0,Q.yDeprecated=$.yDeprecated??void 0,Q.x=$.x??void 0,Q.y=$.y??void 0,Q}};function WL(){return{}}var w9={encode($,Q=new z){if($.pollInvalidated!==void 0)Q.uint32(8).bool($.pollInvalidated);if($.pollNameHashHistory!==void 0&&$.pollNameHashHistory.length!==0)for(let q of $.pollNameHashHistory)j9.encode(q,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??WL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.pollInvalidated=Z.bool();continue}case 2:{if(J!==18)break;if(K.pollNameHashHistory===void 0)K.pollNameHashHistory=[];let V=j9.decode(Z,Z.uint32());if(V!==void 0)K.pollNameHashHistory.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return w9.fromPartial($??{})},fromPartial($){let Q=WL();return Q.pollInvalidated=$.pollInvalidated??void 0,Q.pollNameHashHistory=$.pollNameHashHistory?.map((q)=>j9.fromPartial(q))||void 0,Q}};function SL(){return{}}var j9={encode($,Q=new z){if($.editStanzaId!==void 0)Q.uint32(10).string($.editStanzaId);if($.pollNameHash!==void 0)Q.uint32(18).bytes($.pollNameHash);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??SL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.editStanzaId=Z.string();continue}case 2:{if(J!==18)break;K.pollNameHash=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return j9.fromPartial($??{})},fromPartial($){let Q=SL();return Q.editStanzaId=$.editStanzaId??void 0,Q.pollNameHash=$.pollNameHash??void 0,Q}};function IL(){return{}}var c9={encode($,Q=new z){if($.encPayload!==void 0)Q.uint32(10).bytes($.encPayload);if($.encIv!==void 0)Q.uint32(18).bytes($.encIv);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??IL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encPayload=Z.bytes();continue}case 2:{if(J!==18)break;K.encIv=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return c9.fromPartial($??{})},fromPartial($){let Q=IL();return Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function TL(){return{}}var d9={encode($,Q=new z){if($.pollUpdateMessageKey!==void 0)N.encode($.pollUpdateMessageKey,Q.uint32(10).fork()).join();if($.vote!==void 0)u0.encode($.vote,Q.uint32(18).fork()).join();if($.senderTimestampMs!==void 0)Q.uint32(24).int64($.senderTimestampMs);if($.serverTimestampMs!==void 0)Q.uint32(32).int64($.serverTimestampMs);if($.unread!==void 0)Q.uint32(40).bool($.unread);if($.metadata!==void 0)y0.encode($.metadata,Q.uint32(50).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??TL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.pollUpdateMessageKey=N.decode(Z,Z.uint32(),K.pollUpdateMessageKey);continue}case 2:{if(J!==18)break;K.vote=u0.decode(Z,Z.uint32(),K.vote);continue}case 3:{if(J!==24)break;K.senderTimestampMs=Z.int64Value();continue}case 4:{if(J!==32)break;K.serverTimestampMs=Z.int64Value();continue}case 5:{if(J!==40)break;K.unread=Z.bool();continue}case 6:{if(J!==50)break;K.metadata=y0.decode(Z,Z.uint32(),K.metadata);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return d9.fromPartial($??{})},fromPartial($){let Q=TL();return Q.pollUpdateMessageKey=$.pollUpdateMessageKey!==void 0&&$.pollUpdateMessageKey!==null?N.fromPartial($.pollUpdateMessageKey):void 0,Q.vote=$.vote!==void 0&&$.vote!==null?u0.fromPartial($.vote):void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q.serverTimestampMs=$.serverTimestampMs??void 0,Q.unread=$.unread??void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?y0.fromPartial($.metadata):void 0,Q}};function yL(){return{}}var GE={encode($,Q=new z){if($.id!==void 0)Q.uint32(8).uint32($.id);if($.publicKey!==void 0)Q.uint32(18).bytes($.publicKey);if($.privateKey!==void 0)Q.uint32(26).bytes($.privateKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??yL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.id=Z.uint32();continue}case 2:{if(J!==18)break;K.publicKey=Z.bytes();continue}case 3:{if(J!==26)break;K.privateKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return GE.fromPartial($??{})},fromPartial($){let Q=yL();return Q.id=$.id??void 0,Q.publicKey=$.publicKey??void 0,Q.privateKey=$.privateKey??void 0,Q}};function vL(){return{}}var UE={encode($,Q=new z){if($.registrationId!==void 0)Q.uint32(40).uint32($.registrationId);if($.preKeyId!==void 0)Q.uint32(8).uint32($.preKeyId);if($.signedPreKeyId!==void 0)Q.uint32(48).uint32($.signedPreKeyId);if($.baseKey!==void 0)Q.uint32(18).bytes($.baseKey);if($.identityKey!==void 0)Q.uint32(26).bytes($.identityKey);if($.message!==void 0)Q.uint32(34).bytes($.message);if($.kyberPreKeyId!==void 0)Q.uint32(56).uint32($.kyberPreKeyId);if($.kyberCiphertext!==void 0)Q.uint32(66).bytes($.kyberCiphertext);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??vL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 5:{if(J!==40)break;K.registrationId=Z.uint32();continue}case 1:{if(J!==8)break;K.preKeyId=Z.uint32();continue}case 6:{if(J!==48)break;K.signedPreKeyId=Z.uint32();continue}case 2:{if(J!==18)break;K.baseKey=Z.bytes();continue}case 3:{if(J!==26)break;K.identityKey=Z.bytes();continue}case 4:{if(J!==34)break;K.message=Z.bytes();continue}case 7:{if(J!==56)break;K.kyberPreKeyId=Z.uint32();continue}case 8:{if(J!==66)break;K.kyberCiphertext=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return UE.fromPartial($??{})},fromPartial($){let Q=vL();return Q.registrationId=$.registrationId??void 0,Q.preKeyId=$.preKeyId??void 0,Q.signedPreKeyId=$.signedPreKeyId??void 0,Q.baseKey=$.baseKey??void 0,Q.identityKey=$.identityKey??void 0,Q.message=$.message??void 0,Q.kyberPreKeyId=$.kyberPreKeyId??void 0,Q.kyberCiphertext=$.kyberCiphertext??void 0,Q}};function fL(){return{}}var n9={encode($,Q=new z){if($.serverCampaignId!==void 0)Q.uint32(10).string($.serverCampaignId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??fL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.serverCampaignId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return n9.fromPartial($??{})},fromPartial($){let Q=fL();return Q.serverCampaignId=$.serverCampaignId??void 0,Q}};function _L(){return{}}var CE={encode($,Q=new z){if($.publicKey!==void 0)Q.uint32(10).bytes($.publicKey);if($.nonce!==void 0)Q.uint32(18).bytes($.nonce);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??_L();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.publicKey=Z.bytes();continue}case 2:{if(J!==18)break;K.nonce=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return CE.fromPartial($??{})},fromPartial($){let Q=_L();return Q.publicKey=$.publicKey??void 0,Q.nonce=$.nonce??void 0,Q}};function hL(){return{}}var b9={encode($,Q=new z){if($.directPath!==void 0)Q.uint32(10).string($.directPath);if($.fileSha256!==void 0)Q.uint32(18).bytes($.fileSha256);if($.height!==void 0)Q.uint32(24).uint32($.height);if($.width!==void 0)Q.uint32(32).uint32($.width);if($.fileLength!==void 0)Q.uint32(40).uint64($.fileLength);if($.bitrate!==void 0)Q.uint32(48).uint32($.bitrate);if($.quality!==void 0)Q.uint32(56).int32($.quality);if($.capabilities!==void 0&&$.capabilities.length!==0)for(let q of $.capabilities)Q.uint32(66).string(q);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??hL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.directPath=Z.string();continue}case 2:{if(J!==18)break;K.fileSha256=Z.bytes();continue}case 3:{if(J!==24)break;K.height=Z.uint32();continue}case 4:{if(J!==32)break;K.width=Z.uint32();continue}case 5:{if(J!==40)break;K.fileLength=Z.uint64Value();continue}case 6:{if(J!==48)break;K.bitrate=Z.uint32();continue}case 7:{if(J!==56)break;K.quality=Z.int32();continue}case 8:{if(J!==66)break;if(K.capabilities===void 0)K.capabilities=[];let V=Z.string();if(V!==void 0)K.capabilities.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return b9.fromPartial($??{})},fromPartial($){let Q=hL();return Q.directPath=$.directPath??void 0,Q.fileSha256=$.fileSha256??void 0,Q.height=$.height??void 0,Q.width=$.width??void 0,Q.fileLength=$.fileLength??void 0,Q.bitrate=$.bitrate??void 0,Q.quality=$.quality??void 0,Q.capabilities=$.capabilities?.map((q)=>q)||void 0,Q}};function lL(){return{}}var DE={encode($,Q=new z){if($.companionEphemeralIdentity!==void 0)Q.uint32(10).bytes($.companionEphemeralIdentity);if($.commitment!==void 0)zJ.encode($.commitment,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??lL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.companionEphemeralIdentity=Z.bytes();continue}case 2:{if(J!==18)break;K.commitment=zJ.decode(Z,Z.uint32(),K.commitment);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return DE.fromPartial($??{})},fromPartial($){let Q=lL();return Q.companionEphemeralIdentity=$.companionEphemeralIdentity??void 0,Q.commitment=$.commitment!==void 0&&$.commitment!==null?zJ.fromPartial($.commitment):void 0,Q}};function pL(){return{}}var o9={encode($,Q=new z){if($.id!==void 0)Q.uint32(10).string($.id);if($.pushname!==void 0)Q.uint32(18).string($.pushname);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??pL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.id=Z.string();continue}case 2:{if(J!==18)break;K.pushname=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return o9.fromPartial($??{})},fromPartial($){let Q=pL();return Q.id=$.id??void 0,Q.pushname=$.pushname??void 0,Q}};function uL(){return{}}var FE={encode($,Q=new z){return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??uL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return FE.fromPartial($??{})},fromPartial($){return uL()}};function wL(){return{}}var i9={encode($,Q=new z){if($.filterName!==void 0)Q.uint32(10).string($.filterName);if($.parameters!==void 0&&$.parameters.length!==0)for(let q of $.parameters)m9.encode(q,Q.uint32(18).fork()).join();if($.filterResult!==void 0)Q.uint32(24).int32($.filterResult);if($.clientNotSupportedConfig!==void 0)Q.uint32(32).int32($.clientNotSupportedConfig);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??wL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.filterName=Z.string();continue}case 2:{if(J!==18)break;if(K.parameters===void 0)K.parameters=[];let V=m9.decode(Z,Z.uint32());if(V!==void 0)K.parameters.push(V);continue}case 3:{if(J!==24)break;K.filterResult=Z.int32();continue}case 4:{if(J!==32)break;K.clientNotSupportedConfig=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return i9.fromPartial($??{})},fromPartial($){let Q=wL();return Q.filterName=$.filterName??void 0,Q.parameters=$.parameters?.map((q)=>m9.fromPartial(q))||void 0,Q.filterResult=$.filterResult??void 0,Q.clientNotSupportedConfig=$.clientNotSupportedConfig??void 0,Q}};function jL(){return{}}var CQ={encode($,Q=new z){if($.clauseType!==void 0)Q.uint32(8).int32($.clauseType);if($.clauses!==void 0&&$.clauses.length!==0)for(let q of $.clauses)CQ.encode(q,Q.uint32(18).fork()).join();if($.filters!==void 0&&$.filters.length!==0)for(let q of $.filters)i9.encode(q,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??jL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.clauseType=Z.int32();continue}case 2:{if(J!==18)break;if(K.clauses===void 0)K.clauses=[];let V=CQ.decode(Z,Z.uint32());if(V!==void 0)K.clauses.push(V);continue}case 3:{if(J!==26)break;if(K.filters===void 0)K.filters=[];let V=i9.decode(Z,Z.uint32());if(V!==void 0)K.filters.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return CQ.fromPartial($??{})},fromPartial($){let Q=jL();return Q.clauseType=$.clauseType??void 0,Q.clauses=$.clauses?.map((q)=>CQ.fromPartial(q))||void 0,Q.filters=$.filters?.map((q)=>i9.fromPartial(q))||void 0,Q}};function cL(){return{}}var m9={encode($,Q=new z){if($.key!==void 0)Q.uint32(10).string($.key);if($.value!==void 0)Q.uint32(18).string($.value);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??cL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=Z.string();continue}case 2:{if(J!==18)break;K.value=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return m9.fromPartial($??{})},fromPartial($){let Q=cL();return Q.key=$.key??void 0,Q.value=$.value??void 0,Q}};function dL(){return{}}var g9={encode($,Q=new z){if($.originalData!==void 0)Q.uint32(10).bytes($.originalData);if($.extractedText!==void 0)Q.uint32(18).string($.extractedText);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??dL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.originalData=Z.bytes();continue}case 2:{if(J!==18)break;K.extractedText=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return g9.fromPartial($??{})},fromPartial($){let Q=dL();return Q.originalData=$.originalData??void 0,Q.extractedText=$.extractedText??void 0,Q}};function nL(){return{}}var r9={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();if($.text!==void 0)Q.uint32(18).string($.text);if($.groupingKey!==void 0)Q.uint32(26).string($.groupingKey);if($.senderTimestampMs!==void 0)Q.uint32(32).int64($.senderTimestampMs);if($.unread!==void 0)Q.uint32(40).bool($.unread);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??nL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==18)break;K.text=Z.string();continue}case 3:{if(J!==26)break;K.groupingKey=Z.string();continue}case 4:{if(J!==32)break;K.senderTimestampMs=Z.int64Value();continue}case 5:{if(J!==40)break;K.unread=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return r9.fromPartial($??{})},fromPartial($){let Q=nL();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q.text=$.text??void 0,Q.groupingKey=$.groupingKey??void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q.unread=$.unread??void 0,Q}};function bL(){return{}}var t9={encode($,Q=new z){if($.emoji!==void 0)Q.uint32(10).string($.emoji);if($.weight!==void 0)Q.uint32(21).float($.weight);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??bL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.emoji=Z.string();continue}case 2:{if(J!==21)break;K.weight=Z.float();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return t9.fromPartial($??{})},fromPartial($){let Q=bL();return Q.emoji=$.emoji??void 0,Q.weight=$.weight??void 0,Q}};function oL(){return{}}var PE={encode($,Q=new z){if($.currentSession!==void 0)J$.encode($.currentSession,Q.uint32(10).fork()).join();if($.previousSessions!==void 0&&$.previousSessions.length!==0)for(let q of $.previousSessions)J$.encode(q,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??oL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.currentSession=J$.decode(Z,Z.uint32(),K.currentSession);continue}case 2:{if(J!==18)break;if(K.previousSessions===void 0)K.previousSessions=[];let V=J$.decode(Z,Z.uint32());if(V!==void 0)K.previousSessions.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return PE.fromPartial($??{})},fromPartial($){let Q=oL();return Q.currentSession=$.currentSession!==void 0&&$.currentSession!==null?J$.fromPartial($.currentSession):void 0,Q.previousSessions=$.previousSessions?.map((q)=>J$.fromPartial(q))||void 0,Q}};function iL(){return{}}var LE={encode($,Q=new z){if($.minVersion!==void 0)Q.uint32(8).uint32($.minVersion);if($.maxVersion!==void 0)Q.uint32(16).uint32($.maxVersion);if($.notReportableMinVersion!==void 0)Q.uint32(24).uint32($.notReportableMinVersion);if($.never!==void 0)Q.uint32(32).bool($.never);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??iL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.minVersion=Z.uint32();continue}case 2:{if(J!==16)break;K.maxVersion=Z.uint32();continue}case 3:{if(J!==24)break;K.notReportableMinVersion=Z.uint32();continue}case 4:{if(J!==32)break;K.never=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return LE.fromPartial($??{})},fromPartial($){let Q=iL();return Q.minVersion=$.minVersion??void 0,Q.maxVersion=$.maxVersion??void 0,Q.notReportableMinVersion=$.notReportableMinVersion??void 0,Q.never=$.never??void 0,Q}};function mL(){return{}}var a9={encode($,Q=new z){if($.reportingTag!==void 0)Q.uint32(10).bytes($.reportingTag);if($.reportingTagTimestamp!==void 0)Q.uint32(16).uint64($.reportingTagTimestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??mL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.reportingTag=Z.bytes();continue}case 2:{if(J!==16)break;K.reportingTagTimestamp=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return a9.fromPartial($??{})},fromPartial($){let Q=mL();return Q.reportingTag=$.reportingTag??void 0,Q.reportingTagTimestamp=$.reportingTagTimestamp??void 0,Q}};function gL(){return{}}var s9={encode($,Q=new z){if($.currentEpochRootKey!==void 0)Q.uint32(10).bytes($.currentEpochRootKey);if($.currentEpochAnonId!==void 0)Q.uint32(18).bytes($.currentEpochAnonId);if($.currentEpochFbid!==void 0)Q.uint32(24).uint64($.currentEpochFbid);if($.epochStoragePrivateKey!==void 0)Q.uint32(34).bytes($.epochStoragePrivateKey);if($.members!==void 0&&$.members.length!==0)for(let q of $.members)$6.encode(q,Q.uint32(42).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??gL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.currentEpochRootKey=Z.bytes();continue}case 2:{if(J!==18)break;K.currentEpochAnonId=Z.bytes();continue}case 3:{if(J!==24)break;K.currentEpochFbid=Z.uint64Value();continue}case 4:{if(J!==34)break;K.epochStoragePrivateKey=Z.bytes();continue}case 5:{if(J!==42)break;if(K.members===void 0)K.members=[];let V=$6.decode(Z,Z.uint32());if(V!==void 0)K.members.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return s9.fromPartial($??{})},fromPartial($){let Q=gL();return Q.currentEpochRootKey=$.currentEpochRootKey??void 0,Q.currentEpochAnonId=$.currentEpochAnonId??void 0,Q.currentEpochFbid=$.currentEpochFbid??void 0,Q.epochStoragePrivateKey=$.epochStoragePrivateKey??void 0,Q.members=$.members?.map((q)=>$6.fromPartial(q))||void 0,Q}};function rL(){return{}}var e9={encode($,Q=new z){if($.deviceId!==void 0)Q.uint32(8).uint64($.deviceId);if($.encryptedEpochKey!==void 0)Q.uint32(18).bytes($.encryptedEpochKey);if($.deviceEpochHmac!==void 0)Q.uint32(26).bytes($.deviceEpochHmac);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??rL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.deviceId=Z.uint64Value();continue}case 2:{if(J!==18)break;K.encryptedEpochKey=Z.bytes();continue}case 3:{if(J!==26)break;K.deviceEpochHmac=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return e9.fromPartial($??{})},fromPartial($){let Q=rL();return Q.deviceId=$.deviceId??void 0,Q.encryptedEpochKey=$.encryptedEpochKey??void 0,Q.deviceEpochHmac=$.deviceEpochHmac??void 0,Q}};function tL(){return{}}var $6={encode($,Q=new z){if($.deviceId!==void 0)Q.uint32(8).uint64($.deviceId);if($.epochStoragePublicKey!==void 0)Q.uint32(18).bytes($.epochStoragePublicKey);if($.devicePublicKey!==void 0)Q.uint32(26).bytes($.devicePublicKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??tL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.deviceId=Z.uint64Value();continue}case 2:{if(J!==18)break;K.epochStoragePublicKey=Z.bytes();continue}case 3:{if(J!==26)break;K.devicePublicKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return $6.fromPartial($??{})},fromPartial($){let Q=tL();return Q.deviceId=$.deviceId??void 0,Q.epochStoragePublicKey=$.epochStoragePublicKey??void 0,Q.devicePublicKey=$.devicePublicKey??void 0,Q}};function aL(){return{}}var xE={encode($,Q=new z){if($.newEpochRootKey!==void 0)Q.uint32(10).bytes($.newEpochRootKey);if($.newEpochAnonId!==void 0)Q.uint32(16).uint64($.newEpochAnonId);if($.newEpochFbid!==void 0)Q.uint32(64).uint64($.newEpochFbid);if($.epochAnonId!==void 0)Q.uint32(26).bytes($.epochAnonId);if($.backwardEdge!==void 0)bQ.encode($.backwardEdge,Q.uint32(34).fork()).join();if($.memberEdges!==void 0&&$.memberEdges.length!==0)for(let q of $.memberEdges)e9.encode(q,Q.uint32(42).fork()).join();if($.epochRootKeyFingerprint!==void 0)Q.uint32(50).bytes($.epochRootKeyFingerprint);if($.error!==void 0)Q.uint32(58).string($.error);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??aL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.newEpochRootKey=Z.bytes();continue}case 2:{if(J!==16)break;K.newEpochAnonId=Z.uint64Value();continue}case 8:{if(J!==64)break;K.newEpochFbid=Z.uint64Value();continue}case 3:{if(J!==26)break;K.epochAnonId=Z.bytes();continue}case 4:{if(J!==34)break;K.backwardEdge=bQ.decode(Z,Z.uint32(),K.backwardEdge);continue}case 5:{if(J!==42)break;if(K.memberEdges===void 0)K.memberEdges=[];let V=e9.decode(Z,Z.uint32());if(V!==void 0)K.memberEdges.push(V);continue}case 6:{if(J!==50)break;K.epochRootKeyFingerprint=Z.bytes();continue}case 7:{if(J!==58)break;K.error=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return xE.fromPartial($??{})},fromPartial($){let Q=aL();return Q.newEpochRootKey=$.newEpochRootKey??void 0,Q.newEpochAnonId=$.newEpochAnonId??void 0,Q.newEpochFbid=$.newEpochFbid??void 0,Q.epochAnonId=$.epochAnonId??void 0,Q.backwardEdge=$.backwardEdge!==void 0&&$.backwardEdge!==null?bQ.fromPartial($.backwardEdge):void 0,Q.memberEdges=$.memberEdges?.map((q)=>e9.fromPartial(q))||void 0,Q.epochRootKeyFingerprint=$.epochRootKeyFingerprint??void 0,Q.error=$.error??void 0,Q}};function sL(){return{}}var kE={encode($,Q=new z){if($.regionId!==void 0&&$.regionId.length!==0)for(let q of $.regionId)Q.uint32(8).int32(q);if($.clusterId!==void 0&&$.clusterId.length!==0)for(let q of $.clusterId)Q.uint32(16).int32(q);if($.taskId!==void 0)Q.uint32(24).int32($.taskId);if($.debug!==void 0)Q.uint32(32).bool($.debug);if($.tcpBbr!==void 0)Q.uint32(40).bool($.tcpBbr);if($.tcpKeepalive!==void 0)Q.uint32(48).bool($.tcpKeepalive);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??sL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J===8){if(K.regionId===void 0)K.regionId=[];K.regionId.push(Z.int32());continue}if(J===10){if(K.regionId===void 0)K.regionId=[];let V=Z.uint32()+Z.pos;while(Z.pos<V)K.regionId.push(Z.int32());continue}break}case 2:{if(J===16){if(K.clusterId===void 0)K.clusterId=[];K.clusterId.push(Z.int32());continue}if(J===18){if(K.clusterId===void 0)K.clusterId=[];let V=Z.uint32()+Z.pos;while(Z.pos<V)K.clusterId.push(Z.int32());continue}break}case 3:{if(J!==24)break;K.taskId=Z.int32();continue}case 4:{if(J!==32)break;K.debug=Z.bool();continue}case 5:{if(J!==40)break;K.tcpBbr=Z.bool();continue}case 6:{if(J!==48)break;K.tcpKeepalive=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return kE.fromPartial($??{})},fromPartial($){let Q=sL();return Q.regionId=$.regionId?.map((q)=>q)||void 0,Q.clusterId=$.clusterId?.map((q)=>q)||void 0,Q.taskId=$.taskId??void 0,Q.debug=$.debug??void 0,Q.tcpBbr=$.tcpBbr??void 0,Q.tcpKeepalive=$.tcpKeepalive??void 0,Q}};function eL(){return{}}var Q6={encode($,Q=new z){if($.revealKeyId!==void 0)Q.uint32(10).string($.revealKeyId);if($.revealKey!==void 0)Q.uint32(18).bytes($.revealKey);if($.scheduledTime!==void 0)Q.uint32(24).uint64($.scheduledTime);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??eL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.revealKeyId=Z.string();continue}case 2:{if(J!==18)break;K.revealKey=Z.bytes();continue}case 3:{if(J!==24)break;K.scheduledTime=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Q6.fromPartial($??{})},fromPartial($){let Q=eL();return Q.revealKeyId=$.revealKeyId??void 0,Q.revealKey=$.revealKey??void 0,Q.scheduledTime=$.scheduledTime??void 0,Q}};function $x(){return{}}var iV={encode($,Q=new z){if($.id!==void 0)Q.uint32(8).uint32($.id);if($.iteration!==void 0)Q.uint32(16).uint32($.iteration);if($.chainKey!==void 0)Q.uint32(26).bytes($.chainKey);if($.signingKey!==void 0)Q.uint32(34).bytes($.signingKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??$x();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.id=Z.uint32();continue}case 2:{if(J!==16)break;K.iteration=Z.uint32();continue}case 3:{if(J!==26)break;K.chainKey=Z.bytes();continue}case 4:{if(J!==34)break;K.signingKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return iV.fromPartial($??{})},fromPartial($){let Q=$x();return Q.id=$.id??void 0,Q.iteration=$.iteration??void 0,Q.chainKey=$.chainKey??void 0,Q.signingKey=$.signingKey??void 0,Q}};function Qx(){return{}}var mV={encode($,Q=new z){if($.id!==void 0)Q.uint32(8).uint32($.id);if($.iteration!==void 0)Q.uint32(16).uint32($.iteration);if($.ciphertext!==void 0)Q.uint32(26).bytes($.ciphertext);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Qx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.id=Z.uint32();continue}case 2:{if(J!==16)break;K.iteration=Z.uint32();continue}case 3:{if(J!==26)break;K.ciphertext=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return mV.fromPartial($??{})},fromPartial($){let Q=Qx();return Q.id=$.id??void 0,Q.iteration=$.iteration??void 0,Q.ciphertext=$.ciphertext??void 0,Q}};function Zx(){return{}}var NE={encode($,Q=new z){if($.senderKeyStates!==void 0&&$.senderKeyStates.length!==0)for(let q of $.senderKeyStates)Z6.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Zx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.senderKeyStates===void 0)K.senderKeyStates=[];let V=Z6.decode(Z,Z.uint32());if(V!==void 0)K.senderKeyStates.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return NE.fromPartial($??{})},fromPartial($){let Q=Zx();return Q.senderKeyStates=$.senderKeyStates?.map((q)=>Z6.fromPartial(q))||void 0,Q}};function Jx(){return{}}var Z6={encode($,Q=new z){if($.senderKeyId!==void 0)Q.uint32(8).uint32($.senderKeyId);if($.senderChainKey!==void 0)J6.encode($.senderChainKey,Q.uint32(18).fork()).join();if($.senderSigningKey!==void 0)q6.encode($.senderSigningKey,Q.uint32(26).fork()).join();if($.senderMessageKeys!==void 0&&$.senderMessageKeys.length!==0)for(let q of $.senderMessageKeys)K6.encode(q,Q.uint32(34).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Jx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.senderKeyId=Z.uint32();continue}case 2:{if(J!==18)break;K.senderChainKey=J6.decode(Z,Z.uint32(),K.senderChainKey);continue}case 3:{if(J!==26)break;K.senderSigningKey=q6.decode(Z,Z.uint32(),K.senderSigningKey);continue}case 4:{if(J!==34)break;if(K.senderMessageKeys===void 0)K.senderMessageKeys=[];let V=K6.decode(Z,Z.uint32());if(V!==void 0)K.senderMessageKeys.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Z6.fromPartial($??{})},fromPartial($){let Q=Jx();return Q.senderKeyId=$.senderKeyId??void 0,Q.senderChainKey=$.senderChainKey!==void 0&&$.senderChainKey!==null?J6.fromPartial($.senderChainKey):void 0,Q.senderSigningKey=$.senderSigningKey!==void 0&&$.senderSigningKey!==null?q6.fromPartial($.senderSigningKey):void 0,Q.senderMessageKeys=$.senderMessageKeys?.map((q)=>K6.fromPartial(q))||void 0,Q}};function Kx(){return{}}var J6={encode($,Q=new z){if($.iteration!==void 0)Q.uint32(8).uint32($.iteration);if($.seed!==void 0)Q.uint32(18).bytes($.seed);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Kx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.iteration=Z.uint32();continue}case 2:{if(J!==18)break;K.seed=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return J6.fromPartial($??{})},fromPartial($){let Q=Kx();return Q.iteration=$.iteration??void 0,Q.seed=$.seed??void 0,Q}};function qx(){return{}}var K6={encode($,Q=new z){if($.iteration!==void 0)Q.uint32(8).uint32($.iteration);if($.seed!==void 0)Q.uint32(18).bytes($.seed);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??qx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.iteration=Z.uint32();continue}case 2:{if(J!==18)break;K.seed=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return K6.fromPartial($??{})},fromPartial($){let Q=qx();return Q.iteration=$.iteration??void 0,Q.seed=$.seed??void 0,Q}};function Xx(){return{}}var q6={encode($,Q=new z){if($.public!==void 0)Q.uint32(10).bytes($.public);if($.private!==void 0)Q.uint32(18).bytes($.private);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Xx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.public=Z.bytes();continue}case 2:{if(J!==18)break;K.private=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return q6.fromPartial($??{})},fromPartial($){let Q=Xx();return Q.public=$.public??void 0,Q.private=$.private??void 0,Q}};function Yx(){return{}}var gV={encode($,Q=new z){if($.stanzaId!==void 0)Q.uint32(10).string($.stanzaId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Yx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.stanzaId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return gV.fromPartial($??{})},fromPartial($){let Q=Yx();return Q.stanzaId=$.stanzaId??void 0,Q}};function Vx(){return{}}var J$={encode($,Q=new z){if($.sessionVersion!==void 0)Q.uint32(8).uint32($.sessionVersion);if($.localIdentityPublic!==void 0)Q.uint32(18).bytes($.localIdentityPublic);if($.remoteIdentityPublic!==void 0)Q.uint32(26).bytes($.remoteIdentityPublic);if($.rootKey!==void 0)Q.uint32(34).bytes($.rootKey);if($.previousCounter!==void 0)Q.uint32(40).uint32($.previousCounter);if($.senderChain!==void 0)K$.encode($.senderChain,Q.uint32(50).fork()).join();if($.receiverChains!==void 0&&$.receiverChains.length!==0)for(let q of $.receiverChains)K$.encode(q,Q.uint32(58).fork()).join();if($.pendingKeyExchange!==void 0)V6.encode($.pendingKeyExchange,Q.uint32(66).fork()).join();if($.pendingPreKey!==void 0)z6.encode($.pendingPreKey,Q.uint32(74).fork()).join();if($.remoteRegistrationId!==void 0)Q.uint32(80).uint32($.remoteRegistrationId);if($.localRegistrationId!==void 0)Q.uint32(88).uint32($.localRegistrationId);if($.needsRefresh!==void 0)Q.uint32(96).bool($.needsRefresh);if($.aliceBaseKey!==void 0)Q.uint32(106).bytes($.aliceBaseKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Vx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.sessionVersion=Z.uint32();continue}case 2:{if(J!==18)break;K.localIdentityPublic=Z.bytes();continue}case 3:{if(J!==26)break;K.remoteIdentityPublic=Z.bytes();continue}case 4:{if(J!==34)break;K.rootKey=Z.bytes();continue}case 5:{if(J!==40)break;K.previousCounter=Z.uint32();continue}case 6:{if(J!==50)break;K.senderChain=K$.decode(Z,Z.uint32(),K.senderChain);continue}case 7:{if(J!==58)break;if(K.receiverChains===void 0)K.receiverChains=[];let V=K$.decode(Z,Z.uint32());if(V!==void 0)K.receiverChains.push(V);continue}case 8:{if(J!==66)break;K.pendingKeyExchange=V6.decode(Z,Z.uint32(),K.pendingKeyExchange);continue}case 9:{if(J!==74)break;K.pendingPreKey=z6.decode(Z,Z.uint32(),K.pendingPreKey);continue}case 10:{if(J!==80)break;K.remoteRegistrationId=Z.uint32();continue}case 11:{if(J!==88)break;K.localRegistrationId=Z.uint32();continue}case 12:{if(J!==96)break;K.needsRefresh=Z.bool();continue}case 13:{if(J!==106)break;K.aliceBaseKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return J$.fromPartial($??{})},fromPartial($){let Q=Vx();return Q.sessionVersion=$.sessionVersion??void 0,Q.localIdentityPublic=$.localIdentityPublic??void 0,Q.remoteIdentityPublic=$.remoteIdentityPublic??void 0,Q.rootKey=$.rootKey??void 0,Q.previousCounter=$.previousCounter??void 0,Q.senderChain=$.senderChain!==void 0&&$.senderChain!==null?K$.fromPartial($.senderChain):void 0,Q.receiverChains=$.receiverChains?.map((q)=>K$.fromPartial(q))||void 0,Q.pendingKeyExchange=$.pendingKeyExchange!==void 0&&$.pendingKeyExchange!==null?V6.fromPartial($.pendingKeyExchange):void 0,Q.pendingPreKey=$.pendingPreKey!==void 0&&$.pendingPreKey!==null?z6.fromPartial($.pendingPreKey):void 0,Q.remoteRegistrationId=$.remoteRegistrationId??void 0,Q.localRegistrationId=$.localRegistrationId??void 0,Q.needsRefresh=$.needsRefresh??void 0,Q.aliceBaseKey=$.aliceBaseKey??void 0,Q}};function zx(){return{}}var K$={encode($,Q=new z){if($.senderRatchetKey!==void 0)Q.uint32(10).bytes($.senderRatchetKey);if($.senderRatchetKeyPrivate!==void 0)Q.uint32(18).bytes($.senderRatchetKeyPrivate);if($.chainKey!==void 0)X6.encode($.chainKey,Q.uint32(26).fork()).join();if($.messageKeys!==void 0&&$.messageKeys.length!==0)for(let q of $.messageKeys)Y6.encode(q,Q.uint32(34).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??zx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.senderRatchetKey=Z.bytes();continue}case 2:{if(J!==18)break;K.senderRatchetKeyPrivate=Z.bytes();continue}case 3:{if(J!==26)break;K.chainKey=X6.decode(Z,Z.uint32(),K.chainKey);continue}case 4:{if(J!==34)break;if(K.messageKeys===void 0)K.messageKeys=[];let V=Y6.decode(Z,Z.uint32());if(V!==void 0)K.messageKeys.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return K$.fromPartial($??{})},fromPartial($){let Q=zx();return Q.senderRatchetKey=$.senderRatchetKey??void 0,Q.senderRatchetKeyPrivate=$.senderRatchetKeyPrivate??void 0,Q.chainKey=$.chainKey!==void 0&&$.chainKey!==null?X6.fromPartial($.chainKey):void 0,Q.messageKeys=$.messageKeys?.map((q)=>Y6.fromPartial(q))||void 0,Q}};function Hx(){return{}}var X6={encode($,Q=new z){if($.index!==void 0)Q.uint32(8).uint32($.index);if($.key!==void 0)Q.uint32(18).bytes($.key);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Hx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.index=Z.uint32();continue}case 2:{if(J!==18)break;K.key=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return X6.fromPartial($??{})},fromPartial($){let Q=Hx();return Q.index=$.index??void 0,Q.key=$.key??void 0,Q}};function Gx(){return{}}var Y6={encode($,Q=new z){if($.index!==void 0)Q.uint32(8).uint32($.index);if($.cipherKey!==void 0)Q.uint32(18).bytes($.cipherKey);if($.macKey!==void 0)Q.uint32(26).bytes($.macKey);if($.iv!==void 0)Q.uint32(34).bytes($.iv);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Gx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.index=Z.uint32();continue}case 2:{if(J!==18)break;K.cipherKey=Z.bytes();continue}case 3:{if(J!==26)break;K.macKey=Z.bytes();continue}case 4:{if(J!==34)break;K.iv=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Y6.fromPartial($??{})},fromPartial($){let Q=Gx();return Q.index=$.index??void 0,Q.cipherKey=$.cipherKey??void 0,Q.macKey=$.macKey??void 0,Q.iv=$.iv??void 0,Q}};function Ux(){return{}}var V6={encode($,Q=new z){if($.sequence!==void 0)Q.uint32(8).uint32($.sequence);if($.localBaseKey!==void 0)Q.uint32(18).bytes($.localBaseKey);if($.localBaseKeyPrivate!==void 0)Q.uint32(26).bytes($.localBaseKeyPrivate);if($.localRatchetKey!==void 0)Q.uint32(34).bytes($.localRatchetKey);if($.localRatchetKeyPrivate!==void 0)Q.uint32(42).bytes($.localRatchetKeyPrivate);if($.localIdentityKey!==void 0)Q.uint32(58).bytes($.localIdentityKey);if($.localIdentityKeyPrivate!==void 0)Q.uint32(66).bytes($.localIdentityKeyPrivate);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Ux();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.sequence=Z.uint32();continue}case 2:{if(J!==18)break;K.localBaseKey=Z.bytes();continue}case 3:{if(J!==26)break;K.localBaseKeyPrivate=Z.bytes();continue}case 4:{if(J!==34)break;K.localRatchetKey=Z.bytes();continue}case 5:{if(J!==42)break;K.localRatchetKeyPrivate=Z.bytes();continue}case 7:{if(J!==58)break;K.localIdentityKey=Z.bytes();continue}case 8:{if(J!==66)break;K.localIdentityKeyPrivate=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return V6.fromPartial($??{})},fromPartial($){let Q=Ux();return Q.sequence=$.sequence??void 0,Q.localBaseKey=$.localBaseKey??void 0,Q.localBaseKeyPrivate=$.localBaseKeyPrivate??void 0,Q.localRatchetKey=$.localRatchetKey??void 0,Q.localRatchetKeyPrivate=$.localRatchetKeyPrivate??void 0,Q.localIdentityKey=$.localIdentityKey??void 0,Q.localIdentityKeyPrivate=$.localIdentityKeyPrivate??void 0,Q}};function Cx(){return{}}var z6={encode($,Q=new z){if($.preKeyId!==void 0)Q.uint32(8).uint32($.preKeyId);if($.signedPreKeyId!==void 0)Q.uint32(24).int32($.signedPreKeyId);if($.baseKey!==void 0)Q.uint32(18).bytes($.baseKey);if($.kyberPreKeyId!==void 0)Q.uint32(32).uint32($.kyberPreKeyId);if($.kyberCiphertext!==void 0)Q.uint32(42).bytes($.kyberCiphertext);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Cx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.preKeyId=Z.uint32();continue}case 3:{if(J!==24)break;K.signedPreKeyId=Z.int32();continue}case 2:{if(J!==18)break;K.baseKey=Z.bytes();continue}case 4:{if(J!==32)break;K.kyberPreKeyId=Z.uint32();continue}case 5:{if(J!==42)break;K.kyberCiphertext=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return z6.fromPartial($??{})},fromPartial($){let Q=Cx();return Q.preKeyId=$.preKeyId??void 0,Q.signedPreKeyId=$.signedPreKeyId??void 0,Q.baseKey=$.baseKey??void 0,Q.kyberPreKeyId=$.kyberPreKeyId??void 0,Q.kyberCiphertext=$.kyberCiphertext??void 0,Q}};function Dx(){return{}}var H6={encode($,Q=new z){if($.disclaimerText!==void 0)Q.uint32(10).string($.disclaimerText);if($.hcaId!==void 0)Q.uint32(18).string($.hcaId);if($.sessionTransparencyType!==void 0)Q.uint32(24).int32($.sessionTransparencyType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Dx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.disclaimerText=Z.string();continue}case 2:{if(J!==18)break;K.hcaId=Z.string();continue}case 3:{if(J!==24)break;K.sessionTransparencyType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return H6.fromPartial($??{})},fromPartial($){let Q=Dx();return Q.disclaimerText=$.disclaimerText??void 0,Q.hcaId=$.hcaId??void 0,Q.sessionTransparencyType=$.sessionTransparencyType??void 0,Q}};function Fx(){return{}}var BE={encode($,Q=new z){if($.ratchetKey!==void 0)Q.uint32(10).bytes($.ratchetKey);if($.counter!==void 0)Q.uint32(16).uint32($.counter);if($.previousCounter!==void 0)Q.uint32(24).uint32($.previousCounter);if($.ciphertext!==void 0)Q.uint32(34).bytes($.ciphertext);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Fx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.ratchetKey=Z.bytes();continue}case 2:{if(J!==16)break;K.counter=Z.uint32();continue}case 3:{if(J!==24)break;K.previousCounter=Z.uint32();continue}case 4:{if(J!==34)break;K.ciphertext=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return BE.fromPartial($??{})},fromPartial($){let Q=Fx();return Q.ratchetKey=$.ratchetKey??void 0,Q.counter=$.counter??void 0,Q.previousCounter=$.previousCounter??void 0,Q.ciphertext=$.ciphertext??void 0,Q}};function Px(){return{}}var G6={encode($,Q=new z){if($.mmkDistribution!==void 0)O9.encode($.mmkDistribution,Q.uint32(10).fork()).join();if($.signature!==void 0)Q.uint32(18).bytes($.signature);if($.fromMailbox!==void 0)b.encode($.fromMailbox,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Px();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.mmkDistribution=O9.decode(Z,Z.uint32(),K.mmkDistribution);continue}case 2:{if(J!==18)break;K.signature=Z.bytes();continue}case 3:{if(J!==26)break;K.fromMailbox=b.decode(Z,Z.uint32(),K.fromMailbox);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return G6.fromPartial($??{})},fromPartial($){let Q=Px();return Q.mmkDistribution=$.mmkDistribution!==void 0&&$.mmkDistribution!==null?O9.fromPartial($.mmkDistribution):void 0,Q.signature=$.signature??void 0,Q.fromMailbox=$.fromMailbox!==void 0&&$.fromMailbox!==null?b.fromPartial($.fromMailbox):void 0,Q}};function Lx(){return{}}var RE={encode($,Q=new z){if($.id!==void 0)Q.uint32(8).uint32($.id);if($.publicKey!==void 0)Q.uint32(18).bytes($.publicKey);if($.privateKey!==void 0)Q.uint32(26).bytes($.privateKey);if($.signature!==void 0)Q.uint32(34).bytes($.signature);if($.timestamp!==void 0)Q.uint32(41).fixed64($.timestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Lx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.id=Z.uint32();continue}case 2:{if(J!==18)break;K.publicKey=Z.bytes();continue}case 3:{if(J!==26)break;K.privateKey=Z.bytes();continue}case 4:{if(J!==34)break;K.signature=Z.bytes();continue}case 5:{if(J!==41)break;K.timestamp=Z.fixed64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return RE.fromPartial($??{})},fromPartial($){let Q=Lx();return Q.id=$.id??void 0,Q.publicKey=$.publicKey??void 0,Q.privateKey=$.privateKey??void 0,Q.signature=$.signature??void 0,Q.timestamp=$.timestamp??void 0,Q}};function xx(){return{}}var U6={encode($,Q=new z){if($.type!==void 0)Q.uint32(8).int32($.type);if($.actionUrl!==void 0)Q.uint32(18).string($.actionUrl);if($.statusReshare!==void 0)x6.encode($.statusReshare,Q.uint32(26).fork()).join();if($.externalShare!==void 0)D6.encode($.externalShare,Q.uint32(34).fork()).join();if($.music!==void 0)P6.encode($.music,Q.uint32(42).fork()).join();if($.groupStatus!==void 0)F6.encode($.groupStatus,Q.uint32(50).fork()).join();if($.rlAttribution!==void 0)L6.encode($.rlAttribution,Q.uint32(58).fork()).join();if($.aiCreatedAttribution!==void 0)C6.encode($.aiCreatedAttribution,Q.uint32(66).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??xx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.type=Z.int32();continue}case 2:{if(J!==18)break;K.actionUrl=Z.string();continue}case 3:{if(J!==26)break;K.statusReshare=x6.decode(Z,Z.uint32(),K.statusReshare);continue}case 4:{if(J!==34)break;K.externalShare=D6.decode(Z,Z.uint32(),K.externalShare);continue}case 5:{if(J!==42)break;K.music=P6.decode(Z,Z.uint32(),K.music);continue}case 6:{if(J!==50)break;K.groupStatus=F6.decode(Z,Z.uint32(),K.groupStatus);continue}case 7:{if(J!==58)break;K.rlAttribution=L6.decode(Z,Z.uint32(),K.rlAttribution);continue}case 8:{if(J!==66)break;K.aiCreatedAttribution=C6.decode(Z,Z.uint32(),K.aiCreatedAttribution);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return U6.fromPartial($??{})},fromPartial($){let Q=xx();return Q.type=$.type??void 0,Q.actionUrl=$.actionUrl??void 0,Q.statusReshare=$.statusReshare!==void 0&&$.statusReshare!==null?x6.fromPartial($.statusReshare):void 0,Q.externalShare=$.externalShare!==void 0&&$.externalShare!==null?D6.fromPartial($.externalShare):void 0,Q.music=$.music!==void 0&&$.music!==null?P6.fromPartial($.music):void 0,Q.groupStatus=$.groupStatus!==void 0&&$.groupStatus!==null?F6.fromPartial($.groupStatus):void 0,Q.rlAttribution=$.rlAttribution!==void 0&&$.rlAttribution!==null?L6.fromPartial($.rlAttribution):void 0,Q.aiCreatedAttribution=$.aiCreatedAttribution!==void 0&&$.aiCreatedAttribution!==null?C6.fromPartial($.aiCreatedAttribution):void 0,Q}};function kx(){return{}}var C6={encode($,Q=new z){if($.source!==void 0)Q.uint32(8).int32($.source);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??kx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.source=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return C6.fromPartial($??{})},fromPartial($){let Q=kx();return Q.source=$.source??void 0,Q}};function Nx(){return{}}var D6={encode($,Q=new z){if($.actionUrl!==void 0)Q.uint32(10).string($.actionUrl);if($.source!==void 0)Q.uint32(16).int32($.source);if($.duration!==void 0)Q.uint32(24).int32($.duration);if($.actionFallbackUrl!==void 0)Q.uint32(34).string($.actionFallbackUrl);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Nx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.actionUrl=Z.string();continue}case 2:{if(J!==16)break;K.source=Z.int32();continue}case 3:{if(J!==24)break;K.duration=Z.int32();continue}case 4:{if(J!==34)break;K.actionFallbackUrl=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return D6.fromPartial($??{})},fromPartial($){let Q=Nx();return Q.actionUrl=$.actionUrl??void 0,Q.source=$.source??void 0,Q.duration=$.duration??void 0,Q.actionFallbackUrl=$.actionFallbackUrl??void 0,Q}};function Bx(){return{}}var F6={encode($,Q=new z){if($.authorJid!==void 0)Q.uint32(10).string($.authorJid);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Bx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.authorJid=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return F6.fromPartial($??{})},fromPartial($){let Q=Bx();return Q.authorJid=$.authorJid??void 0,Q}};function Rx(){return{}}var P6={encode($,Q=new z){if($.authorName!==void 0)Q.uint32(10).string($.authorName);if($.songId!==void 0)Q.uint32(18).string($.songId);if($.title!==void 0)Q.uint32(26).string($.title);if($.author!==void 0)Q.uint32(34).string($.author);if($.artistAttribution!==void 0)Q.uint32(42).string($.artistAttribution);if($.isExplicit!==void 0)Q.uint32(48).bool($.isExplicit);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Rx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.authorName=Z.string();continue}case 2:{if(J!==18)break;K.songId=Z.string();continue}case 3:{if(J!==26)break;K.title=Z.string();continue}case 4:{if(J!==34)break;K.author=Z.string();continue}case 5:{if(J!==42)break;K.artistAttribution=Z.string();continue}case 6:{if(J!==48)break;K.isExplicit=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return P6.fromPartial($??{})},fromPartial($){let Q=Rx();return Q.authorName=$.authorName??void 0,Q.songId=$.songId??void 0,Q.title=$.title??void 0,Q.author=$.author??void 0,Q.artistAttribution=$.artistAttribution??void 0,Q.isExplicit=$.isExplicit??void 0,Q}};function Ox(){return{}}var L6={encode($,Q=new z){if($.source!==void 0)Q.uint32(8).int32($.source);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Ox();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.source=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return L6.fromPartial($??{})},fromPartial($){let Q=Ox();return Q.source=$.source??void 0,Q}};function Ax(){return{}}var x6={encode($,Q=new z){if($.source!==void 0)Q.uint32(8).int32($.source);if($.metadata!==void 0)k6.encode($.metadata,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Ax();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.source=Z.int32();continue}case 2:{if(J!==18)break;K.metadata=k6.decode(Z,Z.uint32(),K.metadata);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return x6.fromPartial($??{})},fromPartial($){let Q=Ax();return Q.source=$.source??void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?k6.fromPartial($.metadata):void 0,Q}};function Ex(){return{}}var k6={encode($,Q=new z){if($.duration!==void 0)Q.uint32(8).int32($.duration);if($.channelJid!==void 0)Q.uint32(18).string($.channelJid);if($.channelMessageId!==void 0)Q.uint32(24).int32($.channelMessageId);if($.hasMultipleReshares!==void 0)Q.uint32(32).bool($.hasMultipleReshares);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Ex();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.duration=Z.int32();continue}case 2:{if(J!==18)break;K.channelJid=Z.string();continue}case 3:{if(J!==24)break;K.channelMessageId=Z.int32();continue}case 4:{if(J!==32)break;K.hasMultipleReshares=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return k6.fromPartial($??{})},fromPartial($){let Q=Ex();return Q.duration=$.duration??void 0,Q.channelJid=$.channelJid??void 0,Q.channelMessageId=$.channelMessageId??void 0,Q.hasMultipleReshares=$.hasMultipleReshares??void 0,Q}};function Mx(){return{}}var N6={encode($,Q=new z){if($.quotedStatus!==void 0)c.encode($.quotedStatus,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Mx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.quotedStatus=c.decode(Z,Z.uint32(),K.quotedStatus);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return N6.fromPartial($??{})},fromPartial($){let Q=Mx();return Q.quotedStatus=$.quotedStatus!==void 0&&$.quotedStatus!==null?c.fromPartial($.quotedStatus):void 0,Q}};function Wx(){return{}}var B6={encode($,Q=new z){if($.campaignId!==void 0)Q.uint32(352).uint64($.campaignId);if($.campaignExpirationTimestamp!==void 0)Q.uint32(360).uint64($.campaignExpirationTimestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Wx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 44:{if(J!==352)break;K.campaignId=Z.uint64Value();continue}case 45:{if(J!==360)break;K.campaignExpirationTimestamp=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return B6.fromPartial($??{})},fromPartial($){let Q=Wx();return Q.campaignId=$.campaignId??void 0,Q.campaignExpirationTimestamp=$.campaignExpirationTimestamp??void 0,Q}};function Sx(){return{}}var R6={encode($,Q=new z){if($.url!==void 0)Q.uint32(10).string($.url);if($.fileSha256!==void 0)Q.uint32(18).bytes($.fileSha256);if($.fileEncSha256!==void 0)Q.uint32(26).bytes($.fileEncSha256);if($.mediaKey!==void 0)Q.uint32(34).bytes($.mediaKey);if($.mimetype!==void 0)Q.uint32(42).string($.mimetype);if($.height!==void 0)Q.uint32(48).uint32($.height);if($.width!==void 0)Q.uint32(56).uint32($.width);if($.directPath!==void 0)Q.uint32(66).string($.directPath);if($.fileLength!==void 0)Q.uint32(72).uint64($.fileLength);if($.weight!==void 0)Q.uint32(85).float($.weight);if($.lastStickerSentTs!==void 0)Q.uint32(88).int64($.lastStickerSentTs);if($.isLottie!==void 0)Q.uint32(96).bool($.isLottie);if($.imageHash!==void 0)Q.uint32(106).string($.imageHash);if($.isAvatarSticker!==void 0)Q.uint32(112).bool($.isAvatarSticker);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Sx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.url=Z.string();continue}case 2:{if(J!==18)break;K.fileSha256=Z.bytes();continue}case 3:{if(J!==26)break;K.fileEncSha256=Z.bytes();continue}case 4:{if(J!==34)break;K.mediaKey=Z.bytes();continue}case 5:{if(J!==42)break;K.mimetype=Z.string();continue}case 6:{if(J!==48)break;K.height=Z.uint32();continue}case 7:{if(J!==56)break;K.width=Z.uint32();continue}case 8:{if(J!==66)break;K.directPath=Z.string();continue}case 9:{if(J!==72)break;K.fileLength=Z.uint64Value();continue}case 10:{if(J!==85)break;K.weight=Z.float();continue}case 11:{if(J!==88)break;K.lastStickerSentTs=Z.int64Value();continue}case 12:{if(J!==96)break;K.isLottie=Z.bool();continue}case 13:{if(J!==106)break;K.imageHash=Z.string();continue}case 14:{if(J!==112)break;K.isAvatarSticker=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return R6.fromPartial($??{})},fromPartial($){let Q=Sx();return Q.url=$.url??void 0,Q.fileSha256=$.fileSha256??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.mediaKey=$.mediaKey??void 0,Q.mimetype=$.mimetype??void 0,Q.height=$.height??void 0,Q.width=$.width??void 0,Q.directPath=$.directPath??void 0,Q.fileLength=$.fileLength??void 0,Q.weight=$.weight??void 0,Q.lastStickerSentTs=$.lastStickerSentTs??void 0,Q.isLottie=$.isLottie??void 0,Q.imageHash=$.imageHash??void 0,Q.isAvatarSticker=$.isAvatarSticker??void 0,Q}};function Ix(){return{}}var n={encode($,Q=new z){if($.payload!==void 0)Q.uint32(10).bytes($.payload);if($.version!==void 0)Q.uint32(16).int32($.version);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Ix();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.payload=Z.bytes();continue}case 2:{if(J!==16)break;K.version=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return n.fromPartial($??{})},fromPartial($){let Q=Ix();return Q.payload=$.payload??void 0,Q.version=$.version??void 0,Q}};function Tx(){return{}}var i$={encode($,Q=new z){if($.index!==void 0)Q.uint32(10).bytes($.index);if($.value!==void 0)m$.encode($.value,Q.uint32(18).fork()).join();if($.padding!==void 0)Q.uint32(26).bytes($.padding);if($.version!==void 0)Q.uint32(32).int32($.version);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Tx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.index=Z.bytes();continue}case 2:{if(J!==18)break;K.value=m$.decode(Z,Z.uint32(),K.value);continue}case 3:{if(J!==26)break;K.padding=Z.bytes();continue}case 4:{if(J!==32)break;K.version=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return i$.fromPartial($??{})},fromPartial($){let Q=Tx();return Q.index=$.index??void 0,Q.value=$.value!==void 0&&$.value!==null?m$.fromPartial($.value):void 0,Q.padding=$.padding??void 0,Q.version=$.version??void 0,Q}};function yx(){return{}}var m$={encode($,Q=new z){if($.timestamp!==void 0)Q.uint32(8).int64($.timestamp);if($.starAction!==void 0)uY.encode($.starAction,Q.uint32(18).fork()).join();if($.contactAction!==void 0)c6.encode($.contactAction,Q.uint32(26).fork()).join();if($.muteAction!==void 0)PY.encode($.muteAction,Q.uint32(34).fork()).join();if($.pinAction!==void 0)EY.encode($.pinAction,Q.uint32(42).fork()).join();if($.pushNameSetting!==void 0)fY.encode($.pushNameSetting,Q.uint32(58).fork()).join();if($.quickReplyAction!==void 0)_Y.encode($.quickReplyAction,Q.uint32(66).fork()).join();if($.recentEmojiWeightsAction!==void 0)hY.encode($.recentEmojiWeightsAction,Q.uint32(90).fork()).join();if($.labelEditAction!==void 0)KY.encode($.labelEditAction,Q.uint32(114).fork()).join();if($.labelAssociationAction!==void 0)JY.encode($.labelAssociationAction,Q.uint32(122).fork()).join();if($.localeSetting!==void 0)VY.encode($.localeSetting,Q.uint32(130).fork()).join();if($.archiveChatAction!==void 0)M6.encode($.archiveChatAction,Q.uint32(138).fork()).join();if($.deleteMessageForMeAction!==void 0)t6.encode($.deleteMessageForMeAction,Q.uint32(146).fork()).join();if($.keyExpiration!==void 0)ZY.encode($.keyExpiration,Q.uint32(154).fork()).join();if($.markChatAsReadAction!==void 0)GY.encode($.markChatAsReadAction,Q.uint32(162).fork()).join();if($.clearChatAction!==void 0)w6.encode($.clearChatAction,Q.uint32(170).fork()).join();if($.deleteChatAction!==void 0)g6.encode($.deleteChatAction,Q.uint32(178).fork()).join();if($.unarchiveChatsSetting!==void 0)tY.encode($.unarchiveChatsSetting,Q.uint32(186).fork()).join();if($.primaryFeature!==void 0)WY.encode($.primaryFeature,Q.uint32(194).fork()).join();if($.androidUnsupportedActions!==void 0)E6.encode($.androidUnsupportedActions,Q.uint32(210).fork()).join();if($.agentAction!==void 0)O6.encode($.agentAction,Q.uint32(218).fork()).join();if($.subscriptionAction!==void 0)dY.encode($.subscriptionAction,Q.uint32(226).fork()).join();if($.userStatusMuteAction!==void 0)aY.encode($.userStatusMuteAction,Q.uint32(234).fork()).join();if($.timeFormatAction!==void 0)gY.encode($.timeFormatAction,Q.uint32(242).fork()).join();if($.nuxAction!==void 0)BY.encode($.nuxAction,Q.uint32(250).fork()).join();if($.primaryVersionAction!==void 0)SY.encode($.primaryVersionAction,Q.uint32(258).fork()).join();if($.stickerAction!==void 0)u$.encode($.stickerAction,Q.uint32(266).fork()).join();if($.removeRecentStickerAction!==void 0)lY.encode($.removeRecentStickerAction,Q.uint32(274).fork()).join();if($.chatAssignment!==void 0)p6.encode($.chatAssignment,Q.uint32(282).fork()).join();if($.chatAssignmentOpenedStatus!==void 0)u6.encode($.chatAssignmentOpenedStatus,Q.uint32(290).fork()).join();if($.pnForLidChatAction!==void 0)MY.encode($.pnForLidChatAction,Q.uint32(298).fork()).join();if($.marketingMessageAction!==void 0)UY.encode($.marketingMessageAction,Q.uint32(306).fork()).join();if($.marketingMessageBroadcastAction!==void 0)CY.encode($.marketingMessageBroadcastAction,Q.uint32(314).fork()).join();if($.externalWebBetaAction!==void 0)s6.encode($.externalWebBetaAction,Q.uint32(322).fork()).join();if($.privacySettingRelayAllCalls!==void 0)yY.encode($.privacySettingRelayAllCalls,Q.uint32(330).fork()).join();if($.callLogAction!==void 0)l6.encode($.callLogAction,Q.uint32(338).fork()).join();if($.ugcBot!==void 0)rY.encode($.ugcBot,Q.uint32(346).fork()).join();if($.statusPrivacy!==void 0)jY.encode($.statusPrivacy,Q.uint32(354).fork()).join();if($.botWelcomeRequestAction!==void 0)T6.encode($.botWelcomeRequestAction,Q.uint32(362).fork()).join();if($.deleteIndividualCallLog!==void 0)r6.encode($.deleteIndividualCallLog,Q.uint32(370).fork()).join();if($.labelReorderingAction!==void 0)qY.encode($.labelReorderingAction,Q.uint32(378).fork()).join();if($.paymentInfoAction!==void 0)OY.encode($.paymentInfoAction,Q.uint32(386).fork()).join();if($.customPaymentMethodsAction!==void 0)i6.encode($.customPaymentMethodsAction,Q.uint32(394).fork()).join();if($.lockChatAction!==void 0)zY.encode($.lockChatAction,Q.uint32(402).fork()).join();if($.chatLockSettings!==void 0)z$.encode($.chatLockSettings,Q.uint32(410).fork()).join();if($.wamoUserIdentifierAction!==void 0)ZV.encode($.wamoUserIdentifierAction,Q.uint32(418).fork()).join();if($.privacySettingDisableLinkPreviewsAction!==void 0)TY.encode($.privacySettingDisableLinkPreviewsAction,Q.uint32(426).fork()).join();if($.deviceCapabilities!==void 0)g0.encode($.deviceCapabilities,Q.uint32(434).fork()).join();if($.noteEditAction!==void 0)kY.encode($.noteEditAction,Q.uint32(442).fork()).join();if($.favoritesAction!==void 0)e6.encode($.favoritesAction,Q.uint32(450).fork()).join();if($.merchantPaymentPartnerAction!==void 0)DY.encode($.merchantPaymentPartnerAction,Q.uint32(458).fork()).join();if($.waffleAccountLinkStateAction!==void 0)QV.encode($.waffleAccountLinkStateAction,Q.uint32(466).fork()).join();if($.usernameChatStartMode!==void 0)sY.encode($.usernameChatStartMode,Q.uint32(474).fork()).join();if($.notificationActivitySettingAction!==void 0)NY.encode($.notificationActivitySettingAction,Q.uint32(482).fork()).join();if($.lidContactAction!==void 0)YY.encode($.lidContactAction,Q.uint32(490).fork()).join();if($.ctwaPerCustomerDataSharingAction!==void 0)n6.encode($.ctwaPerCustomerDataSharingAction,Q.uint32(498).fork()).join();if($.paymentTosAction!==void 0)AY.encode($.paymentTosAction,Q.uint32(506).fork()).join();if($.privacySettingChannelsPersonalisedRecommendationAction!==void 0)IY.encode($.privacySettingChannelsPersonalisedRecommendationAction,Q.uint32(514).fork()).join();if($.detectedOutcomesStatusAction!==void 0)a6.encode($.detectedOutcomesStatusAction,Q.uint32(530).fork()).join();if($.maibaAiFeaturesControlAction!==void 0)HY.encode($.maibaAiFeaturesControlAction,Q.uint32(546).fork()).join();if($.businessBroadcastListAction!==void 0)h6.encode($.businessBroadcastListAction,Q.uint32(554).fork()).join();if($.musicUserIdAction!==void 0)FY.encode($.musicUserIdAction,Q.uint32(562).fork()).join();if($.statusPostOptInNotificationPreferencesAction!==void 0)wY.encode($.statusPostOptInNotificationPreferencesAction,Q.uint32(570).fork()).join();if($.avatarUpdatedAction!==void 0)S6.encode($.avatarUpdatedAction,Q.uint32(578).fork()).join();if($.privateProcessingSettingAction!==void 0)vY.encode($.privateProcessingSettingAction,Q.uint32(594).fork()).join();if($.newsletterSavedInterestsAction!==void 0)xY.encode($.newsletterSavedInterestsAction,Q.uint32(602).fork()).join();if($.aiThreadRenameAction!==void 0)A6.encode($.aiThreadRenameAction,Q.uint32(610).fork()).join();if($.interactiveMessageAction!==void 0)QY.encode($.interactiveMessageAction,Q.uint32(618).fork()).join();if($.settingsSyncAction!==void 0)pY.encode($.settingsSyncAction,Q.uint32(626).fork()).join();if($.outContactAction!==void 0)RY.encode($.outContactAction,Q.uint32(634).fork()).join();if($.nctSaltSyncAction!==void 0)LY.encode($.nctSaltSyncAction,Q.uint32(642).fork()).join();if($.businessBroadcastCampaignAction!==void 0)f6.encode($.businessBroadcastCampaignAction,Q.uint32(650).fork()).join();if($.businessBroadcastInsightsAction!==void 0)_6.encode($.businessBroadcastInsightsAction,Q.uint32(658).fork()).join();if($.customerDataAction!==void 0)m6.encode($.customerDataAction,Q.uint32(666).fork()).join();if($.subscriptionsSyncV2Action!==void 0)nY.encode($.subscriptionsSyncV2Action,Q.uint32(674).fork()).join();if($.threadPinAction!==void 0)mY.encode($.threadPinAction,Q.uint32(682).fork()).join();if($.autoOrganizeBusinessChatSetting!==void 0)W6.encode($.autoOrganizeBusinessChatSetting,Q.uint32(690).fork()).join();if($.bizAiSettingsNudgeAction!==void 0)I6.encode($.bizAiSettingsNudgeAction,Q.uint32(698).fork()).join();if($.coexV2VersionAction!==void 0)j6.encode($.coexV2VersionAction,Q.uint32(706).fork()).join();if($.wasaRootSecretAction!==void 0)eY.encode($.wasaRootSecretAction,Q.uint32(714).fork()).join();if($.bubbleLockMessageAction!==void 0)v6.encode($.bubbleLockMessageAction,Q.uint32(722).fork()).join();if($.labelSublistAction!==void 0)XY.encode($.labelSublistAction,Q.uint32(730).fork()).join();if($.deviceCapabilitiesV2!==void 0)g0.encode($.deviceCapabilitiesV2,Q.uint32(738).fork()).join();if($.ctwaMessageReceivedAction!==void 0)d6.encode($.ctwaMessageReceivedAction,Q.uint32(746).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??yx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.timestamp=Z.int64Value();continue}case 2:{if(J!==18)break;K.starAction=uY.decode(Z,Z.uint32(),K.starAction);continue}case 3:{if(J!==26)break;K.contactAction=c6.decode(Z,Z.uint32(),K.contactAction);continue}case 4:{if(J!==34)break;K.muteAction=PY.decode(Z,Z.uint32(),K.muteAction);continue}case 5:{if(J!==42)break;K.pinAction=EY.decode(Z,Z.uint32(),K.pinAction);continue}case 7:{if(J!==58)break;K.pushNameSetting=fY.decode(Z,Z.uint32(),K.pushNameSetting);continue}case 8:{if(J!==66)break;K.quickReplyAction=_Y.decode(Z,Z.uint32(),K.quickReplyAction);continue}case 11:{if(J!==90)break;K.recentEmojiWeightsAction=hY.decode(Z,Z.uint32(),K.recentEmojiWeightsAction);continue}case 14:{if(J!==114)break;K.labelEditAction=KY.decode(Z,Z.uint32(),K.labelEditAction);continue}case 15:{if(J!==122)break;K.labelAssociationAction=JY.decode(Z,Z.uint32(),K.labelAssociationAction);continue}case 16:{if(J!==130)break;K.localeSetting=VY.decode(Z,Z.uint32(),K.localeSetting);continue}case 17:{if(J!==138)break;K.archiveChatAction=M6.decode(Z,Z.uint32(),K.archiveChatAction);continue}case 18:{if(J!==146)break;K.deleteMessageForMeAction=t6.decode(Z,Z.uint32(),K.deleteMessageForMeAction);continue}case 19:{if(J!==154)break;K.keyExpiration=ZY.decode(Z,Z.uint32(),K.keyExpiration);continue}case 20:{if(J!==162)break;K.markChatAsReadAction=GY.decode(Z,Z.uint32(),K.markChatAsReadAction);continue}case 21:{if(J!==170)break;K.clearChatAction=w6.decode(Z,Z.uint32(),K.clearChatAction);continue}case 22:{if(J!==178)break;K.deleteChatAction=g6.decode(Z,Z.uint32(),K.deleteChatAction);continue}case 23:{if(J!==186)break;K.unarchiveChatsSetting=tY.decode(Z,Z.uint32(),K.unarchiveChatsSetting);continue}case 24:{if(J!==194)break;K.primaryFeature=WY.decode(Z,Z.uint32(),K.primaryFeature);continue}case 26:{if(J!==210)break;K.androidUnsupportedActions=E6.decode(Z,Z.uint32(),K.androidUnsupportedActions);continue}case 27:{if(J!==218)break;K.agentAction=O6.decode(Z,Z.uint32(),K.agentAction);continue}case 28:{if(J!==226)break;K.subscriptionAction=dY.decode(Z,Z.uint32(),K.subscriptionAction);continue}case 29:{if(J!==234)break;K.userStatusMuteAction=aY.decode(Z,Z.uint32(),K.userStatusMuteAction);continue}case 30:{if(J!==242)break;K.timeFormatAction=gY.decode(Z,Z.uint32(),K.timeFormatAction);continue}case 31:{if(J!==250)break;K.nuxAction=BY.decode(Z,Z.uint32(),K.nuxAction);continue}case 32:{if(J!==258)break;K.primaryVersionAction=SY.decode(Z,Z.uint32(),K.primaryVersionAction);continue}case 33:{if(J!==266)break;K.stickerAction=u$.decode(Z,Z.uint32(),K.stickerAction);continue}case 34:{if(J!==274)break;K.removeRecentStickerAction=lY.decode(Z,Z.uint32(),K.removeRecentStickerAction);continue}case 35:{if(J!==282)break;K.chatAssignment=p6.decode(Z,Z.uint32(),K.chatAssignment);continue}case 36:{if(J!==290)break;K.chatAssignmentOpenedStatus=u6.decode(Z,Z.uint32(),K.chatAssignmentOpenedStatus);continue}case 37:{if(J!==298)break;K.pnForLidChatAction=MY.decode(Z,Z.uint32(),K.pnForLidChatAction);continue}case 38:{if(J!==306)break;K.marketingMessageAction=UY.decode(Z,Z.uint32(),K.marketingMessageAction);continue}case 39:{if(J!==314)break;K.marketingMessageBroadcastAction=CY.decode(Z,Z.uint32(),K.marketingMessageBroadcastAction);continue}case 40:{if(J!==322)break;K.externalWebBetaAction=s6.decode(Z,Z.uint32(),K.externalWebBetaAction);continue}case 41:{if(J!==330)break;K.privacySettingRelayAllCalls=yY.decode(Z,Z.uint32(),K.privacySettingRelayAllCalls);continue}case 42:{if(J!==338)break;K.callLogAction=l6.decode(Z,Z.uint32(),K.callLogAction);continue}case 43:{if(J!==346)break;K.ugcBot=rY.decode(Z,Z.uint32(),K.ugcBot);continue}case 44:{if(J!==354)break;K.statusPrivacy=jY.decode(Z,Z.uint32(),K.statusPrivacy);continue}case 45:{if(J!==362)break;K.botWelcomeRequestAction=T6.decode(Z,Z.uint32(),K.botWelcomeRequestAction);continue}case 46:{if(J!==370)break;K.deleteIndividualCallLog=r6.decode(Z,Z.uint32(),K.deleteIndividualCallLog);continue}case 47:{if(J!==378)break;K.labelReorderingAction=qY.decode(Z,Z.uint32(),K.labelReorderingAction);continue}case 48:{if(J!==386)break;K.paymentInfoAction=OY.decode(Z,Z.uint32(),K.paymentInfoAction);continue}case 49:{if(J!==394)break;K.customPaymentMethodsAction=i6.decode(Z,Z.uint32(),K.customPaymentMethodsAction);continue}case 50:{if(J!==402)break;K.lockChatAction=zY.decode(Z,Z.uint32(),K.lockChatAction);continue}case 51:{if(J!==410)break;K.chatLockSettings=z$.decode(Z,Z.uint32(),K.chatLockSettings);continue}case 52:{if(J!==418)break;K.wamoUserIdentifierAction=ZV.decode(Z,Z.uint32(),K.wamoUserIdentifierAction);continue}case 53:{if(J!==426)break;K.privacySettingDisableLinkPreviewsAction=TY.decode(Z,Z.uint32(),K.privacySettingDisableLinkPreviewsAction);continue}case 54:{if(J!==434)break;K.deviceCapabilities=g0.decode(Z,Z.uint32(),K.deviceCapabilities);continue}case 55:{if(J!==442)break;K.noteEditAction=kY.decode(Z,Z.uint32(),K.noteEditAction);continue}case 56:{if(J!==450)break;K.favoritesAction=e6.decode(Z,Z.uint32(),K.favoritesAction);continue}case 57:{if(J!==458)break;K.merchantPaymentPartnerAction=DY.decode(Z,Z.uint32(),K.merchantPaymentPartnerAction);continue}case 58:{if(J!==466)break;K.waffleAccountLinkStateAction=QV.decode(Z,Z.uint32(),K.waffleAccountLinkStateAction);continue}case 59:{if(J!==474)break;K.usernameChatStartMode=sY.decode(Z,Z.uint32(),K.usernameChatStartMode);continue}case 60:{if(J!==482)break;K.notificationActivitySettingAction=NY.decode(Z,Z.uint32(),K.notificationActivitySettingAction);continue}case 61:{if(J!==490)break;K.lidContactAction=YY.decode(Z,Z.uint32(),K.lidContactAction);continue}case 62:{if(J!==498)break;K.ctwaPerCustomerDataSharingAction=n6.decode(Z,Z.uint32(),K.ctwaPerCustomerDataSharingAction);continue}case 63:{if(J!==506)break;K.paymentTosAction=AY.decode(Z,Z.uint32(),K.paymentTosAction);continue}case 64:{if(J!==514)break;K.privacySettingChannelsPersonalisedRecommendationAction=IY.decode(Z,Z.uint32(),K.privacySettingChannelsPersonalisedRecommendationAction);continue}case 66:{if(J!==530)break;K.detectedOutcomesStatusAction=a6.decode(Z,Z.uint32(),K.detectedOutcomesStatusAction);continue}case 68:{if(J!==546)break;K.maibaAiFeaturesControlAction=HY.decode(Z,Z.uint32(),K.maibaAiFeaturesControlAction);continue}case 69:{if(J!==554)break;K.businessBroadcastListAction=h6.decode(Z,Z.uint32(),K.businessBroadcastListAction);continue}case 70:{if(J!==562)break;K.musicUserIdAction=FY.decode(Z,Z.uint32(),K.musicUserIdAction);continue}case 71:{if(J!==570)break;K.statusPostOptInNotificationPreferencesAction=wY.decode(Z,Z.uint32(),K.statusPostOptInNotificationPreferencesAction);continue}case 72:{if(J!==578)break;K.avatarUpdatedAction=S6.decode(Z,Z.uint32(),K.avatarUpdatedAction);continue}case 74:{if(J!==594)break;K.privateProcessingSettingAction=vY.decode(Z,Z.uint32(),K.privateProcessingSettingAction);continue}case 75:{if(J!==602)break;K.newsletterSavedInterestsAction=xY.decode(Z,Z.uint32(),K.newsletterSavedInterestsAction);continue}case 76:{if(J!==610)break;K.aiThreadRenameAction=A6.decode(Z,Z.uint32(),K.aiThreadRenameAction);continue}case 77:{if(J!==618)break;K.interactiveMessageAction=QY.decode(Z,Z.uint32(),K.interactiveMessageAction);continue}case 78:{if(J!==626)break;K.settingsSyncAction=pY.decode(Z,Z.uint32(),K.settingsSyncAction);continue}case 79:{if(J!==634)break;K.outContactAction=RY.decode(Z,Z.uint32(),K.outContactAction);continue}case 80:{if(J!==642)break;K.nctSaltSyncAction=LY.decode(Z,Z.uint32(),K.nctSaltSyncAction);continue}case 81:{if(J!==650)break;K.businessBroadcastCampaignAction=f6.decode(Z,Z.uint32(),K.businessBroadcastCampaignAction);continue}case 82:{if(J!==658)break;K.businessBroadcastInsightsAction=_6.decode(Z,Z.uint32(),K.businessBroadcastInsightsAction);continue}case 83:{if(J!==666)break;K.customerDataAction=m6.decode(Z,Z.uint32(),K.customerDataAction);continue}case 84:{if(J!==674)break;K.subscriptionsSyncV2Action=nY.decode(Z,Z.uint32(),K.subscriptionsSyncV2Action);continue}case 85:{if(J!==682)break;K.threadPinAction=mY.decode(Z,Z.uint32(),K.threadPinAction);continue}case 86:{if(J!==690)break;K.autoOrganizeBusinessChatSetting=W6.decode(Z,Z.uint32(),K.autoOrganizeBusinessChatSetting);continue}case 87:{if(J!==698)break;K.bizAiSettingsNudgeAction=I6.decode(Z,Z.uint32(),K.bizAiSettingsNudgeAction);continue}case 88:{if(J!==706)break;K.coexV2VersionAction=j6.decode(Z,Z.uint32(),K.coexV2VersionAction);continue}case 89:{if(J!==714)break;K.wasaRootSecretAction=eY.decode(Z,Z.uint32(),K.wasaRootSecretAction);continue}case 90:{if(J!==722)break;K.bubbleLockMessageAction=v6.decode(Z,Z.uint32(),K.bubbleLockMessageAction);continue}case 91:{if(J!==730)break;K.labelSublistAction=XY.decode(Z,Z.uint32(),K.labelSublistAction);continue}case 92:{if(J!==738)break;K.deviceCapabilitiesV2=g0.decode(Z,Z.uint32(),K.deviceCapabilitiesV2);continue}case 93:{if(J!==746)break;K.ctwaMessageReceivedAction=d6.decode(Z,Z.uint32(),K.ctwaMessageReceivedAction);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return m$.fromPartial($??{})},fromPartial($){let Q=yx();return Q.timestamp=$.timestamp??void 0,Q.starAction=$.starAction!==void 0&&$.starAction!==null?uY.fromPartial($.starAction):void 0,Q.contactAction=$.contactAction!==void 0&&$.contactAction!==null?c6.fromPartial($.contactAction):void 0,Q.muteAction=$.muteAction!==void 0&&$.muteAction!==null?PY.fromPartial($.muteAction):void 0,Q.pinAction=$.pinAction!==void 0&&$.pinAction!==null?EY.fromPartial($.pinAction):void 0,Q.pushNameSetting=$.pushNameSetting!==void 0&&$.pushNameSetting!==null?fY.fromPartial($.pushNameSetting):void 0,Q.quickReplyAction=$.quickReplyAction!==void 0&&$.quickReplyAction!==null?_Y.fromPartial($.quickReplyAction):void 0,Q.recentEmojiWeightsAction=$.recentEmojiWeightsAction!==void 0&&$.recentEmojiWeightsAction!==null?hY.fromPartial($.recentEmojiWeightsAction):void 0,Q.labelEditAction=$.labelEditAction!==void 0&&$.labelEditAction!==null?KY.fromPartial($.labelEditAction):void 0,Q.labelAssociationAction=$.labelAssociationAction!==void 0&&$.labelAssociationAction!==null?JY.fromPartial($.labelAssociationAction):void 0,Q.localeSetting=$.localeSetting!==void 0&&$.localeSetting!==null?VY.fromPartial($.localeSetting):void 0,Q.archiveChatAction=$.archiveChatAction!==void 0&&$.archiveChatAction!==null?M6.fromPartial($.archiveChatAction):void 0,Q.deleteMessageForMeAction=$.deleteMessageForMeAction!==void 0&&$.deleteMessageForMeAction!==null?t6.fromPartial($.deleteMessageForMeAction):void 0,Q.keyExpiration=$.keyExpiration!==void 0&&$.keyExpiration!==null?ZY.fromPartial($.keyExpiration):void 0,Q.markChatAsReadAction=$.markChatAsReadAction!==void 0&&$.markChatAsReadAction!==null?GY.fromPartial($.markChatAsReadAction):void 0,Q.clearChatAction=$.clearChatAction!==void 0&&$.clearChatAction!==null?w6.fromPartial($.clearChatAction):void 0,Q.deleteChatAction=$.deleteChatAction!==void 0&&$.deleteChatAction!==null?g6.fromPartial($.deleteChatAction):void 0,Q.unarchiveChatsSetting=$.unarchiveChatsSetting!==void 0&&$.unarchiveChatsSetting!==null?tY.fromPartial($.unarchiveChatsSetting):void 0,Q.primaryFeature=$.primaryFeature!==void 0&&$.primaryFeature!==null?WY.fromPartial($.primaryFeature):void 0,Q.androidUnsupportedActions=$.androidUnsupportedActions!==void 0&&$.androidUnsupportedActions!==null?E6.fromPartial($.androidUnsupportedActions):void 0,Q.agentAction=$.agentAction!==void 0&&$.agentAction!==null?O6.fromPartial($.agentAction):void 0,Q.subscriptionAction=$.subscriptionAction!==void 0&&$.subscriptionAction!==null?dY.fromPartial($.subscriptionAction):void 0,Q.userStatusMuteAction=$.userStatusMuteAction!==void 0&&$.userStatusMuteAction!==null?aY.fromPartial($.userStatusMuteAction):void 0,Q.timeFormatAction=$.timeFormatAction!==void 0&&$.timeFormatAction!==null?gY.fromPartial($.timeFormatAction):void 0,Q.nuxAction=$.nuxAction!==void 0&&$.nuxAction!==null?BY.fromPartial($.nuxAction):void 0,Q.primaryVersionAction=$.primaryVersionAction!==void 0&&$.primaryVersionAction!==null?SY.fromPartial($.primaryVersionAction):void 0,Q.stickerAction=$.stickerAction!==void 0&&$.stickerAction!==null?u$.fromPartial($.stickerAction):void 0,Q.removeRecentStickerAction=$.removeRecentStickerAction!==void 0&&$.removeRecentStickerAction!==null?lY.fromPartial($.removeRecentStickerAction):void 0,Q.chatAssignment=$.chatAssignment!==void 0&&$.chatAssignment!==null?p6.fromPartial($.chatAssignment):void 0,Q.chatAssignmentOpenedStatus=$.chatAssignmentOpenedStatus!==void 0&&$.chatAssignmentOpenedStatus!==null?u6.fromPartial($.chatAssignmentOpenedStatus):void 0,Q.pnForLidChatAction=$.pnForLidChatAction!==void 0&&$.pnForLidChatAction!==null?MY.fromPartial($.pnForLidChatAction):void 0,Q.marketingMessageAction=$.marketingMessageAction!==void 0&&$.marketingMessageAction!==null?UY.fromPartial($.marketingMessageAction):void 0,Q.marketingMessageBroadcastAction=$.marketingMessageBroadcastAction!==void 0&&$.marketingMessageBroadcastAction!==null?CY.fromPartial($.marketingMessageBroadcastAction):void 0,Q.externalWebBetaAction=$.externalWebBetaAction!==void 0&&$.externalWebBetaAction!==null?s6.fromPartial($.externalWebBetaAction):void 0,Q.privacySettingRelayAllCalls=$.privacySettingRelayAllCalls!==void 0&&$.privacySettingRelayAllCalls!==null?yY.fromPartial($.privacySettingRelayAllCalls):void 0,Q.callLogAction=$.callLogAction!==void 0&&$.callLogAction!==null?l6.fromPartial($.callLogAction):void 0,Q.ugcBot=$.ugcBot!==void 0&&$.ugcBot!==null?rY.fromPartial($.ugcBot):void 0,Q.statusPrivacy=$.statusPrivacy!==void 0&&$.statusPrivacy!==null?jY.fromPartial($.statusPrivacy):void 0,Q.botWelcomeRequestAction=$.botWelcomeRequestAction!==void 0&&$.botWelcomeRequestAction!==null?T6.fromPartial($.botWelcomeRequestAction):void 0,Q.deleteIndividualCallLog=$.deleteIndividualCallLog!==void 0&&$.deleteIndividualCallLog!==null?r6.fromPartial($.deleteIndividualCallLog):void 0,Q.labelReorderingAction=$.labelReorderingAction!==void 0&&$.labelReorderingAction!==null?qY.fromPartial($.labelReorderingAction):void 0,Q.paymentInfoAction=$.paymentInfoAction!==void 0&&$.paymentInfoAction!==null?OY.fromPartial($.paymentInfoAction):void 0,Q.customPaymentMethodsAction=$.customPaymentMethodsAction!==void 0&&$.customPaymentMethodsAction!==null?i6.fromPartial($.customPaymentMethodsAction):void 0,Q.lockChatAction=$.lockChatAction!==void 0&&$.lockChatAction!==null?zY.fromPartial($.lockChatAction):void 0,Q.chatLockSettings=$.chatLockSettings!==void 0&&$.chatLockSettings!==null?z$.fromPartial($.chatLockSettings):void 0,Q.wamoUserIdentifierAction=$.wamoUserIdentifierAction!==void 0&&$.wamoUserIdentifierAction!==null?ZV.fromPartial($.wamoUserIdentifierAction):void 0,Q.privacySettingDisableLinkPreviewsAction=$.privacySettingDisableLinkPreviewsAction!==void 0&&$.privacySettingDisableLinkPreviewsAction!==null?TY.fromPartial($.privacySettingDisableLinkPreviewsAction):void 0,Q.deviceCapabilities=$.deviceCapabilities!==void 0&&$.deviceCapabilities!==null?g0.fromPartial($.deviceCapabilities):void 0,Q.noteEditAction=$.noteEditAction!==void 0&&$.noteEditAction!==null?kY.fromPartial($.noteEditAction):void 0,Q.favoritesAction=$.favoritesAction!==void 0&&$.favoritesAction!==null?e6.fromPartial($.favoritesAction):void 0,Q.merchantPaymentPartnerAction=$.merchantPaymentPartnerAction!==void 0&&$.merchantPaymentPartnerAction!==null?DY.fromPartial($.merchantPaymentPartnerAction):void 0,Q.waffleAccountLinkStateAction=$.waffleAccountLinkStateAction!==void 0&&$.waffleAccountLinkStateAction!==null?QV.fromPartial($.waffleAccountLinkStateAction):void 0,Q.usernameChatStartMode=$.usernameChatStartMode!==void 0&&$.usernameChatStartMode!==null?sY.fromPartial($.usernameChatStartMode):void 0,Q.notificationActivitySettingAction=$.notificationActivitySettingAction!==void 0&&$.notificationActivitySettingAction!==null?NY.fromPartial($.notificationActivitySettingAction):void 0,Q.lidContactAction=$.lidContactAction!==void 0&&$.lidContactAction!==null?YY.fromPartial($.lidContactAction):void 0,Q.ctwaPerCustomerDataSharingAction=$.ctwaPerCustomerDataSharingAction!==void 0&&$.ctwaPerCustomerDataSharingAction!==null?n6.fromPartial($.ctwaPerCustomerDataSharingAction):void 0,Q.paymentTosAction=$.paymentTosAction!==void 0&&$.paymentTosAction!==null?AY.fromPartial($.paymentTosAction):void 0,Q.privacySettingChannelsPersonalisedRecommendationAction=$.privacySettingChannelsPersonalisedRecommendationAction!==void 0&&$.privacySettingChannelsPersonalisedRecommendationAction!==null?IY.fromPartial($.privacySettingChannelsPersonalisedRecommendationAction):void 0,Q.detectedOutcomesStatusAction=$.detectedOutcomesStatusAction!==void 0&&$.detectedOutcomesStatusAction!==null?a6.fromPartial($.detectedOutcomesStatusAction):void 0,Q.maibaAiFeaturesControlAction=$.maibaAiFeaturesControlAction!==void 0&&$.maibaAiFeaturesControlAction!==null?HY.fromPartial($.maibaAiFeaturesControlAction):void 0,Q.businessBroadcastListAction=$.businessBroadcastListAction!==void 0&&$.businessBroadcastListAction!==null?h6.fromPartial($.businessBroadcastListAction):void 0,Q.musicUserIdAction=$.musicUserIdAction!==void 0&&$.musicUserIdAction!==null?FY.fromPartial($.musicUserIdAction):void 0,Q.statusPostOptInNotificationPreferencesAction=$.statusPostOptInNotificationPreferencesAction!==void 0&&$.statusPostOptInNotificationPreferencesAction!==null?wY.fromPartial($.statusPostOptInNotificationPreferencesAction):void 0,Q.avatarUpdatedAction=$.avatarUpdatedAction!==void 0&&$.avatarUpdatedAction!==null?S6.fromPartial($.avatarUpdatedAction):void 0,Q.privateProcessingSettingAction=$.privateProcessingSettingAction!==void 0&&$.privateProcessingSettingAction!==null?vY.fromPartial($.privateProcessingSettingAction):void 0,Q.newsletterSavedInterestsAction=$.newsletterSavedInterestsAction!==void 0&&$.newsletterSavedInterestsAction!==null?xY.fromPartial($.newsletterSavedInterestsAction):void 0,Q.aiThreadRenameAction=$.aiThreadRenameAction!==void 0&&$.aiThreadRenameAction!==null?A6.fromPartial($.aiThreadRenameAction):void 0,Q.interactiveMessageAction=$.interactiveMessageAction!==void 0&&$.interactiveMessageAction!==null?QY.fromPartial($.interactiveMessageAction):void 0,Q.settingsSyncAction=$.settingsSyncAction!==void 0&&$.settingsSyncAction!==null?pY.fromPartial($.settingsSyncAction):void 0,Q.outContactAction=$.outContactAction!==void 0&&$.outContactAction!==null?RY.fromPartial($.outContactAction):void 0,Q.nctSaltSyncAction=$.nctSaltSyncAction!==void 0&&$.nctSaltSyncAction!==null?LY.fromPartial($.nctSaltSyncAction):void 0,Q.businessBroadcastCampaignAction=$.businessBroadcastCampaignAction!==void 0&&$.businessBroadcastCampaignAction!==null?f6.fromPartial($.businessBroadcastCampaignAction):void 0,Q.businessBroadcastInsightsAction=$.businessBroadcastInsightsAction!==void 0&&$.businessBroadcastInsightsAction!==null?_6.fromPartial($.businessBroadcastInsightsAction):void 0,Q.customerDataAction=$.customerDataAction!==void 0&&$.customerDataAction!==null?m6.fromPartial($.customerDataAction):void 0,Q.subscriptionsSyncV2Action=$.subscriptionsSyncV2Action!==void 0&&$.subscriptionsSyncV2Action!==null?nY.fromPartial($.subscriptionsSyncV2Action):void 0,Q.threadPinAction=$.threadPinAction!==void 0&&$.threadPinAction!==null?mY.fromPartial($.threadPinAction):void 0,Q.autoOrganizeBusinessChatSetting=$.autoOrganizeBusinessChatSetting!==void 0&&$.autoOrganizeBusinessChatSetting!==null?W6.fromPartial($.autoOrganizeBusinessChatSetting):void 0,Q.bizAiSettingsNudgeAction=$.bizAiSettingsNudgeAction!==void 0&&$.bizAiSettingsNudgeAction!==null?I6.fromPartial($.bizAiSettingsNudgeAction):void 0,Q.coexV2VersionAction=$.coexV2VersionAction!==void 0&&$.coexV2VersionAction!==null?j6.fromPartial($.coexV2VersionAction):void 0,Q.wasaRootSecretAction=$.wasaRootSecretAction!==void 0&&$.wasaRootSecretAction!==null?eY.fromPartial($.wasaRootSecretAction):void 0,Q.bubbleLockMessageAction=$.bubbleLockMessageAction!==void 0&&$.bubbleLockMessageAction!==null?v6.fromPartial($.bubbleLockMessageAction):void 0,Q.labelSublistAction=$.labelSublistAction!==void 0&&$.labelSublistAction!==null?XY.fromPartial($.labelSublistAction):void 0,Q.deviceCapabilitiesV2=$.deviceCapabilitiesV2!==void 0&&$.deviceCapabilitiesV2!==null?g0.fromPartial($.deviceCapabilitiesV2):void 0,Q.ctwaMessageReceivedAction=$.ctwaMessageReceivedAction!==void 0&&$.ctwaMessageReceivedAction!==null?d6.fromPartial($.ctwaMessageReceivedAction):void 0,Q}};function vx(){return{}}var O6={encode($,Q=new z){if($.name!==void 0)Q.uint32(10).string($.name);if($.deviceId!==void 0)Q.uint32(16).int32($.deviceId);if($.isDeleted!==void 0)Q.uint32(24).bool($.isDeleted);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??vx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.name=Z.string();continue}case 2:{if(J!==16)break;K.deviceId=Z.int32();continue}case 3:{if(J!==24)break;K.isDeleted=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return O6.fromPartial($??{})},fromPartial($){let Q=vx();return Q.name=$.name??void 0,Q.deviceId=$.deviceId??void 0,Q.isDeleted=$.isDeleted??void 0,Q}};function fx(){return{}}var A6={encode($,Q=new z){if($.newTitle!==void 0)Q.uint32(10).string($.newTitle);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??fx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.newTitle=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return A6.fromPartial($??{})},fromPartial($){let Q=fx();return Q.newTitle=$.newTitle??void 0,Q}};function _x(){return{}}var E6={encode($,Q=new z){if($.allowed!==void 0)Q.uint32(8).bool($.allowed);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??_x();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.allowed=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return E6.fromPartial($??{})},fromPartial($){let Q=_x();return Q.allowed=$.allowed??void 0,Q}};function hx(){return{}}var M6={encode($,Q=new z){if($.archived!==void 0)Q.uint32(8).bool($.archived);if($.messageRange!==void 0)G0.encode($.messageRange,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??hx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.archived=Z.bool();continue}case 2:{if(J!==18)break;K.messageRange=G0.decode(Z,Z.uint32(),K.messageRange);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return M6.fromPartial($??{})},fromPartial($){let Q=hx();return Q.archived=$.archived??void 0,Q.messageRange=$.messageRange!==void 0&&$.messageRange!==null?G0.fromPartial($.messageRange):void 0,Q}};function lx(){return{}}var W6={encode($,Q=new z){if($.autoOrganize!==void 0)Q.uint32(8).bool($.autoOrganize);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??lx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.autoOrganize=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return W6.fromPartial($??{})},fromPartial($){let Q=lx();return Q.autoOrganize=$.autoOrganize??void 0,Q}};function px(){return{}}var S6={encode($,Q=new z){if($.eventType!==void 0)Q.uint32(8).int32($.eventType);if($.recentAvatarStickers!==void 0&&$.recentAvatarStickers.length!==0)for(let q of $.recentAvatarStickers)u$.encode(q,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??px();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.eventType=Z.int32();continue}case 2:{if(J!==18)break;if(K.recentAvatarStickers===void 0)K.recentAvatarStickers=[];let V=u$.decode(Z,Z.uint32());if(V!==void 0)K.recentAvatarStickers.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return S6.fromPartial($??{})},fromPartial($){let Q=px();return Q.eventType=$.eventType??void 0,Q.recentAvatarStickers=$.recentAvatarStickers?.map((q)=>u$.fromPartial(q))||void 0,Q}};function ux(){return{}}var I6={encode($,Q=new z){if($.category!==void 0)Q.uint32(8).int32($.category);if($.version!==void 0)Q.uint32(16).int64($.version);if($.updatedAtMs!==void 0)Q.uint32(24).int64($.updatedAtMs);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ux();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.category=Z.int32();continue}case 2:{if(J!==16)break;K.version=Z.int64Value();continue}case 3:{if(J!==24)break;K.updatedAtMs=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return I6.fromPartial($??{})},fromPartial($){let Q=ux();return Q.category=$.category??void 0,Q.version=$.version??void 0,Q.updatedAtMs=$.updatedAtMs??void 0,Q}};function wx(){return{}}var T6={encode($,Q=new z){if($.isSent!==void 0)Q.uint32(8).bool($.isSent);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??wx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isSent=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return T6.fromPartial($??{})},fromPartial($){let Q=wx();return Q.isSent=$.isSent??void 0,Q}};function jx(){return{}}var y6={encode($,Q=new z){if($.lidJid!==void 0)Q.uint32(10).string($.lidJid);if($.pnJid!==void 0)Q.uint32(18).string($.pnJid);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??jx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.lidJid=Z.string();continue}case 2:{if(J!==18)break;K.pnJid=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return y6.fromPartial($??{})},fromPartial($){let Q=jx();return Q.lidJid=$.lidJid??void 0,Q.pnJid=$.pnJid??void 0,Q}};function cx(){return{}}var v6={encode($,Q=new z){if($.locked!==void 0)Q.uint32(8).bool($.locked);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??cx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.locked=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return v6.fromPartial($??{})},fromPartial($){let Q=cx();return Q.locked=$.locked??void 0,Q}};function dx(){return{}}var OE={encode($,Q=new z){if($.deleted!==void 0)Q.uint32(8).bool($.deleted);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??dx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.deleted=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return OE.fromPartial($??{})},fromPartial($){let Q=dx();return Q.deleted=$.deleted??void 0,Q}};function nx(){return{}}var f6={encode($,Q=new z){if($.deviceId!==void 0)Q.uint32(8).int32($.deviceId);if($.adId!==void 0)Q.uint32(18).string($.adId);if($.name!==void 0)Q.uint32(26).string($.name);if($.msgId!==void 0)Q.uint32(34).string($.msgId);if($.broadcastJid!==void 0)Q.uint32(42).string($.broadcastJid);if($.reservedQuota!==void 0)Q.uint32(48).int32($.reservedQuota);if($.scheduledTimestamp!==void 0)Q.uint32(56).int64($.scheduledTimestamp);if($.createTimestamp!==void 0)Q.uint32(64).int64($.createTimestamp);if($.status!==void 0)Q.uint32(72).int32($.status);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??nx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.deviceId=Z.int32();continue}case 2:{if(J!==18)break;K.adId=Z.string();continue}case 3:{if(J!==26)break;K.name=Z.string();continue}case 4:{if(J!==34)break;K.msgId=Z.string();continue}case 5:{if(J!==42)break;K.broadcastJid=Z.string();continue}case 6:{if(J!==48)break;K.reservedQuota=Z.int32();continue}case 7:{if(J!==56)break;K.scheduledTimestamp=Z.int64Value();continue}case 8:{if(J!==64)break;K.createTimestamp=Z.int64Value();continue}case 9:{if(J!==72)break;K.status=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return f6.fromPartial($??{})},fromPartial($){let Q=nx();return Q.deviceId=$.deviceId??void 0,Q.adId=$.adId??void 0,Q.name=$.name??void 0,Q.msgId=$.msgId??void 0,Q.broadcastJid=$.broadcastJid??void 0,Q.reservedQuota=$.reservedQuota??void 0,Q.scheduledTimestamp=$.scheduledTimestamp??void 0,Q.createTimestamp=$.createTimestamp??void 0,Q.status=$.status??void 0,Q}};function bx(){return{}}var _6={encode($,Q=new z){if($.recipientCount!==void 0)Q.uint32(8).int32($.recipientCount);if($.deliveredCount!==void 0)Q.uint32(16).int32($.deliveredCount);if($.readCount!==void 0)Q.uint32(24).int32($.readCount);if($.repliedCount!==void 0)Q.uint32(32).int32($.repliedCount);if($.quickReplyCount!==void 0)Q.uint32(40).int32($.quickReplyCount);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??bx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.recipientCount=Z.int32();continue}case 2:{if(J!==16)break;K.deliveredCount=Z.int32();continue}case 3:{if(J!==24)break;K.readCount=Z.int32();continue}case 4:{if(J!==32)break;K.repliedCount=Z.int32();continue}case 5:{if(J!==40)break;K.quickReplyCount=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return _6.fromPartial($??{})},fromPartial($){let Q=bx();return Q.recipientCount=$.recipientCount??void 0,Q.deliveredCount=$.deliveredCount??void 0,Q.readCount=$.readCount??void 0,Q.repliedCount=$.repliedCount??void 0,Q.quickReplyCount=$.quickReplyCount??void 0,Q}};function ox(){return{}}var h6={encode($,Q=new z){if($.deleted!==void 0)Q.uint32(8).bool($.deleted);if($.participants!==void 0&&$.participants.length!==0)for(let q of $.participants)y6.encode(q,Q.uint32(18).fork()).join();if($.listName!==void 0)Q.uint32(26).string($.listName);if($.labelIds!==void 0&&$.labelIds.length!==0)for(let q of $.labelIds)Q.uint32(34).string(q);if($.audienceExpression!==void 0)Q.uint32(42).string($.audienceExpression);if($.customAudienceFbid!==void 0)Q.uint32(50).string($.customAudienceFbid);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ox();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.deleted=Z.bool();continue}case 2:{if(J!==18)break;if(K.participants===void 0)K.participants=[];let V=y6.decode(Z,Z.uint32());if(V!==void 0)K.participants.push(V);continue}case 3:{if(J!==26)break;K.listName=Z.string();continue}case 4:{if(J!==34)break;if(K.labelIds===void 0)K.labelIds=[];let V=Z.string();if(V!==void 0)K.labelIds.push(V);continue}case 5:{if(J!==42)break;K.audienceExpression=Z.string();continue}case 6:{if(J!==50)break;K.customAudienceFbid=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return h6.fromPartial($??{})},fromPartial($){let Q=ox();return Q.deleted=$.deleted??void 0,Q.participants=$.participants?.map((q)=>y6.fromPartial(q))||void 0,Q.listName=$.listName??void 0,Q.labelIds=$.labelIds?.map((q)=>q)||void 0,Q.audienceExpression=$.audienceExpression??void 0,Q.customAudienceFbid=$.customAudienceFbid??void 0,Q}};function ix(){return{}}var l6={encode($,Q=new z){if($.callLogRecord!==void 0)V$.encode($.callLogRecord,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ix();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.callLogRecord=V$.decode(Z,Z.uint32(),K.callLogRecord);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return l6.fromPartial($??{})},fromPartial($){let Q=ix();return Q.callLogRecord=$.callLogRecord!==void 0&&$.callLogRecord!==null?V$.fromPartial($.callLogRecord):void 0,Q}};function mx(){return{}}var p6={encode($,Q=new z){if($.deviceAgentId!==void 0)Q.uint32(10).string($.deviceAgentId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??mx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.deviceAgentId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return p6.fromPartial($??{})},fromPartial($){let Q=mx();return Q.deviceAgentId=$.deviceAgentId??void 0,Q}};function gx(){return{}}var u6={encode($,Q=new z){if($.chatOpened!==void 0)Q.uint32(8).bool($.chatOpened);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??gx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.chatOpened=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return u6.fromPartial($??{})},fromPartial($){let Q=gx();return Q.chatOpened=$.chatOpened??void 0,Q}};function rx(){return{}}var w6={encode($,Q=new z){if($.messageRange!==void 0)G0.encode($.messageRange,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??rx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageRange=G0.decode(Z,Z.uint32(),K.messageRange);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return w6.fromPartial($??{})},fromPartial($){let Q=rx();return Q.messageRange=$.messageRange!==void 0&&$.messageRange!==null?G0.fromPartial($.messageRange):void 0,Q}};function tx(){return{}}var j6={encode($,Q=new z){if($.version!==void 0)Q.uint32(8).uint64($.version);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??tx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.version=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return j6.fromPartial($??{})},fromPartial($){let Q=tx();return Q.version=$.version??void 0,Q}};function ax(){return{}}var c6={encode($,Q=new z){if($.fullName!==void 0)Q.uint32(10).string($.fullName);if($.firstName!==void 0)Q.uint32(18).string($.firstName);if($.lidJid!==void 0)Q.uint32(26).string($.lidJid);if($.saveOnPrimaryAddressbook!==void 0)Q.uint32(32).bool($.saveOnPrimaryAddressbook);if($.pnJid!==void 0)Q.uint32(42).string($.pnJid);if($.username!==void 0)Q.uint32(50).string($.username);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ax();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.fullName=Z.string();continue}case 2:{if(J!==18)break;K.firstName=Z.string();continue}case 3:{if(J!==26)break;K.lidJid=Z.string();continue}case 4:{if(J!==32)break;K.saveOnPrimaryAddressbook=Z.bool();continue}case 5:{if(J!==42)break;K.pnJid=Z.string();continue}case 6:{if(J!==50)break;K.username=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return c6.fromPartial($??{})},fromPartial($){let Q=ax();return Q.fullName=$.fullName??void 0,Q.firstName=$.firstName??void 0,Q.lidJid=$.lidJid??void 0,Q.saveOnPrimaryAddressbook=$.saveOnPrimaryAddressbook??void 0,Q.pnJid=$.pnJid??void 0,Q.username=$.username??void 0,Q}};function sx(){return{}}var d6={encode($,Q=new z){if($.isCtwaMessageReceived!==void 0)Q.uint32(8).bool($.isCtwaMessageReceived);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??sx();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isCtwaMessageReceived=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return d6.fromPartial($??{})},fromPartial($){let Q=sx();return Q.isCtwaMessageReceived=$.isCtwaMessageReceived??void 0,Q}};function ex(){return{}}var n6={encode($,Q=new z){if($.isCtwaPerCustomerDataSharingEnabled!==void 0)Q.uint32(8).bool($.isCtwaPerCustomerDataSharingEnabled);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ex();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isCtwaPerCustomerDataSharingEnabled=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return n6.fromPartial($??{})},fromPartial($){let Q=ex();return Q.isCtwaPerCustomerDataSharingEnabled=$.isCtwaPerCustomerDataSharingEnabled??void 0,Q}};function $k(){return{}}var b6={encode($,Q=new z){if($.credentialId!==void 0)Q.uint32(10).string($.credentialId);if($.country!==void 0)Q.uint32(18).string($.country);if($.type!==void 0)Q.uint32(26).string($.type);if($.metadata!==void 0&&$.metadata.length!==0)for(let q of $.metadata)o6.encode(q,Q.uint32(34).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??$k();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.credentialId=Z.string();continue}case 2:{if(J!==18)break;K.country=Z.string();continue}case 3:{if(J!==26)break;K.type=Z.string();continue}case 4:{if(J!==34)break;if(K.metadata===void 0)K.metadata=[];let V=o6.decode(Z,Z.uint32());if(V!==void 0)K.metadata.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return b6.fromPartial($??{})},fromPartial($){let Q=$k();return Q.credentialId=$.credentialId??void 0,Q.country=$.country??void 0,Q.type=$.type??void 0,Q.metadata=$.metadata?.map((q)=>o6.fromPartial(q))||void 0,Q}};function Qk(){return{}}var o6={encode($,Q=new z){if($.key!==void 0)Q.uint32(10).string($.key);if($.value!==void 0)Q.uint32(18).string($.value);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Qk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=Z.string();continue}case 2:{if(J!==18)break;K.value=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return o6.fromPartial($??{})},fromPartial($){let Q=Qk();return Q.key=$.key??void 0,Q.value=$.value??void 0,Q}};function Zk(){return{}}var i6={encode($,Q=new z){if($.customPaymentMethods!==void 0&&$.customPaymentMethods.length!==0)for(let q of $.customPaymentMethods)b6.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Zk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.customPaymentMethods===void 0)K.customPaymentMethods=[];let V=b6.decode(Z,Z.uint32());if(V!==void 0)K.customPaymentMethods.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return i6.fromPartial($??{})},fromPartial($){let Q=Zk();return Q.customPaymentMethods=$.customPaymentMethods?.map((q)=>b6.fromPartial(q))||void 0,Q}};function Jk(){return{}}var m6={encode($,Q=new z){if($.chatJid!==void 0)Q.uint32(10).string($.chatJid);if($.contactType!==void 0)Q.uint32(16).int32($.contactType);if($.email!==void 0)Q.uint32(26).string($.email);if($.altPhoneNumbers!==void 0)Q.uint32(34).string($.altPhoneNumbers);if($.birthday!==void 0)Q.uint32(40).int64($.birthday);if($.address!==void 0)Q.uint32(50).string($.address);if($.acquisitionSource!==void 0)Q.uint32(56).int32($.acquisitionSource);if($.leadStage!==void 0)Q.uint32(64).int32($.leadStage);if($.lastOrder!==void 0)Q.uint32(72).int64($.lastOrder);if($.createdAt!==void 0)Q.uint32(80).int64($.createdAt);if($.modifiedAt!==void 0)Q.uint32(88).int64($.modifiedAt);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Jk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.chatJid=Z.string();continue}case 2:{if(J!==16)break;K.contactType=Z.int32();continue}case 3:{if(J!==26)break;K.email=Z.string();continue}case 4:{if(J!==34)break;K.altPhoneNumbers=Z.string();continue}case 5:{if(J!==40)break;K.birthday=Z.int64Value();continue}case 6:{if(J!==50)break;K.address=Z.string();continue}case 7:{if(J!==56)break;K.acquisitionSource=Z.int32();continue}case 8:{if(J!==64)break;K.leadStage=Z.int32();continue}case 9:{if(J!==72)break;K.lastOrder=Z.int64Value();continue}case 10:{if(J!==80)break;K.createdAt=Z.int64Value();continue}case 11:{if(J!==88)break;K.modifiedAt=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return m6.fromPartial($??{})},fromPartial($){let Q=Jk();return Q.chatJid=$.chatJid??void 0,Q.contactType=$.contactType??void 0,Q.email=$.email??void 0,Q.altPhoneNumbers=$.altPhoneNumbers??void 0,Q.birthday=$.birthday??void 0,Q.address=$.address??void 0,Q.acquisitionSource=$.acquisitionSource??void 0,Q.leadStage=$.leadStage??void 0,Q.lastOrder=$.lastOrder??void 0,Q.createdAt=$.createdAt??void 0,Q.modifiedAt=$.modifiedAt??void 0,Q}};function Kk(){return{}}var g6={encode($,Q=new z){if($.messageRange!==void 0)G0.encode($.messageRange,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Kk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageRange=G0.decode(Z,Z.uint32(),K.messageRange);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return g6.fromPartial($??{})},fromPartial($){let Q=Kk();return Q.messageRange=$.messageRange!==void 0&&$.messageRange!==null?G0.fromPartial($.messageRange):void 0,Q}};function qk(){return{}}var r6={encode($,Q=new z){if($.peerJid!==void 0)Q.uint32(10).string($.peerJid);if($.isIncoming!==void 0)Q.uint32(16).bool($.isIncoming);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??qk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.peerJid=Z.string();continue}case 2:{if(J!==16)break;K.isIncoming=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return r6.fromPartial($??{})},fromPartial($){let Q=qk();return Q.peerJid=$.peerJid??void 0,Q.isIncoming=$.isIncoming??void 0,Q}};function Xk(){return{}}var t6={encode($,Q=new z){if($.deleteMedia!==void 0)Q.uint32(8).bool($.deleteMedia);if($.messageTimestamp!==void 0)Q.uint32(16).int64($.messageTimestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Xk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.deleteMedia=Z.bool();continue}case 2:{if(J!==16)break;K.messageTimestamp=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return t6.fromPartial($??{})},fromPartial($){let Q=Xk();return Q.deleteMedia=$.deleteMedia??void 0,Q.messageTimestamp=$.messageTimestamp??void 0,Q}};function Yk(){return{}}var a6={encode($,Q=new z){if($.isEnabled!==void 0)Q.uint32(8).bool($.isEnabled);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Yk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isEnabled=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return a6.fromPartial($??{})},fromPartial($){let Q=Yk();return Q.isEnabled=$.isEnabled??void 0,Q}};function Vk(){return{}}var s6={encode($,Q=new z){if($.isOptIn!==void 0)Q.uint32(8).bool($.isOptIn);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Vk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isOptIn=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return s6.fromPartial($??{})},fromPartial($){let Q=Vk();return Q.isOptIn=$.isOptIn??void 0,Q}};function zk(){return{}}var e6={encode($,Q=new z){if($.favorites!==void 0&&$.favorites.length!==0)for(let q of $.favorites)$Y.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??zk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.favorites===void 0)K.favorites=[];let V=$Y.decode(Z,Z.uint32());if(V!==void 0)K.favorites.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return e6.fromPartial($??{})},fromPartial($){let Q=zk();return Q.favorites=$.favorites?.map((q)=>$Y.fromPartial(q))||void 0,Q}};function Hk(){return{}}var $Y={encode($,Q=new z){if($.id!==void 0)Q.uint32(10).string($.id);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Hk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.id=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return $Y.fromPartial($??{})},fromPartial($){let Q=Hk();return Q.id=$.id??void 0,Q}};function Gk(){return{}}var QY={encode($,Q=new z){if($.type!==void 0)Q.uint32(8).int32($.type);if($.agmId!==void 0)Q.uint32(18).string($.agmId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Gk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.type=Z.int32();continue}case 2:{if(J!==18)break;K.agmId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return QY.fromPartial($??{})},fromPartial($){let Q=Gk();return Q.type=$.type??void 0,Q.agmId=$.agmId??void 0,Q}};function Uk(){return{}}var ZY={encode($,Q=new z){if($.expiredKeyEpoch!==void 0)Q.uint32(8).int32($.expiredKeyEpoch);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Uk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.expiredKeyEpoch=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return ZY.fromPartial($??{})},fromPartial($){let Q=Uk();return Q.expiredKeyEpoch=$.expiredKeyEpoch??void 0,Q}};function Ck(){return{}}var JY={encode($,Q=new z){if($.labeled!==void 0)Q.uint32(8).bool($.labeled);if($.modelMetaData!==void 0)Q.uint32(18).string($.modelMetaData);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Ck();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.labeled=Z.bool();continue}case 2:{if(J!==18)break;K.modelMetaData=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return JY.fromPartial($??{})},fromPartial($){let Q=Ck();return Q.labeled=$.labeled??void 0,Q.modelMetaData=$.modelMetaData??void 0,Q}};function Dk(){return{}}var KY={encode($,Q=new z){if($.name!==void 0)Q.uint32(10).string($.name);if($.color!==void 0)Q.uint32(16).int32($.color);if($.predefinedId!==void 0)Q.uint32(24).int32($.predefinedId);if($.deleted!==void 0)Q.uint32(32).bool($.deleted);if($.orderIndex!==void 0)Q.uint32(40).int32($.orderIndex);if($.isActive!==void 0)Q.uint32(48).bool($.isActive);if($.type!==void 0)Q.uint32(56).int32($.type);if($.isImmutable!==void 0)Q.uint32(64).bool($.isImmutable);if($.muteEndTimeMs!==void 0)Q.uint32(72).int64($.muteEndTimeMs);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Dk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.name=Z.string();continue}case 2:{if(J!==16)break;K.color=Z.int32();continue}case 3:{if(J!==24)break;K.predefinedId=Z.int32();continue}case 4:{if(J!==32)break;K.deleted=Z.bool();continue}case 5:{if(J!==40)break;K.orderIndex=Z.int32();continue}case 6:{if(J!==48)break;K.isActive=Z.bool();continue}case 7:{if(J!==56)break;K.type=Z.int32();continue}case 8:{if(J!==64)break;K.isImmutable=Z.bool();continue}case 9:{if(J!==72)break;K.muteEndTimeMs=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return KY.fromPartial($??{})},fromPartial($){let Q=Dk();return Q.name=$.name??void 0,Q.color=$.color??void 0,Q.predefinedId=$.predefinedId??void 0,Q.deleted=$.deleted??void 0,Q.orderIndex=$.orderIndex??void 0,Q.isActive=$.isActive??void 0,Q.type=$.type??void 0,Q.isImmutable=$.isImmutable??void 0,Q.muteEndTimeMs=$.muteEndTimeMs??void 0,Q}};function Fk(){return{}}var qY={encode($,Q=new z){if($.sortedLabelIds!==void 0&&$.sortedLabelIds.length!==0)for(let q of $.sortedLabelIds)Q.uint32(8).int32(q);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Fk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J===8){if(K.sortedLabelIds===void 0)K.sortedLabelIds=[];K.sortedLabelIds.push(Z.int32());continue}if(J===10){if(K.sortedLabelIds===void 0)K.sortedLabelIds=[];let V=Z.uint32()+Z.pos;while(Z.pos<V)K.sortedLabelIds.push(Z.int32());continue}break}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return qY.fromPartial($??{})},fromPartial($){let Q=Fk();return Q.sortedLabelIds=$.sortedLabelIds?.map((q)=>q)||void 0,Q}};function Pk(){return{}}var XY={encode($,Q=new z){if($.subListId!==void 0)Q.uint32(8).int32($.subListId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Pk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.subListId=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return XY.fromPartial($??{})},fromPartial($){let Q=Pk();return Q.subListId=$.subListId??void 0,Q}};function Lk(){return{}}var YY={encode($,Q=new z){if($.fullName!==void 0)Q.uint32(10).string($.fullName);if($.firstName!==void 0)Q.uint32(18).string($.firstName);if($.username!==void 0)Q.uint32(26).string($.username);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Lk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.fullName=Z.string();continue}case 2:{if(J!==18)break;K.firstName=Z.string();continue}case 3:{if(J!==26)break;K.username=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return YY.fromPartial($??{})},fromPartial($){let Q=Lk();return Q.fullName=$.fullName??void 0,Q.firstName=$.firstName??void 0,Q.username=$.username??void 0,Q}};function xk(){return{}}var VY={encode($,Q=new z){if($.locale!==void 0)Q.uint32(10).string($.locale);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??xk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.locale=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return VY.fromPartial($??{})},fromPartial($){let Q=xk();return Q.locale=$.locale??void 0,Q}};function kk(){return{}}var zY={encode($,Q=new z){if($.locked!==void 0)Q.uint32(8).bool($.locked);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??kk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.locked=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return zY.fromPartial($??{})},fromPartial($){let Q=kk();return Q.locked=$.locked??void 0,Q}};function Nk(){return{}}var HY={encode($,Q=new z){if($.aiFeatureStatus!==void 0)Q.uint32(8).int32($.aiFeatureStatus);if($.aiReplyMode!==void 0)Q.uint32(16).int32($.aiReplyMode);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Nk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.aiFeatureStatus=Z.int32();continue}case 2:{if(J!==16)break;K.aiReplyMode=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return HY.fromPartial($??{})},fromPartial($){let Q=Nk();return Q.aiFeatureStatus=$.aiFeatureStatus??void 0,Q.aiReplyMode=$.aiReplyMode??void 0,Q}};function Bk(){return{}}var GY={encode($,Q=new z){if($.read!==void 0)Q.uint32(8).bool($.read);if($.messageRange!==void 0)G0.encode($.messageRange,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Bk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.read=Z.bool();continue}case 2:{if(J!==18)break;K.messageRange=G0.decode(Z,Z.uint32(),K.messageRange);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return GY.fromPartial($??{})},fromPartial($){let Q=Bk();return Q.read=$.read??void 0,Q.messageRange=$.messageRange!==void 0&&$.messageRange!==null?G0.fromPartial($.messageRange):void 0,Q}};function Rk(){return{}}var UY={encode($,Q=new z){if($.name!==void 0)Q.uint32(10).string($.name);if($.message!==void 0)Q.uint32(18).string($.message);if($.type!==void 0)Q.uint32(24).int32($.type);if($.createdAt!==void 0)Q.uint32(32).int64($.createdAt);if($.lastSentAt!==void 0)Q.uint32(40).int64($.lastSentAt);if($.isDeleted!==void 0)Q.uint32(48).bool($.isDeleted);if($.mediaId!==void 0)Q.uint32(58).string($.mediaId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Rk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.name=Z.string();continue}case 2:{if(J!==18)break;K.message=Z.string();continue}case 3:{if(J!==24)break;K.type=Z.int32();continue}case 4:{if(J!==32)break;K.createdAt=Z.int64Value();continue}case 5:{if(J!==40)break;K.lastSentAt=Z.int64Value();continue}case 6:{if(J!==48)break;K.isDeleted=Z.bool();continue}case 7:{if(J!==58)break;K.mediaId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return UY.fromPartial($??{})},fromPartial($){let Q=Rk();return Q.name=$.name??void 0,Q.message=$.message??void 0,Q.type=$.type??void 0,Q.createdAt=$.createdAt??void 0,Q.lastSentAt=$.lastSentAt??void 0,Q.isDeleted=$.isDeleted??void 0,Q.mediaId=$.mediaId??void 0,Q}};function Ok(){return{}}var CY={encode($,Q=new z){if($.repliedCount!==void 0)Q.uint32(8).int32($.repliedCount);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Ok();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.repliedCount=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return CY.fromPartial($??{})},fromPartial($){let Q=Ok();return Q.repliedCount=$.repliedCount??void 0,Q}};function Ak(){return{}}var DY={encode($,Q=new z){if($.status!==void 0)Q.uint32(8).int32($.status);if($.country!==void 0)Q.uint32(18).string($.country);if($.gatewayName!==void 0)Q.uint32(26).string($.gatewayName);if($.credentialId!==void 0)Q.uint32(34).string($.credentialId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Ak();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.status=Z.int32();continue}case 2:{if(J!==18)break;K.country=Z.string();continue}case 3:{if(J!==26)break;K.gatewayName=Z.string();continue}case 4:{if(J!==34)break;K.credentialId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return DY.fromPartial($??{})},fromPartial($){let Q=Ak();return Q.status=$.status??void 0,Q.country=$.country??void 0,Q.gatewayName=$.gatewayName??void 0,Q.credentialId=$.credentialId??void 0,Q}};function Ek(){return{}}var FY={encode($,Q=new z){if($.musicUserId!==void 0)Q.uint32(10).string($.musicUserId);return globalThis.Object.entries($.musicUserIdMap||{}).forEach(([q,Z])=>{fV.encode({key:q,value:Z},Q.uint32(18).fork()).join()}),Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Ek();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.musicUserId=Z.string();continue}case 2:{if(J!==18)break;let V=fV.decode(Z,Z.uint32());if(V.value!==void 0&&V.key!==void 0){if(K.musicUserIdMap===void 0)K.musicUserIdMap={};K.musicUserIdMap[V.key]=V.value}continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return FY.fromPartial($??{})},fromPartial($){let Q=Ek();return Q.musicUserId=$.musicUserId??void 0,Q.musicUserIdMap=$.musicUserIdMap===void 0||$.musicUserIdMap===null?void 0:globalThis.Object.entries($.musicUserIdMap??{}).reduce((q,[Z,X])=>{if(X!==void 0)q[Z]=globalThis.String(X);return q},{}),Q}};function Mk(){return{}}var fV={encode($,Q=new z){if($.key!==void 0)Q.uint32(10).string($.key);if($.value!==void 0)Q.uint32(18).string($.value);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Mk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=Z.string();continue}case 2:{if(J!==18)break;K.value=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return fV.fromPartial($??{})},fromPartial($){let Q=Mk();return Q.key=$.key??void 0,Q.value=$.value??void 0,Q}};function Wk(){return{}}var PY={encode($,Q=new z){if($.muted!==void 0)Q.uint32(8).bool($.muted);if($.muteEndTimestamp!==void 0)Q.uint32(16).int64($.muteEndTimestamp);if($.autoMuted!==void 0)Q.uint32(24).bool($.autoMuted);if($.muteEveryoneMentionEndTimestamp!==void 0)Q.uint32(32).int64($.muteEveryoneMentionEndTimestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Wk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.muted=Z.bool();continue}case 2:{if(J!==16)break;K.muteEndTimestamp=Z.int64Value();continue}case 3:{if(J!==24)break;K.autoMuted=Z.bool();continue}case 4:{if(J!==32)break;K.muteEveryoneMentionEndTimestamp=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return PY.fromPartial($??{})},fromPartial($){let Q=Wk();return Q.muted=$.muted??void 0,Q.muteEndTimestamp=$.muteEndTimestamp??void 0,Q.autoMuted=$.autoMuted??void 0,Q.muteEveryoneMentionEndTimestamp=$.muteEveryoneMentionEndTimestamp??void 0,Q}};function Sk(){return{}}var LY={encode($,Q=new z){if($.salt!==void 0)Q.uint32(10).bytes($.salt);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Sk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.salt=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return LY.fromPartial($??{})},fromPartial($){let Q=Sk();return Q.salt=$.salt??void 0,Q}};function Ik(){return{}}var xY={encode($,Q=new z){if($.newsletterSavedInterests!==void 0)Q.uint32(10).string($.newsletterSavedInterests);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Ik();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.newsletterSavedInterests=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return xY.fromPartial($??{})},fromPartial($){let Q=Ik();return Q.newsletterSavedInterests=$.newsletterSavedInterests??void 0,Q}};function Tk(){return{}}var kY={encode($,Q=new z){if($.type!==void 0)Q.uint32(8).int32($.type);if($.chatJid!==void 0)Q.uint32(18).string($.chatJid);if($.createdAt!==void 0)Q.uint32(24).int64($.createdAt);if($.deleted!==void 0)Q.uint32(32).bool($.deleted);if($.unstructuredContent!==void 0)Q.uint32(42).string($.unstructuredContent);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??Tk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.type=Z.int32();continue}case 2:{if(J!==18)break;K.chatJid=Z.string();continue}case 3:{if(J!==24)break;K.createdAt=Z.int64Value();continue}case 4:{if(J!==32)break;K.deleted=Z.bool();continue}case 5:{if(J!==42)break;K.unstructuredContent=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return kY.fromPartial($??{})},fromPartial($){let Q=Tk();return Q.type=$.type??void 0,Q.chatJid=$.chatJid??void 0,Q.createdAt=$.createdAt??void 0,Q.deleted=$.deleted??void 0,Q.unstructuredContent=$.unstructuredContent??void 0,Q}};function yk(){return{}}var NY={encode($,Q=new z){if($.notificationActivitySetting!==void 0)Q.uint32(8).int32($.notificationActivitySetting);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??yk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.notificationActivitySetting=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return NY.fromPartial($??{})},fromPartial($){let Q=yk();return Q.notificationActivitySetting=$.notificationActivitySetting??void 0,Q}};function vk(){return{}}var BY={encode($,Q=new z){if($.acknowledged!==void 0)Q.uint32(8).bool($.acknowledged);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??vk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.acknowledged=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return BY.fromPartial($??{})},fromPartial($){let Q=vk();return Q.acknowledged=$.acknowledged??void 0,Q}};function fk(){return{}}var RY={encode($,Q=new z){if($.fullName!==void 0)Q.uint32(10).string($.fullName);if($.firstName!==void 0)Q.uint32(18).string($.firstName);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??fk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.fullName=Z.string();continue}case 2:{if(J!==18)break;K.firstName=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return RY.fromPartial($??{})},fromPartial($){let Q=fk();return Q.fullName=$.fullName??void 0,Q.firstName=$.firstName??void 0,Q}};function _k(){return{}}var OY={encode($,Q=new z){if($.cpi!==void 0)Q.uint32(10).string($.cpi);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??_k();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.cpi=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return OY.fromPartial($??{})},fromPartial($){let Q=_k();return Q.cpi=$.cpi??void 0,Q}};function hk(){return{}}var AY={encode($,Q=new z){if($.paymentNotice!==void 0)Q.uint32(8).int32($.paymentNotice);if($.accepted!==void 0)Q.uint32(16).bool($.accepted);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??hk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.paymentNotice=Z.int32();continue}case 2:{if(J!==16)break;K.accepted=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return AY.fromPartial($??{})},fromPartial($){let Q=hk();return Q.paymentNotice=$.paymentNotice??void 0,Q.accepted=$.accepted??void 0,Q}};function lk(){return{}}var EY={encode($,Q=new z){if($.pinned!==void 0)Q.uint32(8).bool($.pinned);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??lk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.pinned=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return EY.fromPartial($??{})},fromPartial($){let Q=lk();return Q.pinned=$.pinned??void 0,Q}};function pk(){return{}}var MY={encode($,Q=new z){if($.pnJid!==void 0)Q.uint32(10).string($.pnJid);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??pk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.pnJid=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return MY.fromPartial($??{})},fromPartial($){let Q=pk();return Q.pnJid=$.pnJid??void 0,Q}};function uk(){return{}}var WY={encode($,Q=new z){if($.flags!==void 0&&$.flags.length!==0)for(let q of $.flags)Q.uint32(10).string(q);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??uk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.flags===void 0)K.flags=[];let V=Z.string();if(V!==void 0)K.flags.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return WY.fromPartial($??{})},fromPartial($){let Q=uk();return Q.flags=$.flags?.map((q)=>q)||void 0,Q}};function wk(){return{}}var SY={encode($,Q=new z){if($.version!==void 0)Q.uint32(10).string($.version);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??wk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.version=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return SY.fromPartial($??{})},fromPartial($){let Q=wk();return Q.version=$.version??void 0,Q}};function jk(){return{}}var IY={encode($,Q=new z){if($.isUserOptedOut!==void 0)Q.uint32(8).bool($.isUserOptedOut);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??jk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isUserOptedOut=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return IY.fromPartial($??{})},fromPartial($){let Q=jk();return Q.isUserOptedOut=$.isUserOptedOut??void 0,Q}};function ck(){return{}}var TY={encode($,Q=new z){if($.isPreviewsDisabled!==void 0)Q.uint32(8).bool($.isPreviewsDisabled);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ck();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isPreviewsDisabled=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return TY.fromPartial($??{})},fromPartial($){let Q=ck();return Q.isPreviewsDisabled=$.isPreviewsDisabled??void 0,Q}};function dk(){return{}}var yY={encode($,Q=new z){if($.isEnabled!==void 0)Q.uint32(8).bool($.isEnabled);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??dk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isEnabled=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return yY.fromPartial($??{})},fromPartial($){let Q=dk();return Q.isEnabled=$.isEnabled??void 0,Q}};function nk(){return{}}var vY={encode($,Q=new z){if($.privateProcessingStatus!==void 0)Q.uint32(8).int32($.privateProcessingStatus);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??nk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.privateProcessingStatus=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return vY.fromPartial($??{})},fromPartial($){let Q=nk();return Q.privateProcessingStatus=$.privateProcessingStatus??void 0,Q}};function bk(){return{}}var fY={encode($,Q=new z){if($.name!==void 0)Q.uint32(10).string($.name);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??bk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.name=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return fY.fromPartial($??{})},fromPartial($){let Q=bk();return Q.name=$.name??void 0,Q}};function ok(){return{}}var _Y={encode($,Q=new z){if($.shortcut!==void 0)Q.uint32(10).string($.shortcut);if($.message!==void 0)Q.uint32(18).string($.message);if($.keywords!==void 0&&$.keywords.length!==0)for(let q of $.keywords)Q.uint32(26).string(q);if($.count!==void 0)Q.uint32(32).int32($.count);if($.deleted!==void 0)Q.uint32(40).bool($.deleted);if($.associatedLabelIds!==void 0&&$.associatedLabelIds.length!==0)for(let q of $.associatedLabelIds)Q.uint32(50).string(q);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ok();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.shortcut=Z.string();continue}case 2:{if(J!==18)break;K.message=Z.string();continue}case 3:{if(J!==26)break;if(K.keywords===void 0)K.keywords=[];let V=Z.string();if(V!==void 0)K.keywords.push(V);continue}case 4:{if(J!==32)break;K.count=Z.int32();continue}case 5:{if(J!==40)break;K.deleted=Z.bool();continue}case 6:{if(J!==50)break;if(K.associatedLabelIds===void 0)K.associatedLabelIds=[];let V=Z.string();if(V!==void 0)K.associatedLabelIds.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return _Y.fromPartial($??{})},fromPartial($){let Q=ok();return Q.shortcut=$.shortcut??void 0,Q.message=$.message??void 0,Q.keywords=$.keywords?.map((q)=>q)||void 0,Q.count=$.count??void 0,Q.deleted=$.deleted??void 0,Q.associatedLabelIds=$.associatedLabelIds?.map((q)=>q)||void 0,Q}};function ik(){return{}}var hY={encode($,Q=new z){if($.weights!==void 0&&$.weights.length!==0)for(let q of $.weights)t9.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ik();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.weights===void 0)K.weights=[];let V=t9.decode(Z,Z.uint32());if(V!==void 0)K.weights.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return hY.fromPartial($??{})},fromPartial($){let Q=ik();return Q.weights=$.weights?.map((q)=>t9.fromPartial(q))||void 0,Q}};function mk(){return{}}var lY={encode($,Q=new z){if($.lastStickerSentTs!==void 0)Q.uint32(8).int64($.lastStickerSentTs);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??mk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.lastStickerSentTs=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return lY.fromPartial($??{})},fromPartial($){let Q=mk();return Q.lastStickerSentTs=$.lastStickerSentTs??void 0,Q}};function gk(){return{}}var pY={encode($,Q=new z){if($.startAtLogin!==void 0)Q.uint32(8).bool($.startAtLogin);if($.minimizeToTray!==void 0)Q.uint32(16).bool($.minimizeToTray);if($.language!==void 0)Q.uint32(26).string($.language);if($.replaceTextWithEmoji!==void 0)Q.uint32(32).bool($.replaceTextWithEmoji);if($.bannerNotificationDisplayMode!==void 0)Q.uint32(40).int32($.bannerNotificationDisplayMode);if($.unreadCounterBadgeDisplayMode!==void 0)Q.uint32(48).int32($.unreadCounterBadgeDisplayMode);if($.isMessagesNotificationEnabled!==void 0)Q.uint32(56).bool($.isMessagesNotificationEnabled);if($.isCallsNotificationEnabled!==void 0)Q.uint32(64).bool($.isCallsNotificationEnabled);if($.isReactionsNotificationEnabled!==void 0)Q.uint32(72).bool($.isReactionsNotificationEnabled);if($.isStatusReactionsNotificationEnabled!==void 0)Q.uint32(80).bool($.isStatusReactionsNotificationEnabled);if($.isTextPreviewForNotificationEnabled!==void 0)Q.uint32(88).bool($.isTextPreviewForNotificationEnabled);if($.defaultNotificationToneId!==void 0)Q.uint32(96).int32($.defaultNotificationToneId);if($.groupDefaultNotificationToneId!==void 0)Q.uint32(104).int32($.groupDefaultNotificationToneId);if($.appTheme!==void 0)Q.uint32(112).int32($.appTheme);if($.wallpaperId!==void 0)Q.uint32(120).int32($.wallpaperId);if($.isDoodleWallpaperEnabled!==void 0)Q.uint32(128).bool($.isDoodleWallpaperEnabled);if($.fontSize!==void 0)Q.uint32(136).int32($.fontSize);if($.isPhotosAutodownloadEnabled!==void 0)Q.uint32(144).bool($.isPhotosAutodownloadEnabled);if($.isAudiosAutodownloadEnabled!==void 0)Q.uint32(152).bool($.isAudiosAutodownloadEnabled);if($.isVideosAutodownloadEnabled!==void 0)Q.uint32(160).bool($.isVideosAutodownloadEnabled);if($.isDocumentsAutodownloadEnabled!==void 0)Q.uint32(168).bool($.isDocumentsAutodownloadEnabled);if($.disableLinkPreviews!==void 0)Q.uint32(176).bool($.disableLinkPreviews);if($.notificationToneId!==void 0)Q.uint32(184).int32($.notificationToneId);if($.mediaUploadQuality!==void 0)Q.uint32(192).int32($.mediaUploadQuality);if($.isSpellCheckEnabled!==void 0)Q.uint32(200).bool($.isSpellCheckEnabled);if($.isEnterToSendEnabled!==void 0)Q.uint32(208).bool($.isEnterToSendEnabled);if($.isGroupMessageNotificationEnabled!==void 0)Q.uint32(216).bool($.isGroupMessageNotificationEnabled);if($.isGroupReactionsNotificationEnabled!==void 0)Q.uint32(224).bool($.isGroupReactionsNotificationEnabled);if($.isStatusNotificationEnabled!==void 0)Q.uint32(232).bool($.isStatusNotificationEnabled);if($.statusNotificationToneId!==void 0)Q.uint32(240).int32($.statusNotificationToneId);if($.shouldPlaySoundForCallNotification!==void 0)Q.uint32(248).bool($.shouldPlaySoundForCallNotification);if($.chatThemeId!==void 0)Q.uint32(258).string($.chatThemeId);if($.colorSchemeId!==void 0)Q.uint32(266).string($.colorSchemeId);if($.stockWallpaperImageId!==void 0)Q.uint32(274).string($.stockWallpaperImageId);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??gk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.startAtLogin=Z.bool();continue}case 2:{if(J!==16)break;K.minimizeToTray=Z.bool();continue}case 3:{if(J!==26)break;K.language=Z.string();continue}case 4:{if(J!==32)break;K.replaceTextWithEmoji=Z.bool();continue}case 5:{if(J!==40)break;K.bannerNotificationDisplayMode=Z.int32();continue}case 6:{if(J!==48)break;K.unreadCounterBadgeDisplayMode=Z.int32();continue}case 7:{if(J!==56)break;K.isMessagesNotificationEnabled=Z.bool();continue}case 8:{if(J!==64)break;K.isCallsNotificationEnabled=Z.bool();continue}case 9:{if(J!==72)break;K.isReactionsNotificationEnabled=Z.bool();continue}case 10:{if(J!==80)break;K.isStatusReactionsNotificationEnabled=Z.bool();continue}case 11:{if(J!==88)break;K.isTextPreviewForNotificationEnabled=Z.bool();continue}case 12:{if(J!==96)break;K.defaultNotificationToneId=Z.int32();continue}case 13:{if(J!==104)break;K.groupDefaultNotificationToneId=Z.int32();continue}case 14:{if(J!==112)break;K.appTheme=Z.int32();continue}case 15:{if(J!==120)break;K.wallpaperId=Z.int32();continue}case 16:{if(J!==128)break;K.isDoodleWallpaperEnabled=Z.bool();continue}case 17:{if(J!==136)break;K.fontSize=Z.int32();continue}case 18:{if(J!==144)break;K.isPhotosAutodownloadEnabled=Z.bool();continue}case 19:{if(J!==152)break;K.isAudiosAutodownloadEnabled=Z.bool();continue}case 20:{if(J!==160)break;K.isVideosAutodownloadEnabled=Z.bool();continue}case 21:{if(J!==168)break;K.isDocumentsAutodownloadEnabled=Z.bool();continue}case 22:{if(J!==176)break;K.disableLinkPreviews=Z.bool();continue}case 23:{if(J!==184)break;K.notificationToneId=Z.int32();continue}case 24:{if(J!==192)break;K.mediaUploadQuality=Z.int32();continue}case 25:{if(J!==200)break;K.isSpellCheckEnabled=Z.bool();continue}case 26:{if(J!==208)break;K.isEnterToSendEnabled=Z.bool();continue}case 27:{if(J!==216)break;K.isGroupMessageNotificationEnabled=Z.bool();continue}case 28:{if(J!==224)break;K.isGroupReactionsNotificationEnabled=Z.bool();continue}case 29:{if(J!==232)break;K.isStatusNotificationEnabled=Z.bool();continue}case 30:{if(J!==240)break;K.statusNotificationToneId=Z.int32();continue}case 31:{if(J!==248)break;K.shouldPlaySoundForCallNotification=Z.bool();continue}case 32:{if(J!==258)break;K.chatThemeId=Z.string();continue}case 33:{if(J!==266)break;K.colorSchemeId=Z.string();continue}case 34:{if(J!==274)break;K.stockWallpaperImageId=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return pY.fromPartial($??{})},fromPartial($){let Q=gk();return Q.startAtLogin=$.startAtLogin??void 0,Q.minimizeToTray=$.minimizeToTray??void 0,Q.language=$.language??void 0,Q.replaceTextWithEmoji=$.replaceTextWithEmoji??void 0,Q.bannerNotificationDisplayMode=$.bannerNotificationDisplayMode??void 0,Q.unreadCounterBadgeDisplayMode=$.unreadCounterBadgeDisplayMode??void 0,Q.isMessagesNotificationEnabled=$.isMessagesNotificationEnabled??void 0,Q.isCallsNotificationEnabled=$.isCallsNotificationEnabled??void 0,Q.isReactionsNotificationEnabled=$.isReactionsNotificationEnabled??void 0,Q.isStatusReactionsNotificationEnabled=$.isStatusReactionsNotificationEnabled??void 0,Q.isTextPreviewForNotificationEnabled=$.isTextPreviewForNotificationEnabled??void 0,Q.defaultNotificationToneId=$.defaultNotificationToneId??void 0,Q.groupDefaultNotificationToneId=$.groupDefaultNotificationToneId??void 0,Q.appTheme=$.appTheme??void 0,Q.wallpaperId=$.wallpaperId??void 0,Q.isDoodleWallpaperEnabled=$.isDoodleWallpaperEnabled??void 0,Q.fontSize=$.fontSize??void 0,Q.isPhotosAutodownloadEnabled=$.isPhotosAutodownloadEnabled??void 0,Q.isAudiosAutodownloadEnabled=$.isAudiosAutodownloadEnabled??void 0,Q.isVideosAutodownloadEnabled=$.isVideosAutodownloadEnabled??void 0,Q.isDocumentsAutodownloadEnabled=$.isDocumentsAutodownloadEnabled??void 0,Q.disableLinkPreviews=$.disableLinkPreviews??void 0,Q.notificationToneId=$.notificationToneId??void 0,Q.mediaUploadQuality=$.mediaUploadQuality??void 0,Q.isSpellCheckEnabled=$.isSpellCheckEnabled??void 0,Q.isEnterToSendEnabled=$.isEnterToSendEnabled??void 0,Q.isGroupMessageNotificationEnabled=$.isGroupMessageNotificationEnabled??void 0,Q.isGroupReactionsNotificationEnabled=$.isGroupReactionsNotificationEnabled??void 0,Q.isStatusNotificationEnabled=$.isStatusNotificationEnabled??void 0,Q.statusNotificationToneId=$.statusNotificationToneId??void 0,Q.shouldPlaySoundForCallNotification=$.shouldPlaySoundForCallNotification??void 0,Q.chatThemeId=$.chatThemeId??void 0,Q.colorSchemeId=$.colorSchemeId??void 0,Q.stockWallpaperImageId=$.stockWallpaperImageId??void 0,Q}};function rk(){return{}}var uY={encode($,Q=new z){if($.starred!==void 0)Q.uint32(8).bool($.starred);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??rk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.starred=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return uY.fromPartial($??{})},fromPartial($){let Q=rk();return Q.starred=$.starred??void 0,Q}};function tk(){return{}}var wY={encode($,Q=new z){if($.enabled!==void 0)Q.uint32(8).bool($.enabled);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??tk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.enabled=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return wY.fromPartial($??{})},fromPartial($){let Q=tk();return Q.enabled=$.enabled??void 0,Q}};function ak(){return{}}var jY={encode($,Q=new z){if($.mode!==void 0)Q.uint32(8).int32($.mode);if($.userJid!==void 0&&$.userJid.length!==0)for(let q of $.userJid)Q.uint32(18).string(q);if($.shareToFb!==void 0)Q.uint32(24).bool($.shareToFb);if($.shareToIg!==void 0)Q.uint32(32).bool($.shareToIg);if($.customLists!==void 0&&$.customLists.length!==0)for(let q of $.customLists)cY.encode(q,Q.uint32(42).fork()).join();if($.modes!==void 0&&$.modes.length!==0)for(let q of $.modes)Q.uint32(48).int32(q);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ak();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.mode=Z.int32();continue}case 2:{if(J!==18)break;if(K.userJid===void 0)K.userJid=[];let V=Z.string();if(V!==void 0)K.userJid.push(V);continue}case 3:{if(J!==24)break;K.shareToFb=Z.bool();continue}case 4:{if(J!==32)break;K.shareToIg=Z.bool();continue}case 5:{if(J!==42)break;if(K.customLists===void 0)K.customLists=[];let V=cY.decode(Z,Z.uint32());if(V!==void 0)K.customLists.push(V);continue}case 6:{if(J===48){if(K.modes===void 0)K.modes=[];K.modes.push(Z.int32());continue}if(J===50){if(K.modes===void 0)K.modes=[];let V=Z.uint32()+Z.pos;while(Z.pos<V)K.modes.push(Z.int32());continue}break}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return jY.fromPartial($??{})},fromPartial($){let Q=ak();return Q.mode=$.mode??void 0,Q.userJid=$.userJid?.map((q)=>q)||void 0,Q.shareToFb=$.shareToFb??void 0,Q.shareToIg=$.shareToIg??void 0,Q.customLists=$.customLists?.map((q)=>cY.fromPartial(q))||void 0,Q.modes=$.modes?.map((q)=>q)||void 0,Q}};function sk(){return{}}var cY={encode($,Q=new z){if($.listId!==void 0)Q.uint32(10).string($.listId);if($.name!==void 0)Q.uint32(18).string($.name);if($.emoji!==void 0)Q.uint32(26).string($.emoji);if($.isSelected!==void 0)Q.uint32(32).bool($.isSelected);if($.userJid!==void 0&&$.userJid.length!==0)for(let q of $.userJid)Q.uint32(42).string(q);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??sk();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.listId=Z.string();continue}case 2:{if(J!==18)break;K.name=Z.string();continue}case 3:{if(J!==26)break;K.emoji=Z.string();continue}case 4:{if(J!==32)break;K.isSelected=Z.bool();continue}case 5:{if(J!==42)break;if(K.userJid===void 0)K.userJid=[];let V=Z.string();if(V!==void 0)K.userJid.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return cY.fromPartial($??{})},fromPartial($){let Q=sk();return Q.listId=$.listId??void 0,Q.name=$.name??void 0,Q.emoji=$.emoji??void 0,Q.isSelected=$.isSelected??void 0,Q.userJid=$.userJid?.map((q)=>q)||void 0,Q}};function ek(){return{}}var u$={encode($,Q=new z){if($.url!==void 0)Q.uint32(10).string($.url);if($.fileEncSha256!==void 0)Q.uint32(18).bytes($.fileEncSha256);if($.mediaKey!==void 0)Q.uint32(26).bytes($.mediaKey);if($.mimetype!==void 0)Q.uint32(34).string($.mimetype);if($.height!==void 0)Q.uint32(40).uint32($.height);if($.width!==void 0)Q.uint32(48).uint32($.width);if($.directPath!==void 0)Q.uint32(58).string($.directPath);if($.fileLength!==void 0)Q.uint32(64).uint64($.fileLength);if($.isFavorite!==void 0)Q.uint32(72).bool($.isFavorite);if($.deviceIdHint!==void 0)Q.uint32(80).uint32($.deviceIdHint);if($.isLottie!==void 0)Q.uint32(88).bool($.isLottie);if($.imageHash!==void 0)Q.uint32(98).string($.imageHash);if($.isAvatarSticker!==void 0)Q.uint32(104).bool($.isAvatarSticker);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ek();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.url=Z.string();continue}case 2:{if(J!==18)break;K.fileEncSha256=Z.bytes();continue}case 3:{if(J!==26)break;K.mediaKey=Z.bytes();continue}case 4:{if(J!==34)break;K.mimetype=Z.string();continue}case 5:{if(J!==40)break;K.height=Z.uint32();continue}case 6:{if(J!==48)break;K.width=Z.uint32();continue}case 7:{if(J!==58)break;K.directPath=Z.string();continue}case 8:{if(J!==64)break;K.fileLength=Z.uint64Value();continue}case 9:{if(J!==72)break;K.isFavorite=Z.bool();continue}case 10:{if(J!==80)break;K.deviceIdHint=Z.uint32();continue}case 11:{if(J!==88)break;K.isLottie=Z.bool();continue}case 12:{if(J!==98)break;K.imageHash=Z.string();continue}case 13:{if(J!==104)break;K.isAvatarSticker=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return u$.fromPartial($??{})},fromPartial($){let Q=ek();return Q.url=$.url??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.mediaKey=$.mediaKey??void 0,Q.mimetype=$.mimetype??void 0,Q.height=$.height??void 0,Q.width=$.width??void 0,Q.directPath=$.directPath??void 0,Q.fileLength=$.fileLength??void 0,Q.isFavorite=$.isFavorite??void 0,Q.deviceIdHint=$.deviceIdHint??void 0,Q.isLottie=$.isLottie??void 0,Q.imageHash=$.imageHash??void 0,Q.isAvatarSticker=$.isAvatarSticker??void 0,Q}};function $N(){return{}}var dY={encode($,Q=new z){if($.isDeactivated!==void 0)Q.uint32(8).bool($.isDeactivated);if($.isAutoRenewing!==void 0)Q.uint32(16).bool($.isAutoRenewing);if($.expirationDate!==void 0)Q.uint32(24).int64($.expirationDate);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??$N();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isDeactivated=Z.bool();continue}case 2:{if(J!==16)break;K.isAutoRenewing=Z.bool();continue}case 3:{if(J!==24)break;K.expirationDate=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return dY.fromPartial($??{})},fromPartial($){let Q=$N();return Q.isDeactivated=$.isDeactivated??void 0,Q.isAutoRenewing=$.isAutoRenewing??void 0,Q.expirationDate=$.expirationDate??void 0,Q}};function QN(){return{}}var nY={encode($,Q=new z){if($.subscriptions!==void 0&&$.subscriptions.length!==0)for(let q of $.subscriptions)oY.encode(q,Q.uint32(10).fork()).join();if($.paidFeature!==void 0&&$.paidFeature.length!==0)for(let q of $.paidFeature)bY.encode(q,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??QN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.subscriptions===void 0)K.subscriptions=[];let V=oY.decode(Z,Z.uint32());if(V!==void 0)K.subscriptions.push(V);continue}case 2:{if(J!==18)break;if(K.paidFeature===void 0)K.paidFeature=[];let V=bY.decode(Z,Z.uint32());if(V!==void 0)K.paidFeature.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return nY.fromPartial($??{})},fromPartial($){let Q=QN();return Q.subscriptions=$.subscriptions?.map((q)=>oY.fromPartial(q))||void 0,Q.paidFeature=$.paidFeature?.map((q)=>bY.fromPartial(q))||void 0,Q}};function ZN(){return{}}var bY={encode($,Q=new z){if($.name!==void 0)Q.uint32(10).string($.name);if($.enabled!==void 0)Q.uint32(16).bool($.enabled);if($.limit!==void 0)Q.uint32(24).int32($.limit);if($.expirationTime!==void 0)Q.uint32(32).int64($.expirationTime);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ZN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.name=Z.string();continue}case 2:{if(J!==16)break;K.enabled=Z.bool();continue}case 3:{if(J!==24)break;K.limit=Z.int32();continue}case 4:{if(J!==32)break;K.expirationTime=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return bY.fromPartial($??{})},fromPartial($){let Q=ZN();return Q.name=$.name??void 0,Q.enabled=$.enabled??void 0,Q.limit=$.limit??void 0,Q.expirationTime=$.expirationTime??void 0,Q}};function JN(){return{}}var oY={encode($,Q=new z){if($.id!==void 0)Q.uint32(10).string($.id);if($.tier!==void 0)Q.uint32(16).int32($.tier);if($.status!==void 0)Q.uint32(26).string($.status);if($.startTime!==void 0)Q.uint32(32).int64($.startTime);if($.endTime!==void 0)Q.uint32(40).int64($.endTime);if($.isPlatformChanged!==void 0)Q.uint32(48).bool($.isPlatformChanged);if($.source!==void 0)Q.uint32(58).string($.source);if($.creationTime!==void 0)Q.uint32(64).int64($.creationTime);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??JN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.id=Z.string();continue}case 2:{if(J!==16)break;K.tier=Z.int32();continue}case 3:{if(J!==26)break;K.status=Z.string();continue}case 4:{if(J!==32)break;K.startTime=Z.int64Value();continue}case 5:{if(J!==40)break;K.endTime=Z.int64Value();continue}case 6:{if(J!==48)break;K.isPlatformChanged=Z.bool();continue}case 7:{if(J!==58)break;K.source=Z.string();continue}case 8:{if(J!==64)break;K.creationTime=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return oY.fromPartial($??{})},fromPartial($){let Q=JN();return Q.id=$.id??void 0,Q.tier=$.tier??void 0,Q.status=$.status??void 0,Q.startTime=$.startTime??void 0,Q.endTime=$.endTime??void 0,Q.isPlatformChanged=$.isPlatformChanged??void 0,Q.source=$.source??void 0,Q.creationTime=$.creationTime??void 0,Q}};function KN(){return{}}var iY={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();if($.timestamp!==void 0)Q.uint32(16).int64($.timestamp);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??KN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==16)break;K.timestamp=Z.int64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return iY.fromPartial($??{})},fromPartial($){let Q=KN();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q.timestamp=$.timestamp??void 0,Q}};function qN(){return{}}var G0={encode($,Q=new z){if($.lastMessageTimestamp!==void 0)Q.uint32(8).int64($.lastMessageTimestamp);if($.lastSystemMessageTimestamp!==void 0)Q.uint32(16).int64($.lastSystemMessageTimestamp);if($.messages!==void 0&&$.messages.length!==0)for(let q of $.messages)iY.encode(q,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??qN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.lastMessageTimestamp=Z.int64Value();continue}case 2:{if(J!==16)break;K.lastSystemMessageTimestamp=Z.int64Value();continue}case 3:{if(J!==26)break;if(K.messages===void 0)K.messages=[];let V=iY.decode(Z,Z.uint32());if(V!==void 0)K.messages.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return G0.fromPartial($??{})},fromPartial($){let Q=qN();return Q.lastMessageTimestamp=$.lastMessageTimestamp??void 0,Q.lastSystemMessageTimestamp=$.lastSystemMessageTimestamp??void 0,Q.messages=$.messages?.map((q)=>iY.fromPartial(q))||void 0,Q}};function XN(){return{}}var mY={encode($,Q=new z){if($.pinned!==void 0)Q.uint32(8).bool($.pinned);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??XN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.pinned=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return mY.fromPartial($??{})},fromPartial($){let Q=XN();return Q.pinned=$.pinned??void 0,Q}};function YN(){return{}}var gY={encode($,Q=new z){if($.isTwentyFourHourFormatEnabled!==void 0)Q.uint32(8).bool($.isTwentyFourHourFormatEnabled);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??YN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isTwentyFourHourFormatEnabled=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return gY.fromPartial($??{})},fromPartial($){let Q=YN();return Q.isTwentyFourHourFormatEnabled=$.isTwentyFourHourFormatEnabled??void 0,Q}};function VN(){return{}}var rY={encode($,Q=new z){if($.definition!==void 0)Q.uint32(10).bytes($.definition);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??VN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.definition=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return rY.fromPartial($??{})},fromPartial($){let Q=VN();return Q.definition=$.definition??void 0,Q}};function zN(){return{}}var tY={encode($,Q=new z){if($.unarchiveChats!==void 0)Q.uint32(8).bool($.unarchiveChats);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??zN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.unarchiveChats=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return tY.fromPartial($??{})},fromPartial($){let Q=zN();return Q.unarchiveChats=$.unarchiveChats??void 0,Q}};function HN(){return{}}var aY={encode($,Q=new z){if($.muted!==void 0)Q.uint32(8).bool($.muted);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??HN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.muted=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return aY.fromPartial($??{})},fromPartial($){let Q=HN();return Q.muted=$.muted??void 0,Q}};function GN(){return{}}var sY={encode($,Q=new z){if($.chatStartMode!==void 0)Q.uint32(8).int32($.chatStartMode);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??GN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.chatStartMode=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return sY.fromPartial($??{})},fromPartial($){let Q=GN();return Q.chatStartMode=$.chatStartMode??void 0,Q}};function UN(){return{}}var eY={encode($,Q=new z){if($.secrets!==void 0&&$.secrets.length!==0)for(let q of $.secrets)$V.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??UN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.secrets===void 0)K.secrets=[];let V=$V.decode(Z,Z.uint32());if(V!==void 0)K.secrets.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return eY.fromPartial($??{})},fromPartial($){let Q=UN();return Q.secrets=$.secrets?.map((q)=>$V.fromPartial(q))||void 0,Q}};function CN(){return{}}var $V={encode($,Q=new z){if($.id!==void 0)Q.uint32(10).string($.id);if($.rootSecret!==void 0)Q.uint32(18).bytes($.rootSecret);if($.epoch!==void 0)Q.uint32(24).int64($.epoch);if($.status!==void 0)Q.uint32(32).int32($.status);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??CN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.id=Z.string();continue}case 2:{if(J!==18)break;K.rootSecret=Z.bytes();continue}case 3:{if(J!==24)break;K.epoch=Z.int64Value();continue}case 4:{if(J!==32)break;K.status=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return $V.fromPartial($??{})},fromPartial($){let Q=CN();return Q.id=$.id??void 0,Q.rootSecret=$.rootSecret??void 0,Q.epoch=$.epoch??void 0,Q.status=$.status??void 0,Q}};function DN(){return{}}var QV={encode($,Q=new z){if($.linkState!==void 0)Q.uint32(16).int32($.linkState);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??DN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 2:{if(J!==16)break;K.linkState=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return QV.fromPartial($??{})},fromPartial($){let Q=DN();return Q.linkState=$.linkState??void 0,Q}};function FN(){return{}}var ZV={encode($,Q=new z){if($.identifier!==void 0)Q.uint32(10).string($.identifier);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??FN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.identifier=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return ZV.fromPartial($??{})},fromPartial($){let Q=FN();return Q.identifier=$.identifier??void 0,Q}};function PN(){return{}}var w$={encode($,Q=new z){if($.blob!==void 0)Q.uint32(10).bytes($.blob);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??PN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.blob=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return w$.fromPartial($??{})},fromPartial($){let Q=PN();return Q.blob=$.blob??void 0,Q}};function LN(){return{}}var w0={encode($,Q=new z){if($.operation!==void 0)Q.uint32(8).int32($.operation);if($.record!==void 0)j0.encode($.record,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??LN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.operation=Z.int32();continue}case 2:{if(J!==18)break;K.record=j0.decode(Z,Z.uint32(),K.record);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return w0.fromPartial($??{})},fromPartial($){let Q=LN();return Q.operation=$.operation??void 0,Q.record=$.record!==void 0&&$.record!==null?j0.fromPartial($.record):void 0,Q}};function xN(){return{}}var rV={encode($,Q=new z){if($.mutations!==void 0&&$.mutations.length!==0)for(let q of $.mutations)w0.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??xN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.mutations===void 0)K.mutations=[];let V=w0.decode(Z,Z.uint32());if(V!==void 0)K.mutations.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return rV.fromPartial($??{})},fromPartial($){let Q=xN();return Q.mutations=$.mutations?.map((q)=>w0.fromPartial(q))||void 0,Q}};function kN(){return{}}var tV={encode($,Q=new z){if($.version!==void 0)f0.encode($.version,Q.uint32(10).fork()).join();if($.mutations!==void 0&&$.mutations.length!==0)for(let q of $.mutations)w0.encode(q,Q.uint32(18).fork()).join();if($.externalMutations!==void 0)o$.encode($.externalMutations,Q.uint32(26).fork()).join();if($.snapshotMac!==void 0)Q.uint32(34).bytes($.snapshotMac);if($.patchMac!==void 0)Q.uint32(42).bytes($.patchMac);if($.keyId!==void 0)E0.encode($.keyId,Q.uint32(50).fork()).join();if($.exitCode!==void 0)b$.encode($.exitCode,Q.uint32(58).fork()).join();if($.deviceIndex!==void 0)Q.uint32(64).uint32($.deviceIndex);if($.clientDebugData!==void 0)Q.uint32(74).bytes($.clientDebugData);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??kN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.version=f0.decode(Z,Z.uint32(),K.version);continue}case 2:{if(J!==18)break;if(K.mutations===void 0)K.mutations=[];let V=w0.decode(Z,Z.uint32());if(V!==void 0)K.mutations.push(V);continue}case 3:{if(J!==26)break;K.externalMutations=o$.decode(Z,Z.uint32(),K.externalMutations);continue}case 4:{if(J!==34)break;K.snapshotMac=Z.bytes();continue}case 5:{if(J!==42)break;K.patchMac=Z.bytes();continue}case 6:{if(J!==50)break;K.keyId=E0.decode(Z,Z.uint32(),K.keyId);continue}case 7:{if(J!==58)break;K.exitCode=b$.decode(Z,Z.uint32(),K.exitCode);continue}case 8:{if(J!==64)break;K.deviceIndex=Z.uint32();continue}case 9:{if(J!==74)break;K.clientDebugData=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return tV.fromPartial($??{})},fromPartial($){let Q=kN();return Q.version=$.version!==void 0&&$.version!==null?f0.fromPartial($.version):void 0,Q.mutations=$.mutations?.map((q)=>w0.fromPartial(q))||void 0,Q.externalMutations=$.externalMutations!==void 0&&$.externalMutations!==null?o$.fromPartial($.externalMutations):void 0,Q.snapshotMac=$.snapshotMac??void 0,Q.patchMac=$.patchMac??void 0,Q.keyId=$.keyId!==void 0&&$.keyId!==null?E0.fromPartial($.keyId):void 0,Q.exitCode=$.exitCode!==void 0&&$.exitCode!==null?b$.fromPartial($.exitCode):void 0,Q.deviceIndex=$.deviceIndex??void 0,Q.clientDebugData=$.clientDebugData??void 0,Q}};function NN(){return{}}var JV={encode($,Q=new z){if($.value!==void 0)i$.encode($.value,Q.uint32(10).fork()).join();if($.keyId!==void 0)Q.uint32(18).bytes($.keyId);if($.mac!==void 0)Q.uint32(26).bytes($.mac);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??NN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.value=i$.decode(Z,Z.uint32(),K.value);continue}case 2:{if(J!==18)break;K.keyId=Z.bytes();continue}case 3:{if(J!==26)break;K.mac=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return JV.fromPartial($??{})},fromPartial($){let Q=NN();return Q.value=$.value!==void 0&&$.value!==null?i$.fromPartial($.value):void 0,Q.keyId=$.keyId??void 0,Q.mac=$.mac??void 0,Q}};function BN(){return{}}var j0={encode($,Q=new z){if($.index!==void 0)w$.encode($.index,Q.uint32(10).fork()).join();if($.value!==void 0)j$.encode($.value,Q.uint32(18).fork()).join();if($.keyId!==void 0)E0.encode($.keyId,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??BN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.index=w$.decode(Z,Z.uint32(),K.index);continue}case 2:{if(J!==18)break;K.value=j$.decode(Z,Z.uint32(),K.value);continue}case 3:{if(J!==26)break;K.keyId=E0.decode(Z,Z.uint32(),K.keyId);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return j0.fromPartial($??{})},fromPartial($){let Q=BN();return Q.index=$.index!==void 0&&$.index!==null?w$.fromPartial($.index):void 0,Q.value=$.value!==void 0&&$.value!==null?j$.fromPartial($.value):void 0,Q.keyId=$.keyId!==void 0&&$.keyId!==null?E0.fromPartial($.keyId):void 0,Q}};function RN(){return{}}var aV={encode($,Q=new z){if($.version!==void 0)f0.encode($.version,Q.uint32(10).fork()).join();if($.records!==void 0&&$.records.length!==0)for(let q of $.records)j0.encode(q,Q.uint32(18).fork()).join();if($.mac!==void 0)Q.uint32(26).bytes($.mac);if($.keyId!==void 0)E0.encode($.keyId,Q.uint32(34).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??RN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.version=f0.decode(Z,Z.uint32(),K.version);continue}case 2:{if(J!==18)break;if(K.records===void 0)K.records=[];let V=j0.decode(Z,Z.uint32());if(V!==void 0)K.records.push(V);continue}case 3:{if(J!==26)break;K.mac=Z.bytes();continue}case 4:{if(J!==34)break;K.keyId=E0.decode(Z,Z.uint32(),K.keyId);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return aV.fromPartial($??{})},fromPartial($){let Q=RN();return Q.version=$.version!==void 0&&$.version!==null?f0.fromPartial($.version):void 0,Q.records=$.records?.map((q)=>j0.fromPartial(q))||void 0,Q.mac=$.mac??void 0,Q.keyId=$.keyId!==void 0&&$.keyId!==null?E0.fromPartial($.keyId):void 0,Q}};function ON(){return{}}var AE={encode($,Q=new z){if($.version!==void 0)f0.encode($.version,Q.uint32(10).fork()).join();if($.collectionName!==void 0)Q.uint32(18).string($.collectionName);if($.mutationRecords!==void 0&&$.mutationRecords.length!==0)for(let q of $.mutationRecords)JV.encode(q,Q.uint32(26).fork()).join();if($.collectionLthash!==void 0)Q.uint32(34).bytes($.collectionLthash);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??ON();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.version=f0.decode(Z,Z.uint32(),K.version);continue}case 2:{if(J!==18)break;K.collectionName=Z.string();continue}case 3:{if(J!==26)break;if(K.mutationRecords===void 0)K.mutationRecords=[];let V=JV.decode(Z,Z.uint32());if(V!==void 0)K.mutationRecords.push(V);continue}case 4:{if(J!==34)break;K.collectionLthash=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return AE.fromPartial($??{})},fromPartial($){let Q=ON();return Q.version=$.version!==void 0&&$.version!==null?f0.fromPartial($.version):void 0,Q.collectionName=$.collectionName??void 0,Q.mutationRecords=$.mutationRecords?.map((q)=>JV.fromPartial(q))||void 0,Q.collectionLthash=$.collectionLthash??void 0,Q}};function AN(){return{}}var j$={encode($,Q=new z){if($.blob!==void 0)Q.uint32(10).bytes($.blob);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??AN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.blob=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return j$.fromPartial($??{})},fromPartial($){let Q=AN();return Q.blob=$.blob??void 0,Q}};function EN(){return{}}var f0={encode($,Q=new z){if($.version!==void 0)Q.uint32(8).uint64($.version);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??EN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.version=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return f0.fromPartial($??{})},fromPartial($){let Q=EN();return Q.version=$.version??void 0,Q}};function MN(){return{}}var KV={encode($,Q=new z){if($.title!==void 0)Q.uint32(10).string($.title);if($.tapUrl!==void 0)Q.uint32(18).string($.tapUrl);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??MN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.title=Z.string();continue}case 2:{if(J!==18)break;K.tapUrl=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return KV.fromPartial($??{})},fromPartial($){let Q=MN();return Q.title=$.title??void 0,Q.tapUrl=$.tapUrl??void 0,Q}};function WN(){return{}}var qV={encode($,Q=new z){if($.index!==void 0)Q.uint32(32).uint32($.index);if($.quickReplyButton!==void 0)YV.encode($.quickReplyButton,Q.uint32(10).fork()).join();if($.urlButton!==void 0)VV.encode($.urlButton,Q.uint32(18).fork()).join();if($.callButton!==void 0)XV.encode($.callButton,Q.uint32(26).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??WN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 4:{if(J!==32)break;K.index=Z.uint32();continue}case 1:{if(J!==10)break;K.quickReplyButton=YV.decode(Z,Z.uint32(),K.quickReplyButton);continue}case 2:{if(J!==18)break;K.urlButton=VV.decode(Z,Z.uint32(),K.urlButton);continue}case 3:{if(J!==26)break;K.callButton=XV.decode(Z,Z.uint32(),K.callButton);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return qV.fromPartial($??{})},fromPartial($){let Q=WN();return Q.index=$.index??void 0,Q.quickReplyButton=$.quickReplyButton!==void 0&&$.quickReplyButton!==null?YV.fromPartial($.quickReplyButton):void 0,Q.urlButton=$.urlButton!==void 0&&$.urlButton!==null?VV.fromPartial($.urlButton):void 0,Q.callButton=$.callButton!==void 0&&$.callButton!==null?XV.fromPartial($.callButton):void 0,Q}};function SN(){return{}}var XV={encode($,Q=new z){if($.displayText!==void 0)o.encode($.displayText,Q.uint32(10).fork()).join();if($.phoneNumber!==void 0)o.encode($.phoneNumber,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??SN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayText=o.decode(Z,Z.uint32(),K.displayText);continue}case 2:{if(J!==18)break;K.phoneNumber=o.decode(Z,Z.uint32(),K.phoneNumber);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return XV.fromPartial($??{})},fromPartial($){let Q=SN();return Q.displayText=$.displayText!==void 0&&$.displayText!==null?o.fromPartial($.displayText):void 0,Q.phoneNumber=$.phoneNumber!==void 0&&$.phoneNumber!==null?o.fromPartial($.phoneNumber):void 0,Q}};function IN(){return{}}var YV={encode($,Q=new z){if($.displayText!==void 0)o.encode($.displayText,Q.uint32(10).fork()).join();if($.id!==void 0)Q.uint32(18).string($.id);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??IN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayText=o.decode(Z,Z.uint32(),K.displayText);continue}case 2:{if(J!==18)break;K.id=Z.string();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return YV.fromPartial($??{})},fromPartial($){let Q=IN();return Q.displayText=$.displayText!==void 0&&$.displayText!==null?o.fromPartial($.displayText):void 0,Q.id=$.id??void 0,Q}};function TN(){return{}}var VV={encode($,Q=new z){if($.displayText!==void 0)o.encode($.displayText,Q.uint32(10).fork()).join();if($.url!==void 0)o.encode($.url,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??TN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayText=o.decode(Z,Z.uint32(),K.displayText);continue}case 2:{if(J!==18)break;K.url=o.decode(Z,Z.uint32(),K.url);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return VV.fromPartial($??{})},fromPartial($){let Q=TN();return Q.displayText=$.displayText!==void 0&&$.displayText!==null?o.fromPartial($.displayText):void 0,Q.url=$.url!==void 0&&$.url!==null?o.fromPartial($.url):void 0,Q}};function yN(){return{}}var zV={encode($,Q=new z){if($.threadType!==void 0)Q.uint32(8).int32($.threadType);if($.threadKey!==void 0)N.encode($.threadKey,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??yN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.threadType=Z.int32();continue}case 2:{if(J!==18)break;K.threadKey=N.decode(Z,Z.uint32(),K.threadKey);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return zV.fromPartial($??{})},fromPartial($){let Q=yN();return Q.threadType=$.threadType??void 0,Q.threadKey=$.threadKey!==void 0&&$.threadKey!==null?N.fromPartial($.threadKey):void 0,Q}};function vN(){return{}}var HV={encode($,Q=new z){if($.messages!==void 0&&$.messages.length!==0)for(let q of $.messages)g.encode(q,Q.uint32(10).fork()).join();if($.parentMessage!==void 0)N.encode($.parentMessage,Q.uint32(18).fork()).join();if($.associationType!==void 0)Q.uint32(24).int32($.associationType);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??vN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.messages===void 0)K.messages=[];let V=g.decode(Z,Z.uint32());if(V!==void 0)K.messages.push(V);continue}case 2:{if(J!==18)break;K.parentMessage=N.decode(Z,Z.uint32(),K.parentMessage);continue}case 3:{if(J!==24)break;K.associationType=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return HV.fromPartial($??{})},fromPartial($){let Q=vN();return Q.messages=$.messages?.map((q)=>g.fromPartial(q))||void 0,Q.parentMessage=$.parentMessage!==void 0&&$.parentMessage!==null?N.fromPartial($.parentMessage):void 0,Q.associationType=$.associationType??void 0,Q}};function fN(){return{}}var GV={encode($,Q=new z){if($.messages!==void 0&&$.messages.length!==0)for(let q of $.messages)Y0.encode(q,Q.uint32(10).fork()).join();if($.parentMessage!==void 0)N.encode($.parentMessage,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??fN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.messages===void 0)K.messages=[];let V=Y0.decode(Z,Z.uint32());if(V!==void 0)K.messages.push(V);continue}case 2:{if(J!==18)break;K.parentMessage=N.decode(Z,Z.uint32(),K.parentMessage);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return GV.fromPartial($??{})},fromPartial($){let Q=fN();return Q.messages=$.messages?.map((q)=>Y0.fromPartial(q))||void 0,Q.parentMessage=$.parentMessage!==void 0&&$.parentMessage!==null?N.fromPartial($.parentMessage):void 0,Q}};function _N(){return{}}var c$={encode($,Q=new z){if($.urlTrackingMapElements!==void 0&&$.urlTrackingMapElements.length!==0)for(let q of $.urlTrackingMapElements)UV.encode(q,Q.uint32(10).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??_N();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.urlTrackingMapElements===void 0)K.urlTrackingMapElements=[];let V=UV.decode(Z,Z.uint32());if(V!==void 0)K.urlTrackingMapElements.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return c$.fromPartial($??{})},fromPartial($){let Q=_N();return Q.urlTrackingMapElements=$.urlTrackingMapElements?.map((q)=>UV.fromPartial(q))||void 0,Q}};function hN(){return{}}var UV={encode($,Q=new z){if($.originalUrl!==void 0)Q.uint32(10).string($.originalUrl);if($.unconsentedUsersUrl!==void 0)Q.uint32(18).string($.unconsentedUsersUrl);if($.consentedUsersUrl!==void 0)Q.uint32(26).string($.consentedUsersUrl);if($.cardIndex!==void 0)Q.uint32(32).uint32($.cardIndex);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??hN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.originalUrl=Z.string();continue}case 2:{if(J!==18)break;K.unconsentedUsersUrl=Z.string();continue}case 3:{if(J!==26)break;K.consentedUsersUrl=Z.string();continue}case 4:{if(J!==32)break;K.cardIndex=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return UV.fromPartial($??{})},fromPartial($){let Q=hN();return Q.originalUrl=$.originalUrl??void 0,Q.unconsentedUsersUrl=$.unconsentedUsersUrl??void 0,Q.consentedUsersUrl=$.consentedUsersUrl??void 0,Q.cardIndex=$.cardIndex??void 0,Q}};function lN(){return{}}var CV={encode($,Q=new z){if($.encoding!==void 0)Q.uint32(8).int32($.encoding);if($.transformer!==void 0)Q.uint32(16).int32($.transformer);if($.transformerArg!==void 0&&$.transformerArg.length!==0)for(let q of $.transformerArg)DV.encode(q,Q.uint32(26).fork()).join();if($.transformedData!==void 0)Q.uint32(34).bytes($.transformedData);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??lN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.encoding=Z.int32();continue}case 2:{if(J!==16)break;K.transformer=Z.int32();continue}case 3:{if(J!==26)break;if(K.transformerArg===void 0)K.transformerArg=[];let V=DV.decode(Z,Z.uint32());if(V!==void 0)K.transformerArg.push(V);continue}case 4:{if(J!==34)break;K.transformedData=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return CV.fromPartial($??{})},fromPartial($){let Q=lN();return Q.encoding=$.encoding??void 0,Q.transformer=$.transformer??void 0,Q.transformerArg=$.transformerArg?.map((q)=>DV.fromPartial(q))||void 0,Q.transformedData=$.transformedData??void 0,Q}};function pN(){return{}}var DV={encode($,Q=new z){if($.key!==void 0)Q.uint32(10).string($.key);if($.value!==void 0)FV.encode($.value,Q.uint32(18).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??pN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=Z.string();continue}case 2:{if(J!==18)break;K.value=FV.decode(Z,Z.uint32(),K.value);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return DV.fromPartial($??{})},fromPartial($){let Q=pN();return Q.key=$.key??void 0,Q.value=$.value!==void 0&&$.value!==null?FV.fromPartial($.value):void 0,Q}};function uN(){return{}}var FV={encode($,Q=new z){if($.asBlob!==void 0)Q.uint32(10).bytes($.asBlob);if($.asUnsignedInteger!==void 0)Q.uint32(16).uint32($.asUnsignedInteger);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??uN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.asBlob=Z.bytes();continue}case 2:{if(J!==16)break;K.asUnsignedInteger=Z.uint32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return FV.fromPartial($??{})},fromPartial($){let Q=uN();return Q.asBlob=$.asBlob??void 0,Q.asUnsignedInteger=$.asUnsignedInteger??void 0,Q}};function wN(){return{}}var PV={encode($,Q=new z){if($.userJid!==void 0)Q.uint32(10).string($.userJid);if($.receiptTimestamp!==void 0)Q.uint32(16).int64($.receiptTimestamp);if($.readTimestamp!==void 0)Q.uint32(24).int64($.readTimestamp);if($.playedTimestamp!==void 0)Q.uint32(32).int64($.playedTimestamp);if($.pendingDeviceJid!==void 0&&$.pendingDeviceJid.length!==0)for(let q of $.pendingDeviceJid)Q.uint32(42).string(q);if($.deliveredDeviceJid!==void 0&&$.deliveredDeviceJid.length!==0)for(let q of $.deliveredDeviceJid)Q.uint32(50).string(q);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??wN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.userJid=Z.string();continue}case 2:{if(J!==16)break;K.receiptTimestamp=Z.int64Value();continue}case 3:{if(J!==24)break;K.readTimestamp=Z.int64Value();continue}case 4:{if(J!==32)break;K.playedTimestamp=Z.int64Value();continue}case 5:{if(J!==42)break;if(K.pendingDeviceJid===void 0)K.pendingDeviceJid=[];let V=Z.string();if(V!==void 0)K.pendingDeviceJid.push(V);continue}case 6:{if(J!==50)break;if(K.deliveredDeviceJid===void 0)K.deliveredDeviceJid=[];let V=Z.string();if(V!==void 0)K.deliveredDeviceJid.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return PV.fromPartial($??{})},fromPartial($){let Q=wN();return Q.userJid=$.userJid??void 0,Q.receiptTimestamp=$.receiptTimestamp??void 0,Q.readTimestamp=$.readTimestamp??void 0,Q.playedTimestamp=$.playedTimestamp??void 0,Q.pendingDeviceJid=$.pendingDeviceJid?.map((q)=>q)||void 0,Q.deliveredDeviceJid=$.deliveredDeviceJid?.map((q)=>q)||void 0,Q}};function jN(){return{}}var c0={encode($,Q=new z){if($.details!==void 0)Q.uint32(10).bytes($.details);if($.signature!==void 0)Q.uint32(18).bytes($.signature);if($.serverSignature!==void 0)Q.uint32(26).bytes($.serverSignature);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??jN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.details=Z.bytes();continue}case 2:{if(J!==18)break;K.signature=Z.bytes();continue}case 3:{if(J!==26)break;K.serverSignature=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return c0.fromPartial($??{})},fromPartial($){let Q=jN();return Q.details=$.details??void 0,Q.signature=$.signature??void 0,Q.serverSignature=$.serverSignature??void 0,Q}};function cN(){return{}}var sV={encode($,Q=new z){if($.serial!==void 0)Q.uint32(8).uint64($.serial);if($.issuer!==void 0)Q.uint32(18).string($.issuer);if($.verifiedName!==void 0)Q.uint32(34).string($.verifiedName);if($.localizedNames!==void 0&&$.localizedNames.length!==0)for(let q of $.localizedNames)X8.encode(q,Q.uint32(66).fork()).join();if($.issueTime!==void 0)Q.uint32(80).uint64($.issueTime);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??cN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.serial=Z.uint64Value();continue}case 2:{if(J!==18)break;K.issuer=Z.string();continue}case 4:{if(J!==34)break;K.verifiedName=Z.string();continue}case 8:{if(J!==66)break;if(K.localizedNames===void 0)K.localizedNames=[];let V=X8.decode(Z,Z.uint32());if(V!==void 0)K.localizedNames.push(V);continue}case 10:{if(J!==80)break;K.issueTime=Z.uint64Value();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return sV.fromPartial($??{})},fromPartial($){let Q=cN();return Q.serial=$.serial??void 0,Q.issuer=$.issuer??void 0,Q.verifiedName=$.verifiedName??void 0,Q.localizedNames=$.localizedNames?.map((q)=>X8.fromPartial(q))||void 0,Q.issueTime=$.issueTime??void 0,Q}};function dN(){return{}}var LV={encode($,Q=new z){if($.vdId!==void 0)Q.uint32(10).bytes($.vdId);if($.vdPublicKey!==void 0)Q.uint32(18).bytes($.vdPublicKey);if($.vdEpochStoragePublicKey!==void 0)Q.uint32(26).bytes($.vdEpochStoragePublicKey);if($.vdEpochStoragePublicKeySig!==void 0)Q.uint32(34).bytes($.vdEpochStoragePublicKeySig);if($.ocmfRotationToken!==void 0)Q.uint32(42).bytes($.ocmfRotationToken);if($.deviceEpochHmac!==void 0)Q.uint32(50).bytes($.deviceEpochHmac);if($.encryptedSecretValues!==void 0)EK.encode($.encryptedSecretValues,Q.uint32(58).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??dN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.vdId=Z.bytes();continue}case 2:{if(J!==18)break;K.vdPublicKey=Z.bytes();continue}case 3:{if(J!==26)break;K.vdEpochStoragePublicKey=Z.bytes();continue}case 4:{if(J!==34)break;K.vdEpochStoragePublicKeySig=Z.bytes();continue}case 5:{if(J!==42)break;K.ocmfRotationToken=Z.bytes();continue}case 6:{if(J!==50)break;K.deviceEpochHmac=Z.bytes();continue}case 7:{if(J!==58)break;K.encryptedSecretValues=EK.decode(Z,Z.uint32(),K.encryptedSecretValues);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return LV.fromPartial($??{})},fromPartial($){let Q=dN();return Q.vdId=$.vdId??void 0,Q.vdPublicKey=$.vdPublicKey??void 0,Q.vdEpochStoragePublicKey=$.vdEpochStoragePublicKey??void 0,Q.vdEpochStoragePublicKeySig=$.vdEpochStoragePublicKeySig??void 0,Q.ocmfRotationToken=$.ocmfRotationToken??void 0,Q.deviceEpochHmac=$.deviceEpochHmac??void 0,Q.encryptedSecretValues=$.encryptedSecretValues!==void 0&&$.encryptedSecretValues!==null?EK.fromPartial($.encryptedSecretValues):void 0,Q}};function nN(){return{}}var R0={encode($,Q=new z){if($.filename!==void 0)Q.uint32(10).string($.filename);if($.opacity!==void 0)Q.uint32(16).uint32($.opacity);if($.isGenAi!==void 0)Q.uint32(24).bool($.isGenAi);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??nN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.filename=Z.string();continue}case 2:{if(J!==16)break;K.opacity=Z.uint32();continue}case 3:{if(J!==24)break;K.isGenAi=Z.bool();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return R0.fromPartial($??{})},fromPartial($){let Q=nN();return Q.filename=$.filename??void 0,Q.opacity=$.opacity??void 0,Q.isGenAi=$.isGenAi??void 0,Q}};function bN(){return{}}var EE={encode($,Q=new z){if($.labelsDisplay!==void 0)Q.uint32(8).int32($.labelsDisplay);if($.voipIndividualOutgoing!==void 0)Q.uint32(16).int32($.voipIndividualOutgoing);if($.groupsV3!==void 0)Q.uint32(24).int32($.groupsV3);if($.groupsV3Create!==void 0)Q.uint32(32).int32($.groupsV3Create);if($.changeNumberV2!==void 0)Q.uint32(40).int32($.changeNumberV2);if($.queryStatusV3Thumbnail!==void 0)Q.uint32(48).int32($.queryStatusV3Thumbnail);if($.liveLocations!==void 0)Q.uint32(56).int32($.liveLocations);if($.queryVname!==void 0)Q.uint32(64).int32($.queryVname);if($.voipIndividualIncoming!==void 0)Q.uint32(72).int32($.voipIndividualIncoming);if($.quickRepliesQuery!==void 0)Q.uint32(80).int32($.quickRepliesQuery);if($.payments!==void 0)Q.uint32(88).int32($.payments);if($.stickerPackQuery!==void 0)Q.uint32(96).int32($.stickerPackQuery);if($.liveLocationsFinal!==void 0)Q.uint32(104).int32($.liveLocationsFinal);if($.labelsEdit!==void 0)Q.uint32(112).int32($.labelsEdit);if($.mediaUpload!==void 0)Q.uint32(120).int32($.mediaUpload);if($.mediaUploadRichQuickReplies!==void 0)Q.uint32(144).int32($.mediaUploadRichQuickReplies);if($.vnameV2!==void 0)Q.uint32(152).int32($.vnameV2);if($.videoPlaybackUrl!==void 0)Q.uint32(160).int32($.videoPlaybackUrl);if($.statusRanking!==void 0)Q.uint32(168).int32($.statusRanking);if($.voipIndividualVideo!==void 0)Q.uint32(176).int32($.voipIndividualVideo);if($.thirdPartyStickers!==void 0)Q.uint32(184).int32($.thirdPartyStickers);if($.frequentlyForwardedSetting!==void 0)Q.uint32(192).int32($.frequentlyForwardedSetting);if($.groupsV4JoinPermission!==void 0)Q.uint32(200).int32($.groupsV4JoinPermission);if($.recentStickers!==void 0)Q.uint32(208).int32($.recentStickers);if($.catalog!==void 0)Q.uint32(216).int32($.catalog);if($.starredStickers!==void 0)Q.uint32(224).int32($.starredStickers);if($.voipGroupCall!==void 0)Q.uint32(232).int32($.voipGroupCall);if($.templateMessage!==void 0)Q.uint32(240).int32($.templateMessage);if($.templateMessageInteractivity!==void 0)Q.uint32(248).int32($.templateMessageInteractivity);if($.ephemeralMessages!==void 0)Q.uint32(256).int32($.ephemeralMessages);if($.e2ENotificationSync!==void 0)Q.uint32(264).int32($.e2ENotificationSync);if($.recentStickersV2!==void 0)Q.uint32(272).int32($.recentStickersV2);if($.recentStickersV3!==void 0)Q.uint32(288).int32($.recentStickersV3);if($.userNotice!==void 0)Q.uint32(296).int32($.userNotice);if($.support!==void 0)Q.uint32(312).int32($.support);if($.groupUiiCleanup!==void 0)Q.uint32(320).int32($.groupUiiCleanup);if($.groupDogfoodingInternalOnly!==void 0)Q.uint32(328).int32($.groupDogfoodingInternalOnly);if($.settingsSync!==void 0)Q.uint32(336).int32($.settingsSync);if($.archiveV2!==void 0)Q.uint32(344).int32($.archiveV2);if($.ephemeralAllowGroupMembers!==void 0)Q.uint32(352).int32($.ephemeralAllowGroupMembers);if($.ephemeral24HDuration!==void 0)Q.uint32(360).int32($.ephemeral24HDuration);if($.mdForceUpgrade!==void 0)Q.uint32(368).int32($.mdForceUpgrade);if($.disappearingMode!==void 0)Q.uint32(376).int32($.disappearingMode);if($.externalMdOptInAvailable!==void 0)Q.uint32(384).int32($.externalMdOptInAvailable);if($.noDeleteMessageTimeLimit!==void 0)Q.uint32(392).int32($.noDeleteMessageTimeLimit);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??bN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.labelsDisplay=Z.int32();continue}case 2:{if(J!==16)break;K.voipIndividualOutgoing=Z.int32();continue}case 3:{if(J!==24)break;K.groupsV3=Z.int32();continue}case 4:{if(J!==32)break;K.groupsV3Create=Z.int32();continue}case 5:{if(J!==40)break;K.changeNumberV2=Z.int32();continue}case 6:{if(J!==48)break;K.queryStatusV3Thumbnail=Z.int32();continue}case 7:{if(J!==56)break;K.liveLocations=Z.int32();continue}case 8:{if(J!==64)break;K.queryVname=Z.int32();continue}case 9:{if(J!==72)break;K.voipIndividualIncoming=Z.int32();continue}case 10:{if(J!==80)break;K.quickRepliesQuery=Z.int32();continue}case 11:{if(J!==88)break;K.payments=Z.int32();continue}case 12:{if(J!==96)break;K.stickerPackQuery=Z.int32();continue}case 13:{if(J!==104)break;K.liveLocationsFinal=Z.int32();continue}case 14:{if(J!==112)break;K.labelsEdit=Z.int32();continue}case 15:{if(J!==120)break;K.mediaUpload=Z.int32();continue}case 18:{if(J!==144)break;K.mediaUploadRichQuickReplies=Z.int32();continue}case 19:{if(J!==152)break;K.vnameV2=Z.int32();continue}case 20:{if(J!==160)break;K.videoPlaybackUrl=Z.int32();continue}case 21:{if(J!==168)break;K.statusRanking=Z.int32();continue}case 22:{if(J!==176)break;K.voipIndividualVideo=Z.int32();continue}case 23:{if(J!==184)break;K.thirdPartyStickers=Z.int32();continue}case 24:{if(J!==192)break;K.frequentlyForwardedSetting=Z.int32();continue}case 25:{if(J!==200)break;K.groupsV4JoinPermission=Z.int32();continue}case 26:{if(J!==208)break;K.recentStickers=Z.int32();continue}case 27:{if(J!==216)break;K.catalog=Z.int32();continue}case 28:{if(J!==224)break;K.starredStickers=Z.int32();continue}case 29:{if(J!==232)break;K.voipGroupCall=Z.int32();continue}case 30:{if(J!==240)break;K.templateMessage=Z.int32();continue}case 31:{if(J!==248)break;K.templateMessageInteractivity=Z.int32();continue}case 32:{if(J!==256)break;K.ephemeralMessages=Z.int32();continue}case 33:{if(J!==264)break;K.e2ENotificationSync=Z.int32();continue}case 34:{if(J!==272)break;K.recentStickersV2=Z.int32();continue}case 36:{if(J!==288)break;K.recentStickersV3=Z.int32();continue}case 37:{if(J!==296)break;K.userNotice=Z.int32();continue}case 39:{if(J!==312)break;K.support=Z.int32();continue}case 40:{if(J!==320)break;K.groupUiiCleanup=Z.int32();continue}case 41:{if(J!==328)break;K.groupDogfoodingInternalOnly=Z.int32();continue}case 42:{if(J!==336)break;K.settingsSync=Z.int32();continue}case 43:{if(J!==344)break;K.archiveV2=Z.int32();continue}case 44:{if(J!==352)break;K.ephemeralAllowGroupMembers=Z.int32();continue}case 45:{if(J!==360)break;K.ephemeral24HDuration=Z.int32();continue}case 46:{if(J!==368)break;K.mdForceUpgrade=Z.int32();continue}case 47:{if(J!==376)break;K.disappearingMode=Z.int32();continue}case 48:{if(J!==384)break;K.externalMdOptInAvailable=Z.int32();continue}case 49:{if(J!==392)break;K.noDeleteMessageTimeLimit=Z.int32();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return EE.fromPartial($??{})},fromPartial($){let Q=bN();return Q.labelsDisplay=$.labelsDisplay??void 0,Q.voipIndividualOutgoing=$.voipIndividualOutgoing??void 0,Q.groupsV3=$.groupsV3??void 0,Q.groupsV3Create=$.groupsV3Create??void 0,Q.changeNumberV2=$.changeNumberV2??void 0,Q.queryStatusV3Thumbnail=$.queryStatusV3Thumbnail??void 0,Q.liveLocations=$.liveLocations??void 0,Q.queryVname=$.queryVname??void 0,Q.voipIndividualIncoming=$.voipIndividualIncoming??void 0,Q.quickRepliesQuery=$.quickRepliesQuery??void 0,Q.payments=$.payments??void 0,Q.stickerPackQuery=$.stickerPackQuery??void 0,Q.liveLocationsFinal=$.liveLocationsFinal??void 0,Q.labelsEdit=$.labelsEdit??void 0,Q.mediaUpload=$.mediaUpload??void 0,Q.mediaUploadRichQuickReplies=$.mediaUploadRichQuickReplies??void 0,Q.vnameV2=$.vnameV2??void 0,Q.videoPlaybackUrl=$.videoPlaybackUrl??void 0,Q.statusRanking=$.statusRanking??void 0,Q.voipIndividualVideo=$.voipIndividualVideo??void 0,Q.thirdPartyStickers=$.thirdPartyStickers??void 0,Q.frequentlyForwardedSetting=$.frequentlyForwardedSetting??void 0,Q.groupsV4JoinPermission=$.groupsV4JoinPermission??void 0,Q.recentStickers=$.recentStickers??void 0,Q.catalog=$.catalog??void 0,Q.starredStickers=$.starredStickers??void 0,Q.voipGroupCall=$.voipGroupCall??void 0,Q.templateMessage=$.templateMessage??void 0,Q.templateMessageInteractivity=$.templateMessageInteractivity??void 0,Q.ephemeralMessages=$.ephemeralMessages??void 0,Q.e2ENotificationSync=$.e2ENotificationSync??void 0,Q.recentStickersV2=$.recentStickersV2??void 0,Q.recentStickersV3=$.recentStickersV3??void 0,Q.userNotice=$.userNotice??void 0,Q.support=$.support??void 0,Q.groupUiiCleanup=$.groupUiiCleanup??void 0,Q.groupDogfoodingInternalOnly=$.groupDogfoodingInternalOnly??void 0,Q.settingsSync=$.settingsSync??void 0,Q.archiveV2=$.archiveV2??void 0,Q.ephemeralAllowGroupMembers=$.ephemeralAllowGroupMembers??void 0,Q.ephemeral24HDuration=$.ephemeral24HDuration??void 0,Q.mdForceUpgrade=$.mdForceUpgrade??void 0,Q.disappearingMode=$.disappearingMode??void 0,Q.externalMdOptInAvailable=$.externalMdOptInAvailable??void 0,Q.noDeleteMessageTimeLimit=$.noDeleteMessageTimeLimit??void 0,Q}};function oN(){return{}}var g={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();if($.message!==void 0)c.encode($.message,Q.uint32(18).fork()).join();if($.messageTimestamp!==void 0)Q.uint32(24).uint64($.messageTimestamp);if($.status!==void 0)Q.uint32(32).int32($.status);if($.participant!==void 0)Q.uint32(42).string($.participant);if($.messageC2STimestamp!==void 0)Q.uint32(48).uint64($.messageC2STimestamp);if($.ignore!==void 0)Q.uint32(128).bool($.ignore);if($.starred!==void 0)Q.uint32(136).bool($.starred);if($.broadcast!==void 0)Q.uint32(144).bool($.broadcast);if($.pushName!==void 0)Q.uint32(154).string($.pushName);if($.mediaCiphertextSha256!==void 0)Q.uint32(162).bytes($.mediaCiphertextSha256);if($.multicast!==void 0)Q.uint32(168).bool($.multicast);if($.urlText!==void 0)Q.uint32(176).bool($.urlText);if($.urlNumber!==void 0)Q.uint32(184).bool($.urlNumber);if($.messageStubType!==void 0)Q.uint32(192).int32($.messageStubType);if($.clearMedia!==void 0)Q.uint32(200).bool($.clearMedia);if($.messageStubParameters!==void 0&&$.messageStubParameters.length!==0)for(let q of $.messageStubParameters)Q.uint32(210).string(q);if($.duration!==void 0)Q.uint32(216).uint32($.duration);if($.labels!==void 0&&$.labels.length!==0)for(let q of $.labels)Q.uint32(226).string(q);if($.paymentInfo!==void 0)Z$.encode($.paymentInfo,Q.uint32(234).fork()).join();if($.finalLiveLocation!==void 0)M$.encode($.finalLiveLocation,Q.uint32(242).fork()).join();if($.quotedPaymentInfo!==void 0)Z$.encode($.quotedPaymentInfo,Q.uint32(250).fork()).join();if($.ephemeralStartTimestamp!==void 0)Q.uint32(256).uint64($.ephemeralStartTimestamp);if($.ephemeralDuration!==void 0)Q.uint32(264).uint32($.ephemeralDuration);if($.ephemeralOffToOn!==void 0)Q.uint32(272).bool($.ephemeralOffToOn);if($.ephemeralOutOfSync!==void 0)Q.uint32(280).bool($.ephemeralOutOfSync);if($.bizPrivacyStatus!==void 0)Q.uint32(288).int32($.bizPrivacyStatus);if($.verifiedBizName!==void 0)Q.uint32(298).string($.verifiedBizName);if($.mediaData!==void 0)t0.encode($.mediaData,Q.uint32(306).fork()).join();if($.photoChange!==void 0)l9.encode($.photoChange,Q.uint32(314).fork()).join();if($.userReceipt!==void 0&&$.userReceipt.length!==0)for(let q of $.userReceipt)PV.encode(q,Q.uint32(322).fork()).join();if($.reactions!==void 0&&$.reactions.length!==0)for(let q of $.reactions)r9.encode(q,Q.uint32(330).fork()).join();if($.quotedStickerData!==void 0)t0.encode($.quotedStickerData,Q.uint32(338).fork()).join();if($.futureproofData!==void 0)Q.uint32(346).bytes($.futureproofData);if($.statusPsa!==void 0)B6.encode($.statusPsa,Q.uint32(354).fork()).join();if($.pollUpdates!==void 0&&$.pollUpdates.length!==0)for(let q of $.pollUpdates)d9.encode(q,Q.uint32(362).fork()).join();if($.pollAdditionalMetadata!==void 0)w9.encode($.pollAdditionalMetadata,Q.uint32(370).fork()).join();if($.agentId!==void 0)Q.uint32(378).string($.agentId);if($.statusAlreadyViewed!==void 0)Q.uint32(384).bool($.statusAlreadyViewed);if($.messageSecret!==void 0)Q.uint32(394).bytes($.messageSecret);if($.keepInChat!==void 0)Z8.encode($.keepInChat,Q.uint32(402).fork()).join();if($.originalSelfAuthorUserJidString!==void 0)Q.uint32(410).string($.originalSelfAuthorUserJidString);if($.revokeMessageTimestamp!==void 0)Q.uint32(416).uint64($.revokeMessageTimestamp);if($.pinInChat!==void 0)p9.encode($.pinInChat,Q.uint32(434).fork()).join();if($.premiumMessageInfo!==void 0)n9.encode($.premiumMessageInfo,Q.uint32(442).fork()).join();if($.is1PBizBotMessage!==void 0)Q.uint32(448).bool($.is1PBizBotMessage);if($.isGroupHistoryMessage!==void 0)Q.uint32(456).bool($.isGroupHistoryMessage);if($.botMessageInvokerJid!==void 0)Q.uint32(466).string($.botMessageInvokerJid);if($.commentMetadata!==void 0)VJ.encode($.commentMetadata,Q.uint32(474).fork()).join();if($.eventResponses!==void 0&&$.eventResponses.length!==0)for(let q of $.eventResponses)SK.encode(q,Q.uint32(490).fork()).join();if($.reportingTokenInfo!==void 0)a9.encode($.reportingTokenInfo,Q.uint32(498).fork()).join();if($.newsletterServerId!==void 0)Q.uint32(504).uint64($.newsletterServerId);if($.eventAdditionalMetadata!==void 0)WK.encode($.eventAdditionalMetadata,Q.uint32(514).fork()).join();if($.isMentionedInStatus!==void 0)Q.uint32(520).bool($.isMentionedInStatus);if($.statusMentions!==void 0&&$.statusMentions.length!==0)for(let q of $.statusMentions)Q.uint32(530).string(q);if($.targetMessageId!==void 0)N.encode($.targetMessageId,Q.uint32(538).fork()).join();if($.messageAddOns!==void 0&&$.messageAddOns.length!==0)for(let q of $.messageAddOns)U9.encode(q,Q.uint32(546).fork()).join();if($.statusMentionMessageInfo!==void 0)N6.encode($.statusMentionMessageInfo,Q.uint32(554).fork()).join();if($.isSupportAiMessage!==void 0)Q.uint32(560).bool($.isSupportAiMessage);if($.statusMentionSources!==void 0&&$.statusMentionSources.length!==0)for(let q of $.statusMentionSources)Q.uint32(570).string(q);if($.supportAiCitations!==void 0&&$.supportAiCitations.length!==0)for(let q of $.supportAiCitations)aZ.encode(q,Q.uint32(578).fork()).join();if($.botTargetId!==void 0)Q.uint32(586).string($.botTargetId);if($.groupHistoryIndividualMessageInfo!==void 0)hK.encode($.groupHistoryIndividualMessageInfo,Q.uint32(594).fork()).join();if($.groupHistoryBundleInfo!==void 0)_K.encode($.groupHistoryBundleInfo,Q.uint32(602).fork()).join();if($.interactiveMessageAdditionalMetadata!==void 0)Q8.encode($.interactiveMessageAdditionalMetadata,Q.uint32(610).fork()).join();if($.quarantinedMessage!==void 0)g9.encode($.quarantinedMessage,Q.uint32(618).fork()).join();if($.nonJidMentions!==void 0)Q.uint32(624).uint32($.nonJidMentions);if($.hsmTag!==void 0)Q.uint32(634).string($.hsmTag);if($.ephemeralExpirationTimestamp!==void 0)Q.uint32(640).uint64($.ephemeralExpirationTimestamp);if($.scheduledMessageMetadata!==void 0)Q6.encode($.scheduledMessageMetadata,Q.uint32(650).fork()).join();if($.decisionId!==void 0)Q.uint32(658).string($.decisionId);if($.decisionSources!==void 0&&$.decisionSources.length!==0)for(let q of $.decisionSources)Q.uint32(666).string(q);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??oN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==18)break;K.message=c.decode(Z,Z.uint32(),K.message);continue}case 3:{if(J!==24)break;K.messageTimestamp=Z.uint64Value();continue}case 4:{if(J!==32)break;K.status=Z.int32();continue}case 5:{if(J!==42)break;K.participant=Z.string();continue}case 6:{if(J!==48)break;K.messageC2STimestamp=Z.uint64Value();continue}case 16:{if(J!==128)break;K.ignore=Z.bool();continue}case 17:{if(J!==136)break;K.starred=Z.bool();continue}case 18:{if(J!==144)break;K.broadcast=Z.bool();continue}case 19:{if(J!==154)break;K.pushName=Z.string();continue}case 20:{if(J!==162)break;K.mediaCiphertextSha256=Z.bytes();continue}case 21:{if(J!==168)break;K.multicast=Z.bool();continue}case 22:{if(J!==176)break;K.urlText=Z.bool();continue}case 23:{if(J!==184)break;K.urlNumber=Z.bool();continue}case 24:{if(J!==192)break;K.messageStubType=Z.int32();continue}case 25:{if(J!==200)break;K.clearMedia=Z.bool();continue}case 26:{if(J!==210)break;if(K.messageStubParameters===void 0)K.messageStubParameters=[];let V=Z.string();if(V!==void 0)K.messageStubParameters.push(V);continue}case 27:{if(J!==216)break;K.duration=Z.uint32();continue}case 28:{if(J!==226)break;if(K.labels===void 0)K.labels=[];let V=Z.string();if(V!==void 0)K.labels.push(V);continue}case 29:{if(J!==234)break;K.paymentInfo=Z$.decode(Z,Z.uint32(),K.paymentInfo);continue}case 30:{if(J!==242)break;K.finalLiveLocation=M$.decode(Z,Z.uint32(),K.finalLiveLocation);continue}case 31:{if(J!==250)break;K.quotedPaymentInfo=Z$.decode(Z,Z.uint32(),K.quotedPaymentInfo);continue}case 32:{if(J!==256)break;K.ephemeralStartTimestamp=Z.uint64Value();continue}case 33:{if(J!==264)break;K.ephemeralDuration=Z.uint32();continue}case 34:{if(J!==272)break;K.ephemeralOffToOn=Z.bool();continue}case 35:{if(J!==280)break;K.ephemeralOutOfSync=Z.bool();continue}case 36:{if(J!==288)break;K.bizPrivacyStatus=Z.int32();continue}case 37:{if(J!==298)break;K.verifiedBizName=Z.string();continue}case 38:{if(J!==306)break;K.mediaData=t0.decode(Z,Z.uint32(),K.mediaData);continue}case 39:{if(J!==314)break;K.photoChange=l9.decode(Z,Z.uint32(),K.photoChange);continue}case 40:{if(J!==322)break;if(K.userReceipt===void 0)K.userReceipt=[];let V=PV.decode(Z,Z.uint32());if(V!==void 0)K.userReceipt.push(V);continue}case 41:{if(J!==330)break;if(K.reactions===void 0)K.reactions=[];let V=r9.decode(Z,Z.uint32());if(V!==void 0)K.reactions.push(V);continue}case 42:{if(J!==338)break;K.quotedStickerData=t0.decode(Z,Z.uint32(),K.quotedStickerData);continue}case 43:{if(J!==346)break;K.futureproofData=Z.bytes();continue}case 44:{if(J!==354)break;K.statusPsa=B6.decode(Z,Z.uint32(),K.statusPsa);continue}case 45:{if(J!==362)break;if(K.pollUpdates===void 0)K.pollUpdates=[];let V=d9.decode(Z,Z.uint32());if(V!==void 0)K.pollUpdates.push(V);continue}case 46:{if(J!==370)break;K.pollAdditionalMetadata=w9.decode(Z,Z.uint32(),K.pollAdditionalMetadata);continue}case 47:{if(J!==378)break;K.agentId=Z.string();continue}case 48:{if(J!==384)break;K.statusAlreadyViewed=Z.bool();continue}case 49:{if(J!==394)break;K.messageSecret=Z.bytes();continue}case 50:{if(J!==402)break;K.keepInChat=Z8.decode(Z,Z.uint32(),K.keepInChat);continue}case 51:{if(J!==410)break;K.originalSelfAuthorUserJidString=Z.string();continue}case 52:{if(J!==416)break;K.revokeMessageTimestamp=Z.uint64Value();continue}case 54:{if(J!==434)break;K.pinInChat=p9.decode(Z,Z.uint32(),K.pinInChat);continue}case 55:{if(J!==442)break;K.premiumMessageInfo=n9.decode(Z,Z.uint32(),K.premiumMessageInfo);continue}case 56:{if(J!==448)break;K.is1PBizBotMessage=Z.bool();continue}case 57:{if(J!==456)break;K.isGroupHistoryMessage=Z.bool();continue}case 58:{if(J!==466)break;K.botMessageInvokerJid=Z.string();continue}case 59:{if(J!==474)break;K.commentMetadata=VJ.decode(Z,Z.uint32(),K.commentMetadata);continue}case 61:{if(J!==490)break;if(K.eventResponses===void 0)K.eventResponses=[];let V=SK.decode(Z,Z.uint32());if(V!==void 0)K.eventResponses.push(V);continue}case 62:{if(J!==498)break;K.reportingTokenInfo=a9.decode(Z,Z.uint32(),K.reportingTokenInfo);continue}case 63:{if(J!==504)break;K.newsletterServerId=Z.uint64Value();continue}case 64:{if(J!==514)break;K.eventAdditionalMetadata=WK.decode(Z,Z.uint32(),K.eventAdditionalMetadata);continue}case 65:{if(J!==520)break;K.isMentionedInStatus=Z.bool();continue}case 66:{if(J!==530)break;if(K.statusMentions===void 0)K.statusMentions=[];let V=Z.string();if(V!==void 0)K.statusMentions.push(V);continue}case 67:{if(J!==538)break;K.targetMessageId=N.decode(Z,Z.uint32(),K.targetMessageId);continue}case 68:{if(J!==546)break;if(K.messageAddOns===void 0)K.messageAddOns=[];let V=U9.decode(Z,Z.uint32());if(V!==void 0)K.messageAddOns.push(V);continue}case 69:{if(J!==554)break;K.statusMentionMessageInfo=N6.decode(Z,Z.uint32(),K.statusMentionMessageInfo);continue}case 70:{if(J!==560)break;K.isSupportAiMessage=Z.bool();continue}case 71:{if(J!==570)break;if(K.statusMentionSources===void 0)K.statusMentionSources=[];let V=Z.string();if(V!==void 0)K.statusMentionSources.push(V);continue}case 72:{if(J!==578)break;if(K.supportAiCitations===void 0)K.supportAiCitations=[];let V=aZ.decode(Z,Z.uint32());if(V!==void 0)K.supportAiCitations.push(V);continue}case 73:{if(J!==586)break;K.botTargetId=Z.string();continue}case 74:{if(J!==594)break;K.groupHistoryIndividualMessageInfo=hK.decode(Z,Z.uint32(),K.groupHistoryIndividualMessageInfo);continue}case 75:{if(J!==602)break;K.groupHistoryBundleInfo=_K.decode(Z,Z.uint32(),K.groupHistoryBundleInfo);continue}case 76:{if(J!==610)break;K.interactiveMessageAdditionalMetadata=Q8.decode(Z,Z.uint32(),K.interactiveMessageAdditionalMetadata);continue}case 77:{if(J!==618)break;K.quarantinedMessage=g9.decode(Z,Z.uint32(),K.quarantinedMessage);continue}case 78:{if(J!==624)break;K.nonJidMentions=Z.uint32();continue}case 79:{if(J!==634)break;K.hsmTag=Z.string();continue}case 80:{if(J!==640)break;K.ephemeralExpirationTimestamp=Z.uint64Value();continue}case 81:{if(J!==650)break;K.scheduledMessageMetadata=Q6.decode(Z,Z.uint32(),K.scheduledMessageMetadata);continue}case 82:{if(J!==658)break;K.decisionId=Z.string();continue}case 83:{if(J!==666)break;if(K.decisionSources===void 0)K.decisionSources=[];let V=Z.string();if(V!==void 0)K.decisionSources.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return g.fromPartial($??{})},fromPartial($){let Q=oN();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q.message=$.message!==void 0&&$.message!==null?c.fromPartial($.message):void 0,Q.messageTimestamp=$.messageTimestamp??void 0,Q.status=$.status??void 0,Q.participant=$.participant??void 0,Q.messageC2STimestamp=$.messageC2STimestamp??void 0,Q.ignore=$.ignore??void 0,Q.starred=$.starred??void 0,Q.broadcast=$.broadcast??void 0,Q.pushName=$.pushName??void 0,Q.mediaCiphertextSha256=$.mediaCiphertextSha256??void 0,Q.multicast=$.multicast??void 0,Q.urlText=$.urlText??void 0,Q.urlNumber=$.urlNumber??void 0,Q.messageStubType=$.messageStubType??void 0,Q.clearMedia=$.clearMedia??void 0,Q.messageStubParameters=$.messageStubParameters?.map((q)=>q)||void 0,Q.duration=$.duration??void 0,Q.labels=$.labels?.map((q)=>q)||void 0,Q.paymentInfo=$.paymentInfo!==void 0&&$.paymentInfo!==null?Z$.fromPartial($.paymentInfo):void 0,Q.finalLiveLocation=$.finalLiveLocation!==void 0&&$.finalLiveLocation!==null?M$.fromPartial($.finalLiveLocation):void 0,Q.quotedPaymentInfo=$.quotedPaymentInfo!==void 0&&$.quotedPaymentInfo!==null?Z$.fromPartial($.quotedPaymentInfo):void 0,Q.ephemeralStartTimestamp=$.ephemeralStartTimestamp??void 0,Q.ephemeralDuration=$.ephemeralDuration??void 0,Q.ephemeralOffToOn=$.ephemeralOffToOn??void 0,Q.ephemeralOutOfSync=$.ephemeralOutOfSync??void 0,Q.bizPrivacyStatus=$.bizPrivacyStatus??void 0,Q.verifiedBizName=$.verifiedBizName??void 0,Q.mediaData=$.mediaData!==void 0&&$.mediaData!==null?t0.fromPartial($.mediaData):void 0,Q.photoChange=$.photoChange!==void 0&&$.photoChange!==null?l9.fromPartial($.photoChange):void 0,Q.userReceipt=$.userReceipt?.map((q)=>PV.fromPartial(q))||void 0,Q.reactions=$.reactions?.map((q)=>r9.fromPartial(q))||void 0,Q.quotedStickerData=$.quotedStickerData!==void 0&&$.quotedStickerData!==null?t0.fromPartial($.quotedStickerData):void 0,Q.futureproofData=$.futureproofData??void 0,Q.statusPsa=$.statusPsa!==void 0&&$.statusPsa!==null?B6.fromPartial($.statusPsa):void 0,Q.pollUpdates=$.pollUpdates?.map((q)=>d9.fromPartial(q))||void 0,Q.pollAdditionalMetadata=$.pollAdditionalMetadata!==void 0&&$.pollAdditionalMetadata!==null?w9.fromPartial($.pollAdditionalMetadata):void 0,Q.agentId=$.agentId??void 0,Q.statusAlreadyViewed=$.statusAlreadyViewed??void 0,Q.messageSecret=$.messageSecret??void 0,Q.keepInChat=$.keepInChat!==void 0&&$.keepInChat!==null?Z8.fromPartial($.keepInChat):void 0,Q.originalSelfAuthorUserJidString=$.originalSelfAuthorUserJidString??void 0,Q.revokeMessageTimestamp=$.revokeMessageTimestamp??void 0,Q.pinInChat=$.pinInChat!==void 0&&$.pinInChat!==null?p9.fromPartial($.pinInChat):void 0,Q.premiumMessageInfo=$.premiumMessageInfo!==void 0&&$.premiumMessageInfo!==null?n9.fromPartial($.premiumMessageInfo):void 0,Q.is1PBizBotMessage=$.is1PBizBotMessage??void 0,Q.isGroupHistoryMessage=$.isGroupHistoryMessage??void 0,Q.botMessageInvokerJid=$.botMessageInvokerJid??void 0,Q.commentMetadata=$.commentMetadata!==void 0&&$.commentMetadata!==null?VJ.fromPartial($.commentMetadata):void 0,Q.eventResponses=$.eventResponses?.map((q)=>SK.fromPartial(q))||void 0,Q.reportingTokenInfo=$.reportingTokenInfo!==void 0&&$.reportingTokenInfo!==null?a9.fromPartial($.reportingTokenInfo):void 0,Q.newsletterServerId=$.newsletterServerId??void 0,Q.eventAdditionalMetadata=$.eventAdditionalMetadata!==void 0&&$.eventAdditionalMetadata!==null?WK.fromPartial($.eventAdditionalMetadata):void 0,Q.isMentionedInStatus=$.isMentionedInStatus??void 0,Q.statusMentions=$.statusMentions?.map((q)=>q)||void 0,Q.targetMessageId=$.targetMessageId!==void 0&&$.targetMessageId!==null?N.fromPartial($.targetMessageId):void 0,Q.messageAddOns=$.messageAddOns?.map((q)=>U9.fromPartial(q))||void 0,Q.statusMentionMessageInfo=$.statusMentionMessageInfo!==void 0&&$.statusMentionMessageInfo!==null?N6.fromPartial($.statusMentionMessageInfo):void 0,Q.isSupportAiMessage=$.isSupportAiMessage??void 0,Q.statusMentionSources=$.statusMentionSources?.map((q)=>q)||void 0,Q.supportAiCitations=$.supportAiCitations?.map((q)=>aZ.fromPartial(q))||void 0,Q.botTargetId=$.botTargetId??void 0,Q.groupHistoryIndividualMessageInfo=$.groupHistoryIndividualMessageInfo!==void 0&&$.groupHistoryIndividualMessageInfo!==null?hK.fromPartial($.groupHistoryIndividualMessageInfo):void 0,Q.groupHistoryBundleInfo=$.groupHistoryBundleInfo!==void 0&&$.groupHistoryBundleInfo!==null?_K.fromPartial($.groupHistoryBundleInfo):void 0,Q.interactiveMessageAdditionalMetadata=$.interactiveMessageAdditionalMetadata!==void 0&&$.interactiveMessageAdditionalMetadata!==null?Q8.fromPartial($.interactiveMessageAdditionalMetadata):void 0,Q.quarantinedMessage=$.quarantinedMessage!==void 0&&$.quarantinedMessage!==null?g9.fromPartial($.quarantinedMessage):void 0,Q.nonJidMentions=$.nonJidMentions??void 0,Q.hsmTag=$.hsmTag??void 0,Q.ephemeralExpirationTimestamp=$.ephemeralExpirationTimestamp??void 0,Q.scheduledMessageMetadata=$.scheduledMessageMetadata!==void 0&&$.scheduledMessageMetadata!==null?Q6.fromPartial($.scheduledMessageMetadata):void 0,Q.decisionId=$.decisionId??void 0,Q.decisionSources=$.decisionSources?.map((q)=>q)||void 0,Q}};function iN(){return{}}var Y0={encode($,Q=new z){if($.key!==void 0)N.encode($.key,Q.uint32(10).fork()).join();if($.messageBytes!==void 0)Q.uint32(18).bytes($.messageBytes);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??iN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=N.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==18)break;K.messageBytes=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return Y0.fromPartial($??{})},fromPartial($){let Q=iN();return Q.key=$.key!==void 0&&$.key!==null?N.fromPartial($.key):void 0,Q.messageBytes=$.messageBytes??void 0,Q}};function mN(){return{}}var ME={encode($,Q=new z){if($.timestamp!==void 0)Q.uint32(16).uint64($.timestamp);if($.unreadChats!==void 0)Q.uint32(24).uint32($.unreadChats);if($.notifyMessageCount!==void 0)Q.uint32(32).uint32($.notifyMessageCount);if($.notifyMessages!==void 0&&$.notifyMessages.length!==0)for(let q of $.notifyMessages)g.encode(q,Q.uint32(42).fork()).join();return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??mN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 2:{if(J!==16)break;K.timestamp=Z.uint64Value();continue}case 3:{if(J!==24)break;K.unreadChats=Z.uint32();continue}case 4:{if(J!==32)break;K.notifyMessageCount=Z.uint32();continue}case 5:{if(J!==42)break;if(K.notifyMessages===void 0)K.notifyMessages=[];let V=g.decode(Z,Z.uint32());if(V!==void 0)K.notifyMessages.push(V);continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return ME.fromPartial($??{})},fromPartial($){let Q=mN();return Q.timestamp=$.timestamp??void 0,Q.unreadChats=$.unreadChats??void 0,Q.notifyMessageCount=$.notifyMessageCount??void 0,Q.notifyMessages=$.notifyMessages?.map((q)=>g.fromPartial(q))||void 0,Q}};function gN(){return{}}var xV={encode($,Q=new z){if($.keyBytes!==void 0)Q.uint32(10).bytes($.keyBytes);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??gN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.keyBytes=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return xV.fromPartial($??{})},fromPartial($){let Q=gN();return Q.keyBytes=$.keyBytes??void 0,Q}};function rN(){return{}}var WE={encode($,Q=new z){if($.prefixedKey!==void 0)Q.uint32(10).bytes($.prefixedKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??rN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.prefixedKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return WE.fromPartial($??{})},fromPartial($){let Q=rN();return Q.prefixedKey=$.prefixedKey??void 0,Q}};function tN(){return{}}var kV={encode($,Q=new z){if($.keyBytes!==void 0)Q.uint32(10).bytes($.keyBytes);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??tN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.keyBytes=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return kV.fromPartial($??{})},fromPartial($){let Q=tN();return Q.keyBytes=$.keyBytes??void 0,Q}};function aN(){return{}}var SE={encode($,Q=new z){if($.prefixedKey!==void 0)Q.uint32(10).bytes($.prefixedKey);return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??aN();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.prefixedKey=Z.bytes();continue}}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return SE.fromPartial($??{})},fromPartial($){let Q=aN();return Q.prefixedKey=$.prefixedKey??void 0,Q}};var i2={Message:c,WebMessageInfo:g,HistorySync:nV,SyncActionData:i$,ClientPayload:jV,AdvSignedDeviceIdentity:hV,AdvSignedKeyIndexList:pV,AdvDeviceIdentity:_V,AdvSignedDeviceIdentityHmac:lV,HandshakeMessage:dV,SyncdRecord:j0,SyncdMutation:w0,SyncdMutations:rV,SyncdPatch:tV,SyncdSnapshot:aV,ExitCode:b$,SyncActionValue:m$,DeviceProps:cV,SenderKeyDistributionMessage:iV,SenderKeyMessage:mV,ServerErrorReceipt:gV,CertChain:uV,"CertChain.NoiseCertificate":h0,"CertChain.NoiseCertificate.Details":wV,ExternalBlobReference:o$,LidMigrationMappingSyncPayload:bV,MediaRetryNotification:oV,VerifiedNameCertificate:c0,"VerifiedNameCertificate.Details":sV,"Message.PollVoteMessage":u0,"Message.EventResponseMessage":p0};var m2=NV;function Oz($){let Q=i2[$];if(Q)return Q;let q=$.replace(/\./g,"_"),Z=m2[q];if(Z&&typeof Z==="object"&&"encode"in Z)return Z;throw Error(`unknown proto type: ${$}`)}function eV($){if($===null)return;if(TV($))return GQ($);if(typeof $!=="object")return $;if(ArrayBuffer.isView($)||$ instanceof ArrayBuffer)return $;if(Array.isArray($)){let X;for(let K=0;K<$.length;K++){let J=eV($[K]);if(J!==$[K])(X??=$.slice())[K]=J}return X??$}let Q=$,q=Object.getPrototypeOf(Q);if(q!==Object.prototype&&q!==null){let X={};for(let K of Object.keys(Q)){let J=eV(Q[K]);if(J!==void 0)X[K]=J}return X}let Z;for(let X in Q){let K=eV(Q[X]);if(K!==Q[X])(Z??={...Q})[X]=K}return Z??$}function Rz($,Q,q){if(typeof $==="string"){let Z=IV($);if(Z>=0)q.push({path:Q,index:Z,codeUnit:$.charCodeAt(Z)});return}if(typeof $!=="object"||$===null)return;if(ArrayBuffer.isView($)||$ instanceof ArrayBuffer)return;if(Array.isArray($)){for(let Z=0;Z<$.length;Z++)Rz($[Z],`${Q}[${Z}]`,q);return}for(let[Z,X]of Object.entries($)){if(Q!==""){let K=IV(Z);if(K>=0)q.push({path:`${Q} (map key)`,index:K,codeUnit:Z.charCodeAt(K)})}Rz(X,Q===""?Z:`${Q}.${Z}`,q)}}function g2($,Q){try{return $.fromPartial(Q)}catch{return Q}}function r2($,Q){let q=[];Rz($,"",q);let Z=q.filter((K)=>K.index===Q.index&&K.codeUnit===Q.codeUnit);return new Set(Z.map((K)=>K.path)).size===1?Z[0].path:void 0}function Az($,Q){let q=Oz($),Z=eV(Q??{});try{return q.encode(Z).finish()}catch(X){if(X instanceof a$&&X.path===void 0){let K=r2(g2(q,Z),X);if(K!==void 0)throw new a$(X.index,X.codeUnit,K)}throw X}}function t2($,Q,q){let Z=Oz($);if(q===void 0)return Z.decode(Q);let X=new UQ(Q),K=Z.decode(X,Q.length);return q.invalidUtf8Fields=X.invalidUtf8Fields,K}var IE=1;function a2($,Q,q,Z){if(q.length<IE)throw RangeError("protobuf batch offsets must contain the leading sentinel");if(q[0]!==0)throw RangeError("protobuf batch offsets must start at zero");let X=q.length-IE;for(let C=0;C<X;C++)if(q[C+1]<q[C])throw RangeError("protobuf batch offsets must be monotonic");if(q[X]!==Q.length)throw RangeError("protobuf batch offsets must end at the data length");let K=Oz($),J=Z===void 0?new Y(Q):new UQ(Q),V=Array(X);for(let C=0;C<X;C++){let F=q[C],A=q[C+1];if(J.pos=F,V[C]=K.decode(J,A-F),J.pos!==A)throw RangeError("protobuf decoder did not consume the delimited entry")}if(Z!==void 0)Z.invalidUtf8Fields=J.invalidUtf8Fields;return V}var Qz=new TextDecoder("utf-8",{ignoreBOM:!0}),s2=new Uint8Array(0),BV=new TextEncoder;function e2($){let Q=(Z)=>{let X=$[Z];if(X===void 0)throw RangeError("packed record references a missing table entry");return X};return{required:Q,optional:(Z)=>Z===0?void 0:Q(Z-1)}}var e$=10,yE=0,vE=1,fE=2,_E=3,hE=4,lE=5,pE=6,uE=7,wE=8,jE=9,cE=1,dE=2,nE=4,bE=8,d$=24,oE=0,iE=4,mE=8,gE=12,rE=16,tE=20;class Ez{region="";cursor=0;units=0;isAscii=!0;bytes=s2;at=0;length=0;whole=!1;read($,Q,q,Z){if(this.cursor=0,this.units=0,this.region="",this.isAscii=!0,this.bytes=$,this.at=Q,this.length=q,this.whole=q>0&&q<=JM&&(Z>1||q>=TE),!this.whole)return;if(q>=TE){this.region=Qz.decode($.subarray(Q,Q+q)),this.isAscii=this.region.length===q;return}let X="",K=Q,J=Q+q,V=Q+(q/4|0)*4;while(K<V){let C=$[K],F=$[K+1],A=$[K+2],E=$[K+3];if(((C|F|A|E)&128)!==0)break;X+=String.fromCharCode(C,F,A,E),K+=4}if(K===V)while(K<J){let C=$[K];if(C>=128)break;X+=String.fromCharCode(C),K++}if(K===J){this.region=X;return}this.isAscii=!1,this.region=Qz.decode($.subarray(Q,Q+q))}take($){if($===0)return"";if(!Number.isInteger($)||$<0||this.cursor+$>this.length)throw RangeError("packed batch value runs past its string region");let Q=this.cursor;if(this.cursor+=$,!this.whole)return Qz.decode(this.bytes.subarray(this.at+Q,this.at+this.cursor));if(this.isAscii)return this.region.substring(Q,this.cursor);let q=this.region,Z=this.units,X=Z,K=0;while(K<$&&X<q.length){let J=q.charCodeAt(X);if(J<128)K+=1,X+=1;else if(J<2048)K+=2,X+=1;else if(J>=55296&&J<56320)K+=4,X+=2;else K+=3,X+=1}return this.units=X,q.substring(Z,X)}}function $M($){return($.byteOffset+d$)%8===0?$:new Uint8Array($)}var $z=[];function QM($){let Q=$M($);if(Q.byteLength<d$)throw RangeError("message wire batch is shorter than its header");let q=new DataView(Q.buffer,Q.byteOffset,d$),Z=q.getUint32(oE,!0),X=q.getUint32(iE,!0),K=q.getUint32(mE,!0),J=q.getUint32(gE,!0),V=q.getUint32(rE,!0),C=q.getUint32(tE,!0);if(V!==e$)throw RangeError(`message wire batch record width ${V} does not match the expected ${e$}`);let F=Z*V*8,A=(Z+1)*4,E=(X+1)*4,h=d$+F+A+E+K+J;if(Q.byteLength<h)throw RangeError(`message wire batch is truncated: ${Q.byteLength} bytes, expected ${h}`);let T=d$,I=new Float64Array(Q.buffer,Q.byteOffset+T,Z*V);T+=F;let w=new Uint32Array(Q.buffer,Q.byteOffset+T,Z+1);T+=A;let M=new Uint32Array(Q.buffer,Q.byteOffset+T,X+1);T+=E;let D0=Q.subarray(T,T+K);T+=K;let q0=T,v=M[X];if(v>J)throw RangeError("message wire batch string definitions run past its string region");if(M[0]!==0)throw RangeError("message wire batch definition offsets must start at zero");for(let l=0;l<X;l++)if(M[l+1]<M[l])throw RangeError("message wire batch definition offsets do not ascend");if((C&1)!==0)$z.length=0;for(let l=0;l<X;l++)$z.push(Qz.decode(Q.subarray(q0+M[l],q0+M[l+1])));let X0=new Ez;X0.read(Q,q0+v,J-v,Z);let m=v,u=(l)=>{let U0=m+l;if(U0>J)throw RangeError("message wire batch inline value runs past its string region");return m=U0,X0.take(l)},qz=(l)=>l===0?void 0:u(l-1),{required:$Q,optional:QQ}=e2($z),RV=Array(Z);for(let l=0;l<Z;l++){let U0=l*V,OV=I[U0+uE];RV[l]={chat:$Q(I[U0+yE]),sender:$Q(I[U0+vE]),senderAlt:QQ(I[U0+fE]),recipientAlt:QQ(I[U0+_E]),isFromMe:(OV&cE)!==0,isGroup:(OV&dE)!==0,id:u(I[U0+hE]),timestamp:I[U0+pE],pushName:$Q(I[U0+lE]),isViewOnce:(OV&nE)!==0,isOffline:(OV&bE)!==0,unavailableRequestId:qz(I[U0+wE]),edit:QQ(I[U0+jE])}}if((C&2)!==0)$z.length=0;return{messageData:D0,messageOffsets:w,infos:RV}}class aE{cache=new Map;held=0;cacheBytes=0;flags=1;encode($){try{return this.encodeBatch($)}catch(Q){throw this.cache.clear(),this.held=0,this.cacheBytes=0,this.flags=1,Q}}encodeBatch($){let Q=[],q=[],Z=(v)=>{let X0=this.cache.get(v);if(X0!==void 0)return X0;let m=this.held+Q.length,u=BV.encode(v);return this.cache.set(v,m),this.cacheBytes+=u.byteLength,Q.push(u),m},X=(v)=>v===void 0?0:Z(v)+1,K=(v)=>{let X0=BV.encode(v);return q.push(X0),X0.byteLength},J=(v)=>v===void 0?0:K(v)+1,V=new Float64Array($.length*e$),C=new Uint32Array($.length+1),F=0;for(let v=0;v<$.length;v++){let{payload:X0,info:m}=$[v];F+=X0.byteLength,C[v+1]=F;let u=v*e$;V[u+yE]=Z(m.chat),V[u+vE]=Z(m.sender),V[u+fE]=X(m.senderAlt),V[u+_E]=X(m.recipientAlt),V[u+lE]=Z(m.pushName),V[u+pE]=m.timestamp,V[u+jE]=X(m.edit),V[u+uE]=(m.isFromMe?cE:0)|(m.isGroup?dE:0)|(m.isViewOnce?nE:0)|(m.isOffline?bE:0),V[u+hE]=K(m.id),V[u+wE]=J(m.unavailableRequestId)}let A=new Uint32Array(Q.length+1),E=0;for(let v=0;v<Q.length;v++)E+=Q[v].byteLength,A[v+1]=E;let h=E;for(let v of q)h+=v.byteLength;let T=d$+V.byteLength+C.byteLength+A.byteLength+F+h,I=new Uint8Array(T),w=new DataView(I.buffer,0,d$);w.setUint32(oE,$.length,!0),w.setUint32(iE,Q.length,!0),w.setUint32(mE,F,!0),w.setUint32(gE,h,!0),w.setUint32(rE,e$,!0);let M=this.cache.size>=4096||this.cacheBytes>=65536;w.setUint32(tE,this.flags|(M?2:0),!0);let D0=d$,q0=(v)=>{I.set(v,D0),D0+=v.byteLength};q0(new Uint8Array(V.buffer,V.byteOffset,V.byteLength)),q0(new Uint8Array(C.buffer,C.byteOffset,C.byteLength)),q0(new Uint8Array(A.buffer,A.byteOffset,A.byteLength));for(let{payload:v}of $)q0(v);for(let v of Q)q0(v);for(let v of q)q0(v);if(this.held+=Q.length,this.flags=0,M)this.cache.clear(),this.held=0,this.cacheBytes=0,this.flags=1;return I}}function ZM($){return new aE().encode($)}var Zz=20,TE=100,JM=4096,KM=65535,sE=1,eE=2,$2=4,Q2=8;class Mz{strings=[];jids=[];view;cursor=0;stringRegion=new Ez;begin($){if(this.view=new DataView($.buffer,$.byteOffset,$.byteLength),$.byteLength<Zz)throw RangeError("packed batch is shorter than its header");let Q=this.view.getUint32(0,!0),q=this.view.getUint32(4,!0),Z=this.view.getUint32(8,!0),X=this.view.getUint32(12,!0);if((this.view.getUint32(16,!0)&1)!==0)this.strings.length=0,this.jids.length=0;let J=Zz,V=J;J+=q*4;let C=J;J+=Z*11;let F=J,A=$.byteLength-X;if(A<F)throw RangeError("packed batch regions overlap");this.stringRegion.read($,A,X,q+Q);for(let E=0;E<q;E++){let h=V+E*4,T=this.view.getUint16(h,!0);this.strings[T]=this.stringRegion.take(this.view.getUint16(h+2,!0))}for(let E=0;E<Z;E++){let h=C+E*11,T=this.view.getUint16(h,!0),I=this.strings[this.view.getUint16(h+2,!0)],w=this.strings[this.view.getUint16(h+4,!0)];if(I===void 0||w===void 0)throw RangeError("packed jid references a missing string slot");this.jids[T]=Object.freeze({user:I,server:w,agent:this.view.getUint8(h+6),device:this.view.getUint16(h+7,!0),integrator:this.view.getUint16(h+9,!0)})}return this.cursor=F,Q}u8(){return this.view.getUint8(this.cursor++)}f64(){let $=this.view.getFloat64(this.cursor,!0);return this.cursor+=8,$}inline(){let $=this.view.getUint16(this.cursor,!0);return this.cursor+=2,this.stringRegion.take($)}u16(){return this.slot()}slot(){let $=this.view.getUint16(this.cursor,!0);return this.cursor+=2,$}str(){let $=this.strings[this.slot()];if($===void 0)throw RangeError("packed record references a missing string slot");return $}strOptional(){let $=this.slot();if($===0)return;let Q=this.strings[$-1];if(Q===void 0)throw RangeError("packed record references a missing string slot");return Q}jid(){let $=this.jids[this.slot()];if($===void 0)throw RangeError("packed record references a missing jid slot");return $}jidOptional(){let $=this.slot();if($===0)return;let Q=this.jids[$-1];if(Q===void 0)throw RangeError("packed record references a missing jid slot");return Q}}var C0=new Mz,s$=new Mz;function qM($){let Q=C0.begin($),q=Array(Q);for(let Z=0;Z<Q;Z++){let X=C0.u8(),K=C0.jid(),J=C0.jid(),V=C0.jidOptional(),C=C0.jidOptional(),F=C0.jidOptional(),A=C0.jidOptional(),E=C0.strOptional(),h=C0.str(),T=C0.f64(),I=C0.u16(),w=Array(I);for(let M=0;M<I;M++)w[M]=C0.inline();q[Z]={source:{chat:K,sender:J,is_from_me:(X&sE)!==0,is_group:(X&eE)!==0,addressing_mode:E,sender_alt:V,recipient_alt:C,broadcast_list_owner:F,recipient:A},message_ids:w,timestamp:T,type:(X&Q2)!==0?{Other:h}:h,offline:(X&$2)!==0}}return q}function XM($){let Q=s$.begin($),q=Array(Q);for(let Z=0;Z<Q;Z++){let X=s$.strOptional(),K=s$.jidOptional(),J=s$.strOptional(),V=s$.f64();q[Z]={id:s$.inline(),class:X,from:K,timestamp:Number.isNaN(V)?void 0:V,error:J}}return q}class Wz{stringSlots=new Map;jidSlots=new Map;newStrings=[];newJids=[];records=[];definitions=[];inline=[];recordCount=0;cacheStr($){let Q=this.stringSlots.get($);if(Q!==void 0)return Q;let q=this.stringSlots.size;return this.stringSlots.set($,q),this.newStrings.push([q,BV.encode($).length]),this.definitions.push($),q}cacheStrOptional($){return $===void 0?0:this.cacheStr($)+1}cacheJid($){let Q=[$.user,$.server,$.agent,$.device,$.integrator].join(" "),q=this.jidSlots.get(Q);if(q!==void 0)return q;let Z=this.cacheStr($.user),X=this.cacheStr($.server),K=this.jidSlots.size;return this.jidSlots.set(Q,K),this.newJids.push([K,Z,X,$.agent,$.device,$.integrator]),K}cacheJidOptional($){return $===void 0?0:this.cacheJid($)+1}u8($){this.records.push($&255)}slot($){this.records.push($&255,$>>8&255)}f64($){let Q=new DataView(new ArrayBuffer(8));Q.setFloat64(0,$,!0);for(let q=0;q<8;q++)this.records.push(Q.getUint8(q))}writeInline($){let Q=BV.encode($).length;this.records.push(Q&255,Q>>8&255),this.inline.push($)}endRecord(){this.recordCount++}finish(){let $=BV.encode(this.definitions.join("")+this.inline.join("")),Q=Zz+this.newStrings.length*4+this.newJids.length*11+this.records.length+$.length,q=new Uint8Array(Q),Z=new DataView(q.buffer);Z.setUint32(0,this.recordCount,!0),Z.setUint32(4,this.newStrings.length,!0),Z.setUint32(8,this.newJids.length,!0),Z.setUint32(12,$.length,!0),Z.setUint32(16,1,!0);let X=Zz;for(let[K,J]of this.newStrings)Z.setUint16(X,K,!0),Z.setUint16(X+2,J,!0),X+=4;for(let[K,J,V,C,F,A]of this.newJids)Z.setUint16(X,K,!0),Z.setUint16(X+2,J,!0),Z.setUint16(X+4,V,!0),Z.setUint8(X+6,C),Z.setUint16(X+7,F,!0),Z.setUint16(X+9,A,!0),X+=11;return q.set(this.records,X),X+=this.records.length,q.set($,X),q}}function YM($){let Q=new Wz;for(let q of $){let Z=typeof q.type!=="string",X=Q.cacheJid(q.source.chat),K=Q.cacheJid(q.source.sender),J=Q.cacheJidOptional(q.source.sender_alt),V=Q.cacheJidOptional(q.source.recipient_alt),C=Q.cacheJidOptional(q.source.broadcast_list_owner),F=Q.cacheJidOptional(q.source.recipient),A=Q.cacheStrOptional(q.source.addressing_mode),E=Q.cacheStr(typeof q.type==="string"?q.type:q.type.Other);Q.u8((q.source.is_from_me?sE:0)|(q.source.is_group?eE:0)|(q.offline?$2:0)|(Z?Q2:0));for(let h of[X,K,J,V,C,F,A,E])Q.slot(h);if(Q.f64(q.timestamp),q.message_ids.length>KM)throw RangeError("receipt carries more message ids than the wire format holds");Q.slot(q.message_ids.length);for(let h of q.message_ids)Q.writeInline(h);Q.endRecord()}return Q.finish()}function VM($){let Q=new Wz;for(let q of $)Q.slot(Q.cacheStrOptional(q.class)),Q.slot(Q.cacheJidOptional(q.from)),Q.slot(Q.cacheStrOptional(q.error)),Q.f64(q.timestamp??Number.NaN),Q.writeInline(q.id),Q.endRecord();return Q.finish()}var zM=1,HM=2,GM=3,Jz=8,Kz=8;function UM($){if($.byteLength<Jz)throw RangeError("event wire envelope is shorter than its header");let Q=new DataView($.buffer,$.byteOffset,$.byteLength),q=Q.getUint32(0,!0),Z=Array(q),X=Jz;for(let K=0;K<q;K++){if(X+Kz>$.byteLength)throw RangeError("event wire envelope is truncated");let J=Q.getUint32(X,!0),V=Q.getUint32(X+4,!0);if(X+=Kz,X+V>$.byteLength)throw RangeError("event wire envelope segment is truncated");Z[K]={kind:J,batch:$.subarray(X,X+V)},X=X+V+7&-8}return Z}function CM($){let Q=Jz;for(let{batch:K}of $)Q=Q+Kz+K.byteLength+7&-8;let q=new Uint8Array(Q),Z=new DataView(q.buffer);Z.setUint32(0,$.length,!0);let X=Jz;for(let{kind:K,batch:J}of $)Z.setUint32(X,K,!0),Z.setUint32(X+4,J.byteLength,!0),X+=Kz,q.set(J,X),X=X+J.byteLength+7&-8;return q}var Iz=($)=>typeof $==="object"&&$!==null&&typeof $.encode==="function"&&typeof $.decode==="function",J2=($)=>typeof $==="object"&&$!==null&&!Iz($);function DM(){return this}var Z2=($)=>{if($&&typeof $==="object"&&!("toJSON"in $))Object.defineProperty($,"toJSON",{value:DM,enumerable:!1,writable:!0,configurable:!0})},FM=($,Q)=>({encode(q){return{finish(){return Az($,q)}}},decode(q,Z){let X=q instanceof Y?q:new Y(q instanceof Uint8Array?q:ArrayBuffer.isView(q)?new Uint8Array(q.buffer,q.byteOffset,q.byteLength):new Uint8Array(q)),K=Q.decode(X,Z);return Z2(K),K},create(q){return q||{}},fromObject(q){if(q&&typeof q==="object")Z2(q);return q||{}},toObject(q){return q},fromPartial:Q.fromPartial?.bind(Q)??((q)=>q||{})}),PM=()=>({create($){return $||{}},fromObject($){return $||{}}}),Sz="_",LM=".",xM="protobufPackage",kM={ADVKeyIndexList:"ADVSignedKeyIndexList"},NM=["Message","WebMessageInfo","ContextInfo","SyncActionValue"],BM=($,Q)=>$!==xM&&!$.startsWith(Sz)&&typeof Q!=="function"&&(Iz(Q)||J2(Q)),RM=($)=>{let Q=$.at(0);return Q!==void 0&&Q===Q.toUpperCase()&&Q!==Q.toLowerCase()},OM=($)=>new Proxy($,{get(Q,q,Z){let X=Reflect.get(Q,q,Z);if(X!==void 0||typeof q!=="string"||!RM(q))return X;let K=PM();return Reflect.set(Q,q,K),K}}),AM=()=>{let $={};for(let[Q,q]of Object.entries(NV)){if(!BM(Q,q))continue;let Z=Q.split(Sz),X=Z.pop(),K=$;for(let J of Z)K[J]??={},K=K[J];if(Iz(q)){let J=FM(Q.replaceAll(Sz,LM),q);K[X]=Object.assign(J,K[X]??{})}else if(J2(q))K[X]=Object.assign({},K[X]??{},q)}for(let[Q,q]of Object.entries(kM))if($[q]&&!$[Q])$[Q]=$[q];for(let Q of NM)if($[Q])$[Q]=OM($[Q]);return $},EM=AM();var WM=new URL("whatsapp_rust_bridge_bg.wasm",import.meta.url),SM=MM(WM);hz({module:SM});var AW=_z,EW=fz;export{$W as verifySignature,eM as updateLogger,sM as setLogger,EM as proto,aM as projectLegacySessionRecordV1,tM as md5,GQ as longToBigInt,rM as logMessage,AW as initWasmEngine,hz as initSync,gM as inflateZlib,mM as importLegacySessionRecordV1,iM as hkdf,oM as hasLogger,bM as getWasmMemoryBytes,nM as getWasmAllocationSnapshot,dM as getPublicFromPrivateKey,cM as getEnabledFeatures,jM as generateKeyPair,wM as encodeSessionRecordComponents,VM as encodeServerAckWireBatch,uM as encodeSenderKeyRecordComponents,YM as encodeReceiptWireBatch,Az as encodeProto,ZM as encodeMessageWireBatch,CM as encodeEventWireEnvelope,pM as decryptPollVotePayload,lM as decryptPollVote,hM as decryptEventResponsePayload,_M as decodeSessionRecordComponents,XM as decodeServerAckWireBatch,fM as decodeSenderKeyRecordComponents,qM as decodeReceiptWireBatch,a2 as decodeProtoBatch,t2 as decodeProto,QM as decodeMessageWireBatch,UM as decodeEventWireEnvelope,EW as createWhatsAppClient,vM as calculateSignature,yM as calculateAgreement,TM as beginWasmAllocationProfile,VQ as WasmWhatsAppClient,a$ as UnpairedSurrogateError,e$ as MESSAGE_WIRE_INFO_RECORD_WIDTH,UQ as InvalidUtf8CountingReader,YQ as IntoUnderlyingSource,Vz as IntoUnderlyingSink,Yz as IntoUnderlyingByteSource,GM as EVENT_SEGMENT_KIND_SERVER_ACK,HM as EVENT_SEGMENT_KIND_RECEIPT,zM as EVENT_SEGMENT_KIND_MESSAGE,Y as BinaryReader};
|